2 AC_INIT([ofono-efl], [0.1.0])
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],
61 if test "$want_tizen" = "yes" -a "$have_tizen" = "no"; then
62 AC_MSG_ERROR([Want tizen, but not found])
63 elif test "$have_tizen" = "yes"; then
64 AC_DEFINE([HAVE_TIZEN], 1, [Tizen support])
67 AM_CONDITIONAL([HAVE_TIZEN], [test "$have_tizen" = "yes"])
69 with_max_log_level="EINA_LOG_LEVEL_DBG"
70 AC_ARG_WITH(maximum-log-level,
71 [AC_HELP_STRING([--with-maximum-log-level=NUMBER],
72 [limit log level, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
73 [with_max_log_level="${withval}"], [:])
74 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
76 with_dbusservicesdir=`pkg-config --variable=session_bus_services_dir dbus-1`
77 AC_ARG_WITH(dbusservicesdir,
78 [AC_HELP_STRING([--with-dbusservicesdir=PATH],
79 [Where to place dbus services files])],
80 [with_dbusservicesdir="${withval}"], [:])
81 AC_SUBST(with_dbusservicesdir)
84 with_desktopdir="/opt/share/applications"
85 AC_ARG_WITH(desktopdir,
86 [AC_HELP_STRING([--with-desktopdir=PATH],
87 [Where to place desktop files. Default=/opt/share/applications/])],
88 [with_desktopdir="${withval}"], [:])
89 AC_SUBST(with_desktopdir)