mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
once and for all remove the old broken Darwin hack, replace it with the new and much cleaner and simpler one
This commit is contained in:
parent
f1ffc9b2e8
commit
f275cd0815
1 changed files with 8 additions and 24 deletions
32
configure.in
32
configure.in
|
@ -122,21 +122,6 @@ dnl or the contents of libs.
|
||||||
$php_shtool mkdir -p libs
|
$php_shtool mkdir -p libs
|
||||||
rm -f libs/*
|
rm -f libs/*
|
||||||
|
|
||||||
dnl Darwin 9 hack
|
|
||||||
dnl Because the default debugging format used by Apple's GCC on Mac OS 10.5
|
|
||||||
dnl causes errors in all current and past versions of Autoconf, we do a little
|
|
||||||
dnl messing with the CFLAGS here to trick it.
|
|
||||||
php_did_darwin9_cheat=0
|
|
||||||
case $host_alias in
|
|
||||||
*darwin9*)
|
|
||||||
hasg=`echo $CFLAGS | grep -E '(^-g)|([[:space:]]-g)'`
|
|
||||||
if test x"$hasg" = "x"; then
|
|
||||||
php_did_darwin9_cheat=1
|
|
||||||
CFLAGS="$CFLAGS -gstabs"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
dnl -------------------------------------------------------------------------
|
dnl -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1339,6 +1324,14 @@ PHP_CONFIGURE_PART(Configuring libtool)
|
||||||
|
|
||||||
LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
|
LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
|
||||||
|
|
||||||
|
dnl Autoconf 2.13's libtool checks go slightly nuts on Mac OS X 10.5 and 10.6.
|
||||||
|
dnl This hack works around it. Ugly.
|
||||||
|
case $host_alias in
|
||||||
|
*darwin9*|*darwin10*)
|
||||||
|
ac_cv_exeext=
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
dnl Only allow AC_PROG_CXX and AC_PROG_CXXCPP if they are explicitly called (by PHP_REQUIRE_CXX).
|
dnl Only allow AC_PROG_CXX and AC_PROG_CXXCPP if they are explicitly called (by PHP_REQUIRE_CXX).
|
||||||
dnl Otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler.
|
dnl Otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler.
|
||||||
AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], [
|
AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], [
|
||||||
|
@ -1362,15 +1355,6 @@ SHARED_LIBTOOL='$(LIBTOOL)'
|
||||||
|
|
||||||
CC=$old_CC
|
CC=$old_CC
|
||||||
|
|
||||||
dnl Finish the Darwin hack
|
|
||||||
if test "$php_did_darwin9_cheat" -eq 1; then
|
|
||||||
if test "$PHP_DEBUG" = "1"; then
|
|
||||||
CFLAGS=`echo "$CFLAGS" | $SED -e 's/-gstabs/-g/g'`
|
|
||||||
else
|
|
||||||
CFLAGS=`echo "-O2 $CFLAGS" | $SED -e 's/-gstabs//g'`
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
PHP_CONFIGURE_PART(Generating files)
|
PHP_CONFIGURE_PART(Generating files)
|
||||||
|
|
||||||
CXXFLAGS_CLEAN=$CXXFLAGS
|
CXXFLAGS_CLEAN=$CXXFLAGS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue