configure --with-extra-includes=/usr/local/mysql/include/ --with-extra-libraries=/usr/local/mysql/lib/