From 5eff08777b643c0e112921eb6cb78381361acb68 Mon Sep 17 00:00:00 2001 From: Brandon Munger Date: Tue, 12 Mar 2019 18:41:27 -0400 Subject: Make AsciiDoc check more stringent Add an additional check to configure.ac to error out if AsciiDoc is not found and pre-built documentation also does not exist. Signed-off-by: Lukas Fleischer --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b1480ec..c7db268 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,11 @@ if test x"$use_asciidoc" = x"auto"; then if test -z "$ASCIIDOC"; then have_asciidoc=no AC_MSG_WARN([AsciiDoc not found - cannot rebuild documentation!]) + if test -f "doc/manual.html" && test -f "doc/submitting-patches.html"; then + AC_MSG_WARN([Using pre-built documentation.]) + else + AC_MSG_ERROR(Asciidoc is required to build documentation.) + fi else have_asciidoc=yes fi @@ -99,6 +104,11 @@ if test x"$use_asciidoc" = x"auto"; then if test -z "$A2X"; then have_a2x=no AC_MSG_WARN([a2x not found - cannot rebuild man pages!]) + if test -f "doc/calcurse.1"; then + AC_MSG_WARN([Using pre-built man pages.]) + else + AC_MSG_ERROR(a2x is required to build man pages.) + fi else have_a2x=yes fi -- cgit v1.2.3-54-g00ecf