]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: allow caching the input to STATIC_ANALYSIS
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 18:25:58 +0000 (12:25 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 21:01:32 +0000 (15:01 -0600)
commite4047f0a10a7d28421133989b80d273d87758627
treefd29f8e7cc82c17353cd8717b5de773440bb2a68
parent00ef048f62c9789e5d2f8848e16627cc30248259
build: allow caching the input to STATIC_ANALYSIS

Right now, every re-run of configure re-evaluates whether a
static analysis tool is in use.  But if you run configure under
coverity, make a tweak, and then do an incremental rebuild with
gcc but not coverity to test the tweak, then rerun a build under
coverity, then configure does not get rerun, and static analysis
ends up with lots of false positives.

This patch caches the static analysis result, and also makes it
easier to force static analysis even if the existing checks are
insufficient to detect newer versions of the static analyzer tools.

* configure.ac (lv_cv_static_analysis): New cache variable.
configure.ac