Commit 3b6ab28e authored by Thomas Bechtold's avatar Thomas Bechtold

configure: don't enable systemd journal if systemd is disabled

it's possible to fail the have_systemd check because systemd is too old,
but still pass the have_journald check because journald is available.
This commit ensures that doesn't happen because journald support depends
on systemd support.
parent 9177b8ac
......@@ -954,11 +954,16 @@ PKG_CHECK_MODULES(JOURNALD,
[have_journald=yes], [have_journald=no])
if test "x$enable_systemd_journal" = "xauto" ; then
if test x$have_journald = xno ; then
use_journald=no
if test x$use_systemd = xyes ; then
if test x$have_journald = xno ; then
use_journald=no
else
use_journald=yes
fi
else
use_journald=yes
use_journald=no
fi
else
use_journald="$enable_systemd_journal"
fi
......
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