chiark / gitweb /
build-sys: fail if python support requested but not found
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Jun 2014 22:14:22 +0000 (18:14 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Jun 2014 22:44:40 +0000 (18:44 -0400)
configure.ac

index 1aff72d3b1bf2d780594e4c8ecc47b75e7e11a46..a87a02656a7d83b5acf2323ebbdb593e0b307903 100644 (file)
@@ -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"],