summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2008-12-03 19:52:59 (GMT)
committerDavid Soria Parra <dsp@php.net>2008-12-03 19:52:59 (GMT)
commit2b830291bbd04a4cd05b2185f2c73346d18e5f9c (patch)
treeea1392fecf9135787ee4ca3a6228e452aae5bbdd /scripts
parent3fb86b0b9e79e6a3312b694f30ee627e2e1b325c (diff)
downloadphp-2b830291bbd04a4cd05b2185f2c73346d18e5f9c.tar.gz
Fix cc detection in phpize according to changes in configure.in
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpize.m415
1 files changed, 14 insertions, 1 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4
index ba668c8..bf40948 100644
--- a/scripts/phpize.m4
+++ b/scripts/phpize.m4
@@ -17,11 +17,15 @@ AC_DEFUN([PHP_ALWAYS_SHARED],[
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 @@ if test "$PHP_DEBUG" = "yes"; then
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