configure: add stdarg
authorMichael Wallner <mike@php.net>
Wed, 19 Jul 2017 10:26:08 +0000 (12:26 +0200)
committerMichael Wallner <mike@php.net>
Wed, 19 Jul 2017 10:26:08 +0000 (12:26 +0200)
config.m4
m4/posix/stdarg.m4 [new file with mode: 0644]

index 63458ad..f25cc06 100644 (file)
--- a/config.m4
+++ b/config.m4
@@ -25,6 +25,7 @@ m4_foreach(incfile, [
        [posix/stdio.m4],
        [posix/stdint.m4],
        [posix/stdlib.m4],
+       [posix/stdarg.m4],
        [posix/sys_select.m4],
        [posix/sys_socket.m4],
        [posix/sys_stat.m4],
@@ -129,6 +130,7 @@ if test "$PHP_PSI" != no; then
        PSI_CONFIG_POSIX(stdio, stdio.h)
        PSI_CONFIG_POSIX(stdlib, stdlib.h)
        PSI_CONFIG_POSIX(unistd, unistd.h)
+       PSI_CONFIG_POSIX(stdarg, stdarg.h)
        PSI_CONFIG_POSIX(sys/socket, sys/socket.h, [
                PSI_CONFIG_POSIX(netinet/in, netinet/in.h, [
                        PSI_CONFIG_POSIX(arpa/inet, arpa/inet.h)
diff --git a/m4/posix/stdarg.m4 b/m4/posix/stdarg.m4
new file mode 100644 (file)
index 0000000..8b5f703
--- /dev/null
@@ -0,0 +1,4 @@
+PSI_CHECK_STDARG() {
+       PSI_OPAQUE_TYPE(va_list)
+       PSI_OPAQUE_TYPE(__builtin_va_list)
+}
\ No newline at end of file