Den 2010-08-31 18:57 skrev Ralf Wildenhues: > * Peter Rosin wrote on Tue, Aug 31, 2010 at 06:54:28PM CEST: >> Den 2010-08-31 18:49 skrev Ralf Wildenhues: >>> AC_TRY_EVAL already redirects stderr in config.log, and that was quite >>> helpful when debugging the macro recently. Why not, instead of your >>> patch, redirect stdout also >&AS_MESSAGE_LOG_FD? >> >> So much for obvious. Your suggestion sounds much better... >> >> Should I or will you? > > You have the system to test on, right? ;-)
Right :-) Pushing the attached... Cheers, Peter
>From 185a2f71d0d1b1727fcc45c3840a5d4f7ebfa7ef Mon Sep 17 00:00:00 2001 From: Peter Rosin <p...@lysator.liu.se> Date: Tue, 31 Aug 2010 19:04:22 +0200 Subject: [PATCH] Dump archiver output to the log when testing @file support. * libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout to config.log when testing for @file support. Suggested by Ralf Wildenhues. Signed-off-by: Peter Rosin <p...@lysator.liu.se> --- ChangeLog | 5 +++++ libltdl/m4/libtool.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1ee96b1..355b485 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-08-31 Peter Rosin <p...@lysator.liu.se> + Dump archiver output to the log when testing @file support. + * libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout to config.log + when testing for @file support. + Suggested by Ralf Wildenhues. + Silence archiver output when testing @file support. * libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout and stderr to the bit bucket when testing for @file support. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 530c971..666130d 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1360,7 +1360,7 @@ AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >/dev/null 2>&1' + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. -- 1.7.1