]> Dogcows Code - chaz/tar/commitdiff
Check for varios members of struct stat that may represent file modification times...
authoruid65697 <uid65697>
Thu, 25 Dec 2003 10:18:00 +0000 (10:18 +0000)
committeruid65697 <uid65697>
Thu, 25 Dec 2003 10:18:00 +0000 (10:18 +0000)
configure.ac

index 3d2fa676744ae07cb7607f59ecc0a396fd5ca28c..40173d49910c38c5fb3f4bbc3e65a345ab02a739 100644 (file)
@@ -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 <sys/types.h>
+#include <sys/stat.h>])
 # 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 <grp.h>])
 AC_CHECK_DECLS([getpwuid],,, [#include <pwd.h>])
 AC_CHECK_DECLS([valloc])
This page took 0.02394 seconds and 4 git commands to generate.