build: Check for a2x binary and use its full path if found

This commit is contained in:
Marcel Holtmann 2014-08-15 21:10:58 +02:00
parent 4a84a19b28
commit 8cdc43f540
2 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,7 @@ ell/internal: Makefile
done > $@
%.1: %.txt
$(AM_V_GEN)a2x --doctype manpage --format manpage $(srcdir)/$<
$(AM_V_GEN)$(A2X) --doctype manpage --format manpage $(srcdir)/$<
maintainer-clean-local:
-rm -rf build-aux ell

View File

@ -51,6 +51,8 @@ AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
fi
])
AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT