From: ellson Date: Sun, 18 Nov 2007 02:10:20 +0000 (+0000) Subject: PHP binding only works for php5 or later because of the function overloading. X-Git-Tag: LAST_LIBGRAPH~32^2~5010 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12007cee2109d5b3c18c4557f082873dc4eb7a69;p=graphviz PHP binding only works for php5 or later because of the function overloading. Change swig test from -php to -php5 since older swigs (e.g. on centos4) don't support -php5 --- diff --git a/configure.ac b/configure.ac index 5856bf63c..903d39227 100644 --- a/configure.ac +++ b/configure.ac @@ -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