+2024-05-21 Bruno Haible <bruno@clisp.org>
+
+ Fix "'gl_CHECK_HEADER_SYS_CDEFS_H' was expanded before it was required".
+ * m4/sys_cdefs_h.m4 (gl_CHECK_HEADER_SYS_CDEFS_H): Define through
+ AC_DEFUN_ONCE.
+
2024-05-21 Bruno Haible <bruno@clisp.org>
access, euidaccess tests: Avoid test failure for root user on Solaris.
# sys_cdefs_h.m4 - Is <sys/cdefs.h> compatible enough with glibc?
-# serial 1
+# serial 2
dnl Copyright 2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Written by Paul Eggert.
-AC_DEFUN([gl_CHECK_HEADER_SYS_CDEFS_H],
+AC_DEFUN_ONCE([gl_CHECK_HEADER_SYS_CDEFS_H],
[AC_CACHE_CHECK([for glibc-compatible sys/cdefs.h],
[gl_cv_header_sys_cdefs_h],
[AC_COMPILE_IFELSE(