diff options
| author | Steve Singer | 2018-06-11 22:29:24 +0000 |
|---|---|---|
| committer | Steve Singer | 2018-06-11 22:29:24 +0000 |
| commit | c04124281256352b9579c38bfb0e9a0195db283a (patch) | |
| tree | 315e8f5dc70af048ee930d8e452ae73a8738925d | |
| parent | 63e5ea22ffc7568bdb51a1544fe53156cc1c47da (diff) | |
fix awk expression so flex 2.6.x or higher is supported
| -rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
