2011-03-04 13:18:10 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script
|
2011-09-07 19:28:27 +00:00
|
|
|
AC_INIT([osmo-bts],
|
|
|
|
m4_esyscmd([./git-version-gen .tarball-version]),
|
|
|
|
[openbsc-devel@lists.openbsc.org])
|
2011-03-04 13:18:10 +00:00
|
|
|
|
2016-09-30 23:04:19 +00:00
|
|
|
dnl *This* is the root dir, even if an install-sh exists in ../ or ../../
|
|
|
|
AC_CONFIG_AUX_DIR([.])
|
|
|
|
|
2015-11-05 21:48:24 +00:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
2011-12-01 08:12:47 +00:00
|
|
|
AC_CONFIG_TESTDIR(tests)
|
2011-03-04 13:18:10 +00:00
|
|
|
|
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
2017-07-06 09:47:18 +00:00
|
|
|
dnl include release helper
|
|
|
|
RELMAKE='-include osmo-release.mk'
|
|
|
|
AC_SUBST([RELMAKE])
|
|
|
|
|
2011-03-04 13:18:10 +00:00
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
2016-09-30 22:51:48 +00:00
|
|
|
dnl check for pkg-config (explained in detail in libosmocore/configure.ac)
|
|
|
|
AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no)
|
|
|
|
if test "x$PKG_CONFIG_INSTALLED" = "xno"; then
|
|
|
|
AC_MSG_WARN([You need to install pkg-config])
|
|
|
|
fi
|
|
|
|
PKG_PROG_PKG_CONFIG([0.20])
|
|
|
|
|
2011-06-27 09:45:15 +00:00
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures and compiler characteristics
|
|
|
|
|
2011-03-04 13:18:10 +00:00
|
|
|
dnl checks for libraries
|
2011-09-04 21:00:20 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.9)
|
2011-03-04 13:18:10 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
|
2015-10-12 10:11:53 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOTRAU, libosmotrau >= 0.3.2)
|
2011-06-27 09:32:11 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.3)
|
2014-08-24 15:04:54 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOCTRL, libosmoctrl)
|
2013-02-10 09:21:12 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOABIS, libosmoabis)
|
2013-02-16 13:28:25 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOCODEC, libosmocodec)
|
2017-05-19 12:21:00 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOCODING, libosmocoding)
|
2015-11-05 21:49:19 +00:00
|
|
|
PKG_CHECK_MODULES(ORTP, ortp)
|
2011-03-04 13:18:10 +00:00
|
|
|
|
2015-10-12 10:15:49 +00:00
|
|
|
AC_MSG_CHECKING([whether to enable support for sysmoBTS L1/PHY support])
|
2011-06-27 09:45:15 +00:00
|
|
|
AC_ARG_ENABLE(sysmocom-bts,
|
|
|
|
AC_HELP_STRING([--enable-sysmocom-bts],
|
2015-10-12 10:15:49 +00:00
|
|
|
[enable code for sysmoBTS L1/PHY [default=no]]),
|
2011-06-27 09:45:15 +00:00
|
|
|
[enable_sysmocom_bts="yes"],[enable_sysmocom_bts="no"])
|
|
|
|
AC_MSG_RESULT([$enable_sysmocom_bts])
|
|
|
|
AM_CONDITIONAL(ENABLE_SYSMOBTS, test "x$enable_sysmocom_bts" = "xyes")
|
2015-10-12 10:09:54 +00:00
|
|
|
if test "$enable_sysmocom_bts" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES(LIBGPS, libgps)
|
|
|
|
fi
|
2011-03-04 13:18:10 +00:00
|
|
|
|
2015-10-12 10:15:49 +00:00
|
|
|
AC_MSG_CHECKING([whether to enable support for osmo-trx based L1/PHY support])
|
2013-02-05 10:45:28 +00:00
|
|
|
AC_ARG_ENABLE(trx,
|
|
|
|
AC_HELP_STRING([--enable-trx],
|
2015-10-12 10:15:49 +00:00
|
|
|
[enable code for osmo-trx L1/PHY [default=no]]),
|
2013-02-05 10:45:28 +00:00
|
|
|
[enable_trx="yes"],[enable_trx="no"])
|
|
|
|
AC_MSG_RESULT([$enable_trx])
|
|
|
|
AM_CONDITIONAL(ENABLE_TRX, test "x$enable_trx" = "xyes")
|
|
|
|
|
2015-09-06 14:04:32 +00:00
|
|
|
AC_MSG_CHECKING([whether to enable support for Octasic OCTPHY-2G])
|
|
|
|
AC_ARG_ENABLE(octphy,
|
|
|
|
AC_HELP_STRING([--enable-octphy],
|
|
|
|
[enable code for Octasic OCTPHY-2G [default=no]]),
|
|
|
|
[enable_octphy="yes"],[enable_octphy="no"])
|
|
|
|
AC_ARG_WITH([octsdr-2g], [AS_HELP_STRING([--with-octsdr-2g], [Location of the OCTSDR-2G API header files])],
|
|
|
|
[octsdr2g_incdir="$withval"],[octsdr2g_incdir="`cd $srcdir; pwd`/src/osmo-bts-octphy/"])
|
|
|
|
AC_SUBST([OCTSDR2G_INCDIR], $octsdr2g_incdir)
|
|
|
|
AC_MSG_RESULT([$enable_octphy])
|
|
|
|
AM_CONDITIONAL(ENABLE_OCTPHY, test "x$enable_octphy" = "xyes")
|
|
|
|
if test "$enable_octphy" = "yes" ; then
|
|
|
|
oldCPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$OCTSDR2G_INCDIR -I$srcdir/include $LIBOSMOCORE_CFLAGS"
|
2017-03-02 11:43:47 +00:00
|
|
|
|
2015-09-06 14:04:32 +00:00
|
|
|
AC_CHECK_HEADER([octphy/octvc1/gsm/octvc1_gsm_default.h],[],
|
|
|
|
[AC_MSG_ERROR([octphy/octvc1/gsm/octvc1_gsm_default.h can not be found in $octsdr2g_incdir])],
|
|
|
|
[#include <octphy/octvc1/gsm/octvc1_gsm_default.h>])
|
2017-03-02 11:43:47 +00:00
|
|
|
|
|
|
|
AC_CHECK_MEMBER([tOCTVC1_GSM_TRX_CONFIG.usCentreArfcn],
|
|
|
|
AC_DEFINE([OCTPHY_MULTI_TRX],
|
|
|
|
[1],
|
|
|
|
[Define to 1 if your octphy header files support multi-trx]),
|
|
|
|
[],
|
|
|
|
[#include <octphy/octvc1/gsm/octvc1_gsm_api.h>])
|
|
|
|
|
|
|
|
AC_CHECK_MEMBER([tOCTVC1_HW_RF_PORT_RX_STATS.Frequency],
|
|
|
|
AC_DEFINE([OCTPHY_USE_FREQUENCY],
|
|
|
|
[1],
|
|
|
|
[Define to 1 if your octphy header files support tOCTVC1_RADIO_FREQUENCY_VALUE type]),
|
|
|
|
[],
|
|
|
|
[#include <octphy/octvc1/hw/octvc1_hw_api.h>])
|
|
|
|
|
|
|
|
AC_CHECK_MEMBER([tOCTVC1_HW_MSG_CLOCK_SYNC_MGR_STATS_RSP.ulSyncLossCnt],
|
|
|
|
AC_DEFINE([OCTPHY_USE_SYNC_LOSS_CNT],
|
|
|
|
[1],
|
|
|
|
[Define to 1 if your octphy header files renamed ulSyncLosseCnt to ulSyncLossCnt]),
|
|
|
|
[],
|
|
|
|
[#include <octphy/octvc1/hw/octvc1_hw_api.h>])
|
|
|
|
|
|
|
|
AC_CHECK_MEMBER([tOCTVC1_HW_MSG_RF_PORT_INFO_ANTENNA_TX_CONFIG_RSP.TxConfig],
|
|
|
|
AC_DEFINE([OCTPHY_USE_TX_CONFIG],
|
|
|
|
[1],
|
|
|
|
[Define to 1 if your octphy header files support tOCTVC1_HW_RF_PORT_ANTENNA_TX_CONFIG type]),
|
|
|
|
[],
|
|
|
|
[#include <octphy/octvc1/hw/octvc1_hw_api.h>])
|
|
|
|
|
|
|
|
AC_CHECK_MEMBER([tOCTVC1_HW_MSG_RF_PORT_INFO_ANTENNA_RX_CONFIG_RSP.RxConfig],
|
|
|
|
AC_DEFINE([OCTPHY_USE_RX_CONFIG],
|
|
|
|
[1],
|
|
|
|
[Define to 1 if your octphy header files support tOCTVC1_HW_RF_PORT_ANTENNA_RX_CONFIG type]),
|
|
|
|
[],
|
|
|
|
[#include <octphy/octvc1/hw/octvc1_hw_api.h>])
|
|
|
|
|
2017-03-06 12:52:56 +00:00
|
|
|
AC_CHECK_MEMBER([tOCTVC1_GSM_RF_CONFIG.ulTxAntennaId],
|
|
|
|
AC_DEFINE([OCTPHY_USE_ANTENNA_ID],
|
|
|
|
[1],
|
|
|
|
[Define to 1 if your octphy header files support antenna ids in tOCTVC1_GSM_RF_CONFIG]),
|
|
|
|
[],
|
|
|
|
[#include <octphy/octvc1/gsm/octvc1_gsm_api.h>])
|
|
|
|
|
2015-09-06 14:04:32 +00:00
|
|
|
CPPFLAGS=$oldCPPFLAGS
|
|
|
|
fi
|
|
|
|
|
2015-11-12 13:32:07 +00:00
|
|
|
AC_MSG_CHECKING([whether to enable NuRAN Wireless Litecell 1.5 hardware support])
|
2016-01-20 15:33:48 +00:00
|
|
|
AC_ARG_ENABLE(litecell15,
|
|
|
|
AC_HELP_STRING([--enable-litecell15],
|
2015-11-12 13:32:07 +00:00
|
|
|
[enable code for NuRAN Wireless Litecell15 bts [default=no]]),
|
2016-01-20 15:33:48 +00:00
|
|
|
[enable_litecell15="yes"],[enable_litecell15="no"])
|
2016-01-20 15:56:34 +00:00
|
|
|
AC_ARG_WITH([litecell15], [AS_HELP_STRING([--with-litecell15=INCLUDE_DIR], [Location of the litecell 1.5 API header files])],
|
|
|
|
[litecell15_incdir="$withval"],[litecell15_incdir="$incdir"])
|
|
|
|
AC_SUBST([LITECELL15_INCDIR], $litecell15_incdir)
|
2016-01-20 15:33:48 +00:00
|
|
|
AC_MSG_RESULT([$enable_litecell15])
|
|
|
|
AM_CONDITIONAL(ENABLE_LC15BTS, test "x$enable_litecell15" = "xyes")
|
2016-01-20 15:56:34 +00:00
|
|
|
if test "$enable_litecell15" = "yes"; then
|
|
|
|
oldCPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$LITECELL15_INCDIR -I$srcdir/include $LIBOSMOCORE_CFLAGS"
|
|
|
|
AC_CHECK_HEADER([nrw/litecell15/litecell15.h],[],
|
|
|
|
[AC_MSG_ERROR([nrw/litecell15/litecell15.h can not be found in $litecell15_incdir])],
|
|
|
|
[#include <nrw/litecell15/litecell15.h>])
|
2017-07-20 14:28:20 +00:00
|
|
|
PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd)
|
2016-01-20 15:56:34 +00:00
|
|
|
CPPFLAGS=$oldCPPFLAGS
|
|
|
|
fi
|
2015-11-12 13:32:07 +00:00
|
|
|
|
2014-03-12 15:19:59 +00:00
|
|
|
# Check for the sbts2050_header.h that was added after the 3.6 release
|
2014-03-12 15:51:27 +00:00
|
|
|
oldCPPFLAGS=$CPPFLAGS
|
2017-10-08 15:56:33 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $LIBOSMOCORE_CFLAGS"
|
2014-03-12 15:19:59 +00:00
|
|
|
AC_CHECK_HEADER([sysmocom/femtobts/sbts2050_header.h],
|
|
|
|
[sysmo_uc_header="yes"],[])
|
2014-03-12 15:51:27 +00:00
|
|
|
CPPFLAGS=$oldCPPFLAGS
|
2014-03-12 15:19:59 +00:00
|
|
|
|
|
|
|
if test "$sysmo_uc_header" = "yes" ; then
|
|
|
|
AC_DEFINE(BUILD_SBTS2050, 1, [Define if we want to build SBTS2050])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_SBTS2050, test "x$sysmo_uc_header" = "xyes")
|
|
|
|
AM_CONFIG_HEADER(btsconfig.h)
|
|
|
|
|
2011-03-04 13:18:10 +00:00
|
|
|
AC_OUTPUT(
|
|
|
|
src/Makefile
|
|
|
|
src/common/Makefile
|
2016-01-09 12:13:37 +00:00
|
|
|
src/osmo-bts-virtual/Makefile
|
2011-06-27 09:25:35 +00:00
|
|
|
src/osmo-bts-sysmo/Makefile
|
2015-11-12 13:32:07 +00:00
|
|
|
src/osmo-bts-litecell15/Makefile
|
2013-02-05 10:45:28 +00:00
|
|
|
src/osmo-bts-trx/Makefile
|
2015-09-06 14:04:32 +00:00
|
|
|
src/osmo-bts-octphy/Makefile
|
2011-03-04 13:18:10 +00:00
|
|
|
include/Makefile
|
|
|
|
include/osmo-bts/Makefile
|
2011-12-01 08:12:47 +00:00
|
|
|
tests/Makefile
|
|
|
|
tests/paging/Makefile
|
2014-02-21 15:12:46 +00:00
|
|
|
tests/agch/Makefile
|
2012-12-26 17:55:54 +00:00
|
|
|
tests/cipher/Makefile
|
2013-06-20 15:18:38 +00:00
|
|
|
tests/sysmobts/Makefile
|
2014-05-22 19:17:49 +00:00
|
|
|
tests/misc/Makefile
|
2013-06-17 06:23:04 +00:00
|
|
|
tests/handover/Makefile
|
2017-02-07 15:12:17 +00:00
|
|
|
tests/tx_power/Makefile
|
2017-06-26 10:07:43 +00:00
|
|
|
tests/meas/Makefile
|
2011-03-04 13:18:10 +00:00
|
|
|
Makefile)
|