Blitz logo

Blitz Devel :

From: Julian Cummings (cummings_at_[hidden])
Date: 2005-04-04 16:02:35


Hi Steve,

Did you remember to regenerate the configure script after you applied the
patches to those two m4 files? Run "autoreconf -fiv" to rebuild the
configure script and the Makefile.in files with the patched m4 files. Then
run configure, and it should recognize that you are on a solaris system and
do the right thing.

BTW, I have received an independent report from Patrick Guio (who helps me
with blitz maintenance) that the compiler flags for SunPRO CC may require
some adjustments.

Regards, Julian C.

Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
 

> -----Original Message-----
> From: Steve Clamage [mailto:Stephen.Clamage_at_[hidden]]
> Sent: Saturday, April 02, 2005 8:27 AM
> To: Julian Cummings
> Cc: blitz-dev_at_[hidden]; Todd Veldhuizen
> Subject: Re: [Blitz-dev] Re: Sun compilers (fwd)
>
> Julian, I tried your changes on blitz-0.8 and they didn't
> work for me.
> The configure script still assumed CC was sgi, and didn't
> pick up the flags for use with Sun C++.
>
> I wondered if the lack of a blitz/sun directory might be the
> problem, so I deleted the installation, un-tarred blitz,
> created blitz/sun, and re-ran configure. No difference.
>
> One thing: in ac_compiler_specific_header.m4, the line you show as
> *CC*)
> in my file was
> CC)
> (no stars). I made the indicated change anyway, with the
> stars as you show.
>
> I've attached config.log.
>
> BTW, I see you are at my Alma Mater.
> ---
> Steve Clamage, stephen.clamage_at_[hidden]
> Caltech class of '66
>
> Julian Cummings wrote:
>
> > 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.
> >
> >
> >
>
>