From 6f6652ebc2717b28c5788e6364c6dab09bb0ac44 Mon Sep 17 00:00:00 2001 From: John Snow Date: Wed, 10 May 2023 23:54:29 -0400 Subject: configure: bootstrap sphinx with mkvenv When docs are explicitly requested, require Sphinx>=1.6.0. When docs are explicitly disabled, don't bother to check for Sphinx at all. If docs are set to "auto", attempt to locate Sphinx, but continue onward if it wasn't located. Signed-off-by: Paolo Bonzini Signed-off-by: John Snow Message-Id: <20230511035435.734312-22-jsnow@redhat.com> Signed-off-by: Paolo Bonzini --- docs/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/meson.build') diff --git a/docs/meson.build b/docs/meson.build index 6d0986579e..9040f860ae 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,4 +1,4 @@ -sphinx_build = find_program(get_option('sphinx_build'), +sphinx_build = find_program(fs.parent(python.full_path()) / 'sphinx-build', required: get_option('docs')) # Check if tools are available to build documentation. -- cgit v1.2.3