This check (wayland client version) does not work, my guess is because WAYLAND_CLIENT is not unique and the value of the original check is cached. The AC_DEFINE always runs, I had to comment it out in order to build.