]> granicus.if.org Git - postgis/commitdiff
Make GEOS test insist on >= 3.1.1
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 26 Jan 2010 21:10:56 +0000 (21:10 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 26 Jan 2010 21:10:56 +0000 (21:10 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5171 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 7c8c85fcf57bb9c93f4c7af7808a50751da5f25a..cc8153973c9521ea9fc94e65af47bbecbeb28469 100644 (file)
@@ -465,13 +465,15 @@ dnl and then combine to give the final version.
 dnl This is to guard against user error... 
 GEOS_MAJOR_VERSION=`$GEOSCONFIG --version | cut -d. -f1 | sed 's/[[^0-9]]//g'`
 GEOS_MINOR_VERSION=`$GEOSCONFIG --version | cut -d. -f2 | sed 's/[[^0-9]]//g'`
+GEOS_PATCH_VERSION=`$GEOSCONFIG --version | cut -d. -f3 | sed 's/[[^0-9]]//g'`
 GEOS_FULL_VERSION=`$GEOSCONFIG --version`
 POSTGIS_GEOS_VERSION="$GEOS_MAJOR_VERSION$GEOS_MINOR_VERSION"
+GEOS_NUMERIC_VERSION="$GEOS_MAJOR_VERSION$GEOS_MINOR_VERSION$GEOS_PATCH_VERSION"
 
 dnl Ensure that we are using GEOS >= 3.1.0
 AC_MSG_RESULT([checking GEOS version... $GEOS_FULL_VERSION])
-if test ! "$POSTGIS_GEOS_VERSION" -ge 31; then
-       AC_MSG_ERROR([PostGIS requires GEOS >= 3.1])
+if test ! "$GEOS_NUMERIC_VERSION" -ge 311; then
+       AC_MSG_ERROR([PostGIS requires GEOS >= 3.1.1])
 fi
 
 dnl Extract the linker and include flags