summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2013-09-25 15:54:38 +0200
committerMartin Herkt <lachs0r@srsfckn.biz>2013-09-25 15:57:20 +0200
commitcc12f05a52a47c8fc2cf36c7e908f3b350e10ca0 (patch)
tree72e2a7df7345910ea5cc1f80633aab3e771bea88
parent641e94cd27eb3b0b152ac5003d371793904609c8 (diff)
downloadmpv-cc12f05a52a47c8fc2cf36c7e908f3b350e10ca0.tar.bz2
mpv-cc12f05a52a47c8fc2cf36c7e908f3b350e10ca0.tar.xz
configure: improve pdflatex check
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index fbffd008e9..d17461f0f7 100755
--- a/configure
+++ b/configure
@@ -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