On Tue, Jul 28, 2009 at 5:18 PM, Glynn Clements<[email protected]> wrote: > Moritz Lennert wrote: > >> > any clue how to compile 6.5 with GEOS support? Vlib fails: >> >> What did you feed configure ? It should be something like this: >> >> --with-geos=/usr/bin/geos-config >> >> This works for me with libgeos-3.0.0. > > Ah. With geos-2.2.3, the configure checks pass, but the build fails. > > The GEOS configure checks should actually do some checking. Apart from > the version issue, there's no LOC_CHECK_LIBS or similar, so the checks > will pass even if the library is entirely absent. > > LOC_CHECK_LIBS checks for a specific symbol, so it should be > straightforward to check for a symbol which is only present in 3.x.
Something like this? [nete...@localhost grass70]$ svn diff configure.in Index: configure.in =================================================================== --- configure.in (revision 38604) +++ configure.in (working copy) @@ -761,7 +761,7 @@ fi LOC_CHECK_INCLUDES(geos_c.h,GEOS,$GEOS_CFLAGS) - + LOC_CHECK_LIBS(geos,GEOSGeom_createLinearRing,GEOS,$GEOS_CFLAGS,$GEOS_LIBS,,,,) AC_DEFINE(HAVE_GEOS) fi It generates: cat config.log .... configure:7637: checking whether to use GEOS configure:7654: checking for geos-config configure:7702: checking for geos_c.h configure:7710: gcc -E -I/usr/include conftest.c >/dev/null 2>conftest.out configure:7745: checking for GEOSGeom_createLinearRing in -lgeos configure:7762: gcc -o conftest -g -Wall -Werror-implicit-function-declaration -fno-common -mtune=nocona -m64 -minline-all-stringops -I/usr/include -Wl,--no-undefined -Wl,--export-dynamic -L/usr/lib64 conftest.c -lgeos 1>&5 /home/neteler/tmp/cckqk93a.o: In function `main': /home/neteler/grass70/configure:7758: undefined reference to `GEOSGeom_createLinearRing' collect2: ld returned 1 exit status ... (still no solution to the original problem: perhaps my much liked "-Werror-implicit-function-declaration" is the problem?) Markus _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
