Add --without-postgresql switch to only build liblwgeom (#3157)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13882 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2015-08-05 06:57:34 +00:00
parent ccb9499d82
commit 1f9323eaa0
2 changed files with 20 additions and 2 deletions

View file

@ -4,8 +4,10 @@
#
#-----------------------------------------------------
# todo: add all subdirs
SUBDIRS = liblwgeom libpgcommon postgis regress @RASTER@ @TOPOLOGY@ loader utils doc @EXTENSIONS@
SUBDIRS = liblwgeom
ifeq (@LIBLWGEOM_ONLY@,no)
SUBDIRS += libpgcommon postgis regress @RASTER@ @TOPOLOGY@ loader utils doc @EXTENSIONS@
endif
PERL = @PERL@

View file

@ -1019,6 +1019,22 @@ fi
AC_SUBST([TOPOLOGY])
dnl ====================================
dnl --without-postgresql
dnl ====================================
AC_ARG_WITH([postgresql],
[AS_HELP_STRING([--without-postgresql],
[Disable the postgresql extensions])],
[], [LIBLWGEOM_ONLY="no"])
if test "x$with_postgresql" != "xno"; then
LIBLWGEOM_ONLY="yes"
AC_MSG_RESULT([PostgreSQL support requested])
else
AC_MSG_RESULT([PostgreSQL support disabled])
fi
AC_SUBST([LIBLWGEOM_ONLY])
dnl ====================================
dnl interrupt tests
dnl ====================================