--- acinclude.m4.orig 2012-02-25 15:44:58.208371766 +0100 +++ acinclude.m4.orig 2012-02-25 15:46:03.592027548 +0100 @@ -2011,7 +2011,9 @@ AC_MSG_RESULT(${ENABLE_SYSTEM_GTK}) if test x"${ENABLE_SYSTEM_GTK}" = "xyes"; then dnl Check for Gtk+ headers and libraries. - PKG_CHECK_MODULES(GTK, gtk+-2.0,[GTK_FOUND=yes],[GTK_FOUND=no]) + dnl Explicitly include gthread-2.0 to get g_thread_init even on glib 2.32 + dnl where it is deprecated. + PKG_CHECK_MODULES(GTK, gtk+-2.0 gthread-2.0,[GTK_FOUND=yes],[GTK_FOUND=no]) if test "x${GTK_FOUND}" = xno then AC_MSG_ERROR([Could not find Gtk+; install Gtk+ or build with --disable-system-gtk to use the in-tree headers.])