utils/osmo-stat-dummy: check for ENABLE_UTILITIES
Don't attempt to build osmo-stat-dummy, unless ENABLE_UTILITIES is set.
We check for this in utils/Makefile.am too.
Fix for currently failing master-osmo-ccid-firmware job, at
cross-compiling libosmocore:
make[3]: *** No rule to make target '../../src/vty/libosmovty.la', needed by 'osmo-stat-dummy'. Stop.
Fixes: 7a79dd3d ("osmo-stat-dummy: add rate counters and statsd tester")
Change-Id: I44e49b5646518bd07b2628ca488e4bf74586852c
diff --git a/utils/osmo-stat-dummy/Makefile.am b/utils/osmo-stat-dummy/Makefile.am
index 8184d9c..d28b982 100644
--- a/utils/osmo-stat-dummy/Makefile.am
+++ b/utils/osmo-stat-dummy/Makefile.am
@@ -1,3 +1,4 @@
+if ENABLE_UTILITIES
noinst_PROGRAMS = osmo-stat-dummy
osmo_stat_dummy_SOURCES = osmo-stat-dummy.c
osmo_stat_dummy_LDADD = $(LDADD) $(TALLOC_LIBS) \
@@ -6,3 +7,4 @@
$(top_builddir)/src/libosmocore.la
osmo_stat_dummy_CFLAGS = -Wall $(TALLOC_CFLAGS) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LIBOSMOCTRL_CFLAGS)
osmo_stat_dummy_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
+endif