@@ -22,17 +22,18 @@ AC_DEFUN([OPAL_SETUP_SPHINX],[
22
22
AC_MSG_RESULT([no])])
23
23
24
24
# To generate HTML docs + man pages, we need Sphinx. If we have
25
- # Sphinx, then we're able to install the docs (potentially
26
- # overriding opal_install_docs from what it was set above).
25
+ # Sphinx, then we're able to both build and install the docs
26
+ # (potentially overriding opal_install_docs from what it was set
27
+ # above).
27
28
AC_PATH_PROG([SPHINX_BUILD], [sphinx-build])
28
29
AS_IF([test -n " $SPHINX_BUILD " && test -z " ` echo $SPHINX_BUILD | $GREP missing` " ],
29
30
[ # If we're building, we're also installing, regardless of
30
31
# whether we found pre-build docs or not (above).
31
32
opal_install_docs= 1],
32
33
[SPHINX_BUILD=
33
34
OPAL_MAKEDIST_DISABLE= " $OPAL_MAKEDIST_DISABLE Sphinx/Documentation"
34
- AC_MSG_WARN([ *** Could not find a suitable sphinx-build on your system.])
35
- AC_MSG_WARN([ *** You will not be able to build a distribution tarball.])])
35
+ AC_MSG_NOTICE([ Could not find a suitable sphinx-build on your system.])
36
+ AC_MSG_NOTICE([ You will not be able to build a distribution tarball.])])
36
37
37
38
AS_IF([test $opal_install_docs -eq 0],
38
39
[AC_MSG_WARN([*** You will not have documentation installed.])
@@ -45,12 +46,11 @@ AC_DEFUN([OPAL_SETUP_SPHINX],[
45
46
# Construct a summary message. Due SUMMARY_ADD's implementation,
46
47
# do *not* include a comma.
47
48
AS_IF([test -n " $SPHINX_BUILD " ],
49
+ [ # If we found Sphinx, we always both build and install.
50
+ summary_msg= " building and installing" ],
48
51
[AS_IF([test $opal_install_docs -eq 1],
49
- [summary_msg= " building and installing" ],
50
- [summary_msg= " building but not installing" ])],
51
- [AS_IF([test $opal_install_docs -eq 1],
52
- [summary_msg= " not building but installing" ],
53
- [summary_msg= " not building and not installing" ])])
52
+ [summary_msg= " installing packaged docs" ],
53
+ [summary_msg= " no documentation available" ])])
54
54
55
55
OPAL_SUMMARY_ADD([Miscellaneous], [HTML docs and man pages], [],
56
56
[$summary_msg ])
0 commit comments