diff options
| author | Peter Eisentraut | 2008-11-26 11:26:54 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2008-11-26 11:26:54 +0000 |
| commit | f900afff3e8fc2c233ff59cc9bc2639f5efe4d8c (patch) | |
| tree | 93ea4a710445e79b3a36bab7e2149f106e1fcd43 /config/docbook.m4 | |
| parent | 15c67060b10070b55e23f0e1fc50a08a994c0984 (diff) | |
configure check for docbook2man program, used in the new XML-based man
page build target. This covers from-source, Debian, and Fedora
installation variants.
Diffstat (limited to 'config/docbook.m4')
| -rw-r--r-- | config/docbook.m4 | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/config/docbook.m4 b/config/docbook.m4 index f7cc67d4f50..491d329d537 100644 --- a/config/docbook.m4 +++ b/config/docbook.m4 @@ -1,4 +1,4 @@ -# $PostgreSQL: pgsql/config/docbook.m4,v 1.9 2008/09/05 09:37:37 petere Exp $ +# $PostgreSQL: pgsql/config/docbook.m4,v 1.10 2008/11/26 11:26:54 petere Exp $ # PGAC_PROG_JADE # -------------- @@ -97,3 +97,32 @@ if test -n "$DOCBOOKSTYLE"; then else AC_PATH_PROGS(COLLATEINDEX, collateindex.pl) fi])# PGAC_PATH_COLLATEINDEX + + +# PGAC_PATH_DOCBOOK2MAN +# --------------------- +# Find docbook2man program from the docbook2X package. Upstream calls +# this program docbook2man, but there is also a different docbook2man +# out there from the docbook-utils package. Thus, the program we want +# is called docbook2x-man on Debian and db2x_docbook2man on Fedora. +# +# (Consider rewriting this macro using AC_PATH_PROGS_FEATURE_CHECK +# when switching to Autoconf 2.62+.) +AC_DEFUN([PGAC_PATH_DOCBOOK2MAN], +[AC_CACHE_CHECK([for docbook2man], [ac_cv_path_DOCBOOK2MAN], +[if test -z "$DOCBOOK2MAN"; then + _AS_PATH_WALK([], + [for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do + ac_path="$as_dir/$ac_prog" + AS_EXECUTABLE_P(["$ac_path"]) || continue + if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then + ac_cv_path_DOCBOOK2MAN=$ac_path + break + fi + done]) +else + ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN +fi]) +DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN +AC_SUBST(DOCBOOK2MAN) +])# PGAC_PATH_DOCBOOK2MAN |
