From 8ba986bb4df2d3d475b4d22649622a49e1d7637c Mon Sep 17 00:00:00 2001 From: Martin Wagner <49582808+SoongNoonien@users.noreply.github.com> Date: Sun, 12 Jan 2020 13:57:18 +0100 Subject: [PATCH] Update configure.ac added dependency tests --- configure.ac | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 66cf842..8994236 100644 --- a/configure.ac +++ b/configure.ac @@ -50,7 +50,7 @@ if $PYTHON -c "$prog" 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then AC_MSG_RESULT(found) else AC_MSG_RESULT(not found) - AC_MSG_ERROR(MPDClient not found) + AC_MSG_ERROR(python module mpd not found) fi dnl Check for beautifulsoup @@ -62,7 +62,19 @@ if $PYTHON -c "$prog" 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then AC_MSG_RESULT(found) else AC_MSG_RESULT(not found) - AC_MSG_ERROR(beautifulsoup not found) + AC_MSG_ERROR(python module bs4 not found) +fi + +dnl Check for requests +AC_MSG_CHECKING(for requests installed) +prog=" +import requests +" +if $PYTHON -c "$prog" 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then + AC_MSG_RESULT(found) +else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(python module requests not found) fi AC_CONFIG_FILES([Makefile