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
> I'm trying to write a pair of macros to enable strict ansi conformance mode
> and all vaguely useful warnings for at least my target platforms:
>
> * AIX with Visualage for C++ C compiler (xlc_r)
> * Solaris with Sun's ANSI C compiler (cc)
> * HP-UX with HP's C compiler (cc)
> * Linux with GCC
http://ac-archive.sf.net/C_Support/ac_prog_cc_warnings.html
see also
http://ac-archive.sf.net/C_Support/ac_prog_cc_strict_prototypes.html
http://ac-archive.sf.net/C_Support/ac_prog_cc_no_writeable_strings.html
Es schrieb Philip Willoughby:
>
> Hi all,
>
> I'm trying to write a pair of macros to
Hi all,
I'm trying to write a pair of macros to enable strict ansi conformance mode
and all vaguely useful warnings for at least my target platforms:
* AIX with Visualage for C++ C compiler (xlc_r)
* Solaris with Sun's ANSI C compiler (cc)
* HP-UX with HP's C compiler (cc)
* Linux with GCC
I ha