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 167 - X_LIBS vs Ubuntu...
Summary: X_LIBS vs Ubuntu...
Status: VERIFIED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 04:15 UTC by Ryan C. Gordon
Modified: 2006-03-21 05:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan C. Gordon 2006-03-21 04:15:45 UTC
The configure script parses the value of $X_LIBS when looking at the --enable-x11-shared, which is getting set on Ubuntu 5.10 to "-L/usr/X11R6/lib" ... however, Ubuntu stores all the Xlib stuff in /usr/lib.

The end result in SDL is that the dynamic X11 stuff gets disabled by default, unless you override like this:

 ./configure --x-libraries=/usr/lib

Is X_LIBS the wrong value to check here, or is Ubuntu's autoconf hosed in this regard? I haven't figured out where this shell variable actually gets set yet...

--ryan.
Comment 1 Ryan C. Gordon 2006-03-21 04:17:19 UTC
to be clear, /usr/X11R6/lib DOES exist, but it's got a handful of files/dirs in it:

libxf86config.a  
libXvMCNVIDIA_dynamic.so.1  
modules
libXvMCNVIDIA.a  
libXvMCNVIDIA.so.1.0.8178   
X11


And not things like "libX11.so.6", which are in /usr/lib.

--ryan.

Comment 2 Sam Lantinga 2006-03-21 04:51:38 UTC
(In reply to comment #0)
> Is X_LIBS the wrong value to check here, or is Ubuntu's autoconf hosed in this
> regard? I haven't figured out where this shell variable actually gets set
> yet...

I'm not sure.  X_LIBS is set by the AC_PATH_X and AC_PATH_XTRA macros.

I put a fix into CVS... can you try it out?

Comment 3 Ryan C. Gordon 2006-03-21 05:15:35 UTC
Confirmed fixed, thanks!

--ryan.

Comment 4 Sam Lantinga 2006-03-21 05:44:37 UTC
No problem! :)