瀏覽代碼

Build libstarpufft exactly when we have fftw or cufft with double support

Samuel Thibault 13 年之前
父節點
當前提交
dd00cfd2fa
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      configure.ac

+ 2 - 1
configure.ac

@@ -1358,9 +1358,10 @@ PKG_CHECK_MODULES([FFTWL], [fftw3l], [
 ], [:])
 AM_CONDITIONAL(STARPU_HAVE_FFTWL, [test x$have_fftwl = xyes])
 
-if test x$have_fftw = xyes -a x$have_fftwf = xyes ; then
+if test \( x$have_fftw = xyes -a x$have_fftwf = xyes \) -o x$have_cufftdoublecomplex = xyes; then
    fft_support=yes
 fi
+AM_CONDITIONAL(BUILD_STARPUFFT, [test x$fft_support = xyes])
 
 ##########################################
 # hwloc                                  #