summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2011-07-05 13:09:29 -0400
committerPeng Huang <shawn.p.huang@gmail.com>2011-07-05 13:09:29 -0400
commitcb5afea67473240d73f0c359c7dc6e553f87da14 (patch)
tree6697c99cbeea8cd211aa82437d8a862aac949e54 /configure.ac
parent47bc0ca6978131de085f27d988a0f135474b6062 (diff)
downloadibus-libpinyin-cb5afea67473240d73f0c359c7dc6e553f87da14.tar.gz
ibus-libpinyin-cb5afea67473240d73f0c359c7dc6e553f87da14.tar.xz
ibus-libpinyin-cb5afea67473240d73f0c359c7dc6e553f87da14.zip
Use ibus_config_get_values () to improve performance.
BUG=http://crosbug.com/16287 TEST=Linux desktop Review URL: http://codereview.appspot.com/4670044
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 358d818..6afc180 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,16 @@ AC_CHECK_FUNCS([uuid_create], [], [
AM_CONDITIONAL(HAVE_LIBUUID, test x"$HAVE_LIBUUID" = x"yes")
+# check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master)
+save_CFLAGS="$CFLAGS"
+save_LIBS="$LIBS"
+CFLAGS="$CFLAGS $IBUS_CFLAGS"
+LIBS="$LIBS $IBUS_LIBS"
+AC_CHECK_FUNCS([ibus_config_get_values])
+CFLAGS="$save_CFLAGS"
+LIBS="$save_LIBS"
+
+
# check env
AC_PATH_PROG(ENV, env)
AC_SUBST(ENV)