]> granicus.if.org Git - graphviz/commitdiff
detect php support in recent version of swig ( 'swig --help' now lists it as -php5...
authorellson <devnull@localhost>
Thu, 7 Dec 2006 17:25:53 +0000 (17:25 +0000)
committerellson <devnull@localhost>
Thu, 7 Dec 2006 17:25:53 +0000 (17:25 +0000)
configure.ac

index 91cd3837c0c01389c76429b02d5e9060c2835ad6..9d20ea6397ff620fa82018690471161bfde099f2 100644 (file)
@@ -628,7 +628,7 @@ if test "x$SWIG" != "x"; then
 AC_ARG_ENABLE(php,
   [AC_HELP_STRING([--disable-php], [don't support php language bindings])])
 if test "x$enable_php" != "xno"; then
-if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0; then
+if test `$SWIG -help 2>&1 | $GREP -c '\-php[5 ]*- Generate'` = 0; then
        PHP=
        AC_MSG_WARN([swig does not support php. The PHP packages will not be built])
 else