From: Evgeny Grin (Karlson2k) Date: Thu, 10 Jul 2025 16:38:48 +0000 (+0200) Subject: configure.ac: Add check for value given for --enable-logind X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27437f1f7a914c3052ce55189bda36f7ee97d073;p=thirdparty%2Fshadow.git configure.ac: Add check for value given for --enable-logind Fail with error if wrong value is provided. Signed-off-by: Evgeny Grin (Karlson2k) --- diff --git a/configure.ac b/configure.ac index 72f96d2c5..b64c51d0f 100644 --- a/configure.ac +++ b/configure.ac @@ -154,7 +154,13 @@ AC_ARG_ENABLE([lastlog], AC_ARG_ENABLE([logind], [AS_HELP_STRING([--enable-logind], [enable logind @<:@default=yes if found@:>@])], - [enable_logind="${enableval}"], + [ + AS_CASE([${enableval}], + [yes],[], + [no],[], + [AC_MSG_ERROR([bad parameter value for --enable-logind=${enableval}])] + ) + ], [enable_logind="yes"] )