[Mesa-dev] [PATCH] configure: Don't use $CLANG since it will collide with the static analyzer.

Jeremy Huddleston jeremyhu at freedesktop.org
Thu May 5 14:08:57 PDT 2011

We just prefix the $CLANG environment variable in configure.ac with acv_mesa_

Found by: tinderbox
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

 configure.ac |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 54d9c29..f3f0fda 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,13 +64,13 @@ AC_COMPILE_IFELSE(
        not clang
-[CLANG=yes], [CLANG=no])
+[acv_mesa_CLANG=yes], [acv_mesa_CLANG=no])
 dnl If we're using GCC, make sure that it is at least version 3.3.0.  Older
 dnl versions are explictly not supported.
-if test "x$GCC" = xyes -a "x$CLANG" = xno; then
+if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
     AC_MSG_CHECKING([whether gcc version is sufficient])
@@ -144,7 +144,7 @@ esac
 dnl Add flags for gcc and g++
 if test "x$GCC" = xyes; then
     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
-    if test "x$CLANG" = "xno"; then
+    if test "x$acv_mesa_CLANG" = "xno"; then
        CFLAGS="$CFLAGS -ffast-math"

More information about the mesa-dev mailing list