Mercurial > mplayer.hg
changeset 6079:5929fcf6c672
better gif89 detection by pl <p_l@gmx.fr>, based on patch by Joey Parrish <joey@yunamusic.com>
author | arpi |
---|---|
date | Mon, 13 May 2002 20:52:10 +0000 |
parents | 4a9c7041141d |
children | 2cac91e697f1 |
files | configure |
diffstat | 1 files changed, 20 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon May 13 20:47:03 2002 +0000 +++ b/configure Mon May 13 20:52:10 2002 +0000 @@ -2339,30 +2339,45 @@ cat > $TMPC << EOF #include <gif_lib.h> int main(void) { - EGifPutExtensionFirst(NULL, 0xFF, 11, NULL); return 0; } EOF - if cc_check -lungif ; then + if cc_check -lungif && "$TMPO" >> "$TMPLOG" ; then _gif=yes _ld_gif="-lungif" - elif cc_check -lgif ; then + elif cc_check -lgif && "$TMPO" >> "$TMPLOG" ; then _gif=yes _ld_gif="-lgif" fi fi -echores "$_gif" if test "$_gif" = yes ; then _def_gif='#define HAVE_GIF 1' _vosrc="$_vosrc vo_gif89a.c" _vomodules="gif89a $_vomodules" _mkf_gif="yes" + _gif="yes (old version, some functions disabled)" + _def_gif_4='#undef HAVE_GIF_4' + + cat > $TMPC << EOF +#include <gif_lib.h> +int main(void) { + printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst); + EGifSetGifVersion("89a"); // this will segfault a buggy gif lib. + return 0; +} +EOF + if cc_check "$_ld_gif" && ( "$TMPO" ) >>"$TMPLOG" 2>&1 ; then + _def_gif_4='#define HAVE_GIF_4 1' + _gif="yes" + fi else _def_gif='#undef HAVE_GIF' + _def_gif_4='#undef HAVE_GIF_4' _novomodules="gif89a $_novomodules" _mkf_gif="no" fi +echores "$_gif" if test "$_vesa" != no ; then @@ -4047,6 +4062,7 @@ /* enable GIF support */ $_def_gif +$_def_gif_4 /* libmad support */ $_def_mad