From: Paul Ramsey Date: Tue, 24 Jan 2012 19:42:45 +0000 (+0000) Subject: Double guard against geos versions of 3.4.dev form. (#1488) X-Git-Tag: 2.0.0alpha2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f6bcd213d4c607e9fa144b4297e17ed09e65abc;p=postgis Double guard against geos versions of 3.4.dev form. (#1488) git-svn-id: http://svn.osgeo.org/postgis/trunk@8917 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 5c239f494..7adb3a380 100644 --- a/configure.ac +++ b/configure.ac @@ -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"