]> granicus.if.org Git - postgis/commitdiff
Added automatic test for version string and setting of USE_PG72 to
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 3 Sep 2002 15:31:39 +0000 (15:31 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 3 Sep 2002 15:31:39 +0000 (15:31 +0000)
appropriate value, as submitted by Greg Stark.

git-svn-id: http://svn.osgeo.org/postgis/trunk@183 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile

index 8b4fae8e982b5723a4234e01e7cfb83d4cbf06f0..e6fc86a1ffbf6d039c0a8a877361d31e442626ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +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
@@ -23,6 +21,17 @@ else
        libdir := ${PWD}
 endif
 
+#---------------------------------------------------------------
+# Test the version string and select the correct GiST index
+# bindings.
+ifneq ($(findstring 7.2,$(VERSION)),)
+       USE_PG72=1
+else
+       USE_PG72=0
+endif
+
+#---------------------------------------------------------------
+# Regression test temporary database.
 TEST_DB=geom_regress
 
 #---------------------------------------------------------------