[postgis-tickets] r14329 - Fix build on systems with no sfcgal installed

Sandro Santilli strk at keybit.net
Mon Oct 26 02:07:50 PDT 2015


Author: strk
Date: 2015-10-26 02:07:50 -0700 (Mon, 26 Oct 2015)
New Revision: 14329

Modified:
   trunk/configure.ac
Log:
Fix build on systems with no sfcgal installed

See https://travis-ci.org/postgis/postgis/builds/87413334
Ref #3348

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2015-10-26 08:33:57 UTC (rev 14328)
+++ trunk/configure.ac	2015-10-26 09:07:50 UTC (rev 14329)
@@ -664,12 +664,12 @@
 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"], 
-	[with_sfcgal=yes])
+	[with_sfcgal=auto])
 
 HAVE_SFCGAL="no"
 
 if test "x$with_sfcgal" != "xno"; then
-  if test "x$with_sfcgal" = "xyes"; then
+  if test "x$with_sfcgal" = "xyes" -o "x$with_sfcgal" = "xauto"; then
 	  AC_PATH_PROG([SFCGAL_CONFIG], [sfcgal-config], [])
   fi
 	if test -x "$SFCGAL_CONFIG"; then
@@ -695,7 +695,7 @@
 		fi
 
 	else
-		if test "x$with_sfcgal" != "x"; then
+		if test "x$with_sfcgal" != "xauto"; then
 			AC_MSG_ERROR([sfcgal-config cannot be found. Please install sfcgal])
 		fi
 	fi



More information about the postgis-tickets mailing list