Description: Fix SDL libraries detection.
Author: Jakub Wilk <jwilk@debian.org>
Last-Update: 2010-04-27

--- a/SConstruct
+++ b/SConstruct
@@ -67,8 +67,8 @@
 ### check for optional parts
 
 if env["sdl"]:
-    have_sdl = conf.CheckCXXHeader("SDL/SDL_gfxPrimitives.h") and \
-               conf.CheckCXXHeader("SDL/SDL.h")
+    have_sdl = conf.CheckLibWithHeader('SDL_gfx', 'SDL/SDL_gfxPrimitives.h', 'C') and \
+               conf.CheckLibWithHeader('SDL', 'SDL/SDL.h', 'C')
     assert have_sdl,"SDL requested, but can't find it"
 else:
     have_sdl = 0
