X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstat-time.m4;h=353de213f96a827d279fbf6f7706adcfe3192e57;hb=018d784ec357cbce8d1eae53e26c05b8964d3f7b;hp=89a7aa4b8d8f436d9b885d043862cd667fa00b03;hpb=8be31b6723907bbaa2377fe1e7098cf1182b7d5a;p=gnulib.git diff --git a/m4/stat-time.m4 b/m4/stat-time.m4 index 89a7aa4b8..353de213f 100644 --- a/m4/stat-time.m4 +++ b/m4/stat-time.m4 @@ -1,6 +1,8 @@ # Checks for stat-related time functions. -# Copyright (C) 1998, 1999, 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 1998, 1999, 2001, 2003, 2005, 2006, 2007 Free Software +# Foundation, Inc. + # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,10 +17,9 @@ dnl From Paul Eggert. AC_DEFUN([gl_STAT_TIME], [ - AC_LIBSOURCES([stat-time.h]) - AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_MEMBERS([struct stat.st_atim.tv_nsec], [AC_CACHE_CHECK([whether struct stat.st_atim is of type struct timespec], @@ -26,17 +27,11 @@ AC_DEFUN([gl_STAT_TIME], [AC_TRY_COMPILE( [ #include - #if TIME_WITH_SYS_TIME + #include + #if HAVE_SYS_TIME_H # include - # include - #else - # if HAVE_SYS_TIME_H - # include - # else - # include - # endif #endif - #include + #include struct timespec ts; struct stat st; ],