File libfm-0.1.14-disable-gio-extension.patch of Package libfm

diff -ur libfm-0.1.15.orig/configure.ac libfm-0.1.15/configure.ac
--- libfm-0.1.15.orig/configure.ac	2010-11-07 12:12:50.000000000 +0100
+++ libfm-0.1.15/configure.ac	2011-01-18 14:46:20.000000000 +0100
@@ -53,6 +53,9 @@
 AC_SUBST(GIO_CFLAGS)
 AC_SUBST(GIO_LIBS)
 
+PKG_CHECK_MODULES(GIO_UNIX_227, [gio-unix-2.0 < 2.27.0], gio_below_227=yes, gio_below_227=no)
+AM_CONDITIONAL(BUILD_GIO_EXTENSION, test "$gio_below_227" = "yes")
+
 gmodule_modules="gmodule-2.0"
 PKG_CHECK_MODULES(GMODULE, [$gmodule_modules])
 AC_SUBST(GMODULE_CFLAGS)
@@ -106,9 +109,11 @@
     CPPFLAGS="$CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
 fi
 
+if test "$gio_below_227" = "yes"; then
 # GIO extension module
 giomodulesdir=$libdir/gio/modules
 AC_SUBST(giomodulesdir)
+fi
 
 
 GETTEXT_PACKAGE=libfm
Only in libfm-0.1.15: libfm-0.1.15-disable-gio-extension.patch
diff -ur libfm-0.1.15.orig/src/Makefile.am libfm-0.1.15/src/Makefile.am
--- libfm-0.1.15.orig/src/Makefile.am	2010-11-07 12:12:50.000000000 +0100
+++ libfm-0.1.15/src/Makefile.am	2011-01-18 14:26:48.000000000 +0100
@@ -276,6 +276,7 @@
 endif
 
 
+if BUILD_GIO_EXTENSION
 # GIO module implementing some extension points
 
 giomodules_LTLIBRARIES = libgiofm.la
@@ -305,6 +306,7 @@
 	$(GIO_LIBS) \
 	$(INTLLIBS) \
 	$(NULL)
+endif
 
 
 # GObject marshallers
openSUSE Build Service is sponsored by