fstests: update autoconf rules to define _GNU_SOURCE where needed
[xfstests-dev.git] / configure.ac
index 8e80a3829979c57a88f52e170bd540f6497d4509..fa48d2f806e8ec2c97af74f6f50ab73fb467dc11 100644 (file)
@@ -1,4 +1,4 @@
-AC_INIT([xfstests], [1.1.0])
+AC_INIT([xfstests], [1.1.1])
 AC_PREREQ(2.50)
 AC_CONFIG_SRCDIR([src/xfsctl.c])
 AC_PACKAGE_GLOBALS(xfstests)
@@ -25,13 +25,19 @@ AC_HEADER_STDC
                        sys/wait.h              \
                        sys/types.h             \
                        strings.h               \
-                       err.h
-    ])
-    AC_CHECK_HEADERS([ sys/fs/xfs_fsops.h      \
+                       err.h                   \
+                       linux/falloc.h          \
+                       sys/fs/xfs_fsops.h      \
                        sys/fs/xfs_itable.h     \
                        xfs/platform_defs.h     \
+                       btrfs/ioctl.h           \
+                       cifs/ioctl.h            \
     ])
 
+AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
+#define _GNU_SOURCE
+#include <xfs/libxfs.h>])
+
 AC_PACKAGE_NEED_UUIDCOMPARE
 
 case $pkg_platform
@@ -70,9 +76,12 @@ in
                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])
 AC_OUTPUT