+# --disable-ui
+AC_ARG_ENABLE(ui,
+ AS_HELP_STRING([--disable-ui],
+ [Disable ibus default user interface]),
+ [enable_ui=$enableval],
+ [enable_ui=yes]
+)
+AM_CONDITIONAL([ENABLE_UI], [test x"$enable_ui" = x"yes"])
+if test x"$enable_ui" = x"yes"; then
+ enable_ui="yes (enabled, use --disable-ui to disable)"
+fi
+
+# --disable-engine
+AC_ARG_ENABLE(engine,
+ AS_HELP_STRING([--disable-engine],
+ [Disable ibus simple engine]),
+ [enable_engine=$enableval],
+ [enable_engine=yes]
+)
+AM_CONDITIONAL([ENABLE_ENGINE], [test x"$enable_engine" = x"yes"])
+if test x"$enable_engine" = x"yes"; then
+ enable_engine="yes (enabled, use --disable-engine to disable)"
+fi
+