summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGildas Bazin <gbazi@altern.org>2006-01-21 18:36:32 +0000
committerDiego Biurrun <diego@biurrun.de>2006-01-21 18:36:32 +0000
commit04f46ced8c6e309b561ba315ef7d3a5421bd26fa (patch)
treedc2131c4551d25a00a7d7fe62952a81ac8c47678 /configure
parent62327e2852ffe1c3088feafa0dfbd4ddb6632064 (diff)
Add --disable-protocols option to configure to disable I/O protocol from
libavformat. Also fix build with --disable-muxers and --disable-ffserver. patch by Gildas Bazin < gbazin **@** altern **.** org > Originally committed as revision 4879 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure b/configure
index 7757f60dc5..ccc04416b9 100755
--- a/configure
+++ b/configure
@@ -74,6 +74,7 @@ echo " --disable-debug disable debugging symbols"
echo " --disable-opts disable compiler optimizations"
echo " --disable-mpegaudio-hp faster (but less accurate)"
echo " MPEG audio decoding [default=no]"
+echo " --disable-protocols disable I/O protocols support [default=no]"
echo " --disable-ffserver disable ffserver build"
echo " --disable-ffplay disable ffplay build"
echo " --enable-small optimize for size instead of speed"
@@ -220,6 +221,7 @@ mpegaudio_hp="yes"
SHFLAGS='-shared -Wl,-soname,$@.$(LIBMAJOR)'
netserver="no"
need_inet_aton="no"
+protocols="yes"
ffserver="yes"
ffplay="yes"
LIBOBJFLAGS=""
@@ -551,6 +553,8 @@ for opt do
;;
--disable-mpegaudio-hp) mpegaudio_hp="no"
;;
+ --disable-protocols) protocols="no"; network="no"; ffserver="no"
+ ;;
--disable-ffserver) ffserver="no"
;;
--disable-ffplay) ffplay="no"
@@ -587,7 +591,7 @@ for opt do
;;
--disable-decoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*decoder//g'`"
;;
- --disable-muxers) muxers="no"
+ --disable-muxers) muxers="no"; ffserver="no"
;;
--disable-demuxers) demuxers="no"
;;
@@ -1731,6 +1735,11 @@ if test "$simpleidct" = "yes" ; then
echo "#define SIMPLE_IDCT 1" >> $TMPH
fi
+if test "$protocols" = "yes" ; then
+ echo "#define CONFIG_PROTOCOLS 1" >> $TMPH
+ echo "CONFIG_PROTOCOLS=yes" >> config.mak
+fi
+
if test "$ffserver" = "yes" ; then
echo "#define CONFIG_FFSERVER 1" >> $TMPH
echo "CONFIG_FFSERVER=yes" >> config.mak