From 93c30a24c4fb8febda104090d5acec1f59a5a15f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Sep 2006 19:40:46 +0000 Subject: * 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 (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. --- m4/jm-macros.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'm4/jm-macros.m4') 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 -- cgit v1.2.3-54-g00ecf