]> granicus.if.org Git - php/commitdiff
MFB: Fix test for auto_cflags and explictly set GCC="no" if we detect suncc
authorDavid Soria Parra <dsp@php.net>
Thu, 4 Dec 2008 00:41:17 +0000 (00:41 +0000)
committerDavid Soria Parra <dsp@php.net>
Thu, 4 Dec 2008 00:41:17 +0000 (00:41 +0000)
acinclude.m4
configure.in

index aac7ad554b2b997f2a46e81f174ed547a2806f12..39e71e6ca4b521ccd7af5524475e711acd06c792 100644 (file)
@@ -2776,6 +2776,7 @@ AC_DEFUN([PHP_DETECT_SUNCC],[
     SUNCC="no"
     AC_MSG_RESULT([no]),
     SUNCC="yes"
+    GCC="no"
     test -n "$auto_cflags" && CFLAGS="-fsimple=2 -xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -zlazyload"
     GCC=""
     AC_MSG_RESULT([yes])
index 5453e81a243496b94b95936abb0bf15970360961..a811f757665f1365897366c1f6a94841ee8d8d42 100644 (file)
@@ -796,7 +796,7 @@ if test "$PHP_DEBUG" = "yes"; then
     CXXFLAGS="$CXXFLAGS -O0"
   fi
   if test "$SUNCC" = "yes"; then
-    if -n "$auto_cflags"; then
+    if test -n "$auto_cflags"; then
       CFLAGS="-g"
       CXXFLAGS="-g"
     else