scons: don't assume llvm is always present

This commit is contained in:
Zack Rusin 2010-02-09 00:00:35 -05:00
parent 85c7ec70ad
commit 43f8a82a76

View file

@ -170,8 +170,11 @@ if dri:
if drawllvm:
# See also http://www.scons.org/wiki/UsingPkgConfig
# currently --ldflags --libsdisabled since the driver will force the correct linkage
env.ParseConfig('llvm-config --cflags backend bitreader engine instrumentation interpreter ipo')
env.Append(CPPDEFINES = ['DRAW_LLVM'])
env.Tool('llvm')
if not env.has_key('LLVM_VERSION'):
drawllvm = False
else:
env.Append(CPPDEFINES = ['DRAW_LLVM'])
# libGL
if platform in ('linux', 'freebsd', 'darwin'):