bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_CHECK_LIB small problem with Solaris C compiler


From: Nicolas Joly
Subject: Re: AC_CHECK_LIB small problem with Solaris C compiler
Date: Thu, 12 Apr 2001 17:12:38 +0200
User-agent: Mutt/1.2.4i

On Wed, Apr 11, 2001 at 03:55:22PM +0200, Nicolas Joly wrote:
> 
> I just tested CVS autoconf under Solaris 2.5.1 and found a small
> problem with AC_CHECK_LIB macro.
[...]
> I tracked down the problem and found that Solaris cc compiler do not
> remove temporary compilations files if link pass fails.
> 
> One solution can be to force cleaning of `conftest.$ac_objext' in
> `_AC_LINK_IFELSE' macro.

Here is my proposal :

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.1354
diff -u -r1.1354 ChangeLog
--- ChangeLog   2001/04/12 03:05:28     1.1354
+++ ChangeLog   2001/04/12 14:19:46
@@ -1,3 +1,8 @@
+2001-04-12  Nicolas Joly  <address@hidden>
+
+       * acgeneral.m4 (_AC_LINK_IFELSE): Be sure to remove temporary
+       `conftest.$ac_objext', as some compilers may forget it.
+
 2001-04-11  Steven G. Johnson  <address@hidden>
 
        * doc/autoconf.texi (AC_F77_WRAPPERS): Mention C++ as well as C.
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.710
diff -u -r1.710 acgeneral.m4
--- acgeneral.m4        2001/04/11 16:29:15     1.710
+++ acgeneral.m4        2001/04/12 14:19:50
@@ -2857,7 +2857,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 conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl
+rm -f conftest.$ac_objext conftest$ac_exeext m4_ifval([$1], 
[conftest.$ac_ext])[]dnl
 ])# _AC_LINK_IFELSE
 
-- 
Nicolas Joly

Informatique Scientifique
Institut Pasteur, Paris.



reply via email to

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