[PATCH] enable build support without systemd compatibility libraries

Umut Tezduyar Lindskog umut at tezduyar.com
Tue Sep 2 00:02:31 PDT 2014


systemd 209 merged all the libraries to libsystemd. Old
libraries can still be enabled with --enable-compat-libs
switch in systemd but this increases the binary size.

Implement a fallback library check in case compat libraries
dont exist.
---
 configure.ac |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index cbaf874..9bee914 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1149,7 +1149,10 @@ else
     PKG_CHECK_MODULES(SYSTEMD,
         [libsystemd-login >= 32, libsystemd-daemon >= 32, libsystemd-journal >= 32],
         have_systemd=yes,
-        have_systemd=no)
+        PKG_CHECK_MODULES(SYSTEMD,
+            [libsystemd >= 209],
+            have_systemd=yes,
+            have_systemd=no))
 fi
 
 if test x$have_systemd = xyes; then
-- 
1.7.10.4



More information about the dbus mailing list