From: uid65697 Date: Thu, 25 Dec 2003 10:18:00 +0000 (+0000) Subject: Check for varios members of struct stat that may represent file modification times... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=bb0b5c01c93a5250641e78f974c21eca314fc67c;p=chaz%2Ftar Check for varios members of struct stat that may represent file modification times with a subsecond precision. Check for utimes (for future use) --- diff --git a/configure.ac b/configure.ac index 3d2fa67..40173d4 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])