From b5e7eb1f92599801f943ad8ad568e089ec7db315 Mon Sep 17 00:00:00 2001 From: Carn? Draug Date: Sat, 26 Sep 2015 19:01:04 +0100 Subject: Add new CheckProg configure method to documentation and list of changes. --- doc/scons.mod | 1 + doc/user/sconf.xml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'doc') diff --git a/doc/scons.mod b/doc/scons.mod index 72dc7ff2..8d640541 100644 --- a/doc/scons.mod +++ b/doc/scons.mod @@ -276,6 +276,7 @@ CheckHeader"> CheckLib"> CheckLibWithHeader"> +CheckProg"> CheckType"> CheckTypeSize"> TryAction"> diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml index 569ab1a7..fe933f12 100644 --- a/doc/user/sconf.xml +++ b/doc/user/sconf.xml @@ -303,6 +303,26 @@ scons: `.' is up to date. +
+ Checking for the Presence of a program + + + + Check for the presence of a program + by using the &CheckProg; method: + + + + +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() + + +
Adding Your Own Custom Checks -- cgit v1.2.1