* configure.ac: If possible, report the version of the selected TeX program; this should render the logs more informative. --- ChangeLog | 6 ++++++ configure | 8 ++++++++ configure.ac | 4 ++++ 3 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 49b6e8b..5b86254 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-21 Stefano Lattarini <stefano.lattar...@gmail.com> + + configure: report TeX version in config.log + * configure.ac: If possible, report the version of the selected + TeX program; this should render the logs more informative. + 2011-12-20 Peter Rosin <p...@lysator.liu.se> tests: fix spurious failure on systems lacking unistd.h diff --git a/configure b/configure index 7f3a0db..34f8cc7 100755 --- a/configure +++ b/configure @@ -2419,6 +2419,14 @@ $as_echo "no" >&6; } fi +# Save details about the selected TeX program in config.log. +# Redirect input from /dev/null, as TeX might otherwise hang waiting +# for input from the terminal. +{ echo "$as_me:$LINENO: $TEX --version </dev/null" >&5 + ($TEX --version </dev/null) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } # Generate man pages. diff --git a/configure.ac b/configure.ac index b01026d..cfab4d7 100644 --- a/configure.ac +++ b/configure.ac @@ -98,6 +98,10 @@ AC_SUBST([PERL_THREADS]) # The test suite will skip some tests if tex is absent. AC_CHECK_PROG([TEX], [tex], [tex]) +# Save details about the selected TeX program in config.log. +# Redirect input from /dev/null, as TeX might otherwise hang waiting +# for input from the terminal. +AM_RUN_LOG([$TEX --version </dev/null]) # Generate man pages. AM_MISSING_PROG([HELP2MAN], [help2man]) -- 1.7.7.3