about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2016-03-08 21:31:13 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2016-03-08 21:42:21 +0900
commitdb42e7c504d4e1ea316a3629b7d2a0206fda2354 (patch)
tree7aac86f8448c292b14340a358768c748b38f01c4 /configure.ac
parent983060d5d12e44558913f4c9d7e03ddd4a69f408 (diff)
downloadzsh-db42e7c504d4e1ea316a3629b7d2a0206fda2354.tar.gz
zsh-db42e7c504d4e1ea316a3629b7d2a0206fda2354.tar.xz
zsh-db42e7c504d4e1ea316a3629b7d2a0206fda2354.zip
38108: enable to create both zsh_{a4,us}.pdf
Default paper size is taken from LC_PAPER.
Stop to check for pdfetex (obsolete and redundant).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9947b1606..9ce3a4589 100644
--- a/configure.ac
+++ b/configure.ac
@@ -632,14 +632,24 @@ if test "x$ac_cv_prog_YODL" = xyodl; then
 fi
 AC_SUBST(YODL_OPTIONS)
 
-AC_CHECK_PROGS([PDFETEX], [pdfetex], [: pdfetex])
-AC_CHECK_PROGS([TEXI2PDF], [texi2pdf], [])
+AC_CHECK_PROGS([TEXI2DVI], [texi2dvi], [: texi2dvi])
+AC_CHECK_PROGS([TEXI2PDF], [texi2pdf], [: texi2pdf])
 AC_CHECK_PROGS([TEXI2HTML], [texi2any texi2html], [: texi2html])
 
+if test x"$TEXI2PDF" != xtexi2pdf && test x"$TEXI2DVI" = xtexi2dvi; then
+  TEXI2PDF='texi2dvi --pdf'
+fi
+
 if test x"$TEXI2HTML" = xtexi2any; then
   TEXI2HTML='texi2any -c TEXI2HTML=1'
 fi
 
+case "$LC_PAPER" in
+  ??_US*) PAPERSIZE=us ;;
+  *)      PAPERSIZE=a4 ;;
+esac
+AC_SUBST(PAPERSIZE)
+
 AC_CHECK_PROGS([ANSI2KNR], [ansi2knr], [: ansi2knr])
 
 if test x"$ansi2knr" = xyes && test x"$ANSI2KNR" = x": ansi2knr"; then