# HG changeset patch # User lgb # Date 984054642 0 # Node ID 739bf8d5bebc061648251ce0e204fb75d72a67a1 # Parent dfdc6c997922dc59500ddd2f88d35c1973f0d126 Added DGA autodetection diff -r dfdc6c997922 -r 739bf8d5bebc configure --- a/configure Thu Mar 08 01:10:16 2001 +0000 +++ b/configure Thu Mar 08 12:30:42 2001 +0000 @@ -6,6 +6,11 @@ # # Changes in reversed order: # +# 2000/03/08 by LGB: +# - DGA detection-o-matic :) +# - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer +# - line about '--enable-dga' is added to the help message +# # 2000/02/26 by A'rpi: # - added DGA option: --enable-dga # - no notify if --with-win32libdir used [Tibcu] @@ -61,6 +66,7 @@ --enable-3dnow build with 3dnow! support [autodetect] --enable-sse build with sse support [autodetect] --enable-gl build with OpenGL render support [autodetect] + --enable-dga build with DGA support [autodetect] --enable-sdl build with SDL render support [def.: disabled!] --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid is available] @@ -343,6 +349,25 @@ _binutils=no as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes +# LGB: Check DGA + +cat > $TMPC << EOF +#include +#include +#include +int main (void) { return 0;} +EOF + +_dga=no +gcc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes +# Note: the -lXxf86vm library is the VideoMode extension and though it's +# not needed for DGA, AFAIK every distribution packages together with DGA +# stuffs named 'X extensions' or something similar. This check can be usefull +# for further mplayer versions to set resolution by mplayer itself. +# If you run into problems, remove '-lXxf86vm'. + +# --- + cat > $TMPC << EOF #include int main( void ) { return 0; } @@ -445,6 +470,9 @@ --disable-mlib) _mlib=no ;; + --disable-dga) + _dga=no + ;; --disable-termcap) _termcap=no ;; @@ -481,6 +509,7 @@ echo "Checking for OpenGL ... $_gl" echo "Checking for Xv ... $_xv" echo "Checking for X11 ... $_x11" +echo "Checking for DGA ... $_dga" # write conf files.