We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 271

Summary: autoconf incorrectly tests for fbcon support
Product: SDL Reporter: Sean D'Epagnier <spdepagn>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 1.2   
Hardware: All   
OS: Linux   

Description Sean D'Epagnier 2006-07-02 05:31:46 UTC
Hi, I ran the configure script and it did not detect support for fbcon, when in fact my system supports it.

I know the exact fix, it is a change in configure.in, on line 1112, should be changed to:

        AC_TRY_COMPILE([
         #include <linux/fb.h>
         #include <linux/kd.h>
         ],[ ...

The problem is both kd.h and keyboard.h include types.h so there are re-definitions.  I believe fb.h and kd.h are sufficient for detecting fbcon support.

My system is gentoo linux 2.6.13 amd64, feel free to ask for any additional information. Thanks
Comment 1 Ryan C. Gordon 2006-07-02 07:25:20 UTC
I checked out all the various types.h files, and they all have include-once blockers in them. Are you sure this is the actual issue? Can you attach config.log from a configure run that fails the fbcon test so I can verify?

--ryan.

Comment 2 Ryan C. Gordon 2007-05-28 21:36:00 UTC
Assuming this was fixed by newer Linux kernel headers, as I couldn't ever reproduce it here.

--ryan.