summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-10 18:22:01 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-10 18:22:01 +0000
commit4e50b6df73fd6aa3e426aba796f38b9357ea457b (patch)
tree52bc8056555bed38c1e669c7df3efd6d9e6c5d0b /configure
parentfff96519eeb241aee5dd98ef2354ecffdbcb2be7 (diff)
downloadmpv-4e50b6df73fd6aa3e426aba796f38b9357ea457b.tar.bz2
mpv-4e50b6df73fd6aa3e426aba796f38b9357ea457b.tar.xz
Fix OpenGL detection for OpenSolaris where -lXdamage is necessary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30264 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 8 insertions, 9 deletions
diff --git a/configure b/configure
index c6c7c2efe6..1ef69d4bc1 100755
--- a/configure
+++ b/configure
@@ -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