laforge
/
openbts-osmo
Archived
1
0
Fork 0

build: insert autofoo for usrp transceiver and options

Usage:

  ./configure --with-usrp1

  Enable non-UHD USRP1 support through the gnuradio-based
  driver. Requires gnuradio (libusrp) to be installed.

 ./configure --with-resample

  Enable host-based 400ksps to 270.833ksps resampling.
  Only supported for UHD devices. If not enabled, the GSM
  sample rate is requested directly from the device.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
master
Thomas Tsou 11 years ago
parent ba7a18d80d
commit 44fe0df73f
  1. 6
      public-trunk/Transceiver52M/Makefile.am
  2. 10
      public-trunk/configure.ac

@ -46,9 +46,15 @@ COMMON_SOURCES = \
sigProcLib.cpp \
Transceiver.cpp
if RESAMPLE
libtransceiver_la_SOURCES = \
$(COMMON_SOURCES) \
radioIOResamp.cpp
else
libtransceiver_la_SOURCES = \
$(COMMON_SOURCES) \
radioIO.cpp
endif
noinst_PROGRAMS = \
USRPping \

@ -62,6 +62,11 @@ AC_ARG_WITH(usrp1, [
[enable USRP1 gnuradio based transceiver])
])
AC_ARG_WITH(resamp, [
AS_HELP_STRING([--with-resamp],
[enable resampling for non-52MHz devices])
])
AS_IF([test "x$with_usrp1" = "xyes"], [
# Defines USRP_CFLAGS, USRP_INCLUDEDIR, and USRP_LIBS
PKG_CHECK_MODULES(USRP, usrp > 3.1)
@ -80,6 +85,11 @@ AS_IF([test "x$with_usrp1" = "xyes"], [
AC_DEFINE(USE_UHD, 1, Define to 1 if using UHD)
])
AS_IF([test "x$with_resamp" = "xyes"], [
AC_DEFINE(RESAMPLE, 1, Define to 1 for resampling)
])
AM_CONDITIONAL(RESAMPLE, [test "x$with_resamp" = "xyes"])
AM_CONDITIONAL(UHD, [test "x$with_usrp1" != "xyes"])
# Defines OSIP_CFLAGS, OSIP_INCLUDEDIR, and OSIP_LIBS