summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-09-19 09:43:47 +0200
committerLinus Nordberg <linus@nordu.net>2016-09-19 09:43:47 +0200
commit73ca00bfa8bef34dc0a4ff0a276a299c54ca980c (patch)
treedacdc41888f49db55b3fe4a25a0d81b2a385fc26 /configure.ac
parent9a0560bda7a42b3c6a972f48d3cd5bf4ee99adb1 (diff)
Let env DOCBOOK2X_MAN optionally name the docbook2x-man program.
Patch from Fabian Mauchle with a minor change.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 4c500e7..307a8e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,9 +122,12 @@ AM_CONDITIONAL(ENABLE_EXPERIMENTAL_DYNDISC,
test "$enable_experimental_dyndisc" = "yes")
-AC_ARG_VAR([DOCBOOK2X_MAN], [docbook2x-man])
-AC_CHECK_PROG([DOCBOOK2X_MAN], [docbook2x-man], [yes])
-AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN" = "yes")
+AC_ARG_VAR([DOCBOOK2X_MAN], [docbook2x-man program to use])
+if test -z "$DOCBOOK2X_MAN" ; then
+ AC_SUBST([DOCBOOK2X_MAN], [docbook2x-man])
+fi
+AC_CHECK_PROG([DOCBOOK2X_MAN_PROG], [$DOCBOOK2X_MAN], [yes])
+AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN_PROG" = "yes")
AC_SUBST(TARGET_CFLAGS)
AC_SUBST(TARGET_LDFLAGS)