1From 86df4200c9c33d999df0e8cc3c9771f17a297ec4 Mon Sep 17 00:00:00 2001 2From: Martin Jansa <Martin.Jansa@gmail.com> 3Date: Wed, 13 Sep 2017 15:01:54 +0200 4Subject: [PATCH] configure.ac: make tools support optional 5 6* add --enable-tools option 7* XIPH_PATH_OGG macro is provided by libogg so we cannot call 8 it without the libogg dependency 9 10Upstream-Status: Pending 11 12Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 13--- 14 configure.ac | 8 +++++++- 15 1 file changed, 7 insertions(+), 1 deletion(-) 16 17diff --git a/configure.ac b/configure.ac 18index d4b1a3f..7d6b2dc 100644 19--- a/configure.ac 20+++ b/configure.ac 21@@ -68,8 +68,14 @@ AC_MSG_RESULT($has_alloca) 22 23 AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h) 24 25-XIPH_PATH_OGG([tools="tools"], [tools=""]) 26+AC_ARG_ENABLE(tools, [ --enable-tools Compile ogg tools], 27+[if test "$enableval" = yes; then 28+ [tools="tools"] 29+else 30+ [tools=""] 31+fi], 32 AC_SUBST(tools) 33+) 34 35 AC_CHECK_LIB(m, sin) 36 37-- 382.14.1 39 40