X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=config.m4;h=fa209641b1acb375ce910bdaac7153cc13df8541;hp=98c064876b0a384ace46dbf8b52a704b4b9b4850;hb=9c6a90318dc5e20b73820d7c2bb8eb3b30888cb3;hpb=5e240548ba570610ce0dbc248a2b7654a0e080fa diff --git a/config.m4 b/config.m4 index 98c0648..fa20964 100644 --- a/config.m4 +++ b/config.m4 @@ -48,7 +48,7 @@ PHP_ARG_ENABLE(psi, whether to enable PHP System Interface support, if test "$PHP_PSI" != no; then PHP_CONFIGURE_PART(Configuring PSI) - + PHP_ARG_ENABLE(psi-posix, whether to pre-define POSIX decls, [ --enable-psi-posix=... PSI: pre-define POSIX decls], [ ], [ ]) @@ -59,11 +59,11 @@ if test "$PHP_PSI" != no; then [ --with-psi-libffi=DIR PSI: path to libffi], [ ], [ ]) AC_HEADER_ASSERT dnl # adds --disable-assert to define NDEBUG - + dnl we cannot use AC_USE_SYSTEM_EXTENSIONS here, because we're way too late dnl in the game, and we're currently only targeting _GNU_SOURCE for now AC_MSG_CHECKING([for _GNU_SOURCE]) - AC_EGREP_CPP([gnu_source_defined], [ + AC_EGREP_CPP([gnu_source_not_defined], [ #ifndef _GNU_SOURCE gnu_source_not_defined #endif @@ -83,6 +83,7 @@ if test "$PHP_PSI" != no; then AC_PATH_PROG(NM, nm) AC_FUNC_FNMATCH + AC_FUNC_MMAP PSI_CONFIG_INIT PSI_CHECK_STD_TYPES @@ -132,6 +133,7 @@ if test "$PHP_PSI" != no; then AC_DEFINE_UNQUOTED([PSI_DECLS], ["$PSI_DECLS"], [Predefined functions]) AC_DEFINE_UNQUOTED([PSI_VA_DECLS], ["$PSI_VA_DECLS"], [Predefined vararg functions]) + PHP_ADD_INCLUDE($PHP_PSI_SRCDIR) PHP_ADD_INCLUDE($PHP_PSI_SRCDIR/src) PHP_ADD_INCLUDE($PHP_PSI_SRCDIR/src/types) PHP_ADD_BUILD_DIR($PHP_PSI_BUILDDIR/src)