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