Parent Directory
|
Revision Log
Upgrade to SpiderMonkey from Firefox 3.5.3.
1 | #! /bin/sh |
2 | |
3 | # Guess values for system-dependent variables and create Makefiles. |
4 | # Generated automatically using autoconf version 2.13 |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. |
9 | |
10 | # Defaults: |
11 | ac_help= |
12 | ac_default_prefix=/usr/local |
13 | # Any additions from configure.in: |
14 | ac_help="$ac_help |
15 | --with-dist-dir=DIR Use DIR as 'dist' staging area. DIR may be |
16 | relative to the top of SpiderMonkey build tree, |
17 | or absolute." |
18 | ac_help="$ac_help |
19 | --disable-compile-environment |
20 | Disable compiler/library checks." |
21 | ac_help="$ac_help |
22 | --with-windows-version=WINVER |
23 | Minimum Windows version (WINVER) to support |
24 | 400: Windows 95 |
25 | 500: Windows 2000 |
26 | 501: Windows XP" |
27 | ac_help="$ac_help |
28 | --enable-macos-target=VER (default=10.4) |
29 | Set the minimum MacOS version needed at runtime" |
30 | ac_help="$ac_help |
31 | --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)" |
32 | ac_help="$ac_help |
33 | --with-x use the X Window System" |
34 | ac_help="$ac_help |
35 | --disable-os2-high-mem Disable high-memory support on OS/2" |
36 | ac_help="$ac_help |
37 | --disable-jit Disable JIT support" |
38 | ac_help="$ac_help |
39 | --enable-dtrace build with dtrace support if available (default=no)" |
40 | ac_help="$ac_help |
41 | --with-pthreads Force use of system pthread library with NSPR " |
42 | ac_help="$ac_help |
43 | --with-system-nspr Use an NSPR that is already built and installed. |
44 | Use the 'nspr-config' script in the current path, |
45 | or look for the script in the directories given with |
46 | --with-nspr-exec-prefix or --with-nspr-prefix." |
47 | ac_help="$ac_help |
48 | --with-nspr-cflags=FLAGS Pass FLAGS to CC when building code that uses NSPR. |
49 | Use this when there's no accurate nspr-config |
50 | script available. This is the case when building |
51 | SpiderMonkey as part of the Mozilla tree: the |
52 | top-level configure script computes NSPR flags |
53 | that accomodate the quirks of that environment." |
54 | ac_help="$ac_help |
55 | --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. |
56 | See --with-nspr-cflags for more details." |
57 | ac_help="$ac_help |
58 | --with-nspr-prefix=PFX Prefix where NSPR is installed" |
59 | ac_help="$ac_help |
60 | --with-nspr-exec-prefix=PFX |
61 | Exec prefix where NSPR is installed" |
62 | ac_help="$ac_help |
63 | --with-arm-kuser Use kuser helpers (Linux/ARM only -- requires kernel 2.6.13 or later)" |
64 | ac_help="$ac_help |
65 | --enable-ui-locale=ab-CD |
66 | Select the user interface locale (default: en-US)" |
67 | ac_help="$ac_help |
68 | --disable-tests Do not build test libraries & programs" |
69 | ac_help="$ac_help |
70 | --enable-js-ultrasparc Use UltraSPARC optimizations in JS" |
71 | ac_help="$ac_help |
72 | --enable-debug[=DBG] Enable building with developer debug info |
73 | (Using compiler flags DBG)" |
74 | ac_help="$ac_help |
75 | --disable-optimize Disable compiler optimization |
76 | --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]" |
77 | ac_help="$ac_help |
78 | --enable-debug-modules Enable/disable debug info for specific modules" |
79 | ac_help="$ac_help |
80 | --enable-debugger-info-modules |
81 | Enable/disable debugger info for specific modules" |
82 | ac_help="$ac_help |
83 | --enable-boehm Enable the Boehm Garbage Collector" |
84 | ac_help="$ac_help |
85 | --enable-narcissus Build with Narcissus code enabled" |
86 | ac_help="$ac_help |
87 | --enable-trace-malloc Enable malloc tracing" |
88 | ac_help="$ac_help |
89 | --enable-jemalloc Replace memory allocator with jemalloc" |
90 | ac_help="$ac_help |
91 | --enable-wrap-malloc Wrap malloc calls (gnu linker only)" |
92 | ac_help="$ac_help |
93 | --with-wrap-malloc=DIR Location of malloc wrapper library" |
94 | ac_help="$ac_help |
95 | --enable-valgrind Enable Valgrind integration hooks (default=no)" |
96 | ac_help="$ac_help |
97 | --enable-efence Link with Electric Fence" |
98 | ac_help="$ac_help |
99 | --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof)" |
100 | ac_help="$ac_help |
101 | --enable-shark Enable shark remote profiling (needs CHUD framework)" |
102 | ac_help="$ac_help |
103 | --enable-callgrind Enable callgrind profiling" |
104 | ac_help="$ac_help |
105 | --enable-vtune Enable vtune profiling" |
106 | ac_help="$ac_help |
107 | --with-static-checking=path/to/gcc_dehydra.so |
108 | Enable static checking of code using GCC-dehydra" |
109 | ac_help="$ac_help |
110 | --enable-strip Enable stripping of libs & executables " |
111 | ac_help="$ac_help |
112 | --enable-install-strip Enable stripping of libs & executables when packaging " |
113 | ac_help="$ac_help |
114 | --enable-old-abi-compat-wrappers |
115 | Support old GCC ABI symbols to ease the pain |
116 | of the linux compiler change" |
117 | ac_help="$ac_help |
118 | --enable-timeline Enable timeline services " |
119 | ac_help="$ac_help |
120 | --enable-eazel-profiler-support |
121 | Enable Corel/Eazel profiler support" |
122 | ac_help="$ac_help |
123 | --enable-profile-modules |
124 | Enable/disable profiling for specific modules" |
125 | ac_help="$ac_help |
126 | --enable-insure Enable insure++ instrumentation (linux only)" |
127 | ac_help="$ac_help |
128 | --with-insure-dirs=DIRS |
129 | Dirs to instrument with insure " |
130 | ac_help="$ac_help |
131 | --with-insure-exclude-dirs=DIRS |
132 | Dirs to not instrument with insure " |
133 | ac_help="$ac_help |
134 | --enable-quantify Enable Quantify support (Windows only) " |
135 | ac_help="$ac_help |
136 | --enable-xterm-updates Update XTERM titles with current command." |
137 | ac_help="$ac_help |
138 | --enable-long-long-warning |
139 | Warn about use of non-ANSI long long type" |
140 | ac_help="$ac_help |
141 | --disable-profile-guided-optimization |
142 | Don't build with PGO even if called via make profiledbuild" |
143 | ac_help="$ac_help |
144 | --disable-pedantic Issue all warnings demanded by strict ANSI C " |
145 | ac_help="$ac_help |
146 | --enable-cpp-rtti Enable C++ RTTI " |
147 | ac_help="$ac_help |
148 | --enable-cpp-exceptions Enable C++ exceptions " |
149 | ac_help="$ac_help |
150 | --disable-auto-deps Do not automatically generate dependency info" |
151 | ac_help="$ac_help |
152 | --disable-md Do not use compiler-based dependencies " |
153 | ac_help="$ac_help |
154 | --enable-static Enable building of internal static libs" |
155 | ac_help="$ac_help |
156 | --enable-js-static-build Force js to be a static lib" |
157 | ac_help="$ac_help |
158 | --with-sync-build-files=DIR |
159 | Check that files in 'config' and 'build' match |
160 | their originals in 'DIR/config' and 'DIR/build'. |
161 | This helps keep the SpiderMonkey build machinery |
162 | in sync with Mozilla's, on which it is based." |
163 | ac_help="$ac_help |
164 | --enable-threadsafe Enable support for multiple threads." |
165 | |
166 | # Initialize some variables set by options. |
167 | # The variables have the same names as the options, with |
168 | # dashes changed to underlines. |
169 | build=NONE |
170 | cache_file=./config.cache |
171 | exec_prefix=NONE |
172 | host=NONE |
173 | no_create= |
174 | nonopt=NONE |
175 | no_recursion= |
176 | prefix=NONE |
177 | program_prefix=NONE |
178 | program_suffix=NONE |
179 | program_transform_name=s,x,x, |
180 | silent= |
181 | site= |
182 | srcdir= |
183 | target=NONE |
184 | verbose= |
185 | x_includes=NONE |
186 | x_libraries=NONE |
187 | bindir='${exec_prefix}/bin' |
188 | sbindir='${exec_prefix}/sbin' |
189 | libexecdir='${exec_prefix}/libexec' |
190 | datadir='${prefix}/share' |
191 | sysconfdir='${prefix}/etc' |
192 | sharedstatedir='${prefix}/com' |
193 | localstatedir='${prefix}/var' |
194 | libdir='${exec_prefix}/lib' |
195 | includedir='${prefix}/include' |
196 | oldincludedir='/usr/include' |
197 | infodir='${prefix}/info' |
198 | mandir='${prefix}/man' |
199 | |
200 | # Initialize some other variables. |
201 | subdirs= |
202 | MFLAGS= MAKEFLAGS= |
203 | SHELL=${CONFIG_SHELL-/bin/sh} |
204 | # Maximum number of lines to put in a shell here document. |
205 | ac_max_here_lines=12 |
206 | |
207 | ac_prev= |
208 | for ac_option |
209 | do |
210 | |
211 | # If the previous option needs an argument, assign it. |
212 | if test -n "$ac_prev"; then |
213 | eval "$ac_prev=\$ac_option" |
214 | ac_prev= |
215 | continue |
216 | fi |
217 | |
218 | case "$ac_option" in |
219 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
220 | *) ac_optarg= ;; |
221 | esac |
222 | |
223 | # Accept the important Cygnus configure options, so we can diagnose typos. |
224 | |
225 | case "$ac_option" in |
226 | |
227 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
228 | ac_prev=bindir ;; |
229 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
230 | bindir="$ac_optarg" ;; |
231 | |
232 | -build | --build | --buil | --bui | --bu) |
233 | ac_prev=build ;; |
234 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
235 | build="$ac_optarg" ;; |
236 | |
237 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
238 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
239 | ac_prev=cache_file ;; |
240 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
241 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
242 | cache_file="$ac_optarg" ;; |
243 | |
244 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
245 | ac_prev=datadir ;; |
246 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
247 | | --da=*) |
248 | datadir="$ac_optarg" ;; |
249 | |
250 | -disable-* | --disable-*) |
251 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
252 | # Reject names that are not valid shell variable names. |
253 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
254 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
255 | fi |
256 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
257 | eval "enable_${ac_feature}=no" ;; |
258 | |
259 | -enable-* | --enable-*) |
260 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
261 | # Reject names that are not valid shell variable names. |
262 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
263 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
264 | fi |
265 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
266 | case "$ac_option" in |
267 | *=*) ;; |
268 | *) ac_optarg=yes ;; |
269 | esac |
270 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
271 | |
272 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
273 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
274 | | --exec | --exe | --ex) |
275 | ac_prev=exec_prefix ;; |
276 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
277 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
278 | | --exec=* | --exe=* | --ex=*) |
279 | exec_prefix="$ac_optarg" ;; |
280 | |
281 | -gas | --gas | --ga | --g) |
282 | # Obsolete; use --with-gas. |
283 | with_gas=yes ;; |
284 | |
285 | -help | --help | --hel | --he) |
286 | # Omit some internal or obsolete options to make the list less imposing. |
287 | # This message is too long to be a string in the A/UX 3.1 sh. |
288 | cat << EOF |
289 | Usage: configure [options] [host] |
290 | Options: [defaults in brackets after descriptions] |
291 | Configuration: |
292 | --cache-file=FILE cache test results in FILE |
293 | --help print this message |
294 | --no-create do not create output files |
295 | --quiet, --silent do not print \`checking...' messages |
296 | --version print the version of autoconf that created configure |
297 | Directory and file names: |
298 | --prefix=PREFIX install architecture-independent files in PREFIX |
299 | [$ac_default_prefix] |
300 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
301 | [same as prefix] |
302 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
303 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
304 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
305 | --datadir=DIR read-only architecture-independent data in DIR |
306 | [PREFIX/share] |
307 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
308 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
309 | [PREFIX/com] |
310 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
311 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
312 | --includedir=DIR C header files in DIR [PREFIX/include] |
313 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
314 | --infodir=DIR info documentation in DIR [PREFIX/info] |
315 | --mandir=DIR man documentation in DIR [PREFIX/man] |
316 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
317 | --program-prefix=PREFIX prepend PREFIX to installed program names |
318 | --program-suffix=SUFFIX append SUFFIX to installed program names |
319 | --program-transform-name=PROGRAM |
320 | run sed PROGRAM on installed program names |
321 | EOF |
322 | cat << EOF |
323 | Host type: |
324 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
325 | --host=HOST configure for HOST [guessed] |
326 | --target=TARGET configure for TARGET [TARGET=HOST] |
327 | Features and packages: |
328 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
329 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
330 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
331 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
332 | --x-includes=DIR X include files are in DIR |
333 | --x-libraries=DIR X library files are in DIR |
334 | EOF |
335 | if test -n "$ac_help"; then |
336 | echo "--enable and --with options recognized:$ac_help" |
337 | fi |
338 | exit 0 ;; |
339 | |
340 | -host | --host | --hos | --ho) |
341 | ac_prev=host ;; |
342 | -host=* | --host=* | --hos=* | --ho=*) |
343 | host="$ac_optarg" ;; |
344 | |
345 | -includedir | --includedir | --includedi | --included | --include \ |
346 | | --includ | --inclu | --incl | --inc) |
347 | ac_prev=includedir ;; |
348 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
349 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
350 | includedir="$ac_optarg" ;; |
351 | |
352 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
353 | ac_prev=infodir ;; |
354 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
355 | infodir="$ac_optarg" ;; |
356 | |
357 | -libdir | --libdir | --libdi | --libd) |
358 | ac_prev=libdir ;; |
359 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
360 | libdir="$ac_optarg" ;; |
361 | |
362 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
363 | | --libexe | --libex | --libe) |
364 | ac_prev=libexecdir ;; |
365 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
366 | | --libexe=* | --libex=* | --libe=*) |
367 | libexecdir="$ac_optarg" ;; |
368 | |
369 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
370 | | --localstate | --localstat | --localsta | --localst \ |
371 | | --locals | --local | --loca | --loc | --lo) |
372 | ac_prev=localstatedir ;; |
373 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
374 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
375 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
376 | localstatedir="$ac_optarg" ;; |
377 | |
378 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
379 | ac_prev=mandir ;; |
380 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
381 | mandir="$ac_optarg" ;; |
382 | |
383 | -nfp | --nfp | --nf) |
384 | # Obsolete; use --without-fp. |
385 | with_fp=no ;; |
386 | |
387 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
388 | | --no-cr | --no-c) |
389 | no_create=yes ;; |
390 | |
391 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
392 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
393 | no_recursion=yes ;; |
394 | |
395 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
396 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
397 | | --oldin | --oldi | --old | --ol | --o) |
398 | ac_prev=oldincludedir ;; |
399 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
400 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
401 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
402 | oldincludedir="$ac_optarg" ;; |
403 | |
404 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
405 | ac_prev=prefix ;; |
406 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
407 | prefix="$ac_optarg" ;; |
408 | |
409 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
410 | | --program-pre | --program-pr | --program-p) |
411 | ac_prev=program_prefix ;; |
412 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
413 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
414 | program_prefix="$ac_optarg" ;; |
415 | |
416 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
417 | | --program-suf | --program-su | --program-s) |
418 | ac_prev=program_suffix ;; |
419 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
420 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
421 | program_suffix="$ac_optarg" ;; |
422 | |
423 | -program-transform-name | --program-transform-name \ |
424 | | --program-transform-nam | --program-transform-na \ |
425 | | --program-transform-n | --program-transform- \ |
426 | | --program-transform | --program-transfor \ |
427 | | --program-transfo | --program-transf \ |
428 | | --program-trans | --program-tran \ |
429 | | --progr-tra | --program-tr | --program-t) |
430 | ac_prev=program_transform_name ;; |
431 | -program-transform-name=* | --program-transform-name=* \ |
432 | | --program-transform-nam=* | --program-transform-na=* \ |
433 | | --program-transform-n=* | --program-transform-=* \ |
434 | | --program-transform=* | --program-transfor=* \ |
435 | | --program-transfo=* | --program-transf=* \ |
436 | | --program-trans=* | --program-tran=* \ |
437 | | --progr-tra=* | --program-tr=* | --program-t=*) |
438 | program_transform_name="$ac_optarg" ;; |
439 | |
440 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
441 | | -silent | --silent | --silen | --sile | --sil) |
442 | silent=yes ;; |
443 | |
444 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
445 | ac_prev=sbindir ;; |
446 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
447 | | --sbi=* | --sb=*) |
448 | sbindir="$ac_optarg" ;; |
449 | |
450 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
451 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
452 | | --sharedst | --shareds | --shared | --share | --shar \ |
453 | | --sha | --sh) |
454 | ac_prev=sharedstatedir ;; |
455 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
456 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
457 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
458 | | --sha=* | --sh=*) |
459 | sharedstatedir="$ac_optarg" ;; |
460 | |
461 | -site | --site | --sit) |
462 | ac_prev=site ;; |
463 | -site=* | --site=* | --sit=*) |
464 | site="$ac_optarg" ;; |
465 | |
466 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
467 | ac_prev=srcdir ;; |
468 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
469 | srcdir="$ac_optarg" ;; |
470 | |
471 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
472 | | --syscon | --sysco | --sysc | --sys | --sy) |
473 | ac_prev=sysconfdir ;; |
474 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
475 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
476 | sysconfdir="$ac_optarg" ;; |
477 | |
478 | -target | --target | --targe | --targ | --tar | --ta | --t) |
479 | ac_prev=target ;; |
480 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
481 | target="$ac_optarg" ;; |
482 | |
483 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
484 | verbose=yes ;; |
485 | |
486 | -version | --version | --versio | --versi | --vers) |
487 | echo "configure generated by autoconf version 2.13" |
488 | exit 0 ;; |
489 | |
490 | -with-* | --with-*) |
491 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
492 | # Reject names that are not valid shell variable names. |
493 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
494 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
495 | fi |
496 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
497 | case "$ac_option" in |
498 | *=*) ;; |
499 | *) ac_optarg=yes ;; |
500 | esac |
501 | eval "with_${ac_package}='$ac_optarg'" ;; |
502 | |
503 | -without-* | --without-*) |
504 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
505 | # Reject names that are not valid shell variable names. |
506 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
507 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
508 | fi |
509 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
510 | eval "with_${ac_package}=no" ;; |
511 | |
512 | --x) |
513 | # Obsolete; use --with-x. |
514 | with_x=yes ;; |
515 | |
516 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
517 | | --x-incl | --x-inc | --x-in | --x-i) |
518 | ac_prev=x_includes ;; |
519 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
520 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
521 | x_includes="$ac_optarg" ;; |
522 | |
523 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
524 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
525 | ac_prev=x_libraries ;; |
526 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
527 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
528 | x_libraries="$ac_optarg" ;; |
529 | |
530 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
531 | ;; |
532 | |
533 | *) |
534 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
535 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
536 | fi |
537 | if test "x$nonopt" != xNONE; then |
538 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
539 | fi |
540 | nonopt="$ac_option" |
541 | ;; |
542 | |
543 | esac |
544 | done |
545 | |
546 | if test -n "$ac_prev"; then |
547 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
548 | fi |
549 | |
550 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
551 | |
552 | # File descriptor usage: |
553 | # 0 standard input |
554 | # 1 file creation |
555 | # 2 errors and warnings |
556 | # 3 some systems may open it to /dev/tty |
557 | # 4 used on the Kubota Titan |
558 | # 6 checking for... messages and results |
559 | # 5 compiler messages saved in config.log |
560 | if test "$silent" = yes; then |
561 | exec 6>/dev/null |
562 | else |
563 | exec 6>&1 |
564 | fi |
565 | exec 5>./config.log |
566 | |
567 | echo "\ |
568 | This file contains any messages produced by compilers while |
569 | running configure, to aid debugging if configure makes a mistake. |
570 | " 1>&5 |
571 | |
572 | # Strip out --no-create and --no-recursion so they do not pile up. |
573 | # Also quote any args containing shell metacharacters. |
574 | ac_configure_args= |
575 | for ac_arg |
576 | do |
577 | case "$ac_arg" in |
578 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
579 | | --no-cr | --no-c) ;; |
580 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
581 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
582 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
583 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
584 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
585 | esac |
586 | done |
587 | |
588 | # NLS nuisances. |
589 | # Only set these to C if already set. These must not be set unconditionally |
590 | # because not all systems understand e.g. LANG=C (notably SCO). |
591 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
592 | # Non-C LC_CTYPE values break the ctype check. |
593 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
594 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
595 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
596 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
597 | |
598 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
599 | rm -rf conftest* confdefs.h |
600 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
601 | echo > confdefs.h |
602 | |
603 | # A filename unique to this package, relative to the directory that |
604 | # configure is in, which we can look for to find out if srcdir is correct. |
605 | ac_unique_file=jsapi.h |
606 | |
607 | # Find the source files, if location was not specified. |
608 | if test -z "$srcdir"; then |
609 | ac_srcdir_defaulted=yes |
610 | # Try the directory containing this script, then its parent. |
611 | ac_prog=$0 |
612 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
613 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
614 | srcdir=$ac_confdir |
615 | if test ! -r $srcdir/$ac_unique_file; then |
616 | srcdir=.. |
617 | fi |
618 | else |
619 | ac_srcdir_defaulted=no |
620 | fi |
621 | if test ! -r $srcdir/$ac_unique_file; then |
622 | if test "$ac_srcdir_defaulted" = yes; then |
623 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
624 | else |
625 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
626 | fi |
627 | fi |
628 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
629 | |
630 | # Prefer explicitly selected file to automatically selected ones. |
631 | if test -z "$CONFIG_SITE"; then |
632 | if test "x$prefix" != xNONE; then |
633 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
634 | else |
635 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
636 | fi |
637 | fi |
638 | for ac_site_file in $CONFIG_SITE; do |
639 | if test -r "$ac_site_file"; then |
640 | echo "loading site script $ac_site_file" |
641 | . "$ac_site_file" |
642 | fi |
643 | done |
644 | |
645 | if test -r "$cache_file"; then |
646 | echo "loading cache $cache_file" |
647 | . $cache_file |
648 | else |
649 | echo "creating cache $cache_file" |
650 | > $cache_file |
651 | fi |
652 | |
653 | ac_ext=c |
654 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
655 | ac_cpp='$CPP $CPPFLAGS' |
656 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
657 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
658 | cross_compiling=$ac_cv_prog_cc_cross |
659 | |
660 | ac_exeext= |
661 | ac_objext=o |
662 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
663 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
664 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
665 | ac_n= ac_c=' |
666 | ' ac_t=' ' |
667 | else |
668 | ac_n=-n ac_c= ac_t= |
669 | fi |
670 | else |
671 | ac_n= ac_c='\c' ac_t= |
672 | fi |
673 | |
674 | |
675 | ac_aux_dir= |
676 | for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do |
677 | if test -f $ac_dir/install-sh; then |
678 | ac_aux_dir=$ac_dir |
679 | ac_install_sh="$ac_aux_dir/install-sh -c" |
680 | break |
681 | elif test -f $ac_dir/install.sh; then |
682 | ac_aux_dir=$ac_dir |
683 | ac_install_sh="$ac_aux_dir/install.sh -c" |
684 | break |
685 | fi |
686 | done |
687 | if test -z "$ac_aux_dir"; then |
688 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; } |
689 | fi |
690 | ac_config_guess=$ac_aux_dir/config.guess |
691 | ac_config_sub=$ac_aux_dir/config.sub |
692 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
693 | |
694 | |
695 | |
696 | # Do some error checking and defaulting for the host and target type. |
697 | # The inputs are: |
698 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
699 | # |
700 | # The rules are: |
701 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
702 | # same time. |
703 | # 2. Host defaults to nonopt. |
704 | # 3. If nonopt is not specified, then host defaults to the current host, |
705 | # as determined by config.guess. |
706 | # 4. Target and build default to nonopt. |
707 | # 5. If nonopt is not specified, then target and build default to host. |
708 | |
709 | # The aliases save the names the user supplied, while $host etc. |
710 | # will get canonicalized. |
711 | case $host---$target---$nonopt in |
712 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
713 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
714 | esac |
715 | |
716 | |
717 | # Make sure we can run config.sub. |
718 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
719 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
720 | fi |
721 | |
722 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
723 | echo "configure:724: checking host system type" >&5 |
724 | |
725 | host_alias=$host |
726 | case "$host_alias" in |
727 | NONE) |
728 | case $nonopt in |
729 | NONE) |
730 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
731 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
732 | fi ;; |
733 | *) host_alias=$nonopt ;; |
734 | esac ;; |
735 | esac |
736 | |
737 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
738 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
739 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
740 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
741 | echo "$ac_t""$host" 1>&6 |
742 | |
743 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
744 | echo "configure:745: checking target system type" >&5 |
745 | |
746 | target_alias=$target |
747 | case "$target_alias" in |
748 | NONE) |
749 | case $nonopt in |
750 | NONE) target_alias=$host_alias ;; |
751 | *) target_alias=$nonopt ;; |
752 | esac ;; |
753 | esac |
754 | |
755 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
756 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
757 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
758 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
759 | echo "$ac_t""$target" 1>&6 |
760 | |
761 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
762 | echo "configure:763: checking build system type" >&5 |
763 | |
764 | build_alias=$build |
765 | case "$build_alias" in |
766 | NONE) |
767 | case $nonopt in |
768 | NONE) build_alias=$host_alias ;; |
769 | *) build_alias=$nonopt ;; |
770 | esac ;; |
771 | esac |
772 | |
773 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
774 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
775 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
776 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
777 | echo "$ac_t""$build" 1>&6 |
778 | |
779 | test "$host_alias" != "$target_alias" && |
780 | test "$program_prefix$program_suffix$program_transform_name" = \ |
781 | NONENONEs,x,x, && |
782 | program_prefix=${target_alias}- |
783 | |
784 | TARGET_CPU="${target_cpu}" |
785 | TARGET_VENDOR="${target_vendor}" |
786 | TARGET_OS="${target_os}" |
787 | |
788 | CFLAGS="${CFLAGS=}" |
789 | CPPFLAGS="${CPPFLAGS=}" |
790 | CXXFLAGS="${CXXFLAGS=}" |
791 | LDFLAGS="${LDFLAGS=}" |
792 | HOST_CFLAGS="${HOST_CFLAGS=}" |
793 | HOST_CXXFLAGS="${HOST_CXXFLAGS=}" |
794 | HOST_LDFLAGS="${HOST_LDFLAGS=}" |
795 | |
796 | _SUBDIR_CC="$CC" |
797 | _SUBDIR_CXX="$CXX" |
798 | _SUBDIR_CFLAGS="$CFLAGS" |
799 | _SUBDIR_CPPFLAGS="$CPPFLAGS" |
800 | _SUBDIR_CXXFLAGS="$CXXFLAGS" |
801 | _SUBDIR_LDFLAGS="$LDFLAGS" |
802 | _SUBDIR_HOST_CC="$HOST_CC" |
803 | _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS" |
804 | _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS" |
805 | _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" |
806 | _SUBDIR_CONFIG_ARGS="$ac_configure_args" |
807 | |
808 | NSPR_VERSION=4 |
809 | |
810 | PERL_VERSION=5.006 |
811 | MAKE_VERSION=3.78 |
812 | WINDRES_VERSION=2.14.90 |
813 | W32API_VERSION=3.8 |
814 | |
815 | MSMANIFEST_TOOL= |
816 | |
817 | MISSING_X= |
818 | for ac_prog in gawk mawk nawk awk |
819 | do |
820 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
821 | set dummy $ac_prog; ac_word=$2 |
822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
823 | echo "configure:824: checking for $ac_word" >&5 |
824 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
825 | echo $ac_n "(cached) $ac_c" 1>&6 |
826 | else |
827 | if test -n "$AWK"; then |
828 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
829 | else |
830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
831 | ac_dummy="$PATH" |
832 | for ac_dir in $ac_dummy; do |
833 | test -z "$ac_dir" && ac_dir=. |
834 | if test -f $ac_dir/$ac_word; then |
835 | ac_cv_prog_AWK="$ac_prog" |
836 | break |
837 | fi |
838 | done |
839 | IFS="$ac_save_ifs" |
840 | fi |
841 | fi |
842 | AWK="$ac_cv_prog_AWK" |
843 | if test -n "$AWK"; then |
844 | echo "$ac_t""$AWK" 1>&6 |
845 | else |
846 | echo "$ac_t""no" 1>&6 |
847 | fi |
848 | |
849 | test -n "$AWK" && break |
850 | done |
851 | |
852 | |
853 | USE_PTHREADS= |
854 | _PTHREAD_LDFLAGS="" |
855 | |
856 | _topsrcdir=`cd \`dirname $0\`; pwd` |
857 | _objdir=`pwd` |
858 | |
859 | if test "$_topsrcdir" != "$_objdir" |
860 | then |
861 | # Check for a couple representative files in the source tree |
862 | _conflict_files= |
863 | for file in $_topsrcdir/Makefile $_topsrcdir/config/autoconf.mk; do |
864 | if test -f $file; then |
865 | _conflict_files="$_conflict_files $file" |
866 | fi |
867 | done |
868 | if test "$_conflict_files"; then |
869 | echo "***" |
870 | echo "* Your source tree contains these files:" |
871 | for file in $_conflict_files; do |
872 | echo "* $file" |
873 | done |
874 | cat 1>&2 <<-EOF |
875 | * This indicates that you previously built in the source tree. |
876 | * A source tree build can confuse the separate objdir build. |
877 | * |
878 | * To clean up the source tree: |
879 | * 1. cd $_topsrcdir |
880 | * 2. gmake distclean |
881 | *** |
882 | EOF |
883 | exit 1 |
884 | break |
885 | fi |
886 | fi |
887 | MOZ_BUILD_ROOT=`pwd` |
888 | |
889 | |
890 | # Check whether --with-dist-dir or --without-dist-dir was given. |
891 | if test "${with_dist_dir+set}" = set; then |
892 | withval="$with_dist_dir" |
893 | TOP_DIST=$withval |
894 | else |
895 | TOP_DIST=dist |
896 | fi |
897 | |
898 | |
899 | |
900 | if test -z "$CROSS_COMPILE"; then |
901 | case "$target" in |
902 | *-cygwin*|*-mingw*|*-msvc*|*-mks*) |
903 | MAKE_VERSION=3.79 |
904 | if test -z "$CC"; then CC=cl; fi |
905 | if test -z "$CXX"; then CXX=cl; fi |
906 | if test -z "$CPP"; then CPP="cl -E -nologo"; fi |
907 | if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi |
908 | if test -z "$LD"; then LD=link; fi |
909 | if test -z "$AS"; then AS=ml; fi |
910 | ;; |
911 | esac |
912 | fi |
913 | |
914 | COMPILE_ENVIRONMENT=1 |
915 | # Check whether --enable-compile-environment or --disable-compile-environment was given. |
916 | if test "${enable_compile_environment+set}" = set; then |
917 | enableval="$enable_compile_environment" |
918 | if test "$enableval" = "yes"; then |
919 | COMPILE_ENVIRONMENT=1 |
920 | elif test "$enableval" = "no"; then |
921 | COMPILE_ENVIRONMENT= |
922 | else |
923 | { echo "configure: error: Option, compile-environment, does not take an argument ($enableval)." 1>&2; exit 1; } |
924 | fi |
925 | fi |
926 | |
927 | |
928 | |
929 | if test "$COMPILE_ENVIRONMENT"; then |
930 | |
931 | if test "$target" != "$host"; then |
932 | echo "cross compiling from $host to $target" |
933 | |
934 | _SAVE_CC="$CC" |
935 | _SAVE_CFLAGS="$CFLAGS" |
936 | _SAVE_LDFLAGS="$LDFLAGS" |
937 | |
938 | echo $ac_n "checking for host c compiler""... $ac_c" 1>&6 |
939 | echo "configure:940: checking for host c compiler" >&5 |
940 | for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc |
941 | do |
942 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
943 | set dummy $ac_prog; ac_word=$2 |
944 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
945 | echo "configure:946: checking for $ac_word" >&5 |
946 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then |
947 | echo $ac_n "(cached) $ac_c" 1>&6 |
948 | else |
949 | if test -n "$HOST_CC"; then |
950 | ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. |
951 | else |
952 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
953 | ac_dummy="$PATH" |
954 | for ac_dir in $ac_dummy; do |
955 | test -z "$ac_dir" && ac_dir=. |
956 | if test -f $ac_dir/$ac_word; then |
957 | ac_cv_prog_HOST_CC="$ac_prog" |
958 | break |
959 | fi |
960 | done |
961 | IFS="$ac_save_ifs" |
962 | fi |
963 | fi |
964 | HOST_CC="$ac_cv_prog_HOST_CC" |
965 | if test -n "$HOST_CC"; then |
966 | echo "$ac_t""$HOST_CC" 1>&6 |
967 | else |
968 | echo "$ac_t""no" 1>&6 |
969 | fi |
970 | |
971 | test -n "$HOST_CC" && break |
972 | done |
973 | test -n "$HOST_CC" || HOST_CC="""" |
974 | |
975 | if test -z "$HOST_CC"; then |
976 | { echo "configure: error: no acceptable c compiler found in \$PATH" 1>&2; exit 1; } |
977 | fi |
978 | echo "$ac_t""$HOST_CC" 1>&6 |
979 | echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6 |
980 | echo "configure:981: checking for host c++ compiler" >&5 |
981 | for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc |
982 | do |
983 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
984 | set dummy $ac_prog; ac_word=$2 |
985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
986 | echo "configure:987: checking for $ac_word" >&5 |
987 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then |
988 | echo $ac_n "(cached) $ac_c" 1>&6 |
989 | else |
990 | if test -n "$HOST_CXX"; then |
991 | ac_cv_prog_HOST_CXX="$HOST_CXX" # Let the user override the test. |
992 | else |
993 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
994 | ac_dummy="$PATH" |
995 | for ac_dir in $ac_dummy; do |
996 | test -z "$ac_dir" && ac_dir=. |
997 | if test -f $ac_dir/$ac_word; then |
998 | ac_cv_prog_HOST_CXX="$ac_prog" |
999 | break |
1000 | fi |
1001 | done |
1002 | IFS="$ac_save_ifs" |
1003 | fi |
1004 | fi |
1005 | HOST_CXX="$ac_cv_prog_HOST_CXX" |
1006 | if test -n "$HOST_CXX"; then |
1007 | echo "$ac_t""$HOST_CXX" 1>&6 |
1008 | else |
1009 | echo "$ac_t""no" 1>&6 |
1010 | fi |
1011 | |
1012 | test -n "$HOST_CXX" && break |
1013 | done |
1014 | test -n "$HOST_CXX" || HOST_CXX="""" |
1015 | |
1016 | if test -z "$HOST_CXX"; then |
1017 | { echo "configure: error: no acceptable c++ compiler found in \$PATH" 1>&2; exit 1; } |
1018 | fi |
1019 | echo "$ac_t""$HOST_CXX" 1>&6 |
1020 | |
1021 | if test -z "$HOST_CFLAGS"; then |
1022 | HOST_CFLAGS="$CFLAGS" |
1023 | fi |
1024 | if test -z "$HOST_CXXFLAGS"; then |
1025 | HOST_CXXFLAGS="$CXXFLAGS" |
1026 | fi |
1027 | if test -z "$HOST_LDFLAGS"; then |
1028 | HOST_LDFLAGS="$LDFLAGS" |
1029 | fi |
1030 | for ac_prog in $HOST_RANLIB ranlib |
1031 | do |
1032 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1033 | set dummy $ac_prog; ac_word=$2 |
1034 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1035 | echo "configure:1036: checking for $ac_word" >&5 |
1036 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then |
1037 | echo $ac_n "(cached) $ac_c" 1>&6 |
1038 | else |
1039 | if test -n "$HOST_RANLIB"; then |
1040 | ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test. |
1041 | else |
1042 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1043 | ac_dummy=":" |
1044 | for ac_dir in $ac_dummy; do |
1045 | test -z "$ac_dir" && ac_dir=. |
1046 | if test -f $ac_dir/$ac_word; then |
1047 | ac_cv_prog_HOST_RANLIB="$ac_prog" |
1048 | break |
1049 | fi |
1050 | done |
1051 | IFS="$ac_save_ifs" |
1052 | fi |
1053 | fi |
1054 | HOST_RANLIB="$ac_cv_prog_HOST_RANLIB" |
1055 | if test -n "$HOST_RANLIB"; then |
1056 | echo "$ac_t""$HOST_RANLIB" 1>&6 |
1057 | else |
1058 | echo "$ac_t""no" 1>&6 |
1059 | fi |
1060 | |
1061 | test -n "$HOST_RANLIB" && break |
1062 | done |
1063 | test -n "$HOST_RANLIB" || HOST_RANLIB="ranlib" |
1064 | |
1065 | for ac_prog in $HOST_AR ar |
1066 | do |
1067 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1068 | set dummy $ac_prog; ac_word=$2 |
1069 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1070 | echo "configure:1071: checking for $ac_word" >&5 |
1071 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then |
1072 | echo $ac_n "(cached) $ac_c" 1>&6 |
1073 | else |
1074 | if test -n "$HOST_AR"; then |
1075 | ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test. |
1076 | else |
1077 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1078 | ac_dummy=":" |
1079 | for ac_dir in $ac_dummy; do |
1080 | test -z "$ac_dir" && ac_dir=. |
1081 | if test -f $ac_dir/$ac_word; then |
1082 | ac_cv_prog_HOST_AR="$ac_prog" |
1083 | break |
1084 | fi |
1085 | done |
1086 | IFS="$ac_save_ifs" |
1087 | fi |
1088 | fi |
1089 | HOST_AR="$ac_cv_prog_HOST_AR" |
1090 | if test -n "$HOST_AR"; then |
1091 | echo "$ac_t""$HOST_AR" 1>&6 |
1092 | else |
1093 | echo "$ac_t""no" 1>&6 |
1094 | fi |
1095 | |
1096 | test -n "$HOST_AR" && break |
1097 | done |
1098 | test -n "$HOST_AR" || HOST_AR="ar" |
1099 | |
1100 | CC="$HOST_CC" |
1101 | CFLAGS="$HOST_CFLAGS" |
1102 | LDFLAGS="$HOST_LDFLAGS" |
1103 | |
1104 | echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6 |
1105 | echo "configure:1106: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 |
1106 | cat > conftest.$ac_ext <<EOF |
1107 | #line 1108 "configure" |
1108 | #include "confdefs.h" |
1109 | |
1110 | int main() { |
1111 | return(0); |
1112 | ; return 0; } |
1113 | EOF |
1114 | if { (eval echo configure:1115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1115 | rm -rf conftest* |
1116 | ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6 |
1117 | else |
1118 | echo "configure: failed program was:" >&5 |
1119 | cat conftest.$ac_ext >&5 |
1120 | rm -rf conftest* |
1121 | { echo "configure: error: installation or configuration problem: host compiler $HOST_CC cannot create executables." 1>&2; exit 1; } |
1122 | fi |
1123 | rm -f conftest* |
1124 | |
1125 | CC="$HOST_CXX" |
1126 | CFLAGS="$HOST_CXXFLAGS" |
1127 | |
1128 | echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6 |
1129 | echo "configure:1130: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5 |
1130 | cat > conftest.$ac_ext <<EOF |
1131 | #line 1132 "configure" |
1132 | #include "confdefs.h" |
1133 | |
1134 | int main() { |
1135 | return(0); |
1136 | ; return 0; } |
1137 | EOF |
1138 | if { (eval echo configure:1139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1139 | rm -rf conftest* |
1140 | ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6 |
1141 | else |
1142 | echo "configure: failed program was:" >&5 |
1143 | cat conftest.$ac_ext >&5 |
1144 | rm -rf conftest* |
1145 | { echo "configure: error: installation or configuration problem: host compiler $HOST_CXX cannot create executables." 1>&2; exit 1; } |
1146 | fi |
1147 | rm -f conftest* |
1148 | |
1149 | CC=$_SAVE_CC |
1150 | CFLAGS=$_SAVE_CFLAGS |
1151 | LDFLAGS=$_SAVE_LDFLAGS |
1152 | |
1153 | case "$build:$target" in |
1154 | powerpc-apple-darwin8*:i?86-apple-darwin*) |
1155 | _SAVE_CFLAGS=$CFLAGS |
1156 | _SAVE_CXXFLAGS=$CXXLAGS |
1157 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" |
1158 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" |
1159 | ;; |
1160 | esac |
1161 | |
1162 | for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" |
1163 | do |
1164 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1165 | set dummy $ac_prog; ac_word=$2 |
1166 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1167 | echo "configure:1168: checking for $ac_word" >&5 |
1168 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1169 | echo $ac_n "(cached) $ac_c" 1>&6 |
1170 | else |
1171 | if test -n "$CC"; then |
1172 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1173 | else |
1174 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1175 | ac_dummy="$PATH" |
1176 | for ac_dir in $ac_dummy; do |
1177 | test -z "$ac_dir" && ac_dir=. |
1178 | if test -f $ac_dir/$ac_word; then |
1179 | ac_cv_prog_CC="$ac_prog" |
1180 | break |
1181 | fi |
1182 | done |
1183 | IFS="$ac_save_ifs" |
1184 | fi |
1185 | fi |
1186 | CC="$ac_cv_prog_CC" |
1187 | if test -n "$CC"; then |
1188 | echo "$ac_t""$CC" 1>&6 |
1189 | else |
1190 | echo "$ac_t""no" 1>&6 |
1191 | fi |
1192 | |
1193 | test -n "$CC" && break |
1194 | done |
1195 | test -n "$CC" || CC=":" |
1196 | |
1197 | unset ac_cv_prog_CC |
1198 | # Extract the first word of "gcc", so it can be a program name with args. |
1199 | set dummy gcc; ac_word=$2 |
1200 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1201 | echo "configure:1202: checking for $ac_word" >&5 |
1202 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1203 | echo $ac_n "(cached) $ac_c" 1>&6 |
1204 | else |
1205 | if test -n "$CC"; then |
1206 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1207 | else |
1208 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1209 | ac_dummy="$PATH" |
1210 | for ac_dir in $ac_dummy; do |
1211 | test -z "$ac_dir" && ac_dir=. |
1212 | if test -f $ac_dir/$ac_word; then |
1213 | ac_cv_prog_CC="gcc" |
1214 | break |
1215 | fi |
1216 | done |
1217 | IFS="$ac_save_ifs" |
1218 | fi |
1219 | fi |
1220 | CC="$ac_cv_prog_CC" |
1221 | if test -n "$CC"; then |
1222 | echo "$ac_t""$CC" 1>&6 |
1223 | else |
1224 | echo "$ac_t""no" 1>&6 |
1225 | fi |
1226 | |
1227 | if test -z "$CC"; then |
1228 | # Extract the first word of "cc", so it can be a program name with args. |
1229 | set dummy cc; ac_word=$2 |
1230 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1231 | echo "configure:1232: checking for $ac_word" >&5 |
1232 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1233 | echo $ac_n "(cached) $ac_c" 1>&6 |
1234 | else |
1235 | if test -n "$CC"; then |
1236 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1237 | else |
1238 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1239 | ac_prog_rejected=no |
1240 | ac_dummy="$PATH" |
1241 | for ac_dir in $ac_dummy; do |
1242 | test -z "$ac_dir" && ac_dir=. |
1243 | if test -f $ac_dir/$ac_word; then |
1244 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1245 | ac_prog_rejected=yes |
1246 | continue |
1247 | fi |
1248 | ac_cv_prog_CC="cc" |
1249 | break |
1250 | fi |
1251 | done |
1252 | IFS="$ac_save_ifs" |
1253 | if test $ac_prog_rejected = yes; then |
1254 | # We found a bogon in the path, so make sure we never use it. |
1255 | set dummy $ac_cv_prog_CC |
1256 | shift |
1257 | if test $# -gt 0; then |
1258 | # We chose a different compiler from the bogus one. |
1259 | # However, it has the same basename, so the bogon will be chosen |
1260 | # first if we set CC to just the basename; use the full file name. |
1261 | shift |
1262 | set dummy "$ac_dir/$ac_word" "$@" |
1263 | shift |
1264 | ac_cv_prog_CC="$@" |
1265 | fi |
1266 | fi |
1267 | fi |
1268 | fi |
1269 | CC="$ac_cv_prog_CC" |
1270 | if test -n "$CC"; then |
1271 | echo "$ac_t""$CC" 1>&6 |
1272 | else |
1273 | echo "$ac_t""no" 1>&6 |
1274 | fi |
1275 | |
1276 | if test -z "$CC"; then |
1277 | case "`uname -s`" in |
1278 | *win32* | *WIN32*) |
1279 | # Extract the first word of "cl", so it can be a program name with args. |
1280 | set dummy cl; ac_word=$2 |
1281 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1282 | echo "configure:1283: checking for $ac_word" >&5 |
1283 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1284 | echo $ac_n "(cached) $ac_c" 1>&6 |
1285 | else |
1286 | if test -n "$CC"; then |
1287 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1288 | else |
1289 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1290 | ac_dummy="$PATH" |
1291 | for ac_dir in $ac_dummy; do |
1292 | test -z "$ac_dir" && ac_dir=. |
1293 | if test -f $ac_dir/$ac_word; then |
1294 | ac_cv_prog_CC="cl" |
1295 | break |
1296 | fi |
1297 | done |
1298 | IFS="$ac_save_ifs" |
1299 | fi |
1300 | fi |
1301 | CC="$ac_cv_prog_CC" |
1302 | if test -n "$CC"; then |
1303 | echo "$ac_t""$CC" 1>&6 |
1304 | else |
1305 | echo "$ac_t""no" 1>&6 |
1306 | fi |
1307 | ;; |
1308 | esac |
1309 | fi |
1310 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1311 | fi |
1312 | |
1313 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1314 | echo "configure:1315: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1315 | |
1316 | ac_ext=c |
1317 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1318 | ac_cpp='$CPP $CPPFLAGS' |
1319 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1320 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1321 | cross_compiling=$ac_cv_prog_cc_cross |
1322 | |
1323 | cat > conftest.$ac_ext << EOF |
1324 | |
1325 | #line 1326 "configure" |
1326 | #include "confdefs.h" |
1327 | |
1328 | main(){return(0);} |
1329 | EOF |
1330 | if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1331 | ac_cv_prog_cc_works=yes |
1332 | # If we can't run a trivial program, we are probably using a cross compiler. |
1333 | if (./conftest; exit) 2>/dev/null; then |
1334 | ac_cv_prog_cc_cross=no |
1335 | else |
1336 | ac_cv_prog_cc_cross=yes |
1337 | fi |
1338 | else |
1339 | echo "configure: failed program was:" >&5 |
1340 | cat conftest.$ac_ext >&5 |
1341 | ac_cv_prog_cc_works=no |
1342 | fi |
1343 | rm -fr conftest* |
1344 | ac_ext=c |
1345 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1346 | ac_cpp='$CPP $CPPFLAGS' |
1347 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1348 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1349 | cross_compiling=$ac_cv_prog_cc_cross |
1350 | |
1351 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1352 | if test $ac_cv_prog_cc_works = no; then |
1353 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1354 | fi |
1355 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1356 | echo "configure:1357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1357 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1358 | cross_compiling=$ac_cv_prog_cc_cross |
1359 | |
1360 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1361 | echo "configure:1362: checking whether we are using GNU C" >&5 |
1362 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1363 | echo $ac_n "(cached) $ac_c" 1>&6 |
1364 | else |
1365 | cat > conftest.c <<EOF |
1366 | #ifdef __GNUC__ |
1367 | yes; |
1368 | #endif |
1369 | EOF |
1370 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1371 | ac_cv_prog_gcc=yes |
1372 | else |
1373 | ac_cv_prog_gcc=no |
1374 | fi |
1375 | fi |
1376 | |
1377 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1378 | |
1379 | if test $ac_cv_prog_gcc = yes; then |
1380 | GCC=yes |
1381 | else |
1382 | GCC= |
1383 | fi |
1384 | |
1385 | ac_test_CFLAGS="${CFLAGS+set}" |
1386 | ac_save_CFLAGS="$CFLAGS" |
1387 | CFLAGS= |
1388 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1389 | echo "configure:1390: checking whether ${CC-cc} accepts -g" >&5 |
1390 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1391 | echo $ac_n "(cached) $ac_c" 1>&6 |
1392 | else |
1393 | echo 'void f(){}' > conftest.c |
1394 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1395 | ac_cv_prog_cc_g=yes |
1396 | else |
1397 | ac_cv_prog_cc_g=no |
1398 | fi |
1399 | rm -f conftest* |
1400 | |
1401 | fi |
1402 | |
1403 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1404 | if test "$ac_test_CFLAGS" = set; then |
1405 | CFLAGS="$ac_save_CFLAGS" |
1406 | elif test $ac_cv_prog_cc_g = yes; then |
1407 | if test "$GCC" = yes; then |
1408 | CFLAGS="-g -O2" |
1409 | else |
1410 | CFLAGS="-g" |
1411 | fi |
1412 | else |
1413 | if test "$GCC" = yes; then |
1414 | CFLAGS="-O2" |
1415 | else |
1416 | CFLAGS= |
1417 | fi |
1418 | fi |
1419 | |
1420 | for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" |
1421 | do |
1422 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1423 | set dummy $ac_prog; ac_word=$2 |
1424 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1425 | echo "configure:1426: checking for $ac_word" >&5 |
1426 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1427 | echo $ac_n "(cached) $ac_c" 1>&6 |
1428 | else |
1429 | if test -n "$CXX"; then |
1430 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
1431 | else |
1432 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1433 | ac_dummy="$PATH" |
1434 | for ac_dir in $ac_dummy; do |
1435 | test -z "$ac_dir" && ac_dir=. |
1436 | if test -f $ac_dir/$ac_word; then |
1437 | ac_cv_prog_CXX="$ac_prog" |
1438 | break |
1439 | fi |
1440 | done |
1441 | IFS="$ac_save_ifs" |
1442 | fi |
1443 | fi |
1444 | CXX="$ac_cv_prog_CXX" |
1445 | if test -n "$CXX"; then |
1446 | echo "$ac_t""$CXX" 1>&6 |
1447 | else |
1448 | echo "$ac_t""no" 1>&6 |
1449 | fi |
1450 | |
1451 | test -n "$CXX" && break |
1452 | done |
1453 | test -n "$CXX" || CXX=":" |
1454 | |
1455 | unset ac_cv_prog_CXX |
1456 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
1457 | do |
1458 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1459 | set dummy $ac_prog; ac_word=$2 |
1460 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1461 | echo "configure:1462: checking for $ac_word" >&5 |
1462 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1463 | echo $ac_n "(cached) $ac_c" 1>&6 |
1464 | else |
1465 | if test -n "$CXX"; then |
1466 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
1467 | else |
1468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1469 | ac_dummy="$PATH" |
1470 | for ac_dir in $ac_dummy; do |
1471 | test -z "$ac_dir" && ac_dir=. |
1472 | if test -f $ac_dir/$ac_word; then |
1473 | ac_cv_prog_CXX="$ac_prog" |
1474 | break |
1475 | fi |
1476 | done |
1477 | IFS="$ac_save_ifs" |
1478 | fi |
1479 | fi |
1480 | CXX="$ac_cv_prog_CXX" |
1481 | if test -n "$CXX"; then |
1482 | echo "$ac_t""$CXX" 1>&6 |
1483 | else |
1484 | echo "$ac_t""no" 1>&6 |
1485 | fi |
1486 | |
1487 | test -n "$CXX" && break |
1488 | done |
1489 | test -n "$CXX" || CXX="gcc" |
1490 | |
1491 | |
1492 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1493 | echo "configure:1494: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
1494 | |
1495 | ac_ext=C |
1496 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1497 | ac_cpp='$CXXCPP $CPPFLAGS' |
1498 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1499 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1500 | cross_compiling=$ac_cv_prog_cxx_cross |
1501 | |
1502 | cat > conftest.$ac_ext << EOF |
1503 | |
1504 | #line 1505 "configure" |
1505 | #include "confdefs.h" |
1506 | |
1507 | int main(){return(0);} |
1508 | EOF |
1509 | if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1510 | ac_cv_prog_cxx_works=yes |
1511 | # If we can't run a trivial program, we are probably using a cross compiler. |
1512 | if (./conftest; exit) 2>/dev/null; then |
1513 | ac_cv_prog_cxx_cross=no |
1514 | else |
1515 | ac_cv_prog_cxx_cross=yes |
1516 | fi |
1517 | else |
1518 | echo "configure: failed program was:" >&5 |
1519 | cat conftest.$ac_ext >&5 |
1520 | ac_cv_prog_cxx_works=no |
1521 | fi |
1522 | rm -fr conftest* |
1523 | ac_ext=c |
1524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1525 | ac_cpp='$CPP $CPPFLAGS' |
1526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1528 | cross_compiling=$ac_cv_prog_cc_cross |
1529 | |
1530 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
1531 | if test $ac_cv_prog_cxx_works = no; then |
1532 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
1533 | fi |
1534 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1535 | echo "configure:1536: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1536 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
1537 | cross_compiling=$ac_cv_prog_cxx_cross |
1538 | |
1539 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
1540 | echo "configure:1541: checking whether we are using GNU C++" >&5 |
1541 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1542 | echo $ac_n "(cached) $ac_c" 1>&6 |
1543 | else |
1544 | cat > conftest.C <<EOF |
1545 | #ifdef __GNUC__ |
1546 | yes; |
1547 | #endif |
1548 | EOF |
1549 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1550 | ac_cv_prog_gxx=yes |
1551 | else |
1552 | ac_cv_prog_gxx=no |
1553 | fi |
1554 | fi |
1555 | |
1556 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
1557 | |
1558 | if test $ac_cv_prog_gxx = yes; then |
1559 | GXX=yes |
1560 | else |
1561 | GXX= |
1562 | fi |
1563 | |
1564 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
1565 | ac_save_CXXFLAGS="$CXXFLAGS" |
1566 | CXXFLAGS= |
1567 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
1568 | echo "configure:1569: checking whether ${CXX-g++} accepts -g" >&5 |
1569 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1570 | echo $ac_n "(cached) $ac_c" 1>&6 |
1571 | else |
1572 | echo 'void f(){}' > conftest.cc |
1573 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
1574 | ac_cv_prog_cxx_g=yes |
1575 | else |
1576 | ac_cv_prog_cxx_g=no |
1577 | fi |
1578 | rm -f conftest* |
1579 | |
1580 | fi |
1581 | |
1582 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
1583 | if test "$ac_test_CXXFLAGS" = set; then |
1584 | CXXFLAGS="$ac_save_CXXFLAGS" |
1585 | elif test $ac_cv_prog_cxx_g = yes; then |
1586 | if test "$GXX" = yes; then |
1587 | CXXFLAGS="-g -O2" |
1588 | else |
1589 | CXXFLAGS="-g" |
1590 | fi |
1591 | else |
1592 | if test "$GXX" = yes; then |
1593 | CXXFLAGS="-O2" |
1594 | else |
1595 | CXXFLAGS= |
1596 | fi |
1597 | fi |
1598 | |
1599 | for ac_declaration in \ |
1600 | ''\ |
1601 | '#include <stdlib.h>' \ |
1602 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
1603 | 'extern "C" void std::exit (int); using std::exit;' \ |
1604 | 'extern "C" void exit (int) throw ();' \ |
1605 | 'extern "C" void exit (int);' \ |
1606 | 'void exit (int);' |
1607 | do |
1608 | cat > conftest.$ac_ext <<EOF |
1609 | #line 1610 "configure" |
1610 | #include "confdefs.h" |
1611 | #include <stdlib.h> |
1612 | $ac_declaration |
1613 | int main() { |
1614 | exit (42); |
1615 | ; return 0; } |
1616 | EOF |
1617 | if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1618 | : |
1619 | else |
1620 | echo "configure: failed program was:" >&5 |
1621 | cat conftest.$ac_ext >&5 |
1622 | rm -rf conftest* |
1623 | continue |
1624 | fi |
1625 | rm -f conftest* |
1626 | cat > conftest.$ac_ext <<EOF |
1627 | #line 1628 "configure" |
1628 | #include "confdefs.h" |
1629 | $ac_declaration |
1630 | int main() { |
1631 | exit (42); |
1632 | ; return 0; } |
1633 | EOF |
1634 | if { (eval echo configure:1635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1635 | rm -rf conftest* |
1636 | break |
1637 | else |
1638 | echo "configure: failed program was:" >&5 |
1639 | cat conftest.$ac_ext >&5 |
1640 | fi |
1641 | rm -f conftest* |
1642 | done |
1643 | if test -n "$ac_declaration"; then |
1644 | echo '#ifdef __cplusplus' >>confdefs.h |
1645 | echo $ac_declaration >>confdefs.h |
1646 | echo '#endif' >>confdefs.h |
1647 | fi |
1648 | |
1649 | |
1650 | |
1651 | case "$build:$target" in |
1652 | powerpc-apple-darwin8*:i?86-apple-darwin*) |
1653 | CFLAGS=$_SAVE_CFLAGS |
1654 | CXXFLAGS=$_SAVE_CXXFLAGS |
1655 | ;; |
1656 | esac |
1657 | |
1658 | for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" |
1659 | do |
1660 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1661 | set dummy $ac_prog; ac_word=$2 |
1662 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1663 | echo "configure:1664: checking for $ac_word" >&5 |
1664 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1665 | echo $ac_n "(cached) $ac_c" 1>&6 |
1666 | else |
1667 | if test -n "$RANLIB"; then |
1668 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
1669 | else |
1670 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1671 | ac_dummy="$PATH" |
1672 | for ac_dir in $ac_dummy; do |
1673 | test -z "$ac_dir" && ac_dir=. |
1674 | if test -f $ac_dir/$ac_word; then |
1675 | ac_cv_prog_RANLIB="$ac_prog" |
1676 | break |
1677 | fi |
1678 | done |
1679 | IFS="$ac_save_ifs" |
1680 | fi |
1681 | fi |
1682 | RANLIB="$ac_cv_prog_RANLIB" |
1683 | if test -n "$RANLIB"; then |
1684 | echo "$ac_t""$RANLIB" 1>&6 |
1685 | else |
1686 | echo "$ac_t""no" 1>&6 |
1687 | fi |
1688 | |
1689 | test -n "$RANLIB" && break |
1690 | done |
1691 | test -n "$RANLIB" || RANLIB=":" |
1692 | |
1693 | for ac_prog in $AR "${target_alias}-ar" "${target}-ar" |
1694 | do |
1695 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1696 | set dummy $ac_prog; ac_word=$2 |
1697 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1698 | echo "configure:1699: checking for $ac_word" >&5 |
1699 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1700 | echo $ac_n "(cached) $ac_c" 1>&6 |
1701 | else |
1702 | if test -n "$AR"; then |
1703 | ac_cv_prog_AR="$AR" # Let the user override the test. |
1704 | else |
1705 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1706 | ac_dummy="$PATH" |
1707 | for ac_dir in $ac_dummy; do |
1708 | test -z "$ac_dir" && ac_dir=. |
1709 | if test -f $ac_dir/$ac_word; then |
1710 | ac_cv_prog_AR="$ac_prog" |
1711 | break |
1712 | fi |
1713 | done |
1714 | IFS="$ac_save_ifs" |
1715 | fi |
1716 | fi |
1717 | AR="$ac_cv_prog_AR" |
1718 | if test -n "$AR"; then |
1719 | echo "$ac_t""$AR" 1>&6 |
1720 | else |
1721 | echo "$ac_t""no" 1>&6 |
1722 | fi |
1723 | |
1724 | test -n "$AR" && break |
1725 | done |
1726 | test -n "$AR" || AR=":" |
1727 | |
1728 | for ac_prog in $AS "${target_alias}-as" "${target}-as" |
1729 | do |
1730 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1731 | set dummy $ac_prog; ac_word=$2 |
1732 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1733 | echo "configure:1734: checking for $ac_word" >&5 |
1734 | if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then |
1735 | echo $ac_n "(cached) $ac_c" 1>&6 |
1736 | else |
1737 | case "$AS" in |
1738 | /*) |
1739 | ac_cv_path_AS="$AS" # Let the user override the test with a path. |
1740 | ;; |
1741 | ?:/*) |
1742 | ac_cv_path_AS="$AS" # Let the user override the test with a dos path. |
1743 | ;; |
1744 | *) |
1745 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1746 | ac_dummy="$PATH" |
1747 | for ac_dir in $ac_dummy; do |
1748 | test -z "$ac_dir" && ac_dir=. |
1749 | if test -f $ac_dir/$ac_word; then |
1750 | ac_cv_path_AS="$ac_dir/$ac_word" |
1751 | break |
1752 | fi |
1753 | done |
1754 | IFS="$ac_save_ifs" |
1755 | ;; |
1756 | esac |
1757 | fi |
1758 | AS="$ac_cv_path_AS" |
1759 | if test -n "$AS"; then |
1760 | echo "$ac_t""$AS" 1>&6 |
1761 | else |
1762 | echo "$ac_t""no" 1>&6 |
1763 | fi |
1764 | |
1765 | test -n "$AS" && break |
1766 | done |
1767 | test -n "$AS" || AS=":" |
1768 | |
1769 | for ac_prog in $LD "${target_alias}-ld" "${target}-ld" |
1770 | do |
1771 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1772 | set dummy $ac_prog; ac_word=$2 |
1773 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1774 | echo "configure:1775: checking for $ac_word" >&5 |
1775 | if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
1776 | echo $ac_n "(cached) $ac_c" 1>&6 |
1777 | else |
1778 | if test -n "$LD"; then |
1779 | ac_cv_prog_LD="$LD" # Let the user override the test. |
1780 | else |
1781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1782 | ac_dummy="$PATH" |
1783 | for ac_dir in $ac_dummy; do |
1784 | test -z "$ac_dir" && ac_dir=. |
1785 | if test -f $ac_dir/$ac_word; then |
1786 | ac_cv_prog_LD="$ac_prog" |
1787 | break |
1788 | fi |
1789 | done |
1790 | IFS="$ac_save_ifs" |
1791 | fi |
1792 | fi |
1793 | LD="$ac_cv_prog_LD" |
1794 | if test -n "$LD"; then |
1795 | echo "$ac_t""$LD" 1>&6 |
1796 | else |
1797 | echo "$ac_t""no" 1>&6 |
1798 | fi |
1799 | |
1800 | test -n "$LD" && break |
1801 | done |
1802 | test -n "$LD" || LD=":" |
1803 | |
1804 | for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" |
1805 | do |
1806 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1807 | set dummy $ac_prog; ac_word=$2 |
1808 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1809 | echo "configure:1810: checking for $ac_word" >&5 |
1810 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1811 | echo $ac_n "(cached) $ac_c" 1>&6 |
1812 | else |
1813 | if test -n "$STRIP"; then |
1814 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1815 | else |
1816 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1817 | ac_dummy="$PATH" |
1818 | for ac_dir in $ac_dummy; do |
1819 | test -z "$ac_dir" && ac_dir=. |
1820 | if test -f $ac_dir/$ac_word; then |
1821 | ac_cv_prog_STRIP="$ac_prog" |
1822 | break |
1823 | fi |
1824 | done |
1825 | IFS="$ac_save_ifs" |
1826 | fi |
1827 | fi |
1828 | STRIP="$ac_cv_prog_STRIP" |
1829 | if test -n "$STRIP"; then |
1830 | echo "$ac_t""$STRIP" 1>&6 |
1831 | else |
1832 | echo "$ac_t""no" 1>&6 |
1833 | fi |
1834 | |
1835 | test -n "$STRIP" && break |
1836 | done |
1837 | test -n "$STRIP" || STRIP=":" |
1838 | |
1839 | for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" |
1840 | do |
1841 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1842 | set dummy $ac_prog; ac_word=$2 |
1843 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1844 | echo "configure:1845: checking for $ac_word" >&5 |
1845 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
1846 | echo $ac_n "(cached) $ac_c" 1>&6 |
1847 | else |
1848 | if test -n "$WINDRES"; then |
1849 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
1850 | else |
1851 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1852 | ac_dummy="$PATH" |
1853 | for ac_dir in $ac_dummy; do |
1854 | test -z "$ac_dir" && ac_dir=. |
1855 | if test -f $ac_dir/$ac_word; then |
1856 | ac_cv_prog_WINDRES="$ac_prog" |
1857 | break |
1858 | fi |
1859 | done |
1860 | IFS="$ac_save_ifs" |
1861 | fi |
1862 | fi |
1863 | WINDRES="$ac_cv_prog_WINDRES" |
1864 | if test -n "$WINDRES"; then |
1865 | echo "$ac_t""$WINDRES" 1>&6 |
1866 | else |
1867 | echo "$ac_t""no" 1>&6 |
1868 | fi |
1869 | |
1870 | test -n "$WINDRES" && break |
1871 | done |
1872 | test -n "$WINDRES" || WINDRES=":" |
1873 | |
1874 | cat >> confdefs.h <<\EOF |
1875 | #define CROSS_COMPILE 1 |
1876 | EOF |
1877 | |
1878 | |
1879 | cross_compiling=yes |
1880 | else |
1881 | # Extract the first word of "gcc", so it can be a program name with args. |
1882 | set dummy gcc; ac_word=$2 |
1883 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1884 | echo "configure:1885: checking for $ac_word" >&5 |
1885 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1886 | echo $ac_n "(cached) $ac_c" 1>&6 |
1887 | else |
1888 | if test -n "$CC"; then |
1889 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1890 | else |
1891 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1892 | ac_dummy="$PATH" |
1893 | for ac_dir in $ac_dummy; do |
1894 | test -z "$ac_dir" && ac_dir=. |
1895 | if test -f $ac_dir/$ac_word; then |
1896 | ac_cv_prog_CC="gcc" |
1897 | break |
1898 | fi |
1899 | done |
1900 | IFS="$ac_save_ifs" |
1901 | fi |
1902 | fi |
1903 | CC="$ac_cv_prog_CC" |
1904 | if test -n "$CC"; then |
1905 | echo "$ac_t""$CC" 1>&6 |
1906 | else |
1907 | echo "$ac_t""no" 1>&6 |
1908 | fi |
1909 | |
1910 | if test -z "$CC"; then |
1911 | # Extract the first word of "cc", so it can be a program name with args. |
1912 | set dummy cc; ac_word=$2 |
1913 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1914 | echo "configure:1915: checking for $ac_word" >&5 |
1915 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1916 | echo $ac_n "(cached) $ac_c" 1>&6 |
1917 | else |
1918 | if test -n "$CC"; then |
1919 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1920 | else |
1921 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1922 | ac_prog_rejected=no |
1923 | ac_dummy="$PATH" |
1924 | for ac_dir in $ac_dummy; do |
1925 | test -z "$ac_dir" && ac_dir=. |
1926 | if test -f $ac_dir/$ac_word; then |
1927 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1928 | ac_prog_rejected=yes |
1929 | continue |
1930 | fi |
1931 | ac_cv_prog_CC="cc" |
1932 | break |
1933 | fi |
1934 | done |
1935 | IFS="$ac_save_ifs" |
1936 | if test $ac_prog_rejected = yes; then |
1937 | # We found a bogon in the path, so make sure we never use it. |
1938 | set dummy $ac_cv_prog_CC |
1939 | shift |
1940 | if test $# -gt 0; then |
1941 | # We chose a different compiler from the bogus one. |
1942 | # However, it has the same basename, so the bogon will be chosen |
1943 | # first if we set CC to just the basename; use the full file name. |
1944 | shift |
1945 | set dummy "$ac_dir/$ac_word" "$@" |
1946 | shift |
1947 | ac_cv_prog_CC="$@" |
1948 | fi |
1949 | fi |
1950 | fi |
1951 | fi |
1952 | CC="$ac_cv_prog_CC" |
1953 | if test -n "$CC"; then |
1954 | echo "$ac_t""$CC" 1>&6 |
1955 | else |
1956 | echo "$ac_t""no" 1>&6 |
1957 | fi |
1958 | |
1959 | if test -z "$CC"; then |
1960 | case "`uname -s`" in |
1961 | *win32* | *WIN32*) |
1962 | # Extract the first word of "cl", so it can be a program name with args. |
1963 | set dummy cl; ac_word=$2 |
1964 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1965 | echo "configure:1966: checking for $ac_word" >&5 |
1966 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1967 | echo $ac_n "(cached) $ac_c" 1>&6 |
1968 | else |
1969 | if test -n "$CC"; then |
1970 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1971 | else |
1972 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1973 | ac_dummy="$PATH" |
1974 | for ac_dir in $ac_dummy; do |
1975 | test -z "$ac_dir" && ac_dir=. |
1976 | if test -f $ac_dir/$ac_word; then |
1977 | ac_cv_prog_CC="cl" |
1978 | break |
1979 | fi |
1980 | done |
1981 | IFS="$ac_save_ifs" |
1982 | fi |
1983 | fi |
1984 | CC="$ac_cv_prog_CC" |
1985 | if test -n "$CC"; then |
1986 | echo "$ac_t""$CC" 1>&6 |
1987 | else |
1988 | echo "$ac_t""no" 1>&6 |
1989 | fi |
1990 | ;; |
1991 | esac |
1992 | fi |
1993 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1994 | fi |
1995 | |
1996 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1997 | echo "configure:1998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1998 | |
1999 | ac_ext=c |
2000 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2001 | ac_cpp='$CPP $CPPFLAGS' |
2002 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2003 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2004 | cross_compiling=$ac_cv_prog_cc_cross |
2005 | |
2006 | cat > conftest.$ac_ext << EOF |
2007 | |
2008 | #line 2009 "configure" |
2009 | #include "confdefs.h" |
2010 | |
2011 | main(){return(0);} |
2012 | EOF |
2013 | if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2014 | ac_cv_prog_cc_works=yes |
2015 | # If we can't run a trivial program, we are probably using a cross compiler. |
2016 | if (./conftest; exit) 2>/dev/null; then |
2017 | ac_cv_prog_cc_cross=no |
2018 | else |
2019 | ac_cv_prog_cc_cross=yes |
2020 | fi |
2021 | else |
2022 | echo "configure: failed program was:" >&5 |
2023 | cat conftest.$ac_ext >&5 |
2024 | ac_cv_prog_cc_works=no |
2025 | fi |
2026 | rm -fr conftest* |
2027 | ac_ext=c |
2028 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2029 | ac_cpp='$CPP $CPPFLAGS' |
2030 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2031 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2032 | cross_compiling=$ac_cv_prog_cc_cross |
2033 | |
2034 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
2035 | if test $ac_cv_prog_cc_works = no; then |
2036 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
2037 | fi |
2038 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
2039 | echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
2040 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2041 | cross_compiling=$ac_cv_prog_cc_cross |
2042 | |
2043 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
2044 | echo "configure:2045: checking whether we are using GNU C" >&5 |
2045 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
2046 | echo $ac_n "(cached) $ac_c" 1>&6 |
2047 | else |
2048 | cat > conftest.c <<EOF |
2049 | #ifdef __GNUC__ |
2050 | yes; |
2051 | #endif |
2052 | EOF |
2053 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
2054 | ac_cv_prog_gcc=yes |
2055 | else |
2056 | ac_cv_prog_gcc=no |
2057 | fi |
2058 | fi |
2059 | |
2060 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
2061 | |
2062 | if test $ac_cv_prog_gcc = yes; then |
2063 | GCC=yes |
2064 | else |
2065 | GCC= |
2066 | fi |
2067 | |
2068 | ac_test_CFLAGS="${CFLAGS+set}" |
2069 | ac_save_CFLAGS="$CFLAGS" |
2070 | CFLAGS= |
2071 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
2072 | echo "configure:2073: checking whether ${CC-cc} accepts -g" >&5 |
2073 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
2074 | echo $ac_n "(cached) $ac_c" 1>&6 |
2075 | else |
2076 | echo 'void f(){}' > conftest.c |
2077 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
2078 | ac_cv_prog_cc_g=yes |
2079 | else |
2080 | ac_cv_prog_cc_g=no |
2081 | fi |
2082 | rm -f conftest* |
2083 | |
2084 | fi |
2085 | |
2086 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
2087 | if test "$ac_test_CFLAGS" = set; then |
2088 | CFLAGS="$ac_save_CFLAGS" |
2089 | elif test $ac_cv_prog_cc_g = yes; then |
2090 | if test "$GCC" = yes; then |
2091 | CFLAGS="-g -O2" |
2092 | else |
2093 | CFLAGS="-g" |
2094 | fi |
2095 | else |
2096 | if test "$GCC" = yes; then |
2097 | CFLAGS="-O2" |
2098 | else |
2099 | CFLAGS= |
2100 | fi |
2101 | fi |
2102 | |
2103 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
2104 | do |
2105 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2106 | set dummy $ac_prog; ac_word=$2 |
2107 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2108 | echo "configure:2109: checking for $ac_word" >&5 |
2109 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
2110 | echo $ac_n "(cached) $ac_c" 1>&6 |
2111 | else |
2112 | if test -n "$CXX"; then |
2113 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2114 | else |
2115 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2116 | ac_dummy="$PATH" |
2117 | for ac_dir in $ac_dummy; do |
2118 | test -z "$ac_dir" && ac_dir=. |
2119 | if test -f $ac_dir/$ac_word; then |
2120 | ac_cv_prog_CXX="$ac_prog" |
2121 | break |
2122 | fi |
2123 | done |
2124 | IFS="$ac_save_ifs" |
2125 | fi |
2126 | fi |
2127 | CXX="$ac_cv_prog_CXX" |
2128 | if test -n "$CXX"; then |
2129 | echo "$ac_t""$CXX" 1>&6 |
2130 | else |
2131 | echo "$ac_t""no" 1>&6 |
2132 | fi |
2133 | |
2134 | test -n "$CXX" && break |
2135 | done |
2136 | test -n "$CXX" || CXX="gcc" |
2137 | |
2138 | |
2139 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
2140 | echo "configure:2141: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
2141 | |
2142 | ac_ext=C |
2143 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2144 | ac_cpp='$CXXCPP $CPPFLAGS' |
2145 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2146 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2147 | cross_compiling=$ac_cv_prog_cxx_cross |
2148 | |
2149 | cat > conftest.$ac_ext << EOF |
2150 | |
2151 | #line 2152 "configure" |
2152 | #include "confdefs.h" |
2153 | |
2154 | int main(){return(0);} |
2155 | EOF |
2156 | if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2157 | ac_cv_prog_cxx_works=yes |
2158 | # If we can't run a trivial program, we are probably using a cross compiler. |
2159 | if (./conftest; exit) 2>/dev/null; then |
2160 | ac_cv_prog_cxx_cross=no |
2161 | else |
2162 | ac_cv_prog_cxx_cross=yes |
2163 | fi |
2164 | else |
2165 | echo "configure: failed program was:" >&5 |
2166 | cat conftest.$ac_ext >&5 |
2167 | ac_cv_prog_cxx_works=no |
2168 | fi |
2169 | rm -fr conftest* |
2170 | ac_ext=c |
2171 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2172 | ac_cpp='$CPP $CPPFLAGS' |
2173 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2174 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2175 | cross_compiling=$ac_cv_prog_cc_cross |
2176 | |
2177 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
2178 | if test $ac_cv_prog_cxx_works = no; then |
2179 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
2180 | fi |
2181 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
2182 | echo "configure:2183: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
2183 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
2184 | cross_compiling=$ac_cv_prog_cxx_cross |
2185 | |
2186 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
2187 | echo "configure:2188: checking whether we are using GNU C++" >&5 |
2188 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
2189 | echo $ac_n "(cached) $ac_c" 1>&6 |
2190 | else |
2191 | cat > conftest.C <<EOF |
2192 | #ifdef __GNUC__ |
2193 | yes; |
2194 | #endif |
2195 | EOF |
2196 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
2197 | ac_cv_prog_gxx=yes |
2198 | else |
2199 | ac_cv_prog_gxx=no |
2200 | fi |
2201 | fi |
2202 | |
2203 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
2204 | |
2205 | if test $ac_cv_prog_gxx = yes; then |
2206 | GXX=yes |
2207 | else |
2208 | GXX= |
2209 | fi |
2210 | |
2211 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
2212 | ac_save_CXXFLAGS="$CXXFLAGS" |
2213 | CXXFLAGS= |
2214 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
2215 | echo "configure:2216: checking whether ${CXX-g++} accepts -g" >&5 |
2216 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
2217 | echo $ac_n "(cached) $ac_c" 1>&6 |
2218 | else |
2219 | echo 'void f(){}' > conftest.cc |
2220 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
2221 | ac_cv_prog_cxx_g=yes |
2222 | else |
2223 | ac_cv_prog_cxx_g=no |
2224 | fi |
2225 | rm -f conftest* |
2226 | |
2227 | fi |
2228 | |
2229 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
2230 | if test "$ac_test_CXXFLAGS" = set; then |
2231 | CXXFLAGS="$ac_save_CXXFLAGS" |
2232 | elif test $ac_cv_prog_cxx_g = yes; then |
2233 | if test "$GXX" = yes; then |
2234 | CXXFLAGS="-g -O2" |
2235 | else |
2236 | CXXFLAGS="-g" |
2237 | fi |
2238 | else |
2239 | if test "$GXX" = yes; then |
2240 | CXXFLAGS="-O2" |
2241 | else |
2242 | CXXFLAGS= |
2243 | fi |
2244 | fi |
2245 | |
2246 | for ac_declaration in \ |
2247 | ''\ |
2248 | '#include <stdlib.h>' \ |
2249 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2250 | 'extern "C" void std::exit (int); using std::exit;' \ |
2251 | 'extern "C" void exit (int) throw ();' \ |
2252 | 'extern "C" void exit (int);' \ |
2253 | 'void exit (int);' |
2254 | do |
2255 | cat > conftest.$ac_ext <<EOF |
2256 | #line 2257 "configure" |
2257 | #include "confdefs.h" |
2258 | #include <stdlib.h> |
2259 | $ac_declaration |
2260 | int main() { |
2261 | exit (42); |
2262 | ; return 0; } |
2263 | EOF |
2264 | if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2265 | : |
2266 | else |
2267 | echo "configure: failed program was:" >&5 |
2268 | cat conftest.$ac_ext >&5 |
2269 | rm -rf conftest* |
2270 | continue |
2271 | fi |
2272 | rm -f conftest* |
2273 | cat > conftest.$ac_ext <<EOF |
2274 | #line 2275 "configure" |
2275 | #include "confdefs.h" |
2276 | $ac_declaration |
2277 | int main() { |
2278 | exit (42); |
2279 | ; return 0; } |
2280 | EOF |
2281 | if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2282 | rm -rf conftest* |
2283 | break |
2284 | else |
2285 | echo "configure: failed program was:" >&5 |
2286 | cat conftest.$ac_ext >&5 |
2287 | fi |
2288 | rm -f conftest* |
2289 | done |
2290 | if test -n "$ac_declaration"; then |
2291 | echo '#ifdef __cplusplus' >>confdefs.h |
2292 | echo $ac_declaration >>confdefs.h |
2293 | echo '#endif' >>confdefs.h |
2294 | fi |
2295 | |
2296 | |
2297 | # Extract the first word of "ranlib", so it can be a program name with args. |
2298 | set dummy ranlib; ac_word=$2 |
2299 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2300 | echo "configure:2301: checking for $ac_word" >&5 |
2301 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2302 | echo $ac_n "(cached) $ac_c" 1>&6 |
2303 | else |
2304 | if test -n "$RANLIB"; then |
2305 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
2306 | else |
2307 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2308 | ac_dummy="$PATH" |
2309 | for ac_dir in $ac_dummy; do |
2310 | test -z "$ac_dir" && ac_dir=. |
2311 | if test -f $ac_dir/$ac_word; then |
2312 | ac_cv_prog_RANLIB="ranlib" |
2313 | break |
2314 | fi |
2315 | done |
2316 | IFS="$ac_save_ifs" |
2317 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
2318 | fi |
2319 | fi |
2320 | RANLIB="$ac_cv_prog_RANLIB" |
2321 | if test -n "$RANLIB"; then |
2322 | echo "$ac_t""$RANLIB" 1>&6 |
2323 | else |
2324 | echo "$ac_t""no" 1>&6 |
2325 | fi |
2326 | |
2327 | for ac_prog in $AS as |
2328 | do |
2329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2330 | set dummy $ac_prog; ac_word=$2 |
2331 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2332 | echo "configure:2333: checking for $ac_word" >&5 |
2333 | if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then |
2334 | echo $ac_n "(cached) $ac_c" 1>&6 |
2335 | else |
2336 | case "$AS" in |
2337 | /*) |
2338 | ac_cv_path_AS="$AS" # Let the user override the test with a path. |
2339 | ;; |
2340 | ?:/*) |
2341 | ac_cv_path_AS="$AS" # Let the user override the test with a dos path. |
2342 | ;; |
2343 | *) |
2344 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2345 | ac_dummy="$PATH" |
2346 | for ac_dir in $ac_dummy; do |
2347 | test -z "$ac_dir" && ac_dir=. |
2348 | if test -f $ac_dir/$ac_word; then |
2349 | ac_cv_path_AS="$ac_dir/$ac_word" |
2350 | break |
2351 | fi |
2352 | done |
2353 | IFS="$ac_save_ifs" |
2354 | ;; |
2355 | esac |
2356 | fi |
2357 | AS="$ac_cv_path_AS" |
2358 | if test -n "$AS"; then |
2359 | echo "$ac_t""$AS" 1>&6 |
2360 | else |
2361 | echo "$ac_t""no" 1>&6 |
2362 | fi |
2363 | |
2364 | test -n "$AS" && break |
2365 | done |
2366 | test -n "$AS" || AS="$CC" |
2367 | |
2368 | for ac_prog in ar |
2369 | do |
2370 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2371 | set dummy $ac_prog; ac_word=$2 |
2372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2373 | echo "configure:2374: checking for $ac_word" >&5 |
2374 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
2375 | echo $ac_n "(cached) $ac_c" 1>&6 |
2376 | else |
2377 | if test -n "$AR"; then |
2378 | ac_cv_prog_AR="$AR" # Let the user override the test. |
2379 | else |
2380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2381 | ac_dummy="$PATH" |
2382 | for ac_dir in $ac_dummy; do |
2383 | test -z "$ac_dir" && ac_dir=. |
2384 | if test -f $ac_dir/$ac_word; then |
2385 | ac_cv_prog_AR="$ac_prog" |
2386 | break |
2387 | fi |
2388 | done |
2389 | IFS="$ac_save_ifs" |
2390 | fi |
2391 | fi |
2392 | AR="$ac_cv_prog_AR" |
2393 | if test -n "$AR"; then |
2394 | echo "$ac_t""$AR" 1>&6 |
2395 | else |
2396 | echo "$ac_t""no" 1>&6 |
2397 | fi |
2398 | |
2399 | test -n "$AR" && break |
2400 | done |
2401 | test -n "$AR" || AR=":" |
2402 | |
2403 | for ac_prog in ld |
2404 | do |
2405 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2406 | set dummy $ac_prog; ac_word=$2 |
2407 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2408 | echo "configure:2409: checking for $ac_word" >&5 |
2409 | if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
2410 | echo $ac_n "(cached) $ac_c" 1>&6 |
2411 | else |
2412 | if test -n "$LD"; then |
2413 | ac_cv_prog_LD="$LD" # Let the user override the test. |
2414 | else |
2415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2416 | ac_dummy="$PATH" |
2417 | for ac_dir in $ac_dummy; do |
2418 | test -z "$ac_dir" && ac_dir=. |
2419 | if test -f $ac_dir/$ac_word; then |
2420 | ac_cv_prog_LD="$ac_prog" |
2421 | break |
2422 | fi |
2423 | done |
2424 | IFS="$ac_save_ifs" |
2425 | fi |
2426 | fi |
2427 | LD="$ac_cv_prog_LD" |
2428 | if test -n "$LD"; then |
2429 | echo "$ac_t""$LD" 1>&6 |
2430 | else |
2431 | echo "$ac_t""no" 1>&6 |
2432 | fi |
2433 | |
2434 | test -n "$LD" && break |
2435 | done |
2436 | test -n "$LD" || LD=":" |
2437 | |
2438 | for ac_prog in strip |
2439 | do |
2440 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2441 | set dummy $ac_prog; ac_word=$2 |
2442 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2443 | echo "configure:2444: checking for $ac_word" >&5 |
2444 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2445 | echo $ac_n "(cached) $ac_c" 1>&6 |
2446 | else |
2447 | if test -n "$STRIP"; then |
2448 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2449 | else |
2450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2451 | ac_dummy="$PATH" |
2452 | for ac_dir in $ac_dummy; do |
2453 | test -z "$ac_dir" && ac_dir=. |
2454 | if test -f $ac_dir/$ac_word; then |
2455 | ac_cv_prog_STRIP="$ac_prog" |
2456 | break |
2457 | fi |
2458 | done |
2459 | IFS="$ac_save_ifs" |
2460 | fi |
2461 | fi |
2462 | STRIP="$ac_cv_prog_STRIP" |
2463 | if test -n "$STRIP"; then |
2464 | echo "$ac_t""$STRIP" 1>&6 |
2465 | else |
2466 | echo "$ac_t""no" 1>&6 |
2467 | fi |
2468 | |
2469 | test -n "$STRIP" && break |
2470 | done |
2471 | test -n "$STRIP" || STRIP=":" |
2472 | |
2473 | for ac_prog in windres |
2474 | do |
2475 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2476 | set dummy $ac_prog; ac_word=$2 |
2477 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2478 | echo "configure:2479: checking for $ac_word" >&5 |
2479 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
2480 | echo $ac_n "(cached) $ac_c" 1>&6 |
2481 | else |
2482 | if test -n "$WINDRES"; then |
2483 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
2484 | else |
2485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2486 | ac_dummy="$PATH" |
2487 | for ac_dir in $ac_dummy; do |
2488 | test -z "$ac_dir" && ac_dir=. |
2489 | if test -f $ac_dir/$ac_word; then |
2490 | ac_cv_prog_WINDRES="$ac_prog" |
2491 | break |
2492 | fi |
2493 | done |
2494 | IFS="$ac_save_ifs" |
2495 | fi |
2496 | fi |
2497 | WINDRES="$ac_cv_prog_WINDRES" |
2498 | if test -n "$WINDRES"; then |
2499 | echo "$ac_t""$WINDRES" 1>&6 |
2500 | else |
2501 | echo "$ac_t""no" 1>&6 |
2502 | fi |
2503 | |
2504 | test -n "$WINDRES" && break |
2505 | done |
2506 | test -n "$WINDRES" || WINDRES=":" |
2507 | |
2508 | if test -z "$HOST_CC"; then |
2509 | HOST_CC="$CC" |
2510 | fi |
2511 | if test -z "$HOST_CFLAGS"; then |
2512 | HOST_CFLAGS="$CFLAGS" |
2513 | fi |
2514 | if test -z "$HOST_CXX"; then |
2515 | HOST_CXX="$CXX" |
2516 | fi |
2517 | if test -z "$HOST_CXXFLAGS"; then |
2518 | HOST_CXXFLAGS="$CXXFLAGS" |
2519 | fi |
2520 | if test -z "$HOST_LDFLAGS"; then |
2521 | HOST_LDFLAGS="$LDFLAGS" |
2522 | fi |
2523 | if test -z "$HOST_RANLIB"; then |
2524 | HOST_RANLIB="$RANLIB" |
2525 | fi |
2526 | if test -z "$HOST_AR"; then |
2527 | HOST_AR="$AR" |
2528 | fi |
2529 | fi |
2530 | |
2531 | GNU_AS= |
2532 | GNU_LD= |
2533 | GNU_CC= |
2534 | GNU_CXX= |
2535 | CC_VERSION='N/A' |
2536 | CXX_VERSION='N/A' |
2537 | if test "$GCC" = "yes"; then |
2538 | GNU_CC=1 |
2539 | CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` |
2540 | fi |
2541 | if test "$GXX" = "yes"; then |
2542 | GNU_CXX=1 |
2543 | CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'` |
2544 | fi |
2545 | if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then |
2546 | GNU_AS=1 |
2547 | fi |
2548 | if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then |
2549 | GNU_LD=1 |
2550 | fi |
2551 | if test "$GNU_CC"; then |
2552 | if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then |
2553 | GCC_USE_GNU_LD=1 |
2554 | fi |
2555 | fi |
2556 | |
2557 | INTEL_CC= |
2558 | INTEL_CXX= |
2559 | if test "$GCC" = yes; then |
2560 | if test "`$CC -help 2>&1 | grep -c 'Intel(R) C Compiler'`" != "0"; then |
2561 | INTEL_CC=1 |
2562 | fi |
2563 | fi |
2564 | |
2565 | if test "$GXX" = yes; then |
2566 | if test "`$CXX -help 2>&1 | grep -c 'Intel(R) C++ Compiler'`" != "0"; then |
2567 | INTEL_CXX=1 |
2568 | fi |
2569 | fi |
2570 | |
2571 | case "$target" in |
2572 | *-wince) |
2573 | WINVER=500 |
2574 | ;; |
2575 | *) |
2576 | if test -n "$GNU_CC"; then |
2577 | WINVER=501 |
2578 | else |
2579 | WINVER=500 |
2580 | fi |
2581 | ;; |
2582 | esac |
2583 | |
2584 | # Check whether --with-windows-version or --without-windows-version was given. |
2585 | if test "${with_windows_version+set}" = set; then |
2586 | withval="$with_windows_version" |
2587 | WINVER=$withval |
2588 | fi |
2589 | |
2590 | |
2591 | case "$WINVER" in |
2592 | 400|500|501) |
2593 | ;; |
2594 | |
2595 | *) |
2596 | { echo "configure: error: Invalid value --with-windows-version, must be 400, 500 or 501" 1>&2; exit 1; }; |
2597 | ;; |
2598 | |
2599 | esac |
2600 | |
2601 | case "$target" in |
2602 | *-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince) |
2603 | if test "$GCC" != "yes"; then |
2604 | # Check to see if we are really running in a msvc environemnt |
2605 | _WIN32_MSVC=1 |
2606 | |
2607 | # Make sure compilers are valid |
2608 | CFLAGS="$CFLAGS -TC -nologo" |
2609 | CXXFLAGS="$CXXFLAGS -TP -nologo" |
2610 | |
2611 | ac_ext=c |
2612 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2613 | ac_cpp='$CPP $CPPFLAGS' |
2614 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2615 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2616 | cross_compiling=$ac_cv_prog_cc_cross |
2617 | |
2618 | cat > conftest.$ac_ext <<EOF |
2619 | #line 2620 "configure" |
2620 | #include "confdefs.h" |
2621 | #include <stdio.h> |
2622 | int main() { |
2623 | printf("Hello World\n"); |
2624 | ; return 0; } |
2625 | EOF |
2626 | if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2627 | : |
2628 | else |
2629 | echo "configure: failed program was:" >&5 |
2630 | cat conftest.$ac_ext >&5 |
2631 | rm -rf conftest* |
2632 | { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; } |
2633 | fi |
2634 | rm -f conftest* |
2635 | |
2636 | ac_ext=C |
2637 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2638 | ac_cpp='$CXXCPP $CPPFLAGS' |
2639 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2640 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2641 | cross_compiling=$ac_cv_prog_cxx_cross |
2642 | |
2643 | cat > conftest.$ac_ext <<EOF |
2644 | #line 2645 "configure" |
2645 | #include "confdefs.h" |
2646 | #include <new.h> |
2647 | int main() { |
2648 | unsigned *test = new unsigned(42); |
2649 | ; return 0; } |
2650 | EOF |
2651 | if { (eval echo configure:2652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2652 | : |
2653 | else |
2654 | echo "configure: failed program was:" >&5 |
2655 | cat conftest.$ac_ext >&5 |
2656 | rm -rf conftest* |
2657 | { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; } |
2658 | fi |
2659 | rm -f conftest* |
2660 | ac_ext=c |
2661 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2662 | ac_cpp='$CPP $CPPFLAGS' |
2663 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2664 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2665 | cross_compiling=$ac_cv_prog_cc_cross |
2666 | |
2667 | |
2668 | |
2669 | _MSVC_VER_FILTER='s|.* ([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p' |
2670 | |
2671 | |
2672 | # Determine compiler version |
2673 | CC_VERSION=`"${CC}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` |
2674 | _CC_MAJOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $1 }'` |
2675 | _CC_MINOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $2 }'` |
2676 | _CC_RELEASE=`echo ${CC_VERSION} | $AWK -F\. '{ print $3 }'` |
2677 | _CC_BUILD=`echo ${CC_VERSION} | $AWK -F\. '{ print $4 }'` |
2678 | _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} |
2679 | |
2680 | CXX_VERSION=`"${CXX}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` |
2681 | _CXX_MAJOR_VERSION=`echo ${CXX_VERSION} | $AWK -F\. '{ print $1 }'` |
2682 | |
2683 | if test "$_CC_MAJOR_VERSION" != "$_CXX_MAJOR_VERSION"; then |
2684 | { echo "configure: error: The major versions of \$CC and \$CXX do not match." 1>&2; exit 1; } |
2685 | fi |
2686 | if test "$_CC_MAJOR_VERSION" = "12"; then |
2687 | _CC_SUITE=6 |
2688 | elif test "$_CC_MAJOR_VERSION" = "13"; then |
2689 | _CC_SUITE=7 |
2690 | elif test "$_CC_MAJOR_VERSION" = "14"; then |
2691 | _CC_SUITE=8 |
2692 | CXXFLAGS="$CXXFLAGS -Zc:wchar_t-" |
2693 | if test $_CC_RELEASE -gt 50727; then |
2694 | _USE_DYNAMICBASE=1 |
2695 | elif test $_CC_BUILD -ge 762; then |
2696 | _USE_DYNAMICBASE=1 |
2697 | fi |
2698 | cat >> confdefs.h <<\EOF |
2699 | #define _CRT_SECURE_NO_DEPRECATE 1 |
2700 | EOF |
2701 | |
2702 | cat >> confdefs.h <<\EOF |
2703 | #define _CRT_NONSTDC_NO_DEPRECATE 1 |
2704 | EOF |
2705 | |
2706 | elif test "$_CC_MAJOR_VERSION" = "15"; then |
2707 | _CC_SUITE=9 |
2708 | CXXFLAGS="$CXXFLAGS -Zc:wchar_t-" |
2709 | LDFLAGS="$LDFLAGS -MANIFESTUAC:NO" |
2710 | _USE_DYNAMICBASE=1 |
2711 | cat >> confdefs.h <<\EOF |
2712 | #define _CRT_SECURE_NO_WARNINGS 1 |
2713 | EOF |
2714 | |
2715 | cat >> confdefs.h <<\EOF |
2716 | #define _CRT_NONSTDC_NO_WARNINGS 1 |
2717 | EOF |
2718 | |
2719 | else |
2720 | { echo "configure: error: This version of the MSVC compiler, $CC_VERSION , is unsupported." 1>&2; exit 1; } |
2721 | fi |
2722 | |
2723 | _MOZ_RTTI_FLAGS_ON='-GR' |
2724 | _MOZ_RTTI_FLAGS_OFF='-GR-' |
2725 | _MOZ_EXCEPTIONS_FLAGS_ON='-EHsc' |
2726 | _MOZ_EXCEPTIONS_FLAGS_OFF='' |
2727 | |
2728 | if test -n "$WIN32_REDIST_DIR"; then |
2729 | WIN32_REDIST_DIR=`cd "$WIN32_REDIST_DIR" && pwd` |
2730 | fi |
2731 | |
2732 | # bug #249782 |
2733 | # ensure that mt.exe is Microsoft (R) Manifest Tool and not magnetic tape manipulation utility (or something else) |
2734 | if test "$_CC_SUITE" -ge "8"; then |
2735 | |
2736 | _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' |
2737 | |
2738 | |
2739 | MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` |
2740 | if test -n "$MSMT_TOOL"; then |
2741 | MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` |
2742 | if test -z "$MSMANIFEST_TOOL_VERSION"; then |
2743 | echo "configure: warning: Unknown version of the Microsoft (R) Manifest Tool." 1>&2 |
2744 | fi |
2745 | MSMANIFEST_TOOL=1 |
2746 | unset MSMT_TOOL |
2747 | else |
2748 | { echo "configure: error: Microsoft (R) Manifest Tool must be in your \$PATH." 1>&2; exit 1; } |
2749 | fi |
2750 | fi |
2751 | |
2752 | # Check linker version |
2753 | _LD_FULL_VERSION=`"${LD}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` |
2754 | _LD_MAJOR_VERSION=`echo ${_LD_FULL_VERSION} | $AWK -F\. '{ print $1 }'` |
2755 | if test "$_LD_MAJOR_VERSION" != "$_CC_SUITE"; then |
2756 | { echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&2; exit 1; } |
2757 | fi |
2758 | INCREMENTAL_LINKER=1 |
2759 | |
2760 | unset _MSVC_VER_FILTER |
2761 | |
2762 | else |
2763 | # Check w32api version |
2764 | _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'` |
2765 | _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'` |
2766 | echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6 |
2767 | echo "configure:2768: checking for w32api version >= $W32API_VERSION" >&5 |
2768 | cat > conftest.$ac_ext <<EOF |
2769 | #line 2770 "configure" |
2770 | #include "confdefs.h" |
2771 | #include <w32api.h> |
2772 | int main() { |
2773 | #if (__W32API_MAJOR_VERSION < $_W32API_MAJOR_VERSION) || \ |
2774 | (__W32API_MAJOR_VERSION == $_W32API_MAJOR_VERSION && \ |
2775 | __W32API_MINOR_VERSION < $_W32API_MINOR_VERSION) |
2776 | #error "test failed." |
2777 | #endif |
2778 | |
2779 | ; return 0; } |
2780 | EOF |
2781 | if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2782 | rm -rf conftest* |
2783 | res=yes |
2784 | else |
2785 | echo "configure: failed program was:" >&5 |
2786 | cat conftest.$ac_ext >&5 |
2787 | rm -rf conftest* |
2788 | res=no |
2789 | fi |
2790 | rm -f conftest* |
2791 | echo "$ac_t""$res" 1>&6 |
2792 | if test "$res" != "yes"; then |
2793 | { echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&2; exit 1; } |
2794 | fi |
2795 | # Check windres version |
2796 | echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6 |
2797 | echo "configure:2798: checking for windres version >= $WINDRES_VERSION" >&5 |
2798 | _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'` |
2799 | echo "$ac_t""$_WINDRES_VERSION" 1>&6 |
2800 | _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'` |
2801 | _WINDRES_MINOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $2 }'` |
2802 | _WINDRES_RELEASE_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $3 }'` |
2803 | WINDRES_MAJOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $1 }'` |
2804 | WINDRES_MINOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $2 }'` |
2805 | WINDRES_RELEASE_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $3 }'` |
2806 | if test "$_WINDRES_MAJOR_VERSION" -lt "$WINDRES_MAJOR_VERSION" -o \ |
2807 | "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \ |
2808 | "$_WINDRES_MINOR_VERSION" -lt "$WINDRES_MINOR_VERSION" -o \ |
2809 | "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \ |
2810 | "$_WINDRES_MINOR_VERSION" -eq "$WINDRES_MINOR_VERSION" -a \ |
2811 | "$_WINDRES_RELEASE_VERSION" -lt "$WINDRES_RELEASE_VERSION" |
2812 | then |
2813 | { echo "configure: error: windres version $WINDRES_VERSION or higher is required to build." 1>&2; exit 1; } |
2814 | fi |
2815 | fi # !GNU_CC |
2816 | |
2817 | cat >> confdefs.h <<EOF |
2818 | #define WINVER 0x$WINVER |
2819 | EOF |
2820 | |
2821 | cat >> confdefs.h <<EOF |
2822 | #define _WIN32_WINNT 0x$WINVER |
2823 | EOF |
2824 | |
2825 | # Require OS features provided by IE 5.0 |
2826 | cat >> confdefs.h <<EOF |
2827 | #define _WIN32_IE 0x0500 |
2828 | EOF |
2829 | |
2830 | ;; |
2831 | esac |
2832 | |
2833 | if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then |
2834 | if test "x$CC" != xcc; then |
2835 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 |
2836 | echo "configure:2837: checking whether $CC and cc understand -c and -o together" >&5 |
2837 | else |
2838 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 |
2839 | echo "configure:2840: checking whether cc understands -c and -o together" >&5 |
2840 | fi |
2841 | set dummy $CC; ac_cc="`echo $2 | |
2842 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" |
2843 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then |
2844 | echo $ac_n "(cached) $ac_c" 1>&6 |
2845 | else |
2846 | echo 'foo(){}' > conftest.c |
2847 | # Make sure it works both with $CC and with simple cc. |
2848 | # We do the test twice because some compilers refuse to overwrite an |
2849 | # existing .o file with -o, though they will create one. |
2850 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' |
2851 | if { (eval echo configure:2852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
2852 | test -f conftest.o && { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; |
2853 | then |
2854 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
2855 | if test "x$CC" != xcc; then |
2856 | # Test first that cc exists at all. |
2857 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
2858 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
2859 | if { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
2860 | test -f conftest.o && { (eval echo configure:2861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; |
2861 | then |
2862 | # cc works too. |
2863 | : |
2864 | else |
2865 | # cc exists but doesn't like -o. |
2866 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
2867 | fi |
2868 | fi |
2869 | fi |
2870 | else |
2871 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
2872 | fi |
2873 | rm -f conftest* |
2874 | |
2875 | fi |
2876 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then |
2877 | echo "$ac_t""yes" 1>&6 |
2878 | else |
2879 | echo "$ac_t""no" 1>&6 |
2880 | cat >> confdefs.h <<\EOF |
2881 | #define NO_MINUS_C_MINUS_O 1 |
2882 | EOF |
2883 | |
2884 | fi |
2885 | |
2886 | if grep "NO_MINUS_C_MINUS_O 1" ./confdefs.h >/dev/null; then |
2887 | USING_HCC=1 |
2888 | _OLDCC=$CC |
2889 | _OLDCXX=$CXX |
2890 | CC="${srcdir}/build/hcc '$CC'" |
2891 | CXX="${srcdir}/build/hcpp '$CXX'" |
2892 | fi |
2893 | fi |
2894 | |
2895 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2896 | echo "configure:2897: checking how to run the C preprocessor" >&5 |
2897 | # On Suns, sometimes $CPP names a directory. |
2898 | if test -n "$CPP" && test -d "$CPP"; then |
2899 | CPP= |
2900 | fi |
2901 | if test -z "$CPP"; then |
2902 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
2903 | echo $ac_n "(cached) $ac_c" 1>&6 |
2904 | else |
2905 | # This must be in double quotes, not single quotes, because CPP may get |
2906 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
2907 | CPP="${CC-cc} -E" |
2908 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2909 | # not just through cpp. |
2910 | cat > conftest.$ac_ext <<EOF |
2911 | #line 2912 "configure" |
2912 | #include "confdefs.h" |
2913 | #include <assert.h> |
2914 | Syntax Error |
2915 | EOF |
2916 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2917 | { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2918 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2919 | if test -z "$ac_err"; then |
2920 | : |
2921 | else |
2922 | echo "$ac_err" >&5 |
2923 | echo "configure: failed program was:" >&5 |
2924 | cat conftest.$ac_ext >&5 |
2925 | rm -rf conftest* |
2926 | CPP="${CC-cc} -E -traditional-cpp" |
2927 | cat > conftest.$ac_ext <<EOF |
2928 | #line 2929 "configure" |
2929 | #include "confdefs.h" |
2930 | #include <assert.h> |
2931 | Syntax Error |
2932 | EOF |
2933 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2934 | { (eval echo configure:2935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2935 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2936 | if test -z "$ac_err"; then |
2937 | : |
2938 | else |
2939 | echo "$ac_err" >&5 |
2940 | echo "configure: failed program was:" >&5 |
2941 | cat conftest.$ac_ext >&5 |
2942 | rm -rf conftest* |
2943 | CPP="${CC-cc} -nologo -E" |
2944 | cat > conftest.$ac_ext <<EOF |
2945 | #line 2946 "configure" |
2946 | #include "confdefs.h" |
2947 | #include <assert.h> |
2948 | Syntax Error |
2949 | EOF |
2950 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2951 | { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2952 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2953 | if test -z "$ac_err"; then |
2954 | : |
2955 | else |
2956 | echo "$ac_err" >&5 |
2957 | echo "configure: failed program was:" >&5 |
2958 | cat conftest.$ac_ext >&5 |
2959 | rm -rf conftest* |
2960 | CPP=/lib/cpp |
2961 | fi |
2962 | rm -f conftest* |
2963 | fi |
2964 | rm -f conftest* |
2965 | fi |
2966 | rm -f conftest* |
2967 | ac_cv_prog_CPP="$CPP" |
2968 | fi |
2969 | CPP="$ac_cv_prog_CPP" |
2970 | else |
2971 | ac_cv_prog_CPP="$CPP" |
2972 | fi |
2973 | echo "$ac_t""$CPP" 1>&6 |
2974 | |
2975 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
2976 | echo "configure:2977: checking how to run the C++ preprocessor" >&5 |
2977 | if test -z "$CXXCPP"; then |
2978 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
2979 | echo $ac_n "(cached) $ac_c" 1>&6 |
2980 | else |
2981 | ac_ext=C |
2982 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2983 | ac_cpp='$CXXCPP $CPPFLAGS' |
2984 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2985 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2986 | cross_compiling=$ac_cv_prog_cxx_cross |
2987 | CXXCPP="${CXX-g++} -E" |
2988 | cat > conftest.$ac_ext <<EOF |
2989 | #line 2990 "configure" |
2990 | #include "confdefs.h" |
2991 | #include <stdlib.h> |
2992 | EOF |
2993 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2994 | { (eval echo configure:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2995 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2996 | if test -z "$ac_err"; then |
2997 | : |
2998 | else |
2999 | echo "$ac_err" >&5 |
3000 | echo "configure: failed program was:" >&5 |
3001 | cat conftest.$ac_ext >&5 |
3002 | rm -rf conftest* |
3003 | CXXCPP=/lib/cpp |
3004 | fi |
3005 | rm -f conftest* |
3006 | ac_cv_prog_CXXCPP="$CXXCPP" |
3007 | ac_ext=c |
3008 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3009 | ac_cpp='$CPP $CPPFLAGS' |
3010 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
3011 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
3012 | cross_compiling=$ac_cv_prog_cc_cross |
3013 | fi |
3014 | fi |
3015 | CXXCPP="$ac_cv_prog_CXXCPP" |
3016 | echo "$ac_t""$CXXCPP" 1>&6 |
3017 | |
3018 | |
3019 | if test -n "$_WIN32_MSVC"; then |
3020 | SKIP_PATH_CHECKS=1 |
3021 | SKIP_COMPILER_CHECKS=1 |
3022 | SKIP_LIBRARY_CHECKS=1 |
3023 | |
3024 | # Since we're skipping compiler and library checks, hard-code |
3025 | # some facts here. |
3026 | |
3027 | # Windows lacks <stdint.h>, but has __int8, and so on. |
3028 | cat >> confdefs.h <<\EOF |
3029 | #define JS_HAVE___INTN 1 |
3030 | EOF |
3031 | |
3032 | # Windows <stddef.h> defines intptr_t and uintptr_t. |
3033 | # VS2005: http://msdn.microsoft.com/en-us/library/323b6b3k(VS.80).aspx |
3034 | # VS2008: http://msdn.microsoft.com/en-us/library/323b6b3k.aspx |
3035 | cat >> confdefs.h <<\EOF |
3036 | #define JS_STDDEF_H_HAS_INTPTR_T 1 |
3037 | EOF |
3038 | |
3039 | fi |
3040 | |
3041 | fi # COMPILE_ENVIRONMENT |
3042 | |
3043 | if test "$cross_compiling" = "yes"; then |
3044 | CROSS_COMPILE=1 |
3045 | else |
3046 | CROSS_COMPILE= |
3047 | fi |
3048 | |
3049 | |
3050 | |
3051 | |
3052 | |
3053 | |
3054 | |
3055 | |
3056 | |
3057 | |
3058 | # Find a good install program. We prefer a C program (faster), |
3059 | # so one script is as good as another. But avoid the broken or |
3060 | # incompatible versions: |
3061 | # SysV /etc/install, /usr/sbin/install |
3062 | # SunOS /usr/etc/install |
3063 | # IRIX /sbin/install |
3064 | # AIX /bin/install |
3065 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3066 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3067 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3068 | # ./install, which can be erroneously created by make from ./install.sh. |
3069 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
3070 | echo "configure:3071: checking for a BSD compatible install" >&5 |
3071 | if test -z "$INSTALL"; then |
3072 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
3073 | echo $ac_n "(cached) $ac_c" 1>&6 |
3074 | else |
3075 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
3076 | for ac_dir in $PATH; do |
3077 | # Account for people who put trailing slashes in PATH elements. |
3078 | case "$ac_dir/" in |
3079 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
3080 | *) |
3081 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3082 | # Don't use installbsd from OSF since it installs stuff as root |
3083 | # by default. |
3084 | for ac_prog in ginstall scoinst install; do |
3085 | if test -f $ac_dir/$ac_prog; then |
3086 | if test $ac_prog = install && |
3087 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
3088 | # AIX install. It has an incompatible calling convention. |
3089 | : |
3090 | else |
3091 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
3092 | break 2 |
3093 | fi |
3094 | fi |
3095 | done |
3096 | ;; |
3097 | esac |
3098 | done |
3099 | IFS="$ac_save_IFS" |
3100 | |
3101 | fi |
3102 | if test "${ac_cv_path_install+set}" = set; then |
3103 | INSTALL="$ac_cv_path_install" |
3104 | else |
3105 | # As a last resort, use the slow shell script. We don't cache a |
3106 | # path for INSTALL within a source directory, because that will |
3107 | # break other packages using the cache if that directory is |
3108 | # removed, or if the path is relative. |
3109 | INSTALL="$ac_install_sh" |
3110 | fi |
3111 | fi |
3112 | echo "$ac_t""$INSTALL" 1>&6 |
3113 | |
3114 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3115 | # It thinks the first close brace ends the variable substitution. |
3116 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3117 | |
3118 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
3119 | |
3120 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3121 | |
3122 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
3123 | echo "configure:3124: checking whether ln -s works" >&5 |
3124 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
3125 | echo $ac_n "(cached) $ac_c" 1>&6 |
3126 | else |
3127 | rm -f conftestdata |
3128 | if ln -s X conftestdata 2>/dev/null |
3129 | then |
3130 | rm -f conftestdata |
3131 | ac_cv_prog_LN_S="ln -s" |
3132 | else |
3133 | ac_cv_prog_LN_S=ln |
3134 | fi |
3135 | fi |
3136 | LN_S="$ac_cv_prog_LN_S" |
3137 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
3138 | echo "$ac_t""yes" 1>&6 |
3139 | else |
3140 | echo "$ac_t""no" 1>&6 |
3141 | fi |
3142 | |
3143 | for ac_prog in $PERL perl5 perl |
3144 | do |
3145 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3146 | set dummy $ac_prog; ac_word=$2 |
3147 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3148 | echo "configure:3149: checking for $ac_word" >&5 |
3149 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
3150 | echo $ac_n "(cached) $ac_c" 1>&6 |
3151 | else |
3152 | case "$PERL" in |
3153 | /*) |
3154 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
3155 | ;; |
3156 | ?:/*) |
3157 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
3158 | ;; |
3159 | *) |
3160 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3161 | ac_dummy="$PATH" |
3162 | for ac_dir in $ac_dummy; do |
3163 | test -z "$ac_dir" && ac_dir=. |
3164 | if test -f $ac_dir/$ac_word; then |
3165 | ac_cv_path_PERL="$ac_dir/$ac_word" |
3166 | break |
3167 | fi |
3168 | done |
3169 | IFS="$ac_save_ifs" |
3170 | ;; |
3171 | esac |
3172 | fi |
3173 | PERL="$ac_cv_path_PERL" |
3174 | if test -n "$PERL"; then |
3175 | echo "$ac_t""$PERL" 1>&6 |
3176 | else |
3177 | echo "$ac_t""no" 1>&6 |
3178 | fi |
3179 | |
3180 | test -n "$PERL" && break |
3181 | done |
3182 | |
3183 | if test -z "$PERL" || test "$PERL" = ":"; then |
3184 | { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; } |
3185 | fi |
3186 | |
3187 | if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then |
3188 | echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6 |
3189 | echo "configure:3190: checking for minimum required perl version >= $PERL_VERSION" >&5 |
3190 | _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5` |
3191 | _perl_res=$? |
3192 | echo "$ac_t""$_perl_version" 1>&6 |
3193 | |
3194 | if test "$_perl_res" != 0; then |
3195 | { echo "configure: error: Perl $PERL_VERSION or higher is required." 1>&2; exit 1; } |
3196 | fi |
3197 | fi |
3198 | |
3199 | echo $ac_n "checking for full perl installation""... $ac_c" 1>&6 |
3200 | echo "configure:3201: checking for full perl installation" >&5 |
3201 | _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5` |
3202 | _perl_res=$? |
3203 | if test "$_perl_res" != 0; then |
3204 | echo "$ac_t""no" 1>&6 |
3205 | { echo "configure: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." 1>&2; exit 1; } |
3206 | else |
3207 | echo "$ac_t""yes" 1>&6 |
3208 | fi |
3209 | |
3210 | for ac_prog in $PYTHON python |
3211 | do |
3212 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3213 | set dummy $ac_prog; ac_word=$2 |
3214 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3215 | echo "configure:3216: checking for $ac_word" >&5 |
3216 | if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then |
3217 | echo $ac_n "(cached) $ac_c" 1>&6 |
3218 | else |
3219 | case "$PYTHON" in |
3220 | /*) |
3221 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
3222 | ;; |
3223 | ?:/*) |
3224 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path. |
3225 | ;; |
3226 | *) |
3227 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3228 | ac_dummy="$PATH" |
3229 | for ac_dir in $ac_dummy; do |
3230 | test -z "$ac_dir" && ac_dir=. |
3231 | if test -f $ac_dir/$ac_word; then |
3232 | ac_cv_path_PYTHON="$ac_dir/$ac_word" |
3233 | break |
3234 | fi |
3235 | done |
3236 | IFS="$ac_save_ifs" |
3237 | ;; |
3238 | esac |
3239 | fi |
3240 | PYTHON="$ac_cv_path_PYTHON" |
3241 | if test -n "$PYTHON"; then |
3242 | echo "$ac_t""$PYTHON" 1>&6 |
3243 | else |
3244 | echo "$ac_t""no" 1>&6 |
3245 | fi |
3246 | |
3247 | test -n "$PYTHON" && break |
3248 | done |
3249 | |
3250 | if test -z "$PYTHON"; then |
3251 | { echo "configure: error: python was not found in \$PATH" 1>&2; exit 1; } |
3252 | fi |
3253 | |
3254 | for ac_prog in nsinstall |
3255 | do |
3256 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3257 | set dummy $ac_prog; ac_word=$2 |
3258 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3259 | echo "configure:3260: checking for $ac_word" >&5 |
3260 | if eval "test \"`echo '$''{'ac_cv_path_NSINSTALL_BIN'+set}'`\" = set"; then |
3261 | echo $ac_n "(cached) $ac_c" 1>&6 |
3262 | else |
3263 | case "$NSINSTALL_BIN" in |
3264 | /*) |
3265 | ac_cv_path_NSINSTALL_BIN="$NSINSTALL_BIN" # Let the user override the test with a path. |
3266 | ;; |
3267 | ?:/*) |
3268 | ac_cv_path_NSINSTALL_BIN="$NSINSTALL_BIN" # Let the user override the test with a dos path. |
3269 | ;; |
3270 | *) |
3271 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3272 | ac_dummy="$PATH" |
3273 | for ac_dir in $ac_dummy; do |
3274 | test -z "$ac_dir" && ac_dir=. |
3275 | if test -f $ac_dir/$ac_word; then |
3276 | ac_cv_path_NSINSTALL_BIN="$ac_dir/$ac_word" |
3277 | break |
3278 | fi |
3279 | done |
3280 | IFS="$ac_save_ifs" |
3281 | ;; |
3282 | esac |
3283 | fi |
3284 | NSINSTALL_BIN="$ac_cv_path_NSINSTALL_BIN" |
3285 | if test -n "$NSINSTALL_BIN"; then |
3286 | echo "$ac_t""$NSINSTALL_BIN" 1>&6 |
3287 | else |
3288 | echo "$ac_t""no" 1>&6 |
3289 | fi |
3290 | |
3291 | test -n "$NSINSTALL_BIN" && break |
3292 | done |
3293 | |
3294 | if test -z "$COMPILE_ENVIRONMENT"; then |
3295 | if test -z "$NSINSTALL_BIN" || test "$NSINSTALL_BIN" = ":"; then |
3296 | NSINSTALL_BIN='$(PYTHON) $(topsrcdir)/config/nsinstall.py' |
3297 | fi |
3298 | fi |
3299 | |
3300 | |
3301 | # Extract the first word of "doxygen", so it can be a program name with args. |
3302 | set dummy doxygen; ac_word=$2 |
3303 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3304 | echo "configure:3305: checking for $ac_word" >&5 |
3305 | if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then |
3306 | echo $ac_n "(cached) $ac_c" 1>&6 |
3307 | else |
3308 | case "$DOXYGEN" in |
3309 | /*) |
3310 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
3311 | ;; |
3312 | ?:/*) |
3313 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path. |
3314 | ;; |
3315 | *) |
3316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3317 | ac_dummy="$PATH" |
3318 | for ac_dir in $ac_dummy; do |
3319 | test -z "$ac_dir" && ac_dir=. |
3320 | if test -f $ac_dir/$ac_word; then |
3321 | ac_cv_path_DOXYGEN="$ac_dir/$ac_word" |
3322 | break |
3323 | fi |
3324 | done |
3325 | IFS="$ac_save_ifs" |
3326 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=":" |
3327 | ;; |
3328 | esac |
3329 | fi |
3330 | DOXYGEN="$ac_cv_path_DOXYGEN" |
3331 | if test -n "$DOXYGEN"; then |
3332 | echo "$ac_t""$DOXYGEN" 1>&6 |
3333 | else |
3334 | echo "$ac_t""no" 1>&6 |
3335 | fi |
3336 | |
3337 | # Extract the first word of "whoami", so it can be a program name with args. |
3338 | set dummy whoami; ac_word=$2 |
3339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3340 | echo "configure:3341: checking for $ac_word" >&5 |
3341 | if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then |
3342 | echo $ac_n "(cached) $ac_c" 1>&6 |
3343 | else |
3344 | case "$WHOAMI" in |
3345 | /*) |
3346 | ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. |
3347 | ;; |
3348 | ?:/*) |
3349 | ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path. |
3350 | ;; |
3351 | *) |
3352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3353 | ac_dummy="$PATH" |
3354 | for ac_dir in $ac_dummy; do |
3355 | test -z "$ac_dir" && ac_dir=. |
3356 | if test -f $ac_dir/$ac_word; then |
3357 | ac_cv_path_WHOAMI="$ac_dir/$ac_word" |
3358 | break |
3359 | fi |
3360 | done |
3361 | IFS="$ac_save_ifs" |
3362 | test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI=":" |
3363 | ;; |
3364 | esac |
3365 | fi |
3366 | WHOAMI="$ac_cv_path_WHOAMI" |
3367 | if test -n "$WHOAMI"; then |
3368 | echo "$ac_t""$WHOAMI" 1>&6 |
3369 | else |
3370 | echo "$ac_t""no" 1>&6 |
3371 | fi |
3372 | |
3373 | # Extract the first word of "autoconf", so it can be a program name with args. |
3374 | set dummy autoconf; ac_word=$2 |
3375 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3376 | echo "configure:3377: checking for $ac_word" >&5 |
3377 | if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then |
3378 | echo $ac_n "(cached) $ac_c" 1>&6 |
3379 | else |
3380 | case "$AUTOCONF" in |
3381 | /*) |
3382 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
3383 | ;; |
3384 | ?:/*) |
3385 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path. |
3386 | ;; |
3387 | *) |
3388 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3389 | ac_dummy="$PATH" |
3390 | for ac_dir in $ac_dummy; do |
3391 | test -z "$ac_dir" && ac_dir=. |
3392 | if test -f $ac_dir/$ac_word; then |
3393 | ac_cv_path_AUTOCONF="$ac_dir/$ac_word" |
3394 | break |
3395 | fi |
3396 | done |
3397 | IFS="$ac_save_ifs" |
3398 | test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF=":" |
3399 | ;; |
3400 | esac |
3401 | fi |
3402 | AUTOCONF="$ac_cv_path_AUTOCONF" |
3403 | if test -n "$AUTOCONF"; then |
3404 | echo "$ac_t""$AUTOCONF" 1>&6 |
3405 | else |
3406 | echo "$ac_t""no" 1>&6 |
3407 | fi |
3408 | |
3409 | # Extract the first word of "unzip", so it can be a program name with args. |
3410 | set dummy unzip; ac_word=$2 |
3411 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3412 | echo "configure:3413: checking for $ac_word" >&5 |
3413 | if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then |
3414 | echo $ac_n "(cached) $ac_c" 1>&6 |
3415 | else |
3416 | case "$UNZIP" in |
3417 | /*) |
3418 | ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. |
3419 | ;; |
3420 | ?:/*) |