From: Måns Rullgård Date: Thu, 24 Jun 2010 20:49:32 +0000 (+0000) Subject: configure: add 'warn' function X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7bfc8ae69f1a9ff58a238c0839813a54a563d4f1;p=ffmpeg 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 --- diff --git a/configure b/configure index 8c8de8cb524..8590064df3d 100755 --- a/configure +++ b/configure @@ -265,6 +265,11 @@ echolog(){ echo "$@" } +warn(){ + log "WARNING: $*" + WARNINGS="${WARNINGS}WARNING: $*\n" +} + die(){ echolog "$@" cat <> $TMPH cp_if_changed $TMPH libavutil/avconfig.h +test -n "$WARNINGS" && printf "\n$WARNINGS" + # build pkg-config files pkgconfig_generate(){