From: Mukund Sivaraman Date: Thu, 25 Jul 2013 05:55:39 +0000 (+0530) Subject: [3067] Detect if elinks exists before trying to use it to generate docs X-Git-Tag: bind10-1.2.0beta1-release~280^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbdbafbef1e3eaebcf057e15afdef9e6b387e058;p=thirdparty%2Fkea.git [3067] Detect if elinks exists before trying to use it to generate docs --- diff --git a/configure.ac b/configure.ac index 72a825edd8..e0d0fd8bcb 100644 --- a/configure.ac +++ b/configure.ac @@ -1132,6 +1132,11 @@ if test "x$enable_generate_docs" != xno ; then fi AC_MSG_RESULT(yes) fi + + AC_PATH_PROG([ELINKS], [elinks]) + if test -z "$ELINKS"; then + AC_MSG_ERROR("elinks not found; it is required for --enable-generate-docs") + fi fi diff --git a/doc/guide/Makefile.am b/doc/guide/Makefile.am index 1d63c04b31..8f3aaaf23b 100644 --- a/doc/guide/Makefile.am +++ b/doc/guide/Makefile.am @@ -21,10 +21,8 @@ bind10-guide.html: bind10-guide.xml http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \ $(srcdir)/bind10-guide.xml -HTML2TXT = elinks -dump -no-numbering -no-references - bind10-guide.txt: bind10-guide.html - $(HTML2TXT) bind10-guide.html > $@ + @ELINKS@ -dump -no-numbering -no-references bind10-guide.html > $@ bind10-messages.html: bind10-messages.xml @XSLTPROC@ --novalid --xinclude --nonet \