1 package ExtUtils::MM_OS2;
8 Exporter::import('ExtUtils::MakeMaker',
9 qw( $Verbose &neatvalue));
11 unshift @MM::ISA, 'ExtUtils::MM_OS2';
14 my($self,%attribs) = @_;
16 my($funcs) = $attribs{DL_FUNCS} || $self->{DL_FUNCS} || {};
17 my($vars) = $attribs{DL_VARS} || $self->{DL_VARS} || [];
18 my($funclist) = $attribs{FUNCLIST} || $self->{FUNCLIST} || [];
19 my($imports) = $attribs{IMPORTS} || $self->{IMPORTS} || {};
21 (my $boot = $self->{NAME}) =~ s/:/_/g;
23 if (not $self->{SKIPHASH}{'dynamic'}) {
25 $self->{BASEEXT}.def: Makefile.PL
27 ' $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -e \'use ExtUtils::Mksymlists; \\
28 Mksymlists("NAME" => "', $self->{NAME},
29 '", "DLBASE" => "',$self->{DLBASE},
30 '", "DL_FUNCS" => ',neatvalue($funcs),
31 '", "FUNCLIST" => ',neatvalue($funclist),
32 ', "IMPORTS" => ',neatvalue($imports),
33 ', "VERSION" => "',$self->{VERSION},
34 '", "DL_VARS" => ', neatvalue($vars), ');\'
40 sub replace_manpage_separator {
48 $file =~ s,[/\\]+,/,g;
49 return $file if -x $file && ! -d _;
50 return "$file.exe" if -x "$file.exe" && ! -d _;
51 return "$file.cmd" if -x "$file.cmd" && ! -d _;
55 sub file_name_is_absolute {
57 $file =~ m{^([a-z]:)?[\\/]}i ;
62 return "\$(PERL_INC)/libperl\$(LIB_EXT)";
68 return "$self->{BASEEXT}.def";
76 ExtUtils::MM_OS2 - methods to override UN*X behaviour in ExtUtils::MakeMaker
80 use ExtUtils::MM_OS2; # Done internally by ExtUtils::MakeMaker if needed
84 See ExtUtils::MM_Unix for a documentation of the methods provided
85 there. This package overrides the implementation of these methods, not