summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-02-23 18:35:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-02-23 18:35:07 +0000
commitdc43e2f54064504426f7f8d9219608476bd27415 (patch)
tree9fc2902e6b0bb20c9d9356c64d59110e70f2ed52 /configure
parent1bc8acca252275f11537e871ceb6fcc667982dd1 (diff)
downloadpostgresql-dc43e2f54064504426f7f8d9219608476bd27415.tar.gz
Fix configure's regexp for extracting the Perl version number from perl -v
output. Per bug #5339, Perl 5.11 has changed the format of that output enough to break the previous coding. Alex Hunsaker
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index f5a93251fb..94c50636ec 100755
--- a/configure
+++ b/configure
@@ -6867,7 +6867,7 @@ fi
fi
if test "$PERL"; then
- pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl, v[a-z ]*//p' | sed 's/ .*//'`
+ 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'`
{ $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
$as_echo "$as_me: using perl $pgac_perl_version" >&6;}
if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \