]> git.sesse.net Git - ffmpeg/blobdiff - configure
raw ac3 auto detects parameters
[ffmpeg] / configure
index 78048edd8b42b47fb626ebd5ab63323a1488de87..51a9d1cb2e12e192076abc945c48ef3e5a51f4f5 100755 (executable)
--- a/configure
+++ b/configure
@@ -82,6 +82,7 @@ LIBPREF="lib"
 LIBSUF=".a"
 SLIBPREF="lib"
 SLIBSUF=".so"
+risky="yes"
 
 # OS specific
 targetos=`uname -s`
@@ -298,6 +299,8 @@ for opt do
   ;;
   --disable-ffserver) ffserver="no"
   ;;
+  --disable-risky) risky="no"
+  ;;
   esac
 done
 
@@ -587,6 +590,7 @@ echo "  --enable-gprof           enable profiling with gprof [$gprof]"
 echo "  --disable-mpegaudio-hp   faster (but less accurate)"
 echo "                           mpegaudio decoding [default=no]"
 echo "  --disable-ffserver       disable ffserver build"
+echo "  --disable-risky          disables patent encumbered codecs"
 echo ""
 echo "NOTE: The object files are build at the place where configure is launched"
 exit 1
@@ -615,6 +619,7 @@ echo "vorbis enabled   $vorbis"
 echo "a52 support      $a52"
 echo "a52 dlopened     $a52bin"
 echo "Video hooking    $vhook"
+echo "risky / patent encumbered codecs $risky"
 
 if test "$vhook" = "yes" ; then
 echo "Imlib2 support   $imlib2"
@@ -842,6 +847,11 @@ if test "$ffserver" = "yes" ; then
   echo "CONFIG_FFSERVER=yes" >> config.mak
 fi
 
+if test "$risky" = "yes" ; then
+  echo "#define CONFIG_RISKY 1" >> $TMPH
+  echo "CONFIG_RISKY=yes" >> config.mak
+fi
+
 echo "#define restrict $_restrict" >> $TMPH
 
 # build tree in object directory if source path is different from current one