On Mon, 2008-02-25 at 18:12 +0000, Andy Armstrong wrote:
> > -1
> >
> > Many linux distros distribute binary packages ... the value of cc
> will
> > be the compiler used to build the package.
> 
> I meant +1 to MakeMaker knowing whether the compiler is actually  
> available.

Oh ... ok ... wasn't clear from context ... so you may need something as
horrible as:
        -x `which $Config{cc}`
I think Config{cc} can be 'gcc' rather than '/usr/bin/gcc' but I'm not
sure.  Presumably you'd get the correct one unless your perl was not
built by the distro 'vendor' ... yup:

cc='cc'
ccversion='', gccversion='4.2.3 20071014 (prerelease) (Debian 4.2.2-3)'

That's debian sarge (i don't have time to upgrade often) with a weird
mix of etch and backport things installed ... I have a copy of perl 5.10
in opt (final pre-release from active state):

cc='gcc'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-85)'

... fun times ...

-- 
--gh


Reply via email to