This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Deparse state variables.
[perl5.git] / ext / threads / Makefile.PL
CommitLineData
0f1612a7
JH
1# Module makefile for threads (using ExtUtils::MakeMaker)
2
3require 5.008;
4
5use strict;
6use warnings;
7
fc6e75a2 8use ExtUtils::MakeMaker;
0f1612a7
JH
9
10
11# Build options for different environments
12my @conditional_params;
13if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
14 # Core
15 push(@conditional_params, 'MAN3PODS' => {},
16 'NORECURS' => 1);
17} else {
18 # CPAN
f2cba68d 19 push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H');
0f1612a7
JH
20}
21
fc6e75a2 22
fc6e75a2 23WriteMakefile(
0f1612a7
JH
24 'NAME' => 'threads',
25 'AUTHOR' => 'Artur Bergman <sky AT crucially DOT net>',
26 'VERSION_FROM' => 'threads.pm',
27 'ABSTRACT_FROM' => 'threads.pm',
28 'PM' => {
29 'threads.pm' => '$(INST_LIBDIR)/threads.pm',
30 },
31 'PREREQ_PM' => {
32 'threads::shared' => 0,
33 'XSLoader' => 0,
34 },
35 'INSTALLDIRS' => 'perl',
36
37 ((ExtUtils::MakeMaker->VERSION() lt '6.25') ?
38 ('PL_FILES' => { }) : ()),
39 ((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
40 ('LICENSE' => 'perl') : ()),
41
42 @conditional_params
fc6e75a2
AB
43);
44
0f1612a7 45# EOF