changeset 36312:ebf1b3af62cd

configure: Fix GIF support result comment Do not print confusing result comment about old GIFLIB version when actually compiling against new GIFLIB versions. No functional changes.
author al
date Tue, 06 Aug 2013 20:02:53 +0000
parents 9fab03575b89
children 0406e7c6f772
files configure
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Aug 06 16:22:46 2013 +0000
+++ b/configure	Tue Aug 06 20:02:53 2013 +0000
@@ -5087,11 +5087,12 @@
   _gif=auto
 fi
 
+gif_new=no
 if test "$_gif" = auto ; then
   _gif=no
   for ld_gif in "-lungif" "-lgif" ; do
     statement_check gif_lib.h 'QuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && break
-    statement_check_broken stdlib.h gif_lib.h 'GifQuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && break
+    statement_check_broken stdlib.h gif_lib.h 'GifQuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && gif_new=yes && break
   done
 fi
 
@@ -5113,7 +5114,7 @@
   def_gif='#define CONFIG_GIF 1'
   codecmodules="gif $codecmodules"
   vomodules="gif89a $vomodules"
-  res_comment="old version, some encoding functions disabled"
+  res_comment=""
   def_gif_4='#undef CONFIG_GIF_4'
   extra_ldflags="$extra_ldflags $ld_gif"
 
@@ -5132,7 +5133,8 @@
 EOF
   if cc_check "$ld_gif" ; then
     def_gif_4='#define CONFIG_GIF_4 1'
-    res_comment=""
+  elif test "$gif_new" = no ; then
+    res_comment="old version, some encoding functions disabled"
   fi
 else
   def_gif='#undef CONFIG_GIF'