./configure \
--prefix=/usr/local \
--with-apxs2=/usr/sbin/apxs \
--with-ldap=/usr \
--with-kerberos=/usr \
--enable-cli \
--with-zlib-dir=/usr \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-sockets \
--with-iodbc=/usr \
--with-curl=/usr \
--with-config-file-path=/etc \
--sysconfdir=/private/etc \
--with-mysql-sock=/var/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mysql=/usr/local/mysql \
--with-openssl=shared,/usr \
--with-xmlrpc \
--with-xsl=/usr \
--with-pear \
--with-libxml-dir=/usr \
--with-iconv=shared,/usr \
--with-pdo-mysql=/usr/local/mysql/bin/mysql_config \
--with-gd \
--with-jpeg-dir \
--with-png-dir=/sw \
--with-freetype-dir=/usr/local \
--with-mcrypt=/sw
http://www.malisphoto.com/tips/php-on-os-x.html
http://diymacserver.com/forum/topic/leopard-iconv-and-php5