Support docbook-to-man command, e.g. for openSUSE (#153)

This commit is contained in:
Sebastian Pipping 2017-10-27 19:46:18 +02:00
parent 6fe62b6cbc
commit 0f5186c7b8
3 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@ endif()
if(MSVC OR NOT BUILD_tools_default)
set(BUILD_doc_default OFF)
else()
find_program(DOCBOOK_TO_MAN NAMES docbook2x-man docbook2man)
find_program(DOCBOOK_TO_MAN NAMES docbook2x-man docbook2man docbook-to-man)
if(DOCBOOK_TO_MAN)
set(BUILD_doc_default ON)
else()

View File

@ -39,6 +39,7 @@ Release 2.2.5 ???????????????????
Benbuck Nason
Hans Wennborg
José Gutiérrez de la Concha
Pedro Monreal Gonzalez
Rhodri James
Rolf Ade
Stephen Groat

View File

@ -237,7 +237,7 @@ AS_HELP_STRING([--without-docbook],
AC_ARG_VAR([DOCBOOK_TO_MAN], [docbook2x-man command])
AS_IF([test "x$with_docbook" != xno],
[AC_CHECK_PROGS([DOCBOOK_TO_MAN], [docbook2x-man docbook2man],
[AC_CHECK_PROGS([DOCBOOK_TO_MAN], [docbook2x-man docbook2man docbook-to-man],
[if test "x$with_docbook" != xcheck; then
AC_MSG_ERROR([Required program 'docbook2x-man' not found.])])])