Do this one after the cgi-fcgi because what'll do is move the PHP-CLI into /usr/local/bin/php
You do need to have installed apache2.
Libxml also has to be there in /usr/local/ or if you are on Mac's Tiger, you can change the path to /usr and that should do ya.
./configure --enable-memory-limit --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --with-libxml-dir=/usr/local --enable-spl --with-regex=php --with-apxs2=/usr/local/apache2/sbin/apxs --prefix=/usr/local