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: ludovic dot courtes at inria dot fr (Ludovic Courtès)
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: gcc at gcc dot gnu dot org, bug-autoconf at gnu dot org
- Date: Thu, 19 Jan 2012 17:51:34 +0100
- Subject: Re: Dealing with compilers that pretend to be GCC
- References: <87hazrzs5r.fsf@inria.fr> <4F183CBE.5070801@cs.ucla.edu>
Hi Paul,
Paul Eggert <eggert@cs.ucla.edu> skribis:
> 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.
Right. But how would you write feature tests that would check (1)
whether the GNU C language is supported, and (2) whether GCC plug-ins
are supported?
Thatâs the problem Iâm trying to solve.
Thanks,
Ludoâ.