diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-04-25 14:43:24 +0300 |
---|---|---|
committer | James Thomas <james.thomas@codethink.co.uk> | 2015-03-25 13:48:41 +0000 |
commit | 51b6bddd1d18a966624e0c6b5effc71e89a16230 (patch) | |
tree | 8724b3c30efe2309b7d12cdbe5b0e0458ace1920 | |
parent | 2585de990f508fc7fbe13a4b7c9fb08c68a10aed (diff) | |
download | gstreamer-common-baserock/0.10-with-bison-version-fix.tar.gz |
gst-parser.m4: Fix Bison version check to handle development versions of GNU Bisonbaserock/0.10-with-bison-version-fix
Fixes
checking bison version 2.7.1.1194-51a4 >= 2.4... Bareword found where operator
expected at -e line 1, near "51a4"
(Missing operator before a4?)
syntax error at -e line 1, near "51a4 "
Execution of -e aborted due to compilation errors.
This is due to not quoting the string when calling 'perl' to check
the version number. The - sign causes a syntax error.
https://bugzilla.gnome.org/show_bug.cgi?id=728946
-rw-r--r-- | m4/gst-parser.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/gst-parser.m4 b/m4/gst-parser.m4 index 710da89..5e27199 100644 --- a/m4/gst-parser.m4 +++ b/m4/gst-parser.m4 @@ -15,7 +15,7 @@ AC_DEFUN([AG_GST_BISON_CHECK], bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^[[^0-9]]*//' | sed 's/[[^0-9]]*$//' | cut -d' ' -f1` AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version]) - if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then + if perl -we "exit (('v$bison_version' ge 'v$bison_min_version') ? 0 : 1)"; then AC_MSG_RESULT([yes]) else AC_MSG_ERROR([no]) |