aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-11-19 12:39:14 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-11-19 12:39:14 +0000
commitebbff39ac0af7dbf76bab7b8e227559cb2d1edb6 (patch)
treecabea13de4d49ae220e45e5b89dd009fa20b9af8 /Makefile.am
parente9788b54cc8baf3912cfaaa1ba09cee0efe620b8 (diff)
downloadfetchmail-ebbff39ac0af7dbf76bab7b8e227559cb2d1edb6.tar.gz
fetchmail-ebbff39ac0af7dbf76bab7b8e227559cb2d1edb6.tar.bz2
fetchmail-ebbff39ac0af7dbf76bab7b8e227559cb2d1edb6.zip
Fix installation without Python. Sunil Shetye, reported by Peter Church.
svn path=/trunk/; revision=4466
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index d765a616..adb41ad3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,10 +11,15 @@ AM_YFLAGS= -d
BUILT_SOURCES= rcfile_y.h
bin_PROGRAMS= fetchmail
+
+dist_noinst_SCRIPTS= specgen.sh
+dist_man1_MANS= fetchmail.man
+
+if HAVE_PYTHON
nodist_bin_SCRIPTS= fetchmailconf
python_PYTHON= fetchmailconf.py
-dist_noinst_SCRIPTS= specgen.sh
-dist_man1_MANS= fetchmail.man fetchmailconf.man
+dist_man1_MANS+= fetchmailconf.man
+endif
CLEANFILES= $(nodist_bin_SCRIPTS)
@@ -94,8 +99,10 @@ EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs) ucs/README.svn \
trio/CHANGES trio/README strlcpy.3 \
m4-local/ac-archive-license.txt m4-local/ac_ma_search_package.m4
+if HAVE_PYTHON
fetchmailconf:
( echo '#! /bin/sh' && echo 'exec @PYTHON@ @pythondir@/fetchmailconf.py "$$@"' ) >$@ || { rm -f $@ ; exit 1; }
+endif
FAQ: fetchmail-FAQ.html
AWK=$(AWK) $(SHELL) $(srcdir)/dist-tools/html2txt $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }