1/^def macosx_sdk_root(/a
2.
3/cflags =/i
4    sdkroot = os.environ.get('SDKROOT')
5    if sdkroot is not None:
6        return sdkroot
7.
8/# Check the additional directories$/a
9.
10/f = os\.path\.join(sysroot, dir\[1:], filename)/c
11            dir = os.path.join(sysroot, dir[1:])
12            f = os.path.join(dir, filename)
13.
14/# Otherwise, it must have been in one of the additional directories,$/a
15.
16/if os\.path\.join(sysroot, p\[1:]) == dirname:/c
17            sp = os.path.join(sysroot, p[1:])
18            if sp == dirname:
19.
20/return \[ p ]/s/p/sp/
21g/('-Wl,-search_paths_first',)/s//()/
22/'-arch' in ext.extra_link_args/s//'-no64' in ext.extra_link_args/
23/Disabled on 64-bit platforms/a
24.
25/sys.maxint != 9223372036854775807L/s//True/
26/\['imageop.c'\]/s//&, extra_compile_args = ['-no64'], extra_link_args = ['-no64']/
27/# readline$/a
28.
29/if platform == 'darwin':/a
30.
31.,/if do_readline:/-1s/^/#/
32/readline_extra_link_args/a
33.
34?darwin?,.+1d
35s/    //
36/\[expatinc]/d
37/expat\/xmlparse.c/a
38.
39.,/]/-1d
40/))/a
41.
42.t.-1
43s/))/libraries = ['expat'],/
44/if sys.maxint == 0x7fffffff:/d
45.,/missing\.append('dl')/s/    //
46/else:/a
47.
48.,/missing\.append('dl')/d
49?Extension('dl'?s/]/&, extra_compile_args = ['-no64'], extra_link_args = ['-no64']/
50/carbon_kwds =/a
51.
52.,/}/t/}/
53?carbon_kwds?s//&32/
54s/carbon_extra_compile_args/& + ['-no64']/
55/'-framework', 'Carbon'/s//&, '-no64'/
56/CARBON_EXTS/a
57.
58s/ 'Nav',//
59.t/\]/
60s/CARBON_EXTS/&32/
61s/'.*/'Nav', '_Win']/
62/for name in CARBON_EXTS/a
63.
64.,/^$/-1t.-1
65/CARBON_EXTS/s//&32/
66/carbon_kwds/s//&32/
67/Workaround for a bug/a
68.
69.,/^$/d
70/extra_compile_args=carbon_extra_compile_args/s//& + ['-no64']/
71/'-framework', 'Carbon'/s//&, '-no64'/
72/def detect_tkinter_darwin/a
73.
74/don't support 64-bit$/-1a
75.
76.,/frameworks.append(a)/d
77w
78