]> granicus.if.org Git - php/commitdiff
check if -no-cpp-precomp is supported by GCC before using it (mac os only)
authorAntony Dovgal <tony2001@php.net>
Fri, 26 Jan 2007 11:13:50 +0000 (11:13 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 26 Jan 2007 11:13:50 +0000 (11:13 +0000)
configure.in

index 4e7768d246c294b5c1b157a6e87d87b0dc337e7b..1e65073e927c8de1943511b8a24bcf9cc795b2cb 100644 (file)
@@ -166,7 +166,12 @@ case $host_alias in
 *dgux*)
     CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR";;
 *darwin*|*rhapsody*)
-    CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
+    if test -n "$GCC"; then
+      PHP_CHECK_GCC_ARG(-no-cpp-precomp, gcc_no_cpp_precomp=yes)
+      if test "$gcc_no_cpp_precomp" = "yes"; then
+        CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
+      fi
+    fi
     AC_DEFINE(BIND_8_COMPAT, 1, [Enabling BIND8 compatibility for Panther])
     php_multiple_shlib_versions_ok=yes;;
 *beos*)