summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/configure.in b/Zend/configure.in
index f60dde5fe7..42bdab125c 100644
--- a/Zend/configure.in
+++ b/Zend/configure.in
@@ -28,6 +28,12 @@ AC_PROG_RANLIB
AC_PROG_CC_C_O
AM_PROG_LEX
+dnl Hack to work around a Mac OS X cpp problem
+dnl Known versions needing this workaround are 5.3 and 5.4
+if test "$ac_cv_prog_gcc" = "yes" -a "`uname -s`" = "Rhapsody"; then
+ CPPFLAGS="$CPPFLAGS -traditional-cpp"
+fi
+
dnl Ugly hack to get around a problem with gcc on AIX.
if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
"`uname -sv`" = "AIX 4"; then