[libgda] Correctly handle the --enable-introspection=no



commit aed82fb4446ec9e6edd0cecb1d67a52204f61352
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Apr 28 21:54:33 2011 +0200

    Correctly handle the --enable-introspection=no

 configure.ac |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c17f1a7..313b573 100644
--- a/configure.ac
+++ b/configure.ac
@@ -417,8 +417,13 @@ AC_ARG_ENABLE([gda-gi],
     AS_HELP_STRING([--enable-gda-gi], [Enable GObject Introspection for libgda [default=auto]]),
     [enable_gda_gi=$enableval],[enable_gda_gi=auto])
 
-if test "x$found_introspection" = xno
+if test "x$found_introspection" = "xyes"
 then
+    if test "x$enable_gda_gi" = xauto
+    then
+        enable_gda_gi=yes
+    fi
+else
     if test "x$enable_gda_gi" = xyes
     then
 	AC_MSG_ERROR([Introspection for Libgda is requested but not available])
@@ -427,11 +432,6 @@ then
     then
 	enable_gda_gi=no
     fi
-else
-    if test "x$enable_gda_gi" = xauto
-    then
-        enable_gda_gi=yes
-    fi
 fi
 AM_CONDITIONAL(ENABLE_GDA_GI, [test "$enable_gda_gi" = "yes"])
 
@@ -439,8 +439,13 @@ AC_ARG_ENABLE([gdaui-gi],
     AS_HELP_STRING([--enable-gdaui-gi], [Enable GObject Introspection for libgda-ui [default=auto]]),
     [enable_gdaui_gi=$enableval],[enable_gdaui_gi=auto])
 
-if test "x$found_introspection" = xno
+if test "x$found_introspection" = "xyes"
 then
+    if test "x$enable_gdaui_gi" = xauto
+    then
+        enable_gdaui_gi=yes
+    fi
+else
     if test "x$enable_gdaui_gi" = xyes
     then
 	AC_MSG_ERROR([Introspection for Libgda UI is requested but not available])
@@ -449,11 +454,6 @@ then
     then
 	enable_gdaui_gi=no
     fi
-else
-    if test "x$enable_gdaui_gi" = xauto
-    then
-        enable_gdaui_gi=yes
-    fi
 fi
 AM_CONDITIONAL(ENABLE_GDAUI_GI, [test "$enable_gdaui_gi" = "yes"])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]