Changes in tools/autotool.py [7174403:2429e4a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r7174403 r2429e4a 184 184 sys.stderr.write("ok\n") 185 185 186 def check_app_alternatives(alts, args, name, details):187 "Check whether an application can be executed (use several alternatives)"188 189 tried = []190 found = None191 192 for alt in alts:193 working = True194 cmdline = [alt] + args195 tried.append(" ".join(cmdline))196 197 try:198 sys.stderr.write("Checking for %s ... " % alt)199 subprocess.Popen(cmdline, stdout = subprocess.PIPE, stderr = subprocess.PIPE).wait()200 except:201 sys.stderr.write("failed\n")202 working = False203 204 if (working):205 sys.stderr.write("ok\n")206 found = alt207 break208 209 if (found is None):210 print_error(["%s is missing." % name,211 "",212 "Please make sure that it is installed in your",213 "system (%s)." % details,214 "",215 "The following alternatives were tried:"] + tried)216 217 return found218 219 186 def check_gcc(path, prefix, common, details): 220 187 "Check for GCC" … … 492 459 493 460 for key, value in common.items(): 494 if (type(value) is list): 495 outmk.write('%s = %s\n' % (key, " ".join(value))) 496 else: 497 outmk.write('%s = %s\n' % (key, value)) 461 outmk.write('%s = %s\n' % (key, value)) 498 462 499 463 outmk.close() … … 660 624 # Platform-specific utilities 661 625 if ((config['BARCH'] == "amd64") or (config['BARCH'] == "ia32") or (config['BARCH'] == "ppc32") or (config['BARCH'] == "sparc64")): 662 c ommon['GENISOIMAGE'] = check_app_alternatives(["mkisofs", "genisoimage"], ["--version"], "ISO 9660 creation utility", "usually part of genisoimage")626 check_app(["mkisofs", "--version"], "ISO 9660 creation utility", "usually part of genisoimage") 663 627 664 628 probe = probe_compiler(common,
Note:
See TracChangeset
for help on using the changeset viewer.