-#line 5503 "configure"
+#line 5527 "configure"
#include "confdefs.h"
#include
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
then
TK_LIB=
echo $ac_n "checking for main in -ltk""... $ac_c" 1>&6
-echo "configure:5544: checking for main in -ltk" >&5
+echo "configure:5568: checking for main in -ltk" >&5
ac_lib_var=`echo tk'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-ltk $LIBS"
cat > conftest.$ac_ext <
-#line 5552 "configure"
+#line 5576 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
[AC_DEFINE(HAVE_INT_TIMEZONE) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
+AC_MSG_CHECKING(for gettimeofday args)
+AC_TRY_LINK([#include ],
+ [struct timeval *tp; struct timezone *tzp; gettimeofday(tp,tzp); ],
+ [AC_DEFINE(HAVE_GETTIMEOFDAY_2_ARGS) AC_MSG_RESULT(2 args)],
+ AC_MSG_RESULT(no))
+
AC_MSG_CHECKING(for union semun)
AC_TRY_LINK([#include
#include
/* Set to 1 if you have
*/
#undef HAVE_DLD_H
+/* Set to 1 if you gettimeofday(a,b) vs gettimeofday(a) */
+#undef HAVE_GETTIMEOFDAY_2_ARGS
+#ifndef HAVE_GETTIMEOFDAY_2_ARGS
+# define gettimeofday(a,b) gettimeofday(a)
+#endif
+
/* Set to 1 if you have fp_class() */
#undef HAVE_FP_CLASS