]> granicus.if.org Git - procps-ng/commitdiff
build-sys: find split systemd libraries
authorChristian Hermann <mail@hermannch.dev>
Wed, 14 Apr 2021 07:42:53 +0000 (09:42 +0200)
committerCraig Small <csmall@dropbear.xyz>
Sat, 24 Apr 2021 01:57:32 +0000 (11:57 +1000)
With 4e7f4237 and 5e73c832, systemd library detection through pkg-config
was changed to unconditionally look for unified libsystemd.

This adds a fallback to match the previous behavior and find the split
libs as well.

References:
 procps-ng/procps!128

Signed-off-by: Craig Small <csmall@dropbear.xyz>
configure.ac

index 332a7fc0ceeac7bc46535e870badfb2424ac8d9a..88831b31f35e750829e6d7a9edf901d574897028 100644 (file)
@@ -226,7 +226,9 @@ AC_ARG_WITH([systemd],
   [], [with_systemd=no]
 )
 AS_IF([test "x$with_systemd" != "xno"], [
-  PKG_CHECK_MODULES([SYSTEMD], [libsystemd])
+  PKG_CHECK_MODULES([SYSTEMD], [libsystemd],,
+    [PKG_CHECK_MODULES([SYSTEMD], [libsystemd-login])]
+  )
   AC_DEFINE(WITH_SYSTEMD, 1, [enable systemd support])
 ])
 AM_CONDITIONAL([WITH_SYSTEMD], [test x$with_systemd != xno])