[Ffmpeg-devel] [PATCH] Make configure bail out on unknown options

Diego Biurrun diego
Sun Sep 18 23:40:48 CEST 2005


Hi,

I recently talked to a developer of Syllable OS and he told me they
compile FFmpeg with --disable-risky.  That option no longer exists but
they are still using it since configure silently ignores unknown
options.  This trivial patch makes configure bail out with an error
message instead.

I'll apply in the next few days if nobody objects.

Diego
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.200
diff -u -r1.200 configure
--- configure	21 Aug 2005 20:33:00 -0000	1.200
+++ configure	18 Sep 2005 21:41:15 -0000
@@ -533,6 +533,10 @@
   ;;
   --disable-decoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*decoder//g'`"
   ;;
+  *)
+  echo "unknown option $opt"
+  exit 1
+  ;;
   esac
 done
 



More information about the ffmpeg-devel mailing list