]> git.saurik.com Git - bison.git/blame - m4/prereq.m4
Include local.at, not input.at, fixing a typo in the 2003-08-25 patch.
[bison.git] / m4 / prereq.m4
CommitLineData
f61aad93 1#serial 27
ff4a34be 2
f61aad93
PE
3dnl These are the prerequisite macros for files in the lib/
4dnl directories of the fileutils, sh-utils, and textutils packages.
d862b1be
AD
5
6AC_DEFUN([jm_PREREQ],
7[
f61aad93 8 gl_BACKUPFILE
c97011bf 9 jm_PREREQ_C_STACK
f61aad93
PE
10 gl_CANON_HOST
11 gl_DIRNAME
d862b1be 12 jm_PREREQ_ERROR
f61aad93
PE
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
c97011bf 25 jm_PREREQ_STAT
f61aad93
PE
26 gl_FUNC_STRNLEN
27 gl_XGETCWD
28 gl_XREADLINK
d862b1be
AD
29])
30
c97011bf
AD
31AC_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])