fix configure.ac to work with cross scenario for sdl
The current test in configure.ac mixes up two different methods (hand written plus pkg-config). This patch changes the mechanics towards proper pkg-config usage. In return, we get a cleaned up cross scenario with no build-system leakage.
This patch fixes the SDL test.