local($major_version, $minor_version);
local($phase, $infile, $opts);
- $executable = "${executable}.exe" if $TargetPlatform eq 'i386-unknown-cygwin32';
+ # append .exe if it's not there under cygwin32
+ $executable = "${executable}.exe" if $TargetPlatform eq 'i386-unknown-cygwin32' &&
+ $executable !~ /\.exe$/ ;
print STDERR "Checking consistency of: $executable\n" if $Verbose;