S h i v wrote:
> Hi,
>
> I have two queries related to autoconfigure identifying the compilers
>
> [1] I need to identify if the compiler is sun studio at configure.in
> level. How do i do that?
>
> Incase of gcc, $CC is set to gcc and I can probably use my own
> conditional such as
> AM_CONDITIONAL(IS_COMPILER_GCC,test x$CC = xgcc)
>
> I need a condition for Sun Studio so that in Makefile.am this
> condition can be used.
The test I've used in Xorg code is:
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
Sets SUNCC to "yes" if __SUNPRO_C is #defined, otherwise to "no".
--
-Alan Coopersmith- [EMAIL PROTECTED]
Sun Microsystems, Inc. - X Window System Engineering
_______________________________________________
tools-discuss mailing list
[email protected]