tony2001                Fri Jan 26 11:13:50 2007 UTC

  Modified files:              
    /php-src    configure.in 
  Log:
  check if -no-cpp-precomp is supported by GCC before using it (mac os only)
  
  
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.621&r2=1.622&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.621 php-src/configure.in:1.622
--- php-src/configure.in:1.621  Fri Jan 12 18:57:11 2007
+++ php-src/configure.in        Fri Jan 26 11:13:50 2007
@@ -1,4 +1,4 @@
- ## $Id: configure.in,v 1.621 2007/01/12 18:57:11 andrei Exp $ -*- autoconf -*-
+ ## $Id: configure.in,v 1.622 2007/01/26 11:13:50 tony2001 Exp $ -*- autoconf 
-*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -166,7 +166,12 @@
 *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*)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to