package FindExt;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
use strict;
use warnings;
my %static;
sub getcwd {
- $ENV{'PWD'} = Win32::GetCwd();
- $ENV{'PWD'} =~ s:\\:/:g ;
- return $ENV{'PWD'};
+ $_ = `cd`;
+ chomp;
+ s:\\:/:g ;
+ return $ENV{'PWD'} = $_;
}
sub set_static_extensions
closedir $dh;
for my $xxx (@items) {
if ($xxx ne "DynaLoader") {
- if (-f "$xxx/$xxx.xs") {
+ if (-f "$xxx/$xxx.xs" || -f "$xxx/$xxx.c" ) {
$ext{"$_[0]$xxx"} = $static{"$_[0]$xxx"} ? 'static' : 'dynamic';
} elsif (-f "$xxx/Makefile.PL") {
$ext{"$_[0]$xxx"} = 'nonxs';