Fatal Error: Call to undefined function imagefilter()

I am using PHP5 in ubuntu 9.10.
First I installed PHP and GD as separate package. I tried doing manipulation with images using php image function. When I try using the function imagefilter(), it was not worked and got the solution that need to compile the PHP with the bundled version of GD. So that I have downloaded php5 source and compiled with GD and installed that deb package. Just I did the following steps,

After doing all the above also, I am unable to use imagefilter() function in php.

Pls, help me to fix this issue