1 m4_define([wkb_major], [0])
2 m4_define([wkb_minor], [0])
3 m4_define([wkb_micro], [1])
4 m4_define([wkb_version], [wkb_major.wkb_minor.wkb_micro])
7 AC_INIT([weekeyboard], [wkb_version])
9 AC_SUBST([weekeyboard_MAJOR], [wkb_major])
10 AC_SUBST([weekeyboard_MINOR], [wkb_minor])
11 AC_SUBST([weekeyboard_MICRO], [wkb_micro])
12 AC_SUBST([weekeyboard_VERSION], [wkb_version])
14 AC_CONFIG_HEADERS([config.h])
16 AM_INIT_AUTOMAKE([1.11 -Wall -Wextra parallel-tests foreign color-tests dist-bzip2])
18 AM_SILENT_RULES([yes])
26 LT_INIT([disable-static])
30 PKG_CHECK_MODULES(WAYLAND, [wayland-client >= 1.2.0])
31 PKG_CHECK_MODULES(EFL, [eina eet evas ecore ecore-evas ecore-wayland edje])
34 AS_HELP_STRING([--with-edje-cc=PATH], [Path to edje_cc binary]),
35 [EDJE_CC_PATH=${withval}], [EDJE_CC_PATH=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc])
36 AC_SUBST([EDJE_CC_PATH])
40 [AC_HELP_STRING([--disable-ibus],
41 [Disable integration with IBus input method system])],
42 [], [enable_ibus=yes])
44 AM_CONDITIONAL(ENABLE_IBUS, test "x$enable_ibus" = "xyes")
46 if test "x$enable_ibus" = "xyes"; then
47 PKG_CHECK_MODULES(ELDBUS, [eldbus])
48 AC_CHECK_PROG([have_ibus], [ibus], [yes], [no])
50 AS_IF([ test "x$have ibus" = "xno" ],
51 [ AC_MSG_ERROR([The ibus executable was not found.]) ])
53 IBUS_ADDR=`ibus address > /dev/null 2>&1`
54 AS_IF([ test $? -ne 0 ],
55 [ AC_MSG_WARN([The ibus executable does not support 'address' argument.]) ])
57 AC_DEFINE(BUILD_IBUS, [1], [Build integration with IBus input method system])
60 WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
62 AC_CONFIG_FILES([Makefile