diff -up afflib-3.2.3/lib/Makefile.am.nos3 afflib-3.2.3/lib/Makefile.am
--- afflib-3.2.3/lib/Makefile.am.nos3 2008-06-28 10:00:34.000000000 +0200
+++ afflib-3.2.3/lib/Makefile.am 2008-07-05 00:48:43.000000000 +0200
@@ -1,13 +1,16 @@
-bin_PROGRAMS = aftest s3
+bin_PROGRAMS = aftest
aftest_SOURCES = aftest.cpp
aftest_LDADD = libafflib.la
#aftest_LDFLAGS = -static
aftest_LDFLAGS = $(PTHREAD_CFLAGS)
+if MAYBE_S3
+bin_PROGRAMS += s3
s3_SOURCES = s3.cpp
s3_LDADD = libafflib.la
#s3_LDFLAGS = -static
+endif
TESTS = aftest
diff -up afflib-3.2.3/configure.ac.nos3 afflib-3.2.3/configure.ac
--- afflib-3.2.3/configure.ac.nos3 2008-07-05 00:38:23.000000000 +0200
+++ afflib-3.2.3/configure.ac 2008-07-05 00:48:31.000000000 +0200
@@ -256,6 +256,7 @@ if test "x${enable_s3}" = "xyes" ; then
S3_BIN='s3$(EXEEXT)'
fi
AC_SUBST(S3_BIN)
+AM_CONDITIONAL([MAYBE_S3], [test "x${enable_s3}" = "xyes"])
##