diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-23 20:38:27 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-23 20:38:27 +0000 |
commit | a98272633e07edd7cf991e36bf1f100e89e8aa68 (patch) | |
tree | f2fbf6a7b79a0e113f1c0b715b46bd94c096a16c /configure | |
parent | 40c98695b6dfdd0b4b752471f287ee0be3a23eab (diff) | |
download | mpv-a98272633e07edd7cf991e36bf1f100e89e8aa68.tar.bz2 mpv-a98272633e07edd7cf991e36bf1f100e89e8aa68.tar.xz |
- 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@yunamusic.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6170 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -2397,18 +2397,18 @@ int main(void) { 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 @@ if test "$_gif" = yes ; then _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; |