From 6fd485a585901c50b6bb4775c1f855b907272999 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 2 Jun 2025 10:45:56 -0700 Subject: [PATCH] Don't promise to install docs if we cannot build them. Signed-off-by: George Bosilca --- oac_setup_sphinx.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oac_setup_sphinx.m4 b/oac_setup_sphinx.m4 index 7fbf1c3..8450f8c 100644 --- a/oac_setup_sphinx.m4 +++ b/oac_setup_sphinx.m4 @@ -85,10 +85,7 @@ AC_DEFUN([OAC_SETUP_SPHINX],[ AS_IF([test "$oac_sphinx_result" = "lesser"], [SPHINX_BUILD= AC_MSG_RESULT([no])], - [ # If we're building, we're also installing, regardless of - # whether we found pre-build docs or not (above). - oac_install_docs=1 - AC_MSG_RESULT([yes])]) + [AC_MSG_RESULT([yes])]) ]) # If we found Sphinx, check to ensure that we have all the things @@ -141,6 +138,9 @@ EOF AC_MSG_NOTICE([are available.]) ]) AC_MSG_NOTICE([You will not be able to build a distribution tarball.]) + ], + [ # If we're building, we're installing ! + oac_install_docs=1 ]) # Check if we have already-built docs (e.g., if we're