+2003-11-10 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of
+ AC_EGREP_CPP to check for struct utimbuf.
+
2003-11-09 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_WITH_NLS): Respect the user's setting of
dnl
AC_DEFUN([WGET_STRUCT_UTIMBUF], [
- AC_MSG_CHECKING([for struct utimbuf])
- if test x"$ac_cv_header_utime_h" = xyes; then
- AC_EGREP_CPP([struct[ ]+utimbuf],
- [#include <utime.h>
- ], [
- AC_DEFINE([HAVE_STRUCT_UTIMBUF], 1,
- [Define if you have struct utimbuf.])
- AC_MSG_RESULT(yes)
- ],
- [AC_MSG_RESULT(no)])
- else
- AC_MSG_RESULT(no)
- fi
+ AC_CHECK_TYPES([struct utimbuf], [], [], [
+#include <stdio.h>
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#if HAVE_UTIME_H
+# include <utime.h>
+#endif
+ ])
])