Philip Willoughby <[EMAIL PROTECTED]> 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.