3 m4_define([tdm_major_version], [1])
4 m4_define([tdm_minor_version], [7])
5 m4_define([tdm_micro_version], [0])
6 m4_define([tdm_version],
7 [tdm_major_version.tdm_minor_version.tdm_micro_version])
11 [https://www.tizen.org],
14 AC_CONFIG_HEADERS([config.h])
15 AC_CONFIG_SRCDIR([Makefile.am])
16 AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
17 AM_MAINTAINER_MODE([enable])
23 AC_USE_SYSTEM_EXTENSIONS
29 LT_INIT([disable-static])
31 # Enable quiet compiles on automake 1.11.
32 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
34 AC_ARG_WITH(utest, AS_HELP_STRING([--with-utest=yes/no], [whether build/run unit tests or not]),
38 AM_CONDITIONAL(HAVE_UTEST, test "x$utest" = "xyes")
40 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
41 if test x$wayland_scanner = x; then
42 AC_MSG_ERROR([wayland-scanner is needed to compile])
45 PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner >= 1.7.0)
47 PKG_CHECK_MODULES(TDM, dlog libtbm libpng pixman-1 wayland-server)
48 PKG_CHECK_MODULES(TDM_CLIENT, dlog wayland-client)
50 PKG_CHECK_MODULES(TTRACE,
52 [have_ttrace="yes"], [have_ttrace="no"])
53 if test "x$have_ttrace" = "xyes"; then
54 TDM_CFLAGS="$TDM_CFLAGS $TTRACE_CFLAGS"
55 TDM_LIBS="$TDM_LIBS $TTRACE_LIBS"
56 TDM_CLIENT_CFLAGS="$TDM_CLIENT_CFLAGS $TTRACE_CFLAGS"
57 TDM_CLIENT_LIBS="$TDM_CLIENT_LIBS $TTRACE_LIBS"
58 AC_DEFINE(HAVE_TTRACE, 1, [ttrace available])
64 AC_SUBST(TDM_CLIENT_CFLAGS)
65 AC_SUBST(TDM_CLIENT_LIBS)
67 # set the dir for the tbm module
68 DEFAULT_TDM_MODULE_PATH="${libdir}/tdm"
69 AC_ARG_WITH(tdm-module-path, AS_HELP_STRING([--with-tdm-module-path=PATH], [tdm module dir]),
70 [ TDM_MODULE_PATH="$withval" ],
71 [ TDM_MODULE_PATH="${DEFAULT_TDM_MODULE_PATH}" ])
72 AC_DEFINE_UNQUOTED(TDM_MODULE_PATH, "${TDM_MODULE_PATH}", [Directory for the modules of tdm])
74 AC_SUBST([TDM_MAJOR_VERSION], [tdm_major_version])
75 AC_SUBST([TDM_MINOR_VERSION], [tdm_minor_version])
76 AC_SUBST([TDM_MICRO_VERSION], [tdm_micro_version])
77 AC_SUBST([TDM_VERSION], [tdm_version])
79 AC_DEFINE([TDM_MAJOR_VERSION], [tdm_major_version], [tdm ABI major version])
80 AC_DEFINE([TDM_MINOR_VERSION], [tdm_minor_version], [tdm ABI minor version])
81 AC_DEFINE([TDM_MICRO_VERSION], [tdm_micro_version], [tdm ABI macro version])
83 # For enumerating devices in test case
92 client/libtdm-client.pc
98 echo "$PACKAGE_STRING will be compiled with:"
100 echo "TDM_CFLAGS : $TDM_CFLAGS"
101 echo "TDM_LIBS : $TDM_LIBS"
102 echo "TDM_CLIENT_CFLAGS : $TDM_CLIENT_CFLAGS"
103 echo "TDM_CLIENT_LIBS : $TDM_CLIENT_LIBS"
104 echo "TDM_MODULE_PATH : $TDM_MODULE_PATH"