summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure7
-rw-r--r--configure.in7
2 files changed, 8 insertions, 6 deletions
diff --git a/configure b/configure
index eb5d19e..eb0ea71 100755
--- a/configure
+++ b/configure
@@ -5498,9 +5498,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 81de0d4..0efe7d1 100644
--- a/configure.in
+++ b/configure.in
@@ -928,9 +928,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)