diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-11-16 06:58:13 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-11-16 06:58:13 +0100 |
commit | e20c9557371eacec533588d33b4bebd543ba178f (patch) | |
tree | d48d297298e410a3068d647c95f2d06e635015b8 /doc/user/sconf.xml | |
parent | f681a1fb71c146c754f57508afac240d0e1b47e1 (diff) |
Imported Upstream version 2.4.1upstream/2.4.1
Diffstat (limited to 'doc/user/sconf.xml')
-rw-r--r-- | doc/user/sconf.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml index 9096aad..621405e 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> |