From: Nicholas Clark Date: Sun, 2 May 2004 22:40:18 +0000 (+0000) Subject: It seems daft to me that we have a synopis example that will fail if X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63f18be62c0fc11b05936631f648c4dd5ea77236;p=p5sagit%2Fp5-mst-13.2.git It seems daft to me that we have a synopis example that will fail if gcc happened to be invoked via the name cc, and completely ignores the far more reliable 'gccversion' variable So here's one using 'usethreads' that ought to work everywhere. p4raw-id: //depot/perl@22768 --- diff --git a/configpm b/configpm index f232c9b..d3d15ee 100755 --- a/configpm +++ b/configpm @@ -435,8 +435,8 @@ Config - access Perl configuration information =head1 SYNOPSIS use Config; - if ($Config{'cc'} =~ /gcc/) { - print "built by gcc\n"; + if ($Config{usethreads}) { + print "has thread support\n" } use Config qw(myconfig config_sh config_vars config_re);