bug-autoconf
[Top][All Lists]
Advanced

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

Re: Current CVS - test suite failure


From: Akim Demaille
Subject: Re: Current CVS - test suite failure
Date: 04 Jul 2001 17:18:58 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

Thanks!  I'm applying the following patch.  I expect it to fix your
problems.

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
        up.
        * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
        warnings from compilers.
        * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
        for all the compilers, not only GNU.  Hence move from here...
        (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.

Index: NEWS
===================================================================
RCS file: /cvs/autoconf/NEWS,v
retrieving revision 1.170
diff -u -u -r1.170 NEWS
--- NEWS 2001/07/04 11:29:50 1.170
+++ NEWS 2001/07/04 15:06:22
@@ -1,4 +1,4 @@
-* Major changes in Autoconf 2.50b                       -*- outline -*-
+* Major changes in Autoconf 2.50c                       -*- outline -*-
 ** Documentation
 - AC_ARG_VAR
 - Quadrigraphs
@@ -38,8 +38,7 @@
   specify pre-includes.
 - 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.
+- Versions of compilers are dumped in the logs.
 
 ** Specific Macros
 - AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
@@ -51,6 +50,7 @@
 - AC_F77_DUMMY_MAIN, AC_F77_MAIN: new macros to detect whether
   a main-like routine is required/possible when linking C/C++ with
   Fortran.  Users of e.g. AC_F77_WRAPPERS should be aware of these.
+[2.50b]
 
 * Major changes in Autoconf 2.50
 
Index: acfunctions.m4
===================================================================
RCS file: /cvs/autoconf/acfunctions.m4,v
retrieving revision 1.42
diff -u -u -r1.42 acfunctions.m4
--- acfunctions.m4 2001/07/04 14:37:52 1.42
+++ acfunctions.m4 2001/07/04 15:06:24
@@ -1613,8 +1613,10 @@
     case 0: /* Child.  */
       sleep(1); /* Give up the CPU.  */
       _exit(0);
+      break;
     case -1: /* What can we do?  */
       _exit(0);
+      break;
     default: /* Parent.  */
       wait3(&i, 0, &r);
       /* Avoid "text file busy" from rm on fast HP-UX machines.  */
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.743
diff -u -u -r1.743 acgeneral.m4
--- acgeneral.m4 2001/07/04 13:29:12 1.743
+++ acgeneral.m4 2001/07/04 15:06:40
@@ -2807,6 +2807,8 @@
 # ------------------------------------------------------------
 # Compile, link, and run.
 # This macro can be used during the selection of a compiler.
+# We also remove conftest.o as if the compilation fails, some compilers
+# don't remove it.
 m4_define([_AC_RUN_IFELSE],
 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
 rm -f conftest$ac_exeext
@@ -2816,7 +2818,7 @@
 echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
 cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
 m4_ifvaln([$3], [$3])dnl])[]dnl
-rm -f core core.* *.core conftest$ac_exeext m4_ifval([$1],
+rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext m4_ifval([$1],
                                                      [conftest.$ac_ext])[]dnl
 ])# _AC_RUN_IFELSE
 
Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.141
diff -u -u -r1.141 aclang.m4
--- aclang.m4 2001/07/04 12:58:40 1.141
+++ aclang.m4 2001/07/04 15:06:54
@@ -556,13 +556,6 @@
                    [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 -v </dev/null >&AS_MESSAGE_LOG_FD])
-fi
 ])])# _AC_LANG_COMPILER_GNU
 
 
@@ -961,6 +954,14 @@
 
 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
 
+# Provide some information about the compiler.
+echo "$as_me:__oline__:" \
+     "checking for _AC_LANG compiler version" >&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 -v </dev/null >&AS_MESSAGE_LOG_FD])
+_AC_EVAL([$ac_compiler -V </dev/null >&AS_MESSAGE_LOG_FD])
+
 m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
 m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
 _AC_LANG_COMPILER_GNU
@@ -1164,6 +1165,14 @@
                           [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r 
xlC])],
                g++)
 
+# Provide some information about the compiler.
+echo "$as_me:__oline__:" \
+     "checking for _AC_LANG compiler version" >&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 -v </dev/null >&AS_MESSAGE_LOG_FD])
+_AC_EVAL([$ac_compiler -V </dev/null >&AS_MESSAGE_LOG_FD])
+
 m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
 m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
 _AC_LANG_COMPILER_GNU
@@ -1295,6 +1304,14 @@
 AC_CHECK_TOOLS(F77,
       [m4_default([$1],
                   [g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 
pgf90 epcf90 f95 fort xlf95 lf95 g95 fc])])
+
+# Provide some information about the compiler.
+echo "$as_me:__oline__:" \
+     "checking for _AC_LANG compiler version" >&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 -v </dev/null >&AS_MESSAGE_LOG_FD])
+_AC_EVAL([$ac_compiler -V </dev/null >&AS_MESSAGE_LOG_FD])
 
 m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
 m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
Index: doc/autoconf.texi
===================================================================
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.480
diff -u -u -r1.480 autoconf.texi
--- doc/autoconf.texi 2001/07/04 11:29:50 1.480
+++ doc/autoconf.texi 2001/07/04 15:08:08
@@ -8311,6 +8311,12 @@
 non-printing characters, @emph{seems} portable, though.
 
 
address@hidden @command{cc}
address@hidden ---------------
+When a compilation such as @samp{cc foo.c -o foo} fails, some compilers
+(such as @sc{cds} on Reliant Unix) leave a @file{foo.o}.
+
+
 @item @command{cmp}
 @c ----------------
 @cindex @command{cmp}



reply via email to

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