From ed651bf96f558fd6514d8301c813a175a8a1c51b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 20 Aug 2025 07:33:51 +0000 Subject: support Groff v1.19.2 as still used by default on NetBSD 10 * They have a newer version in pkgsrc, but it's not even available as a binary package on the arm6. * Has some glitches, e.g. does accept the ASCII 27 in tutorial.ms, but it's probably not worth to work around. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 23d02b5..9d5e059 100644 --- a/configure.ac +++ b/configure.ac @@ -115,6 +115,14 @@ if [[ x$GROFF = x ]]; then AC_MSG_ERROR([GNU roff required!]) fi +# preconv was added only in Groff v1.20, which is still missig +# in NetBSD. +AC_CHECK_PROG(PRECONV, preconv, preconv) +if [[ x$PRECONV != x ]]; then + GROFF_FLAGS="-Kutf-8" +fi +AC_SUBST(GROFF_FLAGS) + # Doxygen is not necessarily required as long as # you do not run `make devdoc`. AC_CHECK_PROG(DOXYGEN, doxygen, doxygen) -- cgit v1.2.3