]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
configure.ac: Add dependency on devmapper for blkmapd
authorJim Rees <rees@umich.edu>
Mon, 26 Sep 2011 19:21:16 +0000 (15:21 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 26 Sep 2011 19:22:01 +0000 (15:22 -0400)
Signed-off-by: Steve Dickson <steved@redhat.com>
configure.ac

index 80fb39d3f42e5c89ead0a4f744db9aff509dde20..f101b861266d4fc434981ad36a81dd1edf195b2e 100644 (file)
@@ -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"])