diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-05-02 11:18:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-05-02 11:18:10 -0400 |
commit | 7d7b129277eb545286aecf29ec22b5bb7fdf46bd (patch) | |
tree | 2932e547e7c688c3e0663e09a21f92cdda7232d1 /config/perl.m4 | |
parent | 37d0c2cb1ab2d3da0cb9a6388450776fc31c16ee (diff) | |
download | postgresql-7d7b129277eb545286aecf29ec22b5bb7fdf46bd.tar.gz postgresql-7d7b129277eb545286aecf29ec22b5bb7fdf46bd.zip |
Fix configure's incorrect version tests for flex and perl.
awk's equality-comparison operator is "==" not "=". We got this right
in many places, but not in configure's checks for supported version
numbers of flex and perl. It hadn't been noticed because unsupported
versions are so old as to be basically extinct in the wild, and because
the only consequence is whether or not a WARNING flies by during
configure.
Daniel Gustafsson noted the problem with respect to the test for flex,
I found the other by reviewing other awk calls.
Diffstat (limited to 'config/perl.m4')
-rw-r--r-- | config/perl.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/perl.m4 b/config/perl.m4 index 0b43b04742e..bed2eae57fe 100644 --- a/config/perl.m4 +++ b/config/perl.m4 @@ -13,7 +13,7 @@ if test "$PERL"; then pgac_perl_version=`$PERL -v 2>/dev/null | sed -n ['s/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p']` AC_MSG_NOTICE([using perl $pgac_perl_version]) if echo "$pgac_perl_version" | sed ['s/[.a-z_]/ /g'] | \ - $AWK '{ if ([$]1 = 5 && [$]2 >= 8) exit 1; else exit 0;}' + $AWK '{ if ([$]1 == 5 && [$]2 >= 8) exit 1; else exit 0;}' then AC_MSG_WARN([ *** The installed version of Perl, $PERL, is too old to use with PostgreSQL. |