From: Evgeny Grin (Karlson2k) Date: Thu, 10 Jul 2025 16:38:48 +0000 (+0200) Subject: configure.ac: Improve formatting for libsystemd check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=048083ab924be18467a734d3cd71f37673c49651;p=thirdparty%2Fshadow.git configure.ac: Improve formatting for libsystemd check Improve formatting and readability of single configure check. Also remove unneeded overquoting of "LIBSYSTEMD=-lsystemd". Signed-off-by: Evgeny Grin (Karlson2k) --- diff --git a/configure.ac b/configure.ac index b64c51d0f..ea6a26370 100644 --- a/configure.ac +++ b/configure.ac @@ -346,10 +346,14 @@ AM_CONDITIONAL([ENABLE_LASTLOG], [test "x$enable_lastlog" != "xno"]) AC_SUBST([LIBSYSTEMD]) if test "X$enable_logind" = "Xyes"; then AC_CHECK_LIB([systemd], [sd_session_get_remote_host], - [enable_logind="yes"; [LIBSYSTEMD=-lsystemd]; - AC_DEFINE([ENABLE_LOGIND], [1], - [Define to manage session support with logind.])], - [enable_logind="no"]) + [ + enable_logind="yes" + LIBSYSTEMD=-lsystemd + AC_DEFINE([ENABLE_LOGIND], [1], [Define to manage session support with logind.]) + ],[ + enable_logind="no" + ] + ) fi AM_CONDITIONAL([ENABLE_LOGIND], [test "x$enable_logind" != "xno"])