![]() |
Blitz Devel : |
From: Julian Cummings (cummings_at_[hidden])
Date: 2005-04-01 21:58:34
Hi Todd,
On Fri, 2005-04-01 at 02:53 -0500, Todd Veldhuizen wrote:
> You're right that the configure script doesn't currently have an option
> for the Sun compiler. Plain "./configure" assumes you are using an SGI
> compiler (which also uses the name "CC").
>
> Here's what I tried:
>
> (1) ran configure; this produced blitz/config.h
> (2) mkdir blitz/sun; mv blitz/config.h blitz/sun/bzconfig.h
> (3) added
> > #elif defined(__SUNPRO_CC)
> > #include "sun/bzconfig.h"
> to blitz/bzconfig.h
>
> This unfortunately does not work, because the configure script produces
> preprocessor symbols like "HAVE_TEMPLATES" instead of "BZ_HAVE_TEMPLATES".
> The install/compiler selection stuff has been rewritten since I used to
> work actively on blitz, so at this point I have to give up and ask Julian
> what I'm doing wrong... he is much more up on this stuff than I am.
Please try the following patches in the blitz/m4 area and let me know if
it works on your Sun system. I don't have access, so I cannot really
check this myself.
diff ac_cxx_flags_preset.m4.~1.9.~ ac_cxx_flags_preset.m4
132a133,138
> *solaris*) dnl SunPRO C++ http://www.sun.com
> CXX_VENDOR="SUN"
> CXXFLAGS="-features=tmplife -library=stlport4"
> CXX_OPTIMIZE_FLAGS="-O3"
> CXX_DEBUG_FLAGS="-g"
> ;;
diff ac_compiler_specific_header.m4.~1.2.~
ac_compiler_specific_header.m4
31,32c31,40
< *CC*) AX_PREFIX_CONFIG_H([blitz/sgi/bzconfig.h],[BZ])
< COMPILER_SPECIFIC_HEADER="sgi/bzconfig.h" ;;
--- > *CC*) > case "$target" in > *sgi*) AX_PREFIX_CONFIG_H([blitz/sgi/bzconfig.h],[BZ]) > COMPILER_SPECIFIC_HEADER="sgi/bzconfig.h" ;; > *solaris*) AX_PREFIX_CONFIG_H([blitz/sun/bzconfig.h],[BZ]) > COMPILER_SPECIFIC_HEADER="sun/bzconfig.h" ;; > *cray*) AX_PREFIX_CONFIG_H([blitz/cray/bzconfig.h],[BZ]) > COMPILER_SPECIFIC_HEADER="cray/bzconfig.h" ;; > esac > ;; Regards, Julian C. -- Dr. Julian C. Cummings E-mail: cummings_at_[hidden] California Institute of Technology Phone: 626-395-2543 1200 E. California Blvd., Mail Code 158-79 Fax: 626-584-5917 Pasadena, CA 91125 Office: 125 Powell-Booth