diff options
Diffstat (limited to 'Perl/Makefile.PL')
-rw-r--r-- | Perl/Makefile.PL | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Perl/Makefile.PL b/Perl/Makefile.PL index bf76ab5..150a32e 100644 --- a/Perl/Makefile.PL +++ b/Perl/Makefile.PL @@ -100,8 +100,7 @@ sub get_flags { if ($WIN) { $DEF_FLAGS{'SHAPE'} = 0; } -# my $defines = '-DPTK'; - my $defines = '-DPTK -DPTK_800'; + my $defines = '-DPTK'; print "Configuring with:\n "; foreach my $flag (keys %DEF_FLAGS) { print "$flag=", $DEF_FLAGS{$flag} ? 'ok' : 'no', " "; @@ -112,6 +111,12 @@ sub get_flags { } } } + if ($Tk::VERSION =~ /^800/) { + $defines .= " -DPTK_800"; + print "PTK=800"; + } else { + print "PTK=804"; + } print "\n"; return $defines; } |