Problem with DirectFB in SDL 1.2.3

I tried to compile SDL 1.2.3 with the DirectFB target but it doesn’t work. I think that it’s supposed to work out of the box when i have DirectFB installed as SDL should build in DirectFB support by default. I have DirectFB 0.9.7 installed (and tried with the current CVS) but it doesn’t work. It was looking for pkgconfig (it said it was needed for DirectFB support) so I installed this but still no go. I also tried --with-video-directfb but it doesn’t compile it in. Any ideas?