From c04124281256352b9579c38bfb0e9a0195db283a Mon Sep 17 00:00:00 2001 From: Steve Singer Date: Mon, 11 Jun 2018 18:29:24 -0400 Subject: [PATCH] fix awk expression so flex 2.6.x or higher is supported --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6edfb2bc..700a8437 100644 --- a/configure.ac +++ b/configure.ac @@ -109,7 +109,7 @@ else echo '%%' > conftest.l if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then pgac_flex_version=`$pgac_candidate --version 2>/dev/null` - if echo "$pgac_flex_version" | sed ['s/[.a-z]/ /g'] | awk '{ if ([$]1 = 2 && [$]2 = 5 && [$]3 >= 31) exit 0; else exit 1;}' + if echo "$pgac_flex_version" | sed ['s/[.a-z]/ /g'] | awk '{ if (([$]1 = 2 && [$]2 == 5 && [$]3 >= 31) || ($[1] = 2 && $[2] > 5) || $[1] >= 3) exit 0; else exit 1;}' then pgac_cv_path_flex=$pgac_candidate break 2 -- 2.39.5