Fix libGL.a check on configure

Ove Kaaven ovek at
Wed Jun 29 22:56:28 CDT 2005

ons, 29,.06.2005 kl. 20.11 -0400, skrev Anderson Lizardo:
> Changelog: Check for common broken nVidia+Mesa OpenGL library setups.
> The current "test" check definitely does not ensure the system doesn't
> have this "broken" setup. As you said, it should be better to let
> autoconf do the check properly with AC_CHECK_LIB.

Certainly does. The broken setup is as follows:

/usr/lib/ <- belongs to nvidia
/usr/lib/libGL.a <- no such thing
/usr/X11R6/lib/ <- deleted by nvidia installer
/usr/X11R6/lib/libGL.a <- still exists, belongs to Mesa

Linking will succeed whatever you do, but if you don't check for this
setup, Wine will be statically linked to Mesa here, and users will
complain about no hardware acceleration. The AC_MSG_ERROR just puts this
in terms that users understand, even though it's not an accurate
message, and probably why you didn't see the point of the check.

More information about the wine-devel mailing list