diff options
author | Fred Wright <fw@fwright.net> | 2016-04-13 15:17:07 -0700 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-04-14 04:07:18 -0400 |
commit | 736eb1ffe657970fee1ed6b0b8482b9318c0f136 (patch) | |
tree | bdca47c90e32f6c886939dba06ce682ea6926d75 /shmexport.c | |
parent | 3e9cd66c2305c7d9f81084519d840620d5f0cabf (diff) | |
download | gpsd-736eb1ffe657970fee1ed6b0b8482b9318c0f136.tar.gz |
Adds fallback for target_python handling with older scons.
The CheckProg function is a relatively recent addition to scons, and
is missing from, e.g., scons 2.3.0. It's worth using it to simplify
the error case, but fallback code is needed to allow building with a
nonempty target_python option and an older scons. This fix makes it
work correctly in the non-error case, and also avoids crashing the
build in the common error case, albeit without avoiding duplicate
error messages.
TESTED:
Ran "scons -c" with blank, valid, and invalid target_python values
both on OSX with scons 2.4.1 and Linux with scons 2.3.0.
Diffstat (limited to 'shmexport.c')
0 files changed, 0 insertions, 0 deletions