From e346f9c5c4b63764c3e724580fcfce8c06076be2 Mon Sep 17 00:00:00 2001 From: "Bastian M. Wojek" Date: Wed, 23 Mar 2011 12:01:14 +0000 Subject: [PATCH] Produce a configure-error if fftw3f is not available but the BMWlibs should be built. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a62bde21..3b05e7cb 100644 --- a/configure.ac +++ b/configure.ac @@ -511,7 +511,8 @@ if test "${BUILD_BMW_LIBS}" = "1"; then AC_DEFINE([HAVE_LIBFFTW3_THREADS], [1], [Define to 1 if fftw3_threads are available])], [], [-lpthread]) # Check for fftw3f library. If it is not available the BMWlibs will not be built! AC_SEARCH_LIBS([fftwf_malloc], [fftw3f], [FFTW3_LIBS="$FFTW3_LIBS -lfftw3f"], [BUILD_BMW_LIBS=0 - AC_MSG_WARN([The float version of FFTW3 is not available. The BMWlibs will not be built!])], []) + AC_MSG_ERROR([The float version of FFTW3 is not available. When building FFTW3 from source it should be configured with the options + --enable-shared --enable-float. Without this library the BMWlibs cannot be built!])], []) if test "${BUILD_BMW_LIBS}" = "1"; then AC_SEARCH_LIBS([fftwf_init_threads], [fftw3f_threads], [FFTW3_LIBS="$FFTW3_LIBS -lfftw3f_threads -lpthread" AC_DEFINE([HAVE_LIBFFTW3F_THREADS], [1], [Define to 1 if fftw3f_threads are available])], [], [-lpthread])