$42 GRAYBYTE WORDPRESS FILE MANAGER $86

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/share/perl5/vendor_perl/ExtUtils/

HOME
Current File : /usr/share/perl5/vendor_perl/ExtUtils//MM_Cygwin.pm
package ExtUtils::MM_Cygwin;

use strict;

use ExtUtils::MakeMaker::Config;
use File::Spec;

require ExtUtils::MM_Unix;
require ExtUtils::MM_Win32;
our @ISA = qw( ExtUtils::MM_Unix );

our $VERSION = '7.34';
$VERSION = eval $VERSION;


=head1 NAME

ExtUtils::MM_Cygwin - methods to override UN*X behaviour in ExtUtils::MakeMaker

=head1 SYNOPSIS

 use ExtUtils::MM_Cygwin; # Done internally by ExtUtils::MakeMaker if needed

=head1 DESCRIPTION

See ExtUtils::MM_Unix for a documentation of the methods provided there.

=over 4

=item os_flavor

We're Unix and Cygwin.

=cut

sub os_flavor {
    return('Unix', 'Cygwin');
}

=item cflags

if configured for dynamic loading, triggers #define EXT in EXTERN.h

=cut

sub cflags {
    my($self,$libperl)=@_;
    return $self->{CFLAGS} if $self->{CFLAGS};
    return '' unless $self->needs_linking();

    my $base = $self->SUPER::cflags($libperl);
    foreach (split /\n/, $base) {
        /^(\S*)\s*=\s*(\S*)$/ and $self->{$1} = $2;
    };
    $self->{CCFLAGS} .= " -DUSEIMPORTLIB" if ($Config{useshrplib} eq 'true');

    return $self->{CFLAGS} = qq{
CCFLAGS = $self->{CCFLAGS}
OPTIMIZE = $self->{OPTIMIZE}
PERLTYPE = $self->{PERLTYPE}
};

}


=item replace_manpage_separator

replaces strings '::' with '.' in MAN*POD man page names

=cut

sub replace_manpage_separator {
    my($self, $man) = @_;
    $man =~ s{/+}{.}g;
    return $man;
}

=item init_linker

points to libperl.a

=cut

sub init_linker {
    my $self = shift;

    if ($Config{useshrplib} eq 'true') {
        my $libperl = '$(PERL_INC)' .'/'. "$Config{libperl}";
        if( $] >= 5.006002 ) {
            $libperl =~ s/(dll\.)?a$/dll.a/;
        }
        $self->{PERL_ARCHIVE} = $libperl;
    } else {
        $self->{PERL_ARCHIVE} =
          '$(PERL_INC)' .'/'. ("$Config{libperl}" or "libperl.a");
    }

    $self->{PERL_ARCHIVEDEP} ||= '';
    $self->{PERL_ARCHIVE_AFTER} ||= '';
    $self->{EXPORT_LIST}  ||= '';
}

=item maybe_command

Determine whether a file is native to Cygwin by checking whether it
resides inside the Cygwin installation (using Windows paths). If so,
use C<ExtUtils::MM_Unix> to determine if it may be a command.
Otherwise use the tests from C<ExtUtils::MM_Win32>.

=cut

sub maybe_command {
    my ($self, $file) = @_;

    my $cygpath = Cygwin::posix_to_win_path('/', 1);
    my $filepath = Cygwin::posix_to_win_path($file, 1);

    return (substr($filepath,0,length($cygpath)) eq $cygpath)
    ? $self->SUPER::maybe_command($file) # Unix
    : ExtUtils::MM_Win32->maybe_command($file); # Win32
}

=item dynamic_lib

Use the default to produce the *.dll's.
But for new archdir dll's use the same rebase address if the old exists.

=cut

sub dynamic_lib {
    my($self, %attribs) = @_;
    my $s = ExtUtils::MM_Unix::dynamic_lib($self, %attribs);
    return '' unless $s;
    return $s unless %{$self->{XS}};

    # do an ephemeral rebase so the new DLL fits to the current rebase map
    $s .= "\t/bin/find \$\(INST_ARCHLIB\)/auto -xdev -name \\*.$self->{DLEXT} | /bin/rebase -sOT -" if (( $Config{myarchname} eq 'i686-cygwin' ) and not ( exists $ENV{CYGPORT_PACKAGE_VERSION} ));
    $s;
}

=item install

Rebase dll's with the global rebase database after installation.

=cut

sub install {
    my($self, %attribs) = @_;
    my $s = ExtUtils::MM_Unix::install($self, %attribs);
    return '' unless $s;
    return $s unless %{$self->{XS}};

    my $INSTALLDIRS = $self->{INSTALLDIRS};
    my $INSTALLLIB = $self->{"INSTALL". ($INSTALLDIRS eq 'perl' ? 'ARCHLIB' : uc($INSTALLDIRS)."ARCH")};
    my $dop = "\$\(DESTDIR\)$INSTALLLIB/auto/";
    my $dll = "$dop/$self->{FULLEXT}/$self->{BASEEXT}.$self->{DLEXT}";
    $s =~ s|^(pure_install :: pure_\$\(INSTALLDIRS\)_install\n\t)\$\(NOECHO\) \$\(NOOP\)\n|$1\$(CHMOD) \$(PERM_RWX) $dll\n\t/bin/find $dop -xdev -name \\*.$self->{DLEXT} \| /bin/rebase -sOT -\n|m if (( $Config{myarchname} eq 'i686-cygwin') and not ( exists $ENV{CYGPORT_PACKAGE_VERSION} ));
    $s;
}

=item all_target

Build man pages, too

=cut

sub all_target {
    ExtUtils::MM_Unix::all_target(shift);
}

=back

=cut

1;

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.25 PM
root / root
0755
CBuilder
--
31 Aug 2024 4.31 AM
root / root
0755
Command
--
31 Aug 2024 4.31 AM
root / root
0755
Liblist
--
31 Aug 2024 4.31 AM
root / root
0755
MM
--
31 Aug 2024 4.31 AM
root / root
0755
MakeMaker
--
31 Aug 2024 4.31 AM
root / root
0755
ParseXS
--
31 Aug 2024 4.31 AM
root / root
0755
Typemaps
--
31 Aug 2024 4.31 AM
root / root
0755
CBuilder.pm
8.672 KB
22 Nov 2017 11.20 PM
root / root
0644
Command.pm
7.619 KB
19 Mar 2018 5.21 PM
root / root
0644
Install.pm
40.059 KB
28 May 2017 5.51 PM
root / root
0644
Installed.pm
14.026 KB
28 May 2017 5.51 PM
root / root
0644
Liblist.pm
9.515 KB
13 Oct 2019 3.55 PM
root / root
0644
MANIFEST.SKIP
0.948 KB
1 Jan 2015 2.02 AM
root / root
0644
MM.pm
2.088 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_AIX.pm
1.37 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_Any.pm
80.813 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_BeOS.pm
1.02 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_Cygwin.pm
3.989 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_DOS.pm
1.027 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_Darwin.pm
0.914 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_MacOS.pm
0.871 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_NW5.pm
5.338 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_OS2.pm
3.142 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_QNX.pm
0.873 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_UWIN.pm
0.958 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_Unix.pm
108.468 KB
13 Oct 2019 3.55 PM
root / root
0644
MM_VMS.pm
66.52 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_VOS.pm
0.731 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_Win32.pm
14.064 KB
19 Mar 2018 5.21 PM
root / root
0644
MM_Win95.pm
1.251 KB
19 Mar 2018 5.21 PM
root / root
0644
MY.pm
0.662 KB
19 Mar 2018 5.21 PM
root / root
0644
MakeMaker.pm
107.939 KB
13 Oct 2019 3.55 PM
root / root
0644
Manifest.pm
22.89 KB
1 Jan 2015 2.02 AM
root / root
0644
Mkbootstrap.pm
3.229 KB
19 Mar 2018 5.21 PM
root / root
0644
Mksymlists.pm
10.744 KB
19 Mar 2018 5.21 PM
root / root
0644
Packlist.pm
8.364 KB
28 May 2017 5.51 PM
root / root
0644
ParseXS.pm
65.012 KB
31 Jul 2017 10.46 PM
root / root
0644
ParseXS.pod
4.303 KB
31 Jul 2017 10.46 PM
root / root
0644
Typemaps.pm
26.167 KB
31 Jul 2017 10.46 PM
root / root
0644
testlib.pm
0.895 KB
19 Mar 2018 5.21 PM
root / root
0644
xsubpp
4.961 KB
13 Oct 2019 3.58 PM
root / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF