jani Sat May 9 20:36:35 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS configure.in
/php-src/scripts phpize.m4
Log:
MFH: Add support for Sun CC
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1492&r2=1.2027.2.547.2.1493&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1492 php-src/NEWS:1.2027.2.547.2.1493
--- php-src/NEWS:1.2027.2.547.2.1492 Sat May 9 20:28:03 2009
+++ php-src/NEWS Sat May 9 20:36:34 2009
@@ -5,6 +5,7 @@
- Added new CURL options CURLOPT_REDIR_PROTOCOLS, CURLOPT_PROTOCOLS,
and CURLPROTO_* for redirect fixes in CURL 7.19.4. (Yoram Bar Haim, Stas)
+- Added support for Sun CC (FR #46595 and FR #46513). (David Soria Parra)
- Fixed memory corruptions while reading properties of zip files. (Ilia)
- Fixed memory leak in ob_get_clean/ob_get_flush. (Christian)
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.133&r2=1.579.2.52.2.134&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.579.2.52.2.133
php-src/configure.in:1.579.2.52.2.134
--- php-src/configure.in:1.579.2.52.2.133 Wed May 6 14:05:54 2009
+++ php-src/configure.in Sat May 9 20:36:35 2009
@@ -1,4 +1,4 @@
-## $Id: configure.in,v 1.579.2.52.2.133 2009/05/06 14:05:54 iliaa Exp $ -*-
autoconf -*-
+## $Id: configure.in,v 1.579.2.52.2.134 2009/05/09 20:36:35 jani Exp $ -*-
autoconf -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -140,8 +140,9 @@
dnl Checks for programs.
dnl -------------------------------------------------------------------------
-AC_PROG_CC
+AC_PROG_CC([cc gcc])
PHP_DETECT_ICC
+PHP_DETECT_SUNCC
AC_PROG_CC_C_O
dnl Change to AC_PROG_CC_STDC when we start requiring a post-2.13 autoconf
dnl AC_PROG_CC_STDC
@@ -187,6 +188,10 @@
CFLAGS="$CFLAGS -ieee"
fi
;;
+ sparc*)
+ if test "$SUNCC" = "yes"; then
+ CFLAGS="$CFLAGS -xmemalign=8s"
+ fi
esac
case $host_alias in
@@ -731,6 +736,15 @@
dnl Add the special gcc flags
CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
+ if test "$SUNCC" = "yes"; then
+ if test -n "$auto_cflags"; then
+ CFLAGS="-g"
+ CXXFLAGS="-g"
+ else
+ CFLAGS="$CFLAGS -g"
+ CXXFLAGS="$CFLAGS -g"
+ fi
+ fi
fi
PHP_ARG_ENABLE(debug, whether to include debugging symbols,
http://cvs.php.net/viewvc.cgi/php-src/scripts/phpize.m4?r1=1.17.2.3.2.9&r2=1.17.2.3.2.10&diff_format=u
Index: php-src/scripts/phpize.m4
diff -u php-src/scripts/phpize.m4:1.17.2.3.2.9
php-src/scripts/phpize.m4:1.17.2.3.2.10
--- php-src/scripts/phpize.m4:1.17.2.3.2.9 Thu Jul 31 00:45:46 2008
+++ php-src/scripts/phpize.m4 Sat May 9 20:36:35 2009
@@ -17,11 +17,15 @@
test "[$]$1" = "no" && $1=yes
])dnl
dnl
+
+test -z "$CFLAGS" && auto_cflags=1
+
abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`
-AC_PROG_CC
+AC_PROG_CC([cc gcc])
PHP_DETECT_ICC
+PHP_DETECT_SUNCC
AC_PROG_CC_C_O
dnl Support systems with system libraries in e.g. /usr/lib64
@@ -116,6 +120,15 @@
CFLAGS="$CFLAGS -O0"
CXXFLAGS="$CXXFLAGS -O0"
fi
+ if test "$SUNCC" = "yes"; then
+ if test -n "$auto_cflags"; then
+ CFLAGS="-g"
+ CXXFLAGS="-g"
+ else
+ CFLAGS="$CFLAGS -g"
+ CXXFLAGS="$CFLAGS -g"
+ fi
+ fi
else
PHP_DEBUG=0
ZEND_DEBUG=no
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php