aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-11-01 09:57:36 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-11-01 09:57:36 +0100
commit76e7347f63a09c4e0b860798cd8abaecdff1d302 (patch)
treec20fcb2ae810b8ad7f5820371538719dcdb2729f /configure.ac
parent05d4fc159a45d3b5d83cdb6f8df3bdce50ea8022 (diff)
downloaddabmod-76e7347f63a09c4e0b860798cd8abaecdff1d302.tar.gz
dabmod-76e7347f63a09c4e0b860798cd8abaecdff1d302.tar.bz2
dabmod-76e7347f63a09c4e0b860798cd8abaecdff1d302.zip
Add autoconf check for pthread
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
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"],