configure.ac: Rework MESA_LLVM and LLVM detection
authorTobias Droste <tdroste@gmx.de>
Sat, 28 Jan 2017 13:56:57 +0000 (14:56 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Feb 2017 11:47:23 +0000 (11:47 +0000)
commit04377cbdcf19a112c04035d622c40d722cc238d7
tree1795841229a1d5d2231d1bbd22646ed146f81548
parent5869a7db75a144ae898dafe9d9b7cb9d6ae29e12
configure.ac: Rework MESA_LLVM and LLVM detection

Set FOUND_LLVM only when LLVM is present (checking for exact version/etc
is deferred) and use enable-gallium-llvm to indicate the global LLVM
status.

Renaming the latter is not appropriate for stable patches, so we'll
address it with a later commit.

Loosely based on work by Tobias.

v2: Check FOUND_LLVM if enable_gallium_llvm is set.

Cc: Dave Airlie <airlied@redhat.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tobias Droste <tdroste@gmx.de>
configure.ac