summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-08-28 21:48:21 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-08-28 21:48:21 +0200
commitc181ae87ce43f148952a96d3dbadc3013dcbdf22 (patch)
tree27ca144471d25ced7dda16b8100f0559b9e2c702 /configure
parent65321f081dc4c4993eb920391406444f24d73a05 (diff)
downloadmpv-c181ae87ce43f148952a96d3dbadc3013dcbdf22.tar.bz2
mpv-c181ae87ce43f148952a96d3dbadc3013dcbdf22.tar.xz
configure: fix build with stable wayland releases
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index 235cbc0464..1e19d439a8 100755
--- a/configure
+++ b/configure
@@ -1704,9 +1704,17 @@ fi #if darwin
echocheck "Wayland"
if test "$_wayland" != no; then
+ cat > $TMPC << EOF
+#include <wayland-client.h>
+int main(int argc, char *argv[]) {
+ WL_SHM_FORMAT_C8;
+ return 0;
+}
+EOF
+
_wayland="no"
- pkg_config_add "wayland-client >= 1.0.0 wayland-cursor >= 1.0.0 xkbcommon >= 0.3.0" \
- && _wayland="yes"
+ pkg_config_add "wayland-client >= 1.2.0 wayland-cursor >= 1.2.0 xkbcommon >= 0.3.0" \
+ && cc_check -lwayland-client && _wayland="yes"
fi
if test "$_wayland" = yes; then
res_comment=""