diff --git a/configure b/configure
index a46e670ecd41c59d46fe44ad74f72bf71aabcb6f..9c277fa3c2ac28ceff85a901fcc99fea741e92c5 100755
--- a/configure
+++ b/configure
@@ -2976,6 +2976,7 @@ tmpfile(){
 }
 
 trap 'rm -rf -- "$AVTMPDIR"' EXIT
+trap 'exit 2' INT
 
 tmpfile TMPASM .asm
 tmpfile TMPC   .c