[postgis-users] Eliminating USE_PG72
Greg Stark
gsstark at mit.edu
Tue Sep 3 01:19:04 PDT 2002
It seems kind of silly to me to default to only working with old versions of
PostgreSQL, won't this be wrong for all new users? It seems doubly silly since
this is easily fixed to be automatic. This patch is only tested with a couple
versions of PostgreSQL though:
--- Makefile.~1~ Sat Jul 6 13:51:34 2002
+++ Makefile Tue Sep 3 04:05:53 2002
@@ -1,8 +1,5 @@
# Configuration Directives
#---------------------------------------------------------------
-# Set USE_PG72 to 1 for PostgreSQL version >= 7.2
-USE_PG72=0
-#---------------------------------------------------------------
# Set USE_PROJ to 1 for Proj4 reprojection support
USE_PROJ=0
@@ -21,6 +18,12 @@
top_builddir = ${PGSQL_SRC}
include $(top_builddir)/src/Makefile.global
libdir := ${PWD}
+endif
+
+ifneq (,${findstring 7.2,${VERSION}})
+ USE_PG72=1
+else
+ USE_PG72=0
endif
TEST_DB=geom_regress
--
greg
More information about the postgis-users
mailing list