summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-01-29 16:25:40 +0100
committerPeng Wu <alexepico@gmail.com>2022-02-10 10:45:47 +0800
commit803a4ba91fbd1f3018af68ed2ec869818e0406b2 (patch)
tree7f06a645d3e299e19bb0b4c69522b6467a760fd2
parent3388603231d873605ca589f4a5b084331f849921 (diff)
downloadibus-pinyin-803a4ba91fbd1f3018af68ed2ec869818e0406b2.tar.gz
Enable using Python 3 in ibus-setup-pinyin
The default uses 'python' and if the path of python 3 is 'python3', use: ./configure --with-python=python3
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ca99a6f..a81d02f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,6 +81,13 @@ LIBS="$save_LIBS"
AC_PATH_PROG(ENV_IBUS_TEST, env)
AC_SUBST(ENV_IBUS_TEST)
+# Define python version
+AC_ARG_WITH(python,
+ AS_HELP_STRING([--with-python[=PATH]],
+ [Select python2 or python3]),
+ [PYTHON=$with_python], []
+)
+
# check python
AC_ARG_WITH(python,
AS_HELP_STRING([--with-python[=PATH]],
@@ -172,6 +179,7 @@ Build options:
Version $VERSION
Install prefix $prefix
Use boost $enable_boost
+ python $PYTHON
Build lua extension $enable_lua_extension
Build english input mode $enable_english_input_mode
])