From 1f9323eaa0ef383a9ff04e7bd108cc3adf080576 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 5 Aug 2015 06:57:34 +0000 Subject: [PATCH] Add --without-postgresql switch to only build liblwgeom (#3157) git-svn-id: http://svn.osgeo.org/postgis/trunk@13882 b70326c6-7e19-0410-871a-916f4a2858ee --- GNUmakefile.in | 6 ++++-- configure.ac | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 3c7f1d8ab..13c0d5284 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -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@ diff --git a/configure.ac b/configure.ac index 025ec94ea..1b38afc04 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ==================================== -- 2.50.0