Improve configuration script
Improve configuration script

The configuration script will now check for different front ends, image
loading libraries, and type rendering libraries.  It will fail if any
requirement is not satisfied, rather than failing later during
compilation.

depp/sglib,depp/sglib