comparison configure @ 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 8bf21c807656
children 8c765d4a31b8
comparison
equal deleted inserted replaced
3017:fb792e58aac5 3018:9eb1cae56cae
1436 fi 1436 fi
1437 echores "$_dga2" 1437 echores "$_dga2"
1438 1438
1439 1439
1440 echocheck "OpenGL" 1440 echocheck "OpenGL"
1441 if test "$_x11" = yes && test "$_gl" = auto ; then 1441 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl
1442 if test "$_x11" = yes && test "$_gl" != no ; then
1442 cat > $TMPC << EOF 1443 cat > $TMPC << EOF
1443 #include <GL/gl.h> 1444 #include <GL/gl.h>
1444 int main(void) { return 0; } 1445 int main(void) { return 0; }
1445 EOF 1446 EOF
1446 _gl=no 1447 _gl=no
1456 fi 1457 fi
1457 else 1458 else
1458 _gl=no 1459 _gl=no
1459 fi 1460 fi
1460 if test "$_gl" = yes ; then 1461 if test "$_gl" = yes ; then
1461 #FIXME ?? : bsd && test -r /usr/X11R6/bin/XFree86 && _ld_gl="-lGL $_ld_pthread"
1462 _def_gl='#define HAVE_GL 1' 1462 _def_gl='#define HAVE_GL 1'
1463 _vosrc="$_vosrc vo_gl.c vo_gl2.c" 1463 _vosrc="$_vosrc vo_gl.c vo_gl2.c"
1464 else 1464 else
1465 _def_gl='#undef HAVE_GL' 1465 _def_gl='#undef HAVE_GL'
1466 fi 1466 fi
1884 if test "$_rtc" = yes ; then 1884 if test "$_rtc" = yes ; then
1885 _def_rtc='#define HAVE_RTC 1' 1885 _def_rtc='#define HAVE_RTC 1'
1886 else 1886 else
1887 _def_rtc='#undef HAVE_RTC' 1887 _def_rtc='#undef HAVE_RTC'
1888 fi 1888 fi
1889
1889 1890
1890 echocheck "mad support" 1891 echocheck "mad support"
1891 if test "$_mad" = auto ; then 1892 if test "$_mad" = auto ; then
1892 _mad=no 1893 _mad=no
1893 cat > $TMPC << EOF 1894 cat > $TMPC << EOF