Skip to content

Commit 67940a9

Browse files
author
Jani Taskinen
committed
MFH:- Fixed bug #42195 (C++ compiler required always)
1 parent 83e7324 commit 67940a9

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PHP NEWS
33
?? Aug 2007, PHP 5.2.4
44
- Fixed bug #42208 (substr_replace() crashes when the same array is passed
55
more than once). (crrodriguez at suse dot de, Ilia)
6+
- Fixed bug #42195 (C++ compiler required always). (Jani)
67
- Fixed bug #36492 (Userfilters can leak buckets). (Sara)
78

89
02 Aug 2007, PHP 5.2.4RC1

configure.in

+6
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,13 @@ PHP_HELP_SEPARATOR([Libtool:])
12491249
PHP_CONFIGURE_PART(Configuring libtool)
12501250

12511251
LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
1252+
1253+
dnl Only allow AC_PROG_CXX if it's explicitly called (by PHP_REQUIRE_CXX)
1254+
dnl otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler
1255+
AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [AC_PROG_CXX], [undefine([AC_PROG_CXX])
1256+
AC_DEFUN([AC_PROG_CXX], [])])
12521257
AC_PROG_LIBTOOL
1258+
12531259
if test "$enable_debug" != "yes"; then
12541260
PHP_SET_LIBTOOL_VARIABLE([--silent])
12551261
fi

scripts/phpize.m4

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ sinclude(config.m4)
6868
enable_static=no
6969
enable_shared=yes
7070

71+
dnl Only allow AC_PROG_CXX if it's explicitly called (by PHP_REQUIRE_CXX)
72+
dnl otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler
73+
AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [AC_PROG_CXX], [undefine([AC_PROG_CXX])
74+
AC_DEFUN([AC_PROG_CXX], [])])
7175
AC_PROG_LIBTOOL
7276

7377
all_targets='$(PHP_MODULES)'

0 commit comments

Comments
 (0)