From: Stefan Krah Date: Thu, 8 Dec 2011 21:26:06 +0000 (+0100) Subject: Backport second fix for issue #11149. X-Git-Tag: v2.7.3rc1~258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bc1e8fbf2c5be55e1f186d956121bc26eee40c5;p=python Backport second fix for issue #11149. --- diff --git a/configure b/configure index 72a758e1cf..3948080e13 100755 --- a/configure +++ b/configure @@ -5413,9 +5413,10 @@ then fi # Clang also needs -fwrapv - if test "$CC" = "clang" ; then - WRAP="-fwrapv" - fi + case $CC in + *clang*) WRAP="-fwrapv" + ;; + esac case $ac_cv_prog_cc_g in yes) diff --git a/configure.in b/configure.in index 454e4681da..3f5b3b948f 100644 --- a/configure.in +++ b/configure.in @@ -934,9 +934,10 @@ then fi # Clang also needs -fwrapv - if test "$CC" = "clang" ; then - WRAP="-fwrapv" - fi + case $CC in + *clang*) WRAP="-fwrapv" + ;; + esac case $ac_cv_prog_cc_g in yes)