summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2021-11-12 10:36:30 -0500
committerAndrew Dunstan <andrew@dunslane.net>2021-11-12 10:36:30 -0500
commit1593998ae858902e805eb0f8bf3b019399044471 (patch)
tree1edf0d9724936f331eea7b3289a9c4fbf06a5898 /config
parenta45ed975c58fde7303eeae488b313bf0314383f7 (diff)
downloadpostgresql-1593998ae858902e805eb0f8bf3b019399044471.tar.gz
Report found versions of required perl modules
Configure tests for the presence of perl modules required for TAP tests, and that they meet specified minimum version requirements. This patch makes it report the version of the module that's actually found rather than just an 'ok' message. This will help in deciding if we can upgrade minimum requirements for these modules. Discussion: https://postgr.es/m/f5e1d308-4e33-37a7-bdf1-f6e0c75119de@dunslane.net
Diffstat (limited to 'config')
-rw-r--r--config/ax_prog_perl_modules.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/config/ax_prog_perl_modules.m4 b/config/ax_prog_perl_modules.m4
index 70b3230ebd..664e7aae3b 100644
--- a/config/ax_prog_perl_modules.m4
+++ b/config/ax_prog_perl_modules.m4
@@ -55,12 +55,12 @@ if test "x$PERL" != x; then
AC_MSG_CHECKING(for perl module $ax_perl_module)
# Would be nice to log result here, but can't rely on autoconf internals
- $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
+ 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`
if test $? -ne 0; then
AC_MSG_RESULT(no);
ax_perl_modules_failed=1
else
- AC_MSG_RESULT(ok);
+ AC_MSG_RESULT($modversion);
fi
done