3 use ExtUtils::MakeMaker;
9 eval q| require JSON |;
11 # B module can't install? I'm not careful for such a problem.
12 # Leave us alone today?
14 print "We try to look up lib/JSON.pm, but in vain. B module can't install?\n";
15 print "Set the environmental variable 'PERL_DL_NONLAZY' with 0.\n";
16 print "And see to ExtUtils::MM_Unix.\n";
17 print "perl says : $@";
18 print "We do not make Makefile by requiring Perl version 7.0.\n";
23 my $version = JSON->VERSION;
28 Welcome to JSON (v.$version)
29 =============================
32 ************************** CAUTION **************************
33 * This is 'JSON version 2' and there are many differences *
35 * Please check your applications useing old version. *
36 * See to 'INCOMPATIBLE CHANGES TO OLD VERSION' and 'TIPS' *
37 *************************************************************
45 'VERSION_FROM' => 'lib/JSON.pm', # finds $VERSION
49 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
50 (ABSTRACT_FROM => 'lib/JSON.pm', # retrieve abstract from module
51 AUTHOR => 'Makamaka Hannyaharamitu, E<lt>makamaka[at]cpan.orgE<gt>') : ()),
52 ( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE' => 'perl', ) : () ),
54 ( $ExtUtils::MakeMaker::VERSION >= 6.46 ? (
57 repository => 'https://github.com/makamaka/JSON',
60 'JSON::XS' => JSON->require_xs_version,
67 if ($] < 5.006) { # I saw to http://d.hatena.ne.jp/asakusabashi/20051231/p1
69 open(OUT,">Makefile.tmp") || die;
71 s/PERL_DL_NONLAZY=1//g;
76 rename("Makefile.tmp" => "Makefile");