shithub: aubio

Download patch

ref: e50b695120a835cdab3dd446e1724d746b76b692
parent: 3050cb82bc4cc1e3cb584b79a296304047f3db19
author: Paul Brossier <piem@altern.org>
date: Fri Apr 1 11:59:49 EST 2005

fix detection of fftw3f

--- a/configure.ac
+++ b/configure.ac
@@ -82,11 +82,6 @@
 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 @@
   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])