[postgis-tickets] r17778 - Configure: Fix --with-wagyu flag

Raul raul at rmr.ninja
Mon Aug 26 08:10:45 PDT 2019


Author: algunenano
Date: 2019-08-26 08:10:45 -0700 (Mon, 26 Aug 2019)
New Revision: 17778

Modified:
   trunk/configure.ac
Log:
Configure: Fix --with-wagyu flag



Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2019-08-26 11:44:01 UTC (rev 17777)
+++ trunk/configure.ac	2019-08-26 15:10:45 UTC (rev 17778)
@@ -1487,13 +1487,9 @@
 
 HAVE_WAGYU=no
 if test "x$HAVE_PROTOBUF" = "xyes"; then
-    AC_ARG_WITH(
-            [wagyu],
-            AC_HELP_STRING([--without-wagyu], [Don't use the wagyu library]),
-            [HAVE_WAGYU=no],
-            [HAVE_WAGYU=yes])
+    AC_ARG_WITH([wagyu], AC_HELP_STRING([--without-wagyu], [Don't use the wagyu library]), [], [])
 
-    if test "x$HAVE_WAGYU" = "xyes"; then
+    if test "x$with_wagyu" != xno; then
             AC_MSG_RESULT([WAGYU: Wagyu usage requested])
 
             DEPS_SUBDIR="deps"
@@ -1542,6 +1538,7 @@
             CXXFLAGS="$CXXFLAGS_SAVE"
             CPPFLAGS="$CPPFLAGS_SAVE"
 
+            HAVE_WAGYU=yes
             AC_DEFINE([HAVE_WAGYU], [1], [Define to 1 if wagyu is being built])
             AC_SUBST([HAVE_WAGYU])
             AC_SUBST([WAGYU_CXX])



More information about the postgis-tickets mailing list