autoconf-patches
[Top][All Lists]
Advanced

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

gnu-compiler-log.patch


From: akim
Subject: gnu-compiler-log.patch
Date: Mon, 25 Jun 2001 00:48:04 +0200
User-agent: Mutt/1.3.18i

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
        characteristics in the logs.
        Suggested by Mo DeJong.

Index: NEWS
--- NEWS Sun, 24 Jun 2001 01:04:02 +0200 akim (ace/31_NEWS 1.44.1.1 644)
+++ NEWS Sun, 24 Jun 2001 09:59:41 +0200 akim (ace/31_NEWS 1.44.1.1 644)
@@ -33,8 +33,10 @@
 ** Generic macros
 - AC_CHECK_HEADER and AC_CHECK_HEADERS support a fourth argument to
   specify pre-includes.
-- AC_ARG_VAR refuses to run configure when precious variable have
+- AC_ARG_VAR refuses to run configure when precious variables have
   changed.
+- When a GNU compiler is found, its characteristics are dumped in the
+  log.

 ** Specific Macros
 - AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
Index: aclang.m4
--- aclang.m4 Sat, 23 Jun 2001 23:01:08 +0200 akim (ace/b/32_aclang.m4 1.5.3.78 
644)
+++ aclang.m4 Sun, 24 Jun 2001 09:56:25 +0200 akim (ace/b/32_aclang.m4 1.5.3.78 
644)
@@ -550,6 +550,13 @@ m4_define([_AC_LANG_COMPILER_GNU],
                    [ac_compiler_gnu=yes],
                    [ac_compiler_gnu=no])
 ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
+if test $ac_compiler_gnu = yes; then
+  echo "$as_me:__oline__:" \
+     "checking for GNU _AC_LANG compiler characterisitics" >&AS_MESSAGE_LOG_FD
+  ac_compiler=`set X $ac_compile; echo $[2]`
+  _AC_EVAL([$ac_compiler --version </dev/null >&AS_MESSAGE_LOG_FD])
+  _AC_EVAL([$ac_compiler -dumpspecs </dev/null >&AS_MESSAGE_LOG_FD])
+fi
 ])])# _AC_LANG_COMPILER_GNU



reply via email to

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