]> granicus.if.org Git - postgis/commitdiff
Pass GEOS version to unit tests, skip test for SPLIT when building against older...
authorSandro Santilli <strk@keybit.net>
Thu, 3 Nov 2011 17:09:17 +0000 (17:09 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 3 Nov 2011 17:09:17 +0000 (17:09 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8085 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/Makefile.in
liblwgeom/cunit/cu_split.c

index 51d95bbbbfb3beb3f8c8702ed87cfe1ab73d7598..2e9e9840df00f0f61b4fccaf60ca9bc1c9b7d8d1 100644 (file)
@@ -11,7 +11,7 @@
 # **********************************************************************
 
 CC=@CC@
-CFLAGS=@CFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@
+CFLAGS=@CFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ -DPOSTGIS_GEOS_VERSION=@POSTGIS_GEOS_VERSION@
 LDFLAGS = @GEOS_LDFLAGS@ -lgeos_c
 top_builddir = @top_builddir@
 SHELL = @SHELL@
index acad3bb007739063d1c752c7ac26c11fc4522175..c12a2c338b3d67f91c1075a26305cc724c4294c7 100644 (file)
@@ -18,6 +18,7 @@
 
 static void test_lwline_split_by_point_to(void)
 {
+#if POSTGIS_GEOS_VERSION >= 33
        LWLINE *line;
        LWPOINT *point;
        LWMLINE *coll;
@@ -77,6 +78,7 @@ static void test_lwline_split_by_point_to(void)
 
        lwgeom_free((LWGEOM*)line);
 
+#endif /* POSTGIS_GEOS_VERSION >= 33 */
 }
 
 /*