[Mplayer-cvslog] CVS: main configure,1.478,1.479

Arpi of Ize arpi at mplayerhq.hu
Thu May 23 22:38:30 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv17327

Modified Files:
	configure 
Log Message:
- keeps configure from generating a core when a buggy giflib is found
- swaps -lgif with -lungif to give compression preference over uncompressed
by Joey Parrish <joey at yunamusic.com>


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.478
retrieving revision 1.479
diff -u -r1.478 -r1.479
--- configure	23 May 2002 14:49:13 -0000	1.478
+++ configure	23 May 2002 20:38:27 -0000	1.479
@@ -2397,18 +2397,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
 
@@ -2421,8 +2421,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;




More information about the MPlayer-cvslog mailing list