For more info, here is what I have tried:
1: Compiled pdflib from source (it does not produce the libpdf_php.so files).
2: Copied the support files over to the ext/pdf directectory and ran buildconf. This prevented me from configuring PHP (above error message).
3: Re-extracted the original PHP files and tried again without copying support files. It now compiles, but tells me that function new_pdf() is undefined (--with-pdflib=/usr/local/lib(
4: Tried again with --with-pdf=/usr/src/pkg/pdflib-4.0.2/bind/c with the same result.
I have been through the docs and to no avail. Can anyone help?