diff options
author | David Sterba <dsterba@suse.com> | 2016-06-24 14:04:04 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-06-24 14:05:44 +0200 |
commit | 6a106862dfd0dd25047ede38765a9a8b0b0348a7 (patch) | |
tree | 6a785ec5be8353c0eb42615798afce758e901e07 | |
parent | af62507bed34b2f8ddbd6d8c77937f1e00520d81 (diff) |
btrfs-progs: build: check if FIEMAP_EXTENT_SHARED is defined
Detect the macro at configure time rather than during compilation.
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c79472cc..901d4347 100644 --- a/configure.ac +++ b/configure.ac @@ -113,6 +113,8 @@ if test "x$enable_convert" = xyes; then PKG_CHECK_MODULES(COM_ERR, [com_err]) fi +AX_CHECK_DEFINE([linux/fiemap.h], [FIEMAP_EXTENT_SHARED], [], + [AC_MSG_ERROR([no definition of FIEMAP_EXTENT_SHARED found])]) dnl Define <NAME>_LIBS= and <NAME>_CFLAGS= by pkg-config dnl |