build: use configure rule whether host tool is built
Use a configure variable to control whether the host tool is built. It
is built by default.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic5052fbd20cb16fe7fec8fc09d25b90457a5a645
diff --git a/configure.ac b/configure.ac
index c5619e8..b555c76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,13 @@
AX_PTHREAD([], [AC_MSG_ERROR(["pthread required and not found"])])
# Configurability
+
+# Enable building the host tool (default: yes)
+AC_ARG_ENABLE([build-host-tool],
+ AC_HELP_STRING([--disable-build-host-tool], [Disable building the host tool])
+)
+AM_CONDITIONAL([BUILD_HOST_TOOL], [test "x$enable_build_host_tool" != "xno"])
+
# Enable static layout for firmware image staging.
AC_ARG_ENABLE([static-layout],
AS_HELP_STRING([--enable-static-layout],