<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/bugs/1185">[bugs:#1185]</a> configure.ac script changes for fftw3</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Group:</strong> v0.46<br />
<strong>Created:</strong> Mon Jan 19, 2015 02:00 AM UTC by Anonymous<br />
<strong>Last Updated:</strong> Mon Jan 19, 2015 02:00 AM UTC<br />
<strong>Owner:</strong> nobody</p>
<p>This patch updates the configure.ac file to check the library for 32-bit floating point fftw3.</p>
<p>The function fftwf_execute occurs in pd and in fftw3 but not in fftw2.  In the 64-bit version of fftw, the function occurs as "fftw_execute" instead.</p>
<p>So it's safe to check against, and precision specific.  The autoconfigure test will write a short program declaring the function header:<br />
char fftwf_execute();</p>
<p>and testing that the program links correctly with the fftw library</p>
<p>--- pd-0.45-4.orig/configure.ac 2013-11-22 10:43:24.000000000 -0600<br />
+++ pd-0.45-4/configure.ac  2015-01-18 19:43:06.378612708 -0600<br />
@@ -212,13 +212,13 @@<br />
 AM_CONDITIONAL(PORTMIDI, test x$portmidi = xyes)<br />
 if test x$portmidi = xyes; then echo Using included portmidi; fi</p>
<p>-dnl fftw v2<br />
+dnl fftw v3<br />
 AC_ARG_ENABLE(<span>[fftw]</span>,<br />
<span>[AS_HELP_STRING([--enable-fftw]</span>,<br />
<span>[use FFTW package]</span>)],<br />
<span>[fftw=$enableval]</span>)<br />
 if test x$fftw = xyes; then<br />
-    AC_CHECK_LIB(fftw, fftw_one, <span>[LIBS="$LIBS -lfftw"]</span>,<br />
+    AC_CHECK_LIB(fftw3f, fftwf_execute, <span>[LIBS="$LIBS -lfftw3f"]</span>,<br />
<span>[AC_MSG_NOTICE([fftw package not found - using built-in FFT]</span>); fftw=no])<br />
 fi<br />
 AM_CONDITIONAL(FFTW, test x$fftw = xyes)</p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="http://sourceforge.net/p/pure-data/bugs">http://sourceforge.net/p/pure-data/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="http://sourceforge.net/p/pure-data/admin/bugs/options.">http://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>