diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-18 17:45:05 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-18 17:45:05 -0500 |
commit | d5bb7c6f699cf4ce9250fcd14e0ec129c0f1a507 (patch) | |
tree | a814ea370cbfd5637e76f79106cae8c60152c07c | |
parent | cc95595e05c086a53a64eea2b17d135a80548106 (diff) | |
download | postgresql-d5bb7c6f699cf4ce9250fcd14e0ec129c0f1a507.tar.gz postgresql-d5bb7c6f699cf4ce9250fcd14e0ec129c0f1a507.zip |
Accept flex > 2.5.x in configure.
Per buildfarm member anchovy, 2.6.0 exists in the wild now.
Hopefully it works with Postgres; if not, we'll have to do something
about that, but in any case claiming it's "too old" is pretty silly.
-rw-r--r-- | config/programs.m4 | 2 | ||||
-rwxr-xr-x | configure | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/programs.m4 b/config/programs.m4 index 76c0158973a..8444a0f9c7d 100644 --- a/config/programs.m4 +++ b/config/programs.m4 @@ -77,7 +77,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 || ([$]2 = 5 && [$]3 >= 31))) exit 0; else exit 1;}' then pgac_cv_path_flex=$pgac_candidate break 2 diff --git a/configure b/configure index 660aa571bd4..9e76c27c80d 100755 --- a/configure +++ b/configure @@ -7243,7 +7243,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 || ($2 = 5 && $3 >= 31))) exit 0; else exit 1;}' then pgac_cv_path_flex=$pgac_candidate break 2 |