try this.. it\'s a sample configure line.. the options may not be the same as yours.. but I have imap support enabled as well as openssl and vpopmail support, which is going away soon..
./configure --with-apxs=/var/www/bin/apxs --with-mysql --enable-track-vars --enable-versioning --with-imap=../imap-2002a/ --with-imap-ssl=../openssl-0.9.7 --with-vpopmail=/var/vpopmail
that\'s what you need to do if you\'re installing it as a module (I think...) you need to change the /var/www/bin/apxs to wherever apxs is installed.. then once you have that done and compiled and installed, then you need to add these lines to the httpd.conf
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml .php3