From dcd9671f4eeafcbabde5218f4c71e7b310d8596d Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 13 Dec 2015 19:05:55 +0300 Subject: fix GTK+3 build when --without-cms is set fixes https://github.com/mate-desktop/eom/issues/111 - thanks to @oleid --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b24bda7..3f65f97 100644 --- a/configure.ac +++ b/configure.ac @@ -345,9 +345,13 @@ AC_SUBST(EOM_LIBS) # ******************************************************* # Check GDK rendering target -gdk_target=`$PKG_CONFIG --variable=target gdk-${GTK_API_VERSION}` +if test "${GTK_API_VERSION}" = "2.0" ; then + gdk_target_has_x11=`$PKG_CONFIG --variable=target gdk-${GTK_API_VERSION} | grep x11` +else + gdk_target_has_x11=`$PKG_CONFIG --variable=targets gdk-${GTK_API_VERSION} | grep x11` +fi -if test "x$have_lcms" = "xyes" || test "$gdk_target" = "x11"; then +if test "x$have_lcms" = "xyes" || test "$gdk_target_has_x11" != ""; then PKG_CHECK_MODULES(X11, [x11], have_x11=yes, have_x11=no) if test "x$have_x11" != "xyes"; then -- cgit v1.2.1