I unpacked the source into a directory, and then created this file...
Code:
--prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql \
--with-gd \
--with-png-dir=/usr/local/lib \
--with-zlib-dir=/usr/lib/ \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--enable-gd-native-ttf
I always keep the config line in a separate file, it makes it much easier to make changes.
I keep my install of apache away from the OSX build in one.. All in /usr/local/...