X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=1986e66686a845ce2dd1fb35a625e597ba64dc0d;hb=c8539d5e9248f08f417165e765814a1ed3d777e1;hp=4e16ff407e6a8803c94f1601345b117b18f20afd;hpb=ee897cab8b7210ae0c9098f278e38ee355c2ef3d;p=notmuch diff --git a/configure b/configure index 4e16ff40..1986e666 100755 --- a/configure +++ b/configure @@ -108,6 +108,7 @@ PREFIX=/usr/local LIBDIR= WITH_DOCS=1 WITH_API_DOCS=1 +WITH_PYTHON_DOCS=1 WITH_EMACS=1 WITH_DESKTOP=1 WITH_BASH=1 @@ -801,7 +802,9 @@ if [ $have_python3 -eq 1 ]; then if "$python" -c 'import cffi,setuptools; cffi.FFI().verify()' >/dev/null 2>&1; then printf "Yes.\n" have_python3_cffi=1 + WITH_PYTHON_DOCS=1 else + WITH_PYTHON_DOCS=0 printf "No (will not install CFFI-based python bindings).\n" fi rm -rf __pycache__ # cffi.FFI().verify() uses this space @@ -1548,6 +1551,17 @@ NOTMUCH_HAVE_PYTHON3_PYTEST=${have_python3_pytest} PLATFORM=${platform} EOF +cat > sphinx.config <> sphinx.config +fi +if [ $WITH_PYTHON_DOCS = "1" ]; then + printf "tags.add('WITH_PYTHON')\n" >> sphinx.config +fi +printf "rsti_dir = '%s'\n" $(realpath emacs) >> sphinx.config + # Finally, after everything configured, inform the user how to continue. cat <