sci-electronics/ngspice: correct the logic in autoconf fftw patch
authorMarek Szuba <marecki@gentoo.org>
Wed, 27 Dec 2017 21:09:40 +0000 (22:09 +0100)
committerMarek Szuba <marecki@gentoo.org>
Wed, 27 Dec 2017 21:11:49 +0000 (22:11 +0100)
Now fftw really is looked for by default. This does not change anything
for the 27 ebuild because it does not use the default, that said it is
good to have this done right in case we submit this patch upstream.

Package-Manager: Portage-2.3.13, Repoman-2.3.3

sci-electronics/ngspice/files/ngspice-27-autoconf_fftw3.patch

index d490938d2099b8d93b534ac68b3261b5d2bb5ee5..d0eec127c5724d03de1cd9a1ae050955951ceae0 100644 (file)
@@ -15,7 +15,7 @@
  # Look for math library:
  AC_CHECK_LIB([m], [sqrt])
  AC_CHECK_HEADERS([float.h limits.h values.h ieeefp.h])
-+if test "x$with_fftw3" = xyes; then
++if test "x$with_fftw3" != xno; then
  AC_CHECK_HEADERS([fftw3.h])
  AC_CHECK_LIB([fftw3], [fftw_plan_dft_1d],
          [AC_DEFINE([HAVE_LIBFFTW3], [], [Have fft routines in libfftw3])