From: Richard Russon Date: Thu, 8 Feb 2018 10:54:41 +0000 (+0000) Subject: configure: Check for Docbook DTDs X-Git-Tag: neomutt-20180223~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25a222374be8a251221a64b225014e1d045aba16;p=neomutt configure: Check for Docbook DTDs * configure: Check for Docbook DTDs Run xsltproc with a minimal Docbook file. If this succeeds, then the docs will probably build correctly. Co-authored-by: Pietro Cerutti --- diff --git a/auto.def b/auto.def index a80820ffa..1b9344240 100644 --- a/auto.def +++ b/auto.def @@ -322,6 +322,27 @@ if {[get-define want-doc]} { if {![cc-check-progs xsltproc]} { user-error "Unable to find xsltproc" } + + msg-checking "Checking for DocBook DTDs..." + + writefile xslt_test.xsl { + + + } + + writefile xslt_test.xml { + + } + + set err [catch {exec xsltproc --nonet xslt_test.xsl xslt_test.xml}] + file delete -- xslt_test.xsl xslt_test.xml + if {$err} { + msg-result "no" + user-error "Install DocBook DTDs or './configure --disable-doc'" + } + msg-result "yes" + define BUILD_DOC } if {[get-define want-full-doc]} {define MAKEDOC_FULL}