--- configure.orig 2015-10-06 03:19:44.000000000 +0800 +++ configure 2022-05-31 00:50:54.000000000 +0800 @@ -6931,17 +6931,17 @@ 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 >= 6 && $3 >= 0) exit 0; else exit 1;}' then pgac_cv_path_flex=$pgac_candidate break 2 else { $as_echo "$as_me:$LINENO: WARNING: *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL. -*** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5 +*** Flex version 2.6.0 or later is required, but this is $pgac_flex_version." >&5 $as_echo "$as_me: WARNING: *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL. -*** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;} +*** Flex version 2.6.0 or later is required, but this is $pgac_flex_version." >&2;} fi fi fi