diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-19 12:29:48 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-19 12:29:48 +0000 |
commit | 95de5e887438084cd6b9705f30505f7d0e99a6bc (patch) | |
tree | 0ba086e6db755c4bf4460eea782a32776e6a25db | |
parent | f9116e2e37b9e762aeedcc28cabb6f7ab753d3e7 (diff) |
fix x11 linking when --disable-x11 used (btw sdl may still require it)
fix GL always detected even when x11 disabled
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2999 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1217,7 +1217,7 @@ _ld_x11="-L$_x11libdir -lX11 -lXext $_ld_sock" ######### echocheck "X11" -if test "$_x11" = auto ; then +if test "$_x11" = auto || test "$_x11" = yes ; then cat > $TMPC <<EOF #include <X11/Xlib.h> #include <X11/Xutil.h> @@ -1231,6 +1231,8 @@ if test "$_x11" = yes ; then _vosrc="$_vosrc vo_x11.c" else _def_x11='#undef HAVE_X11' + _inc_x11='' + _ld_x11='' fi echores "$_x11" @@ -1385,7 +1387,7 @@ echores "$_dga2" echocheck "OpenGL" -if test "$_gl" = auto ; then +if test "$_x11" = yes && test "$_gl" = auto ; then cat > $TMPC << EOF #include <GL/gl.h> int main(void) { return 0; } @@ -1401,6 +1403,8 @@ EOF _gl=no cc_check $_inc_x11 $_ld_x11 -lGL -lm && _gl=yes fi +else + _gl=no fi if test "$_gl" = yes ; then #FIXME ?? : bsd && test -r /usr/X11R6/bin/XFree86 && _ld_gl="-lGL $_ld_pthread" |