File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- # $PostgreSQL: pgsql/config/perl.m4,v 1.8 2010/02/22 21:16:50 momjian Exp $
1
+ # $PostgreSQL: pgsql/config/perl.m4,v 1.9 2010/02/23 18:35:06 tgl Exp $
2
2
3
3
4
4
# PGAC_PATH_PERL
@@ -10,7 +10,7 @@ if test -z "$PERL"; then
10
10
fi
11
11
12
12
if test "$PERL"; then
13
- pgac_perl_version=`$PERL -v 2>/dev/null | sed -n [ 's/This is perl, v[ a-z ] *//p' ] | sed [ 's/ .*// '] `
13
+ 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 '] `
14
14
AC_MSG_NOTICE ( [ using perl $pgac_perl_version] )
15
15
if echo "$pgac_perl_version" | sed [ 's/[ .a-z_] / /g'] | \
16
16
$AWK '{ if ([ $] 1 = 5 && [ $] 2 >= 8) exit 1; else exit 0;}'
Original file line number Diff line number Diff line change 6867
6867
fi
6868
6868
6869
6869
if test "$PERL"; then
6870
- pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl, v[a-z ]*//p' | sed 's/ .*// '`
6870
+ 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 '`
6871
6871
{ $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6872
6872
$as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6873
6873
if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
You can’t perform that action at this time.
0 commit comments