I can run the normal configure script that came with the PHP download without a problem, but several PECL extensions required me to rebuild configure with buildconf, and ever since then I can't run the script due to a problem with libmcrypt.
This is what I get while configuring PHP:
checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.
I've rerun both scripts several times to confirm that the distributed script consistently works (albeit without enabling my extra extensions) while the generated one consistently stops with the above error.
I've tried diffing the two scripts, but they're far too different to show what the new one is doing wrong to cause this libmcrypt problem. I'm about to try copy-pasting the entire mcrypt section of the old script into the new script, but that's dubious at best. Any ideas?