New module 'stat-size'.
[gnulib.git] / m4 / fileblocks.m4
1 # fileblocks.m4 serial 5
2 dnl Copyright (C) 2002, 2005-2006, 2009-2011 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FILEBLOCKS],
8 [
9   AC_STRUCT_ST_BLOCKS
10   dnl Note: AC_STRUCT_ST_BLOCKS does AC_LIBOBJ([fileblocks]).
11   dnl The stat-size module depends on this one and also assumes that
12   dnl HAVE_STRUCT_STAT_ST_BLOCKS is correctly defined.  So if you
13   dnl remove the call above, please make sure that this does not
14   dnl introduce a bug into lib/stat-size.h.
15   if test $ac_cv_member_struct_stat_st_blocks = no; then
16     gl_PREREQ_FILEBLOCKS
17   fi
18 ])
19
20 # Prerequisites of lib/fileblocks.c.
21 AC_DEFUN([gl_PREREQ_FILEBLOCKS], [
22   AC_CHECK_HEADERS_ONCE([sys/param.h])
23   :
24 ])