summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-04-25 14:43:24 +0300
committerTim-Philipp Müller <tim@centricular.com>2014-11-20 13:32:00 +0000
commitdae0ad20f831b32d9fc68caa8f26b359276c3c5f (patch)
tree8ce7d52e23a717d5996d64bdb23e88ed41f98af0 /m4
parent7bb2bcecda471a0d514a964365a78150f3ee5747 (diff)
gst-parser.m4: Fix Bison version check to handle development versions of GNU Bison
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
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-parser.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/gst-parser.m4 b/m4/gst-parser.m4
index b002047..382ef72 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])