From: Zbigniew Jędrzejewski-Szmek Date: Fri, 20 Jun 2014 22:14:22 +0000 (-0400) Subject: build-sys: fail if python support requested but not found X-Git-Tag: v215~241 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=747cf8cdf61cdad068c727e42eac699f2505ae77;p=elogind.git build-sys: fail if python support requested but not found --- diff --git a/configure.ac b/configure.ac index 1aff72d3b..a87a02656 100644 --- a/configure.ac +++ b/configure.ac @@ -224,6 +224,13 @@ AS_IF([test "x$with_python" != "xno"], [ [AC_MSG_WARN([*** python support requires python-lxml module installed])]) ]) ]) +AS_IF([test "$have_python" != "yes"], [ + AS_IF([test "$with_python" = "yes"], + [AC_MSG_ERROR([*** python support requested but python support not found])]) + AS_IF([test "$with_python" != "no"], + [AC_MSG_WARN([*** python support not found, some documentation cannot be built])]) +]) + AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) AS_IF([test "x$PYTHON_BINARY" = "x"], [AS_IF([test "x$have_python" = "xyes"],