3 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
9 d_statfs Compile rm cat i_sysparam i_sysmount i_systypes \
10 i_sysvfs i_sysstatfs Setvar
11 ?MAKE: -pick add $@ %<
13 ?S: This variable conditionally defines the HAS_STATFS symbol, which
14 ?S: indicates to the C program that the statfs() has four arguments.
17 ?C: This symbol, if defined, indicates that the statfs routine
18 ?C: has four arguments, not two.
20 ?H:#$d_statfs4 HAS_STATFS4 /**/
27 #define HAS_SYS_TYPES $i_systypes
28 #define HAS_SYS_PARAM $i_sysparam
29 #define HAS_SYS_MOUNT $i_sysmount
30 #define HAS_SYS_VFS $i_sysvfs
31 #define HAS_SYS_STATFS $i_sysstatfs
33 # include <sys/types.h>
36 # include <sys/param.h>
39 # include <sys/mount.h>
45 # include <sys/statfs.h>
48 echo "Checking to see if your statfs can handle four arguments..." >&4
51 int main() { struct statfs sf; statfs(".", &sf, sizeof(sf), 0) };
54 if eval $compile; then
60 $define) echo "Yes, it can." ;;
61 $undef) echo "No, it can't." ;;