diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-07 16:08:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 16:08:21 +0200 |
commit | 128910f79a92655bba65fffa426e1d8498bdeae3 (patch) | |
tree | eb44d60d0e27445ce7c2eb2a1d960053bd2e29c4 /configure.ac | |
parent | a6802bd5f50a5c12ed5bafa4fe9ee14fede7c1e1 (diff) | |
parent | 15d7ca8eb1edec26a44d361b57e53831f5c765f7 (diff) | |
download | monitoring-plugins-128910f.tar.gz |
Merge branch 'master' into patch-chunk-nobody
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 069cc625..a294b00f 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -328,6 +328,25 @@ AS_IF([test "x$with_ldap" != "xno"], [ | |||
328 | LIBS="$_SAVEDLIBS" | 328 | LIBS="$_SAVEDLIBS" |
329 | ]) | 329 | ]) |
330 | 330 | ||
331 | |||
332 | AC_ARG_WITH([systemd], [AS_HELP_STRING([--without-systemd], [Skips systemd support])]) | ||
333 | |||
334 | dnl Check for libsystemd | ||
335 | AS_IF([test "x$with_systemd" != "xno"], [ | ||
336 | _SAVEDLIBS="$LIBS" | ||
337 | AC_CHECK_LIB(systemd,sd_get_sessions,,,-lsystemd) | ||
338 | if test "$ac_cv_lib_systemd_sd_get_sessions" = "yes"; then | ||
339 | SYSTEMDLIBS="-lsystemd" | ||
340 | SYSTEMDINCLUDE="" | ||
341 | AC_SUBST(SYSTEMDLIBS) | ||
342 | AC_SUBST(SYSTEMDINCLUDE) | ||
343 | else | ||
344 | AC_MSG_WARN([Skipping systemd support]) | ||
345 | fi | ||
346 | LIBS="$_SAVEDLIBS" | ||
347 | ]) | ||
348 | |||
349 | |||
331 | dnl Check for headers used by check_ide_smart | 350 | dnl Check for headers used by check_ide_smart |
332 | case $host in | 351 | case $host in |
333 | *linux*) | 352 | *linux*) |