USE_GEOS ?= 0
GEOS_DIR ?= /usr/local
+#
+# Set USE_JTS to 1 if you have libjts installed.
+#
+USE_JTS ?= 0
+JTS_INCLUDES ?= jts
+JTS_LIBDIR ?= jts
+
+
#
# Set USE_STATS to 1 for new GiST statistics collection support
# Note that this support requires additional columns in
# END OF CONFIGURATION
#---------------------------------------------------------------
+# Use JTS instead of GEOS if available
+ifeq ($(USE_JTS),1)
+ USE_GEOS=0
+endif
+
+
subdir=contrib/postgis
top_builddir = ${PGSQL_SRC}
include $(top_builddir)/src/Makefile.global