This commit checks for xfs.h library to use XFS_IOC_CLONE which is
defined into that library file. So, after that it is possible to use
thie macro to create reflinks.
Signed-off-by: Julio Faracco <jcfaracco(a)gmail.com>
---
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index 59d2d09611..a87ca06854 100644
--- a/configure.ac
+++ b/configure.ac
@@ -625,6 +625,13 @@ if test "$with_linux" = "yes"; then
AC_CHECK_HEADERS([linux/btrfs.h])
fi
+dnl
+dnl check for xfs dev headers required by xfs ioctl
+dnl
+if test "$with_linux" = "yes"; then
+ AC_CHECK_HEADERS([xfs/xfs.h])
+fi
+
dnl
dnl check for DEVLINK_CMD_ESWITCH_GET
dnl
--
2.17.1