Author: gozer Date: Wed Sep 21 12:39:38 2005 New Revision: 290799 URL: http://svn.apache.org/viewcvs?rev=290799&view=rev Log: When detecting gcc version, we need to filter out the cruft that's _not_ the version number.
On my OSX box, for instance: $Config{gccversion} = '3.3 20030304 (Apple Computer, Inc. build 1809)'; Modified: perl/modperl/trunk/lib/Apache2/Build.pm Modified: perl/modperl/trunk/lib/Apache2/Build.pm URL: http://svn.apache.org/viewcvs/perl/modperl/trunk/lib/Apache2/Build.pm?rev=290799&r1=290798&r2=290799&view=diff ============================================================================== --- perl/modperl/trunk/lib/Apache2/Build.pm (original) +++ perl/modperl/trunk/lib/Apache2/Build.pm Wed Sep 21 12:39:38 2005 @@ -573,6 +573,9 @@ return 0 unless $has_version; + #Only interested in leading version digits + $has_version =~ s/^([0-9.]+).*/$1/; + my @tuples = split /\./, $has_version, 3; my @r_tuples = split /\./, $requested_version, 3;