configure.ac: Move llvm_set_environment_variables higher.
authorTobias Droste <tdroste@gmx.de>
Sat, 19 Nov 2016 01:39:04 +0000 (02:39 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 5 Dec 2016 14:43:46 +0000 (14:43 +0000)
commit9d14a25bee0f1457a82f3e42b3baf3db1806faea
treeccec158b8362518d31d81d82ff96ef13a0ff9050
parent19ff3975de6947bb8c6bfddff8e599c737f9185f
configure.ac: Move llvm_set_environment_variables higher.

This moves the function to get the LLVM environment variables higher
in the file. It still needs to be below the "--enable-opencl" because
it uses $enable_opencl.
It can be called without condition now as it only throws errors if
openCL is enabled.

v5:
HAVE_MESA_LLVM is only used for gallium. Rename it to HAVE_GALLIUM_LLVM.
In order to only link LLVM when it is needed, HAVE_GALLIUM_LLVM is only
set if "$enable-gallium-llvm" is yes.

Signed-off-by: Tobias Droste <tdroste@gmx.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
12 files changed:
configure.ac
src/gallium/auxiliary/Makefile.am
src/gallium/targets/d3dadapter9/Makefile.am
src/gallium/targets/dri/Makefile.am
src/gallium/targets/libgl-xlib/Makefile.am
src/gallium/targets/omx/Makefile.am
src/gallium/targets/osmesa/Makefile.am
src/gallium/targets/pipe-loader/Makefile.am
src/gallium/targets/va/Makefile.am
src/gallium/targets/vdpau/Makefile.am
src/gallium/targets/xa/Makefile.am
src/gallium/targets/xvmc/Makefile.am