[gegl-gtk] Add configure --disable-introspection switch



commit b3b7ef6a99599831dbf41cbf497ed30213ff7e89
Author: Jon Nordby <jononor gmail com>
Date:   Tue Jul 19 19:38:14 2011 +0200

    Add configure --disable-introspection switch

 configure.ac |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3b8bbb7..09c33e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,11 +179,6 @@ AC_ARG_ENABLE([docs],
 
 AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = "xyes")
 
-########################
-# Check GObject Introspection
-########################
-GOBJECT_INTROSPECTION_REQUIRE([0.9.5])
-
 ######################################
 # Checks for BABL
 ######################################
@@ -229,6 +224,19 @@ AM_CONDITIONAL(HAVE_GTK3, test "$have_gtk" = "3.0")
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
 
+########################
+# Check GObject Introspection
+########################
+AC_ARG_ENABLE([introspection],
+              [  --disable-introspection        disable GObject introspection support (default=no)],,
+              enable_introspection="yes")
+
+if test "x$enable_introspection" = "xyes"; then
+	GOBJECT_INTROSPECTION_REQUIRE([0.9.5]) # Will abort on failure
+fi
+
+AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$enable_introspection" = "xyes")
+
 ######################################
 # Checks for gtk-doc and docbook-tools
 ######################################



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