[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dealing with compilers that pretend to be GCC
From: |
Paul Eggert |
Subject: |
Re: Dealing with compilers that pretend to be GCC |
Date: |
Thu, 19 Jan 2012 07:54:38 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
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.
Re: Dealing with compilers that pretend to be GCC, Joseph S. Myers, 2012/01/24