diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-15 20:35:46 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-15 20:35:46 +0000 |
commit | 3d907e22071fce39b6e72527d5be4e8b1d7463c2 (patch) | |
tree | 76d58c4abb98e2e3b9621ac99bd46cb1bbbc369c /configure | |
parent | 3f5b56e58b17e664bd2b72bd4ed3c88ca183502c (diff) | |
download | ffmpeg-3d907e22071fce39b6e72527d5be4e8b1d7463c2.tar.gz |
merge print_config_enable() and print_config() as only the former is used
Originally committed as revision 9325 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 38 |
1 files changed, 16 insertions, 22 deletions
@@ -310,23 +310,17 @@ print_config(){ makefile=$3 shift 3 for cfg; do + ucname="`toupper $cfg`" if enabled $cfg; then - ucname="${pfx}`toupper $cfg`" - echo "#define ${ucname} 1" >> $header - echo "${ucname}=yes" >> $makefile + echo "#define ${pfx}${ucname} 1" >> $header + echo "#define ENABLE_${ucname} 1" >> $header + echo "${pfx}${ucname}=yes" >> $makefile + else + echo "#define ENABLE_${ucname} 0" >> $header fi done } -print_config_enable(){ - print_config $@ - shift 3 - for cfg; do - enabled $cfg && val=1 || val=0 - echo "#define ENABLE_`toupper $cfg` $val" >> $header - done -} - flags_saved(){ (: ${SAVE_CFLAGS?}) 2>/dev/null } @@ -2030,16 +2024,16 @@ fi echo "LIB_INSTALL_EXTRA_CMD=${LIB_INSTALL_EXTRA_CMD}" >> config.mak echo "EXTRALIBS=$extralibs" >> config.mak -print_config_enable ARCH_ $TMPH config.mak $ARCH_LIST -print_config_enable HAVE_ $TMPH config.mak $HAVE_LIST -print_config_enable CONFIG_ $TMPH config.mak $CONFIG_LIST \ - $DECODER_LIST \ - $ENCODER_LIST \ - $PARSER_LIST \ - $BSF_LIST \ - $DEMUXER_LIST \ - $MUXER_LIST \ - $PROTOCOL_LIST \ +print_config ARCH_ $TMPH config.mak $ARCH_LIST +print_config HAVE_ $TMPH config.mak $HAVE_LIST +print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \ + $DECODER_LIST \ + $ENCODER_LIST \ + $PARSER_LIST \ + $BSF_LIST \ + $DEMUXER_LIST \ + $MUXER_LIST \ + $PROTOCOL_LIST \ if test "$targetos" = darwin; then echo "#define CONFIG_DARWIN 1" >> $TMPH |