pidgin/pidgin

Use correct X flag when configuring GNT plugins.

2018-02-16, Elliott Sales de Andrade
a62a8251e350
Parents b149f0a61857
Children 841e898fca9a
Use correct X flag when configuring GNT plugins.
--- 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 @@
if PLUGINS
- if ENABLE_GTK
+ if with_x
gntclipboard = library('gntclipboard', 'gntclipboard.c',
dependencies : [x11, libpurple_dep, libfinch_dep, glib],
name_prefix : '',
--- 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 @@
endif
#######################################################################
- # Check if we should compile with X support
- #######################################################################
- if with_x
- x11 = dependency('x11')
- if x11.found()
- conf.set('HAVE_X11', true)
- else
- with_x = false
- if force_deps
- error('''
-X11 development headers not found.
-Use -Dx=false if you do not need X11 support.
-''')
- endif
- endif
- endif
- if not with_x
- enable_gestures = false
- x11 = []
- endif
-
- #######################################################################
# Check for stuff needed by the Evolution integration plugin.
#######################################################################
if enable_gevolution
@@ -508,6 +484,31 @@
#######################################################################
+# Check if we should compile with X support
+#######################################################################
+with_x = get_option('x') and not IS_WIN32
+
+if with_x
+ x11 = dependency('x11')
+ if x11.found()
+ conf.set('HAVE_X11', true)
+ else
+ with_x = false
+ if force_deps
+ error('''
+X11 development headers not found.
+Use -Dx=false if you do not need X11 support.
+''')
+ endif
+ endif
+else
+ x11 = []
+endif
+if not get_option('gtkui') or not with_x
+ enable_gestures = false
+endif
+
+#######################################################################
# Check for ncurses and other things used by the console UI
#######################################################################
ncurses_inc = []