build: Stop relying on OpenSSL
[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 case $pkg_platform
46 in
47         irix)
48                 AC_PACKAGE_NEED_SYS_ACL_H
49                 AC_PACKAGE_NEED_ATTRIBUTES_H
50                 AC_PACKAGE_WANT_NDBM
51                 AC_PACKAGE_NEED_IRIX_LIBHANDLE
52                 have_attr_list=true
53                 AC_SUBST(have_attr_list)
54                 ;;
55         *)
56                 AC_MULTILIB($enable_lib64)
57                 AC_PACKAGE_NEED_XFS_XFS_H
58                 AC_PACKAGE_WANT_LIBXFS_H
59                 AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
60                 AC_PACKAGE_NEED_XFS_XQM_H
61                 AC_PACKAGE_NEED_XFSCTL_MACRO
62                 AC_PACKAGE_NEED_XFS_HANDLE_H
63
64                 AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
65                 AC_PACKAGE_NEED_ATTR_XATTR_H
66                 AC_PACKAGE_NEED_ATTRIBUTES_H
67                 AC_PACKAGE_WANT_ATTRLIST_LIBATTR
68                 AC_PACKAGE_NEED_GETXATTR_LIBATTR
69
70                 AC_PACKAGE_NEED_SYS_ACL_H
71                 AC_PACKAGE_NEED_ACL_LIBACL_H
72                 AC_PACKAGE_NEED_ACLINIT_LIBACL
73
74                 AC_PACKAGE_WANT_GDBM
75                 AC_PACKAGE_WANT_AIO
76                 AC_PACKAGE_WANT_DMAPI
77                 AC_PACKAGE_WANT_LINUX_FIEMAP_H
78                 AC_PACKAGE_WANT_FALLOCATE
79                 AC_PACKAGE_WANT_OPEN_BY_HANDLE_AT
80                 AC_PACKAGE_WANT_LINUX_PRCTL_H
81                 AC_PACKAGE_WANT_LINUX_FS_H
82                 ;;
83 esac
84
85 AC_CHECK_FUNCS([renameat2])
86
87 AC_CONFIG_HEADER(include/config.h)
88 AC_CONFIG_FILES([include/builddefs])
89 AC_OUTPUT