From df00d64aae3a5751fda757623936d4863bf88f58 Mon Sep 17 00:00:00 2001
From: matoro <82255-matoro@users.noreply.gitlab.gnome.org>
Date: Wed, 22 Jun 2022 10:29:48 -0400
Subject: [PATCH] Fixed behavior for --{enable,disable}-introspection

This now works to compile using --disable-introspection even if
gobject-introspection is not installed at all
---
 configure | 40 ++++++++--------------------------------
 1 file changed, 8 insertions(+), 32 deletions(-)

diff --git a/configure b/configure
index e64849c..ca7cf21 100755
--- a/configure
+++ b/configure
@@ -1060,7 +1060,6 @@ enable_binreloc_threads
 enable_tools
 enable_json
 enable_introspection
-enable_gdaui_gi
 enable_vala
 enable_gdaui_vala
 enable_crypto
@@ -1808,9 +1807,6 @@ Optional Features:
   --enable-json           Enable support for JSON, disabled by default
   --enable-introspection=[no/auto/yes]
                           Enable introspection for this build
-  --disable-gdaui-gi=[yes/no]
-                          Disable GObject Introspection for libgda-ui
-                          [default=no]
   --enable-vala=[no/auto/yes]
                           Generate Vala bindings and extensions
   --disable-gdaui-vala=[yes/no]
@@ -21306,31 +21302,17 @@ fi
 
 
 
-
-# Check whether --enable-gdaui-gi was given.
-if test "${enable_gdaui_gi+set}" = set; then :
-  enableval=$enable_gdaui_gi;
-      if test x$enableval = xyes
-      then
-        disable_gdaui_gi=no
-      else
-        disable_gdaui_gi=yes
-      fi
-
-else
-
-      disable_gdaui_gi=no
-
+if test "x$found_introspection" != "xyes"
+then
+	disable_gda_gi=yes
+	disable_gdaui_gi=yes
 fi
 
-
-if test x$found_introspection != xyes
+if test "x$have_ui" != "xyes"
 then
-  disable_gda_gi=yes
-  disable_gdaui_gi=yes
+	disable_gdaui_gi=yes
 fi
-
- if test x$disable_gda_gi != xyes; then
+ if test "$disable_gda_gi" != "yes"; then
   ENABLE_GDA_GI_TRUE=
   ENABLE_GDA_GI_FALSE='#'
 else
@@ -21338,13 +21320,7 @@ else
   ENABLE_GDA_GI_FALSE=
 fi
 
-
-if test x$have_ui != xyes
-then
-	disable_gdaui_gi=yes
-fi
-
- if test x$disable_gdaui_gi != xyes; then
+ if test "$disable_gdaui_gi" != "yes"; then
   ENABLE_GDAUI_GI_TRUE=
   ENABLE_GDAUI_GI_FALSE='#'
 else
-- 
2.25.1

