From e3a240da05256411347a928ce26cba6cfdd6cbc3 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 26 Oct 2015 08:33:57 +0000 Subject: [PATCH] Accept --with-sfcgal with no arguments as a valid way to enable it Closes #3348 git-svn-id: http://svn.osgeo.org/postgis/trunk@14328 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1a7adcb1a..81170fa29 100644 --- a/configure.ac +++ b/configure.ac @@ -664,11 +664,14 @@ dnl =========================================================================== AC_ARG_WITH([sfcgal], [AS_HELP_STRING([--with-sfcgal=PATH], [Add SFCGAL support. ARG allows to specify an alternate PATH to sfcgal-config])], [SFCGAL_CONFIG="$withval"], - [AC_PATH_PROG([SFCGAL_CONFIG], [sfcgal-config], [])]) + [with_sfcgal=yes]) HAVE_SFCGAL="no" if test "x$with_sfcgal" != "xno"; then + if test "x$with_sfcgal" = "xyes"; then + AC_PATH_PROG([SFCGAL_CONFIG], [sfcgal-config], []) + fi if test -x "$SFCGAL_CONFIG"; then SFCGAL_VERSION=`$SFCGAL_CONFIG --version` || AC_MSG_ERROR([cannot determine sfcgal version (tried with $SFCGAL_CONFIG --version)]) SFCGAL_LDFLAGS=`$SFCGAL_CONFIG --libs` -- 2.40.0