X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FExtUtils%2FMM.pm;h=4694f3f1c8dd1ba27aca935f85650d4671b26aa9;hb=4822030c168a634e0e2adb4eaa6369019c959730;hp=04195ee030b7e591e0d5e9db5ff3bad2786ed062;hpb=b5b9b3855f771d1ed1aaa79a547b12ee1f8a218b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/ExtUtils/MM.pm b/lib/ExtUtils/MM.pm index 04195ee..4694f3f 100644 --- a/lib/ExtUtils/MM.pm +++ b/lib/ExtUtils/MM.pm @@ -3,7 +3,7 @@ package ExtUtils::MM; use strict; use ExtUtils::MakeMaker::Config; -our $VERSION = '6.48'; +our $VERSION = '6.55_02'; require ExtUtils::Liblist; require ExtUtils::MakeMaker; @@ -44,8 +44,9 @@ away. sub _is_win95 { # miniperl might not have the Win32 functions available and we need # to run in miniperl. - return defined &Win32::IsWin95 ? Win32::IsWin95() - : ! defined $ENV{SYSTEMROOT}; + my $have_win32 = eval { require Win32 }; + return $have_win32 && defined &Win32::IsWin95 ? Win32::IsWin95() + : ! defined $ENV{SYSTEMROOT}; } my %Is = (); @@ -58,7 +59,7 @@ if( $^O eq 'MSWin32' ) { $Is{UWIN} = $^O =~ /^uwin(-nt)?$/; $Is{Cygwin} = $^O eq 'cygwin'; $Is{NW5} = $Config{osname} eq 'NetWare'; # intentional -$Is{BeOS} = $^O =~ /beos/i; # XXX should this be that loose? +$Is{BeOS} = ($^O =~ /beos/i or $^O eq 'haiku'); $Is{DOS} = $^O eq 'dos'; if( $Is{NW5} ) { $^O = 'NetWare';