You can leave out --with--mysql=/usr/local/mysql altogether. PHP comes with the needed libraries to talk with MySql built in, so just use "--with--mysql" with no arguments when configuring php
From php ./configure --help:
Code:
--with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory.
If unspecified, the bundled MySQL library will be used.