[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] {maint} configure: report perl version in config.log
From: |
Stefano Lattarini |
Subject: |
[PATCH] {maint} configure: report perl version in config.log |
Date: |
Thu, 17 Nov 2011 09:06:01 +0100 |
I will push this *to maint* in a couple of days if there are no objections.
Regards,
Stefano
-*-*-*-
configure: report perl version in config.log
* configure.ac: Report the version of the selected perl interpreter
in config.log; this should render the logs more informative.
---
ChangeLog | 6 ++++++
configure | 6 ++++++
configure.ac | 2 ++
3 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1e624a8..50aac4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-17 Stefano Lattarini <address@hidden>
+
+ configure: report perl version in config.log
+ * configure.ac: Report the version of the selected perl interpreter
+ in config.log; this should render the logs more informative.
+
2011-11-13 Stefano Lattarini <address@hidden>
tests: fix spurious failure with older install-info
diff --git a/configure b/configure
index 5044112..7f3a0db 100755
--- a/configure
+++ b/configure
@@ -2335,6 +2335,12 @@ fi
if test -z "$PERL"; then
as_fn_error $? "perl not found" "$LINENO" 5
fi
+# Save details about the selected perl interpreter in config.log.
+{ echo "$as_me:$LINENO: eval $PERL --version" >&5
+ (eval $PERL --version) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
$PERL -e 'require 5.006;' || {
as_fn_error $? "perl 5.6 or better is required; perl 5.8.2 or better
is recommended. If you have several perl versions
diff --git a/configure.ac b/configure.ac
index f804d18..b01026d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,6 +60,8 @@ AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
AC_MSG_ERROR([perl not found])
fi
+# Save details about the selected perl interpreter in config.log.
+AM_RUN_LOG([eval $PERL --version])
$PERL -e 'require 5.006;' || {
AC_MSG_ERROR(
[perl 5.6 or better is required; perl 5.8.2 or better
--
1.7.2.3
- [PATCH] {maint} configure: report perl version in config.log,
Stefano Lattarini <=