From: Karel Zak Date: Mon, 30 Apr 2018 07:37:14 +0000 (+0200) Subject: build-sys: improve bison version detection X-Git-Tag: v2.32.1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b51021698e1b87e080640eaba95402365941774b;p=thirdparty%2Futil-linux.git build-sys: improve bison version detection Addresses: https://github.com/karelzak/util-linux/issues/630 Signed-off-by: Karel Zak --- diff --git a/autogen.sh b/autogen.sh index 04b6cb4593..3625b2da91 100755 --- a/autogen.sh +++ b/autogen.sh @@ -73,7 +73,7 @@ if ! (bison --version) < /dev/null > /dev/null 2>&1; then echo DIE=1 else - lexver=$(bison --version | awk '/bison \(GNU Bison\)/ { print $4 }') + lexver=$(bison --version | awk '/^bison \(GNU [Bb]ison\)/ { print $4 }') case "$lexver" in [2-9].*) ;;