Skip to content

Commit

Permalink
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
Browse files Browse the repository at this point in the history
also update the multiple inclusion guards in config.h|mak
  • Loading branch information
Janne Grunau authored and Janne Grunau committed Mar 16, 2011
1 parent 070c5d0 commit 29ba091
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ distclean::
$(RM) version.h config.* libavutil/avconfig.h

config:
$(SRC_PATH)/configure $(value FFMPEG_CONFIGURATION)
$(SRC_PATH)/configure $(value LIBAV_CONFIGURATION)

# regression tests

Expand Down
4 changes: 2 additions & 2 deletions cmdutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ static int warned_cfg = 0;
} \
if (flags & SHOW_CONFIG) { \
const char *cfg = libname##_configuration(); \
if (strcmp(FFMPEG_CONFIGURATION, cfg)) { \
if (strcmp(LIBAV_CONFIGURATION, cfg)) { \
if (!warned_cfg) { \
fprintf(outstream, \
"%sWARNING: library configuration mismatch\n", \
Expand Down Expand Up @@ -427,7 +427,7 @@ void show_banner(void)
program_name, program_birth_year, this_year);
fprintf(stderr, " built on %s %s with %s %s\n",
__DATE__, __TIME__, CC_TYPE, CC_VERSION);
fprintf(stderr, " configuration: " FFMPEG_CONFIGURATION "\n");
fprintf(stderr, " configuration: " LIBAV_CONFIGURATION "\n");
print_all_libs_info(stderr, INDENT|SHOW_CONFIG);
print_all_libs_info(stderr, INDENT|SHOW_VERSION);
}
Expand Down
22 changes: 11 additions & 11 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ for v in "$@"; do
r=${v#*=}
l=${v%"$r"}
r=$(sh_quote "$r")
FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
LIBAV_CONFIGURATION="${LIBAV_CONFIGURATION# } ${l}${r}"
done

find_things(){
Expand Down Expand Up @@ -1800,7 +1800,7 @@ done

disabled logging && logfile=/dev/null

echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
echo "# $0 $LIBAV_CONFIGURATION" > $logfile
set >> $logfile

test -n "$cross_prefix" && enable cross_compile
Expand Down Expand Up @@ -2495,7 +2495,7 @@ case $target_os in
;;
esac

echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$FFMPEG_CONFIGURATION" >config.fate
echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate

check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic

Expand Down Expand Up @@ -3204,9 +3204,9 @@ config_files="$TMPH config.mak"

cat > config.mak <<EOF
# Automatically generated by configure - do not modify!
ifndef FFMPEG_CONFIG_MAK
FFMPEG_CONFIG_MAK=1
FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION
ifndef LIBAV_CONFIG_MAK
LIBAV_CONFIG_MAK=1
LIBAV_CONFIGURATION=$LIBAV_CONFIGURATION
prefix=$prefix
LIBDIR=\$(DESTDIR)$libdir
SHLIBDIR=\$(DESTDIR)$shlibdir
Expand Down Expand Up @@ -3295,9 +3295,9 @@ get_version LIBAVFILTER libavfilter/avfilter.h

cat > $TMPH <<EOF
/* Automatically generated by configure - do not modify! */
#ifndef FFMPEG_CONFIG_H
#define FFMPEG_CONFIG_H
#define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
#ifndef LIBAV_CONFIG_H
#define LIBAV_CONFIG_H
#define LIBAV_CONFIGURATION "$(c_escape $LIBAV_CONFIGURATION)"
#define FFMPEG_LICENSE "$(c_escape $license)"
#define FFMPEG_DATADIR "$(eval c_escape $datadir)"
#define CC_TYPE "$cc_type"
Expand Down Expand Up @@ -3349,8 +3349,8 @@ LAVFI_TESTS=$(print_enabled -n _test $LAVFI_TESTS)
SEEK_TESTS=$(print_enabled -n _test $SEEK_TESTS)
EOF

echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH
echo "endif # LIBAV_CONFIG_MAK" >> config.mak

# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
cp_if_changed $TMPH config.h
Expand Down
2 changes: 1 addition & 1 deletion libavcodec/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ unsigned avcodec_version( void )

const char *avcodec_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char *avcodec_license(void)
Expand Down
2 changes: 1 addition & 1 deletion libavdevice/avdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ unsigned avdevice_version(void)

const char * avdevice_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char * avdevice_license(void)
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/avfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ unsigned avfilter_version(void) {

const char *avfilter_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char *avfilter_license(void)
Expand Down
2 changes: 1 addition & 1 deletion libavformat/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ unsigned avformat_version(void)

const char *avformat_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char *avformat_license(void)
Expand Down
2 changes: 1 addition & 1 deletion libavutil/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ unsigned avutil_version(void)

const char *avutil_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char *avutil_license(void)
Expand Down
2 changes: 1 addition & 1 deletion libpostproc/postprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ unsigned postproc_version(void)

const char *postproc_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char *postproc_license(void)
Expand Down
2 changes: 1 addition & 1 deletion libswscale/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ unsigned swscale_version(void)

const char *swscale_configuration(void)
{
return FFMPEG_CONFIGURATION;
return LIBAV_CONFIGURATION;
}

const char *swscale_license(void)
Expand Down

0 comments on commit 29ba091

Please sign in to comment.