Skip to content

Instantly share code, notes, and snippets.

@yukikaoru
Created May 29, 2014 05:28
Show Gist options
  • Save yukikaoru/1808dc81f540430ae6b7 to your computer and use it in GitHub Desktop.
Save yukikaoru/1808dc81f540430ae6b7 to your computer and use it in GitHub Desktop.
diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
index 454513f..5a521dc 100644
--- a/Zend/acinclude.m4
+++ b/Zend/acinclude.m4
@@ -12,7 +12,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
bison_version=none
if test "$YACC"; then
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
- bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
+ bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z`
php_cv_bison_version=invalid
if test -n "$bison_version_vars"; then
set $bison_version_vars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment