Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 86df4200c9c33d999df0e8cc3c9771f17a297ec4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Wed, 13 Sep 2017 15:01:54 +0200 |
| 4 | Subject: [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 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 13 | --- |
| 14 | configure.ac | 8 +++++++- |
| 15 | 1 file changed, 7 insertions(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/configure.ac b/configure.ac |
| 18 | index 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 | -- |
| 38 | 2.14.1 |
| 39 | |