diff --git a/configure.ac b/configure.ac index 3d2fa676..40173d49 100644 --- a/configure.ac +++ b/configure.ac @@ -144,6 +144,11 @@ jm_FUNC_REALLOC jm_FUNC_UTIME jm_XSTRTOUMAX +AC_CHECK_MEMBERS([struct stat.st_spare1, struct stat.st_atim.tv_nsec, struct stat.st_atimespec.tv_nsec, struct stat.st_atimensec], , , + [ +#include +#include ]) + # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* # programs in the package would end up linked with that potentially-shared # library, inducing unnecessary run-time overhead. @@ -160,7 +165,7 @@ tar_save_LIBS=$LIBS AC_CHECK_FUNCS(clock_gettime) LIBS=$tar_save_LIBS -AC_CHECK_FUNCS(fsync lstat mkfifo readlink strerror symlink setlocale) +AC_CHECK_FUNCS(fsync lstat mkfifo readlink strerror symlink setlocale utimes) AC_CHECK_DECLS([getgrgid],,, [#include ]) AC_CHECK_DECLS([getpwuid],,, [#include ]) AC_CHECK_DECLS([valloc])