Build works on Mac OS X 10.5.6 using the following configure flags: -- with-jpeg=no --with-gif=no --with-tiff=no --with-ns.