Dan Sugalski:
# As has been pointed out to me, GCC is excessively permissive by
# default. So...
#
# We need a probe in configure.pl for GCC as the C compiler,
# and we need to
# have -Wall as a default switch on GCC builds. All builds
# should go without
# complaint to be considered passing.

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?

Another option is to do something like $out=`$c{cc} -v` and then look at
the output.

cl:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9254 for
80x86
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.

cl : Command line warning D4002 : ignoring unknown option '-v'
cl : Command line error D2003 : missing source filename

gcc:
Using builtin specs.
gcc version 2.95.3 20010315 (release) [FreeBSD]

Any other suggestions?

# Jarkko's got some truly fascist switches for gcc. Once we're
# -Wall clean,
# those will go in too...

--Brent Dax
[EMAIL PROTECTED]
Configure pumpking for Perl 6

"Nothing important happened today."
    --George III of England's diary entry for 4-Jul-1776

Reply via email to