1 EFL_VERSION([1], [7], [99], [dev])
2 AC_INIT([eldbus], [efl_version], [enlightenment-devel@lists.sourceforge.net])
5 AC_CONFIG_SRCDIR([configure.ac])
6 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
9 AM_INIT_AUTOMAKE([foreign subdir-objects])
11 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
15 EFL_COMPILER_FLAG([-Wall])
16 EFL_COMPILER_FLAG([-Wextra])
17 EFL_COMPILER_FLAG([-Wshadow])
18 EFL_COMPILER_FLAG([-Wno-unused-parameter])
19 EFL_COMPILER_FLAG([-Wvla])
20 EFL_COMPILER_FLAG([-Wundef])
21 EFL_COMPILER_FLAG([-Wformat=2])
22 EFL_COMPILER_FLAG([-Wlogical-op])
23 EFL_COMPILER_FLAG([-Wsign-compare])
24 EFL_COMPILER_FLAG([-Wformat-security])
25 EFL_COMPILER_FLAG([-Wmissing-include-dirs])
26 EFL_COMPILER_FLAG([-Wformat-nonliteral])
27 EFL_COMPILER_FLAG([-Wold-style-definition])
28 EFL_COMPILER_FLAG([-Wpointer-arith])
29 EFL_COMPILER_FLAG([-Winit-self])
30 EFL_COMPILER_FLAG([-Wdeclaration-after-statement])
31 EFL_COMPILER_FLAG([-Wmissing-declarations])
32 EFL_COMPILER_FLAG([-Wmissing-noreturn])
33 EFL_COMPILER_FLAG([-Wendif-labels])
34 EFL_COMPILER_FLAG([-Wstrict-aliasing=2])
35 EFL_COMPILER_FLAG([-Wwrite-strings])
36 EFL_COMPILER_FLAG([-Wno-long-long])
37 EFL_COMPILER_FLAG([-Wno-overlength-strings])
38 EFL_COMPILER_FLAG([-Wno-missing-field-initializers])
39 EFL_COMPILER_FLAG([-Wno-nested-externs])
40 EFL_COMPILER_FLAG([-Wchar-subscripts])
41 EFL_COMPILER_FLAG([-Wtype-limits])
42 EFL_COMPILER_FLAG([-Wuninitialized])
51 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
52 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
55 # doxygen program for documentation building
56 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
60 PKG_CHECK_MODULES([EINA], [eina >= 1.7.0])
61 PKG_CHECK_MODULES([ECORE], [ecore >= 1.7.0])
62 PKG_CHECK_MODULES([DBUS], [dbus-1])
64 with_max_log_level="EINA_LOG_LEVEL_DBG"
65 AC_ARG_WITH(maximum-log-level,
66 [AC_HELP_STRING([--with-maximum-log-level=NUMBER],
67 [limit log level, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
68 [with_max_log_level="${withval}"], [:])
69 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
71 EFL_ENABLE_BIN([eldbus-codegen], ["yes"])
73 if test "x${have_eldbus_codegen}" = "xyes" ; then
74 PKG_CHECK_MODULES([ELDBUS_CODEGEN],
77 [have_eldbus_codegen="yes"],
78 [have_eldbus_codegen="no"])