4726N/Adnl A macro to check presence of systemd on the system
4726N/Adnl Libraries libsystemd-journal and libsystem-login are deprecarted
4726N/Adnl since systemd 209 and are removed in systemd 230. The library libsystemd
4726N/Adnl is replacement of libsystemd-{login,journal,daemon,id128} libraries
4726N/APKG_CHECK_EXISTS([libsystemd],
4726N/AAS_IF([test x$HAVE_LIBSYSTEMD = xyes],
4726N/A [login_lib_name=libsystemd],
4726N/A [login_lib_name=libsystemd-login])
4726N/AAS_IF([test x$HAVE_SYSTEMD = xyes],
4726N/A [AC_DEFINE_UNQUOTED([HAVE_SYSTEMD], 1, [Build with systemd support])],
4726N/A [AC_MSG_NOTICE([Build without systemd support])])
4726N/AAS_IF([test x$HAVE_SYSTEMD = xyes],
4726N/A [AC_DEFINE_UNQUOTED([HAVE_SYSTEMD_LOGIN], 1,
4726N/A [Build with $login_lib_name support])],
4726N/A [AC_MSG_NOTICE([Build without $login_lib_name support])])],
4726N/A [AC_MSG_NOTICE([Build without $login_lib_name support])])
4726N/AAS_IF([test x$HAVE_LIBSYSTEMD = xyes],
4726N/A [daemon_lib_name=libsystemd],
4726N/A [daemon_lib_name=libsystemd-daemon])
6027N/AAS_IF([test x$HAVE_SYSTEMD = xyes],
6027N/A [AC_DEFINE_UNQUOTED([HAVE_SYSTEMD_DAEMON], 1,
4726N/A [Build with $daemon_lib_name support])],
4726N/A [AC_MSG_NOTICE([Build without $daemon_lib_name support])])],
4726N/A [AC_MSG_NOTICE([Build without $daemon_lib_name support])])
4726N/Adnl A macro to check presence of journald on the system
4726N/AAC_DEFUN([AM_CHECK_JOURNALD],
4726N/A AS_IF([test x$HAVE_LIBSYSTEMD = xyes],
4726N/A [journal_lib_name=libsystemd],
4726N/A [journal_lib_name=libsystemd-journal])
4726N/A PKG_CHECK_MODULES(JOURNALD, [$journal_lib_name],
4726N/A [AC_DEFINE_UNQUOTED([WITH_JOURNALD], 1,
6027N/A dnl Some older versions of pkg-config might not set these automatically
4726N/A dnl while setting CFLAGS and LIBS manually twice doesn't hurt.
4726N/A AC_SUBST([JOURNALD_CFLAGS])