This is probably a more scons like way to do this
--HG-- extra : convert_revision : 2cbd05039bbefcc067310098c6c1c1022302fb10
This commit is contained in:
parent
c432588981
commit
1da901d60f
1 changed files with 3 additions and 4 deletions
|
@ -94,13 +94,12 @@ if env.get('CXX'):
|
||||||
m4env['CXX'] = env['CXX']
|
m4env['CXX'] = env['CXX']
|
||||||
|
|
||||||
# If we have gm4 use it
|
# If we have gm4 use it
|
||||||
subp = subprocess.Popen("gm4 --version", shell=True, stdout=subprocess.PIPE,
|
if m4env.Detect('gm4'):
|
||||||
stderr=subprocess.STDOUT, close_fds=True)
|
|
||||||
if subp.communicate()[0].find('GNU') >= 0:
|
|
||||||
m4env['M4'] = 'gm4'
|
m4env['M4'] = 'gm4'
|
||||||
|
|
||||||
# Check that m4 is available
|
# Check that m4 is available
|
||||||
if not m4env.get('M4'):
|
import SCons.Tool.m4
|
||||||
|
if not SCons.Tool.m4.exists(m4env):
|
||||||
print "Error: Can't find version of M4 macro processor. " + \
|
print "Error: Can't find version of M4 macro processor. " + \
|
||||||
"Please install M4 and try again."
|
"Please install M4 and try again."
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
Loading…
Reference in a new issue