X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi%2Fpsi.m4;h=ff112d77e963f546b8ce9402c8c706960ebcfc21;hp=dbe3defc8f4d89acb3139b18d98c9e8c899b026b;hb=5e240548ba570610ce0dbc248a2b7654a0e080fa;hpb=dbf1c3d1754adc5ee571e71395dbd297a9c3d093 diff --git a/m4/psi/psi.m4 b/m4/psi/psi.m4 index dbe3def..ff112d7 100644 --- a/m4/psi/psi.m4 +++ b/m4/psi/psi.m4 @@ -11,8 +11,6 @@ PSI_DECLS=$PHP_PSI_SRCDIR/php_psi_decls.h 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. @@ -110,12 +108,6 @@ AC_DEFUN(PSI_CONFIG_DONE, [ /* 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 @@ -186,9 +178,12 @@ dnl PSI_INCLUDES() dnl Expands to a complete list of include statements including dnl AC_INCLUDES_DEFAULT(). AC_DEFUN(PSI_INCLUDES, [#define PSI_INCLUDES -#define _GNU_SOURCE 1 -#define _POSIX_C_SOURCE 200809L -#define _XOPEN_SOURCE 700 +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif +#ifndef _REENTRANT +# define _REENTRANT +#endif AC_INCLUDES_DEFAULT() #ifdef HAVE_ERRNO_H # include @@ -214,7 +209,9 @@ AC_INCLUDES_DEFAULT() #ifdef HAVE_FCNTL_H # include #endif -#ifdef HAVE_NDBM_H +#ifdef HAVE_RELIC_H +# include +#elif HAVE_NDBM_H # include #elif HAVE_GDBM_NDBM_H # include