@@ -19410,98 +19410,7 @@ fi
19410
19410
# Check for test tools
19411
19411
#
19412
19412
if test "$enable_tap_tests" = yes; then
19413
- # Check for necessary modules, unless user has specified the "prove" to use;
19414
- # in that case it's her responsibility to have a working configuration.
19415
- # (prove might be part of a different Perl installation than perl, eg on
19416
- # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
19417
- if test -z "$PROVE"; then
19418
- # Test::More and Time::HiRes are supposed to be part of core Perl,
19419
- # but some distros omit them in a minimal installation.
19420
- # The required minimum versions are all quite ancient now, but specify
19421
- # them anyway for documentation's sake.
19422
-
19423
-
19424
-
19425
-
19426
-
19427
-
19428
-
19429
-
19430
-
19431
-
19432
- # Make sure we have perl
19433
- if test -z "$PERL"; then
19434
- # Extract the first word of "perl", so it can be a program name with args.
19435
- set dummy perl; ac_word=$2
19436
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19437
- $as_echo_n "checking for $ac_word... " >&6; }
19438
- if ${ac_cv_prog_PERL+:} false; then :
19439
- $as_echo_n "(cached) " >&6
19440
- else
19441
- if test -n "$PERL"; then
19442
- ac_cv_prog_PERL="$PERL" # Let the user override the test.
19443
- else
19444
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19445
- for as_dir in $PATH
19446
- do
19447
- IFS=$as_save_IFS
19448
- test -z "$as_dir" && as_dir=.
19449
- for ac_exec_ext in '' $ac_executable_extensions; do
19450
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19451
- ac_cv_prog_PERL="perl"
19452
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19453
- break 2
19454
- fi
19455
- done
19456
- done
19457
- IFS=$as_save_IFS
19458
-
19459
- fi
19460
- fi
19461
- PERL=$ac_cv_prog_PERL
19462
- if test -n "$PERL"; then
19463
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19464
- $as_echo "$PERL" >&6; }
19465
- else
19466
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467
- $as_echo "no" >&6; }
19468
- fi
19469
-
19470
-
19471
- fi
19472
-
19473
- if test "x$PERL" != x; then
19474
- ax_perl_modules_failed=0
19475
- for ax_perl_module in 'IPC::Run 0.79' 'Test::More 0.98' 'Time::HiRes 1.52' ; do
19476
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
19477
- $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
19478
-
19479
- # Would be nice to log result here, but can't rely on autoconf internals
19480
- modversion=`$PERL -e "use $ax_perl_module; my \\\$x=q($ax_perl_module); \\\$x =~ s/ .*//; \\\$x .= q(::VERSION); eval qq{print \\\\$\\\$x\\n}; exit;" 2>/dev/null`
19481
- if test $? -ne 0; then
19482
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483
- $as_echo "no" >&6; };
19484
- ax_perl_modules_failed=1
19485
- else
19486
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modversion" >&5
19487
- $as_echo "$modversion" >&6; };
19488
- fi
19489
- done
19490
-
19491
- # Run optional shell commands
19492
- if test "$ax_perl_modules_failed" = 0; then
19493
- :
19494
-
19495
- else
19496
- :
19497
- as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
19498
- fi
19499
- else
19500
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
19501
- $as_echo "$as_me: WARNING: could not find perl" >&2;}
19502
- fi
19503
- fi
19504
- # Now make sure we know where prove is
19413
+ # Make sure we know where prove is.
19505
19414
if test -z "$PROVE"; then
19506
19415
for ac_prog in prove
19507
19416
do
@@ -19559,6 +19468,23 @@ fi
19559
19468
if test -z "$PROVE"; then
19560
19469
as_fn_error $? "prove not found" "$LINENO" 5
19561
19470
fi
19471
+ # Check for necessary Perl modules. You might think we should use
19472
+ # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19473
+ # installation than perl, eg on MSys, so we have to check using prove.
19474
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19475
+ $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19476
+ modulestderr=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19477
+ if test $? -eq 0; then
19478
+ # log the module version details, but don't show them interactively
19479
+ echo "$modulestderr" >&5
19480
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481
+ $as_echo "yes" >&6; }
19482
+ else
19483
+ # on failure, though, show the results to the user
19484
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19485
+ $as_echo "$modulestderr" >&6; }
19486
+ as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
19487
+ fi
19562
19488
fi
19563
19489
19564
19490
# If compiler will take -Wl,--as-needed (or various platform-specific
0 commit comments