mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix cc detection in phpize according to changes in configure.in
This commit is contained in:
parent
3fb86b0b9e
commit
2b830291bb
1 changed files with 14 additions and 1 deletions
|
@ -17,11 +17,15 @@ AC_DEFUN([PHP_ALWAYS_SHARED],[
|
||||||
test "[$]$1" = "no" && $1=yes
|
test "[$]$1" = "no" && $1=yes
|
||||||
])dnl
|
])dnl
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
test -z "$CFLAGS" && auto_cflags=1
|
||||||
|
|
||||||
abs_srcdir=`(cd $srcdir && pwd)`
|
abs_srcdir=`(cd $srcdir && pwd)`
|
||||||
abs_builddir=`pwd`
|
abs_builddir=`pwd`
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC([cc gcc])
|
||||||
PHP_DETECT_ICC
|
PHP_DETECT_ICC
|
||||||
|
PHP_DETECT_SUNCC
|
||||||
AC_PROG_CC_C_O
|
AC_PROG_CC_C_O
|
||||||
|
|
||||||
dnl Support systems with system libraries in e.g. /usr/lib64
|
dnl Support systems with system libraries in e.g. /usr/lib64
|
||||||
|
@ -116,6 +120,15 @@ if test "$PHP_DEBUG" = "yes"; then
|
||||||
CFLAGS="$CFLAGS -O0"
|
CFLAGS="$CFLAGS -O0"
|
||||||
CXXFLAGS="$CXXFLAGS -O0"
|
CXXFLAGS="$CXXFLAGS -O0"
|
||||||
fi
|
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
|
else
|
||||||
PHP_DEBUG=0
|
PHP_DEBUG=0
|
||||||
ZEND_DEBUG=no
|
ZEND_DEBUG=no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue