diff --git a/configure b/configure
index 928e5f42a36b27b59d904c2c338d81a06a14d069..2e2a151e401f68ce1a469a37a401f462fd54ea00 100755
--- a/configure
+++ b/configure
@@ -4021,8 +4021,10 @@ elif enabled_any msvc icl; then
     enabled debug && add_ldflags -debug
     enable pragma_deprecated
     if enabled icl; then
-        # basically -fstrict-aliasing that does not work (correctly) on icl 13.x
-        check_cpp_condition "windows.h" "__ICL < 1300" && add_cflags -Qansi-alias
+        # -Qansi-alias is basically -fstrict-aliasing, but does not work
+        # (correctly) on icl 13.x.
+        check_cpp_condition "windows.h" "__ICL < 1300 || __ICL >= 1400" &&
+            add_cflags -Qansi-alias
         # icl will pass the inline asm tests but inline asm is currently
         # not supported (build will fail)
         disable inline_asm