]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
configure.ac, lib/: Use __has_include(<gshadow.h>) instead of HAVE_GSHADOW_H
authorAlejandro Colomar <alx@kernel.org>
Mon, 27 Jan 2025 12:23:57 +0000 (13:23 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 8 Feb 2025 05:43:55 +0000 (23:43 -0600)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
configure.ac
lib/gshadow.c
lib/gshadow_.h

index 0cb425a25b7450111599c28e5fb30092c8b8bda8..c4dde3a8b8ce89434baf9b433ad11aafd01a7d54 100644 (file)
@@ -36,9 +36,6 @@ LT_LIB_DLLOAD
 
 dnl Checks for libraries.
 
-dnl Checks for header files.
-AC_CHECK_HEADERS(gshadow.h)
-
 dnl shadow now uses the libc's shadow implementation
 AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])])
 
index d1ca70706b8289740aa6cd42b84248da0ffb1b12..2725e09ebaf5bf0d8ab5ab066304287fb0712161 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <config.h>
 
-#if defined(SHADOWGRP) && !defined(HAVE_GSHADOW_H)
+#if defined(SHADOWGRP) && !__has_include(<gshadow.h>)
 
 #ident "$Id$"
 
index be1f0f1c236c406696e02beb741f07178bdb9db2..2b38cb338e7724c2d86c4ccff9f805e1a705e408 100644 (file)
@@ -9,7 +9,7 @@
 #define SHADOW_INCLUDE_LIB_GSHADOW__H_
 
 
-#if defined(HAVE_GSHADOW_H)
+#if __has_include(<gshadow.h>)
 # include <gshadow.h>
 #else
 
@@ -41,5 +41,5 @@ int putsgent (const struct sgrp *, FILE *);
 #define        GSHADOW "/etc/gshadow"
 
 
-#endif  // !HAVE_GSHADOW_H
+#endif  // !__has_include(<gshadow.h>)
 #endif  // include guard