diff options
author | William Deegan <bill@baddogconsulting.com> | 2015-09-29 17:04:02 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2015-09-29 17:04:02 (GMT) |
commit | 22de916b1766151a0e1d2b598eec19b00607cd9a (patch) | |
tree | 6ed95a9bb7b6256864a971d90c8f099fba0f010b /src/engine/SCons/Conftest.py | |
parent | 739878908fb7b8ffae09804369069ee33056dec5 (diff) | |
parent | 72d8407c28fc02cb986fa561c793e1b202e53867 (diff) | |
download | SCons-22de916b1766151a0e1d2b598eec19b00607cd9a.zip SCons-22de916b1766151a0e1d2b598eec19b00607cd9a.tar.gz SCons-22de916b1766151a0e1d2b598eec19b00607cd9a.tar.bz2 |
Merged in carandraug/scons (pull request #248)
Diffstat (limited to 'src/engine/SCons/Conftest.py')
-rw-r--r-- | src/engine/SCons/Conftest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/engine/SCons/Conftest.py b/src/engine/SCons/Conftest.py index e9702ff..87a3022 100644 --- a/src/engine/SCons/Conftest.py +++ b/src/engine/SCons/Conftest.py @@ -684,6 +684,22 @@ return 0; return ret +def CheckProg(context, prog_name): + """ + Configure check for a specific program. + + Check whether program prog_name exists in path. If it is found, + returns the path for it, otherwise returns None. + """ + context.Display("Checking whether %s program exists..." % prog_name) + path = context.env.WhereIs(prog_name) + if path: + context.Display(path + "\n") + else: + context.Display("no\n") + return path + + # # END OF PUBLIC FUNCTIONS # |