AC_SUBST(DRI2PROTO_CFLAGS)
AC_SUBST(DRI2PROTO_LIBS)
-dnl use dri2proto
+dnl use dri2
PKG_CHECK_MODULES(DRI2, libdri2)
AC_SUBST(DRI2_CFLAGS)
AC_SUBST(DRI2_LIBS)
+dnl use tbm
+PKG_CHECK_MODULES(TBM, libtbm)
+AC_SUBST(TBM_CFLAGS)
+AC_SUBST(TBM_LIBS)
+
+PKG_CHECK_MODULES(MMTA, mm-ta)
+AC_SUBST(MMTA_CFLAGS)
+AC_SUBST(MMTA_LIBS)
+
dnl *** output files ***
AC_CONFIG_FILES(