@@ -16962,14 +16962,118 @@ esac
16962
16962
16963
16963
# Win32 support
16964
16964
if test "$PORTNAME" = "win32"; then
16965
- case $LIBOBJS in
16966
- "gettimeofday.$ac_objext" | \
16967
- *" gettimeofday.$ac_objext" | \
16968
- "gettimeofday.$ac_objext "* | \
16969
- *" gettimeofday.$ac_objext "* ) ;;
16970
- *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
16965
+
16966
+ for ac_func in gettimeofday
16967
+ do
16968
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16969
+ echo "$as_me:$LINENO: checking for $ac_func" >&5
16970
+ echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16971
+ if eval "test \"\${$as_ac_var+set}\" = set"; then
16972
+ echo $ECHO_N "(cached) $ECHO_C" >&6
16973
+ else
16974
+ cat >conftest.$ac_ext <<_ACEOF
16975
+ /* confdefs.h. */
16976
+ _ACEOF
16977
+ cat confdefs.h >>conftest.$ac_ext
16978
+ cat >>conftest.$ac_ext <<_ACEOF
16979
+ /* end confdefs.h. */
16980
+ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16981
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
16982
+ #define $ac_func innocuous_$ac_func
16983
+
16984
+ /* System header to define __stub macros and hopefully few prototypes,
16985
+ which can conflict with char $ac_func (); below.
16986
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16987
+ <limits.h> exists even on freestanding compilers. */
16988
+
16989
+ #ifdef __STDC__
16990
+ # include <limits.h>
16991
+ #else
16992
+ # include <assert.h>
16993
+ #endif
16994
+
16995
+ #undef $ac_func
16996
+
16997
+ /* Override any gcc2 internal prototype to avoid an error. */
16998
+ #ifdef __cplusplus
16999
+ extern "C"
17000
+ {
17001
+ #endif
17002
+ /* We use char because int might match the return type of a gcc2
17003
+ builtin and then its argument prototype would still apply. */
17004
+ char $ac_func ();
17005
+ /* The GNU C library defines this for functions which it implements
17006
+ to always fail with ENOSYS. Some functions are actually named
17007
+ something starting with __ and the normal name is an alias. */
17008
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17009
+ choke me
17010
+ #else
17011
+ char (*f) () = $ac_func;
17012
+ #endif
17013
+ #ifdef __cplusplus
17014
+ }
17015
+ #endif
17016
+
17017
+ int
17018
+ main ()
17019
+ {
17020
+ return f != $ac_func;
17021
+ ;
17022
+ return 0;
17023
+ }
17024
+ _ACEOF
17025
+ rm -f conftest.$ac_objext conftest$ac_exeext
17026
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17027
+ (eval $ac_link) 2>conftest.er1
17028
+ ac_status=$?
17029
+ grep -v '^ *+' conftest.er1 >conftest.err
17030
+ rm -f conftest.er1
17031
+ cat conftest.err >&5
17032
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033
+ (exit $ac_status); } &&
17034
+ { ac_try='test -z "$ac_c_werror_flag"
17035
+ || test ! -s conftest.err'
17036
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037
+ (eval $ac_try) 2>&5
17038
+ ac_status=$?
17039
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040
+ (exit $ac_status); }; } &&
17041
+ { ac_try='test -s conftest$ac_exeext'
17042
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043
+ (eval $ac_try) 2>&5
17044
+ ac_status=$?
17045
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046
+ (exit $ac_status); }; }; then
17047
+ eval "$as_ac_var=yes"
17048
+ else
17049
+ echo "$as_me: failed program was:" >&5
17050
+ sed 's/^/| /' conftest.$ac_ext >&5
17051
+
17052
+ eval "$as_ac_var=no"
17053
+ fi
17054
+ rm -f conftest.err conftest.$ac_objext \
17055
+ conftest$ac_exeext conftest.$ac_ext
17056
+ fi
17057
+ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17058
+ echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17059
+ if test `eval echo '${'$as_ac_var'}'` = yes; then
17060
+ cat >>confdefs.h <<_ACEOF
17061
+ #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17062
+ _ACEOF
17063
+
17064
+ else
17065
+ case $LIBOBJS in
17066
+ "$ac_func.$ac_objext" | \
17067
+ *" $ac_func.$ac_objext" | \
17068
+ "$ac_func.$ac_objext "* | \
17069
+ *" $ac_func.$ac_objext "* ) ;;
17070
+ *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16971
17071
esac
16972
17072
17073
+ fi
17074
+ done
17075
+
17076
+
16973
17077
case $LIBOBJS in
16974
17078
"kill.$ac_objext" | \
16975
17079
*" kill.$ac_objext" | \
0 commit comments