-if $cc --version 2> /dev/null | grep -q Intel; then
- # Just warnings, no remarks
- check_cflags -w1
- # -wd: Disable following warnings
- # 144, 167, 556: -Wno-pointer-sign
- # 10006: ignoring unknown option -fno-signed-zeros
- # 10156: ignoring option '-W'; no argument required
- check_cflags -wd144,167,556,10006,10156
- # 11030: Warning unknown option --as-needed
- # 10156: ignoring option '-export'; no argument required
- check_ldflags -wd10156,11030
- # Allow to compile with optimizations
- check_ldflags -march=$cpu
+if enabled icc; then
+ # Just warnings, no remarks
+ check_cflags -w1
+ # -wd: Disable following warnings
+ # 144, 167, 556: -Wno-pointer-sign
+ # 10006: ignoring unknown option -fno-signed-zeros
+ # 10156: ignoring option '-W'; no argument required
+ check_cflags -wd144,167,556,10006,10156
+ # 11030: Warning unknown option --as-needed
+ # 10156: ignoring option '-export'; no argument required
+ check_ldflags -wd10156,11030
+ # Allow to compile with optimizations
+ check_ldflags -march=$cpu
+ # icc 11.0 and 11.1 work with ebp_available, but don't pass the test
+ enable ebp_available
+elif enabled ccc; then
+ # disable some annoying warnings
+ add_cflags -msg_disable cvtu32to64
+ add_cflags -msg_disable embedcomment
+ add_cflags -msg_disable needconstext
+ add_cflags -msg_disable nomainieee
+ add_cflags -msg_disable ptrmismatch1
+ add_cflags -msg_disable unreachcode