From 6f4dc321c3822742cbb19c7656e56e1c0651ba9e Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Mon, 17 Jul 2023 15:04:19 +0200 Subject: [PATCH] configure: fix lastlog check Fixes: 1bdcfa8d3710bf0a3f180b590017df096d346ade ("lastlog: stop building by default") Signed-off-by: Iker Pedrosa --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]) -- 2.47.2