To install fftw from source use either configure option:
% ./configure -enable-static=no -enable-shared=yes -enable-float -enable-type-prefix
OR
% ./configure -enable-shared=yes -enable-float
Followed by:
% make