Skip to content

Commit 83807d4

Browse files
committed
Enable systemd support by default on supported build systems
1 parent b7afd38 commit 83807d4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

configure.ac

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,16 +751,17 @@ AC_ARG_ENABLE(
751751
# systemd support
752752
AC_ARG_ENABLE(
753753
[systemd],
754-
[AS_HELP_STRING([--enable-systemd], [Enable systemd support])])
754+
[AS_HELP_STRING([--disable-systemd], [Disable systemd support])])
755755

756756
have_libsystemd="no"
757-
AS_IF([test "x$enable_systemd" = "xyes"],
757+
AS_IF([test "x$enable_systemd" != "xno"],
758758
[PKG_CHECK_MODULES([libsystemd], [libsystemd >= 38], [have_libsystemd="yes"])
759759
AC_CHECK_HEADER([systemd/sd-daemon.h], [],
760760
[have_libsystemd="no"
761-
AC_MSG_ERROR([can't find systemd/sd-daemon.h necessary for systemd support])])
761+
AC_MSG_WARN([disabling systemd support: can't find systemd/sd-daemon.h])])
762762
AC_CHECK_FUNC([strerror_r], [],
763-
[AC_MSG_ERROR([can't find strerror_r necessary for systemd support])])])
763+
[have_libsystemd="no"
764+
AC_MSG_WARN([disabling systemd support: can't find strerror_r])])])
764765

765766
AS_IF([test "x$have_libsystemd" = xyes],
766767
[AC_DEFINE([HAVE_LIBSYSTEMD], [1],

0 commit comments

Comments
 (0)