changeset 23535:8337977cc1c5

Do not allow to compile gui without PNG decoder in libavcodec.
author cehoyos
date Wed, 13 Jun 2007 11:04:01 +0000
parents 09eb4ed0c130
children ab4c0bba8f22
files configure
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jun 13 10:50:14 2007 +0000
+++ b/configure	Wed Jun 13 11:04:01 2007 +0000
@@ -6997,7 +6997,10 @@
 if test "$_gui" = yes ; then
 
   # Required libraries
-  test "$_libavcodec" != yes && die "The GUI requires libavcodec with PNG support."
+  if test "$_libavcodec" != yes ||
+      not "echo $_libavdecoders | grep PNG_DECODER >/dev/null 2>&1" ; then
+    die "The GUI requires libavcodec with PNG support."
+  fi
 if not win32 ; then
   test "$_x11" != yes && die "X11 support required for GUI compilation."