1 package ExtUtils::MM_OS2;
8 Exporter::import('ExtUtils::MakeMaker',
9 qw( $Verbose &neatvalue));
11 $ENV{EMXSHELL} = 'sh'; # to run `commands`
12 unshift @MM::ISA, 'ExtUtils::MM_OS2';
15 my($self,%attribs) = @_;
17 my($funcs) = $attribs{DL_FUNCS} || $self->{DL_FUNCS} || {};
18 my($vars) = $attribs{DL_VARS} || $self->{DL_VARS} || [];
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 ', "IMPORTS" => ',neatvalue($imports),
32 ', "DL_VARS" => ', neatvalue($vars), ');\'
38 sub replace_manpage_separator {
46 return $file if -x $file && ! -d _;
47 return "$file.exe" if -x "$file.exe" && ! -d _;
48 return "$file.cmd" if -x "$file.cmd" && ! -d _;
52 sub file_name_is_absolute {
54 $file =~ m{^([a-z]:)?[\\/]}i ;
59 return "\$(PERL_INC)/libperl\$(LIB_EXT)";
65 return "$self->{BASEEXT}.def";
73 ExtUtils::MM_OS2 - methods to override UN*X behaviour in ExtUtils::MakeMaker
77 use ExtUtils::MM_OS2; # Done internally by ExtUtils::MakeMaker if needed
81 See ExtUtils::MM_Unix for a documentation of the methods provided
82 there. This package overrides the implementation of these methods, not