summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-05-20 14:10:49 -0500
committerDavid Teigland <teigland@redhat.com>2015-05-28 16:34:36 -0500
commitca5f9585608f51ae6b7f3a33691ef85e0f50acb0 (patch)
tree4b069b9a5cfa6e013e0e4357241510d44a4476ca
parent132ee7743bca3417848c3ac605df74647156bdeb (diff)
downloadlvm2-ca5f9585608f51ae6b7f3a33691ef85e0f50acb0.tar.gz
configure: use pc checks for lvmlockd
-rw-r--r--configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 27b2f631b..5b76c6910 100644
--- a/configure.in
+++ b/configure.in
@@ -1170,6 +1170,13 @@ AC_DEFINE_UNQUOTED(DEFAULT_USE_LVMLOCKD, [$DEFAULT_USE_LVMLOCKD],
[Use lvmlockd by default.])
################################################################################
+dnl -- Look for sanlock and dlm libraries
+if test "$BUILD_LVMLOCKD" = yes; then
+ PKG_CHECK_MODULES(LOCKD_SANLOCK, libsanlock_client, [HAVE_LOCKD_SANLOCK=yes], $bailout)
+ PKG_CHECK_MODULES(LOCKD_DLM, libdlm, [HAVE_LOCKD_DLM=yes], $bailout)
+fi
+
+################################################################################
dnl -- Enable blkid wiping functionality
AC_MSG_CHECKING(whether to enable libblkid detection of signatures when wiping)