summaryrefslogtreecommitdiffstats
path: root/doc/user
diff options
context:
space:
mode:
authorCarnë Draug <carandraug+dev@gmail.com>2015-09-26 18:01:04 (GMT)
committerCarnë Draug <carandraug+dev@gmail.com>2015-09-26 18:01:04 (GMT)
commit72d8407c28fc02cb986fa561c793e1b202e53867 (patch)
tree0cb38260897ea073c8ebe22187a017e7c322ca6e /doc/user
parent95266ff25dd0be222e1838a439190317c60601d4 (diff)
downloadSCons-72d8407c28fc02cb986fa561c793e1b202e53867.zip
SCons-72d8407c28fc02cb986fa561c793e1b202e53867.tar.gz
SCons-72d8407c28fc02cb986fa561c793e1b202e53867.tar.bz2
Add new CheckProg configure method to documentation and list of changes.
Diffstat (limited to 'doc/user')
-rw-r--r--doc/user/sconf.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml
index 569ab1a..fe933f1 100644
--- a/doc/user/sconf.xml
+++ b/doc/user/sconf.xml
@@ -304,6 +304,26 @@ scons: `.' is up to date.
</section>
<section>
+ <title>Checking for the Presence of a program</title>
+
+ <para>
+
+ Check for the presence of a program
+ by using the &CheckProg; method:
+
+ </para>
+
+ <sconstruct>
+env = Environment()
+conf = Configure(env)
+if not conf.CheckProg('foobar'):
+ print 'Unable to find the program foobar on the system'
+ Exit(1)
+env = conf.Finish()
+ </sconstruct>
+
+ </section>
+ <section>
<title>Adding Your Own Custom Checks</title>
<para>