mattn / p5-Devel-CheckLib

check that a library is available
http://search.cpan.org/dist/Devel-CheckLib/
13 stars 22 forks source link

Handle the case for no exe extension for Cygwin #10

Closed yak1ex closed 11 years ago

yak1ex commented 11 years ago

On, at least, Cygwin perl-5.14.2-3, $Config{cc} is 'gcc-4' and $Config{_exe} is '.exe'. On the other hand, there is no gcc-4.exe. /usr/bin/gcc-4 is a symlink to /usr/bin/gcc.exe. So, most tests are skipped by Couldn't find your C compiler like http://www.cpantesters.org/cpan/report/4090954b-71a6-1014-9a36-9dd55cf4dae8

To fix it, I added check for the case of no extension even if $Config{_exe} is defined.

mattn commented 11 years ago

Thank you