1use strict;
2use lib '.';
3use inc::Module::Install;
4
5print << '_';
6
7*** WARNING ***
8
9YAML::Syck version >=0.60 breaks compatibility with earlier versions of
10YAML::Syck and YAML.pm (<0.60) when serializing blessed references.
11
12See the COMPATIBILITY file for more information.
13
14_
15
16my $bad;
17if (eval { require YAML; $YAML::VERSION < 0.60 }) {
18    print "*** Pre-0.60 version of YAML.pm ($YAML::VERSION) detected.\n";
19    $bad++;
20}
21if (eval { require YAML::Syck; $YAML::Syck::VERSION < 0.60 }) {
22    print "*** Pre-0.60 version of YAML::Syck ($YAML::Syck::VERSION) detected.\n";
23    $bad++;
24}
25
26if ($bad and !is_admin()) {
27    exit() unless prompt("Continue installing YAML::Syck?", 'y') =~ /^y/i;
28}
29
30name            'YAML-Syck';
31license         'MIT';
32all_from        'lib/YAML/Syck.pm';
33cc_inc_paths    '.';
34cc_files        (glob("*.c"), (-e 'Syck.c' ? () : 'Syck.c'));
35
36# cc_optimize_flags '-g3';
37
38can_cc or die "This module requires a C compiler";
39
40include_deps    'Test::More';
41requires        'Scalar::Util';
42build_requires  'Devel::Leak' if defined $ENV{'AUTOMATED_TESTING'};
43WriteAll;
44