Fix #78750: configure assumes yacc and re2c work

Closes GH-5681
This commit is contained in:
Peter Kokot 2020-06-07 21:53:39 +02:00 committed by George Peter Banyard
parent 2a3ac4a8e7
commit fe2afef36f

View file

@ -1784,6 +1784,7 @@ AC_DEFUN([PHP_PROG_BISON], [
AC_MSG_CHECKING([for bison version]) AC_MSG_CHECKING([for bison version])
php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z) php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z)
[ -z "$php_bison_version" ] && php_bison_version=0.0.0
ac_IFS=$IFS; IFS="." ac_IFS=$IFS; IFS="."
set $php_bison_version set $php_bison_version
IFS=$ac_IFS IFS=$ac_IFS
@ -1848,6 +1849,7 @@ AC_DEFUN([PHP_PROG_RE2C],[
AC_MSG_CHECKING([for re2c version]) AC_MSG_CHECKING([for re2c version])
php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null) php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null)
[ -z "$php_re2c_version" ] && php_re2c_version=0.0.0
ac_IFS=$IFS; IFS="." ac_IFS=$IFS; IFS="."
set $php_re2c_version set $php_re2c_version
IFS=$ac_IFS IFS=$ac_IFS