autoconf
[Top][All Lists]
Advanced

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

Re: AC_PROG_CC wrongly setting $GCC=yes while clang is used


From: Marko Lindqvist
Subject: Re: AC_PROG_CC wrongly setting $GCC=yes while clang is used
Date: Tue, 9 Sep 2014 00:07:25 +0300

On 8 September 2014 23:51, Bastien Chevreux <address@hidden> wrote:
> On 08 Sep 2014, at 22:30 , Marko Lindqvist <address@hidden> wrote:
>> On 8 September 2014 22:34, Bastien Chevreux <address@hidden> wrote:
>>> Down Under there are mammals who got pretty good at imitating duck features 
>>> lately.
>>
>> That's exactly the reason for autoconf-way:
>> […]
>
> OK, before this duck thing gets a bit out of hand, back to a more 
> day-to-day-like problem:
>

 I'm ginving theoretical autoconf-way answer. I admit that in some
individual cases the Right Thing(tm) might be too much work in
practice, and the "check version number" hack is justifiable.

> I would need to test whether the compiler accepts “-OMG”

 Test if compiler accepts "-OMG"

> AND
> I would need a way to test whether the compiler is specifically GCC (not 
> clang, not icc) between 3.2.0 and 3.4.2
>
> as I would need to disable -OMG on GCC version 3.2.0 to 3.4.2 because of user 
> report of miscompilations and/or buggy code there.

 Test if compiler miscompiles with "-OMG"



 - ML



reply via email to

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