diff --git a/configure b/configure
index 8c8de8cb52480d079e0a5ad5dc88307585730891..8590064df3d0eff9f3f859d5e12047b456df766b 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(){