[banshee/better-now-playing: 68/70] [build] Make GIO optional with --disable-gio configure switch.



commit 464c6225e384c368879724a02712bb88d9c3f5be
Author: Alex Launi <alex launi gmail com>
Date:   Fri Jun 11 14:08:05 2010 -0400

    [build] Make GIO optional with --disable-gio configure switch.

 build/m4/banshee/gio.m4 |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/build/m4/banshee/gio.m4 b/build/m4/banshee/gio.m4
index e0700be..c92ae5d 100644
--- a/build/m4/banshee/gio.m4
+++ b/build/m4/banshee/gio.m4
@@ -1,21 +1,24 @@
 AC_DEFUN([BANSHEE_CHECK_GIO_SHARP],
 [
 	GNOMESHARP_REQUIRED=2.8
+	
+	AC_ARG_ENABLE(gio, AC_HELP_STRING([--diable-gio], [Disable GIO for IO operations]), ,enable_gio="yes")
+	
+	if test "x$enable_gio" = "xyes"; then
+	    PKG_CHECK_MODULES(GTKSHARP_BEANS,
+        	gtk-sharp-beans-2.0 >= $GNOMESHARP_REQUIRED,
+            enable_gio=yes, enable_gio=no)
 
-    enable_gio=no
+        PKG_CHECK_MODULES(GIOSHARP,
+        	gio-sharp-2.0 >= $GNOMESHARP_REQUIRED,
+            enable_gio="$enable_gio", enable_gio=no)
 
-	PKG_CHECK_MODULES(GTKSHARP_BEANS,
-		gtk-sharp-beans-2.0 >= $GNOMESHARP_REQUIRED,
-        enable_gio=yes, enable_gio=no)
-
-	PKG_CHECK_MODULES(GIOSHARP,
-		gio-sharp-2.0 >= $GNOMESHARP_REQUIRED,
-        enable_gio="$enable_gio", enable_gio=no)
-
-	PKG_CHECK_MODULES(GLIB_2_22,
-		glib-2.0 >= 2.22,
-        enable_gio="$enable_gio", enable_gio=no)
-
-	AM_CONDITIONAL(ENABLE_GIO, test "x$enable_gio" = "xyes")
+        PKG_CHECK_MODULES(GLIB_2_22,
+        	glib-2.0 >= 2.22,
+            enable_gio="$enable_gio", enable_gio=no)
+        AM_CONDITIONAL(ENABLE_GIO, "x$enable_gio" = "xyes")
+    else
+        AM_CONDITIONAL(ENABLE_GIO, false)
+    fi
 ])
 



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