mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-13 16:40:27 +00:00
Add multiple inclusion guards to config.h.
Originally committed as revision 10772 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
deb43f0bd8
commit
9c05103fe3
4
configure
vendored
4
configure
vendored
@ -1832,6 +1832,8 @@ echo "Creating config.mak and config.h..."
|
|||||||
|
|
||||||
echo "# Automatically generated by configure - do not modify!" > config.mak
|
echo "# Automatically generated by configure - do not modify!" > config.mak
|
||||||
echo "/* Automatically generated by configure - do not modify! */" > $TMPH
|
echo "/* Automatically generated by configure - do not modify! */" > $TMPH
|
||||||
|
echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH
|
||||||
|
echo "#define FFMPEG_CONFIG_H" >> $TMPH
|
||||||
echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH
|
echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH
|
||||||
|
|
||||||
echo "PREFIX=$PREFIX" >> config.mak
|
echo "PREFIX=$PREFIX" >> config.mak
|
||||||
@ -1942,6 +1944,8 @@ enabled asmalign_pot &&
|
|||||||
printf '#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\\n\\t"\n' >> $TMPH
|
printf '#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\\n\\t"\n' >> $TMPH
|
||||||
|
|
||||||
|
|
||||||
|
echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
|
||||||
|
|
||||||
# Do not overwrite config.h if unchanged to avoid superfluous rebuilds.
|
# Do not overwrite config.h if unchanged to avoid superfluous rebuilds.
|
||||||
cmp -s $TMPH config.h &&
|
cmp -s $TMPH config.h &&
|
||||||
echo "config.h is unchanged" ||
|
echo "config.h is unchanged" ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user