]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
configure: report perl version in config.log
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 17 Nov 2011 08:04:10 +0000 (09:04 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 17 Nov 2011 08:04:10 +0000 (09:04 +0100)
* configure.ac: Report the version of the selected perl interpreter
in config.log; this should render the logs more informative.

ChangeLog
configure
configure.ac

index 1e624a8a9246dd8f65228ed8aecabb87ed8481ee..50aac4f1b17ca11fba0eb5deab41eb0f7511aa4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       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  <stefano.lattarini@gmail.com>
 
        tests: fix spurious failure with older install-info
index 50441124932f517ef6c7e6493599521fc53566a2..7f3a0db5d2fc0d26ddbf12ca030e16ffd60fb260 100755 (executable)
--- 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
index f804d1870bd3430ba9d4597abf54b4ea323b23ee..b01026d3f362ce89f052389ac92b75004d429a7c 100644 (file)
@@ -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