vulkan: EXT_acquire_xlib_display requires libXrandr headers to build
authorKeith Packard <keithp@keithp.com>
Tue, 19 Jun 2018 22:58:30 +0000 (15:58 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 20 Jun 2018 17:42:05 +0000 (10:42 -0700)
commit3f960c1338713d317ce6463be68cee162c968d8d
tree87c94a88d89cef1fb043d05aaaea2d853e824a37
parentf49d112a01f9bec79b0ddb028163dc189f663634
vulkan: EXT_acquire_xlib_display requires libXrandr headers to build

When VK_USE_PLATFORM_XLIB_XRANDR_EXT is defined, vulkan.h includes
X11/extensions/Xrandr.h for the RROutput typedef which is used in
the vkGetRandROutputDisplayEXT interface.

Make sure we have the required header by checking during the build,
and also set CFLAGS to point at the right directory.

We don't need to link against the library as we don't use any
functions from there, so don't add the _LIBS value in the autotools
build.

Signed-off-by: Keith Packard <keithp@keithp.com>
Fixes: dbac8e25f851ed44c51f "radv: Add EXT_acquire_xlib_display to radv driver [v2]"
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
configure.ac
meson.build
src/amd/vulkan/Makefile.am
src/amd/vulkan/meson.build
src/intel/Makefile.vulkan.am
src/intel/vulkan/meson.build
src/vulkan/Makefile.am
src/vulkan/wsi/meson.build