# Wherein we ensure the INST_* and INSTALL* variables are set correctly
# when various PREFIX variables are set.
#
# Essentially, this test is a Makefile.PL.
BEGIN {
chdir 't' if -d 't';
}
else {
}
}
use strict;
use TieOut;
use Config;
chdir 't';
$| = 1;
my $Makefile = makefile_name;
PREREQ_PM => {},
);
INST_LIB\ =\ \S+\n
INST_ARCHLIB\ =\ \S+\n
Writing\ $Makefile\ for\ Big::Dummy\n
}x );
foreach my $prefix (qw(PREFIX PERLPREFIX SITEPREFIX VENDORPREFIX)) {
unlike( $mm->{$prefix}, qr/\$\(PREFIX\)/ );
}
$mm = WriteMakefile(
PREREQ_PM => {},
PERL_CORE => $ENV{PERL_CORE},
PREFIX => $PREFIX,
);
like( $stdout->read, qr{
Writing\ $Makefile\ for\ Big::Liar\n
Big::Liar's\ vars\n
INST_LIB\ =\ \S+\n
INST_ARCHLIB\ =\ \S+\n
}x );
}
my($perl_src, $mm_perl_src);
}
else {
$mm_perl_src = $mm->{PERL_SRC};
}
# Every INSTALL* variable must start with some PREFIX.
my %Install_Vars = (
);
if $Is_VMS;
# support for man page skipping
}
}
# Check that when installman*dir isn't set in Config no man pages
# are generated.
{
my $mm = WriteMakefile(
PREREQ_PM => {},
);
}
# Check that when installvendorman*dir is set in Config it is honored
# [rt.cpan.org 2949]
{
$ExtUtils::MM_Unix::Config{usevendorprefix} = 1;
my $mm = WriteMakefile(
PREREQ_PM => {},
# In case the local installation doesn't have man pages.
);
'installvendorman1dir (in %Config) not modified' );
'installvendorman3dir (not in %Config) set' );
}