From: Paul Ramsey Date: Fri, 20 Jan 2012 23:05:49 +0000 (+0000) Subject: Make raster on by default and --without-raster the configuration parameter to disable it. X-Git-Tag: 2.0.0alpha2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00a3e559cf5949510649303e364025849c9a52d0;p=postgis Make raster on by default and --without-raster the configuration parameter to disable it. git-svn-id: http://svn.osgeo.org/postgis/trunk@8896 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 14b4d477d..7ddea223a 100644 --- a/configure.ac +++ b/configure.ac @@ -796,12 +796,12 @@ dnl ==================================== dnl raster stuff dnl ==================================== AC_ARG_WITH([raster], - [AS_HELP_STRING([--with-raster], - [compile the raster extension (requires GDAL >= 1.6.0) @<:@default=no@:>@])], - [RASTER="raster"], [RASTER=""]) + [AS_HELP_STRING([--without-raster], + [Disable the raster extension])], + [RASTER="raster"], + [RASTER=""]) -if test "x$RASTER" = "xraster"; then dnl # { - AC_MSG_RESULT([RASTER: Raster support requested]) +if test "x$with_raster" != "xno"; then dnl # { AC_CONFIG_HEADERS([raster/raster_config.h]) @@ -910,14 +910,14 @@ if test "x$RASTER" = "xraster"; then dnl # { dnl Ensure we are using minimum required version of GDAL if test ! "$GDAL_VERSION_NUMBER" -ge "$GDAL_MIN_VERSION_NUMBER" ; then AC_MSG_RESULT([not found]) - AC_MSG_ERROR([PostGIS requires GDAL >= $GDAL_MIN_VERSION]) + AC_MSG_ERROR([PostGIS raster requires GDAL >= $GDAL_MIN_VERSION. Use --without-raster to build without raster support.]) fi AC_DEFINE_UNQUOTED([POSTGIS_GDAL_VERSION], [$POSTGIS_GDAL_VERSION], [GDAL library version]) AC_SUBST([POSTGIS_GDAL_VERSION]) else AC_MSG_RESULT([not found]) - AC_MSG_ERROR([gdal-config not found. Try --with-gdalconfig=]) + AC_MSG_ERROR([gdal-config not found. With --without-raster or try --with-gdalconfig=]) fi AC_MSG_RESULT([found]) @@ -958,6 +958,7 @@ if test "x$RASTER" = "xraster"; then dnl # { raster/scripts/python/Makefile" else dnl # }{ + AC_MSG_RESULT([RASTER: Raster support disabled]) RT_MAKEFILE_LIST="raster/Makefile" fi dnl # }