1 AC_INIT(libgbm, [1.0.0], lsj119@samsung.com)
3 AC_CONFIG_SRCDIR(configure.ac)
4 AC_CONFIG_HEADERS([config.h])
6 AM_INIT_AUTOMAKE(1.6 foreign subdir-objects)
13 AC_ARG_ENABLE(tbm, AS_HELP_STRING([--disable-tbm],
14 [use tbm or not (default: enabled)]),
15 [have_tbm=$enableval], [have_tbm=yes])
17 if test x$have_tbm = xyes; then
18 PKG_CHECK_MODULES([TBM], [libtbm wayland-tbm-server])
19 AC_DEFINE([HAVE_TBM], [1], [Build the tbm backend])
21 AC_ARG_ENABLE(tbm-queue, [--enable-tbm-queue],,
23 if test x$enable_tbm_queue = xyes; then
24 AC_DEFINE([USE_TBM_QUEUE], [1], [Build gbm_tbm with TBM surface queue])
28 AM_CONDITIONAL(HAVE_TBM, test "x$have_tbm" = "xyes")
29 AM_CONDITIONAL(USE_TBM_QUEUE, test x$enable_tbm_queue = xyes)