The installation went well for me.
To start, just install pdflib alone according to the instructions that came with it.
Then, ./configure the php source with the following switch:
--with-pdflib
I didn't need to include any path data or anything.
Note that if a shared library is installed to a directory that is new you need to tell your OS about it. On most modern Gnu based Unix alikes, that's done by adding a line to ld.so.conf with the path to the new directory and then running ldconfig (all as root).