1 # authored by Sung-Jin Park <sj76.park@samsung.com>
5 # AC_DEFINE(VARIABLE, VALUE, DESCRIPTION)
6 # output the following to config.h
8 # #define VARIABLE VALUE
10 # AC_SUBST(VARIABLE, [VALUE])
11 # define $(VARIABLE) as VALUE in Makefile
13 dnl ========================================================================
15 dnl ========================================================================
16 AC_INIT([e17-mod-tizen-devicemgr], [0.1], [sj76.park@samsung.com])
18 # check for tools needed by automake generated Makefiles
19 # -Wall : Turn all warnings on.
20 # -Werror: report warings as errors.
21 # foreign: relax some GNU standard requirements
22 #AM_INIT_AUTOMAKE([-Wall -Werror foreign])
23 AM_INIT_AUTOMAKE([-Wall foreign])
25 dnl ========================================================================
27 dnl ========================================================================
32 dnl ========================================================================
33 # checks for libraries
34 dnl ========================================================================
36 dnl ========================================================================
37 # checks for header files
38 dnl ========================================================================
40 AC_CHECK_HEADERS([math.h fcntl.h stdlib.h string.h unistd.h])
42 dnl ========================================================================
43 # checks for typedefs, structures, and compiler characteristics
46 dnl ========================================================================
47 # checks for library functions
48 dnl ========================================================================
51 AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
53 dnl ========================================================================
54 # checks for pkg-config
55 dnl ========================================================================
58 #PKG_CHECK_MODULES(GESTUREPROTO, gestureproto)
59 #PKG_CHECK_MODULES(GESTURELIB, xgesture)
61 dnl ========================================================================
62 # checks for pkg-config
63 dnl ========================================================================
64 #PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment, gestureproto, xgesture])
65 PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment, vconf, dlog, sensor])
66 ENLIGHTENMENT_CFLAGS="${ENLIGHTENMENT_CFLAGS} "
67 AC_SUBST(ENLIGHTENMENT_CFLAGS)
68 AC_SUBST(ENLIGHTENMENT_LIBS)
71 dnl =======================================================================
73 release=$(pkg-config --variable=release enlightenment)
74 MODULE_ARCH="$host_os-$host_cpu-$release"
76 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
78 datadir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
79 AC_ARG_ENABLE(homedir-install,
80 AS_HELP_STRING([--enable-homedir-install], [Install module in homedir]),
81 [ datadir="${HOME}/.e/e/modules/${PACKAGE}" ]
84 dnl ========================================================================
86 dnl ========================================================================
88 # create HEADER for all HEADER.in.
89 # HEADERS contain definitions made with AC_DEFINE.
90 # the following command will create config.h from config.h.in
91 AC_CONFIG_HEADERS([config.h])
93 # create FILE for all FILE.in.
94 # FILES contains definitions made with AC_SUBST.