[MPlayer-cvslog] r30264 - trunk/configure
reimar
subversion at mplayerhq.hu
Sun Jan 10 19:22:01 CET 2010
Author: reimar
Date: Sun Jan 10 19:22:01 2010
New Revision: 30264
Log:
Fix OpenGL detection for OpenSolaris where -lXdamage is necessary.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Sun Jan 10 17:00:07 2010 (r30263)
+++ trunk/configure Sun Jan 10 19:22:01 2010 (r30264)
@@ -4945,15 +4945,14 @@ int main(void) {
}
EOF
_gl=no
- if cc_check -lGL $_ld_lm ; then
- _gl=yes
- _gl_x11=yes
- libs_mplayer="$libs_mplayer -lGL $_ld_dl"
- elif cc_check -lGL $_ld_lm $_ld_pthread ; then
- _gl=yes
- _gl_x11=yes
- libs_mplayer="$libs_mplayer -lGL $_ld_pthread $_ld_dl"
- fi
+ for _ld_tmp in -lGL "-lGL -lXdamage" "-lGL $_ld_pthread" ; do
+ if cc_check $_ld_tmp $_ld_lm ; then
+ _gl=yes
+ _gl_x11=yes
+ libs_mplayer="$libs_mplayer $_ld_tmp $_ld_dl"
+ break
+ fi
+ done
if cc_check -DGL_WIN32 -lopengl32 ; then
_gl=yes
_gl_win32=yes
More information about the MPlayer-cvslog
mailing list