Revision 792d9a92 configure

View differences:

configure
154 154
def host_arch_cc():
155 155
  """Host architecture check using the CC command."""
156 156

  
157
  p = subprocess.Popen(CC.split() + ['-dM', '-E', '-'],
158
                       stdin=subprocess.PIPE,
159
                       stdout=subprocess.PIPE,
160
                       stderr=subprocess.PIPE)
157
  try:
158
    p = subprocess.Popen(CC.split() + ['-dM', '-E', '-'],
159
                         stdin=subprocess.PIPE,
160
                         stdout=subprocess.PIPE,
161
                         stderr=subprocess.PIPE)
162
  except OSError:
163
    print '''Node.js configure error: No acceptable C compiler found!
164

  
165
        Please make sure you have a C compiler installed on your system and/or
166
        consider adjusting the CC environment variable if you installed
167
        it in a non-standard prefix.
168
        '''
169
    sys.exit()
170

  
161 171
  p.stdin.write('\n')
162 172
  out = p.communicate()[0]
163 173

  

Also available in: Unified diff