missing config files when compiling a php extension

view story

http://serverfault.com – I do the phpize.. When I reach the ./configure It tells me it can fins the php-config (configure: error: Cannot find php-config. Please use --with-php-config=PATH) I assume it means a file named php-config I do ./configure --with-php-config=/usr/local/src/php5/php-5.3.5/scripts/ --enable-entities Which points to that file's directory, but still, I get same error. (HowTos)