This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dealing with compilers that pretend to be GCC
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Ludovic CourtÃs <ludovic dot courtes at inria dot fr>
- Cc: gcc at gcc dot gnu dot org, bug-autoconf at gnu dot org
- Date: Thu, 19 Jan 2012 07:54:38 -0800
- Subject: Re: Dealing with compilers that pretend to be GCC
- References: <87hazrzs5r.fsf@inria.fr>
On 01/19/12 06:24, Ludovic CourtÃs wrote:
> I donât see what can be done on âourâ side (perhaps Autoconfâs feature
> test could be strengthened, but how?)
Which feature test would that be?
I certainly understand the problem, and have run into issues where
clang fools 'configure' into thinking a GCC feature is present when
it isn't, but testing whether a compiler is GCC is not really the
Autoconf Way.
A 'configure' script is supposed to check for behavior, not identity.
If the compiler supports the features needed, then generally speaking
a 'configure' script shouldn't care whether the compiler is truly GCC.