1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-24 19:56:52 +00:00

add --with-python3 option (#55)

* add --with-python3 option

* debian package with python3
This commit is contained in:
Xiangyue Cai
2020-06-18 11:23:11 +08:00
committed by GitHub
parent 29f0c14b37
commit 50ff08b03c
2 changed files with 7 additions and 4 deletions

View File

@@ -83,6 +83,9 @@ fi
AM_CONDITIONAL([FBSD], [test "$bfbsd" = "yes"])
AC_SUBST(FBSD)
AC_ARG_WITH([python3], [AS_HELP_STRING([--with-python3], [use python3])],
[with_python3="yes"],[])
# Checks for libraries.
GLIB_REQUIRED=2.26.0
@@ -98,10 +101,10 @@ PKG_CHECK_MODULES(JANSSON, [jansson >= $JANSSON_REQUIRED])
AC_SUBST(JANSSON_CFLAGS)
AC_SUBST(JANSSON_LIBS)
if test "$bwin32" = "true" -o "$bmac" = "yes"; then
AM_PATH_PYTHON([2.7])
else
if test "$with_python3" = "yes"; then
AM_PATH_PYTHON([3.5])
else
AM_PATH_PYTHON([2.7])
fi
if test "$bwin32" = true; then