Skip to content

Commit fe2afef

Browse files
petkGirgias
authored andcommitted
Fix #78750: configure assumes yacc and re2c work
Closes GH-5681
1 parent 2a3ac4a commit fe2afef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/php.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,6 +1784,7 @@ AC_DEFUN([PHP_PROG_BISON], [
17841784
AC_MSG_CHECKING([for bison version])
17851785
17861786
php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z)
1787+
[ -z "$php_bison_version" ] && php_bison_version=0.0.0
17871788
ac_IFS=$IFS; IFS="."
17881789
set $php_bison_version
17891790
IFS=$ac_IFS
@@ -1848,6 +1849,7 @@ AC_DEFUN([PHP_PROG_RE2C],[
18481849
AC_MSG_CHECKING([for re2c version])
18491850
18501851
php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null)
1852+
[ -z "$php_re2c_version" ] && php_re2c_version=0.0.0
18511853
ac_IFS=$IFS; IFS="."
18521854
set $php_re2c_version
18531855
IFS=$ac_IFS

0 commit comments

Comments
 (0)