summaryrefslogtreecommitdiff
path: root/media-sound/ezstream/files/ezstream-1.0.2-conditional-check.patch
blob: f96d7093694f38d5aab76bfe8245e6eb48a78ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
libcheck is used for testing only
Condition out dependency for USE=test
https://bugs.gentoo.org/948427
https://gitlab.xiph.org/xiph/ezstream/-/issues/2290
--- a/configure.ac
+++ b/configure.ac
@@ -39,8 +39,14 @@
 
 AC_SYS_LARGEFILE
 
-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+AC_ARG_ENABLE([check],
+	AS_HELP_STRING([--enable-check],
+		[Enable support for running tests with libtest (default is YES)]),
+	[check_enabled=$enableval], [check_enabled=yes])
 
+AS_IF([test "x$check_enabled" = "xyes"], [
+	PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+], [])
 
 dnl ##############
 dnl ## COMPILER ########################################################