I've been compiling and re-compiling this damn PHP 4.2.1 for 4 hours now. No matter what I do I can't get the phpinfo(); to display PNG and JPEG support under the GD heading.
I've managed to get GD enabled (shows in the list) and I have Freetype installed but I cannot get JPEG on PNG support to show in the list.
I am using --with-jpeg-dir=/usr/local/lib (path to my libjpeg.a file) and --with-png-dir=/usr/local/lib.
I actually got an error at first saying that PNG support requires zlib, so I added --with-zlib-dir=/usr/local/lib (zlib file is there) and the compiler didn't throw up another error. but the phpinfo() still does not list PNG support and my test script throws and error :
Call to undefined function: imagepng()
Please, can someone please help?