65505d6f59a2c8a8e96f231da36c54b7c58af774
[platform/core/uifw/libtdm.git] / configure.ac
1 AC_PREREQ([2.60])
2 AC_INIT([libtdm],
3         [1.1.0],
4         [https://www.tizen.org],
5         [libtdm])
6
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_SRCDIR([Makefile.am])
9 AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
10 AM_MAINTAINER_MODE([enable])
11
12 # Check for programs
13 AC_PROG_CC
14
15 AC_USE_SYSTEM_EXTENSIONS
16 AC_SYS_LARGEFILE
17 AC_FUNC_ALLOCA
18
19 # Initialize libtool
20 LT_PREREQ([2.2])
21 LT_INIT([disable-static])
22
23 # Enable quiet compiles on automake 1.11.
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
25
26 PKG_CHECK_MODULES(TDM, libtbm pthread-stubs libpng)
27 AC_SUBST(TDM_CFLAGS)
28 AC_SUBST(TDM_LIBS)
29
30 # set the dir for the tbm module
31 DEFAULT_TDM_MODULE_PATH="${libdir}/tdm"
32 AC_ARG_WITH(tdm-module-path, AS_HELP_STRING([--with-tdm-module-path=PATH], [tdm module dir]),
33                                 [ TDM_MODULE_PATH="$withval" ],
34                                 [ TDM_MODULE_PATH="${DEFAULT_TDM_MODULE_PATH}" ])
35 AC_DEFINE_UNQUOTED(TDM_MODULE_PATH, "${TDM_MODULE_PATH}", [Directory for the modules of tdm])
36
37 # For enumerating devices in test case
38 AC_SUBST(WARN_CFLAGS)
39 AC_OUTPUT([
40         Makefile
41         libtdm.pc
42         include/Makefile
43         src/Makefile])
44
45 echo ""
46 echo "$PACKAGE_STRING will be compiled with:"
47 echo ""
48 echo "TDM_CFLAGS        : $TDM_CFLAGS"
49 echo "TDM_LIBS          : $TDM_LIBS"
50 echo "TDM_MODULE_PATH   : $TDM_MODULE_PATH"
51 echo ""