--- a/Makefile.am
+++ b/Makefile.am
@@ -16,9 +16,11 @@
 pys=			fetchmailconf.py
 pym=			fetchmailconf.man
 
+if HAVE_PYTHON
 nodist_bin_SCRIPTS=	fetchmailconf
 python_PYTHON=		$(pys)
 dist_man1_MANS+=	$(pym)
+endif
 
 CLEANFILES=		$(nodist_bin_SCRIPTS)
 
