4 dnl Find a new-enough version of Perl.
9 dnl FIXME: don't hard-code 5.003
10 dnl FIXME: should we cache the result?
11 AC_MSG_CHECKING([for perl5.003 or newer])
12 if test "${PERL+set}" = set; then
13 # `PERL' is set in the user's environment.
14 candidate_perl_names="$PERL"
17 candidate_perl_names='perl perl5'
23 PERL="$missing_dir/missing perl"
24 for perl in $candidate_perl_names; do
25 # Run test in a subshell; some versions of sh will print an error if
26 # an executable is not found, even if stderr is redirected.
27 if ( $perl -e 'require 5.003' ) > /dev/null 2>&1; then
35 test $found = no && AC_MSG_WARN([
36 *** You don't seem to have perl5.003 or newer installed.
37 *** Because of that, you may be unable to regenerate certain files
38 *** if you modify the sources from which they are derived.] )