a2d758119090ad18f4b34aaf0ebfbf7bf1051452
[xfstests-dev.git] / configure.in
1 AC_INIT(src/xfsctl.c)
2 AC_PACKAGE_GLOBALS(xfstests)
3 AC_PACKAGE_UTILITIES(xfstests)
4
5 AC_HEADER_STDC
6     AC_CHECK_HEADERS([  assert.h                \
7                         bstring.h               \
8                         libgen.h                \
9                         dirent.h                \
10                         errno.h                 \
11                         malloc.h                \
12                         uuid.h                  \
13                         uuid/uuid.h             \
14                         sys/uuid.h              \
15                         sys/file.h              \
16                         sys/fcntl.h             \
17                         sys/syssgi.h            \
18                         sys/param.h             \
19                         sys/stat.h              \
20                         sys/statvfs.h           \
21                         sys/time.h              \
22                         sys/ioctl.h             \
23                         sys/wait.h              \
24                         sys/types.h             \
25                         strings.h               \
26                         err.h
27     ])
28     AC_CHECK_HEADERS([  sys/fs/xfs_fsops.h      \
29                         sys/fs/xfs_itable.h     \
30                         xfs/platform_defs.h     \
31     ])
32
33 AC_PACKAGE_NEED_UUIDCOMPARE
34
35 case $pkg_platform
36 in
37         irix)
38                 AC_PACKAGE_NEED_SYS_ACL_H
39                 AC_PACKAGE_NEED_ATTRIBUTES_H
40                 AC_PACKAGE_WANT_NDBM
41                 AC_PACKAGE_NEED_IRIX_LIBHANDLE
42                 have_attr_list=true
43                 AC_SUBST(have_attr_list)
44                 ;;
45         *)
46                 AC_PACKAGE_NEED_XFS_LIBXFS_H
47                 AC_PACKAGE_NEED_XFS_XQM_H
48                 AC_PACKAGE_NEED_XFSCTL_MACRO
49                 AC_PACKAGE_NEED_XFS_HANDLE_H
50
51                 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
52                 AC_PACKAGE_NEED_ATTR_XATTR_H
53                 AC_PACKAGE_NEED_ATTRIBUTES_H
54                 AC_PACKAGE_WANT_ATTRLIST_LIBATTR
55                 AC_PACKAGE_NEED_GETXATTR_LIBATTR
56
57                 AC_PACKAGE_NEED_SYS_ACL_H
58                 AC_PACKAGE_NEED_ACL_LIBACL_H
59                 AC_PACKAGE_NEED_ACLINIT_LIBACL
60
61                 AC_PACKAGE_WANT_GDBM
62                 AC_PACKAGE_WANT_AIO
63                 ;;
64 esac
65
66 AC_CONFIG_HEADER(include/config.h)
67 AC_OUTPUT(include/builddefs)