From: Torsten Werner <twerner@debian.org>
Date: Sat, 20 Mar 2010 23:34:07 +0100
Subject: [PATCH] do not build tests by default

---
 configure.in    |    9 +++++++++
 src/Makefile.am |    6 +++++-
 2 files changed, 14 insertions(+), 1 deletions(-)

diff -urN libavg.orig/configure.in libavg/configure.in
--- libavg.orig/configure.in	2011-01-13 21:37:06.010009998 +0100
+++ libavg/configure.in	2011-01-13 21:37:59.030010018 +0100
@@ -132,6 +132,15 @@
 
 AM_CONDITIONAL(APPLE, test $target_vendor = apple)
 
+AC_ARG_ENABLE([tests],
+AC_HELP_STRING([--enable-tests], [build tests]),
+[case "${enableval}" in
+  yes) tests=true ;;
+  no)  tests=false ;;
+  *)   AC_MSG_ERROR([bad value ${enableval} for --enable-tests]) ;;
+esac], [tests=false])
+AM_CONDITIONAL(ENABLE_TESTS, test x$tests = xtrue)
+
 PREFIX=$prefix
 AC_SUBST(PREFIX)
 AM_CONFIG_HEADER(src/avgconfig.h)
diff -urN libavg.orig/src/Makefile.am libavg/src/Makefile.am
--- libavg.orig/src/Makefile.am	2011-01-13 21:37:06.070010004 +0100
+++ libavg/src/Makefile.am	2011-01-13 21:38:45.370010010 +0100
@@ -1,4 +1,9 @@
+if ENABLE_TESTS
+  TESTDIRS = test
+endif
+
 SUBDIRS = base graphics imaging lmfit oscpack audio video player conradrelais parport \
-        anim wrapper python test utils samples
+        anim wrapper python utils samples $(TESTDIRS)
 
 EXTRA_DIST = avgrc avgconfigwrapper.h api.h avgconfig_win.h
+
-- 
