On Mon, 2008-02-25 at 13:22 -0500, Guy Hulbert wrote: > something as > horrible as: > -x `which $Config{cc}`
plus: `which $Config{cc} --version` =~ m/$Config{gccversion}/ seems to "work" for all the combinations below ... but I can imagine that there are situations where it might not. viz: $ `which gcc` --version gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) and: $ /usr/bin/cc --version cc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) cf: $ perl -V | grep cc cc='cc' ccversion='', gccversion='4.2.3 20071014 (prerelease) (Debian 4.2.2-3)' vs: $ /opt/ActivePerl-5.8/bin/perl -V | grep cc cc='gcc' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-85)' -- --gh