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>
master
David Sterba 2016-06-24 14:04:04 +02:00
parent af62507bed
commit 6a106862df
1 changed files with 2 additions and 0 deletions

View File

@ -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