diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-01 09:57:36 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-01 09:57:36 +0100 |
commit | 76e7347f63a09c4e0b860798cd8abaecdff1d302 (patch) | |
tree | c20fcb2ae810b8ad7f5820371538719dcdb2729f /configure.ac | |
parent | 05d4fc159a45d3b5d83cdb6f8df3bdce50ea8022 (diff) | |
download | dabmod-76e7347f63a09c4e0b860798cd8abaecdff1d302.tar.gz dabmod-76e7347f63a09c4e0b860798cd8abaecdff1d302.tar.bz2 dabmod-76e7347f63a09c4e0b860798cd8abaecdff1d302.zip |
Add autoconf check for pthread
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index d15885e..2053c9c 100644 --- a/configure.ac +++ b/configure.ac @@ -112,9 +112,11 @@ AS_IF([test "x$enable_fftw" = "xno"], AS_IF([test "x$enable_fftw" = "xyes"], [AC_DEFINE(USE_FFTW, [1], [Define to enable FFTW])]) -AC_SUBST([CFLAGS], ["$OPTIM $DEBUG $EXTRA $FFTW_CFLAGS"]) -AC_SUBST([CXXFLAGS], ["$OPTIM $DEBUG $EXTRA $FFTW_CFLAGS"]) -AC_SUBST([LIBS], ["$FFTW_LIBS"]) +AX_PTHREAD([], AC_MSG_ERROR([requires pthread])) + +AC_SUBST([CFLAGS], ["$OPTIM $DEBUG $EXTRA $FFTW_CFLAGS $PTHREAD_CFLAGS"]) +AC_SUBST([CXXFLAGS], ["$OPTIM $DEBUG $EXTRA $FFTW_CFLAGS $PTHREAD_CFLAGS"]) +AC_SUBST([LIBS], ["$FFTW_LIBS $PTHREAD_LIBS"]) # Checks for UHD. AS_IF([test "x$enable_output_uhd" = "xyes"], |