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; use File::Compare' ) > /dev/null 2>&1; then
35 test $found = no && AC_MSG_WARN([
36 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
37 a usable version of the Perl File::Compare module. As a result,
38 you may be unable to run a few tests or to regenerate certain
39 files if you modify the sources from which they are derived.