diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
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) |