Well, the question is 'do you actually have Imlib?' If not, you need it.
If you do, then configure cant find it and you would need to add
--with-imlib=<location>
to the configure command (again, try configure --help to see what you can
modify).
The other problem can be overcome by...