From ffebf005854b6308485fd375944995730e146be4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 2 Jul 2018 13:36:44 +0100 Subject: [PATCH] Solaris 11.4 and later prefers mdoc, from Alan Coopersmith. --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f6ed390e..5b4bc4a2 100644 --- a/configure.ac +++ b/configure.ac @@ -610,7 +610,16 @@ case "$host_os" in *solaris*) AC_MSG_RESULT(sunos) PLATFORM=sunos - MANFORMAT=man + case `/usr/bin/nroff --version 2>&1` in + *GNU*) + # Solaris 11.4 and later use GNU groff. + MANFORMAT=mdoc + ;; + *) + # Solaris 2.0 to 11.3 use AT&T nroff. + MANFORMAT=man + ;; + esac ;; *hpux*) AC_MSG_RESULT(hpux)