From 31d3c116144301b51fc50ad7934fe6f988b7029c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Dec 2010 07:30:38 +0000 Subject: futimes/utimes --- libeio.m4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libeio.m4') diff --git a/libeio.m4 b/libeio.m4 index fdd936b..13f9dfc 100644 --- a/libeio.m4 +++ b/libeio.m4 @@ -5,6 +5,20 @@ AC_SEARCH_LIBS( [AC_MSG_ERROR(pthread functions not found)] ) +AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([[ +#include +#include +#include +struct timeval tv[2]; +int res; +int main (void) +{ + res = utimes ("/", tv); + return 0; +} +]],ac_cv_utimes=yes,ac_cv_utimes=no)]) +test $ac_cv_utimes = yes && AC_DEFINE(HAVE_UTIMES, 1, utimes(2) is available) + AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ #include #include -- cgit v1.2.3