diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-11 15:12:56 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-11 15:12:56 +0100 |
commit | 2376bde57d44194e59b85b20411e52307b43ec2e (patch) | |
tree | b83f74150f6ffa5380821266f38e7bf105953c9c /configure.ac | |
parent | 1087a7f4ad8bb1bc9bf4472bf2734b0e4929e7d1 (diff) | |
download | dabmod-2376bde57d44194e59b85b20411e52307b43ec2e.tar.gz dabmod-2376bde57d44194e59b85b20411e52307b43ec2e.tar.bz2 dabmod-2376bde57d44194e59b85b20411e52307b43ec2e.zip |
Only check librt if UHD enabled
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index d260f9e..47e1c81 100644 --- a/configure.ac +++ b/configure.ac @@ -128,8 +128,9 @@ AC_SUBST([LIBS], ["$FFTW_LIBS $SOAPYSDR_LIBS $PTHREAD_LIBS $ZMQ_LIBS"]) # Checks for UHD. AS_IF([test "x$enable_output_uhd" = "xyes"], - [AC_CHECK_LIB([uhd], [main], [], - [AC_MSG_ERROR([library uhd is missing])] )]) + [ AC_CHECK_LIB([uhd], [main], [], [AC_MSG_ERROR([library uhd is missing])]) + AC_CHECK_LIB([rt], [clock_gettime], [], [AC_MSG_ERROR([library rt is missing])]) + ]) AS_IF([test "x$enable_output_uhd" = "xyes"], [AC_DEFINE(HAVE_OUTPUT_UHD, [1], [Define if UHD output is enabled])]) @@ -141,8 +142,6 @@ AX_BOOST_BASE([1.54.0], [], AC_MSG_ERROR([BOOST 1.54 or later is required])) AX_BOOST_SYSTEM AX_BOOST_THREAD -AC_CHECK_LIB([rt], [clock_gettime], [], [AC_MSG_ERROR([library rt is missing])]) - # Tests for different memory allocation debuggers. # Valgrind doesn't need any. AS_IF([test "x$enable_debug" != "xno"], |