Hi,
I was trying to compile PHP 4.3.1 with the built in GDLib functions on FreeBSD 4.5. I configured PHP with --with-gd option to enable the bundled GDLib extension and everything went fine. However during make I am getting the following error:
/usr/home/user/php-4.3.1/ext/gd/libgd/gd_png.c:11: png.h: No such file or directory
*** Error code 1
I checked the ext/gd/libgd/ directory and discovered that png.h does not exist. The simplest solution was to copy the entire libpng 1.2.5 directory into ext/gd/libgd/ which caused PHP to compile properly but afterwards I ran into another problem when compiling apache - apache started complaining about all png* functions.
My question is - can I disable PNG support? I just need GIF and JPG images processing. Or what am I doing wrong?
Thanks!