summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-06-24 20:49:32 +0000
committerMåns Rullgård <mans@mansr.com>2010-06-24 20:49:32 +0000
commit7bfc8ae69f1a9ff58a238c0839813a54a563d4f1 (patch)
treeec743e7f08b7d8ece71e7d70ccb551f2da1d614a /configure
parent5113b3bd5cbd2c12fb1d692c74b457044cf0540f (diff)
configure: add 'warn' function
The 'warn' function records a warning message for display after other informational messages. Originally committed as revision 23760 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 8c8de8cb52..8590064df3 100755
--- a/configure
+++ b/configure
@@ -265,6 +265,11 @@ echolog(){
echo "$@"
}
+warn(){
+ log "WARNING: $*"
+ WARNINGS="${WARNINGS}WARNING: $*\n"
+}
+
die(){
echolog "$@"
cat <<EOF
@@ -3069,6 +3074,8 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
cp_if_changed $TMPH libavutil/avconfig.h
+test -n "$WARNINGS" && printf "\n$WARNINGS"
+
# build pkg-config files
pkgconfig_generate(){