I'm attempting to check for the existence of a library from inside my SConscript
file, as follows:
# Not sure if this bit is relevant:
Import('env')
env = env.Clone()
# This is what I'm trying to do:
conf = env.Configure()
if conf.CheckLib('gcrypt'):
pass # actually something more interesting
...but it's not working. All I'm getting is an opaque error from scons
, as follows:
scons: ***
File "/home/src/foo/bar/SConscript", line 49, in <module>
...where line 49 is the conf = env.Configure()
line.
This is on Mac OS X, where I don't expect to find the library mentioned. How do I detect this in my SConscript
file?