close F;
my $libtoolize_version=($libtoolize_out=~m#([\d.]+)#)[0];
confess "libtoolize(1) version not found in its output" if !$libtoolize_version;
- do { confess "'libtool' package version $_ or higher required" if $libtoolize_version<$_; } for (1.5);
+ for (1.5) {
+ confess "'libtool' package version $_ or higher required"
+ # Do not take 3rd+ numbers as it would not be a number
+ if ($libtoolize_version=~/^(\d+[.]\d+)/)[0]<$_;
+ }
1;
},
);