summaryrefslogtreecommitdiffstats
path: root/openbsc/configure.ac
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-11-16 22:15:22 +0100
committerHarald Welte <laforge@gnumonks.org>2012-11-16 22:16:46 +0100
commit6c7680d72691a11e9bf7f91fe1938a3c192b3511 (patch)
tree8116563c60897a1da791e4c565fc8596ae2a47e0 /openbsc/configure.ac
parent1a2993adb7031c7e908f478e64cf73b44419b500 (diff)
SMPP: build the smpp interface only in case of ./configure --enable-smpp
Diffstat (limited to 'openbsc/configure.ac')
-rw-r--r--openbsc/configure.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index 279d12a66..b56254c46 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -41,12 +41,23 @@ AC_ARG_ENABLE([osmo-bsc], [AS_HELP_STRING([--enable-osmo-bsc], [Build the Osmo B
])
AM_CONDITIONAL(BUILD_BSC, test "x$osmo_ac_build_bsc" = "xyes")
+AC_ARG_ENABLE([smpp], [AS_HELP_STRING([--enable-smpp], [Build the SMPP interface])],
+ [
+ PKG_CHECK_MODULES(LIBSMPP34, libsmpp34 >= 1.10)
+ osmo_ac_build_smpp="yes"
+ AC_DEFINE(BUILD_SMPP, 1, [Define if we want to build SMPP])
+ ],
+ [
+ osmo_ac_build_smpp="no"
+ ])
+AM_CONDITIONAL(BUILD_SMPP, test "x$osmo_ac_build_smpp" = "xyes")
+
+
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.2)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOABIS, libosmoabis >= 0.1.0)
PKG_CHECK_MODULES(LIBOSMOGB, libosmogb >= 0.5.2)
-PKG_CHECK_MODULES(LIBSMPP34, libsmpp34 >= 1.10)
found_libgtp=yes
PKG_CHECK_MODULES(LIBGTP, libgtp, , found_libgtp=no)