summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-09-08 11:52:55 +0200
committerJim Meyering <meyering@redhat.com>2011-09-08 12:16:17 +0200
commit5581bf28e364425046d7f793f02db8721ae98216 (patch)
tree39cfd6f45948152430cc6092b35cef7f752d9c6a /m4
parent5eeaca942ab8fc090cd6b0ae2fede698dc9a6f5d (diff)
downloadcoreutils-5581bf28e364425046d7f793f02db8721ae98216.tar.xz
stat: avoid compilation failure on AIX 7.x
* src/stat.c (USE_STATVFS): Adjust definition so that it is enabled also on AIX 7.x systems that provide statvfs64 and no statvfs. [USE_STATVFS && ! STAT_STATVFS && STAT_STATVFS64] (STATFS): Define to statvfs64 in that precise case. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Adjust the condition here to match the new one in stat.c, to keep them in sync. Reported by Bruno Haible. For details, see http://article.gmane.org/gmane.comp.gnu.coreutils.general/1668
Diffstat (limited to 'm4')
-rw-r--r--m4/stat-prog.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/stat-prog.m4 b/m4/stat-prog.m4
index c23fb1fbe..032e310ac 100644
--- a/m4/stat-prog.m4
+++ b/m4/stat-prog.m4
@@ -1,4 +1,4 @@
-# stat-prog.m4 serial 6
+# stat-prog.m4 serial 7
# Record the prerequisites of src/stat.c from the coreutils package.
# Copyright (C) 2002-2004, 2006, 2008-2011 Free Software Foundation, Inc.
@@ -53,7 +53,8 @@ AC_INCLUDES_DEFAULT
"
dnl Keep this long conditional in sync with the USE_STATVFS conditional
dnl in ../src/stat.c.
- if test "$fu_cv_sys_stat_statvfs" = yes &&
+ if case "$fu_cv_sys_stat_statvfs$fu_cv_sys_stat_statvfs64" in
+ *yes*) ;; *) false;; esac &&
{ AC_CHECK_MEMBERS([struct statvfs.f_basetype],,, [$statvfs_includes])
test $ac_cv_member_struct_statvfs_f_basetype = yes ||
{ AC_CHECK_MEMBERS([struct statvfs.f_fstypename],,, [$statvfs_includes])