]> git.ipfire.org Git - thirdparty/shadow.git/commit
configure.ac: fix detection of secure_getenv
authorMike Gilbert <floppym@gentoo.org>
Mon, 16 Feb 2026 20:36:37 +0000 (15:36 -0500)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Tue, 17 Feb 2026 01:26:24 +0000 (02:26 +0100)
commiteaf5b83a5b36f05ca67c85e32f940c816c5d561a
treebd272cab1c2fdd34db38bf907bd57746819f1c73
parentee8385d78197b5e60fc80a3519bc67b42795e903
configure.ac: fix detection of secure_getenv

lib/defines.h was looking for HAVE_SECURE_GETENV instead of of
HAS_SECURE_GETENV as defined in configure. This resulted in
shadow_getenv always being defined to getenv.

AC_CHECK_FUNC is linker test; it does not check for declarations.
Replace this with AC_CHECK_DECLS/HAVE_DECL_SECURE_GETENV.

Fixes: 3d921155e0a7 (2019-03-31; "gettime: Use secure_getenv over getenv.")
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
configure.ac
lib/defines.h