Mercurial > emacs
comparison configure @ 35666:b85d466802a5
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 28 Jan 2001 16:53:37 +0000 |
parents | 054acbd5e9f7 |
children | 4a730977cad1 |
comparison
equal
deleted
inserted
replaced
35665:2ce207b252dc | 35666:b85d466802a5 |
---|---|
3802 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | 3802 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
3803 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | 3803 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
3804 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | 3804 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` |
3805 x_default_search_path="" | 3805 x_default_search_path="" |
3806 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | 3806 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do |
3807 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\ | 3807 x_search_path="\ |
3808 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\ | 3808 ${x_library}/X11/%L/%T/%N%C%S:\ |
3809 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\ | 3809 ${x_library}/X11/%l/%T/%N%C%S:\ |
3810 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S" | 3810 ${x_library}/X11/%T/%N%C%S:\ |
3811 ${x_library}/X11/%L/%T/%N%S:\ | |
3812 ${x_library}/X11/%l/%T/%N%S:\ | |
3813 ${x_library}/X11/%T/%N%S" | |
3811 if test x"${x_default_search_path}" = x; then | 3814 if test x"${x_default_search_path}" = x; then |
3812 x_default_search_path=${x_search_path} | 3815 x_default_search_path=${x_search_path} |
3813 else | 3816 else |
3814 x_default_search_path="${x_search_path}:${x_default_search_path}" | 3817 x_default_search_path="${x_search_path}:${x_default_search_path}" |
3815 fi | 3818 fi |
3883 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 3886 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
3884 # Assume not, until told otherwise. | 3887 # Assume not, until told otherwise. |
3885 GNU_MALLOC=yes | 3888 GNU_MALLOC=yes |
3886 doug_lea_malloc=yes | 3889 doug_lea_malloc=yes |
3887 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 3890 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
3888 echo "configure:3889: checking for malloc_get_state" >&5 | 3891 echo "configure:3892: checking for malloc_get_state" >&5 |
3889 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 3892 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3890 echo $ac_n "(cached) $ac_c" 1>&6 | 3893 echo $ac_n "(cached) $ac_c" 1>&6 |
3891 else | 3894 else |
3892 cat > conftest.$ac_ext <<EOF | 3895 cat > conftest.$ac_ext <<EOF |
3893 #line 3894 "configure" | 3896 #line 3897 "configure" |
3894 #include "confdefs.h" | 3897 #include "confdefs.h" |
3895 /* System header to define __stub macros and hopefully few prototypes, | 3898 /* System header to define __stub macros and hopefully few prototypes, |
3896 which can conflict with char malloc_get_state(); below. */ | 3899 which can conflict with char malloc_get_state(); below. */ |
3897 #include <assert.h> | 3900 #include <assert.h> |
3898 /* Override any gcc2 internal prototype to avoid an error. */ | 3901 /* Override any gcc2 internal prototype to avoid an error. */ |
3911 malloc_get_state(); | 3914 malloc_get_state(); |
3912 #endif | 3915 #endif |
3913 | 3916 |
3914 ; return 0; } | 3917 ; return 0; } |
3915 EOF | 3918 EOF |
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3917 rm -rf conftest* | 3920 rm -rf conftest* |
3918 eval "ac_cv_func_malloc_get_state=yes" | 3921 eval "ac_cv_func_malloc_get_state=yes" |
3919 else | 3922 else |
3920 echo "configure: failed program was:" >&5 | 3923 echo "configure: failed program was:" >&5 |
3921 cat conftest.$ac_ext >&5 | 3924 cat conftest.$ac_ext >&5 |
3932 echo "$ac_t""no" 1>&6 | 3935 echo "$ac_t""no" 1>&6 |
3933 doug_lea_malloc=no | 3936 doug_lea_malloc=no |
3934 fi | 3937 fi |
3935 | 3938 |
3936 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 3939 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
3937 echo "configure:3938: checking for malloc_set_state" >&5 | 3940 echo "configure:3941: checking for malloc_set_state" >&5 |
3938 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 3941 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3939 echo $ac_n "(cached) $ac_c" 1>&6 | 3942 echo $ac_n "(cached) $ac_c" 1>&6 |
3940 else | 3943 else |
3941 cat > conftest.$ac_ext <<EOF | 3944 cat > conftest.$ac_ext <<EOF |
3942 #line 3943 "configure" | 3945 #line 3946 "configure" |
3943 #include "confdefs.h" | 3946 #include "confdefs.h" |
3944 /* System header to define __stub macros and hopefully few prototypes, | 3947 /* System header to define __stub macros and hopefully few prototypes, |
3945 which can conflict with char malloc_set_state(); below. */ | 3948 which can conflict with char malloc_set_state(); below. */ |
3946 #include <assert.h> | 3949 #include <assert.h> |
3947 /* Override any gcc2 internal prototype to avoid an error. */ | 3950 /* Override any gcc2 internal prototype to avoid an error. */ |
3960 malloc_set_state(); | 3963 malloc_set_state(); |
3961 #endif | 3964 #endif |
3962 | 3965 |
3963 ; return 0; } | 3966 ; return 0; } |
3964 EOF | 3967 EOF |
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3966 rm -rf conftest* | 3969 rm -rf conftest* |
3967 eval "ac_cv_func_malloc_set_state=yes" | 3970 eval "ac_cv_func_malloc_set_state=yes" |
3968 else | 3971 else |
3969 echo "configure: failed program was:" >&5 | 3972 echo "configure: failed program was:" >&5 |
3970 cat conftest.$ac_ext >&5 | 3973 cat conftest.$ac_ext >&5 |
3981 echo "$ac_t""no" 1>&6 | 3984 echo "$ac_t""no" 1>&6 |
3982 doug_lea_malloc=no | 3985 doug_lea_malloc=no |
3983 fi | 3986 fi |
3984 | 3987 |
3985 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 3988 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
3986 echo "configure:3987: checking whether __after_morecore_hook exists" >&5 | 3989 echo "configure:3990: checking whether __after_morecore_hook exists" >&5 |
3987 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 3990 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3988 echo $ac_n "(cached) $ac_c" 1>&6 | 3991 echo $ac_n "(cached) $ac_c" 1>&6 |
3989 else | 3992 else |
3990 cat > conftest.$ac_ext <<EOF | 3993 cat > conftest.$ac_ext <<EOF |
3991 #line 3992 "configure" | 3994 #line 3995 "configure" |
3992 #include "confdefs.h" | 3995 #include "confdefs.h" |
3993 extern void (* __after_morecore_hook)(); | 3996 extern void (* __after_morecore_hook)(); |
3994 int main() { | 3997 int main() { |
3995 __after_morecore_hook = 0 | 3998 __after_morecore_hook = 0 |
3996 ; return 0; } | 3999 ; return 0; } |
3997 EOF | 4000 EOF |
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3999 rm -rf conftest* | 4002 rm -rf conftest* |
4000 emacs_cv_var___after_morecore_hook=yes | 4003 emacs_cv_var___after_morecore_hook=yes |
4001 else | 4004 else |
4002 echo "configure: failed program was:" >&5 | 4005 echo "configure: failed program was:" >&5 |
4003 cat conftest.$ac_ext >&5 | 4006 cat conftest.$ac_ext >&5 |
4034 | 4037 |
4035 for ac_hdr in stdlib.h unistd.h sys/stat.h | 4038 for ac_hdr in stdlib.h unistd.h sys/stat.h |
4036 do | 4039 do |
4037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 4040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 4041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4039 echo "configure:4040: checking for $ac_hdr" >&5 | 4042 echo "configure:4043: checking for $ac_hdr" >&5 |
4040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4041 echo $ac_n "(cached) $ac_c" 1>&6 | 4044 echo $ac_n "(cached) $ac_c" 1>&6 |
4042 else | 4045 else |
4043 cat > conftest.$ac_ext <<EOF | 4046 cat > conftest.$ac_ext <<EOF |
4044 #line 4045 "configure" | 4047 #line 4048 "configure" |
4045 #include "confdefs.h" | 4048 #include "confdefs.h" |
4046 #include <$ac_hdr> | 4049 #include <$ac_hdr> |
4047 EOF | 4050 EOF |
4048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4049 { (eval echo configure:4050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4052 { (eval echo configure:4053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4051 if test -z "$ac_err"; then | 4054 if test -z "$ac_err"; then |
4052 rm -rf conftest* | 4055 rm -rf conftest* |
4053 eval "ac_cv_header_$ac_safe=yes" | 4056 eval "ac_cv_header_$ac_safe=yes" |
4054 else | 4057 else |
4073 done | 4076 done |
4074 | 4077 |
4075 for ac_func in getpagesize | 4078 for ac_func in getpagesize |
4076 do | 4079 do |
4077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4078 echo "configure:4079: checking for $ac_func" >&5 | 4081 echo "configure:4082: checking for $ac_func" >&5 |
4079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4080 echo $ac_n "(cached) $ac_c" 1>&6 | 4083 echo $ac_n "(cached) $ac_c" 1>&6 |
4081 else | 4084 else |
4082 cat > conftest.$ac_ext <<EOF | 4085 cat > conftest.$ac_ext <<EOF |
4083 #line 4084 "configure" | 4086 #line 4087 "configure" |
4084 #include "confdefs.h" | 4087 #include "confdefs.h" |
4085 /* System header to define __stub macros and hopefully few prototypes, | 4088 /* System header to define __stub macros and hopefully few prototypes, |
4086 which can conflict with char $ac_func(); below. */ | 4089 which can conflict with char $ac_func(); below. */ |
4087 #include <assert.h> | 4090 #include <assert.h> |
4088 /* Override any gcc2 internal prototype to avoid an error. */ | 4091 /* Override any gcc2 internal prototype to avoid an error. */ |
4101 $ac_func(); | 4104 $ac_func(); |
4102 #endif | 4105 #endif |
4103 | 4106 |
4104 ; return 0; } | 4107 ; return 0; } |
4105 EOF | 4108 EOF |
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4107 rm -rf conftest* | 4110 rm -rf conftest* |
4108 eval "ac_cv_func_$ac_func=yes" | 4111 eval "ac_cv_func_$ac_func=yes" |
4109 else | 4112 else |
4110 echo "configure: failed program was:" >&5 | 4113 echo "configure: failed program was:" >&5 |
4111 cat conftest.$ac_ext >&5 | 4114 cat conftest.$ac_ext >&5 |
4126 echo "$ac_t""no" 1>&6 | 4129 echo "$ac_t""no" 1>&6 |
4127 fi | 4130 fi |
4128 done | 4131 done |
4129 | 4132 |
4130 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 4133 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
4131 echo "configure:4132: checking for working mmap" >&5 | 4134 echo "configure:4135: checking for working mmap" >&5 |
4132 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | 4135 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
4133 echo $ac_n "(cached) $ac_c" 1>&6 | 4136 echo $ac_n "(cached) $ac_c" 1>&6 |
4134 else | 4137 else |
4135 if test "$cross_compiling" = yes; then | 4138 if test "$cross_compiling" = yes; then |
4136 ac_cv_func_mmap_fixed_mapped=no | 4139 ac_cv_func_mmap_fixed_mapped=no |
4137 else | 4140 else |
4138 cat > conftest.$ac_ext <<EOF | 4141 cat > conftest.$ac_ext <<EOF |
4139 #line 4140 "configure" | 4142 #line 4143 "configure" |
4140 #include "confdefs.h" | 4143 #include "confdefs.h" |
4141 /* Thanks to Mike Haertel and Jim Avera for this test. | 4144 /* Thanks to Mike Haertel and Jim Avera for this test. |
4142 Here is a matrix of mmap possibilities: | 4145 Here is a matrix of mmap possibilities: |
4143 mmap private not fixed | 4146 mmap private not fixed |
4144 mmap private fixed at somewhere currently unmapped | 4147 mmap private fixed at somewhere currently unmapped |
4268 close (fd); | 4271 close (fd); |
4269 unlink ("conftestmmap"); | 4272 unlink ("conftestmmap"); |
4270 exit (0); | 4273 exit (0); |
4271 } | 4274 } |
4272 EOF | 4275 EOF |
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4274 then | 4277 then |
4275 ac_cv_func_mmap_fixed_mapped=yes | 4278 ac_cv_func_mmap_fixed_mapped=yes |
4276 else | 4279 else |
4277 echo "configure: failed program was:" >&5 | 4280 echo "configure: failed program was:" >&5 |
4278 cat conftest.$ac_ext >&5 | 4281 cat conftest.$ac_ext >&5 |
4297 fi | 4300 fi |
4298 | 4301 |
4299 LIBS="$libsrc_libs $LIBS" | 4302 LIBS="$libsrc_libs $LIBS" |
4300 | 4303 |
4301 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 4304 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4302 echo "configure:4303: checking for dnet_ntoa in -ldnet" >&5 | 4305 echo "configure:4306: checking for dnet_ntoa in -ldnet" >&5 |
4303 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 4306 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
4304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4305 echo $ac_n "(cached) $ac_c" 1>&6 | 4308 echo $ac_n "(cached) $ac_c" 1>&6 |
4306 else | 4309 else |
4307 ac_save_LIBS="$LIBS" | 4310 ac_save_LIBS="$LIBS" |
4308 LIBS="-ldnet $LIBS" | 4311 LIBS="-ldnet $LIBS" |
4309 cat > conftest.$ac_ext <<EOF | 4312 cat > conftest.$ac_ext <<EOF |
4310 #line 4311 "configure" | 4313 #line 4314 "configure" |
4311 #include "confdefs.h" | 4314 #include "confdefs.h" |
4312 /* Override any gcc2 internal prototype to avoid an error. */ | 4315 /* Override any gcc2 internal prototype to avoid an error. */ |
4313 /* We use char because int might match the return type of a gcc2 | 4316 /* We use char because int might match the return type of a gcc2 |
4314 builtin and then its argument prototype would still apply. */ | 4317 builtin and then its argument prototype would still apply. */ |
4315 char dnet_ntoa(); | 4318 char dnet_ntoa(); |
4316 | 4319 |
4317 int main() { | 4320 int main() { |
4318 dnet_ntoa() | 4321 dnet_ntoa() |
4319 ; return 0; } | 4322 ; return 0; } |
4320 EOF | 4323 EOF |
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4322 rm -rf conftest* | 4325 rm -rf conftest* |
4323 eval "ac_cv_lib_$ac_lib_var=yes" | 4326 eval "ac_cv_lib_$ac_lib_var=yes" |
4324 else | 4327 else |
4325 echo "configure: failed program was:" >&5 | 4328 echo "configure: failed program was:" >&5 |
4326 cat conftest.$ac_ext >&5 | 4329 cat conftest.$ac_ext >&5 |
4345 echo "$ac_t""no" 1>&6 | 4348 echo "$ac_t""no" 1>&6 |
4346 fi | 4349 fi |
4347 | 4350 |
4348 | 4351 |
4349 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 4352 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
4350 echo "configure:4351: checking for main in -lXbsd" >&5 | 4353 echo "configure:4354: checking for main in -lXbsd" >&5 |
4351 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 4354 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4353 echo $ac_n "(cached) $ac_c" 1>&6 | 4356 echo $ac_n "(cached) $ac_c" 1>&6 |
4354 else | 4357 else |
4355 ac_save_LIBS="$LIBS" | 4358 ac_save_LIBS="$LIBS" |
4356 LIBS="-lXbsd $LIBS" | 4359 LIBS="-lXbsd $LIBS" |
4357 cat > conftest.$ac_ext <<EOF | 4360 cat > conftest.$ac_ext <<EOF |
4358 #line 4359 "configure" | 4361 #line 4362 "configure" |
4359 #include "confdefs.h" | 4362 #include "confdefs.h" |
4360 | 4363 |
4361 int main() { | 4364 int main() { |
4362 main() | 4365 main() |
4363 ; return 0; } | 4366 ; return 0; } |
4364 EOF | 4367 EOF |
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4366 rm -rf conftest* | 4369 rm -rf conftest* |
4367 eval "ac_cv_lib_$ac_lib_var=yes" | 4370 eval "ac_cv_lib_$ac_lib_var=yes" |
4368 else | 4371 else |
4369 echo "configure: failed program was:" >&5 | 4372 echo "configure: failed program was:" >&5 |
4370 cat conftest.$ac_ext >&5 | 4373 cat conftest.$ac_ext >&5 |
4382 echo "$ac_t""no" 1>&6 | 4385 echo "$ac_t""no" 1>&6 |
4383 fi | 4386 fi |
4384 | 4387 |
4385 | 4388 |
4386 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 4389 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
4387 echo "configure:4388: checking for cma_open in -lpthreads" >&5 | 4390 echo "configure:4391: checking for cma_open in -lpthreads" >&5 |
4388 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 4391 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
4389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4390 echo $ac_n "(cached) $ac_c" 1>&6 | 4393 echo $ac_n "(cached) $ac_c" 1>&6 |
4391 else | 4394 else |
4392 ac_save_LIBS="$LIBS" | 4395 ac_save_LIBS="$LIBS" |
4393 LIBS="-lpthreads $LIBS" | 4396 LIBS="-lpthreads $LIBS" |
4394 cat > conftest.$ac_ext <<EOF | 4397 cat > conftest.$ac_ext <<EOF |
4395 #line 4396 "configure" | 4398 #line 4399 "configure" |
4396 #include "confdefs.h" | 4399 #include "confdefs.h" |
4397 /* Override any gcc2 internal prototype to avoid an error. */ | 4400 /* Override any gcc2 internal prototype to avoid an error. */ |
4398 /* We use char because int might match the return type of a gcc2 | 4401 /* We use char because int might match the return type of a gcc2 |
4399 builtin and then its argument prototype would still apply. */ | 4402 builtin and then its argument prototype would still apply. */ |
4400 char cma_open(); | 4403 char cma_open(); |
4401 | 4404 |
4402 int main() { | 4405 int main() { |
4403 cma_open() | 4406 cma_open() |
4404 ; return 0; } | 4407 ; return 0; } |
4405 EOF | 4408 EOF |
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4407 rm -rf conftest* | 4410 rm -rf conftest* |
4408 eval "ac_cv_lib_$ac_lib_var=yes" | 4411 eval "ac_cv_lib_$ac_lib_var=yes" |
4409 else | 4412 else |
4410 echo "configure: failed program was:" >&5 | 4413 echo "configure: failed program was:" >&5 |
4411 cat conftest.$ac_ext >&5 | 4414 cat conftest.$ac_ext >&5 |
4430 echo "$ac_t""no" 1>&6 | 4433 echo "$ac_t""no" 1>&6 |
4431 fi | 4434 fi |
4432 | 4435 |
4433 | 4436 |
4434 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | 4437 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 |
4435 echo "configure:4436: checking for XFree86 in /usr/X386" >&5 | 4438 echo "configure:4439: checking for XFree86 in /usr/X386" >&5 |
4436 if test -d /usr/X386/include; then | 4439 if test -d /usr/X386/include; then |
4437 HAVE_XFREE386=yes | 4440 HAVE_XFREE386=yes |
4438 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | 4441 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
4439 else | 4442 else |
4440 HAVE_XFREE386=no | 4443 HAVE_XFREE386=no |
4462 export LD_RUN_PATH | 4465 export LD_RUN_PATH |
4463 fi | 4466 fi |
4464 | 4467 |
4465 if test "${opsys}" = "gnu-linux"; then | 4468 if test "${opsys}" = "gnu-linux"; then |
4466 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | 4469 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 |
4467 echo "configure:4468: checking whether X on GNU/Linux needs -b to link" >&5 | 4470 echo "configure:4471: checking whether X on GNU/Linux needs -b to link" >&5 |
4468 cat > conftest.$ac_ext <<EOF | 4471 cat > conftest.$ac_ext <<EOF |
4469 #line 4470 "configure" | 4472 #line 4473 "configure" |
4470 #include "confdefs.h" | 4473 #include "confdefs.h" |
4471 | 4474 |
4472 int main() { | 4475 int main() { |
4473 XOpenDisplay ("foo"); | 4476 XOpenDisplay ("foo"); |
4474 ; return 0; } | 4477 ; return 0; } |
4475 EOF | 4478 EOF |
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4477 rm -rf conftest* | 4480 rm -rf conftest* |
4478 xlinux_first_failure=no | 4481 xlinux_first_failure=no |
4479 else | 4482 else |
4480 echo "configure: failed program was:" >&5 | 4483 echo "configure: failed program was:" >&5 |
4481 cat conftest.$ac_ext >&5 | 4484 cat conftest.$ac_ext >&5 |
4491 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 4494 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
4492 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 4495 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
4493 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 4496 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
4494 LIBS="$LIBS -b i486-linuxaout" | 4497 LIBS="$LIBS -b i486-linuxaout" |
4495 cat > conftest.$ac_ext <<EOF | 4498 cat > conftest.$ac_ext <<EOF |
4496 #line 4497 "configure" | 4499 #line 4500 "configure" |
4497 #include "confdefs.h" | 4500 #include "confdefs.h" |
4498 | 4501 |
4499 int main() { | 4502 int main() { |
4500 XOpenDisplay ("foo"); | 4503 XOpenDisplay ("foo"); |
4501 ; return 0; } | 4504 ; return 0; } |
4502 EOF | 4505 EOF |
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4504 rm -rf conftest* | 4507 rm -rf conftest* |
4505 xlinux_second_failure=no | 4508 xlinux_second_failure=no |
4506 else | 4509 else |
4507 echo "configure: failed program was:" >&5 | 4510 echo "configure: failed program was:" >&5 |
4508 cat conftest.$ac_ext >&5 | 4511 cat conftest.$ac_ext >&5 |
4527 fi | 4530 fi |
4528 | 4531 |
4529 # Reportedly, some broken Solaris systems have XKBlib.h but are missing | 4532 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
4530 # header files included from there. | 4533 # header files included from there. |
4531 echo $ac_n "checking for Xkb""... $ac_c" 1>&6 | 4534 echo $ac_n "checking for Xkb""... $ac_c" 1>&6 |
4532 echo "configure:4533: checking for Xkb" >&5 | 4535 echo "configure:4536: checking for Xkb" >&5 |
4533 cat > conftest.$ac_ext <<EOF | 4536 cat > conftest.$ac_ext <<EOF |
4534 #line 4535 "configure" | 4537 #line 4538 "configure" |
4535 #include "confdefs.h" | 4538 #include "confdefs.h" |
4536 #include <X11/Xlib.h> | 4539 #include <X11/Xlib.h> |
4537 #include <X11/XKBlib.h> | 4540 #include <X11/XKBlib.h> |
4538 int main() { | 4541 int main() { |
4539 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | 4542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
4540 ; return 0; } | 4543 ; return 0; } |
4541 EOF | 4544 EOF |
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4543 rm -rf conftest* | 4546 rm -rf conftest* |
4544 emacs_xkb=yes | 4547 emacs_xkb=yes |
4545 else | 4548 else |
4546 echo "configure: failed program was:" >&5 | 4549 echo "configure: failed program was:" >&5 |
4547 cat conftest.$ac_ext >&5 | 4550 cat conftest.$ac_ext >&5 |
4559 | 4562 |
4560 for ac_func in XrmSetDatabase XScreenResourceString \ | 4563 for ac_func in XrmSetDatabase XScreenResourceString \ |
4561 XScreenNumberOfScreen XSetWMProtocols | 4564 XScreenNumberOfScreen XSetWMProtocols |
4562 do | 4565 do |
4563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4564 echo "configure:4565: checking for $ac_func" >&5 | 4567 echo "configure:4568: checking for $ac_func" >&5 |
4565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4566 echo $ac_n "(cached) $ac_c" 1>&6 | 4569 echo $ac_n "(cached) $ac_c" 1>&6 |
4567 else | 4570 else |
4568 cat > conftest.$ac_ext <<EOF | 4571 cat > conftest.$ac_ext <<EOF |
4569 #line 4570 "configure" | 4572 #line 4573 "configure" |
4570 #include "confdefs.h" | 4573 #include "confdefs.h" |
4571 /* System header to define __stub macros and hopefully few prototypes, | 4574 /* System header to define __stub macros and hopefully few prototypes, |
4572 which can conflict with char $ac_func(); below. */ | 4575 which can conflict with char $ac_func(); below. */ |
4573 #include <assert.h> | 4576 #include <assert.h> |
4574 /* Override any gcc2 internal prototype to avoid an error. */ | 4577 /* Override any gcc2 internal prototype to avoid an error. */ |
4587 $ac_func(); | 4590 $ac_func(); |
4588 #endif | 4591 #endif |
4589 | 4592 |
4590 ; return 0; } | 4593 ; return 0; } |
4591 EOF | 4594 EOF |
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4593 rm -rf conftest* | 4596 rm -rf conftest* |
4594 eval "ac_cv_func_$ac_func=yes" | 4597 eval "ac_cv_func_$ac_func=yes" |
4595 else | 4598 else |
4596 echo "configure: failed program was:" >&5 | 4599 echo "configure: failed program was:" >&5 |
4597 cat conftest.$ac_ext >&5 | 4600 cat conftest.$ac_ext >&5 |
4615 | 4618 |
4616 fi | 4619 fi |
4617 | 4620 |
4618 if test "${window_system}" = "x11"; then | 4621 if test "${window_system}" = "x11"; then |
4619 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 4622 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
4620 echo "configure:4621: checking X11 version 6" >&5 | 4623 echo "configure:4624: checking X11 version 6" >&5 |
4621 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 4624 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4622 echo $ac_n "(cached) $ac_c" 1>&6 | 4625 echo $ac_n "(cached) $ac_c" 1>&6 |
4623 else | 4626 else |
4624 cat > conftest.$ac_ext <<EOF | 4627 cat > conftest.$ac_ext <<EOF |
4625 #line 4626 "configure" | 4628 #line 4629 "configure" |
4626 #include "confdefs.h" | 4629 #include "confdefs.h" |
4627 #include <X11/Xlib.h> | 4630 #include <X11/Xlib.h> |
4628 int main() { | 4631 int main() { |
4629 #if XlibSpecificationRelease < 6 | 4632 #if XlibSpecificationRelease < 6 |
4630 fail; | 4633 fail; |
4631 #endif | 4634 #endif |
4632 | 4635 |
4633 ; return 0; } | 4636 ; return 0; } |
4634 EOF | 4637 EOF |
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4636 rm -rf conftest* | 4639 rm -rf conftest* |
4637 emacs_cv_x11_version_6=yes | 4640 emacs_cv_x11_version_6=yes |
4638 else | 4641 else |
4639 echo "configure: failed program was:" >&5 | 4642 echo "configure: failed program was:" >&5 |
4640 cat conftest.$ac_ext >&5 | 4643 cat conftest.$ac_ext >&5 |
4655 fi | 4658 fi |
4656 fi | 4659 fi |
4657 | 4660 |
4658 if test "${window_system}" = "x11"; then | 4661 if test "${window_system}" = "x11"; then |
4659 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 4662 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
4660 echo "configure:4661: checking X11 version 5" >&5 | 4663 echo "configure:4664: checking X11 version 5" >&5 |
4661 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 4664 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4662 echo $ac_n "(cached) $ac_c" 1>&6 | 4665 echo $ac_n "(cached) $ac_c" 1>&6 |
4663 else | 4666 else |
4664 cat > conftest.$ac_ext <<EOF | 4667 cat > conftest.$ac_ext <<EOF |
4665 #line 4666 "configure" | 4668 #line 4669 "configure" |
4666 #include "confdefs.h" | 4669 #include "confdefs.h" |
4667 #include <X11/Xlib.h> | 4670 #include <X11/Xlib.h> |
4668 int main() { | 4671 int main() { |
4669 #if XlibSpecificationRelease < 5 | 4672 #if XlibSpecificationRelease < 5 |
4670 fail; | 4673 fail; |
4671 #endif | 4674 #endif |
4672 | 4675 |
4673 ; return 0; } | 4676 ; return 0; } |
4674 EOF | 4677 EOF |
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4676 rm -rf conftest* | 4679 rm -rf conftest* |
4677 emacs_cv_x11_version_5=yes | 4680 emacs_cv_x11_version_5=yes |
4678 else | 4681 else |
4679 echo "configure: failed program was:" >&5 | 4682 echo "configure: failed program was:" >&5 |
4680 cat conftest.$ac_ext >&5 | 4683 cat conftest.$ac_ext >&5 |
4698 fi | 4701 fi |
4699 | 4702 |
4700 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 4703 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
4701 if test x"${HAVE_X11R5}" = xyes; then | 4704 if test x"${HAVE_X11R5}" = xyes; then |
4702 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 4705 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
4703 echo "configure:4704: checking X11 version 5 with Xaw" >&5 | 4706 echo "configure:4707: checking X11 version 5 with Xaw" >&5 |
4704 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 4707 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4705 echo $ac_n "(cached) $ac_c" 1>&6 | 4708 echo $ac_n "(cached) $ac_c" 1>&6 |
4706 else | 4709 else |
4707 cat > conftest.$ac_ext <<EOF | 4710 cat > conftest.$ac_ext <<EOF |
4708 #line 4709 "configure" | 4711 #line 4712 "configure" |
4709 #include "confdefs.h" | 4712 #include "confdefs.h" |
4710 | 4713 |
4711 #include <X11/Intrinsic.h> | 4714 #include <X11/Intrinsic.h> |
4712 #include <X11/Xaw/Simple.h> | 4715 #include <X11/Xaw/Simple.h> |
4713 int main() { | 4716 int main() { |
4714 | 4717 |
4715 ; return 0; } | 4718 ; return 0; } |
4716 EOF | 4719 EOF |
4717 if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4718 rm -rf conftest* | 4721 rm -rf conftest* |
4719 emacs_cv_x11_version_5_with_xaw=yes | 4722 emacs_cv_x11_version_5_with_xaw=yes |
4720 else | 4723 else |
4721 echo "configure: failed program was:" >&5 | 4724 echo "configure: failed program was:" >&5 |
4722 cat conftest.$ac_ext >&5 | 4725 cat conftest.$ac_ext >&5 |
4740 | 4743 |
4741 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 4744 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
4742 | 4745 |
4743 if test "${USE_X_TOOLKIT}" != "none"; then | 4746 if test "${USE_X_TOOLKIT}" != "none"; then |
4744 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 4747 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
4745 echo "configure:4746: checking X11 toolkit version" >&5 | 4748 echo "configure:4749: checking X11 toolkit version" >&5 |
4746 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 4749 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4747 echo $ac_n "(cached) $ac_c" 1>&6 | 4750 echo $ac_n "(cached) $ac_c" 1>&6 |
4748 else | 4751 else |
4749 cat > conftest.$ac_ext <<EOF | 4752 cat > conftest.$ac_ext <<EOF |
4750 #line 4751 "configure" | 4753 #line 4754 "configure" |
4751 #include "confdefs.h" | 4754 #include "confdefs.h" |
4752 #include <X11/Intrinsic.h> | 4755 #include <X11/Intrinsic.h> |
4753 int main() { | 4756 int main() { |
4754 #if XtSpecificationRelease < 6 | 4757 #if XtSpecificationRelease < 6 |
4755 fail; | 4758 fail; |
4756 #endif | 4759 #endif |
4757 | 4760 |
4758 ; return 0; } | 4761 ; return 0; } |
4759 EOF | 4762 EOF |
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4761 rm -rf conftest* | 4764 rm -rf conftest* |
4762 emacs_cv_x11_toolkit_version_6=yes | 4765 emacs_cv_x11_toolkit_version_6=yes |
4763 else | 4766 else |
4764 echo "configure: failed program was:" >&5 | 4767 echo "configure: failed program was:" >&5 |
4765 cat conftest.$ac_ext >&5 | 4768 cat conftest.$ac_ext >&5 |
4785 LIBS="-lXt -lSM -lICE $LIBS" | 4788 LIBS="-lXt -lSM -lICE $LIBS" |
4786 else | 4789 else |
4787 LIBS="-lXt $LIBS" | 4790 LIBS="-lXt $LIBS" |
4788 fi | 4791 fi |
4789 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4792 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
4790 echo "configure:4791: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4793 echo "configure:4794: checking for XmuConvertStandardSelection in -lXmu" >&5 |
4791 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4794 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4793 echo $ac_n "(cached) $ac_c" 1>&6 | 4796 echo $ac_n "(cached) $ac_c" 1>&6 |
4794 else | 4797 else |
4795 ac_save_LIBS="$LIBS" | 4798 ac_save_LIBS="$LIBS" |
4796 LIBS="-lXmu $LIBS" | 4799 LIBS="-lXmu $LIBS" |
4797 cat > conftest.$ac_ext <<EOF | 4800 cat > conftest.$ac_ext <<EOF |
4798 #line 4799 "configure" | 4801 #line 4802 "configure" |
4799 #include "confdefs.h" | 4802 #include "confdefs.h" |
4800 /* Override any gcc2 internal prototype to avoid an error. */ | 4803 /* Override any gcc2 internal prototype to avoid an error. */ |
4801 /* We use char because int might match the return type of a gcc2 | 4804 /* We use char because int might match the return type of a gcc2 |
4802 builtin and then its argument prototype would still apply. */ | 4805 builtin and then its argument prototype would still apply. */ |
4803 char XmuConvertStandardSelection(); | 4806 char XmuConvertStandardSelection(); |
4804 | 4807 |
4805 int main() { | 4808 int main() { |
4806 XmuConvertStandardSelection() | 4809 XmuConvertStandardSelection() |
4807 ; return 0; } | 4810 ; return 0; } |
4808 EOF | 4811 EOF |
4809 if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4810 rm -rf conftest* | 4813 rm -rf conftest* |
4811 eval "ac_cv_lib_$ac_lib_var=yes" | 4814 eval "ac_cv_lib_$ac_lib_var=yes" |
4812 else | 4815 else |
4813 echo "configure: failed program was:" >&5 | 4816 echo "configure: failed program was:" >&5 |
4814 cat conftest.$ac_ext >&5 | 4817 cat conftest.$ac_ext >&5 |
4838 | 4841 |
4839 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | 4842 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
4840 if test "${HAVE_X11}" = "yes"; then | 4843 if test "${HAVE_X11}" = "yes"; then |
4841 if test "${USE_X_TOOLKIT}" != "none"; then | 4844 if test "${USE_X_TOOLKIT}" != "none"; then |
4842 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 | 4845 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
4843 echo "configure:4844: checking for XShapeQueryExtension in -lXext" >&5 | 4846 echo "configure:4847: checking for XShapeQueryExtension in -lXext" >&5 |
4844 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` | 4847 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` |
4845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4846 echo $ac_n "(cached) $ac_c" 1>&6 | 4849 echo $ac_n "(cached) $ac_c" 1>&6 |
4847 else | 4850 else |
4848 ac_save_LIBS="$LIBS" | 4851 ac_save_LIBS="$LIBS" |
4849 LIBS="-lXext $LIBS" | 4852 LIBS="-lXext $LIBS" |
4850 cat > conftest.$ac_ext <<EOF | 4853 cat > conftest.$ac_ext <<EOF |
4851 #line 4852 "configure" | 4854 #line 4855 "configure" |
4852 #include "confdefs.h" | 4855 #include "confdefs.h" |
4853 /* Override any gcc2 internal prototype to avoid an error. */ | 4856 /* Override any gcc2 internal prototype to avoid an error. */ |
4854 /* We use char because int might match the return type of a gcc2 | 4857 /* We use char because int might match the return type of a gcc2 |
4855 builtin and then its argument prototype would still apply. */ | 4858 builtin and then its argument prototype would still apply. */ |
4856 char XShapeQueryExtension(); | 4859 char XShapeQueryExtension(); |
4857 | 4860 |
4858 int main() { | 4861 int main() { |
4859 XShapeQueryExtension() | 4862 XShapeQueryExtension() |
4860 ; return 0; } | 4863 ; return 0; } |
4861 EOF | 4864 EOF |
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4863 rm -rf conftest* | 4866 rm -rf conftest* |
4864 eval "ac_cv_lib_$ac_lib_var=yes" | 4867 eval "ac_cv_lib_$ac_lib_var=yes" |
4865 else | 4868 else |
4866 echo "configure: failed program was:" >&5 | 4869 echo "configure: failed program was:" >&5 |
4867 cat conftest.$ac_ext >&5 | 4870 cat conftest.$ac_ext >&5 |
4889 fi | 4892 fi |
4890 fi | 4893 fi |
4891 | 4894 |
4892 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 4895 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
4893 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 4896 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4894 echo "configure:4895: checking for Motif version 2.1" >&5 | 4897 echo "configure:4898: checking for Motif version 2.1" >&5 |
4895 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 4898 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4896 echo $ac_n "(cached) $ac_c" 1>&6 | 4899 echo $ac_n "(cached) $ac_c" 1>&6 |
4897 else | 4900 else |
4898 cat > conftest.$ac_ext <<EOF | 4901 cat > conftest.$ac_ext <<EOF |
4899 #line 4900 "configure" | 4902 #line 4903 "configure" |
4900 #include "confdefs.h" | 4903 #include "confdefs.h" |
4901 #include <Xm/Xm.h> | 4904 #include <Xm/Xm.h> |
4902 int main() { | 4905 int main() { |
4903 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4906 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4904 int x = 5; | 4907 int x = 5; |
4905 #else | 4908 #else |
4906 Motif version prior to 2.1. | 4909 Motif version prior to 2.1. |
4907 #endif | 4910 #endif |
4908 ; return 0; } | 4911 ; return 0; } |
4909 EOF | 4912 EOF |
4910 if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4913 if { (eval echo configure:4914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4911 rm -rf conftest* | 4914 rm -rf conftest* |
4912 emacs_cv_motif_version_2_1=yes | 4915 emacs_cv_motif_version_2_1=yes |
4913 else | 4916 else |
4914 echo "configure: failed program was:" >&5 | 4917 echo "configure: failed program was:" >&5 |
4915 cat conftest.$ac_ext >&5 | 4918 cat conftest.$ac_ext >&5 |
4926 cat >> confdefs.h <<\EOF | 4929 cat >> confdefs.h <<\EOF |
4927 #define HAVE_MOTIF_2_1 1 | 4930 #define HAVE_MOTIF_2_1 1 |
4928 EOF | 4931 EOF |
4929 | 4932 |
4930 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4933 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4931 echo "configure:4932: checking for XpCreateContext in -lXp" >&5 | 4934 echo "configure:4935: checking for XpCreateContext in -lXp" >&5 |
4932 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4935 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4934 echo $ac_n "(cached) $ac_c" 1>&6 | 4937 echo $ac_n "(cached) $ac_c" 1>&6 |
4935 else | 4938 else |
4936 ac_save_LIBS="$LIBS" | 4939 ac_save_LIBS="$LIBS" |
4937 LIBS="-lXp $LIBS" | 4940 LIBS="-lXp $LIBS" |
4938 cat > conftest.$ac_ext <<EOF | 4941 cat > conftest.$ac_ext <<EOF |
4939 #line 4940 "configure" | 4942 #line 4943 "configure" |
4940 #include "confdefs.h" | 4943 #include "confdefs.h" |
4941 /* Override any gcc2 internal prototype to avoid an error. */ | 4944 /* Override any gcc2 internal prototype to avoid an error. */ |
4942 /* We use char because int might match the return type of a gcc2 | 4945 /* We use char because int might match the return type of a gcc2 |
4943 builtin and then its argument prototype would still apply. */ | 4946 builtin and then its argument prototype would still apply. */ |
4944 char XpCreateContext(); | 4947 char XpCreateContext(); |
4945 | 4948 |
4946 int main() { | 4949 int main() { |
4947 XpCreateContext() | 4950 XpCreateContext() |
4948 ; return 0; } | 4951 ; return 0; } |
4949 EOF | 4952 EOF |
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4951 rm -rf conftest* | 4954 rm -rf conftest* |
4952 eval "ac_cv_lib_$ac_lib_var=yes" | 4955 eval "ac_cv_lib_$ac_lib_var=yes" |
4953 else | 4956 else |
4954 echo "configure: failed program was:" >&5 | 4957 echo "configure: failed program was:" >&5 |
4955 cat conftest.$ac_ext >&5 | 4958 cat conftest.$ac_ext >&5 |
4980 HAVE_XAW3D=no | 4983 HAVE_XAW3D=no |
4981 if test "${HAVE_X11}" = "yes"; then | 4984 if test "${HAVE_X11}" = "yes"; then |
4982 if test "${USE_X_TOOLKIT}" != "none"; then | 4985 if test "${USE_X_TOOLKIT}" != "none"; then |
4983 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4986 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4984 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4987 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4985 echo "configure:4986: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4988 echo "configure:4989: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4987 echo $ac_n "(cached) $ac_c" 1>&6 | 4990 echo $ac_n "(cached) $ac_c" 1>&6 |
4988 else | 4991 else |
4989 cat > conftest.$ac_ext <<EOF | 4992 cat > conftest.$ac_ext <<EOF |
4990 #line 4991 "configure" | 4993 #line 4994 "configure" |
4991 #include "confdefs.h" | 4994 #include "confdefs.h" |
4992 #include <X11/Xaw3d/Scrollbar.h> | 4995 #include <X11/Xaw3d/Scrollbar.h> |
4993 EOF | 4996 EOF |
4994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4995 { (eval echo configure:4996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4998 { (eval echo configure:4999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4997 if test -z "$ac_err"; then | 5000 if test -z "$ac_err"; then |
4998 rm -rf conftest* | 5001 rm -rf conftest* |
4999 eval "ac_cv_header_$ac_safe=yes" | 5002 eval "ac_cv_header_$ac_safe=yes" |
5000 else | 5003 else |
5007 rm -f conftest* | 5010 rm -f conftest* |
5008 fi | 5011 fi |
5009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5010 echo "$ac_t""yes" 1>&6 | 5013 echo "$ac_t""yes" 1>&6 |
5011 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 5014 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
5012 echo "configure:5013: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 5015 echo "configure:5016: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
5013 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 5016 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
5014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5015 echo $ac_n "(cached) $ac_c" 1>&6 | 5018 echo $ac_n "(cached) $ac_c" 1>&6 |
5016 else | 5019 else |
5017 ac_save_LIBS="$LIBS" | 5020 ac_save_LIBS="$LIBS" |
5018 LIBS="-lXaw3d $LIBS" | 5021 LIBS="-lXaw3d $LIBS" |
5019 cat > conftest.$ac_ext <<EOF | 5022 cat > conftest.$ac_ext <<EOF |
5020 #line 5021 "configure" | 5023 #line 5024 "configure" |
5021 #include "confdefs.h" | 5024 #include "confdefs.h" |
5022 /* Override any gcc2 internal prototype to avoid an error. */ | 5025 /* Override any gcc2 internal prototype to avoid an error. */ |
5023 /* We use char because int might match the return type of a gcc2 | 5026 /* We use char because int might match the return type of a gcc2 |
5024 builtin and then its argument prototype would still apply. */ | 5027 builtin and then its argument prototype would still apply. */ |
5025 char XawScrollbarSetThumb(); | 5028 char XawScrollbarSetThumb(); |
5026 | 5029 |
5027 int main() { | 5030 int main() { |
5028 XawScrollbarSetThumb() | 5031 XawScrollbarSetThumb() |
5029 ; return 0; } | 5032 ; return 0; } |
5030 EOF | 5033 EOF |
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5034 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5032 rm -rf conftest* | 5035 rm -rf conftest* |
5033 eval "ac_cv_lib_$ac_lib_var=yes" | 5036 eval "ac_cv_lib_$ac_lib_var=yes" |
5034 else | 5037 else |
5035 echo "configure: failed program was:" >&5 | 5038 echo "configure: failed program was:" >&5 |
5036 cat conftest.$ac_ext >&5 | 5039 cat conftest.$ac_ext >&5 |
5094 HAVE_XPM=no | 5097 HAVE_XPM=no |
5095 if test "${HAVE_X11}" = "yes"; then | 5098 if test "${HAVE_X11}" = "yes"; then |
5096 if test "${with_xpm}" != "no"; then | 5099 if test "${with_xpm}" != "no"; then |
5097 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 5100 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
5098 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 5101 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
5099 echo "configure:5100: checking for X11/xpm.h" >&5 | 5102 echo "configure:5103: checking for X11/xpm.h" >&5 |
5100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5101 echo $ac_n "(cached) $ac_c" 1>&6 | 5104 echo $ac_n "(cached) $ac_c" 1>&6 |
5102 else | 5105 else |
5103 cat > conftest.$ac_ext <<EOF | 5106 cat > conftest.$ac_ext <<EOF |
5104 #line 5105 "configure" | 5107 #line 5108 "configure" |
5105 #include "confdefs.h" | 5108 #include "confdefs.h" |
5106 #include <X11/xpm.h> | 5109 #include <X11/xpm.h> |
5107 EOF | 5110 EOF |
5108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5109 { (eval echo configure:5110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5112 { (eval echo configure:5113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5111 if test -z "$ac_err"; then | 5114 if test -z "$ac_err"; then |
5112 rm -rf conftest* | 5115 rm -rf conftest* |
5113 eval "ac_cv_header_$ac_safe=yes" | 5116 eval "ac_cv_header_$ac_safe=yes" |
5114 else | 5117 else |
5121 rm -f conftest* | 5124 rm -f conftest* |
5122 fi | 5125 fi |
5123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5124 echo "$ac_t""yes" 1>&6 | 5127 echo "$ac_t""yes" 1>&6 |
5125 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 5128 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
5126 echo "configure:5127: checking for XpmReadFileToPixmap in -lXpm" >&5 | 5129 echo "configure:5130: checking for XpmReadFileToPixmap in -lXpm" >&5 |
5127 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 5130 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
5128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5129 echo $ac_n "(cached) $ac_c" 1>&6 | 5132 echo $ac_n "(cached) $ac_c" 1>&6 |
5130 else | 5133 else |
5131 ac_save_LIBS="$LIBS" | 5134 ac_save_LIBS="$LIBS" |
5132 LIBS="-lXpm -lX11 $LIBS" | 5135 LIBS="-lXpm -lX11 $LIBS" |
5133 cat > conftest.$ac_ext <<EOF | 5136 cat > conftest.$ac_ext <<EOF |
5134 #line 5135 "configure" | 5137 #line 5138 "configure" |
5135 #include "confdefs.h" | 5138 #include "confdefs.h" |
5136 /* Override any gcc2 internal prototype to avoid an error. */ | 5139 /* Override any gcc2 internal prototype to avoid an error. */ |
5137 /* We use char because int might match the return type of a gcc2 | 5140 /* We use char because int might match the return type of a gcc2 |
5138 builtin and then its argument prototype would still apply. */ | 5141 builtin and then its argument prototype would still apply. */ |
5139 char XpmReadFileToPixmap(); | 5142 char XpmReadFileToPixmap(); |
5140 | 5143 |
5141 int main() { | 5144 int main() { |
5142 XpmReadFileToPixmap() | 5145 XpmReadFileToPixmap() |
5143 ; return 0; } | 5146 ; return 0; } |
5144 EOF | 5147 EOF |
5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5146 rm -rf conftest* | 5149 rm -rf conftest* |
5147 eval "ac_cv_lib_$ac_lib_var=yes" | 5150 eval "ac_cv_lib_$ac_lib_var=yes" |
5148 else | 5151 else |
5149 echo "configure: failed program was:" >&5 | 5152 echo "configure: failed program was:" >&5 |
5150 cat conftest.$ac_ext >&5 | 5153 cat conftest.$ac_ext >&5 |
5166 echo "$ac_t""no" 1>&6 | 5169 echo "$ac_t""no" 1>&6 |
5167 fi | 5170 fi |
5168 | 5171 |
5169 if test "${HAVE_XPM}" = "yes"; then | 5172 if test "${HAVE_XPM}" = "yes"; then |
5170 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 | 5173 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 |
5171 echo "configure:5172: checking for XpmReturnAllocPixels preprocessor define" >&5 | 5174 echo "configure:5175: checking for XpmReturnAllocPixels preprocessor define" >&5 |
5172 cat > conftest.$ac_ext <<EOF | 5175 cat > conftest.$ac_ext <<EOF |
5173 #line 5174 "configure" | 5176 #line 5177 "configure" |
5174 #include "confdefs.h" | 5177 #include "confdefs.h" |
5175 #include "X11/xpm.h" | 5178 #include "X11/xpm.h" |
5176 #ifndef XpmReturnAllocPixels | 5179 #ifndef XpmReturnAllocPixels |
5177 no_return_alloc_pixels | 5180 no_return_alloc_pixels |
5178 #endif | 5181 #endif |
5208 HAVE_JPEG=no | 5211 HAVE_JPEG=no |
5209 if test "${HAVE_X11}" = "yes"; then | 5212 if test "${HAVE_X11}" = "yes"; then |
5210 if test "${with_jpeg}" != "no"; then | 5213 if test "${with_jpeg}" != "no"; then |
5211 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 5214 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
5212 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 5215 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
5213 echo "configure:5214: checking for jerror.h" >&5 | 5216 echo "configure:5217: checking for jerror.h" >&5 |
5214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5215 echo $ac_n "(cached) $ac_c" 1>&6 | 5218 echo $ac_n "(cached) $ac_c" 1>&6 |
5216 else | 5219 else |
5217 cat > conftest.$ac_ext <<EOF | 5220 cat > conftest.$ac_ext <<EOF |
5218 #line 5219 "configure" | 5221 #line 5222 "configure" |
5219 #include "confdefs.h" | 5222 #include "confdefs.h" |
5220 #include <jerror.h> | 5223 #include <jerror.h> |
5221 EOF | 5224 EOF |
5222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5223 { (eval echo configure:5224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5226 { (eval echo configure:5227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5225 if test -z "$ac_err"; then | 5228 if test -z "$ac_err"; then |
5226 rm -rf conftest* | 5229 rm -rf conftest* |
5227 eval "ac_cv_header_$ac_safe=yes" | 5230 eval "ac_cv_header_$ac_safe=yes" |
5228 else | 5231 else |
5235 rm -f conftest* | 5238 rm -f conftest* |
5236 fi | 5239 fi |
5237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5238 echo "$ac_t""yes" 1>&6 | 5241 echo "$ac_t""yes" 1>&6 |
5239 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 5242 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
5240 echo "configure:5241: checking for jpeg_destroy_compress in -ljpeg" >&5 | 5243 echo "configure:5244: checking for jpeg_destroy_compress in -ljpeg" >&5 |
5241 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 5244 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5243 echo $ac_n "(cached) $ac_c" 1>&6 | 5246 echo $ac_n "(cached) $ac_c" 1>&6 |
5244 else | 5247 else |
5245 ac_save_LIBS="$LIBS" | 5248 ac_save_LIBS="$LIBS" |
5246 LIBS="-ljpeg $LIBS" | 5249 LIBS="-ljpeg $LIBS" |
5247 cat > conftest.$ac_ext <<EOF | 5250 cat > conftest.$ac_ext <<EOF |
5248 #line 5249 "configure" | 5251 #line 5252 "configure" |
5249 #include "confdefs.h" | 5252 #include "confdefs.h" |
5250 /* Override any gcc2 internal prototype to avoid an error. */ | 5253 /* Override any gcc2 internal prototype to avoid an error. */ |
5251 /* We use char because int might match the return type of a gcc2 | 5254 /* We use char because int might match the return type of a gcc2 |
5252 builtin and then its argument prototype would still apply. */ | 5255 builtin and then its argument prototype would still apply. */ |
5253 char jpeg_destroy_compress(); | 5256 char jpeg_destroy_compress(); |
5254 | 5257 |
5255 int main() { | 5258 int main() { |
5256 jpeg_destroy_compress() | 5259 jpeg_destroy_compress() |
5257 ; return 0; } | 5260 ; return 0; } |
5258 EOF | 5261 EOF |
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5260 rm -rf conftest* | 5263 rm -rf conftest* |
5261 eval "ac_cv_lib_$ac_lib_var=yes" | 5264 eval "ac_cv_lib_$ac_lib_var=yes" |
5262 else | 5265 else |
5263 echo "configure: failed program was:" >&5 | 5266 echo "configure: failed program was:" >&5 |
5264 cat conftest.$ac_ext >&5 | 5267 cat conftest.$ac_ext >&5 |
5294 HAVE_PNG=no | 5297 HAVE_PNG=no |
5295 if test "${HAVE_X11}" = "yes"; then | 5298 if test "${HAVE_X11}" = "yes"; then |
5296 if test "${with_png}" != "no"; then | 5299 if test "${with_png}" != "no"; then |
5297 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 5300 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
5298 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 5301 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
5299 echo "configure:5300: checking for png.h" >&5 | 5302 echo "configure:5303: checking for png.h" >&5 |
5300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5301 echo $ac_n "(cached) $ac_c" 1>&6 | 5304 echo $ac_n "(cached) $ac_c" 1>&6 |
5302 else | 5305 else |
5303 cat > conftest.$ac_ext <<EOF | 5306 cat > conftest.$ac_ext <<EOF |
5304 #line 5305 "configure" | 5307 #line 5308 "configure" |
5305 #include "confdefs.h" | 5308 #include "confdefs.h" |
5306 #include <png.h> | 5309 #include <png.h> |
5307 EOF | 5310 EOF |
5308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5309 { (eval echo configure:5310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5312 { (eval echo configure:5313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5311 if test -z "$ac_err"; then | 5314 if test -z "$ac_err"; then |
5312 rm -rf conftest* | 5315 rm -rf conftest* |
5313 eval "ac_cv_header_$ac_safe=yes" | 5316 eval "ac_cv_header_$ac_safe=yes" |
5314 else | 5317 else |
5321 rm -f conftest* | 5324 rm -f conftest* |
5322 fi | 5325 fi |
5323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5324 echo "$ac_t""yes" 1>&6 | 5327 echo "$ac_t""yes" 1>&6 |
5325 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 | 5328 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 |
5326 echo "configure:5327: checking for png_get_channels in -lpng" >&5 | 5329 echo "configure:5330: checking for png_get_channels in -lpng" >&5 |
5327 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` | 5330 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` |
5328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5329 echo $ac_n "(cached) $ac_c" 1>&6 | 5332 echo $ac_n "(cached) $ac_c" 1>&6 |
5330 else | 5333 else |
5331 ac_save_LIBS="$LIBS" | 5334 ac_save_LIBS="$LIBS" |
5332 LIBS="-lpng -lz -lm $LIBS" | 5335 LIBS="-lpng -lz -lm $LIBS" |
5333 cat > conftest.$ac_ext <<EOF | 5336 cat > conftest.$ac_ext <<EOF |
5334 #line 5335 "configure" | 5337 #line 5338 "configure" |
5335 #include "confdefs.h" | 5338 #include "confdefs.h" |
5336 /* Override any gcc2 internal prototype to avoid an error. */ | 5339 /* Override any gcc2 internal prototype to avoid an error. */ |
5337 /* We use char because int might match the return type of a gcc2 | 5340 /* We use char because int might match the return type of a gcc2 |
5338 builtin and then its argument prototype would still apply. */ | 5341 builtin and then its argument prototype would still apply. */ |
5339 char png_get_channels(); | 5342 char png_get_channels(); |
5340 | 5343 |
5341 int main() { | 5344 int main() { |
5342 png_get_channels() | 5345 png_get_channels() |
5343 ; return 0; } | 5346 ; return 0; } |
5344 EOF | 5347 EOF |
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5346 rm -rf conftest* | 5349 rm -rf conftest* |
5347 eval "ac_cv_lib_$ac_lib_var=yes" | 5350 eval "ac_cv_lib_$ac_lib_var=yes" |
5348 else | 5351 else |
5349 echo "configure: failed program was:" >&5 | 5352 echo "configure: failed program was:" >&5 |
5350 cat conftest.$ac_ext >&5 | 5353 cat conftest.$ac_ext >&5 |
5380 HAVE_TIFF=no | 5383 HAVE_TIFF=no |
5381 if test "${HAVE_X11}" = "yes"; then | 5384 if test "${HAVE_X11}" = "yes"; then |
5382 if test "${with_tiff}" != "no"; then | 5385 if test "${with_tiff}" != "no"; then |
5383 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 5386 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
5384 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 5387 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
5385 echo "configure:5386: checking for tiffio.h" >&5 | 5388 echo "configure:5389: checking for tiffio.h" >&5 |
5386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5387 echo $ac_n "(cached) $ac_c" 1>&6 | 5390 echo $ac_n "(cached) $ac_c" 1>&6 |
5388 else | 5391 else |
5389 cat > conftest.$ac_ext <<EOF | 5392 cat > conftest.$ac_ext <<EOF |
5390 #line 5391 "configure" | 5393 #line 5394 "configure" |
5391 #include "confdefs.h" | 5394 #include "confdefs.h" |
5392 #include <tiffio.h> | 5395 #include <tiffio.h> |
5393 EOF | 5396 EOF |
5394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5395 { (eval echo configure:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5398 { (eval echo configure:5399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5397 if test -z "$ac_err"; then | 5400 if test -z "$ac_err"; then |
5398 rm -rf conftest* | 5401 rm -rf conftest* |
5399 eval "ac_cv_header_$ac_safe=yes" | 5402 eval "ac_cv_header_$ac_safe=yes" |
5400 else | 5403 else |
5410 echo "$ac_t""yes" 1>&6 | 5413 echo "$ac_t""yes" 1>&6 |
5411 tifflibs="-lz -lm" | 5414 tifflibs="-lz -lm" |
5412 # At least one tiff package requires the jpeg library. | 5415 # At least one tiff package requires the jpeg library. |
5413 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 5416 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
5414 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 5417 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
5415 echo "configure:5416: checking for TIFFGetVersion in -ltiff" >&5 | 5418 echo "configure:5419: checking for TIFFGetVersion in -ltiff" >&5 |
5416 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 5419 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
5417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5418 echo $ac_n "(cached) $ac_c" 1>&6 | 5421 echo $ac_n "(cached) $ac_c" 1>&6 |
5419 else | 5422 else |
5420 ac_save_LIBS="$LIBS" | 5423 ac_save_LIBS="$LIBS" |
5421 LIBS="-ltiff $tifflibs $LIBS" | 5424 LIBS="-ltiff $tifflibs $LIBS" |
5422 cat > conftest.$ac_ext <<EOF | 5425 cat > conftest.$ac_ext <<EOF |
5423 #line 5424 "configure" | 5426 #line 5427 "configure" |
5424 #include "confdefs.h" | 5427 #include "confdefs.h" |
5425 /* Override any gcc2 internal prototype to avoid an error. */ | 5428 /* Override any gcc2 internal prototype to avoid an error. */ |
5426 /* We use char because int might match the return type of a gcc2 | 5429 /* We use char because int might match the return type of a gcc2 |
5427 builtin and then its argument prototype would still apply. */ | 5430 builtin and then its argument prototype would still apply. */ |
5428 char TIFFGetVersion(); | 5431 char TIFFGetVersion(); |
5429 | 5432 |
5430 int main() { | 5433 int main() { |
5431 TIFFGetVersion() | 5434 TIFFGetVersion() |
5432 ; return 0; } | 5435 ; return 0; } |
5433 EOF | 5436 EOF |
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5435 rm -rf conftest* | 5438 rm -rf conftest* |
5436 eval "ac_cv_lib_$ac_lib_var=yes" | 5439 eval "ac_cv_lib_$ac_lib_var=yes" |
5437 else | 5440 else |
5438 echo "configure: failed program was:" >&5 | 5441 echo "configure: failed program was:" >&5 |
5439 cat conftest.$ac_ext >&5 | 5442 cat conftest.$ac_ext >&5 |
5469 HAVE_GIF=no | 5472 HAVE_GIF=no |
5470 if test "${HAVE_X11}" = "yes"; then | 5473 if test "${HAVE_X11}" = "yes"; then |
5471 if test "${with_gif}" != "no"; then | 5474 if test "${with_gif}" != "no"; then |
5472 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 5475 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
5473 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 5476 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
5474 echo "configure:5475: checking for gif_lib.h" >&5 | 5477 echo "configure:5478: checking for gif_lib.h" >&5 |
5475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5476 echo $ac_n "(cached) $ac_c" 1>&6 | 5479 echo $ac_n "(cached) $ac_c" 1>&6 |
5477 else | 5480 else |
5478 cat > conftest.$ac_ext <<EOF | 5481 cat > conftest.$ac_ext <<EOF |
5479 #line 5480 "configure" | 5482 #line 5483 "configure" |
5480 #include "confdefs.h" | 5483 #include "confdefs.h" |
5481 #include <gif_lib.h> | 5484 #include <gif_lib.h> |
5482 EOF | 5485 EOF |
5483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5484 { (eval echo configure:5485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5487 { (eval echo configure:5488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5486 if test -z "$ac_err"; then | 5489 if test -z "$ac_err"; then |
5487 rm -rf conftest* | 5490 rm -rf conftest* |
5488 eval "ac_cv_header_$ac_safe=yes" | 5491 eval "ac_cv_header_$ac_safe=yes" |
5489 else | 5492 else |
5496 rm -f conftest* | 5499 rm -f conftest* |
5497 fi | 5500 fi |
5498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5499 echo "$ac_t""yes" 1>&6 | 5502 echo "$ac_t""yes" 1>&6 |
5500 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 5503 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
5501 echo "configure:5502: checking for DGifOpen in -lungif" >&5 | 5504 echo "configure:5505: checking for DGifOpen in -lungif" >&5 |
5502 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 5505 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
5503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5504 echo $ac_n "(cached) $ac_c" 1>&6 | 5507 echo $ac_n "(cached) $ac_c" 1>&6 |
5505 else | 5508 else |
5506 ac_save_LIBS="$LIBS" | 5509 ac_save_LIBS="$LIBS" |
5507 LIBS="-lungif $LIBS" | 5510 LIBS="-lungif $LIBS" |
5508 cat > conftest.$ac_ext <<EOF | 5511 cat > conftest.$ac_ext <<EOF |
5509 #line 5510 "configure" | 5512 #line 5513 "configure" |
5510 #include "confdefs.h" | 5513 #include "confdefs.h" |
5511 /* Override any gcc2 internal prototype to avoid an error. */ | 5514 /* Override any gcc2 internal prototype to avoid an error. */ |
5512 /* We use char because int might match the return type of a gcc2 | 5515 /* We use char because int might match the return type of a gcc2 |
5513 builtin and then its argument prototype would still apply. */ | 5516 builtin and then its argument prototype would still apply. */ |
5514 char DGifOpen(); | 5517 char DGifOpen(); |
5515 | 5518 |
5516 int main() { | 5519 int main() { |
5517 DGifOpen() | 5520 DGifOpen() |
5518 ; return 0; } | 5521 ; return 0; } |
5519 EOF | 5522 EOF |
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5521 rm -rf conftest* | 5524 rm -rf conftest* |
5522 eval "ac_cv_lib_$ac_lib_var=yes" | 5525 eval "ac_cv_lib_$ac_lib_var=yes" |
5523 else | 5526 else |
5524 echo "configure: failed program was:" >&5 | 5527 echo "configure: failed program was:" >&5 |
5525 cat conftest.$ac_ext >&5 | 5528 cat conftest.$ac_ext >&5 |
5551 fi | 5554 fi |
5552 fi | 5555 fi |
5553 | 5556 |
5554 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 5557 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
5555 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 5558 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
5556 echo "configure:5557: checking whether netdb declares h_errno" >&5 | 5559 echo "configure:5560: checking whether netdb declares h_errno" >&5 |
5557 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 5560 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
5558 echo $ac_n "(cached) $ac_c" 1>&6 | 5561 echo $ac_n "(cached) $ac_c" 1>&6 |
5559 else | 5562 else |
5560 cat > conftest.$ac_ext <<EOF | 5563 cat > conftest.$ac_ext <<EOF |
5561 #line 5562 "configure" | 5564 #line 5565 "configure" |
5562 #include "confdefs.h" | 5565 #include "confdefs.h" |
5563 #include <netdb.h> | 5566 #include <netdb.h> |
5564 int main() { | 5567 int main() { |
5565 return h_errno; | 5568 return h_errno; |
5566 ; return 0; } | 5569 ; return 0; } |
5567 EOF | 5570 EOF |
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5571 if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5569 rm -rf conftest* | 5572 rm -rf conftest* |
5570 emacs_cv_netdb_declares_h_errno=yes | 5573 emacs_cv_netdb_declares_h_errno=yes |
5571 else | 5574 else |
5572 echo "configure: failed program was:" >&5 | 5575 echo "configure: failed program was:" >&5 |
5573 cat conftest.$ac_ext >&5 | 5576 cat conftest.$ac_ext >&5 |
5586 fi | 5589 fi |
5587 | 5590 |
5588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 5591 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5589 # for constant arguments. Useless! | 5592 # for constant arguments. Useless! |
5590 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 5593 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
5591 echo "configure:5592: checking for working alloca.h" >&5 | 5594 echo "configure:5595: checking for working alloca.h" >&5 |
5592 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 5595 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5593 echo $ac_n "(cached) $ac_c" 1>&6 | 5596 echo $ac_n "(cached) $ac_c" 1>&6 |
5594 else | 5597 else |
5595 cat > conftest.$ac_ext <<EOF | 5598 cat > conftest.$ac_ext <<EOF |
5596 #line 5597 "configure" | 5599 #line 5600 "configure" |
5597 #include "confdefs.h" | 5600 #include "confdefs.h" |
5598 #include <alloca.h> | 5601 #include <alloca.h> |
5599 int main() { | 5602 int main() { |
5600 char *p = alloca(2 * sizeof(int)); | 5603 char *p = alloca(2 * sizeof(int)); |
5601 ; return 0; } | 5604 ; return 0; } |
5602 EOF | 5605 EOF |
5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5604 rm -rf conftest* | 5607 rm -rf conftest* |
5605 ac_cv_header_alloca_h=yes | 5608 ac_cv_header_alloca_h=yes |
5606 else | 5609 else |
5607 echo "configure: failed program was:" >&5 | 5610 echo "configure: failed program was:" >&5 |
5608 cat conftest.$ac_ext >&5 | 5611 cat conftest.$ac_ext >&5 |
5619 EOF | 5622 EOF |
5620 | 5623 |
5621 fi | 5624 fi |
5622 | 5625 |
5623 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 5626 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
5624 echo "configure:5625: checking for alloca" >&5 | 5627 echo "configure:5628: checking for alloca" >&5 |
5625 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 5628 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5626 echo $ac_n "(cached) $ac_c" 1>&6 | 5629 echo $ac_n "(cached) $ac_c" 1>&6 |
5627 else | 5630 else |
5628 cat > conftest.$ac_ext <<EOF | 5631 cat > conftest.$ac_ext <<EOF |
5629 #line 5630 "configure" | 5632 #line 5633 "configure" |
5630 #include "confdefs.h" | 5633 #include "confdefs.h" |
5631 | 5634 |
5632 #ifdef __GNUC__ | 5635 #ifdef __GNUC__ |
5633 # define alloca __builtin_alloca | 5636 # define alloca __builtin_alloca |
5634 #else | 5637 #else |
5652 | 5655 |
5653 int main() { | 5656 int main() { |
5654 char *p = (char *) alloca(1); | 5657 char *p = (char *) alloca(1); |
5655 ; return 0; } | 5658 ; return 0; } |
5656 EOF | 5659 EOF |
5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5658 rm -rf conftest* | 5661 rm -rf conftest* |
5659 ac_cv_func_alloca_works=yes | 5662 ac_cv_func_alloca_works=yes |
5660 else | 5663 else |
5661 echo "configure: failed program was:" >&5 | 5664 echo "configure: failed program was:" >&5 |
5662 cat conftest.$ac_ext >&5 | 5665 cat conftest.$ac_ext >&5 |
5684 #define C_ALLOCA 1 | 5687 #define C_ALLOCA 1 |
5685 EOF | 5688 EOF |
5686 | 5689 |
5687 | 5690 |
5688 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5691 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5689 echo "configure:5690: checking whether alloca needs Cray hooks" >&5 | 5692 echo "configure:5693: checking whether alloca needs Cray hooks" >&5 |
5690 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5693 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5691 echo $ac_n "(cached) $ac_c" 1>&6 | 5694 echo $ac_n "(cached) $ac_c" 1>&6 |
5692 else | 5695 else |
5693 cat > conftest.$ac_ext <<EOF | 5696 cat > conftest.$ac_ext <<EOF |
5694 #line 5695 "configure" | 5697 #line 5698 "configure" |
5695 #include "confdefs.h" | 5698 #include "confdefs.h" |
5696 #if defined(CRAY) && ! defined(CRAY2) | 5699 #if defined(CRAY) && ! defined(CRAY2) |
5697 webecray | 5700 webecray |
5698 #else | 5701 #else |
5699 wenotbecray | 5702 wenotbecray |
5714 | 5717 |
5715 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5718 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5716 if test $ac_cv_os_cray = yes; then | 5719 if test $ac_cv_os_cray = yes; then |
5717 for ac_func in _getb67 GETB67 getb67; do | 5720 for ac_func in _getb67 GETB67 getb67; do |
5718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5719 echo "configure:5720: checking for $ac_func" >&5 | 5722 echo "configure:5723: checking for $ac_func" >&5 |
5720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5721 echo $ac_n "(cached) $ac_c" 1>&6 | 5724 echo $ac_n "(cached) $ac_c" 1>&6 |
5722 else | 5725 else |
5723 cat > conftest.$ac_ext <<EOF | 5726 cat > conftest.$ac_ext <<EOF |
5724 #line 5725 "configure" | 5727 #line 5728 "configure" |
5725 #include "confdefs.h" | 5728 #include "confdefs.h" |
5726 /* System header to define __stub macros and hopefully few prototypes, | 5729 /* System header to define __stub macros and hopefully few prototypes, |
5727 which can conflict with char $ac_func(); below. */ | 5730 which can conflict with char $ac_func(); below. */ |
5728 #include <assert.h> | 5731 #include <assert.h> |
5729 /* Override any gcc2 internal prototype to avoid an error. */ | 5732 /* Override any gcc2 internal prototype to avoid an error. */ |
5742 $ac_func(); | 5745 $ac_func(); |
5743 #endif | 5746 #endif |
5744 | 5747 |
5745 ; return 0; } | 5748 ; return 0; } |
5746 EOF | 5749 EOF |
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5748 rm -rf conftest* | 5751 rm -rf conftest* |
5749 eval "ac_cv_func_$ac_func=yes" | 5752 eval "ac_cv_func_$ac_func=yes" |
5750 else | 5753 else |
5751 echo "configure: failed program was:" >&5 | 5754 echo "configure: failed program was:" >&5 |
5752 cat conftest.$ac_ext >&5 | 5755 cat conftest.$ac_ext >&5 |
5769 | 5772 |
5770 done | 5773 done |
5771 fi | 5774 fi |
5772 | 5775 |
5773 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5776 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5774 echo "configure:5775: checking stack direction for C alloca" >&5 | 5777 echo "configure:5778: checking stack direction for C alloca" >&5 |
5775 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5778 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5776 echo $ac_n "(cached) $ac_c" 1>&6 | 5779 echo $ac_n "(cached) $ac_c" 1>&6 |
5777 else | 5780 else |
5778 if test "$cross_compiling" = yes; then | 5781 if test "$cross_compiling" = yes; then |
5779 ac_cv_c_stack_direction=0 | 5782 ac_cv_c_stack_direction=0 |
5780 else | 5783 else |
5781 cat > conftest.$ac_ext <<EOF | 5784 cat > conftest.$ac_ext <<EOF |
5782 #line 5783 "configure" | 5785 #line 5786 "configure" |
5783 #include "confdefs.h" | 5786 #include "confdefs.h" |
5784 find_stack_direction () | 5787 find_stack_direction () |
5785 { | 5788 { |
5786 static char *addr = 0; | 5789 static char *addr = 0; |
5787 auto char dummy; | 5790 auto char dummy; |
5796 main () | 5799 main () |
5797 { | 5800 { |
5798 exit (find_stack_direction() < 0); | 5801 exit (find_stack_direction() < 0); |
5799 } | 5802 } |
5800 EOF | 5803 EOF |
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5802 then | 5805 then |
5803 ac_cv_c_stack_direction=1 | 5806 ac_cv_c_stack_direction=1 |
5804 else | 5807 else |
5805 echo "configure: failed program was:" >&5 | 5808 echo "configure: failed program was:" >&5 |
5806 cat conftest.$ac_ext >&5 | 5809 cat conftest.$ac_ext >&5 |
5821 | 5824 |
5822 | 5825 |
5823 # fmod, logb, and frexp are found in -lm on most systems. | 5826 # fmod, logb, and frexp are found in -lm on most systems. |
5824 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5827 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5825 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5828 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5826 echo "configure:5827: checking for sqrt in -lm" >&5 | 5829 echo "configure:5830: checking for sqrt in -lm" >&5 |
5827 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5830 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5829 echo $ac_n "(cached) $ac_c" 1>&6 | 5832 echo $ac_n "(cached) $ac_c" 1>&6 |
5830 else | 5833 else |
5831 ac_save_LIBS="$LIBS" | 5834 ac_save_LIBS="$LIBS" |
5832 LIBS="-lm $LIBS" | 5835 LIBS="-lm $LIBS" |
5833 cat > conftest.$ac_ext <<EOF | 5836 cat > conftest.$ac_ext <<EOF |
5834 #line 5835 "configure" | 5837 #line 5838 "configure" |
5835 #include "confdefs.h" | 5838 #include "confdefs.h" |
5836 /* Override any gcc2 internal prototype to avoid an error. */ | 5839 /* Override any gcc2 internal prototype to avoid an error. */ |
5837 /* We use char because int might match the return type of a gcc2 | 5840 /* We use char because int might match the return type of a gcc2 |
5838 builtin and then its argument prototype would still apply. */ | 5841 builtin and then its argument prototype would still apply. */ |
5839 char sqrt(); | 5842 char sqrt(); |
5840 | 5843 |
5841 int main() { | 5844 int main() { |
5842 sqrt() | 5845 sqrt() |
5843 ; return 0; } | 5846 ; return 0; } |
5844 EOF | 5847 EOF |
5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5846 rm -rf conftest* | 5849 rm -rf conftest* |
5847 eval "ac_cv_lib_$ac_lib_var=yes" | 5850 eval "ac_cv_lib_$ac_lib_var=yes" |
5848 else | 5851 else |
5849 echo "configure: failed program was:" >&5 | 5852 echo "configure: failed program was:" >&5 |
5850 cat conftest.$ac_ext >&5 | 5853 cat conftest.$ac_ext >&5 |
5870 fi | 5873 fi |
5871 | 5874 |
5872 | 5875 |
5873 # Check for mail-locking functions in a "mail" library | 5876 # Check for mail-locking functions in a "mail" library |
5874 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5877 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5875 echo "configure:5876: checking for maillock in -lmail" >&5 | 5878 echo "configure:5879: checking for maillock in -lmail" >&5 |
5876 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5879 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5878 echo $ac_n "(cached) $ac_c" 1>&6 | 5881 echo $ac_n "(cached) $ac_c" 1>&6 |
5879 else | 5882 else |
5880 ac_save_LIBS="$LIBS" | 5883 ac_save_LIBS="$LIBS" |
5881 LIBS="-lmail $LIBS" | 5884 LIBS="-lmail $LIBS" |
5882 cat > conftest.$ac_ext <<EOF | 5885 cat > conftest.$ac_ext <<EOF |
5883 #line 5884 "configure" | 5886 #line 5887 "configure" |
5884 #include "confdefs.h" | 5887 #include "confdefs.h" |
5885 /* Override any gcc2 internal prototype to avoid an error. */ | 5888 /* Override any gcc2 internal prototype to avoid an error. */ |
5886 /* We use char because int might match the return type of a gcc2 | 5889 /* We use char because int might match the return type of a gcc2 |
5887 builtin and then its argument prototype would still apply. */ | 5890 builtin and then its argument prototype would still apply. */ |
5888 char maillock(); | 5891 char maillock(); |
5889 | 5892 |
5890 int main() { | 5893 int main() { |
5891 maillock() | 5894 maillock() |
5892 ; return 0; } | 5895 ; return 0; } |
5893 EOF | 5896 EOF |
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5895 rm -rf conftest* | 5898 rm -rf conftest* |
5896 eval "ac_cv_lib_$ac_lib_var=yes" | 5899 eval "ac_cv_lib_$ac_lib_var=yes" |
5897 else | 5900 else |
5898 echo "configure: failed program was:" >&5 | 5901 echo "configure: failed program was:" >&5 |
5899 cat conftest.$ac_ext >&5 | 5902 cat conftest.$ac_ext >&5 |
5917 else | 5920 else |
5918 echo "$ac_t""no" 1>&6 | 5921 echo "$ac_t""no" 1>&6 |
5919 fi | 5922 fi |
5920 | 5923 |
5921 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5924 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5922 echo "configure:5923: checking for maillock in -llockfile" >&5 | 5925 echo "configure:5926: checking for maillock in -llockfile" >&5 |
5923 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5926 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5925 echo $ac_n "(cached) $ac_c" 1>&6 | 5928 echo $ac_n "(cached) $ac_c" 1>&6 |
5926 else | 5929 else |
5927 ac_save_LIBS="$LIBS" | 5930 ac_save_LIBS="$LIBS" |
5928 LIBS="-llockfile $LIBS" | 5931 LIBS="-llockfile $LIBS" |
5929 cat > conftest.$ac_ext <<EOF | 5932 cat > conftest.$ac_ext <<EOF |
5930 #line 5931 "configure" | 5933 #line 5934 "configure" |
5931 #include "confdefs.h" | 5934 #include "confdefs.h" |
5932 /* Override any gcc2 internal prototype to avoid an error. */ | 5935 /* Override any gcc2 internal prototype to avoid an error. */ |
5933 /* We use char because int might match the return type of a gcc2 | 5936 /* We use char because int might match the return type of a gcc2 |
5934 builtin and then its argument prototype would still apply. */ | 5937 builtin and then its argument prototype would still apply. */ |
5935 char maillock(); | 5938 char maillock(); |
5936 | 5939 |
5937 int main() { | 5940 int main() { |
5938 maillock() | 5941 maillock() |
5939 ; return 0; } | 5942 ; return 0; } |
5940 EOF | 5943 EOF |
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5942 rm -rf conftest* | 5945 rm -rf conftest* |
5943 eval "ac_cv_lib_$ac_lib_var=yes" | 5946 eval "ac_cv_lib_$ac_lib_var=yes" |
5944 else | 5947 else |
5945 echo "configure: failed program was:" >&5 | 5948 echo "configure: failed program was:" >&5 |
5946 cat conftest.$ac_ext >&5 | 5949 cat conftest.$ac_ext >&5 |
5970 # (no liblockfile.a installed), ensure that we don't need to. | 5973 # (no liblockfile.a installed), ensure that we don't need to. |
5971 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5974 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5972 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5975 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5973 set dummy liblockfile.so; ac_word=$2 | 5976 set dummy liblockfile.so; ac_word=$2 |
5974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5975 echo "configure:5976: checking for $ac_word" >&5 | 5978 echo "configure:5979: checking for $ac_word" >&5 |
5976 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5979 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5977 echo $ac_n "(cached) $ac_c" 1>&6 | 5980 echo $ac_n "(cached) $ac_c" 1>&6 |
5978 else | 5981 else |
5979 if test -n "$liblockfile"; then | 5982 if test -n "$liblockfile"; then |
5980 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5983 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
6011 else : | 6014 else : |
6012 fi | 6015 fi |
6013 for ac_func in touchlock | 6016 for ac_func in touchlock |
6014 do | 6017 do |
6015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6016 echo "configure:6017: checking for $ac_func" >&5 | 6019 echo "configure:6020: checking for $ac_func" >&5 |
6017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6018 echo $ac_n "(cached) $ac_c" 1>&6 | 6021 echo $ac_n "(cached) $ac_c" 1>&6 |
6019 else | 6022 else |
6020 cat > conftest.$ac_ext <<EOF | 6023 cat > conftest.$ac_ext <<EOF |
6021 #line 6022 "configure" | 6024 #line 6025 "configure" |
6022 #include "confdefs.h" | 6025 #include "confdefs.h" |
6023 /* System header to define __stub macros and hopefully few prototypes, | 6026 /* System header to define __stub macros and hopefully few prototypes, |
6024 which can conflict with char $ac_func(); below. */ | 6027 which can conflict with char $ac_func(); below. */ |
6025 #include <assert.h> | 6028 #include <assert.h> |
6026 /* Override any gcc2 internal prototype to avoid an error. */ | 6029 /* Override any gcc2 internal prototype to avoid an error. */ |
6039 $ac_func(); | 6042 $ac_func(); |
6040 #endif | 6043 #endif |
6041 | 6044 |
6042 ; return 0; } | 6045 ; return 0; } |
6043 EOF | 6046 EOF |
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6045 rm -rf conftest* | 6048 rm -rf conftest* |
6046 eval "ac_cv_func_$ac_func=yes" | 6049 eval "ac_cv_func_$ac_func=yes" |
6047 else | 6050 else |
6048 echo "configure: failed program was:" >&5 | 6051 echo "configure: failed program was:" >&5 |
6049 cat conftest.$ac_ext >&5 | 6052 cat conftest.$ac_ext >&5 |
6067 | 6070 |
6068 for ac_hdr in maillock.h | 6071 for ac_hdr in maillock.h |
6069 do | 6072 do |
6070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6072 echo "configure:6073: checking for $ac_hdr" >&5 | 6075 echo "configure:6076: checking for $ac_hdr" >&5 |
6073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6074 echo $ac_n "(cached) $ac_c" 1>&6 | 6077 echo $ac_n "(cached) $ac_c" 1>&6 |
6075 else | 6078 else |
6076 cat > conftest.$ac_ext <<EOF | 6079 cat > conftest.$ac_ext <<EOF |
6077 #line 6078 "configure" | 6080 #line 6081 "configure" |
6078 #include "confdefs.h" | 6081 #include "confdefs.h" |
6079 #include <$ac_hdr> | 6082 #include <$ac_hdr> |
6080 EOF | 6083 EOF |
6081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6082 { (eval echo configure:6083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6085 { (eval echo configure:6086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6084 if test -z "$ac_err"; then | 6087 if test -z "$ac_err"; then |
6085 rm -rf conftest* | 6088 rm -rf conftest* |
6086 eval "ac_cv_header_$ac_safe=yes" | 6089 eval "ac_cv_header_$ac_safe=yes" |
6087 else | 6090 else |
6113 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 6116 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
6114 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ | 6117 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
6115 gai_strerror mkstemp | 6118 gai_strerror mkstemp |
6116 do | 6119 do |
6117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6118 echo "configure:6119: checking for $ac_func" >&5 | 6121 echo "configure:6122: checking for $ac_func" >&5 |
6119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6120 echo $ac_n "(cached) $ac_c" 1>&6 | 6123 echo $ac_n "(cached) $ac_c" 1>&6 |
6121 else | 6124 else |
6122 cat > conftest.$ac_ext <<EOF | 6125 cat > conftest.$ac_ext <<EOF |
6123 #line 6124 "configure" | 6126 #line 6127 "configure" |
6124 #include "confdefs.h" | 6127 #include "confdefs.h" |
6125 /* System header to define __stub macros and hopefully few prototypes, | 6128 /* System header to define __stub macros and hopefully few prototypes, |
6126 which can conflict with char $ac_func(); below. */ | 6129 which can conflict with char $ac_func(); below. */ |
6127 #include <assert.h> | 6130 #include <assert.h> |
6128 /* Override any gcc2 internal prototype to avoid an error. */ | 6131 /* Override any gcc2 internal prototype to avoid an error. */ |
6141 $ac_func(); | 6144 $ac_func(); |
6142 #endif | 6145 #endif |
6143 | 6146 |
6144 ; return 0; } | 6147 ; return 0; } |
6145 EOF | 6148 EOF |
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6147 rm -rf conftest* | 6150 rm -rf conftest* |
6148 eval "ac_cv_func_$ac_func=yes" | 6151 eval "ac_cv_func_$ac_func=yes" |
6149 else | 6152 else |
6150 echo "configure: failed program was:" >&5 | 6153 echo "configure: failed program was:" >&5 |
6151 cat conftest.$ac_ext >&5 | 6154 cat conftest.$ac_ext >&5 |
6170 | 6173 |
6171 for ac_hdr in sys/time.h unistd.h | 6174 for ac_hdr in sys/time.h unistd.h |
6172 do | 6175 do |
6173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6175 echo "configure:6176: checking for $ac_hdr" >&5 | 6178 echo "configure:6179: checking for $ac_hdr" >&5 |
6176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6177 echo $ac_n "(cached) $ac_c" 1>&6 | 6180 echo $ac_n "(cached) $ac_c" 1>&6 |
6178 else | 6181 else |
6179 cat > conftest.$ac_ext <<EOF | 6182 cat > conftest.$ac_ext <<EOF |
6180 #line 6181 "configure" | 6183 #line 6184 "configure" |
6181 #include "confdefs.h" | 6184 #include "confdefs.h" |
6182 #include <$ac_hdr> | 6185 #include <$ac_hdr> |
6183 EOF | 6186 EOF |
6184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6185 { (eval echo configure:6186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6187 if test -z "$ac_err"; then | 6190 if test -z "$ac_err"; then |
6188 rm -rf conftest* | 6191 rm -rf conftest* |
6189 eval "ac_cv_header_$ac_safe=yes" | 6192 eval "ac_cv_header_$ac_safe=yes" |
6190 else | 6193 else |
6209 done | 6212 done |
6210 | 6213 |
6211 for ac_func in alarm | 6214 for ac_func in alarm |
6212 do | 6215 do |
6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6214 echo "configure:6215: checking for $ac_func" >&5 | 6217 echo "configure:6218: checking for $ac_func" >&5 |
6215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6216 echo $ac_n "(cached) $ac_c" 1>&6 | 6219 echo $ac_n "(cached) $ac_c" 1>&6 |
6217 else | 6220 else |
6218 cat > conftest.$ac_ext <<EOF | 6221 cat > conftest.$ac_ext <<EOF |
6219 #line 6220 "configure" | 6222 #line 6223 "configure" |
6220 #include "confdefs.h" | 6223 #include "confdefs.h" |
6221 /* System header to define __stub macros and hopefully few prototypes, | 6224 /* System header to define __stub macros and hopefully few prototypes, |
6222 which can conflict with char $ac_func(); below. */ | 6225 which can conflict with char $ac_func(); below. */ |
6223 #include <assert.h> | 6226 #include <assert.h> |
6224 /* Override any gcc2 internal prototype to avoid an error. */ | 6227 /* Override any gcc2 internal prototype to avoid an error. */ |
6237 $ac_func(); | 6240 $ac_func(); |
6238 #endif | 6241 #endif |
6239 | 6242 |
6240 ; return 0; } | 6243 ; return 0; } |
6241 EOF | 6244 EOF |
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6243 rm -rf conftest* | 6246 rm -rf conftest* |
6244 eval "ac_cv_func_$ac_func=yes" | 6247 eval "ac_cv_func_$ac_func=yes" |
6245 else | 6248 else |
6246 echo "configure: failed program was:" >&5 | 6249 echo "configure: failed program was:" >&5 |
6247 cat conftest.$ac_ext >&5 | 6250 cat conftest.$ac_ext >&5 |
6262 echo "$ac_t""no" 1>&6 | 6265 echo "$ac_t""no" 1>&6 |
6263 fi | 6266 fi |
6264 done | 6267 done |
6265 | 6268 |
6266 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 6269 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
6267 echo "configure:6268: checking for working mktime" >&5 | 6270 echo "configure:6271: checking for working mktime" >&5 |
6268 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 6271 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
6269 echo $ac_n "(cached) $ac_c" 1>&6 | 6272 echo $ac_n "(cached) $ac_c" 1>&6 |
6270 else | 6273 else |
6271 if test "$cross_compiling" = yes; then | 6274 if test "$cross_compiling" = yes; then |
6272 ac_cv_func_working_mktime=no | 6275 ac_cv_func_working_mktime=no |
6273 else | 6276 else |
6274 cat > conftest.$ac_ext <<EOF | 6277 cat > conftest.$ac_ext <<EOF |
6275 #line 6276 "configure" | 6278 #line 6279 "configure" |
6276 #include "confdefs.h" | 6279 #include "confdefs.h" |
6277 /* Test program from Paul Eggert (eggert@twinsun.com) | 6280 /* Test program from Paul Eggert (eggert@twinsun.com) |
6278 and Tony Leneis (tony@plaza.ds.adp.com). */ | 6281 and Tony Leneis (tony@plaza.ds.adp.com). */ |
6279 #if TIME_WITH_SYS_TIME | 6282 #if TIME_WITH_SYS_TIME |
6280 # include <sys/time.h> | 6283 # include <sys/time.h> |
6419 irix_6_4_bug (); | 6422 irix_6_4_bug (); |
6420 spring_forward_gap (); | 6423 spring_forward_gap (); |
6421 exit (0); | 6424 exit (0); |
6422 } | 6425 } |
6423 EOF | 6426 EOF |
6424 if { (eval echo configure:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6425 then | 6428 then |
6426 ac_cv_func_working_mktime=yes | 6429 ac_cv_func_working_mktime=yes |
6427 else | 6430 else |
6428 echo "configure: failed program was:" >&5 | 6431 echo "configure: failed program was:" >&5 |
6429 cat conftest.$ac_ext >&5 | 6432 cat conftest.$ac_ext >&5 |
6451 | 6454 |
6452 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 6455 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
6453 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 6456 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
6454 # to get the right answer into the cache. | 6457 # to get the right answer into the cache. |
6455 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 6458 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
6456 echo "configure:6457: checking for elf_begin in -lelf" >&5 | 6459 echo "configure:6460: checking for elf_begin in -lelf" >&5 |
6457 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 6460 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
6458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6459 echo $ac_n "(cached) $ac_c" 1>&6 | 6462 echo $ac_n "(cached) $ac_c" 1>&6 |
6460 else | 6463 else |
6461 ac_save_LIBS="$LIBS" | 6464 ac_save_LIBS="$LIBS" |
6462 LIBS="-lelf $LIBS" | 6465 LIBS="-lelf $LIBS" |
6463 cat > conftest.$ac_ext <<EOF | 6466 cat > conftest.$ac_ext <<EOF |
6464 #line 6465 "configure" | 6467 #line 6468 "configure" |
6465 #include "confdefs.h" | 6468 #include "confdefs.h" |
6466 /* Override any gcc2 internal prototype to avoid an error. */ | 6469 /* Override any gcc2 internal prototype to avoid an error. */ |
6467 /* We use char because int might match the return type of a gcc2 | 6470 /* We use char because int might match the return type of a gcc2 |
6468 builtin and then its argument prototype would still apply. */ | 6471 builtin and then its argument prototype would still apply. */ |
6469 char elf_begin(); | 6472 char elf_begin(); |
6470 | 6473 |
6471 int main() { | 6474 int main() { |
6472 elf_begin() | 6475 elf_begin() |
6473 ; return 0; } | 6476 ; return 0; } |
6474 EOF | 6477 EOF |
6475 if { (eval echo configure:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6476 rm -rf conftest* | 6479 rm -rf conftest* |
6477 eval "ac_cv_lib_$ac_lib_var=yes" | 6480 eval "ac_cv_lib_$ac_lib_var=yes" |
6478 else | 6481 else |
6479 echo "configure: failed program was:" >&5 | 6482 echo "configure: failed program was:" >&5 |
6480 cat conftest.$ac_ext >&5 | 6483 cat conftest.$ac_ext >&5 |
6491 else | 6494 else |
6492 echo "$ac_t""no" 1>&6 | 6495 echo "$ac_t""no" 1>&6 |
6493 fi | 6496 fi |
6494 | 6497 |
6495 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 6498 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
6496 echo "configure:6497: checking for kvm_open in -lkvm" >&5 | 6499 echo "configure:6500: checking for kvm_open in -lkvm" >&5 |
6497 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 6500 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
6498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6499 echo $ac_n "(cached) $ac_c" 1>&6 | 6502 echo $ac_n "(cached) $ac_c" 1>&6 |
6500 else | 6503 else |
6501 ac_save_LIBS="$LIBS" | 6504 ac_save_LIBS="$LIBS" |
6502 LIBS="-lkvm $LIBS" | 6505 LIBS="-lkvm $LIBS" |
6503 cat > conftest.$ac_ext <<EOF | 6506 cat > conftest.$ac_ext <<EOF |
6504 #line 6505 "configure" | 6507 #line 6508 "configure" |
6505 #include "confdefs.h" | 6508 #include "confdefs.h" |
6506 /* Override any gcc2 internal prototype to avoid an error. */ | 6509 /* Override any gcc2 internal prototype to avoid an error. */ |
6507 /* We use char because int might match the return type of a gcc2 | 6510 /* We use char because int might match the return type of a gcc2 |
6508 builtin and then its argument prototype would still apply. */ | 6511 builtin and then its argument prototype would still apply. */ |
6509 char kvm_open(); | 6512 char kvm_open(); |
6510 | 6513 |
6511 int main() { | 6514 int main() { |
6512 kvm_open() | 6515 kvm_open() |
6513 ; return 0; } | 6516 ; return 0; } |
6514 EOF | 6517 EOF |
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6516 rm -rf conftest* | 6519 rm -rf conftest* |
6517 eval "ac_cv_lib_$ac_lib_var=yes" | 6520 eval "ac_cv_lib_$ac_lib_var=yes" |
6518 else | 6521 else |
6519 echo "configure: failed program was:" >&5 | 6522 echo "configure: failed program was:" >&5 |
6520 cat conftest.$ac_ext >&5 | 6523 cat conftest.$ac_ext >&5 |
6532 echo "$ac_t""no" 1>&6 | 6535 echo "$ac_t""no" 1>&6 |
6533 fi | 6536 fi |
6534 | 6537 |
6535 # Check for the 4.4BSD definition of getloadavg. | 6538 # Check for the 4.4BSD definition of getloadavg. |
6536 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 6539 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
6537 echo "configure:6538: checking for getloadavg in -lutil" >&5 | 6540 echo "configure:6541: checking for getloadavg in -lutil" >&5 |
6538 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 6541 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
6539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6540 echo $ac_n "(cached) $ac_c" 1>&6 | 6543 echo $ac_n "(cached) $ac_c" 1>&6 |
6541 else | 6544 else |
6542 ac_save_LIBS="$LIBS" | 6545 ac_save_LIBS="$LIBS" |
6543 LIBS="-lutil $LIBS" | 6546 LIBS="-lutil $LIBS" |
6544 cat > conftest.$ac_ext <<EOF | 6547 cat > conftest.$ac_ext <<EOF |
6545 #line 6546 "configure" | 6548 #line 6549 "configure" |
6546 #include "confdefs.h" | 6549 #include "confdefs.h" |
6547 /* Override any gcc2 internal prototype to avoid an error. */ | 6550 /* Override any gcc2 internal prototype to avoid an error. */ |
6548 /* We use char because int might match the return type of a gcc2 | 6551 /* We use char because int might match the return type of a gcc2 |
6549 builtin and then its argument prototype would still apply. */ | 6552 builtin and then its argument prototype would still apply. */ |
6550 char getloadavg(); | 6553 char getloadavg(); |
6551 | 6554 |
6552 int main() { | 6555 int main() { |
6553 getloadavg() | 6556 getloadavg() |
6554 ; return 0; } | 6557 ; return 0; } |
6555 EOF | 6558 EOF |
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6557 rm -rf conftest* | 6560 rm -rf conftest* |
6558 eval "ac_cv_lib_$ac_lib_var=yes" | 6561 eval "ac_cv_lib_$ac_lib_var=yes" |
6559 else | 6562 else |
6560 echo "configure: failed program was:" >&5 | 6563 echo "configure: failed program was:" >&5 |
6561 cat conftest.$ac_ext >&5 | 6564 cat conftest.$ac_ext >&5 |
6577 if test $ac_have_func = no; then | 6580 if test $ac_have_func = no; then |
6578 # There is a commonly available library for RS/6000 AIX. | 6581 # There is a commonly available library for RS/6000 AIX. |
6579 # Since it is not a standard part of AIX, it might be installed locally. | 6582 # Since it is not a standard part of AIX, it might be installed locally. |
6580 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 6583 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
6581 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 6584 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
6582 echo "configure:6583: checking for getloadavg in -lgetloadavg" >&5 | 6585 echo "configure:6586: checking for getloadavg in -lgetloadavg" >&5 |
6583 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 6586 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
6584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6585 echo $ac_n "(cached) $ac_c" 1>&6 | 6588 echo $ac_n "(cached) $ac_c" 1>&6 |
6586 else | 6589 else |
6587 ac_save_LIBS="$LIBS" | 6590 ac_save_LIBS="$LIBS" |
6588 LIBS="-lgetloadavg $LIBS" | 6591 LIBS="-lgetloadavg $LIBS" |
6589 cat > conftest.$ac_ext <<EOF | 6592 cat > conftest.$ac_ext <<EOF |
6590 #line 6591 "configure" | 6593 #line 6594 "configure" |
6591 #include "confdefs.h" | 6594 #include "confdefs.h" |
6592 /* Override any gcc2 internal prototype to avoid an error. */ | 6595 /* Override any gcc2 internal prototype to avoid an error. */ |
6593 /* We use char because int might match the return type of a gcc2 | 6596 /* We use char because int might match the return type of a gcc2 |
6594 builtin and then its argument prototype would still apply. */ | 6597 builtin and then its argument prototype would still apply. */ |
6595 char getloadavg(); | 6598 char getloadavg(); |
6596 | 6599 |
6597 int main() { | 6600 int main() { |
6598 getloadavg() | 6601 getloadavg() |
6599 ; return 0; } | 6602 ; return 0; } |
6600 EOF | 6603 EOF |
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6602 rm -rf conftest* | 6605 rm -rf conftest* |
6603 eval "ac_cv_lib_$ac_lib_var=yes" | 6606 eval "ac_cv_lib_$ac_lib_var=yes" |
6604 else | 6607 else |
6605 echo "configure: failed program was:" >&5 | 6608 echo "configure: failed program was:" >&5 |
6606 cat conftest.$ac_ext >&5 | 6609 cat conftest.$ac_ext >&5 |
6623 | 6626 |
6624 # Make sure it is really in the library, if we think we found it. | 6627 # Make sure it is really in the library, if we think we found it. |
6625 for ac_func in getloadavg | 6628 for ac_func in getloadavg |
6626 do | 6629 do |
6627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6628 echo "configure:6629: checking for $ac_func" >&5 | 6631 echo "configure:6632: checking for $ac_func" >&5 |
6629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6630 echo $ac_n "(cached) $ac_c" 1>&6 | 6633 echo $ac_n "(cached) $ac_c" 1>&6 |
6631 else | 6634 else |
6632 cat > conftest.$ac_ext <<EOF | 6635 cat > conftest.$ac_ext <<EOF |
6633 #line 6634 "configure" | 6636 #line 6637 "configure" |
6634 #include "confdefs.h" | 6637 #include "confdefs.h" |
6635 /* System header to define __stub macros and hopefully few prototypes, | 6638 /* System header to define __stub macros and hopefully few prototypes, |
6636 which can conflict with char $ac_func(); below. */ | 6639 which can conflict with char $ac_func(); below. */ |
6637 #include <assert.h> | 6640 #include <assert.h> |
6638 /* Override any gcc2 internal prototype to avoid an error. */ | 6641 /* Override any gcc2 internal prototype to avoid an error. */ |
6651 $ac_func(); | 6654 $ac_func(); |
6652 #endif | 6655 #endif |
6653 | 6656 |
6654 ; return 0; } | 6657 ; return 0; } |
6655 EOF | 6658 EOF |
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6657 rm -rf conftest* | 6660 rm -rf conftest* |
6658 eval "ac_cv_func_$ac_func=yes" | 6661 eval "ac_cv_func_$ac_func=yes" |
6659 else | 6662 else |
6660 echo "configure: failed program was:" >&5 | 6663 echo "configure: failed program was:" >&5 |
6661 cat conftest.$ac_ext >&5 | 6664 cat conftest.$ac_ext >&5 |
6689 else | 6692 else |
6690 # Figure out what our getloadavg.c needs. | 6693 # Figure out what our getloadavg.c needs. |
6691 ac_have_func=no | 6694 ac_have_func=no |
6692 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 6695 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
6693 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 6696 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
6694 echo "configure:6695: checking for sys/dg_sys_info.h" >&5 | 6697 echo "configure:6698: checking for sys/dg_sys_info.h" >&5 |
6695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6696 echo $ac_n "(cached) $ac_c" 1>&6 | 6699 echo $ac_n "(cached) $ac_c" 1>&6 |
6697 else | 6700 else |
6698 cat > conftest.$ac_ext <<EOF | 6701 cat > conftest.$ac_ext <<EOF |
6699 #line 6700 "configure" | 6702 #line 6703 "configure" |
6700 #include "confdefs.h" | 6703 #include "confdefs.h" |
6701 #include <sys/dg_sys_info.h> | 6704 #include <sys/dg_sys_info.h> |
6702 EOF | 6705 EOF |
6703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6704 { (eval echo configure:6705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6707 { (eval echo configure:6708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6706 if test -z "$ac_err"; then | 6709 if test -z "$ac_err"; then |
6707 rm -rf conftest* | 6710 rm -rf conftest* |
6708 eval "ac_cv_header_$ac_safe=yes" | 6711 eval "ac_cv_header_$ac_safe=yes" |
6709 else | 6712 else |
6720 ac_have_func=yes; cat >> confdefs.h <<\EOF | 6723 ac_have_func=yes; cat >> confdefs.h <<\EOF |
6721 #define DGUX 1 | 6724 #define DGUX 1 |
6722 EOF | 6725 EOF |
6723 | 6726 |
6724 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 6727 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
6725 echo "configure:6726: checking for dg_sys_info in -ldgc" >&5 | 6728 echo "configure:6729: checking for dg_sys_info in -ldgc" >&5 |
6726 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 6729 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6728 echo $ac_n "(cached) $ac_c" 1>&6 | 6731 echo $ac_n "(cached) $ac_c" 1>&6 |
6729 else | 6732 else |
6730 ac_save_LIBS="$LIBS" | 6733 ac_save_LIBS="$LIBS" |
6731 LIBS="-ldgc $LIBS" | 6734 LIBS="-ldgc $LIBS" |
6732 cat > conftest.$ac_ext <<EOF | 6735 cat > conftest.$ac_ext <<EOF |
6733 #line 6734 "configure" | 6736 #line 6737 "configure" |
6734 #include "confdefs.h" | 6737 #include "confdefs.h" |
6735 /* Override any gcc2 internal prototype to avoid an error. */ | 6738 /* Override any gcc2 internal prototype to avoid an error. */ |
6736 /* We use char because int might match the return type of a gcc2 | 6739 /* We use char because int might match the return type of a gcc2 |
6737 builtin and then its argument prototype would still apply. */ | 6740 builtin and then its argument prototype would still apply. */ |
6738 char dg_sys_info(); | 6741 char dg_sys_info(); |
6739 | 6742 |
6740 int main() { | 6743 int main() { |
6741 dg_sys_info() | 6744 dg_sys_info() |
6742 ; return 0; } | 6745 ; return 0; } |
6743 EOF | 6746 EOF |
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6745 rm -rf conftest* | 6748 rm -rf conftest* |
6746 eval "ac_cv_lib_$ac_lib_var=yes" | 6749 eval "ac_cv_lib_$ac_lib_var=yes" |
6747 else | 6750 else |
6748 echo "configure: failed program was:" >&5 | 6751 echo "configure: failed program was:" >&5 |
6749 cat conftest.$ac_ext >&5 | 6752 cat conftest.$ac_ext >&5 |
6784 fi | 6787 fi |
6785 | 6788 |
6786 if test $ac_have_func = no; then | 6789 if test $ac_have_func = no; then |
6787 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 6790 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
6788 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 6791 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
6789 echo "configure:6790: checking for inq_stats/cpustats.h" >&5 | 6792 echo "configure:6793: checking for inq_stats/cpustats.h" >&5 |
6790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6791 echo $ac_n "(cached) $ac_c" 1>&6 | 6794 echo $ac_n "(cached) $ac_c" 1>&6 |
6792 else | 6795 else |
6793 cat > conftest.$ac_ext <<EOF | 6796 cat > conftest.$ac_ext <<EOF |
6794 #line 6795 "configure" | 6797 #line 6798 "configure" |
6795 #include "confdefs.h" | 6798 #include "confdefs.h" |
6796 #include <inq_stats/cpustats.h> | 6799 #include <inq_stats/cpustats.h> |
6797 EOF | 6800 EOF |
6798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6799 { (eval echo configure:6800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6802 { (eval echo configure:6803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6801 if test -z "$ac_err"; then | 6804 if test -z "$ac_err"; then |
6802 rm -rf conftest* | 6805 rm -rf conftest* |
6803 eval "ac_cv_header_$ac_safe=yes" | 6806 eval "ac_cv_header_$ac_safe=yes" |
6804 else | 6807 else |
6827 fi | 6830 fi |
6828 | 6831 |
6829 if test $ac_have_func = no; then | 6832 if test $ac_have_func = no; then |
6830 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 6833 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
6831 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 6834 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
6832 echo "configure:6833: checking for sys/cpustats.h" >&5 | 6835 echo "configure:6836: checking for sys/cpustats.h" >&5 |
6833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6834 echo $ac_n "(cached) $ac_c" 1>&6 | 6837 echo $ac_n "(cached) $ac_c" 1>&6 |
6835 else | 6838 else |
6836 cat > conftest.$ac_ext <<EOF | 6839 cat > conftest.$ac_ext <<EOF |
6837 #line 6838 "configure" | 6840 #line 6841 "configure" |
6838 #include "confdefs.h" | 6841 #include "confdefs.h" |
6839 #include <sys/cpustats.h> | 6842 #include <sys/cpustats.h> |
6840 EOF | 6843 EOF |
6841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6842 { (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6845 { (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6844 if test -z "$ac_err"; then | 6847 if test -z "$ac_err"; then |
6845 rm -rf conftest* | 6848 rm -rf conftest* |
6846 eval "ac_cv_header_$ac_safe=yes" | 6849 eval "ac_cv_header_$ac_safe=yes" |
6847 else | 6850 else |
6868 if test $ac_have_func = no; then | 6871 if test $ac_have_func = no; then |
6869 for ac_hdr in mach/mach.h | 6872 for ac_hdr in mach/mach.h |
6870 do | 6873 do |
6871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6873 echo "configure:6874: checking for $ac_hdr" >&5 | 6876 echo "configure:6877: checking for $ac_hdr" >&5 |
6874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6875 echo $ac_n "(cached) $ac_c" 1>&6 | 6878 echo $ac_n "(cached) $ac_c" 1>&6 |
6876 else | 6879 else |
6877 cat > conftest.$ac_ext <<EOF | 6880 cat > conftest.$ac_ext <<EOF |
6878 #line 6879 "configure" | 6881 #line 6882 "configure" |
6879 #include "confdefs.h" | 6882 #include "confdefs.h" |
6880 #include <$ac_hdr> | 6883 #include <$ac_hdr> |
6881 EOF | 6884 EOF |
6882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6883 { (eval echo configure:6884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6886 { (eval echo configure:6887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6885 if test -z "$ac_err"; then | 6888 if test -z "$ac_err"; then |
6886 rm -rf conftest* | 6889 rm -rf conftest* |
6887 eval "ac_cv_header_$ac_safe=yes" | 6890 eval "ac_cv_header_$ac_safe=yes" |
6888 else | 6891 else |
6908 | 6911 |
6909 fi | 6912 fi |
6910 | 6913 |
6911 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 6914 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
6912 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 6915 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
6913 echo "configure:6914: checking for nlist.h" >&5 | 6916 echo "configure:6917: checking for nlist.h" >&5 |
6914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6915 echo $ac_n "(cached) $ac_c" 1>&6 | 6918 echo $ac_n "(cached) $ac_c" 1>&6 |
6916 else | 6919 else |
6917 cat > conftest.$ac_ext <<EOF | 6920 cat > conftest.$ac_ext <<EOF |
6918 #line 6919 "configure" | 6921 #line 6922 "configure" |
6919 #include "confdefs.h" | 6922 #include "confdefs.h" |
6920 #include <nlist.h> | 6923 #include <nlist.h> |
6921 EOF | 6924 EOF |
6922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6923 { (eval echo configure:6924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6926 { (eval echo configure:6927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6925 if test -z "$ac_err"; then | 6928 if test -z "$ac_err"; then |
6926 rm -rf conftest* | 6929 rm -rf conftest* |
6927 eval "ac_cv_header_$ac_safe=yes" | 6930 eval "ac_cv_header_$ac_safe=yes" |
6928 else | 6931 else |
6939 cat >> confdefs.h <<\EOF | 6942 cat >> confdefs.h <<\EOF |
6940 #define NLIST_STRUCT 1 | 6943 #define NLIST_STRUCT 1 |
6941 EOF | 6944 EOF |
6942 | 6945 |
6943 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 6946 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
6944 echo "configure:6945: checking for n_un in struct nlist" >&5 | 6947 echo "configure:6948: checking for n_un in struct nlist" >&5 |
6945 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 6948 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6946 echo $ac_n "(cached) $ac_c" 1>&6 | 6949 echo $ac_n "(cached) $ac_c" 1>&6 |
6947 else | 6950 else |
6948 cat > conftest.$ac_ext <<EOF | 6951 cat > conftest.$ac_ext <<EOF |
6949 #line 6950 "configure" | 6952 #line 6953 "configure" |
6950 #include "confdefs.h" | 6953 #include "confdefs.h" |
6951 #include <nlist.h> | 6954 #include <nlist.h> |
6952 int main() { | 6955 int main() { |
6953 struct nlist n; n.n_un.n_name = 0; | 6956 struct nlist n; n.n_un.n_name = 0; |
6954 ; return 0; } | 6957 ; return 0; } |
6955 EOF | 6958 EOF |
6956 if { (eval echo configure:6957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6959 if { (eval echo configure:6960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6957 rm -rf conftest* | 6960 rm -rf conftest* |
6958 ac_cv_struct_nlist_n_un=yes | 6961 ac_cv_struct_nlist_n_un=yes |
6959 else | 6962 else |
6960 echo "configure: failed program was:" >&5 | 6963 echo "configure: failed program was:" >&5 |
6961 cat conftest.$ac_ext >&5 | 6964 cat conftest.$ac_ext >&5 |
6978 fi | 6981 fi |
6979 fi # Do not have getloadavg in system libraries. | 6982 fi # Do not have getloadavg in system libraries. |
6980 | 6983 |
6981 # Some definitions of getloadavg require that the program be installed setgid. | 6984 # Some definitions of getloadavg require that the program be installed setgid. |
6982 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 6985 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
6983 echo "configure:6984: checking whether getloadavg requires setgid" >&5 | 6986 echo "configure:6987: checking whether getloadavg requires setgid" >&5 |
6984 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 6987 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6985 echo $ac_n "(cached) $ac_c" 1>&6 | 6988 echo $ac_n "(cached) $ac_c" 1>&6 |
6986 else | 6989 else |
6987 cat > conftest.$ac_ext <<EOF | 6990 cat > conftest.$ac_ext <<EOF |
6988 #line 6989 "configure" | 6991 #line 6992 "configure" |
6989 #include "confdefs.h" | 6992 #include "confdefs.h" |
6990 #include "$srcdir/getloadavg.c" | 6993 #include "$srcdir/getloadavg.c" |
6991 #ifdef LDAV_PRIVILEGED | 6994 #ifdef LDAV_PRIVILEGED |
6992 Yowza Am I SETGID yet | 6995 Yowza Am I SETGID yet |
6993 #endif | 6996 #endif |
7014 NEED_SETGID=false | 7017 NEED_SETGID=false |
7015 fi | 7018 fi |
7016 | 7019 |
7017 if test $ac_cv_func_getloadavg_setgid = yes; then | 7020 if test $ac_cv_func_getloadavg_setgid = yes; then |
7018 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 7021 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
7019 echo "configure:7020: checking group of /dev/kmem" >&5 | 7022 echo "configure:7023: checking group of /dev/kmem" >&5 |
7020 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 7023 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
7021 echo $ac_n "(cached) $ac_c" 1>&6 | 7024 echo $ac_n "(cached) $ac_c" 1>&6 |
7022 else | 7025 else |
7023 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 7026 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
7024 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 7027 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
7035 KMEM_GROUP=$ac_cv_group_kmem | 7038 KMEM_GROUP=$ac_cv_group_kmem |
7036 fi | 7039 fi |
7037 | 7040 |
7038 | 7041 |
7039 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 7042 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 |
7040 echo "configure:7041: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 7043 echo "configure:7044: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
7041 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 7044 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
7042 echo $ac_n "(cached) $ac_c" 1>&6 | 7045 echo $ac_n "(cached) $ac_c" 1>&6 |
7043 else | 7046 else |
7044 ac_cv_sys_largefile_source=no | 7047 ac_cv_sys_largefile_source=no |
7045 cat > conftest.$ac_ext <<EOF | 7048 cat > conftest.$ac_ext <<EOF |
7046 #line 7047 "configure" | 7049 #line 7050 "configure" |
7047 #include "confdefs.h" | 7050 #include "confdefs.h" |
7048 #include <stdio.h> | 7051 #include <stdio.h> |
7049 int main() { | 7052 int main() { |
7050 return !fseeko; | 7053 return !fseeko; |
7051 ; return 0; } | 7054 ; return 0; } |
7052 EOF | 7055 EOF |
7053 if { (eval echo configure:7054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7056 if { (eval echo configure:7057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7054 : | 7057 : |
7055 else | 7058 else |
7056 echo "configure: failed program was:" >&5 | 7059 echo "configure: failed program was:" >&5 |
7057 cat conftest.$ac_ext >&5 | 7060 cat conftest.$ac_ext >&5 |
7058 rm -rf conftest* | 7061 rm -rf conftest* |
7059 cat > conftest.$ac_ext <<EOF | 7062 cat > conftest.$ac_ext <<EOF |
7060 #line 7061 "configure" | 7063 #line 7064 "configure" |
7061 #include "confdefs.h" | 7064 #include "confdefs.h" |
7062 #define _LARGEFILE_SOURCE 1 | 7065 #define _LARGEFILE_SOURCE 1 |
7063 #include <stdio.h> | 7066 #include <stdio.h> |
7064 | 7067 |
7065 int main() { | 7068 int main() { |
7066 return !fseeko; | 7069 return !fseeko; |
7067 ; return 0; } | 7070 ; return 0; } |
7068 EOF | 7071 EOF |
7069 if { (eval echo configure:7070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7072 if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7070 rm -rf conftest* | 7073 rm -rf conftest* |
7071 ac_cv_sys_largefile_source=1 | 7074 ac_cv_sys_largefile_source=1 |
7072 else | 7075 else |
7073 echo "configure: failed program was:" >&5 | 7076 echo "configure: failed program was:" >&5 |
7074 cat conftest.$ac_ext >&5 | 7077 cat conftest.$ac_ext >&5 |
7088 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 7091 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
7089 # in glibc 2.1.3, but that breaks too many other things. | 7092 # in glibc 2.1.3, but that breaks too many other things. |
7090 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 7093 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
7091 | 7094 |
7092 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 | 7095 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 |
7093 echo "configure:7094: checking for fseeko" >&5 | 7096 echo "configure:7097: checking for fseeko" >&5 |
7094 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then | 7097 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then |
7095 echo $ac_n "(cached) $ac_c" 1>&6 | 7098 echo $ac_n "(cached) $ac_c" 1>&6 |
7096 else | 7099 else |
7097 ac_cv_func_fseeko=no | 7100 ac_cv_func_fseeko=no |
7098 cat > conftest.$ac_ext <<EOF | 7101 cat > conftest.$ac_ext <<EOF |
7099 #line 7100 "configure" | 7102 #line 7103 "configure" |
7100 #include "confdefs.h" | 7103 #include "confdefs.h" |
7101 #include <stdio.h> | 7104 #include <stdio.h> |
7102 int main() { | 7105 int main() { |
7103 return fseeko && fseeko (stdin, 0, 0); | 7106 return fseeko && fseeko (stdin, 0, 0); |
7104 ; return 0; } | 7107 ; return 0; } |
7105 EOF | 7108 EOF |
7106 if { (eval echo configure:7107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7109 if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7107 rm -rf conftest* | 7110 rm -rf conftest* |
7108 ac_cv_func_fseeko=yes | 7111 ac_cv_func_fseeko=yes |
7109 else | 7112 else |
7110 echo "configure: failed program was:" >&5 | 7113 echo "configure: failed program was:" >&5 |
7111 cat conftest.$ac_ext >&5 | 7114 cat conftest.$ac_ext >&5 |
7123 | 7126 |
7124 # UNIX98 PTYs. | 7127 # UNIX98 PTYs. |
7125 for ac_func in grantpt | 7128 for ac_func in grantpt |
7126 do | 7129 do |
7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7128 echo "configure:7129: checking for $ac_func" >&5 | 7131 echo "configure:7132: checking for $ac_func" >&5 |
7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7130 echo $ac_n "(cached) $ac_c" 1>&6 | 7133 echo $ac_n "(cached) $ac_c" 1>&6 |
7131 else | 7134 else |
7132 cat > conftest.$ac_ext <<EOF | 7135 cat > conftest.$ac_ext <<EOF |
7133 #line 7134 "configure" | 7136 #line 7137 "configure" |
7134 #include "confdefs.h" | 7137 #include "confdefs.h" |
7135 /* System header to define __stub macros and hopefully few prototypes, | 7138 /* System header to define __stub macros and hopefully few prototypes, |
7136 which can conflict with char $ac_func(); below. */ | 7139 which can conflict with char $ac_func(); below. */ |
7137 #include <assert.h> | 7140 #include <assert.h> |
7138 /* Override any gcc2 internal prototype to avoid an error. */ | 7141 /* Override any gcc2 internal prototype to avoid an error. */ |
7151 $ac_func(); | 7154 $ac_func(); |
7152 #endif | 7155 #endif |
7153 | 7156 |
7154 ; return 0; } | 7157 ; return 0; } |
7155 EOF | 7158 EOF |
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7157 rm -rf conftest* | 7160 rm -rf conftest* |
7158 eval "ac_cv_func_$ac_func=yes" | 7161 eval "ac_cv_func_$ac_func=yes" |
7159 else | 7162 else |
7160 echo "configure: failed program was:" >&5 | 7163 echo "configure: failed program was:" >&5 |
7161 cat conftest.$ac_ext >&5 | 7164 cat conftest.$ac_ext >&5 |
7180 | 7183 |
7181 # PTY-related GNU extensions. | 7184 # PTY-related GNU extensions. |
7182 for ac_func in getpt | 7185 for ac_func in getpt |
7183 do | 7186 do |
7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7185 echo "configure:7186: checking for $ac_func" >&5 | 7188 echo "configure:7189: checking for $ac_func" >&5 |
7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7187 echo $ac_n "(cached) $ac_c" 1>&6 | 7190 echo $ac_n "(cached) $ac_c" 1>&6 |
7188 else | 7191 else |
7189 cat > conftest.$ac_ext <<EOF | 7192 cat > conftest.$ac_ext <<EOF |
7190 #line 7191 "configure" | 7193 #line 7194 "configure" |
7191 #include "confdefs.h" | 7194 #include "confdefs.h" |
7192 /* System header to define __stub macros and hopefully few prototypes, | 7195 /* System header to define __stub macros and hopefully few prototypes, |
7193 which can conflict with char $ac_func(); below. */ | 7196 which can conflict with char $ac_func(); below. */ |
7194 #include <assert.h> | 7197 #include <assert.h> |
7195 /* Override any gcc2 internal prototype to avoid an error. */ | 7198 /* Override any gcc2 internal prototype to avoid an error. */ |
7208 $ac_func(); | 7211 $ac_func(); |
7209 #endif | 7212 #endif |
7210 | 7213 |
7211 ; return 0; } | 7214 ; return 0; } |
7212 EOF | 7215 EOF |
7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7214 rm -rf conftest* | 7217 rm -rf conftest* |
7215 eval "ac_cv_func_$ac_func=yes" | 7218 eval "ac_cv_func_$ac_func=yes" |
7216 else | 7219 else |
7217 echo "configure: failed program was:" >&5 | 7220 echo "configure: failed program was:" >&5 |
7218 cat conftest.$ac_ext >&5 | 7221 cat conftest.$ac_ext >&5 |
7238 # Check this now, so that we will NOT find the above functions in ncurses. | 7241 # Check this now, so that we will NOT find the above functions in ncurses. |
7239 # That is because we have not set up to link ncurses in lib-src. | 7242 # That is because we have not set up to link ncurses in lib-src. |
7240 # It's better to believe a function is not available | 7243 # It's better to believe a function is not available |
7241 # than to expect to find it in ncurses. | 7244 # than to expect to find it in ncurses. |
7242 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 7245 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
7243 echo "configure:7244: checking for tparm in -lncurses" >&5 | 7246 echo "configure:7247: checking for tparm in -lncurses" >&5 |
7244 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 7247 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
7245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7246 echo $ac_n "(cached) $ac_c" 1>&6 | 7249 echo $ac_n "(cached) $ac_c" 1>&6 |
7247 else | 7250 else |
7248 ac_save_LIBS="$LIBS" | 7251 ac_save_LIBS="$LIBS" |
7249 LIBS="-lncurses $LIBS" | 7252 LIBS="-lncurses $LIBS" |
7250 cat > conftest.$ac_ext <<EOF | 7253 cat > conftest.$ac_ext <<EOF |
7251 #line 7252 "configure" | 7254 #line 7255 "configure" |
7252 #include "confdefs.h" | 7255 #include "confdefs.h" |
7253 /* Override any gcc2 internal prototype to avoid an error. */ | 7256 /* Override any gcc2 internal prototype to avoid an error. */ |
7254 /* We use char because int might match the return type of a gcc2 | 7257 /* We use char because int might match the return type of a gcc2 |
7255 builtin and then its argument prototype would still apply. */ | 7258 builtin and then its argument prototype would still apply. */ |
7256 char tparm(); | 7259 char tparm(); |
7257 | 7260 |
7258 int main() { | 7261 int main() { |
7259 tparm() | 7262 tparm() |
7260 ; return 0; } | 7263 ; return 0; } |
7261 EOF | 7264 EOF |
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7263 rm -rf conftest* | 7266 rm -rf conftest* |
7264 eval "ac_cv_lib_$ac_lib_var=yes" | 7267 eval "ac_cv_lib_$ac_lib_var=yes" |
7265 else | 7268 else |
7266 echo "configure: failed program was:" >&5 | 7269 echo "configure: failed program was:" >&5 |
7267 cat conftest.$ac_ext >&5 | 7270 cat conftest.$ac_ext >&5 |
7288 | 7291 |
7289 | 7292 |
7290 # These tell us which Kerberos-related libraries to use. | 7293 # These tell us which Kerberos-related libraries to use. |
7291 if test "${with_kerberos+set}" = set; then | 7294 if test "${with_kerberos+set}" = set; then |
7292 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 7295 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
7293 echo "configure:7294: checking for com_err in -lcom_err" >&5 | 7296 echo "configure:7297: checking for com_err in -lcom_err" >&5 |
7294 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 7297 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
7295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7296 echo $ac_n "(cached) $ac_c" 1>&6 | 7299 echo $ac_n "(cached) $ac_c" 1>&6 |
7297 else | 7300 else |
7298 ac_save_LIBS="$LIBS" | 7301 ac_save_LIBS="$LIBS" |
7299 LIBS="-lcom_err $LIBS" | 7302 LIBS="-lcom_err $LIBS" |
7300 cat > conftest.$ac_ext <<EOF | 7303 cat > conftest.$ac_ext <<EOF |
7301 #line 7302 "configure" | 7304 #line 7305 "configure" |
7302 #include "confdefs.h" | 7305 #include "confdefs.h" |
7303 /* Override any gcc2 internal prototype to avoid an error. */ | 7306 /* Override any gcc2 internal prototype to avoid an error. */ |
7304 /* We use char because int might match the return type of a gcc2 | 7307 /* We use char because int might match the return type of a gcc2 |
7305 builtin and then its argument prototype would still apply. */ | 7308 builtin and then its argument prototype would still apply. */ |
7306 char com_err(); | 7309 char com_err(); |
7307 | 7310 |
7308 int main() { | 7311 int main() { |
7309 com_err() | 7312 com_err() |
7310 ; return 0; } | 7313 ; return 0; } |
7311 EOF | 7314 EOF |
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7313 rm -rf conftest* | 7316 rm -rf conftest* |
7314 eval "ac_cv_lib_$ac_lib_var=yes" | 7317 eval "ac_cv_lib_$ac_lib_var=yes" |
7315 else | 7318 else |
7316 echo "configure: failed program was:" >&5 | 7319 echo "configure: failed program was:" >&5 |
7317 cat conftest.$ac_ext >&5 | 7320 cat conftest.$ac_ext >&5 |
7335 else | 7338 else |
7336 echo "$ac_t""no" 1>&6 | 7339 echo "$ac_t""no" 1>&6 |
7337 fi | 7340 fi |
7338 | 7341 |
7339 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 7342 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
7340 echo "configure:7341: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 7343 echo "configure:7344: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
7341 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7344 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7343 echo $ac_n "(cached) $ac_c" 1>&6 | 7346 echo $ac_n "(cached) $ac_c" 1>&6 |
7344 else | 7347 else |
7345 ac_save_LIBS="$LIBS" | 7348 ac_save_LIBS="$LIBS" |
7346 LIBS="-lk5crypto $LIBS" | 7349 LIBS="-lk5crypto $LIBS" |
7347 cat > conftest.$ac_ext <<EOF | 7350 cat > conftest.$ac_ext <<EOF |
7348 #line 7349 "configure" | 7351 #line 7352 "configure" |
7349 #include "confdefs.h" | 7352 #include "confdefs.h" |
7350 /* Override any gcc2 internal prototype to avoid an error. */ | 7353 /* Override any gcc2 internal prototype to avoid an error. */ |
7351 /* We use char because int might match the return type of a gcc2 | 7354 /* We use char because int might match the return type of a gcc2 |
7352 builtin and then its argument prototype would still apply. */ | 7355 builtin and then its argument prototype would still apply. */ |
7353 char mit_des_cbc_encrypt(); | 7356 char mit_des_cbc_encrypt(); |
7354 | 7357 |
7355 int main() { | 7358 int main() { |
7356 mit_des_cbc_encrypt() | 7359 mit_des_cbc_encrypt() |
7357 ; return 0; } | 7360 ; return 0; } |
7358 EOF | 7361 EOF |
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7360 rm -rf conftest* | 7363 rm -rf conftest* |
7361 eval "ac_cv_lib_$ac_lib_var=yes" | 7364 eval "ac_cv_lib_$ac_lib_var=yes" |
7362 else | 7365 else |
7363 echo "configure: failed program was:" >&5 | 7366 echo "configure: failed program was:" >&5 |
7364 cat conftest.$ac_ext >&5 | 7367 cat conftest.$ac_ext >&5 |
7382 else | 7385 else |
7383 echo "$ac_t""no" 1>&6 | 7386 echo "$ac_t""no" 1>&6 |
7384 fi | 7387 fi |
7385 | 7388 |
7386 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7389 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
7387 echo "configure:7388: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7390 echo "configure:7391: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
7388 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7391 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7390 echo $ac_n "(cached) $ac_c" 1>&6 | 7393 echo $ac_n "(cached) $ac_c" 1>&6 |
7391 else | 7394 else |
7392 ac_save_LIBS="$LIBS" | 7395 ac_save_LIBS="$LIBS" |
7393 LIBS="-lcrypto $LIBS" | 7396 LIBS="-lcrypto $LIBS" |
7394 cat > conftest.$ac_ext <<EOF | 7397 cat > conftest.$ac_ext <<EOF |
7395 #line 7396 "configure" | 7398 #line 7399 "configure" |
7396 #include "confdefs.h" | 7399 #include "confdefs.h" |
7397 /* Override any gcc2 internal prototype to avoid an error. */ | 7400 /* Override any gcc2 internal prototype to avoid an error. */ |
7398 /* We use char because int might match the return type of a gcc2 | 7401 /* We use char because int might match the return type of a gcc2 |
7399 builtin and then its argument prototype would still apply. */ | 7402 builtin and then its argument prototype would still apply. */ |
7400 char mit_des_cbc_encrypt(); | 7403 char mit_des_cbc_encrypt(); |
7401 | 7404 |
7402 int main() { | 7405 int main() { |
7403 mit_des_cbc_encrypt() | 7406 mit_des_cbc_encrypt() |
7404 ; return 0; } | 7407 ; return 0; } |
7405 EOF | 7408 EOF |
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7409 if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7407 rm -rf conftest* | 7410 rm -rf conftest* |
7408 eval "ac_cv_lib_$ac_lib_var=yes" | 7411 eval "ac_cv_lib_$ac_lib_var=yes" |
7409 else | 7412 else |
7410 echo "configure: failed program was:" >&5 | 7413 echo "configure: failed program was:" >&5 |
7411 cat conftest.$ac_ext >&5 | 7414 cat conftest.$ac_ext >&5 |
7429 else | 7432 else |
7430 echo "$ac_t""no" 1>&6 | 7433 echo "$ac_t""no" 1>&6 |
7431 fi | 7434 fi |
7432 | 7435 |
7433 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7436 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
7434 echo "configure:7435: checking for krb5_init_context in -lkrb5" >&5 | 7437 echo "configure:7438: checking for krb5_init_context in -lkrb5" >&5 |
7435 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7438 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
7436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7437 echo $ac_n "(cached) $ac_c" 1>&6 | 7440 echo $ac_n "(cached) $ac_c" 1>&6 |
7438 else | 7441 else |
7439 ac_save_LIBS="$LIBS" | 7442 ac_save_LIBS="$LIBS" |
7440 LIBS="-lkrb5 $LIBS" | 7443 LIBS="-lkrb5 $LIBS" |
7441 cat > conftest.$ac_ext <<EOF | 7444 cat > conftest.$ac_ext <<EOF |
7442 #line 7443 "configure" | 7445 #line 7446 "configure" |
7443 #include "confdefs.h" | 7446 #include "confdefs.h" |
7444 /* Override any gcc2 internal prototype to avoid an error. */ | 7447 /* Override any gcc2 internal prototype to avoid an error. */ |
7445 /* We use char because int might match the return type of a gcc2 | 7448 /* We use char because int might match the return type of a gcc2 |
7446 builtin and then its argument prototype would still apply. */ | 7449 builtin and then its argument prototype would still apply. */ |
7447 char krb5_init_context(); | 7450 char krb5_init_context(); |
7448 | 7451 |
7449 int main() { | 7452 int main() { |
7450 krb5_init_context() | 7453 krb5_init_context() |
7451 ; return 0; } | 7454 ; return 0; } |
7452 EOF | 7455 EOF |
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7454 rm -rf conftest* | 7457 rm -rf conftest* |
7455 eval "ac_cv_lib_$ac_lib_var=yes" | 7458 eval "ac_cv_lib_$ac_lib_var=yes" |
7456 else | 7459 else |
7457 echo "configure: failed program was:" >&5 | 7460 echo "configure: failed program was:" >&5 |
7458 cat conftest.$ac_ext >&5 | 7461 cat conftest.$ac_ext >&5 |
7477 echo "$ac_t""no" 1>&6 | 7480 echo "$ac_t""no" 1>&6 |
7478 fi | 7481 fi |
7479 | 7482 |
7480 if test "${with_kerberos5+set}" != set; then | 7483 if test "${with_kerberos5+set}" != set; then |
7481 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7484 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
7482 echo "configure:7483: checking for des_cbc_encrypt in -ldes425" >&5 | 7485 echo "configure:7486: checking for des_cbc_encrypt in -ldes425" >&5 |
7483 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7486 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7485 echo $ac_n "(cached) $ac_c" 1>&6 | 7488 echo $ac_n "(cached) $ac_c" 1>&6 |
7486 else | 7489 else |
7487 ac_save_LIBS="$LIBS" | 7490 ac_save_LIBS="$LIBS" |
7488 LIBS="-ldes425 $LIBS" | 7491 LIBS="-ldes425 $LIBS" |
7489 cat > conftest.$ac_ext <<EOF | 7492 cat > conftest.$ac_ext <<EOF |
7490 #line 7491 "configure" | 7493 #line 7494 "configure" |
7491 #include "confdefs.h" | 7494 #include "confdefs.h" |
7492 /* Override any gcc2 internal prototype to avoid an error. */ | 7495 /* Override any gcc2 internal prototype to avoid an error. */ |
7493 /* We use char because int might match the return type of a gcc2 | 7496 /* We use char because int might match the return type of a gcc2 |
7494 builtin and then its argument prototype would still apply. */ | 7497 builtin and then its argument prototype would still apply. */ |
7495 char des_cbc_encrypt(); | 7498 char des_cbc_encrypt(); |
7496 | 7499 |
7497 int main() { | 7500 int main() { |
7498 des_cbc_encrypt() | 7501 des_cbc_encrypt() |
7499 ; return 0; } | 7502 ; return 0; } |
7500 EOF | 7503 EOF |
7501 if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7502 rm -rf conftest* | 7505 rm -rf conftest* |
7503 eval "ac_cv_lib_$ac_lib_var=yes" | 7506 eval "ac_cv_lib_$ac_lib_var=yes" |
7504 else | 7507 else |
7505 echo "configure: failed program was:" >&5 | 7508 echo "configure: failed program was:" >&5 |
7506 cat conftest.$ac_ext >&5 | 7509 cat conftest.$ac_ext >&5 |
7522 LIBS="-ldes425 $LIBS" | 7525 LIBS="-ldes425 $LIBS" |
7523 | 7526 |
7524 else | 7527 else |
7525 echo "$ac_t""no" 1>&6 | 7528 echo "$ac_t""no" 1>&6 |
7526 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7529 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
7527 echo "configure:7528: checking for des_cbc_encrypt in -ldes" >&5 | 7530 echo "configure:7531: checking for des_cbc_encrypt in -ldes" >&5 |
7528 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7531 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7530 echo $ac_n "(cached) $ac_c" 1>&6 | 7533 echo $ac_n "(cached) $ac_c" 1>&6 |
7531 else | 7534 else |
7532 ac_save_LIBS="$LIBS" | 7535 ac_save_LIBS="$LIBS" |
7533 LIBS="-ldes $LIBS" | 7536 LIBS="-ldes $LIBS" |
7534 cat > conftest.$ac_ext <<EOF | 7537 cat > conftest.$ac_ext <<EOF |
7535 #line 7536 "configure" | 7538 #line 7539 "configure" |
7536 #include "confdefs.h" | 7539 #include "confdefs.h" |
7537 /* Override any gcc2 internal prototype to avoid an error. */ | 7540 /* Override any gcc2 internal prototype to avoid an error. */ |
7538 /* We use char because int might match the return type of a gcc2 | 7541 /* We use char because int might match the return type of a gcc2 |
7539 builtin and then its argument prototype would still apply. */ | 7542 builtin and then its argument prototype would still apply. */ |
7540 char des_cbc_encrypt(); | 7543 char des_cbc_encrypt(); |
7541 | 7544 |
7542 int main() { | 7545 int main() { |
7543 des_cbc_encrypt() | 7546 des_cbc_encrypt() |
7544 ; return 0; } | 7547 ; return 0; } |
7545 EOF | 7548 EOF |
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7547 rm -rf conftest* | 7550 rm -rf conftest* |
7548 eval "ac_cv_lib_$ac_lib_var=yes" | 7551 eval "ac_cv_lib_$ac_lib_var=yes" |
7549 else | 7552 else |
7550 echo "configure: failed program was:" >&5 | 7553 echo "configure: failed program was:" >&5 |
7551 cat conftest.$ac_ext >&5 | 7554 cat conftest.$ac_ext >&5 |
7571 fi | 7574 fi |
7572 | 7575 |
7573 fi | 7576 fi |
7574 | 7577 |
7575 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7578 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
7576 echo "configure:7577: checking for krb_get_cred in -lkrb4" >&5 | 7579 echo "configure:7580: checking for krb_get_cred in -lkrb4" >&5 |
7577 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7580 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7579 echo $ac_n "(cached) $ac_c" 1>&6 | 7582 echo $ac_n "(cached) $ac_c" 1>&6 |
7580 else | 7583 else |
7581 ac_save_LIBS="$LIBS" | 7584 ac_save_LIBS="$LIBS" |
7582 LIBS="-lkrb4 $LIBS" | 7585 LIBS="-lkrb4 $LIBS" |
7583 cat > conftest.$ac_ext <<EOF | 7586 cat > conftest.$ac_ext <<EOF |
7584 #line 7585 "configure" | 7587 #line 7588 "configure" |
7585 #include "confdefs.h" | 7588 #include "confdefs.h" |
7586 /* Override any gcc2 internal prototype to avoid an error. */ | 7589 /* Override any gcc2 internal prototype to avoid an error. */ |
7587 /* We use char because int might match the return type of a gcc2 | 7590 /* We use char because int might match the return type of a gcc2 |
7588 builtin and then its argument prototype would still apply. */ | 7591 builtin and then its argument prototype would still apply. */ |
7589 char krb_get_cred(); | 7592 char krb_get_cred(); |
7590 | 7593 |
7591 int main() { | 7594 int main() { |
7592 krb_get_cred() | 7595 krb_get_cred() |
7593 ; return 0; } | 7596 ; return 0; } |
7594 EOF | 7597 EOF |
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7596 rm -rf conftest* | 7599 rm -rf conftest* |
7597 eval "ac_cv_lib_$ac_lib_var=yes" | 7600 eval "ac_cv_lib_$ac_lib_var=yes" |
7598 else | 7601 else |
7599 echo "configure: failed program was:" >&5 | 7602 echo "configure: failed program was:" >&5 |
7600 cat conftest.$ac_ext >&5 | 7603 cat conftest.$ac_ext >&5 |
7616 LIBS="-lkrb4 $LIBS" | 7619 LIBS="-lkrb4 $LIBS" |
7617 | 7620 |
7618 else | 7621 else |
7619 echo "$ac_t""no" 1>&6 | 7622 echo "$ac_t""no" 1>&6 |
7620 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7623 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
7621 echo "configure:7622: checking for krb_get_cred in -lkrb" >&5 | 7624 echo "configure:7625: checking for krb_get_cred in -lkrb" >&5 |
7622 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7625 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7624 echo $ac_n "(cached) $ac_c" 1>&6 | 7627 echo $ac_n "(cached) $ac_c" 1>&6 |
7625 else | 7628 else |
7626 ac_save_LIBS="$LIBS" | 7629 ac_save_LIBS="$LIBS" |
7627 LIBS="-lkrb $LIBS" | 7630 LIBS="-lkrb $LIBS" |
7628 cat > conftest.$ac_ext <<EOF | 7631 cat > conftest.$ac_ext <<EOF |
7629 #line 7630 "configure" | 7632 #line 7633 "configure" |
7630 #include "confdefs.h" | 7633 #include "confdefs.h" |
7631 /* Override any gcc2 internal prototype to avoid an error. */ | 7634 /* Override any gcc2 internal prototype to avoid an error. */ |
7632 /* We use char because int might match the return type of a gcc2 | 7635 /* We use char because int might match the return type of a gcc2 |
7633 builtin and then its argument prototype would still apply. */ | 7636 builtin and then its argument prototype would still apply. */ |
7634 char krb_get_cred(); | 7637 char krb_get_cred(); |
7635 | 7638 |
7636 int main() { | 7639 int main() { |
7637 krb_get_cred() | 7640 krb_get_cred() |
7638 ; return 0; } | 7641 ; return 0; } |
7639 EOF | 7642 EOF |
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7641 rm -rf conftest* | 7644 rm -rf conftest* |
7642 eval "ac_cv_lib_$ac_lib_var=yes" | 7645 eval "ac_cv_lib_$ac_lib_var=yes" |
7643 else | 7646 else |
7644 echo "configure: failed program was:" >&5 | 7647 echo "configure: failed program was:" >&5 |
7645 cat conftest.$ac_ext >&5 | 7648 cat conftest.$ac_ext >&5 |
7671 if test "${with_kerberos5+set}" = set; then | 7674 if test "${with_kerberos5+set}" = set; then |
7672 for ac_hdr in krb5.h | 7675 for ac_hdr in krb5.h |
7673 do | 7676 do |
7674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7676 echo "configure:7677: checking for $ac_hdr" >&5 | 7679 echo "configure:7680: checking for $ac_hdr" >&5 |
7677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7678 echo $ac_n "(cached) $ac_c" 1>&6 | 7681 echo $ac_n "(cached) $ac_c" 1>&6 |
7679 else | 7682 else |
7680 cat > conftest.$ac_ext <<EOF | 7683 cat > conftest.$ac_ext <<EOF |
7681 #line 7682 "configure" | 7684 #line 7685 "configure" |
7682 #include "confdefs.h" | 7685 #include "confdefs.h" |
7683 #include <$ac_hdr> | 7686 #include <$ac_hdr> |
7684 EOF | 7687 EOF |
7685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7686 { (eval echo configure:7687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7689 { (eval echo configure:7690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7688 if test -z "$ac_err"; then | 7691 if test -z "$ac_err"; then |
7689 rm -rf conftest* | 7692 rm -rf conftest* |
7690 eval "ac_cv_header_$ac_safe=yes" | 7693 eval "ac_cv_header_$ac_safe=yes" |
7691 else | 7694 else |
7712 else | 7715 else |
7713 for ac_hdr in des.h | 7716 for ac_hdr in des.h |
7714 do | 7717 do |
7715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7717 echo "configure:7718: checking for $ac_hdr" >&5 | 7720 echo "configure:7721: checking for $ac_hdr" >&5 |
7718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7719 echo $ac_n "(cached) $ac_c" 1>&6 | 7722 echo $ac_n "(cached) $ac_c" 1>&6 |
7720 else | 7723 else |
7721 cat > conftest.$ac_ext <<EOF | 7724 cat > conftest.$ac_ext <<EOF |
7722 #line 7723 "configure" | 7725 #line 7726 "configure" |
7723 #include "confdefs.h" | 7726 #include "confdefs.h" |
7724 #include <$ac_hdr> | 7727 #include <$ac_hdr> |
7725 EOF | 7728 EOF |
7726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7727 { (eval echo configure:7728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7730 { (eval echo configure:7731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7729 if test -z "$ac_err"; then | 7732 if test -z "$ac_err"; then |
7730 rm -rf conftest* | 7733 rm -rf conftest* |
7731 eval "ac_cv_header_$ac_safe=yes" | 7734 eval "ac_cv_header_$ac_safe=yes" |
7732 else | 7735 else |
7749 echo "$ac_t""no" 1>&6 | 7752 echo "$ac_t""no" 1>&6 |
7750 for ac_hdr in kerberosIV/des.h | 7753 for ac_hdr in kerberosIV/des.h |
7751 do | 7754 do |
7752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7754 echo "configure:7755: checking for $ac_hdr" >&5 | 7757 echo "configure:7758: checking for $ac_hdr" >&5 |
7755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7756 echo $ac_n "(cached) $ac_c" 1>&6 | 7759 echo $ac_n "(cached) $ac_c" 1>&6 |
7757 else | 7760 else |
7758 cat > conftest.$ac_ext <<EOF | 7761 cat > conftest.$ac_ext <<EOF |
7759 #line 7760 "configure" | 7762 #line 7763 "configure" |
7760 #include "confdefs.h" | 7763 #include "confdefs.h" |
7761 #include <$ac_hdr> | 7764 #include <$ac_hdr> |
7762 EOF | 7765 EOF |
7763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7764 { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7767 { (eval echo configure:7768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7766 if test -z "$ac_err"; then | 7769 if test -z "$ac_err"; then |
7767 rm -rf conftest* | 7770 rm -rf conftest* |
7768 eval "ac_cv_header_$ac_safe=yes" | 7771 eval "ac_cv_header_$ac_safe=yes" |
7769 else | 7772 else |
7786 echo "$ac_t""no" 1>&6 | 7789 echo "$ac_t""no" 1>&6 |
7787 for ac_hdr in kerberos/des.h | 7790 for ac_hdr in kerberos/des.h |
7788 do | 7791 do |
7789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7791 echo "configure:7792: checking for $ac_hdr" >&5 | 7794 echo "configure:7795: checking for $ac_hdr" >&5 |
7792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7793 echo $ac_n "(cached) $ac_c" 1>&6 | 7796 echo $ac_n "(cached) $ac_c" 1>&6 |
7794 else | 7797 else |
7795 cat > conftest.$ac_ext <<EOF | 7798 cat > conftest.$ac_ext <<EOF |
7796 #line 7797 "configure" | 7799 #line 7800 "configure" |
7797 #include "confdefs.h" | 7800 #include "confdefs.h" |
7798 #include <$ac_hdr> | 7801 #include <$ac_hdr> |
7799 EOF | 7802 EOF |
7800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7801 { (eval echo configure:7802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7804 { (eval echo configure:7805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7803 if test -z "$ac_err"; then | 7806 if test -z "$ac_err"; then |
7804 rm -rf conftest* | 7807 rm -rf conftest* |
7805 eval "ac_cv_header_$ac_safe=yes" | 7808 eval "ac_cv_header_$ac_safe=yes" |
7806 else | 7809 else |
7832 | 7835 |
7833 for ac_hdr in krb.h | 7836 for ac_hdr in krb.h |
7834 do | 7837 do |
7835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7837 echo "configure:7838: checking for $ac_hdr" >&5 | 7840 echo "configure:7841: checking for $ac_hdr" >&5 |
7838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7839 echo $ac_n "(cached) $ac_c" 1>&6 | 7842 echo $ac_n "(cached) $ac_c" 1>&6 |
7840 else | 7843 else |
7841 cat > conftest.$ac_ext <<EOF | 7844 cat > conftest.$ac_ext <<EOF |
7842 #line 7843 "configure" | 7845 #line 7846 "configure" |
7843 #include "confdefs.h" | 7846 #include "confdefs.h" |
7844 #include <$ac_hdr> | 7847 #include <$ac_hdr> |
7845 EOF | 7848 EOF |
7846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7847 { (eval echo configure:7848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7850 { (eval echo configure:7851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7849 if test -z "$ac_err"; then | 7852 if test -z "$ac_err"; then |
7850 rm -rf conftest* | 7853 rm -rf conftest* |
7851 eval "ac_cv_header_$ac_safe=yes" | 7854 eval "ac_cv_header_$ac_safe=yes" |
7852 else | 7855 else |
7869 echo "$ac_t""no" 1>&6 | 7872 echo "$ac_t""no" 1>&6 |
7870 for ac_hdr in kerberosIV/krb.h | 7873 for ac_hdr in kerberosIV/krb.h |
7871 do | 7874 do |
7872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7874 echo "configure:7875: checking for $ac_hdr" >&5 | 7877 echo "configure:7878: checking for $ac_hdr" >&5 |
7875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7876 echo $ac_n "(cached) $ac_c" 1>&6 | 7879 echo $ac_n "(cached) $ac_c" 1>&6 |
7877 else | 7880 else |
7878 cat > conftest.$ac_ext <<EOF | 7881 cat > conftest.$ac_ext <<EOF |
7879 #line 7880 "configure" | 7882 #line 7883 "configure" |
7880 #include "confdefs.h" | 7883 #include "confdefs.h" |
7881 #include <$ac_hdr> | 7884 #include <$ac_hdr> |
7882 EOF | 7885 EOF |
7883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7884 { (eval echo configure:7885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7887 { (eval echo configure:7888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7886 if test -z "$ac_err"; then | 7889 if test -z "$ac_err"; then |
7887 rm -rf conftest* | 7890 rm -rf conftest* |
7888 eval "ac_cv_header_$ac_safe=yes" | 7891 eval "ac_cv_header_$ac_safe=yes" |
7889 else | 7892 else |
7906 echo "$ac_t""no" 1>&6 | 7909 echo "$ac_t""no" 1>&6 |
7907 for ac_hdr in kerberos/krb.h | 7910 for ac_hdr in kerberos/krb.h |
7908 do | 7911 do |
7909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7911 echo "configure:7912: checking for $ac_hdr" >&5 | 7914 echo "configure:7915: checking for $ac_hdr" >&5 |
7912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7913 echo $ac_n "(cached) $ac_c" 1>&6 | 7916 echo $ac_n "(cached) $ac_c" 1>&6 |
7914 else | 7917 else |
7915 cat > conftest.$ac_ext <<EOF | 7918 cat > conftest.$ac_ext <<EOF |
7916 #line 7917 "configure" | 7919 #line 7920 "configure" |
7917 #include "confdefs.h" | 7920 #include "confdefs.h" |
7918 #include <$ac_hdr> | 7921 #include <$ac_hdr> |
7919 EOF | 7922 EOF |
7920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7921 { (eval echo configure:7922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7924 { (eval echo configure:7925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7923 if test -z "$ac_err"; then | 7926 if test -z "$ac_err"; then |
7924 rm -rf conftest* | 7927 rm -rf conftest* |
7925 eval "ac_cv_header_$ac_safe=yes" | 7928 eval "ac_cv_header_$ac_safe=yes" |
7926 else | 7929 else |
7953 fi | 7956 fi |
7954 for ac_hdr in com_err.h | 7957 for ac_hdr in com_err.h |
7955 do | 7958 do |
7956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7958 echo "configure:7959: checking for $ac_hdr" >&5 | 7961 echo "configure:7962: checking for $ac_hdr" >&5 |
7959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7960 echo $ac_n "(cached) $ac_c" 1>&6 | 7963 echo $ac_n "(cached) $ac_c" 1>&6 |
7961 else | 7964 else |
7962 cat > conftest.$ac_ext <<EOF | 7965 cat > conftest.$ac_ext <<EOF |
7963 #line 7964 "configure" | 7966 #line 7967 "configure" |
7964 #include "confdefs.h" | 7967 #include "confdefs.h" |
7965 #include <$ac_hdr> | 7968 #include <$ac_hdr> |
7966 EOF | 7969 EOF |
7967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7968 { (eval echo configure:7969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7971 { (eval echo configure:7972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7970 if test -z "$ac_err"; then | 7973 if test -z "$ac_err"; then |
7971 rm -rf conftest* | 7974 rm -rf conftest* |
7972 eval "ac_cv_header_$ac_safe=yes" | 7975 eval "ac_cv_header_$ac_safe=yes" |
7973 else | 7976 else |
7994 fi | 7997 fi |
7995 | 7998 |
7996 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7999 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7997 # to return localized messages. | 8000 # to return localized messages. |
7998 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 8001 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7999 echo "configure:8000: checking for dgettext in -lintl" >&5 | 8002 echo "configure:8003: checking for dgettext in -lintl" >&5 |
8000 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 8003 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
8001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
8002 echo $ac_n "(cached) $ac_c" 1>&6 | 8005 echo $ac_n "(cached) $ac_c" 1>&6 |
8003 else | 8006 else |
8004 ac_save_LIBS="$LIBS" | 8007 ac_save_LIBS="$LIBS" |
8005 LIBS="-lintl $LIBS" | 8008 LIBS="-lintl $LIBS" |
8006 cat > conftest.$ac_ext <<EOF | 8009 cat > conftest.$ac_ext <<EOF |
8007 #line 8008 "configure" | 8010 #line 8011 "configure" |
8008 #include "confdefs.h" | 8011 #include "confdefs.h" |
8009 /* Override any gcc2 internal prototype to avoid an error. */ | 8012 /* Override any gcc2 internal prototype to avoid an error. */ |
8010 /* We use char because int might match the return type of a gcc2 | 8013 /* We use char because int might match the return type of a gcc2 |
8011 builtin and then its argument prototype would still apply. */ | 8014 builtin and then its argument prototype would still apply. */ |
8012 char dgettext(); | 8015 char dgettext(); |
8013 | 8016 |
8014 int main() { | 8017 int main() { |
8015 dgettext() | 8018 dgettext() |
8016 ; return 0; } | 8019 ; return 0; } |
8017 EOF | 8020 EOF |
8018 if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8021 if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8019 rm -rf conftest* | 8022 rm -rf conftest* |
8020 eval "ac_cv_lib_$ac_lib_var=yes" | 8023 eval "ac_cv_lib_$ac_lib_var=yes" |
8021 else | 8024 else |
8022 echo "configure: failed program was:" >&5 | 8025 echo "configure: failed program was:" >&5 |
8023 cat conftest.$ac_ext >&5 | 8026 cat conftest.$ac_ext >&5 |
8042 echo "$ac_t""no" 1>&6 | 8045 echo "$ac_t""no" 1>&6 |
8043 fi | 8046 fi |
8044 | 8047 |
8045 | 8048 |
8046 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 8049 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
8047 echo "configure:8048: checking whether localtime caches TZ" >&5 | 8050 echo "configure:8051: checking whether localtime caches TZ" >&5 |
8048 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 8051 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
8049 echo $ac_n "(cached) $ac_c" 1>&6 | 8052 echo $ac_n "(cached) $ac_c" 1>&6 |
8050 else | 8053 else |
8051 if test x$ac_cv_func_tzset = xyes; then | 8054 if test x$ac_cv_func_tzset = xyes; then |
8052 if test "$cross_compiling" = yes; then | 8055 if test "$cross_compiling" = yes; then |
8053 # If we have tzset, assume the worst when cross-compiling. | 8056 # If we have tzset, assume the worst when cross-compiling. |
8054 emacs_cv_localtime_cache=yes | 8057 emacs_cv_localtime_cache=yes |
8055 else | 8058 else |
8056 cat > conftest.$ac_ext <<EOF | 8059 cat > conftest.$ac_ext <<EOF |
8057 #line 8058 "configure" | 8060 #line 8061 "configure" |
8058 #include "confdefs.h" | 8061 #include "confdefs.h" |
8059 #include <time.h> | 8062 #include <time.h> |
8060 extern char **environ; | 8063 extern char **environ; |
8061 unset_TZ () | 8064 unset_TZ () |
8062 { | 8065 { |
8084 if (localtime (&now)->tm_hour != hour_unset) | 8087 if (localtime (&now)->tm_hour != hour_unset) |
8085 exit (1); | 8088 exit (1); |
8086 exit (0); | 8089 exit (0); |
8087 } | 8090 } |
8088 EOF | 8091 EOF |
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8090 then | 8093 then |
8091 emacs_cv_localtime_cache=no | 8094 emacs_cv_localtime_cache=no |
8092 else | 8095 else |
8093 echo "configure: failed program was:" >&5 | 8096 echo "configure: failed program was:" >&5 |
8094 cat conftest.$ac_ext >&5 | 8097 cat conftest.$ac_ext >&5 |
8114 | 8117 |
8115 if test "x$HAVE_TIMEVAL" = xyes; then | 8118 if test "x$HAVE_TIMEVAL" = xyes; then |
8116 for ac_func in gettimeofday | 8119 for ac_func in gettimeofday |
8117 do | 8120 do |
8118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8119 echo "configure:8120: checking for $ac_func" >&5 | 8122 echo "configure:8123: checking for $ac_func" >&5 |
8120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8121 echo $ac_n "(cached) $ac_c" 1>&6 | 8124 echo $ac_n "(cached) $ac_c" 1>&6 |
8122 else | 8125 else |
8123 cat > conftest.$ac_ext <<EOF | 8126 cat > conftest.$ac_ext <<EOF |
8124 #line 8125 "configure" | 8127 #line 8128 "configure" |
8125 #include "confdefs.h" | 8128 #include "confdefs.h" |
8126 /* System header to define __stub macros and hopefully few prototypes, | 8129 /* System header to define __stub macros and hopefully few prototypes, |
8127 which can conflict with char $ac_func(); below. */ | 8130 which can conflict with char $ac_func(); below. */ |
8128 #include <assert.h> | 8131 #include <assert.h> |
8129 /* Override any gcc2 internal prototype to avoid an error. */ | 8132 /* Override any gcc2 internal prototype to avoid an error. */ |
8142 $ac_func(); | 8145 $ac_func(); |
8143 #endif | 8146 #endif |
8144 | 8147 |
8145 ; return 0; } | 8148 ; return 0; } |
8146 EOF | 8149 EOF |
8147 if { (eval echo configure:8148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8150 if { (eval echo configure:8151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8148 rm -rf conftest* | 8151 rm -rf conftest* |
8149 eval "ac_cv_func_$ac_func=yes" | 8152 eval "ac_cv_func_$ac_func=yes" |
8150 else | 8153 else |
8151 echo "configure: failed program was:" >&5 | 8154 echo "configure: failed program was:" >&5 |
8152 cat conftest.$ac_ext >&5 | 8155 cat conftest.$ac_ext >&5 |
8167 echo "$ac_t""no" 1>&6 | 8170 echo "$ac_t""no" 1>&6 |
8168 fi | 8171 fi |
8169 done | 8172 done |
8170 | 8173 |
8171 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 8174 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
8172 echo "configure:8173: checking whether gettimeofday can accept two arguments" >&5 | 8175 echo "configure:8176: checking whether gettimeofday can accept two arguments" >&5 |
8173 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 8176 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
8174 echo $ac_n "(cached) $ac_c" 1>&6 | 8177 echo $ac_n "(cached) $ac_c" 1>&6 |
8175 else | 8178 else |
8176 cat > conftest.$ac_ext <<EOF | 8179 cat > conftest.$ac_ext <<EOF |
8177 #line 8178 "configure" | 8180 #line 8181 "configure" |
8178 #include "confdefs.h" | 8181 #include "confdefs.h" |
8179 | 8182 |
8180 #ifdef TIME_WITH_SYS_TIME | 8183 #ifdef TIME_WITH_SYS_TIME |
8181 #include <sys/time.h> | 8184 #include <sys/time.h> |
8182 #include <time.h> | 8185 #include <time.h> |
8190 int main() { | 8193 int main() { |
8191 struct timeval time; | 8194 struct timeval time; |
8192 gettimeofday (&time, 0); | 8195 gettimeofday (&time, 0); |
8193 ; return 0; } | 8196 ; return 0; } |
8194 EOF | 8197 EOF |
8195 if { (eval echo configure:8196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8198 if { (eval echo configure:8199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8196 rm -rf conftest* | 8199 rm -rf conftest* |
8197 emacs_cv_gettimeofday_two_arguments=yes | 8200 emacs_cv_gettimeofday_two_arguments=yes |
8198 else | 8201 else |
8199 echo "configure: failed program was:" >&5 | 8202 echo "configure: failed program was:" >&5 |
8200 cat conftest.$ac_ext >&5 | 8203 cat conftest.$ac_ext >&5 |
8213 fi | 8216 fi |
8214 fi | 8217 fi |
8215 | 8218 |
8216 if test "$ac_cv_func_gettimeofday" = yes; then | 8219 if test "$ac_cv_func_gettimeofday" = yes; then |
8217 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | 8220 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 |
8218 echo "configure:8219: checking for struct timezone" >&5 | 8221 echo "configure:8222: checking for struct timezone" >&5 |
8219 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | 8222 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
8220 echo $ac_n "(cached) $ac_c" 1>&6 | 8223 echo $ac_n "(cached) $ac_c" 1>&6 |
8221 else | 8224 else |
8222 cat > conftest.$ac_ext <<EOF | 8225 cat > conftest.$ac_ext <<EOF |
8223 #line 8224 "configure" | 8226 #line 8227 "configure" |
8224 #include "confdefs.h" | 8227 #include "confdefs.h" |
8225 #include <sys/time.h> | 8228 #include <sys/time.h> |
8226 int main() { | 8229 int main() { |
8227 struct timezone tz; | 8230 struct timezone tz; |
8228 ; return 0; } | 8231 ; return 0; } |
8229 EOF | 8232 EOF |
8230 if { (eval echo configure:8231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8233 if { (eval echo configure:8234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8231 rm -rf conftest* | 8234 rm -rf conftest* |
8232 if test "$cross_compiling" = yes; then | 8235 if test "$cross_compiling" = yes; then |
8233 emacs_cv_struct_timezone=yes | 8236 emacs_cv_struct_timezone=yes |
8234 else | 8237 else |
8235 cat > conftest.$ac_ext <<EOF | 8238 cat > conftest.$ac_ext <<EOF |
8236 #line 8237 "configure" | 8239 #line 8240 "configure" |
8237 #include "confdefs.h" | 8240 #include "confdefs.h" |
8238 | 8241 |
8239 #ifdef TIME_WITH_SYS_TIME | 8242 #ifdef TIME_WITH_SYS_TIME |
8240 #include <sys/time.h> | 8243 #include <sys/time.h> |
8241 #include <time.h> | 8244 #include <time.h> |
8250 struct timeval time; | 8253 struct timeval time; |
8251 struct timezone dummy; | 8254 struct timezone dummy; |
8252 exit (gettimeofday (&time, &dummy)); | 8255 exit (gettimeofday (&time, &dummy)); |
8253 } | 8256 } |
8254 EOF | 8257 EOF |
8255 if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8256 then | 8259 then |
8257 emacs_cv_struct_timezone=yes | 8260 emacs_cv_struct_timezone=yes |
8258 else | 8261 else |
8259 echo "configure: failed program was:" >&5 | 8262 echo "configure: failed program was:" >&5 |
8260 cat conftest.$ac_ext >&5 | 8263 cat conftest.$ac_ext >&5 |
8276 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | 8279 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 |
8277 fi | 8280 fi |
8278 | 8281 |
8279 ok_so_far=yes | 8282 ok_so_far=yes |
8280 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 8283 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8281 echo "configure:8282: checking for socket" >&5 | 8284 echo "configure:8285: checking for socket" >&5 |
8282 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 8285 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
8283 echo $ac_n "(cached) $ac_c" 1>&6 | 8286 echo $ac_n "(cached) $ac_c" 1>&6 |
8284 else | 8287 else |
8285 cat > conftest.$ac_ext <<EOF | 8288 cat > conftest.$ac_ext <<EOF |
8286 #line 8287 "configure" | 8289 #line 8290 "configure" |
8287 #include "confdefs.h" | 8290 #include "confdefs.h" |
8288 /* System header to define __stub macros and hopefully few prototypes, | 8291 /* System header to define __stub macros and hopefully few prototypes, |
8289 which can conflict with char socket(); below. */ | 8292 which can conflict with char socket(); below. */ |
8290 #include <assert.h> | 8293 #include <assert.h> |
8291 /* Override any gcc2 internal prototype to avoid an error. */ | 8294 /* Override any gcc2 internal prototype to avoid an error. */ |
8304 socket(); | 8307 socket(); |
8305 #endif | 8308 #endif |
8306 | 8309 |
8307 ; return 0; } | 8310 ; return 0; } |
8308 EOF | 8311 EOF |
8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8310 rm -rf conftest* | 8313 rm -rf conftest* |
8311 eval "ac_cv_func_socket=yes" | 8314 eval "ac_cv_func_socket=yes" |
8312 else | 8315 else |
8313 echo "configure: failed program was:" >&5 | 8316 echo "configure: failed program was:" >&5 |
8314 cat conftest.$ac_ext >&5 | 8317 cat conftest.$ac_ext >&5 |
8327 fi | 8330 fi |
8328 | 8331 |
8329 if test $ok_so_far = yes; then | 8332 if test $ok_so_far = yes; then |
8330 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 8333 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
8331 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 8334 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
8332 echo "configure:8333: checking for netinet/in.h" >&5 | 8335 echo "configure:8336: checking for netinet/in.h" >&5 |
8333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8334 echo $ac_n "(cached) $ac_c" 1>&6 | 8337 echo $ac_n "(cached) $ac_c" 1>&6 |
8335 else | 8338 else |
8336 cat > conftest.$ac_ext <<EOF | 8339 cat > conftest.$ac_ext <<EOF |
8337 #line 8338 "configure" | 8340 #line 8341 "configure" |
8338 #include "confdefs.h" | 8341 #include "confdefs.h" |
8339 #include <netinet/in.h> | 8342 #include <netinet/in.h> |
8340 EOF | 8343 EOF |
8341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8342 { (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8345 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8344 if test -z "$ac_err"; then | 8347 if test -z "$ac_err"; then |
8345 rm -rf conftest* | 8348 rm -rf conftest* |
8346 eval "ac_cv_header_$ac_safe=yes" | 8349 eval "ac_cv_header_$ac_safe=yes" |
8347 else | 8350 else |
8363 | 8366 |
8364 fi | 8367 fi |
8365 if test $ok_so_far = yes; then | 8368 if test $ok_so_far = yes; then |
8366 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 8369 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
8367 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 8370 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
8368 echo "configure:8369: checking for arpa/inet.h" >&5 | 8371 echo "configure:8372: checking for arpa/inet.h" >&5 |
8369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8370 echo $ac_n "(cached) $ac_c" 1>&6 | 8373 echo $ac_n "(cached) $ac_c" 1>&6 |
8371 else | 8374 else |
8372 cat > conftest.$ac_ext <<EOF | 8375 cat > conftest.$ac_ext <<EOF |
8373 #line 8374 "configure" | 8376 #line 8377 "configure" |
8374 #include "confdefs.h" | 8377 #include "confdefs.h" |
8375 #include <arpa/inet.h> | 8378 #include <arpa/inet.h> |
8376 EOF | 8379 EOF |
8377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8378 { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8381 { (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8380 if test -z "$ac_err"; then | 8383 if test -z "$ac_err"; then |
8381 rm -rf conftest* | 8384 rm -rf conftest* |
8382 eval "ac_cv_header_$ac_safe=yes" | 8385 eval "ac_cv_header_$ac_safe=yes" |
8383 else | 8386 else |
8411 EOF | 8414 EOF |
8412 | 8415 |
8413 fi | 8416 fi |
8414 | 8417 |
8415 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 8418 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
8416 echo "configure:8417: checking whether system supports dynamic ptys" >&5 | 8419 echo "configure:8420: checking whether system supports dynamic ptys" >&5 |
8417 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 8420 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
8418 echo "$ac_t""yes" 1>&6 | 8421 echo "$ac_t""yes" 1>&6 |
8419 cat >> confdefs.h <<\EOF | 8422 cat >> confdefs.h <<\EOF |
8420 #define HAVE_DEV_PTMX 1 | 8423 #define HAVE_DEV_PTMX 1 |
8421 EOF | 8424 EOF |
8423 else | 8426 else |
8424 echo "$ac_t""no" 1>&6 | 8427 echo "$ac_t""no" 1>&6 |
8425 fi | 8428 fi |
8426 | 8429 |
8427 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 8430 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8428 echo "configure:8429: checking for pid_t" >&5 | 8431 echo "configure:8432: checking for pid_t" >&5 |
8429 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 8432 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8430 echo $ac_n "(cached) $ac_c" 1>&6 | 8433 echo $ac_n "(cached) $ac_c" 1>&6 |
8431 else | 8434 else |
8432 cat > conftest.$ac_ext <<EOF | 8435 cat > conftest.$ac_ext <<EOF |
8433 #line 8434 "configure" | 8436 #line 8437 "configure" |
8434 #include "confdefs.h" | 8437 #include "confdefs.h" |
8435 #include <sys/types.h> | 8438 #include <sys/types.h> |
8436 #if STDC_HEADERS | 8439 #if STDC_HEADERS |
8437 #include <stdlib.h> | 8440 #include <stdlib.h> |
8438 #include <stddef.h> | 8441 #include <stddef.h> |
8457 | 8460 |
8458 fi | 8461 fi |
8459 | 8462 |
8460 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 8463 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
8461 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 8464 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
8462 echo "configure:8463: checking for vfork.h" >&5 | 8465 echo "configure:8466: checking for vfork.h" >&5 |
8463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8464 echo $ac_n "(cached) $ac_c" 1>&6 | 8467 echo $ac_n "(cached) $ac_c" 1>&6 |
8465 else | 8468 else |
8466 cat > conftest.$ac_ext <<EOF | 8469 cat > conftest.$ac_ext <<EOF |
8467 #line 8468 "configure" | 8470 #line 8471 "configure" |
8468 #include "confdefs.h" | 8471 #include "confdefs.h" |
8469 #include <vfork.h> | 8472 #include <vfork.h> |
8470 EOF | 8473 EOF |
8471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8472 { (eval echo configure:8473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8475 { (eval echo configure:8476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8474 if test -z "$ac_err"; then | 8477 if test -z "$ac_err"; then |
8475 rm -rf conftest* | 8478 rm -rf conftest* |
8476 eval "ac_cv_header_$ac_safe=yes" | 8479 eval "ac_cv_header_$ac_safe=yes" |
8477 else | 8480 else |
8492 else | 8495 else |
8493 echo "$ac_t""no" 1>&6 | 8496 echo "$ac_t""no" 1>&6 |
8494 fi | 8497 fi |
8495 | 8498 |
8496 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 8499 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
8497 echo "configure:8498: checking for working vfork" >&5 | 8500 echo "configure:8501: checking for working vfork" >&5 |
8498 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 8501 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8499 echo $ac_n "(cached) $ac_c" 1>&6 | 8502 echo $ac_n "(cached) $ac_c" 1>&6 |
8500 else | 8503 else |
8501 if test "$cross_compiling" = yes; then | 8504 if test "$cross_compiling" = yes; then |
8502 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 8505 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
8503 echo "configure:8504: checking for vfork" >&5 | 8506 echo "configure:8507: checking for vfork" >&5 |
8504 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8507 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8505 echo $ac_n "(cached) $ac_c" 1>&6 | 8508 echo $ac_n "(cached) $ac_c" 1>&6 |
8506 else | 8509 else |
8507 cat > conftest.$ac_ext <<EOF | 8510 cat > conftest.$ac_ext <<EOF |
8508 #line 8509 "configure" | 8511 #line 8512 "configure" |
8509 #include "confdefs.h" | 8512 #include "confdefs.h" |
8510 /* System header to define __stub macros and hopefully few prototypes, | 8513 /* System header to define __stub macros and hopefully few prototypes, |
8511 which can conflict with char vfork(); below. */ | 8514 which can conflict with char vfork(); below. */ |
8512 #include <assert.h> | 8515 #include <assert.h> |
8513 /* Override any gcc2 internal prototype to avoid an error. */ | 8516 /* Override any gcc2 internal prototype to avoid an error. */ |
8526 vfork(); | 8529 vfork(); |
8527 #endif | 8530 #endif |
8528 | 8531 |
8529 ; return 0; } | 8532 ; return 0; } |
8530 EOF | 8533 EOF |
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8534 if { (eval echo configure:8535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8532 rm -rf conftest* | 8535 rm -rf conftest* |
8533 eval "ac_cv_func_vfork=yes" | 8536 eval "ac_cv_func_vfork=yes" |
8534 else | 8537 else |
8535 echo "configure: failed program was:" >&5 | 8538 echo "configure: failed program was:" >&5 |
8536 cat conftest.$ac_ext >&5 | 8539 cat conftest.$ac_ext >&5 |
8548 fi | 8551 fi |
8549 | 8552 |
8550 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8553 ac_cv_func_vfork_works=$ac_cv_func_vfork |
8551 else | 8554 else |
8552 cat > conftest.$ac_ext <<EOF | 8555 cat > conftest.$ac_ext <<EOF |
8553 #line 8554 "configure" | 8556 #line 8557 "configure" |
8554 #include "confdefs.h" | 8557 #include "confdefs.h" |
8555 /* Thanks to Paul Eggert for this test. */ | 8558 /* Thanks to Paul Eggert for this test. */ |
8556 #include <stdio.h> | 8559 #include <stdio.h> |
8557 #include <sys/types.h> | 8560 #include <sys/types.h> |
8558 #include <sys/stat.h> | 8561 #include <sys/stat.h> |
8643 || fstat(fileno(stdout), &st) != 0 | 8646 || fstat(fileno(stdout), &st) != 0 |
8644 ); | 8647 ); |
8645 } | 8648 } |
8646 } | 8649 } |
8647 EOF | 8650 EOF |
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8649 then | 8652 then |
8650 ac_cv_func_vfork_works=yes | 8653 ac_cv_func_vfork_works=yes |
8651 else | 8654 else |
8652 echo "configure: failed program was:" >&5 | 8655 echo "configure: failed program was:" >&5 |
8653 cat conftest.$ac_ext >&5 | 8656 cat conftest.$ac_ext >&5 |
8668 fi | 8671 fi |
8669 | 8672 |
8670 | 8673 |
8671 # Fixme: This should be replaced when we have autoconf 2.14. | 8674 # Fixme: This should be replaced when we have autoconf 2.14. |
8672 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 8675 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8673 echo "configure:8674: checking for size_t" >&5 | 8676 echo "configure:8677: checking for size_t" >&5 |
8674 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 8677 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8675 echo $ac_n "(cached) $ac_c" 1>&6 | 8678 echo $ac_n "(cached) $ac_c" 1>&6 |
8676 else | 8679 else |
8677 cat > conftest.$ac_ext <<EOF | 8680 cat > conftest.$ac_ext <<EOF |
8678 #line 8679 "configure" | 8681 #line 8682 "configure" |
8679 #include "confdefs.h" | 8682 #include "confdefs.h" |
8680 #include <sys/types.h> | 8683 #include <sys/types.h> |
8681 #if STDC_HEADERS | 8684 #if STDC_HEADERS |
8682 #include <stdlib.h> | 8685 #include <stdlib.h> |
8683 #include <stddef.h> | 8686 #include <stddef.h> |