On Sun, 2 Dec 2001, Brent Dax wrote:
> It looks like $Config{gccversion} is empty unless we're using gcc.
> However, I can't confirm this--I have access to one system using cl and
> another system using gcc, and it's consistent across those two, but I
> can't check others. Is it?
Yes. According to the Config.pm documentation (e.g. C< perldoc Config >)
"gccversion"
From gccvers.U:
If "GNU" cc (gcc) is used, this variable holds "1" or
"2" to indicate whether the compiler is version 1 or
2. This is used in setting some of the default
cflags. It is set to '' if not gcc.
Actually, in more recent perls, it could contain a full string, such as
'2.95.4 20010319 (Debian prerelease)', so don't go looking for an exact
match. I also don't have a gcc-3 handy to check what it returns.
But gccversion is still set to '' if not gcc.
--
Andy Dougherty [EMAIL PROTECTED]
Dept. of Physics
Lafayette College, Easton PA 18042