1
AC_DEFUN([ag_CHECK_NANOSECOND_STAT],
2
[AC_CACHE_CHECK([for nanosecond timestamps in struct stat],
11
[ return st.st_atimensec + st.st_mtimensec + st.st_ctimensec; ],
12
[ac_cv_stat_nsec=yes],
15
if test $ac_cv_stat_nsec = yes; then
16
AC_DEFINE(HAVE_STAT_NSEC, 1, [Define to 1 if struct stat has nanosecond timestamps.])
19
AC_CACHE_CHECK([for nanosecond timestamps in struct stat],
24
#include <sys/types.h>
29
[ return st.st_atim.tv_nsec + st.st_mtim.tv_nsec + st.st_ctim.tv_nsec; ],
30
[ac_cv_stat_timeval=yes],
31
[ac_cv_stat_timeval=no])
33
if test $ac_cv_stat_timeval = yes; then
34
AC_DEFINE(HAVE_STAT_TIMEVAL, 1, [Define to 1 if struct stat comtains struct timeval's.])