diff options
Diffstat (limited to 'openbsc/configure.in')
-rw-r--r-- | openbsc/configure.in | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/openbsc/configure.in b/openbsc/configure.in index 50189a4aa..b877e6b84 100644 --- a/openbsc/configure.in +++ b/openbsc/configure.in @@ -22,6 +22,27 @@ AC_SEARCH_LIBS(gtp_new, gtp, AM_CONDITIONAL(HAVE_LIBGTP, test "x$GPRS_LIBGTP" != "x") + +AC_ARG_ENABLE([nat], [AS_HELP_STRING([--enable-nat], [Build the BSC NAT. Requires SCCP])], + [ + PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp) + osmo_ac_build_nat="yes" + ], + [ + osmo_ac_build_nat="no" + ]) +AM_CONDITIONAL(BUILD_NAT, test "x$osmo_ac_build_nat" = "xyes") + +AC_ARG_ENABLE([osmo-bsc], [AS_HELP_STRING([--enable-bsc], [Build the Osmo BSC])], + [ + PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp) + osmo_ac_build_bsc="yes" + ], + [ + osmo_ac_build_bsc="no" + ]) +AM_CONDITIONAL(BUILD_BSC, test "x$osmo_ac_build_bsc" = "xyes") + PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.1.15) PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.1.9) @@ -47,9 +68,7 @@ AM_CONFIG_HEADER(bscconfig.h) AC_OUTPUT( openbsc.pc - libsccp.pc include/openbsc/Makefile - include/sccp/Makefile include/Makefile src/Makefile src/ipaccess/Makefile @@ -61,6 +80,5 @@ AC_OUTPUT( tests/gsm0408/Makefile tests/db/Makefile tests/channel/Makefile - tests/sccp/Makefile tests/bsc-nat/Makefile Makefile) |