diff options
author | Monsta <[email protected]> | 2015-12-13 19:05:55 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-12-13 19:05:55 +0300 |
commit | f8426fec9de47f2fdcc73f8ead03f282955d7982 (patch) | |
tree | c7edc479bc2279a909f2a00a364e7511b8f01c56 | |
parent | 4c67a412e445e6376173b757e2f532b26aa63195 (diff) | |
download | eom-f8426fec9de47f2fdcc73f8ead03f282955d7982.tar.bz2 eom-f8426fec9de47f2fdcc73f8ead03f282955d7982.tar.xz |
fix GTK+3 build when --without-cms is set
fixes https://github.com/mate-desktop/eom/issues/111 - thanks to @oleid
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c5e264a..4a82b96 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 |