diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/st_mtim.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/st_mtim.m4 b/m4/st_mtim.m4 new file mode 100644 index 000000000..2de9649cc --- /dev/null +++ b/m4/st_mtim.m4 @@ -0,0 +1,14 @@ +#serial 1 + +dnl From Paul Eggert. + +# Define HAVE_ST_MTIM if struct stat has an st_mtim member. + +AC_DEFUN(AC_STRUCT_ST_MTIM, + [AC_CACHE_CHECK([for st_mtim in struct stat], ac_cv_struct_st_mtim, + [AC_TRY_COMPILE([#include <sys/types.h> +#include <sys/stat.h>], [struct stat s; s.st_mtim;], + ac_cv_struct_st_mtim=yes, ac_cv_struct_st_mtim=no)]) + if test $ac_cv_struct_st_mtim = yes; then + AC_DEFINE(HAVE_ST_MTIM) + fi]) |