Use AC_LINK_IFELSE instead deprecated AC_TRY_LINK

Also use the correct variable for passing the libs
LIBS instead of LD_FLAGS.
Add more debug on the damages and remove old code
Even if the setup fails store the bounds
Return FALSE if there is no sw_setup function
Set the viewport of the size of the surface

This way the drawing matches the whole surface
Refactort how we track the path changed flag

Now we use a continuous incrementing value and keep track
of the value on the last cleanup. This way we know if it has
changed or not. Better than handling several booleans.
Also some minor fixups on the path related renderers to behave
correctly.