aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-20 07:33:51 +0000
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-21 23:54:09 +0000
commited651bf96f558fd6514d8301c813a175a8a1c51b (patch)
tree54139dd4b969212504933cc2da161217ae0963de /configure.ac
parentf740ad3774c1adc7844451dd561c7de143766635 (diff)
downloadsciteco-ed651bf96f558fd6514d8301c813a175a8a1c51b.tar.gz
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
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)