1From 148b56bf894192cef6dd133715e295260b934a71 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Fri, 5 Mar 2021 15:50:32 +0100
4Subject: [PATCH] configure.ac: add an option to disable tools
5
6Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7[Upstream status:
8https://gitlab.xiph.org/xiph/icecast-libshout/-/issues/2331]
9---
10 Makefile.am  | 5 ++++-
11 configure.ac | 5 +++++
12 2 files changed, 9 insertions(+), 1 deletion(-)
13
14diff --git a/Makefile.am b/Makefile.am
15index ea855cf..79241f1 100644
16--- a/Makefile.am
17+++ b/Makefile.am
18@@ -3,10 +3,13 @@
19 AUTOMAKE_OPTIONS = 1.6 foreign
20 ACLOCAL_AMFLAGS = -I m4
21
22-SUBDIRS = include src doc win32 tools
23+SUBDIRS = include src doc win32
24 if HAVE_EXAMPLES
25 SUBDIRS += examples
26 endif
27+if HAVE_TOOLS
28+SUBDIRS += tools
29+endif
30
31 EXTRA_DIST = INSTALL m4/shout.m4 m4/acx_pthread.m4 \
32 	m4/ogg.m4 m4/vorbis.m4 m4/xiph_compiler.m4 m4/xiph_net.m4 \
33diff --git a/configure.ac b/configure.ac
34index 264b9b0..34f971c 100644
35--- a/configure.ac
36+++ b/configure.ac
37@@ -100,6 +100,11 @@ AC_ARG_ENABLE([examples],
38   AS_HELP_STRING([--disable-examples],[Do not build example code]))
39 AM_CONDITIONAL([HAVE_EXAMPLES],[test "${enable_examples}" != "no"])
40
41+dnl Allow tools not to be build
42+AC_ARG_ENABLE([tools],
43+  AS_HELP_STRING([--disable-tools],[Do not build tools]))
44+AM_CONDITIONAL([HAVE_TOOLS],[test "${enable_tools}" != "no"])
45+
46 dnl Module checks
47 XIPH_NET
48
49--
502.30.0
51
52