From e50b695120a835cdab3dd446e1724d746b76b692 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 1 Apr 2005 16:59:49 +0000 Subject: [PATCH] fix detection of fftw3f --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index e9082ede..30130104 100644 --- a/configure.ac +++ b/configure.ac @@ -82,11 +82,6 @@ AC_CHECK_HEADERS(fftw3.h ,,AC_MSG_ERROR([Ouch! missing fftw3.h headeri])) dnl check for pkg-config AC_PATH_PROG(PKG_CONFIG,pkg-config,no) -dnl Check for required libraries -PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, FFTW3_SUPPORT=1) -if test "${FFTW3_SUPPORT}" = "1"; then - AC_DEFINE(FFTW3_SUPPORT,1,[Define to enable fftw3 support]) -fi PKG_CHECK_MODULES(SNDLIB, sndfile >= 1.0.4, SNDLIB_SUPPORT=1) PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.15, SAMPLERATE_SUPPORT=1) @@ -102,6 +97,11 @@ AC_ARG_ENABLE(fftw3f, with_fftw3f="no") if test "$with_fftw3f" = "yes"; then PKG_CHECK_MODULES(FFTWLIB, fftw3f >= 3.0.0, FFTW3F_SUPPORT=1) +else + PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, FFTW3_SUPPORT=1) +fi +if test "${FFTW3_SUPPORT}" = "1"; then + AC_DEFINE(FFTW3_SUPPORT,1,[Define to enable fftw3 support]) fi if test "${FFTW3F_SUPPORT}" = "1"; then AC_DEFINE(FFTW3F_SUPPORT,1,[Define to enable fftw3f support]) -- 2.26.2