summaryrefslogtreecommitdiff
path: root/m4/jm-macros.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-09-01 19:40:46 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-09-01 19:40:46 +0000
commit93c30a24c4fb8febda104090d5acec1f59a5a15f (patch)
tree51dc1c5b851de849723c5de1716e7e4c2e49dff9 /m4/jm-macros.m4
parentddb97ab3b1a6477309f46f5b240fc5ddae8d340a (diff)
downloadcoreutils-93c30a24c4fb8febda104090d5acec1f59a5a15f.tar.xz
* m4/jm-macros.m4 (gl_MACROS): Call cu_PREREQ_STAT_PROG rather
than AC_REQUIREing, so that sys/mount.h isn't tested for after the test result. I'm not sure why this fix is needed, but it works. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Revamp to reflect better what stat.c actually needs. * src/stat.c: Include <stddef.h> (alignof): New macro. (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL): Remove. (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro. (FSID_VAL): Remove. (print_statfs): If f_fsid isn't an integer, grab its words one at a time in little-endian order. This is a bit easier to configure and should avoid a compilation failure on MacOS reported by Bruno Haible.
Diffstat (limited to 'm4/jm-macros.m4')
-rw-r--r--m4/jm-macros.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 0b63c4641..e0188e66b 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -79,7 +79,8 @@ AC_DEFUN([gl_MACROS],
tcgetpgrp \
)
- AC_REQUIRE([cu_PREREQ_STAT_PROG])
+ dnl This can't use AC_REQUIRE; I'm not quite sure why.
+ cu_PREREQ_STAT_PROG
# for dd.c and shred.c
coreutils_saved_libs=$LIBS