configure: check for blkid/blkid.h header

The check for the presence of blkid/blkid.h was missing.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
This commit is contained in:
Ilya Dryomov 2014-04-17 19:03:24 +04:00
parent 9004049094
commit 070a8208af

View File

@ -134,8 +134,13 @@ ACX_PTHREAD
AC_CHECK_LIB([uuid], [uuid_parse], [true], AC_MSG_FAILURE([libuuid not found]))
# rbd {map,unmap,showmapped} dependencies, Linux only
if test x"$linux" = x"yes"; then
AC_CHECK_LIB([blkid], [blkid_devno_to_wholedisk], [true], AC_MSG_FAILURE([libblkid not found]))
# libblkid
AC_CHECK_HEADER([blkid/blkid.h], [],
AC_MSG_ERROR([blkid/blkid.h not found (libblkid-dev, libblkid-devel)]))
AC_CHECK_LIB([blkid], [blkid_devno_to_wholedisk], [],
AC_MSG_FAILURE([libblkid not found]))
fi
#