On Thu, Aug 6, 2009 at 03:52, Dr. David Kirkby<[email protected]> wrote:
> Philip Herron wrote:
>> you could add in the check:
>>
>> if test x$CC = xgcc ; then
>
> Thank you, that looks like what I want.

No!  GCC may have a bunch of names, not only 'gcc'.
The proper way is check variable $GCC for value 'yes':
    if test x$GCC = xyes
    then
        # ...
    else
        # ...
    fi
See autoconf documentation, node 'C Compiler Characteristics', macro AC_PROG_CC.

-- 
Andrew W. Nosenko <[email protected]>


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to