[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH 1/1] configure.in: fix --with-clvmd=all when no backends are available



Initialize NEWCLVMD var properly so that clvmd is not built in case
there are no backends available.

Also report to the user if we were unable to detect any backend.

Signed-off-by: Fabio M. Di Nitto <fdinitto redhat com>
---
:100644 100644 cf74d07... 55f66d8... M	configure.in
 configure.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure.in b/configure.in
index cf74d07..55f66d8 100644
--- a/configure.in
+++ b/configure.in
@@ -522,6 +522,7 @@ fi
 dnl -- If we are autodetecting, we need to re-create
 dnl -- the depedencies checks and set a proper CLVMD.
 if test x$CLVMD = xall; then
+	NEWCLVMD=none
 	if test x$HAVE_CCS = xyes && \
 	   test x$HAVE_GULM = xyes; then
 		AC_MSG_RESULT([Enabling clvmd gulm backend])
@@ -547,6 +548,9 @@ if test x$CLVMD = xall; then
 		NEWCLVMD="$NEWCLVMD,openais"
 	fi
 	CLVMD="$NEWCLVMD"
+	if test x$CLVMD = xnone; then
+		AC_MSG_RESULT([Disabling clvmd build. No backends detected.])
+	fi
 fi
 
 ################################################################################
-- 
1.5.4.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]