From e0785bb1b2af91a38d161bda7a4075338579441a Mon Sep 17 00:00:00 2001 From: Nils Gillmann Date: Sun, 21 Oct 2018 14:33:57 +0000 Subject: [PATCH] If texi2mdoc is not found, throw a warning when --enable-section7 is true Signed-off-by: Nils Gillmann --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 25ff26aa0..e9e540419 100644 --- a/configure.ac +++ b/configure.ac @@ -699,8 +699,15 @@ AC_ARG_ENABLE([section7], AC_MSG_RESULT($section7) if test "x$section7" = "xyes" then + if test "$texi2mdoc" = 0 + then + AC_MSG_WARN([ERROR: mdoc output currently requires texi2mdoc.]) + AC_MSG_WARN([ERROR: texi2mdoc can be obtained via your Operating System]) + AC_MSG_WARN([ERROR: package manager or from https://mandoc.bsd.lv/texi2mdoc/]) + else AM_CONDITIONAL([SECTION7],true) AC_DEFINE([SECTION7],[1],[Building section 7 mdoc output]) + fi else AM_CONDITIONAL([SECTION7],false) AC_DEFINE([SECTION7],[0],[Not building section 7 mdoc output]) -- 2.25.1