build meas_vis only if libcdk is available

changes/88/3188/1
Harald Welte 10 years ago
parent 61c9156a74
commit 7465e4c2e1
  1. 4
      openbsc/configure.ac
  2. 4
      openbsc/src/utils/Makefile.am

@ -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

@ -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

Loading…
Cancel
Save