]> granicus.if.org Git - postgis/commitdiff
Make topology enabled the default
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 23 Jan 2012 23:27:24 +0000 (23:27 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 23 Jan 2012 23:27:24 +0000 (23:27 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8908 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 3fa2ffe6d0edf2916041f3dfdeb02b6389180e9b..5c239f494294d5e2c0e2b9cd1bce9f436a8202d4 100644 (file)
@@ -774,19 +774,30 @@ SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDF
 AC_SUBST([SHLIB_LINK])
 dnl AC_MSG_RESULT([SHLIB_LINK: $SHLIB_LINK])
 
+
+AC_ARG_WITH([raster],
+    [AS_HELP_STRING([--without-raster],
+                    [Disable the raster extension])],
+    [], [])
+
+
 dnl ====================================
 dnl topology stuff
 dnl ====================================
 AC_ARG_WITH([topology],
-    [AS_HELP_STRING([--with-topology],
-                    [compile the topology extension @<:@default=no@:>@])],
-    [TOPOLOGY="topology"], [TOPOLOGY=""])
+    [AS_HELP_STRING([--without-topology],
+                    [Disable the topology extension])],
+    [], [])
 
-if test "x$TOPOLOGY" = "xtopology"; then
+if test "x$with_topology" != "xno"; then
+
+    TOPOLOGY="topology"
     AC_MSG_RESULT([TOPOLOGY: Topology support requested])
        if test $GEOS_NUMERIC_VERSION -lt 332; then
-               AC_MSG_ERROR([Topology requires GEOS version >= 3.3.2])
+               AC_MSG_ERROR([Topology requires GEOS version >= 3.3.2. Use --without-topology or install a newer GEOS.])
        fi
+else
+    AC_MSG_RESULT([TOPOLOGY: Topology support disabled])
 fi
 
 AC_SUBST([TOPOLOGY])
@@ -1012,6 +1023,8 @@ AC_MSG_RESULT([  Libxml2 version:      ${POSTGIS_LIBXML2_VERSION}])
 AC_MSG_RESULT([  JSON-C support:       ${HAVE_JSON}])
 AC_MSG_RESULT([  PostGIS debug level:  ${POSTGIS_DEBUG_LEVEL}])
 AC_MSG_RESULT([  Perl:                 ${PERL}])
+AC_MSG_RESULT()
+AC_MSG_RESULT([ --------------- Extensions --------------- ])
 if test "x$RASTER" = "xraster"; then
     AC_MSG_RESULT([  PostGIS Raster:       ${POSTGIS_RASTER_LIB_VERSION}])
 else