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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bc1e8fbf2c5be55e1f186d956121bc26eee40c5;p=thirdparty%2FPython%2Fcpython.git Backport second fix for issue #11149. --- diff --git a/configure b/configure index 72a758e1cff1..3948080e13e5 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 454e4681da24..3f5b3b948fff 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)