In regard to: Re: Compile problems with OSF, Michael Osier said (at 1:52pm...:

>[EMAIL PROTECTED] wrote:
>
>> There's been a reported problem with the gcc compiler 2.95.2 on DEC
>Alphas,
>> but it works with either the DEC compiler or gcc 2.81.
>
>Is there any way to force configure to use the DEC compiler over GCC?
>By default it appears to prefer GCC over the builtin compiler, and I
>couldn't find any parameters for configure to force it to use cc.  That
>would seem to be a good option in cases like this.

All `configure' scripts generated via `autoconf' (ssh's is this way) *by
default* will honor the settings for CC, CFLAGS, LDFLAGS, CXXFLAGS, CPPFLAGS,
INSTALL, and many other environment variables.  If the configure.in (the
source, from which the final `configure' is generated) is poorly written
sometimes your env settings will be lost or transformed, but in the case of
ssh it will honor your choice for CC, and will mostly honor your choice for
CFLAGS.  This means you should be able to do:

        CC='cc' CFLAGS='-std -O2' ./configure --prefix=/blah --exec-prefix=/blah

to get ssh's configure to proceed.

Again, all autoconf-generated configure scripts work this way, by default,
so it is a widely used trick.

Tim
-- 
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

Reply via email to