]> granicus.if.org Git - postgis/commitdiff
Fix --without-postgresql handling
authorSandro Santilli <strk@keybit.net>
Wed, 5 Aug 2015 07:25:51 +0000 (07:25 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 5 Aug 2015 07:25:51 +0000 (07:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13883 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 1b38afc047d3148458024739c7a6cebc4efec88a..4a236f11e37556b7ac49e4403af943581d051311 100644 (file)
@@ -357,6 +357,19 @@ fi
 AC_SUBST([ICONV_LDFLAGS])
 AC_SUBST([ICONV_CFLAGS])
 
+dnl ====================================
+dnl --without-postgresql
+dnl ====================================
+LIBLWGEOM_ONLY="no"
+AC_ARG_WITH([postgresql],
+    [AS_HELP_STRING([--without-postgresql],
+                    [Disable the postgresql extensions])],
+    [], [])
+if test "x$with_postgresql" = "xno"; then
+    LIBLWGEOM_ONLY="yes"
+    AC_MSG_RESULT([PostgreSQL support disabled])
+fi
+AC_SUBST([LIBLWGEOM_ONLY])
 
 dnl ===========================================================================
 dnl Detect the version of PostgreSQL installed on the system
@@ -1019,22 +1032,6 @@ 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 ====================================