]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
79c06341 | 2 | |
671aa708 NN |
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: | |
6de9cd9a DN |
14 | ac_help="$ac_help |
15 | --without-libbanshee Don't build with libbanshee" | |
d9cdb878 AC |
16 | ac_help="$ac_help |
17 | --enable-libada Builds libada directory" | |
6de9cd9a DN |
18 | ac_help="$ac_help |
19 | --with-gmp-dir=PATH Specify source directory for GMP library" | |
20 | ac_help="$ac_help | |
21 | --with-gmp=PATH Specify directory for installed GMP library" | |
f516a7da PB |
22 | ac_help="$ac_help |
23 | --enable-bootstrap Enable bootstrapping [no]" | |
ade82b16 | 24 | ac_help="$ac_help |
bf1d3e81 NN |
25 | --enable-serial-[{host,target,build}-]configure |
26 | Force sequential configuration of | |
ade82b16 | 27 | sub-packages for the host, target or build |
bf1d3e81 | 28 | machine, or all sub-packages" |
ee03dc5e AO |
29 | ac_help="$ac_help |
30 | --enable-maintainer-mode enable make rules and dependencies not useful | |
31 | (and sometimes confusing) to the casual installer" | |
2805b53a NN |
32 | ac_help="$ac_help |
33 | --enable-werror enable -Werror in bootstrap stage2 and later" | |
671aa708 NN |
34 | |
35 | # Initialize some variables set by options. | |
36 | # The variables have the same names as the options, with | |
37 | # dashes changed to underlines. | |
38 | build=NONE | |
39 | cache_file=./config.cache | |
40 | exec_prefix=NONE | |
41 | host=NONE | |
42 | no_create= | |
43 | nonopt=NONE | |
44 | no_recursion= | |
45 | prefix=NONE | |
46 | program_prefix=NONE | |
47 | program_suffix=NONE | |
48 | program_transform_name=s,x,x, | |
49 | silent= | |
50 | site= | |
51 | srcdir= | |
52 | target=NONE | |
53 | verbose= | |
54 | x_includes=NONE | |
55 | x_libraries=NONE | |
56 | bindir='${exec_prefix}/bin' | |
57 | sbindir='${exec_prefix}/sbin' | |
58 | libexecdir='${exec_prefix}/libexec' | |
59 | datadir='${prefix}/share' | |
60 | sysconfdir='${prefix}/etc' | |
61 | sharedstatedir='${prefix}/com' | |
62 | localstatedir='${prefix}/var' | |
63 | libdir='${exec_prefix}/lib' | |
64 | includedir='${prefix}/include' | |
65 | oldincludedir='/usr/include' | |
66 | infodir='${prefix}/info' | |
67 | mandir='${prefix}/man' | |
79c06341 | 68 | |
671aa708 NN |
69 | # Initialize some other variables. |
70 | subdirs= | |
71 | MFLAGS= MAKEFLAGS= | |
72 | SHELL=${CONFIG_SHELL-/bin/sh} | |
73 | # Maximum number of lines to put in a shell here document. | |
74 | ac_max_here_lines=12 | |
79c06341 | 75 | |
671aa708 NN |
76 | ac_prev= |
77 | for ac_option | |
78 | do | |
79c06341 | 79 | |
671aa708 NN |
80 | # If the previous option needs an argument, assign it. |
81 | if test -n "$ac_prev"; then | |
82 | eval "$ac_prev=\$ac_option" | |
83 | ac_prev= | |
84 | continue | |
85 | fi | |
79c06341 | 86 | |
671aa708 NN |
87 | case "$ac_option" in |
88 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
89 | *) ac_optarg= ;; | |
90 | esac | |
91 | ||
92 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
93 | ||
94 | case "$ac_option" in | |
95 | ||
96 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
97 | ac_prev=bindir ;; | |
98 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
99 | bindir="$ac_optarg" ;; | |
100 | ||
101 | -build | --build | --buil | --bui | --bu) | |
102 | ac_prev=build ;; | |
103 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
104 | build="$ac_optarg" ;; | |
105 | ||
106 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
107 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
108 | ac_prev=cache_file ;; | |
109 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
110 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
111 | cache_file="$ac_optarg" ;; | |
112 | ||
113 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
114 | ac_prev=datadir ;; | |
115 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
116 | | --da=*) | |
117 | datadir="$ac_optarg" ;; | |
118 | ||
119 | -disable-* | --disable-*) | |
120 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
121 | # Reject names that are not valid shell variable names. | |
122 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
123 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
124 | fi | |
125 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
126 | eval "enable_${ac_feature}=no" ;; | |
127 | ||
128 | -enable-* | --enable-*) | |
129 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
130 | # Reject names that are not valid shell variable names. | |
131 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 | fi | |
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 | case "$ac_option" in | |
136 | *=*) ;; | |
137 | *) ac_optarg=yes ;; | |
138 | esac | |
139 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
140 | ||
141 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
142 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
143 | | --exec | --exe | --ex) | |
144 | ac_prev=exec_prefix ;; | |
145 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
146 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
147 | | --exec=* | --exe=* | --ex=*) | |
148 | exec_prefix="$ac_optarg" ;; | |
149 | ||
150 | -gas | --gas | --ga | --g) | |
151 | # Obsolete; use --with-gas. | |
152 | with_gas=yes ;; | |
153 | ||
154 | -help | --help | --hel | --he) | |
155 | # Omit some internal or obsolete options to make the list less imposing. | |
156 | # This message is too long to be a string in the A/UX 3.1 sh. | |
157 | cat << EOF | |
158 | Usage: configure [options] [host] | |
159 | Options: [defaults in brackets after descriptions] | |
160 | Configuration: | |
161 | --cache-file=FILE cache test results in FILE | |
162 | --help print this message | |
163 | --no-create do not create output files | |
164 | --quiet, --silent do not print \`checking...' messages | |
165 | --version print the version of autoconf that created configure | |
166 | Directory and file names: | |
167 | --prefix=PREFIX install architecture-independent files in PREFIX | |
168 | [$ac_default_prefix] | |
169 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
170 | [same as prefix] | |
171 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
172 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
173 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
174 | --datadir=DIR read-only architecture-independent data in DIR | |
175 | [PREFIX/share] | |
176 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
177 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
178 | [PREFIX/com] | |
179 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
180 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
181 | --includedir=DIR C header files in DIR [PREFIX/include] | |
182 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
183 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
184 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
185 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
186 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
187 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
188 | --program-transform-name=PROGRAM | |
189 | run sed PROGRAM on installed program names | |
190 | EOF | |
191 | cat << EOF | |
192 | Host type: | |
193 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
194 | --host=HOST configure for HOST [guessed] | |
195 | --target=TARGET configure for TARGET [TARGET=HOST] | |
196 | Features and packages: | |
197 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
198 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
199 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
200 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
201 | --x-includes=DIR X include files are in DIR | |
202 | --x-libraries=DIR X library files are in DIR | |
203 | EOF | |
204 | if test -n "$ac_help"; then | |
205 | echo "--enable and --with options recognized:$ac_help" | |
206 | fi | |
207 | exit 0 ;; | |
208 | ||
209 | -host | --host | --hos | --ho) | |
210 | ac_prev=host ;; | |
211 | -host=* | --host=* | --hos=* | --ho=*) | |
212 | host="$ac_optarg" ;; | |
213 | ||
214 | -includedir | --includedir | --includedi | --included | --include \ | |
215 | | --includ | --inclu | --incl | --inc) | |
216 | ac_prev=includedir ;; | |
217 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
218 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
219 | includedir="$ac_optarg" ;; | |
220 | ||
221 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
222 | ac_prev=infodir ;; | |
223 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
224 | infodir="$ac_optarg" ;; | |
225 | ||
226 | -libdir | --libdir | --libdi | --libd) | |
227 | ac_prev=libdir ;; | |
228 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
229 | libdir="$ac_optarg" ;; | |
230 | ||
231 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
232 | | --libexe | --libex | --libe) | |
233 | ac_prev=libexecdir ;; | |
234 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
235 | | --libexe=* | --libex=* | --libe=*) | |
236 | libexecdir="$ac_optarg" ;; | |
237 | ||
238 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
239 | | --localstate | --localstat | --localsta | --localst \ | |
240 | | --locals | --local | --loca | --loc | --lo) | |
241 | ac_prev=localstatedir ;; | |
242 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
243 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
244 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
245 | localstatedir="$ac_optarg" ;; | |
246 | ||
247 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
248 | ac_prev=mandir ;; | |
249 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
250 | mandir="$ac_optarg" ;; | |
251 | ||
252 | -nfp | --nfp | --nf) | |
253 | # Obsolete; use --without-fp. | |
254 | with_fp=no ;; | |
255 | ||
256 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
257 | | --no-cr | --no-c) | |
258 | no_create=yes ;; | |
259 | ||
260 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
261 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
262 | no_recursion=yes ;; | |
263 | ||
264 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
265 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
266 | | --oldin | --oldi | --old | --ol | --o) | |
267 | ac_prev=oldincludedir ;; | |
268 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
269 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
270 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
271 | oldincludedir="$ac_optarg" ;; | |
272 | ||
273 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
274 | ac_prev=prefix ;; | |
275 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
276 | prefix="$ac_optarg" ;; | |
277 | ||
278 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
279 | | --program-pre | --program-pr | --program-p) | |
280 | ac_prev=program_prefix ;; | |
281 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
282 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
283 | program_prefix="$ac_optarg" ;; | |
284 | ||
285 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
286 | | --program-suf | --program-su | --program-s) | |
287 | ac_prev=program_suffix ;; | |
288 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
289 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
290 | program_suffix="$ac_optarg" ;; | |
291 | ||
292 | -program-transform-name | --program-transform-name \ | |
293 | | --program-transform-nam | --program-transform-na \ | |
294 | | --program-transform-n | --program-transform- \ | |
295 | | --program-transform | --program-transfor \ | |
296 | | --program-transfo | --program-transf \ | |
297 | | --program-trans | --program-tran \ | |
298 | | --progr-tra | --program-tr | --program-t) | |
299 | ac_prev=program_transform_name ;; | |
300 | -program-transform-name=* | --program-transform-name=* \ | |
301 | | --program-transform-nam=* | --program-transform-na=* \ | |
302 | | --program-transform-n=* | --program-transform-=* \ | |
303 | | --program-transform=* | --program-transfor=* \ | |
304 | | --program-transfo=* | --program-transf=* \ | |
305 | | --program-trans=* | --program-tran=* \ | |
306 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
307 | program_transform_name="$ac_optarg" ;; | |
308 | ||
309 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
310 | | -silent | --silent | --silen | --sile | --sil) | |
311 | silent=yes ;; | |
312 | ||
313 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
314 | ac_prev=sbindir ;; | |
315 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
316 | | --sbi=* | --sb=*) | |
317 | sbindir="$ac_optarg" ;; | |
318 | ||
319 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
320 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
321 | | --sharedst | --shareds | --shared | --share | --shar \ | |
322 | | --sha | --sh) | |
323 | ac_prev=sharedstatedir ;; | |
324 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
325 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
326 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
327 | | --sha=* | --sh=*) | |
328 | sharedstatedir="$ac_optarg" ;; | |
329 | ||
330 | -site | --site | --sit) | |
331 | ac_prev=site ;; | |
332 | -site=* | --site=* | --sit=*) | |
333 | site="$ac_optarg" ;; | |
334 | ||
335 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
336 | ac_prev=srcdir ;; | |
337 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
338 | srcdir="$ac_optarg" ;; | |
339 | ||
340 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
341 | | --syscon | --sysco | --sysc | --sys | --sy) | |
342 | ac_prev=sysconfdir ;; | |
343 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
344 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
345 | sysconfdir="$ac_optarg" ;; | |
346 | ||
347 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
348 | ac_prev=target ;; | |
349 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
350 | target="$ac_optarg" ;; | |
351 | ||
352 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
353 | verbose=yes ;; | |
354 | ||
355 | -version | --version | --versio | --versi | --vers) | |
356 | echo "configure generated by autoconf version 2.13" | |
357 | exit 0 ;; | |
358 | ||
359 | -with-* | --with-*) | |
360 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
361 | # Reject names that are not valid shell variable names. | |
362 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
363 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
364 | fi | |
365 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
366 | case "$ac_option" in | |
367 | *=*) ;; | |
368 | *) ac_optarg=yes ;; | |
369 | esac | |
370 | eval "with_${ac_package}='$ac_optarg'" ;; | |
371 | ||
372 | -without-* | --without-*) | |
373 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
374 | # Reject names that are not valid shell variable names. | |
375 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
376 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
377 | fi | |
378 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
379 | eval "with_${ac_package}=no" ;; | |
380 | ||
381 | --x) | |
382 | # Obsolete; use --with-x. | |
383 | with_x=yes ;; | |
384 | ||
385 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
386 | | --x-incl | --x-inc | --x-in | --x-i) | |
387 | ac_prev=x_includes ;; | |
388 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
389 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
390 | x_includes="$ac_optarg" ;; | |
391 | ||
392 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
393 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
394 | ac_prev=x_libraries ;; | |
395 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
396 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
397 | x_libraries="$ac_optarg" ;; | |
398 | ||
399 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
400 | ;; | |
401 | ||
402 | *) | |
403 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
404 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
405 | fi | |
406 | if test "x$nonopt" != xNONE; then | |
407 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
408 | fi | |
409 | nonopt="$ac_option" | |
410 | ;; | |
411 | ||
412 | esac | |
413 | done | |
414 | ||
415 | if test -n "$ac_prev"; then | |
416 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
417 | fi | |
418 | ||
419 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
420 | ||
421 | # File descriptor usage: | |
422 | # 0 standard input | |
423 | # 1 file creation | |
424 | # 2 errors and warnings | |
425 | # 3 some systems may open it to /dev/tty | |
426 | # 4 used on the Kubota Titan | |
427 | # 6 checking for... messages and results | |
428 | # 5 compiler messages saved in config.log | |
429 | if test "$silent" = yes; then | |
430 | exec 6>/dev/null | |
431 | else | |
432 | exec 6>&1 | |
433 | fi | |
434 | exec 5>./config.log | |
435 | ||
436 | echo "\ | |
437 | This file contains any messages produced by compilers while | |
438 | running configure, to aid debugging if configure makes a mistake. | |
439 | " 1>&5 | |
440 | ||
441 | # Strip out --no-create and --no-recursion so they do not pile up. | |
442 | # Also quote any args containing shell metacharacters. | |
443 | ac_configure_args= | |
444 | for ac_arg | |
445 | do | |
446 | case "$ac_arg" in | |
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
448 | | --no-cr | --no-c) ;; | |
449 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
450 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
451 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
452 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
453 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
454 | esac | |
455 | done | |
456 | ||
457 | # NLS nuisances. | |
458 | # Only set these to C if already set. These must not be set unconditionally | |
459 | # because not all systems understand e.g. LANG=C (notably SCO). | |
460 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
461 | # Non-C LC_CTYPE values break the ctype check. | |
462 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
463 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
464 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
465 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
466 | ||
467 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
468 | rm -rf conftest* confdefs.h | |
469 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
470 | echo > confdefs.h | |
471 | ||
472 | # A filename unique to this package, relative to the directory that | |
473 | # configure is in, which we can look for to find out if srcdir is correct. | |
474 | ac_unique_file=move-if-change | |
475 | ||
476 | # Find the source files, if location was not specified. | |
477 | if test -z "$srcdir"; then | |
478 | ac_srcdir_defaulted=yes | |
479 | # Try the directory containing this script, then its parent. | |
480 | ac_prog=$0 | |
481 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
482 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
483 | srcdir=$ac_confdir | |
484 | if test ! -r $srcdir/$ac_unique_file; then | |
485 | srcdir=.. | |
486 | fi | |
487 | else | |
488 | ac_srcdir_defaulted=no | |
489 | fi | |
490 | if test ! -r $srcdir/$ac_unique_file; then | |
491 | if test "$ac_srcdir_defaulted" = yes; then | |
492 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
493 | else | |
494 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
495 | fi | |
496 | fi | |
497 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
498 | ||
499 | # Prefer explicitly selected file to automatically selected ones. | |
25b656e7 PB |
500 | if test -z "$CONFIG_SITE"; then |
501 | if test "x$prefix" != xNONE; then | |
502 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
503 | else | |
504 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
671aa708 NN |
505 | fi |
506 | fi | |
507 | for ac_site_file in $CONFIG_SITE; do | |
508 | if test -r "$ac_site_file"; then | |
509 | echo "loading site script $ac_site_file" | |
510 | . "$ac_site_file" | |
511 | fi | |
512 | done | |
513 | ||
514 | if test -r "$cache_file"; then | |
515 | echo "loading cache $cache_file" | |
516 | . $cache_file | |
517 | else | |
518 | echo "creating cache $cache_file" | |
519 | > $cache_file | |
520 | fi | |
521 | ||
522 | ac_ext=c | |
523 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
524 | ac_cpp='$CPP $CPPFLAGS' | |
525 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
526 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
527 | cross_compiling=$ac_cv_prog_cc_cross | |
528 | ||
529 | ac_exeext= | |
530 | ac_objext=o | |
531 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
532 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
533 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
534 | ac_n= ac_c=' | |
535 | ' ac_t=' ' | |
536 | else | |
537 | ac_n=-n ac_c= ac_t= | |
538 | fi | |
539 | else | |
540 | ac_n= ac_c='\c' ac_t= | |
541 | fi | |
542 | ||
543 | ||
d02c69be | 544 | |
671aa708 NN |
545 | ac_aux_dir= |
546 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
547 | if test -f $ac_dir/install-sh; then | |
548 | ac_aux_dir=$ac_dir | |
549 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
550 | break | |
551 | elif test -f $ac_dir/install.sh; then | |
552 | ac_aux_dir=$ac_dir | |
553 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
554 | break | |
555 | fi | |
556 | done | |
557 | if test -z "$ac_aux_dir"; then | |
558 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
559 | fi | |
560 | ac_config_guess=$ac_aux_dir/config.guess | |
561 | ac_config_sub=$ac_aux_dir/config.sub | |
562 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
563 | ||
564 | ||
565 | # Do some error checking and defaulting for the host and target type. | |
566 | # The inputs are: | |
567 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
79c06341 | 568 | # |
671aa708 NN |
569 | # The rules are: |
570 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
571 | # same time. | |
572 | # 2. Host defaults to nonopt. | |
573 | # 3. If nonopt is not specified, then host defaults to the current host, | |
574 | # as determined by config.guess. | |
575 | # 4. Target and build default to nonopt. | |
576 | # 5. If nonopt is not specified, then target and build default to host. | |
577 | ||
578 | # The aliases save the names the user supplied, while $host etc. | |
579 | # will get canonicalized. | |
580 | case $host---$target---$nonopt in | |
581 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
582 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
583 | esac | |
584 | ||
585 | ||
586 | # Make sure we can run config.sub. | |
587 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
588 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
589 | fi | |
590 | ||
591 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
25b656e7 | 592 | echo "configure:593: checking host system type" >&5 |
671aa708 NN |
593 | |
594 | host_alias=$host | |
595 | case "$host_alias" in | |
596 | NONE) | |
597 | case $nonopt in | |
598 | NONE) | |
599 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
600 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
601 | fi ;; | |
602 | *) host_alias=$nonopt ;; | |
603 | esac ;; | |
604 | esac | |
605 | ||
606 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
607 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
608 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
609 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
610 | echo "$ac_t""$host" 1>&6 | |
611 | ||
612 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
25b656e7 | 613 | echo "configure:614: checking target system type" >&5 |
671aa708 NN |
614 | |
615 | target_alias=$target | |
616 | case "$target_alias" in | |
617 | NONE) | |
618 | case $nonopt in | |
619 | NONE) target_alias=$host_alias ;; | |
620 | *) target_alias=$nonopt ;; | |
621 | esac ;; | |
622 | esac | |
623 | ||
624 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
625 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
626 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
627 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
628 | echo "$ac_t""$target" 1>&6 | |
629 | ||
630 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
25b656e7 | 631 | echo "configure:632: checking build system type" >&5 |
671aa708 NN |
632 | |
633 | build_alias=$build | |
634 | case "$build_alias" in | |
635 | NONE) | |
636 | case $nonopt in | |
637 | NONE) build_alias=$host_alias ;; | |
638 | *) build_alias=$nonopt ;; | |
639 | esac ;; | |
640 | esac | |
641 | ||
642 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
643 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
644 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
645 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
646 | echo "$ac_t""$build" 1>&6 | |
647 | ||
648 | test "$host_alias" != "$target_alias" && | |
649 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
650 | NONENONEs,x,x, && | |
651 | program_prefix=${target_alias}- | |
652 | ||
653 | if test "$program_transform_name" = s,x,x,; then | |
654 | program_transform_name= | |
655 | else | |
656 | # Double any \ or $. echo might interpret backslashes. | |
657 | cat <<\EOF_SED > conftestsed | |
658 | s,\\,\\\\,g; s,\$,$$,g | |
659 | EOF_SED | |
660 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
661 | rm -f conftestsed | |
662 | fi | |
663 | test "$program_prefix" != NONE && | |
664 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
665 | # Use a double $ so make ignores it. | |
666 | test "$program_suffix" != NONE && | |
667 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
668 | ||
669 | # sed with no file args requires a program. | |
670 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
671 | ||
672 | ||
775956d0 NN |
673 | # Get 'install' or 'install-sh' and its variants. |
674 | # Find a good install program. We prefer a C program (faster), | |
675 | # so one script is as good as another. But avoid the broken or | |
676 | # incompatible versions: | |
677 | # SysV /etc/install, /usr/sbin/install | |
678 | # SunOS /usr/etc/install | |
679 | # IRIX /sbin/install | |
680 | # AIX /bin/install | |
681 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
682 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
683 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
684 | # ./install, which can be erroneously created by make from ./install.sh. | |
685 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
25b656e7 | 686 | echo "configure:687: checking for a BSD compatible install" >&5 |
775956d0 NN |
687 | if test -z "$INSTALL"; then |
688 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
690 | else | |
691 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
692 | for ac_dir in $PATH; do | |
693 | # Account for people who put trailing slashes in PATH elements. | |
694 | case "$ac_dir/" in | |
695 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
696 | *) | |
697 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
698 | # Don't use installbsd from OSF since it installs stuff as root | |
699 | # by default. | |
700 | for ac_prog in ginstall scoinst install; do | |
701 | if test -f $ac_dir/$ac_prog; then | |
702 | if test $ac_prog = install && | |
703 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
704 | # AIX install. It has an incompatible calling convention. | |
705 | : | |
706 | else | |
707 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
708 | break 2 | |
709 | fi | |
710 | fi | |
711 | done | |
712 | ;; | |
713 | esac | |
714 | done | |
715 | IFS="$ac_save_IFS" | |
716 | ||
717 | fi | |
718 | if test "${ac_cv_path_install+set}" = set; then | |
719 | INSTALL="$ac_cv_path_install" | |
720 | else | |
721 | # As a last resort, use the slow shell script. We don't cache a | |
722 | # path for INSTALL within a source directory, because that will | |
723 | # break other packages using the cache if that directory is | |
724 | # removed, or if the path is relative. | |
725 | INSTALL="$ac_install_sh" | |
726 | fi | |
727 | fi | |
728 | echo "$ac_t""$INSTALL" 1>&6 | |
729 | ||
730 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
731 | # It thinks the first close brace ends the variable substitution. | |
732 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
733 | ||
734 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
735 | ||
736 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
737 | ||
ad6717df | 738 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
25b656e7 | 739 | echo "configure:740: checking whether ln works" >&5 |
ad6717df PB |
740 | if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then |
741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
742 | else | |
743 | rm -f conftestdata_t | |
744 | echo >conftestdata_f | |
745 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
746 | then | |
747 | acx_cv_prog_LN=ln | |
748 | else | |
749 | acx_cv_prog_LN=no | |
750 | fi | |
751 | rm -f conftestdata_f conftestdata_t | |
752 | ||
753 | fi | |
754 | if test $acx_cv_prog_LN = no; then | |
755 | LN="cp" | |
756 | echo "$ac_t""no, using $LN" 1>&6 | |
757 | else | |
758 | LN="$acx_cv_prog_LN" | |
759 | echo "$ac_t""yes" 1>&6 | |
760 | fi | |
761 | ||
148907ea | 762 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
25b656e7 | 763 | echo "configure:764: checking whether ln -s works" >&5 |
148907ea PB |
764 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
766 | else | |
767 | rm -f conftestdata | |
768 | if ln -s X conftestdata 2>/dev/null | |
769 | then | |
770 | rm -f conftestdata | |
771 | ac_cv_prog_LN_S="ln -s" | |
772 | else | |
773 | ac_cv_prog_LN_S=ln | |
774 | fi | |
775 | fi | |
776 | LN_S="$ac_cv_prog_LN_S" | |
777 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
778 | echo "$ac_t""yes" 1>&6 | |
779 | else | |
780 | echo "$ac_t""no" 1>&6 | |
781 | fi | |
782 | ||
775956d0 | 783 | |
79c06341 | 784 | ### we might need to use some other shell than /bin/sh for running subshells |
79c06341 JL |
785 | ### If we are on Windows, search for the shell. This will permit people |
786 | ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure | |
787 | ### without also having to set CONFIG_SHELL. This code will work when | |
788 | ### using bash, which sets OSTYPE. | |
789 | case "${OSTYPE}" in | |
790 | *win32*) | |
671aa708 NN |
791 | if test x${CONFIG_SHELL} = x ; then |
792 | if test ! -f /bin/sh ; then | |
793 | if test x${SHELL} != x && test -f ${SHELL} ; then | |
79c06341 JL |
794 | CONFIG_SHELL=${SHELL} |
795 | export CONFIG_SHELL | |
796 | else | |
797 | for prog in sh sh.exe bash bash.exe; do | |
798 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
799 | for dir in $PATH; do | |
800 | test -z "$dir" && dir=. | |
801 | if test -f $dir/$prog; then | |
802 | CONFIG_SHELL=$dir/$prog | |
803 | export CONFIG_SHELL | |
804 | break | |
805 | fi | |
806 | done | |
807 | IFS="$save_ifs" | |
808 | test -n "${CONFIG_SHELL}" && break | |
809 | done | |
810 | fi | |
811 | fi | |
812 | fi | |
813 | ;; | |
814 | esac | |
815 | ||
816 | config_shell=${CONFIG_SHELL-/bin/sh} | |
817 | ||
79c06341 JL |
818 | progname=$0 |
819 | # if PWD already has a value, it is probably wrong. | |
671aa708 | 820 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi |
79c06341 | 821 | |
b348267b | 822 | # Export original configure arguments for use by sub-configures. These |
eeae7b41 DJ |
823 | # will be expanded by make, so quote '$'. |
824 | tmp="$progname $@" | |
825 | sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out | |
826 | $tmp | |
b348267b | 827 | EOF_SED |
eeae7b41 DJ |
828 | TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` |
829 | rm -f conftestsed.out | |
3dfabf63 | 830 | |
cc1e60ea | 831 | |
671aa708 | 832 | moveifchange=${srcdir}/move-if-change |
79c06341 | 833 | |
671aa708 NN |
834 | # Set srcdir to "." if that's what it is. |
835 | # This is important for multilib support. | |
836 | pwd=`${PWDCMD-pwd}` | |
837 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` | |
838 | if test "${pwd}" = "${srcpwd}" ; then | |
839 | srcdir=. | |
79c06341 JL |
840 | fi |
841 | ||
671aa708 | 842 | topsrcdir=$srcpwd |
5d4a5ee6 | 843 | |
671aa708 NN |
844 | extra_host_args= |
845 | # Define the trigger file to make sure configure will re-run whenever | |
846 | # the gcc version number changes. | |
847 | if test "${with_gcc_version_trigger+set}" = set ; then | |
848 | gcc_version_trigger="$with_gcc_version_trigger" | |
849 | gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` | |
79c06341 | 850 | else |
671aa708 NN |
851 | # If gcc's sources are available, define the trigger file. |
852 | if test -f ${topsrcdir}/gcc/version.c ; then | |
853 | gcc_version_trigger=${topsrcdir}/gcc/version.c | |
854 | gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` | |
855 | case "$ac_configure_args" in | |
856 | *--with-gcc-version-trigger=$gcc_version_trigger* ) | |
857 | ;; | |
858 | * ) | |
859 | # Add to all subconfigure arguments: build, host, and target. | |
ade82b16 | 860 | ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger" |
671aa708 NN |
861 | ;; |
862 | esac | |
863 | fi | |
79c06341 JL |
864 | fi |
865 | ||
671aa708 NN |
866 | ### To add a new directory to the tree, first choose whether it is a target |
867 | ### or a host dependent tool. Then put it into the appropriate list | |
868 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 869 | |
671aa708 NN |
870 | # Subdirs will be configured in the order listed in build_configdirs, |
871 | # configdirs, or target_configdirs; see the serialization section below. | |
79c06341 | 872 | |
671aa708 NN |
873 | # Dependency sorting is only needed when *configuration* must be done in |
874 | # a particular order. In all cases a dependency should be specified in | |
875 | # the Makefile, whether or not it's implicitly specified here. | |
79c06341 | 876 | |
671aa708 NN |
877 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
878 | # cause circular dependencies and break everything horribly. | |
79c06341 | 879 | |
23f6b2f9 PB |
880 | # these library is used by various programs built for the build |
881 | # environment | |
882 | # | |
883 | build_libs="build-libiberty" | |
884 | ||
885 | # these tools are built for the build environment | |
886 | build_tools="build-texinfo build-byacc build-flex build-bison build-m4" | |
887 | ||
671aa708 NN |
888 | # these libraries are used by various programs built for the host environment |
889 | # | |
4f4e53dd | 890 | host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp" |
671aa708 | 891 | |
671aa708 NN |
892 | # these tools are built for the host environment |
893 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
894 | # know that we are building the simulator. | |
895 | # binutils, gas and ld appear in that order because it makes sense to run | |
896 | # "make check" in that particular order. | |
98a5bb3b | 897 | host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" |
671aa708 NN |
898 | |
899 | # libgcj represents the runtime libraries only used by gcj. | |
900 | libgcj="target-libffi \ | |
901 | target-boehm-gc \ | |
902 | target-zlib \ | |
903 | target-qthreads \ | |
904 | target-libjava" | |
905 | ||
906 | # these libraries are built for the target environment, and are built after | |
907 | # the host libraries and the host tools (which may be a cross compiler) | |
908 | # | |
4dbda6f0 | 909 | target_libraries="target-libiberty \ |
671aa708 NN |
910 | target-libgloss \ |
911 | target-newlib \ | |
cb543528 | 912 | target-libstdc++-v3 \ |
6de9cd9a | 913 | target-libmudflap \ |
6de9cd9a | 914 | target-libgfortran \ |
77d187bc | 915 | ${libgcj} \ |
d9cdb878 AC |
916 | target-libobjc \ |
917 | target-libada" | |
671aa708 | 918 | |
4dbda6f0 NN |
919 | # these tools are built using the target libraries, and are intended to |
920 | # run only in the target environment | |
671aa708 | 921 | # |
4dbda6f0 | 922 | # note: any program that *uses* libraries that are in the "target_libraries" |
671aa708 NN |
923 | # list belongs in this list. those programs are also very likely |
924 | # candidates for the "native_only" list which follows | |
925 | # | |
97286f7f | 926 | target_tools="target-examples target-groff target-gperf target-rda" |
79c06341 | 927 | |
671aa708 | 928 | ################################################################################ |
79c06341 | 929 | |
671aa708 NN |
930 | ## All tools belong in one of the four categories, and are assigned above |
931 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
932 | ## is important because configure will choke if they ever get through. | |
933 | ## ${configdirs} is directories we build using the host tools. | |
934 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 935 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 936 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
79c06341 | 937 | |
8b87bb96 | 938 | # Only make build modules if build != host. |
8b87bb96 | 939 | if test ${host_alias} != ${build_alias} ; then |
23f6b2f9 | 940 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 NN |
941 | fi |
942 | ||
671aa708 | 943 | ################################################################################ |
79c06341 | 944 | |
671aa708 | 945 | srcname="gnu development package" |
79c06341 | 946 | |
671aa708 NN |
947 | # This gets set non-empty for some net releases of packages. |
948 | appdirs="" | |
79c06341 | 949 | |
671aa708 NN |
950 | # Define is_cross_compiler to save on calls to 'test'. |
951 | is_cross_compiler= | |
952 | if test x"${host}" = x"${target}" ; then | |
953 | is_cross_compiler=no | |
79c06341 | 954 | else |
671aa708 NN |
955 | is_cross_compiler=yes |
956 | fi | |
79c06341 | 957 | |
b4acb5ef | 958 | # Find the build and target subdir names. |
8b87bb96 NN |
959 | case ${build_alias} in |
960 | "") build_noncanonical=${build} ;; | |
961 | *) build_noncanonical=${build_alias} ;; | |
962 | esac | |
963 | ||
964 | case ${host_alias} in | |
965 | "") host_noncanonical=${build_noncanonical} ;; | |
966 | *) host_noncanonical=${host_alias} ;; | |
967 | esac | |
968 | ||
969 | case ${target_alias} in | |
970 | "") target_noncanonical=${host_noncanonical} ;; | |
971 | *) target_noncanonical=${target_alias} ;; | |
972 | esac | |
973 | ||
974 | # Prefix 'build-' so this never conflicts with target_subdir. | |
975 | build_subdir="build-${build_noncanonical}" | |
976 | # Not really a subdirectory, but here for completeness. | |
977 | host_subdir=. | |
978 | # No prefix. | |
979 | target_subdir=${target_noncanonical} | |
980 | ||
79c06341 | 981 | |
671aa708 NN |
982 | # Skipdirs are removed silently. |
983 | skipdirs= | |
984 | # Noconfigdirs are removed loudly. | |
985 | noconfigdirs="" | |
79c06341 | 986 | |
671aa708 NN |
987 | use_gnu_ld= |
988 | # Make sure we don't let GNU ld be added if we didn't want it. | |
989 | if test x$with_gnu_ld = xno ; then | |
990 | use_gnu_ld=no | |
991 | noconfigdirs="$noconfigdirs ld" | |
79c06341 JL |
992 | fi |
993 | ||
671aa708 NN |
994 | use_gnu_as= |
995 | # Make sure we don't let GNU as be added if we didn't want it. | |
996 | if test x$with_gnu_as = xno ; then | |
997 | use_gnu_as=no | |
998 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
999 | fi |
1000 | ||
671aa708 NN |
1001 | # some tools are so dependent upon X11 that if we're not building with X, |
1002 | # it's not even worth trying to configure, much less build, that tool. | |
79c06341 | 1003 | |
671aa708 NN |
1004 | case ${with_x} in |
1005 | yes | "") ;; # the default value for this tree is that X11 is available | |
1006 | no) | |
1007 | skipdirs="${skipdirs} tk tix itcl libgui" | |
1008 | # We won't be able to build gdbtk without X. | |
1009 | enable_gdbtk=no | |
1010 | ;; | |
1011 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
1012 | esac | |
79c06341 | 1013 | |
671aa708 NN |
1014 | # Some tools are only suitable for building in a "native" situation. |
1015 | # Remove these if host!=target. | |
61b56b2e | 1016 | native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" |
79c06341 | 1017 | |
671aa708 NN |
1018 | # Similarly, some are only suitable for cross toolchains. |
1019 | # Remove these if host=target. | |
1020 | cross_only="target-libgloss target-newlib target-opcodes" | |
1021 | ||
1022 | case $is_cross_compiler in | |
1023 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
1024 | yes) skipdirs="${skipdirs} ${native_only}" ;; | |
1025 | esac | |
79c06341 | 1026 | |
671aa708 NN |
1027 | # If both --with-headers and --with-libs are specified, default to |
1028 | # --without-newlib. | |
078cfb66 GK |
1029 | if test x"${with_headers}" != x && test x"${with_headers} != xno \ |
1030 | && test x"${with_libs}" != x && test x"${with_libs} != xno ; then | |
671aa708 NN |
1031 | if test x"${with_newlib}" = x ; then |
1032 | with_newlib=no | |
1033 | fi | |
79c06341 JL |
1034 | fi |
1035 | ||
671aa708 NN |
1036 | # Recognize --with-newlib/--without-newlib. |
1037 | case ${with_newlib} in | |
1038 | no) skipdirs="${skipdirs} target-newlib" ;; | |
1039 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
1040 | esac | |
79c06341 | 1041 | |
671aa708 | 1042 | # Configure extra directories which are host specific |
79c06341 | 1043 | |
671aa708 NN |
1044 | case "${host}" in |
1045 | *-cygwin*) | |
1046 | configdirs="$configdirs libtermcap" ;; | |
1047 | esac | |
79c06341 | 1048 | |
671aa708 NN |
1049 | # Remove more programs from consideration, based on the host or |
1050 | # target this usually means that a port of the program doesn't | |
1051 | # exist yet. | |
ec8d6ddc | 1052 | |
671aa708 NN |
1053 | case "${host}" in |
1054 | hppa*64*-*-*) | |
1055 | noconfigdirs="$noconfigdirs byacc" | |
1056 | ;; | |
f2a0e225 | 1057 | i[3456789]86-*-vsta) |
a22c2d8d | 1058 | noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext" |
671aa708 | 1059 | ;; |
f2a0e225 | 1060 | i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) |
a22c2d8d | 1061 | noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi" |
3aa83176 | 1062 | ;; |
f2a0e225 | 1063 | i[3456789]86-*-mingw32*) |
61b56b2e | 1064 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv" |
a22c2d8d | 1065 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool" |
3aa83176 | 1066 | ;; |
f2a0e225 | 1067 | i[3456789]86-*-beos*) |
3aa83176 NN |
1068 | noconfigdirs="$noconfigdirs tk itcl tix libgui gdb" |
1069 | ;; | |
671aa708 | 1070 | *-*-cygwin*) |
a22c2d8d | 1071 | noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" |
671aa708 NN |
1072 | ;; |
1073 | *-*-netbsd*) | |
a22c2d8d | 1074 | noconfigdirs="$noconfigdirs rcs" |
671aa708 NN |
1075 | ;; |
1076 | ppc*-*-pe) | |
a22c2d8d | 1077 | noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv" |
671aa708 NN |
1078 | ;; |
1079 | powerpc-*-beos*) | |
1080 | noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline" | |
1081 | ;; | |
1082 | *-*-darwin*) | |
1083 | noconfigdirs="$noconfigdirs tk itcl tix libgui" | |
1084 | ;; | |
1085 | esac | |
ec8d6ddc | 1086 | |
6de9cd9a DN |
1087 | # Check whether --with-libbanshee or --without-libbanshee was given. |
1088 | if test "${with_libbanshee+set}" = set; then | |
1089 | withval="$with_libbanshee" | |
1090 | : | |
1091 | fi | |
1092 | ||
1093 | case ${with_libbanshee} in | |
1094 | no) | |
1095 | noconfigdirs="$noconfigdirs libbanshee" ;; | |
1096 | yes|"") | |
1097 | with_libbanshee=yes | |
1098 | ;; | |
1099 | *) | |
1100 | { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; } | |
1101 | esac | |
1102 | ||
d9cdb878 AC |
1103 | # Check whether --enable-libada or --disable-libada was given. |
1104 | if test "${enable_libada+set}" = set; then | |
1105 | enableval="$enable_libada" | |
1106 | ENABLE_LIBADA=$enableval | |
1107 | else | |
1108 | ENABLE_LIBADA=yes | |
1109 | fi | |
1110 | ||
d9cdb878 AC |
1111 | if test "${ENABLE_LIBADA}" != "yes" ; then |
1112 | noconfigdirs="$noconfigdirs target-libada" | |
98a5bb3b | 1113 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
1114 | fi |
1115 | ||
671aa708 NN |
1116 | # Save it here so that, even in case of --enable-libgcj, if the Java |
1117 | # front-end isn't enabled, we still get libgcj disabled. | |
1118 | libgcj_saved=$libgcj | |
1119 | case $enable_libgcj in | |
1120 | yes) | |
1121 | # If we reset it here, it won't get added to noconfigdirs in the | |
1122 | # target-specific build rules, so it will be forcibly enabled | |
1123 | # (unless the Java language itself isn't enabled). | |
1124 | libgcj= | |
1125 | ;; | |
1126 | no) | |
1127 | # Make sure we get it printed in the list of not supported target libs. | |
1128 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1129 | ;; | |
1130 | esac | |
ec8d6ddc | 1131 | |
6de9cd9a DN |
1132 | |
1133 | # Allow --disable-libmudflap to exclude target-libmudflap | |
1134 | case $enable_libmudflap in | |
dfcada9a | 1135 | yes) |
6de9cd9a DN |
1136 | ;; |
1137 | no) | |
1138 | noconfigdirs="$noconfigdirs target-libmudflap" | |
1139 | ;; | |
dfcada9a MM |
1140 | "") |
1141 | case "${target}" in | |
98a5bb3b RM |
1142 | *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu) |
1143 | # Enable libmudflap by default in GNU and friends. | |
dfcada9a | 1144 | ;; |
a3e8d8b4 LR |
1145 | *-*-freebsd*) |
1146 | # Enable libmudflap by default in FreeBSD. | |
1147 | ;; | |
dfcada9a MM |
1148 | *) |
1149 | # Disable it by default everywhere else. | |
1150 | noconfigdirs="$noconfigdirs target-libmudflap" | |
1151 | ;; | |
1152 | esac | |
6de9cd9a DN |
1153 | esac |
1154 | ||
1155 | ||
671aa708 NN |
1156 | case "${target}" in |
1157 | *-*-chorusos) | |
1158 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1159 | ;; | |
940cde4d | 1160 | powerpc-*-darwin*) |
c8e5d1af | 1161 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" |
8d9b3f2e | 1162 | noconfigdirs="$noconfigdirs target-libobjc" |
c8e5d1af | 1163 | ;; |
940cde4d GK |
1164 | *-*-darwin*) |
1165 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" | |
1166 | noconfigdirs="$noconfigdirs target-libobjc ${libgcj}" | |
1167 | ;; | |
671aa708 NN |
1168 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
1169 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1170 | ;; | |
6de9cd9a DN |
1171 | *-*-freebsd* | *-*-kfreebsd*-gnu) |
1172 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1173 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
1174 | && test -f /usr/local/include/gmp.h; then | |
1175 | with_gmp=/usr/local | |
1176 | fi | |
1177 | ||
1178 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
1179 | case "${target}" in | |
1180 | i*86-*-*) ;; | |
1181 | alpha*-*-*) ;; | |
1182 | *) | |
1183 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1184 | ;; | |
1185 | esac | |
1186 | ;; | |
ef4e7569 US |
1187 | *-*-kaos*) |
1188 | # Remove unsupported stuff on all kaOS configurations. | |
b4117c30 | 1189 | skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" |
ef4e7569 US |
1190 | skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" |
1191 | skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" | |
1192 | noconfigdirs="$noconfigdirs target-libgloss" | |
1193 | ;; | |
671aa708 NN |
1194 | *-*-netbsd*) |
1195 | # Skip some stuff on all NetBSD configurations. | |
1196 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" | |
1197 | ||
1198 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
1199 | case "${target}" in | |
1200 | i*86-*-netbsdelf*) ;; | |
0590b963 | 1201 | arm*-*-netbsdelf*) ;; |
671aa708 NN |
1202 | *) |
1203 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1204 | ;; | |
1205 | esac | |
1206 | ;; | |
1207 | *-*-netware) | |
cb543528 | 1208 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}" |
671aa708 NN |
1209 | ;; |
1210 | *-*-rtems*) | |
1211 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
671aa708 | 1212 | ;; |
5785c0ed BI |
1213 | *-*-uclinux*) |
1214 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" | |
1215 | ;; | |
671aa708 | 1216 | *-*-vxworks*) |
4dd01c5c | 1217 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}" |
671aa708 NN |
1218 | ;; |
1219 | alpha*-dec-osf*) | |
1220 | # ld works, but does not support shared libraries. | |
1221 | # newlib is not 64 bit ready. I'm not sure about fileutils. | |
1222 | # gas doesn't generate exception information. | |
1223 | noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" | |
1224 | ;; | |
1225 | alpha*-*-*vms*) | |
1226 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" | |
1227 | ;; | |
1228 | alpha*-*-linux*) | |
1229 | # newlib is not 64 bit ready | |
1230 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1231 | ;; | |
671aa708 NN |
1232 | alpha*-*-*) |
1233 | # newlib is not 64 bit ready | |
1234 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1235 | ;; | |
33952f6f AO |
1236 | am33_2.0-*-linux*) |
1237 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | |
1238 | ;; | |
671aa708 NN |
1239 | sh-*-linux*) |
1240 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | |
1241 | ;; | |
1242 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
1243 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1244 | noconfigdirs="$noconfigdirs target-examples" | |
1245 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" | |
1246 | noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim" | |
1247 | noconfigdirs="$noconfigdirs expect dejagnu" | |
1248 | # the C++ libraries don't build on top of CE's C libraries | |
cb543528 | 1249 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
671aa708 NN |
1250 | noconfigdirs="$noconfigdirs target-newlib" |
1251 | case "${host}" in | |
1252 | *-*-cygwin*) ;; # keep gdb and readline | |
aa9c3ab4 | 1253 | *) noconfigdirs="$noconfigdirs gdb readline" |
671aa708 NN |
1254 | ;; |
1255 | esac | |
1256 | ;; | |
1257 | arc-*-*) | |
1258 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1259 | ;; | |
1260 | arm-*-coff | strongarm-*-coff | xscale-*-coff) | |
1261 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1262 | ;; | |
1263 | arm-*-elf* | strongarm-*-elf* | xscale-*-elf*) | |
1264 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | |
1265 | ;; | |
1266 | arm-*-pe*) | |
1267 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1268 | ;; | |
1269 | arm-*-oabi*) | |
1270 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1271 | ;; | |
1272 | thumb-*-coff) | |
1273 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1274 | ;; | |
1275 | thumb-*-elf) | |
1276 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1277 | ;; | |
1278 | thumb-*-oabi) | |
1279 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1280 | ;; | |
1281 | thumb-*-pe) | |
1282 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1283 | ;; | |
1284 | arm-*-riscix*) | |
1285 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" | |
1286 | ;; | |
1287 | avr-*-*) | |
cb543528 | 1288 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
1289 | ;; |
1290 | c4x-*-* | tic4x-*-*) | |
cb543528 | 1291 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
1292 | ;; |
1293 | c54x*-*-* | tic54x-*-*) | |
cb543528 | 1294 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" |
671aa708 NN |
1295 | ;; |
1296 | cris-*-*) | |
fb87ad5d | 1297 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
671aa708 | 1298 | ;; |
25b656e7 PB |
1299 | crx-*-*) |
1300 | noconfigdirs="$noconfigdirs target-libgloss target-libstdc++-v3 target-mudflap ${libgcj}" | |
1301 | ;; | |
671aa708 | 1302 | d10v-*-*) |
cb543528 | 1303 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
1304 | ;; |
1305 | d30v-*-*) | |
fb87ad5d | 1306 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
1307 | ;; |
1308 | fr30-*-elf*) | |
fb87ad5d | 1309 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
1310 | ;; |
1311 | frv-*-*) | |
1312 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1313 | ;; | |
1314 | h8300*-*-*) | |
b4117c30 | 1315 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
1316 | ;; |
1317 | h8500-*-*) | |
b4117c30 | 1318 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
1319 | ;; |
1320 | hppa*64*-*-linux* | parisc*64*-*-linux*) | |
1321 | # In this case, it's because the hppa64-linux target is for | |
1322 | # the kernel only at this point and has no libc, and thus no | |
1323 | # headers, crt*.o, etc., all of which are needed by these. | |
1324 | noconfigdirs="$noconfigdirs target-zlib" | |
1325 | ;; | |
1326 | hppa*-*-*elf* | \ | |
1327 | parisc*-*-linux* | hppa*-*-linux* | \ | |
1328 | hppa*-*-lites* | \ | |
1329 | hppa*-*-openbsd* | \ | |
1330 | hppa*64*-*-*) | |
1331 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1332 | # Do configure ld/binutils/gas for this case. | |
1333 | ;; | |
1334 | hppa*-*-*) | |
1335 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
1336 | # build on HP-UX 10.20. | |
1337 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" | |
1338 | ;; | |
fb87ad5d HPN |
1339 | i960-*-*) |
1340 | noconfigdirs="$noconfigdirs ${libgcj} gdb" | |
1341 | ;; | |
671aa708 NN |
1342 | ia64*-*-elf*) |
1343 | # No gdb support yet. | |
1344 | noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb" | |
1345 | ;; | |
1346 | ia64*-**-hpux*) | |
1347 | # No gdb or ld support yet. | |
07d0a605 | 1348 | noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" |
671aa708 | 1349 | ;; |
f2a0e225 | 1350 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
671aa708 NN |
1351 | noconfigdirs="$noconfigdirs ${libgcj}" |
1352 | ;; | |
f2a0e225 | 1353 | i[3456789]86-*-linux*) |
671aa708 NN |
1354 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's |
1355 | # not build java stuff by default. | |
1356 | case "${target}" in | |
1357 | *-*-*libc1*) | |
1358 | noconfigdirs="$noconfigdirs ${libgcj}";; | |
1359 | esac | |
1360 | ||
1361 | # This section makes it possible to build newlib natively on linux. | |
1362 | # If we are using a cross compiler then don't configure newlib. | |
1363 | if test x${is_cross_compiler} != xno ; then | |
3aa83176 | 1364 | noconfigdirs="$noconfigdirs target-newlib" |
671aa708 NN |
1365 | fi |
1366 | noconfigdirs="$noconfigdirs target-libgloss" | |
1367 | # If we are not using a cross compiler, do configure newlib. | |
1368 | # Note however, that newlib will only be configured in this situation | |
1369 | # if the --with-newlib option has been given, because otherwise | |
1370 | # 'target-newlib' will appear in skipdirs. | |
1371 | ;; | |
f2a0e225 | 1372 | i[3456789]86-*-mingw32*) |
671aa708 NN |
1373 | target_configdirs="$target_configdirs target-mingw" |
1374 | noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}" | |
1375 | ||
1376 | # Can't build gdb for mingw32 if not native. | |
1377 | case "${host}" in | |
f2a0e225 | 1378 | i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc. |
61b56b2e | 1379 | *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv" |
671aa708 NN |
1380 | ;; |
1381 | esac | |
1382 | ;; | |
1383 | *-*-cygwin*) | |
1384 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1385 | noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" | |
801e2270 | 1386 | # always build newlib if winsup directory is present. |
6264b0a6 | 1387 | if test -d "$srcdir/winsup" |
801e2270 CV |
1388 | then |
1389 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
1390 | else | |
1391 | echo "Warning: winsup is missing so newlib can't be built." | |
1392 | fi | |
671aa708 NN |
1393 | |
1394 | # Can't build gdb for Cygwin if not native. | |
1395 | case "${host}" in | |
1396 | *-*-cygwin*) ;; # keep gdb tcl tk expect etc. | |
61b56b2e | 1397 | *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv" |
671aa708 NN |
1398 | ;; |
1399 | esac | |
1400 | ;; | |
f2a0e225 | 1401 | i[3456789]86-*-pe) |
cb543528 | 1402 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 1403 | ;; |
f2a0e225 | 1404 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
1405 | # The linker does not yet know about weak symbols in COFF, |
1406 | # and is not configured to handle mixed ELF and COFF. | |
1407 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" | |
1408 | ;; | |
f2a0e225 | 1409 | i[3456789]86-*-sco*) |
671aa708 NN |
1410 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
1411 | ;; | |
f2a0e225 | 1412 | i[3456789]86-*-solaris2*) |
671aa708 NN |
1413 | noconfigdirs="$noconfigdirs target-libgloss" |
1414 | ;; | |
f2a0e225 | 1415 | i[3456789]86-*-sysv4*) |
671aa708 NN |
1416 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
1417 | ;; | |
f2a0e225 | 1418 | i[3456789]86-*-beos*) |
3aa83176 NN |
1419 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
1420 | ;; | |
fb87ad5d | 1421 | m32r-*-*) |
c197e306 | 1422 | noconfigdirs="$noconfigdirs ${libgcj}" |
fb87ad5d | 1423 | ;; |
671aa708 | 1424 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
cb543528 | 1425 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
1426 | ;; |
1427 | m68k-*-elf*) | |
1428 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1429 | ;; | |
1430 | m68k-*-coff*) | |
1431 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1432 | ;; | |
1433 | mcore-*-pe*) | |
1434 | # The EPOC C++ environment does not support exceptions or rtti, | |
1435 | # and so building libstdc++-v3 tends not to always work. | |
1436 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
1437 | ;; | |
1438 | mmix-*-*) | |
1439 | noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss" | |
1440 | ;; | |
1441 | mn10200-*-*) | |
1442 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1443 | ;; | |
1444 | mn10300-*-*) | |
1445 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1446 | ;; | |
1447 | powerpc-*-aix*) | |
1448 | # copied from rs6000-*-* entry | |
bef1d700 | 1449 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
1450 | ;; |
1451 | powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | |
1452 | target_configdirs="$target_configdirs target-winsup" | |
61b56b2e | 1453 | noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}" |
671aa708 NN |
1454 | # always build newlib. |
1455 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
1456 | ;; | |
1457 | # This is temporary until we can link against shared libraries | |
1458 | powerpcle-*-solaris*) | |
61b56b2e | 1459 | noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}" |
671aa708 NN |
1460 | ;; |
1461 | powerpc-*-beos*) | |
1462 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" | |
1463 | ;; | |
671aa708 NN |
1464 | powerpc-*-eabi) |
1465 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1466 | ;; | |
671aa708 NN |
1467 | rs6000-*-lynxos*) |
1468 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" | |
1469 | ;; | |
1470 | rs6000-*-aix*) | |
bef1d700 | 1471 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
1472 | ;; |
1473 | rs6000-*-*) | |
1474 | noconfigdirs="$noconfigdirs gprof ${libgcj}" | |
1475 | ;; | |
1476 | m68k-apollo-*) | |
1477 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" | |
1478 | ;; | |
1479 | mips*-*-irix5*) | |
1f1d584b | 1480 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
1481 | ;; |
1482 | mips*-*-irix6*) | |
671aa708 NN |
1483 | # Linking libjava exceeds command-line length limits on at least |
1484 | # IRIX 6.2, but not on IRIX 6.5. | |
1485 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
1486 | # <oldham@codesourcery.com> | |
7c005a3a | 1487 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
1488 | ;; |
1489 | mips*-dec-bsd*) | |
1490 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" | |
1491 | ;; | |
1492 | mips*-*-bsd*) | |
1493 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" | |
1494 | ;; | |
1495 | mipstx39-*-*) | |
1496 | noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips | |
3aa83176 | 1497 | ;; |
d0fe5ad3 RS |
1498 | mips64*-*-linux*) |
1499 | noconfigdirs="$noconfigdirs target-newlib ${libgcj}" | |
1500 | ;; | |
671aa708 NN |
1501 | mips*-*-linux*) |
1502 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1503 | ;; | |
1504 | mips*-*-*) | |
1505 | noconfigdirs="$noconfigdirs gprof ${libgcj}" | |
1506 | ;; | |
1507 | romp-*-*) | |
1508 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" | |
1509 | ;; | |
1510 | sh-*-*) | |
1511 | case "${host}" in | |
f2a0e225 KC |
1512 | i[3456789]86-*-vsta) ;; # don't add gprof back in |
1513 | i[3456789]86-*-go32*) ;; # don't add gprof back in | |
1514 | i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in | |
671aa708 NN |
1515 | *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; |
1516 | esac | |
1517 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1518 | ;; | |
1519 | sh64-*-*) | |
1520 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1521 | ;; | |
1522 | sparc-*-elf*) | |
1523 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1524 | ;; | |
1525 | sparc64-*-elf*) | |
1526 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1527 | ;; | |
1528 | sparclite-*-*) | |
1529 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1530 | ;; | |
1531 | sparc-*-sunos4*) | |
1532 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1533 | if test x${is_cross_compiler} != xno ; then | |
1534 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
1535 | else | |
1536 | use_gnu_ld=no | |
1537 | fi | |
1538 | ;; | |
1539 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) | |
1540 | ;; | |
1541 | v810-*-*) | |
cb543528 | 1542 | noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
671aa708 NN |
1543 | ;; |
1544 | v850-*-*) | |
1545 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1546 | ;; | |
1547 | v850e-*-*) | |
1548 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1549 | ;; | |
1550 | v850ea-*-*) | |
1551 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1552 | ;; | |
1553 | vax-*-vms) | |
1554 | noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" | |
1555 | ;; | |
1556 | vax-*-*) | |
1557 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1558 | ;; | |
0d4f1b4e BW |
1559 | xtensa-*-*) |
1560 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1561 | ;; | |
671aa708 | 1562 | ip2k-*-*) |
cb543528 | 1563 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
1564 | ;; |
1565 | *-*-linux*) | |
1566 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1567 | ;; | |
1568 | *-*-lynxos*) | |
1569 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1570 | ;; | |
1571 | *-*-*) | |
1572 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1573 | ;; | |
1574 | esac | |
79c06341 | 1575 | |
671aa708 NN |
1576 | # If we aren't building newlib, then don't build libgloss, since libgloss |
1577 | # depends upon some newlib header files. | |
1578 | case "${noconfigdirs}" in | |
1579 | *target-libgloss*) ;; | |
1580 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
1581 | esac | |
1582 | ||
671aa708 NN |
1583 | # Work in distributions that contain no compiler tools, like Autoconf. |
1584 | tentative_cc="" | |
1585 | host_makefile_frag=/dev/null | |
1586 | if test -d ${srcdir}/config ; then | |
1587 | case "${host}" in | |
1588 | m68k-hp-hpux*) | |
1589 | # Avoid "too much defining" errors from HPUX compiler. | |
1590 | tentative_cc="cc -Wp,-H256000" | |
1591 | # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. | |
1592 | # If it's HP/UX ar, this should be harmless. | |
1593 | RANLIB="ar ts" | |
1594 | ;; | |
1595 | m68k-apollo-sysv*) | |
1596 | tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" | |
1597 | ;; | |
1598 | m68k-apollo-bsd*) | |
1599 | #None of the Apollo compilers can compile gas or binutils. The preprocessor | |
1600 | # chokes on bfd, the compiler won't let you assign integers to enums, and | |
1601 | # other problems. Defining CC to gcc is a questionable way to say "don't use | |
1602 | # the apollo compiler" (the preferred version of GCC could be called cc, | |
1603 | # or whatever), but I'm not sure leaving CC as cc is any better... | |
1604 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG | |
1605 | # Used to have BISON=yacc. | |
1606 | tentative_cc=gcc | |
1607 | ;; | |
1608 | m88k-dg-dgux*) | |
1609 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" | |
671aa708 NN |
1610 | ;; |
1611 | m88k-harris-cxux*) | |
1612 | # Under CX/UX, we want to tell the compiler to use ANSI mode. | |
1613 | tentative_cc="cc -Xa" | |
1614 | host_makefile_frag="config/mh-cxux" | |
1615 | ;; | |
1616 | m88k-motorola-sysv*) | |
1617 | ;; | |
1618 | mips*-dec-ultrix*) | |
1619 | tentative_cc="cc -Wf,-XNg1000" | |
1620 | host_makefile_frag="config/mh-decstation" | |
1621 | ;; | |
1622 | mips*-nec-sysv4*) | |
1623 | # The C compiler on NEC MIPS SVR4 needs bigger tables. | |
1624 | tentative_cc="cc -ZXNd=5000 -ZXNg=1000" | |
1625 | host_makefile_frag="config/mh-necv4" | |
1626 | ;; | |
1627 | mips*-sgi-irix4*) | |
1628 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi | |
1629 | # environment. Also bump switch table size so that cp-parse will | |
1630 | # compile. Bump string length limit so linker builds. | |
1631 | tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" | |
1632 | ;; | |
1633 | mips*-*-sysv4*) | |
1634 | host_makefile_frag="config/mh-sysv4" | |
1635 | ;; | |
1636 | mips*-*-sysv*) | |
1637 | # This is for a MIPS running RISC/os 4.52C. | |
1638 | ||
1639 | # This is needed for GDB, but needs to be in the top-level make because | |
1640 | # if a library is compiled with the bsd headers and gets linked with the | |
1641 | # sysv system libraries all hell can break loose (e.g. a jmp_buf might be | |
1642 | # a different size). | |
1643 | # ptrace(2) apparently has problems in the BSD environment. No workaround is | |
1644 | # known except to select the sysv environment. Could we use /proc instead? | |
1645 | # These "sysv environments" and "bsd environments" often end up being a pain. | |
1646 | # | |
1647 | # This is not part of CFLAGS because perhaps not all C compilers have this | |
1648 | # option. | |
1649 | tentative_cc="cc -systype sysv" | |
1650 | ;; | |
1651 | i370-ibm-opened*) | |
1652 | tentative_cc="c89" | |
1653 | ;; | |
f2a0e225 | 1654 | i[3456789]86-*-sysv5*) |
671aa708 NN |
1655 | host_makefile_frag="config/mh-sysv5" |
1656 | ;; | |
f2a0e225 | 1657 | i[3456789]86-*-dgux*) |
671aa708 NN |
1658 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" |
1659 | host_makefile_frag="config/mh-dgux386" | |
1660 | ;; | |
f2a0e225 | 1661 | i[3456789]86-ncr-sysv4.3*) |
671aa708 NN |
1662 | # The MetaWare compiler will generate a copyright message unless you |
1663 | # turn it off by adding the -Hnocopyr flag. | |
1664 | tentative_cc="cc -Hnocopyr" | |
1665 | ;; | |
f2a0e225 | 1666 | i[3456789]86-ncr-sysv4*) |
671aa708 NN |
1667 | # for an NCR 3000 (i486/SVR4) system. |
1668 | # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. | |
1669 | # This compiler not only emits obnoxious copyright messages every time | |
1670 | # you run it, but it chokes and dies on a whole bunch of GNU source | |
1671 | # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. | |
1672 | tentative_cc="/usr/ccs/ATT/cc" | |
1673 | host_makefile_frag="config/mh-ncr3000" | |
1674 | ;; | |
f2a0e225 | 1675 | i[3456789]86-*-sco3.2v5*) |
671aa708 | 1676 | ;; |
f2a0e225 | 1677 | i[3456789]86-*-sco*) |
671aa708 NN |
1678 | # The native C compiler botches some simple uses of const. Unfortunately, |
1679 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. | |
1680 | tentative_cc="cc -Dconst=" | |
1681 | host_makefile_frag="config/mh-sco" | |
1682 | ;; | |
f2a0e225 | 1683 | i[3456789]86-*-udk*) |
671aa708 NN |
1684 | host_makefile_frag="config/mh-sysv5" |
1685 | ;; | |
f2a0e225 | 1686 | i[3456789]86-*-solaris2*) |
671aa708 NN |
1687 | host_makefile_frag="config/mh-sysv4" |
1688 | ;; | |
f2a0e225 | 1689 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
1690 | host_makefile_frag="config/mh-djgpp" |
1691 | ;; | |
1692 | *-cygwin*) | |
1693 | host_makefile_frag="config/mh-cygwin" | |
1694 | ;; | |
1695 | *-mingw32*) | |
1696 | host_makefile_frag="config/mh-mingw32" | |
1697 | ;; | |
1698 | *-interix*) | |
1699 | host_makefile_frag="config/mh-interix" | |
1700 | ;; | |
1701 | vax-*-ultrix2*) | |
1702 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc | |
1703 | tentative_cc=gcc | |
1704 | ;; | |
1705 | *-*-solaris2*) | |
1706 | host_makefile_frag="config/mh-solaris" | |
1707 | ;; | |
1708 | m68k-sun-sunos*) | |
1709 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c | |
1710 | # without overflowing the jump tables (-J says to use a 32 bit table) | |
1711 | tentative_cc="cc -J" | |
1712 | ;; | |
1713 | *-hp-hpux*) | |
1714 | tentative_cc="cc -Wp,-H256000" | |
1715 | ;; | |
1716 | *-*-hiux*) | |
1717 | tentative_cc="cc -Wp,-H256000" | |
1718 | ;; | |
1719 | rs6000-*-lynxos*) | |
1720 | # /bin/cc is less than useful for our purposes. Always use GCC | |
1721 | tentative_cc="/usr/cygnus/progressive/bin/gcc" | |
1722 | host_makefile_frag="config/mh-lynxrs6k" | |
1723 | ;; | |
1724 | *-*-lynxos*) | |
1725 | # /bin/cc is less than useful for our purposes. Always use GCC | |
1726 | tentative_cc="/bin/gcc" | |
1727 | ;; | |
1728 | *-*-sysv4*) | |
1729 | host_makefile_frag="config/mh-sysv4" | |
1730 | ;; | |
1731 | esac | |
1732 | fi | |
1733 | ||
55ffb5ed NN |
1734 | # If we aren't going to be using gcc, see if we can extract a definition |
1735 | # of CC from the fragment. | |
1736 | # Actually, use the 'pre-extracted' version above. | |
1737 | if test -z "${CC}" && test "${build}" = "${host}" ; then | |
1738 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1739 | found= | |
1740 | for dir in $PATH; do | |
1741 | test -z "$dir" && dir=. | |
1742 | if test -f $dir/gcc; then | |
1743 | found=yes | |
1744 | break | |
1745 | fi | |
1746 | done | |
1747 | IFS="$save_ifs" | |
1748 | if test -z "${found}" && test -n "${tentative_cc}" ; then | |
1749 | CC=$tentative_cc | |
1750 | fi | |
1751 | fi | |
1752 | ||
1753 | if test "${build}" != "${host}" ; then | |
1754 | # If we are doing a Canadian Cross, in which the host and build systems | |
1755 | # are not the same, we set reasonable default values for the tools. | |
1756 | ||
55ffb5ed NN |
1757 | CC=${CC-${host_alias}-gcc} |
1758 | CFLAGS=${CFLAGS-"-g -O2"} | |
1759 | CXX=${CXX-${host_alias}-c++} | |
1760 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
1761 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} | |
1762 | CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc} | |
1763 | CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++} | |
1764 | GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj} | |
1765 | GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}} | |
23f6b2f9 | 1766 | BUILD_DIR_PREFIX=${build_subdir} |
55ffb5ed NN |
1767 | BUILD_PREFIX=${build_alias}- |
1768 | BUILD_PREFIX_1=${build_alias}- | |
55ffb5ed NN |
1769 | |
1770 | else | |
1771 | # Set reasonable default values for some tools even if not Canadian. | |
1772 | # Of course, these are different reasonable default values, originally | |
1773 | # specified directly in the Makefile. | |
1774 | # We don't export, so that autoconf can do its job. | |
1775 | # Note that all these settings are above the fragment inclusion point | |
1776 | # in Makefile.in, so can still be overridden by fragments. | |
1777 | # This is all going to change when we autoconfiscate... | |
1778 | ||
55ffb5ed NN |
1779 | CC_FOR_BUILD="\$(CC)" |
1780 | GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" | |
23f6b2f9 | 1781 | BUILD_DIR_PREFIX= |
55ffb5ed NN |
1782 | BUILD_PREFIX= |
1783 | BUILD_PREFIX_1=loser- | |
55ffb5ed | 1784 | |
23f6b2f9 | 1785 | # Extract the first word of "gcc", so it can be a program name with args. |
55ffb5ed NN |
1786 | set dummy gcc; ac_word=$2 |
1787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 1788 | echo "configure:1789: checking for $ac_word" >&5 |
55ffb5ed NN |
1789 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1791 | else | |
1792 | if test -n "$CC"; then | |
1793 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1794 | else | |
1795 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1796 | ac_dummy="$PATH" | |
1797 | for ac_dir in $ac_dummy; do | |
1798 | test -z "$ac_dir" && ac_dir=. | |
1799 | if test -f $ac_dir/$ac_word; then | |
1800 | ac_cv_prog_CC="gcc" | |
1801 | break | |
1802 | fi | |
1803 | done | |
1804 | IFS="$ac_save_ifs" | |
1805 | fi | |
1806 | fi | |
1807 | CC="$ac_cv_prog_CC" | |
1808 | if test -n "$CC"; then | |
1809 | echo "$ac_t""$CC" 1>&6 | |
1810 | else | |
1811 | echo "$ac_t""no" 1>&6 | |
1812 | fi | |
1813 | ||
1814 | if test -z "$CC"; then | |
1815 | # Extract the first word of "cc", so it can be a program name with args. | |
1816 | set dummy cc; ac_word=$2 | |
1817 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 1818 | echo "configure:1819: checking for $ac_word" >&5 |
55ffb5ed NN |
1819 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1821 | else | |
1822 | if test -n "$CC"; then | |
1823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1824 | else | |
1825 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1826 | ac_prog_rejected=no | |
1827 | ac_dummy="$PATH" | |
1828 | for ac_dir in $ac_dummy; do | |
1829 | test -z "$ac_dir" && ac_dir=. | |
1830 | if test -f $ac_dir/$ac_word; then | |
1831 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1832 | ac_prog_rejected=yes | |
1833 | continue | |
1834 | fi | |
1835 | ac_cv_prog_CC="cc" | |
1836 | break | |
1837 | fi | |
1838 | done | |
1839 | IFS="$ac_save_ifs" | |
1840 | if test $ac_prog_rejected = yes; then | |
1841 | # We found a bogon in the path, so make sure we never use it. | |
1842 | set dummy $ac_cv_prog_CC | |
1843 | shift | |
1844 | if test $# -gt 0; then | |
1845 | # We chose a different compiler from the bogus one. | |
1846 | # However, it has the same basename, so the bogon will be chosen | |
1847 | # first if we set CC to just the basename; use the full file name. | |
1848 | shift | |
1849 | set dummy "$ac_dir/$ac_word" "$@" | |
1850 | shift | |
1851 | ac_cv_prog_CC="$@" | |
1852 | fi | |
1853 | fi | |
1854 | fi | |
1855 | fi | |
1856 | CC="$ac_cv_prog_CC" | |
1857 | if test -n "$CC"; then | |
1858 | echo "$ac_t""$CC" 1>&6 | |
1859 | else | |
1860 | echo "$ac_t""no" 1>&6 | |
1861 | fi | |
1862 | ||
1863 | if test -z "$CC"; then | |
1864 | case "`uname -s`" in | |
1865 | *win32* | *WIN32*) | |
1866 | # Extract the first word of "cl", so it can be a program name with args. | |
1867 | set dummy cl; ac_word=$2 | |
1868 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 1869 | echo "configure:1870: checking for $ac_word" >&5 |
55ffb5ed NN |
1870 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1872 | else | |
1873 | if test -n "$CC"; then | |
1874 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1875 | else | |
1876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1877 | ac_dummy="$PATH" | |
1878 | for ac_dir in $ac_dummy; do | |
1879 | test -z "$ac_dir" && ac_dir=. | |
1880 | if test -f $ac_dir/$ac_word; then | |
1881 | ac_cv_prog_CC="cl" | |
1882 | break | |
1883 | fi | |
1884 | done | |
1885 | IFS="$ac_save_ifs" | |
1886 | fi | |
1887 | fi | |
1888 | CC="$ac_cv_prog_CC" | |
1889 | if test -n "$CC"; then | |
1890 | echo "$ac_t""$CC" 1>&6 | |
1891 | else | |
1892 | echo "$ac_t""no" 1>&6 | |
1893 | fi | |
1894 | ;; | |
1895 | esac | |
1896 | fi | |
1897 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1898 | fi | |
1899 | ||
1900 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
98a5bb3b | 1901 | echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
55ffb5ed NN |
1902 | |
1903 | ac_ext=c | |
1904 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1905 | ac_cpp='$CPP $CPPFLAGS' | |
1906 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1907 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1908 | cross_compiling=$ac_cv_prog_cc_cross | |
1909 | ||
1910 | cat > conftest.$ac_ext << EOF | |
1911 | ||
98a5bb3b | 1912 | #line 1913 "configure" |
55ffb5ed NN |
1913 | #include "confdefs.h" |
1914 | ||
1915 | main(){return(0);} | |
1916 | EOF | |
98a5bb3b | 1917 | if { (eval echo configure:1918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55ffb5ed NN |
1918 | ac_cv_prog_cc_works=yes |
1919 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1920 | if (./conftest; exit) 2>/dev/null; then | |
1921 | ac_cv_prog_cc_cross=no | |
1922 | else | |
1923 | ac_cv_prog_cc_cross=yes | |
1924 | fi | |
1925 | else | |
1926 | echo "configure: failed program was:" >&5 | |
1927 | cat conftest.$ac_ext >&5 | |
1928 | ac_cv_prog_cc_works=no | |
1929 | fi | |
1930 | rm -fr conftest* | |
1931 | ac_ext=c | |
1932 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1933 | ac_cpp='$CPP $CPPFLAGS' | |
1934 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1935 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1936 | cross_compiling=$ac_cv_prog_cc_cross | |
1937 | ||
1938 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1939 | if test $ac_cv_prog_cc_works = no; then | |
1940 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1941 | fi | |
1942 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
98a5bb3b | 1943 | echo "configure:1944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
55ffb5ed NN |
1944 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1945 | cross_compiling=$ac_cv_prog_cc_cross | |
1946 | ||
1947 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
98a5bb3b | 1948 | echo "configure:1949: checking whether we are using GNU C" >&5 |
55ffb5ed NN |
1949 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1951 | else | |
1952 | cat > conftest.c <<EOF | |
1953 | #ifdef __GNUC__ | |
1954 | yes; | |
1955 | #endif | |
1956 | EOF | |
98a5bb3b | 1957 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
55ffb5ed NN |
1958 | ac_cv_prog_gcc=yes |
1959 | else | |
1960 | ac_cv_prog_gcc=no | |
1961 | fi | |
1962 | fi | |
1963 | ||
1964 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1965 | ||
1966 | if test $ac_cv_prog_gcc = yes; then | |
1967 | GCC=yes | |
1968 | else | |
1969 | GCC= | |
1970 | fi | |
1971 | ||
1972 | ac_test_CFLAGS="${CFLAGS+set}" | |
1973 | ac_save_CFLAGS="$CFLAGS" | |
1974 | CFLAGS= | |
1975 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
98a5bb3b | 1976 | echo "configure:1977: checking whether ${CC-cc} accepts -g" >&5 |
55ffb5ed NN |
1977 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1979 | else | |
1980 | echo 'void f(){}' > conftest.c | |
1981 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1982 | ac_cv_prog_cc_g=yes | |
1983 | else | |
1984 | ac_cv_prog_cc_g=no | |
1985 | fi | |
1986 | rm -f conftest* | |
1987 | ||
1988 | fi | |
1989 | ||
1990 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1991 | if test "$ac_test_CFLAGS" = set; then | |
1992 | CFLAGS="$ac_save_CFLAGS" | |
1993 | elif test $ac_cv_prog_cc_g = yes; then | |
1994 | if test "$GCC" = yes; then | |
1995 | CFLAGS="-g -O2" | |
1996 | else | |
1997 | CFLAGS="-g" | |
1998 | fi | |
1999 | else | |
2000 | if test "$GCC" = yes; then | |
2001 | CFLAGS="-O2" | |
2002 | else | |
2003 | CFLAGS= | |
2004 | fi | |
2005 | fi | |
2006 | ||
2007 | ||
23f6b2f9 PB |
2008 | # We must set the default linker to the linker used by gcc for the correct |
2009 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
2010 | # set the LD default to the ld used by gcc. | |
2011 | if test -z "$LD"; then | |
2012 | if test "$GCC" = yes; then | |
2013 | case $build in | |
2014 | *-*-mingw*) | |
2015 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
2016 | *) | |
2017 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
2018 | esac | |
2019 | case $gcc_prog_ld in | |
2020 | # Accept absolute paths. | |
2021 | [\\/]* | [A-Za-z]:[\\/]*) | |
2022 | LD="$gcc_prog_ld" ;; | |
2023 | esac | |
2024 | fi | |
2025 | fi | |
2026 | ||
2027 | CXX=${CXX-"c++"} | |
2028 | CFLAGS=${CFLAGS-"-g"} | |
2029 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
2030 | fi | |
2031 | ||
2032 | if test $host != $build; then | |
2033 | ac_tool_prefix=${host_alias}- | |
2034 | else | |
2035 | ac_tool_prefix= | |
2036 | fi | |
2037 | ||
2038 | ||
55ffb5ed NN |
2039 | |
2040 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
2041 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
2042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2043 | echo "configure:2044: checking for $ac_word" >&5 |
55ffb5ed NN |
2044 | if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then |
2045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2046 | else | |
2047 | if test -n "$GNATBIND"; then | |
2048 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
2049 | else | |
2050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2051 | ac_dummy="$PATH" | |
2052 | for ac_dir in $ac_dummy; do | |
2053 | test -z "$ac_dir" && ac_dir=. | |
2054 | if test -f $ac_dir/$ac_word; then | |
2055 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" | |
2056 | break | |
2057 | fi | |
2058 | done | |
2059 | IFS="$ac_save_ifs" | |
2060 | fi | |
2061 | fi | |
2062 | GNATBIND="$ac_cv_prog_GNATBIND" | |
2063 | if test -n "$GNATBIND"; then | |
2064 | echo "$ac_t""$GNATBIND" 1>&6 | |
2065 | else | |
2066 | echo "$ac_t""no" 1>&6 | |
2067 | fi | |
2068 | ||
2069 | ||
2070 | if test -z "$ac_cv_prog_GNATBIND"; then | |
2071 | if test -n "$ac_tool_prefix"; then | |
2072 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2073 | set dummy gnatbind; ac_word=$2 | |
2074 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2075 | echo "configure:2076: checking for $ac_word" >&5 |
55ffb5ed NN |
2076 | if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then |
2077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2078 | else | |
2079 | if test -n "$GNATBIND"; then | |
2080 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
2081 | else | |
2082 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2083 | ac_dummy="$PATH" | |
2084 | for ac_dir in $ac_dummy; do | |
2085 | test -z "$ac_dir" && ac_dir=. | |
2086 | if test -f $ac_dir/$ac_word; then | |
2087 | ac_cv_prog_GNATBIND="gnatbind" | |
2088 | break | |
2089 | fi | |
2090 | done | |
2091 | IFS="$ac_save_ifs" | |
2092 | test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no" | |
2093 | fi | |
2094 | fi | |
2095 | GNATBIND="$ac_cv_prog_GNATBIND" | |
2096 | if test -n "$GNATBIND"; then | |
2097 | echo "$ac_t""$GNATBIND" 1>&6 | |
2098 | else | |
2099 | echo "$ac_t""no" 1>&6 | |
2100 | fi | |
2101 | ||
2102 | else | |
2103 | GNATBIND="no" | |
2104 | fi | |
2105 | fi | |
2106 | ||
2107 | echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6 | |
98a5bb3b | 2108 | echo "configure:2109: checking whether compiler driver understands Ada" >&5 |
55ffb5ed NN |
2109 | if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then |
2110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2111 | else | |
2112 | cat >conftest.adb <<EOF | |
2113 | procedure conftest is begin null; end conftest; | |
2114 | EOF | |
2115 | acx_cv_cc_gcc_supports_ada=no | |
2116 | # There is a bug in old released versions of GCC which causes the | |
2117 | # driver to exit successfully when the appropriate language module | |
2118 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
2119 | # Therefore we must check for the error message as well as an | |
2120 | # unsuccessful exit. | |
1db673ca RO |
2121 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
2122 | # given a .adb file, but produce no object file. So we must check | |
2123 | # if an object file was really produced to guard against this. | |
55ffb5ed | 2124 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 2125 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed NN |
2126 | acx_cv_cc_gcc_supports_ada=yes |
2127 | break | |
2128 | fi | |
2129 | rm -f conftest.* | |
2130 | fi | |
2131 | ||
2132 | echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6 | |
2133 | ||
1db673ca | 2134 | if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
2135 | have_gnat=yes |
2136 | else | |
2137 | have_gnat=no | |
2138 | fi | |
2139 | ||
a76494aa | 2140 | echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6 |
98a5bb3b | 2141 | echo "configure:2142: checking how to compare bootstrapped objects" >&5 |
a76494aa PB |
2142 | if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then |
2143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2144 | else | |
2145 | echo abfoo >t1 | |
2146 | echo cdfoo >t2 | |
2147 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
2148 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
2149 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
2150 | : | |
2151 | else | |
2152 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
2153 | fi | |
2154 | fi | |
a76494aa PB |
2155 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
2156 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 2157 | : |
a76494aa PB |
2158 | else |
2159 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
2160 | fi | |
2161 | fi | |
2162 | rm t1 t2 | |
2163 | ||
2164 | fi | |
2165 | ||
2166 | echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6 | |
2167 | do_compare="$gcc_cv_prog_cmp_skip" | |
2168 | ||
2169 | ||
55ffb5ed | 2170 | |
6de9cd9a DN |
2171 | # Check for GMP |
2172 | gmplibs= | |
2173 | gmpinc= | |
2174 | have_gmp=yes | |
2175 | # Specify a location for gmp | |
2176 | # Check whether --with-gmp-dir or --without-gmp-dir was given. | |
2177 | if test "${with_gmp_dir+set}" = set; then | |
2178 | withval="$with_gmp_dir" | |
2179 | : | |
2180 | fi | |
2181 | ||
2182 | ||
2183 | if test "x$with_gmp_dir" != x && test -f "$with_gmp_dir/gmp.h"; then | |
2184 | gmpinc="-I$with_gmp_dir" | |
2185 | if test -f "$with_gmp_dir/.libs/libgmp.a"; then | |
2186 | gmplibs="$with_gmp_dir/.libs/libgmp.a" | |
2187 | elif test -f "$with_gmp_dir/_libs/libgmp.a"; then | |
2188 | gmplibs="$with_gmp_dir/_libs/libgmp.a" | |
2189 | fi | |
2190 | # One of the later tests will catch the error if neither library is present. | |
2191 | fi | |
2192 | ||
2193 | # Check whether --with-gmp or --without-gmp was given. | |
2194 | if test "${with_gmp+set}" = set; then | |
2195 | withval="$with_gmp" | |
2196 | : | |
2197 | fi | |
2198 | ||
2199 | ||
2200 | if test "x$with_gmp" != x && test -d "$with_gmp"; then | |
2201 | gmplibs="-L$with_gmp/lib -lgmp" | |
2202 | gmpinc="-I$with_gmp/include" | |
2203 | fi | |
2204 | ||
2205 | # Use system gmp if nothing else specified | |
2206 | if test "x$gmplibs" = x; then | |
2207 | gmplibs="-lgmp" | |
2208 | fi | |
2209 | ||
2210 | saved_CFLAGS="$CFLAGS" | |
2211 | CFLAGS="$CFLAGS $gmpinc" | |
2212 | # Check GMP actually works | |
2213 | echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6 | |
98a5bb3b | 2214 | echo "configure:2215: checking for correct version of gmp.h" >&5 |
6de9cd9a | 2215 | cat > conftest.$ac_ext <<EOF |
98a5bb3b | 2216 | #line 2217 "configure" |
6de9cd9a DN |
2217 | #include "confdefs.h" |
2218 | #include "gmp.h" | |
2219 | int main() { | |
2220 | ||
2221 | #if __GNU_MP_VERSION < 3 | |
2222 | choke me | |
2223 | #endif | |
2224 | ||
2225 | ; return 0; } | |
2226 | EOF | |
98a5bb3b | 2227 | if { (eval echo configure:2228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6de9cd9a DN |
2228 | rm -rf conftest* |
2229 | echo "$ac_t""yes" 1>&6 | |
2230 | else | |
2231 | echo "configure: failed program was:" >&5 | |
2232 | cat conftest.$ac_ext >&5 | |
2233 | rm -rf conftest* | |
2234 | echo "$ac_t""no" 1>&6; have_gmp=no | |
2235 | fi | |
2236 | rm -f conftest* | |
2237 | ||
2238 | if test x"$have_gmp" = xyes; then | |
2239 | echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6 | |
98a5bb3b | 2240 | echo "configure:2241: checking for mpf_init in -lgmp" >&5 |
6de9cd9a DN |
2241 | |
2242 | saved_LIBS="$LIBS" | |
2243 | LIBS="$LIBS $gmplibs" | |
2244 | cat > conftest.$ac_ext <<EOF | |
98a5bb3b | 2245 | #line 2246 "configure" |
6de9cd9a DN |
2246 | #include "confdefs.h" |
2247 | #include <gmp.h> | |
2248 | int main() { | |
2249 | mpf_t n; mpf_init(n); | |
2250 | ; return 0; } | |
2251 | EOF | |
98a5bb3b | 2252 | if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6de9cd9a DN |
2253 | rm -rf conftest* |
2254 | echo "$ac_t""yes" 1>&6 | |
2255 | else | |
2256 | echo "configure: failed program was:" >&5 | |
2257 | cat conftest.$ac_ext >&5 | |
2258 | rm -rf conftest* | |
2259 | echo "$ac_t""no" 1>&6; have_gmp=no | |
2260 | fi | |
2261 | rm -f conftest* | |
2262 | LIBS="$saved_LIBS" | |
2263 | CFLAGS="$saved_CFLAGS" | |
2264 | fi | |
2265 | ||
2266 | ||
2267 | ||
2268 | ||
1e0f07d3 | 2269 | # By default, C is the only stage 1 language. |
2805b53a NN |
2270 | stage1_languages=c |
2271 | ||
2272 | ||
55ffb5ed NN |
2273 | # Figure out what language subdirectories are present. |
2274 | # Look if the user specified --enable-languages="..."; if not, use | |
2275 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
2276 | # go away some day. | |
2277 | # NB: embedded tabs in this IF block -- do not untabify | |
2278 | if test -d ${srcdir}/gcc; then | |
2279 | if test x"${enable_languages+set}" != xset; then | |
2280 | if test x"${LANGUAGES+set}" = xset; then | |
2281 | enable_languages="${LANGUAGES}" | |
2282 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
2283 | else | |
2284 | enable_languages=all | |
2285 | fi | |
2286 | else | |
2287 | if test x"${enable_languages}" = x || | |
2288 | test x"${enable_languages}" = xyes; | |
2289 | then | |
2290 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
2291 | exit 1 | |
2292 | fi | |
2293 | fi | |
2294 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
2295 | ||
2296 | # First scan to see if an enabled language requires some other language. | |
2297 | # We assume that a given config-lang.in will list all the language | |
2298 | # front ends it requires, even if some are required indirectly. | |
2299 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
2300 | case ${lang_frag} in | |
2301 | ..) ;; | |
2302 | # The odd quoting in the next line works around | |
2303 | # an apparent bug in bash 1.12 on linux. | |
2304 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
2305 | *) | |
2306 | # From the config-lang.in, get $language, $lang_requires | |
2307 | language= | |
2308 | lang_requires= | |
2309 | . ${lang_frag} | |
2310 | for other in ${lang_requires} ; do | |
2311 | case ,${enable_languages}, in | |
2312 | *,$other,*) ;; | |
2313 | *,all,*) ;; | |
2314 | *,$language,*) | |
2315 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
2316 | enable_languages="${enable_languages},${other}" | |
2317 | ;; | |
2318 | esac | |
2319 | done | |
2320 | ;; | |
2321 | esac | |
2322 | done | |
2323 | ||
2324 | new_enable_languages=c | |
2325 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` | |
2326 | ||
2327 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
2328 | case ${lang_frag} in | |
2329 | ..) ;; | |
2330 | # The odd quoting in the next line works around | |
2331 | # an apparent bug in bash 1.12 on linux. | |
2332 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
2333 | *) | |
2334 | # From the config-lang.in, get $language, $target_libs, | |
2805b53a | 2335 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
2336 | language= |
2337 | target_libs= | |
2338 | lang_dirs= | |
2805b53a | 2339 | boot_language= |
55ffb5ed | 2340 | build_by_default= |
6de9cd9a | 2341 | need_gmp= |
55ffb5ed NN |
2342 | . ${lang_frag} |
2343 | # This is quite sensitive to the ordering of the case statement arms. | |
2344 | case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in | |
2345 | *::*:*) | |
2346 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
2347 | exit 1 | |
2348 | ;; | |
2349 | *:ada:no:*) | |
2350 | # Ada was requested with no preexisting GNAT. Disable unconditionally. | |
2351 | add_this_lang=no | |
2352 | ;; | |
2353 | *,${language},*:*:*:*) | |
2354 | # Language was explicitly selected; include it. | |
2355 | add_this_lang=yes | |
2356 | ;; | |
2357 | *,all,*:*:*:no) | |
2358 | # 'all' was selected, but this is not a default language | |
2359 | # so do not include it. | |
2360 | add_this_lang=no | |
2361 | ;; | |
2362 | *,all,*:*:*:*) | |
2363 | # 'all' was selected and this is a default language; include it. | |
2364 | add_this_lang=yes | |
2365 | ;; | |
2366 | *) | |
2367 | add_this_lang=no | |
2368 | ;; | |
2369 | esac | |
6de9cd9a DN |
2370 | |
2371 | # Disable language that need GMP if it isn't available. | |
2372 | if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then | |
2373 | add_this_lang=no | |
2374 | fi | |
2375 | ||
2376 | case $add_this_lang in | |
55ffb5ed NN |
2377 | no) |
2378 | # Remove language-dependent dirs. | |
2805b53a NN |
2379 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" |
2380 | ;; | |
55ffb5ed NN |
2381 | *) |
2382 | new_enable_languages="$new_enable_languages,$language" | |
2805b53a NN |
2383 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
2384 | case ${boot_language} in | |
2385 | yes) | |
340de83f NN |
2386 | # Add to (comma-separated) list of stage 1 languages. |
2387 | stage1_languages="${stage1_languages},${language}" | |
2805b53a NN |
2388 | ;; |
2389 | esac | |
2390 | ;; | |
55ffb5ed NN |
2391 | esac |
2392 | ;; | |
2393 | esac | |
2394 | done | |
2395 | ||
79b4b7d2 | 2396 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
55ffb5ed NN |
2397 | if test "x$missing_languages" != x; then |
2398 | { echo "configure: error: | |
2399 | The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; } | |
2400 | fi | |
2401 | ||
2402 | if test "x$new_enable_languages" != "x$enable_languages"; then | |
2403 | echo The following languages will be built: ${new_enable_languages} | |
2404 | fi | |
2405 | enable_languages="$new_enable_languages" | |
6bbec498 | 2406 | ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ ` |
55ffb5ed NN |
2407 | fi |
2408 | ||
2409 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and | |
2410 | # $target_configdirs. | |
2411 | # If we have the source for $noconfigdirs entries, add them to $notsupp. | |
2412 | ||
2413 | notsupp="" | |
2414 | for dir in . $skipdirs $noconfigdirs ; do | |
2415 | dirname=`echo $dir | sed -e s/target-//g` | |
2416 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2417 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
2418 | if test -r $srcdir/$dirname/configure ; then | |
2419 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2420 | true | |
2421 | else | |
2422 | notsupp="$notsupp $dir" | |
2423 | fi | |
2424 | fi | |
2425 | fi | |
2426 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2427 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
2428 | if test -r $srcdir/$dirname/configure ; then | |
2429 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2430 | true | |
2431 | else | |
2432 | notsupp="$notsupp $dir" | |
2433 | fi | |
2434 | fi | |
2435 | fi | |
2436 | done | |
2437 | ||
2438 | # Sometimes the tools are distributed with libiberty but with no other | |
2439 | # libraries. In that case, we don't want to build target-libiberty. | |
2440 | if test -n "${target_configdirs}" ; then | |
2441 | others= | |
2442 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
2443 | if test "$i" != "libiberty" ; then | |
2444 | if test -r $srcdir/$i/configure ; then | |
2445 | others=yes; | |
2446 | break; | |
2447 | fi | |
2448 | fi | |
2449 | done | |
2450 | if test -z "${others}" ; then | |
2451 | target_configdirs= | |
2452 | fi | |
2453 | fi | |
2454 | ||
2455 | # Quietly strip out all directories which aren't configurable in this tree. | |
2456 | # This relies on all configurable subdirectories being autoconfiscated, which | |
2457 | # is now the case. | |
23f6b2f9 PB |
2458 | build_configdirs_all="$build_configdirs" |
2459 | build_configdirs= | |
2460 | for i in ${build_configdirs_all} ; do | |
2461 | j=`echo $i | sed -e s/build-//g` | |
2462 | if test -f ${srcdir}/$j/configure ; then | |
2463 | build_configdirs="${build_configdirs} $i" | |
2464 | fi | |
2465 | done | |
2466 | ||
55ffb5ed NN |
2467 | configdirs_all="$configdirs" |
2468 | configdirs= | |
2469 | for i in ${configdirs_all} ; do | |
2470 | if test -f ${srcdir}/$i/configure ; then | |
2471 | configdirs="${configdirs} $i" | |
2472 | fi | |
2473 | done | |
23f6b2f9 | 2474 | |
55ffb5ed NN |
2475 | target_configdirs_all="$target_configdirs" |
2476 | target_configdirs= | |
2477 | for i in ${target_configdirs_all} ; do | |
2478 | j=`echo $i | sed -e s/target-//g` | |
2479 | if test -f ${srcdir}/$j/configure ; then | |
2480 | target_configdirs="${target_configdirs} $i" | |
2481 | fi | |
2482 | done | |
2483 | ||
2484 | # Produce a warning message for the subdirs we can't configure. | |
2485 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
2486 | # FSF releases, it's important to let people know when their machine isn't | |
2487 | # supported by the one or two programs in a package. | |
2488 | ||
2489 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
2490 | # If $appdirs is non-empty, at least one of those directories must still | |
2491 | # be configured, or we error out. (E.g., if the gas release supports a | |
2492 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
2493 | # pretend that all is well.) | |
2494 | if test -n "$appdirs" ; then | |
2495 | for dir in $appdirs ; do | |
2496 | if test -r $dir/Makefile.in ; then | |
2497 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2498 | appdirs="" | |
2499 | break | |
2500 | fi | |
23f6b2f9 | 2501 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
2502 | appdirs="" |
2503 | break | |
2504 | fi | |
2505 | fi | |
2506 | done | |
2507 | if test -n "$appdirs" ; then | |
2508 | echo "*** This configuration is not supported by this package." 1>&2 | |
2509 | exit 1 | |
2510 | fi | |
2511 | fi | |
2512 | # Okay, some application will build, or we don't care to check. Still | |
2513 | # notify of subdirs not getting built. | |
2514 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
2515 | echo " ${notsupp}" 1>&2 | |
2516 | echo " (Any other directories should still work fine.)" 1>&2 | |
2517 | fi | |
2518 | ||
2519 | case "$host" in | |
2520 | *msdosdjgpp*) | |
2521 | enable_gdbtk=no ;; | |
2522 | esac | |
2523 | ||
2524 | copy_dirs= | |
2525 | ||
2526 | # Handle --with-headers=XXX. If the value is not "yes", the contents of | |
2527 | # the named directory are copied to $(tooldir)/sys-include. | |
2528 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
2529 | if test x${is_cross_compiler} = xno ; then | |
2530 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
2531 | exit 1 | |
2532 | fi | |
2533 | if test x"${with_headers}" != xyes ; then | |
2534 | case "${exec_prefixoption}" in | |
2535 | "") x=${prefix} ;; | |
2536 | *) x=${exec_prefix} ;; | |
2537 | esac | |
2538 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" | |
2539 | fi | |
2540 | fi | |
2541 | ||
2542 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
2543 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
2544 | # are permitted. | |
2545 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
2546 | if test x${is_cross_compiler} = xno ; then | |
2547 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
2548 | exit 1 | |
2549 | fi | |
2550 | if test x"${with_libs}" != xyes ; then | |
2551 | # Copy the libraries in reverse order, so that files in the first named | |
2552 | # library override files in subsequent libraries. | |
2553 | case "${exec_prefixoption}" in | |
2554 | "") x=${prefix} ;; | |
2555 | *) x=${exec_prefix} ;; | |
2556 | esac | |
2557 | for l in ${with_libs}; do | |
2558 | copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" | |
2559 | done | |
2560 | fi | |
2561 | fi | |
2562 | ||
2563 | # Handle ${copy_dirs} | |
2564 | set fnord ${copy_dirs} | |
2565 | shift | |
2566 | while test $# != 0 ; do | |
2567 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
2568 | : | |
2569 | else | |
2570 | echo Copying $1 to $2 | |
2571 | ||
2572 | # Use the install script to create the directory and all required | |
2573 | # parent directories. | |
2574 | if test -d $2 ; then | |
2575 | : | |
2576 | else | |
2577 | echo >config.temp | |
2578 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
2579 | fi | |
2580 | ||
2581 | # Copy the directory, assuming we have tar. | |
2582 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
2583 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
2584 | ||
2585 | # It is the responsibility of the user to correctly adjust all | |
2586 | # symlinks. If somebody can figure out how to handle them correctly | |
2587 | # here, feel free to add the code. | |
2588 | ||
2589 | echo $1 > $2/COPIED | |
2590 | fi | |
2591 | shift; shift | |
2592 | done | |
2593 | ||
671aa708 NN |
2594 | extra_arflags_for_target= |
2595 | extra_nmflags_for_target= | |
2596 | extra_ranlibflags_for_target= | |
2597 | target_makefile_frag=/dev/null | |
2598 | case "${target}" in | |
f2a0e225 | 2599 | i[3456789]86-*-netware*) |
671aa708 NN |
2600 | target_makefile_frag="config/mt-netware" |
2601 | ;; | |
2602 | powerpc-*-netware*) | |
2603 | target_makefile_frag="config/mt-netware" | |
2604 | ;; | |
98a5bb3b RM |
2605 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
2606 | target_makefile_frag="config/mt-gnu" | |
671aa708 NN |
2607 | ;; |
2608 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
2609 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm | |
2610 | # commands to handle both 32-bit and 64-bit objects. These flags are | |
2611 | # harmless if we're using GNU nm or ar. | |
2612 | extra_arflags_for_target=" -X32_64" | |
2613 | extra_nmflags_for_target=" -B -X32_64" | |
2614 | ;; | |
2615 | *-*-darwin*) | |
2616 | # ranlib from Darwin requires the -c flag to look at common symbols. | |
2617 | extra_ranlibflags_for_target=" -c" | |
2618 | ;; | |
2619 | mips*-*-pe | sh*-*-pe | *arm-wince-pe) | |
2620 | target_makefile_frag="config/mt-wince" | |
2621 | ;; | |
2622 | esac | |
2623 | ||
2624 | alphaieee_frag=/dev/null | |
2625 | case $target in | |
2626 | alpha*-*-*) | |
2627 | # This just makes sure to use the -mieee option to build target libs. | |
2628 | # This should probably be set individually by each library. | |
2629 | alphaieee_frag="config/mt-alphaieee" | |
2630 | ;; | |
2631 | esac | |
2632 | ||
2633 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
2634 | # the target libraries, similarly if it is not specified, use -Os | |
2635 | # on selected platforms. | |
2636 | ospace_frag=/dev/null | |
2637 | case "${enable_target_optspace}:${target}" in | |
2638 | yes:*) | |
2639 | ospace_frag="config/mt-ospace" | |
2640 | ;; | |
2641 | :d30v-*) | |
2642 | ospace_frag="config/mt-d30v" | |
2643 | ;; | |
2644 | :m32r-* | :d10v-* | :fr30-*) | |
2645 | ospace_frag="config/mt-ospace" | |
2646 | ;; | |
2647 | no:* | :*) | |
2648 | ;; | |
2649 | *) | |
2650 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
2651 | ;; | |
2652 | esac | |
2653 | ||
2654 | # Set with_gnu_as and with_gnu_ld as appropriate. | |
2655 | # | |
2656 | # This is done by determining whether or not the appropriate directory | |
2657 | # is available, and by checking whether or not specific configurations | |
2658 | # have requested that this magic not happen. | |
2659 | # | |
2660 | # The command line options always override the explicit settings in | |
2661 | # configure.in, and the settings in configure.in override this magic. | |
2662 | # | |
2663 | # If the default for a toolchain is to use GNU as and ld, and you don't | |
2664 | # want to do that, then you should use the --without-gnu-as and | |
2665 | # --without-gnu-ld options for the configure script. | |
2666 | ||
2667 | if test x${use_gnu_as} = x && | |
2668 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
2669 | with_gnu_as=yes | |
2670 | extra_host_args="$extra_host_args --with-gnu-as" | |
2671 | fi | |
2672 | ||
2673 | if test x${use_gnu_ld} = x && | |
2674 | echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then | |
2675 | with_gnu_ld=yes | |
2676 | extra_host_args="$extra_host_args --with-gnu-ld" | |
2677 | fi | |
2678 | ||
2679 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
2680 | # can detect this case. | |
2681 | ||
2682 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
2683 | with_newlib=yes | |
2684 | extra_host_args="$extra_host_args --with-newlib" | |
2685 | fi | |
2686 | ||
6de9cd9a DN |
2687 | if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then |
2688 | extra_host_args="$extra_host_args --with-libbanshee" | |
2689 | fi | |
671aa708 NN |
2690 | |
2691 | # Default to using --with-stabs for certain targets. | |
2692 | if test x${with_stabs} = x ; then | |
2693 | case "${target}" in | |
89a95129 | 2694 | mips*-*-irix[56]*) |
671aa708 NN |
2695 | ;; |
2696 | mips*-*-* | alpha*-*-osf*) | |
2697 | with_stabs=yes; | |
2698 | extra_host_args="${extra_host_args} --with-stabs" | |
2699 | ;; | |
2700 | esac | |
2701 | fi | |
2702 | ||
2703 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
2704 | # them automatically. | |
2705 | case "${host}" in | |
2706 | hppa*64*-*-hpux11*) | |
2707 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" | |
2708 | ;; | |
2709 | esac | |
2710 | ||
671aa708 NN |
2711 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
2712 | # using) don't handle "\$" correctly, so don't use it here. | |
df445104 | 2713 | tooldir='${exec_prefix}'/${target_alias} |
671aa708 NN |
2714 | build_tooldir=${tooldir} |
2715 | ||
23f6b2f9 PB |
2716 | # Generate default definitions for YACC, M4, LEX and other programs that run |
2717 | # on the build machine. These are used if the Makefile can't locate these | |
2718 | # programs in objdir. | |
1e0f07d3 | 2719 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
23f6b2f9 PB |
2720 | for ac_prog in bison |
2721 | do | |
2722 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2723 | set dummy $ac_prog; ac_word=$2 | |
2724 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2725 | echo "configure:2726: checking for $ac_word" >&5 |
23f6b2f9 PB |
2726 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then |
2727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2728 | else | |
2729 | if test -n "$CONFIGURED_BISON"; then | |
2730 | ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test. | |
2731 | else | |
2732 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2733 | ac_dummy="$PATH" | |
2734 | for ac_dir in $ac_dummy; do | |
2735 | test -z "$ac_dir" && ac_dir=. | |
2736 | if test -f $ac_dir/$ac_word; then | |
2737 | ac_cv_prog_CONFIGURED_BISON="$ac_prog" | |
2738 | break | |
2739 | fi | |
2740 | done | |
2741 | IFS="$ac_save_ifs" | |
2742 | fi | |
2743 | fi | |
2744 | CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON" | |
2745 | if test -n "$CONFIGURED_BISON"; then | |
2746 | echo "$ac_t""$CONFIGURED_BISON" 1>&6 | |
2747 | else | |
2748 | echo "$ac_t""no" 1>&6 | |
2749 | fi | |
2750 | ||
2751 | test -n "$CONFIGURED_BISON" && break | |
2752 | done | |
2753 | test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison" | |
2754 | ||
1e0f07d3 | 2755 | for ac_prog in 'bison -y' byacc yacc |
671aa708 | 2756 | do |
1e0f07d3 PB |
2757 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2758 | set dummy $ac_prog; ac_word=$2 | |
2759 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2760 | echo "configure:2761: checking for $ac_word" >&5 |
23f6b2f9 | 2761 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then |
1e0f07d3 PB |
2762 | echo $ac_n "(cached) $ac_c" 1>&6 |
2763 | else | |
23f6b2f9 PB |
2764 | if test -n "$CONFIGURED_YACC"; then |
2765 | ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test. | |
1e0f07d3 PB |
2766 | else |
2767 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2768 | ac_dummy="$PATH" | |
2769 | for ac_dir in $ac_dummy; do | |
2770 | test -z "$ac_dir" && ac_dir=. | |
2771 | if test -f $ac_dir/$ac_word; then | |
23f6b2f9 | 2772 | ac_cv_prog_CONFIGURED_YACC="$ac_prog" |
671aa708 NN |
2773 | break |
2774 | fi | |
2775 | done | |
1e0f07d3 PB |
2776 | IFS="$ac_save_ifs" |
2777 | fi | |
2778 | fi | |
23f6b2f9 PB |
2779 | CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC" |
2780 | if test -n "$CONFIGURED_YACC"; then | |
2781 | echo "$ac_t""$CONFIGURED_YACC" 1>&6 | |
1e0f07d3 PB |
2782 | else |
2783 | echo "$ac_t""no" 1>&6 | |
2784 | fi | |
671aa708 | 2785 | |
23f6b2f9 | 2786 | test -n "$CONFIGURED_YACC" && break |
671aa708 | 2787 | done |
23f6b2f9 | 2788 | test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y" |
671aa708 | 2789 | |
1e0f07d3 | 2790 | for ac_prog in gm4 gnum4 m4 |
671aa708 | 2791 | do |
1e0f07d3 PB |
2792 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2793 | set dummy $ac_prog; ac_word=$2 | |
2794 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2795 | echo "configure:2796: checking for $ac_word" >&5 |
23f6b2f9 PB |
2796 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then |
2797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2798 | else | |
2799 | if test -n "$CONFIGURED_M4"; then | |
2800 | ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test. | |
2801 | else | |
2802 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2803 | ac_dummy="$PATH" | |
2804 | for ac_dir in $ac_dummy; do | |
2805 | test -z "$ac_dir" && ac_dir=. | |
2806 | if test -f $ac_dir/$ac_word; then | |
2807 | ac_cv_prog_CONFIGURED_M4="$ac_prog" | |
2808 | break | |
2809 | fi | |
2810 | done | |
2811 | IFS="$ac_save_ifs" | |
2812 | fi | |
2813 | fi | |
2814 | CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4" | |
2815 | if test -n "$CONFIGURED_M4"; then | |
2816 | echo "$ac_t""$CONFIGURED_M4" 1>&6 | |
2817 | else | |
2818 | echo "$ac_t""no" 1>&6 | |
2819 | fi | |
2820 | ||
2821 | test -n "$CONFIGURED_M4" && break | |
2822 | done | |
2823 | test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4" | |
2824 | ||
2825 | for ac_prog in flex | |
2826 | do | |
2827 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2828 | set dummy $ac_prog; ac_word=$2 | |
2829 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2830 | echo "configure:2831: checking for $ac_word" >&5 |
23f6b2f9 | 2831 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then |
1e0f07d3 PB |
2832 | echo $ac_n "(cached) $ac_c" 1>&6 |
2833 | else | |
23f6b2f9 PB |
2834 | if test -n "$CONFIGURED_FLEX"; then |
2835 | ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test. | |
1e0f07d3 PB |
2836 | else |
2837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2838 | ac_dummy="$PATH" | |
2839 | for ac_dir in $ac_dummy; do | |
2840 | test -z "$ac_dir" && ac_dir=. | |
2841 | if test -f $ac_dir/$ac_word; then | |
23f6b2f9 | 2842 | ac_cv_prog_CONFIGURED_FLEX="$ac_prog" |
671aa708 NN |
2843 | break |
2844 | fi | |
2845 | done | |
1e0f07d3 PB |
2846 | IFS="$ac_save_ifs" |
2847 | fi | |
2848 | fi | |
23f6b2f9 PB |
2849 | CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX" |
2850 | if test -n "$CONFIGURED_FLEX"; then | |
2851 | echo "$ac_t""$CONFIGURED_FLEX" 1>&6 | |
1e0f07d3 PB |
2852 | else |
2853 | echo "$ac_t""no" 1>&6 | |
2854 | fi | |
671aa708 | 2855 | |
23f6b2f9 | 2856 | test -n "$CONFIGURED_FLEX" && break |
671aa708 | 2857 | done |
23f6b2f9 | 2858 | test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex" |
671aa708 | 2859 | |
1e0f07d3 | 2860 | for ac_prog in flex lex |
671aa708 | 2861 | do |
1e0f07d3 PB |
2862 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2863 | set dummy $ac_prog; ac_word=$2 | |
2864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2865 | echo "configure:2866: checking for $ac_word" >&5 |
23f6b2f9 | 2866 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then |
1e0f07d3 PB |
2867 | echo $ac_n "(cached) $ac_c" 1>&6 |
2868 | else | |
23f6b2f9 PB |
2869 | if test -n "$CONFIGURED_LEX"; then |
2870 | ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test. | |
1e0f07d3 PB |
2871 | else |
2872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2873 | ac_dummy="$PATH" | |
2874 | for ac_dir in $ac_dummy; do | |
2875 | test -z "$ac_dir" && ac_dir=. | |
2876 | if test -f $ac_dir/$ac_word; then | |
23f6b2f9 | 2877 | ac_cv_prog_CONFIGURED_LEX="$ac_prog" |
671aa708 NN |
2878 | break |
2879 | fi | |
2880 | done | |
1e0f07d3 PB |
2881 | IFS="$ac_save_ifs" |
2882 | fi | |
2883 | fi | |
23f6b2f9 PB |
2884 | CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX" |
2885 | if test -n "$CONFIGURED_LEX"; then | |
2886 | echo "$ac_t""$CONFIGURED_LEX" 1>&6 | |
1e0f07d3 PB |
2887 | else |
2888 | echo "$ac_t""no" 1>&6 | |
2889 | fi | |
671aa708 | 2890 | |
23f6b2f9 | 2891 | test -n "$CONFIGURED_LEX" && break |
671aa708 | 2892 | done |
23f6b2f9 PB |
2893 | test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex" |
2894 | ||
2895 | for ac_prog in makeinfo | |
2896 | do | |
2897 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2898 | set dummy $ac_prog; ac_word=$2 | |
2899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 2900 | echo "configure:2901: checking for $ac_word" >&5 |
23f6b2f9 PB |
2901 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then |
2902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2903 | else | |
2904 | if test -n "$CONFIGURED_MAKEINFO"; then | |
2905 | ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test. | |
2906 | else | |
2907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2908 | ac_dummy="$PATH" | |
2909 | for ac_dir in $ac_dummy; do | |
2910 | test -z "$ac_dir" && ac_dir=. | |
2911 | if test -f $ac_dir/$ac_word; then | |
2912 | ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog" | |
2913 | break | |
2914 | fi | |
2915 | done | |
2916 | IFS="$ac_save_ifs" | |
2917 | fi | |
2918 | fi | |
2919 | CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO" | |
2920 | if test -n "$CONFIGURED_MAKEINFO"; then | |
2921 | echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6 | |
2922 | else | |
2923 | echo "$ac_t""no" 1>&6 | |
2924 | fi | |
2925 | ||
2926 | test -n "$CONFIGURED_MAKEINFO" && break | |
2927 | done | |
2928 | test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo" | |
1e0f07d3 | 2929 | |
671aa708 | 2930 | |
671aa708 NN |
2931 | # Create a .gdbinit file which runs the one in srcdir |
2932 | # and tells GDB to look there for source files. | |
2933 | ||
2934 | if test -r ${srcdir}/.gdbinit ; then | |
2935 | case ${srcdir} in | |
2936 | .) ;; | |
2937 | *) cat > ./.gdbinit <<EOF | |
2938 | # ${NO_EDIT} | |
2939 | dir ${srcdir} | |
2940 | dir . | |
2941 | source ${srcdir}/.gdbinit | |
2942 | EOF | |
2943 | ;; | |
2944 | esac | |
2945 | fi | |
2946 | ||
671aa708 NN |
2947 | # Make sure that the compiler is able to generate an executable. If it |
2948 | # can't, we are probably in trouble. We don't care whether we can run the | |
2949 | # executable--we might be using a cross compiler--we only care whether it | |
2950 | # can be created. At this point the main configure script has set CC. | |
2951 | we_are_ok=no | |
2952 | echo "int main () { return 0; }" > conftest.c | |
2953 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
2954 | if test $? = 0 ; then | |
2955 | if test -s conftest || test -s conftest.exe ; then | |
2956 | we_are_ok=yes | |
2957 | fi | |
2958 | fi | |
2959 | case $we_are_ok in | |
2960 | no) | |
2961 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
2962 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
2963 | rm -f conftest* | |
2964 | exit 1 | |
2965 | ;; | |
2966 | esac | |
2967 | rm -f conftest* | |
2968 | ||
2969 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
2970 | case "${host}" in | |
2971 | sparc-sun-solaris2*) | |
2972 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
2973 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
2974 | could_use= | |
2975 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
2976 | if test -d /opt/cygnus/bin ; then | |
2977 | if test "$could_use" = "" ; then | |
2978 | could_use="/opt/cygnus/bin" | |
2979 | else | |
2980 | could_use="$could_use or /opt/cygnus/bin" | |
2981 | fi | |
2982 | fi | |
2983 | if test "$could_use" = "" ; then | |
2984 | echo "Warning: compilation may fail because you're using" | |
2985 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
2986 | echo "variable and rerun configure." | |
2987 | else | |
2988 | echo "Warning: compilation may fail because you're using" | |
2989 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
2990 | echo "$could_use. You should change your" | |
2991 | echo "PATH or CC variable and rerun configure." | |
2992 | fi | |
2993 | fi | |
2994 | ;; | |
2995 | esac | |
2996 | ||
2997 | # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the | |
2998 | # binutils tools will find libbfd.so. | |
aa9c3ab4 NN |
2999 | case "${enable_shared}" in |
3000 | no | "") SET_LIB_PATH= ;; | |
3001 | *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;; | |
3002 | esac | |
671aa708 NN |
3003 | |
3004 | case "${host}" in | |
3005 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3006 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; | |
3007 | esac | |
3008 | ||
3009 | # Record target_configdirs and the configure arguments for target and | |
3010 | # build configuration in Makefile. | |
3011 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 3012 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 3013 | |
671aa708 NN |
3014 | # Determine whether gdb needs tk/tcl or not. |
3015 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
3016 | # and in that case we want gdb to be built without tk. Ugh! | |
3017 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
3018 | # so we should be able to put the 'maybe's in unconditionally and | |
3019 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
3020 | # 100% sure that that's safe though. | |
e914a571 AC |
3021 | |
3022 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui" | |
671aa708 NN |
3023 | case "$enable_gdbtk" in |
3024 | no) | |
3025 | GDB_TK="" ;; | |
e914a571 AC |
3026 | yes) |
3027 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 3028 | *) |
e914a571 AC |
3029 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
3030 | # distro. Eventually someone will fix this and move Insight, nee | |
3031 | # gdbtk to a separate directory. | |
3032 | if test -d ${srcdir}/gdb/gdbtk ; then | |
3033 | GDB_TK="${gdb_tk}" | |
3034 | else | |
3035 | GDB_TK="" | |
3036 | fi | |
3037 | ;; | |
671aa708 NN |
3038 | esac |
3039 | ||
60975492 | 3040 | # Strip out unwanted targets. |
8b87bb96 NN |
3041 | |
3042 | # While at that, we remove Makefiles if we were started for recursive | |
3043 | # configuration, so that the top-level Makefile reconfigures them, | |
3044 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 3045 | |
60975492 PB |
3046 | # Loop over modules. $extrasub must be used with care, limiting as |
3047 | # much as possible the usage of range addresses. That's because autoconf | |
3048 | # splits the sed script to overcome limits in the number of commands, | |
3049 | # and relying on carefully-timed sed passes may turn out to be very hard | |
3050 | # to maintain later. In this particular case, you just have to be careful | |
3051 | # not to nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 3052 | |
f516a7da PB |
3053 | # Check whether --enable-bootstrap or --disable-bootstrap was given. |
3054 | if test "${enable_bootstrap+set}" = set; then | |
3055 | enableval="$enable_bootstrap" | |
3056 | : | |
3057 | else | |
3058 | enable_bootstrap=no | |
3059 | fi | |
3060 | ||
3061 | if test -d ${srcdir}/gcc; then | |
3062 | case "$host:$target:$enable_bootstrap" in | |
3063 | $build:$build:yes | *:no) ;; | |
3064 | *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;; | |
3065 | *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;; | |
3066 | esac | |
3067 | else | |
3068 | if test $enable_bootstrap = yes; then | |
3069 | { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } | |
3070 | fi | |
3071 | fi | |
3072 | ||
3073 | case "$enable_bootstrap" in | |
3074 | yes) | |
c2f7605f | 3075 | default_target=bootstrap |
5607edfd | 3076 | bootstrap_suffix=bootstrap ;; |
f516a7da PB |
3077 | no) |
3078 | default_target=all | |
5607edfd | 3079 | bootstrap_suffix=no-bootstrap ;; |
f516a7da PB |
3080 | esac |
3081 | ||
3082 | ||
23f6b2f9 | 3083 | for module in ${build_configdirs} ; do |
5607edfd PB |
3084 | if test -z "${no_recursion}" \ |
3085 | && test -f ${build_subdir}/${module}/Makefile; then | |
3086 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
3087 | rm -f ${build_subdir}/${module}/Makefile | |
3088 | fi | |
3089 | extrasub="$extrasub | |
3090 | /^@if build-$module\$/d | |
3091 | /^@endif build-$module\$/d | |
3092 | /^@if build-$module-$bootstrap_suffix\$/d | |
3093 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
3094 | done | |
3095 | for module in ${configdirs} ; do | |
3096 | if test -z "${no_recursion}" \ | |
3097 | && test -f ${module}/Makefile; then | |
3098 | echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" | |
3099 | rm -f ${module}/Makefile | |
3100 | fi | |
3101 | extrasub="$extrasub | |
3102 | /^@if $module\$/d | |
3103 | /^@endif $module\$/d | |
3104 | /^@if $module-$bootstrap_suffix\$/d | |
3105 | /^@endif $module-$bootstrap_suffix\$/d" | |
3106 | done | |
3107 | for module in ${target_configdirs} ; do | |
3108 | if test -z "${no_recursion}" \ | |
3109 | && test -f ${target_subdir}/${module}/Makefile; then | |
3110 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
3111 | rm -f ${target_subdir}/${module}/Makefile | |
3112 | fi | |
3113 | extrasub="$extrasub | |
3114 | /^@if target-$module\$/d | |
3115 | /^@endif target-$module\$/d | |
3116 | /^@if target-$module-$bootstrap_suffix\$/d | |
3117 | /^@endif target-$module-$bootstrap_suffix\$/d" | |
3118 | done | |
3119 | ||
60975492 PB |
3120 | extrasub="$extrasub |
3121 | /^@if /,/^@endif /d" | |
671aa708 NN |
3122 | |
3123 | # Create the serialization dependencies. This uses a temporary file. | |
3124 | ||
ade82b16 AO |
3125 | # Check whether --enable-serial-configure or --disable-serial-configure was given. |
3126 | if test "${enable_serial_configure+set}" = set; then | |
3127 | enableval="$enable_serial_configure" | |
3128 | : | |
3129 | fi | |
3130 | ||
3131 | ||
bf1d3e81 NN |
3132 | case ${enable_serial_configure} in |
3133 | yes) | |
3134 | enable_serial_build_configure=yes | |
3135 | enable_serial_host_configure=yes | |
3136 | enable_serial_target_configure=yes | |
3137 | ;; | |
3138 | esac | |
3139 | ||
671aa708 NN |
3140 | # These force 'configure's to be done one at a time, to avoid problems |
3141 | # with contention over a shared config.cache. | |
3142 | rm -f serdep.tmp | |
ade82b16 | 3143 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 3144 | olditem= |
bf1d3e81 | 3145 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
3146 | for item in ${build_configdirs} ; do |
3147 | case ${olditem} in | |
3148 | "") ;; | |
ade82b16 | 3149 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
3150 | esac |
3151 | olditem=${item} | |
3152 | done | |
3153 | olditem= | |
bf1d3e81 | 3154 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
3155 | for item in ${configdirs} ; do |
3156 | case ${olditem} in | |
3157 | "") ;; | |
ade82b16 | 3158 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
3159 | esac |
3160 | olditem=${item} | |
3161 | done | |
3162 | olditem= | |
bf1d3e81 | 3163 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
3164 | for item in ${target_configdirs} ; do |
3165 | case ${olditem} in | |
3166 | "") ;; | |
ade82b16 | 3167 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
3168 | esac |
3169 | olditem=${item} | |
3170 | done | |
3171 | serialization_dependencies=serdep.tmp | |
3172 | ||
3173 | ||
ade82b16 AO |
3174 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
3175 | # target and nonopt. These are the ones we might not want to pass | |
43bb47c2 DJ |
3176 | # down to subconfigures. Also strip program-prefix, program-suffix, |
3177 | # and program-transform-name, so that we can pass down a consistent | |
3178 | # program-transform-name. If autoconf has put single quotes around | |
3179 | # any of these arguments (because they contain shell metacharacters) | |
3180 | # then this will fail; in practice this only happens for | |
3181 | # --program-transform-name, so be sure to override --program-transform-name | |
3182 | # at the end of the argument list. | |
3183 | # These will be expanded by make, so quote '$'. | |
b348267b | 3184 | cat <<\EOF_SED > conftestsed |
9104315a NN |
3185 | s/ --no[^ ]*/ /g |
3186 | s/ --c[a-z-]*[= ][^ ]*//g | |
3187 | s/ --sr[a-z-]*[= ][^ ]*//g | |
3188 | s/ --ho[a-z-]*[= ][^ ]*//g | |
3189 | s/ --bu[a-z-]*[= ][^ ]*//g | |
3190 | s/ --t[a-z-]*[= ][^ ]*//g | |
3191 | s/ --program-[pst][a-z-]*[= ][^ ]*//g | |
3192 | s/ -cache-file[= ][^ ]*//g | |
3193 | s/ -srcdir[= ][^ ]*//g | |
3194 | s/ -host[= ][^ ]*//g | |
3195 | s/ -build[= ][^ ]*//g | |
3196 | s/ -target[= ][^ ]*//g | |
3197 | s/ -program-prefix[= ][^ ]*//g | |
3198 | s/ -program-suffix[= ][^ ]*//g | |
3199 | s/ -program-transform-name[= ][^ ]*//g | |
b348267b GK |
3200 | s/ [^' -][^ ]* / / |
3201 | s/^ *//;s/ *$// | |
eeae7b41 DJ |
3202 | s,\$,$$,g |
3203 | EOF_SED | |
3204 | sed -f conftestsed <<EOF_SED > conftestsed.out | |
3205 | ${ac_configure_args} | |
b348267b | 3206 | EOF_SED |
eeae7b41 DJ |
3207 | baseargs=`cat conftestsed.out` |
3208 | rm -f conftestsed conftestsed.out | |
671aa708 | 3209 | |
43bb47c2 DJ |
3210 | # Add in --program-transform-name, after --program-prefix and |
3211 | # --program-suffix have been applied to it. Autoconf has already | |
3212 | # doubled dollar signs and backslashes in program_transform_name; we want | |
3213 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
3214 | # quotes, because this will be expanded first by make and then by the shell. | |
3215 | # Also, because we want to override the logic in subdir configure scripts to | |
3216 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
3217 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
3218 | ${program_transform_name} | |
3219 | EOF_SED | |
3220 | gcc_transform_name=`cat conftestsed.out` | |
3221 | rm -f conftestsed.out | |
3222 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
3223 | ||
671aa708 NN |
3224 | # For the build-side libraries, we just need to pretend we're native, |
3225 | # and not use the same cache file. Multilibs are neither needed nor | |
3226 | # desired. | |
3227 | build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}" | |
3228 | ||
3229 | # For host modules, accept cache file option, or specification as blank. | |
3230 | case "${cache_file}" in | |
3231 | "") # empty | |
3232 | cache_file_option="" ;; | |
3233 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
3234 | cache_file_option="--cache-file=${cache_file}" ;; | |
3235 | *) # relative path | |
3236 | cache_file_option="--cache-file=../${cache_file}" ;; | |
3237 | esac | |
3238 | ||
09438bde NN |
3239 | # Host dirs don't like to share a cache file either, horribly enough. |
3240 | # This seems to be due to autoconf 2.5x stupidity. | |
2b6c260d | 3241 | host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" |
671aa708 NN |
3242 | |
3243 | target_configargs=${baseargs} | |
3244 | ||
3245 | # Passing a --with-cross-host argument lets the target libraries know | |
3246 | # whether they are being built with a cross-compiler or being built | |
3247 | # native. However, it would be better to use other mechanisms to make the | |
3248 | # sorts of decisions they want to make on this basis. Please consider | |
3249 | # this option to be deprecated. FIXME. | |
3250 | if test x${is_cross_compiler} = xyes ; then | |
3251 | target_configargs="--with-cross-host=${host_alias} ${target_configargs}" | |
3252 | fi | |
3253 | ||
3254 | # Default to --enable-multilib. | |
3255 | if test x${enable_multilib} = x ; then | |
3256 | target_configargs="--enable-multilib ${target_configargs}" | |
3257 | fi | |
3258 | ||
3259 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
3260 | # changed from the earlier setting of with_newlib. | |
3261 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
3262 | target_configargs="--with-newlib ${target_configargs}" | |
3263 | fi | |
3264 | ||
6b9eb62c NN |
3265 | # Different target subdirs use different values of certain variables |
3266 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
3267 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
3268 | # it doesn't automatically accept command-line overrides of them. | |
3269 | # This means it's not safe for target subdirs to share a cache file, | |
3270 | # which is disgusting, but there you have it. Hopefully this can be | |
3271 | # fixed in future. It's still worthwhile to use a cache file for each | |
3272 | # directory. I think. | |
3273 | ||
671aa708 | 3274 | # Pass the appropriate --host, --build, and --cache-file arguments. |
2b6c260d | 3275 | target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" |
671aa708 NN |
3276 | |
3277 | # provide a proper gxx_include_dir. | |
3278 | # Note, if you change the default, make sure to fix both here and in | |
3279 | # the gcc and libstdc++-v3 subdirectories. | |
3280 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
73458fb7 NN |
3281 | case "${with_gxx_include_dir}" in |
3282 | yes) | |
3283 | { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; } | |
3284 | ;; | |
3285 | no | "") | |
3286 | case "${enable_version_specific_runtime_libs}" in | |
3287 | yes) gxx_include_dir='${libsubdir}/include/c++' ;; | |
3288 | *) | |
3289 | . ${srcdir}/config.if | |
3290 | gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;; | |
3291 | esac ;; | |
3292 | *) gxx_include_dir=${with_gxx_include_dir} ;; | |
3293 | esac | |
671aa708 NN |
3294 | |
3295 | FLAGS_FOR_TARGET= | |
3296 | case " $target_configdirs " in | |
3297 | *" newlib "*) | |
3298 | case " $target_configargs " in | |
3299 | *" --with-newlib "*) | |
3300 | case "$target" in | |
3301 | *-cygwin*) | |
aa8f1f57 | 3302 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; |
671aa708 NN |
3303 | esac |
3304 | ||
3305 | # If we're not building GCC, don't discard standard headers. | |
3306 | if test -d ${srcdir}/gcc; then | |
3307 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
3308 | ||
3309 | if test "${build}" != "${host}"; then | |
3310 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
3311 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
3312 | # to it. This is right: we don't want to search that directory | |
3313 | # for binaries, but we want the header files in there, so add | |
3314 | # them explicitly. | |
3315 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include' | |
3316 | ||
3317 | # Someone might think of using the pre-installed headers on | |
3318 | # Canadian crosses, in case the installed compiler is not fully | |
3319 | # compatible with the compiler being built. In this case, it | |
3320 | # would be better to flag an error than risking having | |
3321 | # incompatible object files being constructed. We can't | |
3322 | # guarantee that an error will be flagged, but let's hope the | |
3323 | # compiler will do it, when presented with incompatible header | |
3324 | # files. | |
3325 | fi | |
3326 | fi | |
3327 | ||
3328 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 3329 | i[3456789]86-*-linux*-no) |
671aa708 NN |
3330 | # Here host == target, so we don't need to build gcc, |
3331 | # so we don't want to discard standard headers. | |
3332 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
3333 | ;; | |
3334 | *) | |
3335 | # If we're building newlib, use its generic headers last, but search | |
3336 | # for any libc-related directories first (so make it the last -B | |
3337 | # switch). | |
3338 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
3339 | ;; | |
3340 | esac | |
3341 | ;; | |
3342 | esac | |
3343 | ;; | |
3344 | esac | |
3345 | ||
6691a79e ME |
3346 | # Allow the user to override the flags for |
3347 | # our build compiler if desired. | |
3348 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
3349 | ||
671aa708 NN |
3350 | # On Canadian crosses, we'll be searching the right directories for |
3351 | # the previously-installed cross compiler, so don't bother to add | |
3352 | # flags for directories within the install tree of the compiler | |
3353 | # being built; programs in there won't even run. | |
3354 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
3355 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 3356 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
3357 | fi |
3358 | ||
3359 | if test "x${use_gnu_ld}" = x && | |
3360 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
3361 | # Arrange for us to find uninstalled linker scripts. | |
3362 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld' | |
3363 | fi | |
3364 | ||
3365 | if test "x${CC_FOR_TARGET+set}" = xset; then | |
3366 | : | |
3367 | elif test -d ${srcdir}/gcc; then | |
3368 | CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' | |
3369 | elif test "$host" = "$target"; then | |
3370 | CC_FOR_TARGET='$(CC)' | |
3371 | else | |
3f4f56e2 | 3372 | CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"` |
671aa708 NN |
3373 | fi |
3374 | CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3375 | ||
3376 | if test "x${GCJ_FOR_TARGET+set}" = xset; then | |
3377 | : | |
3378 | elif test -d ${srcdir}/gcc; then | |
3379 | GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' | |
3380 | elif test "$host" = "$target"; then | |
3381 | GCJ_FOR_TARGET='gcj' | |
3382 | else | |
3f4f56e2 | 3383 | GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"` |
671aa708 NN |
3384 | fi |
3385 | GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3386 | ||
6de9cd9a DN |
3387 | if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then |
3388 | : | |
3389 | elif test -d ${srcdir}/gcc; then | |
3390 | GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/' | |
3391 | elif test "$host" = "$target"; then | |
3392 | GFORTRAN_FOR_TARGET='gfortran' | |
3393 | else | |
30f1bddc | 3394 | GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"` |
6de9cd9a DN |
3395 | fi |
3396 | case $GFORTRAN_FOR_TARGET in | |
3397 | *' $(FLAGS_FOR_TARGET)') ;; | |
3398 | *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;; | |
3399 | esac | |
3400 | ||
671aa708 | 3401 | # Don't use libstdc++-v3's flags to configure/build itself. |
a7956a48 | 3402 | libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
9d465b12 | 3403 | raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
671aa708 NN |
3404 | |
3405 | if test "x${CXX_FOR_TARGET+set}" = xset; then | |
d253f9ba DJ |
3406 | if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then |
3407 | RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} | |
3408 | fi | |
671aa708 NN |
3409 | elif test -d ${srcdir}/gcc; then |
3410 | # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead | |
3411 | # of g++ for linking C++ or Java, because g++ has -shared-libgcc by | |
3412 | # default whereas gcc does not. | |
3413 | # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for | |
3414 | # all other cases. | |
3415 | CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags | |
3416 | RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags | |
3417 | elif test "$host" = "$target"; then | |
3418 | CXX_FOR_TARGET='$(CXX)' | |
3419 | RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} | |
3420 | else | |
3f4f56e2 | 3421 | CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"` |
671aa708 NN |
3422 | RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} |
3423 | fi | |
3424 | CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3425 | RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3426 | ||
3427 | qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` | |
3428 | qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` | |
3429 | ||
3430 | # We want to defer the evaluation of `cmd`s and shell variables in | |
3431 | # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for | |
3432 | # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single | |
3433 | # quotes, but we still have to duplicate `$'s so that shell variables | |
3434 | # can be expanded by the nested make as shell variables, not as make | |
3435 | # macros. | |
3436 | qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` | |
3437 | qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` | |
3438 | ||
3439 | # Wrap CC_FOR_TARGET and friends, for certain types of builds. | |
3440 | CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}" | |
3441 | GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}" | |
6de9cd9a | 3442 | GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}" |
671aa708 NN |
3443 | CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}" |
3444 | RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}" | |
3445 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}" | |
3446 | RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}" | |
3447 | ||
3448 | # Makefile fragments. | |
7b61653a PE |
3449 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
3450 | do | |
3451 | eval fragval=\$$frag | |
3452 | if test $fragval != /dev/null; then | |
3453 | eval $frag=${srcdir}/$fragval | |
3454 | fi | |
3455 | done | |
671aa708 NN |
3456 | |
3457 | ||
3458 | ||
3459 | ||
3460 | ||
3461 | # Miscellanea: directories, flags, etc. | |
3462 | ||
3463 | ||
3464 | ||
3465 | ||
3466 | ||
3467 | ||
3468 | ||
3469 | ||
3470 | ||
3471 | ||
3472 | ||
3473 | ||
671aa708 | 3474 | |
23f6b2f9 | 3475 | # Build module lists & subconfigure args. |
671aa708 NN |
3476 | |
3477 | ||
3478 | ||
671aa708 NN |
3479 | # Host module lists & subconfigure args. |
3480 | ||
3481 | ||
3482 | ||
671aa708 NN |
3483 | # Target module lists & subconfigure args. |
3484 | ||
3485 | ||
3486 | ||
671aa708 NN |
3487 | # Build tools. |
3488 | ||
3489 | ||
3490 | ||
671aa708 | 3491 | # Host tools. |
ca9f4b81 AO |
3492 | ncn_tool_prefix= |
3493 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
3494 | ncn_target_tool_prefix= | |
3495 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
3496 | ||
3497 | if test -n "$ncn_tool_prefix"; then | |
3498 | # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. | |
3499 | set dummy ${ncn_tool_prefix}ar; ac_word=$2 | |
3500 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3501 | echo "configure:3502: checking for $ac_word" >&5 |
ca9f4b81 AO |
3502 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
3503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3504 | else | |
3505 | if test -n "$AR"; then | |
3506 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3507 | else | |
3508 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3509 | ac_dummy="$PATH" | |
3510 | for ac_dir in $ac_dummy; do | |
3511 | test -z "$ac_dir" && ac_dir=. | |
3512 | if test -f $ac_dir/$ac_word; then | |
3513 | ac_cv_prog_AR="${ncn_tool_prefix}ar" | |
3514 | break | |
3515 | fi | |
3516 | done | |
3517 | IFS="$ac_save_ifs" | |
3518 | fi | |
3519 | fi | |
3520 | AR="$ac_cv_prog_AR" | |
3521 | if test -n "$AR"; then | |
3522 | echo "$ac_t""$AR" 1>&6 | |
3523 | else | |
3524 | echo "$ac_t""no" 1>&6 | |
3525 | fi | |
3526 | ||
3527 | fi | |
3528 | if test -z "$ac_cv_prog_AR" ; then | |
3529 | if test $build = $host ; then | |
3530 | ncn_cv_AR=$AR | |
3531 | # Extract the first word of "ar", so it can be a program name with args. | |
3532 | set dummy ar; ac_word=$2 | |
3533 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3534 | echo "configure:3535: checking for $ac_word" >&5 |
ca9f4b81 AO |
3535 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then |
3536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3537 | else | |
3538 | if test -n "$ncn_cv_AR"; then | |
3539 | ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test. | |
3540 | else | |
3541 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3542 | ac_dummy="$PATH" | |
3543 | for ac_dir in $ac_dummy; do | |
3544 | test -z "$ac_dir" && ac_dir=. | |
3545 | if test -f $ac_dir/$ac_word; then | |
3546 | ac_cv_prog_ncn_cv_AR="ar" | |
3547 | break | |
3548 | fi | |
3549 | done | |
3550 | IFS="$ac_save_ifs" | |
3551 | test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar" | |
3552 | fi | |
3553 | fi | |
3554 | ncn_cv_AR="$ac_cv_prog_ncn_cv_AR" | |
3555 | if test -n "$ncn_cv_AR"; then | |
3556 | echo "$ac_t""$ncn_cv_AR" 1>&6 | |
3557 | else | |
3558 | echo "$ac_t""no" 1>&6 | |
3559 | fi | |
3560 | ||
3561 | AR=$ncn_cv_AR | |
3562 | else | |
3563 | AR="${ncn_tool_prefix}ar" | |
3564 | fi | |
3565 | else | |
3566 | AR="$ac_cv_prog_AR" | |
3567 | fi | |
3568 | ||
3569 | if test -n "$ncn_tool_prefix"; then | |
3570 | # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. | |
3571 | set dummy ${ncn_tool_prefix}as; ac_word=$2 | |
3572 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3573 | echo "configure:3574: checking for $ac_word" >&5 |
ca9f4b81 AO |
3574 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
3575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3576 | else | |
3577 | if test -n "$AS"; then | |
3578 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3579 | else | |
3580 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3581 | ac_dummy="$PATH" | |
3582 | for ac_dir in $ac_dummy; do | |
3583 | test -z "$ac_dir" && ac_dir=. | |
3584 | if test -f $ac_dir/$ac_word; then | |
3585 | ac_cv_prog_AS="${ncn_tool_prefix}as" | |
3586 | break | |
3587 | fi | |
3588 | done | |
3589 | IFS="$ac_save_ifs" | |
3590 | fi | |
3591 | fi | |
3592 | AS="$ac_cv_prog_AS" | |
3593 | if test -n "$AS"; then | |
3594 | echo "$ac_t""$AS" 1>&6 | |
3595 | else | |
3596 | echo "$ac_t""no" 1>&6 | |
3597 | fi | |
3598 | ||
3599 | fi | |
3600 | if test -z "$ac_cv_prog_AS" ; then | |
3601 | if test $build = $host ; then | |
3602 | ncn_cv_AS=$AS | |
3603 | # Extract the first word of "as", so it can be a program name with args. | |
3604 | set dummy as; ac_word=$2 | |
3605 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3606 | echo "configure:3607: checking for $ac_word" >&5 |
ca9f4b81 AO |
3607 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then |
3608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3609 | else | |
3610 | if test -n "$ncn_cv_AS"; then | |
3611 | ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test. | |
3612 | else | |
3613 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3614 | ac_dummy="$PATH" | |
3615 | for ac_dir in $ac_dummy; do | |
3616 | test -z "$ac_dir" && ac_dir=. | |
3617 | if test -f $ac_dir/$ac_word; then | |
3618 | ac_cv_prog_ncn_cv_AS="as" | |
3619 | break | |
3620 | fi | |
3621 | done | |
3622 | IFS="$ac_save_ifs" | |
3623 | test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as" | |
3624 | fi | |
3625 | fi | |
3626 | ncn_cv_AS="$ac_cv_prog_ncn_cv_AS" | |
3627 | if test -n "$ncn_cv_AS"; then | |
3628 | echo "$ac_t""$ncn_cv_AS" 1>&6 | |
3629 | else | |
3630 | echo "$ac_t""no" 1>&6 | |
3631 | fi | |
3632 | ||
3633 | AS=$ncn_cv_AS | |
3634 | else | |
3635 | AS="${ncn_tool_prefix}as" | |
3636 | fi | |
3637 | else | |
3638 | AS="$ac_cv_prog_AS" | |
3639 | fi | |
3640 | ||
3641 | if test -n "$ncn_tool_prefix"; then | |
3642 | # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. | |
3643 | set dummy ${ncn_tool_prefix}dlltool; ac_word=$2 | |
3644 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3645 | echo "configure:3646: checking for $ac_word" >&5 |
ca9f4b81 AO |
3646 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
3647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3648 | else | |
3649 | if test -n "$DLLTOOL"; then | |
3650 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
3651 | else | |
3652 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3653 | ac_dummy="$PATH" | |
3654 | for ac_dir in $ac_dummy; do | |
3655 | test -z "$ac_dir" && ac_dir=. | |
3656 | if test -f $ac_dir/$ac_word; then | |
3657 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool" | |
3658 | break | |
3659 | fi | |
3660 | done | |
3661 | IFS="$ac_save_ifs" | |
3662 | fi | |
3663 | fi | |
3664 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3665 | if test -n "$DLLTOOL"; then | |
3666 | echo "$ac_t""$DLLTOOL" 1>&6 | |
3667 | else | |
3668 | echo "$ac_t""no" 1>&6 | |
3669 | fi | |
3670 | ||
3671 | fi | |
3672 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
3673 | if test $build = $host ; then | |
3674 | ncn_cv_DLLTOOL=$DLLTOOL | |
3675 | # Extract the first word of "dlltool", so it can be a program name with args. | |
3676 | set dummy dlltool; ac_word=$2 | |
3677 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3678 | echo "configure:3679: checking for $ac_word" >&5 |
ca9f4b81 AO |
3679 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then |
3680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3681 | else | |
3682 | if test -n "$ncn_cv_DLLTOOL"; then | |
3683 | ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test. | |
3684 | else | |
3685 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3686 | ac_dummy="$PATH" | |
3687 | for ac_dir in $ac_dummy; do | |
3688 | test -z "$ac_dir" && ac_dir=. | |
3689 | if test -f $ac_dir/$ac_word; then | |
3690 | ac_cv_prog_ncn_cv_DLLTOOL="dlltool" | |
3691 | break | |
3692 | fi | |
3693 | done | |
3694 | IFS="$ac_save_ifs" | |
3695 | test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool" | |
3696 | fi | |
3697 | fi | |
3698 | ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL" | |
3699 | if test -n "$ncn_cv_DLLTOOL"; then | |
3700 | echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6 | |
3701 | else | |
3702 | echo "$ac_t""no" 1>&6 | |
3703 | fi | |
3704 | ||
3705 | DLLTOOL=$ncn_cv_DLLTOOL | |
3706 | else | |
3707 | DLLTOOL="${ncn_tool_prefix}dlltool" | |
3708 | fi | |
3709 | else | |
3710 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3711 | fi | |
3712 | ||
3713 | if test -n "$ncn_tool_prefix"; then | |
3714 | # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. | |
3715 | set dummy ${ncn_tool_prefix}ld; ac_word=$2 | |
3716 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3717 | echo "configure:3718: checking for $ac_word" >&5 |
ca9f4b81 AO |
3718 | if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
3719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3720 | else | |
3721 | if test -n "$LD"; then | |
3722 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
3723 | else | |
3724 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3725 | ac_dummy="$PATH" | |
3726 | for ac_dir in $ac_dummy; do | |
3727 | test -z "$ac_dir" && ac_dir=. | |
3728 | if test -f $ac_dir/$ac_word; then | |
3729 | ac_cv_prog_LD="${ncn_tool_prefix}ld" | |
3730 | break | |
3731 | fi | |
3732 | done | |
3733 | IFS="$ac_save_ifs" | |
3734 | fi | |
3735 | fi | |
3736 | LD="$ac_cv_prog_LD" | |
3737 | if test -n "$LD"; then | |
3738 | echo "$ac_t""$LD" 1>&6 | |
3739 | else | |
3740 | echo "$ac_t""no" 1>&6 | |
3741 | fi | |
3742 | ||
3743 | fi | |
3744 | if test -z "$ac_cv_prog_LD" ; then | |
3745 | if test $build = $host ; then | |
3746 | ncn_cv_LD=$LD | |
3747 | # Extract the first word of "ld", so it can be a program name with args. | |
3748 | set dummy ld; ac_word=$2 | |
3749 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3750 | echo "configure:3751: checking for $ac_word" >&5 |
ca9f4b81 AO |
3751 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then |
3752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3753 | else | |
3754 | if test -n "$ncn_cv_LD"; then | |
3755 | ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test. | |
3756 | else | |
3757 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3758 | ac_dummy="$PATH" | |
3759 | for ac_dir in $ac_dummy; do | |
3760 | test -z "$ac_dir" && ac_dir=. | |
3761 | if test -f $ac_dir/$ac_word; then | |
3762 | ac_cv_prog_ncn_cv_LD="ld" | |
3763 | break | |
3764 | fi | |
3765 | done | |
3766 | IFS="$ac_save_ifs" | |
3767 | test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld" | |
3768 | fi | |
3769 | fi | |
3770 | ncn_cv_LD="$ac_cv_prog_ncn_cv_LD" | |
3771 | if test -n "$ncn_cv_LD"; then | |
3772 | echo "$ac_t""$ncn_cv_LD" 1>&6 | |
3773 | else | |
3774 | echo "$ac_t""no" 1>&6 | |
3775 | fi | |
3776 | ||
3777 | LD=$ncn_cv_LD | |
3778 | else | |
3779 | LD="${ncn_tool_prefix}ld" | |
3780 | fi | |
3781 | else | |
3782 | LD="$ac_cv_prog_LD" | |
3783 | fi | |
3784 | ||
3785 | if test -n "$ncn_tool_prefix"; then | |
3786 | # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. | |
3787 | set dummy ${ncn_tool_prefix}nm; ac_word=$2 | |
3788 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3789 | echo "configure:3790: checking for $ac_word" >&5 |
ca9f4b81 AO |
3790 | if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then |
3791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3792 | else | |
3793 | if test -n "$NM"; then | |
3794 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3795 | else | |
3796 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3797 | ac_dummy="$PATH" | |
3798 | for ac_dir in $ac_dummy; do | |
3799 | test -z "$ac_dir" && ac_dir=. | |
3800 | if test -f $ac_dir/$ac_word; then | |
3801 | ac_cv_prog_NM="${ncn_tool_prefix}nm" | |
3802 | break | |
3803 | fi | |
3804 | done | |
3805 | IFS="$ac_save_ifs" | |
3806 | fi | |
3807 | fi | |
3808 | NM="$ac_cv_prog_NM" | |
3809 | if test -n "$NM"; then | |
3810 | echo "$ac_t""$NM" 1>&6 | |
3811 | else | |
3812 | echo "$ac_t""no" 1>&6 | |
3813 | fi | |
3814 | ||
3815 | fi | |
3816 | if test -z "$ac_cv_prog_NM" ; then | |
3817 | if test $build = $host ; then | |
3818 | ncn_cv_NM=$NM | |
3819 | # Extract the first word of "nm", so it can be a program name with args. | |
3820 | set dummy nm; ac_word=$2 | |
3821 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3822 | echo "configure:3823: checking for $ac_word" >&5 |
ca9f4b81 AO |
3823 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then |
3824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3825 | else | |
3826 | if test -n "$ncn_cv_NM"; then | |
3827 | ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test. | |
3828 | else | |
3829 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3830 | ac_dummy="$PATH" | |
3831 | for ac_dir in $ac_dummy; do | |
3832 | test -z "$ac_dir" && ac_dir=. | |
3833 | if test -f $ac_dir/$ac_word; then | |
3834 | ac_cv_prog_ncn_cv_NM="nm" | |
3835 | break | |
3836 | fi | |
3837 | done | |
3838 | IFS="$ac_save_ifs" | |
3839 | test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm" | |
3840 | fi | |
3841 | fi | |
3842 | ncn_cv_NM="$ac_cv_prog_ncn_cv_NM" | |
3843 | if test -n "$ncn_cv_NM"; then | |
3844 | echo "$ac_t""$ncn_cv_NM" 1>&6 | |
3845 | else | |
3846 | echo "$ac_t""no" 1>&6 | |
3847 | fi | |
3848 | ||
3849 | NM=$ncn_cv_NM | |
3850 | else | |
3851 | NM="${ncn_tool_prefix}nm" | |
3852 | fi | |
3853 | else | |
3854 | NM="$ac_cv_prog_NM" | |
3855 | fi | |
3856 | ||
3857 | if test -n "$ncn_tool_prefix"; then | |
3858 | # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. | |
3859 | set dummy ${ncn_tool_prefix}ranlib; ac_word=$2 | |
3860 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3861 | echo "configure:3862: checking for $ac_word" >&5 |
ca9f4b81 AO |
3862 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
3863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3864 | else | |
3865 | if test -n "$RANLIB"; then | |
3866 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3867 | else | |
3868 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3869 | ac_dummy="$PATH" | |
3870 | for ac_dir in $ac_dummy; do | |
3871 | test -z "$ac_dir" && ac_dir=. | |
3872 | if test -f $ac_dir/$ac_word; then | |
3873 | ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib" | |
3874 | break | |
3875 | fi | |
3876 | done | |
3877 | IFS="$ac_save_ifs" | |
3878 | fi | |
3879 | fi | |
3880 | RANLIB="$ac_cv_prog_RANLIB" | |
3881 | if test -n "$RANLIB"; then | |
3882 | echo "$ac_t""$RANLIB" 1>&6 | |
3883 | else | |
3884 | echo "$ac_t""no" 1>&6 | |
3885 | fi | |
3886 | ||
3887 | fi | |
3888 | if test -z "$ac_cv_prog_RANLIB" ; then | |
3889 | if test $build = $host ; then | |
3890 | ncn_cv_RANLIB=$RANLIB | |
3891 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3892 | set dummy ranlib; ac_word=$2 | |
3893 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3894 | echo "configure:3895: checking for $ac_word" >&5 |
ca9f4b81 AO |
3895 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then |
3896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3897 | else | |
3898 | if test -n "$ncn_cv_RANLIB"; then | |
3899 | ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test. | |
3900 | else | |
3901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3902 | ac_dummy="$PATH" | |
3903 | for ac_dir in $ac_dummy; do | |
3904 | test -z "$ac_dir" && ac_dir=. | |
3905 | if test -f $ac_dir/$ac_word; then | |
3906 | ac_cv_prog_ncn_cv_RANLIB="ranlib" | |
3907 | break | |
3908 | fi | |
3909 | done | |
3910 | IFS="$ac_save_ifs" | |
3911 | test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":" | |
3912 | fi | |
3913 | fi | |
3914 | ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB" | |
3915 | if test -n "$ncn_cv_RANLIB"; then | |
3916 | echo "$ac_t""$ncn_cv_RANLIB" 1>&6 | |
3917 | else | |
3918 | echo "$ac_t""no" 1>&6 | |
3919 | fi | |
3920 | ||
3921 | RANLIB=$ncn_cv_RANLIB | |
3922 | else | |
3923 | RANLIB=":" | |
3924 | fi | |
3925 | else | |
3926 | RANLIB="$ac_cv_prog_RANLIB" | |
3927 | fi | |
3928 | ||
3929 | if test -n "$ncn_tool_prefix"; then | |
3930 | # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. | |
3931 | set dummy ${ncn_tool_prefix}windres; ac_word=$2 | |
3932 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3933 | echo "configure:3934: checking for $ac_word" >&5 |
ca9f4b81 AO |
3934 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
3935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3936 | else | |
3937 | if test -n "$WINDRES"; then | |
3938 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
3939 | else | |
3940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3941 | ac_dummy="$PATH" | |
3942 | for ac_dir in $ac_dummy; do | |
3943 | test -z "$ac_dir" && ac_dir=. | |
3944 | if test -f $ac_dir/$ac_word; then | |
3945 | ac_cv_prog_WINDRES="${ncn_tool_prefix}windres" | |
3946 | break | |
3947 | fi | |
3948 | done | |
3949 | IFS="$ac_save_ifs" | |
3950 | fi | |
3951 | fi | |
3952 | WINDRES="$ac_cv_prog_WINDRES" | |
3953 | if test -n "$WINDRES"; then | |
3954 | echo "$ac_t""$WINDRES" 1>&6 | |
3955 | else | |
3956 | echo "$ac_t""no" 1>&6 | |
3957 | fi | |
3958 | ||
3959 | fi | |
3960 | if test -z "$ac_cv_prog_WINDRES" ; then | |
3961 | if test $build = $host ; then | |
3962 | ncn_cv_WINDRES=$WINDRES | |
3963 | # Extract the first word of "windres", so it can be a program name with args. | |
3964 | set dummy windres; ac_word=$2 | |
3965 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 3966 | echo "configure:3967: checking for $ac_word" >&5 |
ca9f4b81 AO |
3967 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then |
3968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3969 | else | |
3970 | if test -n "$ncn_cv_WINDRES"; then | |
3971 | ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test. | |
3972 | else | |
3973 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3974 | ac_dummy="$PATH" | |
3975 | for ac_dir in $ac_dummy; do | |
3976 | test -z "$ac_dir" && ac_dir=. | |
3977 | if test -f $ac_dir/$ac_word; then | |
3978 | ac_cv_prog_ncn_cv_WINDRES="windres" | |
3979 | break | |
3980 | fi | |
3981 | done | |
3982 | IFS="$ac_save_ifs" | |
3983 | test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres" | |
3984 | fi | |
3985 | fi | |
3986 | ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES" | |
3987 | if test -n "$ncn_cv_WINDRES"; then | |
3988 | echo "$ac_t""$ncn_cv_WINDRES" 1>&6 | |
3989 | else | |
3990 | echo "$ac_t""no" 1>&6 | |
3991 | fi | |
3992 | ||
3993 | WINDRES=$ncn_cv_WINDRES | |
3994 | else | |
3995 | WINDRES="${ncn_tool_prefix}windres" | |
3996 | fi | |
3997 | else | |
3998 | WINDRES="$ac_cv_prog_WINDRES" | |
3999 | fi | |
4000 | ||
4001 | if test -n "$ncn_tool_prefix"; then | |
4002 | # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. | |
4003 | set dummy ${ncn_tool_prefix}objcopy; ac_word=$2 | |
4004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4005 | echo "configure:4006: checking for $ac_word" >&5 |
ca9f4b81 AO |
4006 | if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then |
4007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4008 | else | |
4009 | if test -n "$OBJCOPY"; then | |
4010 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
4011 | else | |
4012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4013 | ac_dummy="$PATH" | |
4014 | for ac_dir in $ac_dummy; do | |
4015 | test -z "$ac_dir" && ac_dir=. | |
4016 | if test -f $ac_dir/$ac_word; then | |
4017 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy" | |
4018 | break | |
4019 | fi | |
4020 | done | |
4021 | IFS="$ac_save_ifs" | |
4022 | fi | |
4023 | fi | |
4024 | OBJCOPY="$ac_cv_prog_OBJCOPY" | |
4025 | if test -n "$OBJCOPY"; then | |
4026 | echo "$ac_t""$OBJCOPY" 1>&6 | |
4027 | else | |
4028 | echo "$ac_t""no" 1>&6 | |
4029 | fi | |
4030 | ||
4031 | fi | |
4032 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
4033 | if test $build = $host ; then | |
4034 | ncn_cv_OBJCOPY=$OBJCOPY | |
4035 | # Extract the first word of "objcopy", so it can be a program name with args. | |
4036 | set dummy objcopy; ac_word=$2 | |
4037 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4038 | echo "configure:4039: checking for $ac_word" >&5 |
ca9f4b81 AO |
4039 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then |
4040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4041 | else | |
4042 | if test -n "$ncn_cv_OBJCOPY"; then | |
4043 | ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test. | |
4044 | else | |
4045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4046 | ac_dummy="$PATH" | |
4047 | for ac_dir in $ac_dummy; do | |
4048 | test -z "$ac_dir" && ac_dir=. | |
4049 | if test -f $ac_dir/$ac_word; then | |
4050 | ac_cv_prog_ncn_cv_OBJCOPY="objcopy" | |
4051 | break | |
4052 | fi | |
4053 | done | |
4054 | IFS="$ac_save_ifs" | |
4055 | test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy" | |
4056 | fi | |
4057 | fi | |
4058 | ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY" | |
4059 | if test -n "$ncn_cv_OBJCOPY"; then | |
4060 | echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6 | |
4061 | else | |
4062 | echo "$ac_t""no" 1>&6 | |
4063 | fi | |
4064 | ||
4065 | OBJCOPY=$ncn_cv_OBJCOPY | |
4066 | else | |
4067 | OBJCOPY="${ncn_tool_prefix}objcopy" | |
4068 | fi | |
4069 | else | |
4070 | OBJCOPY="$ac_cv_prog_OBJCOPY" | |
4071 | fi | |
4072 | ||
4073 | if test -n "$ncn_tool_prefix"; then | |
4074 | # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. | |
4075 | set dummy ${ncn_tool_prefix}objdump; ac_word=$2 | |
4076 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4077 | echo "configure:4078: checking for $ac_word" >&5 |
ca9f4b81 AO |
4078 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then |
4079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4080 | else | |
4081 | if test -n "$OBJDUMP"; then | |
4082 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4083 | else | |
4084 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4085 | ac_dummy="$PATH" | |
4086 | for ac_dir in $ac_dummy; do | |
4087 | test -z "$ac_dir" && ac_dir=. | |
4088 | if test -f $ac_dir/$ac_word; then | |
4089 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump" | |
4090 | break | |
4091 | fi | |
4092 | done | |
4093 | IFS="$ac_save_ifs" | |
4094 | fi | |
4095 | fi | |
4096 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4097 | if test -n "$OBJDUMP"; then | |
4098 | echo "$ac_t""$OBJDUMP" 1>&6 | |
4099 | else | |
4100 | echo "$ac_t""no" 1>&6 | |
4101 | fi | |
4102 | ||
4103 | fi | |
4104 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
4105 | if test $build = $host ; then | |
4106 | ncn_cv_OBJDUMP=$OBJDUMP | |
4107 | # Extract the first word of "objdump", so it can be a program name with args. | |
4108 | set dummy objdump; ac_word=$2 | |
4109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4110 | echo "configure:4111: checking for $ac_word" >&5 |
ca9f4b81 AO |
4111 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then |
4112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4113 | else | |
4114 | if test -n "$ncn_cv_OBJDUMP"; then | |
4115 | ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test. | |
4116 | else | |
4117 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4118 | ac_dummy="$PATH" | |
4119 | for ac_dir in $ac_dummy; do | |
4120 | test -z "$ac_dir" && ac_dir=. | |
4121 | if test -f $ac_dir/$ac_word; then | |
4122 | ac_cv_prog_ncn_cv_OBJDUMP="objdump" | |
4123 | break | |
4124 | fi | |
4125 | done | |
4126 | IFS="$ac_save_ifs" | |
4127 | test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump" | |
4128 | fi | |
4129 | fi | |
4130 | ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP" | |
4131 | if test -n "$ncn_cv_OBJDUMP"; then | |
4132 | echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6 | |
4133 | else | |
4134 | echo "$ac_t""no" 1>&6 | |
4135 | fi | |
4136 | ||
4137 | OBJDUMP=$ncn_cv_OBJDUMP | |
4138 | else | |
4139 | OBJDUMP="${ncn_tool_prefix}objdump" | |
4140 | fi | |
4141 | else | |
4142 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4143 | fi | |
4144 | ||
671aa708 NN |
4145 | |
4146 | ||
4147 | ||
4148 | ||
4149 | ||
4150 | ||
671aa708 | 4151 | # Target tools. |
ca9f4b81 AO |
4152 | if test -n "$ncn_target_tool_prefix"; then |
4153 | # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. | |
4154 | set dummy ${ncn_target_tool_prefix}ar; ac_word=$2 | |
4155 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4156 | echo "configure:4157: checking for $ac_word" >&5 |
be912515 | 4157 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4158 | echo $ac_n "(cached) $ac_c" 1>&6 |
4159 | else | |
be912515 NN |
4160 | if test -n "$CONFIGURED_AR_FOR_TARGET"; then |
4161 | ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4162 | else |
4163 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4164 | ac_dummy="$PATH" | |
4165 | for ac_dir in $ac_dummy; do | |
4166 | test -z "$ac_dir" && ac_dir=. | |
4167 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4168 | ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" |
ca9f4b81 AO |
4169 | break |
4170 | fi | |
4171 | done | |
4172 | IFS="$ac_save_ifs" | |
4173 | fi | |
4174 | fi | |
be912515 NN |
4175 | CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" |
4176 | if test -n "$CONFIGURED_AR_FOR_TARGET"; then | |
4177 | echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4178 | else |
4179 | echo "$ac_t""no" 1>&6 | |
4180 | fi | |
4181 | ||
4182 | fi | |
be912515 | 4183 | if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then |
ca9f4b81 | 4184 | if test $build = $target ; then |
be912515 | 4185 | ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET |
ca9f4b81 AO |
4186 | # Extract the first word of "ar", so it can be a program name with args. |
4187 | set dummy ar; ac_word=$2 | |
4188 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4189 | echo "configure:4190: checking for $ac_word" >&5 |
be912515 | 4190 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4191 | echo $ac_n "(cached) $ac_c" 1>&6 |
4192 | else | |
be912515 NN |
4193 | if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then |
4194 | ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4195 | else |
4196 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4197 | ac_dummy="$PATH" | |
4198 | for ac_dir in $ac_dummy; do | |
4199 | test -z "$ac_dir" && ac_dir=. | |
4200 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4201 | ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar" |
ca9f4b81 AO |
4202 | break |
4203 | fi | |
4204 | done | |
4205 | IFS="$ac_save_ifs" | |
be912515 | 4206 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar" |
ca9f4b81 AO |
4207 | fi |
4208 | fi | |
be912515 NN |
4209 | ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" |
4210 | if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then | |
4211 | echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4212 | else |
4213 | echo "$ac_t""no" 1>&6 | |
4214 | fi | |
4215 | ||
be912515 | 4216 | CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET |
ca9f4b81 | 4217 | else |
be912515 | 4218 | CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" |
ca9f4b81 AO |
4219 | fi |
4220 | else | |
be912515 | 4221 | CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" |
ca9f4b81 AO |
4222 | fi |
4223 | ||
4224 | if test -n "$ncn_target_tool_prefix"; then | |
4225 | # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. | |
4226 | set dummy ${ncn_target_tool_prefix}as; ac_word=$2 | |
4227 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4228 | echo "configure:4229: checking for $ac_word" >&5 |
be912515 | 4229 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4230 | echo $ac_n "(cached) $ac_c" 1>&6 |
4231 | else | |
be912515 NN |
4232 | if test -n "$CONFIGURED_AS_FOR_TARGET"; then |
4233 | ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4234 | else |
4235 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4236 | ac_dummy="$PATH" | |
4237 | for ac_dir in $ac_dummy; do | |
4238 | test -z "$ac_dir" && ac_dir=. | |
4239 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4240 | ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as" |
ca9f4b81 AO |
4241 | break |
4242 | fi | |
4243 | done | |
4244 | IFS="$ac_save_ifs" | |
4245 | fi | |
4246 | fi | |
be912515 NN |
4247 | CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" |
4248 | if test -n "$CONFIGURED_AS_FOR_TARGET"; then | |
4249 | echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4250 | else |
4251 | echo "$ac_t""no" 1>&6 | |
4252 | fi | |
4253 | ||
4254 | fi | |
be912515 | 4255 | if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then |
ca9f4b81 | 4256 | if test $build = $target ; then |
be912515 | 4257 | ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET |
ca9f4b81 AO |
4258 | # Extract the first word of "as", so it can be a program name with args. |
4259 | set dummy as; ac_word=$2 | |
4260 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4261 | echo "configure:4262: checking for $ac_word" >&5 |
be912515 | 4262 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4263 | echo $ac_n "(cached) $ac_c" 1>&6 |
4264 | else | |
be912515 NN |
4265 | if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then |
4266 | ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4267 | else |
4268 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4269 | ac_dummy="$PATH" | |
4270 | for ac_dir in $ac_dummy; do | |
4271 | test -z "$ac_dir" && ac_dir=. | |
4272 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4273 | ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as" |
ca9f4b81 AO |
4274 | break |
4275 | fi | |
4276 | done | |
4277 | IFS="$ac_save_ifs" | |
be912515 | 4278 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as" |
ca9f4b81 AO |
4279 | fi |
4280 | fi | |
be912515 NN |
4281 | ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" |
4282 | if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then | |
4283 | echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4284 | else |
4285 | echo "$ac_t""no" 1>&6 | |
4286 | fi | |
4287 | ||
be912515 | 4288 | CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET |
ca9f4b81 | 4289 | else |
be912515 | 4290 | CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as" |
ca9f4b81 AO |
4291 | fi |
4292 | else | |
be912515 | 4293 | CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" |
ca9f4b81 AO |
4294 | fi |
4295 | ||
4296 | if test -n "$ncn_target_tool_prefix"; then | |
4297 | # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. | |
4298 | set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 | |
4299 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4300 | echo "configure:4301: checking for $ac_word" >&5 |
be912515 | 4301 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4302 | echo $ac_n "(cached) $ac_c" 1>&6 |
4303 | else | |
be912515 NN |
4304 | if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then |
4305 | ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4306 | else |
4307 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4308 | ac_dummy="$PATH" | |
4309 | for ac_dir in $ac_dummy; do | |
4310 | test -z "$ac_dir" && ac_dir=. | |
4311 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4312 | ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" |
ca9f4b81 AO |
4313 | break |
4314 | fi | |
4315 | done | |
4316 | IFS="$ac_save_ifs" | |
4317 | fi | |
4318 | fi | |
be912515 NN |
4319 | CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" |
4320 | if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then | |
4321 | echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4322 | else |
4323 | echo "$ac_t""no" 1>&6 | |
4324 | fi | |
4325 | ||
4326 | fi | |
be912515 | 4327 | if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then |
ca9f4b81 | 4328 | if test $build = $target ; then |
be912515 | 4329 | ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET |
ca9f4b81 AO |
4330 | # Extract the first word of "dlltool", so it can be a program name with args. |
4331 | set dummy dlltool; ac_word=$2 | |
4332 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4333 | echo "configure:4334: checking for $ac_word" >&5 |
be912515 | 4334 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4335 | echo $ac_n "(cached) $ac_c" 1>&6 |
4336 | else | |
be912515 NN |
4337 | if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then |
4338 | ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4339 | else |
4340 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4341 | ac_dummy="$PATH" | |
4342 | for ac_dir in $ac_dummy; do | |
4343 | test -z "$ac_dir" && ac_dir=. | |
4344 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4345 | ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool" |
ca9f4b81 AO |
4346 | break |
4347 | fi | |
4348 | done | |
4349 | IFS="$ac_save_ifs" | |
be912515 | 4350 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool" |
ca9f4b81 AO |
4351 | fi |
4352 | fi | |
be912515 NN |
4353 | ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" |
4354 | if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then | |
4355 | echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4356 | else |
4357 | echo "$ac_t""no" 1>&6 | |
4358 | fi | |
4359 | ||
be912515 | 4360 | CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET |
ca9f4b81 | 4361 | else |
be912515 | 4362 | CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" |
ca9f4b81 AO |
4363 | fi |
4364 | else | |
be912515 | 4365 | CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" |
ca9f4b81 AO |
4366 | fi |
4367 | ||
4368 | if test -n "$ncn_target_tool_prefix"; then | |
4369 | # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. | |
4370 | set dummy ${ncn_target_tool_prefix}ld; ac_word=$2 | |
4371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4372 | echo "configure:4373: checking for $ac_word" >&5 |
be912515 | 4373 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4374 | echo $ac_n "(cached) $ac_c" 1>&6 |
4375 | else | |
be912515 NN |
4376 | if test -n "$CONFIGURED_LD_FOR_TARGET"; then |
4377 | ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4378 | else |
4379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4380 | ac_dummy="$PATH" | |
4381 | for ac_dir in $ac_dummy; do | |
4382 | test -z "$ac_dir" && ac_dir=. | |
4383 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4384 | ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" |
ca9f4b81 AO |
4385 | break |
4386 | fi | |
4387 | done | |
4388 | IFS="$ac_save_ifs" | |
4389 | fi | |
4390 | fi | |
be912515 NN |
4391 | CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" |
4392 | if test -n "$CONFIGURED_LD_FOR_TARGET"; then | |
4393 | echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4394 | else |
4395 | echo "$ac_t""no" 1>&6 | |
4396 | fi | |
4397 | ||
4398 | fi | |
be912515 | 4399 | if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then |
ca9f4b81 | 4400 | if test $build = $target ; then |
be912515 | 4401 | ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET |
ca9f4b81 AO |
4402 | # Extract the first word of "ld", so it can be a program name with args. |
4403 | set dummy ld; ac_word=$2 | |
4404 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4405 | echo "configure:4406: checking for $ac_word" >&5 |
be912515 | 4406 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4407 | echo $ac_n "(cached) $ac_c" 1>&6 |
4408 | else | |
be912515 NN |
4409 | if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then |
4410 | ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4411 | else |
4412 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4413 | ac_dummy="$PATH" | |
4414 | for ac_dir in $ac_dummy; do | |
4415 | test -z "$ac_dir" && ac_dir=. | |
4416 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4417 | ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld" |
ca9f4b81 AO |
4418 | break |
4419 | fi | |
4420 | done | |
4421 | IFS="$ac_save_ifs" | |
be912515 | 4422 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld" |
ca9f4b81 AO |
4423 | fi |
4424 | fi | |
be912515 NN |
4425 | ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" |
4426 | if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then | |
4427 | echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4428 | else |
4429 | echo "$ac_t""no" 1>&6 | |
4430 | fi | |
4431 | ||
be912515 | 4432 | CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET |
ca9f4b81 | 4433 | else |
be912515 | 4434 | CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" |
ca9f4b81 AO |
4435 | fi |
4436 | else | |
be912515 | 4437 | CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" |
ca9f4b81 AO |
4438 | fi |
4439 | ||
4440 | if test -n "$ncn_target_tool_prefix"; then | |
4441 | # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. | |
4442 | set dummy ${ncn_target_tool_prefix}nm; ac_word=$2 | |
4443 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4444 | echo "configure:4445: checking for $ac_word" >&5 |
be912515 | 4445 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4446 | echo $ac_n "(cached) $ac_c" 1>&6 |
4447 | else | |
be912515 NN |
4448 | if test -n "$CONFIGURED_NM_FOR_TARGET"; then |
4449 | ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4450 | else |
4451 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4452 | ac_dummy="$PATH" | |
4453 | for ac_dir in $ac_dummy; do | |
4454 | test -z "$ac_dir" && ac_dir=. | |
4455 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4456 | ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" |
ca9f4b81 AO |
4457 | break |
4458 | fi | |
4459 | done | |
4460 | IFS="$ac_save_ifs" | |
4461 | fi | |
4462 | fi | |
be912515 NN |
4463 | CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" |
4464 | if test -n "$CONFIGURED_NM_FOR_TARGET"; then | |
4465 | echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4466 | else |
4467 | echo "$ac_t""no" 1>&6 | |
4468 | fi | |
4469 | ||
4470 | fi | |
be912515 | 4471 | if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then |
ca9f4b81 | 4472 | if test $build = $target ; then |
be912515 | 4473 | ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET |
ca9f4b81 AO |
4474 | # Extract the first word of "nm", so it can be a program name with args. |
4475 | set dummy nm; ac_word=$2 | |
4476 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4477 | echo "configure:4478: checking for $ac_word" >&5 |
be912515 | 4478 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4479 | echo $ac_n "(cached) $ac_c" 1>&6 |
4480 | else | |
be912515 NN |
4481 | if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then |
4482 | ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4483 | else |
4484 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4485 | ac_dummy="$PATH" | |
4486 | for ac_dir in $ac_dummy; do | |
4487 | test -z "$ac_dir" && ac_dir=. | |
4488 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4489 | ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm" |
ca9f4b81 AO |
4490 | break |
4491 | fi | |
4492 | done | |
4493 | IFS="$ac_save_ifs" | |
be912515 | 4494 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm" |
ca9f4b81 AO |
4495 | fi |
4496 | fi | |
be912515 NN |
4497 | ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" |
4498 | if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then | |
4499 | echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4500 | else |
4501 | echo "$ac_t""no" 1>&6 | |
4502 | fi | |
4503 | ||
be912515 | 4504 | CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET |
ca9f4b81 | 4505 | else |
be912515 | 4506 | CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" |
ca9f4b81 AO |
4507 | fi |
4508 | else | |
be912515 | 4509 | CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" |
ca9f4b81 AO |
4510 | fi |
4511 | ||
4512 | if test -n "$ncn_target_tool_prefix"; then | |
4513 | # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. | |
4514 | set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 | |
4515 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4516 | echo "configure:4517: checking for $ac_word" >&5 |
be912515 | 4517 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4518 | echo $ac_n "(cached) $ac_c" 1>&6 |
4519 | else | |
be912515 NN |
4520 | if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then |
4521 | ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4522 | else |
4523 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4524 | ac_dummy="$PATH" | |
4525 | for ac_dir in $ac_dummy; do | |
4526 | test -z "$ac_dir" && ac_dir=. | |
4527 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4528 | ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib" |
ca9f4b81 AO |
4529 | break |
4530 | fi | |
4531 | done | |
4532 | IFS="$ac_save_ifs" | |
4533 | fi | |
4534 | fi | |
be912515 NN |
4535 | CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" |
4536 | if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then | |
4537 | echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4538 | else |
4539 | echo "$ac_t""no" 1>&6 | |
4540 | fi | |
4541 | ||
4542 | fi | |
be912515 | 4543 | if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then |
ca9f4b81 | 4544 | if test $build = $target ; then |
be912515 | 4545 | ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET |
ca9f4b81 AO |
4546 | # Extract the first word of "ranlib", so it can be a program name with args. |
4547 | set dummy ranlib; ac_word=$2 | |
4548 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4549 | echo "configure:4550: checking for $ac_word" >&5 |
be912515 | 4550 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4551 | echo $ac_n "(cached) $ac_c" 1>&6 |
4552 | else | |
be912515 NN |
4553 | if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then |
4554 | ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4555 | else |
4556 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4557 | ac_dummy="$PATH" | |
4558 | for ac_dir in $ac_dummy; do | |
4559 | test -z "$ac_dir" && ac_dir=. | |
4560 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4561 | ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib" |
ca9f4b81 AO |
4562 | break |
4563 | fi | |
4564 | done | |
4565 | IFS="$ac_save_ifs" | |
be912515 | 4566 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":" |
ca9f4b81 AO |
4567 | fi |
4568 | fi | |
be912515 NN |
4569 | ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" |
4570 | if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then | |
4571 | echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4572 | else |
4573 | echo "$ac_t""no" 1>&6 | |
4574 | fi | |
4575 | ||
be912515 | 4576 | CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET |
ca9f4b81 | 4577 | else |
be912515 | 4578 | CONFIGURED_RANLIB_FOR_TARGET=":" |
ca9f4b81 AO |
4579 | fi |
4580 | else | |
be912515 | 4581 | CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" |
ca9f4b81 AO |
4582 | fi |
4583 | ||
4584 | if test -n "$ncn_target_tool_prefix"; then | |
4585 | # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. | |
4586 | set dummy ${ncn_target_tool_prefix}windres; ac_word=$2 | |
4587 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4588 | echo "configure:4589: checking for $ac_word" >&5 |
be912515 | 4589 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4590 | echo $ac_n "(cached) $ac_c" 1>&6 |
4591 | else | |
be912515 NN |
4592 | if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then |
4593 | ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4594 | else |
4595 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4596 | ac_dummy="$PATH" | |
4597 | for ac_dir in $ac_dummy; do | |
4598 | test -z "$ac_dir" && ac_dir=. | |
4599 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4600 | ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" |
ca9f4b81 AO |
4601 | break |
4602 | fi | |
4603 | done | |
4604 | IFS="$ac_save_ifs" | |
4605 | fi | |
4606 | fi | |
be912515 NN |
4607 | CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" |
4608 | if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then | |
4609 | echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4610 | else |
4611 | echo "$ac_t""no" 1>&6 | |
4612 | fi | |
4613 | ||
4614 | fi | |
be912515 | 4615 | if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then |
ca9f4b81 | 4616 | if test $build = $target ; then |
be912515 | 4617 | ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET |
ca9f4b81 AO |
4618 | # Extract the first word of "windres", so it can be a program name with args. |
4619 | set dummy windres; ac_word=$2 | |
4620 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
98a5bb3b | 4621 | echo "configure:4622: checking for $ac_word" >&5 |
be912515 | 4622 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then |
ca9f4b81 AO |
4623 | echo $ac_n "(cached) $ac_c" 1>&6 |
4624 | else | |
be912515 NN |
4625 | if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then |
4626 | ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 AO |
4627 | else |
4628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4629 | ac_dummy="$PATH" | |
4630 | for ac_dir in $ac_dummy; do | |
4631 | test -z "$ac_dir" && ac_dir=. | |
4632 | if test -f $ac_dir/$ac_word; then | |
be912515 | 4633 | ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres" |
ca9f4b81 AO |
4634 | break |
4635 | fi | |
4636 | done | |
4637 | IFS="$ac_save_ifs" | |
be912515 | 4638 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres" |
ca9f4b81 AO |
4639 | fi |
4640 | fi | |
be912515 NN |
4641 | ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" |
4642 | if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then | |
4643 | echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6 | |
ca9f4b81 AO |
4644 | else |
4645 | echo "$ac_t""no" 1>&6 | |
4646 | fi | |
4647 | ||
be912515 | 4648 | CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET |
ca9f4b81 | 4649 | else |
be912515 | 4650 | CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" |
ca9f4b81 AO |
4651 | fi |
4652 | else | |
be912515 | 4653 | CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" |
ca9f4b81 AO |
4654 | fi |
4655 | ||
4977bab6 | 4656 | |
79c06341 | 4657 | |
79c06341 | 4658 | |
e490616e | 4659 | |
4977bab6 | 4660 | |
9e60a678 | 4661 | |
79c06341 | 4662 | |
79c06341 | 4663 | |
79c06341 | 4664 | |
671aa708 | 4665 | |
6de9cd9a | 4666 | |
671aa708 NN |
4667 | # Fix up target tools. |
4668 | if test "x${build}" = "x${host}" ; then | |
4669 | # In this case, the newly built tools can and should be used, | |
4670 | # so we override the results of the autoconf tests. | |
4671 | # This should really only happen when the tools are actually being built, | |
4672 | # but that's a further refinement. The new build scheme, where | |
4673 | # tools are built into a structure paralleling where they're installed, | |
4674 | # should also eliminate all of this cleanly. | |
4675 | AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)" | |
4676 | AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)" | |
4677 | DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)" | |
4678 | LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)" | |
4679 | NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)" | |
4680 | RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)" | |
4681 | WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)" | |
be912515 NN |
4682 | else |
4683 | # Just use the ones we found. | |
4684 | AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)" | |
4685 | AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)" | |
4686 | DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)" | |
4687 | LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)" | |
4688 | NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)" | |
4689 | RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)" | |
4690 | WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)" | |
671aa708 | 4691 | fi |
be912515 NN |
4692 | |
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
671aa708 NN |
4700 | # Certain tools may need extra flags. |
4701 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
4702 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
4703 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
4704 | ||
ee03dc5e | 4705 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
98a5bb3b | 4706 | echo "configure:4707: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
ee03dc5e AO |
4707 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4708 | if test "${enable_maintainer_mode+set}" = set; then | |
4709 | enableval="$enable_maintainer_mode" | |
4710 | USE_MAINTAINER_MODE=$enableval | |
4711 | else | |
4712 | USE_MAINTAINER_MODE=no | |
4713 | fi | |
4714 | ||
4715 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
4716 | ||
4717 | ||
4718 | if test "$USE_MAINTAINER_MODE" = yes; then | |
4719 | MAINTAINER_MODE_TRUE= | |
4720 | MAINTAINER_MODE_FALSE='#' | |
4721 | else | |
4722 | MAINTAINER_MODE_TRUE='#' | |
4723 | MAINTAINER_MODE_FALSE= | |
4724 | fi | |
4725 | MAINT=$MAINTAINER_MODE_TRUE | |
4726 | ||
2805b53a NN |
4727 | # --------------------- |
4728 | # GCC bootstrap support | |
4729 | # --------------------- | |
4730 | ||
4731 | # Stage specific cflags for build. | |
4732 | stage1_cflags="-g" | |
4733 | case $build in | |
4734 | vax-*-*) | |
4735 | case ${GCC} in | |
4736 | yes) stage1_cflags="-g -Wa,-J" ;; | |
4737 | *) stage1_cflags="-g -J" ;; | |
4738 | esac ;; | |
4739 | powerpc-*-darwin*) | |
4740 | # The spiffy cpp-precomp chokes on some legitimate constructs in GCC | |
4741 | # sources; use -no-cpp-precomp to get to GNU cpp. | |
4742 | # Apple's GCC has bugs in designated initializer handling, so disable | |
4743 | # that too. | |
4744 | stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" | |
4745 | ;; | |
4746 | esac | |
4747 | ||
4748 | ||
148907ea PB |
4749 | # It makes debugging easier if we create as symlinks the stage directories |
4750 | # gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not | |
4751 | # possible, however, we can resort to mv. | |
4752 | echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6 | |
98a5bb3b | 4753 | echo "configure:4754: checking if symbolic links between directories work" >&5 |
148907ea PB |
4754 | if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then |
4755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4756 | else | |
4757 | if test "${LN_S}" = "ln -s" \ | |
4758 | && mkdir confdir.s1 \ | |
4759 | && ln -s confdir.s1 confdir.s2 \ | |
4760 | && echo timestamp1 > confdir.s1/conftest.1 \ | |
4761 | && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \ | |
4762 | && echo timestamp2 > confdir.s2/conftest.2 \ | |
4763 | && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \ | |
4764 | && rm -f confdir.s2; then | |
4765 | gcc_cv_prog_ln_s_dir=yes | |
4766 | else | |
4767 | gcc_cv_prog_ln_s_dir=yes | |
4768 | fi | |
4769 | rm -rf confdir.s1 confdir.s2 | |
4770 | fi | |
4771 | ||
4772 | echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6 | |
4773 | ||
4774 | case ${gcc_cv_prog_ln_s_dir} in | |
4775 | yes) | |
4776 | CREATE_LINK_TO_DIR='ln -s $$1 $$2' | |
4777 | UNDO_LINK_TO_DIR='rm -f $$1' ;; | |
4778 | *) | |
4779 | CREATE_LINK_TO_DIR='mv $$1 $$2' | |
4780 | UNDO_LINK_TO_DIR='mv $$1 $$2' ;; | |
4781 | esac | |
4782 | ||
4783 | ||
4784 | ||
2805b53a NN |
4785 | # Enable -Werror in bootstrap stage2 and later. |
4786 | # Change the default to "no" on release branches. | |
4787 | # Check whether --enable-werror or --disable-werror was given. | |
4788 | if test "${enable_werror+set}" = set; then | |
4789 | enableval="$enable_werror" | |
4790 | : | |
4791 | else | |
4792 | enable_werror=yes | |
4793 | fi | |
4794 | ||
09a9c095 NN |
4795 | case ${enable_werror} in |
4796 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
4797 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
4798 | esac |
4799 | ||
4800 | ||
671aa708 NN |
4801 | trap '' 1 2 15 |
4802 | cat > confcache <<\EOF | |
4803 | # This file is a shell script that caches the results of configure | |
4804 | # tests run on this system so they can be shared between configure | |
4805 | # scripts and configure runs. It is not useful on other systems. | |
4806 | # If it contains results you don't want to keep, you may remove or edit it. | |
4807 | # | |
4808 | # By default, configure uses ./config.cache as the cache file, | |
4809 | # creating it if it does not exist already. You can give configure | |
4810 | # the --cache-file=FILE option to use a different cache file; that is | |
4811 | # what configure does when it calls configure scripts in | |
4812 | # subdirectories, so they share the cache. | |
4813 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4814 | # config.status only pays attention to the cache file if you give it the | |
4815 | # --recheck option to rerun configure. | |
4816 | # | |
79c06341 | 4817 | EOF |
671aa708 NN |
4818 | # The following way of writing the cache mishandles newlines in values, |
4819 | # but we know of no workaround that is simple, portable, and efficient. | |
4820 | # So, don't put newlines in cache variables' values. | |
4821 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4822 | # and sets the high bit in the cache file unless we assign to the vars. | |
4823 | (set) 2>&1 | | |
4824 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4825 | *ac_space=\ *) | |
4826 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4827 | # turns \\\\ into \\, and sed turns \\ into \). | |
4828 | sed -n \ | |
4829 | -e "s/'/'\\\\''/g" \ | |
4830 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4977bab6 | 4831 | ;; |
671aa708 NN |
4832 | *) |
4833 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4834 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4835 | ;; | |
4836 | esac >> confcache | |
4837 | if cmp -s $cache_file confcache; then | |
4838 | : | |
4839 | else | |
4840 | if test -w $cache_file; then | |
4841 | echo "updating cache $cache_file" | |
4842 | cat confcache > $cache_file | |
4843 | else | |
4844 | echo "not updating unwritable cache $cache_file" | |
4845 | fi | |
4977bab6 | 4846 | fi |
671aa708 | 4847 | rm -f confcache |
79c06341 | 4848 | |
671aa708 | 4849 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
79c06341 | 4850 | |
671aa708 NN |
4851 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4852 | # Let make expand exec_prefix. | |
4853 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 4854 | |
671aa708 NN |
4855 | # Any assignment to VPATH causes Sun make to only execute |
4856 | # the first set of double-colon rules, so remove it if not needed. | |
4857 | # If there is a colon in the path, we need to keep it. | |
4858 | if test "x$srcdir" = x.; then | |
4859 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4860 | fi | |
79c06341 | 4861 | |
671aa708 NN |
4862 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
4863 | ||
4864 | # Transform confdefs.h into DEFS. | |
4865 | # Protect against shell expansion while executing Makefile rules. | |
4866 | # Protect against Makefile macro expansion. | |
a3e8d8b4 LR |
4867 | cat > conftest.defs <<\EOF |
4868 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
4869 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
4870 | s%\[%\\&%g | |
4871 | s%\]%\\&%g | |
4872 | s%\$%$$%g | |
4873 | EOF | |
4874 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
4875 | rm -f conftest.defs | |
4977bab6 | 4876 | |
4977bab6 | 4877 | |
671aa708 NN |
4878 | # Without the "./", some shells look in PATH for config.status. |
4879 | : ${CONFIG_STATUS=./config.status} | |
4977bab6 | 4880 | |
671aa708 NN |
4881 | echo creating $CONFIG_STATUS |
4882 | rm -f $CONFIG_STATUS | |
4883 | cat > $CONFIG_STATUS <<EOF | |
4884 | #! /bin/sh | |
4885 | # Generated automatically by configure. | |
4886 | # Run this file to recreate the current configuration. | |
4887 | # This directory was configured as follows, | |
4888 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4889 | # | |
4890 | # $0 $ac_configure_args | |
4891 | # | |
4892 | # Compiler output produced by configure, useful for debugging | |
4893 | # configure, is in ./config.log if it exists. | |
4977bab6 | 4894 | |
671aa708 NN |
4895 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
4896 | for ac_option | |
4897 | do | |
4898 | case "\$ac_option" in | |
4899 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4900 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4901 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4902 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
4903 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
4904 | exit 0 ;; | |
4905 | -help | --help | --hel | --he | --h) | |
4906 | echo "\$ac_cs_usage"; exit 0 ;; | |
4907 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4977bab6 | 4908 | esac |
671aa708 | 4909 | done |
4977bab6 | 4910 | |
671aa708 | 4911 | ac_given_srcdir=$srcdir |
775956d0 | 4912 | ac_given_INSTALL="$INSTALL" |
79c06341 | 4913 | |
671aa708 NN |
4914 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
4915 | EOF | |
4916 | cat >> $CONFIG_STATUS <<EOF | |
4917 | ||
4918 | # Protect against being on the right side of a sed subst in config.status. | |
4919 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4920 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4921 | $ac_vpsub | |
4922 | $extrasub | |
4923 | s%@SHELL@%$SHELL%g | |
4924 | s%@CFLAGS@%$CFLAGS%g | |
4925 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4926 | s%@CXXFLAGS@%$CXXFLAGS%g | |
4927 | s%@FFLAGS@%$FFLAGS%g | |
4928 | s%@DEFS@%$DEFS%g | |
4929 | s%@LDFLAGS@%$LDFLAGS%g | |
4930 | s%@LIBS@%$LIBS%g | |
4931 | s%@exec_prefix@%$exec_prefix%g | |
4932 | s%@prefix@%$prefix%g | |
4933 | s%@program_transform_name@%$program_transform_name%g | |
4934 | s%@bindir@%$bindir%g | |
4935 | s%@sbindir@%$sbindir%g | |
4936 | s%@libexecdir@%$libexecdir%g | |
4937 | s%@datadir@%$datadir%g | |
4938 | s%@sysconfdir@%$sysconfdir%g | |
4939 | s%@sharedstatedir@%$sharedstatedir%g | |
4940 | s%@localstatedir@%$localstatedir%g | |
4941 | s%@libdir@%$libdir%g | |
4942 | s%@includedir@%$includedir%g | |
4943 | s%@oldincludedir@%$oldincludedir%g | |
4944 | s%@infodir@%$infodir%g | |
4945 | s%@mandir@%$mandir%g | |
4946 | s%@host@%$host%g | |
4947 | s%@host_alias@%$host_alias%g | |
4948 | s%@host_cpu@%$host_cpu%g | |
4949 | s%@host_vendor@%$host_vendor%g | |
4950 | s%@host_os@%$host_os%g | |
4951 | s%@target@%$target%g | |
4952 | s%@target_alias@%$target_alias%g | |
4953 | s%@target_cpu@%$target_cpu%g | |
4954 | s%@target_vendor@%$target_vendor%g | |
4955 | s%@target_os@%$target_os%g | |
4956 | s%@build@%$build%g | |
4957 | s%@build_alias@%$build_alias%g | |
4958 | s%@build_cpu@%$build_cpu%g | |
4959 | s%@build_vendor@%$build_vendor%g | |
4960 | s%@build_os@%$build_os%g | |
775956d0 NN |
4961 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
4962 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
4963 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
ad6717df | 4964 | s%@LN@%$LN%g |
148907ea | 4965 | s%@LN_S@%$LN_S%g |
3dfabf63 | 4966 | s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g |
8b87bb96 NN |
4967 | s%@build_subdir@%$build_subdir%g |
4968 | s%@host_subdir@%$host_subdir%g | |
4969 | s%@target_subdir@%$target_subdir%g | |
55ffb5ed NN |
4970 | s%@CC@%$CC%g |
4971 | s%@GNATBIND@%$GNATBIND%g | |
a76494aa | 4972 | s%@do_compare@%$do_compare%g |
6de9cd9a DN |
4973 | s%@gmplibs@%$gmplibs%g |
4974 | s%@gmpinc@%$gmpinc%g | |
2805b53a | 4975 | s%@stage1_languages@%$stage1_languages%g |
23f6b2f9 PB |
4976 | s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g |
4977 | s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g | |
4978 | s%@CONFIGURED_M4@%$CONFIGURED_M4%g | |
4979 | s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g | |
4980 | s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g | |
4981 | s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g | |
f516a7da | 4982 | s%@default_target@%$default_target%g |
671aa708 NN |
4983 | /@serialization_dependencies@/r $serialization_dependencies |
4984 | s%@serialization_dependencies@%%g | |
4985 | /@host_makefile_frag@/r $host_makefile_frag | |
4986 | s%@host_makefile_frag@%%g | |
4987 | /@target_makefile_frag@/r $target_makefile_frag | |
4988 | s%@target_makefile_frag@%%g | |
4989 | /@alphaieee_frag@/r $alphaieee_frag | |
4990 | s%@alphaieee_frag@%%g | |
4991 | /@ospace_frag@/r $ospace_frag | |
4992 | s%@ospace_frag@%%g | |
4993 | s%@SET_LIB_PATH@%$SET_LIB_PATH%g | |
4994 | s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g | |
23f6b2f9 | 4995 | s%@BUILD_DIR_PREFIX@%$BUILD_DIR_PREFIX%g |
671aa708 NN |
4996 | s%@BUILD_PREFIX@%$BUILD_PREFIX%g |
4997 | s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g | |
671aa708 NN |
4998 | s%@gcc_version_trigger@%$gcc_version_trigger%g |
4999 | s%@gcc_version@%$gcc_version%g | |
5000 | s%@tooldir@%$tooldir%g | |
5001 | s%@build_tooldir@%$build_tooldir%g | |
5002 | s%@GDB_TK@%$GDB_TK%g | |
5003 | s%@gxx_include_dir@%$gxx_include_dir%g | |
5004 | s%@libstdcxx_incdir@%$libstdcxx_incdir%g | |
671aa708 | 5005 | s%@build_configargs@%$build_configargs%g |
23f6b2f9 | 5006 | s%@build_configdirs@%$build_configdirs%g |
671aa708 NN |
5007 | s%@host_configargs@%$host_configargs%g |
5008 | s%@configdirs@%$configdirs%g | |
671aa708 NN |
5009 | s%@target_configargs@%$target_configargs%g |
5010 | s%@target_configdirs@%$target_configdirs%g | |
671aa708 | 5011 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g |
671aa708 | 5012 | s%@config_shell@%$config_shell%g |
ca9f4b81 AO |
5013 | s%@AR@%$AR%g |
5014 | s%@ncn_cv_AR@%$ncn_cv_AR%g | |
5015 | s%@AS@%$AS%g | |
5016 | s%@ncn_cv_AS@%$ncn_cv_AS%g | |
5017 | s%@DLLTOOL@%$DLLTOOL%g | |
5018 | s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g | |
5019 | s%@LD@%$LD%g | |
5020 | s%@ncn_cv_LD@%$ncn_cv_LD%g | |
5021 | s%@NM@%$NM%g | |
5022 | s%@ncn_cv_NM@%$ncn_cv_NM%g | |
5023 | s%@RANLIB@%$RANLIB%g | |
5024 | s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g | |
5025 | s%@WINDRES@%$WINDRES%g | |
5026 | s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g | |
5027 | s%@OBJCOPY@%$OBJCOPY%g | |
5028 | s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g | |
5029 | s%@OBJDUMP@%$OBJDUMP%g | |
5030 | s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g | |
671aa708 | 5031 | s%@CXX@%$CXX%g |
6691a79e | 5032 | s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g |
be912515 NN |
5033 | s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g |
5034 | s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g | |
5035 | s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g | |
5036 | s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g | |
5037 | s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g | |
5038 | s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g | |
5039 | s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g | |
5040 | s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g | |
5041 | s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g | |
5042 | s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g | |
5043 | s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g | |
5044 | s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g | |
5045 | s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g | |
5046 | s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g | |
671aa708 NN |
5047 | s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g |
5048 | s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g | |
5049 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g | |
5050 | s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g | |
6de9cd9a | 5051 | s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g |
671aa708 NN |
5052 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
5053 | s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g | |
5054 | s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g | |
5055 | s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g | |
be912515 NN |
5056 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
5057 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g | |
5058 | s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g | |
5059 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g | |
5060 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g | |
5061 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g | |
5062 | s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g | |
ee03dc5e AO |
5063 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
5064 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
5065 | s%@MAINT@%$MAINT%g | |
2805b53a | 5066 | s%@stage1_cflags@%$stage1_cflags%g |
148907ea PB |
5067 | s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g |
5068 | s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g | |
09a9c095 | 5069 | s%@stage2_werror_flag@%$stage2_werror_flag%g |
671aa708 NN |
5070 | |
5071 | CEOF | |
5072 | EOF | |
79c06341 | 5073 | |
671aa708 NN |
5074 | cat >> $CONFIG_STATUS <<\EOF |
5075 | ||
5076 | # Split the substitutions into bite-sized pieces for seds with | |
5077 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5078 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
5079 | ac_file=1 # Number of current file. | |
5080 | ac_beg=1 # First line for current file. | |
5081 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
5082 | ac_more_lines=: | |
5083 | ac_sed_cmds="" | |
5084 | while $ac_more_lines; do | |
5085 | if test $ac_beg -gt 1; then | |
5086 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
5087 | else | |
5088 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4977bab6 | 5089 | fi |
671aa708 NN |
5090 | if test ! -s conftest.s$ac_file; then |
5091 | ac_more_lines=false | |
5092 | rm -f conftest.s$ac_file | |
5093 | else | |
5094 | if test -z "$ac_sed_cmds"; then | |
5095 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
5096 | else | |
5097 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
5098 | fi | |
5099 | ac_file=`expr $ac_file + 1` | |
5100 | ac_beg=$ac_end | |
5101 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4977bab6 | 5102 | fi |
671aa708 NN |
5103 | done |
5104 | if test -z "$ac_sed_cmds"; then | |
5105 | ac_sed_cmds=cat | |
4977bab6 | 5106 | fi |
671aa708 | 5107 | EOF |
79c06341 | 5108 | |
671aa708 | 5109 | cat >> $CONFIG_STATUS <<EOF |
79c06341 | 5110 | |
671aa708 NN |
5111 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
5112 | EOF | |
5113 | cat >> $CONFIG_STATUS <<\EOF | |
5114 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5115 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5116 | case "$ac_file" in | |
5117 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5118 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5119 | *) ac_file_in="${ac_file}.in" ;; | |
5120 | esac | |
79c06341 | 5121 | |
671aa708 | 5122 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
79c06341 | 5123 | |
671aa708 NN |
5124 | # Remove last slash and all that follows it. Not all systems have dirname. |
5125 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5126 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5127 | # The file is in a subdirectory. | |
5128 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5129 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5130 | # A "../" for each directory in $ac_dir_suffix. | |
5131 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5132 | else | |
5133 | ac_dir_suffix= ac_dots= | |
5134 | fi | |
79c06341 | 5135 | |
671aa708 NN |
5136 | case "$ac_given_srcdir" in |
5137 | .) srcdir=. | |
5138 | if test -z "$ac_dots"; then top_srcdir=. | |
5139 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5140 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5141 | *) # Relative path. | |
5142 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5143 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5144 | esac | |
79c06341 | 5145 | |
775956d0 NN |
5146 | case "$ac_given_INSTALL" in |
5147 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5148 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5149 | esac | |
79c06341 | 5150 | |
671aa708 NN |
5151 | echo creating "$ac_file" |
5152 | rm -f "$ac_file" | |
5153 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5154 | case "$ac_file" in | |
5155 | *Makefile*) ac_comsub="1i\\ | |
5156 | # $configure_input" ;; | |
5157 | *) ac_comsub= ;; | |
5158 | esac | |
79c06341 | 5159 | |
671aa708 NN |
5160 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5161 | sed -e "$ac_comsub | |
5162 | s%@configure_input@%$configure_input%g | |
5163 | s%@srcdir@%$srcdir%g | |
5164 | s%@top_srcdir@%$top_srcdir%g | |
775956d0 | 5165 | s%@INSTALL@%$INSTALL%g |
671aa708 NN |
5166 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5167 | fi; done | |
5168 | rm -f conftest.s* | |
79c06341 | 5169 | |
671aa708 NN |
5170 | EOF |
5171 | cat >> $CONFIG_STATUS <<EOF | |
79c06341 | 5172 | |
671aa708 NN |
5173 | EOF |
5174 | cat >> $CONFIG_STATUS <<\EOF | |
79c06341 JL |
5175 | |
5176 | exit 0 | |
671aa708 NN |
5177 | EOF |
5178 | chmod +x $CONFIG_STATUS | |
5179 | rm -fr confdefs* $ac_clean_files | |
5180 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
79c06341 | 5181 |