MapServer / MapServer-import

3 stars 2 forks source link

gpc_polygon_clip is bad configure test function for agg, sometimes missing #2204

Closed tbonfort closed 12 years ago

tbonfort commented 12 years ago

Reporter: warmerdam Date: 2007/08/04 - 17:05

Even Rouault reports (on mapserver-dev):

Currently in configure.in, if you specifiy "--with-agg" or "--with-agg=yes" there is a check for gpc_polygon_clip to enable AGG build. AC_CHECK_LIB(agg, gpc_polygon_clip, AGG_ENABLED=-DUSE_AGG,,,)

However, GPC has a non free licence ("free for non-commercial use"). See http://www.antigrain.com/license/index.html. So, my build of AGG doesn't include GPC.

I've removed the check for gpc_polygon_clip in configure.in and mapserver 5.0.0-beta2 builds fine.


I can confirm that at AGG, as packaged for free software distributions, generally does not include the GPC functionality. If we aren't using it, we should use another test for AGG in configure.

tbonfort commented 12 years ago

Author: warmerdam Date: 2007/08/04 - 18:05

Tomas Bonfort writes:

for the time being we don't use it, and I don't plan on using it. for polygon fills there's an AGG function.

from antigrain.com: In AGG you can get the same visual result using Scanline Boolean Algebra. It operates with scanline shapes and in average works 5-10 times faster than GPC

tbonfort commented 12 years ago

Author: sdlime Date: 2007/08/08 - 09:35 I removed the test... Configure blindly assumes that libagg is there, although I added the check for freetype as Frank had done. b9bef944964f2660f9c9250afe3b7fd44e1b826a (r6500)

Steve