From 7f5a9dc9942b52381d6ab7b4f6c9009057a2c759 Mon Sep 17 00:00:00 2001 From: fujiwarat Date: Fri, 14 Sep 2012 11:40:57 +0900 Subject: Enabled IBusProperty.symbol with ibus 1.5 . --- configure.ac | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a6dddab..10586b3 100644 --- a/configure.ac +++ b/configure.ac @@ -305,19 +305,34 @@ else fi AC_SUBST(HOTKEYS_XML) +dnl - check symbol in IBus.EngineDesc +AC_MSG_CHECKING([if IBus.EngineDesc has get_symbol]) SYMBOL_CHAR='あ' SYMBOL_TEST="from gi.repository import IBus -engine = IBus.EngineDesc(name='test') -exit(not hasattr(engine, 'get_symbol')) +exit(not hasattr(IBus.EngineDesc, 'get_symbol')) " $PYTHON -c "$SYMBOL_TEST" if test $? -eq 0; then SYMBOL_XML="${SYMBOL_CHAR}" + AC_MSG_RESULT([yes]) else SYMBOL_XML="" + AC_MSG_ERROR([ibus 1.4 or later supports symbol in IBus.EngineDesc]) fi AC_SUBST(SYMBOL_XML) +dnl - check symbol in IBus.Property +AC_MSG_CHECKING([if IBus.Property has get_symbol]) +SYMBOL_TEST="from gi.repository import IBus +exit(not hasattr(IBus.Property, 'get_symbol')) +" +$PYTHON -c "$SYMBOL_TEST" +if test $? -eq 0; then + AC_MSG_RESULT([yes]) +else + AC_MSG_ERROR([ibus 1.5 or later supports symbol in IBus.Property]) +fi + dnl - set ibus-anthy layout AC_ARG_WITH(layout, [AC_HELP_STRING([--with-layout=LAYOUT], -- cgit v1.2.1