Revision 52e47b24 configure
configure | ||
---|---|---|
16 | 16 |
# parse our options |
17 | 17 |
parser = optparse.OptionParser() |
18 | 18 |
|
19 |
parser.add_option("--debug", |
|
20 |
action="store_true", |
|
21 |
dest="debug", |
|
22 |
help="Also build debug build") |
|
23 |
|
|
24 |
parser.add_option("--prefix", |
|
25 |
action="store", |
|
26 |
dest="prefix", |
|
27 |
help="Select the install prefix (defaults to /usr/local)") |
|
28 |
|
|
29 |
parser.add_option("--without-npm", |
|
30 |
action="store_true", |
|
31 |
dest="without_npm", |
|
32 |
help="Don\'t install the bundled npm package manager") |
|
33 |
|
|
34 |
parser.add_option("--without-ssl", |
|
35 |
action="store_true", |
|
36 |
dest="without_ssl", |
|
37 |
help="Build without SSL") |
|
38 |
|
|
39 |
parser.add_option("--without-snapshot", |
|
40 |
action="store_true", |
|
41 |
dest="without_snapshot", |
|
42 |
help="Build without snapshotting V8 libraries. You might want to set" |
|
43 |
" this for cross-compiling. [Default: False]") |
|
44 |
|
|
45 |
parser.add_option("--shared-v8", |
|
46 |
action="store_true", |
|
47 |
dest="shared_v8", |
|
48 |
help="Link to a shared V8 DLL instead of static linking") |
|
49 |
|
|
50 |
parser.add_option("--shared-v8-includes", |
|
51 |
action="store", |
|
52 |
dest="shared_v8_includes", |
|
53 |
help="Directory containing V8 header files") |
|
54 |
|
|
55 |
parser.add_option("--shared-v8-libpath", |
|
56 |
action="store", |
|
57 |
dest="shared_v8_libpath", |
|
58 |
help="A directory to search for the shared V8 DLL") |
|
59 |
|
|
60 |
parser.add_option("--shared-v8-libname", |
|
61 |
action="store", |
|
62 |
dest="shared_v8_libname", |
|
63 |
help="Alternative lib name to link to (default: 'v8')") |
|
64 |
|
|
65 |
parser.add_option("--shared-openssl", |
|
66 |
action="store_true", |
|
67 |
dest="shared_openssl", |
|
68 |
help="Link to a shared OpenSSl DLL instead of static linking") |
|
69 |
|
|
70 |
parser.add_option("--shared-openssl-includes", |
|
71 |
action="store", |
|
72 |
dest="shared_openssl_includes", |
|
73 |
help="Directory containing OpenSSL header files") |
|
74 |
|
|
75 |
parser.add_option("--shared-openssl-libpath", |
|
76 |
action="store", |
|
77 |
dest="shared_openssl_libpath", |
|
78 |
help="A directory to search for the shared OpenSSL DLLs") |
|
79 |
|
|
80 |
parser.add_option("--shared-openssl-libname", |
|
81 |
action="store", |
|
82 |
dest="shared_openssl_libname", |
|
83 |
help="Alternative lib name to link to (default: 'crypto,ssl')") |
|
19 |
# Options should be in alphabetical order but keep --prefix at the top, |
|
20 |
# that's arguably the one people will be looking for most. |
|
21 |
parser.add_option('--prefix', |
|
22 |
action='store', |
|
23 |
dest='prefix', |
|
24 |
help='select the install prefix (defaults to /usr/local)') |
|
25 |
|
|
26 |
parser.add_option('--debug', |
|
27 |
action='store_true', |
|
28 |
dest='debug', |
|
29 |
help='also build debug build') |
|
30 |
|
|
31 |
parser.add_option('--dest-cpu', |
|
32 |
action='store', |
|
33 |
dest='dest_cpu', |
|
34 |
help='CPU architecture to build for. Valid values are: arm, ia32, x64') |
|
35 |
|
|
36 |
parser.add_option('--dest-os', |
|
37 |
action='store', |
|
38 |
dest='dest_os', |
|
39 |
help='operating system to build for. Valid values are: ' |
|
40 |
'win, mac, solaris, freebsd, openbsd, linux, android') |
|
41 |
|
|
42 |
parser.add_option('--gdb', |
|
43 |
action='store_true', |
|
44 |
dest='gdb', |
|
45 |
help='add gdb support') |
|
46 |
|
|
47 |
parser.add_option('--ninja', |
|
48 |
action='store_true', |
|
49 |
dest='use_ninja', |
|
50 |
help='generate files for the ninja build system') |
|
51 |
|
|
52 |
parser.add_option('--no-ifaddrs', |
|
53 |
action='store_true', |
|
54 |
dest='no_ifaddrs', |
|
55 |
help='use on deprecated SunOS systems that do not support ifaddrs.h') |
|
56 |
|
|
57 |
parser.add_option('--no-ssl2', |
|
58 |
action='store_true', |
|
59 |
dest='no_ssl2', |
|
60 |
help='disable OpenSSL v2') |
|
84 | 61 |
|
85 | 62 |
# deprecated |
86 |
parser.add_option("--openssl-use-sys",
|
|
87 |
action="store_true",
|
|
88 |
dest="shared_openssl",
|
|
63 |
parser.add_option('--openssl-includes',
|
|
64 |
action='store',
|
|
65 |
dest='shared_openssl_includes',
|
|
89 | 66 |
help=optparse.SUPPRESS_HELP) |
90 | 67 |
|
91 | 68 |
# deprecated |
92 |
parser.add_option("--openssl-includes",
|
|
93 |
action="store",
|
|
94 |
dest="shared_openssl_includes",
|
|
69 |
parser.add_option('--openssl-libpath',
|
|
70 |
action='store',
|
|
71 |
dest='shared_openssl_libpath',
|
|
95 | 72 |
help=optparse.SUPPRESS_HELP) |
96 | 73 |
|
97 | 74 |
# deprecated |
98 |
parser.add_option("--openssl-libpath",
|
|
99 |
action="store",
|
|
100 |
dest="shared_openssl_libpath",
|
|
75 |
parser.add_option('--openssl-use-sys',
|
|
76 |
action='store_true',
|
|
77 |
dest='shared_openssl',
|
|
101 | 78 |
help=optparse.SUPPRESS_HELP) |
102 | 79 |
|
80 |
parser.add_option('--shared-cares', |
|
81 |
action='store_true', |
|
82 |
dest='shared_cares', |
|
83 |
help='link to a shared cares DLL instead of static linking') |
|
84 |
|
|
85 |
parser.add_option('--shared-cares-includes', |
|
86 |
action='store', |
|
87 |
dest='shared_cares_includes', |
|
88 |
help='directory containing cares header files') |
|
89 |
|
|
90 |
parser.add_option('--shared-cares-libname', |
|
91 |
action='store', |
|
92 |
dest='shared_cares_libname', |
|
93 |
help='alternative lib name to link to (default: \'cares\')') |
|
94 |
|
|
95 |
parser.add_option('--shared-cares-libpath', |
|
96 |
action='store', |
|
97 |
dest='shared_cares_libpath', |
|
98 |
help='a directory to search for the shared cares DLL') |
|
99 |
|
|
100 |
parser.add_option('--shared-http-parser', |
|
101 |
action='store_true', |
|
102 |
dest='shared_http_parser', |
|
103 |
help='link to a shared http_parser DLL instead of static linking') |
|
104 |
|
|
105 |
parser.add_option('--shared-http-parser-includes', |
|
106 |
action='store', |
|
107 |
dest='shared_http_parser_includes', |
|
108 |
help='directory containing http_parser header files') |
|
109 |
|
|
110 |
parser.add_option('--shared-http-parser-libname', |
|
111 |
action='store', |
|
112 |
dest='shared_http_parser_libname', |
|
113 |
help='alternative lib name to link to (default: \'http_parser\')') |
|
114 |
|
|
115 |
parser.add_option('--shared-http-parser-libpath', |
|
116 |
action='store', |
|
117 |
dest='shared_http_parser_libpath', |
|
118 |
help='a directory to search for the shared http_parser DLL') |
|
119 |
|
|
120 |
parser.add_option('--shared-libuv', |
|
121 |
action='store_true', |
|
122 |
dest='shared_libuv', |
|
123 |
help='link to a shared libuv DLL instead of static linking') |
|
124 |
|
|
125 |
parser.add_option('--shared-libuv-includes', |
|
126 |
action='store', |
|
127 |
dest='shared_libuv_includes', |
|
128 |
help='directory containing libuv header files') |
|
129 |
|
|
130 |
parser.add_option('--shared-libuv-libname', |
|
131 |
action='store', |
|
132 |
dest='shared_libuv_libname', |
|
133 |
help='alternative lib name to link to (default: \'uv\')') |
|
134 |
|
|
135 |
parser.add_option('--shared-libuv-libpath', |
|
136 |
action='store', |
|
137 |
dest='shared_libuv_libpath', |
|
138 |
help='a directory to search for the shared libuv DLL') |
|
139 |
|
|
140 |
parser.add_option('--shared-openssl', |
|
141 |
action='store_true', |
|
142 |
dest='shared_openssl', |
|
143 |
help='link to a shared OpenSSl DLL instead of static linking') |
|
144 |
|
|
145 |
parser.add_option('--shared-openssl-includes', |
|
146 |
action='store', |
|
147 |
dest='shared_openssl_includes', |
|
148 |
help='directory containing OpenSSL header files') |
|
149 |
|
|
150 |
parser.add_option('--shared-openssl-libname', |
|
151 |
action='store', |
|
152 |
dest='shared_openssl_libname', |
|
153 |
help='alternative lib name to link to (default: \'crypto,ssl\')') |
|
154 |
|
|
155 |
parser.add_option('--shared-openssl-libpath', |
|
156 |
action='store', |
|
157 |
dest='shared_openssl_libpath', |
|
158 |
help='a directory to search for the shared OpenSSL DLLs') |
|
159 |
|
|
160 |
parser.add_option('--shared-v8', |
|
161 |
action='store_true', |
|
162 |
dest='shared_v8', |
|
163 |
help='link to a shared V8 DLL instead of static linking') |
|
164 |
|
|
165 |
parser.add_option('--shared-v8-includes', |
|
166 |
action='store', |
|
167 |
dest='shared_v8_includes', |
|
168 |
help='directory containing V8 header files') |
|
169 |
|
|
170 |
parser.add_option('--shared-v8-libname', |
|
171 |
action='store', |
|
172 |
dest='shared_v8_libname', |
|
173 |
help='alternative lib name to link to (default: \'v8\')') |
|
174 |
|
|
175 |
parser.add_option('--shared-v8-libpath', |
|
176 |
action='store', |
|
177 |
dest='shared_v8_libpath', |
|
178 |
help='a directory to search for the shared V8 DLL') |
|
179 |
|
|
180 |
parser.add_option('--shared-zlib', |
|
181 |
action='store_true', |
|
182 |
dest='shared_zlib', |
|
183 |
help='link to a shared zlib DLL instead of static linking') |
|
184 |
|
|
185 |
parser.add_option('--shared-zlib-includes', |
|
186 |
action='store', |
|
187 |
dest='shared_zlib_includes', |
|
188 |
help='directory containing zlib header files') |
|
189 |
|
|
190 |
parser.add_option('--shared-zlib-libname', |
|
191 |
action='store', |
|
192 |
dest='shared_zlib_libname', |
|
193 |
help='alternative lib name to link to (default: \'z\')') |
|
194 |
|
|
195 |
parser.add_option('--shared-zlib-libpath', |
|
196 |
action='store', |
|
197 |
dest='shared_zlib_libpath', |
|
198 |
help='a directory to search for the shared zlib DLL') |
|
199 |
|
|
103 | 200 |
# TODO document when we've decided on what the tracing API and its options will |
104 | 201 |
# look like |
105 |
parser.add_option("--systemtap-includes",
|
|
106 |
action="store",
|
|
107 |
dest="systemtap_includes",
|
|
202 |
parser.add_option('--systemtap-includes',
|
|
203 |
action='store',
|
|
204 |
dest='systemtap_includes',
|
|
108 | 205 |
help=optparse.SUPPRESS_HELP) |
109 | 206 |
|
110 |
parser.add_option("--no-ssl2", |
|
111 |
action="store_true", |
|
112 |
dest="no_ssl2", |
|
113 |
help="Disable OpenSSL v2") |
|
114 |
|
|
115 |
parser.add_option("--shared-zlib", |
|
116 |
action="store_true", |
|
117 |
dest="shared_zlib", |
|
118 |
help="Link to a shared zlib DLL instead of static linking") |
|
119 |
|
|
120 |
parser.add_option("--shared-zlib-includes", |
|
121 |
action="store", |
|
122 |
dest="shared_zlib_includes", |
|
123 |
help="Directory containing zlib header files") |
|
124 |
|
|
125 |
parser.add_option("--shared-zlib-libpath", |
|
126 |
action="store", |
|
127 |
dest="shared_zlib_libpath", |
|
128 |
help="A directory to search for the shared zlib DLL") |
|
129 |
|
|
130 |
parser.add_option("--shared-zlib-libname", |
|
131 |
action="store", |
|
132 |
dest="shared_zlib_libname", |
|
133 |
help="Alternative lib name to link to (default: 'z')") |
|
134 |
|
|
135 |
parser.add_option("--shared-http-parser", |
|
136 |
action="store_true", |
|
137 |
dest="shared_http_parser", |
|
138 |
help="Link to a shared http_parser DLL instead of static linking") |
|
139 |
|
|
140 |
parser.add_option("--shared-http-parser-includes", |
|
141 |
action="store", |
|
142 |
dest="shared_http_parser_includes", |
|
143 |
help="Directory containing http_parser header files") |
|
144 |
|
|
145 |
parser.add_option("--shared-http-parser-libpath", |
|
146 |
action="store", |
|
147 |
dest="shared_http_parser_libpath", |
|
148 |
help="A directory to search for the shared http_parser DLL") |
|
149 |
|
|
150 |
parser.add_option("--shared-http-parser-libname", |
|
151 |
action="store", |
|
152 |
dest="shared_http_parser_libname", |
|
153 |
help="Alternative lib name to link to (default: 'http_parser')") |
|
154 |
|
|
155 |
parser.add_option("--shared-cares", |
|
156 |
action="store_true", |
|
157 |
dest="shared_cares", |
|
158 |
help="Link to a shared cares DLL instead of static linking") |
|
159 |
|
|
160 |
parser.add_option("--shared-cares-includes", |
|
161 |
action="store", |
|
162 |
dest="shared_cares_includes", |
|
163 |
help="Directory containing cares header files") |
|
164 |
|
|
165 |
parser.add_option("--shared-cares-libpath", |
|
166 |
action="store", |
|
167 |
dest="shared_cares_libpath", |
|
168 |
help="A directory to search for the shared cares DLL") |
|
169 |
|
|
170 |
parser.add_option("--shared-cares-libname", |
|
171 |
action="store", |
|
172 |
dest="shared_cares_libname", |
|
173 |
help="Alternative lib name to link to (default: 'cares')") |
|
174 |
|
|
175 |
parser.add_option("--shared-libuv", |
|
176 |
action="store_true", |
|
177 |
dest="shared_libuv", |
|
178 |
help="Link to a shared libuv DLL instead of static linking") |
|
179 |
|
|
180 |
parser.add_option("--shared-libuv-includes", |
|
181 |
action="store", |
|
182 |
dest="shared_libuv_includes", |
|
183 |
help="Directory containing libuv header files") |
|
184 |
|
|
185 |
parser.add_option("--shared-libuv-libpath", |
|
186 |
action="store", |
|
187 |
dest="shared_libuv_libpath", |
|
188 |
help="A directory to search for the shared libuv DLL") |
|
189 |
|
|
190 |
parser.add_option("--shared-libuv-libname", |
|
191 |
action="store", |
|
192 |
dest="shared_libuv_libname", |
|
193 |
help="Alternative lib name to link to (default: 'uv')") |
|
194 |
|
|
195 |
parser.add_option("--with-dtrace", |
|
196 |
action="store_true", |
|
197 |
dest="with_dtrace", |
|
198 |
help="Build with DTrace (default is true on sunos)") |
|
199 |
|
|
200 |
parser.add_option("--without-dtrace", |
|
201 |
action="store_true", |
|
202 |
dest="without_dtrace", |
|
203 |
help="Build without DTrace") |
|
204 |
|
|
205 |
parser.add_option("--with-etw", |
|
206 |
action="store_true", |
|
207 |
dest="with_etw", |
|
208 |
help="Build with ETW (default is true on Windows)") |
|
209 |
|
|
210 |
parser.add_option("--without-etw", |
|
211 |
action="store_true", |
|
212 |
dest="without_etw", |
|
213 |
help="Build without ETW") |
|
214 |
|
|
215 |
parser.add_option("--with-perfctr", |
|
216 |
action="store_true", |
|
217 |
dest="with_perfctr", |
|
218 |
help="Build with performance counters (default is true on Windows)") |
|
219 |
|
|
220 |
parser.add_option("--without-perfctr", |
|
221 |
action="store_true", |
|
222 |
dest="without_perfctr", |
|
223 |
help="Build without performance counters") |
|
224 |
|
|
225 |
# CHECKME does this still work with recent releases of V8? |
|
226 |
parser.add_option("--gdb", |
|
227 |
action="store_true", |
|
228 |
dest="gdb", |
|
229 |
help="add gdb support") |
|
230 |
|
|
231 |
parser.add_option("--dest-cpu", |
|
232 |
action="store", |
|
233 |
dest="dest_cpu", |
|
234 |
help="CPU architecture to build for. Valid values are: arm, ia32, x64") |
|
235 |
|
|
236 |
parser.add_option("--dest-os", |
|
237 |
action="store", |
|
238 |
dest="dest_os", |
|
239 |
help="Operating system to build for. Valid values are: " |
|
240 |
"win, mac, solaris, freebsd, openbsd, linux, android") |
|
241 |
|
|
242 |
parser.add_option("--no-ifaddrs", |
|
243 |
action="store_true", |
|
244 |
dest="no_ifaddrs", |
|
245 |
help="Use on deprecated SunOS systems that do not support ifaddrs.h") |
|
246 |
|
|
247 |
parser.add_option("--with-arm-float-abi", |
|
248 |
action="store", |
|
249 |
dest="arm_float_abi", |
|
250 |
help="Specifies which floating-point ABI to use. Valid values are: " |
|
251 |
"soft, softfp, hard") |
|
252 |
|
|
253 |
parser.add_option("--ninja", |
|
254 |
action="store_true", |
|
255 |
dest="use_ninja", |
|
256 |
help="Generate files for the ninja build system") |
|
257 |
|
|
258 |
parser.add_option("--xcode", |
|
259 |
action="store_true", |
|
260 |
dest="use_xcode", |
|
261 |
help="Generate build files for use with xcode") |
|
262 |
|
|
263 |
parser.add_option("--tag", |
|
264 |
action="store", |
|
265 |
dest="tag", |
|
266 |
help="Custom build tag") |
|
207 |
parser.add_option('--tag', |
|
208 |
action='store', |
|
209 |
dest='tag', |
|
210 |
help='custom build tag') |
|
211 |
|
|
212 |
parser.add_option('--with-arm-float-abi', |
|
213 |
action='store', |
|
214 |
dest='arm_float_abi', |
|
215 |
help='specifies which floating-point ABI to use. Valid values are: ' |
|
216 |
'soft, softfp, hard') |
|
217 |
|
|
218 |
parser.add_option('--with-dtrace', |
|
219 |
action='store_true', |
|
220 |
dest='with_dtrace', |
|
221 |
help='build with DTrace (default is true on sunos)') |
|
222 |
|
|
223 |
parser.add_option('--with-etw', |
|
224 |
action='store_true', |
|
225 |
dest='with_etw', |
|
226 |
help='build with ETW (default is true on Windows)') |
|
227 |
|
|
228 |
parser.add_option('--with-perfctr', |
|
229 |
action='store_true', |
|
230 |
dest='with_perfctr', |
|
231 |
help='build with performance counters (default is true on Windows)') |
|
232 |
|
|
233 |
parser.add_option('--without-dtrace', |
|
234 |
action='store_true', |
|
235 |
dest='without_dtrace', |
|
236 |
help='build without DTrace') |
|
237 |
|
|
238 |
parser.add_option('--without-etw', |
|
239 |
action='store_true', |
|
240 |
dest='without_etw', |
|
241 |
help='build without ETW') |
|
242 |
|
|
243 |
parser.add_option('--without-npm', |
|
244 |
action='store_true', |
|
245 |
dest='without_npm', |
|
246 |
help='don\'t install the bundled npm package manager') |
|
247 |
|
|
248 |
parser.add_option('--without-perfctr', |
|
249 |
action='store_true', |
|
250 |
dest='without_perfctr', |
|
251 |
help='build without performance counters') |
|
252 |
|
|
253 |
parser.add_option('--without-snapshot', |
|
254 |
action='store_true', |
|
255 |
dest='without_snapshot', |
|
256 |
help='build without snapshotting V8 libraries. You might want to set' |
|
257 |
' this for cross-compiling. [Default: False]') |
|
258 |
|
|
259 |
parser.add_option('--without-ssl', |
|
260 |
action='store_true', |
|
261 |
dest='without_ssl', |
|
262 |
help='build without SSL') |
|
263 |
|
|
264 |
parser.add_option('--xcode', |
|
265 |
action='store_true', |
|
266 |
dest='use_xcode', |
|
267 |
help='generate build files for use with xcode') |
|
267 | 268 |
|
268 | 269 |
(options, args) = parser.parse_args() |
269 | 270 |
|
Also available in: Unified diff