comparison plugins/perl/common/Makefile.PL.in @ 6678:eb95f31fa4eb

[gaim-migrate @ 7203] The perl plugin should now work with perl v5.6.0. This is not tested yet, but it compiles and should work now. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 01 Sep 2003 22:16:10 +0000
parents e5c7149bc9ed
children 134d0001983d
comparison
equal deleted inserted replaced
6677:cce494e69d68 6678:eb95f31fa4eb
1 use 5.008; 1 use 5.006;
2 use ExtUtils::MakeMaker; 2 use ExtUtils::MakeMaker;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence 3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written. 4 # the contents of the Makefile that is written.
5 WriteMakefile( 5 WriteMakefile(
6 'NAME' => 'Gaim', 6 'NAME' => 'Gaim',
20 GAIM_DEBUG_WARNING GAIM_DEBUG_ERROR GAIM_DEBUG_FATAL)) { 20 GAIM_DEBUG_WARNING GAIM_DEBUG_ERROR GAIM_DEBUG_FATAL)) {
21 push @names, {name => $_, type => "IV", macro => 1}; 21 push @names, {name => $_, type => "IV", macro => 1};
22 } 22 }
23 23
24 ExtUtils::Constant::WriteConstants( 24 ExtUtils::Constant::WriteConstants(
25 NAME => 'Gaim::DebugLevel', 25 NAME => 'Gaim::DebugLevel',
26 NAMES => \@names 26 NAMES => \@names,
27 C_FILE => 'const-c.inc',
28 XS_FILE => 'const-xs.inc'
27 ); 29 );
28 } 30 }
31 else {
32 use File::Copy;
33 use File::Spec;
34
35 foreach my $file ('const-c.inc', 'const-xs.inc') {
36 my $fallback = File::Spec->catfile('fallback', $file);
37 copy ($fallback, $file) or die "Can't copy $fallback to $file: $!";
38 }
39 }