From: Eric Blake Date: Fri, 3 Jun 2011 19:43:15 +0000 (-0600) Subject: build: detect Coverity 5.3.0 X-Git-Tag: v0.9.3-rc1~216 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28ea3bf31c5fb03d7e51ba49cfaf8f1b2ec6fc57;p=thirdparty%2Flibvirt.git build: detect Coverity 5.3.0 Coverity 5.3.0 still outputs lots of COVERITY_* variables, but no longer modifies COVERITY_BUILD_COMMAND in the environment. Pick one that seems likely to stay around. * configure.ac (STATIC_ANALYSIS): Detect newer Coverity. --- diff --git a/configure.ac b/configure.ac index 7982e21aab..985b8c2f85 100644 --- a/configure.ac +++ b/configure.ac @@ -2389,7 +2389,9 @@ cp -f COPYING.LIB COPYING # Detect when running under the clang static analyzer's scan-build driver # or Coverity-prevent's cov-build. Define STATIC_ANALYSIS accordingly. -test -n "${CCC_ANALYZER_ANALYSIS+set}$COVERITY_BUILD_COMMAND" && t=1 || t=0 +t=0 +test -n "${CCC_ANALYZER_ANALYSIS+set}" && t=1 +test -n "$COVERITY_BUILD_COMMAND$COVERITY_LD_PRELOAD" && t=1 AC_DEFINE_UNQUOTED([STATIC_ANALYSIS], [$t], [Define to 1 when performing static analysis.])