]>
Commit | Line | Data |
---|---|---|
861bb6c1 JL |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4e88d51b | 4 | # Generated automatically using autoconf version 2.12.1 |
861bb6c1 JL |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-gnu-ld arrange to work with GNU ld." | |
16 | ac_help="$ac_help | |
17 | --with-gnu-as arrange to work with GNU as." | |
18 | ac_help="$ac_help | |
19 | --with-stabs arrange to use stabs instead of host debug format." | |
20 | ac_help="$ac_help | |
21 | --with-elf arrange to use ELF instead of host debug format." | |
22 | ac_help="$ac_help | |
23 | --with-local-prefix=DIR specifies directory to put local include." | |
24 | ac_help="$ac_help | |
25 | --with-gxx-include-dir=DIR | |
26 | specifies directory to put g++ header files." | |
a494747c MM |
27 | ac_help="$ac_help |
28 | --enable-checking enable expensive run-time checks." | |
861bb6c1 | 29 | ac_help="$ac_help |
0b9d02c6 JL |
30 | --enable-c-cpplib Use cpplib for C and C++." |
31 | ac_help="$ac_help | |
32 | --enable-c-mbchar Enable multibyte characters for C and C++." | |
9101297d DL |
33 | ac_help="$ac_help |
34 | --enable-haifa Use the experimental scheduler. | |
35 | --disable-haifa Don't use the experimental scheduler for the | |
36 | targets which normally enable it." | |
4b104d6e | 37 | ac_help="$ac_help |
34a4c466 | 38 | --with-fast-fixincludes Use a faster fixinclude program. Experimental" |
861bb6c1 JL |
39 | ac_help="$ac_help |
40 | --enable-threads enable thread usage for target GCC. | |
41 | --enable-threads=LIB use LIB thread package for target GCC." | |
42 | ||
43 | # Initialize some variables set by options. | |
44 | # The variables have the same names as the options, with | |
45 | # dashes changed to underlines. | |
46 | build=NONE | |
47 | cache_file=./config.cache | |
48 | exec_prefix=NONE | |
49 | host=NONE | |
50 | no_create= | |
51 | nonopt=NONE | |
52 | no_recursion= | |
53 | prefix=NONE | |
54 | program_prefix=NONE | |
55 | program_suffix=NONE | |
56 | program_transform_name=s,x,x, | |
57 | silent= | |
58 | site= | |
59 | srcdir= | |
60 | target=NONE | |
61 | verbose= | |
62 | x_includes=NONE | |
63 | x_libraries=NONE | |
64 | bindir='${exec_prefix}/bin' | |
65 | sbindir='${exec_prefix}/sbin' | |
66 | libexecdir='${exec_prefix}/libexec' | |
67 | datadir='${prefix}/share' | |
68 | sysconfdir='${prefix}/etc' | |
69 | sharedstatedir='${prefix}/com' | |
70 | localstatedir='${prefix}/var' | |
71 | libdir='${exec_prefix}/lib' | |
72 | includedir='${prefix}/include' | |
73 | oldincludedir='/usr/include' | |
74 | infodir='${prefix}/info' | |
75 | mandir='${prefix}/man' | |
76 | ||
77 | # Initialize some other variables. | |
78 | subdirs= | |
79 | MFLAGS= MAKEFLAGS= | |
4e88d51b | 80 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
81 | # Maximum number of lines to put in a shell here document. |
82 | ac_max_here_lines=12 | |
83 | ||
84 | ac_prev= | |
85 | for ac_option | |
86 | do | |
87 | ||
88 | # If the previous option needs an argument, assign it. | |
89 | if test -n "$ac_prev"; then | |
90 | eval "$ac_prev=\$ac_option" | |
91 | ac_prev= | |
92 | continue | |
93 | fi | |
94 | ||
95 | case "$ac_option" in | |
96 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
97 | *) ac_optarg= ;; | |
98 | esac | |
99 | ||
100 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
101 | ||
102 | case "$ac_option" in | |
103 | ||
104 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
105 | ac_prev=bindir ;; | |
106 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
107 | bindir="$ac_optarg" ;; | |
108 | ||
109 | -build | --build | --buil | --bui | --bu) | |
110 | ac_prev=build ;; | |
111 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
112 | build="$ac_optarg" ;; | |
113 | ||
114 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
115 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
116 | ac_prev=cache_file ;; | |
117 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
118 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
119 | cache_file="$ac_optarg" ;; | |
120 | ||
121 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
122 | ac_prev=datadir ;; | |
123 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
124 | | --da=*) | |
125 | datadir="$ac_optarg" ;; | |
126 | ||
127 | -disable-* | --disable-*) | |
128 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
129 | # Reject names that are not valid shell variable names. | |
130 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
132 | fi | |
133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
134 | eval "enable_${ac_feature}=no" ;; | |
135 | ||
136 | -enable-* | --enable-*) | |
137 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
138 | # Reject names that are not valid shell variable names. | |
139 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
140 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
141 | fi | |
142 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
143 | case "$ac_option" in | |
144 | *=*) ;; | |
145 | *) ac_optarg=yes ;; | |
146 | esac | |
147 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
148 | ||
149 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
150 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
151 | | --exec | --exe | --ex) | |
152 | ac_prev=exec_prefix ;; | |
153 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
154 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
155 | | --exec=* | --exe=* | --ex=*) | |
156 | exec_prefix="$ac_optarg" ;; | |
157 | ||
158 | -gas | --gas | --ga | --g) | |
159 | # Obsolete; use --with-gas. | |
160 | with_gas=yes ;; | |
161 | ||
162 | -help | --help | --hel | --he) | |
163 | # Omit some internal or obsolete options to make the list less imposing. | |
164 | # This message is too long to be a string in the A/UX 3.1 sh. | |
165 | cat << EOF | |
166 | Usage: configure [options] [host] | |
167 | Options: [defaults in brackets after descriptions] | |
168 | Configuration: | |
169 | --cache-file=FILE cache test results in FILE | |
170 | --help print this message | |
171 | --no-create do not create output files | |
172 | --quiet, --silent do not print \`checking...' messages | |
173 | --version print the version of autoconf that created configure | |
174 | Directory and file names: | |
175 | --prefix=PREFIX install architecture-independent files in PREFIX | |
176 | [$ac_default_prefix] | |
177 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
178 | [same as prefix] | |
179 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
180 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
181 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
182 | --datadir=DIR read-only architecture-independent data in DIR | |
183 | [PREFIX/share] | |
184 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
185 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
186 | [PREFIX/com] | |
187 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
188 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
189 | --includedir=DIR C header files in DIR [PREFIX/include] | |
190 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
191 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
192 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
193 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
194 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
195 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
196 | --program-transform-name=PROGRAM | |
197 | run sed PROGRAM on installed program names | |
198 | EOF | |
199 | cat << EOF | |
200 | Host type: | |
201 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
202 | --host=HOST configure for HOST [guessed] | |
203 | --target=TARGET configure for TARGET [TARGET=HOST] | |
204 | Features and packages: | |
205 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
206 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
207 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
208 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
209 | --x-includes=DIR X include files are in DIR | |
210 | --x-libraries=DIR X library files are in DIR | |
211 | EOF | |
212 | if test -n "$ac_help"; then | |
213 | echo "--enable and --with options recognized:$ac_help" | |
214 | fi | |
215 | exit 0 ;; | |
216 | ||
217 | -host | --host | --hos | --ho) | |
218 | ac_prev=host ;; | |
219 | -host=* | --host=* | --hos=* | --ho=*) | |
220 | host="$ac_optarg" ;; | |
221 | ||
222 | -includedir | --includedir | --includedi | --included | --include \ | |
223 | | --includ | --inclu | --incl | --inc) | |
224 | ac_prev=includedir ;; | |
225 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
226 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
227 | includedir="$ac_optarg" ;; | |
228 | ||
229 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
230 | ac_prev=infodir ;; | |
231 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
232 | infodir="$ac_optarg" ;; | |
233 | ||
234 | -libdir | --libdir | --libdi | --libd) | |
235 | ac_prev=libdir ;; | |
236 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
237 | libdir="$ac_optarg" ;; | |
238 | ||
239 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
240 | | --libexe | --libex | --libe) | |
241 | ac_prev=libexecdir ;; | |
242 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
243 | | --libexe=* | --libex=* | --libe=*) | |
244 | libexecdir="$ac_optarg" ;; | |
245 | ||
246 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
247 | | --localstate | --localstat | --localsta | --localst \ | |
248 | | --locals | --local | --loca | --loc | --lo) | |
249 | ac_prev=localstatedir ;; | |
250 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
251 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
252 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
253 | localstatedir="$ac_optarg" ;; | |
254 | ||
255 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
256 | ac_prev=mandir ;; | |
257 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
258 | mandir="$ac_optarg" ;; | |
259 | ||
260 | -nfp | --nfp | --nf) | |
261 | # Obsolete; use --without-fp. | |
262 | with_fp=no ;; | |
263 | ||
264 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
265 | | --no-cr | --no-c) | |
266 | no_create=yes ;; | |
267 | ||
268 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
269 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
270 | no_recursion=yes ;; | |
271 | ||
272 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
273 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
274 | | --oldin | --oldi | --old | --ol | --o) | |
275 | ac_prev=oldincludedir ;; | |
276 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
277 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
278 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
279 | oldincludedir="$ac_optarg" ;; | |
280 | ||
281 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
282 | ac_prev=prefix ;; | |
283 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
284 | prefix="$ac_optarg" ;; | |
285 | ||
286 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
287 | | --program-pre | --program-pr | --program-p) | |
288 | ac_prev=program_prefix ;; | |
289 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
290 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
291 | program_prefix="$ac_optarg" ;; | |
292 | ||
293 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
294 | | --program-suf | --program-su | --program-s) | |
295 | ac_prev=program_suffix ;; | |
296 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
297 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
298 | program_suffix="$ac_optarg" ;; | |
299 | ||
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 | ac_prev=program_transform_name ;; | |
308 | -program-transform-name=* | --program-transform-name=* \ | |
309 | | --program-transform-nam=* | --program-transform-na=* \ | |
310 | | --program-transform-n=* | --program-transform-=* \ | |
311 | | --program-transform=* | --program-transfor=* \ | |
312 | | --program-transfo=* | --program-transf=* \ | |
313 | | --program-trans=* | --program-tran=* \ | |
314 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
315 | program_transform_name="$ac_optarg" ;; | |
316 | ||
317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
318 | | -silent | --silent | --silen | --sile | --sil) | |
319 | silent=yes ;; | |
320 | ||
321 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
322 | ac_prev=sbindir ;; | |
323 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
324 | | --sbi=* | --sb=*) | |
325 | sbindir="$ac_optarg" ;; | |
326 | ||
327 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
328 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
329 | | --sharedst | --shareds | --shared | --share | --shar \ | |
330 | | --sha | --sh) | |
331 | ac_prev=sharedstatedir ;; | |
332 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
333 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
334 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
335 | | --sha=* | --sh=*) | |
336 | sharedstatedir="$ac_optarg" ;; | |
337 | ||
338 | -site | --site | --sit) | |
339 | ac_prev=site ;; | |
340 | -site=* | --site=* | --sit=*) | |
341 | site="$ac_optarg" ;; | |
342 | ||
343 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
344 | ac_prev=srcdir ;; | |
345 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
346 | srcdir="$ac_optarg" ;; | |
347 | ||
348 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
349 | | --syscon | --sysco | --sysc | --sys | --sy) | |
350 | ac_prev=sysconfdir ;; | |
351 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
352 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
353 | sysconfdir="$ac_optarg" ;; | |
354 | ||
355 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
356 | ac_prev=target ;; | |
357 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
358 | target="$ac_optarg" ;; | |
359 | ||
360 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
361 | verbose=yes ;; | |
362 | ||
363 | -version | --version | --versio | --versi | --vers) | |
4e88d51b | 364 | echo "configure generated by autoconf version 2.12.1" |
861bb6c1 JL |
365 | exit 0 ;; |
366 | ||
367 | -with-* | --with-*) | |
368 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
369 | # Reject names that are not valid shell variable names. | |
370 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
371 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
372 | fi | |
373 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
374 | case "$ac_option" in | |
375 | *=*) ;; | |
376 | *) ac_optarg=yes ;; | |
377 | esac | |
378 | eval "with_${ac_package}='$ac_optarg'" ;; | |
379 | ||
380 | -without-* | --without-*) | |
381 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
382 | # Reject names that are not valid shell variable names. | |
383 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
384 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
385 | fi | |
386 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
387 | eval "with_${ac_package}=no" ;; | |
388 | ||
389 | --x) | |
390 | # Obsolete; use --with-x. | |
391 | with_x=yes ;; | |
392 | ||
393 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
394 | | --x-incl | --x-inc | --x-in | --x-i) | |
395 | ac_prev=x_includes ;; | |
396 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
397 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
398 | x_includes="$ac_optarg" ;; | |
399 | ||
400 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
401 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
402 | ac_prev=x_libraries ;; | |
403 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
404 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
405 | x_libraries="$ac_optarg" ;; | |
406 | ||
407 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
408 | ;; | |
409 | ||
410 | *) | |
411 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
412 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
413 | fi | |
414 | if test "x$nonopt" != xNONE; then | |
415 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
416 | fi | |
417 | nonopt="$ac_option" | |
418 | ;; | |
419 | ||
420 | esac | |
421 | done | |
422 | ||
423 | if test -n "$ac_prev"; then | |
424 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
425 | fi | |
426 | ||
427 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
428 | ||
429 | # File descriptor usage: | |
430 | # 0 standard input | |
431 | # 1 file creation | |
432 | # 2 errors and warnings | |
433 | # 3 some systems may open it to /dev/tty | |
434 | # 4 used on the Kubota Titan | |
435 | # 6 checking for... messages and results | |
436 | # 5 compiler messages saved in config.log | |
437 | if test "$silent" = yes; then | |
438 | exec 6>/dev/null | |
439 | else | |
440 | exec 6>&1 | |
441 | fi | |
442 | exec 5>./config.log | |
443 | ||
444 | echo "\ | |
445 | This file contains any messages produced by compilers while | |
446 | running configure, to aid debugging if configure makes a mistake. | |
447 | " 1>&5 | |
448 | ||
449 | # Strip out --no-create and --no-recursion so they do not pile up. | |
450 | # Also quote any args containing shell metacharacters. | |
451 | ac_configure_args= | |
452 | for ac_arg | |
453 | do | |
454 | case "$ac_arg" in | |
455 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
456 | | --no-cr | --no-c) ;; | |
457 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
458 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
459 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
460 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
461 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
462 | esac | |
463 | done | |
464 | ||
465 | # NLS nuisances. | |
466 | # Only set these to C if already set. These must not be set unconditionally | |
467 | # because not all systems understand e.g. LANG=C (notably SCO). | |
468 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
469 | # Non-C LC_CTYPE values break the ctype check. | |
470 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
471 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
472 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
473 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
474 | ||
475 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
476 | rm -rf conftest* confdefs.h | |
477 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
478 | echo > confdefs.h | |
479 | ||
480 | # A filename unique to this package, relative to the directory that | |
481 | # configure is in, which we can look for to find out if srcdir is correct. | |
482 | ac_unique_file=tree.c | |
483 | ||
484 | # Find the source files, if location was not specified. | |
485 | if test -z "$srcdir"; then | |
486 | ac_srcdir_defaulted=yes | |
487 | # Try the directory containing this script, then its parent. | |
488 | ac_prog=$0 | |
489 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
490 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
491 | srcdir=$ac_confdir | |
492 | if test ! -r $srcdir/$ac_unique_file; then | |
493 | srcdir=.. | |
494 | fi | |
495 | else | |
496 | ac_srcdir_defaulted=no | |
497 | fi | |
498 | if test ! -r $srcdir/$ac_unique_file; then | |
499 | if test "$ac_srcdir_defaulted" = yes; then | |
500 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
501 | else | |
502 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
503 | fi | |
504 | fi | |
505 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
506 | ||
507 | # Prefer explicitly selected file to automatically selected ones. | |
508 | if test -z "$CONFIG_SITE"; then | |
509 | if test "x$prefix" != xNONE; then | |
510 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
511 | else | |
512 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
513 | fi | |
514 | fi | |
515 | for ac_site_file in $CONFIG_SITE; do | |
516 | if test -r "$ac_site_file"; then | |
517 | echo "loading site script $ac_site_file" | |
518 | . "$ac_site_file" | |
519 | fi | |
520 | done | |
521 | ||
522 | if test -r "$cache_file"; then | |
523 | echo "loading cache $cache_file" | |
524 | . $cache_file | |
525 | else | |
526 | echo "creating cache $cache_file" | |
527 | > $cache_file | |
528 | fi | |
529 | ||
530 | ac_ext=c | |
531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
532 | ac_cpp='$CPP $CPPFLAGS' | |
533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
534 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
535 | cross_compiling=$ac_cv_prog_cc_cross | |
536 | ||
537 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
538 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
539 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
540 | ac_n= ac_c=' | |
541 | ' ac_t=' ' | |
542 | else | |
543 | ac_n=-n ac_c= ac_t= | |
544 | fi | |
545 | else | |
546 | ac_n= ac_c='\c' ac_t= | |
547 | fi | |
548 | ||
549 | ||
550 | ||
551 | ||
861bb6c1 JL |
552 | remove=rm |
553 | hard_link=ln | |
554 | symbolic_link='ln -s' | |
555 | copy=cp | |
556 | ||
557 | # Check for additional parameters | |
558 | ||
559 | # With GNU ld | |
560 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
561 | if test "${with_gnu_ld+set}" = set; then | |
562 | withval="$with_gnu_ld" | |
df6faf79 | 563 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 564 | else |
df6faf79 | 565 | gnu_ld_flag=no |
861bb6c1 JL |
566 | fi |
567 | ||
568 | ||
569 | # With GNU as | |
570 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
571 | if test "${with_gnu_as+set}" = set; then | |
572 | withval="$with_gnu_as" | |
df6faf79 | 573 | gas_flag="$with_gnu_as" |
861bb6c1 | 574 | else |
df6faf79 | 575 | gas_flag=no |
861bb6c1 JL |
576 | fi |
577 | ||
578 | ||
579 | # With stabs | |
580 | # Check whether --with-stabs or --without-stabs was given. | |
581 | if test "${with_stabs+set}" = set; then | |
582 | withval="$with_stabs" | |
535b86ce | 583 | stabs="$with_stabs" |
861bb6c1 JL |
584 | else |
585 | stabs=no | |
586 | fi | |
587 | ||
588 | ||
589 | # With ELF | |
590 | # Check whether --with-elf or --without-elf was given. | |
591 | if test "${with_elf+set}" = set; then | |
592 | withval="$with_elf" | |
535b86ce | 593 | elf="$with_elf" |
861bb6c1 JL |
594 | else |
595 | elf=no | |
596 | fi | |
597 | ||
598 | ||
599 | # Specify the local prefix | |
4e88d51b | 600 | local_prefix= |
861bb6c1 JL |
601 | # Check whether --with-local-prefix or --without-local-prefix was given. |
602 | if test "${with_local_prefix+set}" = set; then | |
603 | withval="$with_local_prefix" | |
4e88d51b JM |
604 | case "${withval}" in |
605 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
606 | no) ;; | |
607 | *) local_prefix=$with_local_prefix ;; | |
608 | esac | |
861bb6c1 JL |
609 | fi |
610 | ||
611 | ||
612 | # Default local prefix if it is empty | |
613 | if [ x$local_prefix = x ]; then | |
614 | local_prefix=/usr/local | |
615 | fi | |
616 | ||
4e88d51b | 617 | gxx_include_dir= |
861bb6c1 JL |
618 | # Specify the g++ header file directory |
619 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
620 | if test "${with_gxx_include_dir+set}" = set; then | |
621 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
622 | case "${withval}" in |
623 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
624 | no) ;; | |
625 | *) gxx_include_dir=$with_gxx_include_dir ;; | |
626 | esac | |
861bb6c1 JL |
627 | fi |
628 | ||
629 | ||
4e88d51b JM |
630 | if test x${gxx_include_dir} = x; then |
631 | if test x${enable_version_specific_runtime_libs} = xyes; then | |
632 | gxx_include_dir='${libsubdir}/include/g++' | |
633 | else | |
634 | gxx_include_dir='${prefix}/include/g++' | |
635 | fi | |
636 | fi | |
637 | ||
a494747c MM |
638 | # Enable expensive internal checks |
639 | # Check whether --enable-checking or --disable-checking was given. | |
640 | if test "${enable_checking+set}" = set; then | |
641 | enableval="$enable_checking" | |
4e88d51b JM |
642 | case "${enableval}" in |
643 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
644 | #define ENABLE_CHECKING 1 |
645 | EOF | |
4e88d51b JM |
646 | ;; |
647 | no) ;; | |
648 | *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; | |
649 | esac | |
a494747c MM |
650 | fi |
651 | ||
652 | ||
861bb6c1 | 653 | # Enable use of cpplib for C. |
e061d1ce | 654 | cpp_main=cccp |
861bb6c1 JL |
655 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
656 | if test "${enable_c_cpplib+set}" = set; then | |
657 | enableval="$enable_c_cpplib" | |
658 | if [ x$enable_c_cpplib != xno ]; then | |
659 | extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o" | |
c8724862 DB |
660 | extra_c_objs="${extra_c_objs} prefix.o" |
661 | extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o" | |
861bb6c1 | 662 | extra_c_flags=-DUSE_CPPLIB=1 |
e061d1ce | 663 | cpp_main=cppmain |
861bb6c1 JL |
664 | fi |
665 | fi | |
666 | ||
9101297d | 667 | |
0b9d02c6 JL |
668 | # Enable Multibyte Characters for C/C++ |
669 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
670 | if test "${enable_c_mbchar+set}" = set; then | |
671 | enableval="$enable_c_mbchar" | |
672 | if [ x$enable_c_mbchar != xno ]; then | |
673 | extra_c_flags=-DMULTIBYTE_CHARS=1 | |
674 | fi | |
675 | fi | |
676 | ||
677 | ||
9101297d DL |
678 | # Enable Haifa scheduler. |
679 | # Check whether --enable-haifa or --disable-haifa was given. | |
680 | if test "${enable_haifa+set}" = set; then | |
681 | enableval="$enable_haifa" | |
682 | : | |
683 | fi | |
684 | ||
4b104d6e JL |
685 | # Fast fixincludes |
686 | # | |
687 | # This is a work in progress... | |
34a4c466 JL |
688 | # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given. |
689 | if test "${with_fast_fixincludes+set}" = set; then | |
690 | withval="$with_fast_fixincludes" | |
691 | fast_fixinc="$with_fast_fixincludes" | |
692 | else | |
4b104d6e JL |
693 | fast_fixinc=no |
694 | fi | |
695 | ||
861bb6c1 JL |
696 | |
697 | # Enable threads | |
698 | # Pass with no value to take the default | |
699 | # Pass with a value to specify a thread package | |
700 | # Check whether --enable-threads or --disable-threads was given. | |
701 | if test "${enable_threads+set}" = set; then | |
702 | enableval="$enable_threads" | |
703 | if [ x$enable_threads = xno ]; then | |
704 | enable_threads='' | |
705 | fi | |
706 | else | |
707 | enable_threads='' | |
708 | fi | |
709 | ||
710 | ||
e445171e | 711 | enable_threads_flag=$enable_threads |
861bb6c1 | 712 | # Check if a valid thread package |
e445171e | 713 | case x${enable_threads_flag} in |
861bb6c1 JL |
714 | x | xno) |
715 | # No threads | |
a851212a | 716 | target_thread_file='single' |
861bb6c1 JL |
717 | ;; |
718 | xyes) | |
719 | # default | |
a851212a | 720 | target_thread_file='' |
861bb6c1 JL |
721 | ;; |
722 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 723 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 724 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
725 | ;; |
726 | *) | |
727 | echo "$enable_threads is an unknown thread package" 1>&2 | |
728 | exit 1 | |
729 | ;; | |
730 | esac | |
731 | ||
732 | # Determine the host, build, and target systems | |
733 | ac_aux_dir= | |
734 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
735 | if test -f $ac_dir/install-sh; then | |
736 | ac_aux_dir=$ac_dir | |
737 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
738 | break | |
739 | elif test -f $ac_dir/install.sh; then | |
740 | ac_aux_dir=$ac_dir | |
741 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
742 | break | |
743 | fi | |
744 | done | |
745 | if test -z "$ac_aux_dir"; then | |
746 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
747 | fi | |
748 | ac_config_guess=$ac_aux_dir/config.guess | |
749 | ac_config_sub=$ac_aux_dir/config.sub | |
750 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
751 | ||
752 | ||
753 | # Do some error checking and defaulting for the host and target type. | |
754 | # The inputs are: | |
755 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
756 | # | |
757 | # The rules are: | |
758 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
759 | # same time. | |
760 | # 2. Host defaults to nonopt. | |
761 | # 3. If nonopt is not specified, then host defaults to the current host, | |
762 | # as determined by config.guess. | |
763 | # 4. Target and build default to nonopt. | |
764 | # 5. If nonopt is not specified, then target and build default to host. | |
765 | ||
766 | # The aliases save the names the user supplied, while $host etc. | |
767 | # will get canonicalized. | |
768 | case $host---$target---$nonopt in | |
769 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
770 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
771 | esac | |
772 | ||
773 | ||
774 | # Make sure we can run config.sub. | |
4e88d51b | 775 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
776 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
777 | fi | |
778 | ||
779 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
4e88d51b | 780 | echo "configure:781: checking host system type" >&5 |
861bb6c1 JL |
781 | |
782 | host_alias=$host | |
783 | case "$host_alias" in | |
784 | NONE) | |
785 | case $nonopt in | |
786 | NONE) | |
4e88d51b | 787 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
788 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
789 | fi ;; | |
790 | *) host_alias=$nonopt ;; | |
791 | esac ;; | |
792 | esac | |
793 | ||
4e88d51b | 794 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
795 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
796 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
797 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
798 | echo "$ac_t""$host" 1>&6 | |
799 | ||
800 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
4e88d51b | 801 | echo "configure:802: checking target system type" >&5 |
861bb6c1 JL |
802 | |
803 | target_alias=$target | |
804 | case "$target_alias" in | |
805 | NONE) | |
806 | case $nonopt in | |
807 | NONE) target_alias=$host_alias ;; | |
808 | *) target_alias=$nonopt ;; | |
809 | esac ;; | |
810 | esac | |
811 | ||
4e88d51b | 812 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
813 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
814 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
815 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
816 | echo "$ac_t""$target" 1>&6 | |
817 | ||
818 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
4e88d51b | 819 | echo "configure:820: checking build system type" >&5 |
861bb6c1 JL |
820 | |
821 | build_alias=$build | |
822 | case "$build_alias" in | |
823 | NONE) | |
824 | case $nonopt in | |
825 | NONE) build_alias=$host_alias ;; | |
826 | *) build_alias=$nonopt ;; | |
827 | esac ;; | |
828 | esac | |
829 | ||
4e88d51b | 830 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
831 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
832 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
833 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
834 | echo "$ac_t""$build" 1>&6 | |
835 | ||
836 | test "$host_alias" != "$target_alias" && | |
837 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
838 | NONENONEs,x,x, && | |
839 | program_prefix=${target_alias}- | |
840 | ||
841 | ||
e9a25f70 JL |
842 | # Find the native compiler |
843 | # Extract the first word of "gcc", so it can be a program name with args. | |
844 | set dummy gcc; ac_word=$2 | |
845 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4e88d51b | 846 | echo "configure:847: checking for $ac_word" >&5 |
e9a25f70 JL |
847 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
849 | else | |
850 | if test -n "$CC"; then | |
851 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
852 | else | |
853 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
854 | for ac_dir in $PATH; do | |
855 | test -z "$ac_dir" && ac_dir=. | |
856 | if test -f $ac_dir/$ac_word; then | |
857 | ac_cv_prog_CC="gcc" | |
858 | break | |
859 | fi | |
860 | done | |
861 | IFS="$ac_save_ifs" | |
862 | fi | |
863 | fi | |
864 | CC="$ac_cv_prog_CC" | |
865 | if test -n "$CC"; then | |
866 | echo "$ac_t""$CC" 1>&6 | |
867 | else | |
868 | echo "$ac_t""no" 1>&6 | |
869 | fi | |
870 | ||
871 | if test -z "$CC"; then | |
872 | # Extract the first word of "cc", so it can be a program name with args. | |
873 | set dummy cc; ac_word=$2 | |
874 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4e88d51b | 875 | echo "configure:876: checking for $ac_word" >&5 |
e9a25f70 JL |
876 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
878 | else | |
879 | if test -n "$CC"; then | |
880 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
881 | else | |
882 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
883 | ac_prog_rejected=no | |
884 | for ac_dir in $PATH; do | |
885 | test -z "$ac_dir" && ac_dir=. | |
886 | if test -f $ac_dir/$ac_word; then | |
887 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
888 | ac_prog_rejected=yes | |
889 | continue | |
890 | fi | |
891 | ac_cv_prog_CC="cc" | |
892 | break | |
893 | fi | |
894 | done | |
895 | IFS="$ac_save_ifs" | |
896 | if test $ac_prog_rejected = yes; then | |
897 | # We found a bogon in the path, so make sure we never use it. | |
898 | set dummy $ac_cv_prog_CC | |
899 | shift | |
900 | if test $# -gt 0; then | |
901 | # We chose a different compiler from the bogus one. | |
902 | # However, it has the same basename, so the bogon will be chosen | |
903 | # first if we set CC to just the basename; use the full file name. | |
904 | shift | |
905 | set dummy "$ac_dir/$ac_word" "$@" | |
906 | shift | |
907 | ac_cv_prog_CC="$@" | |
908 | fi | |
909 | fi | |
910 | fi | |
911 | fi | |
912 | CC="$ac_cv_prog_CC" | |
913 | if test -n "$CC"; then | |
914 | echo "$ac_t""$CC" 1>&6 | |
915 | else | |
916 | echo "$ac_t""no" 1>&6 | |
917 | fi | |
918 | ||
919 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
920 | fi | |
921 | ||
922 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
4e88d51b | 923 | echo "configure:924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
924 | |
925 | ac_ext=c | |
926 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
927 | ac_cpp='$CPP $CPPFLAGS' | |
928 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
929 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
930 | cross_compiling=$ac_cv_prog_cc_cross | |
931 | ||
932 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 933 | #line 934 "configure" |
e9a25f70 JL |
934 | #include "confdefs.h" |
935 | main(){return(0);} | |
936 | EOF | |
4e88d51b | 937 | if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
e9a25f70 JL |
938 | ac_cv_prog_cc_works=yes |
939 | # If we can't run a trivial program, we are probably using a cross compiler. | |
940 | if (./conftest; exit) 2>/dev/null; then | |
941 | ac_cv_prog_cc_cross=no | |
942 | else | |
943 | ac_cv_prog_cc_cross=yes | |
944 | fi | |
945 | else | |
946 | echo "configure: failed program was:" >&5 | |
947 | cat conftest.$ac_ext >&5 | |
948 | ac_cv_prog_cc_works=no | |
949 | fi | |
950 | rm -fr conftest* | |
951 | ||
952 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
953 | if test $ac_cv_prog_cc_works = no; then | |
954 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
955 | fi | |
956 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4e88d51b | 957 | echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
958 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
959 | cross_compiling=$ac_cv_prog_cc_cross | |
960 | ||
961 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
4e88d51b | 962 | echo "configure:963: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
963 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
965 | else | |
966 | cat > conftest.c <<EOF | |
967 | #ifdef __GNUC__ | |
968 | yes; | |
969 | #endif | |
970 | EOF | |
4e88d51b | 971 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
972 | ac_cv_prog_gcc=yes |
973 | else | |
974 | ac_cv_prog_gcc=no | |
975 | fi | |
976 | fi | |
977 | ||
978 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
979 | ||
980 | if test $ac_cv_prog_gcc = yes; then | |
981 | GCC=yes | |
982 | ac_test_CFLAGS="${CFLAGS+set}" | |
983 | ac_save_CFLAGS="$CFLAGS" | |
984 | CFLAGS= | |
985 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
4e88d51b | 986 | echo "configure:987: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
987 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
989 | else | |
990 | echo 'void f(){}' > conftest.c | |
991 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
992 | ac_cv_prog_cc_g=yes | |
993 | else | |
994 | ac_cv_prog_cc_g=no | |
995 | fi | |
996 | rm -f conftest* | |
997 | ||
998 | fi | |
999 | ||
1000 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1001 | if test "$ac_test_CFLAGS" = set; then | |
1002 | CFLAGS="$ac_save_CFLAGS" | |
1003 | elif test $ac_cv_prog_cc_g = yes; then | |
1004 | CFLAGS="-g -O2" | |
1005 | else | |
1006 | CFLAGS="-O2" | |
1007 | fi | |
1008 | else | |
1009 | GCC= | |
1010 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1011 | fi | |
1012 | ||
1013 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
4e88d51b | 1014 | echo "configure:1015: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1015 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1016 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1018 | else | |
1019 | cat > conftestmake <<\EOF | |
1020 | all: | |
1021 | @echo 'ac_maketemp="${MAKE}"' | |
1022 | EOF | |
1023 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1024 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1025 | if test -n "$ac_maketemp"; then | |
1026 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1027 | else | |
1028 | eval ac_cv_prog_make_${ac_make}_set=no | |
1029 | fi | |
1030 | rm -f conftestmake | |
1031 | fi | |
1032 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1033 | echo "$ac_t""yes" 1>&6 | |
1034 | SET_MAKE= | |
1035 | else | |
1036 | echo "$ac_t""no" 1>&6 | |
1037 | SET_MAKE="MAKE=${MAKE-make}" | |
1038 | fi | |
1039 | ||
1040 | ||
861bb6c1 JL |
1041 | # Find some useful tools |
1042 | for ac_prog in mawk gawk nawk awk | |
1043 | do | |
1044 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1045 | set dummy $ac_prog; ac_word=$2 | |
1046 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4e88d51b | 1047 | echo "configure:1048: checking for $ac_word" >&5 |
861bb6c1 JL |
1048 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1050 | else | |
1051 | if test -n "$AWK"; then | |
1052 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1053 | else | |
1054 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1055 | for ac_dir in $PATH; do | |
1056 | test -z "$ac_dir" && ac_dir=. | |
1057 | if test -f $ac_dir/$ac_word; then | |
1058 | ac_cv_prog_AWK="$ac_prog" | |
1059 | break | |
1060 | fi | |
1061 | done | |
1062 | IFS="$ac_save_ifs" | |
1063 | fi | |
1064 | fi | |
1065 | AWK="$ac_cv_prog_AWK" | |
1066 | if test -n "$AWK"; then | |
1067 | echo "$ac_t""$AWK" 1>&6 | |
1068 | else | |
1069 | echo "$ac_t""no" 1>&6 | |
1070 | fi | |
1071 | ||
1072 | test -n "$AWK" && break | |
1073 | done | |
1074 | ||
1075 | # Extract the first word of "flex", so it can be a program name with args. | |
1076 | set dummy flex; ac_word=$2 | |
1077 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4e88d51b | 1078 | echo "configure:1079: checking for $ac_word" >&5 |
861bb6c1 JL |
1079 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1081 | else | |
1082 | if test -n "$LEX"; then | |
1083 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1084 | else | |
1085 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1086 | for ac_dir in $PATH; do | |
1087 | test -z "$ac_dir" && ac_dir=. | |
1088 | if test -f $ac_dir/$ac_word; then | |
1089 | ac_cv_prog_LEX="flex" | |
1090 | break | |
1091 | fi | |
1092 | done | |
1093 | IFS="$ac_save_ifs" | |
1094 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1095 | fi | |
1096 | fi | |
1097 | LEX="$ac_cv_prog_LEX" | |
1098 | if test -n "$LEX"; then | |
1099 | echo "$ac_t""$LEX" 1>&6 | |
1100 | else | |
1101 | echo "$ac_t""no" 1>&6 | |
1102 | fi | |
1103 | ||
1104 | if test -z "$LEXLIB" | |
1105 | then | |
1106 | case "$LEX" in | |
1107 | flex*) ac_lib=fl ;; | |
1108 | *) ac_lib=l ;; | |
1109 | esac | |
1110 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
4e88d51b | 1111 | echo "configure:1112: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1112 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1113 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1115 | else | |
1116 | ac_save_LIBS="$LIBS" | |
1117 | LIBS="-l$ac_lib $LIBS" | |
1118 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1119 | #line 1120 "configure" |
861bb6c1 JL |
1120 | #include "confdefs.h" |
1121 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1122 | /* We use char because int might match the return type of a gcc2 | |
1123 | builtin and then its argument prototype would still apply. */ | |
1124 | char yywrap(); | |
1125 | ||
1126 | int main() { | |
1127 | yywrap() | |
1128 | ; return 0; } | |
1129 | EOF | |
4e88d51b | 1130 | if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
861bb6c1 JL |
1131 | rm -rf conftest* |
1132 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1133 | else | |
1134 | echo "configure: failed program was:" >&5 | |
1135 | cat conftest.$ac_ext >&5 | |
1136 | rm -rf conftest* | |
1137 | eval "ac_cv_lib_$ac_lib_var=no" | |
1138 | fi | |
1139 | rm -f conftest* | |
1140 | LIBS="$ac_save_LIBS" | |
1141 | ||
1142 | fi | |
1143 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1144 | echo "$ac_t""yes" 1>&6 | |
1145 | LEXLIB="-l$ac_lib" | |
1146 | else | |
1147 | echo "$ac_t""no" 1>&6 | |
1148 | fi | |
1149 | ||
1150 | fi | |
1151 | ||
ac64120e | 1152 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
4e88d51b | 1153 | echo "configure:1154: checking whether ln works" >&5 |
ac64120e JW |
1154 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1156 | else | |
e566af04 MH |
1157 | rm -f conftestdata_t |
1158 | echo >conftestdata_f | |
1159 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
ac64120e JW |
1160 | then |
1161 | gcc_cv_prog_LN="ln" | |
1162 | else | |
e566af04 | 1163 | if ln -s conftestdata_f conftestdata_t 2>/dev/null |
ac64120e JW |
1164 | then |
1165 | gcc_cv_prog_LN="ln -s" | |
1166 | else | |
1167 | gcc_cv_prog_LN=cp | |
1168 | fi | |
1169 | fi | |
e566af04 | 1170 | rm -f conftestdata_f conftestdata_t |
ac64120e JW |
1171 | |
1172 | fi | |
1173 | LN="$gcc_cv_prog_LN" | |
1174 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1175 | echo "$ac_t""yes" 1>&6 | |
1176 | else | |
1177 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1178 | echo "$ac_t""no, using ln -s" 1>&6 | |
1179 | else | |
1180 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1181 | fi | |
1182 | fi | |
1183 | ||
861bb6c1 | 1184 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
4e88d51b | 1185 | echo "configure:1186: checking whether ln -s works" >&5 |
ac64120e | 1186 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
861bb6c1 JL |
1187 | echo $ac_n "(cached) $ac_c" 1>&6 |
1188 | else | |
e566af04 MH |
1189 | rm -f conftestdata_t |
1190 | echo >conftestdata_f | |
1191 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
861bb6c1 | 1192 | then |
ac64120e | 1193 | gcc_cv_prog_LN_S="ln -s" |
861bb6c1 | 1194 | else |
e566af04 | 1195 | if ln conftestdata_f conftestdata_t 2>/dev/null |
ac64120e JW |
1196 | then |
1197 | gcc_cv_prog_LN_S=ln | |
1198 | else | |
1199 | gcc_cv_prog_LN_S=cp | |
1200 | fi | |
861bb6c1 | 1201 | fi |
e566af04 | 1202 | rm -f conftestdata_f conftestdata_t |
ac64120e | 1203 | |
861bb6c1 | 1204 | fi |
ac64120e JW |
1205 | LN_S="$gcc_cv_prog_LN_S" |
1206 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
861bb6c1 JL |
1207 | echo "$ac_t""yes" 1>&6 |
1208 | else | |
ac64120e JW |
1209 | if test "$gcc_cv_prog_LN_S" = "ln"; then |
1210 | echo "$ac_t""no, using ln" 1>&6 | |
1211 | else | |
1212 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1213 | fi | |
861bb6c1 JL |
1214 | fi |
1215 | ||
dbf78386 | 1216 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 |
4e88d51b | 1217 | echo "configure:1218: checking for volatile" >&5 |
dbf78386 RH |
1218 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1220 | else | |
1221 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1222 | #line 1223 "configure" |
dbf78386 RH |
1223 | #include "confdefs.h" |
1224 | ||
1225 | int main() { | |
1226 | volatile int foo; | |
1227 | ; return 0; } | |
1228 | EOF | |
4e88d51b | 1229 | if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dbf78386 RH |
1230 | rm -rf conftest* |
1231 | gcc_cv_c_volatile=yes | |
1232 | else | |
1233 | echo "configure: failed program was:" >&5 | |
1234 | cat conftest.$ac_ext >&5 | |
1235 | rm -rf conftest* | |
1236 | gcc_cv_c_volatile=no | |
1237 | fi | |
1238 | rm -f conftest* | |
1239 | fi | |
1240 | ||
1241 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1242 | if test $gcc_cv_c_volatile = yes ; then | |
1243 | cat >> confdefs.h <<\EOF | |
1244 | #define HAVE_VOLATILE 1 | |
1245 | EOF | |
1246 | ||
1247 | fi | |
1248 | ||
861bb6c1 JL |
1249 | # Extract the first word of "ranlib", so it can be a program name with args. |
1250 | set dummy ranlib; ac_word=$2 | |
1251 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4e88d51b | 1252 | echo "configure:1253: checking for $ac_word" >&5 |
861bb6c1 JL |
1253 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1255 | else | |
1256 | if test -n "$RANLIB"; then | |
1257 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1258 | else | |
1259 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1260 | for ac_dir in $PATH; do | |
1261 | test -z "$ac_dir" && ac_dir=. | |
1262 | if test -f $ac_dir/$ac_word; then | |
1263 | ac_cv_prog_RANLIB="ranlib" | |
1264 | break | |
1265 | fi | |
1266 | done | |
1267 | IFS="$ac_save_ifs" | |
1268 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1269 | fi | |
1270 | fi | |
1271 | RANLIB="$ac_cv_prog_RANLIB" | |
1272 | if test -n "$RANLIB"; then | |
1273 | echo "$ac_t""$RANLIB" 1>&6 | |
1274 | else | |
1275 | echo "$ac_t""no" 1>&6 | |
1276 | fi | |
1277 | ||
1278 | for ac_prog in 'bison -y' byacc | |
1279 | do | |
1280 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1281 | set dummy $ac_prog; ac_word=$2 | |
1282 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4e88d51b | 1283 | echo "configure:1284: checking for $ac_word" >&5 |
861bb6c1 JL |
1284 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1286 | else | |
1287 | if test -n "$YACC"; then | |
1288 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1289 | else | |
1290 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1291 | for ac_dir in $PATH; do | |
1292 | test -z "$ac_dir" && ac_dir=. | |
1293 | if test -f $ac_dir/$ac_word; then | |
1294 | ac_cv_prog_YACC="$ac_prog" | |
1295 | break | |
1296 | fi | |
1297 | done | |
1298 | IFS="$ac_save_ifs" | |
1299 | fi | |
1300 | fi | |
1301 | YACC="$ac_cv_prog_YACC" | |
1302 | if test -n "$YACC"; then | |
1303 | echo "$ac_t""$YACC" 1>&6 | |
1304 | else | |
1305 | echo "$ac_t""no" 1>&6 | |
1306 | fi | |
1307 | ||
1308 | test -n "$YACC" && break | |
1309 | done | |
1310 | test -n "$YACC" || YACC="yacc" | |
1311 | ||
1312 | # Find a good install program. We prefer a C program (faster), | |
1313 | # so one script is as good as another. But avoid the broken or | |
1314 | # incompatible versions: | |
1315 | # SysV /etc/install, /usr/sbin/install | |
1316 | # SunOS /usr/etc/install | |
1317 | # IRIX /sbin/install | |
1318 | # AIX /bin/install | |
1319 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1320 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1321 | # ./install, which can be erroneously created by make from ./install.sh. | |
1322 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
4e88d51b | 1323 | echo "configure:1324: checking for a BSD compatible install" >&5 |
861bb6c1 JL |
1324 | if test -z "$INSTALL"; then |
1325 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1327 | else | |
1328 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1329 | for ac_dir in $PATH; do | |
1330 | # Account for people who put trailing slashes in PATH elements. | |
1331 | case "$ac_dir/" in | |
1332 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1333 | *) | |
1334 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
76143254 | 1335 | for ac_prog in ginstall scoinst install; do |
861bb6c1 JL |
1336 | if test -f $ac_dir/$ac_prog; then |
1337 | if test $ac_prog = install && | |
1338 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1339 | # AIX install. It has an incompatible calling convention. | |
1340 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1341 | : | |
1342 | else | |
1343 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1344 | break 2 | |
1345 | fi | |
1346 | fi | |
1347 | done | |
1348 | ;; | |
1349 | esac | |
1350 | done | |
1351 | IFS="$ac_save_IFS" | |
1352 | ||
1353 | fi | |
1354 | if test "${ac_cv_path_install+set}" = set; then | |
1355 | INSTALL="$ac_cv_path_install" | |
1356 | else | |
1357 | # As a last resort, use the slow shell script. We don't cache a | |
1358 | # path for INSTALL within a source directory, because that will | |
1359 | # break other packages using the cache if that directory is | |
1360 | # removed, or if the path is relative. | |
1361 | INSTALL="$ac_install_sh" | |
1362 | fi | |
1363 | fi | |
1364 | echo "$ac_t""$INSTALL" 1>&6 | |
1365 | ||
1366 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1367 | # It thinks the first close brace ends the variable substitution. | |
1368 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1369 | ||
1370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1371 | ||
1372 | ||
861bb6c1 | 1373 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
4e88d51b | 1374 | echo "configure:1375: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1375 | # On Suns, sometimes $CPP names a directory. |
1376 | if test -n "$CPP" && test -d "$CPP"; then | |
1377 | CPP= | |
1378 | fi | |
1379 | if test -z "$CPP"; then | |
1380 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1382 | else | |
1383 | # This must be in double quotes, not single quotes, because CPP may get | |
1384 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1385 | CPP="${CC-cc} -E" | |
1386 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1387 | # not just through cpp. | |
1388 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1389 | #line 1390 "configure" |
861bb6c1 JL |
1390 | #include "confdefs.h" |
1391 | #include <assert.h> | |
1392 | Syntax Error | |
1393 | EOF | |
1394 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4e88d51b | 1395 | { (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861bb6c1 JL |
1396 | ac_err=`grep -v '^ *+' conftest.out` |
1397 | if test -z "$ac_err"; then | |
1398 | : | |
1399 | else | |
1400 | echo "$ac_err" >&5 | |
1401 | echo "configure: failed program was:" >&5 | |
1402 | cat conftest.$ac_ext >&5 | |
1403 | rm -rf conftest* | |
1404 | CPP="${CC-cc} -E -traditional-cpp" | |
1405 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1406 | #line 1407 "configure" |
861bb6c1 JL |
1407 | #include "confdefs.h" |
1408 | #include <assert.h> | |
1409 | Syntax Error | |
1410 | EOF | |
1411 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4e88d51b | 1412 | { (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861bb6c1 JL |
1413 | ac_err=`grep -v '^ *+' conftest.out` |
1414 | if test -z "$ac_err"; then | |
1415 | : | |
1416 | else | |
1417 | echo "$ac_err" >&5 | |
1418 | echo "configure: failed program was:" >&5 | |
1419 | cat conftest.$ac_ext >&5 | |
1420 | rm -rf conftest* | |
1421 | CPP=/lib/cpp | |
1422 | fi | |
1423 | rm -f conftest* | |
1424 | fi | |
1425 | rm -f conftest* | |
1426 | ac_cv_prog_CPP="$CPP" | |
1427 | fi | |
1428 | CPP="$ac_cv_prog_CPP" | |
1429 | else | |
1430 | ac_cv_prog_CPP="$CPP" | |
1431 | fi | |
1432 | echo "$ac_t""$CPP" 1>&6 | |
1433 | ||
956d6950 | 1434 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
4e88d51b | 1435 | echo "configure:1436: checking for ANSI C header files" >&5 |
956d6950 JL |
1436 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1438 | else | |
1439 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1440 | #line 1441 "configure" |
956d6950 JL |
1441 | #include "confdefs.h" |
1442 | #include <stdlib.h> | |
1443 | #include <stdarg.h> | |
1444 | #include <string.h> | |
1445 | #include <float.h> | |
1446 | EOF | |
1447 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4e88d51b | 1448 | { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956d6950 JL |
1449 | ac_err=`grep -v '^ *+' conftest.out` |
1450 | if test -z "$ac_err"; then | |
1451 | rm -rf conftest* | |
1452 | ac_cv_header_stdc=yes | |
1453 | else | |
1454 | echo "$ac_err" >&5 | |
1455 | echo "configure: failed program was:" >&5 | |
1456 | cat conftest.$ac_ext >&5 | |
1457 | rm -rf conftest* | |
1458 | ac_cv_header_stdc=no | |
1459 | fi | |
1460 | rm -f conftest* | |
1461 | ||
1462 | if test $ac_cv_header_stdc = yes; then | |
1463 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1464 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1465 | #line 1466 "configure" |
956d6950 JL |
1466 | #include "confdefs.h" |
1467 | #include <string.h> | |
1468 | EOF | |
1469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1470 | egrep "memchr" >/dev/null 2>&1; then | |
1471 | : | |
1472 | else | |
1473 | rm -rf conftest* | |
1474 | ac_cv_header_stdc=no | |
1475 | fi | |
1476 | rm -f conftest* | |
1477 | ||
1478 | fi | |
1479 | ||
1480 | if test $ac_cv_header_stdc = yes; then | |
1481 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1482 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1483 | #line 1484 "configure" |
956d6950 JL |
1484 | #include "confdefs.h" |
1485 | #include <stdlib.h> | |
1486 | EOF | |
1487 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1488 | egrep "free" >/dev/null 2>&1; then | |
1489 | : | |
1490 | else | |
1491 | rm -rf conftest* | |
1492 | ac_cv_header_stdc=no | |
1493 | fi | |
1494 | rm -f conftest* | |
1495 | ||
1496 | fi | |
1497 | ||
1498 | if test $ac_cv_header_stdc = yes; then | |
1499 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1500 | if test "$cross_compiling" = yes; then | |
1501 | : | |
1502 | else | |
1503 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1504 | #line 1505 "configure" |
956d6950 JL |
1505 | #include "confdefs.h" |
1506 | #include <ctype.h> | |
1507 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1508 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1509 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1510 | int main () { int i; for (i = 0; i < 256; i++) | |
1511 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1512 | exit (0); } | |
1513 | ||
1514 | EOF | |
4e88d51b | 1515 | if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1516 | then |
1517 | : | |
1518 | else | |
1519 | echo "configure: failed program was:" >&5 | |
1520 | cat conftest.$ac_ext >&5 | |
1521 | rm -fr conftest* | |
1522 | ac_cv_header_stdc=no | |
1523 | fi | |
1524 | rm -fr conftest* | |
1525 | fi | |
1526 | ||
1527 | fi | |
1528 | fi | |
1529 | ||
1530 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1531 | if test $ac_cv_header_stdc = yes; then | |
1532 | cat >> confdefs.h <<\EOF | |
1533 | #define STDC_HEADERS 1 | |
1534 | EOF | |
1535 | ||
1536 | fi | |
1537 | ||
1538 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
4e88d51b | 1539 | echo "configure:1540: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1540 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1542 | else | |
1543 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1544 | #line 1545 "configure" |
956d6950 JL |
1545 | #include "confdefs.h" |
1546 | #include <sys/types.h> | |
1547 | #include <sys/time.h> | |
1548 | #include <time.h> | |
1549 | int main() { | |
1550 | struct tm *tp; | |
1551 | ; return 0; } | |
1552 | EOF | |
4e88d51b | 1553 | if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1554 | rm -rf conftest* |
1555 | ac_cv_header_time=yes | |
1556 | else | |
1557 | echo "configure: failed program was:" >&5 | |
1558 | cat conftest.$ac_ext >&5 | |
1559 | rm -rf conftest* | |
1560 | ac_cv_header_time=no | |
1561 | fi | |
1562 | rm -f conftest* | |
1563 | fi | |
1564 | ||
1565 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1566 | if test $ac_cv_header_time = yes; then | |
1567 | cat >> confdefs.h <<\EOF | |
1568 | #define TIME_WITH_SYS_TIME 1 | |
1569 | EOF | |
1570 | ||
1571 | fi | |
1572 | ||
76b4b31e | 1573 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h |
861bb6c1 JL |
1574 | do |
1575 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1576 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4e88d51b | 1577 | echo "configure:1578: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1578 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1580 | else | |
1581 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1582 | #line 1583 "configure" |
861bb6c1 JL |
1583 | #include "confdefs.h" |
1584 | #include <$ac_hdr> | |
1585 | EOF | |
956d6950 | 1586 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4e88d51b | 1587 | { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956d6950 JL |
1588 | ac_err=`grep -v '^ *+' conftest.out` |
1589 | if test -z "$ac_err"; then | |
1590 | rm -rf conftest* | |
1591 | eval "ac_cv_header_$ac_safe=yes" | |
1592 | else | |
1593 | echo "$ac_err" >&5 | |
1594 | echo "configure: failed program was:" >&5 | |
1595 | cat conftest.$ac_ext >&5 | |
1596 | rm -rf conftest* | |
1597 | eval "ac_cv_header_$ac_safe=no" | |
1598 | fi | |
1599 | rm -f conftest* | |
1600 | fi | |
1601 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1602 | echo "$ac_t""yes" 1>&6 | |
1603 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1604 | cat >> confdefs.h <<EOF | |
1605 | #define $ac_tr_hdr 1 | |
1606 | EOF | |
1607 | ||
1608 | else | |
1609 | echo "$ac_t""no" 1>&6 | |
1610 | fi | |
1611 | done | |
1612 | ||
1613 | ||
f24af81b TT |
1614 | # Check for thread headers. |
1615 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1616 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
4e88d51b | 1617 | echo "configure:1618: checking for thread.h" >&5 |
f24af81b TT |
1618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1620 | else | |
1621 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1622 | #line 1623 "configure" |
f24af81b TT |
1623 | #include "confdefs.h" |
1624 | #include <thread.h> | |
1625 | EOF | |
1626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4e88d51b | 1627 | { (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f24af81b TT |
1628 | ac_err=`grep -v '^ *+' conftest.out` |
1629 | if test -z "$ac_err"; then | |
1630 | rm -rf conftest* | |
1631 | eval "ac_cv_header_$ac_safe=yes" | |
1632 | else | |
1633 | echo "$ac_err" >&5 | |
1634 | echo "configure: failed program was:" >&5 | |
1635 | cat conftest.$ac_ext >&5 | |
1636 | rm -rf conftest* | |
1637 | eval "ac_cv_header_$ac_safe=no" | |
1638 | fi | |
1639 | rm -f conftest* | |
1640 | fi | |
1641 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1642 | echo "$ac_t""yes" 1>&6 | |
1643 | have_thread_h=yes | |
1644 | else | |
1645 | echo "$ac_t""no" 1>&6 | |
1646 | have_thread_h= | |
1647 | fi | |
1648 | ||
1649 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
1650 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
4e88d51b | 1651 | echo "configure:1652: checking for pthread.h" >&5 |
f24af81b TT |
1652 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1654 | else | |
1655 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1656 | #line 1657 "configure" |
f24af81b TT |
1657 | #include "confdefs.h" |
1658 | #include <pthread.h> | |
1659 | EOF | |
1660 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4e88d51b | 1661 | { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f24af81b TT |
1662 | ac_err=`grep -v '^ *+' conftest.out` |
1663 | if test -z "$ac_err"; then | |
1664 | rm -rf conftest* | |
1665 | eval "ac_cv_header_$ac_safe=yes" | |
1666 | else | |
1667 | echo "$ac_err" >&5 | |
1668 | echo "configure: failed program was:" >&5 | |
1669 | cat conftest.$ac_ext >&5 | |
1670 | rm -rf conftest* | |
1671 | eval "ac_cv_header_$ac_safe=no" | |
1672 | fi | |
1673 | rm -f conftest* | |
1674 | fi | |
1675 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1676 | echo "$ac_t""yes" 1>&6 | |
1677 | have_pthread_h=yes | |
1678 | else | |
1679 | echo "$ac_t""no" 1>&6 | |
1680 | have_pthread_h= | |
1681 | fi | |
1682 | ||
1683 | ||
76844337 RH |
1684 | # See if the system preprocessor understands the ANSI C preprocessor |
1685 | # stringification operator. | |
1686 | echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 | |
4e88d51b | 1687 | echo "configure:1688: checking whether cpp understands the stringify operator" >&5 |
76844337 RH |
1688 | if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then |
1689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1690 | else | |
1691 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1692 | #line 1693 "configure" |
76844337 RH |
1693 | #include "confdefs.h" |
1694 | ||
1695 | int main() { | |
1696 | #define S(x) #x | |
1697 | char *test = S(foo); | |
1698 | ; return 0; } | |
1699 | EOF | |
4e88d51b | 1700 | if { (eval echo configure:1701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
76844337 RH |
1701 | rm -rf conftest* |
1702 | gcc_cv_c_have_stringify=yes | |
1703 | else | |
1704 | echo "configure: failed program was:" >&5 | |
1705 | cat conftest.$ac_ext >&5 | |
1706 | rm -rf conftest* | |
1707 | gcc_cv_c_have_stringify=no | |
1708 | fi | |
1709 | rm -f conftest* | |
1710 | fi | |
1711 | ||
1712 | echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 | |
1713 | if test $gcc_cv_c_have_stringify = yes; then | |
1714 | cat >> confdefs.h <<\EOF | |
1715 | #define HAVE_CPP_STRINGIFY 1 | |
1716 | EOF | |
1717 | ||
1718 | fi | |
1719 | ||
956d6950 JL |
1720 | # Use <inttypes.h> only if it exists, |
1721 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
1722 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
4e88d51b | 1723 | echo "configure:1724: checking for inttypes.h" >&5 |
956d6950 JL |
1724 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
1725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1726 | else | |
1727 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1728 | #line 1729 "configure" |
956d6950 JL |
1729 | #include "confdefs.h" |
1730 | #include <sys/types.h> | |
1731 | #include <inttypes.h> | |
1732 | int main() { | |
1733 | intmax_t i = -1; | |
1734 | ; return 0; } | |
1735 | EOF | |
4e88d51b | 1736 | if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1737 | rm -rf conftest* |
1738 | cat >> confdefs.h <<EOF | |
1739 | #define HAVE_INTTYPES_H 1 | |
1740 | EOF | |
1741 | ||
1742 | gcc_cv_header_inttypes_h=yes | |
1743 | else | |
1744 | echo "configure: failed program was:" >&5 | |
1745 | cat conftest.$ac_ext >&5 | |
1746 | rm -rf conftest* | |
1747 | gcc_cv_header_inttypes_h=no | |
1748 | fi | |
1749 | rm -f conftest* | |
1750 | fi | |
1751 | ||
1752 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
1753 | ||
76b4b31e | 1754 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 1755 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
d3ee8d68 | 1756 | sysconf isascii gettimeofday |
956d6950 JL |
1757 | do |
1758 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4e88d51b | 1759 | echo "configure:1760: checking for $ac_func" >&5 |
956d6950 JL |
1760 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1762 | else | |
1763 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1764 | #line 1765 "configure" |
956d6950 JL |
1765 | #include "confdefs.h" |
1766 | /* System header to define __stub macros and hopefully few prototypes, | |
1767 | which can conflict with char $ac_func(); below. */ | |
1768 | #include <assert.h> | |
1769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1770 | /* We use char because int might match the return type of a gcc2 | |
1771 | builtin and then its argument prototype would still apply. */ | |
1772 | char $ac_func(); | |
1773 | ||
1774 | int main() { | |
1775 | ||
1776 | /* The GNU C library defines this for functions which it implements | |
1777 | to always fail with ENOSYS. Some functions are actually named | |
1778 | something starting with __ and the normal name is an alias. */ | |
1779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1780 | choke me | |
1781 | #else | |
1782 | $ac_func(); | |
1783 | #endif | |
1784 | ||
1785 | ; return 0; } | |
1786 | EOF | |
4e88d51b | 1787 | if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
1788 | rm -rf conftest* |
1789 | eval "ac_cv_func_$ac_func=yes" | |
1790 | else | |
1791 | echo "configure: failed program was:" >&5 | |
1792 | cat conftest.$ac_ext >&5 | |
1793 | rm -rf conftest* | |
1794 | eval "ac_cv_func_$ac_func=no" | |
1795 | fi | |
1796 | rm -f conftest* | |
1797 | fi | |
1798 | ||
1799 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1800 | echo "$ac_t""yes" 1>&6 | |
1801 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1802 | cat >> confdefs.h <<EOF | |
1803 | #define $ac_tr_func 1 | |
1804 | EOF | |
1805 | ||
1806 | else | |
1807 | echo "$ac_t""no" 1>&6 | |
1808 | fi | |
1809 | done | |
1810 | ||
6885fc87 | 1811 | |
0b9d02c6 JL |
1812 | # Make sure wchar_t is available |
1813 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
1814 | ||
76b4b31e | 1815 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
4e88d51b | 1816 | echo "configure:1817: checking for vprintf" >&5 |
76b4b31e KG |
1817 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
1818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1819 | else | |
1820 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1821 | #line 1822 "configure" |
76b4b31e KG |
1822 | #include "confdefs.h" |
1823 | /* System header to define __stub macros and hopefully few prototypes, | |
1824 | which can conflict with char vprintf(); below. */ | |
1825 | #include <assert.h> | |
1826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1827 | /* We use char because int might match the return type of a gcc2 | |
1828 | builtin and then its argument prototype would still apply. */ | |
1829 | char vprintf(); | |
1830 | ||
1831 | int main() { | |
1832 | ||
1833 | /* The GNU C library defines this for functions which it implements | |
1834 | to always fail with ENOSYS. Some functions are actually named | |
1835 | something starting with __ and the normal name is an alias. */ | |
1836 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
1837 | choke me | |
1838 | #else | |
1839 | vprintf(); | |
1840 | #endif | |
1841 | ||
1842 | ; return 0; } | |
1843 | EOF | |
4e88d51b | 1844 | if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
76b4b31e KG |
1845 | rm -rf conftest* |
1846 | eval "ac_cv_func_vprintf=yes" | |
1847 | else | |
1848 | echo "configure: failed program was:" >&5 | |
1849 | cat conftest.$ac_ext >&5 | |
1850 | rm -rf conftest* | |
1851 | eval "ac_cv_func_vprintf=no" | |
1852 | fi | |
1853 | rm -f conftest* | |
1854 | fi | |
1855 | ||
1856 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
1857 | echo "$ac_t""yes" 1>&6 | |
1858 | cat >> confdefs.h <<\EOF | |
1859 | #define HAVE_VPRINTF 1 | |
1860 | EOF | |
1861 | ||
1862 | else | |
1863 | echo "$ac_t""no" 1>&6 | |
1864 | fi | |
1865 | ||
1866 | if test "$ac_cv_func_vprintf" != yes; then | |
1867 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
4e88d51b | 1868 | echo "configure:1869: checking for _doprnt" >&5 |
76b4b31e KG |
1869 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1871 | else | |
1872 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1873 | #line 1874 "configure" |
76b4b31e KG |
1874 | #include "confdefs.h" |
1875 | /* System header to define __stub macros and hopefully few prototypes, | |
1876 | which can conflict with char _doprnt(); below. */ | |
1877 | #include <assert.h> | |
1878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1879 | /* We use char because int might match the return type of a gcc2 | |
1880 | builtin and then its argument prototype would still apply. */ | |
1881 | char _doprnt(); | |
1882 | ||
1883 | int main() { | |
1884 | ||
1885 | /* The GNU C library defines this for functions which it implements | |
1886 | to always fail with ENOSYS. Some functions are actually named | |
1887 | something starting with __ and the normal name is an alias. */ | |
1888 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
1889 | choke me | |
1890 | #else | |
1891 | _doprnt(); | |
1892 | #endif | |
1893 | ||
1894 | ; return 0; } | |
1895 | EOF | |
4e88d51b | 1896 | if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
76b4b31e KG |
1897 | rm -rf conftest* |
1898 | eval "ac_cv_func__doprnt=yes" | |
1899 | else | |
1900 | echo "configure: failed program was:" >&5 | |
1901 | cat conftest.$ac_ext >&5 | |
1902 | rm -rf conftest* | |
1903 | eval "ac_cv_func__doprnt=no" | |
1904 | fi | |
1905 | rm -f conftest* | |
1906 | fi | |
1907 | ||
1908 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
1909 | echo "$ac_t""yes" 1>&6 | |
1910 | cat >> confdefs.h <<\EOF | |
1911 | #define HAVE_DOPRNT 1 | |
1912 | EOF | |
1913 | ||
1914 | else | |
1915 | echo "$ac_t""no" 1>&6 | |
1916 | fi | |
1917 | ||
1918 | fi | |
1919 | ||
1920 | vfprintf= | |
1921 | doprint= | |
1922 | if test $ac_cv_func_vprintf != yes ; then | |
1923 | vfprintf=vfprintf.o | |
1924 | if test $ac_cv_func__doprnt != yes ; then | |
1925 | doprint=doprint.o | |
1926 | fi | |
1927 | fi | |
1928 | ||
1929 | ||
1930 | ||
f1b54f9b | 1931 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 |
4e88d51b | 1932 | echo "configure:1933: checking whether the printf functions support %p" >&5 |
f1b54f9b KG |
1933 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
1934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1935 | else | |
1936 | if test "$cross_compiling" = yes; then | |
1937 | gcc_cv_func_printf_ptr=no | |
1938 | else | |
1939 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1940 | #line 1941 "configure" |
f1b54f9b KG |
1941 | #include "confdefs.h" |
1942 | #include <stdio.h> | |
1943 | ||
1944 | main() | |
1945 | { | |
1946 | char buf[64]; | |
1947 | char *p = buf, *q = NULL; | |
1948 | sprintf(buf, "%p", p); | |
1949 | sscanf(buf, "%p", &q); | |
1950 | exit (p != q); | |
1951 | } | |
1952 | EOF | |
4e88d51b | 1953 | if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
f1b54f9b KG |
1954 | then |
1955 | gcc_cv_func_printf_ptr=yes | |
1956 | else | |
1957 | echo "configure: failed program was:" >&5 | |
1958 | cat conftest.$ac_ext >&5 | |
1959 | rm -fr conftest* | |
1960 | gcc_cv_func_printf_ptr=no | |
1961 | fi | |
1962 | rm -fr conftest* | |
1963 | fi | |
1964 | ||
1965 | rm -f core core.* *.core | |
1966 | fi | |
1967 | ||
1968 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
1969 | if test $gcc_cv_func_printf_ptr = yes ; then | |
1970 | cat >> confdefs.h <<\EOF | |
092f7be3 | 1971 | #define HAVE_PRINTF_PTR 1 |
f1b54f9b KG |
1972 | EOF |
1973 | ||
1974 | fi | |
1975 | ||
1976 | ||
1977 | for ac_func in malloc realloc calloc free bcopy bzero bcmp \ | |
6cd5dccd | 1978 | index rindex getenv atol sbrk abort atof strerror getcwd getwd |
f1b54f9b KG |
1979 | do |
1980 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
4e88d51b | 1981 | echo "configure:1982: checking whether $ac_func must be declared" >&5 |
f1b54f9b KG |
1982 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
1983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1984 | else | |
1985 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 1986 | #line 1987 "configure" |
f1b54f9b KG |
1987 | #include "confdefs.h" |
1988 | ||
1989 | #include <stdio.h> | |
1990 | #ifdef HAVE_STRING_H | |
1991 | #include <string.h> | |
1992 | #else | |
1993 | #ifdef HAVE_STRINGS_H | |
1994 | #include <strings.h> | |
1995 | #endif | |
1996 | #endif | |
1997 | #ifdef HAVE_STDLIB_H | |
1998 | #include <stdlib.h> | |
1999 | #endif | |
2000 | #ifdef HAVE_UNISTD_H | |
2001 | #include <unistd.h> | |
2002 | #endif | |
2003 | #ifndef HAVE_RINDEX | |
2004 | #define rindex strrchr | |
2005 | #endif | |
2006 | #ifndef HAVE_INDEX | |
2007 | #define index strchr | |
2008 | #endif | |
d2cabf16 KG |
2009 | |
2010 | int main() { | |
2011 | char *(*pfn) = (char *(*)) $ac_func | |
2012 | ; return 0; } | |
2013 | EOF | |
4e88d51b | 2014 | if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d2cabf16 KG |
2015 | rm -rf conftest* |
2016 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2017 | else | |
2018 | echo "configure: failed program was:" >&5 | |
2019 | cat conftest.$ac_ext >&5 | |
2020 | rm -rf conftest* | |
2021 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2022 | fi | |
2023 | rm -f conftest* | |
2024 | fi | |
2025 | ||
2026 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2027 | echo "$ac_t""yes" 1>&6 | |
2028 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2029 | cat >> confdefs.h <<EOF | |
2030 | #define $gcc_tr_decl 1 | |
2031 | EOF | |
2032 | ||
2033 | else | |
2034 | echo "$ac_t""no" 1>&6 | |
2035 | fi | |
2036 | ||
2037 | done | |
2038 | ||
2039 | ||
2040 | for ac_func in getrlimit setrlimit | |
2041 | do | |
2042 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
4e88d51b | 2043 | echo "configure:2044: checking whether $ac_func must be declared" >&5 |
d2cabf16 KG |
2044 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2046 | else | |
2047 | cat > conftest.$ac_ext <<EOF | |
4e88d51b | 2048 | #line 2049 "configure" |
d2cabf16 KG |
2049 | #include "confdefs.h" |
2050 | ||
2051 | #include <stdio.h> | |
2052 | #ifdef HAVE_STRING_H | |
2053 | #include <string.h> | |
2054 | #else | |
2055 | #ifdef HAVE_STRINGS_H | |
2056 | #include <strings.h> | |
2057 | #endif | |
2058 | #endif | |
2059 | #ifdef HAVE_STDLIB_H | |
2060 | #include <stdlib.h> | |
2061 | #endif | |
2062 | #ifdef HAVE_UNISTD_H | |
2063 | #include <unistd.h> | |
2064 | #endif | |
2065 | #ifndef HAVE_RINDEX | |
2066 | #define rindex strrchr | |
2067 | #endif | |
2068 | #ifndef HAVE_INDEX | |
2069 | #define index strchr | |
2070 | #endif | |
2071 | #include <sys/types.h> | |
2072 | #ifdef HAVE_SYS_RESOURCE_H | |
2073 | #include <sys/resource.h> | |
2074 | #endif | |
2075 | ||
f1b54f9b KG |
2076 | int main() { |
2077 | char *(*pfn) = (char *(*)) $ac_func | |
2078 | ; return 0; } | |
2079 | EOF | |
4e88d51b | 2080 | if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f1b54f9b KG |
2081 | rm -rf conftest* |
2082 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2083 | else | |
2084 | echo "configure: failed program was:" >&5 | |
2085 | cat conftest.$ac_ext >&5 | |
2086 | rm -rf conftest* | |
2087 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2088 | fi | |
2089 | rm -f conftest* | |
2090 | fi | |
2091 | ||
2092 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2093 | echo "$ac_t""yes" 1>&6 | |
2094 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2095 | cat >> confdefs.h <<EOF | |
2096 | #define $gcc_tr_decl 1 | |
2097 | EOF | |
2098 | ||
2099 | else | |
2100 | echo "$ac_t""no" 1>&6 | |
2101 | fi | |
2102 | ||
2103 | done | |
2104 | ||
956d6950 JL |
2105 | |
2106 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
4e88d51b | 2107 | echo "configure:2108: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2108 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2110 | else |
956d6950 | 2111 | cat > conftest.$ac_ext <<EOF |
4e88d51b | 2112 | #line 2113 "configure" |
956d6950 JL |
2113 | #include "confdefs.h" |
2114 | #include <sys/types.h> | |
2115 | #include <signal.h> | |
2116 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2117 | #ifdef HAVE_UNISTD_H | |
2118 | #include <unistd.h> | |
2119 | #endif | |
2120 | int main() { | |
2121 | char *msg = *(sys_siglist + 1); | |
2122 | ; return 0; } | |
2123 | EOF | |
4e88d51b | 2124 | if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2125 | rm -rf conftest* |
2126 | ac_cv_decl_sys_siglist=yes | |
2127 | else | |
2128 | echo "configure: failed program was:" >&5 | |
2129 | cat conftest.$ac_ext >&5 | |
2130 | rm -rf conftest* | |
2131 | ac_cv_decl_sys_siglist=no | |
2132 | fi | |
2133 | rm -f conftest* | |
2134 | fi | |
2135 | ||
2136 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2137 | if test $ac_cv_decl_sys_siglist = yes; then | |
2138 | cat >> confdefs.h <<\EOF | |
2139 | #define SYS_SIGLIST_DECLARED 1 | |
2140 | EOF | |
2141 | ||
a63d08e6 | 2142 | fi |
a63d08e6 JL |
2143 | |
2144 | ||
861bb6c1 JL |
2145 | # File extensions |
2146 | manext='.1' | |
2147 | objext='.o' | |
2148 | ||
2149 | ||
2150 | ||
2151 | build_xm_file= | |
f6cb0e63 | 2152 | build_xm_defines= |
861bb6c1 JL |
2153 | build_install_headers_dir=install-headers-tar |
2154 | build_exeext= | |
2155 | host_xm_file= | |
f6cb0e63 | 2156 | host_xm_defines= |
861bb6c1 JL |
2157 | host_xmake_file= |
2158 | host_truncate_target= | |
6e26218f | 2159 | host_exeext= |
861bb6c1 JL |
2160 | |
2161 | # Decode the host machine, then the target machine. | |
2162 | # For the host machine, we save the xm_file variable as host_xm_file; | |
2163 | # then we decode the target machine and forget everything else | |
2164 | # that came from the host machine. | |
2165 | for machine in $build $host $target; do | |
2166 | ||
2167 | out_file= | |
2168 | xmake_file= | |
2169 | tmake_file= | |
2170 | extra_headers= | |
2171 | extra_passes= | |
2172 | extra_parts= | |
2173 | extra_programs= | |
2174 | extra_objs= | |
2175 | extra_host_objs= | |
2176 | extra_gcc_objs= | |
f6cb0e63 | 2177 | xm_defines= |
861bb6c1 JL |
2178 | float_format= |
2179 | # Set this to force installation and use of collect2. | |
2180 | use_collect2= | |
2181 | # Set this to override the default target model. | |
2182 | target_cpu_default= | |
861bb6c1 | 2183 | # Set this to control which fixincludes program to use. |
34a4c466 | 2184 | if [ x$fast_fixinc != xyes ] ; then |
4b104d6e JL |
2185 | fixincludes=fixincludes |
2186 | else fixincludes=fixinc.sh ; fi | |
861bb6c1 JL |
2187 | # Set this to control how the header file directory is installed. |
2188 | install_headers_dir=install-headers-tar | |
2189 | # Set this to a non-empty list of args to pass to cpp if the target | |
2190 | # wants its .md file passed through cpp. | |
2191 | md_cppflags= | |
2192 | # Set this if directory names should be truncated to 14 characters. | |
2193 | truncate_target= | |
2194 | # Set this if gdb needs a dir command with `dirname $out_file` | |
2195 | gdb_needs_out_file_path= | |
2196 | # Set this if the build machine requires executables to have a | |
2197 | # file name suffix. | |
2198 | exeext= | |
a851212a JW |
2199 | # Set this to control which thread package will be used. |
2200 | thread_file= | |
df6faf79 JW |
2201 | # Reinitialize these from the flag values every loop pass, since some |
2202 | # configure entries modify them. | |
2203 | gas="$gas_flag" | |
2204 | gnu_ld="$gnu_ld_flag" | |
e445171e | 2205 | enable_threads=$enable_threads_flag |
861bb6c1 JL |
2206 | |
2207 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
2208 | # each machine entry. | |
2209 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
2210 | case $machine in | |
2211 | alpha*-*-*) | |
2212 | cpu_type=alpha | |
2213 | ;; | |
2214 | arm*-*-*) | |
2215 | cpu_type=arm | |
2216 | ;; | |
2217 | c*-convex-*) | |
2218 | cpu_type=convex | |
2219 | ;; | |
f6cb0e63 | 2220 | i[34567]86-*-*) |
861bb6c1 JL |
2221 | cpu_type=i386 |
2222 | ;; | |
2223 | hppa*-*-*) | |
2224 | cpu_type=pa | |
2225 | ;; | |
2226 | m68000-*-*) | |
2227 | cpu_type=m68k | |
2228 | ;; | |
2229 | mips*-*-*) | |
2230 | cpu_type=mips | |
2231 | ;; | |
2232 | powerpc*-*-*) | |
2233 | cpu_type=rs6000 | |
2234 | ;; | |
2235 | pyramid-*-*) | |
2236 | cpu_type=pyr | |
2237 | ;; | |
2238 | sparc*-*-*) | |
2239 | cpu_type=sparc | |
2240 | ;; | |
2241 | esac | |
2242 | ||
2243 | tm_file=${cpu_type}/${cpu_type}.h | |
2244 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
2245 | ||
f6cb0e63 JL |
2246 | # Set the default macros to define for GNU/Linux systems. |
2247 | case $machine in | |
2248 | *-*-linux-gnu*) | |
c7391272 | 2249 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 JL |
2250 | ;; |
2251 | esac | |
2252 | ||
861bb6c1 JL |
2253 | case $machine in |
2254 | # Support site-specific machine types. | |
2255 | *local*) | |
2256 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
2257 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
2258 | xm_file=${cpu_type}/xm-$rest.h | |
2259 | tm_file=${cpu_type}/$rest.h | |
2260 | if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \ | |
2261 | then xmake_file=${cpu_type}/x-$rest; \ | |
2262 | else true; \ | |
2263 | fi | |
2264 | if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \ | |
2265 | then tmake_file=${cpu_type}/t-$rest; \ | |
2266 | else true; \ | |
2267 | fi | |
2268 | ;; | |
2269 | 1750a-*-*) | |
2270 | ;; | |
2271 | a29k-*-bsd* | a29k-*-sym1*) | |
2272 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 2273 | xm_defines=USG |
861bb6c1 JL |
2274 | xmake_file=a29k/x-unix |
2275 | use_collect2=yes | |
2276 | ;; | |
2277 | a29k-*-udi | a29k-*-coff) | |
2278 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
2279 | tmake_file=a29k/t-a29kbare | |
2280 | ;; | |
7cc34889 | 2281 | a29k-wrs-vxworks*) |
861bb6c1 JL |
2282 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
2283 | tmake_file=a29k/t-vx29k | |
2284 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 2285 | thread_file='vxworks' |
861bb6c1 JL |
2286 | ;; |
2287 | a29k-*-*) # Default a29k environment. | |
2288 | use_collect2=yes | |
2289 | ;; | |
2290 | alpha*-*-linux-gnuecoff*) | |
8983c716 | 2291 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 2292 | target_cpu_default="MASK_GAS" |
861bb6c1 JL |
2293 | gas=no |
2294 | xmake_file=none | |
861bb6c1 JL |
2295 | gas=yes gnu_ld=yes |
2296 | ;; | |
2601ebca | 2297 | alpha*-*-linux-gnulibc1*) |
9d654bba | 2298 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 2299 | target_cpu_default="MASK_GAS" |
574badbc RH |
2300 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
2301 | extra_parts="crtbegin.o crtend.o" | |
9d654bba | 2302 | fixincludes=fixinc.wrap |
2601ebca | 2303 | xmake_file=none |
2601ebca JL |
2304 | gas=yes gnu_ld=yes |
2305 | if [ x$enable_threads = xyes ]; then | |
2306 | thread_file='posix' | |
2307 | fi | |
2308 | ;; | |
861bb6c1 | 2309 | alpha*-*-linux-gnu*) |
9d654bba | 2310 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 2311 | target_cpu_default="MASK_GAS" |
574badbc RH |
2312 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
2313 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 JL |
2314 | xmake_file=none |
2315 | fixincludes=Makefile.in | |
861bb6c1 JL |
2316 | gas=yes gnu_ld=yes |
2317 | if [ x$enable_threads = xyes ]; then | |
2318 | thread_file='posix' | |
2319 | fi | |
2320 | ;; | |
9d654bba RH |
2321 | alpha*-*-netbsd*) |
2322 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h" | |
58600d24 | 2323 | xm_file="xm-netbsd.h ${xm_file}" |
9d654bba RH |
2324 | target_cpu_default="MASK_GAS" |
2325 | tmake_file="alpha/t-crtbe" | |
2326 | extra_parts="crtbegin.o crtend.o" | |
2327 | xmake_file=none | |
2328 | fixincludes=fixinc.wrap | |
2329 | gas=yes gnu_ld=yes | |
2330 | ;; | |
2331 | ||
e9a25f70 | 2332 | alpha*-dec-osf*) |
861bb6c1 JL |
2333 | if [ x$stabs = xyes ] |
2334 | then | |
2335 | tm_file="${tm_file} dbx.h" | |
2336 | fi | |
2337 | if [ x$gas != xyes ] | |
2338 | then | |
2339 | extra_passes="mips-tfile mips-tdump" | |
2340 | fi | |
861bb6c1 | 2341 | use_collect2=yes |
861bb6c1 | 2342 | case $machine in |
6ecd4e53 | 2343 | *-*-osf1*) |
b0435cf4 | 2344 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
2345 | ;; |
2346 | *-*-osf[23]*) | |
b0435cf4 | 2347 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
2348 | ;; |
2349 | *-*-osf4*) | |
b0435cf4 | 2350 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
2351 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
2352 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
2353 | install_headers_dir=install-headers-cpio |
2354 | ;; | |
2355 | esac | |
e9a25f70 JL |
2356 | case $machine in |
2357 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
2358 | target_cpu_default=MASK_SUPPORT_ARCH | |
2359 | ;; | |
2360 | esac | |
861bb6c1 | 2361 | ;; |
9ec36da5 JL |
2362 | alpha*-*-vxworks*) |
2363 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
2364 | if x$gas != xyes | |
2365 | then | |
2366 | extra_passes="mips-tfile mips-tdump" | |
2367 | fi | |
2368 | use_collect2=yes | |
2369 | ;; | |
b0435cf4 | 2370 | alpha*-*-winnt*) |
861bb6c1 | 2371 | tm_file="${tm_file} alpha/win-nt.h" |
861bb6c1 JL |
2372 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
2373 | tmake_file=t-libc-ok | |
2374 | xmake_file=winnt/x-winnt | |
2375 | extra_host_objs=oldnames.o | |
2376 | extra_gcc_objs="spawnv.o oldnames.o" | |
2377 | fixincludes=fixinc.winnt | |
2378 | if [ x$gnu_ld != xyes ] | |
2379 | then | |
2380 | extra_programs=ld.exe | |
2381 | fi | |
2382 | if [ x$enable_threads = xyes ]; then | |
2383 | thread_file='win32' | |
2384 | fi | |
2385 | ;; | |
2386 | alpha*-dec-vms*) | |
2387 | tm_file=alpha/vms.h | |
2388 | xm_file="${xm_file} alpha/xm-vms.h" | |
2389 | tmake_file=alpha/t-vms | |
2390 | fixincludes=Makefile.in | |
2391 | ;; | |
66ed0683 JL |
2392 | arc-*-elf*) |
2393 | extra_parts="crtinit.o crtfini.o" | |
2394 | ;; | |
861bb6c1 JL |
2395 | arm-*-coff* | armel-*-coff*) |
2396 | tm_file=arm/coff.h | |
2397 | tmake_file=arm/t-bare | |
2398 | ;; | |
2399 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
2400 | tm_file=arm/riscix1-1.h | |
2401 | use_collect2=yes | |
2402 | ;; | |
2403 | arm-*-riscix*) # Acorn RISC machine | |
2404 | if [ x$gas = xyes ] | |
2405 | then | |
2406 | tm_file=arm/rix-gas.h | |
2407 | else | |
2408 | tm_file=arm/riscix.h | |
2409 | fi | |
2410 | xmake_file=arm/x-riscix | |
2411 | tmake_file=arm/t-riscix | |
2412 | use_collect2=yes | |
2413 | ;; | |
2414 | arm-semi-aout | armel-semi-aout) | |
2415 | tm_file=arm/semi.h | |
2416 | tmake_file=arm/t-semi | |
2417 | fixincludes=Makefile.in # There is nothing to fix | |
2418 | ;; | |
2419 | arm-semi-aof | armel-semi-aof) | |
2420 | tm_file=arm/semiaof.h | |
2421 | tmake_file=arm/t-semiaof | |
2422 | fixincludes=Makefile.in # There is nothing to fix | |
2423 | ;; | |
58600d24 | 2424 | arm*-*-netbsd*) |
861bb6c1 | 2425 | tm_file=arm/netbsd.h |
58600d24 | 2426 | xm_file="xm-netbsd.h ${xm_file}" |
e9a25f70 | 2427 | tmake_file="t-netbsd arm/t-netbsd" |
be1ed94f | 2428 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2429 | fixincludes=fixinc.wrap |
861bb6c1 | 2430 | ;; |
956d6950 | 2431 | arm-*-linux-gnuaout*) # ARM GNU/Linux |
861bb6c1 | 2432 | cpu_type=arm |
861bb6c1 JL |
2433 | xmake_file=x-linux |
2434 | tm_file=arm/linux-gas.h | |
2435 | tmake_file=arm/t-linux | |
2436 | fixincludes=Makefile.in | |
861bb6c1 JL |
2437 | gnu_ld=yes |
2438 | ;; | |
2439 | arm-*-aout) | |
2440 | tm_file=arm/aout.h | |
e9a25f70 | 2441 | tmake_file=arm/t-bare |
861bb6c1 JL |
2442 | ;; |
2443 | c1-convex-*) # Convex C1 | |
2444 | target_cpu_default=1 | |
2445 | use_collect2=yes | |
2446 | fixincludes=Makefile.in | |
2447 | ;; | |
2448 | c2-convex-*) # Convex C2 | |
2449 | target_cpu_default=2 | |
2450 | use_collect2=yes | |
2451 | fixincludes=Makefile.in | |
2452 | ;; | |
2453 | c32-convex-*) | |
2454 | target_cpu_default=4 | |
2455 | use_collect2=yes | |
2456 | fixincludes=Makefile.in | |
2457 | ;; | |
2458 | c34-convex-*) | |
2459 | target_cpu_default=8 | |
2460 | use_collect2=yes | |
2461 | fixincludes=Makefile.in | |
2462 | ;; | |
2463 | c38-convex-*) | |
2464 | target_cpu_default=16 | |
2465 | use_collect2=yes | |
2466 | fixincludes=Makefile.in | |
2467 | ;; | |
2468 | clipper-intergraph-clix*) | |
2469 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
2470 | xm_file=clipper/xm-clix.h | |
2471 | xmake_file=clipper/x-clix | |
2472 | extra_headers=va-clipper.h | |
2473 | extra_parts="crtbegin.o crtend.o" | |
2474 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
2475 | ;; |
2476 | dsp16xx-*) | |
2477 | ;; | |
2478 | elxsi-elxsi-*) | |
2479 | use_collect2=yes | |
2480 | ;; | |
2481 | # This hasn't been upgraded to GCC 2. | |
2482 | # fx80-alliant-*) # Alliant FX/80 | |
2483 | # ;; | |
2484 | h8300-*-*) | |
2485 | float_format=i32 | |
2486 | ;; | |
2487 | hppa1.1-*-pro*) | |
2488 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
2489 | xm_file=pa/xm-papro.h | |
2490 | tmake_file=pa/t-pro | |
2491 | ;; | |
2492 | hppa1.1-*-osf*) | |
2493 | target_cpu_default=1 | |
2494 | tm_file="${tm_file} pa/pa-osf.h" | |
2495 | use_collect2=yes | |
2496 | fixincludes=Makefile.in | |
2497 | ;; | |
2498 | hppa1.1-*-rtems*) | |
2499 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
2500 | xm_file=pa/xm-papro.h | |
2501 | tmake_file=pa/t-pro | |
2502 | ;; | |
2503 | hppa1.0-*-osf*) | |
2504 | tm_file="${tm_file} pa/pa-osf.h" | |
2505 | use_collect2=yes | |
2506 | fixincludes=Makefile.in | |
2507 | ;; | |
2508 | hppa1.1-*-bsd*) | |
2509 | target_cpu_default=1 | |
2510 | use_collect2=yes | |
2511 | fixincludes=Makefile.in | |
2512 | ;; | |
2513 | hppa1.0-*-bsd*) | |
2514 | use_collect2=yes | |
2515 | fixincludes=Makefile.in | |
2516 | ;; | |
2517 | hppa1.0-*-hpux7*) | |
2518 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
2519 | xm_file=pa/xm-pahpux.h | |
2520 | xmake_file=pa/x-pa-hpux | |
2521 | if [ x$gas = xyes ] | |
2522 | then | |
2523 | tm_file="${tm_file} pa/gas.h" | |
2524 | fi | |
861bb6c1 JL |
2525 | install_headers_dir=install-headers-cpio |
2526 | use_collect2=yes | |
2527 | ;; | |
2528 | hppa1.0-*-hpux8.0[0-2]*) | |
2529 | tm_file="${tm_file} pa/pa-hpux.h" | |
2530 | xm_file=pa/xm-pahpux.h | |
2531 | xmake_file=pa/x-pa-hpux | |
2532 | if [ x$gas = xyes ] | |
2533 | then | |
2534 | tm_file="${tm_file} pa/pa-gas.h" | |
2535 | else | |
2536 | tm_file="pa/pa-oldas.h ${tm_file}" | |
2537 | fi | |
861bb6c1 JL |
2538 | install_headers_dir=install-headers-cpio |
2539 | use_collect2=yes | |
2540 | ;; | |
2541 | hppa1.1-*-hpux8.0[0-2]*) | |
2542 | target_cpu_default=1 | |
2543 | tm_file="${tm_file} pa/pa-hpux.h" | |
2544 | xm_file=pa/xm-pahpux.h | |
2545 | xmake_file=pa/x-pa-hpux | |
2546 | if [ x$gas = xyes ] | |
2547 | then | |
2548 | tm_file="${tm_file} pa/pa-gas.h" | |
2549 | else | |
2550 | tm_file="pa/pa-oldas.h ${tm_file}" | |
2551 | fi | |
861bb6c1 JL |
2552 | install_headers_dir=install-headers-cpio |
2553 | use_collect2=yes | |
2554 | ;; | |
2555 | hppa1.1-*-hpux8*) | |
2556 | target_cpu_default=1 | |
2557 | tm_file="${tm_file} pa/pa-hpux.h" | |
2558 | xm_file=pa/xm-pahpux.h | |
2559 | xmake_file=pa/x-pa-hpux | |
2560 | if [ x$gas = xyes ] | |
2561 | then | |
2562 | tm_file="${tm_file} pa/pa-gas.h" | |
2563 | fi | |
861bb6c1 JL |
2564 | install_headers_dir=install-headers-cpio |
2565 | use_collect2=yes | |
2566 | ;; | |
2567 | hppa1.0-*-hpux8*) | |
2568 | tm_file="${tm_file} pa/pa-hpux.h" | |
2569 | xm_file=pa/xm-pahpux.h | |
2570 | xmake_file=pa/x-pa-hpux | |
2571 | if [ x$gas = xyes ] | |
2572 | then | |
2573 | tm_file="${tm_file} pa/pa-gas.h" | |
2574 | fi | |
861bb6c1 JL |
2575 | install_headers_dir=install-headers-cpio |
2576 | use_collect2=yes | |
2577 | ;; | |
2578 | hppa1.1-*-hpux10*) | |
2579 | target_cpu_default=1 | |
2580 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
2581 | xm_file=pa/xm-pahpux.h | |
2582 | xmake_file=pa/x-pa-hpux | |
f24af81b | 2583 | tmake_file=pa/t-pa |
861bb6c1 JL |
2584 | if [ x$gas = xyes ] |
2585 | then | |
2586 | tm_file="${tm_file} pa/pa-gas.h" | |
2587 | fi | |
f24af81b TT |
2588 | if [ x$enable_threads = x ]; then |
2589 | enable_threads=$have_pthread_h | |
2590 | fi | |
2591 | if [ x$enable_threads = xyes ]; then | |
2592 | thread_file='dce' | |
2593 | tmake_file="${tmake_file} pa/t-dce-thr" | |
2594 | fi | |
861bb6c1 JL |
2595 | install_headers_dir=install-headers-cpio |
2596 | use_collect2=yes | |
2597 | ;; | |
2598 | hppa1.0-*-hpux10*) | |
2599 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
2600 | xm_file=pa/xm-pahpux.h | |
2601 | xmake_file=pa/x-pa-hpux | |
2602 | if [ x$gas = xyes ] | |
2603 | then | |
2604 | tm_file="${tm_file} pa/pa-gas.h" | |
2605 | fi | |
d005a5a4 JL |
2606 | if [ x$enable_threads = x ]; then |
2607 | enable_threads=$have_pthread_h | |
2608 | fi | |
2609 | if [ x$enable_threads = xyes ]; then | |
2610 | thread_file='dce' | |
2611 | tmake_file="${tmake_file} pa/t-dce-thr" | |
2612 | fi | |
861bb6c1 JL |
2613 | install_headers_dir=install-headers-cpio |
2614 | use_collect2=yes | |
2615 | ;; | |
2616 | hppa1.1-*-hpux*) | |
2617 | target_cpu_default=1 | |
2618 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
2619 | xm_file=pa/xm-pahpux.h | |
2620 | xmake_file=pa/x-pa-hpux | |
2621 | if [ x$gas = xyes ] | |
2622 | then | |
2623 | tm_file="${tm_file} pa/pa-gas.h" | |
2624 | fi | |
861bb6c1 JL |
2625 | install_headers_dir=install-headers-cpio |
2626 | use_collect2=yes | |
2627 | ;; | |
2628 | hppa1.0-*-hpux*) | |
2629 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
2630 | xm_file=pa/xm-pahpux.h | |
2631 | xmake_file=pa/x-pa-hpux | |
2632 | if [ x$gas = xyes ] | |
2633 | then | |
2634 | tm_file="${tm_file} pa/pa-gas.h" | |
2635 | fi | |
861bb6c1 JL |
2636 | install_headers_dir=install-headers-cpio |
2637 | use_collect2=yes | |
2638 | ;; | |
2639 | hppa1.1-*-hiux*) | |
2640 | target_cpu_default=1 | |
2641 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
2642 | xm_file=pa/xm-pahpux.h | |
2643 | xmake_file=pa/x-pa-hpux | |
2644 | if [ x$gas = xyes ] | |
2645 | then | |
2646 | tm_file="${tm_file} pa/pa-gas.h" | |
2647 | fi | |
861bb6c1 JL |
2648 | install_headers_dir=install-headers-cpio |
2649 | use_collect2=yes | |
2650 | ;; | |
2651 | hppa1.0-*-hiux*) | |
2652 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
2653 | xm_file=pa/xm-pahpux.h | |
2654 | xmake_file=pa/x-pa-hpux | |
2655 | if [ x$gas = xyes ] | |
2656 | then | |
2657 | tm_file="${tm_file} pa/pa-gas.h" | |
2658 | fi | |
861bb6c1 JL |
2659 | install_headers_dir=install-headers-cpio |
2660 | use_collect2=yes | |
2661 | ;; | |
2662 | hppa*-*-lites*) | |
2663 | target_cpu_default=1 | |
2664 | use_collect2=yes | |
2665 | fixincludes=Makefile.in | |
2666 | ;; | |
2667 | i370-*-mvs*) | |
2668 | ;; | |
f6cb0e63 | 2669 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
861bb6c1 JL |
2670 | if [ x$gas = xyes ] |
2671 | then | |
2672 | tm_file=i386/aix386.h | |
2673 | extra_parts="crtbegin.o crtend.o" | |
2674 | tmake_file=i386/t-crtstuff | |
2675 | else | |
2676 | tm_file=i386/aix386ng.h | |
2677 | use_collect2=yes | |
2678 | fi | |
f6cb0e63 JL |
2679 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
2680 | xm_defines=USG | |
861bb6c1 | 2681 | xmake_file=i386/x-aix |
861bb6c1 | 2682 | ;; |
f6cb0e63 JL |
2683 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
2684 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2685 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2686 | xmake_file=i386/x-ncr3000 |
2687 | if [ x$stabs = xyes -a x$gas = xyes ] | |
2688 | then | |
2689 | tm_file=i386/sysv4gdb.h | |
2690 | else | |
2691 | tm_file=i386/sysv4.h | |
2692 | fi | |
2693 | extra_parts="crtbegin.o crtend.o" | |
2694 | tmake_file=i386/t-crtpic | |
2695 | ;; | |
f6cb0e63 | 2696 | i[34567]86-next-*) |
861bb6c1 JL |
2697 | tm_file=i386/next.h |
2698 | xm_file=i386/xm-next.h | |
2699 | tmake_file=i386/t-next | |
2700 | xmake_file=i386/x-next | |
2701 | extra_objs=nextstep.o | |
2702 | if [ x$enable_threads = xyes ]; then | |
2703 | thread_file='mach' | |
2704 | fi | |
2705 | ;; | |
f6cb0e63 | 2706 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 JL |
2707 | use_collect2=yes |
2708 | if [ x$gas = xyes ] | |
2709 | then | |
2710 | tm_file=i386/seq-gas.h | |
2711 | else | |
2712 | tm_file=i386/sequent.h | |
2713 | fi | |
2714 | ;; | |
f6cb0e63 JL |
2715 | i[34567]86-sequent-ptx1*) |
2716 | xm_defines="USG SVR3" | |
861bb6c1 JL |
2717 | xmake_file=i386/x-sysv3 |
2718 | tm_file=i386/seq-sysv3.h | |
2719 | tmake_file=i386/t-crtstuff | |
2720 | fixincludes=fixinc.ptx | |
2721 | extra_parts="crtbegin.o crtend.o" | |
2722 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 2723 | ;; |
f6cb0e63 JL |
2724 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
2725 | xm_defines="USG SVR3" | |
861bb6c1 JL |
2726 | xmake_file=i386/x-sysv3 |
2727 | tm_file=i386/seq2-sysv3.h | |
2728 | tmake_file=i386/t-crtstuff | |
2729 | extra_parts="crtbegin.o crtend.o" | |
2730 | fixincludes=fixinc.ptx | |
2731 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 2732 | ;; |
f6cb0e63 JL |
2733 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
2734 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2735 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2736 | xmake_file=x-svr4 |
2737 | tm_file=i386/ptx4-i.h | |
2738 | tmake_file=t-svr4 | |
2739 | extra_parts="crtbegin.o crtend.o" | |
2740 | fixincludes=fixinc.ptx | |
2741 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
2742 | ;; |
2743 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 2744 | xm_defines=USG |
861bb6c1 JL |
2745 | tm_file=i386/sun.h |
2746 | use_collect2=yes | |
2747 | ;; | |
62db76ee | 2748 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
2749 | tm_file=i386/vxi386.h |
2750 | tmake_file=i386/t-i386bare | |
2751 | ;; | |
f6cb0e63 | 2752 | i[34567]86-*-aout*) |
861bb6c1 JL |
2753 | tm_file=i386/i386-aout.h |
2754 | tmake_file=i386/t-i386bare | |
2755 | ;; | |
f6cb0e63 | 2756 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 2757 | tm_file=i386/bsd386.h |
861bb6c1 JL |
2758 | # tmake_file=t-libc-ok |
2759 | ;; | |
f6cb0e63 | 2760 | i[34567]86-*-bsd*) |
861bb6c1 | 2761 | tm_file=i386/386bsd.h |
861bb6c1 JL |
2762 | # tmake_file=t-libc-ok |
2763 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
2764 | # use_collect2=yes | |
2765 | ;; | |
f6cb0e63 | 2766 | i[34567]86-*-freebsdelf*) |
861bb6c1 | 2767 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" |
be1ed94f | 2768 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 2769 | fixincludes=fixinc.wrap |
861bb6c1 JL |
2770 | tmake_file=i386/t-freebsd |
2771 | gas=yes | |
2772 | gnu_ld=yes | |
2773 | stabs=yes | |
2774 | ;; | |
f6cb0e63 | 2775 | i[34567]86-*-freebsd*) |
861bb6c1 | 2776 | tm_file=i386/freebsd.h |
ca55abae | 2777 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 2778 | fixincludes=fixinc.wrap |
861bb6c1 JL |
2779 | tmake_file=i386/t-freebsd |
2780 | ;; | |
f6cb0e63 | 2781 | i[34567]86-*-netbsd*) |
861bb6c1 | 2782 | tm_file=i386/netbsd.h |
58600d24 | 2783 | xm_file="xm-netbsd.h ${xm_file}" |
be1ed94f | 2784 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2785 | fixincludes=fixinc.wrap |
861bb6c1 JL |
2786 | tmake_file=t-netbsd |
2787 | ;; | |
f6cb0e63 | 2788 | i[34567]86-*-coff*) |
861bb6c1 JL |
2789 | tm_file=i386/i386-coff.h |
2790 | tmake_file=i386/t-i386bare | |
2791 | ;; | |
f6cb0e63 JL |
2792 | i[34567]86-*-isc*) # 80386 running ISC system |
2793 | xm_file="${xm_file} i386/xm-isc.h" | |
2794 | xm_defines="USG SVR3" | |
861bb6c1 | 2795 | case $machine in |
f6cb0e63 | 2796 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
2797 | xmake_file=i386/x-isc3 |
2798 | ;; | |
2799 | *) | |
2800 | xmake_file=i386/x-isc | |
2801 | ;; | |
2802 | esac | |
2803 | if [ x$gas = xyes -a x$stabs = xyes ] | |
2804 | then | |
2805 | tm_file=i386/iscdbx.h | |
2806 | tmake_file=i386/t-svr3dbx | |
2807 | extra_parts="svr3.ifile svr3z.ifile" | |
2808 | else | |
2809 | tm_file=i386/isccoff.h | |
2810 | tmake_file=i386/t-crtstuff | |
2811 | extra_parts="crtbegin.o crtend.o" | |
2812 | fi | |
2813 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 2814 | ;; |
f6cb0e63 JL |
2815 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
2816 | # with a.out format using | |
2817 | # pre BFD linkers | |
861bb6c1 JL |
2818 | xmake_file=x-linux-aout |
2819 | tmake_file="t-linux-aout i386/t-crtstuff" | |
2820 | tm_file=i386/linux-oldld.h | |
2821 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2822 | gnu_ld=yes |
af39d8f5 | 2823 | float_format=i386 |
861bb6c1 | 2824 | ;; |
f6cb0e63 JL |
2825 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
2826 | # with a.out format | |
861bb6c1 JL |
2827 | xmake_file=x-linux-aout |
2828 | tmake_file="t-linux-aout i386/t-crtstuff" | |
2829 | tm_file=i386/linux-aout.h | |
2830 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2831 | gnu_ld=yes |
af39d8f5 | 2832 | float_format=i386 |
861bb6c1 | 2833 | ;; |
f6cb0e63 JL |
2834 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
2835 | # with ELF format using the | |
2836 | # GNU/Linux C library 5 | |
2837 | xmake_file=x-linux | |
2838 | tm_file=i386/linux.h | |
861bb6c1 JL |
2839 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
2840 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2841 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2842 | gnu_ld=yes |
af39d8f5 | 2843 | float_format=i386 |
861bb6c1 JL |
2844 | if [ x$enable_threads = xyes ]; then |
2845 | thread_file='single' | |
2846 | fi | |
2847 | ;; | |
f6cb0e63 JL |
2848 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
2849 | # with ELF format using glibc 2 | |
2850 | # aka GNU/Linux C library 6 | |
2851 | xmake_file=x-linux | |
861bb6c1 JL |
2852 | tm_file=i386/linux.h |
2853 | tmake_file="t-linux i386/t-crtstuff" | |
2854 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2855 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2856 | gnu_ld=yes |
af39d8f5 | 2857 | float_format=i386 |
861bb6c1 JL |
2858 | if [ x$enable_threads = xyes ]; then |
2859 | thread_file='posix' | |
2860 | fi | |
2861 | ;; | |
f6cb0e63 JL |
2862 | i[34567]86-*-gnu*) |
2863 | ;; | |
2864 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
2865 | xm_file=i386/xm-go32.h | |
2866 | tm_file=i386/go32.h | |
2867 | tmake_file=i386/t-go32 | |
861bb6c1 | 2868 | ;; |
f6cb0e63 | 2869 | i[34567]86-pc-msdosdjgpp*) |
861bb6c1 JL |
2870 | xm_file=i386/xm-go32.h |
2871 | tm_file=i386/go32.h | |
2872 | tmake_file=i386/t-go32 | |
f6cb0e63 JL |
2873 | gnu_ld=yes |
2874 | gas=yes | |
861bb6c1 | 2875 | ;; |
f6cb0e63 | 2876 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
2877 | tm_file=i386/moss.h |
2878 | tmake_file=t-libc-ok | |
2879 | fixincludes=Makefile.in | |
2880 | gnu_ld=yes | |
2881 | gas=yes | |
2882 | ;; | |
f6cb0e63 | 2883 | i[34567]86-*-lynxos*) |
861bb6c1 JL |
2884 | if [ x$gas = xyes ] |
2885 | then | |
2886 | tm_file=i386/lynx.h | |
2887 | else | |
2888 | tm_file=i386/lynx-ng.h | |
2889 | fi | |
2890 | xm_file=i386/xm-lynx.h | |
2891 | tmake_file=i386/t-i386bare | |
2892 | xmake_file=x-lynx | |
2893 | ;; | |
f6cb0e63 | 2894 | i[34567]86-*-mach*) |
861bb6c1 JL |
2895 | tm_file=i386/mach.h |
2896 | # tmake_file=t-libc-ok | |
2897 | use_collect2=yes | |
2898 | ;; | |
f6cb0e63 | 2899 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
861bb6c1 JL |
2900 | if [ x$elf = xyes ] |
2901 | then | |
2902 | tm_file=i386/osfelf.h | |
2903 | use_collect2= | |
2904 | else | |
2905 | tm_file=i386/osfrose.h | |
2906 | use_collect2=yes | |
2907 | fi | |
f6cb0e63 | 2908 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
2909 | xmake_file=i386/x-osfrose |
2910 | tmake_file=i386/t-osf | |
2911 | extra_objs=halfpic.o | |
2912 | ;; | |
f6cb0e63 | 2913 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
2914 | cpu_type=i386 |
2915 | xm_file=i386/xm-go32.h | |
2916 | tm_file=i386/go32-rtems.h | |
2917 | tmake_file="i386/t-go32 t-rtems" | |
2918 | ;; | |
f5963e61 JL |
2919 | i[34567]86-*-rtemself*) |
2920 | cpu_type=i386 | |
2921 | tm_file=i386/rtemself.h | |
2922 | tmake_file="i386/t-i386bare t-rtems" | |
2923 | ;; | |
f6cb0e63 | 2924 | i[34567]86-*-rtems*) |
861bb6c1 JL |
2925 | cpu_type=i386 |
2926 | tm_file=i386/rtems.h | |
2927 | tmake_file="i386/t-i386bare t-rtems" | |
2928 | ;; | |
f6cb0e63 JL |
2929 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
2930 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
2931 | xm_defines="USG SVR3" | |
861bb6c1 JL |
2932 | xmake_file=i386/x-sco5 |
2933 | fixincludes=fixinc.sco | |
f6857708 | 2934 | install_headers_dir=install-headers-cpio |
861bb6c1 | 2935 | tm_file=i386/sco5.h |
44bb0e93 RL |
2936 | if [ x$gas = xyes ] |
2937 | then | |
2938 | tm_file="i386/sco5gas.h ${tm_file}" | |
2939 | tmake_file=i386/t-sco5gas | |
2940 | else | |
2941 | tmake_file=i386/t-sco5 | |
2942 | fi | |
861bb6c1 JL |
2943 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2944 | ;; | |
f6cb0e63 JL |
2945 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
2946 | xm_file="${xm_file} i386/xm-sco.h" | |
2947 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 JL |
2948 | xmake_file=i386/x-sco4 |
2949 | fixincludes=fixinc.sco | |
861bb6c1 JL |
2950 | install_headers_dir=install-headers-cpio |
2951 | if [ x$stabs = xyes ] | |
2952 | then | |
2953 | tm_file=i386/sco4dbx.h | |
2954 | tmake_file=i386/t-svr3dbx | |
2955 | extra_parts="svr3.ifile svr3z.rfile" | |
2956 | else | |
2957 | tm_file=i386/sco4.h | |
2958 | tmake_file=i386/t-crtstuff | |
2959 | extra_parts="crtbegin.o crtend.o" | |
2960 | fi | |
2961 | truncate_target=yes | |
2962 | ;; | |
f6cb0e63 | 2963 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
2964 | xm_file=i386/xm-sco.h |
2965 | xmake_file=i386/x-sco | |
861bb6c1 JL |
2966 | install_headers_dir=install-headers-cpio |
2967 | if [ x$stabs = xyes ] | |
2968 | then | |
2969 | tm_file=i386/scodbx.h | |
2970 | tmake_file=i386/t-svr3dbx | |
2971 | extra_parts="svr3.ifile svr3z.rfile" | |
2972 | else | |
2973 | tm_file=i386/sco.h | |
2974 | extra_parts="crtbegin.o crtend.o" | |
2975 | tmake_file=i386/t-crtstuff | |
2976 | fi | |
2977 | truncate_target=yes | |
2978 | ;; | |
f6cb0e63 JL |
2979 | i[34567]86-*-solaris2*) |
2980 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2981 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2982 | if [ x$stabs = xyes ] |
2983 | then | |
2984 | tm_file=i386/sol2dbg.h | |
2985 | else | |
2986 | tm_file=i386/sol2.h | |
2987 | fi | |
2988 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 2989 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 2990 | xmake_file=x-svr4 |
f6cb0e63 JL |
2991 | case $machine in |
2992 | *-*-solaris2.[0-4]) | |
2993 | fixincludes=fixinc.svr4;; | |
2994 | *) | |
32f65aa0 | 2995 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 2996 | esac |
861bb6c1 JL |
2997 | if [ x$enable_threads = xyes ]; then |
2998 | thread_file='solaris' | |
2999 | fi | |
3000 | ;; | |
f6cb0e63 | 3001 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
3002 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
3003 | xm_defines="USG POSIX" | |
fe07d4c1 RL |
3004 | tm_file=i386/sysv4.h |
3005 | if [ x$stabs = xyes ] | |
3006 | then | |
3007 | tm_file="${tm_file} dbx.h" | |
3008 | fi | |
3009 | tmake_file=i386/t-crtpic | |
3010 | xmake_file=x-svr4 | |
3011 | extra_parts="crtbegin.o crtend.o" | |
3012 | fixincludes=Makefile.in # The headers are just fine, thank you. | |
3013 | ;; | |
f6cb0e63 JL |
3014 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
3015 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3016 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
3017 | tm_file=i386/sysv4.h |
3018 | if [ x$stabs = xyes ] | |
3019 | then | |
3020 | tm_file="${tm_file} dbx.h" | |
3021 | fi | |
3022 | tmake_file=i386/t-crtpic | |
3023 | xmake_file=x-svr4 | |
3024 | extra_parts="crtbegin.o crtend.o" | |
3025 | ;; | |
f5963e61 JL |
3026 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
3027 | cpu_type=i386 | |
3028 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
3029 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
3030 | fixincludes=Makefile.in #Don't do it on OSF/1 | |
3031 | if [ x$stabs = xyes ] | |
3032 | then | |
3033 | tm_file=i386/osf1elfgdb.h | |
3034 | else | |
3035 | tm_file=i386/osf1elf.h | |
3036 | fi | |
3037 | tmake_file=i386/t-osf1elf | |
3038 | xmake_file=i386/x-osf1elf | |
3039 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3040 | ;; | |
f6cb0e63 JL |
3041 | i[34567]86-*-sysv*) # Intel 80386's running system V |
3042 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3043 | xmake_file=i386/x-sysv3 |
3044 | if [ x$gas = xyes ] | |
3045 | then | |
3046 | if [ x$stabs = xyes ] | |
3047 | then | |
3048 | tm_file=i386/svr3dbx.h | |
3049 | tmake_file=i386/t-svr3dbx | |
3050 | extra_parts="svr3.ifile svr3z.rfile" | |
3051 | else | |
3052 | tm_file=i386/svr3gas.h | |
3053 | extra_parts="crtbegin.o crtend.o" | |
3054 | tmake_file=i386/t-crtstuff | |
3055 | fi | |
3056 | else | |
3057 | tm_file=i386/sysv3.h | |
3058 | extra_parts="crtbegin.o crtend.o" | |
3059 | tmake_file=i386/t-crtstuff | |
3060 | fi | |
3061 | ;; | |
3062 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 3063 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
3064 | tm_file=i386/vsta.h |
3065 | tmake_file=i386/t-vsta | |
3066 | xmake_file=i386/x-vsta | |
3067 | ;; | |
84530511 SC |
3068 | i[34567]86-*-win32) |
3069 | xm_file="${xm_file} i386/xm-cygwin32.h" | |
3070 | tmake_file=i386/t-cygwin32 | |
3071 | tm_file=i386/win32.h | |
3072 | xmake_file=i386/x-cygwin32 | |
3073 | extra_objs=winnt.o | |
3074 | fixincludes=Makefile.in | |
3075 | if [ x$enable_threads = xyes ]; then | |
3076 | thread_file='win32' | |
3077 | fi | |
3078 | exeext=.exe | |
3079 | ;; | |
f6cb0e63 | 3080 | i[34567]86-*-pe | i[34567]86-*-cygwin32) |
861bb6c1 JL |
3081 | xm_file="${xm_file} i386/xm-cygwin32.h" |
3082 | tmake_file=i386/t-cygwin32 | |
3083 | tm_file=i386/cygwin32.h | |
3084 | xmake_file=i386/x-cygwin32 | |
3085 | extra_objs=winnt.o | |
3086 | fixincludes=Makefile.in | |
3087 | if [ x$enable_threads = xyes ]; then | |
3088 | thread_file='win32' | |
3089 | fi | |
3090 | exeext=.exe | |
3091 | ;; | |
f6cb0e63 | 3092 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
3093 | tm_file=i386/mingw32.h |
3094 | xm_file="${xm_file} i386/xm-mingw32.h" | |
1a4bf22f | 3095 | tmake_file="i386/t-cygwin32 i386/t-mingw32" |
861bb6c1 JL |
3096 | extra_objs=winnt.o |
3097 | xmake_file=i386/x-cygwin32 | |
3098 | fixincludes=Makefile.in | |
3099 | if [ x$enable_threads = xyes ]; then | |
3100 | thread_file='win32' | |
3101 | fi | |
3102 | exeext=.exe | |
f6cb0e63 JL |
3103 | case $machine in |
3104 | *mingw32msv*) | |
3105 | ;; | |
3106 | *minwg32crt* | *mingw32*) | |
3107 | tm_file="${tm_file} i386/crtdll.h" | |
3108 | ;; | |
3109 | esac | |
861bb6c1 | 3110 | ;; |
f6cb0e63 | 3111 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
3112 | tm_file=i386/win-nt.h |
3113 | out_file=i386/i386.c | |
f6cb0e63 | 3114 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
3115 | xmake_file=winnt/x-winnt |
3116 | tmake_file=i386/t-winnt | |
3117 | extra_host_objs="winnt.o oldnames.o" | |
3118 | extra_gcc_objs="spawnv.o oldnames.o" | |
3119 | fixincludes=fixinc.winnt | |
3120 | if [ x$gnu_ld != xyes ] | |
3121 | then | |
3122 | extra_programs=ld.exe | |
3123 | fi | |
3124 | if [ x$enable_threads = xyes ]; then | |
3125 | thread_file='win32' | |
3126 | fi | |
3127 | ;; | |
f6cb0e63 JL |
3128 | i[34567]86-dg-dgux*) |
3129 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3130 | xm_defines="USG POSIX" | |
861bb6c1 JL |
3131 | out_file=i386/dgux.c |
3132 | tm_file=i386/dgux.h | |
3133 | tmake_file=i386/t-dgux | |
3134 | xmake_file=i386/x-dgux | |
9590eb1b | 3135 | fixincludes=fixinc.dgux |
861bb6c1 JL |
3136 | install_headers_dir=install-headers-cpio |
3137 | ;; | |
3138 | i860-alliant-*) # Alliant FX/2800 | |
3139 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 3140 | xm_file="${xm_file}" |
861bb6c1 JL |
3141 | xmake_file=i860/x-fx2800 |
3142 | tmake_file=i860/t-fx2800 | |
3143 | extra_parts="crtbegin.o crtend.o" | |
3144 | ;; | |
3145 | i860-*-bsd*) | |
3146 | tm_file="${tm_file} i860/bsd.h" | |
3147 | if [ x$gas = xyes ] | |
3148 | then | |
3149 | tm_file="${tm_file} i860/bsd-gas.h" | |
3150 | fi | |
3151 | use_collect2=yes | |
3152 | ;; | |
3153 | i860-*-mach*) | |
3154 | tm_file="${tm_file} i860/mach.h" | |
3155 | tmake_file=t-libc-ok | |
3156 | ;; | |
3157 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
3158 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 3159 | xm_defines="USG SVR3" |
861bb6c1 | 3160 | tmake_file=t-osf |
861bb6c1 JL |
3161 | ;; |
3162 | i860-*-sysv3*) | |
3163 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 3164 | xm_defines="USG SVR3" |
861bb6c1 JL |
3165 | xmake_file=i860/x-sysv3 |
3166 | extra_parts="crtbegin.o crtend.o" | |
3167 | ;; | |
3168 | i860-*-sysv4*) | |
3169 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 3170 | xm_defines="USG SVR3" |
861bb6c1 JL |
3171 | xmake_file=i860/x-sysv4 |
3172 | tmake_file=t-svr4 | |
3173 | extra_parts="crtbegin.o crtend.o" | |
3174 | ;; | |
3175 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
3176 | tm_file="${tm_file} i960/vx960.h" | |
3177 | tmake_file=i960/t-vxworks960 | |
3178 | use_collect2=yes | |
7cc34889 | 3179 | thread_file='vxworks' |
861bb6c1 | 3180 | ;; |
a0372c94 | 3181 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
3182 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
3183 | tmake_file=i960/t-vxworks960 | |
3184 | use_collect2=yes | |
7cc34889 | 3185 | thread_file='vxworks' |
861bb6c1 JL |
3186 | ;; |
3187 | i960-wrs-vxworks*) | |
3188 | tm_file="${tm_file} i960/vx960.h" | |
3189 | tmake_file=i960/t-vxworks960 | |
3190 | use_collect2=yes | |
7cc34889 | 3191 | thread_file='vxworks' |
861bb6c1 JL |
3192 | ;; |
3193 | i960-*-coff*) | |
3194 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
3195 | tmake_file=i960/t-960bare | |
3196 | use_collect2=yes | |
3197 | ;; | |
3198 | i960-*-rtems) | |
3199 | tmake_file="i960/t-960bare t-rtems" | |
3200 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
3201 | use_collect2=yes | |
3202 | ;; | |
3203 | i960-*-*) # Default i960 environment. | |
3204 | use_collect2=yes | |
3205 | ;; | |
3206 | m32r-*-elf*) | |
3207 | extra_parts="crtinit.o crtfini.o" | |
3208 | ;; | |
3209 | m68000-convergent-sysv*) | |
3210 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
3211 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3212 | xm_defines=USG | |
861bb6c1 JL |
3213 | use_collect2=yes |
3214 | extra_headers=math-68881.h | |
3215 | ;; | |
3216 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
3217 | tm_file=m68k/hp2bsd.h | |
3218 | xmake_file=m68k/x-hp2bsd | |
3219 | use_collect2=yes | |
3220 | extra_headers=math-68881.h | |
3221 | ;; | |
3222 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
3223 | xm_file="xm_alloca.h ${xm_file}" |
3224 | xm_defines="USG NO_SYS_SIGLIST" | |
861bb6c1 JL |
3225 | if [ x$gas = xyes ] |
3226 | then | |
3227 | xmake_file=m68k/x-hp320g | |
3228 | tm_file=m68k/hp310g.h | |
3229 | else | |
3230 | xmake_file=m68k/x-hp320 | |
3231 | tm_file=m68k/hp310.h | |
3232 | fi | |
861bb6c1 JL |
3233 | install_headers_dir=install-headers-cpio |
3234 | use_collect2=yes | |
3235 | extra_headers=math-68881.h | |
3236 | ;; | |
3237 | m68000-sun-sunos3*) | |
3238 | tm_file=m68k/sun2.h | |
3239 | use_collect2=yes | |
3240 | extra_headers=math-68881.h | |
3241 | ;; | |
3242 | m68000-sun-sunos4*) | |
3243 | tm_file=m68k/sun2o4.h | |
3244 | use_collect2=yes | |
3245 | extra_headers=math-68881.h | |
3246 | ;; | |
3247 | m68000-att-sysv*) | |
f6cb0e63 JL |
3248 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3249 | xm_defines=USG | |
861bb6c1 JL |
3250 | if [ x$gas = xyes ] |
3251 | then | |
3252 | tm_file=m68k/3b1g.h | |
3253 | else | |
3254 | tm_file=m68k/3b1.h | |
3255 | fi | |
3256 | use_collect2=yes | |
3257 | extra_headers=math-68881.h | |
3258 | ;; | |
3259 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 3260 | xm_defines="USG AUX" |
861bb6c1 | 3261 | tmake_file=m68k/t-aux |
861bb6c1 JL |
3262 | install_headers_dir=install-headers-cpio |
3263 | extra_headers=math-68881.h | |
3264 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
3265 | tm_file= | |
3266 | if [ "$gnu_ld" = yes ] | |
3267 | then | |
3268 | tm_file="${tm_file} m68k/auxgld.h" | |
3269 | else | |
3270 | tm_file="${tm_file} m68k/auxld.h" | |
3271 | fi | |
3272 | if [ "$gas" = yes ] | |
3273 | then | |
3274 | tm_file="${tm_file} m68k/auxgas.h" | |
3275 | else | |
3276 | tm_file="${tm_file} m68k/auxas.h" | |
3277 | fi | |
3278 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 3279 | float_format=m68k |
861bb6c1 JL |
3280 | ;; |
3281 | m68k-apollo-*) | |
3282 | tm_file=m68k/apollo68.h | |
3283 | xmake_file=m68k/x-apollo68 | |
3284 | use_collect2=yes | |
3285 | extra_headers=math-68881.h | |
0a95276e | 3286 | float_format=m68k |
861bb6c1 JL |
3287 | ;; |
3288 | m68k-altos-sysv*) # Altos 3068 | |
3289 | if [ x$gas = xyes ] | |
3290 | then | |
3291 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 3292 | xm_defines=USG |
861bb6c1 JL |
3293 | else |
3294 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
3295 | exit 1 | |
3296 | fi | |
3297 | extra_headers=math-68881.h | |
3298 | ;; | |
3299 | m68k-bull-sysv*) # Bull DPX/2 | |
3300 | if [ x$gas = xyes ] | |
3301 | then | |
3302 | if [ x$stabs = xyes ] | |
3303 | then | |
3304 | tm_file=m68k/dpx2cdbx.h | |
3305 | else | |
3306 | tm_file=m68k/dpx2g.h | |
3307 | fi | |
3308 | else | |
3309 | tm_file=m68k/dpx2.h | |
3310 | fi | |
f6cb0e63 JL |
3311 | xm_file="xm-alloca.h ${xm_file}" |
3312 | xm_defines=USG | |
861bb6c1 JL |
3313 | xmake_file=m68k/x-dpx2 |
3314 | use_collect2=yes | |
3315 | extra_headers=math-68881.h | |
3316 | ;; | |
3317 | m68k-atari-sysv4*) # Atari variant of V.4. | |
3318 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
3319 | xm_file="xm-alloca.h ${xm_file}" |
3320 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
3321 | tmake_file=t-svr4 |
3322 | extra_parts="crtbegin.o crtend.o" | |
3323 | extra_headers=math-68881.h | |
0a95276e | 3324 | float_format=m68k |
861bb6c1 JL |
3325 | ;; |
3326 | m68k-motorola-sysv*) | |
3327 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
3328 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
3329 | xm_defines=NO_SYS_SIGLIST | |
861bb6c1 JL |
3330 | if [ x$gas = xyes ] |
3331 | then | |
3332 | xmake_file=m68k/x-mot3300-gas | |
3333 | if [ x$gnu_ld = xyes ] | |
3334 | then | |
3335 | tmake_file=m68k/t-mot3300-gald | |
3336 | else | |
3337 | tmake_file=m68k/t-mot3300-gas | |
3338 | use_collect2=yes | |
3339 | fi | |
3340 | else | |
3341 | xmake_file=m68k/x-mot3300 | |
3342 | if [ x$gnu_ld = xyes ] | |
3343 | then | |
3344 | tmake_file=m68k/t-mot3300-gld | |
3345 | else | |
3346 | tmake_file=m68k/t-mot3300 | |
3347 | use_collect2=yes | |
3348 | fi | |
3349 | fi | |
3350 | gdb_needs_out_file_path=yes | |
3351 | extra_parts="crt0.o mcrt0.o" | |
3352 | extra_headers=math-68881.h | |
0a95276e | 3353 | float_format=m68k |
861bb6c1 JL |
3354 | ;; |
3355 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
3356 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 3357 | xm_defines="USG SVR3" |
861bb6c1 JL |
3358 | xmake_file=m68k/x-tower |
3359 | extra_parts="crtbegin.o crtend.o" | |
3360 | extra_headers=math-68881.h | |
3361 | ;; | |
3362 | m68k-plexus-sysv*) | |
3363 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
3364 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
3365 | xm_defines=USG | |
861bb6c1 JL |
3366 | use_collect2=yes |
3367 | extra_headers=math-68881.h | |
3368 | ;; | |
3369 | m68k-tti-*) | |
3370 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
3371 | xm_file="xm-alloca.h ${xm_file}" |
3372 | xm_defines=USG | |
861bb6c1 JL |
3373 | extra_headers=math-68881.h |
3374 | ;; | |
3375 | m68k-crds-unos*) | |
f6cb0e63 JL |
3376 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
3377 | xm_defines="USG unos" | |
861bb6c1 JL |
3378 | xmake_file=m68k/x-crds |
3379 | tm_file=m68k/crds.h | |
861bb6c1 JL |
3380 | use_collect2=yes |
3381 | extra_headers=math-68881.h | |
3382 | ;; | |
3383 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
3384 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
3385 | xm_file="xm-alloca.h ${xm_file}" |
3386 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
3387 | xmake_file=m68k/x-amix |
3388 | tmake_file=t-svr4 | |
3389 | extra_parts="crtbegin.o crtend.o" | |
3390 | extra_headers=math-68881.h | |
0a95276e | 3391 | float_format=m68k |
861bb6c1 JL |
3392 | ;; |
3393 | m68k-ccur-rtu) | |
3394 | tm_file=m68k/ccur-GAS.h | |
3395 | xmake_file=m68k/x-ccur | |
3396 | extra_headers=math-68881.h | |
3397 | use_collect2=yes | |
0a95276e | 3398 | float_format=m68k |
861bb6c1 JL |
3399 | ;; |
3400 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
3401 | tm_file=m68k/hp3bsd44.h | |
3402 | xmake_file=m68k/x-hp3bsd44 | |
3403 | use_collect2=yes | |
3404 | extra_headers=math-68881.h | |
0a95276e | 3405 | float_format=m68k |
861bb6c1 JL |
3406 | ;; |
3407 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
3408 | tm_file=m68k/hp3bsd.h | |
3409 | use_collect2=yes | |
3410 | extra_headers=math-68881.h | |
0a95276e | 3411 | float_format=m68k |
861bb6c1 JL |
3412 | ;; |
3413 | m68k-isi-bsd*) | |
3414 | if [ x$with_fp = xno ] | |
3415 | then | |
3416 | tm_file=m68k/isi-nfp.h | |
3417 | else | |
3418 | tm_file=m68k/isi.h | |
0a95276e | 3419 | float_format=m68k |
861bb6c1 JL |
3420 | fi |
3421 | use_collect2=yes | |
3422 | extra_headers=math-68881.h | |
3423 | ;; | |
3424 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
3425 | xm_file="xm_alloca.h ${xm_file}" |
3426 | xm_defines="USG NO_SYS_SIGLIST" | |
861bb6c1 JL |
3427 | if [ x$gas = xyes ] |
3428 | then | |
3429 | xmake_file=m68k/x-hp320g | |
3430 | tm_file=m68k/hp320g.h | |
3431 | else | |
3432 | xmake_file=m68k/x-hp320 | |
3433 | tm_file=m68k/hpux7.h | |
3434 | fi | |
861bb6c1 JL |
3435 | install_headers_dir=install-headers-cpio |
3436 | use_collect2=yes | |
3437 | extra_headers=math-68881.h | |
0a95276e | 3438 | float_format=m68k |
861bb6c1 JL |
3439 | ;; |
3440 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
3441 | xm_file="xm_alloca.h ${xm_file}" |
3442 | xm_defines="USG NO_SYS_SIGLIST" | |
861bb6c1 JL |
3443 | if [ x$gas = xyes ] |
3444 | then | |
3445 | xmake_file=m68k/x-hp320g | |
3446 | tm_file=m68k/hp320g.h | |
3447 | else | |
3448 | xmake_file=m68k/x-hp320 | |
3449 | tm_file=m68k/hp320.h | |
3450 | fi | |
861bb6c1 JL |
3451 | install_headers_dir=install-headers-cpio |
3452 | use_collect2=yes | |
3453 | extra_headers=math-68881.h | |
0a95276e | 3454 | float_format=m68k |
861bb6c1 JL |
3455 | ;; |
3456 | m68k-sun-mach*) | |
3457 | tm_file=m68k/sun3mach.h | |
3458 | use_collect2=yes | |
3459 | extra_headers=math-68881.h | |
0a95276e | 3460 | float_format=m68k |
861bb6c1 JL |
3461 | ;; |
3462 | m68k-sony-newsos3*) | |
3463 | if [ x$gas = xyes ] | |
3464 | then | |
3465 | tm_file=m68k/news3gas.h | |
3466 | else | |
3467 | tm_file=m68k/news3.h | |
3468 | fi | |
3469 | use_collect2=yes | |
3470 | extra_headers=math-68881.h | |
0a95276e | 3471 | float_format=m68k |
861bb6c1 JL |
3472 | ;; |
3473 | m68k-sony-bsd* | m68k-sony-newsos*) | |
3474 | if [ x$gas = xyes ] | |
3475 | then | |
3476 | tm_file=m68k/newsgas.h | |
3477 | else | |
3478 | tm_file=m68k/news.h | |
3479 | fi | |
3480 | use_collect2=yes | |
3481 | extra_headers=math-68881.h | |
0a95276e | 3482 | float_format=m68k |
861bb6c1 JL |
3483 | ;; |
3484 | m68k-next-nextstep2*) | |
3485 | tm_file=m68k/next21.h | |
f6cb0e63 | 3486 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
3487 | tmake_file=m68k/t-next |
3488 | xmake_file=m68k/x-next | |
3489 | extra_objs=nextstep.o | |
3490 | extra_headers=math-68881.h | |
3491 | use_collect2=yes | |
0a95276e | 3492 | float_format=m68k |
861bb6c1 JL |
3493 | ;; |
3494 | m68k-next-nextstep3*) | |
3495 | tm_file=m68k/next.h | |
f6cb0e63 | 3496 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
3497 | tmake_file=m68k/t-next |
3498 | xmake_file=m68k/x-next | |
3499 | extra_objs=nextstep.o | |
3500 | extra_headers=math-68881.h | |
0a95276e | 3501 | float_format=m68k |
861bb6c1 JL |
3502 | if [ x$enable_threads = xyes ]; then |
3503 | thread_file='mach' | |
3504 | fi | |
3505 | ;; | |
3506 | m68k-sun-sunos3*) | |
3507 | if [ x$with_fp = xno ] | |
3508 | then | |
3509 | tm_file=m68k/sun3n3.h | |
3510 | else | |
3511 | tm_file=m68k/sun3o3.h | |
0a95276e | 3512 | float_format=m68k |
861bb6c1 JL |
3513 | fi |
3514 | use_collect2=yes | |
3515 | extra_headers=math-68881.h | |
3516 | ;; | |
3517 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
3518 | if [ x$with_fp = xno ] | |
3519 | then | |
3520 | tm_file=m68k/sun3n.h | |
3521 | else | |
3522 | tm_file=m68k/sun3.h | |
0a95276e | 3523 | float_format=m68k |
861bb6c1 | 3524 | fi |
861bb6c1 JL |
3525 | use_collect2=yes |
3526 | extra_headers=math-68881.h | |
3527 | ;; | |
3528 | m68k-wrs-vxworks*) | |
3529 | tm_file=m68k/vxm68k.h | |
3530 | tmake_file=m68k/t-vxworks68 | |
3531 | extra_headers=math-68881.h | |
7cc34889 | 3532 | thread_file='vxworks' |
0a95276e | 3533 | float_format=m68k |
861bb6c1 JL |
3534 | ;; |
3535 | m68k-*-aout*) | |
3536 | tmake_file=m68k/t-m68kbare | |
3537 | tm_file="m68k/m68k-aout.h libgloss.h" | |
3538 | extra_headers=math-68881.h | |
0a95276e | 3539 | float_format=m68k |
861bb6c1 JL |
3540 | ;; |
3541 | m68k-*-coff*) | |
3542 | tmake_file=m68k/t-m68kbare | |
3543 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
3544 | extra_headers=math-68881.h | |
0a95276e | 3545 | float_format=m68k |
861bb6c1 JL |
3546 | ;; |
3547 | m68k-*-lynxos*) | |
3548 | if [ x$gas = xyes ] | |
3549 | then | |
3550 | tm_file=m68k/lynx.h | |
3551 | else | |
3552 | tm_file=m68k/lynx-ng.h | |
3553 | fi | |
3554 | xm_file=m68k/xm-lynx.h | |
3555 | xmake_file=x-lynx | |
3556 | tmake_file=m68k/t-lynx | |
3557 | extra_headers=math-68881.h | |
0a95276e | 3558 | float_format=m68k |
861bb6c1 | 3559 | ;; |
58600d24 | 3560 | m68k*-*-netbsd*) |
861bb6c1 | 3561 | tm_file=m68k/netbsd.h |
58600d24 | 3562 | xm_file="xm-netbsd.h ${xm_file}" |
be1ed94f | 3563 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3564 | fixincludes=fixinc.wrap |
861bb6c1 | 3565 | tmake_file=t-netbsd |
0a95276e | 3566 | float_format=m68k |
861bb6c1 JL |
3567 | ;; |
3568 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
f6cb0e63 JL |
3569 | xm_file="xm-alloca.h ${xm_file}" |
3570 | xm_defines=USG | |
861bb6c1 JL |
3571 | xmake_file=m68k/x-m68kv |
3572 | extra_parts="crtbegin.o crtend.o" | |
3573 | extra_headers=math-68881.h | |
0a95276e | 3574 | float_format=m68k |
861bb6c1 JL |
3575 | ;; |
3576 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
3577 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
3578 | xm_file="xm-alloca.h ${xm_file}" |
3579 | xm_defines=USG | |
861bb6c1 JL |
3580 | tmake_file=t-svr4 |
3581 | extra_parts="crtbegin.o crtend.o" | |
3582 | extra_headers=math-68881.h | |
0a95276e | 3583 | float_format=m68k |
861bb6c1 | 3584 | ;; |
956d6950 | 3585 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 3586 | # with a.out format |
861bb6c1 JL |
3587 | xmake_file=x-linux |
3588 | tm_file=m68k/linux-aout.h | |
3589 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
956d6950 | 3590 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 3591 | extra_headers=math-68881.h |
0a95276e | 3592 | float_format=m68k |
861bb6c1 JL |
3593 | gnu_ld=yes |
3594 | ;; | |
956d6950 | 3595 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
3596 | # with ELF format using the |
3597 | # GNU/Linux C library 5 | |
3598 | xmake_file=x-linux | |
861bb6c1 JL |
3599 | tm_file=m68k/linux.h |
3600 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
3601 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 3602 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 3603 | extra_headers=math-68881.h |
0a95276e | 3604 | float_format=m68k |
861bb6c1 JL |
3605 | gnu_ld=yes |
3606 | ;; | |
956d6950 | 3607 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
3608 | # with ELF format using glibc 2 |
3609 | # aka the GNU/Linux C library 6. | |
3610 | xmake_file=x-linux | |
861bb6c1 JL |
3611 | tm_file=m68k/linux.h |
3612 | tmake_file="t-linux m68k/t-linux" | |
3613 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 3614 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 3615 | extra_headers=math-68881.h |
0a95276e | 3616 | float_format=m68k |
861bb6c1 JL |
3617 | gnu_ld=yes |
3618 | if [ x$enable_threads = xyes ]; then | |
3619 | thread_file='posix' | |
3620 | fi | |
3621 | ;; | |
3622 | m68k-*-psos*) | |
3623 | tmake_file=m68k/t-m68kbare | |
3624 | tm_file=m68k/m68k-psos.h | |
3625 | extra_headers=math-68881.h | |
0a95276e | 3626 | float_format=m68k |
861bb6c1 JL |
3627 | ;; |
3628 | m68k-*-rtems*) | |
3629 | tmake_file="m68k/t-m68kbare t-rtems" | |
3630 | tm_file=m68k/rtems.h | |
3631 | extra_headers=math-68881.h | |
0a95276e | 3632 | float_format=m68k |
861bb6c1 JL |
3633 | ;; |
3634 | ||
3635 | m88k-dg-dgux*) | |
3636 | case $machine in | |
3637 | m88k-dg-dguxbcs*) | |
3638 | tm_file=m88k/dguxbcs.h | |
3639 | tmake_file=m88k/t-dguxbcs | |
3640 | ;; | |
3641 | *) | |
3642 | tm_file=m88k/dgux.h | |
3643 | tmake_file=m88k/t-dgux | |
3644 | ;; | |
3645 | esac | |
3646 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 JL |
3647 | xmake_file=m88k/x-dgux |
3648 | if [ x$gas = xyes ] | |
3649 | then | |
3650 | tmake_file=m88k/t-dgux-gas | |
3651 | fi | |
3652 | fixincludes=fixinc.dgux | |
3653 | ;; | |
3654 | m88k-dolphin-sysv3*) | |
3655 | tm_file=m88k/dolph.h | |
3656 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 3657 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 JL |
3658 | xmake_file=m88k/x-dolph |
3659 | if [ x$gas = xyes ] | |
3660 | then | |
3661 | tmake_file=m88k/t-m88k-gas | |
3662 | fi | |
3663 | ;; | |
3664 | m88k-tektronix-sysv3) | |
3665 | tm_file=m88k/tekXD88.h | |
3666 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 3667 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 JL |
3668 | xmake_file=m88k/x-tekXD88 |
3669 | if [ x$gas = xyes ] | |
3670 | then | |
3671 | tmake_file=m88k/t-m88k-gas | |
3672 | fi | |
3673 | ;; | |
3674 | m88k-*-aout*) | |
3675 | tm_file=m88k/m88k-aout.h | |
3676 | ;; | |
3677 | m88k-*-coff*) | |
3678 | tm_file=m88k/m88k-coff.h | |
3679 | tmake_file=m88k/t-bug | |
3680 | ;; | |
3681 | m88k-*-luna*) | |
3682 | tm_file=m88k/luna.h | |
3683 | extra_parts="crtbegin.o crtend.o" | |
3684 | if [ x$gas = xyes ] | |
3685 | then | |
3686 | tmake_file=m88k/t-luna-gas | |
3687 | else | |
3688 | tmake_file=m88k/t-luna | |
3689 | fi | |
3690 | ;; | |
3691 | m88k-*-sysv3*) | |
3692 | tm_file=m88k/sysv3.h | |
3693 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 3694 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 JL |
3695 | xmake_file=m88k/x-sysv3 |
3696 | if [ x$gas = xyes ] | |
3697 | then | |
3698 | tmake_file=m88k/t-m88k-gas | |
3699 | fi | |
3700 | ;; | |
3701 | m88k-*-sysv4*) | |
3702 | tm_file=m88k/sysv4.h | |
3703 | extra_parts="crtbegin.o crtend.o" | |
3704 | xmake_file=m88k/x-sysv4 | |
3705 | tmake_file=m88k/t-sysv4 | |
3706 | ;; | |
3707 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
3708 | tm_file=mips/iris6.h | |
3709 | xm_file=mips/xm-iris6.h | |
861bb6c1 JL |
3710 | fixincludes=fixinc.irix |
3711 | xmake_file=mips/x-iris6 | |
3712 | tmake_file=mips/t-iris6 | |
3713 | if [ x$enable_threads = xyes ]; then | |
3714 | thread_file='irix' | |
3715 | fi | |
3716 | ;; | |
98bd9f0f DB |
3717 | mips-wrs-vxworks) |
3718 | tm_file="mips/elf.h libgloss.h" | |
3719 | tmake_file=mips/t-ecoff | |
3720 | gas=yes | |
3721 | gnu_ld=yes | |
3722 | extra_parts="crtbegin.o crtend.o" | |
3723 | # thread_file='vxworks' | |
3724 | ;; | |
861bb6c1 | 3725 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 3726 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
3727 | xm_defines=USG |
3728 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
3729 | fixincludes=Makefile.in |
3730 | xmake_file=mips/x-iris | |
3731 | tmake_file=mips/t-cross64 | |
3732 | # See comment in mips/iris[56].h files. | |
3733 | use_collect2=yes | |
3734 | if [ x$enable_threads = xyes ]; then | |
3735 | thread_file='irix' | |
3736 | fi | |
3737 | ;; | |
3738 | mips-sni-sysv4) | |
3739 | if [ x$gas = xyes ] | |
3740 | then | |
3741 | if [ x$stabs = xyes ] | |
3742 | then | |
3743 | tm_file=mips/iris5gdb.h | |
3744 | else | |
f6cb0e63 | 3745 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
3746 | fi |
3747 | else | |
3748 | tm_file=mips/sni-svr4.h | |
3749 | fi | |
f6cb0e63 | 3750 | xm_defines=USG |
861bb6c1 JL |
3751 | xmake_file=mips/x-sni-svr4 |
3752 | tmake_file=mips/t-mips-gas | |
3753 | if [ x$gnu_ld != xyes ] | |
3754 | then | |
3755 | use_collect2=yes | |
3756 | fi | |
861bb6c1 JL |
3757 | ;; |
3758 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
3759 | if [ x$gas = xyes ] | |
3760 | then | |
f6cb0e63 | 3761 | tm_file="mips/iris5.h mips/iris5gas.h" |
861bb6c1 JL |
3762 | if [ x$stabs = xyes ] |
3763 | then | |
3764 | tm_file="${tm_file} dbx.h" | |
3765 | fi | |
3766 | else | |
3767 | tm_file=mips/iris5.h | |
3768 | fi | |
74c55ab0 JW |
3769 | xm_defines=USG |
3770 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
3771 | fixincludes=fixinc.irix |
3772 | xmake_file=mips/x-iris | |
3773 | # mips-tfile doesn't work yet | |
3774 | tmake_file=mips/t-mips-gas | |
3775 | # See comment in mips/iris5.h file. | |
3776 | use_collect2=yes | |
3777 | if [ x$enable_threads = xyes ]; then | |
3778 | thread_file='irix' | |
3779 | fi | |
3780 | ;; | |
3781 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 3782 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
861bb6c1 JL |
3783 | if [ x$stabs = xyes ]; then |
3784 | tm_file="${tm_file} dbx.h" | |
3785 | fi | |
f6cb0e63 | 3786 | xm_defines=USG |
861bb6c1 JL |
3787 | xmake_file=mips/x-iris |
3788 | if [ x$gas = xyes ] | |
3789 | then | |
3790 | tmake_file=mips/t-mips-gas | |
3791 | else | |
3792 | extra_passes="mips-tfile mips-tdump" | |
3793 | fi | |
3794 | if [ x$gnu_ld != xyes ] | |
3795 | then | |
3796 | use_collect2=yes | |
3797 | fi | |
3798 | if [ x$enable_threads = xyes ]; then | |
3799 | thread_file='irix' | |
3800 | fi | |
3801 | ;; | |
3802 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 3803 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
861bb6c1 JL |
3804 | if [ x$stabs = xyes ]; then |
3805 | tm_file="${tm_file} dbx.h" | |
3806 | fi | |
f6cb0e63 | 3807 | xm_defines=USG |
861bb6c1 JL |
3808 | xmake_file=mips/x-iris |
3809 | if [ x$gas = xyes ] | |
3810 | then | |
3811 | tmake_file=mips/t-mips-gas | |
3812 | else | |
3813 | extra_passes="mips-tfile mips-tdump" | |
3814 | fi | |
3815 | if [ x$gnu_ld != xyes ] | |
3816 | then | |
3817 | use_collect2=yes | |
3818 | fi | |
3819 | if [ x$enable_threads = xyes ]; then | |
3820 | thread_file='irix' | |
3821 | fi | |
3822 | ;; | |
3823 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 3824 | tm_file="mips/iris3.h ${tm_file}" |
861bb6c1 JL |
3825 | if [ x$stabs = xyes ]; then |
3826 | tm_file="${tm_file} dbx.h" | |
3827 | fi | |
f6cb0e63 | 3828 | xm_defines=USG |
861bb6c1 JL |
3829 | xmake_file=mips/x-iris3 |
3830 | if [ x$gas = xyes ] | |
3831 | then | |
3832 | tmake_file=mips/t-mips-gas | |
3833 | else | |
3834 | extra_passes="mips-tfile mips-tdump" | |
3835 | fi | |
3836 | if [ x$gnu_ld != xyes ] | |
3837 | then | |
3838 | use_collect2=yes | |
3839 | fi | |
3840 | ;; | |
3841 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 3842 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
3843 | xmake_file=mips/x-osfrose |
3844 | tmake_file=mips/t-osfrose | |
3845 | extra_objs=halfpic.o | |
3846 | use_collect2=yes | |
3847 | ;; | |
3848 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
3849 | tm_file=mips/dec-osf1.h | |
3850 | if [ x$stabs = xyes ]; then | |
3851 | tm_file="${tm_file} dbx.h" | |
3852 | fi | |
3853 | xmake_file=mips/x-dec-osf1 | |
3854 | if [ x$gas = xyes ] | |
3855 | then | |
3856 | tmake_file=mips/t-mips-gas | |
3857 | else | |
3858 | tmake_file=mips/t-ultrix | |
3859 | extra_passes="mips-tfile mips-tdump" | |
3860 | fi | |
3861 | if [ x$gnu_ld != xyes ] | |
3862 | then | |
3863 | use_collect2=yes | |
3864 | fi | |
3865 | ;; | |
3866 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
3867 | tm_file=mips/dec-bsd.h | |
3868 | fixincludes= | |
3869 | if [ x$gas = xyes ] | |
3870 | then | |
3871 | tmake_file=mips/t-mips-gas | |
3872 | else | |
3873 | tmake_file=mips/t-ultrix | |
3874 | extra_passes="mips-tfile mips-tdump" | |
3875 | fi | |
3876 | if [ x$gnu_ld != xyes ] | |
3877 | then | |
3878 | use_collect2=yes | |
3879 | fi | |
3880 | ;; | |
58600d24 | 3881 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 3882 | tm_file=mips/netbsd.h |
58600d24 | 3883 | xm_file="xm-netbsd.h ${xm_file}" |
be1ed94f | 3884 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3885 | fixincludes=fixinc.wrap |
861bb6c1 | 3886 | tmake_file=t-netbsd |
861bb6c1 JL |
3887 | ;; |
3888 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
f6cb0e63 | 3889 | tm_file="mips/news4.h ${tm_file}" |
861bb6c1 JL |
3890 | if [ x$stabs = xyes ]; then |
3891 | tm_file="${tm_file} dbx.h" | |
3892 | fi | |
3893 | if [ x$gas = xyes ] | |
3894 | then | |
3895 | tmake_file=mips/t-mips-gas | |
3896 | else | |
3897 | extra_passes="mips-tfile mips-tdump" | |
3898 | fi | |
3899 | if [ x$gnu_ld != xyes ] | |
3900 | then | |
3901 | use_collect2=yes | |
3902 | fi | |
3903 | xmake_file=mips/x-sony | |
3904 | ;; | |
3905 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
3906 | # That is based on svr4. | |
3907 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 3908 | tm_file="mips/news5.h ${tm_file}" |
861bb6c1 JL |
3909 | if [ x$stabs = xyes ]; then |
3910 | tm_file="${tm_file} dbx.h" | |
3911 | fi | |
f6cb0e63 JL |
3912 | xm_file="xm-siglist.h ${xm_file}" |
3913 | xm_defines=USG | |
861bb6c1 JL |
3914 | if [ x$gas = xyes ] |
3915 | then | |
3916 | tmake_file=mips/t-mips-gas | |
3917 | else | |
3918 | extra_passes="mips-tfile mips-tdump" | |
3919 | fi | |
3920 | if [ x$gnu_ld != xyes ] | |
3921 | then | |
3922 | use_collect2=yes | |
3923 | fi | |
3924 | ;; | |
3925 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 3926 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
861bb6c1 JL |
3927 | if [ x$stabs = xyes ]; then |
3928 | tm_file="${tm_file} dbx.h" | |
3929 | fi | |
f6cb0e63 JL |
3930 | xm_file="xm-siglist.h ${xm_file}" |
3931 | xm_defines=USG | |
861bb6c1 JL |
3932 | xmake_file=mips/x-sysv |
3933 | if [ x$gas = xyes ] | |
3934 | then | |
3935 | tmake_file=mips/t-mips-gas | |
3936 | extra_parts="crtbegin.o crtend.o" | |
3937 | else | |
3938 | tmake_file=mips/t-mips | |
3939 | extra_passes="mips-tfile mips-tdump" | |
3940 | fi | |
3941 | if [ x$gnu_ld != xyes ] | |
3942 | then | |
3943 | use_collect2=yes | |
3944 | fi | |
861bb6c1 JL |
3945 | ;; |
3946 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 3947 | tm_file="mips/ultrix.h ${tm_file}" |
861bb6c1 JL |
3948 | if [ x$stabs = xyes ]; then |
3949 | tm_file="${tm_file} dbx.h" | |
3950 | fi | |
3951 | xmake_file=mips/x-ultrix | |
3952 | if [ x$gas = xyes ] | |
3953 | then | |
3954 | tmake_file=mips/t-mips-gas | |
3955 | else | |
3956 | tmake_file=mips/t-ultrix | |
3957 | extra_passes="mips-tfile mips-tdump" | |
3958 | fi | |
3959 | if [ x$gnu_ld != xyes ] | |
3960 | then | |
3961 | use_collect2=yes | |
3962 | fi | |
3963 | ;; | |
3964 | mips-*-riscos[56789]bsd*) | |
3965 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
3966 | if [ x$stabs = xyes ]; then | |
3967 | tm_file="${tm_file} dbx.h" | |
3968 | fi | |
3969 | if [ x$gas = xyes ] | |
3970 | then | |
3971 | tmake_file=mips/t-bsd-gas | |
3972 | else | |
3973 | tmake_file=mips/t-bsd | |
3974 | extra_passes="mips-tfile mips-tdump" | |
3975 | fi | |
3976 | if [ x$gnu_ld != xyes ] | |
3977 | then | |
3978 | use_collect2=yes | |
3979 | fi | |
861bb6c1 JL |
3980 | ;; |
3981 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 3982 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
861bb6c1 JL |
3983 | if [ x$stabs = xyes ]; then |
3984 | tm_file="${tm_file} dbx.h" | |
3985 | fi | |
3986 | if [ x$gas = xyes ] | |
3987 | then | |
3988 | tmake_file=mips/t-bsd-gas | |
3989 | else | |
3990 | tmake_file=mips/t-bsd | |
3991 | extra_passes="mips-tfile mips-tdump" | |
3992 | fi | |
3993 | if [ x$gnu_ld != xyes ] | |
3994 | then | |
3995 | use_collect2=yes | |
3996 | fi | |
861bb6c1 JL |
3997 | ;; |
3998 | mips-*-riscos[56789]sysv4*) | |
3999 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
4000 | if [ x$stabs = xyes ]; then | |
4001 | tm_file="${tm_file} dbx.h" | |
4002 | fi | |
f6cb0e63 | 4003 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 JL |
4004 | xmake_file=mips/x-sysv |
4005 | if [ x$gas = xyes ] | |
4006 | then | |
4007 | tmake_file=mips/t-svr4-gas | |
4008 | else | |
4009 | tmake_file=mips/t-svr4 | |
4010 | extra_passes="mips-tfile mips-tdump" | |
4011 | fi | |
4012 | if [ x$gnu_ld != xyes ] | |
4013 | then | |
4014 | use_collect2=yes | |
4015 | fi | |
861bb6c1 JL |
4016 | ;; |
4017 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 4018 | tm_file="mips/svr4-4.h ${tm_file}" |
861bb6c1 JL |
4019 | if [ x$stabs = xyes ]; then |
4020 | tm_file="${tm_file} dbx.h" | |
4021 | fi | |
f6cb0e63 | 4022 | xm_defines=USG |
861bb6c1 JL |
4023 | xmake_file=mips/x-sysv |
4024 | if [ x$gas = xyes ] | |
4025 | then | |
4026 | tmake_file=mips/t-svr4-gas | |
4027 | else | |
4028 | tmake_file=mips/t-svr4 | |
4029 | extra_passes="mips-tfile mips-tdump" | |
4030 | fi | |
4031 | if [ x$gnu_ld != xyes ] | |
4032 | then | |
4033 | use_collect2=yes | |
4034 | fi | |
861bb6c1 JL |
4035 | ;; |
4036 | mips-*-riscos[56789]sysv*) | |
4037 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
4038 | if [ x$stabs = xyes ]; then | |
4039 | tm_file="${tm_file} dbx.h" | |
4040 | fi | |
f6cb0e63 | 4041 | xm_defines=USG |
861bb6c1 JL |
4042 | xmake_file=mips/x-sysv |
4043 | if [ x$gas = xyes ] | |
4044 | then | |
4045 | tmake_file=mips/t-svr3-gas | |
4046 | else | |
4047 | tmake_file=mips/t-svr3 | |
4048 | extra_passes="mips-tfile mips-tdump" | |
4049 | fi | |
4050 | if [ x$gnu_ld != xyes ] | |
4051 | then | |
4052 | use_collect2=yes | |
4053 | fi | |
861bb6c1 JL |
4054 | ;; |
4055 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 4056 | tm_file="mips/svr3-4.h ${tm_file}" |
861bb6c1 JL |
4057 | if [ x$stabs = xyes ]; then |
4058 | tm_file="${tm_file} dbx.h" | |
4059 | fi | |
f6cb0e63 | 4060 | xm_defines=USG |
861bb6c1 JL |
4061 | xmake_file=mips/x-sysv |
4062 | if [ x$gas = xyes ] | |
4063 | then | |
4064 | tmake_file=mips/t-svr3-gas | |
4065 | else | |
4066 | tmake_file=mips/t-svr3 | |
4067 | extra_passes="mips-tfile mips-tdump" | |
4068 | fi | |
4069 | if [ x$gnu_ld != xyes ] | |
4070 | then | |
4071 | use_collect2=yes | |
4072 | fi | |
861bb6c1 JL |
4073 | ;; |
4074 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4075 | tm_file=mips/mips-5.h | |
4076 | if [ x$stabs = xyes ]; then | |
4077 | tm_file="${tm_file} dbx.h" | |
4078 | fi | |
4079 | if [ x$gas = xyes ] | |
4080 | then | |
4081 | tmake_file=mips/t-mips-gas | |
4082 | else | |
4083 | extra_passes="mips-tfile mips-tdump" | |
4084 | fi | |
4085 | if [ x$gnu_ld != xyes ] | |
4086 | then | |
4087 | use_collect2=yes | |
4088 | fi | |
861bb6c1 JL |
4089 | ;; |
4090 | mips-*-gnu*) | |
4091 | ;; | |
4092 | mipsel-*-ecoff*) | |
4093 | tm_file=mips/ecoffl.h | |
4094 | if [ x$stabs = xyes ]; then | |
4095 | tm_file="${tm_file} dbx.h" | |
4096 | fi | |
4097 | tmake_file=mips/t-ecoff | |
4098 | ;; | |
4099 | mips-*-ecoff*) | |
1be12a4a | 4100 | tm_file="gofast.h mips/ecoff.h" |
861bb6c1 JL |
4101 | if [ x$stabs = xyes ]; then |
4102 | tm_file="${tm_file} dbx.h" | |
4103 | fi | |
4104 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
4105 | ;; |
4106 | mipsel-*-elf*) | |
4107 | tm_file="mips/elfl.h libgloss.h" | |
4108 | tmake_file=mips/t-ecoff | |
4109 | ;; | |
4110 | mips-*-elf*) | |
4111 | tm_file="mips/elf.h libgloss.h" | |
4112 | tmake_file=mips/t-ecoff | |
4113 | ;; | |
4114 | mips64el-*-elf*) | |
4115 | tm_file="mips/elfl64.h libgloss.h" | |
4116 | tmake_file=mips/t-ecoff | |
4117 | ;; | |
4118 | mips64orionel-*-elf*) | |
f6cb0e63 | 4119 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
861bb6c1 JL |
4120 | tmake_file=mips/t-ecoff |
4121 | ;; | |
4122 | mips64-*-elf*) | |
4123 | tm_file="mips/elf64.h libgloss.h" | |
4124 | tmake_file=mips/t-ecoff | |
4125 | ;; | |
4126 | mips64orion-*-elf*) | |
f6cb0e63 | 4127 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
861bb6c1 JL |
4128 | tmake_file=mips/t-ecoff |
4129 | ;; | |
4130 | mips64orion-*-rtems*) | |
6e9856ba | 4131 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
861bb6c1 JL |
4132 | tmake_file="mips/t-ecoff t-rtems" |
4133 | ;; | |
e9a25f70 JL |
4134 | mipstx39el-*-elf*) |
4135 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h" | |
09e4daf5 | 4136 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
4137 | ;; |
4138 | mipstx39-*-elf*) | |
4139 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h" | |
09e4daf5 | 4140 | tmake_file=mips/t-r3900 |
e9a25f70 | 4141 | ;; |
861bb6c1 JL |
4142 | mips-*-*) # Default MIPS RISC-OS 4.0. |
4143 | if [ x$stabs = xyes ]; then | |
4144 | tm_file="${tm_file} dbx.h" | |
4145 | fi | |
4146 | if [ x$gas = xyes ] | |
4147 | then | |
4148 | tmake_file=mips/t-mips-gas | |
4149 | else | |
4150 | extra_passes="mips-tfile mips-tdump" | |
4151 | fi | |
4152 | if [ x$gnu_ld != xyes ] | |
4153 | then | |
4154 | use_collect2=yes | |
4155 | fi | |
4156 | ;; | |
4157 | mn10200-*-*) | |
4158 | cpu_type=mn10200 | |
4159 | tm_file="mn10200/mn10200.h" | |
4160 | if [ x$stabs = xyes ] | |
4161 | then | |
4162 | tm_file="${tm_file} dbx.h" | |
4163 | fi | |
4164 | use_collect2=no | |
4165 | ;; | |
4166 | mn10300-*-*) | |
4167 | cpu_type=mn10300 | |
4168 | tm_file="mn10300/mn10300.h" | |
4169 | if [ x$stabs = xyes ] | |
4170 | then | |
4171 | tm_file="${tm_file} dbx.h" | |
4172 | fi | |
4173 | use_collect2=no | |
4174 | ;; | |
4175 | ns32k-encore-bsd*) | |
4176 | tm_file=ns32k/encore.h | |
4177 | use_collect2=yes | |
4178 | ;; | |
4179 | ns32k-sequent-bsd*) | |
4180 | tm_file=ns32k/sequent.h | |
4181 | use_collect2=yes | |
4182 | ;; | |
4183 | ns32k-tek6100-bsd*) | |
4184 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
4185 | use_collect2=yes |
4186 | ;; | |
4187 | ns32k-tek6200-bsd*) | |
4188 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
4189 | use_collect2=yes |
4190 | ;; | |
4191 | # This has not been updated to GCC 2. | |
4192 | # ns32k-ns-genix*) | |
f6cb0e63 | 4193 | # xm_defines=USG |
861bb6c1 JL |
4194 | # xmake_file=ns32k/x-genix |
4195 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
4196 | # use_collect2=yes |
4197 | # ;; | |
4198 | ns32k-merlin-*) | |
4199 | tm_file=ns32k/merlin.h | |
4200 | use_collect2=yes | |
4201 | ;; | |
4202 | ns32k-pc532-mach*) | |
4203 | tm_file=ns32k/pc532-mach.h | |
4204 | use_collect2=yes | |
4205 | ;; | |
4206 | ns32k-pc532-minix*) | |
4207 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
4208 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
4209 | xm_defines=USG | |
861bb6c1 JL |
4210 | use_collect2=yes |
4211 | ;; | |
58600d24 | 4212 | ns32k-*-netbsd*) |
861bb6c1 | 4213 | tm_file=ns32k/netbsd.h |
58600d24 | 4214 | xm_file="xm-netbsd.h ${xm_file}" |
be1ed94f | 4215 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4216 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4217 | tmake_file=t-netbsd |
4218 | ;; | |
4219 | pdp11-*-bsd) | |
4220 | tm_file="${tm_file} pdp11/2bsd.h" | |
4221 | ;; | |
4222 | pdp11-*-*) | |
4223 | ;; | |
4224 | pyramid-*-*) | |
4225 | cpu_type=pyr | |
4226 | xmake_file=pyr/x-pyr | |
4227 | use_collect2=yes | |
4228 | ;; | |
4229 | romp-*-aos*) | |
4230 | use_collect2=yes | |
4231 | ;; | |
4232 | romp-*-mach*) | |
4233 | xmake_file=romp/x-mach | |
4234 | use_collect2=yes | |
4235 | ;; | |
c55dcc7d FF |
4236 | powerpc-*-beos*) |
4237 | cpu_type=rs6000 | |
4238 | tm_file=rs6000/beos.h | |
4239 | xm_file=rs6000/xm-beos.h | |
4240 | tmake_file=rs6000/t-beos | |
4241 | xmake_file=rs6000/x-beos | |
4242 | ;; | |
861bb6c1 JL |
4243 | powerpc-*-sysv* | powerpc-*-elf*) |
4244 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
4245 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4246 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4247 | extra_headers=ppc-asm.h |
4248 | if [ x$gas = xyes ] | |
4249 | then | |
4250 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4251 | else | |
4252 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4253 | fi | |
4254 | xmake_file=rs6000/x-sysv4 | |
4255 | ;; | |
4256 | powerpc-*-eabiaix*) | |
4257 | tm_file=rs6000/eabiaix.h | |
4258 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4259 | fixincludes=Makefile.in | |
4260 | extra_headers=ppc-asm.h | |
4261 | ;; | |
4262 | powerpc-*-eabisim*) | |
4263 | tm_file=rs6000/eabisim.h | |
4264 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4265 | fixincludes=Makefile.in | |
4266 | extra_headers=ppc-asm.h | |
4267 | ;; | |
4268 | powerpc-*-eabi*) | |
4269 | tm_file=rs6000/eabi.h | |
4270 | if [ x$gas = xyes ] | |
4271 | then | |
4272 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4273 | else | |
4274 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4275 | fi | |
4276 | fixincludes=Makefile.in | |
4277 | extra_headers=ppc-asm.h | |
4278 | ;; | |
4279 | powerpc-*-rtems*) | |
4280 | tm_file=rs6000/rtems.h | |
4281 | if [ x$gas = xyes ] | |
4282 | then | |
4283 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
4284 | else | |
4285 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
4286 | fi | |
4287 | fixincludes=Makefile.in | |
4288 | extra_headers=ppc-asm.h | |
4289 | ;; | |
ce514f57 FS |
4290 | powerpc-*-linux-gnulibc1) |
4291 | tm_file=rs6000/linux.h | |
4292 | xm_file=rs6000/xm-sysv4.h | |
4293 | out_file=rs6000/rs6000.c | |
4294 | if [ x$gas = xyes ] | |
4295 | then | |
4296 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
4297 | else | |
4298 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
4299 | fi | |
4300 | xmake_file=x-linux | |
4301 | fixincludes=Makefile.in | |
4302 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
4303 | extra_headers=ppc-asm.h | |
4304 | if [ x$enable_threads = xyes ]; then | |
4305 | thread_file='posix' | |
4306 | fi | |
4307 | ;; | |
861bb6c1 JL |
4308 | powerpc-*-linux-gnu*) |
4309 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
4310 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4311 | xm_defines="USG ${xm_defines}" | |
861bb6c1 JL |
4312 | out_file=rs6000/rs6000.c |
4313 | if [ x$gas = xyes ] | |
4314 | then | |
4315 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
4316 | else | |
4317 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
4318 | fi | |
4319 | xmake_file=x-linux | |
4320 | fixincludes=Makefile.in | |
4321 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
4322 | extra_headers=ppc-asm.h | |
4323 | if [ x$enable_threads = xyes ]; then | |
4324 | thread_file='posix' | |
4325 | fi | |
4326 | ;; | |
7cc34889 | 4327 | powerpc-wrs-vxworks*) |
861bb6c1 | 4328 | cpu_type=rs6000 |
f6cb0e63 JL |
4329 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4330 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4331 | tm_file=rs6000/vxppc.h |
4332 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4333 | extra_headers=ppc-asm.h | |
7cc34889 | 4334 | thread_file='vxworks' |
861bb6c1 JL |
4335 | ;; |
4336 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
4337 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
4338 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4339 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4340 | if [ x$gas = xyes ] |
4341 | then | |
4342 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4343 | else | |
4344 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4345 | fi | |
4346 | xmake_file=rs6000/x-sysv4 | |
4347 | extra_headers=ppc-asm.h | |
4348 | ;; | |
4349 | powerpcle-*-eabisim*) | |
4350 | tm_file=rs6000/eabilesim.h | |
4351 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4352 | fixincludes=Makefile.in | |
4353 | extra_headers=ppc-asm.h | |
4354 | ;; | |
4355 | powerpcle-*-eabi*) | |
4356 | tm_file=rs6000/eabile.h | |
4357 | if [ x$gas = xyes ] | |
4358 | then | |
4359 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4360 | else | |
4361 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4362 | fi | |
4363 | fixincludes=Makefile.in | |
4364 | extra_headers=ppc-asm.h | |
4365 | ;; | |
4366 | powerpcle-*-winnt* ) | |
4367 | tm_file=rs6000/win-nt.h | |
4368 | tmake_file=rs6000/t-winnt | |
4369 | # extra_objs=pe.o | |
4370 | fixincludes=Makefile.in | |
4371 | if [ x$enable_threads = xyes ]; then | |
4372 | thread_file='win32' | |
4373 | fi | |
4374 | extra_headers=ppc-asm.h | |
4375 | ;; | |
4376 | powerpcle-*-pe | powerpcle-*-cygwin32) | |
4377 | tm_file=rs6000/cygwin32.h | |
f6cb0e63 | 4378 | xm_file="rs6000/xm-cygwin32.h ${xm_file}" |
861bb6c1 JL |
4379 | tmake_file=rs6000/t-winnt |
4380 | xmake_file=rs6000/x-cygwin32 | |
4381 | # extra_objs=pe.o | |
4382 | fixincludes=Makefile.in | |
4383 | if [ x$enable_threads = xyes ]; then | |
4384 | thread_file='win32' | |
4385 | fi | |
4386 | exeext=.exe | |
4387 | extra_headers=ppc-asm.h | |
4388 | ;; | |
4389 | powerpcle-*-solaris2*) | |
4390 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
4391 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4392 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4393 | if [ x$gas = xyes ] |
4394 | then | |
4395 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4396 | else | |
4397 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4398 | fi | |
4399 | xmake_file=rs6000/x-sysv4 | |
f6cb0e63 JL |
4400 | case $machine in |
4401 | *-*-solaris2.[0-4]) | |
4402 | fixincludes=fixinc.svr4;; | |
4403 | *) | |
32f65aa0 | 4404 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 4405 | esac |
861bb6c1 JL |
4406 | extra_headers=ppc-asm.h |
4407 | ;; | |
4408 | rs6000-ibm-aix3.[01]*) | |
4409 | tm_file=rs6000/aix31.h | |
4410 | xmake_file=rs6000/x-aix31 | |
4411 | use_collect2=yes | |
4412 | ;; | |
4413 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
4414 | tm_file=rs6000/aix3newas.h | |
4415 | if [ x$host != x$target ] | |
4416 | then | |
4417 | tmake_file=rs6000/t-xnewas | |
4418 | else | |
4419 | tmake_file=rs6000/t-newas | |
4420 | fi | |
4421 | use_collect2=yes | |
4422 | ;; | |
0a95276e | 4423 | rs6000-ibm-aix4.[12].* | powerpc-ibm-aix4.[12].*) |
861bb6c1 JL |
4424 | tm_file=rs6000/aix41.h |
4425 | if [ x$host != x$target ] | |
4426 | then | |
4427 | tmake_file=rs6000/t-xnewas | |
4428 | else | |
4429 | tmake_file=rs6000/t-newas | |
4430 | fi | |
0a95276e JL |
4431 | xmake_file=rs6000/x-aix41 |
4432 | use_collect2=yes | |
4433 | ;; | |
4434 | rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*) | |
4435 | tm_file=rs6000/aix43.h | |
4436 | if [ x$host != x$target ] | |
4437 | then | |
4438 | tmake_file=rs6000/t-xaix43 | |
4439 | else | |
4440 | tmake_file=rs6000/t-aix43 | |
4441 | fi | |
4442 | xmake_file=rs6000/x-aix43 | |
4443 | use_collect2=yes | |
4444 | ;; | |
4445 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
4446 | tm_file=rs6000/aix43.h | |
4447 | if [ x$host != x$target ] | |
4448 | then | |
4449 | tmake_file=rs6000/t-xaix43 | |
4450 | else | |
4451 | tmake_file=rs6000/t-aix43 | |
4452 | fi | |
4453 | xmake_file=rs6000/x-aix43 | |
861bb6c1 JL |
4454 | use_collect2=yes |
4455 | ;; | |
4456 | rs6000-ibm-aix*) | |
4457 | use_collect2=yes | |
4458 | ;; | |
4459 | rs6000-bull-bosx) | |
4460 | use_collect2=yes | |
4461 | ;; | |
4462 | rs6000-*-mach*) | |
4463 | tm_file=rs6000/mach.h | |
f6cb0e63 | 4464 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
4465 | xmake_file=rs6000/x-mach |
4466 | use_collect2=yes | |
4467 | ;; | |
4468 | rs6000-*-lynxos*) | |
4469 | tm_file=rs6000/lynx.h | |
4470 | xm_file=rs6000/xm-lynx.h | |
4471 | tmake_file=rs6000/t-rs6000 | |
4472 | xmake_file=rs6000/x-lynx | |
4473 | use_collect2=yes | |
4474 | ;; | |
4475 | sh-*-elf*) | |
4476 | tm_file=sh/elf.h | |
4477 | float_format=sh | |
4478 | ;; | |
b098f56d JS |
4479 | sh-*-rtemself*) |
4480 | tmake_file="sh/t-sh t-rtems" | |
4481 | tm_file=sh/rtemself.h | |
4482 | float_format=sh | |
4483 | ;; | |
5d84b57e JS |
4484 | sh-*-rtems*) |
4485 | tmake_file="sh/t-sh t-rtems" | |
4486 | tm_file=sh/rtems.h | |
4487 | float_format=sh | |
4488 | ;; | |
861bb6c1 JL |
4489 | sh-*-*) |
4490 | float_format=sh | |
4491 | ;; | |
4492 | sparc-tti-*) | |
4493 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
4494 | xm_file="xm-alloca.h ${xm_file}" |
4495 | xm_defines=USG | |
861bb6c1 JL |
4496 | ;; |
4497 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
4498 | tm_file=sparc/vxsparc.h | |
4499 | tmake_file=sparc/t-vxsparc | |
4500 | use_collect2=yes | |
7cc34889 | 4501 | thread_file='vxworks' |
861bb6c1 JL |
4502 | ;; |
4503 | sparc-*-aout*) | |
4504 | tmake_file=sparc/t-sparcbare | |
4505 | tm_file="sparc/aout.h libgloss.h" | |
4506 | ;; | |
4507 | sparc-*-netbsd*) | |
4508 | tm_file=sparc/netbsd.h | |
58600d24 | 4509 | xm_file="xm-netbsd.h ${xm_file}" |
be1ed94f | 4510 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4511 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4512 | tmake_file=t-netbsd |
4513 | ;; | |
4514 | sparc-*-bsd*) | |
4515 | tm_file=sparc/bsd.h | |
4516 | ;; | |
ac52b80b DE |
4517 | sparc-*-elf*) |
4518 | tm_file=sparc/elf.h | |
4519 | tmake_file=sparc/t-elf | |
4520 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4521 | #float_format=i128 | |
4522 | float_format=i64 | |
4523 | ;; | |
956d6950 | 4524 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 4525 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
4526 | tm_file=sparc/linux-aout.h |
4527 | xmake_file=x-linux | |
4528 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
4529 | gnu_ld=yes |
4530 | ;; | |
956d6950 | 4531 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 4532 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 4533 | xmake_file=x-linux |
861bb6c1 | 4534 | tm_file=sparc/linux.h |
3e88bbdb | 4535 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 JL |
4536 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
4537 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
4538 | gnu_ld=yes |
4539 | ;; | |
956d6950 | 4540 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 4541 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 4542 | xmake_file=x-linux |
861bb6c1 | 4543 | tm_file=sparc/linux.h |
3e88bbdb | 4544 | tmake_file="t-linux" |
861bb6c1 JL |
4545 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
4546 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
4547 | gnu_ld=yes |
4548 | if [ x$enable_threads = xyes ]; then | |
4549 | thread_file='posix' | |
4550 | fi | |
4551 | ;; | |
4552 | sparc-*-lynxos*) | |
4553 | if [ x$gas = xyes ] | |
4554 | then | |
4555 | tm_file=sparc/lynx.h | |
4556 | else | |
4557 | tm_file=sparc/lynx-ng.h | |
4558 | fi | |
4559 | xm_file=sparc/xm-lynx.h | |
4560 | tmake_file=sparc/t-sunos41 | |
4561 | xmake_file=x-lynx | |
4562 | ;; | |
4563 | sparc-*-rtems*) | |
4564 | tmake_file="sparc/t-sparcbare t-rtems" | |
4565 | tm_file=sparc/rtems.h | |
4566 | ;; | |
4567 | sparc-*-solaris2*) | |
0a9bdce3 PE |
4568 | if [ x$gnu_ld = xyes ] |
4569 | then | |
4570 | tm_file=sparc/sol2.h | |
4571 | else | |
4572 | tm_file=sparc/sol2-sld.h | |
4573 | fi | |
0b3d64d2 JL |
4574 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
4575 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4576 | tmake_file=sparc/t-sol2 |
4577 | xmake_file=sparc/x-sysv4 | |
4578 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
4579 | case $machine in |
4580 | *-*-solaris2.[0-4]) | |
4581 | fixincludes=fixinc.svr4;; | |
4582 | *) | |
32f65aa0 | 4583 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 4584 | esac |
e9a25f70 | 4585 | float_format=i128 |
f24af81b TT |
4586 | if [ x${enable_threads} = x ]; then |
4587 | enable_threads=$have_pthread_h | |
4588 | if [ x${enable_threads} = x ]; then | |
4589 | enable_threads=$have_thread_h | |
4590 | fi | |
4591 | fi | |
4592 | if [ x${enable_threads} = xyes ]; then | |
4593 | if [ x${have_pthread_h} = xyes ]; then | |
4594 | thread_file='posix' | |
4595 | else | |
861bb6c1 | 4596 | thread_file='solaris' |
f24af81b | 4597 | fi |
861bb6c1 JL |
4598 | fi |
4599 | ;; | |
4600 | sparc-*-sunos4.0*) | |
4601 | tm_file=sparc/sunos4.h | |
4602 | tmake_file=sparc/t-sunos40 | |
4603 | use_collect2=yes | |
4604 | ;; | |
4605 | sparc-*-sunos4*) | |
4606 | tm_file=sparc/sunos4.h | |
4607 | tmake_file=sparc/t-sunos41 | |
4608 | use_collect2=yes | |
ca55abae JM |
4609 | if [ x$gas = xyes ]; then |
4610 | tm_file="${tm_file} sparc/sun4gas.h" | |
4611 | fi | |
861bb6c1 JL |
4612 | ;; |
4613 | sparc-*-sunos3*) | |
4614 | tm_file=sparc/sun4o3.h | |
4615 | use_collect2=yes | |
4616 | ;; | |
4617 | sparc-*-sysv4*) | |
4618 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
4619 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
4620 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4621 | tmake_file=t-svr4 |
4622 | xmake_file=sparc/x-sysv4 | |
4623 | extra_parts="crtbegin.o crtend.o" | |
4624 | ;; | |
4625 | sparc-*-vxsim*) | |
f5963e61 JL |
4626 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
4627 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4628 | tm_file=sparc/vxsim.h |
4629 | tmake_file=sparc/t-vxsparc | |
4630 | xmake_file=sparc/x-sysv4 | |
4631 | ;; | |
4632 | sparclet-*-aout*) | |
4633 | tm_file="sparc/splet.h libgloss.h" | |
4634 | tmake_file=sparc/t-splet | |
4635 | ;; | |
4636 | sparclite-*-coff*) | |
4637 | tm_file="sparc/litecoff.h libgloss.h" | |
4638 | tmake_file=sparc/t-sparclite | |
4639 | ;; | |
4640 | sparclite-*-aout*) | |
4641 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
4642 | tmake_file=sparc/t-sparclite | |
4643 | ;; | |
4644 | sparc64-*-aout*) | |
4645 | tmake_file=sparc/t-sp64 | |
4646 | tm_file=sparc/sp64-aout.h | |
4647 | ;; | |
4648 | sparc64-*-elf*) | |
4649 | tmake_file=sparc/t-sp64 | |
4650 | tm_file=sparc/sp64-elf.h | |
4651 | extra_parts="crtbegin.o crtend.o" | |
4652 | ;; | |
956d6950 | 4653 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
26b551af DE |
4654 | tmake_file=sparc/t-sp64 |
4655 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" | |
4656 | tm_file=sparc/linux64.h | |
4657 | xmake_file=x-linux | |
956d6950 | 4658 | fixincludes=Makefile.in # The headers are ok already. |
26b551af DE |
4659 | gnu_ld=yes |
4660 | ;; | |
861bb6c1 JL |
4661 | # This hasn't been upgraded to GCC 2. |
4662 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
4663 | # tm_file=tahoe/harris.h | |
4664 | # ;; | |
4665 | # tahoe-*-bsd*) # tahoe running BSD | |
4666 | # ;; | |
e98e406f NC |
4667 | thumb-*-coff* | thumbel-*-coff*) |
4668 | tm_file=arm/tcoff.h | |
4669 | out_file=arm/thumb.c | |
4670 | xm_file=arm/xm-thumb.h | |
4671 | md_file=arm/thumb.md | |
4672 | tmake_file=arm/t-thumb | |
3ecb16a2 | 4673 | fixincludes=Makefile.in # There is nothing to fix |
e98e406f | 4674 | ;; |
861bb6c1 JL |
4675 | # This hasn't been upgraded to GCC 2. |
4676 | # tron-*-*) | |
4677 | # cpu_type=gmicro | |
4678 | # use_collect2=yes | |
4679 | # ;; | |
f84271d9 JL |
4680 | v850-*-*) |
4681 | cpu_type=v850 | |
4682 | tm_file="v850/v850.h" | |
4683 | xm_file="v850/xm-v850.h" | |
62db76ee | 4684 | tmake_file=v850/t-v850 |
f84271d9 JL |
4685 | if [ x$stabs = xyes ] |
4686 | then | |
4687 | tm_file="${tm_file} dbx.h" | |
4688 | fi | |
4689 | use_collect2=no | |
4690 | ;; | |
861bb6c1 JL |
4691 | vax-*-bsd*) # vaxen running BSD |
4692 | use_collect2=yes | |
4693 | float_format=vax | |
4694 | ;; | |
4695 | vax-*-sysv*) # vaxen running system V | |
4696 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 4697 | xm_defines=USG |
861bb6c1 JL |
4698 | float_format=vax |
4699 | ;; | |
4700 | vax-*-netbsd*) | |
4701 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
58600d24 | 4702 | xm_file="xm-netbsd.h ${xm_file}" |
be1ed94f | 4703 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4704 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4705 | tmake_file=t-netbsd |
4706 | float_format=vax | |
4707 | ;; | |
4708 | vax-*-ultrix*) # vaxen running ultrix | |
4709 | tm_file="${tm_file} vax/ultrix.h" | |
4710 | use_collect2=yes | |
4711 | float_format=vax | |
4712 | ;; | |
4713 | vax-*-vms*) # vaxen running VMS | |
4714 | xm_file=vax/xm-vms.h | |
4715 | tm_file=vax/vms.h | |
4716 | float_format=vax | |
4717 | ;; | |
4718 | vax-*-*) # vax default entry | |
4719 | float_format=vax | |
4720 | ;; | |
4721 | we32k-att-sysv*) | |
4722 | xm_file="${xm_file} xm-svr3" | |
4723 | use_collect2=yes | |
4724 | ;; | |
4725 | *) | |
4726 | echo "Configuration $machine not supported" 1>&2 | |
4727 | exit 1 | |
4728 | ;; | |
4729 | esac | |
4730 | ||
4731 | case $machine in | |
4732 | *-*-linux-gnu*) | |
f6cb0e63 | 4733 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
4734 | *-*-gnu*) |
4735 | # On the GNU system, the setup is just about the same on | |
4736 | # each different CPU. The specific machines that GNU | |
4737 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 4738 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
4739 | tm_file=${cpu_type}/gnu.h |
4740 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
4741 | # GNU always uses ELF. | |
4742 | elf=yes | |
4743 | # GNU tools are the only tools. | |
4744 | gnu_ld=yes | |
4745 | gas=yes | |
4746 | # On GNU, the headers are already okay. | |
4747 | fixincludes=Makefile.in | |
4748 | xmake_file=x-linux # These details are the same as Linux. | |
4749 | tmake_file=t-gnu # These are not. | |
4750 | ;; | |
4751 | *-*-sysv4*) | |
4752 | fixincludes=fixinc.svr4 | |
4753 | xmake_try_sysv=x-sysv | |
861bb6c1 JL |
4754 | install_headers_dir=install-headers-cpio |
4755 | ;; | |
4756 | *-*-sysv*) | |
861bb6c1 JL |
4757 | install_headers_dir=install-headers-cpio |
4758 | ;; | |
4759 | esac | |
4760 | ||
f6cb0e63 | 4761 | # Distinguish i[34567]86 |
861bb6c1 JL |
4762 | # Also, do not run mips-tfile on MIPS if using gas. |
4763 | # Process --with-cpu= for PowerPC/rs6000 | |
4764 | target_cpu_default2= | |
4765 | case $machine in | |
4766 | i486-*-*) | |
4767 | target_cpu_default2=1 | |
4768 | ;; | |
4769 | i586-*-*) | |
4770 | target_cpu_default2=2 | |
4771 | ;; | |
f6cb0e63 | 4772 | i686-*-* | i786-*-*) |
861bb6c1 JL |
4773 | target_cpu_default2=3 |
4774 | ;; | |
4775 | alpha*-*-*) | |
4776 | case $machine in | |
e9a25f70 JL |
4777 | alphaev6*) |
4778 | target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX" | |
4779 | ;; | |
4780 | alphapca56*) | |
fbb5ed67 | 4781 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 4782 | ;; |
861bb6c1 | 4783 | alphaev56*) |
e9a25f70 | 4784 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
4785 | ;; |
4786 | alphaev5*) | |
4787 | target_cpu_default2="MASK_CPU_EV5" | |
4788 | ;; | |
4789 | esac | |
4790 | ||
4791 | if [ x$gas = xyes ] | |
4792 | then | |
c43143f6 | 4793 | if [ "$target_cpu_default2" = "" ] |
861bb6c1 JL |
4794 | then |
4795 | target_cpu_default2="MASK_GAS" | |
4796 | else | |
4797 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
4798 | fi | |
4799 | fi | |
4800 | ;; | |
956d6950 JL |
4801 | arm*-*-*) |
4802 | case "x$with_cpu" in | |
4803 | x) | |
4804 | # The most generic | |
4805 | target_cpu_default2="TARGET_CPU_generic" | |
4806 | ;; | |
4807 | ||
4808 | # Distinguish cores, and major variants | |
4809 | # arm7m doesn't exist, but D & I don't affect code | |
4810 | xarm23678 | xarm250 | xarm67010 \ | |
4811 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
4812 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4813 | | xstrongarm | xstrongarm110) | |
4814 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
4815 | ;; | |
4816 | ||
4817 | xyes | xno) | |
4818 | echo "--with-cpu must be passed a value" 1>&2 | |
4819 | exit 1 | |
4820 | ;; | |
4821 | ||
4822 | *) | |
4823 | if [ x$pass2done = xyes ] | |
4824 | then | |
4825 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
4826 | exit 1 | |
4827 | fi | |
4828 | ;; | |
4829 | esac | |
4830 | ;; | |
4831 | ||
861bb6c1 JL |
4832 | mips*-*-ecoff* | mips*-*-elf*) |
4833 | if [ x$gas = xyes ] | |
4834 | then | |
4835 | if [ x$gnu_ld = xyes ] | |
4836 | then | |
4837 | target_cpu_default2=20 | |
4838 | else | |
4839 | target_cpu_default2=16 | |
4840 | fi | |
4841 | fi | |
4842 | ;; | |
4843 | mips*-*-*) | |
4844 | if [ x$gas = xyes ] | |
4845 | then | |
4846 | target_cpu_default2=16 | |
4847 | fi | |
4848 | ;; | |
4849 | powerpc*-*-* | rs6000-*-*) | |
4850 | case "x$with_cpu" in | |
4851 | x) | |
4852 | ;; | |
4853 | ||
4854 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
4855 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
4856 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
4857 | | x403 | x505 | x801 | x821 | x823 | x860) | |
f24b370a | 4858 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
4859 | ;; |
4860 | ||
4861 | xyes | xno) | |
4862 | echo "--with-cpu must be passed a value" 1>&2 | |
4863 | exit 1 | |
4864 | ;; | |
4865 | ||
4866 | *) | |
956d6950 JL |
4867 | if [ x$pass2done = xyes ] |
4868 | then | |
4869 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
4870 | exit 1 | |
4871 | fi | |
861bb6c1 JL |
4872 | ;; |
4873 | esac | |
4874 | ;; | |
4875 | sparc*-*-*) | |
4876 | case ".$with_cpu" in | |
4877 | .) | |
4878 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
4879 | ;; | |
ac52b80b | 4880 | .supersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
4881 | target_cpu_default2="TARGET_CPU_$with_cpu" |
4882 | ;; | |
4883 | *) | |
956d6950 JL |
4884 | if [ x$pass2done = xyes ] |
4885 | then | |
4886 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
4887 | exit 1 | |
4888 | fi | |
861bb6c1 JL |
4889 | ;; |
4890 | esac | |
4891 | ;; | |
4892 | esac | |
4893 | ||
c43143f6 | 4894 | if [ "$target_cpu_default2" != "" ] |
861bb6c1 | 4895 | then |
c43143f6 | 4896 | if [ "$target_cpu_default" != "" ] |
861bb6c1 JL |
4897 | then |
4898 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
4899 | else | |
4900 | target_cpu_default=$target_cpu_default2 | |
4901 | fi | |
4902 | fi | |
4903 | ||
4904 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
4905 | # Actually, there is now; GNU ld doesn't handle the EH info or |
4906 | # collecting for shared libraries. | |
ca8c3b37 JM |
4907 | #case x$gnu_ld in |
4908 | #xyes) | |
4909 | # use_collect2= | |
4910 | # ;; | |
4911 | #esac | |
861bb6c1 JL |
4912 | |
4913 | # Save data on machine being used to compile GCC in build_xm_file. | |
4914 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
4915 | if [ x$pass1done = x ] | |
4916 | then | |
4917 | if [ x"$xm_file" = x ] | |
4918 | then build_xm_file=$cpu_type/xm-$cpu_type.h | |
4919 | else build_xm_file=$xm_file | |
4920 | fi | |
f6cb0e63 | 4921 | build_xm_defines=$xm_defines |
861bb6c1 JL |
4922 | build_install_headers_dir=$install_headers_dir |
4923 | build_exeext=$exeext | |
4924 | pass1done=yes | |
4925 | else | |
4926 | if [ x$pass2done = x ] | |
4927 | then | |
4928 | if [ x"$xm_file" = x ] | |
4929 | then host_xm_file=$cpu_type/xm-$cpu_type.h | |
4930 | else host_xm_file=$xm_file | |
4931 | fi | |
f6cb0e63 | 4932 | host_xm_defines=$xm_defines |
861bb6c1 JL |
4933 | if [ x"$xmake_file" = x ] |
4934 | then xmake_file=$cpu_type/x-$cpu_type | |
4935 | fi | |
4936 | host_xmake_file="$xmake_file" | |
4937 | host_truncate_target=$truncate_target | |
4938 | host_extra_gcc_objs=$extra_gcc_objs | |
4939 | host_extra_objs=$extra_host_objs | |
6e26218f | 4940 | host_exeext=$exeext |
861bb6c1 JL |
4941 | pass2done=yes |
4942 | fi | |
4943 | fi | |
4944 | done | |
4945 | ||
4946 | extra_objs="${host_extra_objs} ${extra_objs}" | |
4947 | ||
4948 | # Default the target-machine variables that were not explicitly set. | |
4949 | if [ x"$tm_file" = x ] | |
4950 | then tm_file=$cpu_type/$cpu_type.h; fi | |
4951 | ||
4952 | if [ x$extra_headers = x ] | |
4953 | then extra_headers=; fi | |
4954 | ||
4955 | if [ x"$xm_file" = x ] | |
4956 | then xm_file=$cpu_type/xm-$cpu_type.h; fi | |
4957 | ||
e98e406f NC |
4958 | if [ x$md_file = x ] |
4959 | then md_file=$cpu_type/$cpu_type.md; fi | |
861bb6c1 JL |
4960 | |
4961 | if [ x$out_file = x ] | |
4962 | then out_file=$cpu_type/$cpu_type.c; fi | |
4963 | ||
4964 | if [ x"$tmake_file" = x ] | |
4965 | then tmake_file=$cpu_type/t-$cpu_type | |
4966 | fi | |
4967 | ||
4968 | if [ x$float_format = x ] | |
4969 | then float_format=i64 | |
4970 | fi | |
4971 | ||
128f7968 RH |
4972 | if [ x$enable_haifa = x ] |
4973 | then | |
4974 | case $target in | |
e85b2d66 | 4975 | alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
4976 | enable_haifa=yes;; |
4977 | esac | |
4978 | fi | |
4979 | ||
861bb6c1 JL |
4980 | # Say what files are being used for the output code and MD file. |
4981 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
4982 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
4983 | ||
4984 | count=a | |
4985 | for f in $tm_file; do | |
4986 | count=${count}x | |
4987 | done | |
4988 | if [ $count = ax ]; then | |
4989 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." | |
4990 | else | |
4991 | echo "Using the following target machine macro files:" | |
4992 | for f in $tm_file; do | |
4993 | echo " $srcdir/config/$f" | |
4994 | done | |
4995 | fi | |
4996 | ||
4997 | count=a | |
4998 | for f in $host_xm_file; do | |
4999 | count=${count}x | |
5000 | done | |
5001 | if [ $count = ax ]; then | |
5002 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." | |
5003 | else | |
5004 | echo "Using the following host machine macro files:" | |
5005 | for f in $host_xm_file; do | |
5006 | echo " $srcdir/config/$f" | |
5007 | done | |
5008 | fi | |
5009 | ||
5010 | if [ "$host_xm_file" != "$build_xm_file" ]; then | |
5011 | count=a | |
5012 | for f in $build_xm_file; do | |
5013 | count=${count}x | |
5014 | done | |
5015 | if [ $count = ax ]; then | |
5016 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." | |
5017 | else | |
5018 | echo "Using the following build machine macro files:" | |
5019 | for f in $build_xm_file; do | |
5020 | echo " $srcdir/config/$f" | |
5021 | done | |
5022 | fi | |
5023 | fi | |
5024 | ||
a851212a JW |
5025 | if [ x$thread_file = x ]; then |
5026 | if [ x$target_thread_file != x ]; then | |
5027 | thread_file=$target_thread_file | |
5028 | else | |
5029 | thread_file='single' | |
5030 | fi | |
861bb6c1 JL |
5031 | fi |
5032 | ||
5033 | # Set up the header files. | |
5034 | # $links is the list of header files to create. | |
5035 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 5036 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 5037 | # the first file included by config.h. |
f6cb0e63 | 5038 | null_defines= |
b7cb92ad | 5039 | host_xm_file="auto-host.h ${host_xm_file}" |
db81d74a | 5040 | |
b7cb92ad | 5041 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
5042 | # as well. If host!=build, we are in error and need to do more |
5043 | # work to find out the build config parameters. | |
5044 | if [ x$host = x$build ] | |
5045 | then | |
b7cb92ad JL |
5046 | build_xm_file="auto-host.h ${build_xm_file}" |
5047 | else | |
5048 | # We create a subdir, then run autoconf in the subdir. | |
5049 | # To prevent recursion we set host and build for the new | |
5050 | # invocation of configure to the build for this invocation | |
5051 | # of configure. | |
5052 | tempdir=build.$$ | |
5053 | rm -rf $tempdir | |
5054 | mkdir $tempdir | |
5055 | cd $tempdir | |
5056 | case ${srcdir} in | |
5057 | /*) realsrcdir=${srcdir};; | |
5058 | *) realsrcdir=../${srcdir};; | |
5059 | esac | |
fe81dd69 | 5060 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
5061 | --target=$target --host=$build --build=$build |
5062 | ||
5063 | # We just finished tests for the build machine, so rename | |
5064 | # the file auto-build.h in the gcc directory. | |
5065 | mv auto-host.h ../auto-build.h | |
5066 | cd .. | |
5067 | rm -rf $tempdir | |
5068 | build_xm_file="auto-build.h ${build_xm_file}" | |
db81d74a RH |
5069 | fi |
5070 | ||
861bb6c1 | 5071 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 5072 | links="config.h tm.h tconfig.h hconfig.h" |
f6cb0e63 | 5073 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
861bb6c1 JL |
5074 | |
5075 | rm -f config.bak | |
5076 | if [ -f config.status ]; then mv -f config.status config.bak; fi | |
5077 | ||
5078 | # Make the links. | |
5079 | while [ -n "$vars" ] | |
5080 | do | |
861bb6c1 JL |
5081 | set $vars; var=$1; shift; vars=$* |
5082 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 5083 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
5084 | |
5085 | rm -f $link | |
5086 | ||
5087 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
5088 | # This substitutes for lots of *.h files. | |
c43143f6 | 5089 | if [ "$target_cpu_default" != "" -a $link = tm.h ] |
861bb6c1 | 5090 | then |
8fbf199e | 5091 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
5092 | fi |
5093 | ||
5094 | for file in `eval echo '$'$var`; do | |
5095 | echo "#include \"$file\"" >>$link | |
5096 | done | |
f6cb0e63 JL |
5097 | |
5098 | for def in `eval echo '$'$define`; do | |
5099 | echo "#ifndef $def" >>$link | |
5100 | echo "#define $def" >>$link | |
5101 | echo "#endif" >>$link | |
5102 | done | |
861bb6c1 JL |
5103 | done |
5104 | ||
5105 | # Truncate the target if necessary | |
5106 | if [ x$host_truncate_target != x ]; then | |
5107 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
5108 | fi | |
5109 | ||
f1943b77 MH |
5110 | # Get the version trigger filename from the toplevel |
5111 | if [ "${with_gcc_version_trigger+set}" = set ]; then | |
5112 | gcc_version_trigger=$with_gcc_version_trigger | |
5113 | else | |
5114 | gcc_version_trigger=${srcdir}/version.c | |
5115 | fi | |
5116 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 5117 | |
861bb6c1 JL |
5118 | # Get an absolute path to the GCC top-level source directory |
5119 | holddir=`pwd` | |
5120 | cd $srcdir | |
5121 | topdir=`pwd` | |
5122 | cd $holddir | |
5123 | ||
5124 | # Conditionalize the makefile for this host machine. | |
5125 | # Make-host contains the concatenation of all host makefile fragments | |
5126 | # [there can be more than one]. This file is built by configure.frag. | |
5127 | host_overrides=Make-host | |
5128 | dep_host_xmake_file= | |
5129 | for f in .. ${host_xmake_file} | |
5130 | do | |
5131 | if [ -f ${srcdir}/config/$f ] | |
5132 | then | |
5133 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
5134 | fi | |
5135 | done | |
5136 | ||
5137 | # Conditionalize the makefile for this target machine. | |
5138 | # Make-target contains the concatenation of all host makefile fragments | |
5139 | # [there can be more than one]. This file is built by configure.frag. | |
5140 | target_overrides=Make-target | |
5141 | dep_tmake_file= | |
5142 | for f in .. ${tmake_file} | |
5143 | do | |
5144 | if [ -f ${srcdir}/config/$f ] | |
5145 | then | |
5146 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
5147 | fi | |
5148 | done | |
5149 | ||
5150 | # If the host doesn't support symlinks, modify CC in | |
5151 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
5152 | # Otherwise, we can use "CC=$(CC)". | |
5153 | rm -f symtest.tem | |
f6cb0e63 | 5154 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null |
861bb6c1 JL |
5155 | then |
5156 | cc_set_by_configure="\$(CC)" | |
5157 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
5158 | else | |
f6cb0e63 JL |
5159 | rm -f symtest.tem |
5160 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
5161 | then | |
5162 | symbolic_link="cp -p" | |
5163 | else | |
5164 | symbolic_link="cp" | |
5165 | fi | |
861bb6c1 JL |
5166 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" |
5167 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
5168 | fi | |
5169 | rm -f symtest.tem | |
5170 | ||
5171 | out_object_file=`basename $out_file .c`.o | |
5172 | ||
5173 | tm_file_list= | |
5174 | for f in $tm_file; do | |
5175 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
5176 | done | |
5177 | ||
5178 | host_xm_file_list= | |
5179 | for f in $host_xm_file; do | |
b7cb92ad | 5180 | if test $f != "auto-host.h"; then |
db81d74a RH |
5181 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" |
5182 | else | |
b7cb92ad | 5183 | host_xm_file_list="${host_xm_file_list} auto-host.h" |
db81d74a | 5184 | fi |
861bb6c1 JL |
5185 | done |
5186 | ||
5187 | build_xm_file_list= | |
5188 | for f in $build_xm_file; do | |
b7cb92ad JL |
5189 | if test $f != "auto-build.h"; then |
5190 | if test $f != "auto-host.h"; then | |
5191 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
5192 | else | |
5193 | build_xm_file_list="${build_xm_file_list} auto-host.h" | |
5194 | fi | |
db81d74a | 5195 | else |
b7cb92ad | 5196 | build_xm_file_list="${build_xm_file_list} auto-build.h" |
db81d74a | 5197 | fi |
861bb6c1 JL |
5198 | done |
5199 | ||
5200 | # Define macro CROSS_COMPILE in compilation | |
5201 | # if this is a cross-compiler. | |
5202 | # Also use all.cross instead of all.internal | |
5203 | # and add cross-make to Makefile. | |
5204 | cross_overrides="/dev/null" | |
5205 | if [ x$host != x$target ] | |
5206 | then | |
5207 | cross_defines="CROSS=-DCROSS_COMPILE" | |
5208 | cross_overrides="${topdir}/cross-make" | |
5209 | fi | |
5210 | ||
5211 | # When building gcc with a cross-compiler, we need to fix a few things. | |
5212 | # This must come after cross-make as we want all.build to override | |
5213 | # all.cross. | |
5214 | build_overrides="/dev/null" | |
5215 | if [ x$build != x$host ] | |
5216 | then | |
5217 | build_overrides="${topdir}/build-make" | |
5218 | fi | |
5219 | ||
5220 | # Expand extra_headers to include complete path. | |
5221 | # This substitutes for lots of t-* files. | |
5222 | extra_headers_list= | |
5223 | if [ "x$extra_headers" = x ] | |
5224 | then true | |
5225 | else | |
5226 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
5227 | for file in $extra_headers; | |
5228 | do | |
5229 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
5230 | done | |
5231 | fi | |
5232 | ||
5233 | # Add a definition of USE_COLLECT2 if system wants one. | |
5234 | # Also tell toplev.c what to do. | |
5235 | # This substitutes for lots of t-* files. | |
5236 | if [ x$use_collect2 = x ] | |
5237 | then | |
5238 | will_use_collect2= | |
5239 | maybe_use_collect2= | |
5240 | else | |
10da1131 | 5241 | will_use_collect2="collect2" |
861bb6c1 JL |
5242 | maybe_use_collect2="-DUSE_COLLECT2" |
5243 | fi | |
5244 | ||
5245 | # NEED TO CONVERT | |
5246 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
5247 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
5248 | # for line oriented comments, so we must always use a GNU cpp. If | |
5249 | # building gcc with a cross compiler, use the cross compiler just | |
5250 | # built. Otherwise, we can use the cpp just built. | |
5251 | md_file_sub= | |
5252 | if [ "x$md_cppflags" = x ] | |
5253 | then | |
5254 | md_file_sub=$srcdir/config/$md_file | |
5255 | else | |
5256 | md_file=md | |
5257 | fi | |
5258 | ||
5259 | # If we have gas in the build tree, make a link to it. | |
5260 | if [ -f ../gas/Makefile ]; then | |
6e26218f | 5261 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null |
861bb6c1 JL |
5262 | fi |
5263 | ||
4b95eb49 JL |
5264 | # If we have nm in the build tree, make a link to it. |
5265 | if [ -f ../binutils/Makefile ]; then | |
5266 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
5267 | fi | |
5268 | ||
861bb6c1 | 5269 | # If we have ld in the build tree, make a link to it. |
992d1248 DE |
5270 | if [ -f ../ld/Makefile ]; then |
5271 | # if [[ x$use_collect2 = x ]]; then | |
6e26218f | 5272 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null |
aa32d841 | 5273 | # else |
6e26218f | 5274 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null |
aa32d841 | 5275 | # fi |
992d1248 | 5276 | fi |
861bb6c1 | 5277 | |
9e423e6d JW |
5278 | # Figure out what assembler alignment features are present. |
5279 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
58600d24 | 5280 | echo "configure:5281: checking assembler alignment features" >&5 |
9e423e6d JW |
5281 | gcc_cv_as= |
5282 | gcc_cv_as_alignment_features= | |
a2c9d57c | 5283 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'` |
9e423e6d JW |
5284 | if [ -x as$host_exeext ]; then |
5285 | # Build using assembler in the current directory. | |
5286 | gcc_cv_as=./as$host_exeext | |
a2c9d57c | 5287 | elif [ -f $gcc_cv_as_gas_srcdir/configure.in ]; then |
9e423e6d | 5288 | # Single tree build which includes gas. |
a2c9d57c | 5289 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in |
9e423e6d JW |
5290 | do |
5291 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
5292 | if [ x$gcc_cv_gas_version != x ]; then | |
5293 | break | |
5294 | fi | |
5295 | done | |
5296 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
5297 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
0b9d02c6 JL |
5298 | if [ x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x ]; then |
5299 | # Gas version 2.6 and later support for .balign and .p2align. | |
5300 | # bytes to skip when using .p2align. | |
5301 | if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]; then | |
5302 | gcc_cv_as_alignment_features=".balign and .p2align" | |
5303 | cat >> confdefs.h <<\EOF | |
00ccc16d JL |
5304 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 |
5305 | EOF | |
5306 | ||
0b9d02c6 JL |
5307 | fi |
5308 | # Gas version 2.8 and later support specifying the maximum | |
5309 | # bytes to skip when using .p2align. | |
5310 | if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then | |
5311 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
5312 | cat >> confdefs.h <<\EOF | |
9e423e6d JW |
5313 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 |
5314 | EOF | |
5315 | ||
0b9d02c6 | 5316 | fi |
9e423e6d JW |
5317 | fi |
5318 | elif [ x$host = x$target ]; then | |
5319 | # Native build. | |
5320 | gcc_cv_as=as$host_exeext | |
5321 | fi | |
5322 | if [ x$gcc_cv_as != x ]; then | |
00ccc16d JL |
5323 | # Check if we have .balign and .p2align |
5324 | echo ".balign 4" > conftest.s | |
5325 | echo ".p2align 2" >> conftest.s | |
5326 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
5327 | gcc_cv_as_alignment_features=".balign and .p2align" | |
5328 | cat >> confdefs.h <<\EOF | |
5329 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
5330 | EOF | |
5331 | ||
5332 | fi | |
5333 | rm -f conftest.s conftest.o | |
9e423e6d JW |
5334 | # Check if specifying the maximum bytes to skip when |
5335 | # using .p2align is supported. | |
5336 | echo ".p2align 4,,7" > conftest.s | |
5337 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
5338 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
5339 | cat >> confdefs.h <<\EOF | |
5340 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
5341 | EOF | |
5342 | ||
5343 | fi | |
5344 | rm -f conftest.s conftest.o | |
5345 | fi | |
5346 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
5347 | ||
861bb6c1 JL |
5348 | # Figure out what language subdirectories are present. |
5349 | subdirs= | |
5350 | for lang in ${srcdir}/*/config-lang.in .. | |
5351 | do | |
5352 | case $lang in | |
5353 | ..) ;; | |
5354 | # The odd quoting in the next line works around | |
5355 | # an apparent bug in bash 1.12 on linux. | |
5356 | ${srcdir}/[*]/config-lang.in) ;; | |
5357 | *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;; | |
5358 | esac | |
5359 | done | |
5360 | ||
f24af81b TT |
5361 | # Make gthr-default.h if we have a thread file. |
5362 | gthread_flags= | |
5363 | if [ $thread_file != single ]; then | |
5364 | rm -f gthr-default.h | |
db0d1ed9 | 5365 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
5366 | gthread_flags=-DHAVE_GTHR_DEFAULT |
5367 | fi | |
5368 | ||
5369 | ||
861bb6c1 JL |
5370 | # Make empty files to contain the specs and options for each language. |
5371 | # Then add #include lines to for a compiler that has specs and/or options. | |
5372 | ||
5373 | lang_specs_files= | |
5374 | lang_options_files= | |
5375 | rm -f specs.h options.h | |
5376 | touch specs.h options.h | |
5377 | for subdir in . $subdirs | |
5378 | do | |
5379 | if [ -f $srcdir/$subdir/lang-specs.h ]; then | |
5380 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h | |
5381 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
5382 | fi | |
5383 | if [ -f $srcdir/$subdir/lang-options.h ]; then | |
5384 | echo "#include \"$subdir/lang-options.h\"" >>options.h | |
5385 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
5386 | fi | |
5387 | done | |
5388 | ||
5389 | # These (without "all_") are set in each config-lang.in. | |
5390 | # `language' must be a single word so is spelled singularly. | |
5391 | all_languages= | |
5392 | all_boot_languages= | |
5393 | all_compilers= | |
5394 | all_stagestuff= | |
5395 | all_diff_excludes= | |
5396 | all_outputs=Makefile | |
5397 | # List of language makefile fragments. | |
5398 | all_lang_makefiles= | |
5399 | all_headers= | |
5400 | all_lib2funcs= | |
5401 | ||
5402 | # Add the language fragments. | |
5403 | # Languages are added via two mechanisms. Some information must be | |
5404 | # recorded in makefile variables, these are defined in config-lang.in. | |
5405 | # We accumulate them and plug them into the main Makefile. | |
5406 | # The other mechanism is a set of hooks for each of the main targets | |
5407 | # like `clean', `install', etc. | |
5408 | ||
5409 | language_fragments="Make-lang" | |
5410 | language_hooks="Make-hooks" | |
5411 | oldstyle_subdirs= | |
5412 | ||
5413 | for s in .. $subdirs | |
5414 | do | |
5415 | if [ $s != ".." ] | |
5416 | then | |
5417 | language= | |
5418 | boot_language= | |
5419 | compilers= | |
5420 | stagestuff= | |
5421 | diff_excludes= | |
5422 | headers= | |
5423 | outputs= | |
5424 | lib2funcs= | |
5425 | . ${srcdir}/$s/config-lang.in | |
5426 | if [ "x$language" = x ] | |
5427 | then | |
5428 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
5429 | exit 1 | |
5430 | fi | |
5431 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
5432 | all_languages="$all_languages $language" | |
5433 | if [ "x$boot_language" = xyes ] | |
5434 | then | |
5435 | all_boot_languages="$all_boot_languages $language" | |
5436 | fi | |
5437 | all_compilers="$all_compilers $compilers" | |
5438 | all_stagestuff="$all_stagestuff $stagestuff" | |
5439 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
5440 | all_headers="$all_headers $headers" | |
5441 | all_outputs="$all_outputs $outputs" | |
5442 | if [ x$outputs = x ] | |
5443 | then | |
5444 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
5445 | fi | |
5446 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
5447 | fi | |
5448 | done | |
5449 | ||
5450 | # Since we can't use `::' targets, we link each language in | |
5451 | # with a set of hooks, reached indirectly via lang.${target}. | |
5452 | ||
5453 | rm -f Make-hooks | |
5454 | touch Make-hooks | |
5455 | target_list="all.build all.cross start.encap rest.encap \ | |
5456 | info dvi \ | |
5457 | install-normal install-common install-info install-man \ | |
5458 | uninstall distdir \ | |
5459 | mostlyclean clean distclean extraclean maintainer-clean \ | |
5460 | stage1 stage2 stage3 stage4" | |
5461 | for t in $target_list | |
5462 | do | |
5463 | x= | |
5464 | for l in .. $all_languages | |
5465 | do | |
5466 | if [ $l != ".." ]; then | |
5467 | x="$x $l.$t" | |
5468 | fi | |
5469 | done | |
5470 | echo "lang.$t: $x" >> Make-hooks | |
5471 | done | |
5472 | ||
5473 | # If we're not building in srcdir, create .gdbinit. | |
5474 | ||
5475 | if [ ! -f Makefile.in ]; then | |
5476 | echo "dir ." > .gdbinit | |
5477 | echo "dir ${srcdir}" >> .gdbinit | |
5478 | if [ x$gdb_needs_out_file_path = xyes ] | |
5479 | then | |
5480 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
5481 | fi | |
5482 | if [ "x$subdirs" != x ]; then | |
5483 | for s in $subdirs | |
5484 | do | |
5485 | echo "dir ${srcdir}/$s" >> .gdbinit | |
5486 | done | |
5487 | fi | |
5488 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
5489 | fi | |
5490 | ||
88111b26 JL |
5491 | # Define variables host_canonical and build_canonical |
5492 | # because some Cygnus local changes in the Makefile depend on them. | |
5493 | build_canonical=${build} | |
5494 | host_canonical=${host} | |
5495 | target_subdir= | |
5496 | if [ "${host}" != "${target}" ] ; then | |
5497 | target_subdir=${target}/ | |
5498 | fi | |
5499 | ||
5500 | ||
5501 | ||
5502 | ||
dec88383 DE |
5503 | # If this is using newlib, then define inhibit_libc in |
5504 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
5505 | # libgcc.a, but that's OK because newib should have its own version of | |
5506 | # assert.h. | |
5507 | inhibit_libc= | |
5508 | if [ x$with_newlib = xyes ]; then | |
5509 | inhibit_libc=-Dinhibit_libc | |
5510 | fi | |
5511 | ||
5512 | ||
8c660648 JL |
5513 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
5514 | sched_prefix= | |
5515 | sched_cflags= | |
992d1248 | 5516 | if [ x$enable_haifa = xyes ]; then |
8c660648 JL |
5517 | echo "Using the Haifa scheduler." |
5518 | sched_prefix=haifa- | |
5519 | sched_cflags=-DHAIFA | |
5520 | fi | |
5521 | ||
5522 | ||
992d1248 | 5523 | if [ x$enable_haifa != x ]; then |
8c660648 JL |
5524 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
5525 | for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do | |
5526 | if [ -f $x ]; then | |
5527 | echo "Removing $x" | |
5528 | rm -f $x | |
5529 | fi | |
5530 | done | |
5531 | fi | |
5532 | ||
7e717196 JL |
5533 | # Nothing to do for FLOAT_H, float_format already handled. |
5534 | objdir=`pwd` | |
5535 | ||
5536 | ||
861bb6c1 JL |
5537 | # Process the language and host/target makefile fragments. |
5538 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
5539 | ||
5540 | # Substitute configuration variables | |
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | ||
5577 | ||
5578 | ||
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
5585 | ||
5586 | ||
9b16d2c4 | 5587 | |
e9a25f70 | 5588 | |
6e26218f | 5589 | |
c8724862 | 5590 | |
e061d1ce | 5591 | |
f1943b77 | 5592 | |
0b9d02c6 | 5593 | |
861bb6c1 JL |
5594 | |
5595 | ||
5596 | # Echo that links are built | |
5597 | if [ x$host = x$target ] | |
5598 | then | |
5599 | str1="native " | |
5600 | else | |
5601 | str1="cross-" | |
5602 | str2=" from $host" | |
5603 | fi | |
5604 | ||
5605 | if [ x$host != x$build ] | |
5606 | then | |
5607 | str3=" on a $build system" | |
5608 | fi | |
5609 | ||
5610 | if [ "x$str2" != x ] || [ "x$str3" != x ] | |
5611 | then | |
5612 | str4= | |
5613 | fi | |
5614 | ||
5615 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
5616 | ||
5617 | if [ "x$str2" != x ] || [ "x$str3" != x ] | |
5618 | then | |
5619 | echo " ${str2}${str3}." 1>&2 | |
5620 | fi | |
5621 | ||
f6cb0e63 JL |
5622 | # Truncate the target if necessary |
5623 | if [ x$host_truncate_target != x ]; then | |
5624 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
5625 | fi | |
5626 | ||
861bb6c1 JL |
5627 | # Configure the subdirectories |
5628 | # AC_CONFIG_SUBDIRS($subdirs) | |
5629 | ||
5630 | # Create the Makefile | |
5631 | # and configure language subdirectories | |
5632 | trap '' 1 2 15 | |
5633 | cat > confcache <<\EOF | |
5634 | # This file is a shell script that caches the results of configure | |
5635 | # tests run on this system so they can be shared between configure | |
5636 | # scripts and configure runs. It is not useful on other systems. | |
5637 | # If it contains results you don't want to keep, you may remove or edit it. | |
5638 | # | |
5639 | # By default, configure uses ./config.cache as the cache file, | |
5640 | # creating it if it does not exist already. You can give configure | |
5641 | # the --cache-file=FILE option to use a different cache file; that is | |
5642 | # what configure does when it calls configure scripts in | |
5643 | # subdirectories, so they share the cache. | |
5644 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5645 | # config.status only pays attention to the cache file if you give it the | |
5646 | # --recheck option to rerun configure. | |
5647 | # | |
5648 | EOF | |
5649 | # The following way of writing the cache mishandles newlines in values, | |
5650 | # but we know of no workaround that is simple, portable, and efficient. | |
5651 | # So, don't put newlines in cache variables' values. | |
5652 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5653 | # and sets the high bit in the cache file unless we assign to the vars. | |
5654 | (set) 2>&1 | | |
4e88d51b | 5655 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
861bb6c1 JL |
5656 | *ac_space=\ *) |
5657 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5658 | # turns \\\\ into \\, and sed turns \\ into \). | |
5659 | sed -n \ | |
5660 | -e "s/'/'\\\\''/g" \ | |
5661 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5662 | ;; | |
5663 | *) | |
5664 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5665 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5666 | ;; | |
5667 | esac >> confcache | |
5668 | if cmp -s $cache_file confcache; then | |
5669 | : | |
5670 | else | |
5671 | if test -w $cache_file; then | |
5672 | echo "updating cache $cache_file" | |
5673 | cat confcache > $cache_file | |
5674 | else | |
5675 | echo "not updating unwritable cache $cache_file" | |
5676 | fi | |
5677 | fi | |
5678 | rm -f confcache | |
5679 | ||
5680 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
5681 | ||
5682 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5683 | # Let make expand exec_prefix. | |
5684 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5685 | ||
5686 | # Any assignment to VPATH causes Sun make to only execute | |
5687 | # the first set of double-colon rules, so remove it if not needed. | |
5688 | # If there is a colon in the path, we need to keep it. | |
5689 | if test "x$srcdir" = x.; then | |
5690 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
5691 | fi | |
5692 | ||
5693 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
5694 | ||
5695 | DEFS=-DHAVE_CONFIG_H | |
5696 | ||
5697 | # Without the "./", some shells look in PATH for config.status. | |
5698 | : ${CONFIG_STATUS=./config.status} | |
5699 | ||
5700 | echo creating $CONFIG_STATUS | |
5701 | rm -f $CONFIG_STATUS | |
5702 | cat > $CONFIG_STATUS <<EOF | |
5703 | #! /bin/sh | |
5704 | # Generated automatically by configure. | |
5705 | # Run this file to recreate the current configuration. | |
5706 | # This directory was configured as follows, | |
5707 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
5708 | # | |
5709 | # $0 $ac_configure_args | |
5710 | # | |
5711 | # Compiler output produced by configure, useful for debugging | |
5712 | # configure, is in ./config.log if it exists. | |
5713 | ||
5714 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
5715 | for ac_option | |
5716 | do | |
5717 | case "\$ac_option" in | |
5718 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5719 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
5720 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
5721 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
4e88d51b | 5722 | echo "$CONFIG_STATUS generated by autoconf version 2.12.1" |
861bb6c1 JL |
5723 | exit 0 ;; |
5724 | -help | --help | --hel | --he | --h) | |
5725 | echo "\$ac_cs_usage"; exit 0 ;; | |
5726 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
5727 | esac | |
5728 | done | |
5729 | ||
5730 | ac_given_srcdir=$srcdir | |
861bb6c1 | 5731 | |
b7cb92ad | 5732 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
5733 | EOF |
5734 | cat >> $CONFIG_STATUS <<EOF | |
5735 | ||
5736 | # Protect against being on the right side of a sed subst in config.status. | |
5737 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
5738 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
5739 | $ac_vpsub | |
5740 | $extrasub | |
4e88d51b | 5741 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
5742 | s%@CFLAGS@%$CFLAGS%g |
5743 | s%@CPPFLAGS@%$CPPFLAGS%g | |
5744 | s%@CXXFLAGS@%$CXXFLAGS%g | |
5745 | s%@DEFS@%$DEFS%g | |
5746 | s%@LDFLAGS@%$LDFLAGS%g | |
5747 | s%@LIBS@%$LIBS%g | |
5748 | s%@exec_prefix@%$exec_prefix%g | |
5749 | s%@prefix@%$prefix%g | |
5750 | s%@program_transform_name@%$program_transform_name%g | |
5751 | s%@bindir@%$bindir%g | |
5752 | s%@sbindir@%$sbindir%g | |
5753 | s%@libexecdir@%$libexecdir%g | |
5754 | s%@datadir@%$datadir%g | |
5755 | s%@sysconfdir@%$sysconfdir%g | |
5756 | s%@sharedstatedir@%$sharedstatedir%g | |
5757 | s%@localstatedir@%$localstatedir%g | |
5758 | s%@libdir@%$libdir%g | |
5759 | s%@includedir@%$includedir%g | |
5760 | s%@oldincludedir@%$oldincludedir%g | |
5761 | s%@infodir@%$infodir%g | |
5762 | s%@mandir@%$mandir%g | |
5763 | s%@host@%$host%g | |
5764 | s%@host_alias@%$host_alias%g | |
5765 | s%@host_cpu@%$host_cpu%g | |
5766 | s%@host_vendor@%$host_vendor%g | |
5767 | s%@host_os@%$host_os%g | |
5768 | s%@target@%$target%g | |
5769 | s%@target_alias@%$target_alias%g | |
5770 | s%@target_cpu@%$target_cpu%g | |
5771 | s%@target_vendor@%$target_vendor%g | |
5772 | s%@target_os@%$target_os%g | |
5773 | s%@build@%$build%g | |
5774 | s%@build_alias@%$build_alias%g | |
5775 | s%@build_cpu@%$build_cpu%g | |
5776 | s%@build_vendor@%$build_vendor%g | |
5777 | s%@build_os@%$build_os%g | |
e9a25f70 JL |
5778 | s%@CC@%$CC%g |
5779 | s%@SET_MAKE@%$SET_MAKE%g | |
861bb6c1 JL |
5780 | s%@AWK@%$AWK%g |
5781 | s%@LEX@%$LEX%g | |
5782 | s%@LEXLIB@%$LEXLIB%g | |
ac64120e | 5783 | s%@LN@%$LN%g |
861bb6c1 JL |
5784 | s%@LN_S@%$LN_S%g |
5785 | s%@RANLIB@%$RANLIB%g | |
5786 | s%@YACC@%$YACC%g | |
5643c767 | 5787 | s%@INSTALL@%$INSTALL%g |
861bb6c1 JL |
5788 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
5789 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 5790 | s%@CPP@%$CPP%g |
76b4b31e KG |
5791 | s%@vfprintf@%$vfprintf%g |
5792 | s%@doprint@%$doprint%g | |
861bb6c1 | 5793 | s%@manext@%$manext%g |
992d1248 | 5794 | s%@objext@%$objext%g |
f24af81b | 5795 | s%@gthread_flags@%$gthread_flags%g |
88111b26 JL |
5796 | s%@build_canonical@%$build_canonical%g |
5797 | s%@host_canonical@%$host_canonical%g | |
5798 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 5799 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
5800 | s%@sched_prefix@%$sched_prefix%g |
5801 | s%@sched_cflags@%$sched_cflags%g | |
7e717196 | 5802 | s%@objdir@%$objdir%g |
861bb6c1 JL |
5803 | s%@subdirs@%$subdirs%g |
5804 | s%@all_languages@%$all_languages%g | |
5805 | s%@all_boot_languages@%$all_boot_languages%g | |
5806 | s%@all_compilers@%$all_compilers%g | |
5807 | s%@all_lang_makefiles@%$all_lang_makefiles%g | |
5808 | s%@all_stagestuff@%$all_stagestuff%g | |
5809 | s%@all_diff_excludes@%$all_diff_excludes%g | |
5810 | s%@all_lib2funcs@%$all_lib2funcs%g | |
5811 | s%@all_headers@%$all_headers%g | |
e061d1ce | 5812 | s%@cpp_main@%$cpp_main%g |
861bb6c1 JL |
5813 | s%@extra_passes@%$extra_passes%g |
5814 | s%@extra_programs@%$extra_programs%g | |
5815 | s%@extra_parts@%$extra_parts%g | |
5816 | s%@extra_c_objs@%$extra_c_objs%g | |
c8724862 | 5817 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
0b9d02c6 | 5818 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
861bb6c1 JL |
5819 | s%@extra_c_flags@%$extra_c_flags%g |
5820 | s%@extra_objs@%$extra_objs%g | |
5821 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g | |
5822 | s%@extra_headers_list@%$extra_headers_list%g | |
5823 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g | |
5824 | s%@dep_tmake_file@%$dep_tmake_file%g | |
5825 | s%@out_file@%$out_file%g | |
5826 | s%@out_object_file@%$out_object_file%g | |
5827 | s%@md_file@%$md_file%g | |
5828 | s%@tm_file_list@%$tm_file_list%g | |
5829 | s%@build_xm_file_list@%$build_xm_file_list%g | |
5830 | s%@host_xm_file_list@%$host_xm_file_list%g | |
5831 | s%@lang_specs_files@%$lang_specs_files%g | |
5832 | s%@lang_options_files@%$lang_options_files%g | |
5833 | s%@thread_file@%$thread_file%g | |
f1943b77 MH |
5834 | s%@gcc_version@%$gcc_version%g |
5835 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
861bb6c1 JL |
5836 | s%@local_prefix@%$local_prefix%g |
5837 | s%@gxx_include_dir@%$gxx_include_dir%g | |
5838 | s%@fixincludes@%$fixincludes%g | |
5839 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
5840 | s%@build_exeext@%$build_exeext%g | |
6e26218f | 5841 | s%@host_exeext@%$host_exeext%g |
861bb6c1 JL |
5842 | s%@float_format@%$float_format%g |
5843 | s%@will_use_collect2@%$will_use_collect2%g | |
5844 | s%@maybe_use_collect2@%$maybe_use_collect2%g | |
5845 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5846 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g | |
9b16d2c4 | 5847 | s%@install@%$install%g |
e9a25f70 | 5848 | s%@symbolic_link@%$symbolic_link%g |
861bb6c1 JL |
5849 | /@target_overrides@/r $target_overrides |
5850 | s%@target_overrides@%%g | |
5851 | /@host_overrides@/r $host_overrides | |
5852 | s%@host_overrides@%%g | |
5853 | s%@cross_defines@%$cross_defines%g | |
5854 | /@cross_overrides@/r $cross_overrides | |
5855 | s%@cross_overrides@%%g | |
5856 | /@build_overrides@/r $build_overrides | |
5857 | s%@build_overrides@%%g | |
5858 | /@language_fragments@/r $language_fragments | |
5859 | s%@language_fragments@%%g | |
5860 | /@language_hooks@/r $language_hooks | |
5861 | s%@language_hooks@%%g | |
5862 | ||
5863 | CEOF | |
5864 | EOF | |
5865 | ||
5866 | cat >> $CONFIG_STATUS <<\EOF | |
5867 | ||
5868 | # Split the substitutions into bite-sized pieces for seds with | |
5869 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5870 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
5871 | ac_file=1 # Number of current file. | |
5872 | ac_beg=1 # First line for current file. | |
5873 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
5874 | ac_more_lines=: | |
5875 | ac_sed_cmds="" | |
5876 | while $ac_more_lines; do | |
5877 | if test $ac_beg -gt 1; then | |
5878 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
5879 | else | |
5880 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
5881 | fi | |
5882 | if test ! -s conftest.s$ac_file; then | |
5883 | ac_more_lines=false | |
5884 | rm -f conftest.s$ac_file | |
5885 | else | |
5886 | if test -z "$ac_sed_cmds"; then | |
5887 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
5888 | else | |
5889 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
5890 | fi | |
5891 | ac_file=`expr $ac_file + 1` | |
5892 | ac_beg=$ac_end | |
5893 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
5894 | fi | |
5895 | done | |
5896 | if test -z "$ac_sed_cmds"; then | |
5897 | ac_sed_cmds=cat | |
5898 | fi | |
5899 | EOF | |
5900 | ||
5901 | cat >> $CONFIG_STATUS <<EOF | |
5902 | ||
5903 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
5904 | EOF | |
5905 | cat >> $CONFIG_STATUS <<\EOF | |
5906 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5907 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5908 | case "$ac_file" in | |
5909 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5910 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5911 | *) ac_file_in="${ac_file}.in" ;; | |
5912 | esac | |
5913 | ||
5914 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
5915 | ||
5916 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5917 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5918 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5919 | # The file is in a subdirectory. | |
5920 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5921 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5922 | # A "../" for each directory in $ac_dir_suffix. | |
5923 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5924 | else | |
5925 | ac_dir_suffix= ac_dots= | |
5926 | fi | |
5927 | ||
5928 | case "$ac_given_srcdir" in | |
5929 | .) srcdir=. | |
5930 | if test -z "$ac_dots"; then top_srcdir=. | |
5931 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5932 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5933 | *) # Relative path. | |
5934 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5935 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5936 | esac | |
5937 | ||
861bb6c1 JL |
5938 | |
5939 | echo creating "$ac_file" | |
5940 | rm -f "$ac_file" | |
5941 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5942 | case "$ac_file" in | |
5943 | *Makefile*) ac_comsub="1i\\ | |
5944 | # $configure_input" ;; | |
5945 | *) ac_comsub= ;; | |
5946 | esac | |
5947 | ||
5948 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5949 | sed -e "$ac_comsub | |
5950 | s%@configure_input@%$configure_input%g | |
5951 | s%@srcdir@%$srcdir%g | |
5952 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
5953 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5954 | fi; done | |
5955 | rm -f conftest.s* | |
5956 | ||
5957 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
5958 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
5959 | # | |
5960 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5961 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
5962 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
5963 | ac_dC='\3' | |
5964 | ac_dD='%g' | |
5965 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
5966 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5967 | ac_uB='\([ ]\)%\1#\2define\3' | |
5968 | ac_uC=' ' | |
5969 | ac_uD='\4%g' | |
5970 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
5971 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5972 | ac_eB='$%\1#\2define\3' | |
5973 | ac_eC=' ' | |
5974 | ac_eD='%g' | |
5975 | ||
5976 | if test "${CONFIG_HEADERS+set}" != set; then | |
5977 | EOF | |
5978 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 5979 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
5980 | EOF |
5981 | cat >> $CONFIG_STATUS <<\EOF | |
5982 | fi | |
5983 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
5984 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5985 | case "$ac_file" in | |
5986 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5987 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5988 | *) ac_file_in="${ac_file}.in" ;; | |
5989 | esac | |
5990 | ||
5991 | echo creating $ac_file | |
5992 | ||
5993 | rm -f conftest.frag conftest.in conftest.out | |
5994 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5995 | cat $ac_file_inputs > conftest.in | |
5996 | ||
5997 | EOF | |
5998 | ||
5999 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6000 | # the proper values into config.h.in to produce config.h. And first: | |
6001 | # Protect against being on the right side of a sed subst in config.status. | |
6002 | # Protect against being in an unquoted here document in config.status. | |
6003 | rm -f conftest.vals | |
6004 | cat > conftest.hdr <<\EOF | |
6005 | s/[\\&%]/\\&/g | |
6006 | s%[\\$`]%\\&%g | |
6007 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6008 | s%ac_d%ac_u%gp | |
6009 | s%ac_u%ac_e%gp | |
6010 | EOF | |
6011 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6012 | rm -f conftest.hdr | |
6013 | ||
6014 | # This sed command replaces #undef with comments. This is necessary, for | |
6015 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6016 | # on some systems where configure will not decide to define it. | |
6017 | cat >> conftest.vals <<\EOF | |
6018 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6019 | EOF | |
6020 | ||
6021 | # Break up conftest.vals because some shells have a limit on | |
6022 | # the size of here documents, and old seds have small limits too. | |
6023 | ||
6024 | rm -f conftest.tail | |
6025 | while : | |
6026 | do | |
6027 | ac_lines=`grep -c . conftest.vals` | |
6028 | # grep -c gives empty output for an empty file on some AIX systems. | |
6029 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6030 | # Write a limited-size here document to conftest.frag. | |
6031 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6032 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6033 | echo 'CEOF | |
6034 | sed -f conftest.frag conftest.in > conftest.out | |
6035 | rm -f conftest.in | |
6036 | mv conftest.out conftest.in | |
6037 | ' >> $CONFIG_STATUS | |
6038 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6039 | rm -f conftest.vals | |
6040 | mv conftest.tail conftest.vals | |
6041 | done | |
6042 | rm -f conftest.vals | |
6043 | ||
6044 | cat >> $CONFIG_STATUS <<\EOF | |
6045 | rm -f conftest.frag conftest.h | |
6046 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6047 | cat conftest.in >> conftest.h | |
6048 | rm -f conftest.in | |
6049 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6050 | echo "$ac_file is unchanged" | |
6051 | rm -f conftest.h | |
6052 | else | |
6053 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6054 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6055 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6056 | # The file is in a subdirectory. | |
6057 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6058 | fi | |
6059 | rm -f $ac_file | |
6060 | mv conftest.h $ac_file | |
6061 | fi | |
6062 | fi; done | |
6063 | ||
6064 | EOF | |
6065 | cat >> $CONFIG_STATUS <<EOF | |
6066 | ||
6067 | host='${host}' | |
6068 | build='${build}' | |
6069 | target='${target}' | |
6070 | target_alias='${target_alias}' | |
6071 | srcdir='${srcdir}' | |
6072 | subdirs='${subdirs}' | |
6073 | oldstyle_subdirs='${oldstyle_subdirs}' | |
6074 | symbolic_link='${symbolic_link}' | |
6075 | program_transform_set='${program_transform_set}' | |
6076 | program_transform_name='${program_transform_name}' | |
6077 | dep_host_xmake_file='${dep_host_xmake_file}' | |
6078 | host_xmake_file='${host_xmake_file}' | |
6079 | dep_tmake_file='${dep_tmake_file}' | |
6080 | tmake_file='${tmake_file}' | |
6081 | thread_file='${thread_file}' | |
f1943b77 MH |
6082 | gcc_version='${gcc_version}' |
6083 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
6084 | local_prefix='${local_prefix}' |
6085 | build_install_headers_dir='${build_install_headers_dir}' | |
6086 | build_exeext='${build_exeext}' | |
6e26218f | 6087 | host_exeext='${host_exeext}' |
7ed46111 | 6088 | out_file='${out_file}' |
861bb6c1 JL |
6089 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
6090 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
6091 | target_list='${target_list}' |
6092 | target_overrides='${target_overrides}' | |
6093 | host_overrides='${host_overrides}' | |
6094 | cross_defines='${cross_defines}' | |
6095 | cross_overrides='${cross_overrides}' | |
6096 | build_overrides='${build_overrides}' | |
6097 | ||
6098 | EOF | |
6099 | cat >> $CONFIG_STATUS <<\EOF | |
6100 | ||
6101 | . $srcdir/configure.lang | |
6102 | case x$CONFIG_HEADERS in | |
b7cb92ad | 6103 | xauto-host.h:config.in) |
861bb6c1 JL |
6104 | echo > cstamp-h ;; |
6105 | esac | |
93cf819d BK |
6106 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
6107 | # bootstrapping and the installation procedure can still use | |
6108 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
6109 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
6110 | # This is virtually a duplicate of what happens in configure.lang; we do | |
6111 | # an extra check to make sure this only happens if ln -s can be used. | |
6112 | if [ "$symbolic_link" = "ln -s" ]; then | |
6113 | for d in .. ${subdirs} ; do | |
6114 | if [ $d != .. ]; then | |
4e8a434e BK |
6115 | STARTDIR=`pwd` |
6116 | cd $d | |
6117 | for t in stage1 stage2 stage3 stage4 include | |
6118 | do | |
6119 | rm -f $t | |
6120 | $symbolic_link ../$t $t 2>/dev/null | |
6121 | done | |
6122 | cd $STARTDIR | |
93cf819d BK |
6123 | fi |
6124 | done | |
6125 | else true ; fi | |
861bb6c1 JL |
6126 | |
6127 | exit 0 | |
6128 | EOF | |
6129 | chmod +x $CONFIG_STATUS | |
6130 | rm -fr confdefs* $ac_clean_files | |
6131 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6132 |