diff --git a/Makefile.am b/Makefile.am
index fedd0db46885ccfa6b5eb9655671f37bcfcb7023..aa7f254833d064240014b6b9bc9515c22c08a70b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -286,7 +286,7 @@ doc/%.png: doc/%.dot
 	$(DOT) -Tpng -o $@ $<
 
 man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER)
-	@test -n "$(DOCBOOK2MAN)" || { echo 'docbook2html' not found during configure; exit 1; }
+	@test -n "$(DOCBOOK2MAN)" || { echo 'docbook2man' not found during configure; exit 1; }
 	TMPDIR=`mktemp -d` && { \
 	$(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $$TMPDIR/$(patsubst man/%.in,%,$@) ; \
 	mv $$TMPDIR/$(patsubst man/%.in,%,$@) $@ ; \