]>
Commit | Line | Data |
---|---|---|
005537df | 1 | #! /bin/sh |
861bb6c1 JL |
2 | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
b27d2bd5 | 4 | # Generated automatically using autoconf version 2.13 |
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." | |
ab339d62 AO |
16 | ac_help="$ac_help |
17 | --with-ld arrange to use the specified ld (full pathname)." | |
861bb6c1 JL |
18 | ac_help="$ac_help |
19 | --with-gnu-as arrange to work with GNU as." | |
ab339d62 AO |
20 | ac_help="$ac_help |
21 | --with-as arrange to use the specified as (full pathname)." | |
861bb6c1 JL |
22 | ac_help="$ac_help |
23 | --with-stabs arrange to use stabs instead of host debug format." | |
24 | ac_help="$ac_help | |
25 | --with-elf arrange to use ELF instead of host debug format." | |
26 | ac_help="$ac_help | |
27 | --with-local-prefix=DIR specifies directory to put local include." | |
28 | ac_help="$ac_help | |
29 | --with-gxx-include-dir=DIR | |
30 | specifies directory to put g++ header files." | |
a494747c | 31 | ac_help="$ac_help |
f4524c9e ZW |
32 | --enable-checking[=LIST] |
33 | enable expensive run-time checks. With LIST, | |
34 | enable only specific categories of checks. | |
35 | Categories are: misc,tree,rtl,gc,gcac; default | |
36 | is misc,tree,rtl" | |
3ecc3258 ZW |
37 | ac_help="$ac_help |
38 | --disable-cpp don't provide a user-visible C preprocessor." | |
39 | ac_help="$ac_help | |
40 | --with-cpp-install-dir=DIR | |
41 | install the user visible C preprocessor in DIR | |
42 | (relative to PREFIX) as well as PREFIX/bin." | |
861bb6c1 | 43 | ac_help="$ac_help |
a3e0a73b | 44 | --disable-cpplib use the old isolated C preprocessor." |
0b9d02c6 | 45 | ac_help="$ac_help |
f81a440f | 46 | --enable-c-cpplib link cpplib directly into C and C++ compilers |
3ecc3258 | 47 | (EXPERIMENTAL) (implies --enable-cpplib)." |
c5c76735 JL |
48 | ac_help="$ac_help |
49 | --enable-c-mbchar Enable multibyte characters for C and C++." | |
861bb6c1 JL |
50 | ac_help="$ac_help |
51 | --enable-threads enable thread usage for target GCC. | |
52 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
53 | ac_help="$ac_help |
54 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
55 | the GNU Objective-C runtime." | |
90e6a802 | 56 | ac_help="$ac_help |
756ee602 | 57 | --with-dwarf2 force the default debug format to be DWARF2." |
ab87f8c8 JL |
58 | ac_help="$ac_help |
59 | --enable-nls use Native Language Support (disabled by default)" | |
60 | ac_help="$ac_help | |
61 | --disable-nls do not use Native Language Support" | |
62 | ac_help="$ac_help | |
63 | --with-included-gettext use the GNU gettext library included here" | |
64 | ac_help="$ac_help | |
65 | --with-catgets use catgets functions if available" | |
f4ab28e3 MK |
66 | ac_help="$ac_help |
67 | --disable-win32-registry | |
68 | Disable lookup of installation paths in the | |
69 | Registry on Windows hosts. | |
70 | --enable-win32-registry Enable registry lookup (default). | |
71 | --enable-win32-registry=KEY | |
72 | Use KEY instead of GCC version as the last portion | |
73 | of the registry key." | |
81bf3d9e RH |
74 | ac_help="$ac_help |
75 | --with-gc={simple,page} Choose the garbage collection mechanism to use | |
76 | with the compiler." | |
7441a352 NS |
77 | ac_help="$ac_help |
78 | --enable-new-gxx-abi | |
79 | select the new abi for g++. You must select an ABI | |
80 | at configuration time, so that the correct runtime | |
81 | support is built. You cannot mix ABIs." | |
861bb6c1 JL |
82 | |
83 | # Initialize some variables set by options. | |
84 | # The variables have the same names as the options, with | |
85 | # dashes changed to underlines. | |
86 | build=NONE | |
87 | cache_file=./config.cache | |
88 | exec_prefix=NONE | |
89 | host=NONE | |
90 | no_create= | |
91 | nonopt=NONE | |
92 | no_recursion= | |
93 | prefix=NONE | |
94 | program_prefix=NONE | |
95 | program_suffix=NONE | |
96 | program_transform_name=s,x,x, | |
97 | silent= | |
98 | site= | |
99 | srcdir= | |
100 | target=NONE | |
101 | verbose= | |
102 | x_includes=NONE | |
103 | x_libraries=NONE | |
104 | bindir='${exec_prefix}/bin' | |
105 | sbindir='${exec_prefix}/sbin' | |
106 | libexecdir='${exec_prefix}/libexec' | |
107 | datadir='${prefix}/share' | |
108 | sysconfdir='${prefix}/etc' | |
109 | sharedstatedir='${prefix}/com' | |
110 | localstatedir='${prefix}/var' | |
111 | libdir='${exec_prefix}/lib' | |
112 | includedir='${prefix}/include' | |
113 | oldincludedir='/usr/include' | |
114 | infodir='${prefix}/info' | |
115 | mandir='${prefix}/man' | |
116 | ||
117 | # Initialize some other variables. | |
118 | subdirs= | |
119 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 120 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
121 | # Maximum number of lines to put in a shell here document. |
122 | ac_max_here_lines=12 | |
123 | ||
124 | ac_prev= | |
125 | for ac_option | |
126 | do | |
127 | ||
128 | # If the previous option needs an argument, assign it. | |
129 | if test -n "$ac_prev"; then | |
130 | eval "$ac_prev=\$ac_option" | |
131 | ac_prev= | |
132 | continue | |
133 | fi | |
134 | ||
135 | case "$ac_option" in | |
136 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
137 | *) ac_optarg= ;; | |
138 | esac | |
139 | ||
140 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
141 | ||
142 | case "$ac_option" in | |
143 | ||
144 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
145 | ac_prev=bindir ;; | |
146 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
147 | bindir="$ac_optarg" ;; | |
148 | ||
149 | -build | --build | --buil | --bui | --bu) | |
150 | ac_prev=build ;; | |
151 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
152 | build="$ac_optarg" ;; | |
153 | ||
154 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
155 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
156 | ac_prev=cache_file ;; | |
157 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
158 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
159 | cache_file="$ac_optarg" ;; | |
160 | ||
161 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
162 | ac_prev=datadir ;; | |
163 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
164 | | --da=*) | |
165 | datadir="$ac_optarg" ;; | |
166 | ||
167 | -disable-* | --disable-*) | |
168 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
169 | # Reject names that are not valid shell variable names. | |
170 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
171 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
172 | fi | |
173 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
174 | eval "enable_${ac_feature}=no" ;; | |
175 | ||
176 | -enable-* | --enable-*) | |
177 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
178 | # Reject names that are not valid shell variable names. | |
179 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
180 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
181 | fi | |
182 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
183 | case "$ac_option" in | |
184 | *=*) ;; | |
185 | *) ac_optarg=yes ;; | |
186 | esac | |
187 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
188 | ||
189 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
190 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
191 | | --exec | --exe | --ex) | |
192 | ac_prev=exec_prefix ;; | |
193 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
194 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
195 | | --exec=* | --exe=* | --ex=*) | |
196 | exec_prefix="$ac_optarg" ;; | |
197 | ||
198 | -gas | --gas | --ga | --g) | |
199 | # Obsolete; use --with-gas. | |
200 | with_gas=yes ;; | |
201 | ||
202 | -help | --help | --hel | --he) | |
203 | # Omit some internal or obsolete options to make the list less imposing. | |
204 | # This message is too long to be a string in the A/UX 3.1 sh. | |
205 | cat << EOF | |
206 | Usage: configure [options] [host] | |
207 | Options: [defaults in brackets after descriptions] | |
208 | Configuration: | |
209 | --cache-file=FILE cache test results in FILE | |
210 | --help print this message | |
211 | --no-create do not create output files | |
212 | --quiet, --silent do not print \`checking...' messages | |
213 | --version print the version of autoconf that created configure | |
214 | Directory and file names: | |
215 | --prefix=PREFIX install architecture-independent files in PREFIX | |
216 | [$ac_default_prefix] | |
217 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
218 | [same as prefix] | |
219 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
220 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
221 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
222 | --datadir=DIR read-only architecture-independent data in DIR | |
223 | [PREFIX/share] | |
224 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
225 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
226 | [PREFIX/com] | |
227 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
228 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
229 | --includedir=DIR C header files in DIR [PREFIX/include] | |
230 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
231 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
232 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
233 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
234 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
235 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
236 | --program-transform-name=PROGRAM | |
237 | run sed PROGRAM on installed program names | |
238 | EOF | |
239 | cat << EOF | |
240 | Host type: | |
241 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
242 | --host=HOST configure for HOST [guessed] | |
243 | --target=TARGET configure for TARGET [TARGET=HOST] | |
244 | Features and packages: | |
245 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
246 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
247 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
248 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
249 | --x-includes=DIR X include files are in DIR | |
250 | --x-libraries=DIR X library files are in DIR | |
251 | EOF | |
252 | if test -n "$ac_help"; then | |
253 | echo "--enable and --with options recognized:$ac_help" | |
254 | fi | |
255 | exit 0 ;; | |
256 | ||
257 | -host | --host | --hos | --ho) | |
258 | ac_prev=host ;; | |
259 | -host=* | --host=* | --hos=* | --ho=*) | |
260 | host="$ac_optarg" ;; | |
261 | ||
262 | -includedir | --includedir | --includedi | --included | --include \ | |
263 | | --includ | --inclu | --incl | --inc) | |
264 | ac_prev=includedir ;; | |
265 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
266 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
267 | includedir="$ac_optarg" ;; | |
268 | ||
269 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
270 | ac_prev=infodir ;; | |
271 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
272 | infodir="$ac_optarg" ;; | |
273 | ||
274 | -libdir | --libdir | --libdi | --libd) | |
275 | ac_prev=libdir ;; | |
276 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
277 | libdir="$ac_optarg" ;; | |
278 | ||
279 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
280 | | --libexe | --libex | --libe) | |
281 | ac_prev=libexecdir ;; | |
282 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
283 | | --libexe=* | --libex=* | --libe=*) | |
284 | libexecdir="$ac_optarg" ;; | |
285 | ||
286 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
287 | | --localstate | --localstat | --localsta | --localst \ | |
288 | | --locals | --local | --loca | --loc | --lo) | |
289 | ac_prev=localstatedir ;; | |
290 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
291 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
292 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
293 | localstatedir="$ac_optarg" ;; | |
294 | ||
295 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
296 | ac_prev=mandir ;; | |
297 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
298 | mandir="$ac_optarg" ;; | |
299 | ||
300 | -nfp | --nfp | --nf) | |
301 | # Obsolete; use --without-fp. | |
302 | with_fp=no ;; | |
303 | ||
304 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
305 | | --no-cr | --no-c) | |
306 | no_create=yes ;; | |
307 | ||
308 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
309 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
310 | no_recursion=yes ;; | |
311 | ||
312 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
313 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
314 | | --oldin | --oldi | --old | --ol | --o) | |
315 | ac_prev=oldincludedir ;; | |
316 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
317 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
318 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
319 | oldincludedir="$ac_optarg" ;; | |
320 | ||
321 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
322 | ac_prev=prefix ;; | |
323 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
324 | prefix="$ac_optarg" ;; | |
325 | ||
326 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
327 | | --program-pre | --program-pr | --program-p) | |
328 | ac_prev=program_prefix ;; | |
329 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
330 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
331 | program_prefix="$ac_optarg" ;; | |
332 | ||
333 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
334 | | --program-suf | --program-su | --program-s) | |
335 | ac_prev=program_suffix ;; | |
336 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
337 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
338 | program_suffix="$ac_optarg" ;; | |
339 | ||
340 | -program-transform-name | --program-transform-name \ | |
341 | | --program-transform-nam | --program-transform-na \ | |
342 | | --program-transform-n | --program-transform- \ | |
343 | | --program-transform | --program-transfor \ | |
344 | | --program-transfo | --program-transf \ | |
345 | | --program-trans | --program-tran \ | |
346 | | --progr-tra | --program-tr | --program-t) | |
347 | ac_prev=program_transform_name ;; | |
348 | -program-transform-name=* | --program-transform-name=* \ | |
349 | | --program-transform-nam=* | --program-transform-na=* \ | |
350 | | --program-transform-n=* | --program-transform-=* \ | |
351 | | --program-transform=* | --program-transfor=* \ | |
352 | | --program-transfo=* | --program-transf=* \ | |
353 | | --program-trans=* | --program-tran=* \ | |
354 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
355 | program_transform_name="$ac_optarg" ;; | |
356 | ||
357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
358 | | -silent | --silent | --silen | --sile | --sil) | |
359 | silent=yes ;; | |
360 | ||
361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
362 | ac_prev=sbindir ;; | |
363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
364 | | --sbi=* | --sb=*) | |
365 | sbindir="$ac_optarg" ;; | |
366 | ||
367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
369 | | --sharedst | --shareds | --shared | --share | --shar \ | |
370 | | --sha | --sh) | |
371 | ac_prev=sharedstatedir ;; | |
372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
375 | | --sha=* | --sh=*) | |
376 | sharedstatedir="$ac_optarg" ;; | |
377 | ||
378 | -site | --site | --sit) | |
379 | ac_prev=site ;; | |
380 | -site=* | --site=* | --sit=*) | |
381 | site="$ac_optarg" ;; | |
382 | ||
383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
384 | ac_prev=srcdir ;; | |
385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
386 | srcdir="$ac_optarg" ;; | |
387 | ||
388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
389 | | --syscon | --sysco | --sysc | --sys | --sy) | |
390 | ac_prev=sysconfdir ;; | |
391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
393 | sysconfdir="$ac_optarg" ;; | |
394 | ||
395 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
396 | ac_prev=target ;; | |
397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
398 | target="$ac_optarg" ;; | |
399 | ||
400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
401 | verbose=yes ;; | |
402 | ||
403 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 404 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
405 | exit 0 ;; |
406 | ||
407 | -with-* | --with-*) | |
408 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
409 | # Reject names that are not valid shell variable names. | |
410 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
411 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
412 | fi | |
413 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
414 | case "$ac_option" in | |
415 | *=*) ;; | |
416 | *) ac_optarg=yes ;; | |
417 | esac | |
418 | eval "with_${ac_package}='$ac_optarg'" ;; | |
419 | ||
420 | -without-* | --without-*) | |
421 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
422 | # Reject names that are not valid shell variable names. | |
423 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
424 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
425 | fi | |
426 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
427 | eval "with_${ac_package}=no" ;; | |
428 | ||
429 | --x) | |
430 | # Obsolete; use --with-x. | |
431 | with_x=yes ;; | |
432 | ||
433 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
434 | | --x-incl | --x-inc | --x-in | --x-i) | |
435 | ac_prev=x_includes ;; | |
436 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
437 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
438 | x_includes="$ac_optarg" ;; | |
439 | ||
440 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
441 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
442 | ac_prev=x_libraries ;; | |
443 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
444 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
445 | x_libraries="$ac_optarg" ;; | |
446 | ||
447 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
448 | ;; | |
449 | ||
450 | *) | |
451 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
452 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
453 | fi | |
454 | if test "x$nonopt" != xNONE; then | |
455 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
456 | fi | |
457 | nonopt="$ac_option" | |
458 | ;; | |
459 | ||
460 | esac | |
461 | done | |
462 | ||
463 | if test -n "$ac_prev"; then | |
464 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
465 | fi | |
466 | ||
467 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
468 | ||
469 | # File descriptor usage: | |
470 | # 0 standard input | |
471 | # 1 file creation | |
472 | # 2 errors and warnings | |
473 | # 3 some systems may open it to /dev/tty | |
474 | # 4 used on the Kubota Titan | |
475 | # 6 checking for... messages and results | |
476 | # 5 compiler messages saved in config.log | |
477 | if test "$silent" = yes; then | |
478 | exec 6>/dev/null | |
479 | else | |
480 | exec 6>&1 | |
481 | fi | |
482 | exec 5>./config.log | |
483 | ||
484 | echo "\ | |
485 | This file contains any messages produced by compilers while | |
486 | running configure, to aid debugging if configure makes a mistake. | |
487 | " 1>&5 | |
488 | ||
489 | # Strip out --no-create and --no-recursion so they do not pile up. | |
490 | # Also quote any args containing shell metacharacters. | |
491 | ac_configure_args= | |
492 | for ac_arg | |
493 | do | |
494 | case "$ac_arg" in | |
495 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
496 | | --no-cr | --no-c) ;; | |
497 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
498 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
499 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
500 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
501 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
502 | esac | |
503 | done | |
504 | ||
505 | # NLS nuisances. | |
506 | # Only set these to C if already set. These must not be set unconditionally | |
507 | # because not all systems understand e.g. LANG=C (notably SCO). | |
508 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
509 | # Non-C LC_CTYPE values break the ctype check. | |
510 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
511 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
512 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
513 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
514 | ||
515 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
516 | rm -rf conftest* confdefs.h | |
517 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
518 | echo > confdefs.h | |
519 | ||
520 | # A filename unique to this package, relative to the directory that | |
521 | # configure is in, which we can look for to find out if srcdir is correct. | |
522 | ac_unique_file=tree.c | |
523 | ||
524 | # Find the source files, if location was not specified. | |
525 | if test -z "$srcdir"; then | |
526 | ac_srcdir_defaulted=yes | |
527 | # Try the directory containing this script, then its parent. | |
528 | ac_prog=$0 | |
529 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
530 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
531 | srcdir=$ac_confdir | |
532 | if test ! -r $srcdir/$ac_unique_file; then | |
533 | srcdir=.. | |
534 | fi | |
535 | else | |
536 | ac_srcdir_defaulted=no | |
537 | fi | |
538 | if test ! -r $srcdir/$ac_unique_file; then | |
539 | if test "$ac_srcdir_defaulted" = yes; then | |
540 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
541 | else | |
542 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
543 | fi | |
544 | fi | |
545 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
546 | ||
547 | # Prefer explicitly selected file to automatically selected ones. | |
24e971f6 JL |
548 | if test -z "$CONFIG_SITE"; then |
549 | if test "x$prefix" != xNONE; then | |
550 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
551 | else | |
552 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
861bb6c1 JL |
553 | fi |
554 | fi | |
555 | for ac_site_file in $CONFIG_SITE; do | |
556 | if test -r "$ac_site_file"; then | |
557 | echo "loading site script $ac_site_file" | |
558 | . "$ac_site_file" | |
559 | fi | |
560 | done | |
561 | ||
562 | if test -r "$cache_file"; then | |
563 | echo "loading cache $cache_file" | |
564 | . $cache_file | |
565 | else | |
566 | echo "creating cache $cache_file" | |
567 | > $cache_file | |
568 | fi | |
569 | ||
570 | ac_ext=c | |
571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
572 | ac_cpp='$CPP $CPPFLAGS' | |
573 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 574 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
575 | cross_compiling=$ac_cv_prog_cc_cross |
576 | ||
cd9e5e7c MK |
577 | ac_exeext= |
578 | ac_objext=o | |
861bb6c1 JL |
579 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
580 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
581 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
582 | ac_n= ac_c=' | |
583 | ' ac_t=' ' | |
584 | else | |
585 | ac_n=-n ac_c= ac_t= | |
586 | fi | |
587 | else | |
588 | ac_n= ac_c='\c' ac_t= | |
589 | fi | |
590 | ||
591 | ||
592 | ||
593 | ||
861bb6c1 JL |
594 | remove=rm |
595 | hard_link=ln | |
596 | symbolic_link='ln -s' | |
597 | copy=cp | |
598 | ||
75a39864 JL |
599 | # Check for bogus environment variables. |
600 | # Test if LIBRARY_PATH contains the notation for the current directory | |
601 | # since this would lead to problems installing/building glibc. | |
602 | # LIBRARY_PATH contains the current directory if one of the following | |
603 | # is true: | |
604 | # - one of the terminals (":" and ";") is the first or last sign | |
605 | # - two terminals occur directly after each other | |
606 | # - the path contains an element with a dot in it | |
607 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
24e971f6 | 608 | echo "configure:609: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
609 | case ${LIBRARY_PATH} in |
610 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
611 | library_path_setting="contains current directory" | |
612 | ;; | |
613 | *) | |
614 | library_path_setting="ok" | |
615 | ;; | |
616 | esac | |
617 | echo "$ac_t""$library_path_setting" 1>&6 | |
618 | if test "$library_path_setting" != "ok"; then | |
619 | { echo "configure: error: | |
620 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 621 | *** building gcc. Please change the environment variable |
75a39864 JL |
622 | *** and run configure again." 1>&2; exit 1; } |
623 | fi | |
624 | ||
625 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
626 | # since this would lead to problems installing/building glibc. | |
627 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
628 | # is true: | |
629 | # - one of the terminals (":" and ";") is the first or last sign | |
630 | # - two terminals occur directly after each other | |
631 | # - the path contains an element with a dot in it | |
632 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
24e971f6 | 633 | echo "configure:634: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
634 | case ${GCC_EXEC_PREFIX} in |
635 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
636 | gcc_exec_prefix_setting="contains current directory" | |
637 | ;; | |
638 | *) | |
639 | gcc_exec_prefix_setting="ok" | |
640 | ;; | |
641 | esac | |
642 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
643 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
644 | { echo "configure: error: | |
645 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 646 | *** building gcc. Please change the environment variable |
75a39864 JL |
647 | *** and run configure again." 1>&2; exit 1; } |
648 | fi | |
649 | ||
861bb6c1 JL |
650 | # Check for additional parameters |
651 | ||
652 | # With GNU ld | |
653 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
654 | if test "${with_gnu_ld+set}" = set; then | |
655 | withval="$with_gnu_ld" | |
df6faf79 | 656 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 657 | else |
df6faf79 | 658 | gnu_ld_flag=no |
861bb6c1 JL |
659 | fi |
660 | ||
661 | ||
ab339d62 AO |
662 | # With pre-defined ld |
663 | # Check whether --with-ld or --without-ld was given. | |
664 | if test "${with_ld+set}" = set; then | |
665 | withval="$with_ld" | |
3ccc3a56 | 666 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
667 | fi |
668 | ||
3ccc3a56 AO |
669 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
670 | if test ! -x "$DEFAULT_LINKER"; then | |
671 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 672 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
673 | gnu_ld_flag=yes |
674 | fi | |
675 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 676 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
677 | EOF |
678 | ||
679 | fi | |
680 | ||
861bb6c1 JL |
681 | # With GNU as |
682 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
683 | if test "${with_gnu_as+set}" = set; then | |
684 | withval="$with_gnu_as" | |
df6faf79 | 685 | gas_flag="$with_gnu_as" |
861bb6c1 | 686 | else |
df6faf79 | 687 | gas_flag=no |
861bb6c1 JL |
688 | fi |
689 | ||
690 | ||
ab339d62 AO |
691 | # Check whether --with-as or --without-as was given. |
692 | if test "${with_as+set}" = set; then | |
693 | withval="$with_as" | |
3ccc3a56 | 694 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
695 | fi |
696 | ||
3ccc3a56 AO |
697 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
698 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
699 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 700 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
701 | gas_flag=yes |
702 | fi | |
703 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 704 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
705 | EOF |
706 | ||
3ccc3a56 | 707 | fi |
ab339d62 | 708 | |
861bb6c1 JL |
709 | # With stabs |
710 | # Check whether --with-stabs or --without-stabs was given. | |
711 | if test "${with_stabs+set}" = set; then | |
712 | withval="$with_stabs" | |
535b86ce | 713 | stabs="$with_stabs" |
861bb6c1 JL |
714 | else |
715 | stabs=no | |
716 | fi | |
717 | ||
718 | ||
719 | # With ELF | |
720 | # Check whether --with-elf or --without-elf was given. | |
721 | if test "${with_elf+set}" = set; then | |
722 | withval="$with_elf" | |
535b86ce | 723 | elf="$with_elf" |
861bb6c1 JL |
724 | else |
725 | elf=no | |
726 | fi | |
727 | ||
728 | ||
729 | # Specify the local prefix | |
4e88d51b | 730 | local_prefix= |
861bb6c1 JL |
731 | # Check whether --with-local-prefix or --without-local-prefix was given. |
732 | if test "${with_local_prefix+set}" = set; then | |
733 | withval="$with_local_prefix" | |
4e88d51b JM |
734 | case "${withval}" in |
735 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
736 | no) ;; | |
737 | *) local_prefix=$with_local_prefix ;; | |
738 | esac | |
861bb6c1 JL |
739 | fi |
740 | ||
741 | ||
742 | # Default local prefix if it is empty | |
75bffa71 | 743 | if test x$local_prefix = x; then |
861bb6c1 JL |
744 | local_prefix=/usr/local |
745 | fi | |
746 | ||
8f8d3278 NC |
747 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
748 | # passed in by the toplevel make and thus we'd get different behavior | |
749 | # depending on where we built the sources. | |
750 | gcc_gxx_include_dir= | |
861bb6c1 JL |
751 | # Specify the g++ header file directory |
752 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
753 | if test "${with_gxx_include_dir+set}" = set; then | |
754 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
755 | case "${withval}" in |
756 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
757 | no) ;; | |
8f8d3278 | 758 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 759 | esac |
861bb6c1 JL |
760 | fi |
761 | ||
762 | ||
8f8d3278 | 763 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 764 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 765 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 766 | else |
a270b446 | 767 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 768 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
769 | fi |
770 | fi | |
771 | ||
a494747c MM |
772 | # Enable expensive internal checks |
773 | # Check whether --enable-checking or --disable-checking was given. | |
774 | if test "${enable_checking+set}" = set; then | |
775 | enableval="$enable_checking" | |
4e88d51b JM |
776 | case "${enableval}" in |
777 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
778 | #define ENABLE_CHECKING 1 |
779 | EOF | |
f4524c9e ZW |
780 | |
781 | cat >> confdefs.h <<\EOF | |
782 | #define ENABLE_TREE_CHECKING 1 | |
783 | EOF | |
784 | ||
785 | cat >> confdefs.h <<\EOF | |
786 | #define ENABLE_RTL_CHECKING 1 | |
787 | EOF | |
788 | ;; | |
4e88d51b | 789 | no) ;; |
f4524c9e ZW |
790 | *) ac_save_IFS="$IFS" IFS="$IFS," |
791 | set fnord $enableval; shift | |
792 | IFS="$ac_save_IFS" | |
c62e45ad KG |
793 | for check |
794 | do | |
f4524c9e ZW |
795 | case $check in |
796 | misc) cat >> confdefs.h <<\EOF | |
797 | #define ENABLE_CHECKING 1 | |
798 | EOF | |
799 | ;; | |
800 | tree) cat >> confdefs.h <<\EOF | |
801 | #define ENABLE_TREE_CHECKING 1 | |
802 | EOF | |
803 | ;; | |
804 | rtl) cat >> confdefs.h <<\EOF | |
805 | #define ENABLE_RTL_CHECKING 1 | |
806 | EOF | |
807 | ;; | |
808 | gc) cat >> confdefs.h <<\EOF | |
809 | #define ENABLE_GC_CHECKING 1 | |
810 | EOF | |
811 | ;; | |
812 | gcac) cat >> confdefs.h <<\EOF | |
813 | #define ENABLE_GC_ALWAYS_COLLECT 1 | |
814 | EOF | |
815 | ;; | |
816 | *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; | |
817 | esac | |
818 | done | |
819 | ;; | |
4e88d51b | 820 | esac |
a494747c MM |
821 | fi |
822 | ||
823 | ||
3ecc3258 ZW |
824 | # Check whether --enable-cpp or --disable-cpp was given. |
825 | if test "${enable_cpp+set}" = set; then | |
826 | enableval="$enable_cpp" | |
827 | : | |
828 | else | |
829 | enable_cpp=yes | |
830 | fi | |
831 | ||
832 | ||
833 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
834 | if test "${with_cpp_install_dir+set}" = set; then | |
835 | withval="$with_cpp_install_dir" | |
836 | if test x$withval = xyes; then | |
837 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
838 | elif test x$withval != xno; then | |
839 | cpp_install_dir=$withval | |
840 | fi | |
841 | fi | |
842 | ||
843 | ||
f81a440f | 844 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
a3e0a73b | 845 | cpp_main=cppmain |
f81a440f ZW |
846 | # Check whether --enable-cpplib or --disable-cpplib was given. |
847 | if test "${enable_cpplib+set}" = set; then | |
848 | enableval="$enable_cpplib" | |
a3e0a73b ZW |
849 | if test x$enable_cpplib = xno; then |
850 | cpp_main=cccp | |
f81a440f ZW |
851 | fi |
852 | fi | |
853 | ||
854 | ||
855 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
861bb6c1 JL |
856 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
857 | if test "${enable_c_cpplib+set}" = set; then | |
858 | enableval="$enable_c_cpplib" | |
75bffa71 | 859 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
860 | extra_c_objs="${extra_c_objs} libcpp.a" |
861 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
4525d757 | 862 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 863 | cpp_main=cppmain |
861bb6c1 JL |
864 | fi |
865 | fi | |
866 | ||
f81a440f | 867 | |
c5c76735 JL |
868 | # Enable Multibyte Characters for C/C++ |
869 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
870 | if test "${enable_c_mbchar+set}" = set; then | |
871 | enableval="$enable_c_mbchar" | |
2618c083 | 872 | if test x$enable_c_mbchar != xno; then |
64fb023e | 873 | extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1" |
c5c76735 JL |
874 | fi |
875 | fi | |
876 | ||
877 | ||
861bb6c1 JL |
878 | # Enable threads |
879 | # Pass with no value to take the default | |
880 | # Pass with a value to specify a thread package | |
881 | # Check whether --enable-threads or --disable-threads was given. | |
882 | if test "${enable_threads+set}" = set; then | |
883 | enableval="$enable_threads" | |
75bffa71 | 884 | if test x$enable_threads = xno; then |
861bb6c1 JL |
885 | enable_threads='' |
886 | fi | |
887 | else | |
888 | enable_threads='' | |
889 | fi | |
890 | ||
891 | ||
e445171e | 892 | enable_threads_flag=$enable_threads |
861bb6c1 | 893 | # Check if a valid thread package |
e445171e | 894 | case x${enable_threads_flag} in |
861bb6c1 JL |
895 | x | xno) |
896 | # No threads | |
a851212a | 897 | target_thread_file='single' |
861bb6c1 JL |
898 | ;; |
899 | xyes) | |
900 | # default | |
a851212a | 901 | target_thread_file='' |
861bb6c1 JL |
902 | ;; |
903 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 904 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 905 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
906 | ;; |
907 | *) | |
908 | echo "$enable_threads is an unknown thread package" 1>&2 | |
909 | exit 1 | |
910 | ;; | |
911 | esac | |
912 | ||
d8bb17c8 OP |
913 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
914 | if test "${enable_objc_gc+set}" = set; then | |
915 | enableval="$enable_objc_gc" | |
2618c083 | 916 | if test x$enable_objc_gc = xno; then |
d8bb17c8 OP |
917 | objc_boehm_gc='' |
918 | else | |
919 | objc_boehm_gc=1 | |
920 | fi | |
921 | else | |
922 | objc_boehm_gc='' | |
923 | fi | |
924 | ||
925 | ||
90e6a802 RL |
926 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
927 | if test "${with_dwarf2+set}" = set; then | |
928 | withval="$with_dwarf2" | |
929 | dwarf2="$with_dwarf2" | |
930 | else | |
931 | dwarf2=no | |
932 | fi | |
933 | ||
934 | ||
861bb6c1 JL |
935 | # Determine the host, build, and target systems |
936 | ac_aux_dir= | |
937 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
938 | if test -f $ac_dir/install-sh; then | |
939 | ac_aux_dir=$ac_dir | |
940 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
941 | break | |
942 | elif test -f $ac_dir/install.sh; then | |
943 | ac_aux_dir=$ac_dir | |
944 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
945 | break | |
946 | fi | |
947 | done | |
948 | if test -z "$ac_aux_dir"; then | |
949 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
950 | fi | |
951 | ac_config_guess=$ac_aux_dir/config.guess | |
952 | ac_config_sub=$ac_aux_dir/config.sub | |
953 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
954 | ||
955 | ||
956 | # Do some error checking and defaulting for the host and target type. | |
957 | # The inputs are: | |
958 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
959 | # | |
960 | # The rules are: | |
961 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
962 | # same time. | |
963 | # 2. Host defaults to nonopt. | |
964 | # 3. If nonopt is not specified, then host defaults to the current host, | |
965 | # as determined by config.guess. | |
966 | # 4. Target and build default to nonopt. | |
967 | # 5. If nonopt is not specified, then target and build default to host. | |
968 | ||
969 | # The aliases save the names the user supplied, while $host etc. | |
970 | # will get canonicalized. | |
971 | case $host---$target---$nonopt in | |
972 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
973 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
974 | esac | |
975 | ||
976 | ||
977 | # Make sure we can run config.sub. | |
6f144c9c | 978 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
979 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
980 | fi | |
981 | ||
982 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
24e971f6 | 983 | echo "configure:984: checking host system type" >&5 |
861bb6c1 JL |
984 | |
985 | host_alias=$host | |
986 | case "$host_alias" in | |
987 | NONE) | |
988 | case $nonopt in | |
989 | NONE) | |
6f144c9c | 990 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
991 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
992 | fi ;; | |
993 | *) host_alias=$nonopt ;; | |
994 | esac ;; | |
995 | esac | |
996 | ||
6f144c9c | 997 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
998 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
999 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1000 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1001 | echo "$ac_t""$host" 1>&6 | |
1002 | ||
1003 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
24e971f6 | 1004 | echo "configure:1005: checking target system type" >&5 |
861bb6c1 JL |
1005 | |
1006 | target_alias=$target | |
1007 | case "$target_alias" in | |
1008 | NONE) | |
1009 | case $nonopt in | |
1010 | NONE) target_alias=$host_alias ;; | |
1011 | *) target_alias=$nonopt ;; | |
1012 | esac ;; | |
1013 | esac | |
1014 | ||
6f144c9c | 1015 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
1016 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1017 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1018 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1019 | echo "$ac_t""$target" 1>&6 | |
1020 | ||
1021 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
24e971f6 | 1022 | echo "configure:1023: checking build system type" >&5 |
861bb6c1 JL |
1023 | |
1024 | build_alias=$build | |
1025 | case "$build_alias" in | |
1026 | NONE) | |
1027 | case $nonopt in | |
1028 | NONE) build_alias=$host_alias ;; | |
1029 | *) build_alias=$nonopt ;; | |
1030 | esac ;; | |
1031 | esac | |
1032 | ||
6f144c9c | 1033 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1034 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1035 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1036 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1037 | echo "$ac_t""$build" 1>&6 | |
1038 | ||
1039 | test "$host_alias" != "$target_alias" && | |
1040 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1041 | NONENONEs,x,x, && | |
1042 | program_prefix=${target_alias}- | |
1043 | ||
1044 | ||
e9a25f70 JL |
1045 | # Find the native compiler |
1046 | # Extract the first word of "gcc", so it can be a program name with args. | |
1047 | set dummy gcc; ac_word=$2 | |
1048 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1049 | echo "configure:1050: checking for $ac_word" >&5 |
e9a25f70 JL |
1050 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1052 | else | |
1053 | if test -n "$CC"; then | |
1054 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1055 | else | |
cd9e5e7c | 1056 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1057 | ac_dummy="$PATH" |
1058 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1059 | test -z "$ac_dir" && ac_dir=. |
1060 | if test -f $ac_dir/$ac_word; then | |
1061 | ac_cv_prog_CC="gcc" | |
1062 | break | |
1063 | fi | |
1064 | done | |
1065 | IFS="$ac_save_ifs" | |
1066 | fi | |
1067 | fi | |
1068 | CC="$ac_cv_prog_CC" | |
1069 | if test -n "$CC"; then | |
1070 | echo "$ac_t""$CC" 1>&6 | |
1071 | else | |
1072 | echo "$ac_t""no" 1>&6 | |
1073 | fi | |
1074 | ||
1075 | if test -z "$CC"; then | |
1076 | # Extract the first word of "cc", so it can be a program name with args. | |
1077 | set dummy cc; ac_word=$2 | |
1078 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1079 | echo "configure:1080: checking for $ac_word" >&5 |
e9a25f70 JL |
1080 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1082 | else | |
1083 | if test -n "$CC"; then | |
1084 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1085 | else | |
cd9e5e7c | 1086 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1087 | ac_prog_rejected=no |
b27d2bd5 MK |
1088 | ac_dummy="$PATH" |
1089 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1090 | test -z "$ac_dir" && ac_dir=. |
1091 | if test -f $ac_dir/$ac_word; then | |
1092 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1093 | ac_prog_rejected=yes | |
1094 | continue | |
1095 | fi | |
1096 | ac_cv_prog_CC="cc" | |
1097 | break | |
1098 | fi | |
1099 | done | |
1100 | IFS="$ac_save_ifs" | |
1101 | if test $ac_prog_rejected = yes; then | |
1102 | # We found a bogon in the path, so make sure we never use it. | |
1103 | set dummy $ac_cv_prog_CC | |
1104 | shift | |
1105 | if test $# -gt 0; then | |
1106 | # We chose a different compiler from the bogus one. | |
1107 | # However, it has the same basename, so the bogon will be chosen | |
1108 | # first if we set CC to just the basename; use the full file name. | |
1109 | shift | |
1110 | set dummy "$ac_dir/$ac_word" "$@" | |
1111 | shift | |
1112 | ac_cv_prog_CC="$@" | |
1113 | fi | |
1114 | fi | |
1115 | fi | |
1116 | fi | |
1117 | CC="$ac_cv_prog_CC" | |
1118 | if test -n "$CC"; then | |
1119 | echo "$ac_t""$CC" 1>&6 | |
1120 | else | |
1121 | echo "$ac_t""no" 1>&6 | |
1122 | fi | |
1123 | ||
cd9e5e7c MK |
1124 | if test -z "$CC"; then |
1125 | case "`uname -s`" in | |
1126 | *win32* | *WIN32*) | |
1127 | # Extract the first word of "cl", so it can be a program name with args. | |
1128 | set dummy cl; ac_word=$2 | |
1129 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1130 | echo "configure:1131: checking for $ac_word" >&5 |
cd9e5e7c MK |
1131 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1133 | else | |
1134 | if test -n "$CC"; then | |
1135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1136 | else | |
1137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1138 | ac_dummy="$PATH" |
1139 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1140 | test -z "$ac_dir" && ac_dir=. |
1141 | if test -f $ac_dir/$ac_word; then | |
1142 | ac_cv_prog_CC="cl" | |
1143 | break | |
1144 | fi | |
1145 | done | |
1146 | IFS="$ac_save_ifs" | |
1147 | fi | |
1148 | fi | |
1149 | CC="$ac_cv_prog_CC" | |
1150 | if test -n "$CC"; then | |
1151 | echo "$ac_t""$CC" 1>&6 | |
1152 | else | |
1153 | echo "$ac_t""no" 1>&6 | |
1154 | fi | |
1155 | ;; | |
1156 | esac | |
1157 | fi | |
e9a25f70 JL |
1158 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1159 | fi | |
1160 | ||
1161 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
24e971f6 | 1162 | echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1163 | |
1164 | ac_ext=c | |
1165 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1166 | ac_cpp='$CPP $CPPFLAGS' | |
1167 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1168 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1169 | cross_compiling=$ac_cv_prog_cc_cross |
1170 | ||
b27d2bd5 MK |
1171 | cat > conftest.$ac_ext << EOF |
1172 | ||
24e971f6 | 1173 | #line 1174 "configure" |
e9a25f70 | 1174 | #include "confdefs.h" |
b27d2bd5 | 1175 | |
e9a25f70 JL |
1176 | main(){return(0);} |
1177 | EOF | |
24e971f6 | 1178 | if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1179 | ac_cv_prog_cc_works=yes |
1180 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1181 | if (./conftest; exit) 2>/dev/null; then | |
1182 | ac_cv_prog_cc_cross=no | |
1183 | else | |
1184 | ac_cv_prog_cc_cross=yes | |
1185 | fi | |
1186 | else | |
1187 | echo "configure: failed program was:" >&5 | |
1188 | cat conftest.$ac_ext >&5 | |
1189 | ac_cv_prog_cc_works=no | |
1190 | fi | |
1191 | rm -fr conftest* | |
b27d2bd5 MK |
1192 | ac_ext=c |
1193 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1194 | ac_cpp='$CPP $CPPFLAGS' | |
1195 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1196 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1197 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1198 | |
1199 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1200 | if test $ac_cv_prog_cc_works = no; then | |
1201 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1202 | fi | |
1203 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
24e971f6 | 1204 | echo "configure:1205: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1205 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1206 | cross_compiling=$ac_cv_prog_cc_cross | |
1207 | ||
1208 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
24e971f6 | 1209 | echo "configure:1210: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1210 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1212 | else | |
1213 | cat > conftest.c <<EOF | |
1214 | #ifdef __GNUC__ | |
1215 | yes; | |
1216 | #endif | |
1217 | EOF | |
24e971f6 | 1218 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1219 | ac_cv_prog_gcc=yes |
1220 | else | |
1221 | ac_cv_prog_gcc=no | |
1222 | fi | |
1223 | fi | |
1224 | ||
1225 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1226 | ||
1227 | if test $ac_cv_prog_gcc = yes; then | |
1228 | GCC=yes | |
cd9e5e7c MK |
1229 | else |
1230 | GCC= | |
1231 | fi | |
1232 | ||
1233 | ac_test_CFLAGS="${CFLAGS+set}" | |
1234 | ac_save_CFLAGS="$CFLAGS" | |
1235 | CFLAGS= | |
1236 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
24e971f6 | 1237 | echo "configure:1238: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1238 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1240 | else | |
1241 | echo 'void f(){}' > conftest.c | |
1242 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1243 | ac_cv_prog_cc_g=yes | |
1244 | else | |
1245 | ac_cv_prog_cc_g=no | |
1246 | fi | |
1247 | rm -f conftest* | |
1248 | ||
1249 | fi | |
1250 | ||
1251 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1252 | if test "$ac_test_CFLAGS" = set; then |
1253 | CFLAGS="$ac_save_CFLAGS" | |
1254 | elif test $ac_cv_prog_cc_g = yes; then | |
1255 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1256 | CFLAGS="-g -O2" |
1257 | else | |
cd9e5e7c | 1258 | CFLAGS="-g" |
81814e35 | 1259 | fi |
3723cad9 | 1260 | else |
cd9e5e7c MK |
1261 | if test "$GCC" = yes; then |
1262 | CFLAGS="-O2" | |
1263 | else | |
1264 | CFLAGS= | |
1265 | fi | |
e9a25f70 JL |
1266 | fi |
1267 | ||
04cabffc | 1268 | echo $ac_n "checking for long double""... $ac_c" 1>&6 |
24e971f6 | 1269 | echo "configure:1270: checking for long double" >&5 |
04cabffc KG |
1270 | if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then |
1271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1272 | else | |
1273 | if test "$GCC" = yes; then | |
1274 | gcc_cv_c_long_double=yes | |
1275 | else | |
1276 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1277 | #line 1278 "configure" |
04cabffc KG |
1278 | #include "confdefs.h" |
1279 | ||
1280 | int main() { | |
1281 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
1282 | long double foo = 0.0; | |
1283 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
1284 | switch (0) case 0: case (sizeof(long double) >= sizeof(double)):; | |
1285 | ; return 0; } | |
1286 | EOF | |
24e971f6 | 1287 | if { (eval echo configure:1288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
04cabffc KG |
1288 | rm -rf conftest* |
1289 | gcc_cv_c_long_double=yes | |
1290 | else | |
1291 | echo "configure: failed program was:" >&5 | |
1292 | cat conftest.$ac_ext >&5 | |
1293 | rm -rf conftest* | |
1294 | gcc_cv_c_long_double=no | |
1295 | fi | |
1296 | rm -f conftest* | |
1297 | fi | |
1298 | fi | |
1299 | ||
1300 | echo "$ac_t""$gcc_cv_c_long_double" 1>&6 | |
1301 | if test $gcc_cv_c_long_double = yes; then | |
1302 | cat >> confdefs.h <<\EOF | |
1303 | #define HAVE_LONG_DOUBLE 1 | |
1304 | EOF | |
1305 | ||
1306 | fi | |
1307 | ||
61842080 MM |
1308 | |
1309 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1310 | # That's useful for people building cross-compilers, or just running a | |
1311 | # quick `make'. | |
1312 | if test "x$GCC" = "xyes"; then | |
1313 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1314 | else | |
1315 | stage1_warn_cflags="" | |
1316 | fi | |
1317 | ||
1318 | ||
e9a25f70 | 1319 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
24e971f6 | 1320 | echo "configure:1321: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1321 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1322 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1324 | else | |
1325 | cat > conftestmake <<\EOF | |
1326 | all: | |
1327 | @echo 'ac_maketemp="${MAKE}"' | |
1328 | EOF | |
1329 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1330 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1331 | if test -n "$ac_maketemp"; then | |
1332 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1333 | else | |
1334 | eval ac_cv_prog_make_${ac_make}_set=no | |
1335 | fi | |
1336 | rm -f conftestmake | |
1337 | fi | |
1338 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1339 | echo "$ac_t""yes" 1>&6 | |
1340 | SET_MAKE= | |
1341 | else | |
1342 | echo "$ac_t""no" 1>&6 | |
1343 | SET_MAKE="MAKE=${MAKE-make}" | |
1344 | fi | |
1345 | ||
1346 | ||
ab339d62 | 1347 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
24e971f6 | 1348 | echo "configure:1349: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1349 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1350 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1351 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1352 | else |
3ccc3a56 | 1353 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1354 | fi |
1355 | else | |
1356 | echo "$ac_t""no" 1>&6 | |
1357 | fi | |
1358 | ||
1359 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
24e971f6 | 1360 | echo "configure:1361: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1361 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1362 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1363 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1364 | else |
3ccc3a56 | 1365 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1366 | fi |
1367 | else | |
1368 | echo "$ac_t""no" 1>&6 | |
1369 | fi | |
1370 | ||
861bb6c1 | 1371 | # Find some useful tools |
9ebbca7d | 1372 | for ac_prog in gawk mawk nawk awk |
861bb6c1 JL |
1373 | do |
1374 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1375 | set dummy $ac_prog; ac_word=$2 | |
1376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1377 | echo "configure:1378: checking for $ac_word" >&5 |
861bb6c1 JL |
1378 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1380 | else | |
1381 | if test -n "$AWK"; then | |
1382 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1383 | else | |
cd9e5e7c | 1384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1385 | ac_dummy="$PATH" |
1386 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1387 | test -z "$ac_dir" && ac_dir=. |
1388 | if test -f $ac_dir/$ac_word; then | |
1389 | ac_cv_prog_AWK="$ac_prog" | |
1390 | break | |
1391 | fi | |
1392 | done | |
1393 | IFS="$ac_save_ifs" | |
1394 | fi | |
1395 | fi | |
1396 | AWK="$ac_cv_prog_AWK" | |
1397 | if test -n "$AWK"; then | |
1398 | echo "$ac_t""$AWK" 1>&6 | |
1399 | else | |
1400 | echo "$ac_t""no" 1>&6 | |
1401 | fi | |
1402 | ||
1403 | test -n "$AWK" && break | |
1404 | done | |
1405 | ||
1406 | # Extract the first word of "flex", so it can be a program name with args. | |
1407 | set dummy flex; ac_word=$2 | |
1408 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1409 | echo "configure:1410: checking for $ac_word" >&5 |
861bb6c1 JL |
1410 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1412 | else | |
1413 | if test -n "$LEX"; then | |
1414 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1415 | else | |
cd9e5e7c | 1416 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1417 | ac_dummy="$PATH" |
1418 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1419 | test -z "$ac_dir" && ac_dir=. |
1420 | if test -f $ac_dir/$ac_word; then | |
1421 | ac_cv_prog_LEX="flex" | |
1422 | break | |
1423 | fi | |
1424 | done | |
1425 | IFS="$ac_save_ifs" | |
1426 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1427 | fi | |
1428 | fi | |
1429 | LEX="$ac_cv_prog_LEX" | |
1430 | if test -n "$LEX"; then | |
1431 | echo "$ac_t""$LEX" 1>&6 | |
1432 | else | |
1433 | echo "$ac_t""no" 1>&6 | |
1434 | fi | |
1435 | ||
1436 | if test -z "$LEXLIB" | |
1437 | then | |
1438 | case "$LEX" in | |
1439 | flex*) ac_lib=fl ;; | |
1440 | *) ac_lib=l ;; | |
1441 | esac | |
1442 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
24e971f6 | 1443 | echo "configure:1444: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1444 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1445 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1447 | else | |
1448 | ac_save_LIBS="$LIBS" | |
1449 | LIBS="-l$ac_lib $LIBS" | |
1450 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1451 | #line 1452 "configure" |
861bb6c1 JL |
1452 | #include "confdefs.h" |
1453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1454 | /* We use char because int might match the return type of a gcc2 | |
1455 | builtin and then its argument prototype would still apply. */ | |
1456 | char yywrap(); | |
1457 | ||
1458 | int main() { | |
1459 | yywrap() | |
1460 | ; return 0; } | |
1461 | EOF | |
24e971f6 | 1462 | if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1463 | rm -rf conftest* |
1464 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1465 | else | |
1466 | echo "configure: failed program was:" >&5 | |
1467 | cat conftest.$ac_ext >&5 | |
1468 | rm -rf conftest* | |
1469 | eval "ac_cv_lib_$ac_lib_var=no" | |
1470 | fi | |
1471 | rm -f conftest* | |
1472 | LIBS="$ac_save_LIBS" | |
1473 | ||
1474 | fi | |
1475 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1476 | echo "$ac_t""yes" 1>&6 | |
1477 | LEXLIB="-l$ac_lib" | |
1478 | else | |
1479 | echo "$ac_t""no" 1>&6 | |
1480 | fi | |
1481 | ||
1482 | fi | |
1483 | ||
0a4b6309 | 1484 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
24e971f6 | 1485 | echo "configure:1486: checking whether ln works" >&5 |
0a4b6309 RL |
1486 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1488 | else | |
1489 | rm -f conftestdata_t | |
1490 | echo >conftestdata_f | |
1491 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1492 | then | |
1493 | gcc_cv_prog_LN="ln" | |
1494 | else | |
1495 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1496 | then | |
1497 | gcc_cv_prog_LN="ln -s" | |
1498 | else | |
1499 | gcc_cv_prog_LN=cp | |
1500 | fi | |
1501 | fi | |
1502 | rm -f conftestdata_f conftestdata_t | |
1503 | ||
1504 | fi | |
1505 | LN="$gcc_cv_prog_LN" | |
1506 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1507 | echo "$ac_t""yes" 1>&6 | |
1508 | else | |
1509 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1510 | echo "$ac_t""no, using ln -s" 1>&6 | |
1511 | else | |
1512 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1513 | fi | |
1514 | fi | |
1515 | ||
1516 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
24e971f6 | 1517 | echo "configure:1518: checking whether ln -s works" >&5 |
0a4b6309 RL |
1518 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1520 | else | |
1521 | rm -f conftestdata_t | |
1522 | echo >conftestdata_f | |
1523 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1524 | then | |
1525 | gcc_cv_prog_LN_S="ln -s" | |
1526 | else | |
1527 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1528 | then | |
1529 | gcc_cv_prog_LN_S=ln | |
1530 | else | |
1531 | gcc_cv_prog_LN_S=cp | |
1532 | fi | |
1533 | fi | |
1534 | rm -f conftestdata_f conftestdata_t | |
1535 | ||
1536 | fi | |
1537 | LN_S="$gcc_cv_prog_LN_S" | |
1538 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1539 | echo "$ac_t""yes" 1>&6 | |
1540 | else | |
1541 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1542 | echo "$ac_t""no, using ln" 1>&6 | |
1543 | else | |
1544 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1545 | fi | |
1546 | fi | |
1547 | ||
1548 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
24e971f6 | 1549 | echo "configure:1550: checking for volatile" >&5 |
0a4b6309 RL |
1550 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1552 | else | |
1553 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1554 | #line 1555 "configure" |
0a4b6309 RL |
1555 | #include "confdefs.h" |
1556 | ||
1557 | int main() { | |
1558 | volatile int foo; | |
1559 | ; return 0; } | |
1560 | EOF | |
24e971f6 | 1561 | if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1562 | rm -rf conftest* |
1563 | gcc_cv_c_volatile=yes | |
1564 | else | |
1565 | echo "configure: failed program was:" >&5 | |
1566 | cat conftest.$ac_ext >&5 | |
1567 | rm -rf conftest* | |
1568 | gcc_cv_c_volatile=no | |
1569 | fi | |
1570 | rm -f conftest* | |
1571 | fi | |
1572 | ||
1573 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1574 | if test $gcc_cv_c_volatile = yes ; then | |
1575 | cat >> confdefs.h <<\EOF | |
1576 | #define HAVE_VOLATILE 1 | |
1577 | EOF | |
1578 | ||
1579 | fi | |
1580 | ||
861bb6c1 JL |
1581 | # Extract the first word of "ranlib", so it can be a program name with args. |
1582 | set dummy ranlib; ac_word=$2 | |
1583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1584 | echo "configure:1585: checking for $ac_word" >&5 |
861bb6c1 JL |
1585 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1587 | else | |
1588 | if test -n "$RANLIB"; then | |
1589 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1590 | else | |
cd9e5e7c | 1591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1592 | ac_dummy="$PATH" |
1593 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1594 | test -z "$ac_dir" && ac_dir=. |
1595 | if test -f $ac_dir/$ac_word; then | |
1596 | ac_cv_prog_RANLIB="ranlib" | |
1597 | break | |
1598 | fi | |
1599 | done | |
1600 | IFS="$ac_save_ifs" | |
1601 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1602 | fi | |
1603 | fi | |
1604 | RANLIB="$ac_cv_prog_RANLIB" | |
1605 | if test -n "$RANLIB"; then | |
1606 | echo "$ac_t""$RANLIB" 1>&6 | |
1607 | else | |
1608 | echo "$ac_t""no" 1>&6 | |
1609 | fi | |
1610 | ||
1611 | for ac_prog in 'bison -y' byacc | |
1612 | do | |
1613 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1614 | set dummy $ac_prog; ac_word=$2 | |
1615 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 1616 | echo "configure:1617: checking for $ac_word" >&5 |
861bb6c1 JL |
1617 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1619 | else | |
1620 | if test -n "$YACC"; then | |
1621 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1622 | else | |
cd9e5e7c | 1623 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1624 | ac_dummy="$PATH" |
1625 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1626 | test -z "$ac_dir" && ac_dir=. |
1627 | if test -f $ac_dir/$ac_word; then | |
1628 | ac_cv_prog_YACC="$ac_prog" | |
1629 | break | |
1630 | fi | |
1631 | done | |
1632 | IFS="$ac_save_ifs" | |
1633 | fi | |
1634 | fi | |
1635 | YACC="$ac_cv_prog_YACC" | |
1636 | if test -n "$YACC"; then | |
1637 | echo "$ac_t""$YACC" 1>&6 | |
1638 | else | |
1639 | echo "$ac_t""no" 1>&6 | |
1640 | fi | |
1641 | ||
1642 | test -n "$YACC" && break | |
1643 | done | |
1644 | test -n "$YACC" || YACC="yacc" | |
1645 | ||
0a4b6309 RL |
1646 | # Find a good install program. We prefer a C program (faster), |
1647 | # so one script is as good as another. But avoid the broken or | |
1648 | # incompatible versions: | |
1649 | # SysV /etc/install, /usr/sbin/install | |
1650 | # SunOS /usr/etc/install | |
1651 | # IRIX /sbin/install | |
1652 | # AIX /bin/install | |
1653 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1654 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1655 | # ./install, which can be erroneously created by make from ./install.sh. | |
1656 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
24e971f6 | 1657 | echo "configure:1658: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1658 | if test -z "$INSTALL"; then |
1659 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1661 | else | |
1662 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1663 | for ac_dir in $PATH; do | |
1664 | # Account for people who put trailing slashes in PATH elements. | |
1665 | case "$ac_dir/" in | |
1666 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1667 | *) | |
1668 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1669 | for ac_prog in ginstall scoinst install; do | |
1670 | if test -f $ac_dir/$ac_prog; then | |
1671 | if test $ac_prog = install && | |
1672 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1673 | # AIX install. It has an incompatible calling convention. | |
1674 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1675 | : | |
1676 | else | |
1677 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1678 | break 2 | |
1679 | fi | |
1680 | fi | |
1681 | done | |
1682 | ;; | |
1683 | esac | |
1684 | done | |
1685 | IFS="$ac_save_IFS" | |
1686 | ||
1687 | fi | |
1688 | if test "${ac_cv_path_install+set}" = set; then | |
1689 | INSTALL="$ac_cv_path_install" | |
1690 | else | |
1691 | # As a last resort, use the slow shell script. We don't cache a | |
1692 | # path for INSTALL within a source directory, because that will | |
1693 | # break other packages using the cache if that directory is | |
1694 | # removed, or if the path is relative. | |
1695 | INSTALL="$ac_install_sh" | |
1696 | fi | |
1697 | fi | |
1698 | echo "$ac_t""$INSTALL" 1>&6 | |
1699 | ||
1700 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1701 | # It thinks the first close brace ends the variable substitution. | |
1702 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1703 | ||
1704 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1705 | ||
861bb6c1 | 1706 | |
861bb6c1 | 1707 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
24e971f6 | 1708 | echo "configure:1709: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1709 | # On Suns, sometimes $CPP names a directory. |
1710 | if test -n "$CPP" && test -d "$CPP"; then | |
1711 | CPP= | |
1712 | fi | |
1713 | if test -z "$CPP"; then | |
1714 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1716 | else | |
1717 | # This must be in double quotes, not single quotes, because CPP may get | |
1718 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1719 | CPP="${CC-cc} -E" | |
1720 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1721 | # not just through cpp. | |
1722 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1723 | #line 1724 "configure" |
861bb6c1 JL |
1724 | #include "confdefs.h" |
1725 | #include <assert.h> | |
1726 | Syntax Error | |
1727 | EOF | |
1728 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 1729 | { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1730 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1731 | if test -z "$ac_err"; then |
1732 | : | |
1733 | else | |
1734 | echo "$ac_err" >&5 | |
1735 | echo "configure: failed program was:" >&5 | |
1736 | cat conftest.$ac_ext >&5 | |
1737 | rm -rf conftest* | |
1738 | CPP="${CC-cc} -E -traditional-cpp" | |
1739 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1740 | #line 1741 "configure" |
cd9e5e7c MK |
1741 | #include "confdefs.h" |
1742 | #include <assert.h> | |
1743 | Syntax Error | |
1744 | EOF | |
1745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 1746 | { (eval echo configure:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1747 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1748 | if test -z "$ac_err"; then | |
1749 | : | |
1750 | else | |
1751 | echo "$ac_err" >&5 | |
1752 | echo "configure: failed program was:" >&5 | |
1753 | cat conftest.$ac_ext >&5 | |
1754 | rm -rf conftest* | |
1755 | CPP="${CC-cc} -nologo -E" | |
1756 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1757 | #line 1758 "configure" |
20fced2c MM |
1758 | #include "confdefs.h" |
1759 | #include <assert.h> | |
1760 | Syntax Error | |
1761 | EOF | |
1762 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 1763 | { (eval echo configure:1764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1764 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1765 | if test -z "$ac_err"; then |
1766 | : | |
1767 | else | |
1768 | echo "$ac_err" >&5 | |
1769 | echo "configure: failed program was:" >&5 | |
1770 | cat conftest.$ac_ext >&5 | |
1771 | rm -rf conftest* | |
1772 | CPP=/lib/cpp | |
1773 | fi | |
1774 | rm -f conftest* | |
1775 | fi | |
cd9e5e7c MK |
1776 | rm -f conftest* |
1777 | fi | |
861bb6c1 JL |
1778 | rm -f conftest* |
1779 | ac_cv_prog_CPP="$CPP" | |
1780 | fi | |
1781 | CPP="$ac_cv_prog_CPP" | |
1782 | else | |
1783 | ac_cv_prog_CPP="$CPP" | |
1784 | fi | |
1785 | echo "$ac_t""$CPP" 1>&6 | |
1786 | ||
956d6950 | 1787 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
24e971f6 | 1788 | echo "configure:1789: checking for ANSI C header files" >&5 |
956d6950 JL |
1789 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1791 | else | |
1792 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1793 | #line 1794 "configure" |
956d6950 JL |
1794 | #include "confdefs.h" |
1795 | #include <stdlib.h> | |
1796 | #include <stdarg.h> | |
1797 | #include <string.h> | |
1798 | #include <float.h> | |
1799 | EOF | |
1800 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 1801 | { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1802 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1803 | if test -z "$ac_err"; then |
1804 | rm -rf conftest* | |
1805 | ac_cv_header_stdc=yes | |
1806 | else | |
1807 | echo "$ac_err" >&5 | |
1808 | echo "configure: failed program was:" >&5 | |
1809 | cat conftest.$ac_ext >&5 | |
1810 | rm -rf conftest* | |
1811 | ac_cv_header_stdc=no | |
1812 | fi | |
1813 | rm -f conftest* | |
1814 | ||
1815 | if test $ac_cv_header_stdc = yes; then | |
1816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1817 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1818 | #line 1819 "configure" |
956d6950 JL |
1819 | #include "confdefs.h" |
1820 | #include <string.h> | |
1821 | EOF | |
1822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1823 | egrep "memchr" >/dev/null 2>&1; then | |
1824 | : | |
1825 | else | |
1826 | rm -rf conftest* | |
1827 | ac_cv_header_stdc=no | |
1828 | fi | |
1829 | rm -f conftest* | |
1830 | ||
1831 | fi | |
1832 | ||
1833 | if test $ac_cv_header_stdc = yes; then | |
1834 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1835 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1836 | #line 1837 "configure" |
956d6950 JL |
1837 | #include "confdefs.h" |
1838 | #include <stdlib.h> | |
1839 | EOF | |
1840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1841 | egrep "free" >/dev/null 2>&1; then | |
1842 | : | |
1843 | else | |
1844 | rm -rf conftest* | |
1845 | ac_cv_header_stdc=no | |
1846 | fi | |
1847 | rm -f conftest* | |
1848 | ||
1849 | fi | |
1850 | ||
1851 | if test $ac_cv_header_stdc = yes; then | |
1852 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1853 | if test "$cross_compiling" = yes; then | |
1854 | : | |
1855 | else | |
1856 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1857 | #line 1858 "configure" |
956d6950 JL |
1858 | #include "confdefs.h" |
1859 | #include <ctype.h> | |
1860 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1861 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1862 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1863 | int main () { int i; for (i = 0; i < 256; i++) | |
1864 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1865 | exit (0); } | |
1866 | ||
1867 | EOF | |
24e971f6 | 1868 | if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1869 | then |
1870 | : | |
1871 | else | |
1872 | echo "configure: failed program was:" >&5 | |
1873 | cat conftest.$ac_ext >&5 | |
1874 | rm -fr conftest* | |
1875 | ac_cv_header_stdc=no | |
1876 | fi | |
1877 | rm -fr conftest* | |
1878 | fi | |
1879 | ||
1880 | fi | |
1881 | fi | |
1882 | ||
1883 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1884 | if test $ac_cv_header_stdc = yes; then | |
1885 | cat >> confdefs.h <<\EOF | |
1886 | #define STDC_HEADERS 1 | |
1887 | EOF | |
1888 | ||
1889 | fi | |
1890 | ||
1891 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
24e971f6 | 1892 | echo "configure:1893: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1893 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1895 | else | |
1896 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1897 | #line 1898 "configure" |
956d6950 JL |
1898 | #include "confdefs.h" |
1899 | #include <sys/types.h> | |
1900 | #include <sys/time.h> | |
1901 | #include <time.h> | |
1902 | int main() { | |
1903 | struct tm *tp; | |
1904 | ; return 0; } | |
1905 | EOF | |
24e971f6 | 1906 | if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1907 | rm -rf conftest* |
1908 | ac_cv_header_time=yes | |
1909 | else | |
1910 | echo "configure: failed program was:" >&5 | |
1911 | cat conftest.$ac_ext >&5 | |
1912 | rm -rf conftest* | |
1913 | ac_cv_header_time=no | |
1914 | fi | |
1915 | rm -f conftest* | |
1916 | fi | |
1917 | ||
1918 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1919 | if test $ac_cv_header_time = yes; then | |
1920 | cat >> confdefs.h <<\EOF | |
1921 | #define TIME_WITH_SYS_TIME 1 | |
1922 | EOF | |
1923 | ||
1924 | fi | |
1925 | ||
0a4b6309 | 1926 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
24e971f6 | 1927 | echo "configure:1928: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1928 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1930 | else | |
1931 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1932 | #line 1933 "configure" |
0a4b6309 RL |
1933 | #include "confdefs.h" |
1934 | #include <string.h> | |
1935 | #include <strings.h> | |
1936 | int main() { | |
1937 | ||
1938 | ; return 0; } | |
1939 | EOF | |
24e971f6 | 1940 | if { (eval echo configure:1941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1941 | rm -rf conftest* |
1942 | gcc_cv_header_string=yes | |
1943 | else | |
1944 | echo "configure: failed program was:" >&5 | |
1945 | cat conftest.$ac_ext >&5 | |
1946 | rm -rf conftest* | |
1947 | gcc_cv_header_string=no | |
1948 | fi | |
1949 | rm -f conftest* | |
1950 | fi | |
1951 | ||
1952 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1953 | if test $gcc_cv_header_string = yes; then | |
1954 | cat >> confdefs.h <<\EOF | |
1955 | #define STRING_WITH_STRINGS 1 | |
1956 | EOF | |
1957 | ||
1958 | fi | |
1959 | ||
e9831ca0 | 1960 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
24e971f6 | 1961 | echo "configure:1962: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1962 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1964 | else | |
1965 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 1966 | #line 1967 "configure" |
e9831ca0 KG |
1967 | #include "confdefs.h" |
1968 | #include <sys/types.h> | |
1969 | #include <sys/wait.h> | |
1970 | #ifndef WEXITSTATUS | |
1971 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1972 | #endif | |
1973 | #ifndef WIFEXITED | |
1974 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1975 | #endif | |
1976 | int main() { | |
1977 | int s; | |
1978 | wait (&s); | |
1979 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1980 | ; return 0; } | |
1981 | EOF | |
24e971f6 | 1982 | if { (eval echo configure:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1983 | rm -rf conftest* |
1984 | ac_cv_header_sys_wait_h=yes | |
1985 | else | |
1986 | echo "configure: failed program was:" >&5 | |
1987 | cat conftest.$ac_ext >&5 | |
1988 | rm -rf conftest* | |
1989 | ac_cv_header_sys_wait_h=no | |
1990 | fi | |
1991 | rm -f conftest* | |
1992 | fi | |
1993 | ||
1994 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1995 | if test $ac_cv_header_sys_wait_h = yes; then | |
1996 | cat >> confdefs.h <<\EOF | |
1997 | #define HAVE_SYS_WAIT_H 1 | |
1998 | EOF | |
1999 | ||
2000 | fi | |
2001 | ||
03c41c05 ZW |
2002 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \ |
2003 | fcntl.h unistd.h stab.h sys/file.h sys/time.h \ | |
2004 | sys/resource.h sys/param.h sys/times.h sys/stat.h \ | |
2005 | direct.h malloc.h | |
861bb6c1 JL |
2006 | do |
2007 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2008 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24e971f6 | 2009 | echo "configure:2010: checking for $ac_hdr" >&5 |
861bb6c1 JL |
2010 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2012 | else | |
2013 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2014 | #line 2015 "configure" |
861bb6c1 JL |
2015 | #include "confdefs.h" |
2016 | #include <$ac_hdr> | |
2017 | EOF | |
956d6950 | 2018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24e971f6 | 2019 | { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
2021 | if test -z "$ac_err"; then |
2022 | rm -rf conftest* | |
2023 | eval "ac_cv_header_$ac_safe=yes" | |
2024 | else | |
2025 | echo "$ac_err" >&5 | |
2026 | echo "configure: failed program was:" >&5 | |
2027 | cat conftest.$ac_ext >&5 | |
2028 | rm -rf conftest* | |
2029 | eval "ac_cv_header_$ac_safe=no" | |
2030 | fi | |
2031 | rm -f conftest* | |
2032 | fi | |
2033 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2034 | echo "$ac_t""yes" 1>&6 | |
2035 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2036 | cat >> confdefs.h <<EOF | |
2037 | #define $ac_tr_hdr 1 | |
2038 | EOF | |
2039 | ||
2040 | else | |
2041 | echo "$ac_t""no" 1>&6 | |
2042 | fi | |
2043 | done | |
2044 | ||
2045 | ||
f24af81b TT |
2046 | # Check for thread headers. |
2047 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
2048 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
24e971f6 | 2049 | echo "configure:2050: checking for thread.h" >&5 |
f24af81b TT |
2050 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2052 | else | |
2053 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2054 | #line 2055 "configure" |
f24af81b TT |
2055 | #include "confdefs.h" |
2056 | #include <thread.h> | |
2057 | EOF | |
2058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 2059 | { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2061 | if test -z "$ac_err"; then |
2062 | rm -rf conftest* | |
2063 | eval "ac_cv_header_$ac_safe=yes" | |
2064 | else | |
2065 | echo "$ac_err" >&5 | |
2066 | echo "configure: failed program was:" >&5 | |
2067 | cat conftest.$ac_ext >&5 | |
2068 | rm -rf conftest* | |
2069 | eval "ac_cv_header_$ac_safe=no" | |
2070 | fi | |
2071 | rm -f conftest* | |
2072 | fi | |
2073 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2074 | echo "$ac_t""yes" 1>&6 | |
2075 | have_thread_h=yes | |
2076 | else | |
2077 | echo "$ac_t""no" 1>&6 | |
2078 | have_thread_h= | |
2079 | fi | |
2080 | ||
2081 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2082 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
24e971f6 | 2083 | echo "configure:2084: checking for pthread.h" >&5 |
f24af81b TT |
2084 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2086 | else | |
2087 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2088 | #line 2089 "configure" |
f24af81b TT |
2089 | #include "confdefs.h" |
2090 | #include <pthread.h> | |
2091 | EOF | |
2092 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 2093 | { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2094 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2095 | if test -z "$ac_err"; then |
2096 | rm -rf conftest* | |
2097 | eval "ac_cv_header_$ac_safe=yes" | |
2098 | else | |
2099 | echo "$ac_err" >&5 | |
2100 | echo "configure: failed program was:" >&5 | |
2101 | cat conftest.$ac_ext >&5 | |
2102 | rm -rf conftest* | |
2103 | eval "ac_cv_header_$ac_safe=no" | |
2104 | fi | |
2105 | rm -f conftest* | |
2106 | fi | |
2107 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2108 | echo "$ac_t""yes" 1>&6 | |
2109 | have_pthread_h=yes | |
2110 | else | |
2111 | echo "$ac_t""no" 1>&6 | |
2112 | have_pthread_h= | |
2113 | fi | |
2114 | ||
2115 | ||
bcf12124 JL |
2116 | # See if GNAT has been installed |
2117 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2118 | set dummy gnatbind; ac_word=$2 | |
2119 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24e971f6 | 2120 | echo "configure:2121: checking for $ac_word" >&5 |
bcf12124 JL |
2121 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2123 | else | |
2124 | if test -n "$gnat"; then | |
2125 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2126 | else | |
cd9e5e7c | 2127 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2128 | ac_dummy="$PATH" |
2129 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2130 | test -z "$ac_dir" && ac_dir=. |
2131 | if test -f $ac_dir/$ac_word; then | |
2132 | ac_cv_prog_gnat="yes" | |
2133 | break | |
2134 | fi | |
2135 | done | |
2136 | IFS="$ac_save_ifs" | |
2137 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2138 | fi | |
2139 | fi | |
2140 | gnat="$ac_cv_prog_gnat" | |
2141 | if test -n "$gnat"; then | |
2142 | echo "$ac_t""$gnat" 1>&6 | |
2143 | else | |
2144 | echo "$ac_t""no" 1>&6 | |
2145 | fi | |
2146 | ||
2147 | ||
890ad3ea KG |
2148 | # See if the stage1 system preprocessor understands the ANSI C |
2149 | # preprocessor stringification operator. | |
2150 | ||
2151 | ||
2152 | echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 | |
24e971f6 | 2153 | echo "configure:2154: checking for preprocessor stringizing operator" >&5 |
890ad3ea | 2154 | if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then |
76844337 RH |
2155 | echo $ac_n "(cached) $ac_c" 1>&6 |
2156 | else | |
2157 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2158 | #line 2159 "configure" |
76844337 RH |
2159 | #include "confdefs.h" |
2160 | ||
890ad3ea KG |
2161 | #define x(y) #y |
2162 | ||
2163 | char *s = x(teststring); | |
2164 | ||
76844337 | 2165 | EOF |
890ad3ea KG |
2166 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2167 | egrep "#teststring" >/dev/null 2>&1; then | |
76844337 | 2168 | rm -rf conftest* |
890ad3ea | 2169 | ac_cv_c_stringize=no |
76844337 | 2170 | else |
76844337 | 2171 | rm -rf conftest* |
890ad3ea | 2172 | ac_cv_c_stringize=yes |
76844337 RH |
2173 | fi |
2174 | rm -f conftest* | |
890ad3ea | 2175 | |
76844337 RH |
2176 | fi |
2177 | ||
890ad3ea KG |
2178 | if test "${ac_cv_c_stringize}" = yes |
2179 | then | |
2180 | cat >> confdefs.h <<\EOF | |
2181 | #define HAVE_STRINGIZE 1 | |
76844337 RH |
2182 | EOF |
2183 | ||
2184 | fi | |
890ad3ea KG |
2185 | echo "$ac_t""${ac_cv_c_stringize}" 1>&6 |
2186 | ||
76844337 | 2187 | |
956d6950 JL |
2188 | # Use <inttypes.h> only if it exists, |
2189 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2190 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
24e971f6 | 2191 | echo "configure:2192: checking for inttypes.h" >&5 |
956d6950 JL |
2192 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2194 | else | |
2195 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2196 | #line 2197 "configure" |
956d6950 JL |
2197 | #include "confdefs.h" |
2198 | #include <sys/types.h> | |
2199 | #include <inttypes.h> | |
2200 | int main() { | |
2201 | intmax_t i = -1; | |
2202 | ; return 0; } | |
2203 | EOF | |
24e971f6 | 2204 | if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2205 | rm -rf conftest* |
0056a9b5 | 2206 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2207 | else |
2208 | echo "configure: failed program was:" >&5 | |
2209 | cat conftest.$ac_ext >&5 | |
2210 | rm -rf conftest* | |
2211 | gcc_cv_header_inttypes_h=no | |
2212 | fi | |
2213 | rm -f conftest* | |
2214 | fi | |
2215 | ||
2216 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2217 | if test $gcc_cv_header_inttypes_h = yes; then |
2218 | cat >> confdefs.h <<\EOF | |
2219 | #define HAVE_INTTYPES_H 1 | |
2220 | EOF | |
2221 | ||
2222 | fi | |
956d6950 | 2223 | |
f95e46b9 | 2224 | for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \ |
8f81384f | 2225 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 | 2226 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
005537df | 2227 | fputs_unlocked getrusage valloc |
956d6950 JL |
2228 | do |
2229 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24e971f6 | 2230 | echo "configure:2231: checking for $ac_func" >&5 |
956d6950 JL |
2231 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2233 | else | |
2234 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2235 | #line 2236 "configure" |
956d6950 JL |
2236 | #include "confdefs.h" |
2237 | /* System header to define __stub macros and hopefully few prototypes, | |
2238 | which can conflict with char $ac_func(); below. */ | |
2239 | #include <assert.h> | |
2240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2241 | /* We use char because int might match the return type of a gcc2 | |
2242 | builtin and then its argument prototype would still apply. */ | |
2243 | char $ac_func(); | |
2244 | ||
2245 | int main() { | |
2246 | ||
2247 | /* The GNU C library defines this for functions which it implements | |
2248 | to always fail with ENOSYS. Some functions are actually named | |
2249 | something starting with __ and the normal name is an alias. */ | |
2250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2251 | choke me | |
2252 | #else | |
3ecc3258 | 2253 | $ac_func(); |
956d6950 JL |
2254 | #endif |
2255 | ||
2256 | ; return 0; } | |
2257 | EOF | |
24e971f6 | 2258 | if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2259 | rm -rf conftest* |
2260 | eval "ac_cv_func_$ac_func=yes" | |
2261 | else | |
2262 | echo "configure: failed program was:" >&5 | |
2263 | cat conftest.$ac_ext >&5 | |
2264 | rm -rf conftest* | |
2265 | eval "ac_cv_func_$ac_func=no" | |
2266 | fi | |
2267 | rm -f conftest* | |
2268 | fi | |
2269 | ||
2270 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2271 | echo "$ac_t""yes" 1>&6 | |
2272 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2273 | cat >> confdefs.h <<EOF | |
2274 | #define $ac_tr_func 1 | |
2275 | EOF | |
2276 | ||
2277 | else | |
2278 | echo "$ac_t""no" 1>&6 | |
2279 | fi | |
2280 | done | |
2281 | ||
6885fc87 | 2282 | |
0b9d02c6 JL |
2283 | # Make sure wchar_t is available |
2284 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2285 | ||
0a4b6309 | 2286 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
24e971f6 | 2287 | echo "configure:2288: checking for vprintf" >&5 |
0a4b6309 RL |
2288 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2290 | else | |
2291 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2292 | #line 2293 "configure" |
0a4b6309 RL |
2293 | #include "confdefs.h" |
2294 | /* System header to define __stub macros and hopefully few prototypes, | |
2295 | which can conflict with char vprintf(); below. */ | |
2296 | #include <assert.h> | |
2297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2298 | /* We use char because int might match the return type of a gcc2 | |
2299 | builtin and then its argument prototype would still apply. */ | |
2300 | char vprintf(); | |
2301 | ||
2302 | int main() { | |
2303 | ||
2304 | /* The GNU C library defines this for functions which it implements | |
2305 | to always fail with ENOSYS. Some functions are actually named | |
2306 | something starting with __ and the normal name is an alias. */ | |
2307 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2308 | choke me | |
2309 | #else | |
3ecc3258 | 2310 | vprintf(); |
0a4b6309 RL |
2311 | #endif |
2312 | ||
2313 | ; return 0; } | |
2314 | EOF | |
24e971f6 | 2315 | if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2316 | rm -rf conftest* |
2317 | eval "ac_cv_func_vprintf=yes" | |
2318 | else | |
2319 | echo "configure: failed program was:" >&5 | |
2320 | cat conftest.$ac_ext >&5 | |
2321 | rm -rf conftest* | |
2322 | eval "ac_cv_func_vprintf=no" | |
2323 | fi | |
2324 | rm -f conftest* | |
2325 | fi | |
2326 | ||
2327 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2328 | echo "$ac_t""yes" 1>&6 | |
2329 | cat >> confdefs.h <<\EOF | |
2330 | #define HAVE_VPRINTF 1 | |
2331 | EOF | |
2332 | ||
2333 | else | |
2334 | echo "$ac_t""no" 1>&6 | |
2335 | fi | |
8fa1f09f | 2336 | |
0a4b6309 RL |
2337 | if test "$ac_cv_func_vprintf" != yes; then |
2338 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
24e971f6 | 2339 | echo "configure:2340: checking for _doprnt" >&5 |
0a4b6309 RL |
2340 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2342 | else | |
2343 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2344 | #line 2345 "configure" |
0a4b6309 RL |
2345 | #include "confdefs.h" |
2346 | /* System header to define __stub macros and hopefully few prototypes, | |
2347 | which can conflict with char _doprnt(); below. */ | |
2348 | #include <assert.h> | |
2349 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2350 | /* We use char because int might match the return type of a gcc2 | |
2351 | builtin and then its argument prototype would still apply. */ | |
2352 | char _doprnt(); | |
2353 | ||
2354 | int main() { | |
2355 | ||
2356 | /* The GNU C library defines this for functions which it implements | |
2357 | to always fail with ENOSYS. Some functions are actually named | |
2358 | something starting with __ and the normal name is an alias. */ | |
2359 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2360 | choke me | |
2361 | #else | |
3ecc3258 | 2362 | _doprnt(); |
0a4b6309 RL |
2363 | #endif |
2364 | ||
2365 | ; return 0; } | |
2366 | EOF | |
24e971f6 | 2367 | if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2368 | rm -rf conftest* |
2369 | eval "ac_cv_func__doprnt=yes" | |
2370 | else | |
2371 | echo "configure: failed program was:" >&5 | |
2372 | cat conftest.$ac_ext >&5 | |
2373 | rm -rf conftest* | |
2374 | eval "ac_cv_func__doprnt=no" | |
2375 | fi | |
2376 | rm -f conftest* | |
2377 | fi | |
2378 | ||
2379 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2380 | echo "$ac_t""yes" 1>&6 | |
2381 | cat >> confdefs.h <<\EOF | |
2382 | #define HAVE_DOPRNT 1 | |
2383 | EOF | |
2384 | ||
2385 | else | |
2386 | echo "$ac_t""no" 1>&6 | |
2387 | fi | |
2388 | ||
2389 | fi | |
2390 | ||
2391 | vfprintf= | |
2392 | doprint= | |
2393 | if test $ac_cv_func_vprintf != yes ; then | |
2394 | vfprintf=vfprintf.o | |
2395 | if test $ac_cv_func__doprnt != yes ; then | |
2396 | doprint=doprint.o | |
2397 | fi | |
2398 | fi | |
2399 | ||
2400 | ||
2401 | ||
2402 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
24e971f6 | 2403 | echo "configure:2404: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2404 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2406 | else | |
2407 | if test "$cross_compiling" = yes; then | |
2408 | gcc_cv_func_printf_ptr=no | |
2409 | else | |
2410 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2411 | #line 2412 "configure" |
0a4b6309 RL |
2412 | #include "confdefs.h" |
2413 | #include <stdio.h> | |
2414 | ||
2415 | main() | |
2416 | { | |
2417 | char buf[64]; | |
2418 | char *p = buf, *q = NULL; | |
2419 | sprintf(buf, "%p", p); | |
2420 | sscanf(buf, "%p", &q); | |
2421 | exit (p != q); | |
2422 | } | |
2423 | EOF | |
24e971f6 | 2424 | if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2425 | then |
2426 | gcc_cv_func_printf_ptr=yes | |
2427 | else | |
2428 | echo "configure: failed program was:" >&5 | |
2429 | cat conftest.$ac_ext >&5 | |
2430 | rm -fr conftest* | |
2431 | gcc_cv_func_printf_ptr=no | |
2432 | fi | |
2433 | rm -fr conftest* | |
2434 | fi | |
2435 | ||
2436 | rm -f core core.* *.core | |
2437 | fi | |
2438 | ||
2439 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2440 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2441 | cat >> confdefs.h <<\EOF | |
2442 | #define HAVE_PRINTF_PTR 1 | |
2443 | EOF | |
2444 | ||
2445 | fi | |
2446 | ||
b27d2bd5 MK |
2447 | |
2448 | case "${host}" in | |
2449 | *-*-uwin*) | |
2450 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2451 | # can hang configure; on other versions, vfork exists just as a stub. | |
2452 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2453 | ac_cv_func_vfork_works=no | |
2454 | ;; | |
2455 | esac | |
c375c43b | 2456 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
24e971f6 | 2457 | echo "configure:2458: checking for pid_t" >&5 |
c375c43b KG |
2458 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2460 | else | |
2461 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2462 | #line 2463 "configure" |
c375c43b KG |
2463 | #include "confdefs.h" |
2464 | #include <sys/types.h> | |
2465 | #if STDC_HEADERS | |
2466 | #include <stdlib.h> | |
2467 | #include <stddef.h> | |
2468 | #endif | |
2469 | EOF | |
2470 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2471 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2472 | rm -rf conftest* |
2473 | ac_cv_type_pid_t=yes | |
2474 | else | |
2475 | rm -rf conftest* | |
2476 | ac_cv_type_pid_t=no | |
2477 | fi | |
2478 | rm -f conftest* | |
2479 | ||
2480 | fi | |
2481 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2482 | if test $ac_cv_type_pid_t = no; then | |
2483 | cat >> confdefs.h <<\EOF | |
2484 | #define pid_t int | |
2485 | EOF | |
2486 | ||
2487 | fi | |
2488 | ||
2489 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2490 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
24e971f6 | 2491 | echo "configure:2492: checking for vfork.h" >&5 |
c375c43b KG |
2492 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2494 | else | |
2495 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2496 | #line 2497 "configure" |
c375c43b KG |
2497 | #include "confdefs.h" |
2498 | #include <vfork.h> | |
2499 | EOF | |
2500 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24e971f6 | 2501 | { (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2502 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2503 | if test -z "$ac_err"; then |
2504 | rm -rf conftest* | |
2505 | eval "ac_cv_header_$ac_safe=yes" | |
2506 | else | |
2507 | echo "$ac_err" >&5 | |
2508 | echo "configure: failed program was:" >&5 | |
2509 | cat conftest.$ac_ext >&5 | |
2510 | rm -rf conftest* | |
2511 | eval "ac_cv_header_$ac_safe=no" | |
2512 | fi | |
2513 | rm -f conftest* | |
2514 | fi | |
2515 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2516 | echo "$ac_t""yes" 1>&6 | |
2517 | cat >> confdefs.h <<\EOF | |
2518 | #define HAVE_VFORK_H 1 | |
2519 | EOF | |
2520 | ||
2521 | else | |
2522 | echo "$ac_t""no" 1>&6 | |
2523 | fi | |
2524 | ||
2525 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
24e971f6 | 2526 | echo "configure:2527: checking for working vfork" >&5 |
c375c43b KG |
2527 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2529 | else | |
2530 | if test "$cross_compiling" = yes; then | |
2531 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
24e971f6 | 2532 | echo "configure:2533: checking for vfork" >&5 |
c375c43b KG |
2533 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2535 | else | |
2536 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2537 | #line 2538 "configure" |
c375c43b KG |
2538 | #include "confdefs.h" |
2539 | /* System header to define __stub macros and hopefully few prototypes, | |
2540 | which can conflict with char vfork(); below. */ | |
2541 | #include <assert.h> | |
2542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2543 | /* We use char because int might match the return type of a gcc2 | |
2544 | builtin and then its argument prototype would still apply. */ | |
2545 | char vfork(); | |
2546 | ||
2547 | int main() { | |
2548 | ||
2549 | /* The GNU C library defines this for functions which it implements | |
2550 | to always fail with ENOSYS. Some functions are actually named | |
2551 | something starting with __ and the normal name is an alias. */ | |
2552 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2553 | choke me | |
2554 | #else | |
3ecc3258 | 2555 | vfork(); |
c375c43b KG |
2556 | #endif |
2557 | ||
2558 | ; return 0; } | |
2559 | EOF | |
24e971f6 | 2560 | if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2561 | rm -rf conftest* |
2562 | eval "ac_cv_func_vfork=yes" | |
2563 | else | |
2564 | echo "configure: failed program was:" >&5 | |
2565 | cat conftest.$ac_ext >&5 | |
2566 | rm -rf conftest* | |
2567 | eval "ac_cv_func_vfork=no" | |
2568 | fi | |
2569 | rm -f conftest* | |
2570 | fi | |
2571 | ||
2572 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2573 | echo "$ac_t""yes" 1>&6 | |
2574 | : | |
2575 | else | |
2576 | echo "$ac_t""no" 1>&6 | |
2577 | fi | |
2578 | ||
2579 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2580 | else | |
2581 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2582 | #line 2583 "configure" |
c375c43b KG |
2583 | #include "confdefs.h" |
2584 | /* Thanks to Paul Eggert for this test. */ | |
2585 | #include <stdio.h> | |
2586 | #include <sys/types.h> | |
2587 | #include <sys/stat.h> | |
2588 | #ifdef HAVE_UNISTD_H | |
2589 | #include <unistd.h> | |
2590 | #endif | |
2591 | #ifdef HAVE_VFORK_H | |
2592 | #include <vfork.h> | |
2593 | #endif | |
2594 | /* On some sparc systems, changes by the child to local and incoming | |
2595 | argument registers are propagated back to the parent. | |
2596 | The compiler is told about this with #include <vfork.h>, | |
2597 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2598 | Test for this by using a static variable whose address | |
2599 | is put into a register that is clobbered by the vfork. */ | |
2600 | static | |
2601 | #ifdef __cplusplus | |
2602 | sparc_address_test (int arg) | |
2603 | #else | |
2604 | sparc_address_test (arg) int arg; | |
2605 | #endif | |
2606 | { | |
2607 | static pid_t child; | |
2608 | if (!child) { | |
2609 | child = vfork (); | |
2610 | if (child < 0) { | |
2611 | perror ("vfork"); | |
2612 | _exit(2); | |
2613 | } | |
2614 | if (!child) { | |
2615 | arg = getpid(); | |
2616 | write(-1, "", 0); | |
2617 | _exit (arg); | |
2618 | } | |
2619 | } | |
2620 | } | |
2621 | main() { | |
2622 | pid_t parent = getpid (); | |
2623 | pid_t child; | |
2624 | ||
2625 | sparc_address_test (); | |
2626 | ||
2627 | child = vfork (); | |
2628 | ||
2629 | if (child == 0) { | |
2630 | /* Here is another test for sparc vfork register problems. | |
2631 | This test uses lots of local variables, at least | |
2632 | as many local variables as main has allocated so far | |
2633 | including compiler temporaries. 4 locals are enough for | |
2634 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2635 | A buggy compiler should reuse the register of parent | |
2636 | for one of the local variables, since it will think that | |
2637 | parent can't possibly be used any more in this routine. | |
2638 | Assigning to the local variable will thus munge parent | |
2639 | in the parent process. */ | |
2640 | pid_t | |
2641 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2642 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2643 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2644 | use the same hardware register for all 8 local variables. */ | |
2645 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2646 | || p != p5 || p != p6 || p != p7) | |
2647 | _exit(1); | |
2648 | ||
2649 | /* On some systems (e.g. IRIX 3.3), | |
2650 | vfork doesn't separate parent from child file descriptors. | |
2651 | If the child closes a descriptor before it execs or exits, | |
2652 | this munges the parent's descriptor as well. | |
2653 | Test for this by closing stdout in the child. */ | |
2654 | _exit(close(fileno(stdout)) != 0); | |
2655 | } else { | |
2656 | int status; | |
2657 | struct stat st; | |
2658 | ||
2659 | while (wait(&status) != child) | |
2660 | ; | |
2661 | exit( | |
2662 | /* Was there some problem with vforking? */ | |
2663 | child < 0 | |
2664 | ||
2665 | /* Did the child fail? (This shouldn't happen.) */ | |
2666 | || status | |
2667 | ||
2668 | /* Did the vfork/compiler bug occur? */ | |
2669 | || parent != getpid() | |
2670 | ||
2671 | /* Did the file descriptor bug occur? */ | |
2672 | || fstat(fileno(stdout), &st) != 0 | |
2673 | ); | |
2674 | } | |
2675 | } | |
2676 | EOF | |
24e971f6 | 2677 | if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2678 | then |
2679 | ac_cv_func_vfork_works=yes | |
2680 | else | |
2681 | echo "configure: failed program was:" >&5 | |
2682 | cat conftest.$ac_ext >&5 | |
2683 | rm -fr conftest* | |
2684 | ac_cv_func_vfork_works=no | |
2685 | fi | |
2686 | rm -fr conftest* | |
2687 | fi | |
2688 | ||
2689 | fi | |
2690 | ||
2691 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2692 | if test $ac_cv_func_vfork_works = no; then | |
2693 | cat >> confdefs.h <<\EOF | |
2694 | #define vfork fork | |
2695 | EOF | |
2696 | ||
2697 | fi | |
2698 | ||
81bf3d9e | 2699 | for ac_hdr in unistd.h |
0a4b6309 | 2700 | do |
81bf3d9e RH |
2701 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2702 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24e971f6 | 2703 | echo "configure:2704: checking for $ac_hdr" >&5 |
81bf3d9e | 2704 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
0a4b6309 RL |
2705 | echo $ac_n "(cached) $ac_c" 1>&6 |
2706 | else | |
2707 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2708 | #line 2709 "configure" |
0a4b6309 | 2709 | #include "confdefs.h" |
81bf3d9e | 2710 | #include <$ac_hdr> |
0a4b6309 | 2711 | EOF |
81bf3d9e | 2712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24e971f6 | 2713 | { (eval echo configure:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
81bf3d9e RH |
2714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2715 | if test -z "$ac_err"; then | |
0a4b6309 | 2716 | rm -rf conftest* |
81bf3d9e | 2717 | eval "ac_cv_header_$ac_safe=yes" |
0a4b6309 | 2718 | else |
81bf3d9e | 2719 | echo "$ac_err" >&5 |
0a4b6309 RL |
2720 | echo "configure: failed program was:" >&5 |
2721 | cat conftest.$ac_ext >&5 | |
2722 | rm -rf conftest* | |
81bf3d9e | 2723 | eval "ac_cv_header_$ac_safe=no" |
0a4b6309 RL |
2724 | fi |
2725 | rm -f conftest* | |
2726 | fi | |
81bf3d9e | 2727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
0a4b6309 | 2728 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2729 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0a4b6309 | 2730 | cat >> confdefs.h <<EOF |
81bf3d9e | 2731 | #define $ac_tr_hdr 1 |
0a4b6309 | 2732 | EOF |
81bf3d9e | 2733 | |
0a4b6309 RL |
2734 | else |
2735 | echo "$ac_t""no" 1>&6 | |
2736 | fi | |
0a4b6309 RL |
2737 | done |
2738 | ||
81bf3d9e | 2739 | for ac_func in getpagesize |
0a4b6309 | 2740 | do |
81bf3d9e | 2741 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24e971f6 | 2742 | echo "configure:2743: checking for $ac_func" >&5 |
81bf3d9e | 2743 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
0a4b6309 RL |
2744 | echo $ac_n "(cached) $ac_c" 1>&6 |
2745 | else | |
2746 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2747 | #line 2748 "configure" |
0a4b6309 | 2748 | #include "confdefs.h" |
81bf3d9e RH |
2749 | /* System header to define __stub macros and hopefully few prototypes, |
2750 | which can conflict with char $ac_func(); below. */ | |
2751 | #include <assert.h> | |
2752 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2753 | /* We use char because int might match the return type of a gcc2 | |
2754 | builtin and then its argument prototype would still apply. */ | |
2755 | char $ac_func(); | |
8fa1f09f | 2756 | |
81bf3d9e RH |
2757 | int main() { |
2758 | ||
2759 | /* The GNU C library defines this for functions which it implements | |
2760 | to always fail with ENOSYS. Some functions are actually named | |
2761 | something starting with __ and the normal name is an alias. */ | |
2762 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2763 | choke me | |
c5c76735 | 2764 | #else |
81bf3d9e | 2765 | $ac_func(); |
c5c76735 JL |
2766 | #endif |
2767 | ||
c5c76735 JL |
2768 | ; return 0; } |
2769 | EOF | |
24e971f6 | 2770 | if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c5c76735 | 2771 | rm -rf conftest* |
81bf3d9e | 2772 | eval "ac_cv_func_$ac_func=yes" |
c5c76735 JL |
2773 | else |
2774 | echo "configure: failed program was:" >&5 | |
2775 | cat conftest.$ac_ext >&5 | |
2776 | rm -rf conftest* | |
81bf3d9e | 2777 | eval "ac_cv_func_$ac_func=no" |
c5c76735 JL |
2778 | fi |
2779 | rm -f conftest* | |
2780 | fi | |
2781 | ||
81bf3d9e | 2782 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
c5c76735 | 2783 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2784 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
c5c76735 | 2785 | cat >> confdefs.h <<EOF |
81bf3d9e | 2786 | #define $ac_tr_func 1 |
c5c76735 | 2787 | EOF |
81bf3d9e | 2788 | |
c5c76735 JL |
2789 | else |
2790 | echo "$ac_t""no" 1>&6 | |
2791 | fi | |
c5c76735 JL |
2792 | done |
2793 | ||
4acab94b | 2794 | echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6 |
24e971f6 | 2795 | echo "configure:2796: checking for working mmap from /dev/zero" >&5 |
a0f20853 | 2796 | if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then |
c5c76735 | 2797 | echo $ac_n "(cached) $ac_c" 1>&6 |
81bf3d9e RH |
2798 | else |
2799 | if test "$cross_compiling" = yes; then | |
4acab94b | 2800 | ac_cv_func_mmap_anywhere=no |
c5c76735 JL |
2801 | else |
2802 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2803 | #line 2804 "configure" |
c5c76735 JL |
2804 | #include "confdefs.h" |
2805 | ||
4acab94b AO |
2806 | /* Test by Richard Henderson and Alexandre Oliva. |
2807 | Check whether mmap from /dev/zero works. */ | |
d2cabf16 | 2808 | #include <sys/types.h> |
81bf3d9e RH |
2809 | #include <fcntl.h> |
2810 | #include <sys/mman.h> | |
0a4b6309 | 2811 | |
81bf3d9e RH |
2812 | /* This mess was copied from the GNU getpagesize.h. */ |
2813 | #ifndef HAVE_GETPAGESIZE | |
2814 | # ifdef HAVE_UNISTD_H | |
2815 | # include <unistd.h> | |
2816 | # endif | |
0a4b6309 | 2817 | |
81bf3d9e RH |
2818 | /* Assume that all systems that can run configure have sys/param.h. */ |
2819 | # ifndef HAVE_SYS_PARAM_H | |
2820 | # define HAVE_SYS_PARAM_H 1 | |
2821 | # endif | |
0a4b6309 | 2822 | |
81bf3d9e RH |
2823 | # ifdef _SC_PAGESIZE |
2824 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2825 | # else /* no _SC_PAGESIZE */ | |
2826 | # ifdef HAVE_SYS_PARAM_H | |
2827 | # include <sys/param.h> | |
2828 | # ifdef EXEC_PAGESIZE | |
2829 | # define getpagesize() EXEC_PAGESIZE | |
2830 | # else /* no EXEC_PAGESIZE */ | |
2831 | # ifdef NBPG | |
2832 | # define getpagesize() NBPG * CLSIZE | |
2833 | # ifndef CLSIZE | |
2834 | # define CLSIZE 1 | |
2835 | # endif /* no CLSIZE */ | |
2836 | # else /* no NBPG */ | |
2837 | # ifdef NBPC | |
2838 | # define getpagesize() NBPC | |
2839 | # else /* no NBPC */ | |
2840 | # ifdef PAGESIZE | |
2841 | # define getpagesize() PAGESIZE | |
2842 | # endif /* PAGESIZE */ | |
2843 | # endif /* no NBPC */ | |
2844 | # endif /* no NBPG */ | |
2845 | # endif /* no EXEC_PAGESIZE */ | |
2846 | # else /* no HAVE_SYS_PARAM_H */ | |
2847 | # define getpagesize() 8192 /* punt totally */ | |
2848 | # endif /* no HAVE_SYS_PARAM_H */ | |
2849 | # endif /* no _SC_PAGESIZE */ | |
0a4b6309 | 2850 | |
81bf3d9e | 2851 | #endif /* no HAVE_GETPAGESIZE */ |
0a4b6309 | 2852 | |
4acab94b | 2853 | int main() |
81bf3d9e | 2854 | { |
4acab94b AO |
2855 | char *x; |
2856 | int fd, pg; | |
81bf3d9e | 2857 | |
4acab94b AO |
2858 | fd = open("/dev/zero", O_RDWR); |
2859 | if (fd < 0) | |
2860 | exit(1); | |
81bf3d9e | 2861 | |
4acab94b AO |
2862 | pg = getpagesize(); |
2863 | x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); | |
2864 | if (x == (char *) -1) | |
2865 | exit(2); | |
81bf3d9e | 2866 | |
4acab94b | 2867 | *(int *)x += 1; |
81bf3d9e | 2868 | |
4acab94b AO |
2869 | if (munmap(x, pg) < 0) |
2870 | exit(3); | |
81bf3d9e | 2871 | |
4acab94b AO |
2872 | exit(0); |
2873 | } | |
81bf3d9e | 2874 | EOF |
24e971f6 | 2875 | if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
81bf3d9e | 2876 | then |
4acab94b | 2877 | ac_cv_func_mmap_anywhere=yes |
81bf3d9e RH |
2878 | else |
2879 | echo "configure: failed program was:" >&5 | |
2880 | cat conftest.$ac_ext >&5 | |
2881 | rm -fr conftest* | |
4acab94b | 2882 | ac_cv_func_mmap_anywhere=no |
81bf3d9e RH |
2883 | fi |
2884 | rm -fr conftest* | |
2885 | fi | |
2886 | ||
2887 | fi | |
2888 | ||
a0f20853 | 2889 | echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6 |
4acab94b | 2890 | if test $ac_cv_func_mmap_anywhere = yes; then |
81bf3d9e | 2891 | cat >> confdefs.h <<\EOF |
4acab94b | 2892 | #define HAVE_MMAP_ANYWHERE 1 |
81bf3d9e RH |
2893 | EOF |
2894 | ||
2895 | fi | |
2896 | ||
2897 | ||
2898 | for ac_func in bcopy bzero bcmp \ | |
f95e46b9 | 2899 | index rindex getenv atol sbrk abort atof getcwd getwd \ |
11950183 | 2900 | strsignal putc_unlocked fputs_unlocked strstr environ |
81bf3d9e RH |
2901 | do |
2902 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
24e971f6 | 2903 | echo "configure:2904: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
2904 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2906 | else | |
2907 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2908 | #line 2909 "configure" |
81bf3d9e RH |
2909 | #include "confdefs.h" |
2910 | ||
2911 | #include <stdio.h> | |
2912 | #ifdef STRING_WITH_STRINGS | |
2913 | # include <string.h> | |
2914 | # include <strings.h> | |
2915 | #else | |
2916 | # ifdef HAVE_STRING_H | |
2917 | # include <string.h> | |
2918 | # else | |
2919 | # ifdef HAVE_STRINGS_H | |
2920 | # include <strings.h> | |
2921 | # endif | |
2922 | # endif | |
2923 | #endif | |
2924 | #ifdef HAVE_STDLIB_H | |
2925 | #include <stdlib.h> | |
2926 | #endif | |
2927 | #ifdef HAVE_UNISTD_H | |
2928 | #include <unistd.h> | |
2929 | #endif | |
2930 | #ifndef HAVE_RINDEX | |
11950183 | 2931 | #ifndef rindex |
81bf3d9e RH |
2932 | #define rindex strrchr |
2933 | #endif | |
11950183 | 2934 | #endif |
81bf3d9e | 2935 | #ifndef HAVE_INDEX |
11950183 | 2936 | #ifndef index |
81bf3d9e RH |
2937 | #define index strchr |
2938 | #endif | |
11950183 | 2939 | #endif |
81bf3d9e RH |
2940 | |
2941 | int main() { | |
2942 | char *(*pfn) = (char *(*)) $ac_func | |
2943 | ; return 0; } | |
2944 | EOF | |
24e971f6 | 2945 | if { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
2946 | rm -rf conftest* |
2947 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2948 | else | |
2949 | echo "configure: failed program was:" >&5 | |
2950 | cat conftest.$ac_ext >&5 | |
2951 | rm -rf conftest* | |
2952 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2953 | fi | |
2954 | rm -f conftest* | |
2955 | fi | |
2956 | ||
2957 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2958 | echo "$ac_t""yes" 1>&6 | |
2959 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2960 | cat >> confdefs.h <<EOF | |
2961 | #define $gcc_tr_decl 1 | |
2962 | EOF | |
2963 | ||
2964 | else | |
2965 | echo "$ac_t""no" 1>&6 | |
2966 | fi | |
2967 | ||
2968 | done | |
2969 | ||
2970 | ||
2971 | for ac_func in malloc realloc calloc free | |
2972 | do | |
2973 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
24e971f6 | 2974 | echo "configure:2975: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
2975 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2977 | else | |
2978 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 2979 | #line 2980 "configure" |
81bf3d9e RH |
2980 | #include "confdefs.h" |
2981 | ||
2982 | #include <stdio.h> | |
2983 | #ifdef STRING_WITH_STRINGS | |
2984 | # include <string.h> | |
2985 | # include <strings.h> | |
2986 | #else | |
2987 | # ifdef HAVE_STRING_H | |
2988 | # include <string.h> | |
2989 | # else | |
2990 | # ifdef HAVE_STRINGS_H | |
2991 | # include <strings.h> | |
2992 | # endif | |
2993 | # endif | |
2994 | #endif | |
2995 | #ifdef HAVE_STDLIB_H | |
2996 | #include <stdlib.h> | |
2997 | #endif | |
2998 | #ifdef HAVE_UNISTD_H | |
2999 | #include <unistd.h> | |
3000 | #endif | |
3001 | #ifndef HAVE_RINDEX | |
11950183 | 3002 | #ifndef rindex |
81bf3d9e RH |
3003 | #define rindex strrchr |
3004 | #endif | |
11950183 | 3005 | #endif |
81bf3d9e | 3006 | #ifndef HAVE_INDEX |
11950183 | 3007 | #ifndef index |
81bf3d9e RH |
3008 | #define index strchr |
3009 | #endif | |
11950183 | 3010 | #endif |
81bf3d9e RH |
3011 | #ifdef HAVE_MALLOC_H |
3012 | #include <malloc.h> | |
3013 | #endif | |
3014 | ||
3015 | int main() { | |
3016 | char *(*pfn) = (char *(*)) $ac_func | |
3017 | ; return 0; } | |
3018 | EOF | |
24e971f6 | 3019 | if { (eval echo configure:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3020 | rm -rf conftest* |
3021 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3022 | else | |
3023 | echo "configure: failed program was:" >&5 | |
3024 | cat conftest.$ac_ext >&5 | |
3025 | rm -rf conftest* | |
3026 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3027 | fi | |
3028 | rm -f conftest* | |
3029 | fi | |
3030 | ||
3031 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3032 | echo "$ac_t""yes" 1>&6 | |
3033 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3034 | cat >> confdefs.h <<EOF | |
3035 | #define $gcc_tr_decl 1 | |
3036 | EOF | |
3037 | ||
3038 | else | |
3039 | echo "$ac_t""no" 1>&6 | |
3040 | fi | |
3041 | ||
3042 | done | |
3043 | ||
3044 | ||
3045 | for ac_func in getrlimit setrlimit getrusage | |
3046 | do | |
3047 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
24e971f6 | 3048 | echo "configure:3049: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
3049 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
3050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3051 | else | |
3052 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 3053 | #line 3054 "configure" |
81bf3d9e RH |
3054 | #include "confdefs.h" |
3055 | ||
3056 | #include <stdio.h> | |
3057 | #ifdef STRING_WITH_STRINGS | |
3058 | # include <string.h> | |
3059 | # include <strings.h> | |
3060 | #else | |
3061 | # ifdef HAVE_STRING_H | |
3062 | # include <string.h> | |
3063 | # else | |
3064 | # ifdef HAVE_STRINGS_H | |
3065 | # include <strings.h> | |
3066 | # endif | |
3067 | # endif | |
3068 | #endif | |
3069 | #ifdef HAVE_STDLIB_H | |
3070 | #include <stdlib.h> | |
3071 | #endif | |
3072 | #ifdef HAVE_UNISTD_H | |
3073 | #include <unistd.h> | |
3074 | #endif | |
3075 | #ifndef HAVE_RINDEX | |
11950183 | 3076 | #ifndef rindex |
81bf3d9e RH |
3077 | #define rindex strrchr |
3078 | #endif | |
11950183 | 3079 | #endif |
81bf3d9e | 3080 | #ifndef HAVE_INDEX |
11950183 | 3081 | #ifndef index |
81bf3d9e RH |
3082 | #define index strchr |
3083 | #endif | |
11950183 | 3084 | #endif |
81bf3d9e RH |
3085 | #include <sys/types.h> |
3086 | #ifdef HAVE_SYS_RESOURCE_H | |
3087 | #include <sys/resource.h> | |
3088 | #endif | |
3089 | ||
3090 | int main() { | |
3091 | char *(*pfn) = (char *(*)) $ac_func | |
3092 | ; return 0; } | |
3093 | EOF | |
24e971f6 | 3094 | if { (eval echo configure:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3095 | rm -rf conftest* |
3096 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3097 | else | |
3098 | echo "configure: failed program was:" >&5 | |
3099 | cat conftest.$ac_ext >&5 | |
3100 | rm -rf conftest* | |
3101 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3102 | fi | |
3103 | rm -f conftest* | |
3104 | fi | |
3105 | ||
3106 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3107 | echo "$ac_t""yes" 1>&6 | |
3108 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3109 | cat >> confdefs.h <<EOF | |
3110 | #define $gcc_tr_decl 1 | |
3111 | EOF | |
3112 | ||
3113 | else | |
3114 | echo "$ac_t""no" 1>&6 | |
3115 | fi | |
3116 | ||
3117 | done | |
3118 | ||
3119 | ||
75923b2f MK |
3120 | # mkdir takes a single argument on some systems. |
3121 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
24e971f6 | 3122 | echo "configure:3123: checking if mkdir takes one argument" >&5 |
75923b2f MK |
3123 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
3124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3125 | else | |
3126 | cat > conftest.$ac_ext <<EOF | |
24e971f6 | 3127 | #line 3128 "configure" |
75923b2f MK |
3128 | #include "confdefs.h" |
3129 | ||
3130 | #include <sys/types.h> | |
3131 | #ifdef HAVE_SYS_STAT_H | |
3132 | # include <sys/stat.h> | |
3133 | #endif | |
3134 | #ifdef HAVE_UNISTD_H | |
3135 | # include <unistd.h> | |
3136 | #endif | |
3137 | #ifdef HAVE_DIRECT_H | |
3138 | # include <direct.h> | |
3139 | #endif | |
3140 | int main() { | |
3141 | mkdir ("foo", 0); | |
3142 | ; return 0; } | |
3143 | EOF | |
24e971f6 | 3144 | if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
3145 | rm -rf conftest* |
3146 | gcc_cv_mkdir_takes_one_arg=no | |
3147 | else | |
3148 | echo "configure: failed program was:" >&5 | |
3149 | cat conftest.$ac_ext >&5 | |
3150 | rm -rf conftest* | |
3151 | gcc_cv_mkdir_takes_one_arg=yes | |
3152 | fi | |
3153 | rm -f conftest* | |
3154 | fi | |
3155 | ||
3156 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
3157 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
3158 | cat >> confdefs.h <<\EOF | |
3159 | #define MKDIR_TAKES_ONE_ARG 1 | |
3160 | EOF | |
3161 | ||
3162 | fi | |
3163 | ||
3164 | ||
861bb6c1 JL |
3165 | # File extensions |
3166 | manext='.1' | |
3167 | objext='.o' | |
3168 | ||
3169 | ||
3170 | ||
3171 | build_xm_file= | |
f6cb0e63 | 3172 | build_xm_defines= |
861bb6c1 JL |
3173 | build_install_headers_dir=install-headers-tar |
3174 | build_exeext= | |
3175 | host_xm_file= | |
f6cb0e63 | 3176 | host_xm_defines= |
861bb6c1 JL |
3177 | host_xmake_file= |
3178 | host_truncate_target= | |
6e26218f | 3179 | host_exeext= |
861bb6c1 JL |
3180 | |
3181 | # Decode the host machine, then the target machine. | |
3182 | # For the host machine, we save the xm_file variable as host_xm_file; | |
3183 | # then we decode the target machine and forget everything else | |
3184 | # that came from the host machine. | |
3185 | for machine in $build $host $target; do | |
3186 | ||
3187 | out_file= | |
3188 | xmake_file= | |
3189 | tmake_file= | |
3190 | extra_headers= | |
3191 | extra_passes= | |
3192 | extra_parts= | |
3193 | extra_programs= | |
3194 | extra_objs= | |
3195 | extra_host_objs= | |
3196 | extra_gcc_objs= | |
f6cb0e63 | 3197 | xm_defines= |
861bb6c1 JL |
3198 | float_format= |
3199 | # Set this to force installation and use of collect2. | |
3200 | use_collect2= | |
3201 | # Set this to override the default target model. | |
3202 | target_cpu_default= | |
861bb6c1 JL |
3203 | # Set this to control how the header file directory is installed. |
3204 | install_headers_dir=install-headers-tar | |
3205 | # Set this to a non-empty list of args to pass to cpp if the target | |
3206 | # wants its .md file passed through cpp. | |
3207 | md_cppflags= | |
3208 | # Set this if directory names should be truncated to 14 characters. | |
3209 | truncate_target= | |
3210 | # Set this if gdb needs a dir command with `dirname $out_file` | |
3211 | gdb_needs_out_file_path= | |
3212 | # Set this if the build machine requires executables to have a | |
3213 | # file name suffix. | |
3214 | exeext= | |
a851212a JW |
3215 | # Set this to control which thread package will be used. |
3216 | thread_file= | |
df6faf79 JW |
3217 | # Reinitialize these from the flag values every loop pass, since some |
3218 | # configure entries modify them. | |
3219 | gas="$gas_flag" | |
3220 | gnu_ld="$gnu_ld_flag" | |
e445171e | 3221 | enable_threads=$enable_threads_flag |
861bb6c1 | 3222 | |
6baf1cc8 BS |
3223 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
3224 | # updated in each machine entry. | |
3225 | tm_p_file= | |
861bb6c1 JL |
3226 | cpu_type=`echo $machine | sed 's/-.*$//'` |
3227 | case $machine in | |
3228 | alpha*-*-*) | |
3229 | cpu_type=alpha | |
3230 | ;; | |
3231 | arm*-*-*) | |
3232 | cpu_type=arm | |
3233 | ;; | |
3234 | c*-convex-*) | |
3235 | cpu_type=convex | |
3236 | ;; | |
f6cb0e63 | 3237 | i[34567]86-*-*) |
861bb6c1 JL |
3238 | cpu_type=i386 |
3239 | ;; | |
3240 | hppa*-*-*) | |
3241 | cpu_type=pa | |
3242 | ;; | |
3243 | m68000-*-*) | |
3244 | cpu_type=m68k | |
3245 | ;; | |
3246 | mips*-*-*) | |
3247 | cpu_type=mips | |
3248 | ;; | |
1b992148 SC |
3249 | pj*-*-*) |
3250 | cpu_type=pj | |
3251 | ;; | |
861bb6c1 JL |
3252 | powerpc*-*-*) |
3253 | cpu_type=rs6000 | |
3254 | ;; | |
3255 | pyramid-*-*) | |
3256 | cpu_type=pyr | |
3257 | ;; | |
3258 | sparc*-*-*) | |
3259 | cpu_type=sparc | |
3260 | ;; | |
3261 | esac | |
3262 | ||
3263 | tm_file=${cpu_type}/${cpu_type}.h | |
3264 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
6baf1cc8 BS |
3265 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h; |
3266 | then | |
3267 | tm_p_file=${cpu_type}/${cpu_type}-protos.h; | |
3268 | fi | |
7aae67a2 JM |
3269 | # On a.out targets, we need to use collect2. |
3270 | case $machine in | |
3271 | *-*-*aout*) | |
3272 | use_collect2=yes | |
3273 | ;; | |
3274 | esac | |
3275 | ||
1b4a979b | 3276 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
3277 | case $machine in |
3278 | *-*-linux-gnu*) | |
c7391272 | 3279 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 3280 | ;; |
1b4a979b ME |
3281 | *-*-openbsd*) |
3282 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
3283 | tmake_file="t-libc-ok t-openbsd" |
3284 | # avoid surprises, always provide an xm-openbsd file | |
3285 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
3286 | # don't depend on processor x-fragments as well |
3287 | xmake_file=none | |
1b4a979b ME |
3288 | if test x$enable_threads = xyes; then |
3289 | thread_file='posix' | |
3290 | tmake_file="${tmake_file} t-openbsd-thread" | |
3291 | fi | |
3292 | ;; | |
f6cb0e63 JL |
3293 | esac |
3294 | ||
861bb6c1 JL |
3295 | case $machine in |
3296 | # Support site-specific machine types. | |
3297 | *local*) | |
3298 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
3299 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
3300 | xm_file=${cpu_type}/xm-$rest.h | |
3301 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 3302 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
3303 | then xmake_file=${cpu_type}/x-$rest; \ |
3304 | else true; \ | |
3305 | fi | |
75bffa71 | 3306 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
3307 | then tmake_file=${cpu_type}/t-$rest; \ |
3308 | else true; \ | |
3309 | fi | |
3310 | ;; | |
3311 | 1750a-*-*) | |
3312 | ;; | |
3313 | a29k-*-bsd* | a29k-*-sym1*) | |
3314 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 3315 | xm_defines=USG |
861bb6c1 JL |
3316 | xmake_file=a29k/x-unix |
3317 | use_collect2=yes | |
3318 | ;; | |
3319 | a29k-*-udi | a29k-*-coff) | |
3320 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3321 | tmake_file=a29k/t-a29kbare | |
3322 | ;; | |
7cc34889 | 3323 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3324 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3325 | tmake_file=a29k/t-vx29k | |
3326 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3327 | thread_file='vxworks' |
861bb6c1 JL |
3328 | ;; |
3329 | a29k-*-*) # Default a29k environment. | |
3330 | use_collect2=yes | |
3331 | ;; | |
615c8231 DT |
3332 | alpha-*-interix) |
3333 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3334 | ||
3335 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3336 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3337 | |
8354da48 JL |
3338 | # GAS + IEEE_CONFORMANT |
3339 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3340 | |
3341 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3342 | xmake_file="x-interix alpha/t-pe" | |
e345693a | 3343 | tmake_file="alpha/t-interix alpha/t-ieee" |
615c8231 DT |
3344 | if test x$enable_threads = xyes ; then |
3345 | thread_file='posix' | |
3346 | fi | |
3347 | if test x$stabs = xyes ; then | |
3348 | tm_file="${tm_file} dbxcoff.h" | |
3349 | fi | |
3350 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3351 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3352 | ;; | |
861bb6c1 | 3353 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3354 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3355 | target_cpu_default="MASK_GAS" |
e345693a | 3356 | tmake_file="alpha/t-ieee" |
861bb6c1 JL |
3357 | gas=no |
3358 | xmake_file=none | |
861bb6c1 JL |
3359 | gas=yes gnu_ld=yes |
3360 | ;; | |
2601ebca | 3361 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3362 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3363 | target_cpu_default="MASK_GAS" |
e345693a | 3364 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
ee8d66f7 | 3365 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2601ebca | 3366 | xmake_file=none |
2601ebca | 3367 | gas=yes gnu_ld=yes |
75bffa71 | 3368 | if test x$enable_threads = xyes; then |
2601ebca JL |
3369 | thread_file='posix' |
3370 | fi | |
3371 | ;; | |
861bb6c1 | 3372 | alpha*-*-linux-gnu*) |
9d654bba | 3373 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3374 | target_cpu_default="MASK_GAS" |
e345693a | 3375 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
ee8d66f7 | 3376 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3377 | xmake_file=none |
861bb6c1 | 3378 | gas=yes gnu_ld=yes |
75bffa71 | 3379 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3380 | thread_file='posix' |
3381 | fi | |
3382 | ;; | |
9d654bba | 3383 | alpha*-*-netbsd*) |
66953094 | 3384 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba | 3385 | target_cpu_default="MASK_GAS" |
e345693a | 3386 | tmake_file="alpha/t-crtbe alpha/t-ieee" |
ee8d66f7 | 3387 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
9d654bba | 3388 | xmake_file=none |
9d654bba RH |
3389 | gas=yes gnu_ld=yes |
3390 | ;; | |
1b4a979b ME |
3391 | |
3392 | alpha*-*-openbsd*) | |
3393 | # default x-alpha is only appropriate for dec-osf. | |
3394 | target_cpu_default="MASK_GAS" | |
e345693a | 3395 | tmake_file="alpha/t-ieee" |
1b4a979b | 3396 | ;; |
9d654bba | 3397 | |
e9a25f70 | 3398 | alpha*-dec-osf*) |
75bffa71 | 3399 | if test x$stabs = xyes |
861bb6c1 JL |
3400 | then |
3401 | tm_file="${tm_file} dbx.h" | |
3402 | fi | |
75bffa71 | 3403 | if test x$gas != xyes |
861bb6c1 JL |
3404 | then |
3405 | extra_passes="mips-tfile mips-tdump" | |
3406 | fi | |
861bb6c1 | 3407 | use_collect2=yes |
e345693a | 3408 | tmake_file="alpha/t-ieee" |
861bb6c1 | 3409 | case $machine in |
6ecd4e53 | 3410 | *-*-osf1*) |
b0435cf4 | 3411 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3412 | ;; |
3413 | *-*-osf[23]*) | |
b0435cf4 | 3414 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3415 | ;; |
3416 | *-*-osf4*) | |
b0435cf4 | 3417 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3418 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3419 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3420 | install_headers_dir=install-headers-cpio |
3421 | ;; | |
7bc69973 | 3422 | *-*-osf5*) |
5495cc55 | 3423 | tm_file="${tm_file} alpha/osf.h alpha/osf5.h" |
7bc69973 | 3424 | ;; |
861bb6c1 | 3425 | esac |
e9a25f70 | 3426 | case $machine in |
cd038ac2 | 3427 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*) |
e9a25f70 JL |
3428 | target_cpu_default=MASK_SUPPORT_ARCH |
3429 | ;; | |
3430 | esac | |
861bb6c1 | 3431 | ;; |
9ec36da5 JL |
3432 | alpha*-*-vxworks*) |
3433 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
e345693a | 3434 | tmake_file="alpha/t-ieee" |
9ec36da5 JL |
3435 | if x$gas != xyes |
3436 | then | |
3437 | extra_passes="mips-tfile mips-tdump" | |
3438 | fi | |
3439 | use_collect2=yes | |
28897609 | 3440 | thread_file='vxworks' |
9ec36da5 | 3441 | ;; |
b0435cf4 | 3442 | alpha*-*-winnt*) |
615c8231 | 3443 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 | 3444 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
e345693a | 3445 | tmake_file="t-libc-ok alpha/t-ieee" |
861bb6c1 JL |
3446 | xmake_file=winnt/x-winnt |
3447 | extra_host_objs=oldnames.o | |
3448 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3449 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3450 | then |
3451 | extra_programs=ld.exe | |
3452 | fi | |
75bffa71 | 3453 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3454 | thread_file='win32' |
3455 | fi | |
3456 | ;; | |
3457 | alpha*-dec-vms*) | |
3458 | tm_file=alpha/vms.h | |
3459 | xm_file="${xm_file} alpha/xm-vms.h" | |
e345693a | 3460 | tmake_file="alpha/t-vms alpha/t-ieee" |
861bb6c1 | 3461 | ;; |
66ed0683 JL |
3462 | arc-*-elf*) |
3463 | extra_parts="crtinit.o crtfini.o" | |
3464 | ;; | |
861bb6c1 JL |
3465 | arm-*-coff* | armel-*-coff*) |
3466 | tm_file=arm/coff.h | |
3467 | tmake_file=arm/t-bare | |
3468 | ;; | |
2aa0c933 | 3469 | arm-*-vxworks*) |
e14db015 | 3470 | tm_file=arm/vxarm.h |
2aa0c933 | 3471 | tmake_file=arm/t-bare |
28897609 | 3472 | thread_file='vxworks' |
2aa0c933 | 3473 | ;; |
861bb6c1 JL |
3474 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3475 | tm_file=arm/riscix1-1.h | |
3476 | use_collect2=yes | |
3477 | ;; | |
3478 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3479 | if test x$gas = xyes |
861bb6c1 JL |
3480 | then |
3481 | tm_file=arm/rix-gas.h | |
3482 | else | |
3483 | tm_file=arm/riscix.h | |
3484 | fi | |
3485 | xmake_file=arm/x-riscix | |
3486 | tmake_file=arm/t-riscix | |
3487 | use_collect2=yes | |
3488 | ;; | |
3489 | arm-semi-aout | armel-semi-aout) | |
3490 | tm_file=arm/semi.h | |
3491 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3492 | ;; |
3493 | arm-semi-aof | armel-semi-aof) | |
3494 | tm_file=arm/semiaof.h | |
3495 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3496 | ;; |
58600d24 | 3497 | arm*-*-netbsd*) |
861bb6c1 | 3498 | tm_file=arm/netbsd.h |
e9a25f70 | 3499 | tmake_file="t-netbsd arm/t-netbsd" |
ed4acb3b | 3500 | use_collect2=yes |
861bb6c1 | 3501 | ;; |
b355a481 | 3502 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3503 | cpu_type=arm |
861bb6c1 | 3504 | xmake_file=x-linux |
b355a481 | 3505 | tm_file=arm/linux-aout.h |
861bb6c1 | 3506 | tmake_file=arm/t-linux |
861bb6c1 JL |
3507 | gnu_ld=yes |
3508 | ;; | |
078e19a4 | 3509 | arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker |
b355a481 NC |
3510 | xm_file=arm/xm-linux.h |
3511 | xmake_file=x-linux | |
078e19a4 | 3512 | tm_file="arm/linux-oldld.h arm/linux-elf.h" |
b355a481 NC |
3513 | case $machine in |
3514 | armv2*-*-*) | |
078e19a4 | 3515 | tm_file="arm/linux-elf26.h $tm_file" |
b355a481 | 3516 | ;; |
078e19a4 PB |
3517 | esac |
3518 | tmake_file="t-linux arm/t-linux" | |
3519 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3520 | gnu_ld=yes | |
3521 | case x${enable_threads} in | |
3522 | x | xyes | xpthreads | xposix) | |
3523 | thread_file='posix' | |
3524 | ;; | |
3525 | esac | |
3526 | ;; | |
3527 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF | |
3528 | xm_file=arm/xm-linux.h | |
3529 | xmake_file=x-linux | |
3530 | tm_file="arm/linux-elf.h" | |
3531 | case $machine in | |
3532 | armv2*-*-*) | |
3533 | tm_file="arm/linux-elf26.h $tm_file" | |
b355a481 NC |
3534 | ;; |
3535 | esac | |
3536 | tmake_file="t-linux arm/t-linux" | |
3537 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3538 | gnu_ld=yes |
65120c40 SB |
3539 | case x${enable_threads} in |
3540 | x | xyes | xpthreads | xposix) | |
3541 | thread_file='posix' | |
3542 | ;; | |
3543 | esac | |
b355a481 | 3544 | ;; |
483f6332 PB |
3545 | arm*-*-uclinux*) # ARM ucLinux |
3546 | tm_file=arm/uclinux-elf.h | |
3547 | tmake_file=arm/t-arm-elf | |
3548 | ;; | |
b355a481 | 3549 | arm*-*-aout) |
861bb6c1 | 3550 | tm_file=arm/aout.h |
e9a25f70 | 3551 | tmake_file=arm/t-bare |
861bb6c1 | 3552 | ;; |
e6592fff | 3553 | arm*-*-ecos-elf) |
54953b66 UD |
3554 | tm_file=arm/ecos-elf.h |
3555 | tmake_file=arm/t-elf | |
3556 | ;; | |
b355a481 NC |
3557 | arm*-*-elf) |
3558 | tm_file=arm/unknown-elf.h | |
3559 | tmake_file=arm/t-arm-elf | |
47163378 PB |
3560 | ;; |
3561 | arm*-*-conix*) | |
3562 | tm_file=arm/conix-elf.h | |
3563 | tmake_file=arm/t-arm-elf | |
b355a481 | 3564 | ;; |
cbca921c CM |
3565 | arm*-*-oabi) |
3566 | tm_file=arm/unknown-elf-oabi.h | |
3567 | tmake_file=arm/t-arm-elf | |
3568 | ;; | |
cb805c2d NC |
3569 | arm-*-pe*) |
3570 | tm_file=arm/pe.h | |
3571 | tmake_file=arm/t-pe | |
3572 | extra_objs=pe.o | |
3573 | ;; | |
ed4acb3b DC |
3574 | avr-*-*) |
3575 | ;; | |
861bb6c1 JL |
3576 | c1-convex-*) # Convex C1 |
3577 | target_cpu_default=1 | |
3578 | use_collect2=yes | |
861bb6c1 JL |
3579 | ;; |
3580 | c2-convex-*) # Convex C2 | |
3581 | target_cpu_default=2 | |
3582 | use_collect2=yes | |
861bb6c1 JL |
3583 | ;; |
3584 | c32-convex-*) | |
3585 | target_cpu_default=4 | |
3586 | use_collect2=yes | |
861bb6c1 JL |
3587 | ;; |
3588 | c34-convex-*) | |
3589 | target_cpu_default=8 | |
3590 | use_collect2=yes | |
861bb6c1 JL |
3591 | ;; |
3592 | c38-convex-*) | |
3593 | target_cpu_default=16 | |
3594 | use_collect2=yes | |
861bb6c1 | 3595 | ;; |
62616695 MH |
3596 | c4x-*) |
3597 | cpu_type=c4x | |
3598 | tmake_file=c4x/t-c4x | |
3599 | ;; | |
861bb6c1 JL |
3600 | clipper-intergraph-clix*) |
3601 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3602 | xm_file=clipper/xm-clix.h | |
3603 | xmake_file=clipper/x-clix | |
3604 | extra_headers=va-clipper.h | |
3605 | extra_parts="crtbegin.o crtend.o" | |
3606 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3607 | ;; |
3608 | dsp16xx-*) | |
3609 | ;; | |
3610 | elxsi-elxsi-*) | |
3611 | use_collect2=yes | |
3612 | ;; | |
309dd885 NC |
3613 | fr30-*-elf) |
3614 | tm_file="fr30/fr30.h" | |
3615 | tmake_file=fr30/t-fr30 | |
3616 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3617 | ;; | |
861bb6c1 JL |
3618 | # This hasn't been upgraded to GCC 2. |
3619 | # fx80-alliant-*) # Alliant FX/80 | |
3620 | # ;; | |
3621 | h8300-*-*) | |
3622 | float_format=i32 | |
3623 | ;; | |
30f08b39 JL |
3624 | hppa*-*-linux*) |
3625 | target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)" | |
3626 | tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h" | |
3627 | tmake_file="t-linux pa/t-linux" | |
3628 | extra_parts="crtbegin.o crtend.o" | |
3629 | xmake_file=none | |
3630 | gas=yes gnu_ld=yes | |
3631 | if test x$enable_threads = xyes; then | |
3632 | thread_file='posix' | |
3633 | fi | |
3634 | ;; | |
1b4a979b | 3635 | hppa*-*-openbsd*) |
13ee407e | 3636 | target_cpu_default="MASK_PA_11" |
4525d757 | 3637 | tmake_file=pa/t-openbsd |
1b4a979b | 3638 | ;; |
861bb6c1 | 3639 | hppa1.1-*-pro*) |
0d381b47 | 3640 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3641 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" |
861bb6c1 JL |
3642 | xm_file=pa/xm-papro.h |
3643 | tmake_file=pa/t-pro | |
3644 | ;; | |
3645 | hppa1.1-*-osf*) | |
13ee407e | 3646 | target_cpu_default="MASK_PA_11" |
88624c0e | 3647 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3648 | use_collect2=yes |
861bb6c1 JL |
3649 | ;; |
3650 | hppa1.1-*-rtems*) | |
0d381b47 | 3651 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3652 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" |
861bb6c1 JL |
3653 | xm_file=pa/xm-papro.h |
3654 | tmake_file=pa/t-pro | |
3655 | ;; | |
3656 | hppa1.0-*-osf*) | |
88624c0e | 3657 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3658 | use_collect2=yes |
861bb6c1 JL |
3659 | ;; |
3660 | hppa1.1-*-bsd*) | |
88624c0e | 3661 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
13ee407e | 3662 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3663 | use_collect2=yes |
861bb6c1 JL |
3664 | ;; |
3665 | hppa1.0-*-bsd*) | |
88624c0e | 3666 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
861bb6c1 | 3667 | use_collect2=yes |
861bb6c1 JL |
3668 | ;; |
3669 | hppa1.0-*-hpux7*) | |
88624c0e | 3670 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" |
861bb6c1 JL |
3671 | xm_file=pa/xm-pahpux.h |
3672 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3673 | if test x$gas = xyes |
861bb6c1 JL |
3674 | then |
3675 | tm_file="${tm_file} pa/gas.h" | |
3676 | fi | |
861bb6c1 JL |
3677 | install_headers_dir=install-headers-cpio |
3678 | use_collect2=yes | |
3679 | ;; | |
3680 | hppa1.0-*-hpux8.0[0-2]*) | |
88624c0e | 3681 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3682 | xm_file=pa/xm-pahpux.h |
3683 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3684 | if test x$gas = xyes |
861bb6c1 JL |
3685 | then |
3686 | tm_file="${tm_file} pa/pa-gas.h" | |
3687 | else | |
3688 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3689 | fi | |
861bb6c1 JL |
3690 | install_headers_dir=install-headers-cpio |
3691 | use_collect2=yes | |
3692 | ;; | |
3693 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3694 | target_cpu_default="MASK_PA_11" |
88624c0e | 3695 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3696 | xm_file=pa/xm-pahpux.h |
3697 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3698 | if test x$gas = xyes |
861bb6c1 JL |
3699 | then |
3700 | tm_file="${tm_file} pa/pa-gas.h" | |
3701 | else | |
3702 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3703 | fi | |
861bb6c1 JL |
3704 | install_headers_dir=install-headers-cpio |
3705 | use_collect2=yes | |
3706 | ;; | |
3707 | hppa1.1-*-hpux8*) | |
13ee407e | 3708 | target_cpu_default="MASK_PA_11" |
88624c0e | 3709 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3710 | xm_file=pa/xm-pahpux.h |
3711 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3712 | if test x$gas = xyes |
861bb6c1 JL |
3713 | then |
3714 | tm_file="${tm_file} pa/pa-gas.h" | |
3715 | fi | |
861bb6c1 JL |
3716 | install_headers_dir=install-headers-cpio |
3717 | use_collect2=yes | |
3718 | ;; | |
3719 | hppa1.0-*-hpux8*) | |
88624c0e | 3720 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3721 | xm_file=pa/xm-pahpux.h |
3722 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3723 | if test x$gas = xyes |
861bb6c1 JL |
3724 | then |
3725 | tm_file="${tm_file} pa/pa-gas.h" | |
3726 | fi | |
861bb6c1 JL |
3727 | install_headers_dir=install-headers-cpio |
3728 | use_collect2=yes | |
3729 | ;; | |
18cae839 | 3730 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3731 | target_cpu_default="MASK_PA_11" |
88624c0e | 3732 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3733 | float_format=i128 |
861bb6c1 JL |
3734 | xm_file=pa/xm-pahpux.h |
3735 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3736 | tmake_file=pa/t-pa |
75bffa71 | 3737 | if test x$gas = xyes |
861bb6c1 JL |
3738 | then |
3739 | tm_file="${tm_file} pa/pa-gas.h" | |
3740 | fi | |
75bffa71 | 3741 | if test x$enable_threads = x; then |
f24af81b TT |
3742 | enable_threads=$have_pthread_h |
3743 | fi | |
75bffa71 | 3744 | if test x$enable_threads = xyes; then |
f24af81b TT |
3745 | thread_file='dce' |
3746 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3747 | fi | |
861bb6c1 JL |
3748 | install_headers_dir=install-headers-cpio |
3749 | use_collect2=yes | |
3750 | ;; | |
3751 | hppa1.0-*-hpux10*) | |
88624c0e | 3752 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3753 | float_format=i128 |
861bb6c1 JL |
3754 | xm_file=pa/xm-pahpux.h |
3755 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3756 | tmake_file=pa/t-pa |
75bffa71 | 3757 | if test x$gas = xyes |
861bb6c1 JL |
3758 | then |
3759 | tm_file="${tm_file} pa/pa-gas.h" | |
3760 | fi | |
75bffa71 | 3761 | if test x$enable_threads = x; then |
d005a5a4 JL |
3762 | enable_threads=$have_pthread_h |
3763 | fi | |
75bffa71 | 3764 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3765 | thread_file='dce' |
3766 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3767 | fi | |
861bb6c1 JL |
3768 | install_headers_dir=install-headers-cpio |
3769 | use_collect2=yes | |
3770 | ;; | |
fab7be4f | 3771 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) |
30f08b39 | 3772 | target_cpu_default="MASK_PA_11" |
88624c0e | 3773 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 3774 | float_format=i128 |
fab7be4f JL |
3775 | xm_file=pa/xm-pahpux.h |
3776 | xmake_file=pa/x-pa-hpux | |
3777 | tmake_file=pa/t-pa | |
2618c083 | 3778 | if test x$gas = xyes |
fab7be4f JL |
3779 | then |
3780 | tm_file="${tm_file} pa/pa-gas.h" | |
3781 | fi | |
2618c083 | 3782 | # if test x$enable_threads = x; then |
fab7be4f JL |
3783 | # enable_threads=$have_pthread_h |
3784 | # fi | |
2618c083 | 3785 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
3786 | # thread_file='dce' |
3787 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3788 | # fi | |
3789 | install_headers_dir=install-headers-cpio | |
3790 | use_collect2=yes | |
3791 | ;; | |
3792 | hppa1.0-*-hpux11*) | |
88624c0e | 3793 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 3794 | float_format=i128 |
fab7be4f JL |
3795 | xm_file=pa/xm-pahpux.h |
3796 | xmake_file=pa/x-pa-hpux | |
2618c083 | 3797 | if test x$gas = xyes |
fab7be4f JL |
3798 | then |
3799 | tm_file="${tm_file} pa/pa-gas.h" | |
3800 | fi | |
2618c083 | 3801 | # if test x$enable_threads = x; then |
fab7be4f JL |
3802 | # enable_threads=$have_pthread_h |
3803 | # fi | |
2618c083 | 3804 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
3805 | # thread_file='dce' |
3806 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3807 | # fi | |
3808 | install_headers_dir=install-headers-cpio | |
3809 | use_collect2=yes | |
3810 | ;; | |
18cae839 | 3811 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3812 | target_cpu_default="MASK_PA_11" |
88624c0e | 3813 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3814 | xm_file=pa/xm-pahpux.h |
3815 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3816 | if test x$gas = xyes |
861bb6c1 JL |
3817 | then |
3818 | tm_file="${tm_file} pa/pa-gas.h" | |
3819 | fi | |
861bb6c1 JL |
3820 | install_headers_dir=install-headers-cpio |
3821 | use_collect2=yes | |
3822 | ;; | |
3823 | hppa1.0-*-hpux*) | |
88624c0e | 3824 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3825 | xm_file=pa/xm-pahpux.h |
3826 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3827 | if test x$gas = xyes |
861bb6c1 JL |
3828 | then |
3829 | tm_file="${tm_file} pa/pa-gas.h" | |
3830 | fi | |
861bb6c1 JL |
3831 | install_headers_dir=install-headers-cpio |
3832 | use_collect2=yes | |
3833 | ;; | |
18cae839 | 3834 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3835 | target_cpu_default="MASK_PA_11" |
88624c0e | 3836 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3837 | xm_file=pa/xm-pahpux.h |
3838 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3839 | if test x$gas = xyes |
861bb6c1 JL |
3840 | then |
3841 | tm_file="${tm_file} pa/pa-gas.h" | |
3842 | fi | |
861bb6c1 JL |
3843 | install_headers_dir=install-headers-cpio |
3844 | use_collect2=yes | |
3845 | ;; | |
3846 | hppa1.0-*-hiux*) | |
88624c0e | 3847 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3848 | xm_file=pa/xm-pahpux.h |
3849 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3850 | if test x$gas = xyes |
861bb6c1 JL |
3851 | then |
3852 | tm_file="${tm_file} pa/pa-gas.h" | |
3853 | fi | |
861bb6c1 JL |
3854 | install_headers_dir=install-headers-cpio |
3855 | use_collect2=yes | |
3856 | ;; | |
3857 | hppa*-*-lites*) | |
88624c0e | 3858 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h" |
13ee407e | 3859 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3860 | use_collect2=yes |
861bb6c1 | 3861 | ;; |
6bc2c8c8 MK |
3862 | hppa*-*-mpeix*) |
3863 | tm_file="${tm_file} pa/pa-mpeix.h" | |
3864 | xm_file=pa/xm-pampeix.h | |
3865 | xmake_file=pa/x-pa-mpeix | |
3866 | echo "You must use gas. Assuming it is already installed." | |
3867 | install_headers_dir=install-headers-tar | |
6bc2c8c8 MK |
3868 | use_collect2=yes |
3869 | ;; | |
a2b368b6 LV |
3870 | i370-*-opened*) # IBM 360/370/390 Architecture |
3871 | xm_file=i370/xm-oe.h | |
3872 | tm_file=i370/oe.h | |
3873 | xmake_file=i370/x-oe | |
3874 | tmake_file=i370/t-oe | |
a2b368b6 | 3875 | ;; |
861bb6c1 | 3876 | i370-*-mvs*) |
a2b368b6 LV |
3877 | xm_file=i370/xm-mvs.h |
3878 | tm_file=i370/mvs.h | |
3879 | tmake_file=i370/t-mvs | |
a2b368b6 LV |
3880 | ;; |
3881 | i370-*-linux*) | |
3882 | xm_file="xm-linux.h i370/xm-linux.h" | |
3883 | xmake_file=x-linux | |
3884 | tm_file="i370/linux.h ${tm_file}" | |
3885 | tmake_file="t-linux i370/t-linux" | |
a2b368b6 LV |
3886 | # broken_install=yes |
3887 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3888 | # extra_parts="crtbegin.o crtend.o" | |
3889 | gnu_ld=yes | |
3890 | gas=yes | |
3891 | elf=yes | |
2618c083 | 3892 | if test x$enable_threads = xyes; then |
a2b368b6 LV |
3893 | thread_file='posix' |
3894 | fi | |
861bb6c1 | 3895 | ;; |
9b5c756a JL |
3896 | i[34567]86-*-elf*) |
3897 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h" | |
3898 | tm_file=i386/i386elf.h | |
3899 | tmake_file=i386/t-i386elf | |
3900 | xmake_file=x-svr4 | |
3901 | ;; | |
f6cb0e63 | 3902 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3903 | if test x$gas = xyes |
861bb6c1 JL |
3904 | then |
3905 | tm_file=i386/aix386.h | |
3906 | extra_parts="crtbegin.o crtend.o" | |
3907 | tmake_file=i386/t-crtstuff | |
3908 | else | |
3909 | tm_file=i386/aix386ng.h | |
3910 | use_collect2=yes | |
3911 | fi | |
f6cb0e63 JL |
3912 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3913 | xm_defines=USG | |
861bb6c1 | 3914 | xmake_file=i386/x-aix |
861bb6c1 | 3915 | ;; |
75bffa71 | 3916 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
2d092ffa | 3917 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 3918 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 3919 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3920 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3921 | then |
3922 | tm_file=i386/sysv4gdb.h | |
3923 | else | |
3924 | tm_file=i386/sysv4.h | |
3925 | fi | |
3926 | extra_parts="crtbegin.o crtend.o" | |
3927 | tmake_file=i386/t-crtpic | |
3928 | ;; | |
f6cb0e63 | 3929 | i[34567]86-next-*) |
861bb6c1 JL |
3930 | tm_file=i386/next.h |
3931 | xm_file=i386/xm-next.h | |
3932 | tmake_file=i386/t-next | |
3933 | xmake_file=i386/x-next | |
3934 | extra_objs=nextstep.o | |
750930c1 | 3935 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 3936 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3937 | thread_file='mach' |
3938 | fi | |
3939 | ;; | |
f6cb0e63 | 3940 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 3941 | use_collect2=yes |
75bffa71 | 3942 | if test x$gas = xyes |
861bb6c1 JL |
3943 | then |
3944 | tm_file=i386/seq-gas.h | |
3945 | else | |
3946 | tm_file=i386/sequent.h | |
3947 | fi | |
3948 | ;; | |
f6cb0e63 JL |
3949 | i[34567]86-sequent-ptx1*) |
3950 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3951 | xmake_file=i386/x-sysv3 |
3952 | tm_file=i386/seq-sysv3.h | |
3953 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
3954 | extra_parts="crtbegin.o crtend.o" |
3955 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3956 | ;; |
f6cb0e63 JL |
3957 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
3958 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3959 | xmake_file=i386/x-sysv3 |
3960 | tm_file=i386/seq2-sysv3.h | |
3961 | tmake_file=i386/t-crtstuff | |
3962 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3963 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3964 | ;; |
f6cb0e63 | 3965 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
2d092ffa | 3966 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 3967 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 JL |
3968 | xmake_file=x-svr4 |
3969 | tm_file=i386/ptx4-i.h | |
3970 | tmake_file=t-svr4 | |
3971 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3972 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
3973 | ;; |
3974 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 3975 | xm_defines=USG |
861bb6c1 JL |
3976 | tm_file=i386/sun.h |
3977 | use_collect2=yes | |
3978 | ;; | |
62db76ee | 3979 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
3980 | tm_file=i386/vxi386.h |
3981 | tmake_file=i386/t-i386bare | |
28897609 | 3982 | thread_file='vxworks' |
9e89df50 | 3983 | ;; |
f6cb0e63 | 3984 | i[34567]86-*-aout*) |
861bb6c1 JL |
3985 | tm_file=i386/i386-aout.h |
3986 | tmake_file=i386/t-i386bare | |
3987 | ;; | |
11950183 JM |
3988 | i[34567]86-*-beospe*) |
3989 | xm_file=i386/xm-beos.h | |
3990 | xm_defines="USE_C_ALLOCA" | |
3991 | tmake_file=i386/t-beos | |
3992 | tm_file=i386/beos-pe.h | |
3993 | xmake_file=i386/x-beos | |
3994 | extra_objs=winnt.o | |
3995 | ;; | |
3996 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
3997 | xm_file=i386/xm-beos.h | |
3998 | tmake_file='i386/t-beos i386/t-crtpic' | |
3999 | tm_file=i386/beos-elf.h | |
4000 | xmake_file=i386/x-beos | |
4001 | extra_objs=winnt.o | |
4002 | extra_parts='crtbegin.o crtend.o' | |
11950183 | 4003 | ;; |
f6cb0e63 | 4004 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 4005 | tm_file=i386/bsd386.h |
861bb6c1 JL |
4006 | # tmake_file=t-libc-ok |
4007 | ;; | |
f6cb0e63 | 4008 | i[34567]86-*-bsd*) |
861bb6c1 | 4009 | tm_file=i386/386bsd.h |
861bb6c1 JL |
4010 | # tmake_file=t-libc-ok |
4011 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
4012 | # use_collect2=yes | |
4013 | ;; | |
f6cb0e63 | 4014 | i[34567]86-*-freebsdelf*) |
4e32293c | 4015 | tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 4016 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 4017 | tmake_file=t-freebsd |
861bb6c1 JL |
4018 | gas=yes |
4019 | gnu_ld=yes | |
4020 | stabs=yes | |
46346e0e LR |
4021 | case x${enable_threads} in |
4022 | xyes | xpthreads | xposix) | |
4023 | thread_file='posix' | |
e1459ff8 | 4024 | tmake_file="${tmake_file} t-freebsd-thread" |
46346e0e LR |
4025 | ;; |
4026 | esac | |
861bb6c1 | 4027 | ;; |
f6cb0e63 | 4028 | i[34567]86-*-freebsd*) |
4e32293c | 4029 | tm_file="i386/freebsd.h i386/perform.h" |
d0550c9b | 4030 | tmake_file=t-freebsd |
861bb6c1 | 4031 | ;; |
1b4a979b | 4032 | i[34567]86-*-netbsd*) |
861bb6c1 | 4033 | tm_file=i386/netbsd.h |
861bb6c1 | 4034 | tmake_file=t-netbsd |
ed4acb3b | 4035 | use_collect2=yes |
861bb6c1 | 4036 | ;; |
1b4a979b | 4037 | i[34567]86-*-openbsd*) |
1b4a979b ME |
4038 | # we need collect2 until our bug is fixed... |
4039 | use_collect2=yes | |
4040 | ;; | |
f6cb0e63 | 4041 | i[34567]86-*-coff*) |
861bb6c1 JL |
4042 | tm_file=i386/i386-coff.h |
4043 | tmake_file=i386/t-i386bare | |
4044 | ;; | |
f6cb0e63 JL |
4045 | i[34567]86-*-isc*) # 80386 running ISC system |
4046 | xm_file="${xm_file} i386/xm-isc.h" | |
4047 | xm_defines="USG SVR3" | |
861bb6c1 | 4048 | case $machine in |
f6cb0e63 | 4049 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
4050 | xmake_file=i386/x-isc3 |
4051 | ;; | |
4052 | *) | |
4053 | xmake_file=i386/x-isc | |
4054 | ;; | |
4055 | esac | |
75bffa71 | 4056 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
4057 | then |
4058 | tm_file=i386/iscdbx.h | |
4059 | tmake_file=i386/t-svr3dbx | |
4060 | extra_parts="svr3.ifile svr3z.ifile" | |
4061 | else | |
4062 | tm_file=i386/isccoff.h | |
4063 | tmake_file=i386/t-crtstuff | |
4064 | extra_parts="crtbegin.o crtend.o" | |
4065 | fi | |
4066 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4067 | ;; |
f6cb0e63 | 4068 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 4069 | # pre BFD linkers |
861bb6c1 JL |
4070 | xmake_file=x-linux-aout |
4071 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4072 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 4073 | gnu_ld=yes |
af39d8f5 | 4074 | float_format=i386 |
861bb6c1 | 4075 | ;; |
f6cb0e63 | 4076 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
4077 | xmake_file=x-linux-aout |
4078 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4079 | tm_file=i386/linux-aout.h | |
861bb6c1 | 4080 | gnu_ld=yes |
af39d8f5 | 4081 | float_format=i386 |
861bb6c1 | 4082 | ;; |
f6cb0e63 | 4083 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4084 | # GNU/Linux C library 5 |
4085 | xmake_file=x-linux | |
4086 | tm_file=i386/linux.h | |
861bb6c1 JL |
4087 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
4088 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4089 | gnu_ld=yes |
af39d8f5 | 4090 | float_format=i386 |
75bffa71 | 4091 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4092 | thread_file='single' |
4093 | fi | |
4094 | ;; | |
f6cb0e63 | 4095 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4096 | # aka GNU/Linux C library 6 |
4097 | xmake_file=x-linux | |
861bb6c1 JL |
4098 | tm_file=i386/linux.h |
4099 | tmake_file="t-linux i386/t-crtstuff" | |
4100 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4101 | gnu_ld=yes |
af39d8f5 | 4102 | float_format=i386 |
75bffa71 | 4103 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4104 | thread_file='posix' |
4105 | fi | |
4106 | ;; | |
f6cb0e63 | 4107 | i[34567]86-*-gnu*) |
cd9e5e7c | 4108 | float_format=i386 |
f6cb0e63 JL |
4109 | ;; |
4110 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 4111 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 4112 | exit 1 |
861bb6c1 | 4113 | ;; |
f6cb0e63 | 4114 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
4115 | xm_file=i386/xm-djgpp.h |
4116 | tm_file=i386/djgpp.h | |
4117 | tmake_file=i386/t-djgpp | |
4118 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
4119 | gnu_ld=yes |
4120 | gas=yes | |
dedcc399 | 4121 | exeext=.exe |
77d787fa | 4122 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
4123 | target_alias=djgpp |
4124 | ;; | |
4125 | esac | |
861bb6c1 | 4126 | ;; |
f6cb0e63 | 4127 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
4128 | tm_file=i386/moss.h |
4129 | tmake_file=t-libc-ok | |
861bb6c1 JL |
4130 | gnu_ld=yes |
4131 | gas=yes | |
4132 | ;; | |
f6cb0e63 | 4133 | i[34567]86-*-lynxos*) |
75bffa71 | 4134 | if test x$gas = xyes |
861bb6c1 JL |
4135 | then |
4136 | tm_file=i386/lynx.h | |
4137 | else | |
4138 | tm_file=i386/lynx-ng.h | |
4139 | fi | |
4140 | xm_file=i386/xm-lynx.h | |
4141 | tmake_file=i386/t-i386bare | |
4142 | xmake_file=x-lynx | |
4143 | ;; | |
f6cb0e63 | 4144 | i[34567]86-*-mach*) |
861bb6c1 JL |
4145 | tm_file=i386/mach.h |
4146 | # tmake_file=t-libc-ok | |
4147 | use_collect2=yes | |
4148 | ;; | |
f6cb0e63 | 4149 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 4150 | if test x$elf = xyes |
861bb6c1 JL |
4151 | then |
4152 | tm_file=i386/osfelf.h | |
4153 | use_collect2= | |
4154 | else | |
4155 | tm_file=i386/osfrose.h | |
4156 | use_collect2=yes | |
4157 | fi | |
f6cb0e63 | 4158 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
4159 | xmake_file=i386/x-osfrose |
4160 | tmake_file=i386/t-osf | |
4161 | extra_objs=halfpic.o | |
4162 | ;; | |
f6cb0e63 | 4163 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
4164 | cpu_type=i386 |
4165 | xm_file=i386/xm-go32.h | |
4166 | tm_file=i386/go32-rtems.h | |
4167 | tmake_file="i386/t-go32 t-rtems" | |
4168 | ;; | |
0d4ef09c JS |
4169 | i[34567]86-*-rtemscoff*) |
4170 | cpu_type=i386 | |
4171 | tm_file=i386/rtems.h | |
4172 | tmake_file="i386/t-i386bare t-rtems" | |
4173 | ;; | |
d1476635 | 4174 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) |
f5963e61 JL |
4175 | cpu_type=i386 |
4176 | tm_file=i386/rtemself.h | |
d1476635 JS |
4177 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
4178 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
f5963e61 | 4179 | ;; |
f6cb0e63 | 4180 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
2d092ffa | 4181 | xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h" |
f6cb0e63 | 4182 | xm_defines="USG SVR3" |
861bb6c1 | 4183 | xmake_file=i386/x-sco5 |
f6857708 | 4184 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4185 | tm_file=i386/sco5.h |
75bffa71 | 4186 | if test x$gas = xyes |
44bb0e93 RL |
4187 | then |
4188 | tm_file="i386/sco5gas.h ${tm_file}" | |
4189 | tmake_file=i386/t-sco5gas | |
4190 | else | |
4191 | tmake_file=i386/t-sco5 | |
4192 | fi | |
42902a72 | 4193 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 4194 | ;; |
f6cb0e63 JL |
4195 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
4196 | xm_file="${xm_file} i386/xm-sco.h" | |
2d092ffa | 4197 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX" |
861bb6c1 | 4198 | xmake_file=i386/x-sco4 |
861bb6c1 | 4199 | install_headers_dir=install-headers-cpio |
75bffa71 | 4200 | if test x$stabs = xyes |
861bb6c1 JL |
4201 | then |
4202 | tm_file=i386/sco4dbx.h | |
4203 | tmake_file=i386/t-svr3dbx | |
4204 | extra_parts="svr3.ifile svr3z.rfile" | |
4205 | else | |
4206 | tm_file=i386/sco4.h | |
4207 | tmake_file=i386/t-crtstuff | |
4208 | extra_parts="crtbegin.o crtend.o" | |
4209 | fi | |
090164c0 WB |
4210 | # The default EAFS filesystem supports long file names. |
4211 | # Truncating the target makes $host != $target which | |
4212 | # makes gcc think it is doing a cross-compile. | |
4213 | # truncate_target=yes | |
861bb6c1 | 4214 | ;; |
f6cb0e63 | 4215 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
4216 | xm_file=i386/xm-sco.h |
4217 | xmake_file=i386/x-sco | |
861bb6c1 | 4218 | install_headers_dir=install-headers-cpio |
75bffa71 | 4219 | if test x$stabs = xyes |
861bb6c1 JL |
4220 | then |
4221 | tm_file=i386/scodbx.h | |
4222 | tmake_file=i386/t-svr3dbx | |
4223 | extra_parts="svr3.ifile svr3z.rfile" | |
4224 | else | |
4225 | tm_file=i386/sco.h | |
4226 | extra_parts="crtbegin.o crtend.o" | |
4227 | tmake_file=i386/t-crtstuff | |
4228 | fi | |
4229 | truncate_target=yes | |
4230 | ;; | |
f6cb0e63 | 4231 | i[34567]86-*-solaris2*) |
2d092ffa | 4232 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4233 | xm_defines="USG POSIX SMALL_ARG_MAX" |
0c723ada AO |
4234 | tm_file=i386/sol2.h |
4235 | if test x$gas = xyes; then | |
4236 | # Only needed if gas does not support -s | |
4237 | tm_file="i386/sol2gas.h ${tm_file}" | |
861bb6c1 JL |
4238 | fi |
4239 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 4240 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 4241 | xmake_file=x-svr4 |
4a8021dc AO |
4242 | if test x${enable_threads} = x; then |
4243 | enable_threads=$have_pthread_h | |
4244 | if test x${enable_threads} = x; then | |
4245 | enable_threads=$have_thread_h | |
4246 | fi | |
4247 | fi | |
4248 | if test x${enable_threads} = xyes; then | |
4249 | if test x${have_pthread_h} = xyes; then | |
4250 | thread_file='posix' | |
4251 | else | |
861bb6c1 | 4252 | thread_file='solaris' |
4a8021dc | 4253 | fi |
861bb6c1 JL |
4254 | fi |
4255 | ;; | |
f6cb0e63 | 4256 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
2d092ffa | 4257 | xm_file="xm-alloca.h ${xm_file}" |
48a51bf4 | 4258 | xm_defines="USG POSIX" |
87e11b70 | 4259 | tm_file=i386/sysv5.h |
75bffa71 | 4260 | if test x$stabs = xyes |
fe07d4c1 RL |
4261 | then |
4262 | tm_file="${tm_file} dbx.h" | |
4263 | fi | |
4264 | tmake_file=i386/t-crtpic | |
4265 | xmake_file=x-svr4 | |
4266 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
4267 | if test x$enable_threads = xyes; then |
4268 | thread_file='posix' | |
4269 | fi | |
fe07d4c1 | 4270 | ;; |
f6cb0e63 | 4271 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
2d092ffa | 4272 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4273 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 4274 | tm_file=i386/sysv4.h |
75bffa71 | 4275 | if test x$stabs = xyes |
861bb6c1 JL |
4276 | then |
4277 | tm_file="${tm_file} dbx.h" | |
4278 | fi | |
4279 | tmake_file=i386/t-crtpic | |
4280 | xmake_file=x-svr4 | |
4281 | extra_parts="crtbegin.o crtend.o" | |
4282 | ;; | |
112674fa | 4283 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
2d092ffa | 4284 | xm_file="xm-alloca.h ${xm_file}" |
112674fa RL |
4285 | xm_defines="USG POSIX" |
4286 | tm_file=i386/udk.h | |
4287 | tmake_file="i386/t-crtpic i386/t-udk" | |
4288 | xmake_file=x-svr4 | |
4289 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 4290 | install_headers_dir=install-headers-cpio |
112674fa | 4291 | ;; |
f5963e61 JL |
4292 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
4293 | cpu_type=i386 | |
4294 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
4295 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 4296 | if test x$stabs = xyes |
f5963e61 JL |
4297 | then |
4298 | tm_file=i386/osf1elfgdb.h | |
4299 | else | |
4300 | tm_file=i386/osf1elf.h | |
4301 | fi | |
4302 | tmake_file=i386/t-osf1elf | |
4303 | xmake_file=i386/x-osf1elf | |
4304 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4305 | ;; | |
f6cb0e63 JL |
4306 | i[34567]86-*-sysv*) # Intel 80386's running system V |
4307 | xm_defines="USG SVR3" | |
861bb6c1 | 4308 | xmake_file=i386/x-sysv3 |
75bffa71 | 4309 | if test x$gas = xyes |
861bb6c1 | 4310 | then |
75bffa71 | 4311 | if test x$stabs = xyes |
861bb6c1 JL |
4312 | then |
4313 | tm_file=i386/svr3dbx.h | |
4314 | tmake_file=i386/t-svr3dbx | |
4315 | extra_parts="svr3.ifile svr3z.rfile" | |
4316 | else | |
4317 | tm_file=i386/svr3gas.h | |
4318 | extra_parts="crtbegin.o crtend.o" | |
4319 | tmake_file=i386/t-crtstuff | |
4320 | fi | |
4321 | else | |
4322 | tm_file=i386/sysv3.h | |
4323 | extra_parts="crtbegin.o crtend.o" | |
4324 | tmake_file=i386/t-crtstuff | |
4325 | fi | |
4326 | ;; | |
4327 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 4328 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
4329 | tm_file=i386/vsta.h |
4330 | tmake_file=i386/t-vsta | |
4331 | xmake_file=i386/x-vsta | |
4332 | ;; | |
84530511 | 4333 | i[34567]86-*-win32) |
cae21ae8 GN |
4334 | xm_file="${xm_file} i386/xm-cygwin.h" |
4335 | tmake_file=i386/t-cygwin | |
84530511 | 4336 | tm_file=i386/win32.h |
cae21ae8 | 4337 | xmake_file=i386/x-cygwin |
84530511 | 4338 | extra_objs=winnt.o |
75bffa71 | 4339 | if test x$enable_threads = xyes; then |
84530511 SC |
4340 | thread_file='win32' |
4341 | fi | |
4342 | exeext=.exe | |
4343 | ;; | |
cae21ae8 GN |
4344 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
4345 | xm_file="${xm_file} i386/xm-cygwin.h" | |
4346 | tmake_file=i386/t-cygwin | |
4347 | tm_file=i386/cygwin.h | |
4348 | xmake_file=i386/x-cygwin | |
861bb6c1 | 4349 | extra_objs=winnt.o |
75bffa71 | 4350 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4351 | thread_file='win32' |
4352 | fi | |
4353 | exeext=.exe | |
4354 | ;; | |
f6cb0e63 | 4355 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
4356 | tm_file=i386/mingw32.h |
4357 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 4358 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 4359 | extra_objs=winnt.o |
cae21ae8 | 4360 | xmake_file=i386/x-cygwin |
75bffa71 | 4361 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4362 | thread_file='win32' |
4363 | fi | |
4364 | exeext=.exe | |
f6cb0e63 JL |
4365 | case $machine in |
4366 | *mingw32msv*) | |
4367 | ;; | |
4368 | *minwg32crt* | *mingw32*) | |
4369 | tm_file="${tm_file} i386/crtdll.h" | |
4370 | ;; | |
4371 | esac | |
861bb6c1 | 4372 | ;; |
b27d2bd5 MK |
4373 | i[34567]86-*-uwin*) |
4374 | tm_file=i386/uwin.h | |
4375 | xm_file="${xm_file} i386/xm-uwin.h" | |
2d092ffa | 4376 | xm_defines="USG NO_STAB_H" |
b27d2bd5 MK |
4377 | tmake_file="i386/t-cygwin i386/t-uwin" |
4378 | extra_objs=winnt.o | |
4379 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
4380 | if test x$enable_threads = xyes; then |
4381 | thread_file='win32' | |
4382 | fi | |
4383 | exeext=.exe | |
4384 | ;; | |
052dbd9e | 4385 | i[34567]86-*-interix*) |
615c8231 | 4386 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 4387 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
2d092ffa | 4388 | xm_defines="USG" |
052dbd9e MK |
4389 | tmake_file="i386/t-interix" |
4390 | extra_objs=interix.o | |
4391 | xmake_file=x-interix | |
615c8231 | 4392 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
4393 | thread_file='posix' |
4394 | fi | |
615c8231 | 4395 | if test x$stabs = xyes ; then |
052dbd9e MK |
4396 | tm_file="${tm_file} dbxcoff.h" |
4397 | fi | |
4398 | ;; | |
f6cb0e63 | 4399 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
4400 | tm_file=i386/win-nt.h |
4401 | out_file=i386/i386.c | |
f6cb0e63 | 4402 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
4403 | xmake_file=winnt/x-winnt |
4404 | tmake_file=i386/t-winnt | |
4405 | extra_host_objs="winnt.o oldnames.o" | |
4406 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 4407 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4408 | then |
4409 | extra_programs=ld.exe | |
4410 | fi | |
75bffa71 | 4411 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4412 | thread_file='win32' |
4413 | fi | |
4414 | ;; | |
f6cb0e63 | 4415 | i[34567]86-dg-dgux*) |
2d092ffa | 4416 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4417 | xm_defines="USG POSIX" |
861bb6c1 JL |
4418 | out_file=i386/dgux.c |
4419 | tm_file=i386/dgux.h | |
4420 | tmake_file=i386/t-dgux | |
4421 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
4422 | install_headers_dir=install-headers-cpio |
4423 | ;; | |
4424 | i860-alliant-*) # Alliant FX/2800 | |
4425 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 4426 | xm_file="${xm_file}" |
861bb6c1 JL |
4427 | xmake_file=i860/x-fx2800 |
4428 | tmake_file=i860/t-fx2800 | |
4429 | extra_parts="crtbegin.o crtend.o" | |
4430 | ;; | |
4431 | i860-*-bsd*) | |
4432 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 4433 | if test x$gas = xyes |
861bb6c1 JL |
4434 | then |
4435 | tm_file="${tm_file} i860/bsd-gas.h" | |
4436 | fi | |
4437 | use_collect2=yes | |
4438 | ;; | |
4439 | i860-*-mach*) | |
4440 | tm_file="${tm_file} i860/mach.h" | |
4441 | tmake_file=t-libc-ok | |
4442 | ;; | |
4443 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
4444 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 4445 | xm_defines="USG SVR3" |
861bb6c1 | 4446 | tmake_file=t-osf |
861bb6c1 JL |
4447 | ;; |
4448 | i860-*-sysv3*) | |
4449 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 4450 | xm_defines="USG SVR3" |
861bb6c1 JL |
4451 | xmake_file=i860/x-sysv3 |
4452 | extra_parts="crtbegin.o crtend.o" | |
4453 | ;; | |
4454 | i860-*-sysv4*) | |
4455 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 4456 | xm_defines="USG SVR3" |
861bb6c1 JL |
4457 | xmake_file=i860/x-sysv4 |
4458 | tmake_file=t-svr4 | |
4459 | extra_parts="crtbegin.o crtend.o" | |
4460 | ;; | |
4461 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
4462 | tm_file="${tm_file} i960/vx960.h" | |
4463 | tmake_file=i960/t-vxworks960 | |
4464 | use_collect2=yes | |
7cc34889 | 4465 | thread_file='vxworks' |
861bb6c1 | 4466 | ;; |
a0372c94 | 4467 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
4468 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
4469 | tmake_file=i960/t-vxworks960 | |
4470 | use_collect2=yes | |
7cc34889 | 4471 | thread_file='vxworks' |
861bb6c1 JL |
4472 | ;; |
4473 | i960-wrs-vxworks*) | |
4474 | tm_file="${tm_file} i960/vx960.h" | |
4475 | tmake_file=i960/t-vxworks960 | |
4476 | use_collect2=yes | |
7cc34889 | 4477 | thread_file='vxworks' |
861bb6c1 JL |
4478 | ;; |
4479 | i960-*-coff*) | |
4480 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4481 | tmake_file=i960/t-960bare | |
4482 | use_collect2=yes | |
4483 | ;; | |
4484 | i960-*-rtems) | |
4485 | tmake_file="i960/t-960bare t-rtems" | |
4486 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4487 | use_collect2=yes | |
4488 | ;; | |
4489 | i960-*-*) # Default i960 environment. | |
4490 | use_collect2=yes | |
4491 | ;; | |
c65ebc55 JW |
4492 | ia64*-*-elf*) |
4493 | tm_file=ia64/elf.h | |
4494 | tmake_file="ia64/t-ia64" | |
4495 | target_cpu_default="0" | |
4496 | if test x$gas = xyes | |
4497 | then | |
4498 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
4499 | fi | |
4500 | if test x$gnu_ld = xyes | |
4501 | then | |
4502 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
4503 | fi | |
4504 | ;; | |
4505 | ia64*-*-linux*) | |
4506 | tm_file=ia64/linux.h | |
4507 | tmake_file="t-linux ia64/t-ia64" | |
4508 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
4509 | if test x$enable_threads = xyes; then | |
4510 | thread_file='posix' | |
4511 | fi | |
4512 | ;; | |
861bb6c1 JL |
4513 | m32r-*-elf*) |
4514 | extra_parts="crtinit.o crtfini.o" | |
4515 | ;; | |
4516 | m68000-convergent-sysv*) | |
4517 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4518 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4519 | xm_defines=USG | |
861bb6c1 JL |
4520 | use_collect2=yes |
4521 | extra_headers=math-68881.h | |
4522 | ;; | |
4523 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4524 | tm_file=m68k/hp2bsd.h | |
4525 | xmake_file=m68k/x-hp2bsd | |
4526 | use_collect2=yes | |
4527 | extra_headers=math-68881.h | |
4528 | ;; | |
4529 | m68000-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4530 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4531 | xm_defines="USG" |
75bffa71 | 4532 | if test x$gas = xyes |
861bb6c1 JL |
4533 | then |
4534 | xmake_file=m68k/x-hp320g | |
4535 | tm_file=m68k/hp310g.h | |
4536 | else | |
4537 | xmake_file=m68k/x-hp320 | |
4538 | tm_file=m68k/hp310.h | |
4539 | fi | |
861bb6c1 JL |
4540 | install_headers_dir=install-headers-cpio |
4541 | use_collect2=yes | |
4542 | extra_headers=math-68881.h | |
4543 | ;; | |
4544 | m68000-sun-sunos3*) | |
4545 | tm_file=m68k/sun2.h | |
4546 | use_collect2=yes | |
4547 | extra_headers=math-68881.h | |
4548 | ;; | |
4549 | m68000-sun-sunos4*) | |
4550 | tm_file=m68k/sun2o4.h | |
4551 | use_collect2=yes | |
4552 | extra_headers=math-68881.h | |
4553 | ;; | |
4554 | m68000-att-sysv*) | |
f6cb0e63 JL |
4555 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4556 | xm_defines=USG | |
75bffa71 | 4557 | if test x$gas = xyes |
861bb6c1 JL |
4558 | then |
4559 | tm_file=m68k/3b1g.h | |
4560 | else | |
4561 | tm_file=m68k/3b1.h | |
4562 | fi | |
4563 | use_collect2=yes | |
4564 | extra_headers=math-68881.h | |
4565 | ;; | |
4566 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4567 | xm_defines="USG AUX" |
861bb6c1 | 4568 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4569 | install_headers_dir=install-headers-cpio |
4570 | extra_headers=math-68881.h | |
4571 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4572 | tm_file= | |
75bffa71 | 4573 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4574 | then |
4575 | tm_file="${tm_file} m68k/auxgld.h" | |
4576 | else | |
4577 | tm_file="${tm_file} m68k/auxld.h" | |
4578 | fi | |
75bffa71 | 4579 | if test "$gas" = yes |
861bb6c1 JL |
4580 | then |
4581 | tm_file="${tm_file} m68k/auxgas.h" | |
4582 | else | |
4583 | tm_file="${tm_file} m68k/auxas.h" | |
4584 | fi | |
4585 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4586 | float_format=m68k |
861bb6c1 JL |
4587 | ;; |
4588 | m68k-apollo-*) | |
4589 | tm_file=m68k/apollo68.h | |
4590 | xmake_file=m68k/x-apollo68 | |
4591 | use_collect2=yes | |
4592 | extra_headers=math-68881.h | |
0a95276e | 4593 | float_format=m68k |
861bb6c1 JL |
4594 | ;; |
4595 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4596 | if test x$gas = xyes |
861bb6c1 JL |
4597 | then |
4598 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4599 | xm_defines=USG |
861bb6c1 JL |
4600 | else |
4601 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4602 | exit 1 | |
4603 | fi | |
4604 | extra_headers=math-68881.h | |
4605 | ;; | |
4606 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4607 | if test x$gas = xyes |
861bb6c1 | 4608 | then |
75bffa71 | 4609 | if test x$stabs = xyes |
861bb6c1 JL |
4610 | then |
4611 | tm_file=m68k/dpx2cdbx.h | |
4612 | else | |
4613 | tm_file=m68k/dpx2g.h | |
4614 | fi | |
4615 | else | |
4616 | tm_file=m68k/dpx2.h | |
4617 | fi | |
f6cb0e63 JL |
4618 | xm_file="xm-alloca.h ${xm_file}" |
4619 | xm_defines=USG | |
861bb6c1 JL |
4620 | xmake_file=m68k/x-dpx2 |
4621 | use_collect2=yes | |
4622 | extra_headers=math-68881.h | |
4623 | ;; | |
4624 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4625 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4626 | xm_file="xm-alloca.h ${xm_file}" |
4627 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4628 | tmake_file=t-svr4 |
4629 | extra_parts="crtbegin.o crtend.o" | |
4630 | extra_headers=math-68881.h | |
0a95276e | 4631 | float_format=m68k |
861bb6c1 JL |
4632 | ;; |
4633 | m68k-motorola-sysv*) | |
4634 | tm_file=m68k/mot3300.h | |
f6cb0e63 | 4635 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
75bffa71 | 4636 | if test x$gas = xyes |
861bb6c1 JL |
4637 | then |
4638 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4639 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4640 | then |
4641 | tmake_file=m68k/t-mot3300-gald | |
4642 | else | |
4643 | tmake_file=m68k/t-mot3300-gas | |
4644 | use_collect2=yes | |
4645 | fi | |
4646 | else | |
4647 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4648 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4649 | then |
4650 | tmake_file=m68k/t-mot3300-gld | |
4651 | else | |
4652 | tmake_file=m68k/t-mot3300 | |
4653 | use_collect2=yes | |
4654 | fi | |
4655 | fi | |
4656 | gdb_needs_out_file_path=yes | |
4657 | extra_parts="crt0.o mcrt0.o" | |
4658 | extra_headers=math-68881.h | |
0a95276e | 4659 | float_format=m68k |
861bb6c1 JL |
4660 | ;; |
4661 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4662 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4663 | xm_defines="USG SVR3" |
861bb6c1 JL |
4664 | xmake_file=m68k/x-tower |
4665 | extra_parts="crtbegin.o crtend.o" | |
4666 | extra_headers=math-68881.h | |
4667 | ;; | |
4668 | m68k-plexus-sysv*) | |
4669 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4670 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4671 | xm_defines=USG | |
861bb6c1 JL |
4672 | use_collect2=yes |
4673 | extra_headers=math-68881.h | |
4674 | ;; | |
4675 | m68k-tti-*) | |
4676 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4677 | xm_file="xm-alloca.h ${xm_file}" |
4678 | xm_defines=USG | |
861bb6c1 JL |
4679 | extra_headers=math-68881.h |
4680 | ;; | |
4681 | m68k-crds-unos*) | |
f6cb0e63 JL |
4682 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4683 | xm_defines="USG unos" | |
861bb6c1 JL |
4684 | xmake_file=m68k/x-crds |
4685 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4686 | use_collect2=yes |
4687 | extra_headers=math-68881.h | |
4688 | ;; | |
4689 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4690 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4691 | xm_file="xm-alloca.h ${xm_file}" |
4692 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4693 | xmake_file=m68k/x-amix |
4694 | tmake_file=t-svr4 | |
4695 | extra_parts="crtbegin.o crtend.o" | |
4696 | extra_headers=math-68881.h | |
0a95276e | 4697 | float_format=m68k |
861bb6c1 JL |
4698 | ;; |
4699 | m68k-ccur-rtu) | |
4700 | tm_file=m68k/ccur-GAS.h | |
4701 | xmake_file=m68k/x-ccur | |
4702 | extra_headers=math-68881.h | |
4703 | use_collect2=yes | |
0a95276e | 4704 | float_format=m68k |
861bb6c1 JL |
4705 | ;; |
4706 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4707 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 4708 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
4709 | use_collect2=yes |
4710 | extra_headers=math-68881.h | |
0a95276e | 4711 | float_format=m68k |
861bb6c1 JL |
4712 | ;; |
4713 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4714 | tm_file=m68k/hp3bsd.h | |
4715 | use_collect2=yes | |
4716 | extra_headers=math-68881.h | |
0a95276e | 4717 | float_format=m68k |
861bb6c1 JL |
4718 | ;; |
4719 | m68k-isi-bsd*) | |
75bffa71 | 4720 | if test x$with_fp = xno |
861bb6c1 JL |
4721 | then |
4722 | tm_file=m68k/isi-nfp.h | |
4723 | else | |
4724 | tm_file=m68k/isi.h | |
0a95276e | 4725 | float_format=m68k |
861bb6c1 JL |
4726 | fi |
4727 | use_collect2=yes | |
4728 | extra_headers=math-68881.h | |
4729 | ;; | |
4730 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
1a87de8d | 4731 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4732 | xm_defines="USG" |
75bffa71 | 4733 | if test x$gas = xyes |
861bb6c1 JL |
4734 | then |
4735 | xmake_file=m68k/x-hp320g | |
4736 | tm_file=m68k/hp320g.h | |
4737 | else | |
4738 | xmake_file=m68k/x-hp320 | |
4739 | tm_file=m68k/hpux7.h | |
4740 | fi | |
861bb6c1 JL |
4741 | install_headers_dir=install-headers-cpio |
4742 | use_collect2=yes | |
4743 | extra_headers=math-68881.h | |
0a95276e | 4744 | float_format=m68k |
861bb6c1 JL |
4745 | ;; |
4746 | m68k-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4747 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4748 | xm_defines="USG" |
75bffa71 | 4749 | if test x$gas = xyes |
861bb6c1 JL |
4750 | then |
4751 | xmake_file=m68k/x-hp320g | |
4752 | tm_file=m68k/hp320g.h | |
4753 | else | |
4754 | xmake_file=m68k/x-hp320 | |
4755 | tm_file=m68k/hp320.h | |
4756 | fi | |
861bb6c1 JL |
4757 | install_headers_dir=install-headers-cpio |
4758 | use_collect2=yes | |
4759 | extra_headers=math-68881.h | |
0a95276e | 4760 | float_format=m68k |
861bb6c1 JL |
4761 | ;; |
4762 | m68k-sun-mach*) | |
4763 | tm_file=m68k/sun3mach.h | |
4764 | use_collect2=yes | |
4765 | extra_headers=math-68881.h | |
0a95276e | 4766 | float_format=m68k |
861bb6c1 JL |
4767 | ;; |
4768 | m68k-sony-newsos3*) | |
75bffa71 | 4769 | if test x$gas = xyes |
861bb6c1 JL |
4770 | then |
4771 | tm_file=m68k/news3gas.h | |
4772 | else | |
4773 | tm_file=m68k/news3.h | |
4774 | fi | |
4775 | use_collect2=yes | |
4776 | extra_headers=math-68881.h | |
0a95276e | 4777 | float_format=m68k |
861bb6c1 JL |
4778 | ;; |
4779 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4780 | if test x$gas = xyes |
861bb6c1 JL |
4781 | then |
4782 | tm_file=m68k/newsgas.h | |
4783 | else | |
4784 | tm_file=m68k/news.h | |
4785 | fi | |
4786 | use_collect2=yes | |
4787 | extra_headers=math-68881.h | |
0a95276e | 4788 | float_format=m68k |
861bb6c1 JL |
4789 | ;; |
4790 | m68k-next-nextstep2*) | |
4791 | tm_file=m68k/next21.h | |
f6cb0e63 | 4792 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4793 | tmake_file=m68k/t-next |
4794 | xmake_file=m68k/x-next | |
4795 | extra_objs=nextstep.o | |
4796 | extra_headers=math-68881.h | |
4797 | use_collect2=yes | |
0a95276e | 4798 | float_format=m68k |
861bb6c1 | 4799 | ;; |
016cebc3 | 4800 | m68k-next-nextstep[34]*) |
861bb6c1 | 4801 | tm_file=m68k/next.h |
f6cb0e63 | 4802 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4803 | tmake_file=m68k/t-next |
4804 | xmake_file=m68k/x-next | |
4805 | extra_objs=nextstep.o | |
750930c1 | 4806 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4807 | extra_headers=math-68881.h |
0a95276e | 4808 | float_format=m68k |
75bffa71 | 4809 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4810 | thread_file='mach' |
4811 | fi | |
4812 | ;; | |
4813 | m68k-sun-sunos3*) | |
75bffa71 | 4814 | if test x$with_fp = xno |
861bb6c1 JL |
4815 | then |
4816 | tm_file=m68k/sun3n3.h | |
4817 | else | |
4818 | tm_file=m68k/sun3o3.h | |
0a95276e | 4819 | float_format=m68k |
861bb6c1 JL |
4820 | fi |
4821 | use_collect2=yes | |
4822 | extra_headers=math-68881.h | |
4823 | ;; | |
4824 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4825 | if test x$with_fp = xno |
861bb6c1 JL |
4826 | then |
4827 | tm_file=m68k/sun3n.h | |
4828 | else | |
4829 | tm_file=m68k/sun3.h | |
0a95276e | 4830 | float_format=m68k |
861bb6c1 | 4831 | fi |
861bb6c1 JL |
4832 | use_collect2=yes |
4833 | extra_headers=math-68881.h | |
4834 | ;; | |
4835 | m68k-wrs-vxworks*) | |
4836 | tm_file=m68k/vxm68k.h | |
4837 | tmake_file=m68k/t-vxworks68 | |
4838 | extra_headers=math-68881.h | |
7cc34889 | 4839 | thread_file='vxworks' |
0a95276e | 4840 | float_format=m68k |
861bb6c1 JL |
4841 | ;; |
4842 | m68k-*-aout*) | |
4843 | tmake_file=m68k/t-m68kbare | |
4844 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4845 | extra_headers=math-68881.h | |
0a95276e | 4846 | float_format=m68k |
861bb6c1 JL |
4847 | ;; |
4848 | m68k-*-coff*) | |
4849 | tmake_file=m68k/t-m68kbare | |
4850 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4851 | extra_headers=math-68881.h | |
0a95276e | 4852 | float_format=m68k |
861bb6c1 | 4853 | ;; |
d1be3be3 | 4854 | m68020-*-elf* | m68k-*-elf*) |
7aae67a2 | 4855 | tm_file="m68k/m68020-elf.h" |
d1be3be3 JW |
4856 | xm_file=m68k/xm-m68kv.h |
4857 | tmake_file=m68k/t-m68kelf | |
4858 | header_files=math-68881.h | |
4859 | ;; | |
861bb6c1 | 4860 | m68k-*-lynxos*) |
75bffa71 | 4861 | if test x$gas = xyes |
861bb6c1 JL |
4862 | then |
4863 | tm_file=m68k/lynx.h | |
4864 | else | |
4865 | tm_file=m68k/lynx-ng.h | |
4866 | fi | |
4867 | xm_file=m68k/xm-lynx.h | |
4868 | xmake_file=x-lynx | |
4869 | tmake_file=m68k/t-lynx | |
4870 | extra_headers=math-68881.h | |
0a95276e | 4871 | float_format=m68k |
861bb6c1 | 4872 | ;; |
58600d24 | 4873 | m68k*-*-netbsd*) |
861bb6c1 | 4874 | tm_file=m68k/netbsd.h |
861bb6c1 | 4875 | tmake_file=t-netbsd |
0a95276e | 4876 | float_format=m68k |
ed4acb3b | 4877 | use_collect2=yes |
861bb6c1 | 4878 | ;; |
1b4a979b ME |
4879 | m68k*-*-openbsd*) |
4880 | float_format=m68k | |
4881 | # we need collect2 until our bug is fixed... | |
4882 | use_collect2=yes | |
4883 | ;; | |
861bb6c1 | 4884 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4885 | xm_file="xm-alloca.h ${xm_file}" |
4886 | xm_defines=USG | |
861bb6c1 JL |
4887 | xmake_file=m68k/x-m68kv |
4888 | extra_parts="crtbegin.o crtend.o" | |
4889 | extra_headers=math-68881.h | |
0a95276e | 4890 | float_format=m68k |
861bb6c1 JL |
4891 | ;; |
4892 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4893 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4894 | xm_file="xm-alloca.h ${xm_file}" |
4895 | xm_defines=USG | |
861bb6c1 JL |
4896 | tmake_file=t-svr4 |
4897 | extra_parts="crtbegin.o crtend.o" | |
4898 | extra_headers=math-68881.h | |
0a95276e | 4899 | float_format=m68k |
861bb6c1 | 4900 | ;; |
956d6950 | 4901 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4902 | # with a.out format |
861bb6c1 JL |
4903 | xmake_file=x-linux |
4904 | tm_file=m68k/linux-aout.h | |
4905 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 4906 | extra_headers=math-68881.h |
0a95276e | 4907 | float_format=m68k |
861bb6c1 JL |
4908 | gnu_ld=yes |
4909 | ;; | |
956d6950 | 4910 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4911 | # with ELF format using the |
4912 | # GNU/Linux C library 5 | |
4913 | xmake_file=x-linux | |
861bb6c1 JL |
4914 | tm_file=m68k/linux.h |
4915 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4916 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4917 | extra_headers=math-68881.h |
0a95276e | 4918 | float_format=m68k |
861bb6c1 JL |
4919 | gnu_ld=yes |
4920 | ;; | |
956d6950 | 4921 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4922 | # with ELF format using glibc 2 |
4923 | # aka the GNU/Linux C library 6. | |
4924 | xmake_file=x-linux | |
861bb6c1 JL |
4925 | tm_file=m68k/linux.h |
4926 | tmake_file="t-linux m68k/t-linux" | |
4927 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4928 | extra_headers=math-68881.h |
0a95276e | 4929 | float_format=m68k |
861bb6c1 | 4930 | gnu_ld=yes |
75bffa71 | 4931 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4932 | thread_file='posix' |
4933 | fi | |
4934 | ;; | |
4935 | m68k-*-psos*) | |
4936 | tmake_file=m68k/t-m68kbare | |
4937 | tm_file=m68k/m68k-psos.h | |
4938 | extra_headers=math-68881.h | |
0a95276e | 4939 | float_format=m68k |
861bb6c1 | 4940 | ;; |
6e5138f0 | 4941 | m68k-*-rtemscoff*) |
861bb6c1 JL |
4942 | tmake_file="m68k/t-m68kbare t-rtems" |
4943 | tm_file=m68k/rtems.h | |
4944 | extra_headers=math-68881.h | |
0a95276e | 4945 | float_format=m68k |
861bb6c1 | 4946 | ;; |
6e5138f0 | 4947 | m68k-*-rtemself*|m68k-*-rtems*) |
d1476635 JS |
4948 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" |
4949 | tm_file=m68k/rtemself.h | |
4950 | extra_headers=math-68881.h | |
4951 | float_format=m68k | |
4952 | ;; | |
861bb6c1 JL |
4953 | m88k-dg-dgux*) |
4954 | case $machine in | |
4955 | m88k-dg-dguxbcs*) | |
4956 | tm_file=m88k/dguxbcs.h | |
4957 | tmake_file=m88k/t-dguxbcs | |
4958 | ;; | |
4959 | *) | |
4960 | tm_file=m88k/dgux.h | |
4961 | tmake_file=m88k/t-dgux | |
4962 | ;; | |
4963 | esac | |
4964 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 4965 | xmake_file=m88k/x-dgux |
75bffa71 | 4966 | if test x$gas = xyes |
861bb6c1 JL |
4967 | then |
4968 | tmake_file=m88k/t-dgux-gas | |
4969 | fi | |
861bb6c1 JL |
4970 | ;; |
4971 | m88k-dolphin-sysv3*) | |
4972 | tm_file=m88k/dolph.h | |
4973 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4974 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4975 | xmake_file=m88k/x-dolph |
75bffa71 | 4976 | if test x$gas = xyes |
861bb6c1 JL |
4977 | then |
4978 | tmake_file=m88k/t-m88k-gas | |
4979 | fi | |
4980 | ;; | |
4981 | m88k-tektronix-sysv3) | |
4982 | tm_file=m88k/tekXD88.h | |
4983 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4984 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4985 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 4986 | if test x$gas = xyes |
861bb6c1 JL |
4987 | then |
4988 | tmake_file=m88k/t-m88k-gas | |
4989 | fi | |
4990 | ;; | |
4991 | m88k-*-aout*) | |
4992 | tm_file=m88k/m88k-aout.h | |
4993 | ;; | |
4994 | m88k-*-coff*) | |
4995 | tm_file=m88k/m88k-coff.h | |
4996 | tmake_file=m88k/t-bug | |
4997 | ;; | |
4998 | m88k-*-luna*) | |
4999 | tm_file=m88k/luna.h | |
5000 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 5001 | if test x$gas = xyes |
861bb6c1 JL |
5002 | then |
5003 | tmake_file=m88k/t-luna-gas | |
5004 | else | |
5005 | tmake_file=m88k/t-luna | |
5006 | fi | |
5007 | ;; | |
1b4a979b ME |
5008 | m88k-*-openbsd*) |
5009 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
5010 | ;; | |
861bb6c1 JL |
5011 | m88k-*-sysv3*) |
5012 | tm_file=m88k/sysv3.h | |
5013 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5014 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5015 | xmake_file=m88k/x-sysv3 |
75bffa71 | 5016 | if test x$gas = xyes |
861bb6c1 JL |
5017 | then |
5018 | tmake_file=m88k/t-m88k-gas | |
5019 | fi | |
5020 | ;; | |
5021 | m88k-*-sysv4*) | |
5022 | tm_file=m88k/sysv4.h | |
5023 | extra_parts="crtbegin.o crtend.o" | |
5024 | xmake_file=m88k/x-sysv4 | |
5025 | tmake_file=m88k/t-sysv4 | |
5026 | ;; | |
789a3090 NC |
5027 | mcore-*-elf) |
5028 | tm_file=mcore/mcore-elf.h | |
5029 | tmake_file=mcore/t-mcore | |
5030 | ;; | |
5031 | mcore-*-pe*) | |
5032 | tm_file=mcore/mcore-pe.h | |
5033 | tmake_file=mcore/t-mcore-pe | |
5034 | ;; | |
861bb6c1 | 5035 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 |
9b5c756a JL |
5036 | if test "x$gnu_ld" = xyes |
5037 | then | |
5038 | tm_file="mips/iris6.h mips/iris6gld.h" | |
9b5c756a JL |
5039 | else |
5040 | tm_file=mips/iris6.h | |
9b5c756a | 5041 | fi |
30f08b39 | 5042 | tmake_file=mips/t-iris6 |
861bb6c1 | 5043 | xm_file=mips/xm-iris6.h |
861bb6c1 | 5044 | xmake_file=mips/x-iris6 |
04069e5c | 5045 | # if test x$enable_threads = xyes; then |
6e148807 | 5046 | # thread_file='irix' |
04069e5c | 5047 | # fi |
861bb6c1 | 5048 | ;; |
98bd9f0f | 5049 | mips-wrs-vxworks) |
7aae67a2 | 5050 | tm_file="mips/elf.h mips/vxworks.h" |
98bd9f0f DB |
5051 | tmake_file=mips/t-ecoff |
5052 | gas=yes | |
5053 | gnu_ld=yes | |
5054 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 5055 | thread_file='vxworks' |
98bd9f0f | 5056 | ;; |
861bb6c1 | 5057 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 5058 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
5059 | xm_defines=USG |
5060 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5061 | xmake_file=mips/x-iris |
5062 | tmake_file=mips/t-cross64 | |
5063 | # See comment in mips/iris[56].h files. | |
5064 | use_collect2=yes | |
04069e5c | 5065 | # if test x$enable_threads = xyes; then |
6e148807 | 5066 | # thread_file='irix' |
04069e5c | 5067 | # fi |
861bb6c1 JL |
5068 | ;; |
5069 | mips-sni-sysv4) | |
75bffa71 | 5070 | if test x$gas = xyes |
861bb6c1 | 5071 | then |
75bffa71 | 5072 | if test x$stabs = xyes |
861bb6c1 JL |
5073 | then |
5074 | tm_file=mips/iris5gdb.h | |
5075 | else | |
f6cb0e63 | 5076 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
5077 | fi |
5078 | else | |
5079 | tm_file=mips/sni-svr4.h | |
5080 | fi | |
f6cb0e63 | 5081 | xm_defines=USG |
861bb6c1 JL |
5082 | xmake_file=mips/x-sni-svr4 |
5083 | tmake_file=mips/t-mips-gas | |
75bffa71 | 5084 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5085 | then |
5086 | use_collect2=yes | |
5087 | fi | |
861bb6c1 JL |
5088 | ;; |
5089 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 5090 | if test x$gas = xyes |
861bb6c1 | 5091 | then |
f6cb0e63 | 5092 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 5093 | if test x$stabs = xyes |
861bb6c1 JL |
5094 | then |
5095 | tm_file="${tm_file} dbx.h" | |
5096 | fi | |
5097 | else | |
5098 | tm_file=mips/iris5.h | |
5099 | fi | |
74c55ab0 JW |
5100 | xm_defines=USG |
5101 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5102 | xmake_file=mips/x-iris |
5103 | # mips-tfile doesn't work yet | |
5104 | tmake_file=mips/t-mips-gas | |
5105 | # See comment in mips/iris5.h file. | |
5106 | use_collect2=yes | |
04069e5c | 5107 | # if test x$enable_threads = xyes; then |
6e148807 | 5108 | # thread_file='irix' |
04069e5c | 5109 | # fi |
861bb6c1 JL |
5110 | ;; |
5111 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 5112 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5113 | if test x$stabs = xyes; then |
861bb6c1 JL |
5114 | tm_file="${tm_file} dbx.h" |
5115 | fi | |
f6cb0e63 | 5116 | xm_defines=USG |
861bb6c1 | 5117 | xmake_file=mips/x-iris |
75bffa71 | 5118 | if test x$gas = xyes |
861bb6c1 JL |
5119 | then |
5120 | tmake_file=mips/t-mips-gas | |
5121 | else | |
5122 | extra_passes="mips-tfile mips-tdump" | |
5123 | fi | |
75bffa71 | 5124 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5125 | then |
5126 | use_collect2=yes | |
5127 | fi | |
04069e5c | 5128 | # if test x$enable_threads = xyes; then |
6e148807 | 5129 | # thread_file='irix' |
04069e5c | 5130 | # fi |
861bb6c1 JL |
5131 | ;; |
5132 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 5133 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5134 | if test x$stabs = xyes; then |
861bb6c1 JL |
5135 | tm_file="${tm_file} dbx.h" |
5136 | fi | |
f6cb0e63 | 5137 | xm_defines=USG |
861bb6c1 | 5138 | xmake_file=mips/x-iris |
75bffa71 | 5139 | if test x$gas = xyes |
861bb6c1 JL |
5140 | then |
5141 | tmake_file=mips/t-mips-gas | |
5142 | else | |
5143 | extra_passes="mips-tfile mips-tdump" | |
5144 | fi | |
75bffa71 | 5145 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5146 | then |
5147 | use_collect2=yes | |
5148 | fi | |
04069e5c | 5149 | # if test x$enable_threads = xyes; then |
6e148807 | 5150 | # thread_file='irix' |
04069e5c | 5151 | # fi |
861bb6c1 JL |
5152 | ;; |
5153 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 5154 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 5155 | if test x$stabs = xyes; then |
861bb6c1 JL |
5156 | tm_file="${tm_file} dbx.h" |
5157 | fi | |
f6cb0e63 | 5158 | xm_defines=USG |
861bb6c1 | 5159 | xmake_file=mips/x-iris3 |
75bffa71 | 5160 | if test x$gas = xyes |
861bb6c1 JL |
5161 | then |
5162 | tmake_file=mips/t-mips-gas | |
5163 | else | |
5164 | extra_passes="mips-tfile mips-tdump" | |
5165 | fi | |
75bffa71 | 5166 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5167 | then |
5168 | use_collect2=yes | |
5169 | fi | |
5170 | ;; | |
5171 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 5172 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
5173 | xmake_file=mips/x-osfrose |
5174 | tmake_file=mips/t-osfrose | |
5175 | extra_objs=halfpic.o | |
5176 | use_collect2=yes | |
5177 | ;; | |
5178 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
5179 | tm_file=mips/dec-osf1.h | |
75bffa71 | 5180 | if test x$stabs = xyes; then |
861bb6c1 JL |
5181 | tm_file="${tm_file} dbx.h" |
5182 | fi | |
5183 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 5184 | if test x$gas = xyes |
861bb6c1 JL |
5185 | then |
5186 | tmake_file=mips/t-mips-gas | |
5187 | else | |
5188 | tmake_file=mips/t-ultrix | |
5189 | extra_passes="mips-tfile mips-tdump" | |
5190 | fi | |
75bffa71 | 5191 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5192 | then |
5193 | use_collect2=yes | |
5194 | fi | |
5195 | ;; | |
5196 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
5197 | tm_file=mips/dec-bsd.h | |
75bffa71 | 5198 | if test x$gas = xyes |
861bb6c1 JL |
5199 | then |
5200 | tmake_file=mips/t-mips-gas | |
5201 | else | |
5202 | tmake_file=mips/t-ultrix | |
5203 | extra_passes="mips-tfile mips-tdump" | |
5204 | fi | |
75bffa71 | 5205 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5206 | then |
5207 | use_collect2=yes | |
5208 | fi | |
5209 | ;; | |
58600d24 | 5210 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 5211 | tm_file=mips/netbsd.h |
be1ed94f | 5212 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5213 | tmake_file=t-netbsd |
861bb6c1 | 5214 | ;; |
54953b66 | 5215 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 | 5216 | xmake_file=x-linux |
54953b66 UD |
5217 | case $machine in |
5218 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
5219 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
5220 | esac | |
e86e6730 | 5221 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
18cae839 RL |
5222 | gnu_ld=yes |
5223 | gas=yes | |
e86e6730 AJ |
5224 | if test x$enable_threads = xyes; then |
5225 | thread_file='posix' | |
5226 | fi | |
18cae839 | 5227 | ;; |
1b4a979b ME |
5228 | mips*el-*-openbsd*) # mips little endian |
5229 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1b4a979b ME |
5230 | ;; |
5231 | mips*-*-openbsd*) # mips big endian | |
5232 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
9e28024a | 5233 | tm_file="mips/openbsd-be.h ${tm_file}" |
1b4a979b | 5234 | ;; |
861bb6c1 | 5235 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 5236 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 5237 | if test x$stabs = xyes; then |
861bb6c1 JL |
5238 | tm_file="${tm_file} dbx.h" |
5239 | fi | |
75bffa71 | 5240 | if test x$gas = xyes |
861bb6c1 JL |
5241 | then |
5242 | tmake_file=mips/t-mips-gas | |
5243 | else | |
5244 | extra_passes="mips-tfile mips-tdump" | |
5245 | fi | |
75bffa71 | 5246 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5247 | then |
5248 | use_collect2=yes | |
5249 | fi | |
5250 | xmake_file=mips/x-sony | |
5251 | ;; | |
5252 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
5253 | # That is based on svr4. | |
5254 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 5255 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 5256 | if test x$stabs = xyes; then |
861bb6c1 JL |
5257 | tm_file="${tm_file} dbx.h" |
5258 | fi | |
f6cb0e63 | 5259 | xm_defines=USG |
75bffa71 | 5260 | if test x$gas = xyes |
861bb6c1 JL |
5261 | then |
5262 | tmake_file=mips/t-mips-gas | |
5263 | else | |
5264 | extra_passes="mips-tfile mips-tdump" | |
5265 | fi | |
75bffa71 | 5266 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5267 | then |
5268 | use_collect2=yes | |
5269 | fi | |
5270 | ;; | |
5271 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 5272 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 5273 | if test x$stabs = xyes; then |
861bb6c1 JL |
5274 | tm_file="${tm_file} dbx.h" |
5275 | fi | |
f6cb0e63 | 5276 | xm_defines=USG |
861bb6c1 | 5277 | xmake_file=mips/x-sysv |
75bffa71 | 5278 | if test x$gas = xyes |
861bb6c1 JL |
5279 | then |
5280 | tmake_file=mips/t-mips-gas | |
5281 | extra_parts="crtbegin.o crtend.o" | |
5282 | else | |
5283 | tmake_file=mips/t-mips | |
5284 | extra_passes="mips-tfile mips-tdump" | |
5285 | fi | |
75bffa71 | 5286 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5287 | then |
5288 | use_collect2=yes | |
5289 | fi | |
861bb6c1 JL |
5290 | ;; |
5291 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 5292 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 5293 | if test x$stabs = xyes; then |
861bb6c1 JL |
5294 | tm_file="${tm_file} dbx.h" |
5295 | fi | |
5296 | xmake_file=mips/x-ultrix | |
75bffa71 | 5297 | if test x$gas = xyes |
861bb6c1 JL |
5298 | then |
5299 | tmake_file=mips/t-mips-gas | |
5300 | else | |
5301 | tmake_file=mips/t-ultrix | |
5302 | extra_passes="mips-tfile mips-tdump" | |
5303 | fi | |
75bffa71 | 5304 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5305 | then |
5306 | use_collect2=yes | |
5307 | fi | |
5308 | ;; | |
5309 | mips-*-riscos[56789]bsd*) | |
5310 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 5311 | if test x$stabs = xyes; then |
861bb6c1 JL |
5312 | tm_file="${tm_file} dbx.h" |
5313 | fi | |
75bffa71 | 5314 | if test x$gas = xyes |
861bb6c1 JL |
5315 | then |
5316 | tmake_file=mips/t-bsd-gas | |
5317 | else | |
5318 | tmake_file=mips/t-bsd | |
5319 | extra_passes="mips-tfile mips-tdump" | |
5320 | fi | |
75bffa71 | 5321 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5322 | then |
5323 | use_collect2=yes | |
5324 | fi | |
861bb6c1 JL |
5325 | ;; |
5326 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 5327 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 5328 | if test x$stabs = xyes; then |
861bb6c1 JL |
5329 | tm_file="${tm_file} dbx.h" |
5330 | fi | |
75bffa71 | 5331 | if test x$gas = xyes |
861bb6c1 JL |
5332 | then |
5333 | tmake_file=mips/t-bsd-gas | |
5334 | else | |
5335 | tmake_file=mips/t-bsd | |
5336 | extra_passes="mips-tfile mips-tdump" | |
5337 | fi | |
75bffa71 | 5338 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5339 | then |
5340 | use_collect2=yes | |
5341 | fi | |
861bb6c1 JL |
5342 | ;; |
5343 | mips-*-riscos[56789]sysv4*) | |
5344 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 5345 | if test x$stabs = xyes; then |
861bb6c1 JL |
5346 | tm_file="${tm_file} dbx.h" |
5347 | fi | |
861bb6c1 | 5348 | xmake_file=mips/x-sysv |
75bffa71 | 5349 | if test x$gas = xyes |
861bb6c1 JL |
5350 | then |
5351 | tmake_file=mips/t-svr4-gas | |
5352 | else | |
5353 | tmake_file=mips/t-svr4 | |
5354 | extra_passes="mips-tfile mips-tdump" | |
5355 | fi | |
75bffa71 | 5356 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5357 | then |
5358 | use_collect2=yes | |
5359 | fi | |
861bb6c1 JL |
5360 | ;; |
5361 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 5362 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 5363 | if test x$stabs = xyes; then |
861bb6c1 JL |
5364 | tm_file="${tm_file} dbx.h" |
5365 | fi | |
f6cb0e63 | 5366 | xm_defines=USG |
861bb6c1 | 5367 | xmake_file=mips/x-sysv |
75bffa71 | 5368 | if test x$gas = xyes |
861bb6c1 JL |
5369 | then |
5370 | tmake_file=mips/t-svr4-gas | |
5371 | else | |
5372 | tmake_file=mips/t-svr4 | |
5373 | extra_passes="mips-tfile mips-tdump" | |
5374 | fi | |
75bffa71 | 5375 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5376 | then |
5377 | use_collect2=yes | |
5378 | fi | |
861bb6c1 JL |
5379 | ;; |
5380 | mips-*-riscos[56789]sysv*) | |
5381 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 5382 | if test x$stabs = xyes; then |
861bb6c1 JL |
5383 | tm_file="${tm_file} dbx.h" |
5384 | fi | |
f6cb0e63 | 5385 | xm_defines=USG |
861bb6c1 | 5386 | xmake_file=mips/x-sysv |
75bffa71 | 5387 | if test x$gas = xyes |
861bb6c1 JL |
5388 | then |
5389 | tmake_file=mips/t-svr3-gas | |
5390 | else | |
5391 | tmake_file=mips/t-svr3 | |
5392 | extra_passes="mips-tfile mips-tdump" | |
5393 | fi | |
75bffa71 | 5394 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5395 | then |
5396 | use_collect2=yes | |
5397 | fi | |
861bb6c1 JL |
5398 | ;; |
5399 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 5400 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 5401 | if test x$stabs = xyes; then |
861bb6c1 JL |
5402 | tm_file="${tm_file} dbx.h" |
5403 | fi | |
f6cb0e63 | 5404 | xm_defines=USG |
861bb6c1 | 5405 | xmake_file=mips/x-sysv |
75bffa71 | 5406 | if test x$gas = xyes |
861bb6c1 JL |
5407 | then |
5408 | tmake_file=mips/t-svr3-gas | |
5409 | else | |
5410 | tmake_file=mips/t-svr3 | |
5411 | extra_passes="mips-tfile mips-tdump" | |
5412 | fi | |
75bffa71 | 5413 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5414 | then |
5415 | use_collect2=yes | |
5416 | fi | |
861bb6c1 JL |
5417 | ;; |
5418 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
5419 | tm_file=mips/mips-5.h | |
75bffa71 | 5420 | if test x$stabs = xyes; then |
861bb6c1 JL |
5421 | tm_file="${tm_file} dbx.h" |
5422 | fi | |
75bffa71 | 5423 | if test x$gas = xyes |
861bb6c1 JL |
5424 | then |
5425 | tmake_file=mips/t-mips-gas | |
5426 | else | |
5427 | extra_passes="mips-tfile mips-tdump" | |
5428 | fi | |
75bffa71 | 5429 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5430 | then |
5431 | use_collect2=yes | |
5432 | fi | |
861bb6c1 JL |
5433 | ;; |
5434 | mips-*-gnu*) | |
5435 | ;; | |
5436 | mipsel-*-ecoff*) | |
5437 | tm_file=mips/ecoffl.h | |
75bffa71 | 5438 | if test x$stabs = xyes; then |
861bb6c1 JL |
5439 | tm_file="${tm_file} dbx.h" |
5440 | fi | |
5441 | tmake_file=mips/t-ecoff | |
5442 | ;; | |
5443 | mips-*-ecoff*) | |
1be12a4a | 5444 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 5445 | if test x$stabs = xyes; then |
861bb6c1 JL |
5446 | tm_file="${tm_file} dbx.h" |
5447 | fi | |
5448 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
5449 | ;; |
5450 | mipsel-*-elf*) | |
7aae67a2 | 5451 | tm_file="mips/elfl.h" |
d8265d29 | 5452 | tmake_file=mips/t-elf |
861bb6c1 JL |
5453 | ;; |
5454 | mips-*-elf*) | |
d8265d29 CM |
5455 | tm_file="mips/elf.h" |
5456 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5457 | ;; |
5458 | mips64el-*-elf*) | |
d8265d29 CM |
5459 | tm_file="mips/elfl64.h" |
5460 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5461 | ;; |
5462 | mips64orionel-*-elf*) | |
7aae67a2 | 5463 | tm_file="mips/elforion.h mips/elfl64.h" |
d8265d29 | 5464 | tmake_file=mips/t-elf |
861bb6c1 JL |
5465 | ;; |
5466 | mips64-*-elf*) | |
d8265d29 CM |
5467 | tm_file="mips/elf64.h" |
5468 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5469 | ;; |
5470 | mips64orion-*-elf*) | |
7aae67a2 | 5471 | tm_file="mips/elforion.h mips/elf64.h" |
d8265d29 | 5472 | tmake_file=mips/t-elf |
861bb6c1 JL |
5473 | ;; |
5474 | mips64orion-*-rtems*) | |
6e9856ba | 5475 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
d1476635 | 5476 | tmake_file="mips/t-elf t-rtems" |
861bb6c1 | 5477 | ;; |
e9a25f70 | 5478 | mipstx39el-*-elf*) |
d8265d29 | 5479 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 5480 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
5481 | ;; |
5482 | mipstx39-*-elf*) | |
d8265d29 | 5483 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 5484 | tmake_file=mips/t-r3900 |
e9a25f70 | 5485 | ;; |
861bb6c1 | 5486 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 5487 | if test x$stabs = xyes; then |
861bb6c1 JL |
5488 | tm_file="${tm_file} dbx.h" |
5489 | fi | |
75bffa71 | 5490 | if test x$gas = xyes |
861bb6c1 JL |
5491 | then |
5492 | tmake_file=mips/t-mips-gas | |
5493 | else | |
5494 | extra_passes="mips-tfile mips-tdump" | |
5495 | fi | |
75bffa71 | 5496 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5497 | then |
5498 | use_collect2=yes | |
5499 | fi | |
5500 | ;; | |
5501 | mn10200-*-*) | |
5e3c02a8 | 5502 | float_format=i32 |
861bb6c1 JL |
5503 | cpu_type=mn10200 |
5504 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 5505 | if test x$stabs = xyes |
861bb6c1 JL |
5506 | then |
5507 | tm_file="${tm_file} dbx.h" | |
5508 | fi | |
5509 | use_collect2=no | |
5510 | ;; | |
5511 | mn10300-*-*) | |
5512 | cpu_type=mn10300 | |
5513 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 5514 | if test x$stabs = xyes |
861bb6c1 JL |
5515 | then |
5516 | tm_file="${tm_file} dbx.h" | |
5517 | fi | |
5518 | use_collect2=no | |
5519 | ;; | |
5520 | ns32k-encore-bsd*) | |
5521 | tm_file=ns32k/encore.h | |
5522 | use_collect2=yes | |
5523 | ;; | |
5524 | ns32k-sequent-bsd*) | |
5525 | tm_file=ns32k/sequent.h | |
5526 | use_collect2=yes | |
5527 | ;; | |
5528 | ns32k-tek6100-bsd*) | |
5529 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
5530 | use_collect2=yes |
5531 | ;; | |
5532 | ns32k-tek6200-bsd*) | |
5533 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5534 | use_collect2=yes |
5535 | ;; | |
5536 | # This has not been updated to GCC 2. | |
5537 | # ns32k-ns-genix*) | |
f6cb0e63 | 5538 | # xm_defines=USG |
861bb6c1 JL |
5539 | # xmake_file=ns32k/x-genix |
5540 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5541 | # use_collect2=yes |
5542 | # ;; | |
5543 | ns32k-merlin-*) | |
5544 | tm_file=ns32k/merlin.h | |
5545 | use_collect2=yes | |
5546 | ;; | |
5547 | ns32k-pc532-mach*) | |
5548 | tm_file=ns32k/pc532-mach.h | |
5549 | use_collect2=yes | |
5550 | ;; | |
5551 | ns32k-pc532-minix*) | |
5552 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5553 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5554 | xm_defines=USG | |
861bb6c1 JL |
5555 | use_collect2=yes |
5556 | ;; | |
58600d24 | 5557 | ns32k-*-netbsd*) |
861bb6c1 | 5558 | tm_file=ns32k/netbsd.h |
641d4216 | 5559 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5560 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5561 | tmake_file=t-netbsd |
ed4acb3b | 5562 | use_collect2=yes |
861bb6c1 JL |
5563 | ;; |
5564 | pdp11-*-bsd) | |
5565 | tm_file="${tm_file} pdp11/2bsd.h" | |
5566 | ;; | |
5567 | pdp11-*-*) | |
5568 | ;; | |
d48120fe DC |
5569 | avr-*-*) |
5570 | ;; | |
1b4a979b ME |
5571 | ns32k-*-openbsd*) |
5572 | # Nothing special | |
5573 | ;; | |
7a3842b3 RH |
5574 | # This has not been updated to GCC 2. |
5575 | # pyramid-*-*) | |
5576 | # cpu_type=pyr | |
5577 | # xmake_file=pyr/x-pyr | |
5578 | # use_collect2=yes | |
5579 | # ;; | |
1b992148 SC |
5580 | |
5581 | pj*-linux*) | |
5582 | tm_file="svr4.h pj/linux.h ${tm_file}" | |
5583 | ;; | |
5584 | pj-*) | |
5585 | ;; | |
5586 | pjl-*) | |
5587 | tm_file="svr4.h pj/pjl.h ${tm_file}" | |
5588 | ;; | |
5589 | ||
861bb6c1 JL |
5590 | romp-*-aos*) |
5591 | use_collect2=yes | |
5592 | ;; | |
5593 | romp-*-mach*) | |
5594 | xmake_file=romp/x-mach | |
5595 | use_collect2=yes | |
5596 | ;; | |
1b4a979b ME |
5597 | romp-*-openbsd*) |
5598 | # Nothing special | |
5599 | ;; | |
5600 | powerpc-*-openbsd*) | |
5601 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5602 | ;; |
c55dcc7d FF |
5603 | powerpc-*-beos*) |
5604 | cpu_type=rs6000 | |
5605 | tm_file=rs6000/beos.h | |
5606 | xm_file=rs6000/xm-beos.h | |
5607 | tmake_file=rs6000/t-beos | |
5608 | xmake_file=rs6000/x-beos | |
5609 | ;; | |
861bb6c1 JL |
5610 | powerpc-*-sysv* | powerpc-*-elf*) |
5611 | tm_file=rs6000/sysv4.h | |
2d092ffa | 5612 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5613 | xm_defines="USG POSIX" |
861bb6c1 | 5614 | extra_headers=ppc-asm.h |
75bffa71 | 5615 | if test x$gas = xyes |
861bb6c1 JL |
5616 | then |
5617 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5618 | else | |
5619 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5620 | fi | |
5621 | xmake_file=rs6000/x-sysv4 | |
5622 | ;; | |
5623 | powerpc-*-eabiaix*) | |
5624 | tm_file=rs6000/eabiaix.h | |
5625 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5626 | extra_headers=ppc-asm.h |
5627 | ;; | |
5628 | powerpc-*-eabisim*) | |
5629 | tm_file=rs6000/eabisim.h | |
5630 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5631 | extra_headers=ppc-asm.h |
5632 | ;; | |
5633 | powerpc-*-eabi*) | |
5634 | tm_file=rs6000/eabi.h | |
75bffa71 | 5635 | if test x$gas = xyes |
861bb6c1 JL |
5636 | then |
5637 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5638 | else | |
5639 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5640 | fi | |
861bb6c1 JL |
5641 | extra_headers=ppc-asm.h |
5642 | ;; | |
5643 | powerpc-*-rtems*) | |
5644 | tm_file=rs6000/rtems.h | |
75bffa71 | 5645 | if test x$gas = xyes |
861bb6c1 JL |
5646 | then |
5647 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5648 | else | |
5649 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5650 | fi | |
861bb6c1 JL |
5651 | extra_headers=ppc-asm.h |
5652 | ;; | |
ce514f57 FS |
5653 | powerpc-*-linux-gnulibc1) |
5654 | tm_file=rs6000/linux.h | |
5655 | xm_file=rs6000/xm-sysv4.h | |
5656 | out_file=rs6000/rs6000.c | |
75bffa71 | 5657 | if test x$gas = xyes |
ce514f57 FS |
5658 | then |
5659 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5660 | else | |
5661 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5662 | fi | |
5663 | xmake_file=x-linux | |
ce514f57 FS |
5664 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5665 | extra_headers=ppc-asm.h | |
75bffa71 | 5666 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5667 | thread_file='posix' |
5668 | fi | |
5669 | ;; | |
861bb6c1 JL |
5670 | powerpc-*-linux-gnu*) |
5671 | tm_file=rs6000/linux.h | |
2d092ffa | 5672 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5673 | xm_defines="USG ${xm_defines}" |
861bb6c1 | 5674 | out_file=rs6000/rs6000.c |
75bffa71 | 5675 | if test x$gas = xyes |
861bb6c1 JL |
5676 | then |
5677 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5678 | else | |
5679 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5680 | fi | |
5681 | xmake_file=x-linux | |
861bb6c1 JL |
5682 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5683 | extra_headers=ppc-asm.h | |
75bffa71 | 5684 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5685 | thread_file='posix' |
5686 | fi | |
5687 | ;; | |
7cc34889 | 5688 | powerpc-wrs-vxworks*) |
861bb6c1 | 5689 | cpu_type=rs6000 |
2d092ffa | 5690 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5691 | xm_defines="USG POSIX" |
861bb6c1 JL |
5692 | tm_file=rs6000/vxppc.h |
5693 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5694 | extra_headers=ppc-asm.h | |
7cc34889 | 5695 | thread_file='vxworks' |
861bb6c1 | 5696 | ;; |
9ebbca7d GK |
5697 | powerpcle-wrs-vxworks*) |
5698 | cpu_type=rs6000 | |
5699 | xm_file="rs6000/xm-sysv4.h" | |
5700 | xm_defines="USG POSIX" | |
5701 | tm_file=rs6000/vxppcle.h | |
5702 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5703 | extra_headers=ppc-asm.h | |
5704 | thread_file='vxworks' | |
5705 | ;; | |
861bb6c1 JL |
5706 | powerpcle-*-sysv* | powerpcle-*-elf*) |
5707 | tm_file=rs6000/sysv4le.h | |
2d092ffa | 5708 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5709 | xm_defines="USG POSIX" |
75bffa71 | 5710 | if test x$gas = xyes |
861bb6c1 JL |
5711 | then |
5712 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5713 | else | |
5714 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5715 | fi | |
5716 | xmake_file=rs6000/x-sysv4 | |
5717 | extra_headers=ppc-asm.h | |
5718 | ;; | |
5719 | powerpcle-*-eabisim*) | |
5720 | tm_file=rs6000/eabilesim.h | |
5721 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5722 | extra_headers=ppc-asm.h |
5723 | ;; | |
5724 | powerpcle-*-eabi*) | |
5725 | tm_file=rs6000/eabile.h | |
75bffa71 | 5726 | if test x$gas = xyes |
861bb6c1 JL |
5727 | then |
5728 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5729 | else | |
5730 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5731 | fi | |
861bb6c1 JL |
5732 | extra_headers=ppc-asm.h |
5733 | ;; | |
861bb6c1 JL |
5734 | powerpcle-*-solaris2*) |
5735 | tm_file=rs6000/sol2.h | |
2d092ffa | 5736 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5737 | xm_defines="USG POSIX" |
75bffa71 | 5738 | if test x$gas = xyes |
861bb6c1 JL |
5739 | then |
5740 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5741 | else | |
5742 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5743 | fi | |
5744 | xmake_file=rs6000/x-sysv4 | |
861bb6c1 JL |
5745 | extra_headers=ppc-asm.h |
5746 | ;; | |
5747 | rs6000-ibm-aix3.[01]*) | |
5748 | tm_file=rs6000/aix31.h | |
5749 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5750 | float_format=none |
861bb6c1 JL |
5751 | use_collect2=yes |
5752 | ;; | |
5753 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5754 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5755 | if test x$host != x$target |
861bb6c1 JL |
5756 | then |
5757 | tmake_file=rs6000/t-xnewas | |
5758 | else | |
5759 | tmake_file=rs6000/t-newas | |
5760 | fi | |
45e24d08 | 5761 | float_format=none |
861bb6c1 JL |
5762 | use_collect2=yes |
5763 | ;; | |
05cea40f | 5764 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 5765 | tm_file=rs6000/aix41.h |
75bffa71 | 5766 | if test x$host != x$target |
861bb6c1 JL |
5767 | then |
5768 | tmake_file=rs6000/t-xnewas | |
5769 | else | |
5770 | tmake_file=rs6000/t-newas | |
5771 | fi | |
9ebbca7d | 5772 | xmake_file=rs6000/x-aix41 |
45e24d08 | 5773 | float_format=none |
0a95276e JL |
5774 | use_collect2=yes |
5775 | ;; | |
7747ddb3 | 5776 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 5777 | tm_file=rs6000/aix43.h |
9ebbca7d GK |
5778 | tmake_file=rs6000/t-aix43 |
5779 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 5780 | float_format=none |
0a95276e JL |
5781 | use_collect2=yes |
5782 | ;; | |
5783 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5784 | tm_file=rs6000/aix43.h | |
9ebbca7d GK |
5785 | tmake_file=rs6000/t-aix43 |
5786 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 5787 | float_format=none |
861bb6c1 JL |
5788 | use_collect2=yes |
5789 | ;; | |
5790 | rs6000-ibm-aix*) | |
45e24d08 | 5791 | float_format=none |
861bb6c1 JL |
5792 | use_collect2=yes |
5793 | ;; | |
5794 | rs6000-bull-bosx) | |
45e24d08 | 5795 | float_format=none |
861bb6c1 JL |
5796 | use_collect2=yes |
5797 | ;; | |
5798 | rs6000-*-mach*) | |
5799 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5800 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5801 | xmake_file=rs6000/x-mach |
5802 | use_collect2=yes | |
5803 | ;; | |
5804 | rs6000-*-lynxos*) | |
5805 | tm_file=rs6000/lynx.h | |
5806 | xm_file=rs6000/xm-lynx.h | |
5807 | tmake_file=rs6000/t-rs6000 | |
5808 | xmake_file=rs6000/x-lynx | |
5809 | use_collect2=yes | |
5810 | ;; | |
5811 | sh-*-elf*) | |
5812 | tm_file=sh/elf.h | |
5813 | float_format=sh | |
5814 | ;; | |
b098f56d JS |
5815 | sh-*-rtemself*) |
5816 | tmake_file="sh/t-sh t-rtems" | |
5817 | tm_file=sh/rtemself.h | |
5818 | float_format=sh | |
5819 | ;; | |
5d84b57e JS |
5820 | sh-*-rtems*) |
5821 | tmake_file="sh/t-sh t-rtems" | |
5822 | tm_file=sh/rtems.h | |
5823 | float_format=sh | |
5824 | ;; | |
861bb6c1 JL |
5825 | sh-*-*) |
5826 | float_format=sh | |
5827 | ;; | |
5828 | sparc-tti-*) | |
5829 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5830 | xm_file="xm-alloca.h ${xm_file}" |
5831 | xm_defines=USG | |
861bb6c1 JL |
5832 | ;; |
5833 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5834 | tm_file=sparc/vxsparc.h | |
5835 | tmake_file=sparc/t-vxsparc | |
5836 | use_collect2=yes | |
7cc34889 | 5837 | thread_file='vxworks' |
861bb6c1 JL |
5838 | ;; |
5839 | sparc-*-aout*) | |
5840 | tmake_file=sparc/t-sparcbare | |
5841 | tm_file="sparc/aout.h libgloss.h" | |
5842 | ;; | |
5843 | sparc-*-netbsd*) | |
5844 | tm_file=sparc/netbsd.h | |
861bb6c1 | 5845 | tmake_file=t-netbsd |
ed4acb3b | 5846 | use_collect2=yes |
861bb6c1 | 5847 | ;; |
1b4a979b ME |
5848 | sparc-*-openbsd*) |
5849 | # we need collect2 until our bug is fixed... | |
5850 | use_collect2=yes | |
5851 | ;; | |
861bb6c1 JL |
5852 | sparc-*-bsd*) |
5853 | tm_file=sparc/bsd.h | |
5854 | ;; | |
ac52b80b DE |
5855 | sparc-*-elf*) |
5856 | tm_file=sparc/elf.h | |
5857 | tmake_file=sparc/t-elf | |
5858 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5859 | #float_format=i128 | |
5860 | float_format=i64 | |
5861 | ;; | |
956d6950 | 5862 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5863 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5864 | tm_file=sparc/linux-aout.h |
5865 | xmake_file=x-linux | |
861bb6c1 JL |
5866 | gnu_ld=yes |
5867 | ;; | |
956d6950 | 5868 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5869 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5870 | xmake_file=x-linux |
861bb6c1 | 5871 | tm_file=sparc/linux.h |
3e88bbdb | 5872 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5873 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5874 | gnu_ld=yes |
39c440fc | 5875 | float_format=sparc |
861bb6c1 | 5876 | ;; |
956d6950 | 5877 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5878 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5879 | xmake_file=x-linux |
861bb6c1 | 5880 | tm_file=sparc/linux.h |
3e88bbdb | 5881 | tmake_file="t-linux" |
861bb6c1 | 5882 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5883 | gnu_ld=yes |
75bffa71 | 5884 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5885 | thread_file='posix' |
5886 | fi | |
39c440fc | 5887 | float_format=sparc |
861bb6c1 JL |
5888 | ;; |
5889 | sparc-*-lynxos*) | |
75bffa71 | 5890 | if test x$gas = xyes |
861bb6c1 JL |
5891 | then |
5892 | tm_file=sparc/lynx.h | |
5893 | else | |
5894 | tm_file=sparc/lynx-ng.h | |
5895 | fi | |
5896 | xm_file=sparc/xm-lynx.h | |
5897 | tmake_file=sparc/t-sunos41 | |
5898 | xmake_file=x-lynx | |
5899 | ;; | |
6e5138f0 JS |
5900 | sparc-*-rtemsaout*) |
5901 | tmake_file="sparc/t-sparcbare t-rtems" | |
5902 | tm_file=sparc/rtems.h | |
dae3a2d3 | 5903 | ;; |
d1476635 JS |
5904 | sparc-*-rtems*|sparc-*-rtemself*) |
5905 | tm_file="sparc/rtemself.h" | |
5906 | tmake_file="sparc/t-elf t-rtems" | |
5907 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5908 | #float_format=i128 | |
5909 | float_format=i64 | |
5910 | ;; | |
d559a4db | 5911 | sparcv9-*-solaris2*) |
3b1c302f AO |
5912 | if test x$gnu_ld = xyes |
5913 | then | |
5914 | tm_file=sparc/sol2-64.h | |
5915 | else | |
5916 | tm_file=sparc/sol2-sld-64.h | |
5917 | fi | |
d559a4db DM |
5918 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" |
5919 | xm_defines="USG POSIX" | |
345a6161 | 5920 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5921 | xmake_file=sparc/x-sysv4 |
5922 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 5923 | float_format=none |
d7496fbb | 5924 | if test x${enable_threads} = x ; then |
d559a4db | 5925 | enable_threads=$have_pthread_h |
d7496fbb | 5926 | if test x${enable_threads} = x ; then |
d559a4db DM |
5927 | enable_threads=$have_thread_h |
5928 | fi | |
5929 | fi | |
d7496fbb DM |
5930 | if test x${enable_threads} = xyes ; then |
5931 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5932 | thread_file='posix' |
5933 | else | |
5934 | thread_file='solaris' | |
5935 | fi | |
5936 | fi | |
5937 | ;; | |
ab87f8c8 | 5938 | sparc-hal-solaris2*) |
2d092ffa | 5939 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
a5037588 | 5940 | xm_defines="USG POSIX" |
ab87f8c8 JL |
5941 | tm_file="sparc/sol2.h sparc/hal.h" |
5942 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5943 | xmake_file=sparc/x-sysv4 | |
5944 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
a5037588 | 5945 | case $machine in |
005537df | 5946 | *-*-solaris2.0-4) |
a5037588 CL |
5947 | float_format=i128 |
5948 | ;; | |
5949 | *) | |
5950 | float_format=none | |
5951 | ;; | |
5952 | esac | |
5953 | thread_file='solaris' | |
ab87f8c8 | 5954 | ;; |
861bb6c1 | 5955 | sparc-*-solaris2*) |
75bffa71 | 5956 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5957 | then |
5958 | tm_file=sparc/sol2.h | |
5959 | else | |
5960 | tm_file=sparc/sol2-sld.h | |
5961 | fi | |
2d092ffa | 5962 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
0b3d64d2 | 5963 | xm_defines="USG POSIX" |
861bb6c1 JL |
5964 | tmake_file=sparc/t-sol2 |
5965 | xmake_file=sparc/x-sysv4 | |
5966 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 | 5967 | case $machine in |
5b68c389 | 5968 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; |
a242e6f5 | 5969 | *-*-solaris2*) |
3b1c302f AO |
5970 | if test x$gnu_ld = xyes |
5971 | then | |
5972 | tm_file=sparc/sol2-64.h | |
5973 | else | |
5974 | tm_file=sparc/sol2-sld-64.h | |
5975 | fi | |
a242e6f5 RO |
5976 | tmake_file="$tmake_file sparc/t-sol2-64" |
5977 | ;; | |
5978 | esac | |
5979 | case $machine in | |
f6cb0e63 | 5980 | *-*-solaris2.[0-4]) |
027ea2a7 JW |
5981 | float_format=i128 |
5982 | ;; | |
f6cb0e63 | 5983 | *) |
027ea2a7 JW |
5984 | float_format=none |
5985 | ;; | |
f6cb0e63 | 5986 | esac |
75bffa71 | 5987 | if test x${enable_threads} = x; then |
f24af81b | 5988 | enable_threads=$have_pthread_h |
75bffa71 | 5989 | if test x${enable_threads} = x; then |
f24af81b TT |
5990 | enable_threads=$have_thread_h |
5991 | fi | |
5992 | fi | |
75bffa71 ILT |
5993 | if test x${enable_threads} = xyes; then |
5994 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
5995 | thread_file='posix' |
5996 | else | |
861bb6c1 | 5997 | thread_file='solaris' |
f24af81b | 5998 | fi |
861bb6c1 JL |
5999 | fi |
6000 | ;; | |
6001 | sparc-*-sunos4.0*) | |
6002 | tm_file=sparc/sunos4.h | |
6003 | tmake_file=sparc/t-sunos40 | |
6004 | use_collect2=yes | |
6005 | ;; | |
6006 | sparc-*-sunos4*) | |
6007 | tm_file=sparc/sunos4.h | |
6008 | tmake_file=sparc/t-sunos41 | |
6009 | use_collect2=yes | |
75bffa71 | 6010 | if test x$gas = xyes; then |
ca55abae JM |
6011 | tm_file="${tm_file} sparc/sun4gas.h" |
6012 | fi | |
861bb6c1 JL |
6013 | ;; |
6014 | sparc-*-sunos3*) | |
6015 | tm_file=sparc/sun4o3.h | |
6016 | use_collect2=yes | |
6017 | ;; | |
6018 | sparc-*-sysv4*) | |
6019 | tm_file=sparc/sysv4.h | |
2d092ffa | 6020 | xm_file="sparc/xm-sysv4.h" |
f6cb0e63 | 6021 | xm_defines="USG POSIX" |
861bb6c1 JL |
6022 | tmake_file=t-svr4 |
6023 | xmake_file=sparc/x-sysv4 | |
6024 | extra_parts="crtbegin.o crtend.o" | |
6025 | ;; | |
6026 | sparc-*-vxsim*) | |
2d092ffa | 6027 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
f5963e61 | 6028 | xm_defines="USG POSIX" |
861bb6c1 JL |
6029 | tm_file=sparc/vxsim.h |
6030 | tmake_file=sparc/t-vxsparc | |
6031 | xmake_file=sparc/x-sysv4 | |
6032 | ;; | |
6033 | sparclet-*-aout*) | |
6034 | tm_file="sparc/splet.h libgloss.h" | |
6035 | tmake_file=sparc/t-splet | |
6036 | ;; | |
6037 | sparclite-*-coff*) | |
6038 | tm_file="sparc/litecoff.h libgloss.h" | |
6039 | tmake_file=sparc/t-sparclite | |
6040 | ;; | |
6041 | sparclite-*-aout*) | |
6042 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
6043 | tmake_file=sparc/t-sparclite | |
6044 | ;; | |
28df4168 | 6045 | sparclite-*-elf*) |
6eccdc81 | 6046 | tm_file="sparc/liteelf.h" |
28df4168 JL |
6047 | tmake_file=sparc/t-sparclite |
6048 | extra_parts="crtbegin.o crtend.o" | |
6049 | ;; | |
6050 | sparc86x-*-aout*) | |
6051 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
6052 | tmake_file=sparc/t-sp86x | |
6053 | ;; | |
6054 | sparc86x-*-elf*) | |
6eccdc81 | 6055 | tm_file="sparc/sp86x-elf.h" |
28df4168 JL |
6056 | tmake_file=sparc/t-sp86x |
6057 | extra_parts="crtbegin.o crtend.o" | |
6058 | ;; | |
861bb6c1 JL |
6059 | sparc64-*-aout*) |
6060 | tmake_file=sparc/t-sp64 | |
6061 | tm_file=sparc/sp64-aout.h | |
6062 | ;; | |
6063 | sparc64-*-elf*) | |
6064 | tmake_file=sparc/t-sp64 | |
6065 | tm_file=sparc/sp64-elf.h | |
6066 | extra_parts="crtbegin.o crtend.o" | |
6067 | ;; | |
956d6950 | 6068 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 6069 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
6070 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
6071 | tm_file=sparc/linux64.h | |
6072 | xmake_file=x-linux | |
345a6161 | 6073 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af | 6074 | gnu_ld=yes |
9ce13279 JJ |
6075 | if test x$enable_threads = xyes; then |
6076 | thread_file='posix' | |
6077 | fi | |
39c440fc | 6078 | float_format=sparc |
26b551af | 6079 | ;; |
861bb6c1 JL |
6080 | # This hasn't been upgraded to GCC 2. |
6081 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
6082 | # tm_file=tahoe/harris.h | |
6083 | # ;; | |
6084 | # tahoe-*-bsd*) # tahoe running BSD | |
6085 | # ;; | |
e98e406f NC |
6086 | thumb-*-coff* | thumbel-*-coff*) |
6087 | tm_file=arm/tcoff.h | |
6088 | out_file=arm/thumb.c | |
6089 | xm_file=arm/xm-thumb.h | |
6090 | md_file=arm/thumb.md | |
6091 | tmake_file=arm/t-thumb | |
c4ce154a | 6092 | tm_p_file=arm/thumb-protos.h |
e98e406f | 6093 | ;; |
c83fe036 NC |
6094 | thumb-*-elf* | thumbel-*-elf*) |
6095 | tm_file=arm/telf.h | |
6096 | out_file=arm/thumb.c | |
6097 | xm_file=arm/xm-thumb.h | |
6098 | md_file=arm/thumb.md | |
6099 | tmake_file=arm/t-thumb-elf | |
c4ce154a | 6100 | tm_p_file=arm/thumb-protos.h |
c83fe036 | 6101 | ;; |
483f6332 PB |
6102 | thumb-*-linux-gnu*) |
6103 | tm_file=arm/linux-telf.h | |
6104 | out_file=arm/thumb.c | |
6105 | xm_file=arm/xm-thumb.h | |
6106 | md_file=arm/thumb.md | |
6107 | tmake_file=arm/t-thumb-linux | |
c4ce154a | 6108 | tm_p_file=arm/thumb-protos.h |
483f6332 PB |
6109 | ;; |
6110 | thumb-*-uclinux*) | |
6111 | tm_file=arm/uclinux-telf.h | |
6112 | out_file=arm/thumb.c | |
6113 | md_file=arm/thumb.md | |
6114 | tmake_file=arm/t-thumb-linux | |
6115 | xm_file=arm/xm-thumb.h | |
c4ce154a | 6116 | tm_p_file=arm/thumb-protos.h |
483f6332 | 6117 | ;; |
28897609 MS |
6118 | thumb-wrs-vxworks) |
6119 | tm_file=arm/tcoff.h | |
6120 | out_file=arm/thumb.c | |
6121 | xm_file=arm/xm-thumb.h | |
6122 | md_file=arm/thumb.md | |
6123 | tmake_file=arm/t-thumb | |
6124 | thread_file='vxworks' | |
c4ce154a | 6125 | tm_p_file=arm/thumb-protos.h |
28897609 | 6126 | ;; |
cb805c2d NC |
6127 | thumb-*-pe) |
6128 | tm_file=arm/tpe.h | |
6129 | out_file=arm/thumb.c | |
6130 | xm_file=arm/xm-thumb.h | |
6131 | md_file=arm/thumb.md | |
6132 | tmake_file=arm/t-pe-thumb | |
6133 | extra_objs=pe.o | |
c4ce154a | 6134 | tm_p_file=arm/thumb-protos.h |
cb805c2d | 6135 | ;; |
861bb6c1 JL |
6136 | # This hasn't been upgraded to GCC 2. |
6137 | # tron-*-*) | |
6138 | # cpu_type=gmicro | |
6139 | # use_collect2=yes | |
6140 | # ;; | |
966f8bfd JS |
6141 | v850-*-rtems*) |
6142 | cpu_type=v850 | |
6143 | tm_file="v850/rtems.h" | |
6144 | xm_file="v850/xm-v850.h" | |
6145 | tmake_file="v850/t-v850 t-rtems" | |
6146 | if test x$stabs = xyes | |
6147 | then | |
6148 | tm_file="${tm_file} dbx.h" | |
6149 | fi | |
6150 | use_collect2=no | |
6151 | ;; | |
f84271d9 | 6152 | v850-*-*) |
7a846a6c | 6153 | target_cpu_default="TARGET_CPU_generic" |
f84271d9 JL |
6154 | cpu_type=v850 |
6155 | tm_file="v850/v850.h" | |
6156 | xm_file="v850/xm-v850.h" | |
62db76ee | 6157 | tmake_file=v850/t-v850 |
75bffa71 | 6158 | if test x$stabs = xyes |
f84271d9 JL |
6159 | then |
6160 | tm_file="${tm_file} dbx.h" | |
6161 | fi | |
6162 | use_collect2=no | |
6163 | ;; | |
861bb6c1 JL |
6164 | vax-*-bsd*) # vaxen running BSD |
6165 | use_collect2=yes | |
6166 | float_format=vax | |
6167 | ;; | |
6168 | vax-*-sysv*) # vaxen running system V | |
6169 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 6170 | xm_defines=USG |
861bb6c1 JL |
6171 | float_format=vax |
6172 | ;; | |
6173 | vax-*-netbsd*) | |
6174 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
6175 | tmake_file=t-netbsd |
6176 | float_format=vax | |
ed4acb3b | 6177 | use_collect2=yes |
861bb6c1 | 6178 | ;; |
1b4a979b | 6179 | vax-*-openbsd*) |
766518a0 | 6180 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 6181 | ;; |
861bb6c1 JL |
6182 | vax-*-ultrix*) # vaxen running ultrix |
6183 | tm_file="${tm_file} vax/ultrix.h" | |
6184 | use_collect2=yes | |
6185 | float_format=vax | |
6186 | ;; | |
6187 | vax-*-vms*) # vaxen running VMS | |
6188 | xm_file=vax/xm-vms.h | |
6189 | tm_file=vax/vms.h | |
6190 | float_format=vax | |
6191 | ;; | |
6192 | vax-*-*) # vax default entry | |
6193 | float_format=vax | |
6194 | ;; | |
6195 | we32k-att-sysv*) | |
6196 | xm_file="${xm_file} xm-svr3" | |
6197 | use_collect2=yes | |
6198 | ;; | |
6199 | *) | |
6200 | echo "Configuration $machine not supported" 1>&2 | |
6201 | exit 1 | |
6202 | ;; | |
6203 | esac | |
6204 | ||
6205 | case $machine in | |
6206 | *-*-linux-gnu*) | |
f6cb0e63 | 6207 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
6208 | *-*-gnu*) |
6209 | # On the GNU system, the setup is just about the same on | |
6210 | # each different CPU. The specific machines that GNU | |
6211 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 6212 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
6213 | tm_file=${cpu_type}/gnu.h |
6214 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
6215 | # GNU always uses ELF. | |
6216 | elf=yes | |
6217 | # GNU tools are the only tools. | |
6218 | gnu_ld=yes | |
6219 | gas=yes | |
861bb6c1 JL |
6220 | xmake_file=x-linux # These details are the same as Linux. |
6221 | tmake_file=t-gnu # These are not. | |
6222 | ;; | |
6223 | *-*-sysv4*) | |
861bb6c1 | 6224 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
6225 | install_headers_dir=install-headers-cpio |
6226 | ;; | |
6227 | *-*-sysv*) | |
861bb6c1 JL |
6228 | install_headers_dir=install-headers-cpio |
6229 | ;; | |
6230 | esac | |
6231 | ||
f6cb0e63 | 6232 | # Distinguish i[34567]86 |
861bb6c1 JL |
6233 | # Also, do not run mips-tfile on MIPS if using gas. |
6234 | # Process --with-cpu= for PowerPC/rs6000 | |
6235 | target_cpu_default2= | |
6236 | case $machine in | |
6237 | i486-*-*) | |
6238 | target_cpu_default2=1 | |
6239 | ;; | |
6240 | i586-*-*) | |
83f4345f PT |
6241 | case $target_alias in |
6242 | k6-*) | |
6243 | target_cpu_default2=4 | |
6244 | ;; | |
6245 | *) | |
6246 | target_cpu_default2=2 | |
6247 | ;; | |
6248 | esac | |
861bb6c1 | 6249 | ;; |
f6cb0e63 | 6250 | i686-*-* | i786-*-*) |
861bb6c1 JL |
6251 | target_cpu_default2=3 |
6252 | ;; | |
6253 | alpha*-*-*) | |
6254 | case $machine in | |
2618c083 | 6255 | alphaev6[78]*) |
d8ee3e20 RH |
6256 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" |
6257 | ;; | |
e9a25f70 | 6258 | alphaev6*) |
de4abb91 | 6259 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
6260 | ;; |
6261 | alphapca56*) | |
fbb5ed67 | 6262 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 6263 | ;; |
861bb6c1 | 6264 | alphaev56*) |
e9a25f70 | 6265 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
6266 | ;; |
6267 | alphaev5*) | |
6268 | target_cpu_default2="MASK_CPU_EV5" | |
6269 | ;; | |
6270 | esac | |
6271 | ||
75bffa71 | 6272 | if test x$gas = xyes |
861bb6c1 | 6273 | then |
75bffa71 | 6274 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
6275 | then |
6276 | target_cpu_default2="MASK_GAS" | |
6277 | else | |
6278 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
6279 | fi | |
6280 | fi | |
6281 | ;; | |
956d6950 JL |
6282 | arm*-*-*) |
6283 | case "x$with_cpu" in | |
6284 | x) | |
6285 | # The most generic | |
6286 | target_cpu_default2="TARGET_CPU_generic" | |
6287 | ;; | |
6288 | ||
6289 | # Distinguish cores, and major variants | |
6290 | # arm7m doesn't exist, but D & I don't affect code | |
005537df | 6291 | xarm[23678] | xarm250 | xarm[67][01]0 \ |
956d6950 JL |
6292 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ |
6293 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 6294 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
6295 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6296 | ;; | |
6297 | ||
6298 | xyes | xno) | |
6299 | echo "--with-cpu must be passed a value" 1>&2 | |
6300 | exit 1 | |
6301 | ;; | |
6302 | ||
6303 | *) | |
75bffa71 | 6304 | if test x$pass2done = xyes |
956d6950 JL |
6305 | then |
6306 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6307 | exit 1 | |
6308 | fi | |
6309 | ;; | |
6310 | esac | |
6311 | ;; | |
6312 | ||
861bb6c1 | 6313 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 6314 | if test x$gas = xyes |
861bb6c1 | 6315 | then |
75bffa71 | 6316 | if test x$gnu_ld = xyes |
861bb6c1 JL |
6317 | then |
6318 | target_cpu_default2=20 | |
6319 | else | |
6320 | target_cpu_default2=16 | |
6321 | fi | |
6322 | fi | |
6323 | ;; | |
6324 | mips*-*-*) | |
75bffa71 | 6325 | if test x$gas = xyes |
861bb6c1 JL |
6326 | then |
6327 | target_cpu_default2=16 | |
6328 | fi | |
6329 | ;; | |
6330 | powerpc*-*-* | rs6000-*-*) | |
6331 | case "x$with_cpu" in | |
6332 | x) | |
6333 | ;; | |
6334 | ||
6335 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
6336 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
6337 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 6338 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 6339 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 6340 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
6341 | ;; |
6342 | ||
6343 | xyes | xno) | |
6344 | echo "--with-cpu must be passed a value" 1>&2 | |
6345 | exit 1 | |
6346 | ;; | |
6347 | ||
6348 | *) | |
75bffa71 | 6349 | if test x$pass2done = xyes |
956d6950 JL |
6350 | then |
6351 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6352 | exit 1 | |
6353 | fi | |
861bb6c1 JL |
6354 | ;; |
6355 | esac | |
6356 | ;; | |
6357 | sparc*-*-*) | |
6358 | case ".$with_cpu" in | |
6359 | .) | |
6360 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
6361 | ;; | |
8947065c | 6362 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
6363 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6364 | ;; | |
6365 | *) | |
75bffa71 | 6366 | if test x$pass2done = xyes |
956d6950 JL |
6367 | then |
6368 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6369 | exit 1 | |
6370 | fi | |
861bb6c1 JL |
6371 | ;; |
6372 | esac | |
6373 | ;; | |
6374 | esac | |
6375 | ||
75bffa71 | 6376 | if test "$target_cpu_default2" != "" |
861bb6c1 | 6377 | then |
75bffa71 | 6378 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
6379 | then |
6380 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
6381 | else | |
6382 | target_cpu_default=$target_cpu_default2 | |
6383 | fi | |
6384 | fi | |
6385 | ||
6386 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
6387 | # Actually, there is now; GNU ld doesn't handle the EH info or |
6388 | # collecting for shared libraries. | |
ca8c3b37 JM |
6389 | #case x$gnu_ld in |
6390 | #xyes) | |
6391 | # use_collect2= | |
6392 | # ;; | |
6393 | #esac | |
861bb6c1 JL |
6394 | |
6395 | # Save data on machine being used to compile GCC in build_xm_file. | |
6396 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 6397 | if test x$pass1done = x |
861bb6c1 | 6398 | then |
75bffa71 | 6399 | if test x"$xm_file" = x |
861bb6c1 JL |
6400 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
6401 | else build_xm_file=$xm_file | |
6402 | fi | |
f6cb0e63 | 6403 | build_xm_defines=$xm_defines |
861bb6c1 JL |
6404 | build_install_headers_dir=$install_headers_dir |
6405 | build_exeext=$exeext | |
6406 | pass1done=yes | |
6407 | else | |
75bffa71 | 6408 | if test x$pass2done = x |
861bb6c1 | 6409 | then |
75bffa71 | 6410 | if test x"$xm_file" = x |
861bb6c1 JL |
6411 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
6412 | else host_xm_file=$xm_file | |
6413 | fi | |
f6cb0e63 | 6414 | host_xm_defines=$xm_defines |
75bffa71 | 6415 | if test x"$xmake_file" = x |
861bb6c1 JL |
6416 | then xmake_file=$cpu_type/x-$cpu_type |
6417 | fi | |
6418 | host_xmake_file="$xmake_file" | |
6419 | host_truncate_target=$truncate_target | |
6420 | host_extra_gcc_objs=$extra_gcc_objs | |
6421 | host_extra_objs=$extra_host_objs | |
6e26218f | 6422 | host_exeext=$exeext |
861bb6c1 JL |
6423 | pass2done=yes |
6424 | fi | |
6425 | fi | |
6426 | done | |
6427 | ||
6428 | extra_objs="${host_extra_objs} ${extra_objs}" | |
6429 | ||
6430 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 6431 | if test x"$tm_file" = x |
861bb6c1 JL |
6432 | then tm_file=$cpu_type/$cpu_type.h; fi |
6433 | ||
75bffa71 | 6434 | if test x$extra_headers = x |
861bb6c1 JL |
6435 | then extra_headers=; fi |
6436 | ||
75bffa71 | 6437 | if test x"$xm_file" = x |
861bb6c1 JL |
6438 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
6439 | ||
75bffa71 | 6440 | if test x$md_file = x |
e98e406f | 6441 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 6442 | |
75bffa71 | 6443 | if test x$out_file = x |
861bb6c1 JL |
6444 | then out_file=$cpu_type/$cpu_type.c; fi |
6445 | ||
75bffa71 | 6446 | if test x"$tmake_file" = x |
861bb6c1 JL |
6447 | then tmake_file=$cpu_type/t-$cpu_type |
6448 | fi | |
6449 | ||
90e6a802 | 6450 | if test x"$dwarf2" = xyes |
756ee602 | 6451 | then tm_file="$tm_file tm-dwarf2.h" |
90e6a802 RL |
6452 | fi |
6453 | ||
75bffa71 | 6454 | if test x$float_format = x |
861bb6c1 JL |
6455 | then float_format=i64 |
6456 | fi | |
6457 | ||
027ea2a7 JW |
6458 | if test $float_format = none |
6459 | then float_h_file=Makefile.in | |
6460 | else float_h_file=float-$float_format.h | |
6461 | fi | |
6462 | ||
9fc9b82a | 6463 | # Handle cpp installation. |
3ecc3258 | 6464 | if test x$enable_cpp != xno |
9fc9b82a L |
6465 | then |
6466 | tmake_file="$tmake_file t-install-cpp" | |
6467 | fi | |
6468 | ||
861bb6c1 JL |
6469 | # Say what files are being used for the output code and MD file. |
6470 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
6471 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
6472 | ||
6473 | count=a | |
6474 | for f in $tm_file; do | |
6475 | count=${count}x | |
6476 | done | |
75bffa71 | 6477 | if test $count = ax; then |
861bb6c1 JL |
6478 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
6479 | else | |
6480 | echo "Using the following target machine macro files:" | |
6481 | for f in $tm_file; do | |
6482 | echo " $srcdir/config/$f" | |
6483 | done | |
6484 | fi | |
6485 | ||
6486 | count=a | |
6487 | for f in $host_xm_file; do | |
6488 | count=${count}x | |
6489 | done | |
75bffa71 | 6490 | if test $count = ax; then |
861bb6c1 JL |
6491 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
6492 | else | |
6493 | echo "Using the following host machine macro files:" | |
6494 | for f in $host_xm_file; do | |
6495 | echo " $srcdir/config/$f" | |
6496 | done | |
6497 | fi | |
6498 | ||
75bffa71 | 6499 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
6500 | count=a |
6501 | for f in $build_xm_file; do | |
6502 | count=${count}x | |
6503 | done | |
75bffa71 | 6504 | if test $count = ax; then |
861bb6c1 JL |
6505 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
6506 | else | |
6507 | echo "Using the following build machine macro files:" | |
6508 | for f in $build_xm_file; do | |
6509 | echo " $srcdir/config/$f" | |
6510 | done | |
6511 | fi | |
6512 | fi | |
6513 | ||
75bffa71 ILT |
6514 | if test x$thread_file = x; then |
6515 | if test x$target_thread_file != x; then | |
a851212a JW |
6516 | thread_file=$target_thread_file |
6517 | else | |
6518 | thread_file='single' | |
6519 | fi | |
861bb6c1 JL |
6520 | fi |
6521 | ||
6522 | # Set up the header files. | |
6523 | # $links is the list of header files to create. | |
6524 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 6525 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 6526 | # the first file included by config.h. |
f6cb0e63 | 6527 | null_defines= |
64ccbc99 | 6528 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 6529 | |
b7cb92ad | 6530 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
6531 | # as well. If host!=build, we are in error and need to do more |
6532 | # work to find out the build config parameters. | |
75bffa71 | 6533 | if test x$host = x$build |
db81d74a | 6534 | then |
64ccbc99 | 6535 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
6536 | else |
6537 | # We create a subdir, then run autoconf in the subdir. | |
6538 | # To prevent recursion we set host and build for the new | |
6539 | # invocation of configure to the build for this invocation | |
6540 | # of configure. | |
6541 | tempdir=build.$$ | |
6542 | rm -rf $tempdir | |
6543 | mkdir $tempdir | |
6544 | cd $tempdir | |
6545 | case ${srcdir} in | |
6546 | /*) realsrcdir=${srcdir};; | |
6547 | *) realsrcdir=../${srcdir};; | |
6548 | esac | |
fe81dd69 | 6549 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
6550 | --target=$target --host=$build --build=$build |
6551 | ||
6552 | # We just finished tests for the build machine, so rename | |
6553 | # the file auto-build.h in the gcc directory. | |
6554 | mv auto-host.h ../auto-build.h | |
6555 | cd .. | |
6556 | rm -rf $tempdir | |
64ccbc99 | 6557 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
6558 | fi |
6559 | ||
0056a9b5 KG |
6560 | xm_file="gansidecl.h ${xm_file}" |
6561 | tm_file="gansidecl.h ${tm_file}" | |
6562 | ||
6baf1cc8 BS |
6563 | vars="host_xm_file tm_file tm_p_file xm_file build_xm_file" |
6564 | links="config.h tm.h tm_p.h tconfig.h hconfig.h" | |
6565 | defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines" | |
861bb6c1 JL |
6566 | |
6567 | rm -f config.bak | |
75bffa71 | 6568 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
6569 | |
6570 | # Make the links. | |
75bffa71 | 6571 | while test -n "$vars" |
861bb6c1 | 6572 | do |
861bb6c1 JL |
6573 | set $vars; var=$1; shift; vars=$* |
6574 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 6575 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
6576 | |
6577 | rm -f $link | |
6baf1cc8 BS |
6578 | # Make sure the file is created, even if it is empty. |
6579 | echo >$link | |
861bb6c1 JL |
6580 | |
6581 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
6582 | # This substitutes for lots of *.h files. | |
75bffa71 | 6583 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 6584 | then |
8fbf199e | 6585 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
6586 | fi |
6587 | ||
6588 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
6589 | case $file in |
6590 | auto-config.h) | |
6591 | ;; | |
6592 | *) | |
6593 | echo '#ifdef IN_GCC' >>$link | |
6594 | ;; | |
6595 | esac | |
861bb6c1 | 6596 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
6597 | case $file in |
6598 | auto-config.h) | |
6599 | ;; | |
6600 | *) | |
6601 | echo '#endif' >>$link | |
6602 | ;; | |
6603 | esac | |
861bb6c1 | 6604 | done |
f6cb0e63 JL |
6605 | |
6606 | for def in `eval echo '$'$define`; do | |
6607 | echo "#ifndef $def" >>$link | |
6608 | echo "#define $def" >>$link | |
6609 | echo "#endif" >>$link | |
6610 | done | |
861bb6c1 JL |
6611 | done |
6612 | ||
6613 | # Truncate the target if necessary | |
75bffa71 | 6614 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6615 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6616 | fi | |
6617 | ||
f1943b77 | 6618 | # Get the version trigger filename from the toplevel |
75bffa71 | 6619 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6620 | gcc_version_trigger=$with_gcc_version_trigger |
6621 | else | |
6622 | gcc_version_trigger=${srcdir}/version.c | |
6623 | fi | |
4746ee26 | 6624 | gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` |
861bb6c1 | 6625 | |
ab87f8c8 JL |
6626 | # Internationalization |
6627 | PACKAGE=gcc | |
6628 | VERSION="$gcc_version" | |
6629 | cat >> confdefs.h <<EOF | |
6630 | #define PACKAGE "$PACKAGE" | |
6631 | EOF | |
861bb6c1 | 6632 | |
ab87f8c8 JL |
6633 | cat >> confdefs.h <<EOF |
6634 | #define VERSION "$VERSION" | |
6635 | EOF | |
861bb6c1 | 6636 | |
861bb6c1 | 6637 | |
ab87f8c8 JL |
6638 | |
6639 | ||
6640 | ALL_LINGUAS="en_UK" | |
6641 | ||
6642 | # NLS support is still experimental, so disable it by default for now. | |
6643 | # Check whether --enable-nls or --disable-nls was given. | |
6644 | if test "${enable_nls+set}" = set; then | |
6645 | enableval="$enable_nls" | |
6646 | : | |
861bb6c1 | 6647 | else |
ab87f8c8 | 6648 | enable_nls=no |
861bb6c1 | 6649 | fi |
861bb6c1 | 6650 | |
861bb6c1 | 6651 | |
861bb6c1 | 6652 | |
ab87f8c8 | 6653 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
9ebbca7d | 6654 | echo "configure:6655: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6655 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6656 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6658 | else | |
6659 | ac_save_LIBS="$LIBS" | |
6660 | LIBS="-lcposix $LIBS" | |
6661 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6662 | #line 6663 "configure" |
ab87f8c8 JL |
6663 | #include "confdefs.h" |
6664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6665 | /* We use char because int might match the return type of a gcc2 | |
6666 | builtin and then its argument prototype would still apply. */ | |
6667 | char strerror(); | |
861bb6c1 | 6668 | |
ab87f8c8 JL |
6669 | int main() { |
6670 | strerror() | |
6671 | ; return 0; } | |
6672 | EOF | |
9ebbca7d | 6673 | if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6674 | rm -rf conftest* |
6675 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6676 | else | |
6677 | echo "configure: failed program was:" >&5 | |
6678 | cat conftest.$ac_ext >&5 | |
6679 | rm -rf conftest* | |
6680 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6681 | fi |
ab87f8c8 JL |
6682 | rm -f conftest* |
6683 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6684 | |
861bb6c1 | 6685 | fi |
ab87f8c8 JL |
6686 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6687 | echo "$ac_t""yes" 1>&6 | |
6688 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6689 | else |
ab87f8c8 | 6690 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6691 | fi |
6692 | ||
ab87f8c8 | 6693 | |
2ce3c6c6 | 6694 | |
ab87f8c8 | 6695 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
9ebbca7d | 6696 | echo "configure:6697: checking for working const" >&5 |
ab87f8c8 JL |
6697 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6699 | else |
ab87f8c8 | 6700 | cat > conftest.$ac_ext <<EOF |
9ebbca7d | 6701 | #line 6702 "configure" |
ab87f8c8 | 6702 | #include "confdefs.h" |
861bb6c1 | 6703 | |
ab87f8c8 JL |
6704 | int main() { |
6705 | ||
6706 | /* Ultrix mips cc rejects this. */ | |
f701f77c | 6707 | typedef int charset[2]; const charset x; |
ab87f8c8 JL |
6708 | /* SunOS 4.1.1 cc rejects this. */ |
6709 | char const *const *ccp; | |
6710 | char **p; | |
6711 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6712 | struct point {int x, y;}; | |
6713 | static struct point const zero = {0,0}; | |
6714 | /* AIX XL C 1.02.0.0 rejects this. | |
6715 | It does not let you subtract one const X* pointer from another in an arm | |
6716 | of an if-expression whose if-part is not a constant expression */ | |
6717 | const char *g = "string"; | |
6718 | ccp = &g + (g ? g-g : 0); | |
6719 | /* HPUX 7.0 cc rejects these. */ | |
6720 | ++ccp; | |
6721 | p = (char**) ccp; | |
6722 | ccp = (char const *const *) p; | |
6723 | { /* SCO 3.2v4 cc rejects this. */ | |
6724 | char *t; | |
6725 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6726 | ||
6727 | *t++ = 0; | |
6728 | } | |
6729 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6730 | int x[] = {25, 17}; | |
6731 | const int *foo = &x[0]; | |
6732 | ++foo; | |
6733 | } | |
6734 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6735 | typedef const int *iptr; | |
6736 | iptr p = 0; | |
6737 | ++p; | |
6738 | } | |
6739 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6740 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6741 | struct s { int j; const int *ap[3]; }; | |
6742 | struct s *b; b->j = 5; | |
6743 | } | |
6744 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6745 | const int foo = 10; | |
6746 | } | |
6747 | ||
6748 | ; return 0; } | |
6749 | EOF | |
9ebbca7d | 6750 | if { (eval echo configure:6751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6751 | rm -rf conftest* |
6752 | ac_cv_c_const=yes | |
861bb6c1 | 6753 | else |
ab87f8c8 JL |
6754 | echo "configure: failed program was:" >&5 |
6755 | cat conftest.$ac_ext >&5 | |
6756 | rm -rf conftest* | |
6757 | ac_cv_c_const=no | |
6758 | fi | |
6759 | rm -f conftest* | |
861bb6c1 JL |
6760 | fi |
6761 | ||
ab87f8c8 JL |
6762 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6763 | if test $ac_cv_c_const = no; then | |
6764 | cat >> confdefs.h <<\EOF | |
6765 | #define const | |
6766 | EOF | |
6767 | ||
861bb6c1 JL |
6768 | fi |
6769 | ||
ab87f8c8 | 6770 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
9ebbca7d | 6771 | echo "configure:6772: checking for inline" >&5 |
ab87f8c8 JL |
6772 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6774 | else | |
6775 | ac_cv_c_inline=no | |
6776 | for ac_kw in inline __inline__ __inline; do | |
6777 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6778 | #line 6779 "configure" |
ab87f8c8 JL |
6779 | #include "confdefs.h" |
6780 | ||
6781 | int main() { | |
f701f77c | 6782 | } $ac_kw foo() { |
ab87f8c8 JL |
6783 | ; return 0; } |
6784 | EOF | |
9ebbca7d | 6785 | if { (eval echo configure:6786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6786 | rm -rf conftest* |
6787 | ac_cv_c_inline=$ac_kw; break | |
6788 | else | |
6789 | echo "configure: failed program was:" >&5 | |
6790 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6791 | fi |
ab87f8c8 JL |
6792 | rm -f conftest* |
6793 | done | |
4b95eb49 | 6794 | |
992d1248 | 6795 | fi |
861bb6c1 | 6796 | |
ab87f8c8 JL |
6797 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6798 | case "$ac_cv_c_inline" in | |
6799 | inline | yes) ;; | |
6800 | no) cat >> confdefs.h <<\EOF | |
6801 | #define inline | |
00ccc16d | 6802 | EOF |
ab87f8c8 JL |
6803 | ;; |
6804 | *) cat >> confdefs.h <<EOF | |
6805 | #define inline $ac_cv_c_inline | |
6806 | EOF | |
6807 | ;; | |
6808 | esac | |
6809 | ||
6810 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
9ebbca7d | 6811 | echo "configure:6812: checking for off_t" >&5 |
ab87f8c8 JL |
6812 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6814 | else | |
6815 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6816 | #line 6817 "configure" |
ab87f8c8 JL |
6817 | #include "confdefs.h" |
6818 | #include <sys/types.h> | |
6819 | #if STDC_HEADERS | |
6820 | #include <stdlib.h> | |
6821 | #include <stddef.h> | |
6822 | #endif | |
6823 | EOF | |
6824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6825 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6826 | rm -rf conftest* |
6827 | ac_cv_type_off_t=yes | |
6828 | else | |
6829 | rm -rf conftest* | |
6830 | ac_cv_type_off_t=no | |
6831 | fi | |
6832 | rm -f conftest* | |
6833 | ||
6834 | fi | |
6835 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6836 | if test $ac_cv_type_off_t = no; then | |
6837 | cat >> confdefs.h <<\EOF | |
6838 | #define off_t long | |
6839 | EOF | |
6840 | ||
6841 | fi | |
6842 | ||
6843 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
9ebbca7d | 6844 | echo "configure:6845: checking for size_t" >&5 |
ab87f8c8 JL |
6845 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6847 | else | |
6848 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6849 | #line 6850 "configure" |
ab87f8c8 JL |
6850 | #include "confdefs.h" |
6851 | #include <sys/types.h> | |
6852 | #if STDC_HEADERS | |
6853 | #include <stdlib.h> | |
6854 | #include <stddef.h> | |
6855 | #endif | |
6856 | EOF | |
6857 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6858 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6859 | rm -rf conftest* |
6860 | ac_cv_type_size_t=yes | |
6861 | else | |
6862 | rm -rf conftest* | |
6863 | ac_cv_type_size_t=no | |
6864 | fi | |
6865 | rm -f conftest* | |
6866 | ||
6867 | fi | |
6868 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6869 | if test $ac_cv_type_size_t = no; then | |
6870 | cat >> confdefs.h <<\EOF | |
6871 | #define size_t unsigned | |
6872 | EOF | |
6873 | ||
6874 | fi | |
6875 | ||
6876 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6877 | # for constant arguments. Useless! | |
6878 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
9ebbca7d | 6879 | echo "configure:6880: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6880 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6882 | else | |
6883 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6884 | #line 6885 "configure" |
ab87f8c8 JL |
6885 | #include "confdefs.h" |
6886 | #include <alloca.h> | |
6887 | int main() { | |
f701f77c | 6888 | char *p = alloca(2 * sizeof(int)); |
ab87f8c8 JL |
6889 | ; return 0; } |
6890 | EOF | |
9ebbca7d | 6891 | if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6892 | rm -rf conftest* |
6893 | ac_cv_header_alloca_h=yes | |
6894 | else | |
6895 | echo "configure: failed program was:" >&5 | |
6896 | cat conftest.$ac_ext >&5 | |
6897 | rm -rf conftest* | |
6898 | ac_cv_header_alloca_h=no | |
6899 | fi | |
6900 | rm -f conftest* | |
6901 | fi | |
6902 | ||
6903 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6904 | if test $ac_cv_header_alloca_h = yes; then | |
6905 | cat >> confdefs.h <<\EOF | |
6906 | #define HAVE_ALLOCA_H 1 | |
6907 | EOF | |
6908 | ||
6909 | fi | |
6910 | ||
6911 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
9ebbca7d | 6912 | echo "configure:6913: checking for alloca" >&5 |
ab87f8c8 JL |
6913 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6915 | else | |
6916 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6917 | #line 6918 "configure" |
ab87f8c8 JL |
6918 | #include "confdefs.h" |
6919 | ||
6920 | #ifdef __GNUC__ | |
6921 | # define alloca __builtin_alloca | |
6922 | #else | |
cd9e5e7c MK |
6923 | # ifdef _MSC_VER |
6924 | # include <malloc.h> | |
6925 | # define alloca _alloca | |
ab87f8c8 | 6926 | # else |
cd9e5e7c MK |
6927 | # if HAVE_ALLOCA_H |
6928 | # include <alloca.h> | |
3723cad9 | 6929 | # else |
cd9e5e7c MK |
6930 | # ifdef _AIX |
6931 | #pragma alloca | |
6932 | # else | |
6933 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6934 | char *alloca (); |
cd9e5e7c | 6935 | # endif |
ab87f8c8 JL |
6936 | # endif |
6937 | # endif | |
6938 | # endif | |
6939 | #endif | |
6940 | ||
6941 | int main() { | |
6942 | char *p = (char *) alloca(1); | |
6943 | ; return 0; } | |
6944 | EOF | |
9ebbca7d | 6945 | if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
81bf3d9e RH |
6946 | rm -rf conftest* |
6947 | ac_cv_func_alloca_works=yes | |
ab87f8c8 JL |
6948 | else |
6949 | echo "configure: failed program was:" >&5 | |
6950 | cat conftest.$ac_ext >&5 | |
81bf3d9e RH |
6951 | rm -rf conftest* |
6952 | ac_cv_func_alloca_works=no | |
ab87f8c8 | 6953 | fi |
81bf3d9e | 6954 | rm -f conftest* |
ab87f8c8 JL |
6955 | fi |
6956 | ||
81bf3d9e RH |
6957 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
6958 | if test $ac_cv_func_alloca_works = yes; then | |
6959 | cat >> confdefs.h <<\EOF | |
6960 | #define HAVE_ALLOCA 1 | |
6961 | EOF | |
6962 | ||
ab87f8c8 JL |
6963 | fi |
6964 | ||
81bf3d9e RH |
6965 | if test $ac_cv_func_alloca_works = no; then |
6966 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6967 | # that cause trouble. Some versions do not even contain alloca or | |
6968 | # contain a buggy version. If you still want to use their alloca, | |
6969 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6970 | ALLOCA=alloca.${ac_objext} | |
6971 | cat >> confdefs.h <<\EOF | |
6972 | #define C_ALLOCA 1 | |
ab87f8c8 JL |
6973 | EOF |
6974 | ||
ab87f8c8 | 6975 | |
81bf3d9e | 6976 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
9ebbca7d | 6977 | echo "configure:6978: checking whether alloca needs Cray hooks" >&5 |
81bf3d9e | 6978 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
ab87f8c8 JL |
6979 | echo $ac_n "(cached) $ac_c" 1>&6 |
6980 | else | |
6981 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 6982 | #line 6983 "configure" |
ab87f8c8 | 6983 | #include "confdefs.h" |
81bf3d9e RH |
6984 | #if defined(CRAY) && ! defined(CRAY2) |
6985 | webecray | |
6986 | #else | |
6987 | wenotbecray | |
6988 | #endif | |
6989 | ||
ab87f8c8 | 6990 | EOF |
81bf3d9e RH |
6991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6992 | egrep "webecray" >/dev/null 2>&1; then | |
ab87f8c8 | 6993 | rm -rf conftest* |
81bf3d9e | 6994 | ac_cv_os_cray=yes |
ab87f8c8 | 6995 | else |
ab87f8c8 | 6996 | rm -rf conftest* |
81bf3d9e | 6997 | ac_cv_os_cray=no |
ab87f8c8 JL |
6998 | fi |
6999 | rm -f conftest* | |
81bf3d9e | 7000 | |
ab87f8c8 | 7001 | fi |
ab87f8c8 | 7002 | |
81bf3d9e RH |
7003 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
7004 | if test $ac_cv_os_cray = yes; then | |
7005 | for ac_func in _getb67 GETB67 getb67; do | |
7006 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9ebbca7d | 7007 | echo "configure:7008: checking for $ac_func" >&5 |
ab87f8c8 JL |
7008 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7010 | else | |
7011 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7012 | #line 7013 "configure" |
ab87f8c8 JL |
7013 | #include "confdefs.h" |
7014 | /* System header to define __stub macros and hopefully few prototypes, | |
7015 | which can conflict with char $ac_func(); below. */ | |
7016 | #include <assert.h> | |
7017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7018 | /* We use char because int might match the return type of a gcc2 | |
7019 | builtin and then its argument prototype would still apply. */ | |
7020 | char $ac_func(); | |
7021 | ||
7022 | int main() { | |
7023 | ||
7024 | /* The GNU C library defines this for functions which it implements | |
7025 | to always fail with ENOSYS. Some functions are actually named | |
7026 | something starting with __ and the normal name is an alias. */ | |
7027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7028 | choke me | |
7029 | #else | |
3ecc3258 | 7030 | $ac_func(); |
ab87f8c8 JL |
7031 | #endif |
7032 | ||
7033 | ; return 0; } | |
7034 | EOF | |
9ebbca7d | 7035 | if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7036 | rm -rf conftest* |
7037 | eval "ac_cv_func_$ac_func=yes" | |
7038 | else | |
7039 | echo "configure: failed program was:" >&5 | |
7040 | cat conftest.$ac_ext >&5 | |
7041 | rm -rf conftest* | |
7042 | eval "ac_cv_func_$ac_func=no" | |
7043 | fi | |
7044 | rm -f conftest* | |
7045 | fi | |
7046 | ||
7047 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7048 | echo "$ac_t""yes" 1>&6 | |
ab87f8c8 | 7049 | cat >> confdefs.h <<EOF |
81bf3d9e | 7050 | #define CRAY_STACKSEG_END $ac_func |
ab87f8c8 | 7051 | EOF |
81bf3d9e RH |
7052 | |
7053 | break | |
ab87f8c8 JL |
7054 | else |
7055 | echo "$ac_t""no" 1>&6 | |
7056 | fi | |
81bf3d9e | 7057 | |
ab87f8c8 | 7058 | done |
81bf3d9e | 7059 | fi |
ab87f8c8 | 7060 | |
81bf3d9e | 7061 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
9ebbca7d | 7062 | echo "configure:7063: checking stack direction for C alloca" >&5 |
81bf3d9e | 7063 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
ab87f8c8 JL |
7064 | echo $ac_n "(cached) $ac_c" 1>&6 |
7065 | else | |
7066 | if test "$cross_compiling" = yes; then | |
81bf3d9e | 7067 | ac_cv_c_stack_direction=0 |
ab87f8c8 JL |
7068 | else |
7069 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7070 | #line 7071 "configure" |
ab87f8c8 | 7071 | #include "confdefs.h" |
81bf3d9e | 7072 | find_stack_direction () |
ab87f8c8 | 7073 | { |
81bf3d9e RH |
7074 | static char *addr = 0; |
7075 | auto char dummy; | |
7076 | if (addr == 0) | |
7077 | { | |
7078 | addr = &dummy; | |
7079 | return find_stack_direction (); | |
7080 | } | |
7081 | else | |
7082 | return (&dummy > addr) ? 1 : -1; | |
7083 | } | |
7084 | main () | |
7085 | { | |
7086 | exit (find_stack_direction() < 0); | |
ab87f8c8 | 7087 | } |
ab87f8c8 | 7088 | EOF |
9ebbca7d | 7089 | if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 | 7090 | then |
81bf3d9e | 7091 | ac_cv_c_stack_direction=1 |
ab87f8c8 JL |
7092 | else |
7093 | echo "configure: failed program was:" >&5 | |
7094 | cat conftest.$ac_ext >&5 | |
7095 | rm -fr conftest* | |
81bf3d9e | 7096 | ac_cv_c_stack_direction=-1 |
ab87f8c8 JL |
7097 | fi |
7098 | rm -fr conftest* | |
7099 | fi | |
7100 | ||
7101 | fi | |
7102 | ||
81bf3d9e RH |
7103 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
7104 | cat >> confdefs.h <<EOF | |
7105 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
ab87f8c8 JL |
7106 | EOF |
7107 | ||
4acab94b AO |
7108 | fi |
7109 | ||
7110 | for ac_hdr in unistd.h | |
7111 | do | |
7112 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7113 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9ebbca7d | 7114 | echo "configure:7115: checking for $ac_hdr" >&5 |
4acab94b AO |
7115 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7117 | else | |
7118 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7119 | #line 7120 "configure" |
4acab94b AO |
7120 | #include "confdefs.h" |
7121 | #include <$ac_hdr> | |
7122 | EOF | |
7123 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9ebbca7d | 7124 | { (eval echo configure:7125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4acab94b AO |
7125 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7126 | if test -z "$ac_err"; then | |
7127 | rm -rf conftest* | |
7128 | eval "ac_cv_header_$ac_safe=yes" | |
7129 | else | |
7130 | echo "$ac_err" >&5 | |
7131 | echo "configure: failed program was:" >&5 | |
7132 | cat conftest.$ac_ext >&5 | |
7133 | rm -rf conftest* | |
7134 | eval "ac_cv_header_$ac_safe=no" | |
7135 | fi | |
7136 | rm -f conftest* | |
7137 | fi | |
7138 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7139 | echo "$ac_t""yes" 1>&6 | |
7140 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7141 | cat >> confdefs.h <<EOF | |
7142 | #define $ac_tr_hdr 1 | |
7143 | EOF | |
7144 | ||
7145 | else | |
7146 | echo "$ac_t""no" 1>&6 | |
7147 | fi | |
7148 | done | |
7149 | ||
7150 | for ac_func in getpagesize | |
7151 | do | |
7152 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9ebbca7d | 7153 | echo "configure:7154: checking for $ac_func" >&5 |
4acab94b AO |
7154 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7156 | else | |
7157 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7158 | #line 7159 "configure" |
4acab94b AO |
7159 | #include "confdefs.h" |
7160 | /* System header to define __stub macros and hopefully few prototypes, | |
7161 | which can conflict with char $ac_func(); below. */ | |
7162 | #include <assert.h> | |
7163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7164 | /* We use char because int might match the return type of a gcc2 | |
7165 | builtin and then its argument prototype would still apply. */ | |
7166 | char $ac_func(); | |
7167 | ||
7168 | int main() { | |
7169 | ||
7170 | /* The GNU C library defines this for functions which it implements | |
7171 | to always fail with ENOSYS. Some functions are actually named | |
7172 | something starting with __ and the normal name is an alias. */ | |
7173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7174 | choke me | |
7175 | #else | |
7176 | $ac_func(); | |
7177 | #endif | |
7178 | ||
7179 | ; return 0; } | |
7180 | EOF | |
9ebbca7d | 7181 | if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4acab94b AO |
7182 | rm -rf conftest* |
7183 | eval "ac_cv_func_$ac_func=yes" | |
7184 | else | |
7185 | echo "configure: failed program was:" >&5 | |
7186 | cat conftest.$ac_ext >&5 | |
7187 | rm -rf conftest* | |
7188 | eval "ac_cv_func_$ac_func=no" | |
7189 | fi | |
7190 | rm -f conftest* | |
7191 | fi | |
7192 | ||
7193 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7194 | echo "$ac_t""yes" 1>&6 | |
7195 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7196 | cat >> confdefs.h <<EOF | |
7197 | #define $ac_tr_func 1 | |
7198 | EOF | |
7199 | ||
7200 | else | |
7201 | echo "$ac_t""no" 1>&6 | |
7202 | fi | |
7203 | done | |
7204 | ||
7205 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
9ebbca7d | 7206 | echo "configure:7207: checking for working mmap" >&5 |
4acab94b AO |
7207 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
7208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7209 | else | |
7210 | if test "$cross_compiling" = yes; then | |
7211 | ac_cv_func_mmap_fixed_mapped=no | |
7212 | else | |
7213 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7214 | #line 7215 "configure" |
4acab94b AO |
7215 | #include "confdefs.h" |
7216 | ||
7217 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7218 | Here is a matrix of mmap possibilities: | |
7219 | mmap private not fixed | |
7220 | mmap private fixed at somewhere currently unmapped | |
7221 | mmap private fixed at somewhere already mapped | |
7222 | mmap shared not fixed | |
7223 | mmap shared fixed at somewhere currently unmapped | |
7224 | mmap shared fixed at somewhere already mapped | |
7225 | For private mappings, we should verify that changes cannot be read() | |
7226 | back from the file, nor mmap's back from the file at a different | |
7227 | address. (There have been systems where private was not correctly | |
7228 | implemented like the infamous i386 svr4.0, and systems where the | |
7229 | VM page cache was not coherent with the filesystem buffer cache | |
7230 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7231 | For shared mappings, we should conversely verify that changes get | |
7232 | propogated back to all the places they're supposed to be. | |
7233 | ||
7234 | Grep wants private fixed already mapped. | |
7235 | The main things grep needs to know about mmap are: | |
7236 | * does it exist and is it safe to write into the mmap'd area | |
7237 | * how to use it (BSD variants) */ | |
7238 | #include <sys/types.h> | |
7239 | #include <fcntl.h> | |
7240 | #include <sys/mman.h> | |
7241 | ||
7242 | /* This mess was copied from the GNU getpagesize.h. */ | |
7243 | #ifndef HAVE_GETPAGESIZE | |
f701f77c JL |
7244 | # ifdef HAVE_UNISTD_H |
7245 | # include <unistd.h> | |
7246 | # endif | |
4acab94b AO |
7247 | |
7248 | /* Assume that all systems that can run configure have sys/param.h. */ | |
7249 | # ifndef HAVE_SYS_PARAM_H | |
7250 | # define HAVE_SYS_PARAM_H 1 | |
7251 | # endif | |
7252 | ||
7253 | # ifdef _SC_PAGESIZE | |
7254 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7255 | # else /* no _SC_PAGESIZE */ | |
7256 | # ifdef HAVE_SYS_PARAM_H | |
7257 | # include <sys/param.h> | |
7258 | # ifdef EXEC_PAGESIZE | |
7259 | # define getpagesize() EXEC_PAGESIZE | |
7260 | # else /* no EXEC_PAGESIZE */ | |
7261 | # ifdef NBPG | |
7262 | # define getpagesize() NBPG * CLSIZE | |
7263 | # ifndef CLSIZE | |
7264 | # define CLSIZE 1 | |
7265 | # endif /* no CLSIZE */ | |
7266 | # else /* no NBPG */ | |
7267 | # ifdef NBPC | |
7268 | # define getpagesize() NBPC | |
7269 | # else /* no NBPC */ | |
7270 | # ifdef PAGESIZE | |
7271 | # define getpagesize() PAGESIZE | |
7272 | # endif /* PAGESIZE */ | |
7273 | # endif /* no NBPC */ | |
7274 | # endif /* no NBPG */ | |
7275 | # endif /* no EXEC_PAGESIZE */ | |
7276 | # else /* no HAVE_SYS_PARAM_H */ | |
7277 | # define getpagesize() 8192 /* punt totally */ | |
7278 | # endif /* no HAVE_SYS_PARAM_H */ | |
7279 | # endif /* no _SC_PAGESIZE */ | |
7280 | ||
7281 | #endif /* no HAVE_GETPAGESIZE */ | |
7282 | ||
7283 | #ifdef __cplusplus | |
7284 | extern "C" { void *malloc(unsigned); } | |
7285 | #else | |
7286 | char *malloc(); | |
7287 | #endif | |
7288 | ||
7289 | int | |
7290 | main() | |
7291 | { | |
7292 | char *data, *data2, *data3; | |
7293 | int i, pagesize; | |
7294 | int fd; | |
7295 | ||
7296 | pagesize = getpagesize(); | |
7297 | ||
7298 | /* | |
7299 | * First, make a file with some known garbage in it. | |
7300 | */ | |
f701f77c | 7301 | data = malloc(pagesize); |
4acab94b AO |
7302 | if (!data) |
7303 | exit(1); | |
7304 | for (i = 0; i < pagesize; ++i) | |
7305 | *(data + i) = rand(); | |
7306 | umask(0); | |
7307 | fd = creat("conftestmmap", 0600); | |
7308 | if (fd < 0) | |
7309 | exit(1); | |
7310 | if (write(fd, data, pagesize) != pagesize) | |
7311 | exit(1); | |
7312 | close(fd); | |
7313 | ||
7314 | /* | |
7315 | * Next, try to mmap the file at a fixed address which | |
7316 | * already has something else allocated at it. If we can, | |
7317 | * also make sure that we see the same garbage. | |
7318 | */ | |
7319 | fd = open("conftestmmap", O_RDWR); | |
7320 | if (fd < 0) | |
7321 | exit(1); | |
f701f77c | 7322 | data2 = malloc(2 * pagesize); |
4acab94b AO |
7323 | if (!data2) |
7324 | exit(1); | |
7325 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
7326 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
7327 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7328 | exit(1); | |
7329 | for (i = 0; i < pagesize; ++i) | |
7330 | if (*(data + i) != *(data2 + i)) | |
7331 | exit(1); | |
7332 | ||
7333 | /* | |
7334 | * Finally, make sure that changes to the mapped area | |
7335 | * do not percolate back to the file as seen by read(). | |
7336 | * (This is a bug on some variants of i386 svr4.0.) | |
7337 | */ | |
7338 | for (i = 0; i < pagesize; ++i) | |
7339 | *(data2 + i) = *(data2 + i) + 1; | |
f701f77c | 7340 | data3 = malloc(pagesize); |
4acab94b AO |
7341 | if (!data3) |
7342 | exit(1); | |
7343 | if (read(fd, data3, pagesize) != pagesize) | |
7344 | exit(1); | |
7345 | for (i = 0; i < pagesize; ++i) | |
7346 | if (*(data + i) != *(data3 + i)) | |
7347 | exit(1); | |
7348 | close(fd); | |
7349 | unlink("conftestmmap"); | |
7350 | exit(0); | |
7351 | } | |
7352 | ||
7353 | EOF | |
9ebbca7d | 7354 | if { (eval echo configure:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4acab94b AO |
7355 | then |
7356 | ac_cv_func_mmap_fixed_mapped=yes | |
7357 | else | |
7358 | echo "configure: failed program was:" >&5 | |
7359 | cat conftest.$ac_ext >&5 | |
7360 | rm -fr conftest* | |
7361 | ac_cv_func_mmap_fixed_mapped=no | |
7362 | fi | |
7363 | rm -fr conftest* | |
7364 | fi | |
7365 | ||
7366 | fi | |
7367 | ||
7368 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
7369 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
7370 | cat >> confdefs.h <<\EOF | |
7371 | #define HAVE_MMAP 1 | |
7372 | EOF | |
7373 | ||
ab87f8c8 JL |
7374 | fi |
7375 | ||
7376 | ||
7377 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
7378 | unistd.h sys/param.h | |
7379 | do | |
7380 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7381 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9ebbca7d | 7382 | echo "configure:7383: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
7383 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7385 | else | |
7386 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7387 | #line 7388 "configure" |
ab87f8c8 JL |
7388 | #include "confdefs.h" |
7389 | #include <$ac_hdr> | |
7390 | EOF | |
7391 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9ebbca7d | 7392 | { (eval echo configure:7393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7393 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7394 | if test -z "$ac_err"; then |
7395 | rm -rf conftest* | |
7396 | eval "ac_cv_header_$ac_safe=yes" | |
7397 | else | |
7398 | echo "$ac_err" >&5 | |
7399 | echo "configure: failed program was:" >&5 | |
7400 | cat conftest.$ac_ext >&5 | |
7401 | rm -rf conftest* | |
7402 | eval "ac_cv_header_$ac_safe=no" | |
7403 | fi | |
7404 | rm -f conftest* | |
7405 | fi | |
7406 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7407 | echo "$ac_t""yes" 1>&6 | |
7408 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7409 | cat >> confdefs.h <<EOF | |
7410 | #define $ac_tr_hdr 1 | |
7411 | EOF | |
7412 | ||
7413 | else | |
7414 | echo "$ac_t""no" 1>&6 | |
7415 | fi | |
7416 | done | |
7417 | ||
7418 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
7419 | strdup __argz_count __argz_stringify __argz_next | |
7420 | do | |
7421 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9ebbca7d | 7422 | echo "configure:7423: checking for $ac_func" >&5 |
ab87f8c8 JL |
7423 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7425 | else | |
7426 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7427 | #line 7428 "configure" |
ab87f8c8 JL |
7428 | #include "confdefs.h" |
7429 | /* System header to define __stub macros and hopefully few prototypes, | |
7430 | which can conflict with char $ac_func(); below. */ | |
7431 | #include <assert.h> | |
7432 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7433 | /* We use char because int might match the return type of a gcc2 | |
7434 | builtin and then its argument prototype would still apply. */ | |
7435 | char $ac_func(); | |
7436 | ||
7437 | int main() { | |
7438 | ||
7439 | /* The GNU C library defines this for functions which it implements | |
7440 | to always fail with ENOSYS. Some functions are actually named | |
7441 | something starting with __ and the normal name is an alias. */ | |
7442 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7443 | choke me | |
7444 | #else | |
3ecc3258 | 7445 | $ac_func(); |
ab87f8c8 JL |
7446 | #endif |
7447 | ||
7448 | ; return 0; } | |
7449 | EOF | |
9ebbca7d | 7450 | if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7451 | rm -rf conftest* |
7452 | eval "ac_cv_func_$ac_func=yes" | |
7453 | else | |
7454 | echo "configure: failed program was:" >&5 | |
7455 | cat conftest.$ac_ext >&5 | |
7456 | rm -rf conftest* | |
7457 | eval "ac_cv_func_$ac_func=no" | |
7458 | fi | |
7459 | rm -f conftest* | |
7460 | fi | |
7461 | ||
7462 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7463 | echo "$ac_t""yes" 1>&6 | |
7464 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7465 | cat >> confdefs.h <<EOF | |
7466 | #define $ac_tr_func 1 | |
7467 | EOF | |
7468 | ||
7469 | else | |
7470 | echo "$ac_t""no" 1>&6 | |
7471 | fi | |
7472 | done | |
7473 | ||
7474 | ||
7475 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
7476 | for ac_func in stpcpy | |
7477 | do | |
7478 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9ebbca7d | 7479 | echo "configure:7480: checking for $ac_func" >&5 |
ab87f8c8 JL |
7480 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7482 | else | |
7483 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7484 | #line 7485 "configure" |
ab87f8c8 JL |
7485 | #include "confdefs.h" |
7486 | /* System header to define __stub macros and hopefully few prototypes, | |
7487 | which can conflict with char $ac_func(); below. */ | |
7488 | #include <assert.h> | |
7489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7490 | /* We use char because int might match the return type of a gcc2 | |
7491 | builtin and then its argument prototype would still apply. */ | |
7492 | char $ac_func(); | |
7493 | ||
7494 | int main() { | |
7495 | ||
7496 | /* The GNU C library defines this for functions which it implements | |
7497 | to always fail with ENOSYS. Some functions are actually named | |
7498 | something starting with __ and the normal name is an alias. */ | |
7499 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7500 | choke me | |
7501 | #else | |
3ecc3258 | 7502 | $ac_func(); |
ab87f8c8 JL |
7503 | #endif |
7504 | ||
7505 | ; return 0; } | |
7506 | EOF | |
9ebbca7d | 7507 | if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7508 | rm -rf conftest* |
7509 | eval "ac_cv_func_$ac_func=yes" | |
7510 | else | |
7511 | echo "configure: failed program was:" >&5 | |
7512 | cat conftest.$ac_ext >&5 | |
7513 | rm -rf conftest* | |
7514 | eval "ac_cv_func_$ac_func=no" | |
7515 | fi | |
7516 | rm -f conftest* | |
7517 | fi | |
7518 | ||
7519 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7520 | echo "$ac_t""yes" 1>&6 | |
7521 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7522 | cat >> confdefs.h <<EOF | |
7523 | #define $ac_tr_func 1 | |
7524 | EOF | |
7525 | ||
7526 | else | |
7527 | echo "$ac_t""no" 1>&6 | |
7528 | fi | |
7529 | done | |
7530 | ||
7531 | fi | |
7532 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
7533 | cat >> confdefs.h <<\EOF | |
7534 | #define HAVE_STPCPY 1 | |
7535 | EOF | |
7536 | ||
7537 | fi | |
7538 | ||
7539 | if test $ac_cv_header_locale_h = yes; then | |
7540 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
9ebbca7d | 7541 | echo "configure:7542: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
7542 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
7543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7544 | else | |
7545 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7546 | #line 7547 "configure" |
ab87f8c8 JL |
7547 | #include "confdefs.h" |
7548 | #include <locale.h> | |
7549 | int main() { | |
7550 | return LC_MESSAGES | |
7551 | ; return 0; } | |
7552 | EOF | |
9ebbca7d | 7553 | if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7554 | rm -rf conftest* |
7555 | am_cv_val_LC_MESSAGES=yes | |
7556 | else | |
7557 | echo "configure: failed program was:" >&5 | |
7558 | cat conftest.$ac_ext >&5 | |
7559 | rm -rf conftest* | |
7560 | am_cv_val_LC_MESSAGES=no | |
7561 | fi | |
7562 | rm -f conftest* | |
7563 | fi | |
7564 | ||
7565 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
7566 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7567 | cat >> confdefs.h <<\EOF | |
7568 | #define HAVE_LC_MESSAGES 1 | |
7569 | EOF | |
7570 | ||
7571 | fi | |
7572 | fi | |
7573 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
9ebbca7d | 7574 | echo "configure:7575: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
7575 | # Check whether --enable-nls or --disable-nls was given. |
7576 | if test "${enable_nls+set}" = set; then | |
7577 | enableval="$enable_nls" | |
7578 | USE_NLS=$enableval | |
7579 | else | |
7580 | USE_NLS=yes | |
7581 | fi | |
7582 | ||
7583 | echo "$ac_t""$USE_NLS" 1>&6 | |
7584 | ||
7585 | ||
7586 | USE_INCLUDED_LIBINTL=no | |
7587 | ||
7588 | if test "$USE_NLS" = "yes"; then | |
7589 | cat >> confdefs.h <<\EOF | |
7590 | #define ENABLE_NLS 1 | |
7591 | EOF | |
7592 | ||
7593 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
9ebbca7d | 7594 | echo "configure:7595: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
7595 | # Check whether --with-included-gettext or --without-included-gettext was given. |
7596 | if test "${with_included_gettext+set}" = set; then | |
7597 | withval="$with_included_gettext" | |
7598 | nls_cv_force_use_gnu_gettext=$withval | |
7599 | else | |
7600 | nls_cv_force_use_gnu_gettext=no | |
7601 | fi | |
7602 | ||
7603 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
7604 | ||
7605 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7606 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7607 | nls_cv_header_intl= | |
7608 | nls_cv_header_libgt= | |
7609 | CATOBJEXT=NONE | |
7610 | ||
7611 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7612 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
9ebbca7d | 7613 | echo "configure:7614: checking for libintl.h" >&5 |
ab87f8c8 JL |
7614 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7615 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7616 | else | |
7617 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7618 | #line 7619 "configure" |
ab87f8c8 JL |
7619 | #include "confdefs.h" |
7620 | #include <libintl.h> | |
7621 | EOF | |
7622 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9ebbca7d | 7623 | { (eval echo configure:7624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7624 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7625 | if test -z "$ac_err"; then |
7626 | rm -rf conftest* | |
7627 | eval "ac_cv_header_$ac_safe=yes" | |
7628 | else | |
7629 | echo "$ac_err" >&5 | |
7630 | echo "configure: failed program was:" >&5 | |
7631 | cat conftest.$ac_ext >&5 | |
7632 | rm -rf conftest* | |
7633 | eval "ac_cv_header_$ac_safe=no" | |
7634 | fi | |
7635 | rm -f conftest* | |
7636 | fi | |
7637 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7638 | echo "$ac_t""yes" 1>&6 | |
7639 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
9ebbca7d | 7640 | echo "configure:7641: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7641 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7643 | else | |
7644 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7645 | #line 7646 "configure" |
ab87f8c8 JL |
7646 | #include "confdefs.h" |
7647 | #include <libintl.h> | |
7648 | int main() { | |
7649 | return (int) gettext ("") | |
7650 | ; return 0; } | |
7651 | EOF | |
9ebbca7d | 7652 | if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7653 | rm -rf conftest* |
7654 | gt_cv_func_gettext_libc=yes | |
7655 | else | |
7656 | echo "configure: failed program was:" >&5 | |
7657 | cat conftest.$ac_ext >&5 | |
7658 | rm -rf conftest* | |
7659 | gt_cv_func_gettext_libc=no | |
7660 | fi | |
7661 | rm -f conftest* | |
7662 | fi | |
7663 | ||
7664 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7665 | ||
7666 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7667 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
9ebbca7d | 7668 | echo "configure:7669: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7669 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7670 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7672 | else | |
7673 | ac_save_LIBS="$LIBS" | |
7674 | LIBS="-lintl $LIBS" | |
7675 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7676 | #line 7677 "configure" |
ab87f8c8 JL |
7677 | #include "confdefs.h" |
7678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7679 | /* We use char because int might match the return type of a gcc2 | |
7680 | builtin and then its argument prototype would still apply. */ | |
7681 | char bindtextdomain(); | |
7682 | ||
7683 | int main() { | |
7684 | bindtextdomain() | |
7685 | ; return 0; } | |
7686 | EOF | |
9ebbca7d | 7687 | if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7688 | rm -rf conftest* |
7689 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7690 | else | |
7691 | echo "configure: failed program was:" >&5 | |
7692 | cat conftest.$ac_ext >&5 | |
7693 | rm -rf conftest* | |
7694 | eval "ac_cv_lib_$ac_lib_var=no" | |
7695 | fi | |
7696 | rm -f conftest* | |
7697 | LIBS="$ac_save_LIBS" | |
7698 | ||
7699 | fi | |
7700 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7701 | echo "$ac_t""yes" 1>&6 | |
7702 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
9ebbca7d | 7703 | echo "configure:7704: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7704 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7706 | else | |
7707 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
9ebbca7d | 7708 | echo "configure:7709: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7709 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7710 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7712 | else | |
7713 | ac_save_LIBS="$LIBS" | |
7714 | LIBS="-lintl $LIBS" | |
7715 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7716 | #line 7717 "configure" |
ab87f8c8 JL |
7717 | #include "confdefs.h" |
7718 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7719 | /* We use char because int might match the return type of a gcc2 | |
7720 | builtin and then its argument prototype would still apply. */ | |
7721 | char gettext(); | |
7722 | ||
7723 | int main() { | |
7724 | gettext() | |
7725 | ; return 0; } | |
7726 | EOF | |
9ebbca7d | 7727 | if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7728 | rm -rf conftest* |
7729 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7730 | else | |
7731 | echo "configure: failed program was:" >&5 | |
7732 | cat conftest.$ac_ext >&5 | |
7733 | rm -rf conftest* | |
7734 | eval "ac_cv_lib_$ac_lib_var=no" | |
7735 | fi | |
7736 | rm -f conftest* | |
7737 | LIBS="$ac_save_LIBS" | |
7738 | ||
7739 | fi | |
7740 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7741 | echo "$ac_t""yes" 1>&6 | |
7742 | gt_cv_func_gettext_libintl=yes | |
7743 | else | |
7744 | echo "$ac_t""no" 1>&6 | |
7745 | gt_cv_func_gettext_libintl=no | |
7746 | fi | |
7747 | ||
7748 | fi | |
7749 | ||
7750 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7751 | else | |
7752 | echo "$ac_t""no" 1>&6 | |
7753 | fi | |
7754 | ||
7755 | fi | |
7756 | ||
7757 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7758 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7759 | cat >> confdefs.h <<\EOF | |
7760 | #define HAVE_GETTEXT 1 | |
7761 | EOF | |
7762 | ||
7763 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7764 | set dummy msgfmt; ac_word=$2 | |
7765 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 7766 | echo "configure:7767: checking for $ac_word" >&5 |
ab87f8c8 JL |
7767 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7769 | else | |
7770 | case "$MSGFMT" in | |
7771 | /*) | |
7772 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7773 | ;; | |
7774 | *) | |
7775 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7776 | for ac_dir in $PATH; do | |
7777 | test -z "$ac_dir" && ac_dir=. | |
7778 | if test -f $ac_dir/$ac_word; then | |
7779 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7780 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7781 | break | |
7782 | fi | |
7783 | fi | |
7784 | done | |
7785 | IFS="$ac_save_ifs" | |
7786 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7787 | ;; | |
7788 | esac | |
7789 | fi | |
7790 | MSGFMT="$ac_cv_path_MSGFMT" | |
7791 | if test -n "$MSGFMT"; then | |
7792 | echo "$ac_t""$MSGFMT" 1>&6 | |
7793 | else | |
7794 | echo "$ac_t""no" 1>&6 | |
7795 | fi | |
7796 | if test "$MSGFMT" != "no"; then | |
7797 | for ac_func in dcgettext | |
7798 | do | |
7799 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9ebbca7d | 7800 | echo "configure:7801: checking for $ac_func" >&5 |
ab87f8c8 JL |
7801 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7803 | else | |
7804 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7805 | #line 7806 "configure" |
ab87f8c8 JL |
7806 | #include "confdefs.h" |
7807 | /* System header to define __stub macros and hopefully few prototypes, | |
7808 | which can conflict with char $ac_func(); below. */ | |
7809 | #include <assert.h> | |
7810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7811 | /* We use char because int might match the return type of a gcc2 | |
7812 | builtin and then its argument prototype would still apply. */ | |
7813 | char $ac_func(); | |
7814 | ||
7815 | int main() { | |
7816 | ||
7817 | /* The GNU C library defines this for functions which it implements | |
7818 | to always fail with ENOSYS. Some functions are actually named | |
7819 | something starting with __ and the normal name is an alias. */ | |
7820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7821 | choke me | |
7822 | #else | |
3ecc3258 | 7823 | $ac_func(); |
ab87f8c8 JL |
7824 | #endif |
7825 | ||
7826 | ; return 0; } | |
7827 | EOF | |
9ebbca7d | 7828 | if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7829 | rm -rf conftest* |
7830 | eval "ac_cv_func_$ac_func=yes" | |
7831 | else | |
7832 | echo "configure: failed program was:" >&5 | |
7833 | cat conftest.$ac_ext >&5 | |
7834 | rm -rf conftest* | |
7835 | eval "ac_cv_func_$ac_func=no" | |
7836 | fi | |
7837 | rm -f conftest* | |
7838 | fi | |
7839 | ||
7840 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7841 | echo "$ac_t""yes" 1>&6 | |
7842 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7843 | cat >> confdefs.h <<EOF | |
7844 | #define $ac_tr_func 1 | |
7845 | EOF | |
7846 | ||
7847 | else | |
7848 | echo "$ac_t""no" 1>&6 | |
7849 | fi | |
7850 | done | |
7851 | ||
7852 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7853 | set dummy gmsgfmt; ac_word=$2 | |
7854 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 7855 | echo "configure:7856: checking for $ac_word" >&5 |
ab87f8c8 JL |
7856 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7858 | else | |
7859 | case "$GMSGFMT" in | |
7860 | /*) | |
7861 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7862 | ;; | |
7863 | ?:/*) | |
7864 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7865 | ;; | |
7866 | *) | |
cd9e5e7c | 7867 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7868 | ac_dummy="$PATH" |
7869 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7870 | test -z "$ac_dir" && ac_dir=. |
7871 | if test -f $ac_dir/$ac_word; then | |
7872 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7873 | break | |
7874 | fi | |
7875 | done | |
7876 | IFS="$ac_save_ifs" | |
7877 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7878 | ;; | |
7879 | esac | |
7880 | fi | |
7881 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7882 | if test -n "$GMSGFMT"; then | |
7883 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7884 | else | |
7885 | echo "$ac_t""no" 1>&6 | |
7886 | fi | |
7887 | ||
7888 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7889 | set dummy xgettext; ac_word=$2 | |
7890 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 7891 | echo "configure:7892: checking for $ac_word" >&5 |
ab87f8c8 JL |
7892 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7894 | else | |
7895 | case "$XGETTEXT" in | |
7896 | /*) | |
7897 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7898 | ;; | |
7899 | *) | |
7900 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7901 | for ac_dir in $PATH; do | |
7902 | test -z "$ac_dir" && ac_dir=. | |
7903 | if test -f $ac_dir/$ac_word; then | |
7904 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7905 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7906 | break | |
7907 | fi | |
7908 | fi | |
7909 | done | |
7910 | IFS="$ac_save_ifs" | |
7911 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7912 | ;; | |
7913 | esac | |
7914 | fi | |
7915 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7916 | if test -n "$XGETTEXT"; then | |
7917 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7918 | else | |
7919 | echo "$ac_t""no" 1>&6 | |
7920 | fi | |
7921 | ||
7922 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7923 | #line 7924 "configure" |
ab87f8c8 JL |
7924 | #include "confdefs.h" |
7925 | ||
7926 | int main() { | |
7927 | extern int _nl_msg_cat_cntr; | |
7928 | return _nl_msg_cat_cntr | |
7929 | ; return 0; } | |
7930 | EOF | |
9ebbca7d | 7931 | if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7932 | rm -rf conftest* |
7933 | CATOBJEXT=.gmo | |
7934 | DATADIRNAME=share | |
7935 | else | |
7936 | echo "configure: failed program was:" >&5 | |
7937 | cat conftest.$ac_ext >&5 | |
7938 | rm -rf conftest* | |
7939 | CATOBJEXT=.mo | |
7940 | DATADIRNAME=lib | |
7941 | fi | |
7942 | rm -f conftest* | |
7943 | INSTOBJEXT=.mo | |
7944 | fi | |
7945 | fi | |
7946 | ||
7947 | else | |
7948 | echo "$ac_t""no" 1>&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | if test "$CATOBJEXT" = "NONE"; then | |
7953 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
9ebbca7d | 7954 | echo "configure:7955: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7955 | # Check whether --with-catgets or --without-catgets was given. |
7956 | if test "${with_catgets+set}" = set; then | |
7957 | withval="$with_catgets" | |
7958 | nls_cv_use_catgets=$withval | |
7959 | else | |
7960 | nls_cv_use_catgets=no | |
7961 | fi | |
7962 | ||
7963 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7964 | ||
7965 | if test "$nls_cv_use_catgets" = "yes"; then | |
7966 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
9ebbca7d | 7967 | echo "configure:7968: checking for main in -li" >&5 |
ab87f8c8 JL |
7968 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7971 | else | |
7972 | ac_save_LIBS="$LIBS" | |
7973 | LIBS="-li $LIBS" | |
7974 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 7975 | #line 7976 "configure" |
ab87f8c8 JL |
7976 | #include "confdefs.h" |
7977 | ||
7978 | int main() { | |
7979 | main() | |
7980 | ; return 0; } | |
7981 | EOF | |
9ebbca7d | 7982 | if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7983 | rm -rf conftest* |
7984 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7985 | else | |
7986 | echo "configure: failed program was:" >&5 | |
7987 | cat conftest.$ac_ext >&5 | |
7988 | rm -rf conftest* | |
7989 | eval "ac_cv_lib_$ac_lib_var=no" | |
7990 | fi | |
7991 | rm -f conftest* | |
7992 | LIBS="$ac_save_LIBS" | |
7993 | ||
7994 | fi | |
7995 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7996 | echo "$ac_t""yes" 1>&6 | |
7997 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7998 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7999 | cat >> confdefs.h <<EOF | |
8000 | #define $ac_tr_lib 1 | |
8001 | EOF | |
8002 | ||
8003 | LIBS="-li $LIBS" | |
8004 | ||
8005 | else | |
8006 | echo "$ac_t""no" 1>&6 | |
8007 | fi | |
8008 | ||
8009 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
9ebbca7d | 8010 | echo "configure:8011: checking for catgets" >&5 |
ab87f8c8 JL |
8011 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
8012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8013 | else | |
8014 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 8015 | #line 8016 "configure" |
ab87f8c8 JL |
8016 | #include "confdefs.h" |
8017 | /* System header to define __stub macros and hopefully few prototypes, | |
8018 | which can conflict with char catgets(); below. */ | |
8019 | #include <assert.h> | |
8020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8021 | /* We use char because int might match the return type of a gcc2 | |
8022 | builtin and then its argument prototype would still apply. */ | |
8023 | char catgets(); | |
8024 | ||
8025 | int main() { | |
8026 | ||
8027 | /* The GNU C library defines this for functions which it implements | |
8028 | to always fail with ENOSYS. Some functions are actually named | |
8029 | something starting with __ and the normal name is an alias. */ | |
8030 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
8031 | choke me | |
8032 | #else | |
3ecc3258 | 8033 | catgets(); |
ab87f8c8 JL |
8034 | #endif |
8035 | ||
8036 | ; return 0; } | |
8037 | EOF | |
9ebbca7d | 8038 | if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
8039 | rm -rf conftest* |
8040 | eval "ac_cv_func_catgets=yes" | |
8041 | else | |
8042 | echo "configure: failed program was:" >&5 | |
8043 | cat conftest.$ac_ext >&5 | |
8044 | rm -rf conftest* | |
8045 | eval "ac_cv_func_catgets=no" | |
8046 | fi | |
8047 | rm -f conftest* | |
8048 | fi | |
8049 | ||
8050 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
8051 | echo "$ac_t""yes" 1>&6 | |
8052 | cat >> confdefs.h <<\EOF | |
8053 | #define HAVE_CATGETS 1 | |
8054 | EOF | |
8055 | ||
8056 | INTLOBJS="\$(CATOBJS)" | |
8057 | # Extract the first word of "gencat", so it can be a program name with args. | |
8058 | set dummy gencat; ac_word=$2 | |
8059 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8060 | echo "configure:8061: checking for $ac_word" >&5 |
ab87f8c8 JL |
8061 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
8062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8063 | else | |
8064 | case "$GENCAT" in | |
8065 | /*) | |
8066 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
8067 | ;; | |
8068 | ?:/*) | |
8069 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
8070 | ;; | |
8071 | *) | |
cd9e5e7c | 8072 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8073 | ac_dummy="$PATH" |
8074 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8075 | test -z "$ac_dir" && ac_dir=. |
8076 | if test -f $ac_dir/$ac_word; then | |
8077 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
8078 | break | |
8079 | fi | |
8080 | done | |
8081 | IFS="$ac_save_ifs" | |
8082 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
8083 | ;; | |
8084 | esac | |
8085 | fi | |
8086 | GENCAT="$ac_cv_path_GENCAT" | |
8087 | if test -n "$GENCAT"; then | |
8088 | echo "$ac_t""$GENCAT" 1>&6 | |
8089 | else | |
8090 | echo "$ac_t""no" 1>&6 | |
8091 | fi | |
8092 | if test "$GENCAT" != "no"; then | |
8093 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8094 | set dummy gmsgfmt; ac_word=$2 | |
8095 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8096 | echo "configure:8097: checking for $ac_word" >&5 |
ab87f8c8 JL |
8097 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8099 | else | |
8100 | case "$GMSGFMT" in | |
8101 | /*) | |
8102 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8103 | ;; | |
8104 | ?:/*) | |
8105 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
8106 | ;; | |
8107 | *) | |
cd9e5e7c | 8108 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8109 | ac_dummy="$PATH" |
8110 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8111 | test -z "$ac_dir" && ac_dir=. |
8112 | if test -f $ac_dir/$ac_word; then | |
8113 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8114 | break | |
8115 | fi | |
8116 | done | |
8117 | IFS="$ac_save_ifs" | |
8118 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
8119 | ;; | |
8120 | esac | |
8121 | fi | |
8122 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8123 | if test -n "$GMSGFMT"; then | |
8124 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8125 | else | |
8126 | echo "$ac_t""no" 1>&6 | |
8127 | fi | |
8128 | ||
8129 | if test "$GMSGFMT" = "no"; then | |
8130 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8131 | set dummy msgfmt; ac_word=$2 | |
8132 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8133 | echo "configure:8134: checking for $ac_word" >&5 |
ab87f8c8 JL |
8134 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8136 | else | |
8137 | case "$GMSGFMT" in | |
8138 | /*) | |
8139 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8140 | ;; | |
8141 | *) | |
8142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8143 | for ac_dir in $PATH; do | |
8144 | test -z "$ac_dir" && ac_dir=. | |
8145 | if test -f $ac_dir/$ac_word; then | |
8146 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8147 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8148 | break | |
8149 | fi | |
8150 | fi | |
8151 | done | |
8152 | IFS="$ac_save_ifs" | |
8153 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
8154 | ;; | |
8155 | esac | |
8156 | fi | |
8157 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8158 | if test -n "$GMSGFMT"; then | |
8159 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8160 | else | |
8161 | echo "$ac_t""no" 1>&6 | |
8162 | fi | |
8163 | ||
8164 | fi | |
8165 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8166 | set dummy xgettext; ac_word=$2 | |
8167 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8168 | echo "configure:8169: checking for $ac_word" >&5 |
ab87f8c8 JL |
8169 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8171 | else | |
8172 | case "$XGETTEXT" in | |
8173 | /*) | |
8174 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8175 | ;; | |
8176 | *) | |
8177 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8178 | for ac_dir in $PATH; do | |
8179 | test -z "$ac_dir" && ac_dir=. | |
8180 | if test -f $ac_dir/$ac_word; then | |
8181 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8182 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8183 | break | |
8184 | fi | |
8185 | fi | |
8186 | done | |
8187 | IFS="$ac_save_ifs" | |
8188 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8189 | ;; | |
8190 | esac | |
8191 | fi | |
8192 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8193 | if test -n "$XGETTEXT"; then | |
8194 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8195 | else | |
8196 | echo "$ac_t""no" 1>&6 | |
8197 | fi | |
8198 | ||
8199 | USE_INCLUDED_LIBINTL=yes | |
8200 | CATOBJEXT=.cat | |
8201 | INSTOBJEXT=.cat | |
8202 | DATADIRNAME=lib | |
8203 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8204 | INTLLIBS=$INTLDEPS | |
8205 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8206 | nls_cv_header_intl=intl/libintl.h | |
8207 | nls_cv_header_libgt=intl/libgettext.h | |
8208 | fi | |
8209 | else | |
8210 | echo "$ac_t""no" 1>&6 | |
8211 | fi | |
8212 | ||
8213 | fi | |
8214 | fi | |
8215 | ||
8216 | if test "$CATOBJEXT" = "NONE"; then | |
8217 | nls_cv_use_gnu_gettext=yes | |
8218 | fi | |
8219 | fi | |
8220 | ||
8221 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8222 | INTLOBJS="\$(GETTOBJS)" | |
8223 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8224 | set dummy msgfmt; ac_word=$2 | |
8225 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8226 | echo "configure:8227: checking for $ac_word" >&5 |
ab87f8c8 JL |
8227 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
8228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8229 | else | |
8230 | case "$MSGFMT" in | |
8231 | /*) | |
8232 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8233 | ;; | |
8234 | *) | |
8235 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8236 | for ac_dir in $PATH; do | |
8237 | test -z "$ac_dir" && ac_dir=. | |
8238 | if test -f $ac_dir/$ac_word; then | |
8239 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8240 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
8241 | break | |
8242 | fi | |
8243 | fi | |
8244 | done | |
8245 | IFS="$ac_save_ifs" | |
8246 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
8247 | ;; | |
8248 | esac | |
8249 | fi | |
8250 | MSGFMT="$ac_cv_path_MSGFMT" | |
8251 | if test -n "$MSGFMT"; then | |
8252 | echo "$ac_t""$MSGFMT" 1>&6 | |
8253 | else | |
8254 | echo "$ac_t""no" 1>&6 | |
8255 | fi | |
8256 | ||
8257 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8258 | set dummy gmsgfmt; ac_word=$2 | |
8259 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8260 | echo "configure:8261: checking for $ac_word" >&5 |
ab87f8c8 JL |
8261 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8263 | else | |
8264 | case "$GMSGFMT" in | |
8265 | /*) | |
8266 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8267 | ;; | |
8268 | ?:/*) | |
8269 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
8270 | ;; | |
8271 | *) | |
cd9e5e7c | 8272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8273 | ac_dummy="$PATH" |
8274 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8275 | test -z "$ac_dir" && ac_dir=. |
8276 | if test -f $ac_dir/$ac_word; then | |
8277 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8278 | break | |
8279 | fi | |
8280 | done | |
8281 | IFS="$ac_save_ifs" | |
8282 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
8283 | ;; | |
8284 | esac | |
8285 | fi | |
8286 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8287 | if test -n "$GMSGFMT"; then | |
8288 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8289 | else | |
8290 | echo "$ac_t""no" 1>&6 | |
8291 | fi | |
8292 | ||
8293 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8294 | set dummy xgettext; ac_word=$2 | |
8295 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ebbca7d | 8296 | echo "configure:8297: checking for $ac_word" >&5 |
ab87f8c8 JL |
8297 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8299 | else | |
8300 | case "$XGETTEXT" in | |
8301 | /*) | |
8302 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8303 | ;; | |
8304 | *) | |
8305 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8306 | for ac_dir in $PATH; do | |
8307 | test -z "$ac_dir" && ac_dir=. | |
8308 | if test -f $ac_dir/$ac_word; then | |
8309 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8310 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8311 | break | |
8312 | fi | |
8313 | fi | |
8314 | done | |
8315 | IFS="$ac_save_ifs" | |
8316 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8317 | ;; | |
8318 | esac | |
8319 | fi | |
8320 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8321 | if test -n "$XGETTEXT"; then | |
8322 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8323 | else | |
8324 | echo "$ac_t""no" 1>&6 | |
8325 | fi | |
8326 | ||
8327 | ||
8328 | USE_INCLUDED_LIBINTL=yes | |
8329 | CATOBJEXT=.gmo | |
8330 | INSTOBJEXT=.mo | |
8331 | DATADIRNAME=share | |
8332 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8333 | INTLLIBS=$INTLDEPS | |
8334 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8335 | nls_cv_header_intl=intl/libintl.h | |
8336 | nls_cv_header_libgt=intl/libgettext.h | |
8337 | fi | |
8338 | ||
8339 | if test "$XGETTEXT" != ":"; then | |
8340 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8341 | : ; | |
8342 | else | |
8343 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
8344 | XGETTEXT=":" | |
8345 | fi | |
8346 | fi | |
8347 | ||
8348 | # We need to process the po/ directory. | |
8349 | POSUB=po | |
8350 | else | |
8351 | DATADIRNAME=share | |
8352 | nls_cv_header_intl=intl/libintl.h | |
8353 | nls_cv_header_libgt=intl/libgettext.h | |
8354 | fi | |
8355 | ||
8356 | ||
8357 | ||
8358 | ||
8359 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8360 | # because some of the sources are only built for this goal. | |
8361 | if test "$PACKAGE" = gettext; then | |
8362 | USE_NLS=yes | |
8363 | USE_INCLUDED_LIBINTL=yes | |
8364 | fi | |
8365 | ||
8366 | for lang in $ALL_LINGUAS; do | |
8367 | GMOFILES="$GMOFILES $lang.gmo" | |
8368 | POFILES="$POFILES $lang.po" | |
8369 | done | |
8370 | ||
8371 | ||
8372 | ||
8373 | ||
8374 | ||
8375 | ||
8376 | ||
8377 | ||
8378 | ||
8379 | ||
8380 | ||
8381 | ||
8382 | ||
8383 | ||
8384 | if test "x$CATOBJEXT" != "x"; then | |
8385 | if test "x$ALL_LINGUAS" = "x"; then | |
8386 | LINGUAS= | |
8387 | else | |
8388 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
9ebbca7d | 8389 | echo "configure:8390: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
8390 | NEW_LINGUAS= |
8391 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8392 | case "$ALL_LINGUAS" in | |
8393 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8394 | esac | |
8395 | done | |
8396 | LINGUAS=$NEW_LINGUAS | |
8397 | echo "$ac_t""$LINGUAS" 1>&6 | |
8398 | fi | |
8399 | ||
8400 | if test -n "$LINGUAS"; then | |
8401 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8402 | fi | |
8403 | fi | |
8404 | ||
8405 | if test $ac_cv_header_locale_h = yes; then | |
8406 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8407 | else | |
8408 | INCLUDE_LOCALE_H="\ | |
8409 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8410 | fi | |
8411 | ||
8412 | ||
8413 | test -d intl || mkdir intl | |
8414 | if test "$CATOBJEXT" = ".cat"; then | |
8415 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
8416 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
9ebbca7d | 8417 | echo "configure:8418: checking for linux/version.h" >&5 |
ab87f8c8 JL |
8418 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8420 | else | |
8421 | cat > conftest.$ac_ext <<EOF | |
9ebbca7d | 8422 | #line 8423 "configure" |
ab87f8c8 JL |
8423 | #include "confdefs.h" |
8424 | #include <linux/version.h> | |
8425 | EOF | |
8426 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9ebbca7d | 8427 | { (eval echo configure:8428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 8428 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
8429 | if test -z "$ac_err"; then |
8430 | rm -rf conftest* | |
8431 | eval "ac_cv_header_$ac_safe=yes" | |
8432 | else | |
8433 | echo "$ac_err" >&5 | |
8434 | echo "configure: failed program was:" >&5 | |
8435 | cat conftest.$ac_ext >&5 | |
8436 | rm -rf conftest* | |
8437 | eval "ac_cv_header_$ac_safe=no" | |
8438 | fi | |
8439 | rm -f conftest* | |
8440 | fi | |
8441 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8442 | echo "$ac_t""yes" 1>&6 | |
8443 | msgformat=linux | |
8444 | else | |
8445 | echo "$ac_t""no" 1>&6 | |
8446 | msgformat=xopen | |
8447 | fi | |
8448 | ||
8449 | ||
8450 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
8451 | fi | |
8452 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8453 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
8454 | ||
8455 | if test "$PACKAGE" = "gettext"; then | |
8456 | GT_NO="#NO#" | |
8457 | GT_YES= | |
8458 | else | |
8459 | GT_NO= | |
8460 | GT_YES="#YES#" | |
8461 | fi | |
8462 | ||
8463 | ||
8464 | ||
8465 | MKINSTALLDIRS= | |
8466 | if test -n "$ac_aux_dir"; then | |
8467 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
8468 | fi | |
8469 | if test -z "$MKINSTALLDIRS"; then | |
8470 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
8471 | fi | |
8472 | ||
8473 | ||
8474 | l= | |
8475 | ||
8476 | ||
8477 | test -d po || mkdir po | |
8478 | if test "x$srcdir" != "x."; then | |
8479 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8480 | posrcprefix="$srcdir/" | |
8481 | else | |
8482 | posrcprefix="../$srcdir/" | |
8483 | fi | |
8484 | else | |
8485 | posrcprefix="../" | |
8486 | fi | |
8487 | rm -f po/POTFILES | |
8488 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8489 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8490 | ||
8491 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
8492 | ||
f4ab28e3 MK |
8493 | # Windows32 Registry support for specifying GCC installation paths. |
8494 | # Check whether --enable-win32-registry or --disable-win32-registry was given. | |
8495 | if test "${enable_win32_registry+set}" = set; then | |
8496 | enableval="$enable_win32_registry" | |
8497 | : | |
8498 | fi | |
8499 | ||
8500 | ||
8501 | echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 | |
9ebbca7d | 8502 | echo "configure:8503: checking whether windows registry support is requested" >&5 |
f4ab28e3 MK |
8503 | if test x$enable_win32_registry != xno; then |
8504 | cat >> confdefs.h <<\EOF | |
8505 | #define ENABLE_WIN32_REGISTRY 1 | |
8506 | EOF | |
8507 | ||
8508 | echo "$ac_t""yes" 1>&6 | |
8509 | else | |
8510 | echo "$ac_t""no" 1>&6 | |
8511 | fi | |
8512 | ||
8513 | # Check if user specified a different registry key. | |
8514 | case x${enable_win32_registry} in | |
8515 | x | xyes) | |
8516 | # default. | |
8517 | gcc_cv_win32_registry_key="$VERSION" | |
8518 | ;; | |
8519 | xno) | |
8520 | # no registry lookup. | |
8521 | gcc_cv_win32_registry_key='' | |
8522 | ;; | |
8523 | *) | |
8524 | # user-specified key. | |
8525 | gcc_cv_win32_registry_key="$enable_win32_registry" | |
8526 | ;; | |
8527 | esac | |
8528 | ||
8529 | if test x$enable_win32_registry != xno; then | |
8530 | echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 | |
9ebbca7d | 8531 | echo "configure:8532: checking registry key on windows hosts" >&5 |
f4ab28e3 MK |
8532 | cat >> confdefs.h <<EOF |
8533 | #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key" | |
8534 | EOF | |
8535 | ||
8536 | echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6 | |
8537 | fi | |
8538 | ||
ab87f8c8 JL |
8539 | # Get an absolute path to the GCC top-level source directory |
8540 | holddir=`pwd` | |
8541 | cd $srcdir | |
8542 | topdir=`pwd` | |
8543 | cd $holddir | |
8544 | ||
8545 | # Conditionalize the makefile for this host machine. | |
8546 | # Make-host contains the concatenation of all host makefile fragments | |
8547 | # [there can be more than one]. This file is built by configure.frag. | |
8548 | host_overrides=Make-host | |
8549 | dep_host_xmake_file= | |
8550 | for f in .. ${host_xmake_file} | |
8551 | do | |
8552 | if test -f ${srcdir}/config/$f | |
8553 | then | |
8554 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
8555 | fi | |
8556 | done | |
8557 | ||
8558 | # Conditionalize the makefile for this target machine. | |
8559 | # Make-target contains the concatenation of all host makefile fragments | |
8560 | # [there can be more than one]. This file is built by configure.frag. | |
8561 | target_overrides=Make-target | |
8562 | dep_tmake_file= | |
8563 | for f in .. ${tmake_file} | |
8564 | do | |
8565 | if test -f ${srcdir}/config/$f | |
8566 | then | |
8567 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
8568 | fi | |
8569 | done | |
8570 | ||
8571 | # If the host doesn't support symlinks, modify CC in | |
8572 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
8573 | # Otherwise, we can use "CC=$(CC)". | |
8574 | rm -f symtest.tem | |
8575 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
8576 | then | |
8577 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 8578 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
8579 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
8580 | else | |
8581 | rm -f symtest.tem | |
8582 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
8583 | then | |
8584 | symbolic_link="cp -p" | |
8585 | else | |
8586 | symbolic_link="cp" | |
8587 | fi | |
8588 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 8589 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
8590 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
8591 | fi | |
8592 | rm -f symtest.tem | |
8593 | ||
8594 | out_object_file=`basename $out_file .c`.o | |
8595 | ||
8596 | tm_file_list= | |
8597 | for f in $tm_file; do | |
64ccbc99 KG |
8598 | case $f in |
8599 | gansidecl.h ) | |
8600 | tm_file_list="${tm_file_list} $f" ;; | |
8601 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
8602 | esac | |
ab87f8c8 JL |
8603 | done |
8604 | ||
8605 | host_xm_file_list= | |
8606 | for f in $host_xm_file; do | |
64ccbc99 KG |
8607 | case $f in |
8608 | auto-host.h | gansidecl.h | hwint.h ) | |
8609 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
8610 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
8611 | esac | |
ab87f8c8 JL |
8612 | done |
8613 | ||
8614 | build_xm_file_list= | |
8615 | for f in $build_xm_file; do | |
64ccbc99 KG |
8616 | case $f in |
8617 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
8618 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
8619 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
8620 | esac | |
ab87f8c8 JL |
8621 | done |
8622 | ||
8623 | # Define macro CROSS_COMPILE in compilation | |
8624 | # if this is a cross-compiler. | |
8625 | # Also use all.cross instead of all.internal | |
8626 | # and add cross-make to Makefile. | |
8627 | cross_overrides="/dev/null" | |
8628 | if test x$host != x$target | |
8629 | then | |
8630 | cross_defines="CROSS=-DCROSS_COMPILE" | |
8631 | cross_overrides="${topdir}/cross-make" | |
8632 | fi | |
8633 | ||
8634 | # When building gcc with a cross-compiler, we need to fix a few things. | |
8635 | # This must come after cross-make as we want all.build to override | |
8636 | # all.cross. | |
8637 | build_overrides="/dev/null" | |
8638 | if test x$build != x$host | |
8639 | then | |
8640 | build_overrides="${topdir}/build-make" | |
8641 | fi | |
8642 | ||
8643 | # Expand extra_headers to include complete path. | |
8644 | # This substitutes for lots of t-* files. | |
8645 | extra_headers_list= | |
8646 | if test "x$extra_headers" = x | |
8647 | then true | |
8648 | else | |
8649 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
8650 | for file in $extra_headers; | |
8651 | do | |
8652 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8653 | done | |
8654 | fi | |
8655 | ||
8656 | if test x$use_collect2 = xno; then | |
8657 | use_collect2= | |
8658 | fi | |
8659 | ||
8660 | # Add a definition of USE_COLLECT2 if system wants one. | |
8661 | # Also tell toplev.c what to do. | |
8662 | # This substitutes for lots of t-* files. | |
8663 | if test x$use_collect2 = x | |
8664 | then | |
8665 | will_use_collect2= | |
8666 | maybe_use_collect2= | |
8667 | else | |
8668 | will_use_collect2="collect2" | |
8669 | maybe_use_collect2="-DUSE_COLLECT2" | |
8670 | fi | |
8671 | ||
8672 | # NEED TO CONVERT | |
8673 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8674 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8675 | # for line oriented comments, so we must always use a GNU cpp. If | |
8676 | # building gcc with a cross compiler, use the cross compiler just | |
8677 | # built. Otherwise, we can use the cpp just built. | |
8678 | md_file_sub= | |
8679 | if test "x$md_cppflags" = x | |
8680 | then | |
8681 | md_file_sub=$srcdir/config/$md_file | |
8682 | else | |
8683 | md_file=md | |
8684 | fi | |
8685 | ||
8686 | # If we have gas in the build tree, make a link to it. | |
8687 | if test -f ../gas/Makefile; then | |
8688 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8689 | fi | |
8690 | ||
8691 | # If we have nm in the build tree, make a link to it. | |
8692 | if test -f ../binutils/Makefile; then | |
8693 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8694 | fi | |
8695 | ||
8696 | # If we have ld in the build tree, make a link to it. | |
8697 | if test -f ../ld/Makefile; then | |
8698 | # if test x$use_collect2 = x; then | |
8699 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8700 | # else | |
8701 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8702 | # fi | |
8703 | fi | |
8704 | ||
8705 | # Figure out what assembler alignment features are present. | |
8706 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
9ebbca7d | 8707 | echo "configure:8708: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8708 | gcc_cv_as= |
8709 | gcc_cv_as_alignment_features= | |
8710 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8711 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8712 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8713 | elif test -x "$AS"; then | |
8714 | gcc_cv_as="$AS" | |
8715 | elif test -x as$host_exeext; then | |
8716 | # Build using assembler in the current directory. | |
8717 | gcc_cv_as=./as$host_exeext | |
8718 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8719 | # Single tree build which includes gas. | |
8720 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8721 | do | |
8722 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8723 | if test x$gcc_cv_gas_version != x; then | |
8724 | break | |
8725 | fi | |
8726 | done | |
8727 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8728 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8729 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8730 | # Gas version 2.6 and later support for .balign and .p2align. | |
8731 | # bytes to skip when using .p2align. | |
8732 | if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then | |
8733 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8734 | cat >> confdefs.h <<\EOF | |
8735 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8736 | EOF | |
8737 | ||
8738 | fi | |
8739 | # Gas version 2.8 and later support specifying the maximum | |
8740 | # bytes to skip when using .p2align. | |
8741 | if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then | |
8742 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8743 | cat >> confdefs.h <<\EOF | |
8744 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8745 | EOF |
8746 | ||
0b9d02c6 | 8747 | fi |
9e423e6d | 8748 | fi |
75bffa71 | 8749 | elif test x$host = x$target; then |
9e423e6d | 8750 | # Native build. |
779243f7 JL |
8751 | # Search the same directories that the installed compiler will |
8752 | # search. Else we may find the wrong assembler and lose. If we | |
8753 | # do not find a suitable assembler binary, then try the user's | |
8754 | # path. | |
8755 | # | |
8756 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8757 | # user's path. Unfortunately, there is no good way to get at the | |
8758 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8759 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8760 | # to be fixed as part of the make/configure rewrite too. | |
8761 | ||
8762 | if test "x$exec_prefix" = xNONE; then | |
8763 | if test "x$prefix" = xNONE; then | |
8764 | test_prefix=/usr/local | |
8765 | else | |
8766 | test_prefix=$prefix | |
8767 | fi | |
8768 | else | |
8769 | test_prefix=$exec_prefix | |
8770 | fi | |
8771 | ||
8772 | # If the loop below does not find an assembler, then use whatever | |
8773 | # one we can find in the users's path. | |
8774 | # user's path. | |
8775 | as=as$host_exeext | |
8776 | ||
8777 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8778 | $test_prefix/lib/gcc-lib/$target \ | |
8779 | /usr/lib/gcc/$target/$gcc_version \ | |
8780 | /usr/lib/gcc/$target \ | |
8781 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8782 | $test_prefix/$target/bin \ | |
8783 | /usr/libexec \ | |
8784 | /usr/ccs/gcc \ | |
8785 | /usr/ccs/bin \ | |
8786 | /udk/usr/ccs/bin \ | |
8787 | /bsd43/usr/lib/cmplrs/cc \ | |
8788 | /usr/cross64/usr/bin \ | |
8789 | /usr/lib/cmplrs/cc \ | |
8790 | /sysv/usr/lib/cmplrs/cc \ | |
8791 | /svr4/usr/lib/cmplrs/cc \ | |
8792 | /usr/bin" | |
8793 | ||
8794 | for dir in $test_dirs; do | |
8795 | if test -f $dir/as$host_exeext; then | |
8796 | gcc_cv_as=$dir/as$host_exeext | |
8797 | break; | |
8798 | fi | |
8799 | done | |
9e423e6d | 8800 | fi |
75bffa71 | 8801 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8802 | # Check if we have .balign and .p2align |
8803 | echo ".balign 4" > conftest.s | |
8804 | echo ".p2align 2" >> conftest.s | |
8805 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8806 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8807 | cat >> confdefs.h <<\EOF | |
8808 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8809 | EOF | |
8810 | ||
8811 | fi | |
8812 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8813 | # Check if specifying the maximum bytes to skip when |
8814 | # using .p2align is supported. | |
8815 | echo ".p2align 4,,7" > conftest.s | |
8816 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8817 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8818 | cat >> confdefs.h <<\EOF | |
8819 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8820 | EOF | |
8821 | ||
8822 | fi | |
8823 | rm -f conftest.s conftest.o | |
8824 | fi | |
8825 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8826 | ||
d1accaa3 | 8827 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
9ebbca7d | 8828 | echo "configure:8829: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8829 | gcc_cv_as_subsections= |
8830 | if test x$gcc_cv_as != x; then | |
8831 | # Check if we have .subsection | |
8832 | echo ".subsection 1" > conftest.s | |
8833 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8834 | gcc_cv_as_subsections=".subsection" | |
8835 | if test -x nm$host_exeext; then | |
8836 | gcc_cv_nm=./nm$host_exeext | |
8837 | elif test x$host = x$target; then | |
8838 | # Native build. | |
8839 | gcc_cv_nm=nm$host_exeext | |
8840 | fi | |
8841 | if test x$gcc_cv_nm != x; then | |
8842 | cat > conftest.s <<EOF | |
8843 | conftest_label1: .word 0 | |
8844 | .subsection -1 | |
8845 | conftest_label2: .word 0 | |
8846 | .previous | |
8847 | EOF | |
8848 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8849 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8850 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8851 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8852 | : | |
8853 | else | |
d1accaa3 JJ |
8854 | gcc_cv_as_subsections="working .subsection -1" |
8855 | cat >> confdefs.h <<\EOF | |
8856 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8857 | EOF | |
8858 | ||
8859 | fi | |
8860 | fi | |
8861 | fi | |
8862 | fi | |
8863 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8864 | fi | |
8865 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8866 | ||
12822146 | 8867 | echo $ac_n "checking assembler weak support""... $ac_c" 1>&6 |
9ebbca7d | 8868 | echo "configure:8869: checking assembler weak support" >&5 |
12822146 JL |
8869 | gcc_cv_as_weak= |
8870 | if test x$gcc_cv_as != x; then | |
8871 | # Check if we have .weak | |
8872 | echo " .weak foobar" > conftest.s | |
8873 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8874 | cat >> confdefs.h <<\EOF | |
8875 | #define HAVE_GAS_WEAK 1 | |
8876 | EOF | |
8877 | ||
8878 | gcc_cv_as_weak="yes" | |
8879 | fi | |
8880 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8881 | fi | |
8882 | echo "$ac_t""$gcc_cv_as_weak" 1>&6 | |
8883 | ||
1cb36a98 RH |
8884 | case "$target" in |
8885 | sparc*-*-*) | |
8886 | echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 | |
9ebbca7d | 8887 | echo "configure:8888: checking assembler .register pseudo-op support" >&5 |
5b68c389 AO |
8888 | if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then |
8889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8890 | else | |
8891 | ||
8892 | gcc_cv_as_register_pseudo_op=unknown | |
8893 | if test x$gcc_cv_as != x; then | |
8894 | # Check if we have .register | |
8895 | echo ".register %g2, #scratch" > conftest.s | |
8896 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
1cb36a98 | 8897 | gcc_cv_as_register_pseudo_op=yes |
5b68c389 AO |
8898 | else |
8899 | gcc_cv_as_register_pseudo_op=no | |
8900 | fi | |
8901 | rm -f conftest.s conftest.o | |
8902 | fi | |
8903 | ||
8904 | fi | |
8905 | ||
8906 | echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6 | |
8907 | if test "x$gcc_cv_as_register_pseudo_op" = xyes; then | |
8908 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8909 | #define HAVE_AS_REGISTER_PSEUDO_OP 1 |
8910 | EOF | |
8911 | ||
1cb36a98 | 8912 | fi |
1cb36a98 | 8913 | |
5b68c389 AO |
8914 | case "$tm_file" in |
8915 | *64*) | |
8916 | echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6 | |
9ebbca7d | 8917 | echo "configure:8918: checking for 64 bit support in assembler ($gcc_cv_as)" >&5 |
5b68c389 AO |
8918 | if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then |
8919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8920 | else | |
8921 | ||
8922 | if test -n "$gcc_cv_as"; then | |
8923 | echo ".xword foo" > conftest.s | |
8924 | gcc_cv_as_flags64=no | |
8a90b95d | 8925 | for flag in "-xarch=v9" "-64 -Av9"; do |
5b68c389 AO |
8926 | if $gcc_cv_as $flag -o conftest.o conftest.s \ |
8927 | > /dev/null 2>&1; then | |
8928 | gcc_cv_as_flags64=$flag | |
8929 | break | |
8930 | fi | |
8931 | done | |
8932 | rm -f conftest.s conftest.o | |
8933 | else | |
8934 | if test "$gas" = yes; then | |
8935 | gcc_cv_as_flags64="-64 -Av9" | |
8936 | else | |
8937 | gcc_cv_as_flags64="-xarch=v9" | |
8938 | fi | |
1cb36a98 | 8939 | fi |
5b68c389 AO |
8940 | |
8941 | fi | |
8942 | ||
8943 | echo "$ac_t""$gcc_cv_as_flags64" 1>&6 | |
8944 | if test "x$gcc_cv_as_flags64" = xno; then | |
8945 | ||
8946 | tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8947 | dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8948 | ||
8949 | else | |
8950 | cat >> confdefs.h <<EOF | |
8951 | #define AS_SPARC64_FLAG "$gcc_cv_as_flags64" | |
8952 | EOF | |
8953 | ||
1cb36a98 | 8954 | fi |
5b68c389 AO |
8955 | ;; |
8956 | *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no} | |
8957 | ;; | |
8958 | esac | |
8959 | ||
8960 | if test "x$gcc_cv_as_flags64" != xno; then | |
8961 | echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6 | |
9ebbca7d | 8962 | echo "configure:8963: checking for assembler offsetable %lo() support" >&5 |
5b68c389 AO |
8963 | if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then |
8964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8965 | else | |
8966 | ||
8967 | gcc_cv_as_offsetable_lo10=unknown | |
8968 | if test "x$gcc_cv_as" != x; then | |
8969 | # Check if assembler has offsetable %lo() | |
8970 | echo "or %g1, %lo(ab) + 12, %g1" > conftest.s | |
8971 | echo "or %g1, %lo(ab + 12), %g1" > conftest1.s | |
8972 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \ | |
8973 | > /dev/null 2>&1 && | |
8974 | $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \ | |
8975 | > /dev/null 2>&1; then | |
8976 | if cmp conftest.o conftest1.o > /dev/null 2>&1; then | |
8977 | gcc_cv_as_offsetable_lo10=no | |
8978 | else | |
8979 | gcc_cv_as_offsetable_lo10=yes | |
8980 | fi | |
8981 | else | |
8982 | gcc_cv_as_offsetable_lo10=no | |
8983 | fi | |
8984 | rm -f conftest.s conftest.o conftest1.s conftest1.o | |
8985 | fi | |
8986 | ||
8987 | fi | |
8988 | ||
8989 | echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6 | |
8990 | if test "x$gcc_cv_as_offsetable_lo10" = xyes; then | |
8991 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8992 | #define HAVE_AS_OFFSETABLE_LO10 1 |
8993 | EOF | |
8994 | ||
1cb36a98 | 8995 | fi |
1cb36a98 | 8996 | fi |
1cb36a98 RH |
8997 | ;; |
8998 | ||
8999 | i[34567]86-*-*) | |
9000 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 | |
9ebbca7d | 9001 | echo "configure:9002: checking assembler instructions" >&5 |
1cb36a98 RH |
9002 | gcc_cv_as_instructions= |
9003 | if test x$gcc_cv_as != x; then | |
53b5ce19 JW |
9004 | set "filds fists" "filds mem; fists mem" |
9005 | while test $# -gt 0 | |
9006 | do | |
9007 | echo "$2" > conftest.s | |
9008 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
9009 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
9010 | cat >> confdefs.h <<EOF | |
9011 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
9012 | EOF | |
9013 | ||
9014 | fi | |
9015 | shift 2 | |
9016 | done | |
9017 | rm -f conftest.s conftest.o | |
1cb36a98 RH |
9018 | fi |
9019 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
9020 | ;; | |
9021 | esac | |
53b5ce19 | 9022 | |
861bb6c1 | 9023 | # Figure out what language subdirectories are present. |
71205e0b MH |
9024 | # Look if the user specified --enable-languages="..."; if not, use |
9025 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
9026 | # go away some day. | |
9027 | if test x"${enable_languages+set}" != xset; then | |
9028 | if test x"${LANGUAGES+set}" = xset; then | |
9029 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
9030 | else | |
9031 | enable_languages=all | |
9032 | fi | |
9033 | fi | |
861bb6c1 JL |
9034 | subdirs= |
9035 | for lang in ${srcdir}/*/config-lang.in .. | |
9036 | do | |
9037 | case $lang in | |
9038 | ..) ;; | |
9039 | # The odd quoting in the next line works around | |
9040 | # an apparent bug in bash 1.12 on linux. | |
9041 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
9042 | *) |
9043 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
9044 | if test "x$lang_alias" = x | |
9045 | then | |
9046 | echo "$lang doesn't set \$language." 1>&2 | |
9047 | exit 1 | |
9048 | fi | |
9049 | if test x"${enable_languages}" = xall; then | |
9050 | add_this_lang=yes | |
9051 | else | |
9052 | case "${enable_languages}" in | |
9053 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
9054 | add_this_lang=yes | |
9055 | ;; | |
9056 | * ) | |
9057 | add_this_lang=no | |
9058 | ;; | |
9059 | esac | |
9060 | fi | |
9061 | if test x"${add_this_lang}" = xyes; then | |
9062 | case $lang in | |
9063 | ${srcdir}/ada/config-lang.in) | |
9064 | if test x$gnat = xyes ; then | |
9065 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
9066 | fi | |
9067 | ;; | |
9068 | *) | |
9069 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
9070 | ;; | |
9071 | esac | |
9072 | fi | |
9073 | ;; | |
861bb6c1 JL |
9074 | esac |
9075 | done | |
9076 | ||
f24af81b TT |
9077 | # Make gthr-default.h if we have a thread file. |
9078 | gthread_flags= | |
75bffa71 | 9079 | if test $thread_file != single; then |
f24af81b | 9080 | rm -f gthr-default.h |
db0d1ed9 | 9081 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
9082 | gthread_flags=-DHAVE_GTHR_DEFAULT |
9083 | fi | |
9084 | ||
9085 | ||
81bf3d9e RH |
9086 | # Find out what GC implementation we want, or may, use. |
9087 | # Check whether --with-gc or --without-gc was given. | |
9088 | if test "${with_gc+set}" = set; then | |
9089 | withval="$with_gc" | |
9090 | case "$withval" in | |
9091 | simple | page) | |
9092 | GGC=ggc-$withval | |
9093 | ;; | |
9094 | *) | |
9095 | { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; } | |
9096 | ;; | |
9097 | esac | |
9098 | else | |
4acab94b AO |
9099 | if test $ac_cv_func_mmap_anywhere = yes \ |
9100 | || test $ac_cv_func_valloc = yes; then | |
005537df | 9101 | GGC=ggc-page |
81bf3d9e RH |
9102 | else |
9103 | GGC=ggc-simple | |
9104 | fi | |
9105 | fi | |
9106 | ||
9107 | ||
9108 | echo "Using $GGC for garbage collection." | |
9109 | ||
7441a352 NS |
9110 | # Build a new-abi (c++) system |
9111 | # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given. | |
9112 | if test "${enable_new_gxx_abi+set}" = set; then | |
9113 | enableval="$enable_new_gxx_abi" | |
9114 | cat >> confdefs.h <<\EOF | |
9115 | #define ENABLE_NEW_GXX_ABI 1 | |
9116 | EOF | |
9117 | ||
9118 | GXX_ABI_FLAG='-fnew-abi' | |
9119 | echo "Building a new-abi g++ compiler." | |
9120 | ||
9121 | fi | |
9122 | ||
9123 | ||
9124 | ||
861bb6c1 JL |
9125 | # Make empty files to contain the specs and options for each language. |
9126 | # Then add #include lines to for a compiler that has specs and/or options. | |
9127 | ||
9128 | lang_specs_files= | |
9129 | lang_options_files= | |
3103b7db ML |
9130 | lang_tree_files= |
9131 | rm -f specs.h options.h gencheck.h | |
9132 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
9133 | for subdir in . $subdirs |
9134 | do | |
75bffa71 | 9135 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
9136 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
9137 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
9138 | fi | |
75bffa71 | 9139 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
9140 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
9141 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
9142 | fi | |
3103b7db ML |
9143 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
9144 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
9145 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
9146 | fi | |
861bb6c1 JL |
9147 | done |
9148 | ||
9149 | # These (without "all_") are set in each config-lang.in. | |
9150 | # `language' must be a single word so is spelled singularly. | |
9151 | all_languages= | |
9152 | all_boot_languages= | |
9153 | all_compilers= | |
9154 | all_stagestuff= | |
9155 | all_diff_excludes= | |
e4476d1c | 9156 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug' |
861bb6c1 JL |
9157 | # List of language makefile fragments. |
9158 | all_lang_makefiles= | |
9159 | all_headers= | |
9160 | all_lib2funcs= | |
9161 | ||
9162 | # Add the language fragments. | |
9163 | # Languages are added via two mechanisms. Some information must be | |
9164 | # recorded in makefile variables, these are defined in config-lang.in. | |
9165 | # We accumulate them and plug them into the main Makefile. | |
9166 | # The other mechanism is a set of hooks for each of the main targets | |
9167 | # like `clean', `install', etc. | |
9168 | ||
9169 | language_fragments="Make-lang" | |
9170 | language_hooks="Make-hooks" | |
9171 | oldstyle_subdirs= | |
9172 | ||
9173 | for s in .. $subdirs | |
9174 | do | |
75bffa71 | 9175 | if test $s != ".." |
861bb6c1 JL |
9176 | then |
9177 | language= | |
9178 | boot_language= | |
9179 | compilers= | |
9180 | stagestuff= | |
9181 | diff_excludes= | |
9182 | headers= | |
9183 | outputs= | |
9184 | lib2funcs= | |
9185 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 9186 | if test "x$language" = x |
861bb6c1 JL |
9187 | then |
9188 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
9189 | exit 1 | |
9190 | fi | |
9191 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
9192 | all_languages="$all_languages $language" | |
75bffa71 | 9193 | if test "x$boot_language" = xyes |
861bb6c1 JL |
9194 | then |
9195 | all_boot_languages="$all_boot_languages $language" | |
9196 | fi | |
9197 | all_compilers="$all_compilers $compilers" | |
9198 | all_stagestuff="$all_stagestuff $stagestuff" | |
9199 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
9200 | all_headers="$all_headers $headers" | |
9201 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 9202 | if test x$outputs = x |
861bb6c1 JL |
9203 | then |
9204 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
9205 | fi | |
9206 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
9207 | fi | |
9208 | done | |
9209 | ||
9210 | # Since we can't use `::' targets, we link each language in | |
9211 | # with a set of hooks, reached indirectly via lang.${target}. | |
9212 | ||
9213 | rm -f Make-hooks | |
9214 | touch Make-hooks | |
9215 | target_list="all.build all.cross start.encap rest.encap \ | |
9216 | info dvi \ | |
9217 | install-normal install-common install-info install-man \ | |
9218 | uninstall distdir \ | |
9219 | mostlyclean clean distclean extraclean maintainer-clean \ | |
9220 | stage1 stage2 stage3 stage4" | |
9221 | for t in $target_list | |
9222 | do | |
9223 | x= | |
ab87f8c8 | 9224 | for lang in .. $all_languages |
861bb6c1 | 9225 | do |
ab87f8c8 JL |
9226 | if test $lang != ".."; then |
9227 | x="$x $lang.$t" | |
861bb6c1 JL |
9228 | fi |
9229 | done | |
9230 | echo "lang.$t: $x" >> Make-hooks | |
9231 | done | |
9232 | ||
9233 | # If we're not building in srcdir, create .gdbinit. | |
9234 | ||
75bffa71 | 9235 | if test ! -f Makefile.in; then |
861bb6c1 JL |
9236 | echo "dir ." > .gdbinit |
9237 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 9238 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
9239 | then |
9240 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
9241 | fi | |
75bffa71 | 9242 | if test "x$subdirs" != x; then |
861bb6c1 JL |
9243 | for s in $subdirs |
9244 | do | |
9245 | echo "dir ${srcdir}/$s" >> .gdbinit | |
9246 | done | |
9247 | fi | |
9248 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
9249 | fi | |
9250 | ||
88111b26 JL |
9251 | # Define variables host_canonical and build_canonical |
9252 | # because some Cygnus local changes in the Makefile depend on them. | |
9253 | build_canonical=${build} | |
9254 | host_canonical=${host} | |
9255 | target_subdir= | |
75bffa71 | 9256 | if test "${host}" != "${target}" ; then |
88111b26 JL |
9257 | target_subdir=${target}/ |
9258 | fi | |
9259 | ||
9260 | ||
9261 | ||
9262 | ||
dec88383 DE |
9263 | # If this is using newlib, then define inhibit_libc in |
9264 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
9265 | # libgcc.a, but that's OK because newib should have its own version of | |
9266 | # assert.h. | |
9267 | inhibit_libc= | |
75bffa71 | 9268 | if test x$with_newlib = xyes; then |
dec88383 DE |
9269 | inhibit_libc=-Dinhibit_libc |
9270 | fi | |
9271 | ||
9272 | ||
8f8d3278 NC |
9273 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
9274 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
9275 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
9276 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
9277 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
9278 | # make and thus we'd get different behavior depending on where we built the | |
9279 | # sources. | |
5949a9fc | 9280 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
9281 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
9282 | else | |
8f8d3278 NC |
9283 | # An explanation of the sed strings: |
9284 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
9285 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
9286 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
9287 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
9288 | # | |
9289 | # (*) Note this pattern overwrites the first character of the string | |
9290 | # with a forward slash if one is not already present. This is not a | |
9291 | # problem because the exact names of the sub-directories concerned is | |
9292 | # unimportant, just the number of them matters. | |
9293 | # | |
9294 | # The practical upshot of these patterns is like this: | |
9295 | # | |
9296 | # prefix exec_prefix result | |
9297 | # ------ ----------- ------ | |
9298 | # /foo /foo/bar ../ | |
9299 | # /foo/ /foo/bar ../ | |
9300 | # /foo /foo/bar/ ../ | |
9301 | # /foo/ /foo/bar/ ../ | |
9302 | # /foo /foo/bar/ugg ../../ | |
9303 | # | |
4c112cda NC |
9304 | dollar='$$' |
9305 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
9306 | fi |
9307 | ||
9308 | ||
2ce3c6c6 | 9309 | |
7e717196 JL |
9310 | # Nothing to do for FLOAT_H, float_format already handled. |
9311 | objdir=`pwd` | |
9312 | ||
9313 | ||
861bb6c1 JL |
9314 | # Process the language and host/target makefile fragments. |
9315 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
9316 | ||
9317 | # Substitute configuration variables | |
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9b16d2c4 | 9364 | |
e9a25f70 | 9365 | |
6e26218f | 9366 | |
c8724862 | 9367 | |
e061d1ce | 9368 | |
f1943b77 | 9369 | |
0b9d02c6 | 9370 | |
3103b7db | 9371 | |
d8bb17c8 | 9372 | |
9fc9b82a L |
9373 | |
9374 | ||
861bb6c1 JL |
9375 | |
9376 | ||
9377 | # Echo that links are built | |
75bffa71 | 9378 | if test x$host = x$target |
861bb6c1 JL |
9379 | then |
9380 | str1="native " | |
9381 | else | |
9382 | str1="cross-" | |
9383 | str2=" from $host" | |
9384 | fi | |
9385 | ||
75bffa71 | 9386 | if test x$host != x$build |
861bb6c1 JL |
9387 | then |
9388 | str3=" on a $build system" | |
9389 | fi | |
9390 | ||
75bffa71 | 9391 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9392 | then |
9393 | str4= | |
9394 | fi | |
9395 | ||
9396 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
9397 | ||
75bffa71 | 9398 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9399 | then |
9400 | echo " ${str2}${str3}." 1>&2 | |
9401 | fi | |
9402 | ||
f6cb0e63 | 9403 | # Truncate the target if necessary |
75bffa71 | 9404 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
9405 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
9406 | fi | |
9407 | ||
861bb6c1 JL |
9408 | # Configure the subdirectories |
9409 | # AC_CONFIG_SUBDIRS($subdirs) | |
9410 | ||
9411 | # Create the Makefile | |
9412 | # and configure language subdirectories | |
9413 | trap '' 1 2 15 | |
9414 | cat > confcache <<\EOF | |
9415 | # This file is a shell script that caches the results of configure | |
9416 | # tests run on this system so they can be shared between configure | |
9417 | # scripts and configure runs. It is not useful on other systems. | |
9418 | # If it contains results you don't want to keep, you may remove or edit it. | |
9419 | # | |
9420 | # By default, configure uses ./config.cache as the cache file, | |
9421 | # creating it if it does not exist already. You can give configure | |
9422 | # the --cache-file=FILE option to use a different cache file; that is | |
9423 | # what configure does when it calls configure scripts in | |
9424 | # subdirectories, so they share the cache. | |
9425 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9426 | # config.status only pays attention to the cache file if you give it the | |
9427 | # --recheck option to rerun configure. | |
9428 | # | |
9429 | EOF | |
9430 | # The following way of writing the cache mishandles newlines in values, | |
9431 | # but we know of no workaround that is simple, portable, and efficient. | |
9432 | # So, don't put newlines in cache variables' values. | |
9433 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9434 | # and sets the high bit in the cache file unless we assign to the vars. | |
9435 | (set) 2>&1 | | |
b27d2bd5 | 9436 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
9437 | *ac_space=\ *) |
9438 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9439 | # turns \\\\ into \\, and sed turns \\ into \). | |
9440 | sed -n \ | |
9441 | -e "s/'/'\\\\''/g" \ | |
9442 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9443 | ;; | |
9444 | *) | |
9445 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9446 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9447 | ;; | |
9448 | esac >> confcache | |
9449 | if cmp -s $cache_file confcache; then | |
9450 | : | |
9451 | else | |
9452 | if test -w $cache_file; then | |
9453 | echo "updating cache $cache_file" | |
9454 | cat confcache > $cache_file | |
9455 | else | |
9456 | echo "not updating unwritable cache $cache_file" | |
9457 | fi | |
9458 | fi | |
9459 | rm -f confcache | |
9460 | ||
9461 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
9462 | ||
9463 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9464 | # Let make expand exec_prefix. | |
9465 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9466 | ||
9467 | # Any assignment to VPATH causes Sun make to only execute | |
9468 | # the first set of double-colon rules, so remove it if not needed. | |
9469 | # If there is a colon in the path, we need to keep it. | |
9470 | if test "x$srcdir" = x.; then | |
9471 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
9472 | fi | |
9473 | ||
9474 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
9475 | ||
9476 | DEFS=-DHAVE_CONFIG_H | |
9477 | ||
9478 | # Without the "./", some shells look in PATH for config.status. | |
9479 | : ${CONFIG_STATUS=./config.status} | |
9480 | ||
9481 | echo creating $CONFIG_STATUS | |
9482 | rm -f $CONFIG_STATUS | |
9483 | cat > $CONFIG_STATUS <<EOF | |
9484 | #! /bin/sh | |
9485 | # Generated automatically by configure. | |
9486 | # Run this file to recreate the current configuration. | |
9487 | # This directory was configured as follows, | |
9488 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9489 | # | |
9490 | # $0 $ac_configure_args | |
9491 | # | |
9492 | # Compiler output produced by configure, useful for debugging | |
9493 | # configure, is in ./config.log if it exists. | |
9494 | ||
9495 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
9496 | for ac_option | |
9497 | do | |
9498 | case "\$ac_option" in | |
9499 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9500 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
9501 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
9502 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 9503 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
9504 | exit 0 ;; |
9505 | -help | --help | --hel | --he | --h) | |
9506 | echo "\$ac_cs_usage"; exit 0 ;; | |
9507 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
9508 | esac | |
9509 | done | |
9510 | ||
9511 | ac_given_srcdir=$srcdir | |
861bb6c1 | 9512 | |
b7cb92ad | 9513 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
9514 | EOF |
9515 | cat >> $CONFIG_STATUS <<EOF | |
9516 | ||
9517 | # Protect against being on the right side of a sed subst in config.status. | |
9518 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
9519 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
9520 | $ac_vpsub | |
9521 | $extrasub | |
6f144c9c | 9522 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
9523 | s%@CFLAGS@%$CFLAGS%g |
9524 | s%@CPPFLAGS@%$CPPFLAGS%g | |
9525 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 9526 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
9527 | s%@DEFS@%$DEFS%g |
9528 | s%@LDFLAGS@%$LDFLAGS%g | |
9529 | s%@LIBS@%$LIBS%g | |
9530 | s%@exec_prefix@%$exec_prefix%g | |
9531 | s%@prefix@%$prefix%g | |
9532 | s%@program_transform_name@%$program_transform_name%g | |
9533 | s%@bindir@%$bindir%g | |
9534 | s%@sbindir@%$sbindir%g | |
9535 | s%@libexecdir@%$libexecdir%g | |
9536 | s%@datadir@%$datadir%g | |
9537 | s%@sysconfdir@%$sysconfdir%g | |
9538 | s%@sharedstatedir@%$sharedstatedir%g | |
9539 | s%@localstatedir@%$localstatedir%g | |
9540 | s%@libdir@%$libdir%g | |
9541 | s%@includedir@%$includedir%g | |
9542 | s%@oldincludedir@%$oldincludedir%g | |
9543 | s%@infodir@%$infodir%g | |
9544 | s%@mandir@%$mandir%g | |
9545 | s%@host@%$host%g | |
9546 | s%@host_alias@%$host_alias%g | |
9547 | s%@host_cpu@%$host_cpu%g | |
9548 | s%@host_vendor@%$host_vendor%g | |
9549 | s%@host_os@%$host_os%g | |
9550 | s%@target@%$target%g | |
9551 | s%@target_alias@%$target_alias%g | |
9552 | s%@target_cpu@%$target_cpu%g | |
9553 | s%@target_vendor@%$target_vendor%g | |
9554 | s%@target_os@%$target_os%g | |
9555 | s%@build@%$build%g | |
9556 | s%@build_alias@%$build_alias%g | |
9557 | s%@build_cpu@%$build_cpu%g | |
9558 | s%@build_vendor@%$build_vendor%g | |
9559 | s%@build_os@%$build_os%g | |
e9a25f70 | 9560 | s%@CC@%$CC%g |
61842080 | 9561 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 9562 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
9563 | s%@AWK@%$AWK%g |
9564 | s%@LEX@%$LEX%g | |
9565 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
9566 | s%@LN@%$LN%g |
9567 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
9568 | s%@RANLIB@%$RANLIB%g |
9569 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
9570 | s%@INSTALL@%$INSTALL%g |
9571 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
9572 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 9573 | s%@CPP@%$CPP%g |
bcf12124 | 9574 | s%@gnat@%$gnat%g |
0a4b6309 RL |
9575 | s%@vfprintf@%$vfprintf%g |
9576 | s%@doprint@%$doprint%g | |
861bb6c1 | 9577 | s%@manext@%$manext%g |
992d1248 | 9578 | s%@objext@%$objext%g |
ab87f8c8 JL |
9579 | s%@PACKAGE@%$PACKAGE%g |
9580 | s%@VERSION@%$VERSION%g | |
9581 | s%@ALLOCA@%$ALLOCA%g | |
9582 | s%@USE_NLS@%$USE_NLS%g | |
9583 | s%@MSGFMT@%$MSGFMT%g | |
9584 | s%@GMSGFMT@%$GMSGFMT%g | |
9585 | s%@XGETTEXT@%$XGETTEXT%g | |
9586 | s%@GENCAT@%$GENCAT%g | |
9587 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
9588 | s%@CATALOGS@%$CATALOGS%g | |
9589 | s%@CATOBJEXT@%$CATOBJEXT%g | |
9590 | s%@DATADIRNAME@%$DATADIRNAME%g | |
9591 | s%@GMOFILES@%$GMOFILES%g | |
9592 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
9593 | s%@INTLDEPS@%$INTLDEPS%g | |
9594 | s%@INTLLIBS@%$INTLLIBS%g | |
9595 | s%@INTLOBJS@%$INTLOBJS%g | |
9596 | s%@POFILES@%$POFILES%g | |
9597 | s%@POSUB@%$POSUB%g | |
9598 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
9599 | s%@GT_NO@%$GT_NO%g | |
9600 | s%@GT_YES@%$GT_YES%g | |
9601 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
9602 | s%@l@%$l%g | |
f24af81b | 9603 | s%@gthread_flags@%$gthread_flags%g |
81bf3d9e | 9604 | s%@GGC@%$GGC%g |
7441a352 | 9605 | s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g |
88111b26 JL |
9606 | s%@build_canonical@%$build_canonical%g |
9607 | s%@host_canonical@%$host_canonical%g | |
9608 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 9609 | s%@inhibit_libc@%$inhibit_libc%g |
d062c304 | 9610 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 9611 | s%@dollar@%$dollar%g |
7e717196 | 9612 | s%@objdir@%$objdir%g |
861bb6c1 | 9613 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
9614 | s%@all_boot_languages@%$all_boot_languages%g |
9615 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 9616 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 9617 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
9618 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
9619 | s%@all_languages@%$all_languages%g | |
9620 | s%@all_lib2funcs@%$all_lib2funcs%g | |
9621 | s%@all_stagestuff@%$all_stagestuff%g | |
9622 | s%@build_exeext@%$build_exeext%g | |
9623 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
9624 | s%@build_xm_file_list@%$build_xm_file_list%g | |
9625 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 9626 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 9627 | s%@cpp_install_dir@%$cpp_install_dir%g |
e061d1ce | 9628 | s%@cpp_main@%$cpp_main%g |
4f3ae93c BK |
9629 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
9630 | s%@dep_tmake_file@%$dep_tmake_file%g | |
9631 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 9632 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 9633 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
9634 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
9635 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 9636 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
9637 | s%@extra_parts@%$extra_parts%g |
9638 | s%@extra_passes@%$extra_passes%g | |
9639 | s%@extra_programs@%$extra_programs%g | |
4f3ae93c BK |
9640 | s%@float_h_file@%$float_h_file%g |
9641 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
9642 | s%@gcc_version@%$gcc_version%g | |
9643 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
9644 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 9645 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 9646 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c | 9647 | s%@install@%$install%g |
861bb6c1 | 9648 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 9649 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 9650 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 9651 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 9652 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
9653 | s%@md_file@%$md_file%g |
9654 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
9655 | s%@out_file@%$out_file%g | |
9656 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 9657 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 9658 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
9659 | s%@thread_file@%$thread_file%g |
9660 | s%@tm_file_list@%$tm_file_list%g | |
9661 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
9662 | /@target_overrides@/r $target_overrides |
9663 | s%@target_overrides@%%g | |
9664 | /@host_overrides@/r $host_overrides | |
9665 | s%@host_overrides@%%g | |
9666 | s%@cross_defines@%$cross_defines%g | |
9667 | /@cross_overrides@/r $cross_overrides | |
9668 | s%@cross_overrides@%%g | |
9669 | /@build_overrides@/r $build_overrides | |
9670 | s%@build_overrides@%%g | |
9671 | /@language_fragments@/r $language_fragments | |
9672 | s%@language_fragments@%%g | |
9673 | /@language_hooks@/r $language_hooks | |
9674 | s%@language_hooks@%%g | |
9675 | ||
9676 | CEOF | |
9677 | EOF | |
9678 | ||
9679 | cat >> $CONFIG_STATUS <<\EOF | |
9680 | ||
9681 | # Split the substitutions into bite-sized pieces for seds with | |
9682 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9683 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9684 | ac_file=1 # Number of current file. | |
9685 | ac_beg=1 # First line for current file. | |
9686 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9687 | ac_more_lines=: | |
9688 | ac_sed_cmds="" | |
9689 | while $ac_more_lines; do | |
9690 | if test $ac_beg -gt 1; then | |
9691 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9692 | else | |
9693 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
9694 | fi | |
9695 | if test ! -s conftest.s$ac_file; then | |
9696 | ac_more_lines=false | |
9697 | rm -f conftest.s$ac_file | |
9698 | else | |
9699 | if test -z "$ac_sed_cmds"; then | |
9700 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
9701 | else | |
9702 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9703 | fi | |
9704 | ac_file=`expr $ac_file + 1` | |
9705 | ac_beg=$ac_end | |
9706 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9707 | fi | |
9708 | done | |
9709 | if test -z "$ac_sed_cmds"; then | |
9710 | ac_sed_cmds=cat | |
9711 | fi | |
9712 | EOF | |
9713 | ||
9714 | cat >> $CONFIG_STATUS <<EOF | |
9715 | ||
9716 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
9717 | EOF | |
9718 | cat >> $CONFIG_STATUS <<\EOF | |
9719 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9720 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9721 | case "$ac_file" in | |
9722 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9723 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9724 | *) ac_file_in="${ac_file}.in" ;; | |
9725 | esac | |
9726 | ||
9727 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9728 | ||
9729 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9730 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9731 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9732 | # The file is in a subdirectory. | |
9733 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9734 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9735 | # A "../" for each directory in $ac_dir_suffix. | |
9736 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9737 | else | |
9738 | ac_dir_suffix= ac_dots= | |
9739 | fi | |
9740 | ||
9741 | case "$ac_given_srcdir" in | |
9742 | .) srcdir=. | |
9743 | if test -z "$ac_dots"; then top_srcdir=. | |
9744 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9745 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9746 | *) # Relative path. | |
9747 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9748 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9749 | esac | |
9750 | ||
861bb6c1 JL |
9751 | |
9752 | echo creating "$ac_file" | |
9753 | rm -f "$ac_file" | |
9754 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9755 | case "$ac_file" in | |
9756 | *Makefile*) ac_comsub="1i\\ | |
9757 | # $configure_input" ;; | |
9758 | *) ac_comsub= ;; | |
9759 | esac | |
9760 | ||
9761 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9762 | sed -e "$ac_comsub | |
9763 | s%@configure_input@%$configure_input%g | |
9764 | s%@srcdir@%$srcdir%g | |
9765 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
9766 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9767 | fi; done | |
9768 | rm -f conftest.s* | |
9769 | ||
9770 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9771 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9772 | # | |
9773 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9774 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9775 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9776 | ac_dC='\3' | |
9777 | ac_dD='%g' | |
9778 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9779 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9780 | ac_uB='\([ ]\)%\1#\2define\3' | |
9781 | ac_uC=' ' | |
9782 | ac_uD='\4%g' | |
9783 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9784 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9785 | ac_eB='$%\1#\2define\3' | |
9786 | ac_eC=' ' | |
9787 | ac_eD='%g' | |
9788 | ||
9789 | if test "${CONFIG_HEADERS+set}" != set; then | |
9790 | EOF | |
9791 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 9792 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
9793 | EOF |
9794 | cat >> $CONFIG_STATUS <<\EOF | |
9795 | fi | |
9796 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9797 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9798 | case "$ac_file" in | |
9799 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9800 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9801 | *) ac_file_in="${ac_file}.in" ;; | |
9802 | esac | |
9803 | ||
9804 | echo creating $ac_file | |
9805 | ||
9806 | rm -f conftest.frag conftest.in conftest.out | |
9807 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9808 | cat $ac_file_inputs > conftest.in | |
9809 | ||
9810 | EOF | |
9811 | ||
9812 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9813 | # the proper values into config.h.in to produce config.h. And first: | |
9814 | # Protect against being on the right side of a sed subst in config.status. | |
9815 | # Protect against being in an unquoted here document in config.status. | |
9816 | rm -f conftest.vals | |
9817 | cat > conftest.hdr <<\EOF | |
9818 | s/[\\&%]/\\&/g | |
9819 | s%[\\$`]%\\&%g | |
9820 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9821 | s%ac_d%ac_u%gp | |
9822 | s%ac_u%ac_e%gp | |
9823 | EOF | |
9824 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9825 | rm -f conftest.hdr | |
9826 | ||
9827 | # This sed command replaces #undef with comments. This is necessary, for | |
9828 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9829 | # on some systems where configure will not decide to define it. | |
9830 | cat >> conftest.vals <<\EOF | |
9831 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9832 | EOF | |
9833 | ||
9834 | # Break up conftest.vals because some shells have a limit on | |
9835 | # the size of here documents, and old seds have small limits too. | |
9836 | ||
9837 | rm -f conftest.tail | |
9838 | while : | |
9839 | do | |
9840 | ac_lines=`grep -c . conftest.vals` | |
9841 | # grep -c gives empty output for an empty file on some AIX systems. | |
9842 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9843 | # Write a limited-size here document to conftest.frag. | |
9844 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9845 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9846 | echo 'CEOF | |
9847 | sed -f conftest.frag conftest.in > conftest.out | |
9848 | rm -f conftest.in | |
9849 | mv conftest.out conftest.in | |
9850 | ' >> $CONFIG_STATUS | |
9851 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9852 | rm -f conftest.vals | |
9853 | mv conftest.tail conftest.vals | |
9854 | done | |
9855 | rm -f conftest.vals | |
9856 | ||
9857 | cat >> $CONFIG_STATUS <<\EOF | |
9858 | rm -f conftest.frag conftest.h | |
9859 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9860 | cat conftest.in >> conftest.h | |
9861 | rm -f conftest.in | |
9862 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9863 | echo "$ac_file is unchanged" | |
9864 | rm -f conftest.h | |
9865 | else | |
9866 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9867 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9868 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9869 | # The file is in a subdirectory. | |
9870 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9871 | fi | |
9872 | rm -f $ac_file | |
9873 | mv conftest.h $ac_file | |
9874 | fi | |
9875 | fi; done | |
9876 | ||
ab87f8c8 JL |
9877 | EOF |
9878 | ||
9879 | cat >> $CONFIG_STATUS <<EOF | |
9880 | ac_sources="$nls_cv_header_libgt" | |
9881 | ac_dests="$nls_cv_header_intl" | |
9882 | EOF | |
9883 | ||
9884 | cat >> $CONFIG_STATUS <<\EOF | |
9885 | srcdir=$ac_given_srcdir | |
9886 | while test -n "$ac_sources"; do | |
9887 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9888 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9889 | ||
9890 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9891 | ||
9892 | if test ! -r $srcdir/$ac_source; then | |
9893 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9894 | fi | |
9895 | rm -f $ac_dest | |
9896 | ||
9897 | # Make relative symlinks. | |
9898 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9899 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9900 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9901 | # The dest file is in a subdirectory. | |
9902 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9903 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9904 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9905 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9906 | else | |
9907 | ac_dest_dir_suffix= ac_dots= | |
9908 | fi | |
9909 | ||
9910 | case "$srcdir" in | |
9911 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9912 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9913 | esac | |
9914 | ||
9915 | # Make a symlink if possible; otherwise try a hard link. | |
9916 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9917 | ln $srcdir/$ac_source $ac_dest; then : | |
9918 | else | |
9919 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9920 | fi | |
9921 | done | |
861bb6c1 JL |
9922 | EOF |
9923 | cat >> $CONFIG_STATUS <<EOF | |
9924 | ||
ab87f8c8 | 9925 | |
861bb6c1 JL |
9926 | host='${host}' |
9927 | build='${build}' | |
9928 | target='${target}' | |
9929 | target_alias='${target_alias}' | |
9930 | srcdir='${srcdir}' | |
9931 | subdirs='${subdirs}' | |
9932 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9933 | symbolic_link='${symbolic_link}' | |
9934 | program_transform_set='${program_transform_set}' | |
9935 | program_transform_name='${program_transform_name}' | |
9936 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9937 | host_xmake_file='${host_xmake_file}' | |
9938 | dep_tmake_file='${dep_tmake_file}' | |
9939 | tmake_file='${tmake_file}' | |
9940 | thread_file='${thread_file}' | |
f1943b77 MH |
9941 | gcc_version='${gcc_version}' |
9942 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9943 | local_prefix='${local_prefix}' |
9944 | build_install_headers_dir='${build_install_headers_dir}' | |
9945 | build_exeext='${build_exeext}' | |
6e26218f | 9946 | host_exeext='${host_exeext}' |
7ed46111 | 9947 | out_file='${out_file}' |
861bb6c1 JL |
9948 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9949 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9950 | target_list='${target_list}' |
9951 | target_overrides='${target_overrides}' | |
9952 | host_overrides='${host_overrides}' | |
9953 | cross_defines='${cross_defines}' | |
9954 | cross_overrides='${cross_overrides}' | |
9955 | build_overrides='${build_overrides}' | |
9fc9b82a | 9956 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9957 | |
9958 | EOF | |
9959 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9960 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9961 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9962 | esac | |
861bb6c1 JL |
9963 | |
9964 | . $srcdir/configure.lang | |
9965 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9966 | xauto-host.h:config.in) |
861bb6c1 JL |
9967 | echo > cstamp-h ;; |
9968 | esac | |
93cf819d BK |
9969 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9970 | # bootstrapping and the installation procedure can still use | |
9971 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9972 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9973 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9974 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9975 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9976 | for d in .. ${subdirs} ; do |
75bffa71 | 9977 | if test $d != ..; then |
4e8a434e BK |
9978 | STARTDIR=`pwd` |
9979 | cd $d | |
9980 | for t in stage1 stage2 stage3 stage4 include | |
9981 | do | |
9982 | rm -f $t | |
9983 | $symbolic_link ../$t $t 2>/dev/null | |
9984 | done | |
9985 | cd $STARTDIR | |
93cf819d BK |
9986 | fi |
9987 | done | |
9988 | else true ; fi | |
ab87f8c8 JL |
9989 | # Avoid having to add intl to our include paths. |
9990 | if test -f intl/libintl.h; then | |
9991 | echo creating libintl.h | |
9992 | echo '#include "intl/libintl.h"' >libintl.h | |
9993 | fi | |
861bb6c1 JL |
9994 | |
9995 | exit 0 | |
9996 | EOF | |
9997 | chmod +x $CONFIG_STATUS | |
9998 | rm -fr confdefs* $ac_clean_files | |
9999 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10000 |