[...]
>> It fails with
>> Package fftw3 was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `fftw3.pc' to the
>> PKG_CONFIG_PATH environment variable
>> No package 'fftw3' found
>> Now, I can tell that "pkg-config fftw3" is looking for a library,
> No, it is searching $PKG_CONFIG_PATH for a file called 'fftw3.pc',
> and the '--libs' option says to print what is in `Libs:' section of
> that file. In this case it is being used to build a compiler command
> line used later in the Makefile.
Specifically, to save filesystem space and bandwidth, shared
libraries typically come in /two/ packages:
* the one containing the files necessary to /run/ the
(pre-built) applications linked against the library;
* the one containing the files necessary to develop and build
new applications using the library.
The first package contains, first and foremost, the shared
library file (.so) itself. The second may contain header files,
the static library file (or archive, .a), as well as the ".pc"
file used by pkg-config(1).
Thus, the usual cause for the error message above is that the
system in question lacks the second ("developers'") package.
> Take a look at some of the files in /usr/lib/pkgconfig/ and also the
> pkg-config man page.
[...]
--
FSF associate member #7257
http://hfday.org/