diff options
author | Damien Miller <djm@mindrot.org> | 2011-01-04 08:16:27 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-01-04 08:16:27 +1100 |
commit | 30a69e7bba0161eabb678b9902fbd04e7495d86e (patch) | |
tree | 5890c2c6de8720a84e3a5a571d5c9879f98a04b6 /configure.ac | |
parent | d197fd64a1fa309295a99ce46e9ee016b84d2a59 (diff) |
- (djm) [configure.ac Makefile.in] Use mandoc as preferred manpage
formatter if it is present, followed by nroff and groff respectively.
Fixes distprep target on OpenBSD (which has bumped groff/nroff to ports
in favour of mandoc). feedback and ok tim
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index ec562b1c2..0eeb4df78 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.460 2011/01/02 10:53:09 djm Exp $ | 1 | # $Id: configure.ac,v 1.461 2011/01/03 21:16:29 djm Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.460 $) | 18 | AC_REVISION($Revision: 1.461 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -41,8 +41,24 @@ AC_PATH_PROG(TEST_MINUS_S_SH, bash) | |||
41 | AC_PATH_PROG(TEST_MINUS_S_SH, ksh) | 41 | AC_PATH_PROG(TEST_MINUS_S_SH, ksh) |
42 | AC_PATH_PROG(TEST_MINUS_S_SH, sh) | 42 | AC_PATH_PROG(TEST_MINUS_S_SH, sh) |
43 | AC_PATH_PROG(SH, sh) | 43 | AC_PATH_PROG(SH, sh) |
44 | AC_PATH_PROG(GROFF, groff) | ||
45 | AC_PATH_PROG(NROFF, nroff) | ||
46 | AC_PATH_PROG(MANDOC, mandoc) | ||
44 | AC_SUBST(TEST_SHELL,sh) | 47 | AC_SUBST(TEST_SHELL,sh) |
45 | 48 | ||
49 | dnl select manpage formatter | ||
50 | if test "x$MANDOC" != "x" ; then | ||
51 | MANFMT="$MANDOC" | ||
52 | elif test "x$NROFF" != "x" ; then | ||
53 | MANFMT="$NROFF -mandoc" | ||
54 | elif test "x$GROFF" != "x" ; then | ||
55 | MANFMT="$GROFF -mandoc -Tascii" | ||
56 | else | ||
57 | AC_MSG_WARN([no manpage formatted found]) | ||
58 | MANFMT="false" | ||
59 | fi | ||
60 | AC_SUBST(MANFMT) | ||
61 | |||
46 | dnl for buildpkg.sh | 62 | dnl for buildpkg.sh |
47 | AC_PATH_PROG(PATH_GROUPADD_PROG, groupadd, groupadd, | 63 | AC_PATH_PROG(PATH_GROUPADD_PROG, groupadd, groupadd, |
48 | [/usr/sbin${PATH_SEPARATOR}/etc]) | 64 | [/usr/sbin${PATH_SEPARATOR}/etc]) |