The makefile line
RST2MAN ?= rst2man
didn't have the desired effect, because config.mak sets RST2MAN, and ?=
doesn't do anything if the variable is set to empty. So instead let
configure put in a default value if the program cannot be found.
PKG_PROG_PKG_CONFIG
dnl check for rst2man
-AC_CHECK_PROGS(RST2MAN, rst2man)
+AC_CHECK_PROGS(RST2MAN, rst2man, rst2man)
dnl check for windows tools
if test "$PORTNAME" = "win32"; then
-include ../config.mak
-RST2MAN ?= rst2man
-
manpages = pgbouncer.1 pgbouncer.5
dist_man_MANS = $(manpages)