Skip to content

Commit ffebf00

Browse files
committed
Solaris 11.4 and later prefers mdoc, from Alan Coopersmith.
1 parent ead6d65 commit ffebf00

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

configure.ac

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,16 @@ case "$host_os" in
610610
*solaris*)
611611
AC_MSG_RESULT(sunos)
612612
PLATFORM=sunos
613-
MANFORMAT=man
613+
case `/usr/bin/nroff --version 2>&1` in
614+
*GNU*)
615+
# Solaris 11.4 and later use GNU groff.
616+
MANFORMAT=mdoc
617+
;;
618+
*)
619+
# Solaris 2.0 to 11.3 use AT&T nroff.
620+
MANFORMAT=man
621+
;;
622+
esac
614623
;;
615624
*hpux*)
616625
AC_MSG_RESULT(hpux)

0 commit comments

Comments
 (0)