It took me quite awhile to get PDFLIB 4.0.1 to compile with PHP, and here are the
config options that finally worked for me (on HPUX).
PDFLIB:
./configure --enable-shared-pdflib --enable-cxx --with-tifflib=/usr/lib
--with-zlib=no --with-pnglib=no
PHP (DSO build):
./configure --with-apxs=/pat
I don't succeed in building PHP 4.0.6 with PDFLib 4.0.1
I've installed the PDFLIB 4.01 source in , run ./configure, make
and make install.
Then, as specified in /bind/php/readme.txt, I've copied
/bind/php/ext/pdf/* in /ext/pdf and build php with
./configure --with-pdflib=/usr/local, make and make