diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-24 09:47:42 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-24 09:47:42 +0100 |
commit | 32dab81b201b54bee4d58bfbab4d2884de245193 (patch) | |
tree | 2acc80f933eff3a35d5913b4e0ccde3c2edc0dc4 /configure.ac | |
parent | d4331e326b3bdf553db106b83fc5b40d059f6581 (diff) | |
download | dabmod-32dab81b201b54bee4d58bfbab4d2884de245193.tar.gz dabmod-32dab81b201b54bee4d58bfbab4d2884de245193.tar.bz2 dabmod-32dab81b201b54bee4d58bfbab4d2884de245193.zip |
Link against Boost::Thread when UHD is enabled
This is necessary on some systems, for a reason that is not entirely
clear. I believe UHD's pkg-config file should instruct us to link
against boost-thread if necessary, but it doesn't.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c663e60..ec2f0a5 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ AC_ARG_ENABLE([easydabv3], [], [enable_easydabv3=no]) AC_ARG_ENABLE([limesdr], [AS_HELP_STRING([--enable-limesdr], [Build for LimeSDR board])], - [], [enable_limesdr=no]) + [], [enable_limesdr=no]) # UHD support control AC_ARG_ENABLE([output_uhd], @@ -125,6 +125,12 @@ AS_IF([test "x$enable_output_uhd" = "xyes"], AS_IF([test "x$enable_output_uhd" = "xyes"], [AC_DEFINE(HAVE_OUTPUT_UHD, [1], [Define if UHD output is enabled])]) +# I don't know why this is needed, I think the uhd pkg-config file should also +# tell us to link against boost thread, but it doesn't. +AS_IF([test "x$enable_output_uhd" = "xyes"], + [ AX_BOOST_BASE([1.55.0], [], AC_MSG_ERROR([BOOST 1.55 or later is required])) + AX_BOOST_THREAD ]) + AS_IF([test "x$enable_soapysdr" = "xyes"], [AC_DEFINE(HAVE_SOAPYSDR, [1], [Define if SoapySDR output is enabled])]) |