Package version up to 1.0.5
[platform/core/uifw/libgbm.git] / configure.ac
1 AC_INIT(libgbm, [1.0.0], lsj119@samsung.com)
2
3 AC_CONFIG_SRCDIR(configure.ac)
4 AC_CONFIG_HEADERS([config.h])
5
6 AM_INIT_AUTOMAKE(1.6 foreign subdir-objects)
7 AM_SILENT_RULES([yes])
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_PROG_LIBTOOL
12
13 AC_ARG_ENABLE(tbm, AS_HELP_STRING([--disable-tbm],
14                    [use tbm or not (default: enabled)]),
15                    [have_tbm=$enableval], [have_tbm=yes])
16
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])
20
21    AC_ARG_ENABLE(tbm-queue, [--enable-tbm-queue],,
22                  enable_tbm_queue=no)
23    if test x$enable_tbm_queue = xyes; then
24       AC_DEFINE([USE_TBM_QUEUE], [1], [Build gbm_tbm with TBM surface queue])
25    fi
26 fi
27
28 AM_CONDITIONAL(HAVE_TBM, test "x$have_tbm" = "xyes")
29 AM_CONDITIONAL(USE_TBM_QUEUE, test x$enable_tbm_queue = xyes)
30
31 AC_CONFIG_FILES([
32    Makefile
33    gbm.pc
34 ])
35 AC_SUBST(LIBDIR)
36 AC_OUTPUT
37