+else
+ AC_MSG_NOTICE([You may configure with --enable-python-bindings ]dnl
+[if you want Python bindings.])
+
+fi
+
+if test "x${enable_python_bindings_doc:-yes}" = xyes; then
+ AC_CHECK_PROGS([SPHINXBUILD], [sphinx-build sphinx-build3 sphinx-build2], [no])
+ AS_IF([test "x$SPHINXBUILD" = xno],
+ AC_MSG_ERROR([sphinx-build is required to build Python bindings documentation])
+ )