configure: improve pdflatex check

This commit is contained in:
Martin Herkt 2013-09-25 15:54:38 +02:00
parent 641e94cd27
commit cc12f05a52
1 changed files with 6 additions and 2 deletions

8
configure vendored
View File

@ -940,10 +940,14 @@ if [ -f "$(which rst2latex.py)" ] ; then
fi
echocheck "whether to build manual PDFs with rst2latex"
texcheck() {
echo test | $_rst2latex --config=DOCS/man/docutils.conf | pdflatex -halt-on-error -draftmode
}
if test "$_build_pdf" = auto ; then
_build_pdf=no
command_check "$_rst2latex" --version &&
command_check pdflatex -version && _build_pdf=yes
command_check texcheck && _build_pdf=yes
rm -f texput.{log,aux,out}
else
_build_pdf=no
fi