From: Florian Weimer Date: Mon, 21 Nov 2022 10:52:45 +0000 (+0100) Subject: Fix HAVE_SHADOWGRP configure check X-Git-Tag: 4.14.0-rc1~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a281f241b592aec636d1b93a99e764499d68c7ef;p=thirdparty%2Fshadow.git Fix HAVE_SHADOWGRP configure check The missing #include causes the configure check to fail spuriously, resulting in HAVE_SHADOWGRP not being defined even on systems that actually have sgetsgent (such as current glibc). --- diff --git a/configure.ac b/configure.ac index 924254a0c..6c7d98399 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,10 @@ if test "$ac_cv_header_shadow_h" = "yes"; then ac_cv_libc_shadowgrp, AC_RUN_IFELSE([AC_LANG_SOURCE([ #include + #ifdef HAVE_GSHADOW_H + #include + #endif + int main() { struct sgrp *sg = sgetsgent("test:x::");