aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-10-17 22:38:37 +0000
committerDiego Biurrun <diego@biurrun.de>2007-10-17 22:38:37 +0000
commit9c05103fe3fec0a025e2169810d29af599e75349 (patch)
tree0d2065a0a0867089dbc1f2b93ff56ae8ea7c6400
parentdeb43f0bd8c21d70217b9cab6b11418c64d2ae2f (diff)
downloadffmpeg-9c05103fe3fec0a025e2169810d29af599e75349.tar.gz
Add multiple inclusion guards to config.h.
Originally committed as revision 10772 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 94f04ce874..630b77aa8e 100755
--- a/configure
+++ b/configure
@@ -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! */" > $TMPH
+echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH
+echo "#define FFMPEG_CONFIG_H" >> $TMPH
echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH
echo "PREFIX=$PREFIX" >> config.mak
@@ -1942,6 +1944,8 @@ enabled asmalign_pot &&
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.
cmp -s $TMPH config.h &&
echo "config.h is unchanged" ||