PSI_VA_DECLS=$PHP_PSI_SRCDIR/php_psi_va_decls.h
PSI_FN_DECLS=$PHP_PSI_SRCDIR/php_psi_fn_decls.h
-PSI_CONFIG_APPEND=
-
dnl PSI_CONFIG_INIT()
dnl Creates stubs of the headers with pre-defined types etc.
dnl These headers are included by src/context.c.
/* generated by configure */
#ifndef _PSI_STDINC
# define _PSI_STDINC
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-#ifndef _XOPEN_SOURCE
-# define _XOPEN_SOURCE
-#endif
PSI_INCLUDES
#endif
EOF
AS_TR_SH([psi_config_posix_]$1)=false
case "$PHP_PSI_POSIX" in
yes|all)
- AS_TR_SH([psi_config_posix_]$1)=true
+ AS_TR_SH([psi_config_posix_]$1)=true
;;
*)
if expr "$PHP_PSI_POSIX" : '\b$1\b' >/dev/null; then
dnl PSI_INCLUDES()
dnl Expands to a complete list of include statements including
dnl AC_INCLUDES_DEFAULT().
-AC_DEFUN(PSI_INCLUDES, [AC_INCLUDES_DEFAULT()
+AC_DEFUN(PSI_INCLUDES, [#define PSI_INCLUDES
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
+#ifndef _REENTRANT
+# define _REENTRANT
+#endif
+AC_INCLUDES_DEFAULT()
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
-#ifdef HAVE_NDBM_H
+#ifdef HAVE_RELIC_H
+# include <relic.h>
+#elif HAVE_NDBM_H
# include <ndbm.h>
+#elif HAVE_GDBM_NDBM_H
+# include <gdbm-ndbm.h>
#endif
#ifdef HAVE_NETDB_H
# include <netdb.h>