flush
[m6w6/ext-psi] / m4 / psi.m4
index c9f4e080df6c0381680e18e623e896d22501daea..e8d8069c35b4f0642a187cf3e0a3d07f05220813 100644 (file)
--- a/m4/psi.m4
+++ b/m4/psi.m4
@@ -16,7 +16,7 @@ dnl This macro must be called prior any checks for a type, struct, decl etc.
 AC_DEFUN(PSI_CONFIG_INIT, [
        cat >$PSI_STDTYPES <<EOF
 /* generated by configure */
-static struct psi_predef_type {
+static struct psi_std_type {
        token_t type_tag;
        const char *type_name;
        const char *alias;
@@ -32,7 +32,11 @@ static struct psi_predef_type {
 EOF
        cat >$PSI_TYPES <<EOF
 /* generated by configure */
-static struct psi_predef_type psi_predef_types@<:@@:>@ = {
+static struct psi_predef_type {
+       token_t type_tag;
+       const char *type_name;
+       const char *alias;
+} psi_predef_types@<:@@:>@ = {
 EOF
        cat >$PSI_STRUCTS <<EOF
 /* generated by configure */
@@ -95,6 +99,15 @@ EOF
        done
 ])
 
+dnl PSI_CONFIG_POSIX(section, headers)
+AC_DEFUN(PSI_CONFIG_POSIX, [
+       case "$PHP_PSI_POSIX" in
+       yes|all) ;;
+       *) expr "$PHP_PSI_POSIX" : '\b$1\b' >/dev/null || return 0 ;;
+       esac
+       ifelse($2,,,AC_CHECK_HEADERS($2))
+])
+
 dnl PSI_INCLUDES()
 dnl Expands to a complete list of include statements including
 dnl AC_INCLUDES_DEFAULT().