The test in yesterdays CVS says:

IS_EGCS := $(shell if $(CC) --version 2>&1 | grep 'egcs' > /dev/null; then echo 
y; else echo n; fi)

My egcs snapshot (19990524, pre-2.95) here says:

vonbrand@pincoya$ gcc --version
gcc-2.95

Just for kicks, I also have:

vonbrand@pincoya$ gcc -V2.7.2.3 --version
2.7.2.3
vonbrand@pincoya$ gcc -Vegcs-2.91.66 --version
egcs-2.91.66

The only thing the egcs' have in common is a number larger than 90 and the
word (not just digits)... perhaps gcc-2.8.x should be thrown in with them
too?

I'd propose:


IS_EGCS := $(shell if $(CC) --version 2>&1 | grep 'egcs\|gcc' > /dev/null; then echo 
y; else echo n; fi)

I'm assuming that any flags that affect the compiler version proper
(-Vwhatever) do show up in $(CC)...
-- 
Dr. Horst H. von Brand                       mailto:[EMAIL PROTECTED]
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of the message to [EMAIL PROTECTED]

Reply via email to