]> sjero.net Git - wget/commitdiff
[svn] Use AC_CHECK_TYPES to check for struct utimbuf.
authorhniksic <devnull@localhost>
Mon, 10 Nov 2003 13:48:53 +0000 (05:48 -0800)
committerhniksic <devnull@localhost>
Mon, 10 Nov 2003 13:48:53 +0000 (05:48 -0800)
ChangeLog
aclocal.m4

index ba111690d95a5855b857b421c86798c3dda0413c..8eee4b3f543744cec78a0c56a87351ef155bf3ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index a85014ab79a5b26eb0ba46c18caf2fd234f1fbb0..8e085231a6a3bfeaa89cebb2abbbd166e8e2ff8d 100644 (file)
@@ -3,19 +3,15 @@ dnl Check for `struct utimbuf'.
 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
+  ])
 ])