diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-08-28 21:48:21 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-08-28 21:48:21 +0200 |
commit | c181ae87ce43f148952a96d3dbadc3013dcbdf22 (patch) | |
tree | 27ca144471d25ced7dda16b8100f0559b9e2c702 | |
parent | 65321f081dc4c4993eb920391406444f24d73a05 (diff) | |
download | mpv-c181ae87ce43f148952a96d3dbadc3013dcbdf22.tar.bz2 mpv-c181ae87ce43f148952a96d3dbadc3013dcbdf22.tar.xz |
configure: fix build with stable wayland releases
-rwxr-xr-x | configure | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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="" |