Commit 64a991d7 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: ximage: check for XShmAttach()

Fixes FIXME.
parent e234932d
......@@ -2,9 +2,9 @@ x11_dep = dependency('x11', required : get_option('ximagesrc'))
if x11_dep.found()
x_args = []
# FIXME: Need to check for XShmAttach inside libXext
xshm_dep = dependency('xext', required : get_option('ximagesrc-xshm'))
if xshm_dep.found()
# FIXME: should add a 'required' arg to cc.has_function() in Meson and use it here
if xshm_dep.found() and cc.has_function('XShmAttach', dependencies: xshm_dep)
x_args += ['-DHAVE_XSHM']
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment