aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-11-10 19:57:47 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-11-10 19:57:47 +0000
commit2ed8dc12cd5ffbbff9cd25e928a720be3596f2af (patch)
tree994d80cb32bb77ad0f380f9254a7e3171d2ec051 /Makefile.am
parent13c27199231cbc2cc83969ada741b95be1cca4d3 (diff)
downloadfetchmail-2ed8dc12cd5ffbbff9cd25e928a720be3596f2af.tar.gz
fetchmail-2ed8dc12cd5ffbbff9cd25e928a720be3596f2af.tar.bz2
fetchmail-2ed8dc12cd5ffbbff9cd25e928a720be3596f2af.zip
Clean up the horrible HAVE_[V]SNPRINTF mess, use Trio on systems that lack
real snprintf or vsnprintf. svn path=/trunk/; revision=3996
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am18
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index bbd82289..2dbea302 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,19 @@ libfm_a_DEPENDENCIES= $(EXTRAOBJ)
LDADD = libfm.a @LIBINTL@ $(LIBOBJS)
DEPENDENCIES= libfm.a $(LIBOBJS)
+check_PROGRAMS=
+
+if NEED_TRIO
+noinst_LIBRARIES+= libtrio.a
+libtrio_a_SOURCES= trio/triostr.c trio/trio.c trio/trionan.c \
+ trio/trio.h trio/triop.h trio/triodef.h \
+ trio/trionan.h trio/triostr.h
+check_PROGRAMS+= regression
+regression_SOURCES= trio/regression.c
+LDADD += libtrio.a -lm
+TESTS= regression
+endif
+
fetchmail_SOURCES= fetchmail.h getopt.h \
i18n.h kerberos.h md5.h mx.h netrc.h ntlm.h \
smbbyteorder.h smbdes.h smbmd4.h smbencrypt.h smtp.h \
@@ -38,7 +51,7 @@ fetchmail_SOURCES= fetchmail.h getopt.h \
smbmd4.c smbutil.c ipv6-connect.c lock.c \
rcfile_l.l rcfile_y.y ucs/norm_charmap.c
-check_PROGRAMS= rfc822 unmime netrc rfc2047e
+check_PROGRAMS += rfc822 unmime netrc rfc2047e
rfc2047e_CFLAGS= -DTEST
@@ -64,7 +77,8 @@ DISTDOCS= FAQ FEATURES NOTES fetchmail-man.html fetchmail-FAQ.html \
# extra directories to ship
distdirs = rh-config contrib beos
-EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs) ucs/README.svn
+EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs) ucs/README.svn \
+ trio/CHANGES trio/README
FAQ: fetchmail-FAQ.html
AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }