summaryrefslogtreecommitdiff
path: root/m4/fileblocks.m4
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2011-06-11 01:15:39 +0100
committerJames Youngman <jay@gnu.org>2011-06-11 12:52:22 +0100
commit9fc77bc59374e21e1174742df416af186a368e14 (patch)
tree85753a7dd655e49e7f98c8d832704cfd2212914b /m4/fileblocks.m4
parentf462d86108d41b1ca0f48b51caad6c696d67d8fd (diff)
downloadgnulib-9fc77bc59374e21e1174742df416af186a368e14.tar.gz
New module 'stat-size'.
* modules/stat-size: New module. Provides macros for accessing file size information in instances of struct stat. Depends on the fileblocks module because it calls st_blocks. * lib/stat-size.h: New file, adapted from coreutils' system.h. * doc/gnulib.texi: Include stat-size.texi. * doc/stat-size.texi: Documentation for this module. * m4/stat-size.m4: New file; defines gl_STAT_SIZE. * m4/fileblocks.m4: Mention that stat-size depends on the call to AC_STRUCT_ST_BLOCKS.
Diffstat (limited to 'm4/fileblocks.m4')
-rw-r--r--m4/fileblocks.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/fileblocks.m4 b/m4/fileblocks.m4
index c8f99621b9..8700edaef1 100644
--- a/m4/fileblocks.m4
+++ b/m4/fileblocks.m4
@@ -8,6 +8,10 @@ AC_DEFUN([gl_FILEBLOCKS],
[
AC_STRUCT_ST_BLOCKS
dnl Note: AC_STRUCT_ST_BLOCKS does AC_LIBOBJ([fileblocks]).
+ dnl The stat-size module depends on this one and also assumes that
+ dnl HAVE_STRUCT_STAT_ST_BLOCKS is correctly defined. So if you
+ dnl remove the call above, please make sure that this does not
+ dnl introduce a bug into lib/stat-size.h.
if test $ac_cv_member_struct_stat_st_blocks = no; then
gl_PREREQ_FILEBLOCKS
fi