summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-07-05 19:31:48 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-05 19:31:48 +0000
commit6eefb6fd5b7ae19c9da0ba52ba9fdd492180c222 (patch)
treef78a409ab13f22b866898edf10ecb92e66d2748c /configure
parent98d417cbcd6170d4b7836690b5cc1911e2dd883d (diff)
set CONFIG_ENCODERS/CONFIG_DECODERS only if any encoders/decoders are enabled
Originally committed as revision 5629 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure b/configure
index ee7ce4edaf..e315b5f6ee 100755
--- a/configure
+++ b/configure
@@ -1732,12 +1732,16 @@ fi
echo "EXTRALIBS=$extralibs" >> config.mak
# If you do not want to use encoders, disable them.
-echo "#define CONFIG_ENCODERS 1" >> $TMPH
-echo "CONFIG_ENCODERS=yes" >> config.mak
+if echo "$CODEC_LIST" | grep -q encoder; then
+ echo "#define CONFIG_ENCODERS 1" >> $TMPH
+ echo "CONFIG_ENCODERS=yes" >> config.mak
+fi
# If you do not want to use decoders, disable them.
-echo "#define CONFIG_DECODERS 1" >> $TMPH
-echo "CONFIG_DECODERS=yes" >> config.mak
+if echo "$CODEC_LIST" | grep -q decoder; then
+ echo "#define CONFIG_DECODERS 1" >> $TMPH
+ echo "CONFIG_DECODERS=yes" >> config.mak
+fi
# muxers
if test "$muxers" = "yes" ; then