summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-24 16:20:20 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-24 16:30:05 +0200
commitfc199a7284c5f3a5a84631583ea704748d50b28e (patch)
treeeeb0566fc8498846caf5f0a7c495b40c8f303305 /configure.ac
parentde6eb96c71873fb23f0847424dca724b933ee399 (diff)
downloaddabmod-fc199a7284c5f3a5a84631583ea704748d50b28e.tar.gz
dabmod-fc199a7284c5f3a5a84631583ea704748d50b28e.tar.bz2
dabmod-fc199a7284c5f3a5a84631583ea704748d50b28e.zip
Add possibility to use FFTW for OfdmGenerator
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac48
1 files changed, 47 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 07d6195..9a1816a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,9 @@ AC_ARG_ENABLE([trace],
AC_ARG_ENABLE([fft_simd],
[AS_HELP_STRING([--enable-fft-simd], [Enable SIMD instructions for kiss-fft (unstable)])],
[], [enable_fft_simd=no])
+AC_ARG_ENABLE([fftw],
+ [AS_HELP_STRING([--enable-fftw], [Use FFTW3 instead of Kiss FFT])],
+ [], [enable_fftw=no])
# ZeroMQ message queue input
AC_ARG_ENABLE([input_zeromq],
AS_HELP_STRING([--enable-input-zeromq], [Enable ZeroMQ input]))
@@ -83,6 +86,10 @@ AS_IF([test "x$enable_trace" != "xno"],
[EXTRA="$EXTRA -DDEBUG"])
AS_IF([test "x$enable_fft_simd" != "xno"],
[EXTRA="$EXTRA -DUSE_SIMD"])
+AS_IF([test "x$enable_fftw" != "xno"],
+ [EXTRA="$EXTRA -DUSE_FFTW"])
+
+AM_CONDITIONAL([USE_KISS_FFT], [test "x$enable_fftw" = "xno"])
AM_CONDITIONAL([HAVE_INPUT_ZEROMQ_TEST], [test "x$enable_input_zeromq" = "xyes"])
@@ -90,6 +97,7 @@ AM_CONDITIONAL([HAVE_INPUT_ZEROMQ_TEST], [test "x$enable_input_zeromq" = "xyes"]
AC_SUBST([CFLAGS], ["$OPTIM $DEBUG $EXTRA"])
AC_SUBST([CXXFLAGS], ["$OPTIM $DEBUG $EXTRA"])
+# Checks for libraries.
AS_IF([test "x$enable_output_uhd" = "xyes"],
[AC_DEFINE(HAVE_OUTPUT_UHD, [1], [Define if UHD output is enabled]) ,
AC_CHECK_LIB([uhd], [main], [], [AC_MSG_ERROR([library uhd is missing])])])
@@ -102,7 +110,11 @@ AC_CHECK_LIB([boost_thread], [main], [], [AC_MSG_ERROR([library boost_thread is
AC_CHECK_LIB([rt], [clock_gettime], [], [AC_MSG_ERROR([library rt is missing])])
-# Checks for libraries.
+AS_IF([test "x$enable_fftw" != "xno"],
+ [AC_CHECK_LIB([fftw3f], [fftw_execute],
+ AC_MSG_NOTICE([Found FFTW3]),
+ AC_MSG_NOTICE([Failed to find FFTW3]) )] )
+
AS_IF([test "x$enable_debug" != "xno"],
[AS_IF([test "x$with_debug_malloc" != "xno"],
[AS_IF([test "x$with_debug_malloc" = "xyes"],
@@ -162,3 +174,37 @@ AC_CONFIG_FILES([Makefile
lib/Makefile
src/Makefile])
AC_OUTPUT
+
+echo
+echo "***********************************************"
+echo
+enabled=""
+disabled=""
+for feat in debug prof trace fftw fft_simd output_uhd input_zeromq
+do
+ eval var=\$enable_$feat
+ AS_IF([test "x$var" = "xyes"],
+ [enabled="$enabled $feat"],
+ [disabled="$disabled $feat"])
+done
+echo " Features"
+echo " Enabled: $enabled"
+echo " Disabled: $disabled"
+echo
+echo
+enabled=""
+disabled=""
+for feat in with_debug_malloc has_sse
+do
+ eval var=\$$feat
+ AS_IF([test "x$var" = "xyes"],
+ [enabled="$enabled $feat"],
+ [disabled="$disabled $feat"])
+done
+echo " Options"
+echo " Active: $enabled"
+echo " Disabled: $disabled"
+
+echo
+echo "***********************************************"
+echo