autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: More test logs


From: Akim Demaille
Subject: FYI: More test logs
Date: 19 Dec 2000 11:17:46 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77):
        Use AC_TRY_COMMAND when running commands, to enrich the logs.

Index: tests/compile.at
===================================================================
RCS file: /cvs/autoconf/tests/compile.at,v
retrieving revision 1.9
diff -u -u -r1.9 compile.at
--- tests/compile.at 2000/12/19 08:15:48 1.9
+++ tests/compile.at 2000/12/19 10:16:26
@@ -86,8 +86,9 @@
 
 _AT_CHECK_AC_MACRO(
 [# Ignore if /lib/cpp doesn't work
-/lib/cpp </dev/null >/dev/null 2>&1 ||
+if AC_TRY_COMMAND([/lib/cpp </dev/null >&2]); then :; else
   AC_MSG_ERROR([preprocessor doesn't work], 77)
+fi
 CPP=./mycpp
 AC_PROG_CPP
 test "x$ac_c_preproc_warn_flag" != xyes &&
@@ -124,7 +125,7 @@
 [[AC_LANG(Fortran 77)
 AC_LANG_COMPILER
 
-if $F77 --version 2>/dev/null | grep GNU >/dev/null; then
+if AC_TRY_COMMAND([$F77 --version | grep GNU >&2]); then
   # Has GNU in --version.
   test "$G77" != yes &&
     AC_MSG_ERROR([failed to recognize GNU Fortran 77 compiler])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]