|
6822 | 6822 |
|
6823 | 6823 |
|
6824 | 6824 |
|
6825 |
| -# Extract the first word of "perl", so it can be a program name with args. |
| 6825 | +# Let the user override the search |
| 6826 | +if test -z "$PERL"; then |
| 6827 | + # Extract the first word of "perl", so it can be a program name with args. |
6826 | 6828 | set dummy perl; ac_word=$2
|
6827 | 6829 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6828 | 6830 | $as_echo_n "checking for $ac_word... " >&6; }
|
@@ -6862,6 +6864,38 @@ $as_echo "no" >&6; }
|
6862 | 6864 | fi
|
6863 | 6865 |
|
6864 | 6866 |
|
| 6867 | +fi |
| 6868 | + |
| 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/ .*//'` |
| 6871 | + { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5 |
| 6872 | +$as_echo "$as_me: using perl $pgac_perl_version" >&6;} |
| 6873 | + if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \ |
| 6874 | + $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}' |
| 6875 | + then |
| 6876 | + { $as_echo "$as_me:$LINENO: WARNING: |
| 6877 | +*** The installed version of Perl, $PERL, is too old to use with PostgreSQL. |
| 6878 | +*** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5 |
| 6879 | +$as_echo "$as_me: WARNING: |
| 6880 | +*** The installed version of Perl, $PERL, is too old to use with PostgreSQL. |
| 6881 | +*** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;} |
| 6882 | + PERL="" |
| 6883 | + fi |
| 6884 | +fi |
| 6885 | + |
| 6886 | +if test -z "$PERL"; then |
| 6887 | + { $as_echo "$as_me:$LINENO: WARNING: |
| 6888 | +*** Without Perl you will not be able to build PostgreSQL from CVS. |
| 6889 | +*** You can obtain Perl from any CPAN mirror site. |
| 6890 | +*** (If you are using the official distribution of PostgreSQL then you do not |
| 6891 | +*** need to worry about this, because the Perl output is pre-generated.)" >&5 |
| 6892 | +$as_echo "$as_me: WARNING: |
| 6893 | +*** Without Perl you will not be able to build PostgreSQL from CVS. |
| 6894 | +*** You can obtain Perl from any CPAN mirror site. |
| 6895 | +*** (If you are using the official distribution of PostgreSQL then you do not |
| 6896 | +*** need to worry about this, because the Perl output is pre-generated.)" >&2;} |
| 6897 | +fi |
| 6898 | + |
6865 | 6899 | if test "$with_perl" = yes; then
|
6866 | 6900 |
|
6867 | 6901 | { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
|
|
0 commit comments