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_try 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_statfs3 HAS_STATFS3 /**/
28 #define HAS_SYS_TYPES $i_systypes
29 #define HAS_SYS_PARAM $i_sysparam
30 #define HAS_SYS_MOUNT $i_sysmount
31 #define HAS_SYS_VFS $i_sysvfs
32 #define HAS_SYS_STATFS $i_sysstatfs
34 # include <sys/types.h>
37 # include <sys/param.h>
40 # include <sys/mount.h>
46 # include <sys/statfs.h>
49 echo "Checking to see if your statfs can handle three arguments..." >&4
52 int main() { struct statfs sf; statfs(".", &sf, sizeof(sf)) };
55 if eval $compile; then
61 $define) echo "Yes, it can." ;;
62 $undef) echo "No, it can't." ;;