comparison configure @ 29990:98af0f021739

* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while searching for image-handling libraries.
author Ken Raeburn <raeburn@raeburn.org>
date Fri, 30 Jun 2000 22:02:25 +0000
parents abd4c37731d3
children 7c51ac7c415f
comparison
equal deleted inserted replaced
29989:b7cc25f67d73 29990:98af0f021739
3908 echo "$ac_t""$HAVE_XFREE386" 1>&6 3908 echo "$ac_t""$HAVE_XFREE386" 1>&6
3909 3909
3910 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used 3910 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3911 # for the tests that follow. We set it back to REAL_CFLAGS later on. 3911 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3912 3912
3913 REAL_CPPFLAGS="$CPPFLAGS"
3914
3913 if test "${HAVE_X11}" = "yes"; then 3915 if test "${HAVE_X11}" = "yes"; then
3914 DEFS="$C_SWITCH_X_SITE $DEFS" 3916 DEFS="$C_SWITCH_X_SITE $DEFS"
3915 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" 3917 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
3916 LIBS="$LIBX $LIBS" 3918 LIBS="$LIBX $LIBS"
3917 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" 3919 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
3920 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
3918 3921
3919 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. 3922 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3920 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, 3923 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3921 # but it's more convenient here to set LD_RUN_PATH 3924 # but it's more convenient here to set LD_RUN_PATH
3922 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. 3925 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3925 export LD_RUN_PATH 3928 export LD_RUN_PATH
3926 fi 3929 fi
3927 3930
3928 if test "${opsys}" = "gnu-linux"; then 3931 if test "${opsys}" = "gnu-linux"; then
3929 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3932 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3930 echo "configure:3931: checking whether X on GNU/Linux needs -b to link" >&5 3933 echo "configure:3934: checking whether X on GNU/Linux needs -b to link" >&5
3931 cat > conftest.$ac_ext <<EOF 3934 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure" 3935 #line 3936 "configure"
3933 #include "confdefs.h" 3936 #include "confdefs.h"
3934 3937
3935 int main() { 3938 int main() {
3936 XOpenDisplay ("foo"); 3939 XOpenDisplay ("foo");
3937 ; return 0; } 3940 ; return 0; }
3938 EOF 3941 EOF
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3942 if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3940 rm -rf conftest* 3943 rm -rf conftest*
3941 xlinux_first_failure=no 3944 xlinux_first_failure=no
3942 else 3945 else
3943 echo "configure: failed program was:" >&5 3946 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5 3947 cat conftest.$ac_ext >&5
3954 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3957 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3955 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3958 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3956 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3959 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3957 LIBS="$LIBS -b i486-linuxaout" 3960 LIBS="$LIBS -b i486-linuxaout"
3958 cat > conftest.$ac_ext <<EOF 3961 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure" 3962 #line 3963 "configure"
3960 #include "confdefs.h" 3963 #include "confdefs.h"
3961 3964
3962 int main() { 3965 int main() {
3963 XOpenDisplay ("foo"); 3966 XOpenDisplay ("foo");
3964 ; return 0; } 3967 ; return 0; }
3965 EOF 3968 EOF
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 rm -rf conftest* 3970 rm -rf conftest*
3968 xlinux_second_failure=no 3971 xlinux_second_failure=no
3969 else 3972 else
3970 echo "configure: failed program was:" >&5 3973 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5 3974 cat conftest.$ac_ext >&5
3991 3994
3992 for ac_func in XrmSetDatabase XScreenResourceString \ 3995 for ac_func in XrmSetDatabase XScreenResourceString \
3993 XScreenNumberOfScreen XSetWMProtocols 3996 XScreenNumberOfScreen XSetWMProtocols
3994 do 3997 do
3995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_func" >&5 3999 echo "configure:4000: checking for $ac_func" >&5
3997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6 4001 echo $ac_n "(cached) $ac_c" 1>&6
3999 else 4002 else
4000 cat > conftest.$ac_ext <<EOF 4003 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure" 4004 #line 4005 "configure"
4002 #include "confdefs.h" 4005 #include "confdefs.h"
4003 /* System header to define __stub macros and hopefully few prototypes, 4006 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func(); below. */ 4007 which can conflict with char $ac_func(); below. */
4005 #include <assert.h> 4008 #include <assert.h>
4006 /* Override any gcc2 internal prototype to avoid an error. */ 4009 /* Override any gcc2 internal prototype to avoid an error. */
4019 $ac_func(); 4022 $ac_func();
4020 #endif 4023 #endif
4021 4024
4022 ; return 0; } 4025 ; return 0; }
4023 EOF 4026 EOF
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 rm -rf conftest* 4028 rm -rf conftest*
4026 eval "ac_cv_func_$ac_func=yes" 4029 eval "ac_cv_func_$ac_func=yes"
4027 else 4030 else
4028 echo "configure: failed program was:" >&5 4031 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5 4032 cat conftest.$ac_ext >&5
4047 4050
4048 fi 4051 fi
4049 4052
4050 if test "${window_system}" = "x11"; then 4053 if test "${window_system}" = "x11"; then
4051 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4054 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4052 echo "configure:4053: checking X11 version 6" >&5 4055 echo "configure:4056: checking X11 version 6" >&5
4053 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4056 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6 4057 echo $ac_n "(cached) $ac_c" 1>&6
4055 else 4058 else
4056 cat > conftest.$ac_ext <<EOF 4059 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure" 4060 #line 4061 "configure"
4058 #include "confdefs.h" 4061 #include "confdefs.h"
4059 #include <X11/Xlib.h> 4062 #include <X11/Xlib.h>
4060 int main() { 4063 int main() {
4061 #if XlibSpecificationRelease < 6 4064 #if XlibSpecificationRelease < 6
4062 fail; 4065 fail;
4063 #endif 4066 #endif
4064 4067
4065 ; return 0; } 4068 ; return 0; }
4066 EOF 4069 EOF
4067 if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4068 rm -rf conftest* 4071 rm -rf conftest*
4069 emacs_cv_x11_version_6=yes 4072 emacs_cv_x11_version_6=yes
4070 else 4073 else
4071 echo "configure: failed program was:" >&5 4074 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5 4075 cat conftest.$ac_ext >&5
4087 fi 4090 fi
4088 fi 4091 fi
4089 4092
4090 if test "${window_system}" = "x11"; then 4093 if test "${window_system}" = "x11"; then
4091 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4094 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4092 echo "configure:4093: checking X11 version 5" >&5 4095 echo "configure:4096: checking X11 version 5" >&5
4093 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4096 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6 4097 echo $ac_n "(cached) $ac_c" 1>&6
4095 else 4098 else
4096 cat > conftest.$ac_ext <<EOF 4099 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure" 4100 #line 4101 "configure"
4098 #include "confdefs.h" 4101 #include "confdefs.h"
4099 #include <X11/Xlib.h> 4102 #include <X11/Xlib.h>
4100 int main() { 4103 int main() {
4101 #if XlibSpecificationRelease < 5 4104 #if XlibSpecificationRelease < 5
4102 fail; 4105 fail;
4103 #endif 4106 #endif
4104 4107
4105 ; return 0; } 4108 ; return 0; }
4106 EOF 4109 EOF
4107 if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 rm -rf conftest* 4111 rm -rf conftest*
4109 emacs_cv_x11_version_5=yes 4112 emacs_cv_x11_version_5=yes
4110 else 4113 else
4111 echo "configure: failed program was:" >&5 4114 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5 4115 cat conftest.$ac_ext >&5
4130 fi 4133 fi
4131 4134
4132 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4135 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4133 if test x"${HAVE_X11R5}" = xyes; then 4136 if test x"${HAVE_X11R5}" = xyes; then
4134 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4137 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4135 echo "configure:4136: checking X11 version 5 with Xaw" >&5 4138 echo "configure:4139: checking X11 version 5 with Xaw" >&5
4136 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4139 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6 4140 echo $ac_n "(cached) $ac_c" 1>&6
4138 else 4141 else
4139 cat > conftest.$ac_ext <<EOF 4142 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure" 4143 #line 4144 "configure"
4141 #include "confdefs.h" 4144 #include "confdefs.h"
4142 4145
4143 #include <X11/Intrinsic.h> 4146 #include <X11/Intrinsic.h>
4144 #include <X11/Xaw/Simple.h> 4147 #include <X11/Xaw/Simple.h>
4145 int main() { 4148 int main() {
4146 4149
4147 ; return 0; } 4150 ; return 0; }
4148 EOF 4151 EOF
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4150 rm -rf conftest* 4153 rm -rf conftest*
4151 emacs_cv_x11_version_5_with_xaw=yes 4154 emacs_cv_x11_version_5_with_xaw=yes
4152 else 4155 else
4153 echo "configure: failed program was:" >&5 4156 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5 4157 cat conftest.$ac_ext >&5
4172 4175
4173 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4176 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4174 4177
4175 if test "${USE_X_TOOLKIT}" != "none"; then 4178 if test "${USE_X_TOOLKIT}" != "none"; then
4176 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4179 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4177 echo "configure:4178: checking X11 toolkit version" >&5 4180 echo "configure:4181: checking X11 toolkit version" >&5
4178 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4181 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6 4182 echo $ac_n "(cached) $ac_c" 1>&6
4180 else 4183 else
4181 cat > conftest.$ac_ext <<EOF 4184 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure" 4185 #line 4186 "configure"
4183 #include "confdefs.h" 4186 #include "confdefs.h"
4184 #include <X11/Intrinsic.h> 4187 #include <X11/Intrinsic.h>
4185 int main() { 4188 int main() {
4186 #if XtSpecificationRelease < 6 4189 #if XtSpecificationRelease < 6
4187 fail; 4190 fail;
4188 #endif 4191 #endif
4189 4192
4190 ; return 0; } 4193 ; return 0; }
4191 EOF 4194 EOF
4192 if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 rm -rf conftest* 4196 rm -rf conftest*
4194 emacs_cv_x11_toolkit_version_6=yes 4197 emacs_cv_x11_toolkit_version_6=yes
4195 else 4198 else
4196 echo "configure: failed program was:" >&5 4199 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5 4200 cat conftest.$ac_ext >&5
4217 LIBS="-lXt -lSM -lICE $LIBS" 4220 LIBS="-lXt -lSM -lICE $LIBS"
4218 else 4221 else
4219 LIBS="-lXt $LIBS" 4222 LIBS="-lXt $LIBS"
4220 fi 4223 fi
4221 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4224 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4222 echo "configure:4223: checking for XmuConvertStandardSelection in -lXmu" >&5 4225 echo "configure:4226: checking for XmuConvertStandardSelection in -lXmu" >&5
4223 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4226 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6 4228 echo $ac_n "(cached) $ac_c" 1>&6
4226 else 4229 else
4227 ac_save_LIBS="$LIBS" 4230 ac_save_LIBS="$LIBS"
4228 LIBS="-lXmu $LIBS" 4231 LIBS="-lXmu $LIBS"
4229 cat > conftest.$ac_ext <<EOF 4232 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure" 4233 #line 4234 "configure"
4231 #include "confdefs.h" 4234 #include "confdefs.h"
4232 /* Override any gcc2 internal prototype to avoid an error. */ 4235 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2 4236 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */ 4237 builtin and then its argument prototype would still apply. */
4235 char XmuConvertStandardSelection(); 4238 char XmuConvertStandardSelection();
4236 4239
4237 int main() { 4240 int main() {
4238 XmuConvertStandardSelection() 4241 XmuConvertStandardSelection()
4239 ; return 0; } 4242 ; return 0; }
4240 EOF 4243 EOF
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4242 rm -rf conftest* 4245 rm -rf conftest*
4243 eval "ac_cv_lib_$ac_lib_var=yes" 4246 eval "ac_cv_lib_$ac_lib_var=yes"
4244 else 4247 else
4245 echo "configure: failed program was:" >&5 4248 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5 4249 cat conftest.$ac_ext >&5
4268 LIBS="$OLDLIBS" 4271 LIBS="$OLDLIBS"
4269 fi 4272 fi
4270 4273
4271 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4274 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4272 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4275 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4273 echo "configure:4274: checking for Motif version 2.1" >&5 4276 echo "configure:4277: checking for Motif version 2.1" >&5
4274 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4277 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6 4278 echo $ac_n "(cached) $ac_c" 1>&6
4276 else 4279 else
4277 cat > conftest.$ac_ext <<EOF 4280 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure" 4281 #line 4282 "configure"
4279 #include "confdefs.h" 4282 #include "confdefs.h"
4280 #include <Xm/Xm.h> 4283 #include <Xm/Xm.h>
4281 int main() { 4284 int main() {
4282 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4285 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4283 int x = 5; 4286 int x = 5;
4284 #else 4287 #else
4285 Motif version prior to 2.1. 4288 Motif version prior to 2.1.
4286 #endif 4289 #endif
4287 ; return 0; } 4290 ; return 0; }
4288 EOF 4291 EOF
4289 if { (eval echo configure:4290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4290 rm -rf conftest* 4293 rm -rf conftest*
4291 emacs_cv_motif_version_2_1=yes 4294 emacs_cv_motif_version_2_1=yes
4292 else 4295 else
4293 echo "configure: failed program was:" >&5 4296 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5 4297 cat conftest.$ac_ext >&5
4304 cat >> confdefs.h <<\EOF 4307 cat >> confdefs.h <<\EOF
4305 #define HAVE_MOTIF_2_1 1 4308 #define HAVE_MOTIF_2_1 1
4306 EOF 4309 EOF
4307 4310
4308 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4311 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4309 echo "configure:4310: checking for XpCreateContext in -lXp" >&5 4312 echo "configure:4313: checking for XpCreateContext in -lXp" >&5
4310 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4313 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6 4315 echo $ac_n "(cached) $ac_c" 1>&6
4313 else 4316 else
4314 ac_save_LIBS="$LIBS" 4317 ac_save_LIBS="$LIBS"
4315 LIBS="-lXp -lXext $LIBS" 4318 LIBS="-lXp -lXext $LIBS"
4316 cat > conftest.$ac_ext <<EOF 4319 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure" 4320 #line 4321 "configure"
4318 #include "confdefs.h" 4321 #include "confdefs.h"
4319 /* Override any gcc2 internal prototype to avoid an error. */ 4322 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2 4323 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */ 4324 builtin and then its argument prototype would still apply. */
4322 char XpCreateContext(); 4325 char XpCreateContext();
4323 4326
4324 int main() { 4327 int main() {
4325 XpCreateContext() 4328 XpCreateContext()
4326 ; return 0; } 4329 ; return 0; }
4327 EOF 4330 EOF
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 rm -rf conftest* 4332 rm -rf conftest*
4330 eval "ac_cv_lib_$ac_lib_var=yes" 4333 eval "ac_cv_lib_$ac_lib_var=yes"
4331 else 4334 else
4332 echo "configure: failed program was:" >&5 4335 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5 4336 cat conftest.$ac_ext >&5
4360 if test "${USE_X_TOOLKIT}" != "none"; then 4363 if test "${USE_X_TOOLKIT}" != "none"; then
4361 old_c_flags="${CFLAGS}" 4364 old_c_flags="${CFLAGS}"
4362 CFLAGS="${LD_SWITCH_X_SITE}" 4365 CFLAGS="${LD_SWITCH_X_SITE}"
4363 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4366 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4364 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4367 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4365 echo "configure:4366: checking for X11/Xaw3d/Scrollbar.h" >&5 4368 echo "configure:4369: checking for X11/Xaw3d/Scrollbar.h" >&5
4366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6 4370 echo $ac_n "(cached) $ac_c" 1>&6
4368 else 4371 else
4369 cat > conftest.$ac_ext <<EOF 4372 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure" 4373 #line 4374 "configure"
4371 #include "confdefs.h" 4374 #include "confdefs.h"
4372 #include <X11/Xaw3d/Scrollbar.h> 4375 #include <X11/Xaw3d/Scrollbar.h>
4373 EOF 4376 EOF
4374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4375 { (eval echo configure:4376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4377 if test -z "$ac_err"; then 4380 if test -z "$ac_err"; then
4378 rm -rf conftest* 4381 rm -rf conftest*
4379 eval "ac_cv_header_$ac_safe=yes" 4382 eval "ac_cv_header_$ac_safe=yes"
4380 else 4383 else
4387 rm -f conftest* 4390 rm -f conftest*
4388 fi 4391 fi
4389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6 4393 echo "$ac_t""yes" 1>&6
4391 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4394 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4392 echo "configure:4393: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4395 echo "configure:4396: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4393 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4396 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6 4398 echo $ac_n "(cached) $ac_c" 1>&6
4396 else 4399 else
4397 ac_save_LIBS="$LIBS" 4400 ac_save_LIBS="$LIBS"
4398 LIBS="-lXaw3d -lX11 $LIBS" 4401 LIBS="-lXaw3d -lX11 $LIBS"
4399 cat > conftest.$ac_ext <<EOF 4402 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure" 4403 #line 4404 "configure"
4401 #include "confdefs.h" 4404 #include "confdefs.h"
4402 /* Override any gcc2 internal prototype to avoid an error. */ 4405 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2 4406 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */ 4407 builtin and then its argument prototype would still apply. */
4405 char XawScrollbarSetThumb(); 4408 char XawScrollbarSetThumb();
4406 4409
4407 int main() { 4410 int main() {
4408 XawScrollbarSetThumb() 4411 XawScrollbarSetThumb()
4409 ; return 0; } 4412 ; return 0; }
4410 EOF 4413 EOF
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 rm -rf conftest* 4415 rm -rf conftest*
4413 eval "ac_cv_lib_$ac_lib_var=yes" 4416 eval "ac_cv_lib_$ac_lib_var=yes"
4414 else 4417 else
4415 echo "configure: failed program was:" >&5 4418 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5 4419 cat conftest.$ac_ext >&5
4478 if test "${with_xpm}" != "no"; then 4481 if test "${with_xpm}" != "no"; then
4479 old_c_flags="${CFLAGS}" 4482 old_c_flags="${CFLAGS}"
4480 CFLAGS="${LD_SWITCH_X_SITE}" 4483 CFLAGS="${LD_SWITCH_X_SITE}"
4481 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4484 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4482 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4485 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4483 echo "configure:4484: checking for X11/xpm.h" >&5 4486 echo "configure:4487: checking for X11/xpm.h" >&5
4484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6 4488 echo $ac_n "(cached) $ac_c" 1>&6
4486 else 4489 else
4487 cat > conftest.$ac_ext <<EOF 4490 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure" 4491 #line 4492 "configure"
4489 #include "confdefs.h" 4492 #include "confdefs.h"
4490 #include <X11/xpm.h> 4493 #include <X11/xpm.h>
4491 EOF 4494 EOF
4492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4493 { (eval echo configure:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4496 { (eval echo configure:4497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4495 if test -z "$ac_err"; then 4498 if test -z "$ac_err"; then
4496 rm -rf conftest* 4499 rm -rf conftest*
4497 eval "ac_cv_header_$ac_safe=yes" 4500 eval "ac_cv_header_$ac_safe=yes"
4498 else 4501 else
4505 rm -f conftest* 4508 rm -f conftest*
4506 fi 4509 fi
4507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6 4511 echo "$ac_t""yes" 1>&6
4509 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4512 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4510 echo "configure:4511: checking for XpmReadFileToPixmap in -lXpm" >&5 4513 echo "configure:4514: checking for XpmReadFileToPixmap in -lXpm" >&5
4511 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4514 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6 4516 echo $ac_n "(cached) $ac_c" 1>&6
4514 else 4517 else
4515 ac_save_LIBS="$LIBS" 4518 ac_save_LIBS="$LIBS"
4516 LIBS="-lXpm -lX11 $LIBS" 4519 LIBS="-lXpm -lX11 $LIBS"
4517 cat > conftest.$ac_ext <<EOF 4520 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure" 4521 #line 4522 "configure"
4519 #include "confdefs.h" 4522 #include "confdefs.h"
4520 /* Override any gcc2 internal prototype to avoid an error. */ 4523 /* Override any gcc2 internal prototype to avoid an error. */
4521 /* We use char because int might match the return type of a gcc2 4524 /* We use char because int might match the return type of a gcc2
4522 builtin and then its argument prototype would still apply. */ 4525 builtin and then its argument prototype would still apply. */
4523 char XpmReadFileToPixmap(); 4526 char XpmReadFileToPixmap();
4524 4527
4525 int main() { 4528 int main() {
4526 XpmReadFileToPixmap() 4529 XpmReadFileToPixmap()
4527 ; return 0; } 4530 ; return 0; }
4528 EOF 4531 EOF
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530 rm -rf conftest* 4533 rm -rf conftest*
4531 eval "ac_cv_lib_$ac_lib_var=yes" 4534 eval "ac_cv_lib_$ac_lib_var=yes"
4532 else 4535 else
4533 echo "configure: failed program was:" >&5 4536 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5 4537 cat conftest.$ac_ext >&5
4567 if test "${with_jpeg}" != "no"; then 4570 if test "${with_jpeg}" != "no"; then
4568 old_c_flags="${CFLAGS}" 4571 old_c_flags="${CFLAGS}"
4569 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4572 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4570 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 4573 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4571 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 4574 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4572 echo "configure:4573: checking for jerror.h" >&5 4575 echo "configure:4576: checking for jerror.h" >&5
4573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6 4577 echo $ac_n "(cached) $ac_c" 1>&6
4575 else 4578 else
4576 cat > conftest.$ac_ext <<EOF 4579 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure" 4580 #line 4581 "configure"
4578 #include "confdefs.h" 4581 #include "confdefs.h"
4579 #include <jerror.h> 4582 #include <jerror.h>
4580 EOF 4583 EOF
4581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4582 { (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4585 { (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4584 if test -z "$ac_err"; then 4587 if test -z "$ac_err"; then
4585 rm -rf conftest* 4588 rm -rf conftest*
4586 eval "ac_cv_header_$ac_safe=yes" 4589 eval "ac_cv_header_$ac_safe=yes"
4587 else 4590 else
4594 rm -f conftest* 4597 rm -f conftest*
4595 fi 4598 fi
4596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6 4600 echo "$ac_t""yes" 1>&6
4598 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4601 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4599 echo "configure:4600: checking for jpeg_destroy_compress in -ljpeg" >&5 4602 echo "configure:4603: checking for jpeg_destroy_compress in -ljpeg" >&5
4600 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4603 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6 4605 echo $ac_n "(cached) $ac_c" 1>&6
4603 else 4606 else
4604 ac_save_LIBS="$LIBS" 4607 ac_save_LIBS="$LIBS"
4605 LIBS="-ljpeg -lX11 $LIBS" 4608 LIBS="-ljpeg -lX11 $LIBS"
4606 cat > conftest.$ac_ext <<EOF 4609 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure" 4610 #line 4611 "configure"
4608 #include "confdefs.h" 4611 #include "confdefs.h"
4609 /* Override any gcc2 internal prototype to avoid an error. */ 4612 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2 4613 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */ 4614 builtin and then its argument prototype would still apply. */
4612 char jpeg_destroy_compress(); 4615 char jpeg_destroy_compress();
4613 4616
4614 int main() { 4617 int main() {
4615 jpeg_destroy_compress() 4618 jpeg_destroy_compress()
4616 ; return 0; } 4619 ; return 0; }
4617 EOF 4620 EOF
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 rm -rf conftest* 4622 rm -rf conftest*
4620 eval "ac_cv_lib_$ac_lib_var=yes" 4623 eval "ac_cv_lib_$ac_lib_var=yes"
4621 else 4624 else
4622 echo "configure: failed program was:" >&5 4625 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5 4626 cat conftest.$ac_ext >&5
4656 if test "${with_png}" != "no"; then 4659 if test "${with_png}" != "no"; then
4657 old_c_flags="${CFLAGS}" 4660 old_c_flags="${CFLAGS}"
4658 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4661 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4659 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4662 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4660 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4663 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4661 echo "configure:4662: checking for png.h" >&5 4664 echo "configure:4665: checking for png.h" >&5
4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6 4666 echo $ac_n "(cached) $ac_c" 1>&6
4664 else 4667 else
4665 cat > conftest.$ac_ext <<EOF 4668 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure" 4669 #line 4670 "configure"
4667 #include "confdefs.h" 4670 #include "confdefs.h"
4668 #include <png.h> 4671 #include <png.h>
4669 EOF 4672 EOF
4670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671 { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4674 { (eval echo configure:4675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673 if test -z "$ac_err"; then 4676 if test -z "$ac_err"; then
4674 rm -rf conftest* 4677 rm -rf conftest*
4675 eval "ac_cv_header_$ac_safe=yes" 4678 eval "ac_cv_header_$ac_safe=yes"
4676 else 4679 else
4683 rm -f conftest* 4686 rm -f conftest*
4684 fi 4687 fi
4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6 4689 echo "$ac_t""yes" 1>&6
4687 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4690 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4688 echo "configure:4689: checking for png_set_expand in -lpng" >&5 4691 echo "configure:4692: checking for png_set_expand in -lpng" >&5
4689 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4692 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6 4694 echo $ac_n "(cached) $ac_c" 1>&6
4692 else 4695 else
4693 ac_save_LIBS="$LIBS" 4696 ac_save_LIBS="$LIBS"
4694 LIBS="-lpng -lX11 -lz -lm $LIBS" 4697 LIBS="-lpng -lX11 -lz -lm $LIBS"
4695 cat > conftest.$ac_ext <<EOF 4698 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure" 4699 #line 4700 "configure"
4697 #include "confdefs.h" 4700 #include "confdefs.h"
4698 /* Override any gcc2 internal prototype to avoid an error. */ 4701 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2 4702 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */ 4703 builtin and then its argument prototype would still apply. */
4701 char png_set_expand(); 4704 char png_set_expand();
4702 4705
4703 int main() { 4706 int main() {
4704 png_set_expand() 4707 png_set_expand()
4705 ; return 0; } 4708 ; return 0; }
4706 EOF 4709 EOF
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 rm -rf conftest* 4711 rm -rf conftest*
4709 eval "ac_cv_lib_$ac_lib_var=yes" 4712 eval "ac_cv_lib_$ac_lib_var=yes"
4710 else 4713 else
4711 echo "configure: failed program was:" >&5 4714 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5 4715 cat conftest.$ac_ext >&5
4745 if test "${with_tiff}" != "no"; then 4748 if test "${with_tiff}" != "no"; then
4746 old_c_flags="${CFLAGS}" 4749 old_c_flags="${CFLAGS}"
4747 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4750 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4748 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4751 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4749 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4752 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4750 echo "configure:4751: checking for tiffio.h" >&5 4753 echo "configure:4754: checking for tiffio.h" >&5
4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6 4755 echo $ac_n "(cached) $ac_c" 1>&6
4753 else 4756 else
4754 cat > conftest.$ac_ext <<EOF 4757 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure" 4758 #line 4759 "configure"
4756 #include "confdefs.h" 4759 #include "confdefs.h"
4757 #include <tiffio.h> 4760 #include <tiffio.h>
4758 EOF 4761 EOF
4759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4760 { (eval echo configure:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4763 { (eval echo configure:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4762 if test -z "$ac_err"; then 4765 if test -z "$ac_err"; then
4763 rm -rf conftest* 4766 rm -rf conftest*
4764 eval "ac_cv_header_$ac_safe=yes" 4767 eval "ac_cv_header_$ac_safe=yes"
4765 else 4768 else
4775 echo "$ac_t""yes" 1>&6 4778 echo "$ac_t""yes" 1>&6
4776 tifflibs="-lX11 -lz -lm" 4779 tifflibs="-lX11 -lz -lm"
4777 # At least one tiff package requires the jpeg library. 4780 # At least one tiff package requires the jpeg library.
4778 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 4781 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4779 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4782 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4780 echo "configure:4781: checking for TIFFGetVersion in -ltiff" >&5 4783 echo "configure:4784: checking for TIFFGetVersion in -ltiff" >&5
4781 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4784 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6 4786 echo $ac_n "(cached) $ac_c" 1>&6
4784 else 4787 else
4785 ac_save_LIBS="$LIBS" 4788 ac_save_LIBS="$LIBS"
4786 LIBS="-ltiff $tifflibs $LIBS" 4789 LIBS="-ltiff $tifflibs $LIBS"
4787 cat > conftest.$ac_ext <<EOF 4790 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure" 4791 #line 4792 "configure"
4789 #include "confdefs.h" 4792 #include "confdefs.h"
4790 /* Override any gcc2 internal prototype to avoid an error. */ 4793 /* Override any gcc2 internal prototype to avoid an error. */
4791 /* We use char because int might match the return type of a gcc2 4794 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */ 4795 builtin and then its argument prototype would still apply. */
4793 char TIFFGetVersion(); 4796 char TIFFGetVersion();
4794 4797
4795 int main() { 4798 int main() {
4796 TIFFGetVersion() 4799 TIFFGetVersion()
4797 ; return 0; } 4800 ; return 0; }
4798 EOF 4801 EOF
4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800 rm -rf conftest* 4803 rm -rf conftest*
4801 eval "ac_cv_lib_$ac_lib_var=yes" 4804 eval "ac_cv_lib_$ac_lib_var=yes"
4802 else 4805 else
4803 echo "configure: failed program was:" >&5 4806 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5 4807 cat conftest.$ac_ext >&5
4837 if test "${with_gif}" != "no"; then 4840 if test "${with_gif}" != "no"; then
4838 old_c_flags="${CFLAGS}" 4841 old_c_flags="${CFLAGS}"
4839 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4842 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4840 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4843 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4841 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4844 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4842 echo "configure:4843: checking for gif_lib.h" >&5 4845 echo "configure:4846: checking for gif_lib.h" >&5
4843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6 4847 echo $ac_n "(cached) $ac_c" 1>&6
4845 else 4848 else
4846 cat > conftest.$ac_ext <<EOF 4849 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure" 4850 #line 4851 "configure"
4848 #include "confdefs.h" 4851 #include "confdefs.h"
4849 #include <gif_lib.h> 4852 #include <gif_lib.h>
4850 EOF 4853 EOF
4851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4852 { (eval echo configure:4853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4854 if test -z "$ac_err"; then 4857 if test -z "$ac_err"; then
4855 rm -rf conftest* 4858 rm -rf conftest*
4856 eval "ac_cv_header_$ac_safe=yes" 4859 eval "ac_cv_header_$ac_safe=yes"
4857 else 4860 else
4864 rm -f conftest* 4867 rm -f conftest*
4865 fi 4868 fi
4866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6 4870 echo "$ac_t""yes" 1>&6
4868 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 4871 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4869 echo "configure:4870: checking for DGifOpen in -lungif" >&5 4872 echo "configure:4873: checking for DGifOpen in -lungif" >&5
4870 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 4873 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6 4875 echo $ac_n "(cached) $ac_c" 1>&6
4873 else 4876 else
4874 ac_save_LIBS="$LIBS" 4877 ac_save_LIBS="$LIBS"
4875 LIBS="-lungif -lX11 $LIBS" 4878 LIBS="-lungif -lX11 $LIBS"
4876 cat > conftest.$ac_ext <<EOF 4879 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure" 4880 #line 4881 "configure"
4878 #include "confdefs.h" 4881 #include "confdefs.h"
4879 /* Override any gcc2 internal prototype to avoid an error. */ 4882 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2 4883 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */ 4884 builtin and then its argument prototype would still apply. */
4882 char DGifOpen(); 4885 char DGifOpen();
4883 4886
4884 int main() { 4887 int main() {
4885 DGifOpen() 4888 DGifOpen()
4886 ; return 0; } 4889 ; return 0; }
4887 EOF 4890 EOF
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 rm -rf conftest* 4892 rm -rf conftest*
4890 eval "ac_cv_lib_$ac_lib_var=yes" 4893 eval "ac_cv_lib_$ac_lib_var=yes"
4891 else 4894 else
4892 echo "configure: failed program was:" >&5 4895 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5 4896 cat conftest.$ac_ext >&5
4920 fi 4923 fi
4921 fi 4924 fi
4922 4925
4923 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4926 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4924 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4927 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4925 echo "configure:4926: checking whether netdb declares h_errno" >&5 4928 echo "configure:4929: checking whether netdb declares h_errno" >&5
4926 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4929 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6 4930 echo $ac_n "(cached) $ac_c" 1>&6
4928 else 4931 else
4929 cat > conftest.$ac_ext <<EOF 4932 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure" 4933 #line 4934 "configure"
4931 #include "confdefs.h" 4934 #include "confdefs.h"
4932 #include <netdb.h> 4935 #include <netdb.h>
4933 int main() { 4936 int main() {
4934 return h_errno; 4937 return h_errno;
4935 ; return 0; } 4938 ; return 0; }
4936 EOF 4939 EOF
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 rm -rf conftest* 4941 rm -rf conftest*
4939 emacs_cv_netdb_declares_h_errno=yes 4942 emacs_cv_netdb_declares_h_errno=yes
4940 else 4943 else
4941 echo "configure: failed program was:" >&5 4944 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5 4945 cat conftest.$ac_ext >&5
4955 fi 4958 fi
4956 4959
4957 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4958 # for constant arguments. Useless! 4961 # for constant arguments. Useless!
4959 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4962 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4960 echo "configure:4961: checking for working alloca.h" >&5 4963 echo "configure:4964: checking for working alloca.h" >&5
4961 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4964 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6 4965 echo $ac_n "(cached) $ac_c" 1>&6
4963 else 4966 else
4964 cat > conftest.$ac_ext <<EOF 4967 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure" 4968 #line 4969 "configure"
4966 #include "confdefs.h" 4969 #include "confdefs.h"
4967 #include <alloca.h> 4970 #include <alloca.h>
4968 int main() { 4971 int main() {
4969 char *p = alloca(2 * sizeof(int)); 4972 char *p = alloca(2 * sizeof(int));
4970 ; return 0; } 4973 ; return 0; }
4971 EOF 4974 EOF
4972 if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4973 rm -rf conftest* 4976 rm -rf conftest*
4974 ac_cv_header_alloca_h=yes 4977 ac_cv_header_alloca_h=yes
4975 else 4978 else
4976 echo "configure: failed program was:" >&5 4979 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5 4980 cat conftest.$ac_ext >&5
4988 EOF 4991 EOF
4989 4992
4990 fi 4993 fi
4991 4994
4992 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4995 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4993 echo "configure:4994: checking for alloca" >&5 4996 echo "configure:4997: checking for alloca" >&5
4994 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4997 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6 4998 echo $ac_n "(cached) $ac_c" 1>&6
4996 else 4999 else
4997 cat > conftest.$ac_ext <<EOF 5000 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure" 5001 #line 5002 "configure"
4999 #include "confdefs.h" 5002 #include "confdefs.h"
5000 5003
5001 #ifdef __GNUC__ 5004 #ifdef __GNUC__
5002 # define alloca __builtin_alloca 5005 # define alloca __builtin_alloca
5003 #else 5006 #else
5021 5024
5022 int main() { 5025 int main() {
5023 char *p = (char *) alloca(1); 5026 char *p = (char *) alloca(1);
5024 ; return 0; } 5027 ; return 0; }
5025 EOF 5028 EOF
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5027 rm -rf conftest* 5030 rm -rf conftest*
5028 ac_cv_func_alloca_works=yes 5031 ac_cv_func_alloca_works=yes
5029 else 5032 else
5030 echo "configure: failed program was:" >&5 5033 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5 5034 cat conftest.$ac_ext >&5
5053 #define C_ALLOCA 1 5056 #define C_ALLOCA 1
5054 EOF 5057 EOF
5055 5058
5056 5059
5057 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5060 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5058 echo "configure:5059: checking whether alloca needs Cray hooks" >&5 5061 echo "configure:5062: checking whether alloca needs Cray hooks" >&5
5059 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5062 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6 5063 echo $ac_n "(cached) $ac_c" 1>&6
5061 else 5064 else
5062 cat > conftest.$ac_ext <<EOF 5065 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure" 5066 #line 5067 "configure"
5064 #include "confdefs.h" 5067 #include "confdefs.h"
5065 #if defined(CRAY) && ! defined(CRAY2) 5068 #if defined(CRAY) && ! defined(CRAY2)
5066 webecray 5069 webecray
5067 #else 5070 #else
5068 wenotbecray 5071 wenotbecray
5083 5086
5084 echo "$ac_t""$ac_cv_os_cray" 1>&6 5087 echo "$ac_t""$ac_cv_os_cray" 1>&6
5085 if test $ac_cv_os_cray = yes; then 5088 if test $ac_cv_os_cray = yes; then
5086 for ac_func in _getb67 GETB67 getb67; do 5089 for ac_func in _getb67 GETB67 getb67; do
5087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5088 echo "configure:5089: checking for $ac_func" >&5 5091 echo "configure:5092: checking for $ac_func" >&5
5089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6 5093 echo $ac_n "(cached) $ac_c" 1>&6
5091 else 5094 else
5092 cat > conftest.$ac_ext <<EOF 5095 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure" 5096 #line 5097 "configure"
5094 #include "confdefs.h" 5097 #include "confdefs.h"
5095 /* System header to define __stub macros and hopefully few prototypes, 5098 /* System header to define __stub macros and hopefully few prototypes,
5096 which can conflict with char $ac_func(); below. */ 5099 which can conflict with char $ac_func(); below. */
5097 #include <assert.h> 5100 #include <assert.h>
5098 /* Override any gcc2 internal prototype to avoid an error. */ 5101 /* Override any gcc2 internal prototype to avoid an error. */
5111 $ac_func(); 5114 $ac_func();
5112 #endif 5115 #endif
5113 5116
5114 ; return 0; } 5117 ; return 0; }
5115 EOF 5118 EOF
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 rm -rf conftest* 5120 rm -rf conftest*
5118 eval "ac_cv_func_$ac_func=yes" 5121 eval "ac_cv_func_$ac_func=yes"
5119 else 5122 else
5120 echo "configure: failed program was:" >&5 5123 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5 5124 cat conftest.$ac_ext >&5
5138 5141
5139 done 5142 done
5140 fi 5143 fi
5141 5144
5142 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5145 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5143 echo "configure:5144: checking stack direction for C alloca" >&5 5146 echo "configure:5147: checking stack direction for C alloca" >&5
5144 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5147 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6 5148 echo $ac_n "(cached) $ac_c" 1>&6
5146 else 5149 else
5147 if test "$cross_compiling" = yes; then 5150 if test "$cross_compiling" = yes; then
5148 ac_cv_c_stack_direction=0 5151 ac_cv_c_stack_direction=0
5149 else 5152 else
5150 cat > conftest.$ac_ext <<EOF 5153 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure" 5154 #line 5155 "configure"
5152 #include "confdefs.h" 5155 #include "confdefs.h"
5153 find_stack_direction () 5156 find_stack_direction ()
5154 { 5157 {
5155 static char *addr = 0; 5158 static char *addr = 0;
5156 auto char dummy; 5159 auto char dummy;
5165 main () 5168 main ()
5166 { 5169 {
5167 exit (find_stack_direction() < 0); 5170 exit (find_stack_direction() < 0);
5168 } 5171 }
5169 EOF 5172 EOF
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5171 then 5174 then
5172 ac_cv_c_stack_direction=1 5175 ac_cv_c_stack_direction=1
5173 else 5176 else
5174 echo "configure: failed program was:" >&5 5177 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5 5178 cat conftest.$ac_ext >&5
5190 5193
5191 5194
5192 # fmod, logb, and frexp are found in -lm on most systems. 5195 # fmod, logb, and frexp are found in -lm on most systems.
5193 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5196 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5194 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5197 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5195 echo "configure:5196: checking for sqrt in -lm" >&5 5198 echo "configure:5199: checking for sqrt in -lm" >&5
5196 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5199 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6 5201 echo $ac_n "(cached) $ac_c" 1>&6
5199 else 5202 else
5200 ac_save_LIBS="$LIBS" 5203 ac_save_LIBS="$LIBS"
5201 LIBS="-lm $LIBS" 5204 LIBS="-lm $LIBS"
5202 cat > conftest.$ac_ext <<EOF 5205 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure" 5206 #line 5207 "configure"
5204 #include "confdefs.h" 5207 #include "confdefs.h"
5205 /* Override any gcc2 internal prototype to avoid an error. */ 5208 /* Override any gcc2 internal prototype to avoid an error. */
5206 /* We use char because int might match the return type of a gcc2 5209 /* We use char because int might match the return type of a gcc2
5207 builtin and then its argument prototype would still apply. */ 5210 builtin and then its argument prototype would still apply. */
5208 char sqrt(); 5211 char sqrt();
5209 5212
5210 int main() { 5213 int main() {
5211 sqrt() 5214 sqrt()
5212 ; return 0; } 5215 ; return 0; }
5213 EOF 5216 EOF
5214 if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 rm -rf conftest* 5218 rm -rf conftest*
5216 eval "ac_cv_lib_$ac_lib_var=yes" 5219 eval "ac_cv_lib_$ac_lib_var=yes"
5217 else 5220 else
5218 echo "configure: failed program was:" >&5 5221 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5 5222 cat conftest.$ac_ext >&5
5239 fi 5242 fi
5240 5243
5241 5244
5242 # Check for mail-locking functions in a "mail" library 5245 # Check for mail-locking functions in a "mail" library
5243 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5246 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5244 echo "configure:5245: checking for maillock in -lmail" >&5 5247 echo "configure:5248: checking for maillock in -lmail" >&5
5245 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5248 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6 5250 echo $ac_n "(cached) $ac_c" 1>&6
5248 else 5251 else
5249 ac_save_LIBS="$LIBS" 5252 ac_save_LIBS="$LIBS"
5250 LIBS="-lmail $LIBS" 5253 LIBS="-lmail $LIBS"
5251 cat > conftest.$ac_ext <<EOF 5254 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure" 5255 #line 5256 "configure"
5253 #include "confdefs.h" 5256 #include "confdefs.h"
5254 /* Override any gcc2 internal prototype to avoid an error. */ 5257 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2 5258 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */ 5259 builtin and then its argument prototype would still apply. */
5257 char maillock(); 5260 char maillock();
5258 5261
5259 int main() { 5262 int main() {
5260 maillock() 5263 maillock()
5261 ; return 0; } 5264 ; return 0; }
5262 EOF 5265 EOF
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 rm -rf conftest* 5267 rm -rf conftest*
5265 eval "ac_cv_lib_$ac_lib_var=yes" 5268 eval "ac_cv_lib_$ac_lib_var=yes"
5266 else 5269 else
5267 echo "configure: failed program was:" >&5 5270 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5 5271 cat conftest.$ac_ext >&5
5286 else 5289 else
5287 echo "$ac_t""no" 1>&6 5290 echo "$ac_t""no" 1>&6
5288 fi 5291 fi
5289 5292
5290 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5293 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5291 echo "configure:5292: checking for maillock in -llockfile" >&5 5294 echo "configure:5295: checking for maillock in -llockfile" >&5
5292 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5295 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6 5297 echo $ac_n "(cached) $ac_c" 1>&6
5295 else 5298 else
5296 ac_save_LIBS="$LIBS" 5299 ac_save_LIBS="$LIBS"
5297 LIBS="-llockfile $LIBS" 5300 LIBS="-llockfile $LIBS"
5298 cat > conftest.$ac_ext <<EOF 5301 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure" 5302 #line 5303 "configure"
5300 #include "confdefs.h" 5303 #include "confdefs.h"
5301 /* Override any gcc2 internal prototype to avoid an error. */ 5304 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2 5305 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */ 5306 builtin and then its argument prototype would still apply. */
5304 char maillock(); 5307 char maillock();
5305 5308
5306 int main() { 5309 int main() {
5307 maillock() 5310 maillock()
5308 ; return 0; } 5311 ; return 0; }
5309 EOF 5312 EOF
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 rm -rf conftest* 5314 rm -rf conftest*
5312 eval "ac_cv_lib_$ac_lib_var=yes" 5315 eval "ac_cv_lib_$ac_lib_var=yes"
5313 else 5316 else
5314 echo "configure: failed program was:" >&5 5317 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5 5318 cat conftest.$ac_ext >&5
5339 # (no liblockfile.a installed), ensure that we don't need to. 5342 # (no liblockfile.a installed), ensure that we don't need to.
5340 if test "$ac_cv_lib_lockfile_maillock" = no; then 5343 if test "$ac_cv_lib_lockfile_maillock" = no; then
5341 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5344 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5342 set dummy liblockfile.so; ac_word=$2 5345 set dummy liblockfile.so; ac_word=$2
5343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5344 echo "configure:5345: checking for $ac_word" >&5 5347 echo "configure:5348: checking for $ac_word" >&5
5345 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5348 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6 5349 echo $ac_n "(cached) $ac_c" 1>&6
5347 else 5350 else
5348 if test -n "$liblockfile"; then 5351 if test -n "$liblockfile"; then
5349 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5352 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5380 else : 5383 else :
5381 fi 5384 fi
5382 for ac_func in touchlock 5385 for ac_func in touchlock
5383 do 5386 do
5384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_func" >&5 5388 echo "configure:5389: checking for $ac_func" >&5
5386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes, 5395 /* System header to define __stub macros and hopefully few prototypes,
5393 which can conflict with char $ac_func(); below. */ 5396 which can conflict with char $ac_func(); below. */
5394 #include <assert.h> 5397 #include <assert.h>
5395 /* Override any gcc2 internal prototype to avoid an error. */ 5398 /* Override any gcc2 internal prototype to avoid an error. */
5408 $ac_func(); 5411 $ac_func();
5409 #endif 5412 #endif
5410 5413
5411 ; return 0; } 5414 ; return 0; }
5412 EOF 5415 EOF
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 rm -rf conftest* 5417 rm -rf conftest*
5415 eval "ac_cv_func_$ac_func=yes" 5418 eval "ac_cv_func_$ac_func=yes"
5416 else 5419 else
5417 echo "configure: failed program was:" >&5 5420 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5 5421 cat conftest.$ac_ext >&5
5436 5439
5437 for ac_hdr in maillock.h 5440 for ac_hdr in maillock.h
5438 do 5441 do
5439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5441 echo "configure:5442: checking for $ac_hdr" >&5 5444 echo "configure:5445: checking for $ac_hdr" >&5
5442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6 5446 echo $ac_n "(cached) $ac_c" 1>&6
5444 else 5447 else
5445 cat > conftest.$ac_ext <<EOF 5448 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure" 5449 #line 5450 "configure"
5447 #include "confdefs.h" 5450 #include "confdefs.h"
5448 #include <$ac_hdr> 5451 #include <$ac_hdr>
5449 EOF 5452 EOF
5450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5451 { (eval echo configure:5452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5453 if test -z "$ac_err"; then 5456 if test -z "$ac_err"; then
5454 rm -rf conftest* 5457 rm -rf conftest*
5455 eval "ac_cv_header_$ac_safe=yes" 5458 eval "ac_cv_header_$ac_safe=yes"
5456 else 5459 else
5481 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5484 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5482 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 5485 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
5483 __fpending mblen mbrlen strsignal setitimer ualarm 5486 __fpending mblen mbrlen strsignal setitimer ualarm
5484 do 5487 do
5485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5486 echo "configure:5487: checking for $ac_func" >&5 5489 echo "configure:5490: checking for $ac_func" >&5
5487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6 5491 echo $ac_n "(cached) $ac_c" 1>&6
5489 else 5492 else
5490 cat > conftest.$ac_ext <<EOF 5493 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure" 5494 #line 5495 "configure"
5492 #include "confdefs.h" 5495 #include "confdefs.h"
5493 /* System header to define __stub macros and hopefully few prototypes, 5496 /* System header to define __stub macros and hopefully few prototypes,
5494 which can conflict with char $ac_func(); below. */ 5497 which can conflict with char $ac_func(); below. */
5495 #include <assert.h> 5498 #include <assert.h>
5496 /* Override any gcc2 internal prototype to avoid an error. */ 5499 /* Override any gcc2 internal prototype to avoid an error. */
5509 $ac_func(); 5512 $ac_func();
5510 #endif 5513 #endif
5511 5514
5512 ; return 0; } 5515 ; return 0; }
5513 EOF 5516 EOF
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 rm -rf conftest* 5518 rm -rf conftest*
5516 eval "ac_cv_func_$ac_func=yes" 5519 eval "ac_cv_func_$ac_func=yes"
5517 else 5520 else
5518 echo "configure: failed program was:" >&5 5521 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5 5522 cat conftest.$ac_ext >&5
5538 5541
5539 for ac_hdr in sys/time.h unistd.h 5542 for ac_hdr in sys/time.h unistd.h
5540 do 5543 do
5541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5543 echo "configure:5544: checking for $ac_hdr" >&5 5546 echo "configure:5547: checking for $ac_hdr" >&5
5544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6 5548 echo $ac_n "(cached) $ac_c" 1>&6
5546 else 5549 else
5547 cat > conftest.$ac_ext <<EOF 5550 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure" 5551 #line 5552 "configure"
5549 #include "confdefs.h" 5552 #include "confdefs.h"
5550 #include <$ac_hdr> 5553 #include <$ac_hdr>
5551 EOF 5554 EOF
5552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5553 { (eval echo configure:5554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5556 { (eval echo configure:5557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5555 if test -z "$ac_err"; then 5558 if test -z "$ac_err"; then
5556 rm -rf conftest* 5559 rm -rf conftest*
5557 eval "ac_cv_header_$ac_safe=yes" 5560 eval "ac_cv_header_$ac_safe=yes"
5558 else 5561 else
5577 done 5580 done
5578 5581
5579 for ac_func in alarm 5582 for ac_func in alarm
5580 do 5583 do
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5 5585 echo "configure:5586: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6 5587 echo $ac_n "(cached) $ac_c" 1>&6
5585 else 5588 else
5586 cat > conftest.$ac_ext <<EOF 5589 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure" 5590 #line 5591 "configure"
5588 #include "confdefs.h" 5591 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes, 5592 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func(); below. */ 5593 which can conflict with char $ac_func(); below. */
5591 #include <assert.h> 5594 #include <assert.h>
5592 /* Override any gcc2 internal prototype to avoid an error. */ 5595 /* Override any gcc2 internal prototype to avoid an error. */
5605 $ac_func(); 5608 $ac_func();
5606 #endif 5609 #endif
5607 5610
5608 ; return 0; } 5611 ; return 0; }
5609 EOF 5612 EOF
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 rm -rf conftest* 5614 rm -rf conftest*
5612 eval "ac_cv_func_$ac_func=yes" 5615 eval "ac_cv_func_$ac_func=yes"
5613 else 5616 else
5614 echo "configure: failed program was:" >&5 5617 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5 5618 cat conftest.$ac_ext >&5
5630 echo "$ac_t""no" 1>&6 5633 echo "$ac_t""no" 1>&6
5631 fi 5634 fi
5632 done 5635 done
5633 5636
5634 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 5637 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
5635 echo "configure:5636: checking for working mktime" >&5 5638 echo "configure:5639: checking for working mktime" >&5
5636 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 5639 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6 5640 echo $ac_n "(cached) $ac_c" 1>&6
5638 else 5641 else
5639 if test "$cross_compiling" = yes; then 5642 if test "$cross_compiling" = yes; then
5640 ac_cv_func_working_mktime=no 5643 ac_cv_func_working_mktime=no
5641 else 5644 else
5642 cat > conftest.$ac_ext <<EOF 5645 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure" 5646 #line 5647 "configure"
5644 #include "confdefs.h" 5647 #include "confdefs.h"
5645 /* Test program from Paul Eggert (eggert@twinsun.com) 5648 /* Test program from Paul Eggert (eggert@twinsun.com)
5646 and Tony Leneis (tony@plaza.ds.adp.com). */ 5649 and Tony Leneis (tony@plaza.ds.adp.com). */
5647 #if TIME_WITH_SYS_TIME 5650 #if TIME_WITH_SYS_TIME
5648 # include <sys/time.h> 5651 # include <sys/time.h>
5787 irix_6_4_bug (); 5790 irix_6_4_bug ();
5788 spring_forward_gap (); 5791 spring_forward_gap ();
5789 exit (0); 5792 exit (0);
5790 } 5793 }
5791 EOF 5794 EOF
5792 if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5793 then 5796 then
5794 ac_cv_func_working_mktime=yes 5797 ac_cv_func_working_mktime=yes
5795 else 5798 else
5796 echo "configure: failed program was:" >&5 5799 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5 5800 cat conftest.$ac_ext >&5
5819 5822
5820 # Some systems with -lutil have (and need) -lkvm as well, some do not. 5823 # Some systems with -lutil have (and need) -lkvm as well, some do not.
5821 # On Solaris, -lkvm requires nlist from -lelf, so check that first 5824 # On Solaris, -lkvm requires nlist from -lelf, so check that first
5822 # to get the right answer into the cache. 5825 # to get the right answer into the cache.
5823 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 5826 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
5824 echo "configure:5825: checking for elf_begin in -lelf" >&5 5827 echo "configure:5828: checking for elf_begin in -lelf" >&5
5825 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 5828 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
5826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6 5830 echo $ac_n "(cached) $ac_c" 1>&6
5828 else 5831 else
5829 ac_save_LIBS="$LIBS" 5832 ac_save_LIBS="$LIBS"
5830 LIBS="-lelf $LIBS" 5833 LIBS="-lelf $LIBS"
5831 cat > conftest.$ac_ext <<EOF 5834 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure" 5835 #line 5836 "configure"
5833 #include "confdefs.h" 5836 #include "confdefs.h"
5834 /* Override any gcc2 internal prototype to avoid an error. */ 5837 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2 5838 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */ 5839 builtin and then its argument prototype would still apply. */
5837 char elf_begin(); 5840 char elf_begin();
5838 5841
5839 int main() { 5842 int main() {
5840 elf_begin() 5843 elf_begin()
5841 ; return 0; } 5844 ; return 0; }
5842 EOF 5845 EOF
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844 rm -rf conftest* 5847 rm -rf conftest*
5845 eval "ac_cv_lib_$ac_lib_var=yes" 5848 eval "ac_cv_lib_$ac_lib_var=yes"
5846 else 5849 else
5847 echo "configure: failed program was:" >&5 5850 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5 5851 cat conftest.$ac_ext >&5
5859 else 5862 else
5860 echo "$ac_t""no" 1>&6 5863 echo "$ac_t""no" 1>&6
5861 fi 5864 fi
5862 5865
5863 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 5866 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
5864 echo "configure:5865: checking for kvm_open in -lkvm" >&5 5867 echo "configure:5868: checking for kvm_open in -lkvm" >&5
5865 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 5868 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
5866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6 5870 echo $ac_n "(cached) $ac_c" 1>&6
5868 else 5871 else
5869 ac_save_LIBS="$LIBS" 5872 ac_save_LIBS="$LIBS"
5870 LIBS="-lkvm $LIBS" 5873 LIBS="-lkvm $LIBS"
5871 cat > conftest.$ac_ext <<EOF 5874 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure" 5875 #line 5876 "configure"
5873 #include "confdefs.h" 5876 #include "confdefs.h"
5874 /* Override any gcc2 internal prototype to avoid an error. */ 5877 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2 5878 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */ 5879 builtin and then its argument prototype would still apply. */
5877 char kvm_open(); 5880 char kvm_open();
5878 5881
5879 int main() { 5882 int main() {
5880 kvm_open() 5883 kvm_open()
5881 ; return 0; } 5884 ; return 0; }
5882 EOF 5885 EOF
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5884 rm -rf conftest* 5887 rm -rf conftest*
5885 eval "ac_cv_lib_$ac_lib_var=yes" 5888 eval "ac_cv_lib_$ac_lib_var=yes"
5886 else 5889 else
5887 echo "configure: failed program was:" >&5 5890 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5 5891 cat conftest.$ac_ext >&5
5900 echo "$ac_t""no" 1>&6 5903 echo "$ac_t""no" 1>&6
5901 fi 5904 fi
5902 5905
5903 # Check for the 4.4BSD definition of getloadavg. 5906 # Check for the 4.4BSD definition of getloadavg.
5904 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 5907 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
5905 echo "configure:5906: checking for getloadavg in -lutil" >&5 5908 echo "configure:5909: checking for getloadavg in -lutil" >&5
5906 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 5909 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
5907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6 5911 echo $ac_n "(cached) $ac_c" 1>&6
5909 else 5912 else
5910 ac_save_LIBS="$LIBS" 5913 ac_save_LIBS="$LIBS"
5911 LIBS="-lutil $LIBS" 5914 LIBS="-lutil $LIBS"
5912 cat > conftest.$ac_ext <<EOF 5915 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure" 5916 #line 5917 "configure"
5914 #include "confdefs.h" 5917 #include "confdefs.h"
5915 /* Override any gcc2 internal prototype to avoid an error. */ 5918 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2 5919 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */ 5920 builtin and then its argument prototype would still apply. */
5918 char getloadavg(); 5921 char getloadavg();
5919 5922
5920 int main() { 5923 int main() {
5921 getloadavg() 5924 getloadavg()
5922 ; return 0; } 5925 ; return 0; }
5923 EOF 5926 EOF
5924 if { (eval echo configure:5925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925 rm -rf conftest* 5928 rm -rf conftest*
5926 eval "ac_cv_lib_$ac_lib_var=yes" 5929 eval "ac_cv_lib_$ac_lib_var=yes"
5927 else 5930 else
5928 echo "configure: failed program was:" >&5 5931 echo "configure: failed program was:" >&5
5929 cat conftest.$ac_ext >&5 5932 cat conftest.$ac_ext >&5
5945 if test $ac_have_func = no; then 5948 if test $ac_have_func = no; then
5946 # There is a commonly available library for RS/6000 AIX. 5949 # There is a commonly available library for RS/6000 AIX.
5947 # Since it is not a standard part of AIX, it might be installed locally. 5950 # Since it is not a standard part of AIX, it might be installed locally.
5948 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 5951 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
5949 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 5952 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
5950 echo "configure:5951: checking for getloadavg in -lgetloadavg" >&5 5953 echo "configure:5954: checking for getloadavg in -lgetloadavg" >&5
5951 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 5954 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
5952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5953 echo $ac_n "(cached) $ac_c" 1>&6 5956 echo $ac_n "(cached) $ac_c" 1>&6
5954 else 5957 else
5955 ac_save_LIBS="$LIBS" 5958 ac_save_LIBS="$LIBS"
5956 LIBS="-lgetloadavg $LIBS" 5959 LIBS="-lgetloadavg $LIBS"
5957 cat > conftest.$ac_ext <<EOF 5960 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure" 5961 #line 5962 "configure"
5959 #include "confdefs.h" 5962 #include "confdefs.h"
5960 /* Override any gcc2 internal prototype to avoid an error. */ 5963 /* Override any gcc2 internal prototype to avoid an error. */
5961 /* We use char because int might match the return type of a gcc2 5964 /* We use char because int might match the return type of a gcc2
5962 builtin and then its argument prototype would still apply. */ 5965 builtin and then its argument prototype would still apply. */
5963 char getloadavg(); 5966 char getloadavg();
5964 5967
5965 int main() { 5968 int main() {
5966 getloadavg() 5969 getloadavg()
5967 ; return 0; } 5970 ; return 0; }
5968 EOF 5971 EOF
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 rm -rf conftest* 5973 rm -rf conftest*
5971 eval "ac_cv_lib_$ac_lib_var=yes" 5974 eval "ac_cv_lib_$ac_lib_var=yes"
5972 else 5975 else
5973 echo "configure: failed program was:" >&5 5976 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5 5977 cat conftest.$ac_ext >&5
5991 5994
5992 # Make sure it is really in the library, if we think we found it. 5995 # Make sure it is really in the library, if we think we found it.
5993 for ac_func in getloadavg 5996 for ac_func in getloadavg
5994 do 5997 do
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5 5999 echo "configure:6000: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6 6001 echo $ac_n "(cached) $ac_c" 1>&6
5999 else 6002 else
6000 cat > conftest.$ac_ext <<EOF 6003 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure" 6004 #line 6005 "configure"
6002 #include "confdefs.h" 6005 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes, 6006 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */ 6007 which can conflict with char $ac_func(); below. */
6005 #include <assert.h> 6008 #include <assert.h>
6006 /* Override any gcc2 internal prototype to avoid an error. */ 6009 /* Override any gcc2 internal prototype to avoid an error. */
6019 $ac_func(); 6022 $ac_func();
6020 #endif 6023 #endif
6021 6024
6022 ; return 0; } 6025 ; return 0; }
6023 EOF 6026 EOF
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 rm -rf conftest* 6028 rm -rf conftest*
6026 eval "ac_cv_func_$ac_func=yes" 6029 eval "ac_cv_func_$ac_func=yes"
6027 else 6030 else
6028 echo "configure: failed program was:" >&5 6031 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5 6032 cat conftest.$ac_ext >&5
6057 else 6060 else
6058 # Figure out what our getloadavg.c needs. 6061 # Figure out what our getloadavg.c needs.
6059 ac_have_func=no 6062 ac_have_func=no
6060 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6063 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6061 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6064 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6062 echo "configure:6063: checking for sys/dg_sys_info.h" >&5 6065 echo "configure:6066: checking for sys/dg_sys_info.h" >&5
6063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6064 echo $ac_n "(cached) $ac_c" 1>&6 6067 echo $ac_n "(cached) $ac_c" 1>&6
6065 else 6068 else
6066 cat > conftest.$ac_ext <<EOF 6069 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure" 6070 #line 6071 "configure"
6068 #include "confdefs.h" 6071 #include "confdefs.h"
6069 #include <sys/dg_sys_info.h> 6072 #include <sys/dg_sys_info.h>
6070 EOF 6073 EOF
6071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6072 { (eval echo configure:6073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6074 if test -z "$ac_err"; then 6077 if test -z "$ac_err"; then
6075 rm -rf conftest* 6078 rm -rf conftest*
6076 eval "ac_cv_header_$ac_safe=yes" 6079 eval "ac_cv_header_$ac_safe=yes"
6077 else 6080 else
6088 ac_have_func=yes; cat >> confdefs.h <<\EOF 6091 ac_have_func=yes; cat >> confdefs.h <<\EOF
6089 #define DGUX 1 6092 #define DGUX 1
6090 EOF 6093 EOF
6091 6094
6092 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6095 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6093 echo "configure:6094: checking for dg_sys_info in -ldgc" >&5 6096 echo "configure:6097: checking for dg_sys_info in -ldgc" >&5
6094 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6097 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6 6099 echo $ac_n "(cached) $ac_c" 1>&6
6097 else 6100 else
6098 ac_save_LIBS="$LIBS" 6101 ac_save_LIBS="$LIBS"
6099 LIBS="-ldgc $LIBS" 6102 LIBS="-ldgc $LIBS"
6100 cat > conftest.$ac_ext <<EOF 6103 cat > conftest.$ac_ext <<EOF
6101 #line 6102 "configure" 6104 #line 6105 "configure"
6102 #include "confdefs.h" 6105 #include "confdefs.h"
6103 /* Override any gcc2 internal prototype to avoid an error. */ 6106 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2 6107 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */ 6108 builtin and then its argument prototype would still apply. */
6106 char dg_sys_info(); 6109 char dg_sys_info();
6107 6110
6108 int main() { 6111 int main() {
6109 dg_sys_info() 6112 dg_sys_info()
6110 ; return 0; } 6113 ; return 0; }
6111 EOF 6114 EOF
6112 if { (eval echo configure:6113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113 rm -rf conftest* 6116 rm -rf conftest*
6114 eval "ac_cv_lib_$ac_lib_var=yes" 6117 eval "ac_cv_lib_$ac_lib_var=yes"
6115 else 6118 else
6116 echo "configure: failed program was:" >&5 6119 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5 6120 cat conftest.$ac_ext >&5
6152 fi 6155 fi
6153 6156
6154 if test $ac_have_func = no; then 6157 if test $ac_have_func = no; then
6155 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6158 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6156 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6159 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6157 echo "configure:6158: checking for inq_stats/cpustats.h" >&5 6160 echo "configure:6161: checking for inq_stats/cpustats.h" >&5
6158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6 6162 echo $ac_n "(cached) $ac_c" 1>&6
6160 else 6163 else
6161 cat > conftest.$ac_ext <<EOF 6164 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure" 6165 #line 6166 "configure"
6163 #include "confdefs.h" 6166 #include "confdefs.h"
6164 #include <inq_stats/cpustats.h> 6167 #include <inq_stats/cpustats.h>
6165 EOF 6168 EOF
6166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6167 { (eval echo configure:6168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6169 if test -z "$ac_err"; then 6172 if test -z "$ac_err"; then
6170 rm -rf conftest* 6173 rm -rf conftest*
6171 eval "ac_cv_header_$ac_safe=yes" 6174 eval "ac_cv_header_$ac_safe=yes"
6172 else 6175 else
6195 fi 6198 fi
6196 6199
6197 if test $ac_have_func = no; then 6200 if test $ac_have_func = no; then
6198 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6201 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6199 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6202 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6200 echo "configure:6201: checking for sys/cpustats.h" >&5 6203 echo "configure:6204: checking for sys/cpustats.h" >&5
6201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6 6205 echo $ac_n "(cached) $ac_c" 1>&6
6203 else 6206 else
6204 cat > conftest.$ac_ext <<EOF 6207 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure" 6208 #line 6209 "configure"
6206 #include "confdefs.h" 6209 #include "confdefs.h"
6207 #include <sys/cpustats.h> 6210 #include <sys/cpustats.h>
6208 EOF 6211 EOF
6209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6210 { (eval echo configure:6211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6212 if test -z "$ac_err"; then 6215 if test -z "$ac_err"; then
6213 rm -rf conftest* 6216 rm -rf conftest*
6214 eval "ac_cv_header_$ac_safe=yes" 6217 eval "ac_cv_header_$ac_safe=yes"
6215 else 6218 else
6236 if test $ac_have_func = no; then 6239 if test $ac_have_func = no; then
6237 for ac_hdr in mach/mach.h 6240 for ac_hdr in mach/mach.h
6238 do 6241 do
6239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6241 echo "configure:6242: checking for $ac_hdr" >&5 6244 echo "configure:6245: checking for $ac_hdr" >&5
6242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6 6246 echo $ac_n "(cached) $ac_c" 1>&6
6244 else 6247 else
6245 cat > conftest.$ac_ext <<EOF 6248 cat > conftest.$ac_ext <<EOF
6246 #line 6247 "configure" 6249 #line 6250 "configure"
6247 #include "confdefs.h" 6250 #include "confdefs.h"
6248 #include <$ac_hdr> 6251 #include <$ac_hdr>
6249 EOF 6252 EOF
6250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6251 { (eval echo configure:6252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6253 if test -z "$ac_err"; then 6256 if test -z "$ac_err"; then
6254 rm -rf conftest* 6257 rm -rf conftest*
6255 eval "ac_cv_header_$ac_safe=yes" 6258 eval "ac_cv_header_$ac_safe=yes"
6256 else 6259 else
6276 6279
6277 fi 6280 fi
6278 6281
6279 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6282 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6280 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6283 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6281 echo "configure:6282: checking for nlist.h" >&5 6284 echo "configure:6285: checking for nlist.h" >&5
6282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6 6286 echo $ac_n "(cached) $ac_c" 1>&6
6284 else 6287 else
6285 cat > conftest.$ac_ext <<EOF 6288 cat > conftest.$ac_ext <<EOF
6286 #line 6287 "configure" 6289 #line 6290 "configure"
6287 #include "confdefs.h" 6290 #include "confdefs.h"
6288 #include <nlist.h> 6291 #include <nlist.h>
6289 EOF 6292 EOF
6290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6291 { (eval echo configure:6292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6293 if test -z "$ac_err"; then 6296 if test -z "$ac_err"; then
6294 rm -rf conftest* 6297 rm -rf conftest*
6295 eval "ac_cv_header_$ac_safe=yes" 6298 eval "ac_cv_header_$ac_safe=yes"
6296 else 6299 else
6307 cat >> confdefs.h <<\EOF 6310 cat >> confdefs.h <<\EOF
6308 #define NLIST_STRUCT 1 6311 #define NLIST_STRUCT 1
6309 EOF 6312 EOF
6310 6313
6311 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 6314 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6312 echo "configure:6313: checking for n_un in struct nlist" >&5 6315 echo "configure:6316: checking for n_un in struct nlist" >&5
6313 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 6316 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6 6317 echo $ac_n "(cached) $ac_c" 1>&6
6315 else 6318 else
6316 cat > conftest.$ac_ext <<EOF 6319 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure" 6320 #line 6321 "configure"
6318 #include "confdefs.h" 6321 #include "confdefs.h"
6319 #include <nlist.h> 6322 #include <nlist.h>
6320 int main() { 6323 int main() {
6321 struct nlist n; n.n_un.n_name = 0; 6324 struct nlist n; n.n_un.n_name = 0;
6322 ; return 0; } 6325 ; return 0; }
6323 EOF 6326 EOF
6324 if { (eval echo configure:6325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6327 if { (eval echo configure:6328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6325 rm -rf conftest* 6328 rm -rf conftest*
6326 ac_cv_struct_nlist_n_un=yes 6329 ac_cv_struct_nlist_n_un=yes
6327 else 6330 else
6328 echo "configure: failed program was:" >&5 6331 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5 6332 cat conftest.$ac_ext >&5
6346 fi 6349 fi
6347 fi # Do not have getloadavg in system libraries. 6350 fi # Do not have getloadavg in system libraries.
6348 6351
6349 # Some definitions of getloadavg require that the program be installed setgid. 6352 # Some definitions of getloadavg require that the program be installed setgid.
6350 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 6353 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
6351 echo "configure:6352: checking whether getloadavg requires setgid" >&5 6354 echo "configure:6355: checking whether getloadavg requires setgid" >&5
6352 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 6355 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6 6356 echo $ac_n "(cached) $ac_c" 1>&6
6354 else 6357 else
6355 cat > conftest.$ac_ext <<EOF 6358 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure" 6359 #line 6360 "configure"
6357 #include "confdefs.h" 6360 #include "confdefs.h"
6358 #include "$srcdir/getloadavg.c" 6361 #include "$srcdir/getloadavg.c"
6359 #ifdef LDAV_PRIVILEGED 6362 #ifdef LDAV_PRIVILEGED
6360 Yowza Am I SETGID yet 6363 Yowza Am I SETGID yet
6361 #endif 6364 #endif
6382 NEED_SETGID=false 6385 NEED_SETGID=false
6383 fi 6386 fi
6384 6387
6385 if test $ac_cv_func_getloadavg_setgid = yes; then 6388 if test $ac_cv_func_getloadavg_setgid = yes; then
6386 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 6389 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
6387 echo "configure:6388: checking group of /dev/kmem" >&5 6390 echo "configure:6391: checking group of /dev/kmem" >&5
6388 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 6391 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6 6392 echo $ac_n "(cached) $ac_c" 1>&6
6390 else 6393 else
6391 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 6394 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
6392 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 6395 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
6411 fi 6414 fi
6412 6415
6413 if test "$enable_largefile" != no; then 6416 if test "$enable_largefile" != no; then
6414 6417
6415 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 6418 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
6416 echo "configure:6417: checking for special C compiler options needed for large files" >&5 6419 echo "configure:6420: checking for special C compiler options needed for large files" >&5
6417 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 6420 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6 6421 echo $ac_n "(cached) $ac_c" 1>&6
6419 else 6422 else
6420 ac_cv_sys_largefile_CC=no 6423 ac_cv_sys_largefile_CC=no
6421 if test "$GCC" != yes; then 6424 if test "$GCC" != yes; then
6422 # IRIX 6.2 and later do not support large files by default, 6425 # IRIX 6.2 and later do not support large files by default,
6423 # so use the C compiler's -n32 option if that helps. 6426 # so use the C compiler's -n32 option if that helps.
6424 cat > conftest.$ac_ext <<EOF 6427 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure" 6428 #line 6429 "configure"
6426 #include "confdefs.h" 6429 #include "confdefs.h"
6427 #include <sys/types.h> 6430 #include <sys/types.h>
6428 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6431 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6429 6432
6430 int main() { 6433 int main() {
6431 6434
6432 ; return 0; } 6435 ; return 0; }
6433 EOF 6436 EOF
6434 if { (eval echo configure:6435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6435 : 6438 :
6436 else 6439 else
6437 echo "configure: failed program was:" >&5 6440 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5 6441 cat conftest.$ac_ext >&5
6439 rm -rf conftest* 6442 rm -rf conftest*
6440 ac_save_CC="$CC" 6443 ac_save_CC="$CC"
6441 CC="$CC -n32" 6444 CC="$CC -n32"
6442 cat > conftest.$ac_ext <<EOF 6445 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure" 6446 #line 6447 "configure"
6444 #include "confdefs.h" 6447 #include "confdefs.h"
6445 #include <sys/types.h> 6448 #include <sys/types.h>
6446 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6449 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6447 6450
6448 int main() { 6451 int main() {
6449 6452
6450 ; return 0; } 6453 ; return 0; }
6451 EOF 6454 EOF
6452 if { (eval echo configure:6453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6455 if { (eval echo configure:6456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6453 rm -rf conftest* 6456 rm -rf conftest*
6454 ac_cv_sys_largefile_CC=' -n32' 6457 ac_cv_sys_largefile_CC=' -n32'
6455 else 6458 else
6456 echo "configure: failed program was:" >&5 6459 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5 6460 cat conftest.$ac_ext >&5
6467 if test "$ac_cv_sys_largefile_CC" != no; then 6470 if test "$ac_cv_sys_largefile_CC" != no; then
6468 CC="$CC$ac_cv_sys_largefile_CC" 6471 CC="$CC$ac_cv_sys_largefile_CC"
6469 fi 6472 fi
6470 6473
6471 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 6474 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
6472 echo "configure:6473: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6475 echo "configure:6476: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6473 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 6476 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6 6477 echo $ac_n "(cached) $ac_c" 1>&6
6475 else 6478 else
6476 ac_cv_sys_file_offset_bits=no 6479 ac_cv_sys_file_offset_bits=no
6477 cat > conftest.$ac_ext <<EOF 6480 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure" 6481 #line 6482 "configure"
6479 #include "confdefs.h" 6482 #include "confdefs.h"
6480 #include <sys/types.h> 6483 #include <sys/types.h>
6481 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6484 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6482 6485
6483 6486
6484 6487
6485 int main() { 6488 int main() {
6486 6489
6487 ; return 0; } 6490 ; return 0; }
6488 EOF 6491 EOF
6489 if { (eval echo configure:6490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6492 if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6490 : 6493 :
6491 else 6494 else
6492 echo "configure: failed program was:" >&5 6495 echo "configure: failed program was:" >&5
6493 cat conftest.$ac_ext >&5 6496 cat conftest.$ac_ext >&5
6494 rm -rf conftest* 6497 rm -rf conftest*
6495 cat > conftest.$ac_ext <<EOF 6498 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure" 6499 #line 6500 "configure"
6497 #include "confdefs.h" 6500 #include "confdefs.h"
6498 #define _FILE_OFFSET_BITS 64 6501 #define _FILE_OFFSET_BITS 64
6499 #include <sys/types.h> 6502 #include <sys/types.h>
6500 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6503 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6501 6504
6503 6506
6504 int main() { 6507 int main() {
6505 6508
6506 ; return 0; } 6509 ; return 0; }
6507 EOF 6510 EOF
6508 if { (eval echo configure:6509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6511 if { (eval echo configure:6512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6509 rm -rf conftest* 6512 rm -rf conftest*
6510 ac_cv_sys_file_offset_bits=64 6513 ac_cv_sys_file_offset_bits=64
6511 else 6514 else
6512 echo "configure: failed program was:" >&5 6515 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5 6516 cat conftest.$ac_ext >&5
6523 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6526 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6524 EOF 6527 EOF
6525 6528
6526 fi 6529 fi
6527 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 6530 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
6528 echo "configure:6529: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6531 echo "configure:6532: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6529 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 6532 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6 6533 echo $ac_n "(cached) $ac_c" 1>&6
6531 else 6534 else
6532 ac_cv_sys_largefile_source=no 6535 ac_cv_sys_largefile_source=no
6533 cat > conftest.$ac_ext <<EOF 6536 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure" 6537 #line 6538 "configure"
6535 #include "confdefs.h" 6538 #include "confdefs.h"
6536 #include <sys/types.h> 6539 #include <sys/types.h>
6537 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6540 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6538 6541
6539 #include <stdio.h> 6542 #include <stdio.h>
6540 6543
6541 int main() { 6544 int main() {
6542 return !ftello; 6545 return !ftello;
6543 ; return 0; } 6546 ; return 0; }
6544 EOF 6547 EOF
6545 if { (eval echo configure:6546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6548 if { (eval echo configure:6549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6546 : 6549 :
6547 else 6550 else
6548 echo "configure: failed program was:" >&5 6551 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5 6552 cat conftest.$ac_ext >&5
6550 rm -rf conftest* 6553 rm -rf conftest*
6551 cat > conftest.$ac_ext <<EOF 6554 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure" 6555 #line 6556 "configure"
6553 #include "confdefs.h" 6556 #include "confdefs.h"
6554 #define _LARGEFILE_SOURCE 1 6557 #define _LARGEFILE_SOURCE 1
6555 #include <sys/types.h> 6558 #include <sys/types.h>
6556 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6559 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6557 6560
6559 6562
6560 int main() { 6563 int main() {
6561 return !ftello; 6564 return !ftello;
6562 ; return 0; } 6565 ; return 0; }
6563 EOF 6566 EOF
6564 if { (eval echo configure:6565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6567 if { (eval echo configure:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6565 rm -rf conftest* 6568 rm -rf conftest*
6566 ac_cv_sys_largefile_source=1 6569 ac_cv_sys_largefile_source=1
6567 else 6570 else
6568 echo "configure: failed program was:" >&5 6571 echo "configure: failed program was:" >&5
6569 cat conftest.$ac_ext >&5 6572 cat conftest.$ac_ext >&5
6579 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6582 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6580 EOF 6583 EOF
6581 6584
6582 fi 6585 fi
6583 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 6586 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
6584 echo "configure:6585: checking for _LARGE_FILES value needed for large files" >&5 6587 echo "configure:6588: checking for _LARGE_FILES value needed for large files" >&5
6585 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 6588 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6 6589 echo $ac_n "(cached) $ac_c" 1>&6
6587 else 6590 else
6588 ac_cv_sys_large_files=no 6591 ac_cv_sys_large_files=no
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 #include <sys/types.h> 6595 #include <sys/types.h>
6593 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6596 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6594 6597
6595 6598
6596 6599
6597 int main() { 6600 int main() {
6598 6601
6599 ; return 0; } 6602 ; return 0; }
6600 EOF 6603 EOF
6601 if { (eval echo configure:6602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6604 if { (eval echo configure:6605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6602 : 6605 :
6603 else 6606 else
6604 echo "configure: failed program was:" >&5 6607 echo "configure: failed program was:" >&5
6605 cat conftest.$ac_ext >&5 6608 cat conftest.$ac_ext >&5
6606 rm -rf conftest* 6609 rm -rf conftest*
6607 cat > conftest.$ac_ext <<EOF 6610 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure" 6611 #line 6612 "configure"
6609 #include "confdefs.h" 6612 #include "confdefs.h"
6610 #define _LARGE_FILES 1 6613 #define _LARGE_FILES 1
6611 #include <sys/types.h> 6614 #include <sys/types.h>
6612 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6615 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6613 6616
6615 6618
6616 int main() { 6619 int main() {
6617 6620
6618 ; return 0; } 6621 ; return 0; }
6619 EOF 6622 EOF
6620 if { (eval echo configure:6621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6623 if { (eval echo configure:6624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6621 rm -rf conftest* 6624 rm -rf conftest*
6622 ac_cv_sys_large_files=1 6625 ac_cv_sys_large_files=1
6623 else 6626 else
6624 echo "configure: failed program was:" >&5 6627 echo "configure: failed program was:" >&5
6625 cat conftest.$ac_ext >&5 6628 cat conftest.$ac_ext >&5
6635 #define _LARGE_FILES $ac_cv_sys_large_files 6638 #define _LARGE_FILES $ac_cv_sys_large_files
6636 EOF 6639 EOF
6637 6640
6638 fi 6641 fi
6639 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 6642 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
6640 echo "configure:6641: checking for _XOPEN_SOURCE value needed for large files" >&5 6643 echo "configure:6644: checking for _XOPEN_SOURCE value needed for large files" >&5
6641 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then 6644 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6 6645 echo $ac_n "(cached) $ac_c" 1>&6
6643 else 6646 else
6644 ac_cv_sys_xopen_source=no 6647 ac_cv_sys_xopen_source=no
6645 cat > conftest.$ac_ext <<EOF 6648 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure" 6649 #line 6650 "configure"
6647 #include "confdefs.h" 6650 #include "confdefs.h"
6648 #include <sys/types.h> 6651 #include <sys/types.h>
6649 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6652 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6650 6653
6651 #include <stdio.h> 6654 #include <stdio.h>
6652 6655
6653 int main() { 6656 int main() {
6654 return !ftello; 6657 return !ftello;
6655 ; return 0; } 6658 ; return 0; }
6656 EOF 6659 EOF
6657 if { (eval echo configure:6658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6658 : 6661 :
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
6662 rm -rf conftest* 6665 rm -rf conftest*
6663 cat > conftest.$ac_ext <<EOF 6666 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure" 6667 #line 6668 "configure"
6665 #include "confdefs.h" 6668 #include "confdefs.h"
6666 #define _XOPEN_SOURCE 500 6669 #define _XOPEN_SOURCE 500
6667 #include <sys/types.h> 6670 #include <sys/types.h>
6668 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6671 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6669 6672
6671 6674
6672 int main() { 6675 int main() {
6673 return !ftello; 6676 return !ftello;
6674 ; return 0; } 6677 ; return 0; }
6675 EOF 6678 EOF
6676 if { (eval echo configure:6677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6679 if { (eval echo configure:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6677 rm -rf conftest* 6680 rm -rf conftest*
6678 ac_cv_sys_xopen_source=500 6681 ac_cv_sys_xopen_source=500
6679 else 6682 else
6680 echo "configure: failed program was:" >&5 6683 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5 6684 cat conftest.$ac_ext >&5
6695 fi 6698 fi
6696 6699
6697 for ac_func in ftello 6700 for ac_func in ftello
6698 do 6701 do
6699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6700 echo "configure:6701: checking for $ac_func" >&5 6703 echo "configure:6704: checking for $ac_func" >&5
6701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6 6705 echo $ac_n "(cached) $ac_c" 1>&6
6703 else 6706 else
6704 cat > conftest.$ac_ext <<EOF 6707 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure" 6708 #line 6709 "configure"
6706 #include "confdefs.h" 6709 #include "confdefs.h"
6707 /* System header to define __stub macros and hopefully few prototypes, 6710 /* System header to define __stub macros and hopefully few prototypes,
6708 which can conflict with char $ac_func(); below. */ 6711 which can conflict with char $ac_func(); below. */
6709 #include <assert.h> 6712 #include <assert.h>
6710 /* Override any gcc2 internal prototype to avoid an error. */ 6713 /* Override any gcc2 internal prototype to avoid an error. */
6723 $ac_func(); 6726 $ac_func();
6724 #endif 6727 #endif
6725 6728
6726 ; return 0; } 6729 ; return 0; }
6727 EOF 6730 EOF
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6729 rm -rf conftest* 6732 rm -rf conftest*
6730 eval "ac_cv_func_$ac_func=yes" 6733 eval "ac_cv_func_$ac_func=yes"
6731 else 6734 else
6732 echo "configure: failed program was:" >&5 6735 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5 6736 cat conftest.$ac_ext >&5
6753 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE 6756 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE
6754 # if we need it. 6757 # if we need it.
6755 for ac_func in grantpt 6758 for ac_func in grantpt
6756 do 6759 do
6757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6758 echo "configure:6759: checking for $ac_func" >&5 6761 echo "configure:6762: checking for $ac_func" >&5
6759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6 6763 echo $ac_n "(cached) $ac_c" 1>&6
6761 else 6764 else
6762 cat > conftest.$ac_ext <<EOF 6765 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure" 6766 #line 6767 "configure"
6764 #include "confdefs.h" 6767 #include "confdefs.h"
6765 /* System header to define __stub macros and hopefully few prototypes, 6768 /* System header to define __stub macros and hopefully few prototypes,
6766 which can conflict with char $ac_func(); below. */ 6769 which can conflict with char $ac_func(); below. */
6767 #include <assert.h> 6770 #include <assert.h>
6768 /* Override any gcc2 internal prototype to avoid an error. */ 6771 /* Override any gcc2 internal prototype to avoid an error. */
6781 $ac_func(); 6784 $ac_func();
6782 #endif 6785 #endif
6783 6786
6784 ; return 0; } 6787 ; return 0; }
6785 EOF 6788 EOF
6786 if { (eval echo configure:6787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6787 rm -rf conftest* 6790 rm -rf conftest*
6788 eval "ac_cv_func_$ac_func=yes" 6791 eval "ac_cv_func_$ac_func=yes"
6789 else 6792 else
6790 echo "configure: failed program was:" >&5 6793 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5 6794 cat conftest.$ac_ext >&5
6810 6813
6811 # PTY-related GNU extensions. 6814 # PTY-related GNU extensions.
6812 for ac_func in getpt 6815 for ac_func in getpt
6813 do 6816 do
6814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_func" >&5 6818 echo "configure:6819: checking for $ac_func" >&5
6816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 6820 echo $ac_n "(cached) $ac_c" 1>&6
6818 else 6821 else
6819 cat > conftest.$ac_ext <<EOF 6822 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure" 6823 #line 6824 "configure"
6821 #include "confdefs.h" 6824 #include "confdefs.h"
6822 /* System header to define __stub macros and hopefully few prototypes, 6825 /* System header to define __stub macros and hopefully few prototypes,
6823 which can conflict with char $ac_func(); below. */ 6826 which can conflict with char $ac_func(); below. */
6824 #include <assert.h> 6827 #include <assert.h>
6825 /* Override any gcc2 internal prototype to avoid an error. */ 6828 /* Override any gcc2 internal prototype to avoid an error. */
6838 $ac_func(); 6841 $ac_func();
6839 #endif 6842 #endif
6840 6843
6841 ; return 0; } 6844 ; return 0; }
6842 EOF 6845 EOF
6843 if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 rm -rf conftest* 6847 rm -rf conftest*
6845 eval "ac_cv_func_$ac_func=yes" 6848 eval "ac_cv_func_$ac_func=yes"
6846 else 6849 else
6847 echo "configure: failed program was:" >&5 6850 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5 6851 cat conftest.$ac_ext >&5
6868 # Check this now, so that we will NOT find the above functions in ncurses. 6871 # Check this now, so that we will NOT find the above functions in ncurses.
6869 # That is because we have not set up to link ncurses in lib-src. 6872 # That is because we have not set up to link ncurses in lib-src.
6870 # It's better to believe a function is not available 6873 # It's better to believe a function is not available
6871 # than to expect to find it in ncurses. 6874 # than to expect to find it in ncurses.
6872 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 6875 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
6873 echo "configure:6874: checking for tparm in -lncurses" >&5 6876 echo "configure:6877: checking for tparm in -lncurses" >&5
6874 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 6877 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
6875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6 6879 echo $ac_n "(cached) $ac_c" 1>&6
6877 else 6880 else
6878 ac_save_LIBS="$LIBS" 6881 ac_save_LIBS="$LIBS"
6879 LIBS="-lncurses $LIBS" 6882 LIBS="-lncurses $LIBS"
6880 cat > conftest.$ac_ext <<EOF 6883 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure" 6884 #line 6885 "configure"
6882 #include "confdefs.h" 6885 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */ 6886 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2 6887 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */ 6888 builtin and then its argument prototype would still apply. */
6886 char tparm(); 6889 char tparm();
6887 6890
6888 int main() { 6891 int main() {
6889 tparm() 6892 tparm()
6890 ; return 0; } 6893 ; return 0; }
6891 EOF 6894 EOF
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest* 6896 rm -rf conftest*
6894 eval "ac_cv_lib_$ac_lib_var=yes" 6897 eval "ac_cv_lib_$ac_lib_var=yes"
6895 else 6898 else
6896 echo "configure: failed program was:" >&5 6899 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5 6900 cat conftest.$ac_ext >&5
6918 6921
6919 6922
6920 # These tell us which Kerberos-related libraries to use. 6923 # These tell us which Kerberos-related libraries to use.
6921 if test "${with_kerberos+set}" = set; then 6924 if test "${with_kerberos+set}" = set; then
6922 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 6925 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
6923 echo "configure:6924: checking for com_err in -lcom_err" >&5 6926 echo "configure:6927: checking for com_err in -lcom_err" >&5
6924 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 6927 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
6925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6 6929 echo $ac_n "(cached) $ac_c" 1>&6
6927 else 6930 else
6928 ac_save_LIBS="$LIBS" 6931 ac_save_LIBS="$LIBS"
6929 LIBS="-lcom_err $LIBS" 6932 LIBS="-lcom_err $LIBS"
6930 cat > conftest.$ac_ext <<EOF 6933 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure" 6934 #line 6935 "configure"
6932 #include "confdefs.h" 6935 #include "confdefs.h"
6933 /* Override any gcc2 internal prototype to avoid an error. */ 6936 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2 6937 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */ 6938 builtin and then its argument prototype would still apply. */
6936 char com_err(); 6939 char com_err();
6937 6940
6938 int main() { 6941 int main() {
6939 com_err() 6942 com_err()
6940 ; return 0; } 6943 ; return 0; }
6941 EOF 6944 EOF
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 rm -rf conftest* 6946 rm -rf conftest*
6944 eval "ac_cv_lib_$ac_lib_var=yes" 6947 eval "ac_cv_lib_$ac_lib_var=yes"
6945 else 6948 else
6946 echo "configure: failed program was:" >&5 6949 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5 6950 cat conftest.$ac_ext >&5
6965 else 6968 else
6966 echo "$ac_t""no" 1>&6 6969 echo "$ac_t""no" 1>&6
6967 fi 6970 fi
6968 6971
6969 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 6972 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
6970 echo "configure:6971: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 6973 echo "configure:6974: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
6971 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 6974 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
6972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6 6976 echo $ac_n "(cached) $ac_c" 1>&6
6974 else 6977 else
6975 ac_save_LIBS="$LIBS" 6978 ac_save_LIBS="$LIBS"
6976 LIBS="-lk5crypto $LIBS" 6979 LIBS="-lk5crypto $LIBS"
6977 cat > conftest.$ac_ext <<EOF 6980 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure" 6981 #line 6982 "configure"
6979 #include "confdefs.h" 6982 #include "confdefs.h"
6980 /* Override any gcc2 internal prototype to avoid an error. */ 6983 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2 6984 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */ 6985 builtin and then its argument prototype would still apply. */
6983 char mit_des_cbc_encrypt(); 6986 char mit_des_cbc_encrypt();
6984 6987
6985 int main() { 6988 int main() {
6986 mit_des_cbc_encrypt() 6989 mit_des_cbc_encrypt()
6987 ; return 0; } 6990 ; return 0; }
6988 EOF 6991 EOF
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6990 rm -rf conftest* 6993 rm -rf conftest*
6991 eval "ac_cv_lib_$ac_lib_var=yes" 6994 eval "ac_cv_lib_$ac_lib_var=yes"
6992 else 6995 else
6993 echo "configure: failed program was:" >&5 6996 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5 6997 cat conftest.$ac_ext >&5
7012 else 7015 else
7013 echo "$ac_t""no" 1>&6 7016 echo "$ac_t""no" 1>&6
7014 fi 7017 fi
7015 7018
7016 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7019 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7017 echo "configure:7018: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7020 echo "configure:7021: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7018 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7021 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7020 echo $ac_n "(cached) $ac_c" 1>&6 7023 echo $ac_n "(cached) $ac_c" 1>&6
7021 else 7024 else
7022 ac_save_LIBS="$LIBS" 7025 ac_save_LIBS="$LIBS"
7023 LIBS="-lcrypto $LIBS" 7026 LIBS="-lcrypto $LIBS"
7024 cat > conftest.$ac_ext <<EOF 7027 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure" 7028 #line 7029 "configure"
7026 #include "confdefs.h" 7029 #include "confdefs.h"
7027 /* Override any gcc2 internal prototype to avoid an error. */ 7030 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2 7031 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */ 7032 builtin and then its argument prototype would still apply. */
7030 char mit_des_cbc_encrypt(); 7033 char mit_des_cbc_encrypt();
7031 7034
7032 int main() { 7035 int main() {
7033 mit_des_cbc_encrypt() 7036 mit_des_cbc_encrypt()
7034 ; return 0; } 7037 ; return 0; }
7035 EOF 7038 EOF
7036 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7037 rm -rf conftest* 7040 rm -rf conftest*
7038 eval "ac_cv_lib_$ac_lib_var=yes" 7041 eval "ac_cv_lib_$ac_lib_var=yes"
7039 else 7042 else
7040 echo "configure: failed program was:" >&5 7043 echo "configure: failed program was:" >&5
7041 cat conftest.$ac_ext >&5 7044 cat conftest.$ac_ext >&5
7059 else 7062 else
7060 echo "$ac_t""no" 1>&6 7063 echo "$ac_t""no" 1>&6
7061 fi 7064 fi
7062 7065
7063 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7066 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7064 echo "configure:7065: checking for krb5_init_context in -lkrb5" >&5 7067 echo "configure:7068: checking for krb5_init_context in -lkrb5" >&5
7065 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7068 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6 7070 echo $ac_n "(cached) $ac_c" 1>&6
7068 else 7071 else
7069 ac_save_LIBS="$LIBS" 7072 ac_save_LIBS="$LIBS"
7070 LIBS="-lkrb5 $LIBS" 7073 LIBS="-lkrb5 $LIBS"
7071 cat > conftest.$ac_ext <<EOF 7074 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure" 7075 #line 7076 "configure"
7073 #include "confdefs.h" 7076 #include "confdefs.h"
7074 /* Override any gcc2 internal prototype to avoid an error. */ 7077 /* Override any gcc2 internal prototype to avoid an error. */
7075 /* We use char because int might match the return type of a gcc2 7078 /* We use char because int might match the return type of a gcc2
7076 builtin and then its argument prototype would still apply. */ 7079 builtin and then its argument prototype would still apply. */
7077 char krb5_init_context(); 7080 char krb5_init_context();
7078 7081
7079 int main() { 7082 int main() {
7080 krb5_init_context() 7083 krb5_init_context()
7081 ; return 0; } 7084 ; return 0; }
7082 EOF 7085 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084 rm -rf conftest* 7087 rm -rf conftest*
7085 eval "ac_cv_lib_$ac_lib_var=yes" 7088 eval "ac_cv_lib_$ac_lib_var=yes"
7086 else 7089 else
7087 echo "configure: failed program was:" >&5 7090 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5 7091 cat conftest.$ac_ext >&5
7107 echo "$ac_t""no" 1>&6 7110 echo "$ac_t""no" 1>&6
7108 fi 7111 fi
7109 7112
7110 if test "${with_kerberos5+set}" != set; then 7113 if test "${with_kerberos5+set}" != set; then
7111 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7114 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7112 echo "configure:7113: checking for des_cbc_encrypt in -ldes425" >&5 7115 echo "configure:7116: checking for des_cbc_encrypt in -ldes425" >&5
7113 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7116 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6 7118 echo $ac_n "(cached) $ac_c" 1>&6
7116 else 7119 else
7117 ac_save_LIBS="$LIBS" 7120 ac_save_LIBS="$LIBS"
7118 LIBS="-ldes425 $LIBS" 7121 LIBS="-ldes425 $LIBS"
7119 cat > conftest.$ac_ext <<EOF 7122 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure" 7123 #line 7124 "configure"
7121 #include "confdefs.h" 7124 #include "confdefs.h"
7122 /* Override any gcc2 internal prototype to avoid an error. */ 7125 /* Override any gcc2 internal prototype to avoid an error. */
7123 /* We use char because int might match the return type of a gcc2 7126 /* We use char because int might match the return type of a gcc2
7124 builtin and then its argument prototype would still apply. */ 7127 builtin and then its argument prototype would still apply. */
7125 char des_cbc_encrypt(); 7128 char des_cbc_encrypt();
7126 7129
7127 int main() { 7130 int main() {
7128 des_cbc_encrypt() 7131 des_cbc_encrypt()
7129 ; return 0; } 7132 ; return 0; }
7130 EOF 7133 EOF
7131 if { (eval echo configure:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7132 rm -rf conftest* 7135 rm -rf conftest*
7133 eval "ac_cv_lib_$ac_lib_var=yes" 7136 eval "ac_cv_lib_$ac_lib_var=yes"
7134 else 7137 else
7135 echo "configure: failed program was:" >&5 7138 echo "configure: failed program was:" >&5
7136 cat conftest.$ac_ext >&5 7139 cat conftest.$ac_ext >&5
7152 LIBS="-ldes425 $LIBS" 7155 LIBS="-ldes425 $LIBS"
7153 7156
7154 else 7157 else
7155 echo "$ac_t""no" 1>&6 7158 echo "$ac_t""no" 1>&6
7156 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7159 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7157 echo "configure:7158: checking for des_cbc_encrypt in -ldes" >&5 7160 echo "configure:7161: checking for des_cbc_encrypt in -ldes" >&5
7158 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7161 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7160 echo $ac_n "(cached) $ac_c" 1>&6 7163 echo $ac_n "(cached) $ac_c" 1>&6
7161 else 7164 else
7162 ac_save_LIBS="$LIBS" 7165 ac_save_LIBS="$LIBS"
7163 LIBS="-ldes $LIBS" 7166 LIBS="-ldes $LIBS"
7164 cat > conftest.$ac_ext <<EOF 7167 cat > conftest.$ac_ext <<EOF
7165 #line 7166 "configure" 7168 #line 7169 "configure"
7166 #include "confdefs.h" 7169 #include "confdefs.h"
7167 /* Override any gcc2 internal prototype to avoid an error. */ 7170 /* Override any gcc2 internal prototype to avoid an error. */
7168 /* We use char because int might match the return type of a gcc2 7171 /* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */ 7172 builtin and then its argument prototype would still apply. */
7170 char des_cbc_encrypt(); 7173 char des_cbc_encrypt();
7171 7174
7172 int main() { 7175 int main() {
7173 des_cbc_encrypt() 7176 des_cbc_encrypt()
7174 ; return 0; } 7177 ; return 0; }
7175 EOF 7178 EOF
7176 if { (eval echo configure:7177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7177 rm -rf conftest* 7180 rm -rf conftest*
7178 eval "ac_cv_lib_$ac_lib_var=yes" 7181 eval "ac_cv_lib_$ac_lib_var=yes"
7179 else 7182 else
7180 echo "configure: failed program was:" >&5 7183 echo "configure: failed program was:" >&5
7181 cat conftest.$ac_ext >&5 7184 cat conftest.$ac_ext >&5
7201 fi 7204 fi
7202 7205
7203 fi 7206 fi
7204 7207
7205 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7208 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7206 echo "configure:7207: checking for krb_get_cred in -lkrb4" >&5 7209 echo "configure:7210: checking for krb_get_cred in -lkrb4" >&5
7207 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7210 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6 7212 echo $ac_n "(cached) $ac_c" 1>&6
7210 else 7213 else
7211 ac_save_LIBS="$LIBS" 7214 ac_save_LIBS="$LIBS"
7212 LIBS="-lkrb4 $LIBS" 7215 LIBS="-lkrb4 $LIBS"
7213 cat > conftest.$ac_ext <<EOF 7216 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure" 7217 #line 7218 "configure"
7215 #include "confdefs.h" 7218 #include "confdefs.h"
7216 /* Override any gcc2 internal prototype to avoid an error. */ 7219 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2 7220 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */ 7221 builtin and then its argument prototype would still apply. */
7219 char krb_get_cred(); 7222 char krb_get_cred();
7220 7223
7221 int main() { 7224 int main() {
7222 krb_get_cred() 7225 krb_get_cred()
7223 ; return 0; } 7226 ; return 0; }
7224 EOF 7227 EOF
7225 if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7226 rm -rf conftest* 7229 rm -rf conftest*
7227 eval "ac_cv_lib_$ac_lib_var=yes" 7230 eval "ac_cv_lib_$ac_lib_var=yes"
7228 else 7231 else
7229 echo "configure: failed program was:" >&5 7232 echo "configure: failed program was:" >&5
7230 cat conftest.$ac_ext >&5 7233 cat conftest.$ac_ext >&5
7246 LIBS="-lkrb4 $LIBS" 7249 LIBS="-lkrb4 $LIBS"
7247 7250
7248 else 7251 else
7249 echo "$ac_t""no" 1>&6 7252 echo "$ac_t""no" 1>&6
7250 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7253 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7251 echo "configure:7252: checking for krb_get_cred in -lkrb" >&5 7254 echo "configure:7255: checking for krb_get_cred in -lkrb" >&5
7252 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7255 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7254 echo $ac_n "(cached) $ac_c" 1>&6 7257 echo $ac_n "(cached) $ac_c" 1>&6
7255 else 7258 else
7256 ac_save_LIBS="$LIBS" 7259 ac_save_LIBS="$LIBS"
7257 LIBS="-lkrb $LIBS" 7260 LIBS="-lkrb $LIBS"
7258 cat > conftest.$ac_ext <<EOF 7261 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure" 7262 #line 7263 "configure"
7260 #include "confdefs.h" 7263 #include "confdefs.h"
7261 /* Override any gcc2 internal prototype to avoid an error. */ 7264 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2 7265 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */ 7266 builtin and then its argument prototype would still apply. */
7264 char krb_get_cred(); 7267 char krb_get_cred();
7265 7268
7266 int main() { 7269 int main() {
7267 krb_get_cred() 7270 krb_get_cred()
7268 ; return 0; } 7271 ; return 0; }
7269 EOF 7272 EOF
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest* 7274 rm -rf conftest*
7272 eval "ac_cv_lib_$ac_lib_var=yes" 7275 eval "ac_cv_lib_$ac_lib_var=yes"
7273 else 7276 else
7274 echo "configure: failed program was:" >&5 7277 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5 7278 cat conftest.$ac_ext >&5
7301 if test "${with_kerberos5+set}" = set; then 7304 if test "${with_kerberos5+set}" = set; then
7302 for ac_hdr in krb5.h 7305 for ac_hdr in krb5.h
7303 do 7306 do
7304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7306 echo "configure:7307: checking for $ac_hdr" >&5 7309 echo "configure:7310: checking for $ac_hdr" >&5
7307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6 7311 echo $ac_n "(cached) $ac_c" 1>&6
7309 else 7312 else
7310 cat > conftest.$ac_ext <<EOF 7313 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure" 7314 #line 7315 "configure"
7312 #include "confdefs.h" 7315 #include "confdefs.h"
7313 #include <$ac_hdr> 7316 #include <$ac_hdr>
7314 EOF 7317 EOF
7315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7316 { (eval echo configure:7317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7319 { (eval echo configure:7320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7318 if test -z "$ac_err"; then 7321 if test -z "$ac_err"; then
7319 rm -rf conftest* 7322 rm -rf conftest*
7320 eval "ac_cv_header_$ac_safe=yes" 7323 eval "ac_cv_header_$ac_safe=yes"
7321 else 7324 else
7342 else 7345 else
7343 for ac_hdr in des.h 7346 for ac_hdr in des.h
7344 do 7347 do
7345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_hdr" >&5 7350 echo "configure:7351: checking for $ac_hdr" >&5
7348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6 7352 echo $ac_n "(cached) $ac_c" 1>&6
7350 else 7353 else
7351 cat > conftest.$ac_ext <<EOF 7354 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure" 7355 #line 7356 "configure"
7353 #include "confdefs.h" 7356 #include "confdefs.h"
7354 #include <$ac_hdr> 7357 #include <$ac_hdr>
7355 EOF 7358 EOF
7356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7357 { (eval echo configure:7358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7360 { (eval echo configure:7361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7359 if test -z "$ac_err"; then 7362 if test -z "$ac_err"; then
7360 rm -rf conftest* 7363 rm -rf conftest*
7361 eval "ac_cv_header_$ac_safe=yes" 7364 eval "ac_cv_header_$ac_safe=yes"
7362 else 7365 else
7379 echo "$ac_t""no" 1>&6 7382 echo "$ac_t""no" 1>&6
7380 for ac_hdr in kerberosIV/des.h 7383 for ac_hdr in kerberosIV/des.h
7381 do 7384 do
7382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7384 echo "configure:7385: checking for $ac_hdr" >&5 7387 echo "configure:7388: checking for $ac_hdr" >&5
7385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6 7389 echo $ac_n "(cached) $ac_c" 1>&6
7387 else 7390 else
7388 cat > conftest.$ac_ext <<EOF 7391 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure" 7392 #line 7393 "configure"
7390 #include "confdefs.h" 7393 #include "confdefs.h"
7391 #include <$ac_hdr> 7394 #include <$ac_hdr>
7392 EOF 7395 EOF
7393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7394 { (eval echo configure:7395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7397 { (eval echo configure:7398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7396 if test -z "$ac_err"; then 7399 if test -z "$ac_err"; then
7397 rm -rf conftest* 7400 rm -rf conftest*
7398 eval "ac_cv_header_$ac_safe=yes" 7401 eval "ac_cv_header_$ac_safe=yes"
7399 else 7402 else
7416 echo "$ac_t""no" 1>&6 7419 echo "$ac_t""no" 1>&6
7417 for ac_hdr in kerberos/des.h 7420 for ac_hdr in kerberos/des.h
7418 do 7421 do
7419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_hdr" >&5 7424 echo "configure:7425: checking for $ac_hdr" >&5
7422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6 7426 echo $ac_n "(cached) $ac_c" 1>&6
7424 else 7427 else
7425 cat > conftest.$ac_ext <<EOF 7428 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure" 7429 #line 7430 "configure"
7427 #include "confdefs.h" 7430 #include "confdefs.h"
7428 #include <$ac_hdr> 7431 #include <$ac_hdr>
7429 EOF 7432 EOF
7430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7431 { (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7434 { (eval echo configure:7435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then 7436 if test -z "$ac_err"; then
7434 rm -rf conftest* 7437 rm -rf conftest*
7435 eval "ac_cv_header_$ac_safe=yes" 7438 eval "ac_cv_header_$ac_safe=yes"
7436 else 7439 else
7462 7465
7463 for ac_hdr in krb.h 7466 for ac_hdr in krb.h
7464 do 7467 do
7465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_hdr" >&5 7470 echo "configure:7471: checking for $ac_hdr" >&5
7468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6 7472 echo $ac_n "(cached) $ac_c" 1>&6
7470 else 7473 else
7471 cat > conftest.$ac_ext <<EOF 7474 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure" 7475 #line 7476 "configure"
7473 #include "confdefs.h" 7476 #include "confdefs.h"
7474 #include <$ac_hdr> 7477 #include <$ac_hdr>
7475 EOF 7478 EOF
7476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7477 { (eval echo configure:7478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7480 { (eval echo configure:7481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7479 if test -z "$ac_err"; then 7482 if test -z "$ac_err"; then
7480 rm -rf conftest* 7483 rm -rf conftest*
7481 eval "ac_cv_header_$ac_safe=yes" 7484 eval "ac_cv_header_$ac_safe=yes"
7482 else 7485 else
7499 echo "$ac_t""no" 1>&6 7502 echo "$ac_t""no" 1>&6
7500 for ac_hdr in kerberosIV/krb.h 7503 for ac_hdr in kerberosIV/krb.h
7501 do 7504 do
7502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7504 echo "configure:7505: checking for $ac_hdr" >&5 7507 echo "configure:7508: checking for $ac_hdr" >&5
7505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6 7509 echo $ac_n "(cached) $ac_c" 1>&6
7507 else 7510 else
7508 cat > conftest.$ac_ext <<EOF 7511 cat > conftest.$ac_ext <<EOF
7509 #line 7510 "configure" 7512 #line 7513 "configure"
7510 #include "confdefs.h" 7513 #include "confdefs.h"
7511 #include <$ac_hdr> 7514 #include <$ac_hdr>
7512 EOF 7515 EOF
7513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7514 { (eval echo configure:7515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7517 { (eval echo configure:7518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7516 if test -z "$ac_err"; then 7519 if test -z "$ac_err"; then
7517 rm -rf conftest* 7520 rm -rf conftest*
7518 eval "ac_cv_header_$ac_safe=yes" 7521 eval "ac_cv_header_$ac_safe=yes"
7519 else 7522 else
7536 echo "$ac_t""no" 1>&6 7539 echo "$ac_t""no" 1>&6
7537 for ac_hdr in kerberos/krb.h 7540 for ac_hdr in kerberos/krb.h
7538 do 7541 do
7539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_hdr" >&5 7544 echo "configure:7545: checking for $ac_hdr" >&5
7542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6 7546 echo $ac_n "(cached) $ac_c" 1>&6
7544 else 7547 else
7545 cat > conftest.$ac_ext <<EOF 7548 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure" 7549 #line 7550 "configure"
7547 #include "confdefs.h" 7550 #include "confdefs.h"
7548 #include <$ac_hdr> 7551 #include <$ac_hdr>
7549 EOF 7552 EOF
7550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7551 { (eval echo configure:7552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7554 { (eval echo configure:7555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7553 if test -z "$ac_err"; then 7556 if test -z "$ac_err"; then
7554 rm -rf conftest* 7557 rm -rf conftest*
7555 eval "ac_cv_header_$ac_safe=yes" 7558 eval "ac_cv_header_$ac_safe=yes"
7556 else 7559 else
7583 fi 7586 fi
7584 for ac_hdr in com_err.h 7587 for ac_hdr in com_err.h
7585 do 7588 do
7586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7588 echo "configure:7589: checking for $ac_hdr" >&5 7591 echo "configure:7592: checking for $ac_hdr" >&5
7589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6 7593 echo $ac_n "(cached) $ac_c" 1>&6
7591 else 7594 else
7592 cat > conftest.$ac_ext <<EOF 7595 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure" 7596 #line 7597 "configure"
7594 #include "confdefs.h" 7597 #include "confdefs.h"
7595 #include <$ac_hdr> 7598 #include <$ac_hdr>
7596 EOF 7599 EOF
7597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7598 { (eval echo configure:7599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7601 { (eval echo configure:7602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7600 if test -z "$ac_err"; then 7603 if test -z "$ac_err"; then
7601 rm -rf conftest* 7604 rm -rf conftest*
7602 eval "ac_cv_header_$ac_safe=yes" 7605 eval "ac_cv_header_$ac_safe=yes"
7603 else 7606 else
7624 fi 7627 fi
7625 7628
7626 # Solaris requires -lintl if you want strerror (which calls dgettext) 7629 # Solaris requires -lintl if you want strerror (which calls dgettext)
7627 # to return localized messages. 7630 # to return localized messages.
7628 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 7631 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
7629 echo "configure:7630: checking for dgettext in -lintl" >&5 7632 echo "configure:7633: checking for dgettext in -lintl" >&5
7630 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 7633 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
7631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6 7635 echo $ac_n "(cached) $ac_c" 1>&6
7633 else 7636 else
7634 ac_save_LIBS="$LIBS" 7637 ac_save_LIBS="$LIBS"
7635 LIBS="-lintl $LIBS" 7638 LIBS="-lintl $LIBS"
7636 cat > conftest.$ac_ext <<EOF 7639 cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure" 7640 #line 7641 "configure"
7638 #include "confdefs.h" 7641 #include "confdefs.h"
7639 /* Override any gcc2 internal prototype to avoid an error. */ 7642 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2 7643 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */ 7644 builtin and then its argument prototype would still apply. */
7642 char dgettext(); 7645 char dgettext();
7643 7646
7644 int main() { 7647 int main() {
7645 dgettext() 7648 dgettext()
7646 ; return 0; } 7649 ; return 0; }
7647 EOF 7650 EOF
7648 if { (eval echo configure:7649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7649 rm -rf conftest* 7652 rm -rf conftest*
7650 eval "ac_cv_lib_$ac_lib_var=yes" 7653 eval "ac_cv_lib_$ac_lib_var=yes"
7651 else 7654 else
7652 echo "configure: failed program was:" >&5 7655 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5 7656 cat conftest.$ac_ext >&5
7672 echo "$ac_t""no" 1>&6 7675 echo "$ac_t""no" 1>&6
7673 fi 7676 fi
7674 7677
7675 7678
7676 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7679 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7677 echo "configure:7678: checking whether localtime caches TZ" >&5 7680 echo "configure:7681: checking whether localtime caches TZ" >&5
7678 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 7681 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6 7682 echo $ac_n "(cached) $ac_c" 1>&6
7680 else 7683 else
7681 if test x$ac_cv_func_tzset = xyes; then 7684 if test x$ac_cv_func_tzset = xyes; then
7682 if test "$cross_compiling" = yes; then 7685 if test "$cross_compiling" = yes; then
7683 # If we have tzset, assume the worst when cross-compiling. 7686 # If we have tzset, assume the worst when cross-compiling.
7684 emacs_cv_localtime_cache=yes 7687 emacs_cv_localtime_cache=yes
7685 else 7688 else
7686 cat > conftest.$ac_ext <<EOF 7689 cat > conftest.$ac_ext <<EOF
7687 #line 7688 "configure" 7690 #line 7691 "configure"
7688 #include "confdefs.h" 7691 #include "confdefs.h"
7689 #include <time.h> 7692 #include <time.h>
7690 extern char **environ; 7693 extern char **environ;
7691 unset_TZ () 7694 unset_TZ ()
7692 { 7695 {
7714 if (localtime (&now)->tm_hour != hour_unset) 7717 if (localtime (&now)->tm_hour != hour_unset)
7715 exit (1); 7718 exit (1);
7716 exit (0); 7719 exit (0);
7717 } 7720 }
7718 EOF 7721 EOF
7719 if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7720 then 7723 then
7721 emacs_cv_localtime_cache=no 7724 emacs_cv_localtime_cache=no
7722 else 7725 else
7723 echo "configure: failed program was:" >&5 7726 echo "configure: failed program was:" >&5
7724 cat conftest.$ac_ext >&5 7727 cat conftest.$ac_ext >&5
7744 7747
7745 if test "x$HAVE_TIMEVAL" = xyes; then 7748 if test "x$HAVE_TIMEVAL" = xyes; then
7746 for ac_func in gettimeofday 7749 for ac_func in gettimeofday
7747 do 7750 do
7748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7749 echo "configure:7750: checking for $ac_func" >&5 7752 echo "configure:7753: checking for $ac_func" >&5
7750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6 7754 echo $ac_n "(cached) $ac_c" 1>&6
7752 else 7755 else
7753 cat > conftest.$ac_ext <<EOF 7756 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure" 7757 #line 7758 "configure"
7755 #include "confdefs.h" 7758 #include "confdefs.h"
7756 /* System header to define __stub macros and hopefully few prototypes, 7759 /* System header to define __stub macros and hopefully few prototypes,
7757 which can conflict with char $ac_func(); below. */ 7760 which can conflict with char $ac_func(); below. */
7758 #include <assert.h> 7761 #include <assert.h>
7759 /* Override any gcc2 internal prototype to avoid an error. */ 7762 /* Override any gcc2 internal prototype to avoid an error. */
7772 $ac_func(); 7775 $ac_func();
7773 #endif 7776 #endif
7774 7777
7775 ; return 0; } 7778 ; return 0; }
7776 EOF 7779 EOF
7777 if { (eval echo configure:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778 rm -rf conftest* 7781 rm -rf conftest*
7779 eval "ac_cv_func_$ac_func=yes" 7782 eval "ac_cv_func_$ac_func=yes"
7780 else 7783 else
7781 echo "configure: failed program was:" >&5 7784 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5 7785 cat conftest.$ac_ext >&5
7797 echo "$ac_t""no" 1>&6 7800 echo "$ac_t""no" 1>&6
7798 fi 7801 fi
7799 done 7802 done
7800 7803
7801 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 7804 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
7802 echo "configure:7803: checking whether gettimeofday can accept two arguments" >&5 7805 echo "configure:7806: checking whether gettimeofday can accept two arguments" >&5
7803 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 7806 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6 7807 echo $ac_n "(cached) $ac_c" 1>&6
7805 else 7808 else
7806 cat > conftest.$ac_ext <<EOF 7809 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure" 7810 #line 7811 "configure"
7808 #include "confdefs.h" 7811 #include "confdefs.h"
7809 7812
7810 #ifdef TIME_WITH_SYS_TIME 7813 #ifdef TIME_WITH_SYS_TIME
7811 #include <sys/time.h> 7814 #include <sys/time.h>
7812 #include <time.h> 7815 #include <time.h>
7820 int main() { 7823 int main() {
7821 struct timeval time; 7824 struct timeval time;
7822 gettimeofday (&time, 0); 7825 gettimeofday (&time, 0);
7823 ; return 0; } 7826 ; return 0; }
7824 EOF 7827 EOF
7825 if { (eval echo configure:7826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7828 if { (eval echo configure:7829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7826 rm -rf conftest* 7829 rm -rf conftest*
7827 emacs_cv_gettimeofday_two_arguments=yes 7830 emacs_cv_gettimeofday_two_arguments=yes
7828 else 7831 else
7829 echo "configure: failed program was:" >&5 7832 echo "configure: failed program was:" >&5
7830 cat conftest.$ac_ext >&5 7833 cat conftest.$ac_ext >&5
7843 fi 7846 fi
7844 fi 7847 fi
7845 7848
7846 if test "$ac_cv_func_gettimeofday" = yes; then 7849 if test "$ac_cv_func_gettimeofday" = yes; then
7847 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 7850 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
7848 echo "configure:7849: checking for struct timezone" >&5 7851 echo "configure:7852: checking for struct timezone" >&5
7849 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 7852 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6 7853 echo $ac_n "(cached) $ac_c" 1>&6
7851 else 7854 else
7852 cat > conftest.$ac_ext <<EOF 7855 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure" 7856 #line 7857 "configure"
7854 #include "confdefs.h" 7857 #include "confdefs.h"
7855 #include <sys/time.h> 7858 #include <sys/time.h>
7856 int main() { 7859 int main() {
7857 struct timezone tz; 7860 struct timezone tz;
7858 ; return 0; } 7861 ; return 0; }
7859 EOF 7862 EOF
7860 if { (eval echo configure:7861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7863 if { (eval echo configure:7864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7861 rm -rf conftest* 7864 rm -rf conftest*
7862 if test "$cross_compiling" = yes; then 7865 if test "$cross_compiling" = yes; then
7863 emacs_cv_struct_timezone=yes 7866 emacs_cv_struct_timezone=yes
7864 else 7867 else
7865 cat > conftest.$ac_ext <<EOF 7868 cat > conftest.$ac_ext <<EOF
7866 #line 7867 "configure" 7869 #line 7870 "configure"
7867 #include "confdefs.h" 7870 #include "confdefs.h"
7868 7871
7869 #ifdef TIME_WITH_SYS_TIME 7872 #ifdef TIME_WITH_SYS_TIME
7870 #include <sys/time.h> 7873 #include <sys/time.h>
7871 #include <time.h> 7874 #include <time.h>
7880 struct timeval time; 7883 struct timeval time;
7881 struct timezone dummy; 7884 struct timezone dummy;
7882 exit (gettimeofday (&time, &dummy)); 7885 exit (gettimeofday (&time, &dummy));
7883 } 7886 }
7884 EOF 7887 EOF
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7888 if { (eval echo configure:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7886 then 7889 then
7887 emacs_cv_struct_timezone=yes 7890 emacs_cv_struct_timezone=yes
7888 else 7891 else
7889 echo "configure: failed program was:" >&5 7892 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5 7893 cat conftest.$ac_ext >&5
7906 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 7909 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
7907 fi 7910 fi
7908 7911
7909 ok_so_far=yes 7912 ok_so_far=yes
7910 echo $ac_n "checking for socket""... $ac_c" 1>&6 7913 echo $ac_n "checking for socket""... $ac_c" 1>&6
7911 echo "configure:7912: checking for socket" >&5 7914 echo "configure:7915: checking for socket" >&5
7912 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 7915 if eval "test \"`echo '$''{'ac_cv_func_socket'+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 /* System header to define __stub macros and hopefully few prototypes, 7921 /* System header to define __stub macros and hopefully few prototypes,
7919 which can conflict with char socket(); below. */ 7922 which can conflict with char socket(); below. */
7920 #include <assert.h> 7923 #include <assert.h>
7921 /* Override any gcc2 internal prototype to avoid an error. */ 7924 /* Override any gcc2 internal prototype to avoid an error. */
7934 socket(); 7937 socket();
7935 #endif 7938 #endif
7936 7939
7937 ; return 0; } 7940 ; return 0; }
7938 EOF 7941 EOF
7939 if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7940 rm -rf conftest* 7943 rm -rf conftest*
7941 eval "ac_cv_func_socket=yes" 7944 eval "ac_cv_func_socket=yes"
7942 else 7945 else
7943 echo "configure: failed program was:" >&5 7946 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5 7947 cat conftest.$ac_ext >&5
7957 fi 7960 fi
7958 7961
7959 if test $ok_so_far = yes; then 7962 if test $ok_so_far = yes; then
7960 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 7963 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7961 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 7964 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7962 echo "configure:7963: checking for netinet/in.h" >&5 7965 echo "configure:7966: checking for netinet/in.h" >&5
7963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6 7967 echo $ac_n "(cached) $ac_c" 1>&6
7965 else 7968 else
7966 cat > conftest.$ac_ext <<EOF 7969 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure" 7970 #line 7971 "configure"
7968 #include "confdefs.h" 7971 #include "confdefs.h"
7969 #include <netinet/in.h> 7972 #include <netinet/in.h>
7970 EOF 7973 EOF
7971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7972 { (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7974 if test -z "$ac_err"; then 7977 if test -z "$ac_err"; then
7975 rm -rf conftest* 7978 rm -rf conftest*
7976 eval "ac_cv_header_$ac_safe=yes" 7979 eval "ac_cv_header_$ac_safe=yes"
7977 else 7980 else
7993 7996
7994 fi 7997 fi
7995 if test $ok_so_far = yes; then 7998 if test $ok_so_far = yes; then
7996 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 7999 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
7997 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8000 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
7998 echo "configure:7999: checking for arpa/inet.h" >&5 8001 echo "configure:8002: checking for arpa/inet.h" >&5
7999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6 8003 echo $ac_n "(cached) $ac_c" 1>&6
8001 else 8004 else
8002 cat > conftest.$ac_ext <<EOF 8005 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure" 8006 #line 8007 "configure"
8004 #include "confdefs.h" 8007 #include "confdefs.h"
8005 #include <arpa/inet.h> 8008 #include <arpa/inet.h>
8006 EOF 8009 EOF
8007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8008 { (eval echo configure:8009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8011 { (eval echo configure:8012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8010 if test -z "$ac_err"; then 8013 if test -z "$ac_err"; then
8011 rm -rf conftest* 8014 rm -rf conftest*
8012 eval "ac_cv_header_$ac_safe=yes" 8015 eval "ac_cv_header_$ac_safe=yes"
8013 else 8016 else
8041 EOF 8044 EOF
8042 8045
8043 fi 8046 fi
8044 8047
8045 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8048 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8046 echo "configure:8047: checking whether system supports dynamic ptys" >&5 8049 echo "configure:8050: checking whether system supports dynamic ptys" >&5
8047 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8050 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8048 echo "$ac_t""yes" 1>&6 8051 echo "$ac_t""yes" 1>&6
8049 cat >> confdefs.h <<\EOF 8052 cat >> confdefs.h <<\EOF
8050 #define HAVE_DEV_PTMX 1 8053 #define HAVE_DEV_PTMX 1
8051 EOF 8054 EOF
8053 else 8056 else
8054 echo "$ac_t""no" 1>&6 8057 echo "$ac_t""no" 1>&6
8055 fi 8058 fi
8056 8059
8057 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8060 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8058 echo "configure:8059: checking for pid_t" >&5 8061 echo "configure:8062: checking for pid_t" >&5
8059 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8062 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8060 echo $ac_n "(cached) $ac_c" 1>&6 8063 echo $ac_n "(cached) $ac_c" 1>&6
8061 else 8064 else
8062 cat > conftest.$ac_ext <<EOF 8065 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure" 8066 #line 8067 "configure"
8064 #include "confdefs.h" 8067 #include "confdefs.h"
8065 #include <sys/types.h> 8068 #include <sys/types.h>
8066 #if STDC_HEADERS 8069 #if STDC_HEADERS
8067 #include <stdlib.h> 8070 #include <stdlib.h>
8068 #include <stddef.h> 8071 #include <stddef.h>
8087 8090
8088 fi 8091 fi
8089 8092
8090 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8093 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8091 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8094 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8092 echo "configure:8093: checking for vfork.h" >&5 8095 echo "configure:8096: checking for vfork.h" >&5
8093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6 8097 echo $ac_n "(cached) $ac_c" 1>&6
8095 else 8098 else
8096 cat > conftest.$ac_ext <<EOF 8099 cat > conftest.$ac_ext <<EOF
8097 #line 8098 "configure" 8100 #line 8101 "configure"
8098 #include "confdefs.h" 8101 #include "confdefs.h"
8099 #include <vfork.h> 8102 #include <vfork.h>
8100 EOF 8103 EOF
8101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8102 { (eval echo configure:8103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8104 if test -z "$ac_err"; then 8107 if test -z "$ac_err"; then
8105 rm -rf conftest* 8108 rm -rf conftest*
8106 eval "ac_cv_header_$ac_safe=yes" 8109 eval "ac_cv_header_$ac_safe=yes"
8107 else 8110 else
8122 else 8125 else
8123 echo "$ac_t""no" 1>&6 8126 echo "$ac_t""no" 1>&6
8124 fi 8127 fi
8125 8128
8126 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8129 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8127 echo "configure:8128: checking for working vfork" >&5 8130 echo "configure:8131: checking for working vfork" >&5
8128 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8131 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6 8132 echo $ac_n "(cached) $ac_c" 1>&6
8130 else 8133 else
8131 if test "$cross_compiling" = yes; then 8134 if test "$cross_compiling" = yes; then
8132 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8135 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8133 echo "configure:8134: checking for vfork" >&5 8136 echo "configure:8137: checking for vfork" >&5
8134 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8137 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6 8138 echo $ac_n "(cached) $ac_c" 1>&6
8136 else 8139 else
8137 cat > conftest.$ac_ext <<EOF 8140 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure" 8141 #line 8142 "configure"
8139 #include "confdefs.h" 8142 #include "confdefs.h"
8140 /* System header to define __stub macros and hopefully few prototypes, 8143 /* System header to define __stub macros and hopefully few prototypes,
8141 which can conflict with char vfork(); below. */ 8144 which can conflict with char vfork(); below. */
8142 #include <assert.h> 8145 #include <assert.h>
8143 /* Override any gcc2 internal prototype to avoid an error. */ 8146 /* Override any gcc2 internal prototype to avoid an error. */
8156 vfork(); 8159 vfork();
8157 #endif 8160 #endif
8158 8161
8159 ; return 0; } 8162 ; return 0; }
8160 EOF 8163 EOF
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8162 rm -rf conftest* 8165 rm -rf conftest*
8163 eval "ac_cv_func_vfork=yes" 8166 eval "ac_cv_func_vfork=yes"
8164 else 8167 else
8165 echo "configure: failed program was:" >&5 8168 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5 8169 cat conftest.$ac_ext >&5
8178 fi 8181 fi
8179 8182
8180 ac_cv_func_vfork_works=$ac_cv_func_vfork 8183 ac_cv_func_vfork_works=$ac_cv_func_vfork
8181 else 8184 else
8182 cat > conftest.$ac_ext <<EOF 8185 cat > conftest.$ac_ext <<EOF
8183 #line 8184 "configure" 8186 #line 8187 "configure"
8184 #include "confdefs.h" 8187 #include "confdefs.h"
8185 /* Thanks to Paul Eggert for this test. */ 8188 /* Thanks to Paul Eggert for this test. */
8186 #include <stdio.h> 8189 #include <stdio.h>
8187 #include <sys/types.h> 8190 #include <sys/types.h>
8188 #include <sys/stat.h> 8191 #include <sys/stat.h>
8273 || fstat(fileno(stdout), &st) != 0 8276 || fstat(fileno(stdout), &st) != 0
8274 ); 8277 );
8275 } 8278 }
8276 } 8279 }
8277 EOF 8280 EOF
8278 if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8279 then 8282 then
8280 ac_cv_func_vfork_works=yes 8283 ac_cv_func_vfork_works=yes
8281 else 8284 else
8282 echo "configure: failed program was:" >&5 8285 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5 8286 cat conftest.$ac_ext >&5
8298 fi 8301 fi
8299 8302
8300 8303
8301 # Set up the CFLAGS for real compilation, so we can substitute it. 8304 # Set up the CFLAGS for real compilation, so we can substitute it.
8302 CFLAGS="$REAL_CFLAGS" 8305 CFLAGS="$REAL_CFLAGS"
8306 CPPFLAGS="$REAL_CPPFLAGS"
8303 8307
8304 #### Find out which version of Emacs this is. 8308 #### Find out which version of Emacs this is.
8305 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 8309 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
8306 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 8310 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
8307 if test x"${version}" = x; then 8311 if test x"${version}" = x; then