[Mplayer-cvslog] CVS: 0_90 configure,1.660,1.661

Arpi of Ize arpi at mplayerhq.hu
Fri Feb 21 20:45:39 CET 2003


Update of /cvsroot/mplayer/0_90
In directory mail:/var/tmp.root/cvs-serv9042

Modified Files:
	configure 
Log Message:
adds an extra check to configure that looks for advanced functionality preferred
by demux_gif.  If no such function is found, then a workaround is enabled.
patch by Joey Parrish <joey at nicewarrior.org>


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/0_90/configure,v
retrieving revision 1.660
retrieving revision 1.661
diff -u -r1.660 -r1.661
--- configure	21 Feb 2003 18:30:13 -0000	1.660
+++ configure	21 Feb 2003 19:45:36 -0000	1.661
@@ -2960,6 +2960,27 @@
 echores "$_gif"
 
 
+if test "$_gif" = yes ; then
+  echocheck "broken giflib workaround"
+  _def_gif_tvt_hack='#define HAVE_GIF_TVT_HACK 1'
+
+  cat > $TMPC << EOF
+#include <gif_lib.h>
+int main(void) {
+  GifFileType gif;
+  printf("UserData is at address %p\n", gif.UserData);
+  return 0;
+}
+EOF
+  if cc_check "$_ld_gif" && ( "$TMPO" ) >>"$TMPLOG" 2>&1 ; then
+    _def_gif_tvt_hack='#undef HAVE_GIF_TVT_HACK'
+    echores "disabled"
+  else
+    echores "enabled"
+  fi
+fi
+
+
 if test "$_vesa" != no ; then
 echocheck "VESA support"
 if x86 && linux ; then
@@ -5275,6 +5296,7 @@
 /* enable GIF support */
 $_def_gif
 $_def_gif_4
+$_def_gif_tvt_hack
 
 /* enable FreeType support */
 $_def_freetype



More information about the MPlayer-cvslog mailing list