configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) New commits: commit f75366bc947ae34bcd76c801f813efb29e665685 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Oct 24 18:35:30 2019 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri Oct 25 09:51:43 2019 +0200
configure.ac: Add check for python3 libs They are needed since commit c1e04e406955c6f3bf186019ffee459c93f03330 ("scripts/unocommands.py: Switch to python3"), so add a corresponding check to configure.ac. Change-Id: If0f1d2b474c3edb3fc63dc54292acd54f096b822 Reviewed-on: https://gerrit.libreoffice.org/81473 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/configure.ac b/configure.ac index fb54564c9..676a77171 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,17 @@ AS_IF([test `uname -s` = Linux], AS_IF([test -z "$SETCAP"], [AC_MSG_ERROR([The setcap command is needed. It might be in a package called libcap-progs.])])) +# check for python modules +for MODULE in lxml polib; do + AC_MSG_CHECKING([for ${MODULE} for python3]) + if /usr/bin/env python3 -c "import ${MODULE}" 2> /dev/null ; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([${MODULE} for python3 is needed. It might be in a package called python3-${MODULE}.]) + fi +done + # Declare options AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits