[MPlayer-dev-eng] PATCHes again?

Joey Parrish joey at yunamusic.com
Mon May 20 19:20:14 CEST 2002


Hello,

On Mon, May 20, 2002 at 06:02:15AM +0200, Arpi wrote:
> Hi,
> 
> I've applied or refused all patches i've found posted to -dev-eng with
> 'patch' in the subject. Is there any unapplied patches around?

Here are two patches.
The first keeps configure from generating a core when a buggy giflib
is found.  The second swaps -lgif with -lungif to give compression
preference over uncompressed files.  If the second patch has been 
ignored so far due to lingering licensing concerns, then I'll quit
sending it.

Thanks,
--Joey

-- 

"Yes." -- John F. Kennedy
-------------- next part --------------
--- configure.orig	Sun May 19 14:05:47 2002
+++ configure	Sun May 19 14:11:35 2002
@@ -2373,8 +2373,11 @@
   _def_gif_4='#undef HAVE_GIF_4'
 
   cat > $TMPC << EOF
+#include <signal.h>
 #include <gif_lib.h>
+void catch() { exit(1); }
 int main(void) {
+  signal(SIGSEGV, catch);  // catch segfault
   printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst);
   EGifSetGifVersion("89a");   // this will segfault a buggy gif lib.
   return 0;
-------------- next part --------------
--- configure.orig	Sun May 19 14:03:35 2002
+++ configure	Sun May 19 14:03:53 2002
@@ -2349,18 +2349,18 @@
   return 0;
 }
 EOF
-  if cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then
-    _gif=yes
-    _ld_gif="-lungif"
-  elif cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then
+  if cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then
     _gif=yes
     _ld_gif="-lgif"
-  elif cc_check -lungif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
+  elif cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then
     _gif=yes
-    _ld_gif="-lungif $_ld_x11"
+    _ld_gif="-lungif"
   elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
     _gif=yes
     _ld_gif="-lgif $_ld_x11"
+  elif cc_check -lungif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
+    _gif=yes
+    _ld_gif="-lungif $_ld_x11"
   fi
 fi
 


More information about the MPlayer-dev-eng mailing list