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"
+GEOS_NUMERIC_PATCH_VERSION=`printf "%02d" $GEOS_PATCH_VERSION`
+GEOS_NUMERIC_MINOR_VERSION=`printf "%02d" $GEOS_MINOR_VERSION`
+GEOS_NUMERIC_VERSION="$GEOS_MAJOR_VERSION$GEOS_NUMERIC_MINOR_VERSION$GEOS_NUMERIC_PATCH_VERSION"
dnl Ensure that we are using GEOS >= 3.3.0
AC_MSG_RESULT([checking GEOS version... $GEOS_FULL_VERSION])
-if test ! "$GEOS_NUMERIC_VERSION" -ge 330; then
+if test ! "$GEOS_NUMERIC_VERSION" -ge 30300; then
AC_MSG_ERROR([PostGIS requires GEOS >= 3.3.0])
fi
TOPOLOGY="topology"
AC_MSG_RESULT([TOPOLOGY: Topology support requested])
- if test "$GEOS_NUMERIC_VERSION" -lt 332; then
+ if test "$GEOS_NUMERIC_VERSION" -lt 30302; then
AC_MSG_ERROR([Topology requires GEOS version >= 3.3.2. Use --without-topology or install a newer GEOS.])
fi
else
AC_MSG_RESULT([ mathml2.dtd: ${MATHML2_DTD}])
AC_MSG_RESULT()
-if test "$GEOS_NUMERIC_VERSION" -lt 332; then
+if test "$GEOS_NUMERIC_VERSION" -lt 30302; then
AC_MSG_RESULT([ --------- GEOS VERSION NOTICE ------------ ])
AC_MSG_RESULT([ You are building against GEOS ${GEOS_FULL_VERSION} ])
AC_MSG_RESULT([ To take advantage of all the features of ])
TESTS_EXPECTED = $(TESTS:.sql=_expected)
regress/topogeo_addlinestring_expected: Makefile
-ifeq ($(shell expr $(GEOS_NUMERIC_VERSION) ">=" 338),1)
+ifeq ($(shell expr $(GEOS_NUMERIC_VERSION) ">=" 30308),1)
cp regress/topogeo_addlinestring_expected_newsnap regress/topogeo_addlinestring_expected
else
cp regress/topogeo_addlinestring_expected_oldsnap regress/topogeo_addlinestring_expected