package version up to 0.3.6
[platform/core/uifw/wayland-tbm.git] / configure.ac
1 AC_INIT(wayland-tbm, [0.1.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_CXX
12 AC_PROG_LIBTOOL
13
14 AC_ARG_WITH(utests, AS_HELP_STRING([--with-utests=yes/no], [whether build/run unit tests or not]),
15                                 [ utests="$withval" ],
16                                 [ utests="no" ])
17
18 AM_CONDITIONAL(HAVE_UTEST, test "x$utests" = "xyes")
19
20 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
21 if test x$wayland_scanner = x; then
22       AC_MSG_ERROR([wayland-scanner is needed to compile wayland-tbm])
23 fi
24
25 PKG_CHECK_MODULES([WL_TBM_COMMON], [libtbm capi-base-common dlog])
26 PKG_CHECK_MODULES([WL_TBM_CLIENT], [wayland-client])
27 PKG_CHECK_MODULES([WL_TBM_SERVER], [wayland-server])
28 PKG_CHECK_MODULES( WAYLAND_SCANNER, wayland-scanner)
29
30 AC_CONFIG_FILES([
31         Makefile
32     src/Makefile
33     test/Makefile
34     tool/Makefile
35     utests/Makefile
36         wayland-tbm-server.pc
37         wayland-tbm-client.pc
38 ])
39 AC_OUTPUT