[Mplayer-cvslog] CVS: main configure,1.267,1.268

pl pl at mplayer.dev.hu
Mon Nov 19 13:29:51 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv22016

Modified Files:
	configure 
Log Message:
fix x11 linking when --disable-x11 used (btw sdl may still require it)
fix GL always detected even when x11 disabled


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.267
retrieving revision 1.268
diff -u -r1.267 -r1.268
--- configure	19 Nov 2001 12:04:19 -0000	1.267
+++ configure	19 Nov 2001 12:29:48 -0000	1.268
@@ -1217,7 +1217,7 @@
 #########
 
 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 @@
   _vosrc="$_vosrc vo_x11.c"
 else
   _def_x11='#undef HAVE_X11'
+  _inc_x11=''
+  _ld_x11=''
 fi
 echores "$_x11"
 
@@ -1385,7 +1387,7 @@
 
 
 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 @@
     _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"




More information about the MPlayer-cvslog mailing list