First attempt ./configure --with-gd ......... ......... checking for GD support... yes checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libXpm... no checking for FreeType 1.x support... no checking for FreeType 2... no checking for T1lib support... no checking whether to enable truetype string function in GD... no checking whether to enable JIS-mapped Japanese font support in GD... no checking for fabsf... (cached) no checking for floorf... (cached) no If configure fails try --with-jpeg-dir=<DIR> configure: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>
note that there is no png support called for ./configure --with-gd --with-zlib-dir=/usr/local configure completes start make ld: fatal: file ext/zlib/zlib.lo: unknown file type ld: fatal: File processing errors. No output written to .libs/libphp4.so *** Error code 1 make: Fatal error: Command failed for target `libphp4.la' note the reference to unknown file type is part of the build