autoconf
[Top][All Lists]
Advanced

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

Re: Using AC_C_INLINE blows up C++ tests


From: Assar Westerlund
Subject: Re: Using AC_C_INLINE blows up C++ tests
Date: 07 Jun 2003 13:50:14 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Bob Friesenhahn <address@hidden> writes:
> The main Autoconf issue is that each feature test program includes all
> the #defines generated from any previous test.  This means that if
> AC_C_INLINE has been executed previously, then a define like
> 
> #define inline __inline
> 
> may be automatically generated as part of conftest.c, which causes C++
> tests which include C++ headers or otherwise use inline to fail.

The patch below seems to make it work correctly for me (for inline and
C++).  The autoheader tricks is use is kind of evil, and doing this
right would require going through all the macros and see which of them
apply for C++.  And this would be a backwards-incompatible change, but
that should not be a problem since I cannot see how it could have
worked usefully for people.

Attachment: txtmSqAIMDPgc.txt
Description: Text document


reply via email to

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