changeset 3018:9eb1cae56cae

when --enable-gl was used, linker flags (_ld_gl) were not set (found by Nick K)
author pl
date Tue, 20 Nov 2001 09:26:44 +0000
parents fb792e58aac5
children 64ce4a515a78
files configure
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Nov 20 08:38:15 2001 +0000
+++ b/configure	Tue Nov 20 09:26:44 2001 +0000
@@ -1438,7 +1438,8 @@
 
 
 echocheck "OpenGL"
-if test "$_x11" = yes && test "$_gl" = auto ; then
+#Note: this test is run even with --enable-gl since we autodetect $_ld_gl
+if test "$_x11" = yes && test "$_gl" != no ; then
   cat > $TMPC << EOF
 #include <GL/gl.h>
 int main(void) { return 0; }
@@ -1458,7 +1459,6 @@
   _gl=no
 fi
 if test "$_gl" = yes ; then
-  #FIXME ?? :  bsd && test -r /usr/X11R6/bin/XFree86 && _ld_gl="-lGL $_ld_pthread"
   _def_gl='#define HAVE_GL 1'
   _vosrc="$_vosrc vo_gl.c vo_gl2.c"
 else
@@ -1887,6 +1887,7 @@
   _def_rtc='#undef HAVE_RTC'
 fi
 
+
 echocheck "mad support"
 if test "$_mad" = auto ; then
   _mad=no