configure: Honour --disable-werror for Sphinx

If we are not making warnings fatal for compilation, make them
non-fatal when building the Sphinx documentation also.  (For instance
Sphinx 3.0 warns about some constructs that older versions were happy
with, which is a build failure if we use the warnings-as-errors

This provides a workaround at least for LP:1872113.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>
Reviewed-by: Alex Bennée <>
2 files changed