2 AC_INIT([ofono-efl], [1])
4 AM_INIT_AUTOMAKE([foreign subdir-objects])
5 AM_CONFIG_HEADER([config.h])
6 AC_CONFIG_MACRO_DIR([m4])
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
14 AC_USE_SYSTEM_EXTENSIONS
23 EFL_COMPILER_FLAG([-Wall])
24 EFL_COMPILER_FLAG([-Wextra])
25 EFL_COMPILER_FLAG([-Wshadow])
26 EFL_COMPILER_FLAG([-fvisibility=hidden])
28 PKG_CHECK_MODULES([EFL],
35 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
39 AC_ARG_ENABLE([tizen],
40 AC_HELP_STRING([--enable-tizen], [enable Tizen integration. @<:@default=auto@:>@]),
41 [want_tizen="${enableval}"], [:])
43 if test "$want_tizen" != "no"; then
44 PKG_CHECK_MODULES([TIZEN],
60 if test "$want_tizen" = "yes" -a "$have_tizen" = "no"; then
61 AC_MSG_ERROR([Want tizen, but not found])
62 elif test "$have_tizen" = "yes"; then
63 AC_DEFINE([HAVE_TIZEN], 1, [Tizen support])
66 AM_CONDITIONAL([HAVE_TIZEN], [test "$have_tizen" = "yes"])
68 with_max_log_level="EINA_LOG_LEVEL_DBG"
69 AC_ARG_WITH(maximum-log-level,
70 [AC_HELP_STRING([--with-maximum-log-level=NUMBER],
71 [limit log level, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
72 [with_max_log_level="${withval}"], [:])
73 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
75 with_dbusservicesdir=`pkg-config --variable=session_bus_services_dir dbus-1`
76 AC_ARG_WITH(dbusservicesdir,
77 [AC_HELP_STRING([--with-dbusservicesdir=PATH],
78 [Where to place dbus services files])],
79 [with_dbusservicesdir="${withval}"], [:])
80 AC_SUBST(with_dbusservicesdir)
83 with_desktopdir="/opt/share/applications"
84 AC_ARG_WITH(desktopdir,
85 [AC_HELP_STRING([--with-desktopdir=PATH],
86 [Where to place desktop files. Default=/opt/share/applications/])],
87 [with_desktopdir="${withval}"], [:])
88 AC_SUBST(with_desktopdir)