@@ -1393,7 +1393,7 @@ case $host_os in
1393
1393
hpux* ) template=hpux ;;
1394
1394
irix* ) template=irix5 ;;
1395
1395
linux* ) template=linux ;;
1396
- mingw* ) template=win ;;
1396
+ mingw* ) template=win32 ;;
1397
1397
netbsd* ) template=netbsd ;;
1398
1398
nextstep* ) template=nextstep ;;
1399
1399
openbsd* ) template=openbsd ;;
@@ -2808,7 +2808,6 @@ echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2808
2808
done
2809
2809
IFS=$ac_save_IFS
2810
2810
2811
-
2812
2811
#
2813
2812
# Tcl/Tk
2814
2813
#
@@ -5236,6 +5235,65 @@ _ACEOF
5236
5235
5237
5236
fi
5238
5237
5238
+
5239
+ echo " $as_me :$LINENO : checking for main in -lwsock32" >&5
5240
+ echo $ECHO_N " checking for main in -lwsock32... $ECHO_C " >&6
5241
+ if test " ${ac_cv_lib_wsock32_main+set} " = set ; then
5242
+ echo $ECHO_N " (cached) $ECHO_C " >&6
5243
+ else
5244
+ ac_check_lib_save_LIBS=$LIBS
5245
+ LIBS=" -lwsock32 $LIBS "
5246
+ cat > conftest.$ac_ext << _ACEOF
5247
+ #line $LINENO "configure"
5248
+ #include "confdefs.h"
5249
+
5250
+
5251
+ #ifdef F77_DUMMY_MAIN
5252
+ # ifdef __cplusplus
5253
+ extern "C"
5254
+ # endif
5255
+ int F77_DUMMY_MAIN() { return 1; }
5256
+ #endif
5257
+ int
5258
+ main ()
5259
+ {
5260
+ main ();
5261
+ ;
5262
+ return 0;
5263
+ }
5264
+ _ACEOF
5265
+ rm -f conftest.$ac_objext conftest$ac_exeext
5266
+ if { (eval echo " $as_me :$LINENO : \" $ac_link \" " ) >&5
5267
+ (eval $ac_link ) 2>&5
5268
+ ac_status=$?
5269
+ echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
5270
+ (exit $ac_status ); } &&
5271
+ { ac_try=' test -s conftest$ac_exeext'
5272
+ { (eval echo " $as_me :$LINENO : \" $ac_try \" " ) >&5
5273
+ (eval $ac_try ) 2>&5
5274
+ ac_status=$?
5275
+ echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
5276
+ (exit $ac_status ); }; }; then
5277
+ ac_cv_lib_wsock32_main=yes
5278
+ else
5279
+ echo " $as_me : failed program was:" >&5
5280
+ cat conftest.$ac_ext >&5
5281
+ ac_cv_lib_wsock32_main=no
5282
+ fi
5283
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284
+ LIBS=$ac_check_lib_save_LIBS
5285
+ fi
5286
+ echo " $as_me :$LINENO : result: $ac_cv_lib_wsock32_main " >&5
5287
+ echo " ${ECHO_T} $ac_cv_lib_wsock32_main " >&6
5288
+ if test $ac_cv_lib_wsock32_main = yes; then
5289
+ cat >> confdefs.h << _ACEOF
5290
+ #define HAVE_LIBWSOCK32 1
5291
+ _ACEOF
5292
+
5293
+ LIBS=" -lwsock32 $LIBS "
5294
+
5295
+ fi
5296
+
5239
5297
echo " $as_me :$LINENO : checking for library containing getopt_long" >&5
5240
5298
echo $ECHO_N " checking for library containing getopt_long... $ECHO_C " >&6
5241
5299
if test " ${ac_cv_search_getopt_long+set} " = set ; then
@@ -6072,6 +6130,85 @@ echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6072
6130
{ (exit 1); exit 1; }; }
6073
6131
fi
6074
6132
6133
+
6134
+ for ac_func in gethostname
6135
+ do
6136
+ as_ac_var=` echo " ac_cv_func_$ac_func " | $as_tr_sh `
6137
+ echo " $as_me :$LINENO : checking for $ac_func " >&5
6138
+ echo $ECHO_N " checking for $ac_func ... $ECHO_C " >&6
6139
+ if eval " test \"\$ {$as_ac_var +set}\" = set" ; then
6140
+ echo $ECHO_N " (cached) $ECHO_C " >&6
6141
+ else
6142
+ cat > conftest.$ac_ext << _ACEOF
6143
+ #line $LINENO "configure"
6144
+ #include "confdefs.h"
6145
+ /* System header to define __stub macros and hopefully few prototypes,
6146
+ which can conflict with char $ac_func (); below. */
6147
+ #include <assert.h>
6148
+ /* Override any gcc2 internal prototype to avoid an error. */
6149
+ #ifdef __cplusplus
6150
+ extern "C"
6151
+ #endif
6152
+ /* We use char because int might match the return type of a gcc2
6153
+ builtin and then its argument prototype would still apply. */
6154
+ char $ac_func ();
6155
+ char (*f) ();
6156
+
6157
+ #ifdef F77_DUMMY_MAIN
6158
+ # ifdef __cplusplus
6159
+ extern "C"
6160
+ # endif
6161
+ int F77_DUMMY_MAIN() { return 1; }
6162
+ #endif
6163
+ int
6164
+ main ()
6165
+ {
6166
+ /* The GNU C library defines this for functions which it implements
6167
+ to always fail with ENOSYS. Some functions are actually named
6168
+ something starting with __ and the normal name is an alias. */
6169
+ #if defined (__stub_$ac_func ) || defined (__stub___$ac_func )
6170
+ choke me
6171
+ #else
6172
+ f = $ac_func ;
6173
+ #endif
6174
+
6175
+ ;
6176
+ return 0;
6177
+ }
6178
+ _ACEOF
6179
+ rm -f conftest.$ac_objext conftest$ac_exeext
6180
+ if { (eval echo " $as_me :$LINENO : \" $ac_link \" " ) >&5
6181
+ (eval $ac_link ) 2>&5
6182
+ ac_status=$?
6183
+ echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
6184
+ (exit $ac_status ); } &&
6185
+ { ac_try=' test -s conftest$ac_exeext'
6186
+ { (eval echo " $as_me :$LINENO : \" $ac_try \" " ) >&5
6187
+ (eval $ac_try ) 2>&5
6188
+ ac_status=$?
6189
+ echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
6190
+ (exit $ac_status ); }; }; then
6191
+ eval " $as_ac_var =yes"
6192
+ else
6193
+ echo " $as_me : failed program was:" >&5
6194
+ cat conftest.$ac_ext >&5
6195
+ eval " $as_ac_var =no"
6196
+ fi
6197
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6198
+ fi
6199
+ echo " $as_me :$LINENO : result: ` eval echo ' ${' $as_ac_var ' }' ` " >&5
6200
+ echo " ${ECHO_T} ` eval echo ' ${' $as_ac_var ' }' ` " >&6
6201
+ if test ` eval echo ' ${' $as_ac_var ' }' ` = yes; then
6202
+ cat >> confdefs.h << _ACEOF
6203
+ #define ` echo " HAVE_$ac_func " | $as_tr_cpp ` 1
6204
+ _ACEOF
6205
+
6206
+ else
6207
+ LIBOBJS=" $LIBOBJS $ac_func .$ac_objext "
6208
+ fi
6209
+ done
6210
+
6211
+
6075
6212
fi
6076
6213
6077
6214
if test " $with_krb5 " = yes ; then
@@ -11080,7 +11217,7 @@ fi
11080
11217
11081
11218
11082
11219
11083
- for ac_func in crypt fseeko gethostname getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11220
+ for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11084
11221
do
11085
11222
as_ac_var=` echo " ac_cv_func_$ac_func " | $as_tr_sh `
11086
11223
echo " $as_me :$LINENO : checking for $ac_func " >&5
@@ -11258,9 +11395,8 @@ LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11258
11395
esac
11259
11396
11260
11397
# Win32 can't to rename or unlink on an open file
11261
- case $host_os in win32* )
11262
- LIBOBJS=" $LIBOBJS dirmod.$ac_objext "
11263
- LIBOBJS=" $LIBOBJS opendir.$ac_objext " ;;
11398
+ case $host_os in win32* |mingw* )
11399
+ LIBOBJS=" $LIBOBJS dirmod.$ac_objext " ;;
11264
11400
esac
11265
11401
11266
11402
if test " $with_readline " = yes; then
0 commit comments