summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-11-13 07:06:54 +0100
committerHarald Welte <laforge@gnumonks.org>2015-01-01 13:03:03 +0100
commit7465e4c2e19f25bad3c92288e323d4d0d9f7baf1 (patch)
tree67f31be34fc9bfe2c34a3c425cadb2536ad5f43b
parent61c9156a744f48493aea3f7ff175a3ed56d154cd (diff)
build meas_vis only if libcdk is available
-rw-r--r--openbsc/configure.ac4
-rw-r--r--openbsc/src/utils/Makefile.am4
2 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index 69be8b632..3e5ae38a4 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -84,6 +84,10 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(dahdi/user.h,,AC_MSG_WARN(DAHDI input driver will not be built))
AC_CHECK_HEADERS(dbi/dbd.h,,AC_MSG_ERROR(DBI library is not installed))
+found_cdk=yes
+AC_CHECK_HEADERS(cdk/cdk.h,,found_cdk=no)
+AM_CONDITIONAL(HAVE_LIBCDK, test "$found_cdk" = yes)
+
dnl Checks for typedefs, structures and compiler characteristics
diff --git a/openbsc/src/utils/Makefile.am b/openbsc/src/utils/Makefile.am
index 6f7947119..015419969 100644
--- a/openbsc/src/utils/Makefile.am
+++ b/openbsc/src/utils/Makefile.am
@@ -2,7 +2,11 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)
AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS)
AM_LDFLAGS = $(COVERAGE_LDFLAGS)
+if HAVE_LIBCDK
bin_PROGRAMS = bs11_config isdnsync meas_vis
+else
+bin_PROGRAMS = bs11_config isdnsync
+endif
if BUILD_SMPP
noinst_PROGRAMS = smpp_mirror