I've been watching povray while it was building and noticed it rejected system libpng. I wondered why, checked configure.ac and found following bug: povray requires libpng >=1.2.5, however in acinclude.m4 the macro they use to check for it compiles a small program that uses strcmp to determine if the version is correct, but for png 1.2.5 and 1.2.18 the result is of course wrong. Reproducible: Always
*** This bug has been marked as a duplicate of bug 153538 ***