---
 configure.ac           | 3 +++
 microbench/Makefile.am | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index 94449510..bdeba93a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -362,6 +362,9 @@ AC_SUBST(OGG_PACKAGE)
 AC_ARG_ENABLE([bin], AC_HELP_STRING([--disable-bin], [Do not build the flac 
program]))
 AM_CONDITIONAL([FLaC__HAS_BIN], [test "${enable_bin}" != "no"])
 
+AC_ARG_ENABLE([benchmark], AC_HELP_STRING([--disable-benchmark], [Do not build 
the flac benchmark]))
+AM_CONDITIONAL([FLaC__HAS_BENCHMARK], [test "${enable_benchmark}" != "no"])
+
 dnl check for i18n(internationalization); these are from libiconv/gettext
 AM_ICONV
 AM_LANGINFO_CODESET
diff --git a/microbench/Makefile.am b/microbench/Makefile.am
index 9ab6a040..9c960691 100644
--- a/microbench/Makefile.am
+++ b/microbench/Makefile.am
@@ -33,8 +33,12 @@ AM_CPPFLAGS = -I$(top_srcdir)/include 
-I$(top_srcdir)/src/libFLAC/include
 
 noinst_HEADERS = util.h
 
+if FLaC__HAS_BENCHMARK
+
 noinst_PROGRAMS = benchmark_residual
 
 benchmark_residual_SOURCES = benchmark_residual.c util.c
 
 benchmark_residual_LDADD = @LIB_CLOCK_GETTIME@
+
+endif
-- 
2.11.0

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to