If you are trying to compile Apache to use mod_dbd and MySQL in Gentoo, you need to add ‘dev-libs/apr-util mysql’ to /etc/portage/package.use in order to get it to compile it with MySQL support.