1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00

configure: check for python3-config

This commit is contained in:
Michael Vetter 2020-10-05 13:48:21 +02:00
parent 0211ab0e30
commit f1b9bb49e1

View File

@ -82,7 +82,8 @@ elif test "x$enable_python_plugins" != xno; then
rm -f Python.framework
ln -s $PYTHON_FRAMEWORK Python.framework ])
AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python-config, yes, no)
if test "$PYTHON_CONFIG_EXISTS" = "yes"; then
AC_CHECK_PROG(PYTHON3_CONFIG_EXISTS, python3-config, yes, no)
if test "$PYTHON_CONFIG_EXISTS" = "yes" || test "$PYTHON3_CONFIG_EXISTS" = "yes"; then
AX_PYTHON_DEVEL
AM_CONDITIONAL([BUILD_PYTHON_API], [true])
AC_DEFINE([HAVE_PYTHON], [1], [Python support])