If you have compiled mysql from source, then you need to point the configure script to the mysql installation e.g.
Code:
$./configure --with-apxs=/usr/local/httpd/bin/apxs --with-config-file-path=/usr/local/httpd/conf/ --with-mysql=/usr/local/mysql --enable-debug=no --enable-track-vars