From: Jim Rees Date: Mon, 26 Sep 2011 19:21:16 +0000 (-0400) Subject: configure.ac: Add dependency on devmapper for blkmapd X-Git-Tag: nfs-utils-1-2-6-rc1~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fef991230b6a4070e0793adf03d42514639111d3;p=nfs-utils.git configure.ac: Add dependency on devmapper for blkmapd Signed-off-by: Steve Dickson --- diff --git a/configure.ac b/configure.ac index 80fb39d..f101b86 100644 --- a/configure.ac +++ b/configure.ac @@ -265,6 +265,12 @@ if test "$enable_nfsv4" = yes; then AC_RPCSEC_VERSION fi fi + +if test "$enable_nfsv41" = yes; then + AC_CHECK_LIB([devmapper], [dm_task_create], [LIBDEVMAPPER="-ldevmapper"], AC_MSG_ERROR([libdevmapper needed])) + AC_CHECK_HEADER(libdevmapper.h, , AC_MSG_ERROR([Cannot find devmapper header file libdevmapper.h])) +fi + dnl enable nfsidmap when its support by libnfsidmap AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"])