Build by default for python 3

5fa33b2 introduced build for either python 2 or python 3, with the
default of python 2.

`configure` and `autogen.sh` now accept `--with-python3` or
`--with-python2` options, with the default of python 3.

Signed-off-by: James Cameron <quozl@laptop.org>
This commit is contained in:
James Cameron 2020-02-27 11:58:19 +11:00 committed by Ibiam Chihurumnaya
parent ecf335c19c
commit 122284bd77

View File

@ -16,16 +16,16 @@ GNOME_COMPILE_WARNINGS(maximum)
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
AC_ARG_WITH([python2],
AS_HELP_STRING([--with-python2], [build for Python 2 (default)]),
[], [with_python2=unset])
AS_HELP_STRING([--with-python2], [build for Python 2]),
[with_python3=no], [with_python2=unset])
AC_ARG_WITH([python3],
AS_HELP_STRING([--with-python3], [build for Python 3]),
[with_python2=no], [with_python3=unset])
AS_HELP_STRING([--with-python3], [build for Python 3 (default)]),
[], [with_python3=unset])
AS_IF([test "x$with_python2" != xno],
[AM_PATH_PYTHON([2.7])],
[AS_IF([test "x$with_python3" = xyes], [AM_PATH_PYTHON([3])],)])
AS_IF([test "x$with_python3" != xno],
[AM_PATH_PYTHON([3])],
[AS_IF([test "x$with_python2" = xyes], [AM_PATH_PYTHON([2.7])],)])
PKG_CHECK_MODULES(EXT, gtk+-3.0 gdk-3.0 gdk-pixbuf-2.0 sm ice alsa
librsvg-2.0 xfixes xi x11)