]> granicus.if.org Git - postgis/commitdiff
Double guard against geos versions of 3.4.dev form. (#1488)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 24 Jan 2012 19:42:45 +0000 (19:42 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 24 Jan 2012 19:42:45 +0000 (19:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8917 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 5c239f494294d5e2c0e2b9cd1bce9f436a8202d4..7adb3a38020c061f43a96c572363d558abf21277 100644 (file)
@@ -504,6 +504,9 @@ 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'`
+if test "x$GEOS_PATCH_VERSION" = "x"; then 
+       GEOS_PATCH_VERSION="0"; 
+fi
 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"