PHP binding only works for php5 or later because of the function overloading.
authorellson <devnull@localhost>
Sun, 18 Nov 2007 02:10:20 +0000 (02:10 +0000)
committerellson <devnull@localhost>
Sun, 18 Nov 2007 02:10:20 +0000 (02:10 +0000)
Change swig test from -php to -php5 since older swigs (e.g. on centos4) don't support -php5

configure.ac

index 5856bf63ca433c9087fc6d4fcbed3448e90fb38e..903d39227ea2379c36402c075c8408f9c5c853ef 100644 (file)
@@ -780,7 +780,7 @@ AC_ARG_ENABLE(php,
   [AC_HELP_STRING([--enable-php=yes], [php language bindings])],
   [], [enable_php=yes])
 if test "x$enable_php" = "xyes"; then
-if test `$SWIG -help 2>&1 | $GREP -c '\-php[[5 ]]*- Generate'` = 0; then
+if test `$SWIG -help 2>&1 | $GREP -c '\-php5[[ ]]*- Generate'` = 0; then
        PHP=
        AC_MSG_WARN([swig does not support php. The PHP packages will not be built])
 else