Contacts-Tizen.c: Load the tizen's contacts UG async.
[profile/ivi/lemolo.git] / configure.ac
1 AC_PREREQ([2.60])
2 AC_INIT([ofono-efl], [1])
3
4 AM_INIT_AUTOMAKE([foreign subdir-objects])
5 AM_CONFIG_HEADER([config.h])
6 AC_CONFIG_MACRO_DIR([m4])
7
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9
10 PKG_PROG_PKG_CONFIG
11
12 AC_LANG_C
13
14 AC_USE_SYSTEM_EXTENSIONS
15 AC_PROG_CC
16 AM_PROG_CC_C_O
17 AC_C___ATTRIBUTE__
18
19 AC_DISABLE_STATIC
20 AC_PROG_LIBTOOL
21
22 EFL_COMPILER_FLAG
23 EFL_COMPILER_FLAG([-Wall])
24 EFL_COMPILER_FLAG([-Wextra])
25 EFL_COMPILER_FLAG([-Wshadow])
26 EFL_COMPILER_FLAG([-fvisibility=hidden])
27
28 PKG_CHECK_MODULES([EFL],
29         [
30                 elementary
31                 edbus
32                 dbus-1
33          ])
34
35 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
36
37 want_tizen="auto"
38 have_tizen="no"
39 AC_ARG_ENABLE([tizen],
40    AC_HELP_STRING([--enable-tizen], [enable Tizen integration. @<:@default==auto@:>@]),
41    [want_tizen="yes"],
42    [want_tizen="no"])
43
44 if test "$want_tizen" != "no"; then
45    PKG_CHECK_MODULES([TIZEN],
46                 [
47                         ecore-x
48                         appcore-efl
49                         ui-gadget
50                         capi-social-contacts
51                 ],
52                 [have_tizen="yes"],
53                 [have_tizen="no"])
54
55 fi
56
57 if test "$want_tizen" = "yes" -a "$have_tizen" = "no"; then
58    AC_MSG_ERROR([Want tizen, but not found])
59 elif test "$have_tizen" = "yes"; then
60      AC_DEFINE([HAVE_TIZEN], 1, [Tizen support])
61 fi
62
63 AM_CONDITIONAL([HAVE_TIZEN], [test "$have_tizen" = "yes"])
64
65 with_max_log_level="EINA_LOG_LEVEL_DBG"
66 AC_ARG_WITH(maximum-log-level,
67    [AC_HELP_STRING([--with-maximum-log-level=NUMBER],
68                    [limit log level, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
69    [with_max_log_level="${withval}"], [:])
70 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
71
72 AC_CONFIG_FILES([
73 Makefile
74 ])
75
76 AC_OUTPUT