]> granicus.if.org Git - php/commitdiff
fix #34977 (Compile failure on MacOSX due to use of varargs.h)
authorAntony Dovgal <tony2001@php.net>
Wed, 26 Oct 2005 13:49:19 +0000 (13:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 26 Oct 2005 13:49:19 +0000 (13:49 +0000)
ext/mbstring/config.m4

index aefc7b55f048dfdcfe860e15339f181d60893992..12970e30af1d18ac6821c988826f2da7f7584cdf 100644 (file)
@@ -61,7 +61,8 @@ EOF
 AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
   if test "$PHP_MBREGEX" = "yes"; then
     AC_CACHE_CHECK(for variable length prototypes and stdarg.h, cv_php_mbstring_stdarg, [
-      AC_TRY_COMPILE([#include <stdarg.h>], [
+      AC_TRY_RUN([
+#include <stdarg.h>
 int foo(int x, ...) {
        va_list va;
        va_start(va, x);
@@ -71,7 +72,7 @@ int foo(int x, ...) {
        return 0;
 }
 int main() { return foo(10, "", 3.14); }
-      ], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no])
+      ], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no], [cv_php_mbstring_stdarg=no])
     ])
 
     AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h])