--- Mesa-9.1/src/gallium/state_trackers/gbm/Makefile.am.orig +++ Mesa-9.1/src/gallium/state_trackers/gbm/Makefile.am @@ -27,6 +27,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/gbm/main \ -I$(top_srcdir)/include if HAVE_EGL_PLATFORM_WAYLAND +AM_CPPFLAGS += `pkg-config --cflags wayland-server` AM_CPPFLAGS += -DHAVE_WAYLAND_PLATFORM endif