From 00b0b5a898d9a705092704cb234ca5a5cdd6570b Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 24 Jan 2005 14:21:48 +0000 Subject: Fixes for the conditional compilation of the atc code. --- Perl/Makefile.PL.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Perl') diff --git a/Perl/Makefile.PL.in b/Perl/Makefile.PL.in index 2a56071..611dddb 100644 --- a/Perl/Makefile.PL.in +++ b/Perl/Makefile.PL.in @@ -24,15 +24,15 @@ if (!$TkLibDir) print "Configuring version $VERSION for $platform platform...\n"; print "Using $TkLibDir as Tk library...\n"; -my @GENERIC_C = ('Track.c', 'Tabular.c', 'Reticle.c', 'Map.c', 'Rectangle.c', 'Arc.c', 'Curve.c', - 'Item.c', 'PostScript.c', 'MapInfo.c', 'Attrs.c', 'Draw.c', 'Geo.c', 'List.c', +my @GENERIC_C = ('Tabular.c', 'Rectangle.c', 'Arc.c', 'Curve.c', + 'Item.c', 'PostScript.c', 'Attrs.c', 'Draw.c', 'Geo.c', 'List.c', 'perfos.c', 'Transfo.c', 'Group.c', 'Icon.c', 'Text.c', 'Image.c', 'Color.c', 'Field.c', 'Triangles.c', 'Window.c', 'tkZinc.c'); my @LIBTESS_C = ('dict.c', 'geom.c', 'memalloc.c', 'mesh.c', 'normal.c', 'priorityq.c', 'render.c', 'sweep.c', 'tess.c', 'tessmono.c'); -my @OM_C = ('OverlapMan.c'); +my @ATC_C = ('OverlapMan.c', 'Track.c', 'Reticle.c', 'Map.c', 'MapInfo.c'); my @WIN_C = ('WinPort.c'); @@ -79,7 +79,7 @@ sub get_flags { my %DEF_FLAGS = ('GL' => 1, 'SHAPE' => 1, 'GL_DAMAGE' => 1, - 'OM' => 1 + 'ATC' => 1 ); foreach my $arg (@ARGV) { @@ -91,9 +91,9 @@ sub get_flags { $DEF_FLAGS{'GL_DAMAGE'} = 0; } } - elsif ($name =~ /(with-om)/i) { + elsif ($name =~ /(with-atc)/i) { if ($value =~ /no/i) { - $DEF_FLAGS{'OM'} = 0; + $DEF_FLAGS{'ATC'} = 0; } } elsif ($name =~ /(with-shape)/i) { @@ -119,8 +119,8 @@ sub get_flags { print "$flag=", $DEF_FLAGS{$flag} ? 'ok' : 'no', " "; if ($DEF_FLAGS{$flag}) { $defines = $defines . " " . "-D$flag"; - if ($flag eq 'OM') { - push @C, @OM_C + if ($flag eq 'ATC') { + push @C, @ATC_C } } } -- cgit v1.1