From 8a7be30df665cd475a6272a5b17936965dccb686 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 16 Jul 2022 15:50:49 +0200 Subject: rst2html5[.py]: let configure look for it. FreeBSD only has rst2html5.py, Debian only rst2html5, Fedora both. --- Makefile.am | 2 +- configure.ac | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 79ada427..36294d89 100644 --- a/Makefile.am +++ b/Makefile.am @@ -270,7 +270,7 @@ SUFFIXES = .html .txt .rst .man.rst: pandoc --from man --to rst --table-of-contents --standalone --output $@ $< .rst.html: - rst2html5.py --title "Fetchmail Manual" --strip-comments --rfc-references $< $@ + $(RST2HTML) --title "Fetchmail Manual" --strip-comments --rfc-references $< $@ # default to some non-default options when using "make distcheck" AM_DISTCHECK_CONFIGURE_FLAGS=--with-ssl diff --git a/configure.ac b/configure.ac index 1f296bff..d0df287e 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,8 @@ AC_PROG_RANLIB AM_PROG_CC_C_O PKG_PROG_PKG_CONFIG +AC_CHECK_PROGS([RST2HTML], [rst2html5.py rst2html5], [false]) + AC_LIB_RPATH AC_ISC_POSIX -- cgit v1.2.3