]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add USE_SYSTEMD
authorKarel Zak <kzak@redhat.com>
Mon, 13 Dec 2021 12:13:05 +0000 (13:13 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Dec 2021 12:13:05 +0000 (13:13 +0100)
Add info that systemd support is expected for tools where we do not
link with any systemd libs, but we want to support some systemd stuff.

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 2e7e36b034e296042b55d8a2e26d6c435caa2e44..7e4b3ef74a5b77423c4f00c65deb431e4e1fa845 100644 (file)
@@ -2358,6 +2358,7 @@ AS_IF([test "x$with_systemd" != xno], [
       [AC_MSG_ERROR([systemd expected but libsystemd not found])],
     [*:yes],
        AC_DEFINE([HAVE_LIBSYSTEMD], [1], [Define if libsystemd is available])
+       AC_DEFINE([USE_SYSTEMD], [1], [Define if systemd support is wanted ])
   )
 ])
 AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$have_systemd" = xyes])