Commit 7d9c7f6c authored by Ondřej Surý's avatar Ondřej Surý

Search for unified libsystemd first then for older libsystemd-journal and...

Search for unified libsystemd first then for older libsystemd-journal and libsystemd-daemon (Initial patch by Cameron Norman)
parent 22fc86da
......@@ -212,8 +212,10 @@ AS_IF([test "$enable_daemon" = "yes"],[
AS_IF([test "$enable_systemd" != "no"],[
AS_CASE([$enable_systemd],
[auto],[PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal], [enable_systemd=yes], [enable_systemd=no])],
[yes],[PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal])],
[auto],[PKG_CHECK_MODULES([systemd], [libsystemd], [enable_systemd=yes], [
PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal], [enable_systemd=yes], [enable_systemd=no])])],
[yes],[PKG_CHECK_MODULES([systemd], [libsystemd], [], [
PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal])])],
[*],[AC_MSG_ERROR([Invalid value of --enable-systemd.])])
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment