File avifile-system-libmad.patch of Package avifile

Index: avifile-0.7-0.7.45/configure.in
===================================================================
--- avifile-0.7-0.7.45.orig/configure.in
+++ avifile-0.7-0.7.45/configure.in
@@ -752,10 +752,11 @@ if test x$enable_mad = xyes; then
     AC_ARG_ENABLE(libmad, [  --enable-libmad         use system MAD library. (autodetected)],
 		  [], enable_libmad=yes)
     MAD_LIBS="-lmad"
+    if test x$enable_libmad != xyes; then
     save_LIBS=$LIBS
-dnl FIXME AC_CHECK_LIB(mad, mad_stream_init, [], [ MAD_LIBS=""; enable_libmad=no ])
-    enable_libmad=no
+    AC_CHECK_LIB(mad, mad_stream_init, [], [ MAD_LIBS=""; enable_libmad=no ])
     LIBS=$save_LIBS
+    fi
 fi
 AC_SUBST(MAD_LIBS)