aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-02 12:59:15 +0200
committerMax <msuraev@sysmocom.de>2017-05-02 13:43:06 +0200
commit7bb383a45c7684b7df078edc2bdadd473b52365c (patch)
tree23dd28c60a420d6fbc41769d9ea65729668ad3f1 /openbsc/src
parent6d8e5198ad17e70f27010dbf7c86d25477de90e1 (diff)
Make pcap dependency optional
Previously we required pcap.h unconditionally which causes embedded build failure because it's not included in current version of out poky toolchain. We can add it to toolchain but it's only necessary for utils/osmo-meas-pcap2db which is not built for sysmobts anyway so it's easier to just make this dependency optional and build osmo-meas-pcap2db only if it's available - similar to the way we build osmo-meas-udp2db. Related: SYS#3610 Change-Id: I77a5f7eafe0282abedacffad6a9bcb0a8f2b5caa
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/utils/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/utils/Makefile.am b/openbsc/src/utils/Makefile.am
index ab4f3ced6..9c3837a36 100644
--- a/openbsc/src/utils/Makefile.am
+++ b/openbsc/src/utils/Makefile.am
@@ -29,9 +29,13 @@ bin_PROGRAMS = \
$(NULL)
if HAVE_SQLITE3
bin_PROGRAMS += \
- osmo-meas-pcap2db \
osmo-meas-udp2db \
$(NULL)
+if HAVE_PCAP
+bin_PROGRAMS += \
+ osmo-meas-pcap2db \
+ $(NULL)
+endif
endif
if HAVE_LIBCDK
bin_PROGRAMS += \