fstests: remove libattr dependencies
[xfstests-dev.git] / configure.ac
index 2f95c4c..e577128 100644 (file)
@@ -1,5 +1,6 @@
 AC_INIT([xfstests], [1.1.1])
-AC_PREREQ(2.50)
+AC_CONFIG_MACRO_DIR([m4])
+LT_INIT
 AC_CONFIG_SRCDIR([src/xfsctl.c])
 AC_PACKAGE_GLOBALS(xfstests)
 AC_PACKAGE_UTILITIES(xfstests)
@@ -26,55 +27,48 @@ AC_HEADER_STDC
                        sys/types.h             \
                        strings.h               \
                        err.h                   \
-                       linux/falloc.h
-    ])
-    AC_CHECK_HEADERS([ sys/fs/xfs_fsops.h      \
+                       linux/falloc.h          \
+                       sys/fs/xfs_fsops.h      \
                        sys/fs/xfs_itable.h     \
                        xfs/platform_defs.h     \
                        btrfs/ioctl.h           \
+                       cifs/ioctl.h            \
+                       sys/mman.h              \
     ])
 
+AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
+#define _GNU_SOURCE
+#include <xfs/libxfs.h>])
+
 AC_PACKAGE_NEED_UUIDCOMPARE
 
-case $pkg_platform
-in
-       irix)
-               AC_PACKAGE_NEED_SYS_ACL_H
-               AC_PACKAGE_NEED_ATTRIBUTES_H
-               AC_PACKAGE_WANT_NDBM
-               AC_PACKAGE_NEED_IRIX_LIBHANDLE
-               have_attr_list=true
-               AC_SUBST(have_attr_list)
-               ;;
-       *)
-               AC_MULTILIB($enable_lib64)
-               AC_PACKAGE_NEED_XFS_XFS_H
-               AC_PACKAGE_WANT_LIBXFS_H
-               AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
-               AC_PACKAGE_NEED_XFS_XQM_H
-               AC_PACKAGE_NEED_XFSCTL_MACRO
-               AC_PACKAGE_NEED_XFS_HANDLE_H
+AC_MULTILIB($enable_lib64)
+AC_PACKAGE_NEED_XFS_XFS_H
+AC_PACKAGE_WANT_LIBXFS_H
+AC_PACKAGE_WANT_XLOG_ASSIGN_LSN
+AC_PACKAGE_NEED_XFS_XQM_H
+AC_PACKAGE_NEED_XFSCTL_MACRO
+AC_PACKAGE_NEED_XFS_HANDLE_H
+AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
+
+AC_PACKAGE_NEED_SYS_ACL_H
+AC_PACKAGE_NEED_ACL_LIBACL_H
+AC_PACKAGE_NEED_ACLINIT_LIBACL
 
-               AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE
-               AC_PACKAGE_NEED_ATTR_XATTR_H
-               AC_PACKAGE_NEED_ATTRIBUTES_H
-               AC_PACKAGE_WANT_ATTRLIST_LIBATTR
-               AC_PACKAGE_NEED_GETXATTR_LIBATTR
+AC_PACKAGE_WANT_GDBM
+AC_PACKAGE_WANT_AIO
+AC_PACKAGE_WANT_URING
+AC_PACKAGE_WANT_DMAPI
+AC_PACKAGE_WANT_LINUX_FIEMAP_H
+AC_PACKAGE_WANT_FALLOCATE
+AC_PACKAGE_WANT_OPEN_BY_HANDLE_AT
+AC_PACKAGE_WANT_LINUX_PRCTL_H
+AC_PACKAGE_WANT_LINUX_FS_H
+AC_PACKAGE_WANT_LIBBTRFSUTIL
 
-               AC_PACKAGE_NEED_SYS_ACL_H
-               AC_PACKAGE_NEED_ACL_LIBACL_H
-               AC_PACKAGE_NEED_ACLINIT_LIBACL
+AC_HAVE_COPY_FILE_RANGE
 
-               AC_PACKAGE_WANT_GDBM
-               AC_PACKAGE_WANT_AIO
-               AC_PACKAGE_WANT_DMAPI
-               AC_PACKAGE_WANT_LINUX_FIEMAP_H
-               AC_PACKAGE_WANT_FALLOCATE
-               AC_PACKAGE_WANT_LINUX_PRCTL_H
-               AC_PACKAGE_WANT_LINUX_FS_H
-               AC_PACKAGE_WANT_SSL
-               ;;
-esac
+AC_CHECK_FUNCS([renameat2])
 
 AC_CONFIG_HEADER(include/config.h)
 AC_CONFIG_FILES([include/builddefs])