summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-05-31 13:45:03 -0700
committerNathan Binkert <binkertn@umich.edu>2007-05-31 13:45:03 -0700
commit6b6de8aaae86ea8b0f416a175c547fc67bea804a (patch)
tree359aa6e502dcbb5788249f5b9254f1f1dcf2616d /ext
parent83aa742d2621c564c4cd421c70e8334433edcacc (diff)
downloadgem5-6b6de8aaae86ea8b0f416a175c547fc67bea804a.tar.xz
obey the m5 style
--HG-- extra : convert_revision : ac0d55c651a2bb6823cbf5a31c6f57ec163730ab
Diffstat (limited to 'ext')
-rw-r--r--ext/libelf/SConscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/libelf/SConscript b/ext/libelf/SConscript
index d6f1e351b..7affa6dcb 100644
--- a/ext/libelf/SConscript
+++ b/ext/libelf/SConscript
@@ -94,13 +94,15 @@ if env.get('CXX'):
m4env['CXX'] = env['CXX']
# If we have gm4 use it
-if subprocess.Popen("gm4 --version", shell=True, stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT, close_fds=True).communicate()[0].find('GNU') >= 0:
+subp = subprocess.Popen("gm4 --version", shell=True, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, close_fds=True)
+if subp.communicate()[0].find('GNU') >= 0:
m4env['M4'] = 'gm4'
# Check that m4 is available
if not m4env.get('M4'):
- print "Error: Can't find version of M4 macro processor. Please install M4 and try again."
+ print "Error: Can't find version of M4 macro processor. " + \
+ "Please install M4 and try again."
Exit(1)
m4env.Append(M4FLAGS='-DSRCDIR=%s' % Dir('.').path)