--- a/finch/plugins/meson.build Thu Feb 15 23:17:27 2018 -0500
+++ b/finch/plugins/meson.build Fri Feb 16 00:15:22 2018 -0500
@@ -1,5 +1,5 @@
gntclipboard = library('gntclipboard', 'gntclipboard.c',
dependencies : [x11, libpurple_dep, libfinch_dep, glib],
--- a/meson.build Thu Feb 15 23:17:27 2018 -0500
+++ b/meson.build Fri Feb 16 00:15:22 2018 -0500
@@ -391,8 +391,6 @@
force_deps = not get_option('missing-dependencies')
-with_x = get_option('x') and not IS_WIN32
# #######################################################################
# # Check for GTK+ 2.18 and other things used by the GTK UI
# #######################################################################
@@ -429,28 +427,6 @@
#######################################################################
- # Check if we should compile with X support
- #######################################################################
- x11 = dependency('x11')
- conf.set('HAVE_X11', true)
-X11 development headers not found.
-Use -Dx=false if you do not need X11 support.
- enable_gestures = false
- #######################################################################
# Check for stuff needed by the Evolution integration plugin.
#######################################################################
@@ -508,6 +484,31 @@
#######################################################################
+# Check if we should compile with X support +####################################################################### +with_x = get_option('x') and not IS_WIN32 + x11 = dependency('x11') + conf.set('HAVE_X11', true) +X11 development headers not found. +Use -Dx=false if you do not need X11 support. +if not get_option('gtkui') or not with_x + enable_gestures = false +####################################################################### # Check for ncurses and other things used by the console UI
#######################################################################