# HG changeset patch # User arpi # Date 1022186307 0 # Node ID b9d4d6d80369f5de5e21ce6443b3e2f2df62a7e9 # Parent 741712dcfa0d3e570752d23f308442d34743f3d9 - 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 diff -r 741712dcfa0d -r b9d4d6d80369 configure --- a/configure Thu May 23 20:24:17 2002 +0000 +++ b/configure Thu May 23 20:38:27 2002 +0000 @@ -2397,18 +2397,18 @@ return 0; } EOF - if cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then + if cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then + _gif=yes + _ld_gif="-lgif" + elif cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then _gif=yes _ld_gif="-lungif" - elif cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then + elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then _gif=yes - _ld_gif="-lgif" + _ld_gif="-lgif $_ld_x11" elif cc_check -lungif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then _gif=yes _ld_gif="-lungif $_ld_x11" - elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then - _gif=yes - _ld_gif="-lgif $_ld_x11" fi fi @@ -2421,8 +2421,11 @@ _def_gif_4='#undef HAVE_GIF_4' cat > $TMPC << EOF +#include #include +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;