]>
Commit | Line | Data |
---|---|---|
1 | #serial 27 | |
2 | ||
3 | dnl These are the prerequisite macros for files in the lib/ | |
4 | dnl directories of the fileutils, sh-utils, and textutils packages. | |
5 | ||
6 | AC_DEFUN([jm_PREREQ], | |
7 | [ | |
8 | gl_BACKUPFILE | |
9 | jm_PREREQ_C_STACK | |
10 | gl_CANON_HOST | |
11 | gl_DIRNAME | |
12 | jm_PREREQ_ERROR | |
13 | gl_EXCLUDE | |
14 | gl_GETPAGESIZE | |
15 | gl_HARD_LOCALE | |
16 | gl_HASH | |
17 | gl_HUMAN | |
18 | gl_MBSWIDTH | |
19 | gl_FUNC_MEMCHR | |
20 | gl_PHYSMEM | |
21 | gl_POSIXVER | |
22 | gl_QUOTEARG | |
23 | gl_READUTMP | |
24 | gl_REGEX | |
25 | jm_PREREQ_STAT | |
26 | gl_FUNC_STRNLEN | |
27 | gl_XGETCWD | |
28 | gl_XREADLINK | |
29 | ]) | |
30 | ||
31 | AC_DEFUN([jm_PREREQ_STAT], | |
32 | [ | |
33 | AC_CHECK_HEADERS(sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h) | |
34 | AC_CHECK_HEADERS(sys/param.h sys/mount.h) | |
35 | AC_CHECK_FUNCS(statvfs) | |
36 | jm_AC_TYPE_LONG_LONG | |
37 | ||
38 | statxfs_includes="\ | |
39 | $ac_includes_default | |
40 | #if HAVE_SYS_STATVFS_H | |
41 | # include <sys/statvfs.h> | |
42 | #endif | |
43 | #if HAVE_SYS_VFS_H | |
44 | # include <sys/vfs.h> | |
45 | #endif | |
46 | #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H ) | |
47 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */ | |
48 | # include <sys/param.h> | |
49 | # include <sys/mount.h> | |
50 | #endif | |
51 | " | |
52 | AC_CHECK_MEMBERS([struct statfs.f_basetype],,,[$statxfs_includes]) | |
53 | AC_CHECK_MEMBERS([struct statvfs.f_basetype],,,[$statxfs_includes]) | |
54 | AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$statxfs_includes]) | |
55 | AC_CHECK_MEMBERS([struct statfs.f_type],,,[$statxfs_includes]) | |
56 | AC_CHECK_MEMBERS([struct statvfs.f_type],,,[$statxfs_includes]) | |
57 | AC_CHECK_MEMBERS([struct statfs.f_fsid.__val],,,[$statxfs_includes]) | |
58 | AC_CHECK_MEMBERS([struct statvfs.f_fsid.__val],,,[$statxfs_includes]) | |
59 | AC_CHECK_MEMBERS([struct statfs.f_namemax],,,[$statxfs_includes]) | |
60 | AC_CHECK_MEMBERS([struct statvfs.f_namemax],,,[$statxfs_includes]) | |
61 | AC_CHECK_MEMBERS([struct statfs.f_namelen],,,[$statxfs_includes]) | |
62 | AC_CHECK_MEMBERS([struct statvfs.f_namelen],,,[$statxfs_includes]) | |
63 | ]) |