--- a/configure.ac +++ b/configure.ac @@ -80,7 +80,7 @@ XORG_DRIVER_CHECK_EXT(XF86DRI, xextproto XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) # Checks for pkg-config packages -PKG_CHECK_MODULES(XORG, [xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES]) +PKG_CHECK_MODULES(XORG, [xorg-server xproto fontsproto glproto $REQUIRED_MODULES]) PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1], HAVE_XEXTPROTO_71="yes"; AC_DEFINE(HAVE_XEXTPROTO_71, 1, [xextproto 7.1 available]), HAVE_XEXTPROTO_71="no") --- a/src/via_driver.c +++ b/src/via_driver.c @@ -49,6 +49,8 @@ #ifdef HAVE_DRI #include "dri.h" +#else +#include "drm_fourcc.h" #endif /* RandR support */ --- a/src/via_memmgr.c +++ b/src/via_memmgr.c @@ -37,6 +37,8 @@ #include "via_driver.h" #ifdef HAVE_DRI #include "via_drm.h" +#else +#include "drm_fourcc.h" #endif /*