diff -r a6e59a2e880e configure --- a/configure Mon Oct 31 22:54:12 2016 -0700 +++ b/configure Tue Nov 01 17:16:22 2016 -0400 @@ -6796,7 +6796,7 @@ fi fi LLVM_PROF_ERR=no -case $CC in +case $(basename "$CC") in *clang*) # Any changes made here should be reflected in the GCC+Darwin case below PGO_PROF_GEN_FLAG="-fprofile-instr-generate" @@ -7033,7 +7033,7 @@ # ICC doesn't recognize the option, but only emits a warning ## XXX does it emit an unused result warning and can it be disabled? - case "$CC" in + case $(basename "$CC") in *icc*) ac_cv_disable_unused_result_warning=no ;; @@ -7416,7 +7416,7 @@ esac # ICC needs -fp-model strict or floats behave badly -case "$CC" in +case $(basename "$CC") in *icc*) CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" ;; diff -r a6e59a2e880e configure.ac --- a/configure.ac Mon Oct 31 22:54:12 2016 -0700 +++ b/configure.ac Tue Nov 01 17:16:22 2016 -0400 @@ -1393,7 +1393,7 @@ fi fi LLVM_PROF_ERR=no -case $CC in +case $(basename "$CC") in *clang*) # Any changes made here should be reflected in the GCC+Darwin case below PGO_PROF_GEN_FLAG="-fprofile-instr-generate" @@ -1574,7 +1574,7 @@ # ICC doesn't recognize the option, but only emits a warning ## XXX does it emit an unused result warning and can it be disabled? - case "$CC" in + case $(basename "$CC") in *icc*) ac_cv_disable_unused_result_warning=no ;; @@ -1848,7 +1848,7 @@ esac # ICC needs -fp-model strict or floats behave badly -case "$CC" in +case $(basename "$CC") in *icc*) CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" ;;