summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBertrand Garrigues <bertrand.garrigues@laposte.net>2018-12-18 18:57:16 +0100
committerBertrand Garrigues <bertrand.garrigues@laposte.net>2018-12-18 22:13:01 +0100
commitb78b8ba1a973421ad00770fc10bcd894fc7fc717 (patch)
tree54bac15e3a8610d898ed8900a594e7a0d270ce19 /configure.ac
parent255f4ce6d9e2db9a6625724813379438b665aca7 (diff)
downloadgroff-git-b78b8ba1a973421ad00770fc10bcd894fc7fc717.tar.gz
Fix 'dvi' and 'pdf' texinfo doc generation.1.22.4.rc5
GNU make has a built-in variable 'TEXI2DVI' but it is not the case of all 'make' implementations, which causes 'make doc' to fail with an unclear message although 'texi2dvi' is available. Also, 'texi2dvi' is invoked inconditionnally. * m4/groff.m4 (GROFF_TEXI2DVI): new macro to detect properly the presence of 'texi2dvi'. * configure.ac: use 'GROFF_TEXI2DVI' and define automake conditional 'HAVE_TEXI2DVI'. * doc/doc.am: - Define TEXI2DVI to 'texi2dvi'. - Print an error message if 'texi2dvi' is not available.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e0a049f65..28e75f175 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,7 @@ AC_PROG_EGREP
GROFF_PROG_YACC
GROFF_DOC_CHECK
GROFF_MAKEINFO
+GROFF_TEXI2DVI
AC_PROG_RANLIB
GROFF_INSTALL_SH
GROFF_INSTALL_INFO
@@ -200,6 +201,7 @@ AM_CONDITIONAL([BUILD_OTHERDOC], [test -n "$make_otherdoc"])
AM_CONDITIONAL([BUILD_EXAMPLES], [test -n "$make_examples"])
AM_CONDITIONAL([INSTALL_SHIPPED_HTML], [test -n "$make_install_shipped_htmldoc"])
AM_CONDITIONAL([HAVE_PDFTOOLS], [test "x$groff_have_pdftools" = "xyes" ])
+AM_CONDITIONAL([HAVE_TEXI2DVI], [test "x$groff_have_texi2dvi" = "xyes" ])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([test-groff], [chmod +x test-groff])