--- configure.ac.orig	2018-12-15 18:47:24.000000000 -0800
+++ configure.ac	2018-12-30 18:28:00.000000000 -0800
@@ -4,7 +4,7 @@
 AM_MAINTAINER_MODE([enable])
 AC_CONFIG_SRCDIR([src/sshguard.in])
 AM_CONFIG_HEADER([src/common/config.h])
-AM_INIT_AUTOMAKE([foreign])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
 AM_SILENT_RULES([yes])
 AC_REQUIRE_AUX_FILE([tap-driver.sh])
 
@@ -27,7 +27,7 @@
 AS_IF([test "$capsicum_found" == "yes"],
       [AC_DEFINE([CAPSICUM], [1], [Use Capsicum])])
 
-AC_CHECK_PROGS(RST2MAN_PROG, [rst2man rst2man.py], no)
+AC_CHECK_PROGS(RST2MAN_PROG, [rst2man rst2man-2.7.py], no)
 AM_CONDITIONAL([BUILD_MAN], [test "x$RST2MAN_PROG" != xno])
 AS_IF([test "$RST2MAN_PROG" == "no"],
       [AC_MSG_WARN([rst2man not found; using pre-built man pages])])