[libgda/LIBGDA_4.2] Correctly handle the --enable-introspection=no



commit c03ec3eadcbb1e51d552a1fce146c32db5adeb11
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 a2ad25c..d1c0f87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -440,8 +440,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])
@@ -450,11 +455,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"])
 
@@ -462,8 +462,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])
@@ -472,11 +477,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]