From: Iker Pedrosa Date: Mon, 17 Jul 2023 13:04:19 +0000 (+0200) Subject: configure: fix lastlog check X-Git-Tag: 4.14.0-rc1~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f4dc321c3822742cbb19c7656e56e1c0651ba9e;p=thirdparty%2Fshadow.git configure: fix lastlog check Fixes: 1bdcfa8d3710bf0a3f180b590017df096d346ade ("lastlog: stop building by default") Signed-off-by: Iker Pedrosa --- diff --git a/configure.ac b/configure.ac index 5bd837e99..b32f15139 100644 --- a/configure.ac +++ b/configure.ac @@ -364,7 +364,7 @@ if test "$enable_subids" != "no"; then fi AM_CONDITIONAL(ENABLE_SUBIDS, test "x$enable_subids" != "xno") -if test "x$enable_lastlog" = "yes" && test "$ac_cv_header_lastlog_h" = "yes"; then +if test "$enable_lastlog" = "yes" && test "$ac_cv_header_lastlog_h" = "yes"; then AC_CACHE_CHECK(for ll_host in struct lastlog, ac_cv_struct_lastlog_ll_host, AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], @@ -378,6 +378,7 @@ if test "x$enable_lastlog" = "yes" && test "$ac_cv_header_lastlog_h" = "yes"; th if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then AC_DEFINE(HAVE_LL_HOST, 1, [Define if struct lastlog has ll_host]) + AC_DEFINE(ENABLE_LASTLOG, 1, [Define to support lastlog.]) enable_lastlog="yes" else AC_MSG_ERROR([Cannot enable support for lastlog on systems where the data structures aren't available])