diff -ur libfm-0.1.15.git.1310495032.orig/configure.ac libfm-0.1.15.git.1310495032/configure.ac
--- libfm-0.1.15.git.1310495032.orig/configure.ac	2011-07-15 17:36:28.000000000 +0200
+++ libfm-0.1.15.git.1310495032/configure.ac	2011-07-15 17:40:26.000000000 +0200
@@ -38,7 +38,20 @@
 # intltool
 IT_PROG_INTLTOOL([0.40.0])
 
-pkg_modules="$gio_modules gtk+-2.0 >= 2.18.0 cairo >= 1.8.0"
+AC_ARG_ENABLE(gtk3,
+AC_HELP_STRING([--enable-gtk3],[enable to use gtk-3.0 instead of gtk-2.0]),
+[case "${enableval}" in
+  yes)  enable_gtk3=yes ;;
+  no)   enable_gtk3=no ;;
+  *) AC_MSG_ERROR([bad value "${enableval}" for --enable-gtk3, use "yes" (default) or "no".]) ;;
+esac],[])
+
+if test "x$enable_gtk3" = "xyes" ; then
+  CFLAGS="$CFLAGS -DENABLE_GTK3"
+  pkg_modules="gtk+-3.0"
+else
+  pkg_modules="gtk+-2.0 >= 2.16.0"
+fi
 PKG_CHECK_MODULES(GTK, [$pkg_modules])
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
