OSDN Git Service

configure.ac: correctly manage llvm auto-detection
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 18 Jan 2017 13:54:04 +0000 (13:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Feb 2017 13:58:02 +0000 (13:58 +0000)
commite81e284611fed996b7b5d768af1d5636490c2d7f
tree75a728ced96f9eee89783bc22808ca5e0aa8e3fc
parentedecfda23fdfbbeb802bc4facae5207272414f07
configure.ac: correctly manage llvm auto-detection

Earlier refactoring commits changed from one, dare I say it, broken
behaviour to another. Namely:

Before, as you explicitly --enable-gallium-llvm your selection was
ignored when llvm-config was not present/detected.
Today, the "auto" heuristics enables gallium llvm regardless if you have
llvm/llvm-config available or not.

Rework the auto-detection to attribute for llvm's presence.

v2: Set enable_gallium_llvm=no when LLVM is not found.

Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tobias Droste <tdroste@gmx.de>
Reported-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit d4840c0c26315fe4f0ba82e2b0d81cd9f2636f5e)
configure.ac