From ebbff39ac0af7dbf76bab7b8e227559cb2d1edb6 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 19 Nov 2005 12:39:14 +0000 Subject: Fix installation without Python. Sunil Shetye, reported by Peter Church. svn path=/trunk/; revision=4466 --- Makefile.am | 11 +++++++++-- NEWS | 1 + configure.ac | 1 + specgen.sh | 36 ++++++++++++++++++++---------------- 4 files changed, 31 insertions(+), 18 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 ; } diff --git a/NEWS b/NEWS index dac1384e..82b4d41b 100644 --- a/NEWS +++ b/NEWS @@ -300,6 +300,7 @@ fetchmail 6.3.0 (not yet released officially): Polish [pl] (Jakub Bogusz), Russian [ru] (Pavel Maryanov). * In oversized warning messages, print the account name, too. Fixes Debian Bug#213299. Sunil Shetye (MA). +* Fix installation without Python. Sunil Shetye, reported by Peter Church. (MA) # INTERNAL CHANGES * Switched to automake. Matthias Andree. diff --git a/configure.ac b/configure.ac index 85dc7b88..2c7bb7c2 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,7 @@ AM_INIT_AUTOMAKE(1.5 foreign no-installinfo) dnl the : states that python is optional AM_PATH_PYTHON(2.0,,:) +AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) AC_PROG_AWK AC_PROG_CC diff --git a/specgen.sh b/specgen.sh index 0ec09b68..47293c4b 100755 --- a/specgen.sh +++ b/specgen.sh @@ -12,6 +12,8 @@ export LANG LC_TIME cat < ${version} -- cgit v1.2.3