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: Bob Friesenhahn
Subject: Re: Using AC_C_INLINE blows up C++ tests
Date: Sat, 7 Jun 2003 13:11:25 -0500 (CDT)

This patch looks like just what the doctor ordered.

Bob

On 7 Jun 2003, Assar Westerlund wrote:

> 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.
>
>

======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

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