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

[lvm-devel] [PATCH 4/4] Show warning message when libudev not found and we're using --enable-udev_sync



We use libudev to get the udev state and if it's not running, we just disable the udev sync
code. If the library function we need is not found, we just assume that udev is not running.
But that could be misleading if we don't spot the "no" in the configure process. So it's
better to show a warning to emphasize it a little...

Peter

diff --git a/configure.in b/configure.in
index 8db301c..68edb5f 100644
--- a/configure.in
+++ b/configure.in
@@ -669,6 +669,8 @@ if test x$UDEV_SYNC = xyes; then
 			AC_DEFINE([HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE], 1,
 			  [Define to 1 if libudev's udev_queue_get_udev_is_active function is available.])
 			LIBS="-ludev $LIBS"
+		else
+			AC_MSG_WARN(It won't be possible to get udev state. We will assume that udev is not running.)
 		fi
 fi
 


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