From 240e416b398b85f99c076e179734293ebc2cddfc Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 16 Oct 2009 17:55:58 +0200 Subject: [PATCH] configure.ac: when compiling with --enable-double, default to fftw3 --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 318a24c4..eb27baec 100644 --- a/configure.ac +++ b/configure.ac @@ -173,10 +173,16 @@ if test "$with_samplerate" = "yes"; then fi dnl Check for fftw3 (required) +dnl if we compile in double precsion, default to fftw3, else fftw3f +if test "$with_double_precision" = "yes"; then + default_fftw3f="no" +else + default_fftw3f="yes" +fi AC_ARG_ENABLE(fftw3f, AC_HELP_STRING([--enable-fftw3f],[compile with fftw3f [[default=auto]]]), [with_fftw3f=$enableval], - with_fftw3f="yes") + [with_fftw3f=$default_fftw3f]) if test "$with_fftw3f" = "yes"; then PKG_CHECK_MODULES(FFTWLIB, fftw3f >= 3.0.0, HAVE_FFTW3F=1, HAVE_FFTW3F=0) else -- 2.26.2