[FFmpeg-cvslog] r10772 - trunk/configure
diego
subversion
Thu Oct 18 00:38:37 CEST 2007
Author: diego
Date: Thu Oct 18 00:38:37 2007
New Revision: 10772
Log:
Add multiple inclusion guards to config.h.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Oct 18 00:38:37 2007
@@ -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" ||
More information about the ffmpeg-cvslog
mailing list