1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Use AC_CHECK_TYPES to check for struct utimbuf.

This commit is contained in:
hniksic 2003-11-10 05:48:53 -08:00
parent 02f90322e8
commit 92957a0ee2
2 changed files with 14 additions and 13 deletions

View File

@ -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> 2003-11-09 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_WITH_NLS): Respect the user's setting of * aclocal.m4 (WGET_WITH_NLS): Respect the user's setting of

22
aclocal.m4 vendored
View File

@ -3,19 +3,15 @@ dnl Check for `struct utimbuf'.
dnl dnl
AC_DEFUN([WGET_STRUCT_UTIMBUF], [ AC_DEFUN([WGET_STRUCT_UTIMBUF], [
AC_MSG_CHECKING([for struct utimbuf]) AC_CHECK_TYPES([struct utimbuf], [], [], [
if test x"$ac_cv_header_utime_h" = xyes; then #include <stdio.h>
AC_EGREP_CPP([struct[ ]+utimbuf], #if HAVE_SYS_TYPES_H
[#include <utime.h> # include <sys/types.h>
], [ #endif
AC_DEFINE([HAVE_STRUCT_UTIMBUF], 1, #if HAVE_UTIME_H
[Define if you have struct utimbuf.]) # include <utime.h>
AC_MSG_RESULT(yes) #endif
], ])
[AC_MSG_RESULT(no)])
else
AC_MSG_RESULT(no)
fi
]) ])