common/log: fix *_dump_log routines for ext4
[xfstests-dev.git] / configure.ac
1 AC_INIT([xfstests], [1.1.1])
2 AC_CONFIG_MACRO_DIR([m4])
3 LT_INIT
4 AC_CONFIG_SRCDIR([src/xfsctl.c])
5 AC_PACKAGE_GLOBALS(xfstests)
6 AC_PACKAGE_UTILITIES(xfstests)
7
8 AC_HEADER_STDC
9     AC_CHECK_HEADERS([  assert.h                \
10                         bstring.h               \
11                         libgen.h                \
12                         dirent.h                \
13                         errno.h                 \
14                         malloc.h                \
15                         uuid.h                  \
16                         uuid/uuid.h             \
17                         sys/uuid.h              \
18                         sys/file.h              \
19                         sys/fcntl.h             \
20                         sys/syssgi.h            \
21                         sys/param.h             \
22                         sys/stat.h              \
23                         sys/statvfs.h           \
24                         sys/time.h              \
25                         sys/ioctl.h             \
26                         sys/wait.h              \
27                         sys/types.h             \
28                         strings.h               \
29                         err.h                   \
30                         linux/falloc.h          \
31                         sys/fs/xfs_fsops.h      \
32                         sys/fs/xfs_itable.h     \
33                         xfs/platform_defs.h     \
34                         btrfs/ioctl.h           \
35                         cifs/ioctl.h            \
36                         sys/mman.h              \
37     ])
38
39 AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
40 #define _GNU_SOURCE
41 #include <xfs/libxfs.h>])
42
43 AC_PACKAGE_NEED_UUIDCOMPARE
44
45 AC_MULTILIB($enable_lib64)
46 AC_PACKAGE_NEED_XFS_XFS_H
47 AC_PACKAGE_WANT_LIBXFS_H
48 AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
49 AC_PACKAGE_NEED_XFS_XQM_H
50 AC_PACKAGE_NEED_XFSCTL_MACRO
51 AC_PACKAGE_NEED_XFS_HANDLE_H
52 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
53
54 AC_PACKAGE_NEED_SYS_ACL_H
55 AC_PACKAGE_NEED_ACL_LIBACL_H
56 AC_PACKAGE_NEED_ACLINIT_LIBACL
57
58 AC_PACKAGE_WANT_GDBM
59 AC_PACKAGE_WANT_AIO
60 AC_PACKAGE_WANT_URING
61 AC_PACKAGE_WANT_LIBCAP
62 AC_PACKAGE_WANT_LINUX_FIEMAP_H
63 AC_PACKAGE_WANT_FALLOCATE
64 AC_PACKAGE_WANT_OPEN_BY_HANDLE_AT
65 AC_PACKAGE_WANT_LINUX_PRCTL_H
66 AC_PACKAGE_WANT_LINUX_FS_H
67 AC_PACKAGE_WANT_LIBBTRFSUTIL
68
69 AC_HAVE_COPY_FILE_RANGE
70 AC_CHECK_FUNCS([renameat2])
71 AC_CHECK_FUNCS([reallocarray])
72 AC_CHECK_TYPES([struct mount_attr], [], [], [[#include <linux/mount.h>]])
73 AC_CHECK_TYPES([struct btrfs_qgroup_limit], [], [], [[
74 #include <stddef.h>
75 #include <linux/btrfs.h>
76 ]])
77 AC_CHECK_TYPES([struct btrfs_qgroup_inherit], [], [], [[
78 #include <stddef.h>
79 #include <linux/btrfs.h>
80 ]])
81 AC_CHECK_TYPES([struct btrfs_ioctl_vol_args], [], [], [[
82 #include <stddef.h>
83 #include <linux/btrfs.h>
84 ]])
85 AC_CHECK_TYPES([struct btrfs_ioctl_vol_args_v2], [], [], [[
86 #include <stddef.h>
87 #include <linux/btrfs.h>
88 ]])
89 AC_CHECK_TYPES([struct btrfs_ioctl_ino_lookup_args], [], [], [[
90 #include <stddef.h>
91 #include <linux/btrfs.h>
92 ]])
93 AC_CHECK_TYPES([struct btrfs_ioctl_ino_lookup_user_args], [], [], [[
94 #include <stddef.h>
95 #include <linux/btrfs.h>
96 ]])
97 AC_CHECK_TYPES([struct btrfs_ioctl_get_subvol_rootref_args], [], [], [[
98 #include <stddef.h>
99 #include <linux/btrfs.h>
100 ]])
101 AC_CHECK_HEADERS([linux/btrfs.h linux/btrfs_tree.h])
102 AC_CHECK_MEMBERS([struct btrfs_ioctl_vol_args_v2.subvolid], [], [], [[
103 #include <stddef.h>
104 #include <linux/btrfs.h>
105 ]])
106
107 AC_CONFIG_HEADER(include/config.h)
108 AC_CONFIG_FILES([include/builddefs])
109 AC_OUTPUT