summaryrefslogtreecommitdiff
blob: d8c647534401044e0e77514da030b1dd56df7859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -NrU5 a52dec-0.7.4.orig/configure.in a52dec-0.7.4/configure.in
--- a52dec-0.7.4.orig/configure.in	2008-06-13 16:13:46.000000000 +0200
+++ a52dec-0.7.4/configure.in	2008-06-13 16:12:20.000000000 +0200
@@ -106,10 +106,16 @@
 elif test x"$TENDRA" = x"yes"; then
     dnl TenDRA portability checking compiler
     CFLAGS="$CFLAGS -DTenDRA_check"
 fi
 
+dnl Build tests?
+AC_ARG_ENABLE(tests,
+	AS_HELP_STRING([--disable-tests], [Don't build tests during make]),,
+	enable_tests="yes")
+AM_CONDITIONAL(TESTS, [test "$enable_tests" = "yes"])
+
 builtin([include],[src/configure.incl])
 
 AC_C_ATTRIBUTE_ALIGNED
 
 AC_OUTPUT
diff -NrU5 a52dec-0.7.4.orig/Makefile.am a52dec-0.7.4/Makefile.am
--- a52dec-0.7.4.orig/Makefile.am	2008-06-13 16:13:46.000000000 +0200
+++ a52dec-0.7.4/Makefile.am	2008-06-13 16:12:33.000000000 +0200
@@ -1,3 +1,7 @@
-SUBDIRS = autotools include doc liba52 libao src vc++ test
+SUBDIRS = autotools include doc liba52 libao src vc++
+
+if TESTS
+SUBDIRS += test
+endif
 
 EXTRA_DIST = HISTORY bootstrap