[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting C compiler
From: |
Kevin Ryde |
Subject: |
Re: Detecting C compiler |
Date: |
Wed, 03 Jul 2002 09:09:55 +1000 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu) |
Philip Willoughby <address@hidden> writes:
>
> I have used the feature of AC_PROG_CC which sets GCC to "yes" to check for
> gcc, and when it comes to AIX I can just test if CC is xlc or xlc_r (I hope
> -- this is untested).
In GMP we detect xlc by invoking it with no arguments and grepping for
"xlc" in the output (man page) it prints. The aim being to work even
if invoked as "CC=cc".
Testing for a preprocessor define (like the gcc test) would probably
be better, but I couldn't spot one on the xlc I was playing with.