X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi%2Fpsi.m4;h=c8eec1850d9f546efeef16b550e39bbf1be9c38a;hp=ff112d77e963f546b8ce9402c8c706960ebcfc21;hb=9c6a90318dc5e20b73820d7c2bb8eb3b30888cb3;hpb=5e240548ba570610ce0dbc248a2b7654a0e080fa diff --git a/m4/psi/psi.m4 b/m4/psi/psi.m4 index ff112d7..c8eec18 100644 --- a/m4/psi/psi.m4 +++ b/m4/psi/psi.m4 @@ -16,7 +16,17 @@ dnl Creates stubs of the headers with pre-defined types etc. dnl These headers are included by src/context.c. dnl This macro must be called prior any checks for a type, struct, decl etc. AC_DEFUN(PSI_CONFIG_INIT, [ + cat >$PHP_PSI_BUILDDIR/php_psi.dep <>$PHP_PSI_BUILDDIR/php_psi.dep <$i <$PSI_STDINC < +#else +# ifndef HAVE__BOOL +# ifdef __cplusplus +typedef bool _Bool; +# else +# define _Bool signed char +# endif +# endif +# define bool _Bool +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 +#endif #ifdef HAVE_ERRNO_H # include #endif @@ -264,7 +304,10 @@ dnl PSI_LEMON() dnl Declare $LEMON precious, and check for a `lemon` in $PATH. AC_DEFUN(PSI_LEMON, [ AC_ARG_VAR(LEMON, The lemon parser generator of the SQLite project) - AC_PATH_PROG(LEMON, lemon, ./lemon) + if test -z "$LEMON" + then + AC_PATH_PROG(LEMON, lemon, ./lemon) + fi PHP_SUBST(LEMON) ]) @@ -407,6 +450,7 @@ AC_DEFUN(PSI_CHECK_LIBFFI, [ PHP_EVAL_INCLINE(`$PKG_CONFIG --cflags libffi`) PHP_EVAL_LIBLINE(`$PKG_CONFIG --libs libffi`, PSI_SHARED_LIBADD) AC_DEFINE(HAVE_LIBFFI, 1, Have libffi) + AC_DEFINE_UNQUOTED([PHP_PSI_LIBFFI_VERSION], ["`$PKG_CONFIG --modversion libffi`"], [libffi version]) else AC_CACHE_CHECK(for libffi, psi_cv_libffi_dir, [ for psi_cv_libffi_dir in $PHP_PSI_LIBFFI {/usr{,/local},/opt}{,/libffi}