From 2c04c282950123ce20ab0dad4e6382840f39129f Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Tue, 4 Nov 2008 02:46:27 +0000 Subject: [PATCH] Adjust M4 version check to deal with (GNU M4) in version string --- common/libs/func_check_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index cde0336..5569f32 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -99,7 +99,7 @@ check_prerequisites() { # check_version "3.0" "$(gawk --version | head -n1 | cut -d" " -f3)" "GAWK" check_version "2.5" "$(grep --version | head -n1 | awk '{print $NF}')" "GREP" check_version "1.2.4" "$(gzip --version 2>&1 | head -n1 | cut -d" " -f2)" "GZIP" - check_version "1.4" "$(m4 --version 2>&1 | head -n1 | cut -d" " -f3)" "M4" + check_version "1.4" "$(m4 --version 2>&1 | head -n1 | awk '{print $NF}')" "M4" check_version "3.79.1" "$(make --version | head -n1 | cut -d " " -f3 | cut -c1-4)" "MAKE" check_version "2.5.4" "$(patch --version | head -n1 | cut -d" " -f2)" "PATCH" check_version "5.6.0" "$(perl -V:version | cut -f2 -d\')" "PERL"