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

[Xen-devel] [PATCH for 4.6] configure: don't silently disable systemd support



Originally when user runs ./configure --enable-systemd and systemd
development library is not available the build system silently disables
systemd support. This is not in line with normal expectation.

Instead, configure should error out when user has asked for systemd
support but development libraries can't be found.

Reported-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
Please rerun ./autogen.sh.
---
 m4/systemd.m4 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/m4/systemd.m4 b/m4/systemd.m4
index 8284993..84508a1 100644
--- a/m4/systemd.m4
+++ b/m4/systemd.m4
@@ -85,7 +85,11 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [
                AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and enabled])
                        systemd=y
                        AX_CHECK_SYSTEMD_LIBS()
-           ],[systemd=n])
+           ],[
+               AS_IF([test "x$enable_systemd" != "x"],
+                       [AC_MSG_ERROR([Unable to find systemd development 
library])],
+                       [systemd=n])
+           ])
        ],[systemd=n])
 ])
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.