[regenerate documentation using Sphinx [default=no]])],
enable_generate_docs=$enableval, enable_generate_docs=no)
+AC_ARG_WITH([sphinx],
+ AC_HELP_STRING([--with-sphinx=PATH], [path to sphinx-build tool]),
+ [sphinx_path="$withval"])
+
if test "x$enable_generate_docs" != xno ; then
+
# Check for sphinx-build
- AC_PATH_PROG([SPHINXBUILD], [sphinx-build])
+ if test -z "$sphinx_path"; then
+ AC_PATH_PROGS([SPHINXBUILD], [sphinx-build sphinx-build-3])
+ else
+ SPHINXBUILD="$sphinx_path"
+ fi
+ echo $SPHINXBUILD
if test -z "$SPHINXBUILD"; then
AC_MSG_ERROR([sphinx-build not found; it is required for --enable-generate-docs, please see http://www.sphinx-doc.org/en/master/usage/installation.html for details])
else
- googletest (version 1.8 or later) is required when using the --with-gtest
configuration option to build the unit tests.
-- The documentation generation tools elinks, docbook-xsl, libxslt, and
- Doxygen, if using the --enable-generate-docs configuration option to
- create the documentation.
+- The documentation generation tools `Sphinx <https://www.sphinx-doc.org/>`_,
+ texlive with its extensions and Doxygen, if using the --enable-generate-docs
+ configuration option to create the documentation.
Visit ISC's Knowledgebase at https://kb.isc.org/docs/installing-kea for
system-specific installation tips.
packages.extend(['rpm-build', 'python2-devel', 'python3-devel'])
if 'docs' in features:
- packages.extend(['libxslt', 'elinks', 'docbook-style-xsl'])
+ packages.extend(['python3-sphinx', 'texlive', 'texlive-fncychap', 'texlive-tabulary',
+ 'texlive-framed', 'texlive-wrapfig', 'texlive-upquote',
+ 'texlive-capt-of', 'texlive-needspace', 'latexmk'])
if 'mysql' in features:
execute('sudo dnf remove -y community-mysql-devel || true')
packages.append('googletest')
if 'docs' in features:
- packages.extend(['dblatex', 'xsltproc', 'elinks', 'docbook-xsl'])
+ packages.extend(['python3-sphinx', 'python3-sphinx-rtd-theme', 'latexmk'])
+ if revision == '9':
+ packages.append('texlive-generic-extra')
if 'native-pkg' in features:
packages.extend(['build-essential', 'fakeroot', 'devscripts'])
packages = ['autoconf', 'automake', 'libtool', 'openssl', 'log4cplus', 'boost-libs']
if 'docs' in features:
- packages.extend(['libxslt', 'elinks', 'docbook-xsl'])
+ packages.extend(['py36-sphinx', 'py36-sphinx_rtd_theme'])
if 'unittest' in features:
_install_gtest_sources()