diff options
author | Monsta <[email protected]> | 2015-12-13 19:05:55 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-12-13 19:09:20 +0300 |
commit | dcd9671f4eeafcbabde5218f4c71e7b310d8596d (patch) | |
tree | 140b7d264092725dff2ac38e7724b9a8ac55af0d /configure.ac | |
parent | 47e9b0064b89332794f3e621c8a20ab1898b70c3 (diff) | |
download | eom-dcd9671f4eeafcbabde5218f4c71e7b310d8596d.tar.bz2 eom-dcd9671f4eeafcbabde5218f4c71e7b310d8596d.tar.xz |
fix GTK+3 build when --without-cms is set
fixes https://github.com/mate-desktop/eom/issues/111 - thanks to @oleid
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files 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 |