Check for libdevmapper header

This commit is contained in:
Grégoire Sutre 2011-01-08 17:01:38 +01:00
parent e7121b6932
commit 53798c4bd1
2 changed files with 10 additions and 0 deletions

View file

@ -863,6 +863,12 @@ if test x"$enable_device_mapper" = xno ; then
device_mapper_excuse="explicitly disabled"
fi
if test x"$device_mapper_excuse" = x ; then
# Check for device-mapper header.
AC_CHECK_HEADER([libdevmapper.h], [],
[device_mapper_excuse="need libdevmapper header"])
fi
if test x"$device_mapper_excuse" = x ; then
# Check for device-mapper library.
AC_CHECK_LIB([devmapper], [dm_task_create], [],