aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2018-09-27 14:40:32 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-10-09 17:24:27 +0300
commitb7da3cd005ab576b55e066ffa854697f41bb6f82 (patch)
treef0a48c3ec6f19840b5432da2280959ea1cefdf29 /example
parenta7f23e35b596dada847205235821336e9e8d7166 (diff)
example: build: configure option to disable example build
Example applications are not always needed. Added a configuration option to disable example application build and install. This makes build faster and install footprint smaller. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/m4/configure.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/example/m4/configure.m4 b/example/m4/configure.m4
index cbac09140..ee4f44bae 100644
--- a/example/m4/configure.m4
+++ b/example/m4/configure.m4
@@ -1,5 +1,15 @@
##########################################################################
-# Enable/disable test-example
+# Build and install example applications
+##########################################################################
+AC_ARG_WITH([examples],
+ [AS_HELP_STRING([--without-examples],
+ [don't build and install example applications])],
+ [],
+ [with_examples=yes])
+AM_CONDITIONAL([WITH_EXAMPLES], [test x$with_examples != xno])
+
+##########################################################################
+# Test examples during 'make check'
##########################################################################
AC_ARG_ENABLE([test-example],
[AS_HELP_STRING([--enable-test-example], [run basic test against examples])],