]>
Commit | Line | Data |
---|---|---|
1640ef38 | 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 MM |
31 | ac_help="$ac_help |
32 | --enable-checking enable expensive run-time checks." | |
3ecc3258 ZW |
33 | ac_help="$ac_help |
34 | --disable-cpp don't provide a user-visible C preprocessor." | |
35 | ac_help="$ac_help | |
36 | --with-cpp-install-dir=DIR | |
37 | install the user visible C preprocessor in DIR | |
38 | (relative to PREFIX) as well as PREFIX/bin." | |
861bb6c1 | 39 | ac_help="$ac_help |
f81a440f | 40 | --enable-cpplib use cpplib for the C preprocessor." |
0b9d02c6 | 41 | ac_help="$ac_help |
f81a440f | 42 | --enable-c-cpplib link cpplib directly into C and C++ compilers |
3ecc3258 | 43 | (EXPERIMENTAL) (implies --enable-cpplib)." |
76c8f855 BK |
44 | ac_help="$ac_help |
45 | --disable-fast-fixincludes | |
46 | Disable the new fast fixincludes. | |
47 | Run the old fixincludes script unconditionally" | |
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 RL |
56 | ac_help="$ac_help |
57 | --enable-dwarf2 enable DWARF2 debugging as default." | |
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." | |
861bb6c1 JL |
77 | |
78 | # Initialize some variables set by options. | |
79 | # The variables have the same names as the options, with | |
80 | # dashes changed to underlines. | |
81 | build=NONE | |
82 | cache_file=./config.cache | |
83 | exec_prefix=NONE | |
84 | host=NONE | |
85 | no_create= | |
86 | nonopt=NONE | |
87 | no_recursion= | |
88 | prefix=NONE | |
89 | program_prefix=NONE | |
90 | program_suffix=NONE | |
91 | program_transform_name=s,x,x, | |
92 | silent= | |
93 | site= | |
94 | srcdir= | |
95 | target=NONE | |
96 | verbose= | |
97 | x_includes=NONE | |
98 | x_libraries=NONE | |
99 | bindir='${exec_prefix}/bin' | |
100 | sbindir='${exec_prefix}/sbin' | |
101 | libexecdir='${exec_prefix}/libexec' | |
102 | datadir='${prefix}/share' | |
103 | sysconfdir='${prefix}/etc' | |
104 | sharedstatedir='${prefix}/com' | |
105 | localstatedir='${prefix}/var' | |
106 | libdir='${exec_prefix}/lib' | |
107 | includedir='${prefix}/include' | |
108 | oldincludedir='/usr/include' | |
109 | infodir='${prefix}/info' | |
110 | mandir='${prefix}/man' | |
111 | ||
112 | # Initialize some other variables. | |
113 | subdirs= | |
114 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 115 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
116 | # Maximum number of lines to put in a shell here document. |
117 | ac_max_here_lines=12 | |
118 | ||
119 | ac_prev= | |
120 | for ac_option | |
121 | do | |
122 | ||
123 | # If the previous option needs an argument, assign it. | |
124 | if test -n "$ac_prev"; then | |
125 | eval "$ac_prev=\$ac_option" | |
126 | ac_prev= | |
127 | continue | |
128 | fi | |
129 | ||
130 | case "$ac_option" in | |
131 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
132 | *) ac_optarg= ;; | |
133 | esac | |
134 | ||
135 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
136 | ||
137 | case "$ac_option" in | |
138 | ||
139 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
140 | ac_prev=bindir ;; | |
141 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
142 | bindir="$ac_optarg" ;; | |
143 | ||
144 | -build | --build | --buil | --bui | --bu) | |
145 | ac_prev=build ;; | |
146 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
147 | build="$ac_optarg" ;; | |
148 | ||
149 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
150 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
151 | ac_prev=cache_file ;; | |
152 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
153 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
154 | cache_file="$ac_optarg" ;; | |
155 | ||
156 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
157 | ac_prev=datadir ;; | |
158 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
159 | | --da=*) | |
160 | datadir="$ac_optarg" ;; | |
161 | ||
162 | -disable-* | --disable-*) | |
163 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
164 | # Reject names that are not valid shell variable names. | |
165 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
166 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
167 | fi | |
168 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
169 | eval "enable_${ac_feature}=no" ;; | |
170 | ||
171 | -enable-* | --enable-*) | |
172 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
173 | # Reject names that are not valid shell variable names. | |
174 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
175 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
176 | fi | |
177 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
178 | case "$ac_option" in | |
179 | *=*) ;; | |
180 | *) ac_optarg=yes ;; | |
181 | esac | |
182 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
183 | ||
184 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
185 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
186 | | --exec | --exe | --ex) | |
187 | ac_prev=exec_prefix ;; | |
188 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
189 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
190 | | --exec=* | --exe=* | --ex=*) | |
191 | exec_prefix="$ac_optarg" ;; | |
192 | ||
193 | -gas | --gas | --ga | --g) | |
194 | # Obsolete; use --with-gas. | |
195 | with_gas=yes ;; | |
196 | ||
197 | -help | --help | --hel | --he) | |
198 | # Omit some internal or obsolete options to make the list less imposing. | |
199 | # This message is too long to be a string in the A/UX 3.1 sh. | |
200 | cat << EOF | |
201 | Usage: configure [options] [host] | |
202 | Options: [defaults in brackets after descriptions] | |
203 | Configuration: | |
204 | --cache-file=FILE cache test results in FILE | |
205 | --help print this message | |
206 | --no-create do not create output files | |
207 | --quiet, --silent do not print \`checking...' messages | |
208 | --version print the version of autoconf that created configure | |
209 | Directory and file names: | |
210 | --prefix=PREFIX install architecture-independent files in PREFIX | |
211 | [$ac_default_prefix] | |
212 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
213 | [same as prefix] | |
214 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
215 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
216 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
217 | --datadir=DIR read-only architecture-independent data in DIR | |
218 | [PREFIX/share] | |
219 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
220 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
221 | [PREFIX/com] | |
222 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
223 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
224 | --includedir=DIR C header files in DIR [PREFIX/include] | |
225 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
226 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
227 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
228 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
229 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
230 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
231 | --program-transform-name=PROGRAM | |
232 | run sed PROGRAM on installed program names | |
233 | EOF | |
234 | cat << EOF | |
235 | Host type: | |
236 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
237 | --host=HOST configure for HOST [guessed] | |
238 | --target=TARGET configure for TARGET [TARGET=HOST] | |
239 | Features and packages: | |
240 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
241 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
242 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
243 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
244 | --x-includes=DIR X include files are in DIR | |
245 | --x-libraries=DIR X library files are in DIR | |
246 | EOF | |
247 | if test -n "$ac_help"; then | |
248 | echo "--enable and --with options recognized:$ac_help" | |
249 | fi | |
250 | exit 0 ;; | |
251 | ||
252 | -host | --host | --hos | --ho) | |
253 | ac_prev=host ;; | |
254 | -host=* | --host=* | --hos=* | --ho=*) | |
255 | host="$ac_optarg" ;; | |
256 | ||
257 | -includedir | --includedir | --includedi | --included | --include \ | |
258 | | --includ | --inclu | --incl | --inc) | |
259 | ac_prev=includedir ;; | |
260 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
261 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
262 | includedir="$ac_optarg" ;; | |
263 | ||
264 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
265 | ac_prev=infodir ;; | |
266 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
267 | infodir="$ac_optarg" ;; | |
268 | ||
269 | -libdir | --libdir | --libdi | --libd) | |
270 | ac_prev=libdir ;; | |
271 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
272 | libdir="$ac_optarg" ;; | |
273 | ||
274 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
275 | | --libexe | --libex | --libe) | |
276 | ac_prev=libexecdir ;; | |
277 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
278 | | --libexe=* | --libex=* | --libe=*) | |
279 | libexecdir="$ac_optarg" ;; | |
280 | ||
281 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
282 | | --localstate | --localstat | --localsta | --localst \ | |
283 | | --locals | --local | --loca | --loc | --lo) | |
284 | ac_prev=localstatedir ;; | |
285 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
286 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
287 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
288 | localstatedir="$ac_optarg" ;; | |
289 | ||
290 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
291 | ac_prev=mandir ;; | |
292 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
293 | mandir="$ac_optarg" ;; | |
294 | ||
295 | -nfp | --nfp | --nf) | |
296 | # Obsolete; use --without-fp. | |
297 | with_fp=no ;; | |
298 | ||
299 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
300 | | --no-cr | --no-c) | |
301 | no_create=yes ;; | |
302 | ||
303 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
304 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
305 | no_recursion=yes ;; | |
306 | ||
307 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
308 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
309 | | --oldin | --oldi | --old | --ol | --o) | |
310 | ac_prev=oldincludedir ;; | |
311 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
312 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
313 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
314 | oldincludedir="$ac_optarg" ;; | |
315 | ||
316 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
317 | ac_prev=prefix ;; | |
318 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
319 | prefix="$ac_optarg" ;; | |
320 | ||
321 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
322 | | --program-pre | --program-pr | --program-p) | |
323 | ac_prev=program_prefix ;; | |
324 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
325 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
326 | program_prefix="$ac_optarg" ;; | |
327 | ||
328 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
329 | | --program-suf | --program-su | --program-s) | |
330 | ac_prev=program_suffix ;; | |
331 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
332 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
333 | program_suffix="$ac_optarg" ;; | |
334 | ||
335 | -program-transform-name | --program-transform-name \ | |
336 | | --program-transform-nam | --program-transform-na \ | |
337 | | --program-transform-n | --program-transform- \ | |
338 | | --program-transform | --program-transfor \ | |
339 | | --program-transfo | --program-transf \ | |
340 | | --program-trans | --program-tran \ | |
341 | | --progr-tra | --program-tr | --program-t) | |
342 | ac_prev=program_transform_name ;; | |
343 | -program-transform-name=* | --program-transform-name=* \ | |
344 | | --program-transform-nam=* | --program-transform-na=* \ | |
345 | | --program-transform-n=* | --program-transform-=* \ | |
346 | | --program-transform=* | --program-transfor=* \ | |
347 | | --program-transfo=* | --program-transf=* \ | |
348 | | --program-trans=* | --program-tran=* \ | |
349 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
350 | program_transform_name="$ac_optarg" ;; | |
351 | ||
352 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
353 | | -silent | --silent | --silen | --sile | --sil) | |
354 | silent=yes ;; | |
355 | ||
356 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
357 | ac_prev=sbindir ;; | |
358 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
359 | | --sbi=* | --sb=*) | |
360 | sbindir="$ac_optarg" ;; | |
361 | ||
362 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
363 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
364 | | --sharedst | --shareds | --shared | --share | --shar \ | |
365 | | --sha | --sh) | |
366 | ac_prev=sharedstatedir ;; | |
367 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
368 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
369 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
370 | | --sha=* | --sh=*) | |
371 | sharedstatedir="$ac_optarg" ;; | |
372 | ||
373 | -site | --site | --sit) | |
374 | ac_prev=site ;; | |
375 | -site=* | --site=* | --sit=*) | |
376 | site="$ac_optarg" ;; | |
377 | ||
378 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
379 | ac_prev=srcdir ;; | |
380 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
381 | srcdir="$ac_optarg" ;; | |
382 | ||
383 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
384 | | --syscon | --sysco | --sysc | --sys | --sy) | |
385 | ac_prev=sysconfdir ;; | |
386 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
387 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
388 | sysconfdir="$ac_optarg" ;; | |
389 | ||
390 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
391 | ac_prev=target ;; | |
392 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
393 | target="$ac_optarg" ;; | |
394 | ||
395 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
396 | verbose=yes ;; | |
397 | ||
398 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 399 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
400 | exit 0 ;; |
401 | ||
402 | -with-* | --with-*) | |
403 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
404 | # Reject names that are not valid shell variable names. | |
405 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
406 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
407 | fi | |
408 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
409 | case "$ac_option" in | |
410 | *=*) ;; | |
411 | *) ac_optarg=yes ;; | |
412 | esac | |
413 | eval "with_${ac_package}='$ac_optarg'" ;; | |
414 | ||
415 | -without-* | --without-*) | |
416 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
417 | # Reject names that are not valid shell variable names. | |
418 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
419 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
420 | fi | |
421 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
422 | eval "with_${ac_package}=no" ;; | |
423 | ||
424 | --x) | |
425 | # Obsolete; use --with-x. | |
426 | with_x=yes ;; | |
427 | ||
428 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
429 | | --x-incl | --x-inc | --x-in | --x-i) | |
430 | ac_prev=x_includes ;; | |
431 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
432 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
433 | x_includes="$ac_optarg" ;; | |
434 | ||
435 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
436 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
437 | ac_prev=x_libraries ;; | |
438 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
439 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
440 | x_libraries="$ac_optarg" ;; | |
441 | ||
442 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
443 | ;; | |
444 | ||
445 | *) | |
446 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
447 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
448 | fi | |
449 | if test "x$nonopt" != xNONE; then | |
450 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
451 | fi | |
452 | nonopt="$ac_option" | |
453 | ;; | |
454 | ||
455 | esac | |
456 | done | |
457 | ||
458 | if test -n "$ac_prev"; then | |
459 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
460 | fi | |
461 | ||
462 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
463 | ||
464 | # File descriptor usage: | |
465 | # 0 standard input | |
466 | # 1 file creation | |
467 | # 2 errors and warnings | |
468 | # 3 some systems may open it to /dev/tty | |
469 | # 4 used on the Kubota Titan | |
470 | # 6 checking for... messages and results | |
471 | # 5 compiler messages saved in config.log | |
472 | if test "$silent" = yes; then | |
473 | exec 6>/dev/null | |
474 | else | |
475 | exec 6>&1 | |
476 | fi | |
477 | exec 5>./config.log | |
478 | ||
479 | echo "\ | |
480 | This file contains any messages produced by compilers while | |
481 | running configure, to aid debugging if configure makes a mistake. | |
482 | " 1>&5 | |
483 | ||
484 | # Strip out --no-create and --no-recursion so they do not pile up. | |
485 | # Also quote any args containing shell metacharacters. | |
486 | ac_configure_args= | |
487 | for ac_arg | |
488 | do | |
489 | case "$ac_arg" in | |
490 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
491 | | --no-cr | --no-c) ;; | |
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
494 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
495 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
496 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
497 | esac | |
498 | done | |
499 | ||
500 | # NLS nuisances. | |
501 | # Only set these to C if already set. These must not be set unconditionally | |
502 | # because not all systems understand e.g. LANG=C (notably SCO). | |
503 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
504 | # Non-C LC_CTYPE values break the ctype check. | |
505 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
506 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
507 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
508 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
509 | ||
510 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
511 | rm -rf conftest* confdefs.h | |
512 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
513 | echo > confdefs.h | |
514 | ||
515 | # A filename unique to this package, relative to the directory that | |
516 | # configure is in, which we can look for to find out if srcdir is correct. | |
517 | ac_unique_file=tree.c | |
518 | ||
519 | # Find the source files, if location was not specified. | |
520 | if test -z "$srcdir"; then | |
521 | ac_srcdir_defaulted=yes | |
522 | # Try the directory containing this script, then its parent. | |
523 | ac_prog=$0 | |
524 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
525 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
526 | srcdir=$ac_confdir | |
527 | if test ! -r $srcdir/$ac_unique_file; then | |
528 | srcdir=.. | |
529 | fi | |
530 | else | |
531 | ac_srcdir_defaulted=no | |
532 | fi | |
533 | if test ! -r $srcdir/$ac_unique_file; then | |
534 | if test "$ac_srcdir_defaulted" = yes; then | |
535 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
536 | else | |
537 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
538 | fi | |
539 | fi | |
540 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
541 | ||
542 | # Prefer explicitly selected file to automatically selected ones. | |
81bf3d9e RH |
543 | if test -z "$CONFIG_SITE"; then |
544 | if test "x$prefix" != xNONE; then | |
545 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
546 | else | |
547 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
861bb6c1 JL |
548 | fi |
549 | fi | |
550 | for ac_site_file in $CONFIG_SITE; do | |
551 | if test -r "$ac_site_file"; then | |
552 | echo "loading site script $ac_site_file" | |
553 | . "$ac_site_file" | |
554 | fi | |
555 | done | |
556 | ||
557 | if test -r "$cache_file"; then | |
558 | echo "loading cache $cache_file" | |
559 | . $cache_file | |
560 | else | |
561 | echo "creating cache $cache_file" | |
562 | > $cache_file | |
563 | fi | |
564 | ||
565 | ac_ext=c | |
566 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
567 | ac_cpp='$CPP $CPPFLAGS' | |
568 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 569 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
570 | cross_compiling=$ac_cv_prog_cc_cross |
571 | ||
cd9e5e7c MK |
572 | ac_exeext= |
573 | ac_objext=o | |
861bb6c1 JL |
574 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
575 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
576 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
577 | ac_n= ac_c=' | |
578 | ' ac_t=' ' | |
579 | else | |
580 | ac_n=-n ac_c= ac_t= | |
581 | fi | |
582 | else | |
583 | ac_n= ac_c='\c' ac_t= | |
584 | fi | |
585 | ||
586 | ||
587 | ||
588 | ||
861bb6c1 JL |
589 | remove=rm |
590 | hard_link=ln | |
591 | symbolic_link='ln -s' | |
592 | copy=cp | |
593 | ||
75a39864 JL |
594 | # Check for bogus environment variables. |
595 | # Test if LIBRARY_PATH contains the notation for the current directory | |
596 | # since this would lead to problems installing/building glibc. | |
597 | # LIBRARY_PATH contains the current directory if one of the following | |
598 | # is true: | |
599 | # - one of the terminals (":" and ";") is the first or last sign | |
600 | # - two terminals occur directly after each other | |
601 | # - the path contains an element with a dot in it | |
602 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
81bf3d9e | 603 | echo "configure:604: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
604 | case ${LIBRARY_PATH} in |
605 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
606 | library_path_setting="contains current directory" | |
607 | ;; | |
608 | *) | |
609 | library_path_setting="ok" | |
610 | ;; | |
611 | esac | |
612 | echo "$ac_t""$library_path_setting" 1>&6 | |
613 | if test "$library_path_setting" != "ok"; then | |
614 | { echo "configure: error: | |
615 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 616 | *** building gcc. Please change the environment variable |
75a39864 JL |
617 | *** and run configure again." 1>&2; exit 1; } |
618 | fi | |
619 | ||
620 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
621 | # since this would lead to problems installing/building glibc. | |
622 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
623 | # is true: | |
624 | # - one of the terminals (":" and ";") is the first or last sign | |
625 | # - two terminals occur directly after each other | |
626 | # - the path contains an element with a dot in it | |
627 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
81bf3d9e | 628 | echo "configure:629: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
629 | case ${GCC_EXEC_PREFIX} in |
630 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
631 | gcc_exec_prefix_setting="contains current directory" | |
632 | ;; | |
633 | *) | |
634 | gcc_exec_prefix_setting="ok" | |
635 | ;; | |
636 | esac | |
637 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
638 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
639 | { echo "configure: error: | |
640 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 641 | *** building gcc. Please change the environment variable |
75a39864 JL |
642 | *** and run configure again." 1>&2; exit 1; } |
643 | fi | |
644 | ||
861bb6c1 JL |
645 | # Check for additional parameters |
646 | ||
647 | # With GNU ld | |
648 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
649 | if test "${with_gnu_ld+set}" = set; then | |
650 | withval="$with_gnu_ld" | |
df6faf79 | 651 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 652 | else |
df6faf79 | 653 | gnu_ld_flag=no |
861bb6c1 JL |
654 | fi |
655 | ||
656 | ||
ab339d62 AO |
657 | # With pre-defined ld |
658 | # Check whether --with-ld or --without-ld was given. | |
659 | if test "${with_ld+set}" = set; then | |
660 | withval="$with_ld" | |
3ccc3a56 | 661 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
662 | fi |
663 | ||
3ccc3a56 AO |
664 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
665 | if test ! -x "$DEFAULT_LINKER"; then | |
666 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 667 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
668 | gnu_ld_flag=yes |
669 | fi | |
670 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 671 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
672 | EOF |
673 | ||
674 | fi | |
675 | ||
861bb6c1 JL |
676 | # With GNU as |
677 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
678 | if test "${with_gnu_as+set}" = set; then | |
679 | withval="$with_gnu_as" | |
df6faf79 | 680 | gas_flag="$with_gnu_as" |
861bb6c1 | 681 | else |
df6faf79 | 682 | gas_flag=no |
861bb6c1 JL |
683 | fi |
684 | ||
685 | ||
ab339d62 AO |
686 | # Check whether --with-as or --without-as was given. |
687 | if test "${with_as+set}" = set; then | |
688 | withval="$with_as" | |
3ccc3a56 | 689 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
690 | fi |
691 | ||
3ccc3a56 AO |
692 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
693 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
694 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 695 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
696 | gas_flag=yes |
697 | fi | |
698 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 699 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
700 | EOF |
701 | ||
3ccc3a56 | 702 | fi |
ab339d62 | 703 | |
861bb6c1 JL |
704 | # With stabs |
705 | # Check whether --with-stabs or --without-stabs was given. | |
706 | if test "${with_stabs+set}" = set; then | |
707 | withval="$with_stabs" | |
535b86ce | 708 | stabs="$with_stabs" |
861bb6c1 JL |
709 | else |
710 | stabs=no | |
711 | fi | |
712 | ||
713 | ||
714 | # With ELF | |
715 | # Check whether --with-elf or --without-elf was given. | |
716 | if test "${with_elf+set}" = set; then | |
717 | withval="$with_elf" | |
535b86ce | 718 | elf="$with_elf" |
861bb6c1 JL |
719 | else |
720 | elf=no | |
721 | fi | |
722 | ||
723 | ||
724 | # Specify the local prefix | |
4e88d51b | 725 | local_prefix= |
861bb6c1 JL |
726 | # Check whether --with-local-prefix or --without-local-prefix was given. |
727 | if test "${with_local_prefix+set}" = set; then | |
728 | withval="$with_local_prefix" | |
4e88d51b JM |
729 | case "${withval}" in |
730 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
731 | no) ;; | |
732 | *) local_prefix=$with_local_prefix ;; | |
733 | esac | |
861bb6c1 JL |
734 | fi |
735 | ||
736 | ||
737 | # Default local prefix if it is empty | |
75bffa71 | 738 | if test x$local_prefix = x; then |
861bb6c1 JL |
739 | local_prefix=/usr/local |
740 | fi | |
741 | ||
8f8d3278 NC |
742 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
743 | # passed in by the toplevel make and thus we'd get different behavior | |
744 | # depending on where we built the sources. | |
745 | gcc_gxx_include_dir= | |
861bb6c1 JL |
746 | # Specify the g++ header file directory |
747 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
748 | if test "${with_gxx_include_dir+set}" = set; then | |
749 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
750 | case "${withval}" in |
751 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
752 | no) ;; | |
8f8d3278 | 753 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 754 | esac |
861bb6c1 JL |
755 | fi |
756 | ||
757 | ||
8f8d3278 | 758 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 759 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 760 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 761 | else |
a270b446 | 762 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 763 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
764 | fi |
765 | fi | |
766 | ||
a494747c MM |
767 | # Enable expensive internal checks |
768 | # Check whether --enable-checking or --disable-checking was given. | |
769 | if test "${enable_checking+set}" = set; then | |
770 | enableval="$enable_checking" | |
4e88d51b JM |
771 | case "${enableval}" in |
772 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
773 | #define ENABLE_CHECKING 1 |
774 | EOF | |
4e88d51b JM |
775 | ;; |
776 | no) ;; | |
777 | *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; | |
778 | esac | |
a494747c MM |
779 | fi |
780 | ||
781 | ||
3ecc3258 ZW |
782 | # Check whether --enable-cpp or --disable-cpp was given. |
783 | if test "${enable_cpp+set}" = set; then | |
784 | enableval="$enable_cpp" | |
785 | : | |
786 | else | |
787 | enable_cpp=yes | |
788 | fi | |
789 | ||
790 | ||
791 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
792 | if test "${with_cpp_install_dir+set}" = set; then | |
793 | withval="$with_cpp_install_dir" | |
794 | if test x$withval = xyes; then | |
795 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
796 | elif test x$withval != xno; then | |
797 | cpp_install_dir=$withval | |
798 | fi | |
799 | fi | |
800 | ||
801 | ||
f81a440f | 802 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 803 | cpp_main=cccp |
f81a440f ZW |
804 | # Check whether --enable-cpplib or --disable-cpplib was given. |
805 | if test "${enable_cpplib+set}" = set; then | |
806 | enableval="$enable_cpplib" | |
807 | if test x$enable_cpplib != xno; then | |
808 | cpp_main=cppmain | |
809 | fi | |
810 | fi | |
811 | ||
812 | ||
813 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
861bb6c1 JL |
814 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
815 | if test "${enable_c_cpplib+set}" = set; then | |
816 | enableval="$enable_c_cpplib" | |
75bffa71 | 817 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
818 | extra_c_objs="${extra_c_objs} libcpp.a" |
819 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
4525d757 | 820 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 821 | cpp_main=cppmain |
861bb6c1 JL |
822 | fi |
823 | fi | |
824 | ||
f81a440f | 825 | |
76c8f855 BK |
826 | # Disable fast fixincludes |
827 | # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given. | |
828 | if test "${enable_fast_fixincludes+set}" = set; then | |
829 | enableval="$enable_fast_fixincludes" | |
830 | if test x$enable_fast_fixincludes = xno ; then | |
831 | cp $srcdir/fixincludes ./fixinc.sh | |
832 | fi | |
833 | fi | |
834 | ||
835 | ||
c5c76735 JL |
836 | # Enable Multibyte Characters for C/C++ |
837 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
838 | if test "${enable_c_mbchar+set}" = set; then | |
839 | enableval="$enable_c_mbchar" | |
840 | if [ x$enable_c_mbchar != xno ]; then | |
64fb023e | 841 | extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1" |
c5c76735 JL |
842 | fi |
843 | fi | |
844 | ||
845 | ||
861bb6c1 JL |
846 | # Enable threads |
847 | # Pass with no value to take the default | |
848 | # Pass with a value to specify a thread package | |
849 | # Check whether --enable-threads or --disable-threads was given. | |
850 | if test "${enable_threads+set}" = set; then | |
851 | enableval="$enable_threads" | |
75bffa71 | 852 | if test x$enable_threads = xno; then |
861bb6c1 JL |
853 | enable_threads='' |
854 | fi | |
855 | else | |
856 | enable_threads='' | |
857 | fi | |
858 | ||
859 | ||
e445171e | 860 | enable_threads_flag=$enable_threads |
861bb6c1 | 861 | # Check if a valid thread package |
e445171e | 862 | case x${enable_threads_flag} in |
861bb6c1 JL |
863 | x | xno) |
864 | # No threads | |
a851212a | 865 | target_thread_file='single' |
861bb6c1 JL |
866 | ;; |
867 | xyes) | |
868 | # default | |
a851212a | 869 | target_thread_file='' |
861bb6c1 JL |
870 | ;; |
871 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 872 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 873 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
874 | ;; |
875 | *) | |
876 | echo "$enable_threads is an unknown thread package" 1>&2 | |
877 | exit 1 | |
878 | ;; | |
879 | esac | |
880 | ||
d8bb17c8 OP |
881 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
882 | if test "${enable_objc_gc+set}" = set; then | |
883 | enableval="$enable_objc_gc" | |
884 | if [ x$enable_objc_gc = xno ]; then | |
885 | objc_boehm_gc='' | |
886 | else | |
887 | objc_boehm_gc=1 | |
888 | fi | |
889 | else | |
890 | objc_boehm_gc='' | |
891 | fi | |
892 | ||
893 | ||
90e6a802 RL |
894 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
895 | if test "${with_dwarf2+set}" = set; then | |
896 | withval="$with_dwarf2" | |
897 | dwarf2="$with_dwarf2" | |
898 | else | |
899 | dwarf2=no | |
900 | fi | |
901 | ||
902 | ||
861bb6c1 JL |
903 | # Determine the host, build, and target systems |
904 | ac_aux_dir= | |
905 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
906 | if test -f $ac_dir/install-sh; then | |
907 | ac_aux_dir=$ac_dir | |
908 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
909 | break | |
910 | elif test -f $ac_dir/install.sh; then | |
911 | ac_aux_dir=$ac_dir | |
912 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
913 | break | |
914 | fi | |
915 | done | |
916 | if test -z "$ac_aux_dir"; then | |
917 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
918 | fi | |
919 | ac_config_guess=$ac_aux_dir/config.guess | |
920 | ac_config_sub=$ac_aux_dir/config.sub | |
921 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
922 | ||
923 | ||
924 | # Do some error checking and defaulting for the host and target type. | |
925 | # The inputs are: | |
926 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
927 | # | |
928 | # The rules are: | |
929 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
930 | # same time. | |
931 | # 2. Host defaults to nonopt. | |
932 | # 3. If nonopt is not specified, then host defaults to the current host, | |
933 | # as determined by config.guess. | |
934 | # 4. Target and build default to nonopt. | |
935 | # 5. If nonopt is not specified, then target and build default to host. | |
936 | ||
937 | # The aliases save the names the user supplied, while $host etc. | |
938 | # will get canonicalized. | |
939 | case $host---$target---$nonopt in | |
940 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
941 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
942 | esac | |
943 | ||
944 | ||
945 | # Make sure we can run config.sub. | |
6f144c9c | 946 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
947 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
948 | fi | |
949 | ||
950 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
81bf3d9e | 951 | echo "configure:952: checking host system type" >&5 |
861bb6c1 JL |
952 | |
953 | host_alias=$host | |
954 | case "$host_alias" in | |
955 | NONE) | |
956 | case $nonopt in | |
957 | NONE) | |
6f144c9c | 958 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
959 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
960 | fi ;; | |
961 | *) host_alias=$nonopt ;; | |
962 | esac ;; | |
963 | esac | |
964 | ||
6f144c9c | 965 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
966 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
967 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
968 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
969 | echo "$ac_t""$host" 1>&6 | |
970 | ||
971 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
81bf3d9e | 972 | echo "configure:973: checking target system type" >&5 |
861bb6c1 JL |
973 | |
974 | target_alias=$target | |
975 | case "$target_alias" in | |
976 | NONE) | |
977 | case $nonopt in | |
978 | NONE) target_alias=$host_alias ;; | |
979 | *) target_alias=$nonopt ;; | |
980 | esac ;; | |
981 | esac | |
982 | ||
6f144c9c | 983 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
984 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
985 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
986 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
987 | echo "$ac_t""$target" 1>&6 | |
988 | ||
989 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
81bf3d9e | 990 | echo "configure:991: checking build system type" >&5 |
861bb6c1 JL |
991 | |
992 | build_alias=$build | |
993 | case "$build_alias" in | |
994 | NONE) | |
995 | case $nonopt in | |
996 | NONE) build_alias=$host_alias ;; | |
997 | *) build_alias=$nonopt ;; | |
998 | esac ;; | |
999 | esac | |
1000 | ||
6f144c9c | 1001 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1002 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1003 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1004 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1005 | echo "$ac_t""$build" 1>&6 | |
1006 | ||
1007 | test "$host_alias" != "$target_alias" && | |
1008 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1009 | NONENONEs,x,x, && | |
1010 | program_prefix=${target_alias}- | |
1011 | ||
1012 | ||
e9a25f70 JL |
1013 | # Find the native compiler |
1014 | # Extract the first word of "gcc", so it can be a program name with args. | |
1015 | set dummy gcc; ac_word=$2 | |
1016 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1017 | echo "configure:1018: checking for $ac_word" >&5 |
e9a25f70 JL |
1018 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1020 | else | |
1021 | if test -n "$CC"; then | |
1022 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1023 | else | |
cd9e5e7c | 1024 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1025 | ac_dummy="$PATH" |
1026 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1027 | test -z "$ac_dir" && ac_dir=. |
1028 | if test -f $ac_dir/$ac_word; then | |
1029 | ac_cv_prog_CC="gcc" | |
1030 | break | |
1031 | fi | |
1032 | done | |
1033 | IFS="$ac_save_ifs" | |
1034 | fi | |
1035 | fi | |
1036 | CC="$ac_cv_prog_CC" | |
1037 | if test -n "$CC"; then | |
1038 | echo "$ac_t""$CC" 1>&6 | |
1039 | else | |
1040 | echo "$ac_t""no" 1>&6 | |
1041 | fi | |
1042 | ||
1043 | if test -z "$CC"; then | |
1044 | # Extract the first word of "cc", so it can be a program name with args. | |
1045 | set dummy cc; ac_word=$2 | |
1046 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1047 | echo "configure:1048: checking for $ac_word" >&5 |
e9a25f70 JL |
1048 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1050 | else | |
1051 | if test -n "$CC"; then | |
1052 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1053 | else | |
cd9e5e7c | 1054 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1055 | ac_prog_rejected=no |
b27d2bd5 MK |
1056 | ac_dummy="$PATH" |
1057 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1058 | test -z "$ac_dir" && ac_dir=. |
1059 | if test -f $ac_dir/$ac_word; then | |
1060 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1061 | ac_prog_rejected=yes | |
1062 | continue | |
1063 | fi | |
1064 | ac_cv_prog_CC="cc" | |
1065 | break | |
1066 | fi | |
1067 | done | |
1068 | IFS="$ac_save_ifs" | |
1069 | if test $ac_prog_rejected = yes; then | |
1070 | # We found a bogon in the path, so make sure we never use it. | |
1071 | set dummy $ac_cv_prog_CC | |
1072 | shift | |
1073 | if test $# -gt 0; then | |
1074 | # We chose a different compiler from the bogus one. | |
1075 | # However, it has the same basename, so the bogon will be chosen | |
1076 | # first if we set CC to just the basename; use the full file name. | |
1077 | shift | |
1078 | set dummy "$ac_dir/$ac_word" "$@" | |
1079 | shift | |
1080 | ac_cv_prog_CC="$@" | |
1081 | fi | |
1082 | fi | |
1083 | fi | |
1084 | fi | |
1085 | CC="$ac_cv_prog_CC" | |
1086 | if test -n "$CC"; then | |
1087 | echo "$ac_t""$CC" 1>&6 | |
1088 | else | |
1089 | echo "$ac_t""no" 1>&6 | |
1090 | fi | |
1091 | ||
cd9e5e7c MK |
1092 | if test -z "$CC"; then |
1093 | case "`uname -s`" in | |
1094 | *win32* | *WIN32*) | |
1095 | # Extract the first word of "cl", so it can be a program name with args. | |
1096 | set dummy cl; ac_word=$2 | |
1097 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1098 | echo "configure:1099: checking for $ac_word" >&5 |
cd9e5e7c MK |
1099 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1101 | else | |
1102 | if test -n "$CC"; then | |
1103 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1104 | else | |
1105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1106 | ac_dummy="$PATH" |
1107 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1108 | test -z "$ac_dir" && ac_dir=. |
1109 | if test -f $ac_dir/$ac_word; then | |
1110 | ac_cv_prog_CC="cl" | |
1111 | break | |
1112 | fi | |
1113 | done | |
1114 | IFS="$ac_save_ifs" | |
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 | ;; | |
1124 | esac | |
1125 | fi | |
e9a25f70 JL |
1126 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1127 | fi | |
1128 | ||
1129 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
81bf3d9e | 1130 | echo "configure:1131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1131 | |
1132 | ac_ext=c | |
1133 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1134 | ac_cpp='$CPP $CPPFLAGS' | |
1135 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1136 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1137 | cross_compiling=$ac_cv_prog_cc_cross |
1138 | ||
b27d2bd5 MK |
1139 | cat > conftest.$ac_ext << EOF |
1140 | ||
81bf3d9e | 1141 | #line 1142 "configure" |
e9a25f70 | 1142 | #include "confdefs.h" |
b27d2bd5 | 1143 | |
e9a25f70 JL |
1144 | main(){return(0);} |
1145 | EOF | |
81bf3d9e | 1146 | if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1147 | ac_cv_prog_cc_works=yes |
1148 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1149 | if (./conftest; exit) 2>/dev/null; then | |
1150 | ac_cv_prog_cc_cross=no | |
1151 | else | |
1152 | ac_cv_prog_cc_cross=yes | |
1153 | fi | |
1154 | else | |
1155 | echo "configure: failed program was:" >&5 | |
1156 | cat conftest.$ac_ext >&5 | |
1157 | ac_cv_prog_cc_works=no | |
1158 | fi | |
1159 | rm -fr conftest* | |
b27d2bd5 MK |
1160 | ac_ext=c |
1161 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1162 | ac_cpp='$CPP $CPPFLAGS' | |
1163 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1164 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1165 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1166 | |
1167 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1168 | if test $ac_cv_prog_cc_works = no; then | |
1169 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1170 | fi | |
1171 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
81bf3d9e | 1172 | echo "configure:1173: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1173 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1174 | cross_compiling=$ac_cv_prog_cc_cross | |
1175 | ||
1176 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
81bf3d9e | 1177 | echo "configure:1178: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1178 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1180 | else | |
1181 | cat > conftest.c <<EOF | |
1182 | #ifdef __GNUC__ | |
1183 | yes; | |
1184 | #endif | |
1185 | EOF | |
81bf3d9e | 1186 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1187 | ac_cv_prog_gcc=yes |
1188 | else | |
1189 | ac_cv_prog_gcc=no | |
1190 | fi | |
1191 | fi | |
1192 | ||
1193 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1194 | ||
1195 | if test $ac_cv_prog_gcc = yes; then | |
1196 | GCC=yes | |
cd9e5e7c MK |
1197 | else |
1198 | GCC= | |
1199 | fi | |
1200 | ||
1201 | ac_test_CFLAGS="${CFLAGS+set}" | |
1202 | ac_save_CFLAGS="$CFLAGS" | |
1203 | CFLAGS= | |
1204 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
81bf3d9e | 1205 | echo "configure:1206: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1206 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1208 | else | |
1209 | echo 'void f(){}' > conftest.c | |
1210 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1211 | ac_cv_prog_cc_g=yes | |
1212 | else | |
1213 | ac_cv_prog_cc_g=no | |
1214 | fi | |
1215 | rm -f conftest* | |
1216 | ||
1217 | fi | |
1218 | ||
1219 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1220 | if test "$ac_test_CFLAGS" = set; then |
1221 | CFLAGS="$ac_save_CFLAGS" | |
1222 | elif test $ac_cv_prog_cc_g = yes; then | |
1223 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1224 | CFLAGS="-g -O2" |
1225 | else | |
cd9e5e7c | 1226 | CFLAGS="-g" |
81814e35 | 1227 | fi |
3723cad9 | 1228 | else |
cd9e5e7c MK |
1229 | if test "$GCC" = yes; then |
1230 | CFLAGS="-O2" | |
1231 | else | |
1232 | CFLAGS= | |
1233 | fi | |
e9a25f70 JL |
1234 | fi |
1235 | ||
04cabffc | 1236 | echo $ac_n "checking for long double""... $ac_c" 1>&6 |
81bf3d9e | 1237 | echo "configure:1238: checking for long double" >&5 |
04cabffc KG |
1238 | if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then |
1239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1240 | else | |
1241 | if test "$GCC" = yes; then | |
1242 | gcc_cv_c_long_double=yes | |
1243 | else | |
1244 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1245 | #line 1246 "configure" |
04cabffc KG |
1246 | #include "confdefs.h" |
1247 | ||
1248 | int main() { | |
1249 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
1250 | long double foo = 0.0; | |
1251 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
1252 | switch (0) case 0: case (sizeof(long double) >= sizeof(double)):; | |
1253 | ; return 0; } | |
1254 | EOF | |
81bf3d9e | 1255 | if { (eval echo configure:1256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
04cabffc KG |
1256 | rm -rf conftest* |
1257 | gcc_cv_c_long_double=yes | |
1258 | else | |
1259 | echo "configure: failed program was:" >&5 | |
1260 | cat conftest.$ac_ext >&5 | |
1261 | rm -rf conftest* | |
1262 | gcc_cv_c_long_double=no | |
1263 | fi | |
1264 | rm -f conftest* | |
1265 | fi | |
1266 | fi | |
1267 | ||
1268 | echo "$ac_t""$gcc_cv_c_long_double" 1>&6 | |
1269 | if test $gcc_cv_c_long_double = yes; then | |
1270 | cat >> confdefs.h <<\EOF | |
1271 | #define HAVE_LONG_DOUBLE 1 | |
1272 | EOF | |
1273 | ||
1274 | fi | |
1275 | ||
61842080 MM |
1276 | |
1277 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1278 | # That's useful for people building cross-compilers, or just running a | |
1279 | # quick `make'. | |
1280 | if test "x$GCC" = "xyes"; then | |
1281 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1282 | else | |
1283 | stage1_warn_cflags="" | |
1284 | fi | |
1285 | ||
1286 | ||
e9a25f70 | 1287 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
81bf3d9e | 1288 | echo "configure:1289: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1289 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1290 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1292 | else | |
1293 | cat > conftestmake <<\EOF | |
1294 | all: | |
1295 | @echo 'ac_maketemp="${MAKE}"' | |
1296 | EOF | |
1297 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1298 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1299 | if test -n "$ac_maketemp"; then | |
1300 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1301 | else | |
1302 | eval ac_cv_prog_make_${ac_make}_set=no | |
1303 | fi | |
1304 | rm -f conftestmake | |
1305 | fi | |
1306 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1307 | echo "$ac_t""yes" 1>&6 | |
1308 | SET_MAKE= | |
1309 | else | |
1310 | echo "$ac_t""no" 1>&6 | |
1311 | SET_MAKE="MAKE=${MAKE-make}" | |
1312 | fi | |
1313 | ||
1314 | ||
ab339d62 | 1315 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
81bf3d9e | 1316 | echo "configure:1317: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1317 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1318 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1319 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1320 | else |
3ccc3a56 | 1321 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1322 | fi |
1323 | else | |
1324 | echo "$ac_t""no" 1>&6 | |
1325 | fi | |
1326 | ||
1327 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
81bf3d9e | 1328 | echo "configure:1329: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1329 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1330 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1331 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1332 | else |
3ccc3a56 | 1333 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1334 | fi |
1335 | else | |
1336 | echo "$ac_t""no" 1>&6 | |
1337 | fi | |
1338 | ||
861bb6c1 | 1339 | # Find some useful tools |
0c723ada | 1340 | for ac_prog in mawk gawk nawk awk |
861bb6c1 JL |
1341 | do |
1342 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1343 | set dummy $ac_prog; ac_word=$2 | |
1344 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1345 | echo "configure:1346: checking for $ac_word" >&5 |
861bb6c1 JL |
1346 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1348 | else | |
1349 | if test -n "$AWK"; then | |
1350 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1351 | else | |
cd9e5e7c | 1352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1353 | ac_dummy="$PATH" |
1354 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1355 | test -z "$ac_dir" && ac_dir=. |
1356 | if test -f $ac_dir/$ac_word; then | |
1357 | ac_cv_prog_AWK="$ac_prog" | |
1358 | break | |
1359 | fi | |
1360 | done | |
1361 | IFS="$ac_save_ifs" | |
1362 | fi | |
1363 | fi | |
1364 | AWK="$ac_cv_prog_AWK" | |
1365 | if test -n "$AWK"; then | |
1366 | echo "$ac_t""$AWK" 1>&6 | |
1367 | else | |
1368 | echo "$ac_t""no" 1>&6 | |
1369 | fi | |
1370 | ||
1371 | test -n "$AWK" && break | |
1372 | done | |
1373 | ||
1374 | # Extract the first word of "flex", so it can be a program name with args. | |
1375 | set dummy flex; ac_word=$2 | |
1376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1377 | echo "configure:1378: checking for $ac_word" >&5 |
861bb6c1 JL |
1378 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1380 | else | |
1381 | if test -n "$LEX"; then | |
1382 | ac_cv_prog_LEX="$LEX" # 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_LEX="flex" | |
1390 | break | |
1391 | fi | |
1392 | done | |
1393 | IFS="$ac_save_ifs" | |
1394 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1395 | fi | |
1396 | fi | |
1397 | LEX="$ac_cv_prog_LEX" | |
1398 | if test -n "$LEX"; then | |
1399 | echo "$ac_t""$LEX" 1>&6 | |
1400 | else | |
1401 | echo "$ac_t""no" 1>&6 | |
1402 | fi | |
1403 | ||
1404 | if test -z "$LEXLIB" | |
1405 | then | |
1406 | case "$LEX" in | |
1407 | flex*) ac_lib=fl ;; | |
1408 | *) ac_lib=l ;; | |
1409 | esac | |
1410 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
81bf3d9e | 1411 | echo "configure:1412: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1412 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1413 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1415 | else | |
1416 | ac_save_LIBS="$LIBS" | |
1417 | LIBS="-l$ac_lib $LIBS" | |
1418 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1419 | #line 1420 "configure" |
861bb6c1 JL |
1420 | #include "confdefs.h" |
1421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1422 | /* We use char because int might match the return type of a gcc2 | |
1423 | builtin and then its argument prototype would still apply. */ | |
1424 | char yywrap(); | |
1425 | ||
1426 | int main() { | |
1427 | yywrap() | |
1428 | ; return 0; } | |
1429 | EOF | |
81bf3d9e | 1430 | if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1431 | rm -rf conftest* |
1432 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1433 | else | |
1434 | echo "configure: failed program was:" >&5 | |
1435 | cat conftest.$ac_ext >&5 | |
1436 | rm -rf conftest* | |
1437 | eval "ac_cv_lib_$ac_lib_var=no" | |
1438 | fi | |
1439 | rm -f conftest* | |
1440 | LIBS="$ac_save_LIBS" | |
1441 | ||
1442 | fi | |
1443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1444 | echo "$ac_t""yes" 1>&6 | |
1445 | LEXLIB="-l$ac_lib" | |
1446 | else | |
1447 | echo "$ac_t""no" 1>&6 | |
1448 | fi | |
1449 | ||
1450 | fi | |
1451 | ||
0a4b6309 | 1452 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
81bf3d9e | 1453 | echo "configure:1454: checking whether ln works" >&5 |
0a4b6309 RL |
1454 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1456 | else | |
1457 | rm -f conftestdata_t | |
1458 | echo >conftestdata_f | |
1459 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1460 | then | |
1461 | gcc_cv_prog_LN="ln" | |
1462 | else | |
1463 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1464 | then | |
1465 | gcc_cv_prog_LN="ln -s" | |
1466 | else | |
1467 | gcc_cv_prog_LN=cp | |
1468 | fi | |
1469 | fi | |
1470 | rm -f conftestdata_f conftestdata_t | |
1471 | ||
1472 | fi | |
1473 | LN="$gcc_cv_prog_LN" | |
1474 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1475 | echo "$ac_t""yes" 1>&6 | |
1476 | else | |
1477 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1478 | echo "$ac_t""no, using ln -s" 1>&6 | |
1479 | else | |
1480 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1481 | fi | |
1482 | fi | |
1483 | ||
1484 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
81bf3d9e | 1485 | echo "configure:1486: checking whether ln -s works" >&5 |
0a4b6309 RL |
1486 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+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 -s conftestdata_f conftestdata_t 2>/dev/null | |
1492 | then | |
1493 | gcc_cv_prog_LN_S="ln -s" | |
1494 | else | |
1495 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1496 | then | |
1497 | gcc_cv_prog_LN_S=ln | |
1498 | else | |
1499 | gcc_cv_prog_LN_S=cp | |
1500 | fi | |
1501 | fi | |
1502 | rm -f conftestdata_f conftestdata_t | |
1503 | ||
1504 | fi | |
1505 | LN_S="$gcc_cv_prog_LN_S" | |
1506 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1507 | echo "$ac_t""yes" 1>&6 | |
1508 | else | |
1509 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1510 | echo "$ac_t""no, using ln" 1>&6 | |
1511 | else | |
1512 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1513 | fi | |
1514 | fi | |
1515 | ||
1516 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
81bf3d9e | 1517 | echo "configure:1518: checking for volatile" >&5 |
0a4b6309 RL |
1518 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1520 | else | |
1521 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1522 | #line 1523 "configure" |
0a4b6309 RL |
1523 | #include "confdefs.h" |
1524 | ||
1525 | int main() { | |
1526 | volatile int foo; | |
1527 | ; return 0; } | |
1528 | EOF | |
81bf3d9e | 1529 | if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1530 | rm -rf conftest* |
1531 | gcc_cv_c_volatile=yes | |
1532 | else | |
1533 | echo "configure: failed program was:" >&5 | |
1534 | cat conftest.$ac_ext >&5 | |
1535 | rm -rf conftest* | |
1536 | gcc_cv_c_volatile=no | |
1537 | fi | |
1538 | rm -f conftest* | |
1539 | fi | |
1540 | ||
1541 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1542 | if test $gcc_cv_c_volatile = yes ; then | |
1543 | cat >> confdefs.h <<\EOF | |
1544 | #define HAVE_VOLATILE 1 | |
1545 | EOF | |
1546 | ||
1547 | fi | |
1548 | ||
861bb6c1 JL |
1549 | # Extract the first word of "ranlib", so it can be a program name with args. |
1550 | set dummy ranlib; ac_word=$2 | |
1551 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1552 | echo "configure:1553: checking for $ac_word" >&5 |
861bb6c1 JL |
1553 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1555 | else | |
1556 | if test -n "$RANLIB"; then | |
1557 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1558 | else | |
cd9e5e7c | 1559 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1560 | ac_dummy="$PATH" |
1561 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1562 | test -z "$ac_dir" && ac_dir=. |
1563 | if test -f $ac_dir/$ac_word; then | |
1564 | ac_cv_prog_RANLIB="ranlib" | |
1565 | break | |
1566 | fi | |
1567 | done | |
1568 | IFS="$ac_save_ifs" | |
1569 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1570 | fi | |
1571 | fi | |
1572 | RANLIB="$ac_cv_prog_RANLIB" | |
1573 | if test -n "$RANLIB"; then | |
1574 | echo "$ac_t""$RANLIB" 1>&6 | |
1575 | else | |
1576 | echo "$ac_t""no" 1>&6 | |
1577 | fi | |
1578 | ||
1579 | for ac_prog in 'bison -y' byacc | |
1580 | do | |
1581 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1582 | set dummy $ac_prog; ac_word=$2 | |
1583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 1584 | echo "configure:1585: checking for $ac_word" >&5 |
861bb6c1 JL |
1585 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1587 | else | |
1588 | if test -n "$YACC"; then | |
1589 | ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog" | |
1597 | break | |
1598 | fi | |
1599 | done | |
1600 | IFS="$ac_save_ifs" | |
1601 | fi | |
1602 | fi | |
1603 | YACC="$ac_cv_prog_YACC" | |
1604 | if test -n "$YACC"; then | |
1605 | echo "$ac_t""$YACC" 1>&6 | |
1606 | else | |
1607 | echo "$ac_t""no" 1>&6 | |
1608 | fi | |
1609 | ||
1610 | test -n "$YACC" && break | |
1611 | done | |
1612 | test -n "$YACC" || YACC="yacc" | |
1613 | ||
0a4b6309 RL |
1614 | # Find a good install program. We prefer a C program (faster), |
1615 | # so one script is as good as another. But avoid the broken or | |
1616 | # incompatible versions: | |
1617 | # SysV /etc/install, /usr/sbin/install | |
1618 | # SunOS /usr/etc/install | |
1619 | # IRIX /sbin/install | |
1620 | # AIX /bin/install | |
1621 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1622 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1623 | # ./install, which can be erroneously created by make from ./install.sh. | |
1624 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
81bf3d9e | 1625 | echo "configure:1626: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1626 | if test -z "$INSTALL"; then |
1627 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1629 | else | |
1630 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1631 | for ac_dir in $PATH; do | |
1632 | # Account for people who put trailing slashes in PATH elements. | |
1633 | case "$ac_dir/" in | |
1634 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1635 | *) | |
1636 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1637 | for ac_prog in ginstall scoinst install; do | |
1638 | if test -f $ac_dir/$ac_prog; then | |
1639 | if test $ac_prog = install && | |
1640 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1641 | # AIX install. It has an incompatible calling convention. | |
1642 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1643 | : | |
1644 | else | |
1645 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1646 | break 2 | |
1647 | fi | |
1648 | fi | |
1649 | done | |
1650 | ;; | |
1651 | esac | |
1652 | done | |
1653 | IFS="$ac_save_IFS" | |
1654 | ||
1655 | fi | |
1656 | if test "${ac_cv_path_install+set}" = set; then | |
1657 | INSTALL="$ac_cv_path_install" | |
1658 | else | |
1659 | # As a last resort, use the slow shell script. We don't cache a | |
1660 | # path for INSTALL within a source directory, because that will | |
1661 | # break other packages using the cache if that directory is | |
1662 | # removed, or if the path is relative. | |
1663 | INSTALL="$ac_install_sh" | |
1664 | fi | |
1665 | fi | |
1666 | echo "$ac_t""$INSTALL" 1>&6 | |
1667 | ||
1668 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1669 | # It thinks the first close brace ends the variable substitution. | |
1670 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1671 | ||
1672 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1673 | ||
861bb6c1 | 1674 | |
861bb6c1 | 1675 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
81bf3d9e | 1676 | echo "configure:1677: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1677 | # On Suns, sometimes $CPP names a directory. |
1678 | if test -n "$CPP" && test -d "$CPP"; then | |
1679 | CPP= | |
1680 | fi | |
1681 | if test -z "$CPP"; then | |
1682 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1684 | else | |
1685 | # This must be in double quotes, not single quotes, because CPP may get | |
1686 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1687 | CPP="${CC-cc} -E" | |
1688 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1689 | # not just through cpp. | |
1690 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1691 | #line 1692 "configure" |
861bb6c1 JL |
1692 | #include "confdefs.h" |
1693 | #include <assert.h> | |
1694 | Syntax Error | |
1695 | EOF | |
1696 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 1697 | { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1698 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1699 | if test -z "$ac_err"; then |
1700 | : | |
1701 | else | |
1702 | echo "$ac_err" >&5 | |
1703 | echo "configure: failed program was:" >&5 | |
1704 | cat conftest.$ac_ext >&5 | |
1705 | rm -rf conftest* | |
1706 | CPP="${CC-cc} -E -traditional-cpp" | |
1707 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1708 | #line 1709 "configure" |
cd9e5e7c MK |
1709 | #include "confdefs.h" |
1710 | #include <assert.h> | |
1711 | Syntax Error | |
1712 | EOF | |
1713 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 1714 | { (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1715 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1716 | if test -z "$ac_err"; then | |
1717 | : | |
1718 | else | |
1719 | echo "$ac_err" >&5 | |
1720 | echo "configure: failed program was:" >&5 | |
1721 | cat conftest.$ac_ext >&5 | |
1722 | rm -rf conftest* | |
1723 | CPP="${CC-cc} -nologo -E" | |
1724 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1725 | #line 1726 "configure" |
20fced2c MM |
1726 | #include "confdefs.h" |
1727 | #include <assert.h> | |
1728 | Syntax Error | |
1729 | EOF | |
1730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 1731 | { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1733 | if test -z "$ac_err"; then |
1734 | : | |
1735 | else | |
1736 | echo "$ac_err" >&5 | |
1737 | echo "configure: failed program was:" >&5 | |
1738 | cat conftest.$ac_ext >&5 | |
1739 | rm -rf conftest* | |
1740 | CPP=/lib/cpp | |
1741 | fi | |
1742 | rm -f conftest* | |
1743 | fi | |
cd9e5e7c MK |
1744 | rm -f conftest* |
1745 | fi | |
861bb6c1 JL |
1746 | rm -f conftest* |
1747 | ac_cv_prog_CPP="$CPP" | |
1748 | fi | |
1749 | CPP="$ac_cv_prog_CPP" | |
1750 | else | |
1751 | ac_cv_prog_CPP="$CPP" | |
1752 | fi | |
1753 | echo "$ac_t""$CPP" 1>&6 | |
1754 | ||
956d6950 | 1755 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
81bf3d9e | 1756 | echo "configure:1757: checking for ANSI C header files" >&5 |
956d6950 JL |
1757 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1759 | else | |
1760 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1761 | #line 1762 "configure" |
956d6950 JL |
1762 | #include "confdefs.h" |
1763 | #include <stdlib.h> | |
1764 | #include <stdarg.h> | |
1765 | #include <string.h> | |
1766 | #include <float.h> | |
1767 | EOF | |
1768 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 1769 | { (eval echo configure:1770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1770 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1771 | if test -z "$ac_err"; then |
1772 | rm -rf conftest* | |
1773 | ac_cv_header_stdc=yes | |
1774 | else | |
1775 | echo "$ac_err" >&5 | |
1776 | echo "configure: failed program was:" >&5 | |
1777 | cat conftest.$ac_ext >&5 | |
1778 | rm -rf conftest* | |
1779 | ac_cv_header_stdc=no | |
1780 | fi | |
1781 | rm -f conftest* | |
1782 | ||
1783 | if test $ac_cv_header_stdc = yes; then | |
1784 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1785 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1786 | #line 1787 "configure" |
956d6950 JL |
1787 | #include "confdefs.h" |
1788 | #include <string.h> | |
1789 | EOF | |
1790 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1791 | egrep "memchr" >/dev/null 2>&1; then | |
1792 | : | |
1793 | else | |
1794 | rm -rf conftest* | |
1795 | ac_cv_header_stdc=no | |
1796 | fi | |
1797 | rm -f conftest* | |
1798 | ||
1799 | fi | |
1800 | ||
1801 | if test $ac_cv_header_stdc = yes; then | |
1802 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1803 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1804 | #line 1805 "configure" |
956d6950 JL |
1805 | #include "confdefs.h" |
1806 | #include <stdlib.h> | |
1807 | EOF | |
1808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1809 | egrep "free" >/dev/null 2>&1; then | |
1810 | : | |
1811 | else | |
1812 | rm -rf conftest* | |
1813 | ac_cv_header_stdc=no | |
1814 | fi | |
1815 | rm -f conftest* | |
1816 | ||
1817 | fi | |
1818 | ||
1819 | if test $ac_cv_header_stdc = yes; then | |
1820 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1821 | if test "$cross_compiling" = yes; then | |
1822 | : | |
1823 | else | |
1824 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1825 | #line 1826 "configure" |
956d6950 JL |
1826 | #include "confdefs.h" |
1827 | #include <ctype.h> | |
1828 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1829 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1830 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1831 | int main () { int i; for (i = 0; i < 256; i++) | |
1832 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1833 | exit (0); } | |
1834 | ||
1835 | EOF | |
81bf3d9e | 1836 | if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1837 | then |
1838 | : | |
1839 | else | |
1840 | echo "configure: failed program was:" >&5 | |
1841 | cat conftest.$ac_ext >&5 | |
1842 | rm -fr conftest* | |
1843 | ac_cv_header_stdc=no | |
1844 | fi | |
1845 | rm -fr conftest* | |
1846 | fi | |
1847 | ||
1848 | fi | |
1849 | fi | |
1850 | ||
1851 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1852 | if test $ac_cv_header_stdc = yes; then | |
1853 | cat >> confdefs.h <<\EOF | |
1854 | #define STDC_HEADERS 1 | |
1855 | EOF | |
1856 | ||
1857 | fi | |
1858 | ||
1859 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
81bf3d9e | 1860 | echo "configure:1861: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1861 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1863 | else | |
1864 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1865 | #line 1866 "configure" |
956d6950 JL |
1866 | #include "confdefs.h" |
1867 | #include <sys/types.h> | |
1868 | #include <sys/time.h> | |
1869 | #include <time.h> | |
1870 | int main() { | |
1871 | struct tm *tp; | |
1872 | ; return 0; } | |
1873 | EOF | |
81bf3d9e | 1874 | if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1875 | rm -rf conftest* |
1876 | ac_cv_header_time=yes | |
1877 | else | |
1878 | echo "configure: failed program was:" >&5 | |
1879 | cat conftest.$ac_ext >&5 | |
1880 | rm -rf conftest* | |
1881 | ac_cv_header_time=no | |
1882 | fi | |
1883 | rm -f conftest* | |
1884 | fi | |
1885 | ||
1886 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1887 | if test $ac_cv_header_time = yes; then | |
1888 | cat >> confdefs.h <<\EOF | |
1889 | #define TIME_WITH_SYS_TIME 1 | |
1890 | EOF | |
1891 | ||
1892 | fi | |
1893 | ||
0a4b6309 | 1894 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
81bf3d9e | 1895 | echo "configure:1896: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1896 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1897 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1898 | else | |
1899 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1900 | #line 1901 "configure" |
0a4b6309 RL |
1901 | #include "confdefs.h" |
1902 | #include <string.h> | |
1903 | #include <strings.h> | |
1904 | int main() { | |
1905 | ||
1906 | ; return 0; } | |
1907 | EOF | |
81bf3d9e | 1908 | if { (eval echo configure:1909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1909 | rm -rf conftest* |
1910 | gcc_cv_header_string=yes | |
1911 | else | |
1912 | echo "configure: failed program was:" >&5 | |
1913 | cat conftest.$ac_ext >&5 | |
1914 | rm -rf conftest* | |
1915 | gcc_cv_header_string=no | |
1916 | fi | |
1917 | rm -f conftest* | |
1918 | fi | |
1919 | ||
1920 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1921 | if test $gcc_cv_header_string = yes; then | |
1922 | cat >> confdefs.h <<\EOF | |
1923 | #define STRING_WITH_STRINGS 1 | |
1924 | EOF | |
1925 | ||
1926 | fi | |
1927 | ||
e9831ca0 | 1928 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
81bf3d9e | 1929 | echo "configure:1930: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1930 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1932 | else | |
1933 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1934 | #line 1935 "configure" |
e9831ca0 KG |
1935 | #include "confdefs.h" |
1936 | #include <sys/types.h> | |
1937 | #include <sys/wait.h> | |
1938 | #ifndef WEXITSTATUS | |
1939 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1940 | #endif | |
1941 | #ifndef WIFEXITED | |
1942 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1943 | #endif | |
1944 | int main() { | |
1945 | int s; | |
1946 | wait (&s); | |
1947 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1948 | ; return 0; } | |
1949 | EOF | |
81bf3d9e | 1950 | if { (eval echo configure:1951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1951 | rm -rf conftest* |
1952 | ac_cv_header_sys_wait_h=yes | |
1953 | else | |
1954 | echo "configure: failed program was:" >&5 | |
1955 | cat conftest.$ac_ext >&5 | |
1956 | rm -rf conftest* | |
1957 | ac_cv_header_sys_wait_h=no | |
1958 | fi | |
1959 | rm -f conftest* | |
1960 | fi | |
1961 | ||
1962 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1963 | if test $ac_cv_header_sys_wait_h = yes; then | |
1964 | cat >> confdefs.h <<\EOF | |
1965 | #define HAVE_SYS_WAIT_H 1 | |
1966 | EOF | |
1967 | ||
1968 | fi | |
1969 | ||
03c41c05 ZW |
1970 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \ |
1971 | fcntl.h unistd.h stab.h sys/file.h sys/time.h \ | |
1972 | sys/resource.h sys/param.h sys/times.h sys/stat.h \ | |
1973 | direct.h malloc.h | |
861bb6c1 JL |
1974 | do |
1975 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1976 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
81bf3d9e | 1977 | echo "configure:1978: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1978 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1980 | else | |
1981 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 1982 | #line 1983 "configure" |
861bb6c1 JL |
1983 | #include "confdefs.h" |
1984 | #include <$ac_hdr> | |
1985 | EOF | |
956d6950 | 1986 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
81bf3d9e | 1987 | { (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1988 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1989 | if test -z "$ac_err"; then |
1990 | rm -rf conftest* | |
1991 | eval "ac_cv_header_$ac_safe=yes" | |
1992 | else | |
1993 | echo "$ac_err" >&5 | |
1994 | echo "configure: failed program was:" >&5 | |
1995 | cat conftest.$ac_ext >&5 | |
1996 | rm -rf conftest* | |
1997 | eval "ac_cv_header_$ac_safe=no" | |
1998 | fi | |
1999 | rm -f conftest* | |
2000 | fi | |
2001 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2002 | echo "$ac_t""yes" 1>&6 | |
2003 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2004 | cat >> confdefs.h <<EOF | |
2005 | #define $ac_tr_hdr 1 | |
2006 | EOF | |
2007 | ||
2008 | else | |
2009 | echo "$ac_t""no" 1>&6 | |
2010 | fi | |
2011 | done | |
2012 | ||
2013 | ||
f24af81b TT |
2014 | # Check for thread headers. |
2015 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
2016 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
81bf3d9e | 2017 | echo "configure:2018: checking for thread.h" >&5 |
f24af81b TT |
2018 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2020 | else | |
2021 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2022 | #line 2023 "configure" |
f24af81b TT |
2023 | #include "confdefs.h" |
2024 | #include <thread.h> | |
2025 | EOF | |
2026 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 2027 | { (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2028 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2029 | if test -z "$ac_err"; then |
2030 | rm -rf conftest* | |
2031 | eval "ac_cv_header_$ac_safe=yes" | |
2032 | else | |
2033 | echo "$ac_err" >&5 | |
2034 | echo "configure: failed program was:" >&5 | |
2035 | cat conftest.$ac_ext >&5 | |
2036 | rm -rf conftest* | |
2037 | eval "ac_cv_header_$ac_safe=no" | |
2038 | fi | |
2039 | rm -f conftest* | |
2040 | fi | |
2041 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2042 | echo "$ac_t""yes" 1>&6 | |
2043 | have_thread_h=yes | |
2044 | else | |
2045 | echo "$ac_t""no" 1>&6 | |
2046 | have_thread_h= | |
2047 | fi | |
2048 | ||
2049 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2050 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
81bf3d9e | 2051 | echo "configure:2052: checking for pthread.h" >&5 |
f24af81b TT |
2052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2054 | else | |
2055 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2056 | #line 2057 "configure" |
f24af81b TT |
2057 | #include "confdefs.h" |
2058 | #include <pthread.h> | |
2059 | EOF | |
2060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 2061 | { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2063 | if test -z "$ac_err"; then |
2064 | rm -rf conftest* | |
2065 | eval "ac_cv_header_$ac_safe=yes" | |
2066 | else | |
2067 | echo "$ac_err" >&5 | |
2068 | echo "configure: failed program was:" >&5 | |
2069 | cat conftest.$ac_ext >&5 | |
2070 | rm -rf conftest* | |
2071 | eval "ac_cv_header_$ac_safe=no" | |
2072 | fi | |
2073 | rm -f conftest* | |
2074 | fi | |
2075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2076 | echo "$ac_t""yes" 1>&6 | |
2077 | have_pthread_h=yes | |
2078 | else | |
2079 | echo "$ac_t""no" 1>&6 | |
2080 | have_pthread_h= | |
2081 | fi | |
2082 | ||
2083 | ||
bcf12124 JL |
2084 | # See if GNAT has been installed |
2085 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2086 | set dummy gnatbind; ac_word=$2 | |
2087 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 2088 | echo "configure:2089: checking for $ac_word" >&5 |
bcf12124 JL |
2089 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2091 | else | |
2092 | if test -n "$gnat"; then | |
2093 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2094 | else | |
cd9e5e7c | 2095 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2096 | ac_dummy="$PATH" |
2097 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2098 | test -z "$ac_dir" && ac_dir=. |
2099 | if test -f $ac_dir/$ac_word; then | |
2100 | ac_cv_prog_gnat="yes" | |
2101 | break | |
2102 | fi | |
2103 | done | |
2104 | IFS="$ac_save_ifs" | |
2105 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2106 | fi | |
2107 | fi | |
2108 | gnat="$ac_cv_prog_gnat" | |
2109 | if test -n "$gnat"; then | |
2110 | echo "$ac_t""$gnat" 1>&6 | |
2111 | else | |
2112 | echo "$ac_t""no" 1>&6 | |
2113 | fi | |
2114 | ||
2115 | ||
890ad3ea KG |
2116 | # See if the stage1 system preprocessor understands the ANSI C |
2117 | # preprocessor stringification operator. | |
2118 | ||
2119 | ||
2120 | echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 | |
81bf3d9e | 2121 | echo "configure:2122: checking for preprocessor stringizing operator" >&5 |
890ad3ea | 2122 | if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then |
76844337 RH |
2123 | echo $ac_n "(cached) $ac_c" 1>&6 |
2124 | else | |
2125 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2126 | #line 2127 "configure" |
76844337 RH |
2127 | #include "confdefs.h" |
2128 | ||
890ad3ea KG |
2129 | #define x(y) #y |
2130 | ||
2131 | char *s = x(teststring); | |
2132 | ||
76844337 | 2133 | EOF |
890ad3ea KG |
2134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2135 | egrep "#teststring" >/dev/null 2>&1; then | |
76844337 | 2136 | rm -rf conftest* |
890ad3ea | 2137 | ac_cv_c_stringize=no |
76844337 | 2138 | else |
76844337 | 2139 | rm -rf conftest* |
890ad3ea | 2140 | ac_cv_c_stringize=yes |
76844337 RH |
2141 | fi |
2142 | rm -f conftest* | |
890ad3ea | 2143 | |
76844337 RH |
2144 | fi |
2145 | ||
890ad3ea KG |
2146 | if test "${ac_cv_c_stringize}" = yes |
2147 | then | |
2148 | cat >> confdefs.h <<\EOF | |
2149 | #define HAVE_STRINGIZE 1 | |
76844337 RH |
2150 | EOF |
2151 | ||
2152 | fi | |
890ad3ea KG |
2153 | echo "$ac_t""${ac_cv_c_stringize}" 1>&6 |
2154 | ||
76844337 | 2155 | |
956d6950 JL |
2156 | # Use <inttypes.h> only if it exists, |
2157 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2158 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
81bf3d9e | 2159 | echo "configure:2160: checking for inttypes.h" >&5 |
956d6950 JL |
2160 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2162 | else | |
2163 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2164 | #line 2165 "configure" |
956d6950 JL |
2165 | #include "confdefs.h" |
2166 | #include <sys/types.h> | |
2167 | #include <inttypes.h> | |
2168 | int main() { | |
2169 | intmax_t i = -1; | |
2170 | ; return 0; } | |
2171 | EOF | |
81bf3d9e | 2172 | if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2173 | rm -rf conftest* |
0056a9b5 | 2174 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2175 | else |
2176 | echo "configure: failed program was:" >&5 | |
2177 | cat conftest.$ac_ext >&5 | |
2178 | rm -rf conftest* | |
2179 | gcc_cv_header_inttypes_h=no | |
2180 | fi | |
2181 | rm -f conftest* | |
2182 | fi | |
2183 | ||
2184 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2185 | if test $gcc_cv_header_inttypes_h = yes; then |
2186 | cat >> confdefs.h <<\EOF | |
2187 | #define HAVE_INTTYPES_H 1 | |
2188 | EOF | |
2189 | ||
2190 | fi | |
956d6950 | 2191 | |
76b4b31e | 2192 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 2193 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 | 2194 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
03c41c05 | 2195 | fputs_unlocked getrusage |
956d6950 JL |
2196 | do |
2197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
81bf3d9e | 2198 | echo "configure:2199: checking for $ac_func" >&5 |
956d6950 JL |
2199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2201 | else | |
2202 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2203 | #line 2204 "configure" |
956d6950 JL |
2204 | #include "confdefs.h" |
2205 | /* System header to define __stub macros and hopefully few prototypes, | |
2206 | which can conflict with char $ac_func(); below. */ | |
2207 | #include <assert.h> | |
2208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2209 | /* We use char because int might match the return type of a gcc2 | |
2210 | builtin and then its argument prototype would still apply. */ | |
2211 | char $ac_func(); | |
2212 | ||
2213 | int main() { | |
2214 | ||
2215 | /* The GNU C library defines this for functions which it implements | |
2216 | to always fail with ENOSYS. Some functions are actually named | |
2217 | something starting with __ and the normal name is an alias. */ | |
2218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2219 | choke me | |
2220 | #else | |
3ecc3258 | 2221 | $ac_func(); |
956d6950 JL |
2222 | #endif |
2223 | ||
2224 | ; return 0; } | |
2225 | EOF | |
81bf3d9e | 2226 | if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2227 | rm -rf conftest* |
2228 | eval "ac_cv_func_$ac_func=yes" | |
2229 | else | |
2230 | echo "configure: failed program was:" >&5 | |
2231 | cat conftest.$ac_ext >&5 | |
2232 | rm -rf conftest* | |
2233 | eval "ac_cv_func_$ac_func=no" | |
2234 | fi | |
2235 | rm -f conftest* | |
2236 | fi | |
2237 | ||
2238 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2239 | echo "$ac_t""yes" 1>&6 | |
2240 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2241 | cat >> confdefs.h <<EOF | |
2242 | #define $ac_tr_func 1 | |
2243 | EOF | |
2244 | ||
2245 | else | |
2246 | echo "$ac_t""no" 1>&6 | |
2247 | fi | |
2248 | done | |
2249 | ||
6885fc87 | 2250 | |
0b9d02c6 JL |
2251 | # Make sure wchar_t is available |
2252 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2253 | ||
0a4b6309 | 2254 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
81bf3d9e | 2255 | echo "configure:2256: checking for vprintf" >&5 |
0a4b6309 RL |
2256 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2258 | else | |
2259 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2260 | #line 2261 "configure" |
0a4b6309 RL |
2261 | #include "confdefs.h" |
2262 | /* System header to define __stub macros and hopefully few prototypes, | |
2263 | which can conflict with char vprintf(); below. */ | |
2264 | #include <assert.h> | |
2265 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2266 | /* We use char because int might match the return type of a gcc2 | |
2267 | builtin and then its argument prototype would still apply. */ | |
2268 | char vprintf(); | |
2269 | ||
2270 | int main() { | |
2271 | ||
2272 | /* The GNU C library defines this for functions which it implements | |
2273 | to always fail with ENOSYS. Some functions are actually named | |
2274 | something starting with __ and the normal name is an alias. */ | |
2275 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2276 | choke me | |
2277 | #else | |
3ecc3258 | 2278 | vprintf(); |
0a4b6309 RL |
2279 | #endif |
2280 | ||
2281 | ; return 0; } | |
2282 | EOF | |
81bf3d9e | 2283 | if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2284 | rm -rf conftest* |
2285 | eval "ac_cv_func_vprintf=yes" | |
2286 | else | |
2287 | echo "configure: failed program was:" >&5 | |
2288 | cat conftest.$ac_ext >&5 | |
2289 | rm -rf conftest* | |
2290 | eval "ac_cv_func_vprintf=no" | |
2291 | fi | |
2292 | rm -f conftest* | |
2293 | fi | |
2294 | ||
2295 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2296 | echo "$ac_t""yes" 1>&6 | |
2297 | cat >> confdefs.h <<\EOF | |
2298 | #define HAVE_VPRINTF 1 | |
2299 | EOF | |
2300 | ||
2301 | else | |
2302 | echo "$ac_t""no" 1>&6 | |
2303 | fi | |
8fa1f09f | 2304 | |
0a4b6309 RL |
2305 | if test "$ac_cv_func_vprintf" != yes; then |
2306 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
81bf3d9e | 2307 | echo "configure:2308: checking for _doprnt" >&5 |
0a4b6309 RL |
2308 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2310 | else | |
2311 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2312 | #line 2313 "configure" |
0a4b6309 RL |
2313 | #include "confdefs.h" |
2314 | /* System header to define __stub macros and hopefully few prototypes, | |
2315 | which can conflict with char _doprnt(); below. */ | |
2316 | #include <assert.h> | |
2317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2318 | /* We use char because int might match the return type of a gcc2 | |
2319 | builtin and then its argument prototype would still apply. */ | |
2320 | char _doprnt(); | |
2321 | ||
2322 | int main() { | |
2323 | ||
2324 | /* The GNU C library defines this for functions which it implements | |
2325 | to always fail with ENOSYS. Some functions are actually named | |
2326 | something starting with __ and the normal name is an alias. */ | |
2327 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2328 | choke me | |
2329 | #else | |
3ecc3258 | 2330 | _doprnt(); |
0a4b6309 RL |
2331 | #endif |
2332 | ||
2333 | ; return 0; } | |
2334 | EOF | |
81bf3d9e | 2335 | if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2336 | rm -rf conftest* |
2337 | eval "ac_cv_func__doprnt=yes" | |
2338 | else | |
2339 | echo "configure: failed program was:" >&5 | |
2340 | cat conftest.$ac_ext >&5 | |
2341 | rm -rf conftest* | |
2342 | eval "ac_cv_func__doprnt=no" | |
2343 | fi | |
2344 | rm -f conftest* | |
2345 | fi | |
2346 | ||
2347 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2348 | echo "$ac_t""yes" 1>&6 | |
2349 | cat >> confdefs.h <<\EOF | |
2350 | #define HAVE_DOPRNT 1 | |
2351 | EOF | |
2352 | ||
2353 | else | |
2354 | echo "$ac_t""no" 1>&6 | |
2355 | fi | |
2356 | ||
2357 | fi | |
2358 | ||
2359 | vfprintf= | |
2360 | doprint= | |
2361 | if test $ac_cv_func_vprintf != yes ; then | |
2362 | vfprintf=vfprintf.o | |
2363 | if test $ac_cv_func__doprnt != yes ; then | |
2364 | doprint=doprint.o | |
2365 | fi | |
2366 | fi | |
2367 | ||
2368 | ||
2369 | ||
2370 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
81bf3d9e | 2371 | echo "configure:2372: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2372 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2374 | else | |
2375 | if test "$cross_compiling" = yes; then | |
2376 | gcc_cv_func_printf_ptr=no | |
2377 | else | |
2378 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2379 | #line 2380 "configure" |
0a4b6309 RL |
2380 | #include "confdefs.h" |
2381 | #include <stdio.h> | |
2382 | ||
2383 | main() | |
2384 | { | |
2385 | char buf[64]; | |
2386 | char *p = buf, *q = NULL; | |
2387 | sprintf(buf, "%p", p); | |
2388 | sscanf(buf, "%p", &q); | |
2389 | exit (p != q); | |
2390 | } | |
2391 | EOF | |
81bf3d9e | 2392 | if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2393 | then |
2394 | gcc_cv_func_printf_ptr=yes | |
2395 | else | |
2396 | echo "configure: failed program was:" >&5 | |
2397 | cat conftest.$ac_ext >&5 | |
2398 | rm -fr conftest* | |
2399 | gcc_cv_func_printf_ptr=no | |
2400 | fi | |
2401 | rm -fr conftest* | |
2402 | fi | |
2403 | ||
2404 | rm -f core core.* *.core | |
2405 | fi | |
2406 | ||
2407 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2408 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2409 | cat >> confdefs.h <<\EOF | |
2410 | #define HAVE_PRINTF_PTR 1 | |
2411 | EOF | |
2412 | ||
2413 | fi | |
2414 | ||
b27d2bd5 MK |
2415 | |
2416 | case "${host}" in | |
2417 | *-*-uwin*) | |
2418 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2419 | # can hang configure; on other versions, vfork exists just as a stub. | |
2420 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2421 | ac_cv_func_vfork_works=no | |
2422 | ;; | |
2423 | esac | |
c375c43b | 2424 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
81bf3d9e | 2425 | echo "configure:2426: checking for pid_t" >&5 |
c375c43b KG |
2426 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2428 | else | |
2429 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2430 | #line 2431 "configure" |
c375c43b KG |
2431 | #include "confdefs.h" |
2432 | #include <sys/types.h> | |
2433 | #if STDC_HEADERS | |
2434 | #include <stdlib.h> | |
2435 | #include <stddef.h> | |
2436 | #endif | |
2437 | EOF | |
2438 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2439 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2440 | rm -rf conftest* |
2441 | ac_cv_type_pid_t=yes | |
2442 | else | |
2443 | rm -rf conftest* | |
2444 | ac_cv_type_pid_t=no | |
2445 | fi | |
2446 | rm -f conftest* | |
2447 | ||
2448 | fi | |
2449 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2450 | if test $ac_cv_type_pid_t = no; then | |
2451 | cat >> confdefs.h <<\EOF | |
2452 | #define pid_t int | |
2453 | EOF | |
2454 | ||
2455 | fi | |
2456 | ||
2457 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2458 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
81bf3d9e | 2459 | echo "configure:2460: checking for vfork.h" >&5 |
c375c43b KG |
2460 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2462 | else | |
2463 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2464 | #line 2465 "configure" |
c375c43b KG |
2465 | #include "confdefs.h" |
2466 | #include <vfork.h> | |
2467 | EOF | |
2468 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 2469 | { (eval echo configure:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2470 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2471 | if test -z "$ac_err"; then |
2472 | rm -rf conftest* | |
2473 | eval "ac_cv_header_$ac_safe=yes" | |
2474 | else | |
2475 | echo "$ac_err" >&5 | |
2476 | echo "configure: failed program was:" >&5 | |
2477 | cat conftest.$ac_ext >&5 | |
2478 | rm -rf conftest* | |
2479 | eval "ac_cv_header_$ac_safe=no" | |
2480 | fi | |
2481 | rm -f conftest* | |
2482 | fi | |
2483 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2484 | echo "$ac_t""yes" 1>&6 | |
2485 | cat >> confdefs.h <<\EOF | |
2486 | #define HAVE_VFORK_H 1 | |
2487 | EOF | |
2488 | ||
2489 | else | |
2490 | echo "$ac_t""no" 1>&6 | |
2491 | fi | |
2492 | ||
2493 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
81bf3d9e | 2494 | echo "configure:2495: checking for working vfork" >&5 |
c375c43b KG |
2495 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2497 | else | |
2498 | if test "$cross_compiling" = yes; then | |
2499 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
81bf3d9e | 2500 | echo "configure:2501: checking for vfork" >&5 |
c375c43b KG |
2501 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2503 | else | |
2504 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2505 | #line 2506 "configure" |
c375c43b KG |
2506 | #include "confdefs.h" |
2507 | /* System header to define __stub macros and hopefully few prototypes, | |
2508 | which can conflict with char vfork(); below. */ | |
2509 | #include <assert.h> | |
2510 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2511 | /* We use char because int might match the return type of a gcc2 | |
2512 | builtin and then its argument prototype would still apply. */ | |
2513 | char vfork(); | |
2514 | ||
2515 | int main() { | |
2516 | ||
2517 | /* The GNU C library defines this for functions which it implements | |
2518 | to always fail with ENOSYS. Some functions are actually named | |
2519 | something starting with __ and the normal name is an alias. */ | |
2520 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2521 | choke me | |
2522 | #else | |
3ecc3258 | 2523 | vfork(); |
c375c43b KG |
2524 | #endif |
2525 | ||
2526 | ; return 0; } | |
2527 | EOF | |
81bf3d9e | 2528 | if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2529 | rm -rf conftest* |
2530 | eval "ac_cv_func_vfork=yes" | |
2531 | else | |
2532 | echo "configure: failed program was:" >&5 | |
2533 | cat conftest.$ac_ext >&5 | |
2534 | rm -rf conftest* | |
2535 | eval "ac_cv_func_vfork=no" | |
2536 | fi | |
2537 | rm -f conftest* | |
2538 | fi | |
2539 | ||
2540 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2541 | echo "$ac_t""yes" 1>&6 | |
2542 | : | |
2543 | else | |
2544 | echo "$ac_t""no" 1>&6 | |
2545 | fi | |
2546 | ||
2547 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2548 | else | |
2549 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2550 | #line 2551 "configure" |
c375c43b KG |
2551 | #include "confdefs.h" |
2552 | /* Thanks to Paul Eggert for this test. */ | |
2553 | #include <stdio.h> | |
2554 | #include <sys/types.h> | |
2555 | #include <sys/stat.h> | |
2556 | #ifdef HAVE_UNISTD_H | |
2557 | #include <unistd.h> | |
2558 | #endif | |
2559 | #ifdef HAVE_VFORK_H | |
2560 | #include <vfork.h> | |
2561 | #endif | |
2562 | /* On some sparc systems, changes by the child to local and incoming | |
2563 | argument registers are propagated back to the parent. | |
2564 | The compiler is told about this with #include <vfork.h>, | |
2565 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2566 | Test for this by using a static variable whose address | |
2567 | is put into a register that is clobbered by the vfork. */ | |
2568 | static | |
2569 | #ifdef __cplusplus | |
2570 | sparc_address_test (int arg) | |
2571 | #else | |
2572 | sparc_address_test (arg) int arg; | |
2573 | #endif | |
2574 | { | |
2575 | static pid_t child; | |
2576 | if (!child) { | |
2577 | child = vfork (); | |
2578 | if (child < 0) { | |
2579 | perror ("vfork"); | |
2580 | _exit(2); | |
2581 | } | |
2582 | if (!child) { | |
2583 | arg = getpid(); | |
2584 | write(-1, "", 0); | |
2585 | _exit (arg); | |
2586 | } | |
2587 | } | |
2588 | } | |
2589 | main() { | |
2590 | pid_t parent = getpid (); | |
2591 | pid_t child; | |
2592 | ||
2593 | sparc_address_test (); | |
2594 | ||
2595 | child = vfork (); | |
2596 | ||
2597 | if (child == 0) { | |
2598 | /* Here is another test for sparc vfork register problems. | |
2599 | This test uses lots of local variables, at least | |
2600 | as many local variables as main has allocated so far | |
2601 | including compiler temporaries. 4 locals are enough for | |
2602 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2603 | A buggy compiler should reuse the register of parent | |
2604 | for one of the local variables, since it will think that | |
2605 | parent can't possibly be used any more in this routine. | |
2606 | Assigning to the local variable will thus munge parent | |
2607 | in the parent process. */ | |
2608 | pid_t | |
2609 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2610 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2611 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2612 | use the same hardware register for all 8 local variables. */ | |
2613 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2614 | || p != p5 || p != p6 || p != p7) | |
2615 | _exit(1); | |
2616 | ||
2617 | /* On some systems (e.g. IRIX 3.3), | |
2618 | vfork doesn't separate parent from child file descriptors. | |
2619 | If the child closes a descriptor before it execs or exits, | |
2620 | this munges the parent's descriptor as well. | |
2621 | Test for this by closing stdout in the child. */ | |
2622 | _exit(close(fileno(stdout)) != 0); | |
2623 | } else { | |
2624 | int status; | |
2625 | struct stat st; | |
2626 | ||
2627 | while (wait(&status) != child) | |
2628 | ; | |
2629 | exit( | |
2630 | /* Was there some problem with vforking? */ | |
2631 | child < 0 | |
2632 | ||
2633 | /* Did the child fail? (This shouldn't happen.) */ | |
2634 | || status | |
2635 | ||
2636 | /* Did the vfork/compiler bug occur? */ | |
2637 | || parent != getpid() | |
2638 | ||
2639 | /* Did the file descriptor bug occur? */ | |
2640 | || fstat(fileno(stdout), &st) != 0 | |
2641 | ); | |
2642 | } | |
2643 | } | |
2644 | EOF | |
81bf3d9e | 2645 | if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2646 | then |
2647 | ac_cv_func_vfork_works=yes | |
2648 | else | |
2649 | echo "configure: failed program was:" >&5 | |
2650 | cat conftest.$ac_ext >&5 | |
2651 | rm -fr conftest* | |
2652 | ac_cv_func_vfork_works=no | |
2653 | fi | |
2654 | rm -fr conftest* | |
2655 | fi | |
2656 | ||
2657 | fi | |
2658 | ||
2659 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2660 | if test $ac_cv_func_vfork_works = no; then | |
2661 | cat >> confdefs.h <<\EOF | |
2662 | #define vfork fork | |
2663 | EOF | |
2664 | ||
2665 | fi | |
2666 | ||
81bf3d9e | 2667 | for ac_hdr in unistd.h |
0a4b6309 | 2668 | do |
81bf3d9e RH |
2669 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2670 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2671 | echo "configure:2672: checking for $ac_hdr" >&5 | |
2672 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
0a4b6309 RL |
2673 | echo $ac_n "(cached) $ac_c" 1>&6 |
2674 | else | |
2675 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2676 | #line 2677 "configure" |
0a4b6309 | 2677 | #include "confdefs.h" |
81bf3d9e | 2678 | #include <$ac_hdr> |
0a4b6309 | 2679 | EOF |
81bf3d9e RH |
2680 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2681 | { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2682 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2683 | if test -z "$ac_err"; then | |
0a4b6309 | 2684 | rm -rf conftest* |
81bf3d9e | 2685 | eval "ac_cv_header_$ac_safe=yes" |
0a4b6309 | 2686 | else |
81bf3d9e | 2687 | echo "$ac_err" >&5 |
0a4b6309 RL |
2688 | echo "configure: failed program was:" >&5 |
2689 | cat conftest.$ac_ext >&5 | |
2690 | rm -rf conftest* | |
81bf3d9e | 2691 | eval "ac_cv_header_$ac_safe=no" |
0a4b6309 RL |
2692 | fi |
2693 | rm -f conftest* | |
2694 | fi | |
81bf3d9e | 2695 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
0a4b6309 | 2696 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2697 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0a4b6309 | 2698 | cat >> confdefs.h <<EOF |
81bf3d9e | 2699 | #define $ac_tr_hdr 1 |
0a4b6309 | 2700 | EOF |
81bf3d9e | 2701 | |
0a4b6309 RL |
2702 | else |
2703 | echo "$ac_t""no" 1>&6 | |
2704 | fi | |
0a4b6309 RL |
2705 | done |
2706 | ||
81bf3d9e | 2707 | for ac_func in getpagesize |
0a4b6309 | 2708 | do |
81bf3d9e RH |
2709 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2710 | echo "configure:2711: checking for $ac_func" >&5 | |
2711 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
0a4b6309 RL |
2712 | echo $ac_n "(cached) $ac_c" 1>&6 |
2713 | else | |
2714 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2715 | #line 2716 "configure" |
0a4b6309 | 2716 | #include "confdefs.h" |
81bf3d9e RH |
2717 | /* System header to define __stub macros and hopefully few prototypes, |
2718 | which can conflict with char $ac_func(); below. */ | |
2719 | #include <assert.h> | |
2720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2721 | /* We use char because int might match the return type of a gcc2 | |
2722 | builtin and then its argument prototype would still apply. */ | |
2723 | char $ac_func(); | |
8fa1f09f | 2724 | |
81bf3d9e RH |
2725 | int main() { |
2726 | ||
2727 | /* The GNU C library defines this for functions which it implements | |
2728 | to always fail with ENOSYS. Some functions are actually named | |
2729 | something starting with __ and the normal name is an alias. */ | |
2730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2731 | choke me | |
c5c76735 | 2732 | #else |
81bf3d9e | 2733 | $ac_func(); |
c5c76735 JL |
2734 | #endif |
2735 | ||
c5c76735 JL |
2736 | ; return 0; } |
2737 | EOF | |
81bf3d9e | 2738 | if { (eval echo configure:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c5c76735 | 2739 | rm -rf conftest* |
81bf3d9e | 2740 | eval "ac_cv_func_$ac_func=yes" |
c5c76735 JL |
2741 | else |
2742 | echo "configure: failed program was:" >&5 | |
2743 | cat conftest.$ac_ext >&5 | |
2744 | rm -rf conftest* | |
81bf3d9e | 2745 | eval "ac_cv_func_$ac_func=no" |
c5c76735 JL |
2746 | fi |
2747 | rm -f conftest* | |
2748 | fi | |
2749 | ||
81bf3d9e | 2750 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
c5c76735 | 2751 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2752 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
c5c76735 | 2753 | cat >> confdefs.h <<EOF |
81bf3d9e | 2754 | #define $ac_tr_func 1 |
c5c76735 | 2755 | EOF |
81bf3d9e | 2756 | |
c5c76735 JL |
2757 | else |
2758 | echo "$ac_t""no" 1>&6 | |
2759 | fi | |
c5c76735 JL |
2760 | done |
2761 | ||
81bf3d9e RH |
2762 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
2763 | echo "configure:2764: checking for working mmap" >&5 | |
2764 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | |
c5c76735 | 2765 | echo $ac_n "(cached) $ac_c" 1>&6 |
81bf3d9e RH |
2766 | else |
2767 | if test "$cross_compiling" = yes; then | |
2768 | ac_cv_func_mmap_fixed_mapped=no | |
c5c76735 JL |
2769 | else |
2770 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 2771 | #line 2772 "configure" |
c5c76735 JL |
2772 | #include "confdefs.h" |
2773 | ||
81bf3d9e RH |
2774 | /* Thanks to Mike Haertel and Jim Avera for this test. |
2775 | Here is a matrix of mmap possibilities: | |
2776 | mmap private not fixed | |
2777 | mmap private fixed at somewhere currently unmapped | |
2778 | mmap private fixed at somewhere already mapped | |
2779 | mmap shared not fixed | |
2780 | mmap shared fixed at somewhere currently unmapped | |
2781 | mmap shared fixed at somewhere already mapped | |
2782 | For private mappings, we should verify that changes cannot be read() | |
2783 | back from the file, nor mmap's back from the file at a different | |
2784 | address. (There have been systems where private was not correctly | |
2785 | implemented like the infamous i386 svr4.0, and systems where the | |
2786 | VM page cache was not coherent with the filesystem buffer cache | |
2787 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2788 | For shared mappings, we should conversely verify that changes get | |
2789 | propogated back to all the places they're supposed to be. | |
2790 | ||
2791 | Grep wants private fixed already mapped. | |
2792 | The main things grep needs to know about mmap are: | |
2793 | * does it exist and is it safe to write into the mmap'd area | |
2794 | * how to use it (BSD variants) */ | |
d2cabf16 | 2795 | #include <sys/types.h> |
81bf3d9e RH |
2796 | #include <fcntl.h> |
2797 | #include <sys/mman.h> | |
0a4b6309 | 2798 | |
81bf3d9e RH |
2799 | /* This mess was copied from the GNU getpagesize.h. */ |
2800 | #ifndef HAVE_GETPAGESIZE | |
2801 | # ifdef HAVE_UNISTD_H | |
2802 | # include <unistd.h> | |
2803 | # endif | |
0a4b6309 | 2804 | |
81bf3d9e RH |
2805 | /* Assume that all systems that can run configure have sys/param.h. */ |
2806 | # ifndef HAVE_SYS_PARAM_H | |
2807 | # define HAVE_SYS_PARAM_H 1 | |
2808 | # endif | |
0a4b6309 | 2809 | |
81bf3d9e RH |
2810 | # ifdef _SC_PAGESIZE |
2811 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2812 | # else /* no _SC_PAGESIZE */ | |
2813 | # ifdef HAVE_SYS_PARAM_H | |
2814 | # include <sys/param.h> | |
2815 | # ifdef EXEC_PAGESIZE | |
2816 | # define getpagesize() EXEC_PAGESIZE | |
2817 | # else /* no EXEC_PAGESIZE */ | |
2818 | # ifdef NBPG | |
2819 | # define getpagesize() NBPG * CLSIZE | |
2820 | # ifndef CLSIZE | |
2821 | # define CLSIZE 1 | |
2822 | # endif /* no CLSIZE */ | |
2823 | # else /* no NBPG */ | |
2824 | # ifdef NBPC | |
2825 | # define getpagesize() NBPC | |
2826 | # else /* no NBPC */ | |
2827 | # ifdef PAGESIZE | |
2828 | # define getpagesize() PAGESIZE | |
2829 | # endif /* PAGESIZE */ | |
2830 | # endif /* no NBPC */ | |
2831 | # endif /* no NBPG */ | |
2832 | # endif /* no EXEC_PAGESIZE */ | |
2833 | # else /* no HAVE_SYS_PARAM_H */ | |
2834 | # define getpagesize() 8192 /* punt totally */ | |
2835 | # endif /* no HAVE_SYS_PARAM_H */ | |
2836 | # endif /* no _SC_PAGESIZE */ | |
0a4b6309 | 2837 | |
81bf3d9e | 2838 | #endif /* no HAVE_GETPAGESIZE */ |
0a4b6309 | 2839 | |
81bf3d9e RH |
2840 | #ifdef __cplusplus |
2841 | extern "C" { void *malloc(unsigned); } | |
2842 | #else | |
2843 | char *malloc(); | |
2844 | #endif | |
956d6950 | 2845 | |
81bf3d9e RH |
2846 | int |
2847 | main() | |
2848 | { | |
2849 | char *data, *data2, *data3; | |
2850 | int i, pagesize; | |
2851 | int fd; | |
2852 | ||
2853 | pagesize = getpagesize(); | |
2854 | ||
2855 | /* | |
2856 | * First, make a file with some known garbage in it. | |
2857 | */ | |
2858 | data = malloc(pagesize); | |
2859 | if (!data) | |
2860 | exit(1); | |
2861 | for (i = 0; i < pagesize; ++i) | |
2862 | *(data + i) = rand(); | |
2863 | umask(0); | |
2864 | fd = creat("conftestmmap", 0600); | |
2865 | if (fd < 0) | |
2866 | exit(1); | |
2867 | if (write(fd, data, pagesize) != pagesize) | |
2868 | exit(1); | |
2869 | close(fd); | |
2870 | ||
2871 | /* | |
2872 | * Next, try to mmap the file at a fixed address which | |
2873 | * already has something else allocated at it. If we can, | |
2874 | * also make sure that we see the same garbage. | |
2875 | */ | |
2876 | fd = open("conftestmmap", O_RDWR); | |
2877 | if (fd < 0) | |
2878 | exit(1); | |
2879 | data2 = malloc(2 * pagesize); | |
2880 | if (!data2) | |
2881 | exit(1); | |
2882 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
2883 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
2884 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
2885 | exit(1); | |
2886 | for (i = 0; i < pagesize; ++i) | |
2887 | if (*(data + i) != *(data2 + i)) | |
2888 | exit(1); | |
2889 | ||
2890 | /* | |
2891 | * Finally, make sure that changes to the mapped area | |
2892 | * do not percolate back to the file as seen by read(). | |
2893 | * (This is a bug on some variants of i386 svr4.0.) | |
2894 | */ | |
2895 | for (i = 0; i < pagesize; ++i) | |
2896 | *(data2 + i) = *(data2 + i) + 1; | |
2897 | data3 = malloc(pagesize); | |
2898 | if (!data3) | |
2899 | exit(1); | |
2900 | if (read(fd, data3, pagesize) != pagesize) | |
2901 | exit(1); | |
2902 | for (i = 0; i < pagesize; ++i) | |
2903 | if (*(data + i) != *(data3 + i)) | |
2904 | exit(1); | |
2905 | close(fd); | |
2906 | unlink("conftestmmap"); | |
2907 | exit(0); | |
2908 | } | |
2909 | ||
2910 | EOF | |
2911 | if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
2912 | then | |
2913 | ac_cv_func_mmap_fixed_mapped=yes | |
2914 | else | |
2915 | echo "configure: failed program was:" >&5 | |
2916 | cat conftest.$ac_ext >&5 | |
2917 | rm -fr conftest* | |
2918 | ac_cv_func_mmap_fixed_mapped=no | |
2919 | fi | |
2920 | rm -fr conftest* | |
2921 | fi | |
2922 | ||
2923 | fi | |
2924 | ||
2925 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
2926 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2927 | cat >> confdefs.h <<\EOF | |
2928 | #define HAVE_MMAP 1 | |
2929 | EOF | |
2930 | ||
2931 | fi | |
2932 | ||
2933 | ||
2934 | for ac_func in bcopy bzero bcmp \ | |
2935 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ | |
2936 | strsignal putc_unlocked fputs_unlocked strstr | |
2937 | do | |
2938 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
2939 | echo "configure:2940: checking whether $ac_func must be declared" >&5 | |
2940 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then | |
2941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2942 | else | |
2943 | cat > conftest.$ac_ext <<EOF | |
2944 | #line 2945 "configure" | |
2945 | #include "confdefs.h" | |
2946 | ||
2947 | #include <stdio.h> | |
2948 | #ifdef STRING_WITH_STRINGS | |
2949 | # include <string.h> | |
2950 | # include <strings.h> | |
2951 | #else | |
2952 | # ifdef HAVE_STRING_H | |
2953 | # include <string.h> | |
2954 | # else | |
2955 | # ifdef HAVE_STRINGS_H | |
2956 | # include <strings.h> | |
2957 | # endif | |
2958 | # endif | |
2959 | #endif | |
2960 | #ifdef HAVE_STDLIB_H | |
2961 | #include <stdlib.h> | |
2962 | #endif | |
2963 | #ifdef HAVE_UNISTD_H | |
2964 | #include <unistd.h> | |
2965 | #endif | |
2966 | #ifndef HAVE_RINDEX | |
2967 | #define rindex strrchr | |
2968 | #endif | |
2969 | #ifndef HAVE_INDEX | |
2970 | #define index strchr | |
2971 | #endif | |
2972 | ||
2973 | int main() { | |
2974 | char *(*pfn) = (char *(*)) $ac_func | |
2975 | ; return 0; } | |
2976 | EOF | |
2977 | if { (eval echo configure:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2978 | rm -rf conftest* | |
2979 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2980 | else | |
2981 | echo "configure: failed program was:" >&5 | |
2982 | cat conftest.$ac_ext >&5 | |
2983 | rm -rf conftest* | |
2984 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2985 | fi | |
2986 | rm -f conftest* | |
2987 | fi | |
2988 | ||
2989 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2990 | echo "$ac_t""yes" 1>&6 | |
2991 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2992 | cat >> confdefs.h <<EOF | |
2993 | #define $gcc_tr_decl 1 | |
2994 | EOF | |
2995 | ||
2996 | else | |
2997 | echo "$ac_t""no" 1>&6 | |
2998 | fi | |
2999 | ||
3000 | done | |
3001 | ||
3002 | ||
3003 | for ac_func in malloc realloc calloc free | |
3004 | do | |
3005 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
3006 | echo "configure:3007: checking whether $ac_func must be declared" >&5 | |
3007 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then | |
3008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3009 | else | |
3010 | cat > conftest.$ac_ext <<EOF | |
3011 | #line 3012 "configure" | |
3012 | #include "confdefs.h" | |
3013 | ||
3014 | #include <stdio.h> | |
3015 | #ifdef STRING_WITH_STRINGS | |
3016 | # include <string.h> | |
3017 | # include <strings.h> | |
3018 | #else | |
3019 | # ifdef HAVE_STRING_H | |
3020 | # include <string.h> | |
3021 | # else | |
3022 | # ifdef HAVE_STRINGS_H | |
3023 | # include <strings.h> | |
3024 | # endif | |
3025 | # endif | |
3026 | #endif | |
3027 | #ifdef HAVE_STDLIB_H | |
3028 | #include <stdlib.h> | |
3029 | #endif | |
3030 | #ifdef HAVE_UNISTD_H | |
3031 | #include <unistd.h> | |
3032 | #endif | |
3033 | #ifndef HAVE_RINDEX | |
3034 | #define rindex strrchr | |
3035 | #endif | |
3036 | #ifndef HAVE_INDEX | |
3037 | #define index strchr | |
3038 | #endif | |
3039 | #ifdef HAVE_MALLOC_H | |
3040 | #include <malloc.h> | |
3041 | #endif | |
3042 | ||
3043 | int main() { | |
3044 | char *(*pfn) = (char *(*)) $ac_func | |
3045 | ; return 0; } | |
3046 | EOF | |
3047 | if { (eval echo configure:3048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3048 | rm -rf conftest* | |
3049 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3050 | else | |
3051 | echo "configure: failed program was:" >&5 | |
3052 | cat conftest.$ac_ext >&5 | |
3053 | rm -rf conftest* | |
3054 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3055 | fi | |
3056 | rm -f conftest* | |
3057 | fi | |
3058 | ||
3059 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3060 | echo "$ac_t""yes" 1>&6 | |
3061 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3062 | cat >> confdefs.h <<EOF | |
3063 | #define $gcc_tr_decl 1 | |
3064 | EOF | |
3065 | ||
3066 | else | |
3067 | echo "$ac_t""no" 1>&6 | |
3068 | fi | |
3069 | ||
3070 | done | |
3071 | ||
3072 | ||
3073 | for ac_func in getrlimit setrlimit getrusage | |
3074 | do | |
3075 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
3076 | echo "configure:3077: checking whether $ac_func must be declared" >&5 | |
3077 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then | |
3078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3079 | else | |
3080 | cat > conftest.$ac_ext <<EOF | |
3081 | #line 3082 "configure" | |
3082 | #include "confdefs.h" | |
3083 | ||
3084 | #include <stdio.h> | |
3085 | #ifdef STRING_WITH_STRINGS | |
3086 | # include <string.h> | |
3087 | # include <strings.h> | |
3088 | #else | |
3089 | # ifdef HAVE_STRING_H | |
3090 | # include <string.h> | |
3091 | # else | |
3092 | # ifdef HAVE_STRINGS_H | |
3093 | # include <strings.h> | |
3094 | # endif | |
3095 | # endif | |
3096 | #endif | |
3097 | #ifdef HAVE_STDLIB_H | |
3098 | #include <stdlib.h> | |
3099 | #endif | |
3100 | #ifdef HAVE_UNISTD_H | |
3101 | #include <unistd.h> | |
3102 | #endif | |
3103 | #ifndef HAVE_RINDEX | |
3104 | #define rindex strrchr | |
3105 | #endif | |
3106 | #ifndef HAVE_INDEX | |
3107 | #define index strchr | |
3108 | #endif | |
3109 | #include <sys/types.h> | |
3110 | #ifdef HAVE_SYS_RESOURCE_H | |
3111 | #include <sys/resource.h> | |
3112 | #endif | |
3113 | ||
3114 | int main() { | |
3115 | char *(*pfn) = (char *(*)) $ac_func | |
3116 | ; return 0; } | |
3117 | EOF | |
3118 | if { (eval echo configure:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3119 | rm -rf conftest* | |
3120 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3121 | else | |
3122 | echo "configure: failed program was:" >&5 | |
3123 | cat conftest.$ac_ext >&5 | |
3124 | rm -rf conftest* | |
3125 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3126 | fi | |
3127 | rm -f conftest* | |
3128 | fi | |
3129 | ||
3130 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3131 | echo "$ac_t""yes" 1>&6 | |
3132 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3133 | cat >> confdefs.h <<EOF | |
3134 | #define $gcc_tr_decl 1 | |
3135 | EOF | |
3136 | ||
3137 | else | |
3138 | echo "$ac_t""no" 1>&6 | |
3139 | fi | |
3140 | ||
3141 | done | |
3142 | ||
3143 | ||
3144 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
3145 | echo "configure:3146: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | |
956d6950 JL |
3146 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
3147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 3148 | else |
956d6950 | 3149 | cat > conftest.$ac_ext <<EOF |
81bf3d9e | 3150 | #line 3151 "configure" |
956d6950 JL |
3151 | #include "confdefs.h" |
3152 | #include <sys/types.h> | |
3153 | #include <signal.h> | |
3154 | /* NetBSD declares sys_siglist in unistd.h. */ | |
3155 | #ifdef HAVE_UNISTD_H | |
3156 | #include <unistd.h> | |
3157 | #endif | |
3158 | int main() { | |
3159 | char *msg = *(sys_siglist + 1); | |
3160 | ; return 0; } | |
3161 | EOF | |
81bf3d9e | 3162 | if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
3163 | rm -rf conftest* |
3164 | ac_cv_decl_sys_siglist=yes | |
3165 | else | |
3166 | echo "configure: failed program was:" >&5 | |
3167 | cat conftest.$ac_ext >&5 | |
3168 | rm -rf conftest* | |
3169 | ac_cv_decl_sys_siglist=no | |
3170 | fi | |
3171 | rm -f conftest* | |
3172 | fi | |
3173 | ||
3174 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
3175 | if test $ac_cv_decl_sys_siglist = yes; then | |
3176 | cat >> confdefs.h <<\EOF | |
3177 | #define SYS_SIGLIST_DECLARED 1 | |
3178 | EOF | |
3179 | ||
a63d08e6 | 3180 | fi |
a63d08e6 JL |
3181 | |
3182 | ||
75923b2f MK |
3183 | # mkdir takes a single argument on some systems. |
3184 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
81bf3d9e | 3185 | echo "configure:3186: checking if mkdir takes one argument" >&5 |
75923b2f MK |
3186 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
3187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3188 | else | |
3189 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 3190 | #line 3191 "configure" |
75923b2f MK |
3191 | #include "confdefs.h" |
3192 | ||
3193 | #include <sys/types.h> | |
3194 | #ifdef HAVE_SYS_STAT_H | |
3195 | # include <sys/stat.h> | |
3196 | #endif | |
3197 | #ifdef HAVE_UNISTD_H | |
3198 | # include <unistd.h> | |
3199 | #endif | |
3200 | #ifdef HAVE_DIRECT_H | |
3201 | # include <direct.h> | |
3202 | #endif | |
3203 | int main() { | |
3204 | mkdir ("foo", 0); | |
3205 | ; return 0; } | |
3206 | EOF | |
81bf3d9e | 3207 | if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
3208 | rm -rf conftest* |
3209 | gcc_cv_mkdir_takes_one_arg=no | |
3210 | else | |
3211 | echo "configure: failed program was:" >&5 | |
3212 | cat conftest.$ac_ext >&5 | |
3213 | rm -rf conftest* | |
3214 | gcc_cv_mkdir_takes_one_arg=yes | |
3215 | fi | |
3216 | rm -f conftest* | |
3217 | fi | |
3218 | ||
3219 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
3220 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
3221 | cat >> confdefs.h <<\EOF | |
3222 | #define MKDIR_TAKES_ONE_ARG 1 | |
3223 | EOF | |
3224 | ||
3225 | fi | |
3226 | ||
3227 | ||
861bb6c1 JL |
3228 | # File extensions |
3229 | manext='.1' | |
3230 | objext='.o' | |
3231 | ||
3232 | ||
3233 | ||
3234 | build_xm_file= | |
f6cb0e63 | 3235 | build_xm_defines= |
861bb6c1 JL |
3236 | build_install_headers_dir=install-headers-tar |
3237 | build_exeext= | |
3238 | host_xm_file= | |
f6cb0e63 | 3239 | host_xm_defines= |
861bb6c1 JL |
3240 | host_xmake_file= |
3241 | host_truncate_target= | |
6e26218f | 3242 | host_exeext= |
861bb6c1 JL |
3243 | |
3244 | # Decode the host machine, then the target machine. | |
3245 | # For the host machine, we save the xm_file variable as host_xm_file; | |
3246 | # then we decode the target machine and forget everything else | |
3247 | # that came from the host machine. | |
3248 | for machine in $build $host $target; do | |
3249 | ||
3250 | out_file= | |
3251 | xmake_file= | |
3252 | tmake_file= | |
3253 | extra_headers= | |
3254 | extra_passes= | |
3255 | extra_parts= | |
3256 | extra_programs= | |
3257 | extra_objs= | |
3258 | extra_host_objs= | |
3259 | extra_gcc_objs= | |
f6cb0e63 | 3260 | xm_defines= |
861bb6c1 JL |
3261 | float_format= |
3262 | # Set this to force installation and use of collect2. | |
3263 | use_collect2= | |
3264 | # Set this to override the default target model. | |
3265 | target_cpu_default= | |
861bb6c1 JL |
3266 | # Set this to control how the header file directory is installed. |
3267 | install_headers_dir=install-headers-tar | |
3268 | # Set this to a non-empty list of args to pass to cpp if the target | |
3269 | # wants its .md file passed through cpp. | |
3270 | md_cppflags= | |
3271 | # Set this if directory names should be truncated to 14 characters. | |
3272 | truncate_target= | |
3273 | # Set this if gdb needs a dir command with `dirname $out_file` | |
3274 | gdb_needs_out_file_path= | |
3275 | # Set this if the build machine requires executables to have a | |
3276 | # file name suffix. | |
3277 | exeext= | |
a851212a JW |
3278 | # Set this to control which thread package will be used. |
3279 | thread_file= | |
df6faf79 JW |
3280 | # Reinitialize these from the flag values every loop pass, since some |
3281 | # configure entries modify them. | |
3282 | gas="$gas_flag" | |
3283 | gnu_ld="$gnu_ld_flag" | |
e445171e | 3284 | enable_threads=$enable_threads_flag |
861bb6c1 | 3285 | |
6baf1cc8 BS |
3286 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
3287 | # updated in each machine entry. | |
3288 | tm_p_file= | |
861bb6c1 JL |
3289 | cpu_type=`echo $machine | sed 's/-.*$//'` |
3290 | case $machine in | |
3291 | alpha*-*-*) | |
3292 | cpu_type=alpha | |
3293 | ;; | |
3294 | arm*-*-*) | |
3295 | cpu_type=arm | |
3296 | ;; | |
3297 | c*-convex-*) | |
3298 | cpu_type=convex | |
3299 | ;; | |
f6cb0e63 | 3300 | i[34567]86-*-*) |
861bb6c1 JL |
3301 | cpu_type=i386 |
3302 | ;; | |
3303 | hppa*-*-*) | |
3304 | cpu_type=pa | |
3305 | ;; | |
3306 | m68000-*-*) | |
3307 | cpu_type=m68k | |
3308 | ;; | |
3309 | mips*-*-*) | |
3310 | cpu_type=mips | |
3311 | ;; | |
3312 | powerpc*-*-*) | |
3313 | cpu_type=rs6000 | |
3314 | ;; | |
3315 | pyramid-*-*) | |
3316 | cpu_type=pyr | |
3317 | ;; | |
3318 | sparc*-*-*) | |
3319 | cpu_type=sparc | |
3320 | ;; | |
3321 | esac | |
3322 | ||
3323 | tm_file=${cpu_type}/${cpu_type}.h | |
3324 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
6baf1cc8 BS |
3325 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h; |
3326 | then | |
3327 | tm_p_file=${cpu_type}/${cpu_type}-protos.h; | |
3328 | fi | |
7aae67a2 JM |
3329 | # On a.out targets, we need to use collect2. |
3330 | case $machine in | |
3331 | *-*-*aout*) | |
3332 | use_collect2=yes | |
3333 | ;; | |
3334 | esac | |
3335 | ||
1b4a979b | 3336 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
3337 | case $machine in |
3338 | *-*-linux-gnu*) | |
c7391272 | 3339 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 3340 | ;; |
1b4a979b ME |
3341 | *-*-openbsd*) |
3342 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
3343 | tmake_file="t-libc-ok t-openbsd" |
3344 | # avoid surprises, always provide an xm-openbsd file | |
3345 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
3346 | # don't depend on processor x-fragments as well |
3347 | xmake_file=none | |
1b4a979b ME |
3348 | if test x$enable_threads = xyes; then |
3349 | thread_file='posix' | |
3350 | tmake_file="${tmake_file} t-openbsd-thread" | |
3351 | fi | |
3352 | ;; | |
f6cb0e63 JL |
3353 | esac |
3354 | ||
861bb6c1 JL |
3355 | case $machine in |
3356 | # Support site-specific machine types. | |
3357 | *local*) | |
3358 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
3359 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
3360 | xm_file=${cpu_type}/xm-$rest.h | |
3361 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 3362 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
3363 | then xmake_file=${cpu_type}/x-$rest; \ |
3364 | else true; \ | |
3365 | fi | |
75bffa71 | 3366 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
3367 | then tmake_file=${cpu_type}/t-$rest; \ |
3368 | else true; \ | |
3369 | fi | |
3370 | ;; | |
3371 | 1750a-*-*) | |
3372 | ;; | |
3373 | a29k-*-bsd* | a29k-*-sym1*) | |
3374 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 3375 | xm_defines=USG |
861bb6c1 JL |
3376 | xmake_file=a29k/x-unix |
3377 | use_collect2=yes | |
3378 | ;; | |
3379 | a29k-*-udi | a29k-*-coff) | |
3380 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3381 | tmake_file=a29k/t-a29kbare | |
3382 | ;; | |
7cc34889 | 3383 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3384 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3385 | tmake_file=a29k/t-vx29k | |
3386 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3387 | thread_file='vxworks' |
861bb6c1 JL |
3388 | ;; |
3389 | a29k-*-*) # Default a29k environment. | |
3390 | use_collect2=yes | |
3391 | ;; | |
615c8231 DT |
3392 | alpha-*-interix) |
3393 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3394 | ||
3395 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3396 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3397 | |
8354da48 JL |
3398 | # GAS + IEEE_CONFORMANT |
3399 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3400 | |
3401 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3402 | xmake_file="x-interix alpha/t-pe" | |
e345693a | 3403 | tmake_file="alpha/t-interix alpha/t-ieee" |
615c8231 DT |
3404 | if test x$enable_threads = xyes ; then |
3405 | thread_file='posix' | |
3406 | fi | |
3407 | if test x$stabs = xyes ; then | |
3408 | tm_file="${tm_file} dbxcoff.h" | |
3409 | fi | |
3410 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3411 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3412 | ;; | |
861bb6c1 | 3413 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3414 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3415 | target_cpu_default="MASK_GAS" |
e345693a | 3416 | tmake_file="alpha/t-ieee" |
861bb6c1 JL |
3417 | gas=no |
3418 | xmake_file=none | |
861bb6c1 JL |
3419 | gas=yes gnu_ld=yes |
3420 | ;; | |
2601ebca | 3421 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3422 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3423 | target_cpu_default="MASK_GAS" |
e345693a | 3424 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
574badbc | 3425 | extra_parts="crtbegin.o crtend.o" |
2601ebca | 3426 | xmake_file=none |
2601ebca | 3427 | gas=yes gnu_ld=yes |
75bffa71 | 3428 | if test x$enable_threads = xyes; then |
2601ebca JL |
3429 | thread_file='posix' |
3430 | fi | |
3431 | ;; | |
861bb6c1 | 3432 | alpha*-*-linux-gnu*) |
9d654bba | 3433 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3434 | target_cpu_default="MASK_GAS" |
e345693a | 3435 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
574badbc | 3436 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 3437 | xmake_file=none |
861bb6c1 | 3438 | gas=yes gnu_ld=yes |
75bffa71 | 3439 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3440 | thread_file='posix' |
3441 | fi | |
3442 | ;; | |
9d654bba | 3443 | alpha*-*-netbsd*) |
66953094 | 3444 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba | 3445 | target_cpu_default="MASK_GAS" |
e345693a | 3446 | tmake_file="alpha/t-crtbe alpha/t-ieee" |
9d654bba RH |
3447 | extra_parts="crtbegin.o crtend.o" |
3448 | xmake_file=none | |
9d654bba RH |
3449 | gas=yes gnu_ld=yes |
3450 | ;; | |
1b4a979b ME |
3451 | |
3452 | alpha*-*-openbsd*) | |
3453 | # default x-alpha is only appropriate for dec-osf. | |
3454 | target_cpu_default="MASK_GAS" | |
e345693a | 3455 | tmake_file="alpha/t-ieee" |
1b4a979b | 3456 | ;; |
9d654bba | 3457 | |
e9a25f70 | 3458 | alpha*-dec-osf*) |
75bffa71 | 3459 | if test x$stabs = xyes |
861bb6c1 JL |
3460 | then |
3461 | tm_file="${tm_file} dbx.h" | |
3462 | fi | |
75bffa71 | 3463 | if test x$gas != xyes |
861bb6c1 JL |
3464 | then |
3465 | extra_passes="mips-tfile mips-tdump" | |
3466 | fi | |
861bb6c1 | 3467 | use_collect2=yes |
e345693a | 3468 | tmake_file="alpha/t-ieee" |
861bb6c1 | 3469 | case $machine in |
6ecd4e53 | 3470 | *-*-osf1*) |
b0435cf4 | 3471 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3472 | ;; |
3473 | *-*-osf[23]*) | |
b0435cf4 | 3474 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3475 | ;; |
3476 | *-*-osf4*) | |
b0435cf4 | 3477 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3478 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3479 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3480 | install_headers_dir=install-headers-cpio |
3481 | ;; | |
7bc69973 JP |
3482 | *-*-osf5*) |
3483 | tm_file="${tm_file} alpha/osf.h" | |
3484 | ;; | |
861bb6c1 | 3485 | esac |
e9a25f70 JL |
3486 | case $machine in |
3487 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
3488 | target_cpu_default=MASK_SUPPORT_ARCH | |
3489 | ;; | |
3490 | esac | |
861bb6c1 | 3491 | ;; |
9ec36da5 JL |
3492 | alpha*-*-vxworks*) |
3493 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
e345693a | 3494 | tmake_file="alpha/t-ieee" |
9ec36da5 JL |
3495 | if x$gas != xyes |
3496 | then | |
3497 | extra_passes="mips-tfile mips-tdump" | |
3498 | fi | |
3499 | use_collect2=yes | |
28897609 | 3500 | thread_file='vxworks' |
9ec36da5 | 3501 | ;; |
b0435cf4 | 3502 | alpha*-*-winnt*) |
615c8231 | 3503 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 | 3504 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
e345693a | 3505 | tmake_file="t-libc-ok alpha/t-ieee" |
861bb6c1 JL |
3506 | xmake_file=winnt/x-winnt |
3507 | extra_host_objs=oldnames.o | |
3508 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3509 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3510 | then |
3511 | extra_programs=ld.exe | |
3512 | fi | |
75bffa71 | 3513 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3514 | thread_file='win32' |
3515 | fi | |
3516 | ;; | |
3517 | alpha*-dec-vms*) | |
3518 | tm_file=alpha/vms.h | |
3519 | xm_file="${xm_file} alpha/xm-vms.h" | |
e345693a | 3520 | tmake_file="alpha/t-vms alpha/t-ieee" |
861bb6c1 | 3521 | ;; |
66ed0683 JL |
3522 | arc-*-elf*) |
3523 | extra_parts="crtinit.o crtfini.o" | |
3524 | ;; | |
861bb6c1 JL |
3525 | arm-*-coff* | armel-*-coff*) |
3526 | tm_file=arm/coff.h | |
3527 | tmake_file=arm/t-bare | |
3528 | ;; | |
2aa0c933 | 3529 | arm-*-vxworks*) |
e14db015 | 3530 | tm_file=arm/vxarm.h |
2aa0c933 | 3531 | tmake_file=arm/t-bare |
28897609 | 3532 | thread_file='vxworks' |
2aa0c933 | 3533 | ;; |
861bb6c1 JL |
3534 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3535 | tm_file=arm/riscix1-1.h | |
3536 | use_collect2=yes | |
3537 | ;; | |
3538 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3539 | if test x$gas = xyes |
861bb6c1 JL |
3540 | then |
3541 | tm_file=arm/rix-gas.h | |
3542 | else | |
3543 | tm_file=arm/riscix.h | |
3544 | fi | |
3545 | xmake_file=arm/x-riscix | |
3546 | tmake_file=arm/t-riscix | |
3547 | use_collect2=yes | |
3548 | ;; | |
3549 | arm-semi-aout | armel-semi-aout) | |
3550 | tm_file=arm/semi.h | |
3551 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3552 | ;; |
3553 | arm-semi-aof | armel-semi-aof) | |
3554 | tm_file=arm/semiaof.h | |
3555 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3556 | ;; |
58600d24 | 3557 | arm*-*-netbsd*) |
861bb6c1 | 3558 | tm_file=arm/netbsd.h |
641d4216 | 3559 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 3560 | tmake_file="t-netbsd arm/t-netbsd" |
af0ca027 | 3561 | use_collect2=yes |
861bb6c1 | 3562 | ;; |
b355a481 | 3563 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3564 | cpu_type=arm |
861bb6c1 | 3565 | xmake_file=x-linux |
b355a481 | 3566 | tm_file=arm/linux-aout.h |
861bb6c1 | 3567 | tmake_file=arm/t-linux |
861bb6c1 JL |
3568 | gnu_ld=yes |
3569 | ;; | |
078e19a4 | 3570 | arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker |
b355a481 NC |
3571 | xm_file=arm/xm-linux.h |
3572 | xmake_file=x-linux | |
078e19a4 | 3573 | tm_file="arm/linux-oldld.h arm/linux-elf.h" |
b355a481 NC |
3574 | case $machine in |
3575 | armv2*-*-*) | |
078e19a4 | 3576 | tm_file="arm/linux-elf26.h $tm_file" |
b355a481 | 3577 | ;; |
078e19a4 PB |
3578 | esac |
3579 | tmake_file="t-linux arm/t-linux" | |
3580 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3581 | gnu_ld=yes | |
3582 | case x${enable_threads} in | |
3583 | x | xyes | xpthreads | xposix) | |
3584 | thread_file='posix' | |
3585 | ;; | |
3586 | esac | |
3587 | ;; | |
3588 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF | |
3589 | xm_file=arm/xm-linux.h | |
3590 | xmake_file=x-linux | |
3591 | tm_file="arm/linux-elf.h" | |
3592 | case $machine in | |
3593 | armv2*-*-*) | |
3594 | tm_file="arm/linux-elf26.h $tm_file" | |
b355a481 NC |
3595 | ;; |
3596 | esac | |
3597 | tmake_file="t-linux arm/t-linux" | |
3598 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3599 | gnu_ld=yes |
65120c40 SB |
3600 | case x${enable_threads} in |
3601 | x | xyes | xpthreads | xposix) | |
3602 | thread_file='posix' | |
3603 | ;; | |
3604 | esac | |
b355a481 | 3605 | ;; |
483f6332 PB |
3606 | arm*-*-uclinux*) # ARM ucLinux |
3607 | tm_file=arm/uclinux-elf.h | |
3608 | tmake_file=arm/t-arm-elf | |
3609 | ;; | |
b355a481 | 3610 | arm*-*-aout) |
861bb6c1 | 3611 | tm_file=arm/aout.h |
e9a25f70 | 3612 | tmake_file=arm/t-bare |
861bb6c1 | 3613 | ;; |
e6592fff | 3614 | arm*-*-ecos-elf) |
54953b66 UD |
3615 | tm_file=arm/ecos-elf.h |
3616 | tmake_file=arm/t-elf | |
3617 | ;; | |
b355a481 NC |
3618 | arm*-*-elf) |
3619 | tm_file=arm/unknown-elf.h | |
3620 | tmake_file=arm/t-arm-elf | |
3621 | ;; | |
cbca921c CM |
3622 | arm*-*-oabi) |
3623 | tm_file=arm/unknown-elf-oabi.h | |
3624 | tmake_file=arm/t-arm-elf | |
3625 | ;; | |
cb805c2d NC |
3626 | arm-*-pe*) |
3627 | tm_file=arm/pe.h | |
3628 | tmake_file=arm/t-pe | |
3629 | extra_objs=pe.o | |
3630 | ;; | |
861bb6c1 JL |
3631 | c1-convex-*) # Convex C1 |
3632 | target_cpu_default=1 | |
3633 | use_collect2=yes | |
861bb6c1 JL |
3634 | ;; |
3635 | c2-convex-*) # Convex C2 | |
3636 | target_cpu_default=2 | |
3637 | use_collect2=yes | |
861bb6c1 JL |
3638 | ;; |
3639 | c32-convex-*) | |
3640 | target_cpu_default=4 | |
3641 | use_collect2=yes | |
861bb6c1 JL |
3642 | ;; |
3643 | c34-convex-*) | |
3644 | target_cpu_default=8 | |
3645 | use_collect2=yes | |
861bb6c1 JL |
3646 | ;; |
3647 | c38-convex-*) | |
3648 | target_cpu_default=16 | |
3649 | use_collect2=yes | |
861bb6c1 | 3650 | ;; |
62616695 MH |
3651 | c4x-*) |
3652 | cpu_type=c4x | |
3653 | tmake_file=c4x/t-c4x | |
3654 | ;; | |
861bb6c1 JL |
3655 | clipper-intergraph-clix*) |
3656 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3657 | xm_file=clipper/xm-clix.h | |
3658 | xmake_file=clipper/x-clix | |
3659 | extra_headers=va-clipper.h | |
3660 | extra_parts="crtbegin.o crtend.o" | |
3661 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3662 | ;; |
3663 | dsp16xx-*) | |
3664 | ;; | |
3665 | elxsi-elxsi-*) | |
3666 | use_collect2=yes | |
3667 | ;; | |
309dd885 NC |
3668 | fr30-*-elf) |
3669 | tm_file="fr30/fr30.h" | |
3670 | tmake_file=fr30/t-fr30 | |
3671 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3672 | ;; | |
861bb6c1 JL |
3673 | # This hasn't been upgraded to GCC 2. |
3674 | # fx80-alliant-*) # Alliant FX/80 | |
3675 | # ;; | |
3676 | h8300-*-*) | |
3677 | float_format=i32 | |
3678 | ;; | |
30f08b39 JL |
3679 | hppa*-*-linux*) |
3680 | target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)" | |
3681 | tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h" | |
3682 | tmake_file="t-linux pa/t-linux" | |
3683 | extra_parts="crtbegin.o crtend.o" | |
3684 | xmake_file=none | |
3685 | gas=yes gnu_ld=yes | |
3686 | if test x$enable_threads = xyes; then | |
3687 | thread_file='posix' | |
3688 | fi | |
3689 | ;; | |
1b4a979b | 3690 | hppa*-*-openbsd*) |
13ee407e | 3691 | target_cpu_default="MASK_PA_11" |
4525d757 | 3692 | tmake_file=pa/t-openbsd |
1b4a979b | 3693 | ;; |
861bb6c1 | 3694 | hppa1.1-*-pro*) |
0d381b47 JL |
3695 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
3696 | tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" | |
861bb6c1 JL |
3697 | xm_file=pa/xm-papro.h |
3698 | tmake_file=pa/t-pro | |
3699 | ;; | |
3700 | hppa1.1-*-osf*) | |
13ee407e | 3701 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3702 | tm_file="${tm_file} pa/som.h pa/pa-osf.h" |
861bb6c1 | 3703 | use_collect2=yes |
861bb6c1 JL |
3704 | ;; |
3705 | hppa1.1-*-rtems*) | |
0d381b47 JL |
3706 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
3707 | tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
861bb6c1 JL |
3708 | xm_file=pa/xm-papro.h |
3709 | tmake_file=pa/t-pro | |
3710 | ;; | |
3711 | hppa1.0-*-osf*) | |
0d381b47 | 3712 | tm_file="${tm_file} pa/som.h pa/pa-osf.h" |
861bb6c1 | 3713 | use_collect2=yes |
861bb6c1 JL |
3714 | ;; |
3715 | hppa1.1-*-bsd*) | |
0d381b47 | 3716 | tm_file="${tm_file} pa/som.h" |
13ee407e | 3717 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3718 | use_collect2=yes |
861bb6c1 JL |
3719 | ;; |
3720 | hppa1.0-*-bsd*) | |
0d381b47 | 3721 | tm_file="${tm_file} pa/som.h" |
861bb6c1 | 3722 | use_collect2=yes |
861bb6c1 JL |
3723 | ;; |
3724 | hppa1.0-*-hpux7*) | |
0d381b47 | 3725 | tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h" |
861bb6c1 JL |
3726 | xm_file=pa/xm-pahpux.h |
3727 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3728 | if test x$gas = xyes |
861bb6c1 JL |
3729 | then |
3730 | tm_file="${tm_file} pa/gas.h" | |
3731 | fi | |
861bb6c1 JL |
3732 | install_headers_dir=install-headers-cpio |
3733 | use_collect2=yes | |
3734 | ;; | |
3735 | hppa1.0-*-hpux8.0[0-2]*) | |
0d381b47 | 3736 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3737 | xm_file=pa/xm-pahpux.h |
3738 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3739 | if test x$gas = xyes |
861bb6c1 JL |
3740 | then |
3741 | tm_file="${tm_file} pa/pa-gas.h" | |
3742 | else | |
3743 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3744 | fi | |
861bb6c1 JL |
3745 | install_headers_dir=install-headers-cpio |
3746 | use_collect2=yes | |
3747 | ;; | |
3748 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3749 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3750 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3751 | xm_file=pa/xm-pahpux.h |
3752 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3753 | if test x$gas = xyes |
861bb6c1 JL |
3754 | then |
3755 | tm_file="${tm_file} pa/pa-gas.h" | |
3756 | else | |
3757 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3758 | fi | |
861bb6c1 JL |
3759 | install_headers_dir=install-headers-cpio |
3760 | use_collect2=yes | |
3761 | ;; | |
3762 | hppa1.1-*-hpux8*) | |
13ee407e | 3763 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3764 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3765 | xm_file=pa/xm-pahpux.h |
3766 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3767 | if test x$gas = xyes |
861bb6c1 JL |
3768 | then |
3769 | tm_file="${tm_file} pa/pa-gas.h" | |
3770 | fi | |
861bb6c1 JL |
3771 | install_headers_dir=install-headers-cpio |
3772 | use_collect2=yes | |
3773 | ;; | |
3774 | hppa1.0-*-hpux8*) | |
0d381b47 | 3775 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3776 | xm_file=pa/xm-pahpux.h |
3777 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3778 | if test x$gas = xyes |
861bb6c1 JL |
3779 | then |
3780 | tm_file="${tm_file} pa/pa-gas.h" | |
3781 | fi | |
861bb6c1 JL |
3782 | install_headers_dir=install-headers-cpio |
3783 | use_collect2=yes | |
3784 | ;; | |
18cae839 | 3785 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3786 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3787 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
861bb6c1 JL |
3788 | xm_file=pa/xm-pahpux.h |
3789 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3790 | tmake_file=pa/t-pa |
75bffa71 | 3791 | if test x$gas = xyes |
861bb6c1 JL |
3792 | then |
3793 | tm_file="${tm_file} pa/pa-gas.h" | |
3794 | fi | |
75bffa71 | 3795 | if test x$enable_threads = x; then |
f24af81b TT |
3796 | enable_threads=$have_pthread_h |
3797 | fi | |
75bffa71 | 3798 | if test x$enable_threads = xyes; then |
f24af81b TT |
3799 | thread_file='dce' |
3800 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3801 | fi | |
861bb6c1 JL |
3802 | install_headers_dir=install-headers-cpio |
3803 | use_collect2=yes | |
3804 | ;; | |
3805 | hppa1.0-*-hpux10*) | |
0d381b47 | 3806 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
861bb6c1 JL |
3807 | xm_file=pa/xm-pahpux.h |
3808 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3809 | tmake_file=pa/t-pa |
75bffa71 | 3810 | if test x$gas = xyes |
861bb6c1 JL |
3811 | then |
3812 | tm_file="${tm_file} pa/pa-gas.h" | |
3813 | fi | |
75bffa71 | 3814 | if test x$enable_threads = x; then |
d005a5a4 JL |
3815 | enable_threads=$have_pthread_h |
3816 | fi | |
75bffa71 | 3817 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3818 | thread_file='dce' |
3819 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3820 | fi | |
861bb6c1 JL |
3821 | install_headers_dir=install-headers-cpio |
3822 | use_collect2=yes | |
3823 | ;; | |
fab7be4f | 3824 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) |
30f08b39 | 3825 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3826 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
fab7be4f JL |
3827 | xm_file=pa/xm-pahpux.h |
3828 | xmake_file=pa/x-pa-hpux | |
3829 | tmake_file=pa/t-pa | |
3830 | if [ x$gas = xyes ] | |
3831 | then | |
3832 | tm_file="${tm_file} pa/pa-gas.h" | |
3833 | fi | |
3834 | # if [[ x$enable_threads = x ]]; then | |
3835 | # enable_threads=$have_pthread_h | |
3836 | # fi | |
3837 | # if [[ x$enable_threads = xyes ]]; then | |
3838 | # thread_file='dce' | |
3839 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3840 | # fi | |
3841 | install_headers_dir=install-headers-cpio | |
3842 | use_collect2=yes | |
3843 | ;; | |
3844 | hppa1.0-*-hpux11*) | |
0d381b47 | 3845 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
fab7be4f JL |
3846 | xm_file=pa/xm-pahpux.h |
3847 | xmake_file=pa/x-pa-hpux | |
3848 | if [ x$gas = xyes ] | |
3849 | then | |
3850 | tm_file="${tm_file} pa/pa-gas.h" | |
3851 | fi | |
3852 | # if [[ x$enable_threads = x ]]; then | |
3853 | # enable_threads=$have_pthread_h | |
3854 | # fi | |
3855 | # if [[ x$enable_threads = xyes ]]; then | |
3856 | # thread_file='dce' | |
3857 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3858 | # fi | |
3859 | install_headers_dir=install-headers-cpio | |
3860 | use_collect2=yes | |
3861 | ;; | |
18cae839 | 3862 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3863 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3864 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3865 | xm_file=pa/xm-pahpux.h |
3866 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3867 | if test x$gas = xyes |
861bb6c1 JL |
3868 | then |
3869 | tm_file="${tm_file} pa/pa-gas.h" | |
3870 | fi | |
861bb6c1 JL |
3871 | install_headers_dir=install-headers-cpio |
3872 | use_collect2=yes | |
3873 | ;; | |
3874 | hppa1.0-*-hpux*) | |
0d381b47 | 3875 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3876 | xm_file=pa/xm-pahpux.h |
3877 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3878 | if test x$gas = xyes |
861bb6c1 JL |
3879 | then |
3880 | tm_file="${tm_file} pa/pa-gas.h" | |
3881 | fi | |
861bb6c1 JL |
3882 | install_headers_dir=install-headers-cpio |
3883 | use_collect2=yes | |
3884 | ;; | |
18cae839 | 3885 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3886 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3887 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3888 | xm_file=pa/xm-pahpux.h |
3889 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3890 | if test x$gas = xyes |
861bb6c1 JL |
3891 | then |
3892 | tm_file="${tm_file} pa/pa-gas.h" | |
3893 | fi | |
861bb6c1 JL |
3894 | install_headers_dir=install-headers-cpio |
3895 | use_collect2=yes | |
3896 | ;; | |
3897 | hppa1.0-*-hiux*) | |
0d381b47 | 3898 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3899 | xm_file=pa/xm-pahpux.h |
3900 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3901 | if test x$gas = xyes |
861bb6c1 JL |
3902 | then |
3903 | tm_file="${tm_file} pa/pa-gas.h" | |
3904 | fi | |
861bb6c1 JL |
3905 | install_headers_dir=install-headers-cpio |
3906 | use_collect2=yes | |
3907 | ;; | |
3908 | hppa*-*-lites*) | |
0d381b47 | 3909 | tm_file="${tm_file} elfos.h pa/elf.h" |
13ee407e | 3910 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3911 | use_collect2=yes |
861bb6c1 | 3912 | ;; |
6bc2c8c8 MK |
3913 | hppa*-*-mpeix*) |
3914 | tm_file="${tm_file} pa/pa-mpeix.h" | |
3915 | xm_file=pa/xm-pampeix.h | |
3916 | xmake_file=pa/x-pa-mpeix | |
3917 | echo "You must use gas. Assuming it is already installed." | |
3918 | install_headers_dir=install-headers-tar | |
3919 | fixincludes=Makefile.in | |
3920 | use_collect2=yes | |
3921 | ;; | |
a2b368b6 LV |
3922 | i370-*-opened*) # IBM 360/370/390 Architecture |
3923 | xm_file=i370/xm-oe.h | |
3924 | tm_file=i370/oe.h | |
3925 | xmake_file=i370/x-oe | |
3926 | tmake_file=i370/t-oe | |
3927 | fixincludes=Makefile.in # Headers are wierd, don't mess with | |
3928 | ;; | |
861bb6c1 | 3929 | i370-*-mvs*) |
a2b368b6 LV |
3930 | xm_file=i370/xm-mvs.h |
3931 | tm_file=i370/mvs.h | |
3932 | tmake_file=i370/t-mvs | |
3933 | fixincludes=Makefile.in # Headers are wierd, don't mess with | |
3934 | ;; | |
3935 | i370-*-linux*) | |
3936 | xm_file="xm-linux.h i370/xm-linux.h" | |
3937 | xmake_file=x-linux | |
3938 | tm_file="i370/linux.h ${tm_file}" | |
3939 | tmake_file="t-linux i370/t-linux" | |
3940 | fixincludes=Makefile.in # The headers are ok already. | |
3941 | # broken_install=yes | |
3942 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3943 | # extra_parts="crtbegin.o crtend.o" | |
3944 | gnu_ld=yes | |
3945 | gas=yes | |
3946 | elf=yes | |
3947 | if [ x$enable_threads = xyes ]; then | |
3948 | thread_file='posix' | |
3949 | fi | |
861bb6c1 | 3950 | ;; |
9b5c756a JL |
3951 | i[34567]86-*-elf*) |
3952 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h" | |
3953 | tm_file=i386/i386elf.h | |
3954 | tmake_file=i386/t-i386elf | |
3955 | xmake_file=x-svr4 | |
3956 | ;; | |
f6cb0e63 | 3957 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3958 | if test x$gas = xyes |
861bb6c1 JL |
3959 | then |
3960 | tm_file=i386/aix386.h | |
3961 | extra_parts="crtbegin.o crtend.o" | |
3962 | tmake_file=i386/t-crtstuff | |
3963 | else | |
3964 | tm_file=i386/aix386ng.h | |
3965 | use_collect2=yes | |
3966 | fi | |
f6cb0e63 JL |
3967 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3968 | xm_defines=USG | |
861bb6c1 | 3969 | xmake_file=i386/x-aix |
861bb6c1 | 3970 | ;; |
75bffa71 | 3971 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
f6cb0e63 JL |
3972 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
3973 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3974 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3975 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3976 | then |
3977 | tm_file=i386/sysv4gdb.h | |
3978 | else | |
3979 | tm_file=i386/sysv4.h | |
3980 | fi | |
3981 | extra_parts="crtbegin.o crtend.o" | |
3982 | tmake_file=i386/t-crtpic | |
3983 | ;; | |
f6cb0e63 | 3984 | i[34567]86-next-*) |
861bb6c1 JL |
3985 | tm_file=i386/next.h |
3986 | xm_file=i386/xm-next.h | |
3987 | tmake_file=i386/t-next | |
3988 | xmake_file=i386/x-next | |
3989 | extra_objs=nextstep.o | |
750930c1 | 3990 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 3991 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3992 | thread_file='mach' |
3993 | fi | |
3994 | ;; | |
f6cb0e63 | 3995 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 3996 | use_collect2=yes |
75bffa71 | 3997 | if test x$gas = xyes |
861bb6c1 JL |
3998 | then |
3999 | tm_file=i386/seq-gas.h | |
4000 | else | |
4001 | tm_file=i386/sequent.h | |
4002 | fi | |
4003 | ;; | |
f6cb0e63 JL |
4004 | i[34567]86-sequent-ptx1*) |
4005 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4006 | xmake_file=i386/x-sysv3 |
4007 | tm_file=i386/seq-sysv3.h | |
4008 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
4009 | extra_parts="crtbegin.o crtend.o" |
4010 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4011 | ;; |
f6cb0e63 JL |
4012 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
4013 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4014 | xmake_file=i386/x-sysv3 |
4015 | tm_file=i386/seq2-sysv3.h | |
4016 | tmake_file=i386/t-crtstuff | |
4017 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4018 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4019 | ;; |
f6cb0e63 JL |
4020 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
4021 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
4022 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
4023 | xmake_file=x-svr4 |
4024 | tm_file=i386/ptx4-i.h | |
4025 | tmake_file=t-svr4 | |
4026 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4027 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
4028 | ;; |
4029 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 4030 | xm_defines=USG |
861bb6c1 JL |
4031 | tm_file=i386/sun.h |
4032 | use_collect2=yes | |
4033 | ;; | |
62db76ee | 4034 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
4035 | tm_file=i386/vxi386.h |
4036 | tmake_file=i386/t-i386bare | |
28897609 | 4037 | thread_file='vxworks' |
9e89df50 | 4038 | ;; |
f6cb0e63 | 4039 | i[34567]86-*-aout*) |
861bb6c1 JL |
4040 | tm_file=i386/i386-aout.h |
4041 | tmake_file=i386/t-i386bare | |
4042 | ;; | |
f6cb0e63 | 4043 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 4044 | tm_file=i386/bsd386.h |
861bb6c1 JL |
4045 | # tmake_file=t-libc-ok |
4046 | ;; | |
f6cb0e63 | 4047 | i[34567]86-*-bsd*) |
861bb6c1 | 4048 | tm_file=i386/386bsd.h |
861bb6c1 JL |
4049 | # tmake_file=t-libc-ok |
4050 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
4051 | # use_collect2=yes | |
4052 | ;; | |
f6cb0e63 | 4053 | i[34567]86-*-freebsdelf*) |
d0550c9b | 4054 | tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 4055 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 4056 | tmake_file=t-freebsd |
861bb6c1 JL |
4057 | gas=yes |
4058 | gnu_ld=yes | |
4059 | stabs=yes | |
46346e0e LR |
4060 | case x${enable_threads} in |
4061 | xyes | xpthreads | xposix) | |
4062 | thread_file='posix' | |
4063 | tmake_file="${tmake_file} t-openbsd-thread" | |
4064 | ;; | |
4065 | esac | |
861bb6c1 | 4066 | ;; |
f6cb0e63 | 4067 | i[34567]86-*-freebsd*) |
861bb6c1 | 4068 | tm_file=i386/freebsd.h |
d0550c9b | 4069 | tmake_file=t-freebsd |
861bb6c1 | 4070 | ;; |
1b4a979b | 4071 | i[34567]86-*-netbsd*) |
861bb6c1 | 4072 | tm_file=i386/netbsd.h |
861bb6c1 | 4073 | tmake_file=t-netbsd |
af0ca027 | 4074 | use_collect2=yes |
861bb6c1 | 4075 | ;; |
1b4a979b | 4076 | i[34567]86-*-openbsd*) |
1b4a979b ME |
4077 | # we need collect2 until our bug is fixed... |
4078 | use_collect2=yes | |
4079 | ;; | |
f6cb0e63 | 4080 | i[34567]86-*-coff*) |
861bb6c1 JL |
4081 | tm_file=i386/i386-coff.h |
4082 | tmake_file=i386/t-i386bare | |
4083 | ;; | |
f6cb0e63 JL |
4084 | i[34567]86-*-isc*) # 80386 running ISC system |
4085 | xm_file="${xm_file} i386/xm-isc.h" | |
4086 | xm_defines="USG SVR3" | |
861bb6c1 | 4087 | case $machine in |
f6cb0e63 | 4088 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
4089 | xmake_file=i386/x-isc3 |
4090 | ;; | |
4091 | *) | |
4092 | xmake_file=i386/x-isc | |
4093 | ;; | |
4094 | esac | |
75bffa71 | 4095 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
4096 | then |
4097 | tm_file=i386/iscdbx.h | |
4098 | tmake_file=i386/t-svr3dbx | |
4099 | extra_parts="svr3.ifile svr3z.ifile" | |
4100 | else | |
4101 | tm_file=i386/isccoff.h | |
4102 | tmake_file=i386/t-crtstuff | |
4103 | extra_parts="crtbegin.o crtend.o" | |
4104 | fi | |
4105 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4106 | ;; |
f6cb0e63 | 4107 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 4108 | # pre BFD linkers |
861bb6c1 JL |
4109 | xmake_file=x-linux-aout |
4110 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4111 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 4112 | gnu_ld=yes |
af39d8f5 | 4113 | float_format=i386 |
861bb6c1 | 4114 | ;; |
f6cb0e63 | 4115 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
4116 | xmake_file=x-linux-aout |
4117 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4118 | tm_file=i386/linux-aout.h | |
861bb6c1 | 4119 | gnu_ld=yes |
af39d8f5 | 4120 | float_format=i386 |
861bb6c1 | 4121 | ;; |
f6cb0e63 | 4122 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4123 | # GNU/Linux C library 5 |
4124 | xmake_file=x-linux | |
4125 | tm_file=i386/linux.h | |
861bb6c1 JL |
4126 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
4127 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4128 | gnu_ld=yes |
af39d8f5 | 4129 | float_format=i386 |
75bffa71 | 4130 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4131 | thread_file='single' |
4132 | fi | |
4133 | ;; | |
f6cb0e63 | 4134 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4135 | # aka GNU/Linux C library 6 |
4136 | xmake_file=x-linux | |
861bb6c1 JL |
4137 | tm_file=i386/linux.h |
4138 | tmake_file="t-linux i386/t-crtstuff" | |
4139 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4140 | gnu_ld=yes |
af39d8f5 | 4141 | float_format=i386 |
75bffa71 | 4142 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4143 | thread_file='posix' |
4144 | fi | |
4145 | ;; | |
f6cb0e63 | 4146 | i[34567]86-*-gnu*) |
cd9e5e7c | 4147 | float_format=i386 |
f6cb0e63 JL |
4148 | ;; |
4149 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 4150 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 4151 | exit 1 |
861bb6c1 | 4152 | ;; |
f6cb0e63 | 4153 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
4154 | xm_file=i386/xm-djgpp.h |
4155 | tm_file=i386/djgpp.h | |
4156 | tmake_file=i386/t-djgpp | |
4157 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
4158 | gnu_ld=yes |
4159 | gas=yes | |
dedcc399 | 4160 | exeext=.exe |
77d787fa | 4161 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
4162 | target_alias=djgpp |
4163 | ;; | |
4164 | esac | |
861bb6c1 | 4165 | ;; |
f6cb0e63 | 4166 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
4167 | tm_file=i386/moss.h |
4168 | tmake_file=t-libc-ok | |
861bb6c1 JL |
4169 | gnu_ld=yes |
4170 | gas=yes | |
4171 | ;; | |
f6cb0e63 | 4172 | i[34567]86-*-lynxos*) |
75bffa71 | 4173 | if test x$gas = xyes |
861bb6c1 JL |
4174 | then |
4175 | tm_file=i386/lynx.h | |
4176 | else | |
4177 | tm_file=i386/lynx-ng.h | |
4178 | fi | |
4179 | xm_file=i386/xm-lynx.h | |
4180 | tmake_file=i386/t-i386bare | |
4181 | xmake_file=x-lynx | |
4182 | ;; | |
f6cb0e63 | 4183 | i[34567]86-*-mach*) |
861bb6c1 JL |
4184 | tm_file=i386/mach.h |
4185 | # tmake_file=t-libc-ok | |
4186 | use_collect2=yes | |
4187 | ;; | |
f6cb0e63 | 4188 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 4189 | if test x$elf = xyes |
861bb6c1 JL |
4190 | then |
4191 | tm_file=i386/osfelf.h | |
4192 | use_collect2= | |
4193 | else | |
4194 | tm_file=i386/osfrose.h | |
4195 | use_collect2=yes | |
4196 | fi | |
f6cb0e63 | 4197 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
4198 | xmake_file=i386/x-osfrose |
4199 | tmake_file=i386/t-osf | |
4200 | extra_objs=halfpic.o | |
4201 | ;; | |
f6cb0e63 | 4202 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
4203 | cpu_type=i386 |
4204 | xm_file=i386/xm-go32.h | |
4205 | tm_file=i386/go32-rtems.h | |
4206 | tmake_file="i386/t-go32 t-rtems" | |
4207 | ;; | |
d1476635 | 4208 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) |
f5963e61 JL |
4209 | cpu_type=i386 |
4210 | tm_file=i386/rtemself.h | |
d1476635 JS |
4211 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
4212 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
f5963e61 | 4213 | ;; |
d1476635 | 4214 | i[34567]86-*-rtemscoff*) |
861bb6c1 JL |
4215 | cpu_type=i386 |
4216 | tm_file=i386/rtems.h | |
4217 | tmake_file="i386/t-i386bare t-rtems" | |
4218 | ;; | |
f6cb0e63 JL |
4219 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
4220 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
4221 | xm_defines="USG SVR3" | |
861bb6c1 | 4222 | xmake_file=i386/x-sco5 |
f6857708 | 4223 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4224 | tm_file=i386/sco5.h |
75bffa71 | 4225 | if test x$gas = xyes |
44bb0e93 RL |
4226 | then |
4227 | tm_file="i386/sco5gas.h ${tm_file}" | |
4228 | tmake_file=i386/t-sco5gas | |
4229 | else | |
4230 | tmake_file=i386/t-sco5 | |
4231 | fi | |
42902a72 | 4232 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 4233 | ;; |
f6cb0e63 JL |
4234 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
4235 | xm_file="${xm_file} i386/xm-sco.h" | |
4236 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 | 4237 | xmake_file=i386/x-sco4 |
861bb6c1 | 4238 | install_headers_dir=install-headers-cpio |
75bffa71 | 4239 | if test x$stabs = xyes |
861bb6c1 JL |
4240 | then |
4241 | tm_file=i386/sco4dbx.h | |
4242 | tmake_file=i386/t-svr3dbx | |
4243 | extra_parts="svr3.ifile svr3z.rfile" | |
4244 | else | |
4245 | tm_file=i386/sco4.h | |
4246 | tmake_file=i386/t-crtstuff | |
4247 | extra_parts="crtbegin.o crtend.o" | |
4248 | fi | |
090164c0 WB |
4249 | # The default EAFS filesystem supports long file names. |
4250 | # Truncating the target makes $host != $target which | |
4251 | # makes gcc think it is doing a cross-compile. | |
4252 | # truncate_target=yes | |
861bb6c1 | 4253 | ;; |
f6cb0e63 | 4254 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
4255 | xm_file=i386/xm-sco.h |
4256 | xmake_file=i386/x-sco | |
861bb6c1 | 4257 | install_headers_dir=install-headers-cpio |
75bffa71 | 4258 | if test x$stabs = xyes |
861bb6c1 JL |
4259 | then |
4260 | tm_file=i386/scodbx.h | |
4261 | tmake_file=i386/t-svr3dbx | |
4262 | extra_parts="svr3.ifile svr3z.rfile" | |
4263 | else | |
4264 | tm_file=i386/sco.h | |
4265 | extra_parts="crtbegin.o crtend.o" | |
4266 | tmake_file=i386/t-crtstuff | |
4267 | fi | |
4268 | truncate_target=yes | |
4269 | ;; | |
f6cb0e63 JL |
4270 | i[34567]86-*-solaris2*) |
4271 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
4272 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
0c723ada AO |
4273 | tm_file=i386/sol2.h |
4274 | if test x$gas = xyes; then | |
4275 | # Only needed if gas does not support -s | |
4276 | tm_file="i386/sol2gas.h ${tm_file}" | |
861bb6c1 JL |
4277 | fi |
4278 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 4279 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 4280 | xmake_file=x-svr4 |
4a8021dc AO |
4281 | if test x${enable_threads} = x; then |
4282 | enable_threads=$have_pthread_h | |
4283 | if test x${enable_threads} = x; then | |
4284 | enable_threads=$have_thread_h | |
4285 | fi | |
4286 | fi | |
4287 | if test x${enable_threads} = xyes; then | |
4288 | if test x${have_pthread_h} = xyes; then | |
4289 | thread_file='posix' | |
4290 | else | |
861bb6c1 | 4291 | thread_file='solaris' |
4a8021dc | 4292 | fi |
861bb6c1 JL |
4293 | fi |
4294 | ;; | |
f6cb0e63 | 4295 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
4296 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
4297 | xm_defines="USG POSIX" | |
87e11b70 | 4298 | tm_file=i386/sysv5.h |
75bffa71 | 4299 | if test x$stabs = xyes |
fe07d4c1 RL |
4300 | then |
4301 | tm_file="${tm_file} dbx.h" | |
4302 | fi | |
4303 | tmake_file=i386/t-crtpic | |
4304 | xmake_file=x-svr4 | |
4305 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
4306 | if test x$enable_threads = xyes; then |
4307 | thread_file='posix' | |
4308 | fi | |
fe07d4c1 | 4309 | ;; |
f6cb0e63 JL |
4310 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
4311 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
4312 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 4313 | tm_file=i386/sysv4.h |
75bffa71 | 4314 | if test x$stabs = xyes |
861bb6c1 JL |
4315 | then |
4316 | tm_file="${tm_file} dbx.h" | |
4317 | fi | |
4318 | tmake_file=i386/t-crtpic | |
4319 | xmake_file=x-svr4 | |
4320 | extra_parts="crtbegin.o crtend.o" | |
4321 | ;; | |
112674fa RL |
4322 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
4323 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
4324 | xm_defines="USG POSIX" | |
4325 | tm_file=i386/udk.h | |
4326 | tmake_file="i386/t-crtpic i386/t-udk" | |
4327 | xmake_file=x-svr4 | |
4328 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 4329 | install_headers_dir=install-headers-cpio |
112674fa | 4330 | ;; |
f5963e61 JL |
4331 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
4332 | cpu_type=i386 | |
4333 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
4334 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 4335 | if test x$stabs = xyes |
f5963e61 JL |
4336 | then |
4337 | tm_file=i386/osf1elfgdb.h | |
4338 | else | |
4339 | tm_file=i386/osf1elf.h | |
4340 | fi | |
4341 | tmake_file=i386/t-osf1elf | |
4342 | xmake_file=i386/x-osf1elf | |
4343 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4344 | ;; | |
f6cb0e63 JL |
4345 | i[34567]86-*-sysv*) # Intel 80386's running system V |
4346 | xm_defines="USG SVR3" | |
861bb6c1 | 4347 | xmake_file=i386/x-sysv3 |
75bffa71 | 4348 | if test x$gas = xyes |
861bb6c1 | 4349 | then |
75bffa71 | 4350 | if test x$stabs = xyes |
861bb6c1 JL |
4351 | then |
4352 | tm_file=i386/svr3dbx.h | |
4353 | tmake_file=i386/t-svr3dbx | |
4354 | extra_parts="svr3.ifile svr3z.rfile" | |
4355 | else | |
4356 | tm_file=i386/svr3gas.h | |
4357 | extra_parts="crtbegin.o crtend.o" | |
4358 | tmake_file=i386/t-crtstuff | |
4359 | fi | |
4360 | else | |
4361 | tm_file=i386/sysv3.h | |
4362 | extra_parts="crtbegin.o crtend.o" | |
4363 | tmake_file=i386/t-crtstuff | |
4364 | fi | |
4365 | ;; | |
4366 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 4367 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
4368 | tm_file=i386/vsta.h |
4369 | tmake_file=i386/t-vsta | |
4370 | xmake_file=i386/x-vsta | |
4371 | ;; | |
84530511 | 4372 | i[34567]86-*-win32) |
cae21ae8 GN |
4373 | xm_file="${xm_file} i386/xm-cygwin.h" |
4374 | tmake_file=i386/t-cygwin | |
84530511 | 4375 | tm_file=i386/win32.h |
cae21ae8 | 4376 | xmake_file=i386/x-cygwin |
84530511 | 4377 | extra_objs=winnt.o |
75bffa71 | 4378 | if test x$enable_threads = xyes; then |
84530511 SC |
4379 | thread_file='win32' |
4380 | fi | |
4381 | exeext=.exe | |
4382 | ;; | |
cae21ae8 GN |
4383 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
4384 | xm_file="${xm_file} i386/xm-cygwin.h" | |
4385 | tmake_file=i386/t-cygwin | |
4386 | tm_file=i386/cygwin.h | |
4387 | xmake_file=i386/x-cygwin | |
861bb6c1 | 4388 | extra_objs=winnt.o |
75bffa71 | 4389 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4390 | thread_file='win32' |
4391 | fi | |
4392 | exeext=.exe | |
4393 | ;; | |
f6cb0e63 | 4394 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
4395 | tm_file=i386/mingw32.h |
4396 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 4397 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 4398 | extra_objs=winnt.o |
cae21ae8 | 4399 | xmake_file=i386/x-cygwin |
75bffa71 | 4400 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4401 | thread_file='win32' |
4402 | fi | |
4403 | exeext=.exe | |
f6cb0e63 JL |
4404 | case $machine in |
4405 | *mingw32msv*) | |
4406 | ;; | |
4407 | *minwg32crt* | *mingw32*) | |
4408 | tm_file="${tm_file} i386/crtdll.h" | |
4409 | ;; | |
4410 | esac | |
861bb6c1 | 4411 | ;; |
b27d2bd5 MK |
4412 | i[34567]86-*-uwin*) |
4413 | tm_file=i386/uwin.h | |
4414 | xm_file="${xm_file} i386/xm-uwin.h" | |
4415 | xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" | |
4416 | tmake_file="i386/t-cygwin i386/t-uwin" | |
4417 | extra_objs=winnt.o | |
4418 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
4419 | if test x$enable_threads = xyes; then |
4420 | thread_file='win32' | |
4421 | fi | |
4422 | exeext=.exe | |
4423 | ;; | |
052dbd9e | 4424 | i[34567]86-*-interix*) |
615c8231 | 4425 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 4426 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
052dbd9e MK |
4427 | xm_defines="USG NO_SYS_SIGLIST" |
4428 | tmake_file="i386/t-interix" | |
4429 | extra_objs=interix.o | |
4430 | xmake_file=x-interix | |
615c8231 | 4431 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
4432 | thread_file='posix' |
4433 | fi | |
615c8231 | 4434 | if test x$stabs = xyes ; then |
052dbd9e MK |
4435 | tm_file="${tm_file} dbxcoff.h" |
4436 | fi | |
4437 | ;; | |
f6cb0e63 | 4438 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
4439 | tm_file=i386/win-nt.h |
4440 | out_file=i386/i386.c | |
f6cb0e63 | 4441 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
4442 | xmake_file=winnt/x-winnt |
4443 | tmake_file=i386/t-winnt | |
4444 | extra_host_objs="winnt.o oldnames.o" | |
4445 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 4446 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4447 | then |
4448 | extra_programs=ld.exe | |
4449 | fi | |
75bffa71 | 4450 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4451 | thread_file='win32' |
4452 | fi | |
4453 | ;; | |
f6cb0e63 JL |
4454 | i[34567]86-dg-dgux*) |
4455 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
4456 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4457 | out_file=i386/dgux.c |
4458 | tm_file=i386/dgux.h | |
4459 | tmake_file=i386/t-dgux | |
4460 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
4461 | install_headers_dir=install-headers-cpio |
4462 | ;; | |
4463 | i860-alliant-*) # Alliant FX/2800 | |
4464 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 4465 | xm_file="${xm_file}" |
861bb6c1 JL |
4466 | xmake_file=i860/x-fx2800 |
4467 | tmake_file=i860/t-fx2800 | |
4468 | extra_parts="crtbegin.o crtend.o" | |
4469 | ;; | |
4470 | i860-*-bsd*) | |
4471 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 4472 | if test x$gas = xyes |
861bb6c1 JL |
4473 | then |
4474 | tm_file="${tm_file} i860/bsd-gas.h" | |
4475 | fi | |
4476 | use_collect2=yes | |
4477 | ;; | |
4478 | i860-*-mach*) | |
4479 | tm_file="${tm_file} i860/mach.h" | |
4480 | tmake_file=t-libc-ok | |
4481 | ;; | |
4482 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
4483 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 4484 | xm_defines="USG SVR3" |
861bb6c1 | 4485 | tmake_file=t-osf |
861bb6c1 JL |
4486 | ;; |
4487 | i860-*-sysv3*) | |
4488 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 4489 | xm_defines="USG SVR3" |
861bb6c1 JL |
4490 | xmake_file=i860/x-sysv3 |
4491 | extra_parts="crtbegin.o crtend.o" | |
4492 | ;; | |
4493 | i860-*-sysv4*) | |
4494 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 4495 | xm_defines="USG SVR3" |
861bb6c1 JL |
4496 | xmake_file=i860/x-sysv4 |
4497 | tmake_file=t-svr4 | |
4498 | extra_parts="crtbegin.o crtend.o" | |
4499 | ;; | |
4500 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
4501 | tm_file="${tm_file} i960/vx960.h" | |
4502 | tmake_file=i960/t-vxworks960 | |
4503 | use_collect2=yes | |
7cc34889 | 4504 | thread_file='vxworks' |
861bb6c1 | 4505 | ;; |
a0372c94 | 4506 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
4507 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
4508 | tmake_file=i960/t-vxworks960 | |
4509 | use_collect2=yes | |
7cc34889 | 4510 | thread_file='vxworks' |
861bb6c1 JL |
4511 | ;; |
4512 | i960-wrs-vxworks*) | |
4513 | tm_file="${tm_file} i960/vx960.h" | |
4514 | tmake_file=i960/t-vxworks960 | |
4515 | use_collect2=yes | |
7cc34889 | 4516 | thread_file='vxworks' |
861bb6c1 JL |
4517 | ;; |
4518 | i960-*-coff*) | |
4519 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4520 | tmake_file=i960/t-960bare | |
4521 | use_collect2=yes | |
4522 | ;; | |
4523 | i960-*-rtems) | |
4524 | tmake_file="i960/t-960bare t-rtems" | |
4525 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4526 | use_collect2=yes | |
4527 | ;; | |
4528 | i960-*-*) # Default i960 environment. | |
4529 | use_collect2=yes | |
4530 | ;; | |
4531 | m32r-*-elf*) | |
4532 | extra_parts="crtinit.o crtfini.o" | |
4533 | ;; | |
4534 | m68000-convergent-sysv*) | |
4535 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4536 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4537 | xm_defines=USG | |
861bb6c1 JL |
4538 | use_collect2=yes |
4539 | extra_headers=math-68881.h | |
4540 | ;; | |
4541 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4542 | tm_file=m68k/hp2bsd.h | |
4543 | xmake_file=m68k/x-hp2bsd | |
4544 | use_collect2=yes | |
4545 | extra_headers=math-68881.h | |
4546 | ;; | |
4547 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4548 | xm_file="xm_alloca.h ${xm_file}" |
4549 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4550 | if test x$gas = xyes |
861bb6c1 JL |
4551 | then |
4552 | xmake_file=m68k/x-hp320g | |
4553 | tm_file=m68k/hp310g.h | |
4554 | else | |
4555 | xmake_file=m68k/x-hp320 | |
4556 | tm_file=m68k/hp310.h | |
4557 | fi | |
861bb6c1 JL |
4558 | install_headers_dir=install-headers-cpio |
4559 | use_collect2=yes | |
4560 | extra_headers=math-68881.h | |
4561 | ;; | |
4562 | m68000-sun-sunos3*) | |
4563 | tm_file=m68k/sun2.h | |
4564 | use_collect2=yes | |
4565 | extra_headers=math-68881.h | |
4566 | ;; | |
4567 | m68000-sun-sunos4*) | |
4568 | tm_file=m68k/sun2o4.h | |
4569 | use_collect2=yes | |
4570 | extra_headers=math-68881.h | |
4571 | ;; | |
4572 | m68000-att-sysv*) | |
f6cb0e63 JL |
4573 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4574 | xm_defines=USG | |
75bffa71 | 4575 | if test x$gas = xyes |
861bb6c1 JL |
4576 | then |
4577 | tm_file=m68k/3b1g.h | |
4578 | else | |
4579 | tm_file=m68k/3b1.h | |
4580 | fi | |
4581 | use_collect2=yes | |
4582 | extra_headers=math-68881.h | |
4583 | ;; | |
4584 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4585 | xm_defines="USG AUX" |
861bb6c1 | 4586 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4587 | install_headers_dir=install-headers-cpio |
4588 | extra_headers=math-68881.h | |
4589 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4590 | tm_file= | |
75bffa71 | 4591 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4592 | then |
4593 | tm_file="${tm_file} m68k/auxgld.h" | |
4594 | else | |
4595 | tm_file="${tm_file} m68k/auxld.h" | |
4596 | fi | |
75bffa71 | 4597 | if test "$gas" = yes |
861bb6c1 JL |
4598 | then |
4599 | tm_file="${tm_file} m68k/auxgas.h" | |
4600 | else | |
4601 | tm_file="${tm_file} m68k/auxas.h" | |
4602 | fi | |
4603 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4604 | float_format=m68k |
861bb6c1 JL |
4605 | ;; |
4606 | m68k-apollo-*) | |
4607 | tm_file=m68k/apollo68.h | |
4608 | xmake_file=m68k/x-apollo68 | |
4609 | use_collect2=yes | |
4610 | extra_headers=math-68881.h | |
0a95276e | 4611 | float_format=m68k |
861bb6c1 JL |
4612 | ;; |
4613 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4614 | if test x$gas = xyes |
861bb6c1 JL |
4615 | then |
4616 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4617 | xm_defines=USG |
861bb6c1 JL |
4618 | else |
4619 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4620 | exit 1 | |
4621 | fi | |
4622 | extra_headers=math-68881.h | |
4623 | ;; | |
4624 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4625 | if test x$gas = xyes |
861bb6c1 | 4626 | then |
75bffa71 | 4627 | if test x$stabs = xyes |
861bb6c1 JL |
4628 | then |
4629 | tm_file=m68k/dpx2cdbx.h | |
4630 | else | |
4631 | tm_file=m68k/dpx2g.h | |
4632 | fi | |
4633 | else | |
4634 | tm_file=m68k/dpx2.h | |
4635 | fi | |
f6cb0e63 JL |
4636 | xm_file="xm-alloca.h ${xm_file}" |
4637 | xm_defines=USG | |
861bb6c1 JL |
4638 | xmake_file=m68k/x-dpx2 |
4639 | use_collect2=yes | |
4640 | extra_headers=math-68881.h | |
4641 | ;; | |
4642 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4643 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4644 | xm_file="xm-alloca.h ${xm_file}" |
4645 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4646 | tmake_file=t-svr4 |
4647 | extra_parts="crtbegin.o crtend.o" | |
4648 | extra_headers=math-68881.h | |
0a95276e | 4649 | float_format=m68k |
861bb6c1 JL |
4650 | ;; |
4651 | m68k-motorola-sysv*) | |
4652 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
4653 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
4654 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 4655 | if test x$gas = xyes |
861bb6c1 JL |
4656 | then |
4657 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4658 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4659 | then |
4660 | tmake_file=m68k/t-mot3300-gald | |
4661 | else | |
4662 | tmake_file=m68k/t-mot3300-gas | |
4663 | use_collect2=yes | |
4664 | fi | |
4665 | else | |
4666 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4667 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4668 | then |
4669 | tmake_file=m68k/t-mot3300-gld | |
4670 | else | |
4671 | tmake_file=m68k/t-mot3300 | |
4672 | use_collect2=yes | |
4673 | fi | |
4674 | fi | |
4675 | gdb_needs_out_file_path=yes | |
4676 | extra_parts="crt0.o mcrt0.o" | |
4677 | extra_headers=math-68881.h | |
0a95276e | 4678 | float_format=m68k |
861bb6c1 JL |
4679 | ;; |
4680 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4681 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4682 | xm_defines="USG SVR3" |
861bb6c1 JL |
4683 | xmake_file=m68k/x-tower |
4684 | extra_parts="crtbegin.o crtend.o" | |
4685 | extra_headers=math-68881.h | |
4686 | ;; | |
4687 | m68k-plexus-sysv*) | |
4688 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4689 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4690 | xm_defines=USG | |
861bb6c1 JL |
4691 | use_collect2=yes |
4692 | extra_headers=math-68881.h | |
4693 | ;; | |
4694 | m68k-tti-*) | |
4695 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4696 | xm_file="xm-alloca.h ${xm_file}" |
4697 | xm_defines=USG | |
861bb6c1 JL |
4698 | extra_headers=math-68881.h |
4699 | ;; | |
4700 | m68k-crds-unos*) | |
f6cb0e63 JL |
4701 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4702 | xm_defines="USG unos" | |
861bb6c1 JL |
4703 | xmake_file=m68k/x-crds |
4704 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4705 | use_collect2=yes |
4706 | extra_headers=math-68881.h | |
4707 | ;; | |
4708 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4709 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4710 | xm_file="xm-alloca.h ${xm_file}" |
4711 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4712 | xmake_file=m68k/x-amix |
4713 | tmake_file=t-svr4 | |
4714 | extra_parts="crtbegin.o crtend.o" | |
4715 | extra_headers=math-68881.h | |
0a95276e | 4716 | float_format=m68k |
861bb6c1 JL |
4717 | ;; |
4718 | m68k-ccur-rtu) | |
4719 | tm_file=m68k/ccur-GAS.h | |
4720 | xmake_file=m68k/x-ccur | |
4721 | extra_headers=math-68881.h | |
4722 | use_collect2=yes | |
0a95276e | 4723 | float_format=m68k |
861bb6c1 JL |
4724 | ;; |
4725 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4726 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 4727 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
4728 | use_collect2=yes |
4729 | extra_headers=math-68881.h | |
0a95276e | 4730 | float_format=m68k |
861bb6c1 JL |
4731 | ;; |
4732 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4733 | tm_file=m68k/hp3bsd.h | |
4734 | use_collect2=yes | |
4735 | extra_headers=math-68881.h | |
0a95276e | 4736 | float_format=m68k |
861bb6c1 JL |
4737 | ;; |
4738 | m68k-isi-bsd*) | |
75bffa71 | 4739 | if test x$with_fp = xno |
861bb6c1 JL |
4740 | then |
4741 | tm_file=m68k/isi-nfp.h | |
4742 | else | |
4743 | tm_file=m68k/isi.h | |
0a95276e | 4744 | float_format=m68k |
861bb6c1 JL |
4745 | fi |
4746 | use_collect2=yes | |
4747 | extra_headers=math-68881.h | |
4748 | ;; | |
4749 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
4750 | xm_file="xm_alloca.h ${xm_file}" |
4751 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4752 | if test x$gas = xyes |
861bb6c1 JL |
4753 | then |
4754 | xmake_file=m68k/x-hp320g | |
4755 | tm_file=m68k/hp320g.h | |
4756 | else | |
4757 | xmake_file=m68k/x-hp320 | |
4758 | tm_file=m68k/hpux7.h | |
4759 | fi | |
861bb6c1 JL |
4760 | install_headers_dir=install-headers-cpio |
4761 | use_collect2=yes | |
4762 | extra_headers=math-68881.h | |
0a95276e | 4763 | float_format=m68k |
861bb6c1 JL |
4764 | ;; |
4765 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4766 | xm_file="xm_alloca.h ${xm_file}" |
4767 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4768 | if test x$gas = xyes |
861bb6c1 JL |
4769 | then |
4770 | xmake_file=m68k/x-hp320g | |
4771 | tm_file=m68k/hp320g.h | |
4772 | else | |
4773 | xmake_file=m68k/x-hp320 | |
4774 | tm_file=m68k/hp320.h | |
4775 | fi | |
861bb6c1 JL |
4776 | install_headers_dir=install-headers-cpio |
4777 | use_collect2=yes | |
4778 | extra_headers=math-68881.h | |
0a95276e | 4779 | float_format=m68k |
861bb6c1 JL |
4780 | ;; |
4781 | m68k-sun-mach*) | |
4782 | tm_file=m68k/sun3mach.h | |
4783 | use_collect2=yes | |
4784 | extra_headers=math-68881.h | |
0a95276e | 4785 | float_format=m68k |
861bb6c1 JL |
4786 | ;; |
4787 | m68k-sony-newsos3*) | |
75bffa71 | 4788 | if test x$gas = xyes |
861bb6c1 JL |
4789 | then |
4790 | tm_file=m68k/news3gas.h | |
4791 | else | |
4792 | tm_file=m68k/news3.h | |
4793 | fi | |
4794 | use_collect2=yes | |
4795 | extra_headers=math-68881.h | |
0a95276e | 4796 | float_format=m68k |
861bb6c1 JL |
4797 | ;; |
4798 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4799 | if test x$gas = xyes |
861bb6c1 JL |
4800 | then |
4801 | tm_file=m68k/newsgas.h | |
4802 | else | |
4803 | tm_file=m68k/news.h | |
4804 | fi | |
4805 | use_collect2=yes | |
4806 | extra_headers=math-68881.h | |
0a95276e | 4807 | float_format=m68k |
861bb6c1 JL |
4808 | ;; |
4809 | m68k-next-nextstep2*) | |
4810 | tm_file=m68k/next21.h | |
f6cb0e63 | 4811 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4812 | tmake_file=m68k/t-next |
4813 | xmake_file=m68k/x-next | |
4814 | extra_objs=nextstep.o | |
4815 | extra_headers=math-68881.h | |
4816 | use_collect2=yes | |
0a95276e | 4817 | float_format=m68k |
861bb6c1 JL |
4818 | ;; |
4819 | m68k-next-nextstep3*) | |
4820 | tm_file=m68k/next.h | |
f6cb0e63 | 4821 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4822 | tmake_file=m68k/t-next |
4823 | xmake_file=m68k/x-next | |
4824 | extra_objs=nextstep.o | |
750930c1 | 4825 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4826 | extra_headers=math-68881.h |
0a95276e | 4827 | float_format=m68k |
75bffa71 | 4828 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4829 | thread_file='mach' |
4830 | fi | |
4831 | ;; | |
4832 | m68k-sun-sunos3*) | |
75bffa71 | 4833 | if test x$with_fp = xno |
861bb6c1 JL |
4834 | then |
4835 | tm_file=m68k/sun3n3.h | |
4836 | else | |
4837 | tm_file=m68k/sun3o3.h | |
0a95276e | 4838 | float_format=m68k |
861bb6c1 JL |
4839 | fi |
4840 | use_collect2=yes | |
4841 | extra_headers=math-68881.h | |
4842 | ;; | |
4843 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4844 | if test x$with_fp = xno |
861bb6c1 JL |
4845 | then |
4846 | tm_file=m68k/sun3n.h | |
4847 | else | |
4848 | tm_file=m68k/sun3.h | |
0a95276e | 4849 | float_format=m68k |
861bb6c1 | 4850 | fi |
861bb6c1 JL |
4851 | use_collect2=yes |
4852 | extra_headers=math-68881.h | |
4853 | ;; | |
4854 | m68k-wrs-vxworks*) | |
4855 | tm_file=m68k/vxm68k.h | |
4856 | tmake_file=m68k/t-vxworks68 | |
4857 | extra_headers=math-68881.h | |
7cc34889 | 4858 | thread_file='vxworks' |
0a95276e | 4859 | float_format=m68k |
861bb6c1 JL |
4860 | ;; |
4861 | m68k-*-aout*) | |
4862 | tmake_file=m68k/t-m68kbare | |
4863 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4864 | extra_headers=math-68881.h | |
0a95276e | 4865 | float_format=m68k |
861bb6c1 JL |
4866 | ;; |
4867 | m68k-*-coff*) | |
4868 | tmake_file=m68k/t-m68kbare | |
4869 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4870 | extra_headers=math-68881.h | |
0a95276e | 4871 | float_format=m68k |
861bb6c1 | 4872 | ;; |
d1be3be3 | 4873 | m68020-*-elf* | m68k-*-elf*) |
7aae67a2 | 4874 | tm_file="m68k/m68020-elf.h" |
d1be3be3 JW |
4875 | xm_file=m68k/xm-m68kv.h |
4876 | tmake_file=m68k/t-m68kelf | |
4877 | header_files=math-68881.h | |
4878 | ;; | |
861bb6c1 | 4879 | m68k-*-lynxos*) |
75bffa71 | 4880 | if test x$gas = xyes |
861bb6c1 JL |
4881 | then |
4882 | tm_file=m68k/lynx.h | |
4883 | else | |
4884 | tm_file=m68k/lynx-ng.h | |
4885 | fi | |
4886 | xm_file=m68k/xm-lynx.h | |
4887 | xmake_file=x-lynx | |
4888 | tmake_file=m68k/t-lynx | |
4889 | extra_headers=math-68881.h | |
0a95276e | 4890 | float_format=m68k |
861bb6c1 | 4891 | ;; |
58600d24 | 4892 | m68k*-*-netbsd*) |
861bb6c1 | 4893 | tm_file=m68k/netbsd.h |
861bb6c1 | 4894 | tmake_file=t-netbsd |
0a95276e | 4895 | float_format=m68k |
af0ca027 | 4896 | use_collect2=yes |
861bb6c1 | 4897 | ;; |
1b4a979b ME |
4898 | m68k*-*-openbsd*) |
4899 | float_format=m68k | |
4900 | # we need collect2 until our bug is fixed... | |
4901 | use_collect2=yes | |
4902 | ;; | |
861bb6c1 | 4903 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4904 | xm_file="xm-alloca.h ${xm_file}" |
4905 | xm_defines=USG | |
861bb6c1 JL |
4906 | xmake_file=m68k/x-m68kv |
4907 | extra_parts="crtbegin.o crtend.o" | |
4908 | extra_headers=math-68881.h | |
0a95276e | 4909 | float_format=m68k |
861bb6c1 JL |
4910 | ;; |
4911 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4912 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4913 | xm_file="xm-alloca.h ${xm_file}" |
4914 | xm_defines=USG | |
861bb6c1 JL |
4915 | tmake_file=t-svr4 |
4916 | extra_parts="crtbegin.o crtend.o" | |
4917 | extra_headers=math-68881.h | |
0a95276e | 4918 | float_format=m68k |
861bb6c1 | 4919 | ;; |
956d6950 | 4920 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4921 | # with a.out format |
861bb6c1 JL |
4922 | xmake_file=x-linux |
4923 | tm_file=m68k/linux-aout.h | |
4924 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 4925 | extra_headers=math-68881.h |
0a95276e | 4926 | float_format=m68k |
861bb6c1 JL |
4927 | gnu_ld=yes |
4928 | ;; | |
956d6950 | 4929 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4930 | # with ELF format using the |
4931 | # GNU/Linux C library 5 | |
4932 | xmake_file=x-linux | |
861bb6c1 JL |
4933 | tm_file=m68k/linux.h |
4934 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4935 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4936 | extra_headers=math-68881.h |
0a95276e | 4937 | float_format=m68k |
861bb6c1 JL |
4938 | gnu_ld=yes |
4939 | ;; | |
956d6950 | 4940 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4941 | # with ELF format using glibc 2 |
4942 | # aka the GNU/Linux C library 6. | |
4943 | xmake_file=x-linux | |
861bb6c1 JL |
4944 | tm_file=m68k/linux.h |
4945 | tmake_file="t-linux m68k/t-linux" | |
4946 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4947 | extra_headers=math-68881.h |
0a95276e | 4948 | float_format=m68k |
861bb6c1 | 4949 | gnu_ld=yes |
75bffa71 | 4950 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4951 | thread_file='posix' |
4952 | fi | |
4953 | ;; | |
4954 | m68k-*-psos*) | |
4955 | tmake_file=m68k/t-m68kbare | |
4956 | tm_file=m68k/m68k-psos.h | |
4957 | extra_headers=math-68881.h | |
0a95276e | 4958 | float_format=m68k |
861bb6c1 | 4959 | ;; |
d1476635 | 4960 | m68k-*-rtemscoff*|m68k-*-rtems*) |
861bb6c1 JL |
4961 | tmake_file="m68k/t-m68kbare t-rtems" |
4962 | tm_file=m68k/rtems.h | |
4963 | extra_headers=math-68881.h | |
0a95276e | 4964 | float_format=m68k |
861bb6c1 | 4965 | ;; |
d1476635 JS |
4966 | m68k-*-rtemself*) |
4967 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" | |
4968 | tm_file=m68k/rtemself.h | |
4969 | extra_headers=math-68881.h | |
4970 | float_format=m68k | |
4971 | ;; | |
861bb6c1 JL |
4972 | m88k-dg-dgux*) |
4973 | case $machine in | |
4974 | m88k-dg-dguxbcs*) | |
4975 | tm_file=m88k/dguxbcs.h | |
4976 | tmake_file=m88k/t-dguxbcs | |
4977 | ;; | |
4978 | *) | |
4979 | tm_file=m88k/dgux.h | |
4980 | tmake_file=m88k/t-dgux | |
4981 | ;; | |
4982 | esac | |
4983 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 4984 | xmake_file=m88k/x-dgux |
75bffa71 | 4985 | if test x$gas = xyes |
861bb6c1 JL |
4986 | then |
4987 | tmake_file=m88k/t-dgux-gas | |
4988 | fi | |
861bb6c1 JL |
4989 | ;; |
4990 | m88k-dolphin-sysv3*) | |
4991 | tm_file=m88k/dolph.h | |
4992 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4993 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4994 | xmake_file=m88k/x-dolph |
75bffa71 | 4995 | if test x$gas = xyes |
861bb6c1 JL |
4996 | then |
4997 | tmake_file=m88k/t-m88k-gas | |
4998 | fi | |
4999 | ;; | |
5000 | m88k-tektronix-sysv3) | |
5001 | tm_file=m88k/tekXD88.h | |
5002 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5003 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5004 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 5005 | if test x$gas = xyes |
861bb6c1 JL |
5006 | then |
5007 | tmake_file=m88k/t-m88k-gas | |
5008 | fi | |
5009 | ;; | |
5010 | m88k-*-aout*) | |
5011 | tm_file=m88k/m88k-aout.h | |
5012 | ;; | |
5013 | m88k-*-coff*) | |
5014 | tm_file=m88k/m88k-coff.h | |
5015 | tmake_file=m88k/t-bug | |
5016 | ;; | |
5017 | m88k-*-luna*) | |
5018 | tm_file=m88k/luna.h | |
5019 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 5020 | if test x$gas = xyes |
861bb6c1 JL |
5021 | then |
5022 | tmake_file=m88k/t-luna-gas | |
5023 | else | |
5024 | tmake_file=m88k/t-luna | |
5025 | fi | |
5026 | ;; | |
1b4a979b ME |
5027 | m88k-*-openbsd*) |
5028 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
5029 | ;; | |
861bb6c1 JL |
5030 | m88k-*-sysv3*) |
5031 | tm_file=m88k/sysv3.h | |
5032 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5033 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5034 | xmake_file=m88k/x-sysv3 |
75bffa71 | 5035 | if test x$gas = xyes |
861bb6c1 JL |
5036 | then |
5037 | tmake_file=m88k/t-m88k-gas | |
5038 | fi | |
5039 | ;; | |
5040 | m88k-*-sysv4*) | |
5041 | tm_file=m88k/sysv4.h | |
5042 | extra_parts="crtbegin.o crtend.o" | |
5043 | xmake_file=m88k/x-sysv4 | |
5044 | tmake_file=m88k/t-sysv4 | |
5045 | ;; | |
5046 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
9b5c756a JL |
5047 | if test "x$gnu_ld" = xyes |
5048 | then | |
5049 | tm_file="mips/iris6.h mips/iris6gld.h" | |
9b5c756a JL |
5050 | else |
5051 | tm_file=mips/iris6.h | |
9b5c756a | 5052 | fi |
30f08b39 | 5053 | tmake_file=mips/t-iris6 |
861bb6c1 | 5054 | xm_file=mips/xm-iris6.h |
861bb6c1 | 5055 | xmake_file=mips/x-iris6 |
04069e5c | 5056 | # if test x$enable_threads = xyes; then |
6e148807 | 5057 | # thread_file='irix' |
04069e5c | 5058 | # fi |
861bb6c1 | 5059 | ;; |
98bd9f0f | 5060 | mips-wrs-vxworks) |
7aae67a2 | 5061 | tm_file="mips/elf.h mips/vxworks.h" |
98bd9f0f DB |
5062 | tmake_file=mips/t-ecoff |
5063 | gas=yes | |
5064 | gnu_ld=yes | |
5065 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 5066 | thread_file='vxworks' |
98bd9f0f | 5067 | ;; |
861bb6c1 | 5068 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 5069 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
5070 | xm_defines=USG |
5071 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5072 | xmake_file=mips/x-iris |
5073 | tmake_file=mips/t-cross64 | |
5074 | # See comment in mips/iris[56].h files. | |
5075 | use_collect2=yes | |
04069e5c | 5076 | # if test x$enable_threads = xyes; then |
6e148807 | 5077 | # thread_file='irix' |
04069e5c | 5078 | # fi |
861bb6c1 JL |
5079 | ;; |
5080 | mips-sni-sysv4) | |
75bffa71 | 5081 | if test x$gas = xyes |
861bb6c1 | 5082 | then |
75bffa71 | 5083 | if test x$stabs = xyes |
861bb6c1 JL |
5084 | then |
5085 | tm_file=mips/iris5gdb.h | |
5086 | else | |
f6cb0e63 | 5087 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
5088 | fi |
5089 | else | |
5090 | tm_file=mips/sni-svr4.h | |
5091 | fi | |
f6cb0e63 | 5092 | xm_defines=USG |
861bb6c1 JL |
5093 | xmake_file=mips/x-sni-svr4 |
5094 | tmake_file=mips/t-mips-gas | |
75bffa71 | 5095 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5096 | then |
5097 | use_collect2=yes | |
5098 | fi | |
861bb6c1 JL |
5099 | ;; |
5100 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 5101 | if test x$gas = xyes |
861bb6c1 | 5102 | then |
f6cb0e63 | 5103 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 5104 | if test x$stabs = xyes |
861bb6c1 JL |
5105 | then |
5106 | tm_file="${tm_file} dbx.h" | |
5107 | fi | |
5108 | else | |
5109 | tm_file=mips/iris5.h | |
5110 | fi | |
74c55ab0 JW |
5111 | xm_defines=USG |
5112 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5113 | xmake_file=mips/x-iris |
5114 | # mips-tfile doesn't work yet | |
5115 | tmake_file=mips/t-mips-gas | |
5116 | # See comment in mips/iris5.h file. | |
5117 | use_collect2=yes | |
04069e5c | 5118 | # if test x$enable_threads = xyes; then |
6e148807 | 5119 | # thread_file='irix' |
04069e5c | 5120 | # fi |
861bb6c1 JL |
5121 | ;; |
5122 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 5123 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5124 | if test x$stabs = xyes; then |
861bb6c1 JL |
5125 | tm_file="${tm_file} dbx.h" |
5126 | fi | |
f6cb0e63 | 5127 | xm_defines=USG |
861bb6c1 | 5128 | xmake_file=mips/x-iris |
75bffa71 | 5129 | if test x$gas = xyes |
861bb6c1 JL |
5130 | then |
5131 | tmake_file=mips/t-mips-gas | |
5132 | else | |
5133 | extra_passes="mips-tfile mips-tdump" | |
5134 | fi | |
75bffa71 | 5135 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5136 | then |
5137 | use_collect2=yes | |
5138 | fi | |
04069e5c | 5139 | # if test x$enable_threads = xyes; then |
6e148807 | 5140 | # thread_file='irix' |
04069e5c | 5141 | # fi |
861bb6c1 JL |
5142 | ;; |
5143 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 5144 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5145 | if test x$stabs = xyes; then |
861bb6c1 JL |
5146 | tm_file="${tm_file} dbx.h" |
5147 | fi | |
f6cb0e63 | 5148 | xm_defines=USG |
861bb6c1 | 5149 | xmake_file=mips/x-iris |
75bffa71 | 5150 | if test x$gas = xyes |
861bb6c1 JL |
5151 | then |
5152 | tmake_file=mips/t-mips-gas | |
5153 | else | |
5154 | extra_passes="mips-tfile mips-tdump" | |
5155 | fi | |
75bffa71 | 5156 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5157 | then |
5158 | use_collect2=yes | |
5159 | fi | |
04069e5c | 5160 | # if test x$enable_threads = xyes; then |
6e148807 | 5161 | # thread_file='irix' |
04069e5c | 5162 | # fi |
861bb6c1 JL |
5163 | ;; |
5164 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 5165 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 5166 | if test x$stabs = xyes; then |
861bb6c1 JL |
5167 | tm_file="${tm_file} dbx.h" |
5168 | fi | |
f6cb0e63 | 5169 | xm_defines=USG |
861bb6c1 | 5170 | xmake_file=mips/x-iris3 |
75bffa71 | 5171 | if test x$gas = xyes |
861bb6c1 JL |
5172 | then |
5173 | tmake_file=mips/t-mips-gas | |
5174 | else | |
5175 | extra_passes="mips-tfile mips-tdump" | |
5176 | fi | |
75bffa71 | 5177 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5178 | then |
5179 | use_collect2=yes | |
5180 | fi | |
5181 | ;; | |
5182 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 5183 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
5184 | xmake_file=mips/x-osfrose |
5185 | tmake_file=mips/t-osfrose | |
5186 | extra_objs=halfpic.o | |
5187 | use_collect2=yes | |
5188 | ;; | |
5189 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
5190 | tm_file=mips/dec-osf1.h | |
75bffa71 | 5191 | if test x$stabs = xyes; then |
861bb6c1 JL |
5192 | tm_file="${tm_file} dbx.h" |
5193 | fi | |
5194 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 5195 | if test x$gas = xyes |
861bb6c1 JL |
5196 | then |
5197 | tmake_file=mips/t-mips-gas | |
5198 | else | |
5199 | tmake_file=mips/t-ultrix | |
5200 | extra_passes="mips-tfile mips-tdump" | |
5201 | fi | |
75bffa71 | 5202 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5203 | then |
5204 | use_collect2=yes | |
5205 | fi | |
5206 | ;; | |
5207 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
5208 | tm_file=mips/dec-bsd.h | |
75bffa71 | 5209 | if test x$gas = xyes |
861bb6c1 JL |
5210 | then |
5211 | tmake_file=mips/t-mips-gas | |
5212 | else | |
5213 | tmake_file=mips/t-ultrix | |
5214 | extra_passes="mips-tfile mips-tdump" | |
5215 | fi | |
75bffa71 | 5216 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5217 | then |
5218 | use_collect2=yes | |
5219 | fi | |
5220 | ;; | |
58600d24 | 5221 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 5222 | tm_file=mips/netbsd.h |
be1ed94f | 5223 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5224 | tmake_file=t-netbsd |
861bb6c1 | 5225 | ;; |
54953b66 | 5226 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 RL |
5227 | xmake_file=x-linux |
5228 | xm_file="xm-siglist.h ${xm_file}" | |
54953b66 UD |
5229 | case $machine in |
5230 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
5231 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
5232 | esac | |
e86e6730 | 5233 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
18cae839 RL |
5234 | gnu_ld=yes |
5235 | gas=yes | |
e86e6730 AJ |
5236 | if test x$enable_threads = xyes; then |
5237 | thread_file='posix' | |
5238 | fi | |
18cae839 | 5239 | ;; |
1b4a979b ME |
5240 | mips*el-*-openbsd*) # mips little endian |
5241 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1b4a979b ME |
5242 | ;; |
5243 | mips*-*-openbsd*) # mips big endian | |
5244 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
9e28024a | 5245 | tm_file="mips/openbsd-be.h ${tm_file}" |
1b4a979b | 5246 | ;; |
861bb6c1 | 5247 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 5248 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 5249 | if test x$stabs = xyes; then |
861bb6c1 JL |
5250 | tm_file="${tm_file} dbx.h" |
5251 | fi | |
75bffa71 | 5252 | if test x$gas = xyes |
861bb6c1 JL |
5253 | then |
5254 | tmake_file=mips/t-mips-gas | |
5255 | else | |
5256 | extra_passes="mips-tfile mips-tdump" | |
5257 | fi | |
75bffa71 | 5258 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5259 | then |
5260 | use_collect2=yes | |
5261 | fi | |
5262 | xmake_file=mips/x-sony | |
5263 | ;; | |
5264 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
5265 | # That is based on svr4. | |
5266 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 5267 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 5268 | if test x$stabs = xyes; then |
861bb6c1 JL |
5269 | tm_file="${tm_file} dbx.h" |
5270 | fi | |
f6cb0e63 JL |
5271 | xm_file="xm-siglist.h ${xm_file}" |
5272 | xm_defines=USG | |
75bffa71 | 5273 | if test x$gas = xyes |
861bb6c1 JL |
5274 | then |
5275 | tmake_file=mips/t-mips-gas | |
5276 | else | |
5277 | extra_passes="mips-tfile mips-tdump" | |
5278 | fi | |
75bffa71 | 5279 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5280 | then |
5281 | use_collect2=yes | |
5282 | fi | |
5283 | ;; | |
5284 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 5285 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 5286 | if test x$stabs = xyes; then |
861bb6c1 JL |
5287 | tm_file="${tm_file} dbx.h" |
5288 | fi | |
f6cb0e63 JL |
5289 | xm_file="xm-siglist.h ${xm_file}" |
5290 | xm_defines=USG | |
861bb6c1 | 5291 | xmake_file=mips/x-sysv |
75bffa71 | 5292 | if test x$gas = xyes |
861bb6c1 JL |
5293 | then |
5294 | tmake_file=mips/t-mips-gas | |
5295 | extra_parts="crtbegin.o crtend.o" | |
5296 | else | |
5297 | tmake_file=mips/t-mips | |
5298 | extra_passes="mips-tfile mips-tdump" | |
5299 | fi | |
75bffa71 | 5300 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5301 | then |
5302 | use_collect2=yes | |
5303 | fi | |
861bb6c1 JL |
5304 | ;; |
5305 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 5306 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 5307 | if test x$stabs = xyes; then |
861bb6c1 JL |
5308 | tm_file="${tm_file} dbx.h" |
5309 | fi | |
5310 | xmake_file=mips/x-ultrix | |
75bffa71 | 5311 | if test x$gas = xyes |
861bb6c1 JL |
5312 | then |
5313 | tmake_file=mips/t-mips-gas | |
5314 | else | |
5315 | tmake_file=mips/t-ultrix | |
5316 | extra_passes="mips-tfile mips-tdump" | |
5317 | fi | |
75bffa71 | 5318 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5319 | then |
5320 | use_collect2=yes | |
5321 | fi | |
5322 | ;; | |
5323 | mips-*-riscos[56789]bsd*) | |
5324 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 5325 | if test x$stabs = xyes; then |
861bb6c1 JL |
5326 | tm_file="${tm_file} dbx.h" |
5327 | fi | |
75bffa71 | 5328 | if test x$gas = xyes |
861bb6c1 JL |
5329 | then |
5330 | tmake_file=mips/t-bsd-gas | |
5331 | else | |
5332 | tmake_file=mips/t-bsd | |
5333 | extra_passes="mips-tfile mips-tdump" | |
5334 | fi | |
75bffa71 | 5335 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5336 | then |
5337 | use_collect2=yes | |
5338 | fi | |
861bb6c1 JL |
5339 | ;; |
5340 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 5341 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 5342 | if test x$stabs = xyes; then |
861bb6c1 JL |
5343 | tm_file="${tm_file} dbx.h" |
5344 | fi | |
75bffa71 | 5345 | if test x$gas = xyes |
861bb6c1 JL |
5346 | then |
5347 | tmake_file=mips/t-bsd-gas | |
5348 | else | |
5349 | tmake_file=mips/t-bsd | |
5350 | extra_passes="mips-tfile mips-tdump" | |
5351 | fi | |
75bffa71 | 5352 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5353 | then |
5354 | use_collect2=yes | |
5355 | fi | |
861bb6c1 JL |
5356 | ;; |
5357 | mips-*-riscos[56789]sysv4*) | |
5358 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 5359 | if test x$stabs = xyes; then |
861bb6c1 JL |
5360 | tm_file="${tm_file} dbx.h" |
5361 | fi | |
f6cb0e63 | 5362 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 | 5363 | xmake_file=mips/x-sysv |
75bffa71 | 5364 | if test x$gas = xyes |
861bb6c1 JL |
5365 | then |
5366 | tmake_file=mips/t-svr4-gas | |
5367 | else | |
5368 | tmake_file=mips/t-svr4 | |
5369 | extra_passes="mips-tfile mips-tdump" | |
5370 | fi | |
75bffa71 | 5371 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5372 | then |
5373 | use_collect2=yes | |
5374 | fi | |
861bb6c1 JL |
5375 | ;; |
5376 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 5377 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 5378 | if test x$stabs = xyes; then |
861bb6c1 JL |
5379 | tm_file="${tm_file} dbx.h" |
5380 | fi | |
f6cb0e63 | 5381 | xm_defines=USG |
861bb6c1 | 5382 | xmake_file=mips/x-sysv |
75bffa71 | 5383 | if test x$gas = xyes |
861bb6c1 JL |
5384 | then |
5385 | tmake_file=mips/t-svr4-gas | |
5386 | else | |
5387 | tmake_file=mips/t-svr4 | |
5388 | extra_passes="mips-tfile mips-tdump" | |
5389 | fi | |
75bffa71 | 5390 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5391 | then |
5392 | use_collect2=yes | |
5393 | fi | |
861bb6c1 JL |
5394 | ;; |
5395 | mips-*-riscos[56789]sysv*) | |
5396 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 5397 | if test x$stabs = xyes; then |
861bb6c1 JL |
5398 | tm_file="${tm_file} dbx.h" |
5399 | fi | |
f6cb0e63 | 5400 | xm_defines=USG |
861bb6c1 | 5401 | xmake_file=mips/x-sysv |
75bffa71 | 5402 | if test x$gas = xyes |
861bb6c1 JL |
5403 | then |
5404 | tmake_file=mips/t-svr3-gas | |
5405 | else | |
5406 | tmake_file=mips/t-svr3 | |
5407 | extra_passes="mips-tfile mips-tdump" | |
5408 | fi | |
75bffa71 | 5409 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5410 | then |
5411 | use_collect2=yes | |
5412 | fi | |
861bb6c1 JL |
5413 | ;; |
5414 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 5415 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 5416 | if test x$stabs = xyes; then |
861bb6c1 JL |
5417 | tm_file="${tm_file} dbx.h" |
5418 | fi | |
f6cb0e63 | 5419 | xm_defines=USG |
861bb6c1 | 5420 | xmake_file=mips/x-sysv |
75bffa71 | 5421 | if test x$gas = xyes |
861bb6c1 JL |
5422 | then |
5423 | tmake_file=mips/t-svr3-gas | |
5424 | else | |
5425 | tmake_file=mips/t-svr3 | |
5426 | extra_passes="mips-tfile mips-tdump" | |
5427 | fi | |
75bffa71 | 5428 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5429 | then |
5430 | use_collect2=yes | |
5431 | fi | |
861bb6c1 JL |
5432 | ;; |
5433 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
5434 | tm_file=mips/mips-5.h | |
75bffa71 | 5435 | if test x$stabs = xyes; then |
861bb6c1 JL |
5436 | tm_file="${tm_file} dbx.h" |
5437 | fi | |
75bffa71 | 5438 | if test x$gas = xyes |
861bb6c1 JL |
5439 | then |
5440 | tmake_file=mips/t-mips-gas | |
5441 | else | |
5442 | extra_passes="mips-tfile mips-tdump" | |
5443 | fi | |
75bffa71 | 5444 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5445 | then |
5446 | use_collect2=yes | |
5447 | fi | |
861bb6c1 JL |
5448 | ;; |
5449 | mips-*-gnu*) | |
5450 | ;; | |
5451 | mipsel-*-ecoff*) | |
5452 | tm_file=mips/ecoffl.h | |
75bffa71 | 5453 | if test x$stabs = xyes; then |
861bb6c1 JL |
5454 | tm_file="${tm_file} dbx.h" |
5455 | fi | |
5456 | tmake_file=mips/t-ecoff | |
5457 | ;; | |
5458 | mips-*-ecoff*) | |
1be12a4a | 5459 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 5460 | if test x$stabs = xyes; then |
861bb6c1 JL |
5461 | tm_file="${tm_file} dbx.h" |
5462 | fi | |
5463 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
5464 | ;; |
5465 | mipsel-*-elf*) | |
7aae67a2 | 5466 | tm_file="mips/elfl.h" |
d8265d29 | 5467 | tmake_file=mips/t-elf |
861bb6c1 JL |
5468 | ;; |
5469 | mips-*-elf*) | |
d8265d29 CM |
5470 | tm_file="mips/elf.h" |
5471 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5472 | ;; |
5473 | mips64el-*-elf*) | |
d8265d29 CM |
5474 | tm_file="mips/elfl64.h" |
5475 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5476 | ;; |
5477 | mips64orionel-*-elf*) | |
7aae67a2 | 5478 | tm_file="mips/elforion.h mips/elfl64.h" |
d8265d29 | 5479 | tmake_file=mips/t-elf |
861bb6c1 JL |
5480 | ;; |
5481 | mips64-*-elf*) | |
d8265d29 CM |
5482 | tm_file="mips/elf64.h" |
5483 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5484 | ;; |
5485 | mips64orion-*-elf*) | |
7aae67a2 | 5486 | tm_file="mips/elforion.h mips/elf64.h" |
d8265d29 | 5487 | tmake_file=mips/t-elf |
861bb6c1 JL |
5488 | ;; |
5489 | mips64orion-*-rtems*) | |
6e9856ba | 5490 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
d1476635 JS |
5491 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
5492 | tmake_file="mips/t-elf t-rtems" | |
861bb6c1 | 5493 | ;; |
e9a25f70 | 5494 | mipstx39el-*-elf*) |
d8265d29 | 5495 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 5496 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
5497 | ;; |
5498 | mipstx39-*-elf*) | |
d8265d29 | 5499 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 5500 | tmake_file=mips/t-r3900 |
e9a25f70 | 5501 | ;; |
861bb6c1 | 5502 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 5503 | if test x$stabs = xyes; then |
861bb6c1 JL |
5504 | tm_file="${tm_file} dbx.h" |
5505 | fi | |
75bffa71 | 5506 | if test x$gas = xyes |
861bb6c1 JL |
5507 | then |
5508 | tmake_file=mips/t-mips-gas | |
5509 | else | |
5510 | extra_passes="mips-tfile mips-tdump" | |
5511 | fi | |
75bffa71 | 5512 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5513 | then |
5514 | use_collect2=yes | |
5515 | fi | |
5516 | ;; | |
5517 | mn10200-*-*) | |
5518 | cpu_type=mn10200 | |
5519 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 5520 | if test x$stabs = xyes |
861bb6c1 JL |
5521 | then |
5522 | tm_file="${tm_file} dbx.h" | |
5523 | fi | |
5524 | use_collect2=no | |
5525 | ;; | |
5526 | mn10300-*-*) | |
5527 | cpu_type=mn10300 | |
5528 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 5529 | if test x$stabs = xyes |
861bb6c1 JL |
5530 | then |
5531 | tm_file="${tm_file} dbx.h" | |
5532 | fi | |
5533 | use_collect2=no | |
5534 | ;; | |
5535 | ns32k-encore-bsd*) | |
5536 | tm_file=ns32k/encore.h | |
5537 | use_collect2=yes | |
5538 | ;; | |
5539 | ns32k-sequent-bsd*) | |
5540 | tm_file=ns32k/sequent.h | |
5541 | use_collect2=yes | |
5542 | ;; | |
5543 | ns32k-tek6100-bsd*) | |
5544 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
5545 | use_collect2=yes |
5546 | ;; | |
5547 | ns32k-tek6200-bsd*) | |
5548 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5549 | use_collect2=yes |
5550 | ;; | |
5551 | # This has not been updated to GCC 2. | |
5552 | # ns32k-ns-genix*) | |
f6cb0e63 | 5553 | # xm_defines=USG |
861bb6c1 JL |
5554 | # xmake_file=ns32k/x-genix |
5555 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5556 | # use_collect2=yes |
5557 | # ;; | |
5558 | ns32k-merlin-*) | |
5559 | tm_file=ns32k/merlin.h | |
5560 | use_collect2=yes | |
5561 | ;; | |
5562 | ns32k-pc532-mach*) | |
5563 | tm_file=ns32k/pc532-mach.h | |
5564 | use_collect2=yes | |
5565 | ;; | |
5566 | ns32k-pc532-minix*) | |
5567 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5568 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5569 | xm_defines=USG | |
861bb6c1 JL |
5570 | use_collect2=yes |
5571 | ;; | |
58600d24 | 5572 | ns32k-*-netbsd*) |
861bb6c1 | 5573 | tm_file=ns32k/netbsd.h |
641d4216 | 5574 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5575 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5576 | tmake_file=t-netbsd |
af0ca027 | 5577 | use_collect2=yes |
861bb6c1 JL |
5578 | ;; |
5579 | pdp11-*-bsd) | |
5580 | tm_file="${tm_file} pdp11/2bsd.h" | |
5581 | ;; | |
5582 | pdp11-*-*) | |
5583 | ;; | |
1b4a979b ME |
5584 | ns32k-*-openbsd*) |
5585 | # Nothing special | |
5586 | ;; | |
7a3842b3 RH |
5587 | # This has not been updated to GCC 2. |
5588 | # pyramid-*-*) | |
5589 | # cpu_type=pyr | |
5590 | # xmake_file=pyr/x-pyr | |
5591 | # use_collect2=yes | |
5592 | # ;; | |
861bb6c1 JL |
5593 | romp-*-aos*) |
5594 | use_collect2=yes | |
5595 | ;; | |
5596 | romp-*-mach*) | |
5597 | xmake_file=romp/x-mach | |
5598 | use_collect2=yes | |
5599 | ;; | |
1b4a979b ME |
5600 | romp-*-openbsd*) |
5601 | # Nothing special | |
5602 | ;; | |
5603 | powerpc-*-openbsd*) | |
5604 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5605 | ;; |
c55dcc7d FF |
5606 | powerpc-*-beos*) |
5607 | cpu_type=rs6000 | |
5608 | tm_file=rs6000/beos.h | |
5609 | xm_file=rs6000/xm-beos.h | |
5610 | tmake_file=rs6000/t-beos | |
5611 | xmake_file=rs6000/x-beos | |
5612 | ;; | |
861bb6c1 JL |
5613 | powerpc-*-sysv* | powerpc-*-elf*) |
5614 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
5615 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5616 | xm_defines="USG POSIX" | |
861bb6c1 | 5617 | extra_headers=ppc-asm.h |
75bffa71 | 5618 | if test x$gas = xyes |
861bb6c1 JL |
5619 | then |
5620 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5621 | else | |
5622 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5623 | fi | |
5624 | xmake_file=rs6000/x-sysv4 | |
5625 | ;; | |
5626 | powerpc-*-eabiaix*) | |
5627 | tm_file=rs6000/eabiaix.h | |
5628 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5629 | extra_headers=ppc-asm.h |
5630 | ;; | |
5631 | powerpc-*-eabisim*) | |
5632 | tm_file=rs6000/eabisim.h | |
5633 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5634 | extra_headers=ppc-asm.h |
5635 | ;; | |
5636 | powerpc-*-eabi*) | |
5637 | tm_file=rs6000/eabi.h | |
75bffa71 | 5638 | if test x$gas = xyes |
861bb6c1 JL |
5639 | then |
5640 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5641 | else | |
5642 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5643 | fi | |
861bb6c1 JL |
5644 | extra_headers=ppc-asm.h |
5645 | ;; | |
5646 | powerpc-*-rtems*) | |
5647 | tm_file=rs6000/rtems.h | |
75bffa71 | 5648 | if test x$gas = xyes |
861bb6c1 JL |
5649 | then |
5650 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5651 | else | |
5652 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5653 | fi | |
861bb6c1 JL |
5654 | extra_headers=ppc-asm.h |
5655 | ;; | |
ce514f57 FS |
5656 | powerpc-*-linux-gnulibc1) |
5657 | tm_file=rs6000/linux.h | |
5658 | xm_file=rs6000/xm-sysv4.h | |
5659 | out_file=rs6000/rs6000.c | |
75bffa71 | 5660 | if test x$gas = xyes |
ce514f57 FS |
5661 | then |
5662 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5663 | else | |
5664 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5665 | fi | |
5666 | xmake_file=x-linux | |
ce514f57 FS |
5667 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5668 | extra_headers=ppc-asm.h | |
75bffa71 | 5669 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5670 | thread_file='posix' |
5671 | fi | |
5672 | ;; | |
861bb6c1 JL |
5673 | powerpc-*-linux-gnu*) |
5674 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
5675 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5676 | xm_defines="USG ${xm_defines}" | |
861bb6c1 | 5677 | out_file=rs6000/rs6000.c |
75bffa71 | 5678 | if test x$gas = xyes |
861bb6c1 JL |
5679 | then |
5680 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5681 | else | |
5682 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5683 | fi | |
5684 | xmake_file=x-linux | |
861bb6c1 JL |
5685 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5686 | extra_headers=ppc-asm.h | |
75bffa71 | 5687 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5688 | thread_file='posix' |
5689 | fi | |
5690 | ;; | |
7cc34889 | 5691 | powerpc-wrs-vxworks*) |
861bb6c1 | 5692 | cpu_type=rs6000 |
f6cb0e63 JL |
5693 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5694 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5695 | tm_file=rs6000/vxppc.h |
5696 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5697 | extra_headers=ppc-asm.h | |
7cc34889 | 5698 | thread_file='vxworks' |
861bb6c1 JL |
5699 | ;; |
5700 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
5701 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
5702 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5703 | xm_defines="USG POSIX" | |
75bffa71 | 5704 | if test x$gas = xyes |
861bb6c1 JL |
5705 | then |
5706 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5707 | else | |
5708 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5709 | fi | |
5710 | xmake_file=rs6000/x-sysv4 | |
5711 | extra_headers=ppc-asm.h | |
5712 | ;; | |
5713 | powerpcle-*-eabisim*) | |
5714 | tm_file=rs6000/eabilesim.h | |
5715 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5716 | extra_headers=ppc-asm.h |
5717 | ;; | |
5718 | powerpcle-*-eabi*) | |
5719 | tm_file=rs6000/eabile.h | |
75bffa71 | 5720 | if test x$gas = xyes |
861bb6c1 JL |
5721 | then |
5722 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5723 | else | |
5724 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5725 | fi | |
861bb6c1 JL |
5726 | extra_headers=ppc-asm.h |
5727 | ;; | |
5728 | powerpcle-*-winnt* ) | |
5729 | tm_file=rs6000/win-nt.h | |
5730 | tmake_file=rs6000/t-winnt | |
5731 | # extra_objs=pe.o | |
75bffa71 | 5732 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5733 | thread_file='win32' |
5734 | fi | |
5735 | extra_headers=ppc-asm.h | |
5736 | ;; | |
cae21ae8 GN |
5737 | powerpcle-*-pe | powerpcle-*-cygwin*) |
5738 | tm_file=rs6000/cygwin.h | |
5739 | xm_file="rs6000/xm-cygwin.h ${xm_file}" | |
861bb6c1 | 5740 | tmake_file=rs6000/t-winnt |
cae21ae8 | 5741 | xmake_file=rs6000/x-cygwin |
861bb6c1 | 5742 | # extra_objs=pe.o |
75bffa71 | 5743 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5744 | thread_file='win32' |
5745 | fi | |
5746 | exeext=.exe | |
5747 | extra_headers=ppc-asm.h | |
5748 | ;; | |
5749 | powerpcle-*-solaris2*) | |
5750 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
5751 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5752 | xm_defines="USG POSIX" | |
75bffa71 | 5753 | if test x$gas = xyes |
861bb6c1 JL |
5754 | then |
5755 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5756 | else | |
5757 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5758 | fi | |
5759 | xmake_file=rs6000/x-sysv4 | |
861bb6c1 JL |
5760 | extra_headers=ppc-asm.h |
5761 | ;; | |
5762 | rs6000-ibm-aix3.[01]*) | |
5763 | tm_file=rs6000/aix31.h | |
5764 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5765 | float_format=none |
861bb6c1 JL |
5766 | use_collect2=yes |
5767 | ;; | |
5768 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5769 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5770 | if test x$host != x$target |
861bb6c1 JL |
5771 | then |
5772 | tmake_file=rs6000/t-xnewas | |
5773 | else | |
5774 | tmake_file=rs6000/t-newas | |
5775 | fi | |
45e24d08 | 5776 | float_format=none |
861bb6c1 JL |
5777 | use_collect2=yes |
5778 | ;; | |
05cea40f | 5779 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 5780 | tm_file=rs6000/aix41.h |
75bffa71 | 5781 | if test x$host != x$target |
861bb6c1 JL |
5782 | then |
5783 | tmake_file=rs6000/t-xnewas | |
5784 | else | |
5785 | tmake_file=rs6000/t-newas | |
5786 | fi | |
590e30e7 JW |
5787 | if test "$gnu_ld" = yes |
5788 | then | |
5789 | xmake_file=rs6000/x-aix41-gld | |
5790 | else | |
69c9f0fb | 5791 | xmake_file=rs6000/x-aix41 |
590e30e7 | 5792 | fi |
45e24d08 | 5793 | float_format=none |
0a95276e JL |
5794 | use_collect2=yes |
5795 | ;; | |
7747ddb3 | 5796 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 5797 | tm_file=rs6000/aix43.h |
75bffa71 | 5798 | if test x$host != x$target |
0a95276e JL |
5799 | then |
5800 | tmake_file=rs6000/t-xaix43 | |
5801 | else | |
5802 | tmake_file=rs6000/t-aix43 | |
5803 | fi | |
5804 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5805 | float_format=none |
0a95276e JL |
5806 | use_collect2=yes |
5807 | ;; | |
5808 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5809 | tm_file=rs6000/aix43.h | |
75bffa71 | 5810 | if test x$host != x$target |
0a95276e JL |
5811 | then |
5812 | tmake_file=rs6000/t-xaix43 | |
5813 | else | |
5814 | tmake_file=rs6000/t-aix43 | |
5815 | fi | |
5816 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5817 | float_format=none |
861bb6c1 JL |
5818 | use_collect2=yes |
5819 | ;; | |
5820 | rs6000-ibm-aix*) | |
45e24d08 | 5821 | float_format=none |
861bb6c1 JL |
5822 | use_collect2=yes |
5823 | ;; | |
5824 | rs6000-bull-bosx) | |
45e24d08 | 5825 | float_format=none |
861bb6c1 JL |
5826 | use_collect2=yes |
5827 | ;; | |
5828 | rs6000-*-mach*) | |
5829 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5830 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5831 | xmake_file=rs6000/x-mach |
5832 | use_collect2=yes | |
5833 | ;; | |
5834 | rs6000-*-lynxos*) | |
5835 | tm_file=rs6000/lynx.h | |
5836 | xm_file=rs6000/xm-lynx.h | |
5837 | tmake_file=rs6000/t-rs6000 | |
5838 | xmake_file=rs6000/x-lynx | |
5839 | use_collect2=yes | |
5840 | ;; | |
5841 | sh-*-elf*) | |
5842 | tm_file=sh/elf.h | |
5843 | float_format=sh | |
5844 | ;; | |
b098f56d JS |
5845 | sh-*-rtemself*) |
5846 | tmake_file="sh/t-sh t-rtems" | |
5847 | tm_file=sh/rtemself.h | |
5848 | float_format=sh | |
5849 | ;; | |
5d84b57e JS |
5850 | sh-*-rtems*) |
5851 | tmake_file="sh/t-sh t-rtems" | |
5852 | tm_file=sh/rtems.h | |
5853 | float_format=sh | |
5854 | ;; | |
861bb6c1 JL |
5855 | sh-*-*) |
5856 | float_format=sh | |
5857 | ;; | |
5858 | sparc-tti-*) | |
5859 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5860 | xm_file="xm-alloca.h ${xm_file}" |
5861 | xm_defines=USG | |
861bb6c1 JL |
5862 | ;; |
5863 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5864 | tm_file=sparc/vxsparc.h | |
5865 | tmake_file=sparc/t-vxsparc | |
5866 | use_collect2=yes | |
7cc34889 | 5867 | thread_file='vxworks' |
861bb6c1 JL |
5868 | ;; |
5869 | sparc-*-aout*) | |
5870 | tmake_file=sparc/t-sparcbare | |
5871 | tm_file="sparc/aout.h libgloss.h" | |
5872 | ;; | |
5873 | sparc-*-netbsd*) | |
5874 | tm_file=sparc/netbsd.h | |
861bb6c1 | 5875 | tmake_file=t-netbsd |
af0ca027 | 5876 | use_collect2=yes |
861bb6c1 | 5877 | ;; |
1b4a979b ME |
5878 | sparc-*-openbsd*) |
5879 | # we need collect2 until our bug is fixed... | |
5880 | use_collect2=yes | |
5881 | ;; | |
861bb6c1 JL |
5882 | sparc-*-bsd*) |
5883 | tm_file=sparc/bsd.h | |
5884 | ;; | |
ac52b80b DE |
5885 | sparc-*-elf*) |
5886 | tm_file=sparc/elf.h | |
5887 | tmake_file=sparc/t-elf | |
5888 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5889 | #float_format=i128 | |
5890 | float_format=i64 | |
5891 | ;; | |
956d6950 | 5892 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5893 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5894 | tm_file=sparc/linux-aout.h |
5895 | xmake_file=x-linux | |
861bb6c1 JL |
5896 | gnu_ld=yes |
5897 | ;; | |
956d6950 | 5898 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5899 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5900 | xmake_file=x-linux |
861bb6c1 | 5901 | tm_file=sparc/linux.h |
3e88bbdb | 5902 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5903 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5904 | gnu_ld=yes |
39c440fc | 5905 | float_format=sparc |
861bb6c1 | 5906 | ;; |
956d6950 | 5907 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5908 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5909 | xmake_file=x-linux |
861bb6c1 | 5910 | tm_file=sparc/linux.h |
3e88bbdb | 5911 | tmake_file="t-linux" |
861bb6c1 | 5912 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5913 | gnu_ld=yes |
75bffa71 | 5914 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5915 | thread_file='posix' |
5916 | fi | |
39c440fc | 5917 | float_format=sparc |
861bb6c1 JL |
5918 | ;; |
5919 | sparc-*-lynxos*) | |
75bffa71 | 5920 | if test x$gas = xyes |
861bb6c1 JL |
5921 | then |
5922 | tm_file=sparc/lynx.h | |
5923 | else | |
5924 | tm_file=sparc/lynx-ng.h | |
5925 | fi | |
5926 | xm_file=sparc/xm-lynx.h | |
5927 | tmake_file=sparc/t-sunos41 | |
5928 | xmake_file=x-lynx | |
5929 | ;; | |
d1476635 JS |
5930 | sparc-*-rtems*|sparc-*-rtemself*) |
5931 | tm_file="sparc/rtemself.h" | |
5932 | tmake_file="sparc/t-elf t-rtems" | |
5933 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5934 | #float_format=i128 | |
5935 | float_format=i64 | |
5936 | ;; | |
5937 | sparc-*-rtemsaout*) | |
861bb6c1 JL |
5938 | tmake_file="sparc/t-sparcbare t-rtems" |
5939 | tm_file=sparc/rtems.h | |
5940 | ;; | |
d559a4db DM |
5941 | sparcv9-*-solaris2*) |
5942 | tm_file=sparc/sol2-sld-64.h | |
5943 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
5944 | xm_defines="USG POSIX" | |
345a6161 | 5945 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5946 | xmake_file=sparc/x-sysv4 |
5947 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 5948 | float_format=none |
d7496fbb | 5949 | if test x${enable_threads} = x ; then |
d559a4db | 5950 | enable_threads=$have_pthread_h |
d7496fbb | 5951 | if test x${enable_threads} = x ; then |
d559a4db DM |
5952 | enable_threads=$have_thread_h |
5953 | fi | |
5954 | fi | |
d7496fbb DM |
5955 | if test x${enable_threads} = xyes ; then |
5956 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5957 | thread_file='posix' |
5958 | else | |
5959 | thread_file='solaris' | |
5960 | fi | |
5961 | fi | |
5962 | ;; | |
ab87f8c8 | 5963 | sparc-hal-solaris2*) |
a5037588 CL |
5964 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5965 | xm_defines="USG POSIX" | |
ab87f8c8 JL |
5966 | tm_file="sparc/sol2.h sparc/hal.h" |
5967 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5968 | xmake_file=sparc/x-sysv4 | |
5969 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
a5037588 CL |
5970 | case $machine in |
5971 | *-*-solaris2.[0-4]) | |
5972 | float_format=i128 | |
5973 | ;; | |
5974 | *) | |
5975 | float_format=none | |
5976 | ;; | |
5977 | esac | |
5978 | thread_file='solaris' | |
ab87f8c8 | 5979 | ;; |
861bb6c1 | 5980 | sparc-*-solaris2*) |
75bffa71 | 5981 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5982 | then |
5983 | tm_file=sparc/sol2.h | |
5984 | else | |
5985 | tm_file=sparc/sol2-sld.h | |
5986 | fi | |
0b3d64d2 JL |
5987 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5988 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5989 | tmake_file=sparc/t-sol2 |
5990 | xmake_file=sparc/x-sysv4 | |
5991 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
5992 | case $machine in |
5993 | *-*-solaris2.[0-4]) | |
027ea2a7 JW |
5994 | float_format=i128 |
5995 | ;; | |
f6cb0e63 | 5996 | *) |
027ea2a7 JW |
5997 | float_format=none |
5998 | ;; | |
f6cb0e63 | 5999 | esac |
75bffa71 | 6000 | if test x${enable_threads} = x; then |
f24af81b | 6001 | enable_threads=$have_pthread_h |
75bffa71 | 6002 | if test x${enable_threads} = x; then |
f24af81b TT |
6003 | enable_threads=$have_thread_h |
6004 | fi | |
6005 | fi | |
75bffa71 ILT |
6006 | if test x${enable_threads} = xyes; then |
6007 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
6008 | thread_file='posix' |
6009 | else | |
861bb6c1 | 6010 | thread_file='solaris' |
f24af81b | 6011 | fi |
861bb6c1 JL |
6012 | fi |
6013 | ;; | |
6014 | sparc-*-sunos4.0*) | |
6015 | tm_file=sparc/sunos4.h | |
6016 | tmake_file=sparc/t-sunos40 | |
6017 | use_collect2=yes | |
6018 | ;; | |
6019 | sparc-*-sunos4*) | |
6020 | tm_file=sparc/sunos4.h | |
6021 | tmake_file=sparc/t-sunos41 | |
6022 | use_collect2=yes | |
75bffa71 | 6023 | if test x$gas = xyes; then |
ca55abae JM |
6024 | tm_file="${tm_file} sparc/sun4gas.h" |
6025 | fi | |
861bb6c1 JL |
6026 | ;; |
6027 | sparc-*-sunos3*) | |
6028 | tm_file=sparc/sun4o3.h | |
6029 | use_collect2=yes | |
6030 | ;; | |
6031 | sparc-*-sysv4*) | |
6032 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
6033 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
6034 | xm_defines="USG POSIX" | |
861bb6c1 JL |
6035 | tmake_file=t-svr4 |
6036 | xmake_file=sparc/x-sysv4 | |
6037 | extra_parts="crtbegin.o crtend.o" | |
6038 | ;; | |
6039 | sparc-*-vxsim*) | |
f5963e61 JL |
6040 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
6041 | xm_defines="USG POSIX" | |
861bb6c1 JL |
6042 | tm_file=sparc/vxsim.h |
6043 | tmake_file=sparc/t-vxsparc | |
6044 | xmake_file=sparc/x-sysv4 | |
6045 | ;; | |
6046 | sparclet-*-aout*) | |
6047 | tm_file="sparc/splet.h libgloss.h" | |
6048 | tmake_file=sparc/t-splet | |
6049 | ;; | |
6050 | sparclite-*-coff*) | |
6051 | tm_file="sparc/litecoff.h libgloss.h" | |
6052 | tmake_file=sparc/t-sparclite | |
6053 | ;; | |
6054 | sparclite-*-aout*) | |
6055 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
6056 | tmake_file=sparc/t-sparclite | |
6057 | ;; | |
28df4168 | 6058 | sparclite-*-elf*) |
6eccdc81 | 6059 | tm_file="sparc/liteelf.h" |
28df4168 JL |
6060 | tmake_file=sparc/t-sparclite |
6061 | extra_parts="crtbegin.o crtend.o" | |
6062 | ;; | |
6063 | sparc86x-*-aout*) | |
6064 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
6065 | tmake_file=sparc/t-sp86x | |
6066 | ;; | |
6067 | sparc86x-*-elf*) | |
6eccdc81 | 6068 | tm_file="sparc/sp86x-elf.h" |
28df4168 JL |
6069 | tmake_file=sparc/t-sp86x |
6070 | extra_parts="crtbegin.o crtend.o" | |
6071 | ;; | |
861bb6c1 JL |
6072 | sparc64-*-aout*) |
6073 | tmake_file=sparc/t-sp64 | |
6074 | tm_file=sparc/sp64-aout.h | |
6075 | ;; | |
6076 | sparc64-*-elf*) | |
6077 | tmake_file=sparc/t-sp64 | |
6078 | tm_file=sparc/sp64-elf.h | |
6079 | extra_parts="crtbegin.o crtend.o" | |
6080 | ;; | |
956d6950 | 6081 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 6082 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
6083 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
6084 | tm_file=sparc/linux64.h | |
6085 | xmake_file=x-linux | |
345a6161 | 6086 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af | 6087 | gnu_ld=yes |
39c440fc | 6088 | float_format=sparc |
26b551af | 6089 | ;; |
861bb6c1 JL |
6090 | # This hasn't been upgraded to GCC 2. |
6091 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
6092 | # tm_file=tahoe/harris.h | |
6093 | # ;; | |
6094 | # tahoe-*-bsd*) # tahoe running BSD | |
6095 | # ;; | |
e98e406f NC |
6096 | thumb-*-coff* | thumbel-*-coff*) |
6097 | tm_file=arm/tcoff.h | |
6098 | out_file=arm/thumb.c | |
6099 | xm_file=arm/xm-thumb.h | |
6100 | md_file=arm/thumb.md | |
6101 | tmake_file=arm/t-thumb | |
6102 | ;; | |
c83fe036 NC |
6103 | thumb-*-elf* | thumbel-*-elf*) |
6104 | tm_file=arm/telf.h | |
6105 | out_file=arm/thumb.c | |
6106 | xm_file=arm/xm-thumb.h | |
6107 | md_file=arm/thumb.md | |
6108 | tmake_file=arm/t-thumb-elf | |
6109 | ;; | |
483f6332 PB |
6110 | thumb-*-linux-gnu*) |
6111 | tm_file=arm/linux-telf.h | |
6112 | out_file=arm/thumb.c | |
6113 | xm_file=arm/xm-thumb.h | |
6114 | md_file=arm/thumb.md | |
6115 | tmake_file=arm/t-thumb-linux | |
6116 | ;; | |
6117 | thumb-*-uclinux*) | |
6118 | tm_file=arm/uclinux-telf.h | |
6119 | out_file=arm/thumb.c | |
6120 | md_file=arm/thumb.md | |
6121 | tmake_file=arm/t-thumb-linux | |
6122 | xm_file=arm/xm-thumb.h | |
6123 | ;; | |
28897609 MS |
6124 | thumb-wrs-vxworks) |
6125 | tm_file=arm/tcoff.h | |
6126 | out_file=arm/thumb.c | |
6127 | xm_file=arm/xm-thumb.h | |
6128 | md_file=arm/thumb.md | |
6129 | tmake_file=arm/t-thumb | |
6130 | thread_file='vxworks' | |
6131 | ;; | |
cb805c2d NC |
6132 | thumb-*-pe) |
6133 | tm_file=arm/tpe.h | |
6134 | out_file=arm/thumb.c | |
6135 | xm_file=arm/xm-thumb.h | |
6136 | md_file=arm/thumb.md | |
6137 | tmake_file=arm/t-pe-thumb | |
6138 | extra_objs=pe.o | |
6139 | ;; | |
861bb6c1 JL |
6140 | # This hasn't been upgraded to GCC 2. |
6141 | # tron-*-*) | |
6142 | # cpu_type=gmicro | |
6143 | # use_collect2=yes | |
6144 | # ;; | |
f84271d9 | 6145 | v850-*-*) |
7a846a6c | 6146 | target_cpu_default="TARGET_CPU_generic" |
f84271d9 JL |
6147 | cpu_type=v850 |
6148 | tm_file="v850/v850.h" | |
6149 | xm_file="v850/xm-v850.h" | |
62db76ee | 6150 | tmake_file=v850/t-v850 |
75bffa71 | 6151 | if test x$stabs = xyes |
f84271d9 JL |
6152 | then |
6153 | tm_file="${tm_file} dbx.h" | |
6154 | fi | |
6155 | use_collect2=no | |
6156 | ;; | |
861bb6c1 JL |
6157 | vax-*-bsd*) # vaxen running BSD |
6158 | use_collect2=yes | |
6159 | float_format=vax | |
6160 | ;; | |
6161 | vax-*-sysv*) # vaxen running system V | |
6162 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 6163 | xm_defines=USG |
861bb6c1 JL |
6164 | float_format=vax |
6165 | ;; | |
6166 | vax-*-netbsd*) | |
6167 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
6168 | tmake_file=t-netbsd |
6169 | float_format=vax | |
af0ca027 | 6170 | use_collect2=yes |
861bb6c1 | 6171 | ;; |
1b4a979b | 6172 | vax-*-openbsd*) |
766518a0 | 6173 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 6174 | ;; |
861bb6c1 JL |
6175 | vax-*-ultrix*) # vaxen running ultrix |
6176 | tm_file="${tm_file} vax/ultrix.h" | |
6177 | use_collect2=yes | |
6178 | float_format=vax | |
6179 | ;; | |
6180 | vax-*-vms*) # vaxen running VMS | |
6181 | xm_file=vax/xm-vms.h | |
6182 | tm_file=vax/vms.h | |
6183 | float_format=vax | |
6184 | ;; | |
6185 | vax-*-*) # vax default entry | |
6186 | float_format=vax | |
6187 | ;; | |
6188 | we32k-att-sysv*) | |
6189 | xm_file="${xm_file} xm-svr3" | |
6190 | use_collect2=yes | |
6191 | ;; | |
6192 | *) | |
6193 | echo "Configuration $machine not supported" 1>&2 | |
6194 | exit 1 | |
6195 | ;; | |
6196 | esac | |
6197 | ||
6198 | case $machine in | |
6199 | *-*-linux-gnu*) | |
f6cb0e63 | 6200 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
6201 | *-*-gnu*) |
6202 | # On the GNU system, the setup is just about the same on | |
6203 | # each different CPU. The specific machines that GNU | |
6204 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 6205 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
6206 | tm_file=${cpu_type}/gnu.h |
6207 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
6208 | # GNU always uses ELF. | |
6209 | elf=yes | |
6210 | # GNU tools are the only tools. | |
6211 | gnu_ld=yes | |
6212 | gas=yes | |
861bb6c1 JL |
6213 | xmake_file=x-linux # These details are the same as Linux. |
6214 | tmake_file=t-gnu # These are not. | |
6215 | ;; | |
6216 | *-*-sysv4*) | |
861bb6c1 | 6217 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
6218 | install_headers_dir=install-headers-cpio |
6219 | ;; | |
6220 | *-*-sysv*) | |
861bb6c1 JL |
6221 | install_headers_dir=install-headers-cpio |
6222 | ;; | |
6223 | esac | |
6224 | ||
f6cb0e63 | 6225 | # Distinguish i[34567]86 |
861bb6c1 JL |
6226 | # Also, do not run mips-tfile on MIPS if using gas. |
6227 | # Process --with-cpu= for PowerPC/rs6000 | |
6228 | target_cpu_default2= | |
6229 | case $machine in | |
6230 | i486-*-*) | |
6231 | target_cpu_default2=1 | |
6232 | ;; | |
6233 | i586-*-*) | |
83f4345f PT |
6234 | case $target_alias in |
6235 | k6-*) | |
6236 | target_cpu_default2=4 | |
6237 | ;; | |
6238 | *) | |
6239 | target_cpu_default2=2 | |
6240 | ;; | |
6241 | esac | |
861bb6c1 | 6242 | ;; |
f6cb0e63 | 6243 | i686-*-* | i786-*-*) |
861bb6c1 JL |
6244 | target_cpu_default2=3 |
6245 | ;; | |
6246 | alpha*-*-*) | |
6247 | case $machine in | |
e9a25f70 | 6248 | alphaev6*) |
de4abb91 | 6249 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
6250 | ;; |
6251 | alphapca56*) | |
fbb5ed67 | 6252 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 6253 | ;; |
861bb6c1 | 6254 | alphaev56*) |
e9a25f70 | 6255 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
6256 | ;; |
6257 | alphaev5*) | |
6258 | target_cpu_default2="MASK_CPU_EV5" | |
6259 | ;; | |
6260 | esac | |
6261 | ||
75bffa71 | 6262 | if test x$gas = xyes |
861bb6c1 | 6263 | then |
75bffa71 | 6264 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
6265 | then |
6266 | target_cpu_default2="MASK_GAS" | |
6267 | else | |
6268 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
6269 | fi | |
6270 | fi | |
6271 | ;; | |
956d6950 JL |
6272 | arm*-*-*) |
6273 | case "x$with_cpu" in | |
6274 | x) | |
6275 | # The most generic | |
6276 | target_cpu_default2="TARGET_CPU_generic" | |
6277 | ;; | |
6278 | ||
6279 | # Distinguish cores, and major variants | |
6280 | # arm7m doesn't exist, but D & I don't affect code | |
7805bde9 | 6281 | xarm[23678] | xarm250 | xarm[67][01]0 \ |
956d6950 JL |
6282 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ |
6283 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 6284 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
6285 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6286 | ;; | |
6287 | ||
6288 | xyes | xno) | |
6289 | echo "--with-cpu must be passed a value" 1>&2 | |
6290 | exit 1 | |
6291 | ;; | |
6292 | ||
6293 | *) | |
75bffa71 | 6294 | if test x$pass2done = xyes |
956d6950 JL |
6295 | then |
6296 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6297 | exit 1 | |
6298 | fi | |
6299 | ;; | |
6300 | esac | |
6301 | ;; | |
6302 | ||
861bb6c1 | 6303 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 6304 | if test x$gas = xyes |
861bb6c1 | 6305 | then |
75bffa71 | 6306 | if test x$gnu_ld = xyes |
861bb6c1 JL |
6307 | then |
6308 | target_cpu_default2=20 | |
6309 | else | |
6310 | target_cpu_default2=16 | |
6311 | fi | |
6312 | fi | |
6313 | ;; | |
6314 | mips*-*-*) | |
75bffa71 | 6315 | if test x$gas = xyes |
861bb6c1 JL |
6316 | then |
6317 | target_cpu_default2=16 | |
6318 | fi | |
6319 | ;; | |
6320 | powerpc*-*-* | rs6000-*-*) | |
6321 | case "x$with_cpu" in | |
6322 | x) | |
6323 | ;; | |
6324 | ||
6325 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
6326 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
6327 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 6328 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 6329 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 6330 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
6331 | ;; |
6332 | ||
6333 | xyes | xno) | |
6334 | echo "--with-cpu must be passed a value" 1>&2 | |
6335 | exit 1 | |
6336 | ;; | |
6337 | ||
6338 | *) | |
75bffa71 | 6339 | if test x$pass2done = xyes |
956d6950 JL |
6340 | then |
6341 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6342 | exit 1 | |
6343 | fi | |
861bb6c1 JL |
6344 | ;; |
6345 | esac | |
6346 | ;; | |
6347 | sparc*-*-*) | |
6348 | case ".$with_cpu" in | |
6349 | .) | |
6350 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
6351 | ;; | |
8947065c | 6352 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
6353 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6354 | ;; | |
6355 | *) | |
75bffa71 | 6356 | if test x$pass2done = xyes |
956d6950 JL |
6357 | then |
6358 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6359 | exit 1 | |
6360 | fi | |
861bb6c1 JL |
6361 | ;; |
6362 | esac | |
6363 | ;; | |
6364 | esac | |
6365 | ||
75bffa71 | 6366 | if test "$target_cpu_default2" != "" |
861bb6c1 | 6367 | then |
75bffa71 | 6368 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
6369 | then |
6370 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
6371 | else | |
6372 | target_cpu_default=$target_cpu_default2 | |
6373 | fi | |
6374 | fi | |
6375 | ||
6376 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
6377 | # Actually, there is now; GNU ld doesn't handle the EH info or |
6378 | # collecting for shared libraries. | |
ca8c3b37 JM |
6379 | #case x$gnu_ld in |
6380 | #xyes) | |
6381 | # use_collect2= | |
6382 | # ;; | |
6383 | #esac | |
861bb6c1 JL |
6384 | |
6385 | # Save data on machine being used to compile GCC in build_xm_file. | |
6386 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 6387 | if test x$pass1done = x |
861bb6c1 | 6388 | then |
75bffa71 | 6389 | if test x"$xm_file" = x |
861bb6c1 JL |
6390 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
6391 | else build_xm_file=$xm_file | |
6392 | fi | |
f6cb0e63 | 6393 | build_xm_defines=$xm_defines |
861bb6c1 JL |
6394 | build_install_headers_dir=$install_headers_dir |
6395 | build_exeext=$exeext | |
6396 | pass1done=yes | |
6397 | else | |
75bffa71 | 6398 | if test x$pass2done = x |
861bb6c1 | 6399 | then |
75bffa71 | 6400 | if test x"$xm_file" = x |
861bb6c1 JL |
6401 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
6402 | else host_xm_file=$xm_file | |
6403 | fi | |
f6cb0e63 | 6404 | host_xm_defines=$xm_defines |
75bffa71 | 6405 | if test x"$xmake_file" = x |
861bb6c1 JL |
6406 | then xmake_file=$cpu_type/x-$cpu_type |
6407 | fi | |
6408 | host_xmake_file="$xmake_file" | |
6409 | host_truncate_target=$truncate_target | |
6410 | host_extra_gcc_objs=$extra_gcc_objs | |
6411 | host_extra_objs=$extra_host_objs | |
6e26218f | 6412 | host_exeext=$exeext |
861bb6c1 JL |
6413 | pass2done=yes |
6414 | fi | |
6415 | fi | |
6416 | done | |
6417 | ||
6418 | extra_objs="${host_extra_objs} ${extra_objs}" | |
6419 | ||
6420 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 6421 | if test x"$tm_file" = x |
861bb6c1 JL |
6422 | then tm_file=$cpu_type/$cpu_type.h; fi |
6423 | ||
75bffa71 | 6424 | if test x$extra_headers = x |
861bb6c1 JL |
6425 | then extra_headers=; fi |
6426 | ||
75bffa71 | 6427 | if test x"$xm_file" = x |
861bb6c1 JL |
6428 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
6429 | ||
75bffa71 | 6430 | if test x$md_file = x |
e98e406f | 6431 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 6432 | |
75bffa71 | 6433 | if test x$out_file = x |
861bb6c1 JL |
6434 | then out_file=$cpu_type/$cpu_type.c; fi |
6435 | ||
75bffa71 | 6436 | if test x"$tmake_file" = x |
861bb6c1 JL |
6437 | then tmake_file=$cpu_type/t-$cpu_type |
6438 | fi | |
6439 | ||
90e6a802 RL |
6440 | if test x"$dwarf2" = xyes |
6441 | then tm_file="tm-dwarf2.h $tm_file" | |
6442 | fi | |
6443 | ||
75bffa71 | 6444 | if test x$float_format = x |
861bb6c1 JL |
6445 | then float_format=i64 |
6446 | fi | |
6447 | ||
027ea2a7 JW |
6448 | if test $float_format = none |
6449 | then float_h_file=Makefile.in | |
6450 | else float_h_file=float-$float_format.h | |
6451 | fi | |
6452 | ||
9fc9b82a | 6453 | # Handle cpp installation. |
3ecc3258 | 6454 | if test x$enable_cpp != xno |
9fc9b82a L |
6455 | then |
6456 | tmake_file="$tmake_file t-install-cpp" | |
6457 | fi | |
6458 | ||
861bb6c1 JL |
6459 | # Say what files are being used for the output code and MD file. |
6460 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
6461 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
6462 | ||
6463 | count=a | |
6464 | for f in $tm_file; do | |
6465 | count=${count}x | |
6466 | done | |
75bffa71 | 6467 | if test $count = ax; then |
861bb6c1 JL |
6468 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
6469 | else | |
6470 | echo "Using the following target machine macro files:" | |
6471 | for f in $tm_file; do | |
6472 | echo " $srcdir/config/$f" | |
6473 | done | |
6474 | fi | |
6475 | ||
6476 | count=a | |
6477 | for f in $host_xm_file; do | |
6478 | count=${count}x | |
6479 | done | |
75bffa71 | 6480 | if test $count = ax; then |
861bb6c1 JL |
6481 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
6482 | else | |
6483 | echo "Using the following host machine macro files:" | |
6484 | for f in $host_xm_file; do | |
6485 | echo " $srcdir/config/$f" | |
6486 | done | |
6487 | fi | |
6488 | ||
75bffa71 | 6489 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
6490 | count=a |
6491 | for f in $build_xm_file; do | |
6492 | count=${count}x | |
6493 | done | |
75bffa71 | 6494 | if test $count = ax; then |
861bb6c1 JL |
6495 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
6496 | else | |
6497 | echo "Using the following build machine macro files:" | |
6498 | for f in $build_xm_file; do | |
6499 | echo " $srcdir/config/$f" | |
6500 | done | |
6501 | fi | |
6502 | fi | |
6503 | ||
75bffa71 ILT |
6504 | if test x$thread_file = x; then |
6505 | if test x$target_thread_file != x; then | |
a851212a JW |
6506 | thread_file=$target_thread_file |
6507 | else | |
6508 | thread_file='single' | |
6509 | fi | |
861bb6c1 JL |
6510 | fi |
6511 | ||
6512 | # Set up the header files. | |
6513 | # $links is the list of header files to create. | |
6514 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 6515 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 6516 | # the first file included by config.h. |
f6cb0e63 | 6517 | null_defines= |
64ccbc99 | 6518 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 6519 | |
b7cb92ad | 6520 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
6521 | # as well. If host!=build, we are in error and need to do more |
6522 | # work to find out the build config parameters. | |
75bffa71 | 6523 | if test x$host = x$build |
db81d74a | 6524 | then |
64ccbc99 | 6525 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
6526 | else |
6527 | # We create a subdir, then run autoconf in the subdir. | |
6528 | # To prevent recursion we set host and build for the new | |
6529 | # invocation of configure to the build for this invocation | |
6530 | # of configure. | |
6531 | tempdir=build.$$ | |
6532 | rm -rf $tempdir | |
6533 | mkdir $tempdir | |
6534 | cd $tempdir | |
6535 | case ${srcdir} in | |
6536 | /*) realsrcdir=${srcdir};; | |
6537 | *) realsrcdir=../${srcdir};; | |
6538 | esac | |
fe81dd69 | 6539 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
6540 | --target=$target --host=$build --build=$build |
6541 | ||
6542 | # We just finished tests for the build machine, so rename | |
6543 | # the file auto-build.h in the gcc directory. | |
6544 | mv auto-host.h ../auto-build.h | |
6545 | cd .. | |
6546 | rm -rf $tempdir | |
64ccbc99 | 6547 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
6548 | fi |
6549 | ||
0056a9b5 KG |
6550 | xm_file="gansidecl.h ${xm_file}" |
6551 | tm_file="gansidecl.h ${tm_file}" | |
6552 | ||
6baf1cc8 BS |
6553 | vars="host_xm_file tm_file tm_p_file xm_file build_xm_file" |
6554 | links="config.h tm.h tm_p.h tconfig.h hconfig.h" | |
6555 | defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines" | |
861bb6c1 JL |
6556 | |
6557 | rm -f config.bak | |
75bffa71 | 6558 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
6559 | |
6560 | # Make the links. | |
75bffa71 | 6561 | while test -n "$vars" |
861bb6c1 | 6562 | do |
861bb6c1 JL |
6563 | set $vars; var=$1; shift; vars=$* |
6564 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 6565 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
6566 | |
6567 | rm -f $link | |
6baf1cc8 BS |
6568 | # Make sure the file is created, even if it is empty. |
6569 | echo >$link | |
861bb6c1 JL |
6570 | |
6571 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
6572 | # This substitutes for lots of *.h files. | |
75bffa71 | 6573 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 6574 | then |
8fbf199e | 6575 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
6576 | fi |
6577 | ||
6578 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
6579 | case $file in |
6580 | auto-config.h) | |
6581 | ;; | |
6582 | *) | |
6583 | echo '#ifdef IN_GCC' >>$link | |
6584 | ;; | |
6585 | esac | |
861bb6c1 | 6586 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
6587 | case $file in |
6588 | auto-config.h) | |
6589 | ;; | |
6590 | *) | |
6591 | echo '#endif' >>$link | |
6592 | ;; | |
6593 | esac | |
861bb6c1 | 6594 | done |
f6cb0e63 JL |
6595 | |
6596 | for def in `eval echo '$'$define`; do | |
6597 | echo "#ifndef $def" >>$link | |
6598 | echo "#define $def" >>$link | |
6599 | echo "#endif" >>$link | |
6600 | done | |
861bb6c1 JL |
6601 | done |
6602 | ||
6603 | # Truncate the target if necessary | |
75bffa71 | 6604 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6605 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6606 | fi | |
6607 | ||
f1943b77 | 6608 | # Get the version trigger filename from the toplevel |
75bffa71 | 6609 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6610 | gcc_version_trigger=$with_gcc_version_trigger |
6611 | else | |
6612 | gcc_version_trigger=${srcdir}/version.c | |
6613 | fi | |
6614 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 6615 | |
ab87f8c8 JL |
6616 | # Internationalization |
6617 | PACKAGE=gcc | |
6618 | VERSION="$gcc_version" | |
6619 | cat >> confdefs.h <<EOF | |
6620 | #define PACKAGE "$PACKAGE" | |
6621 | EOF | |
861bb6c1 | 6622 | |
ab87f8c8 JL |
6623 | cat >> confdefs.h <<EOF |
6624 | #define VERSION "$VERSION" | |
6625 | EOF | |
861bb6c1 | 6626 | |
861bb6c1 | 6627 | |
ab87f8c8 JL |
6628 | |
6629 | ||
6630 | ALL_LINGUAS="en_UK" | |
6631 | ||
6632 | # NLS support is still experimental, so disable it by default for now. | |
6633 | # Check whether --enable-nls or --disable-nls was given. | |
6634 | if test "${enable_nls+set}" = set; then | |
6635 | enableval="$enable_nls" | |
6636 | : | |
861bb6c1 | 6637 | else |
ab87f8c8 | 6638 | enable_nls=no |
861bb6c1 | 6639 | fi |
861bb6c1 | 6640 | |
861bb6c1 | 6641 | |
861bb6c1 | 6642 | |
ab87f8c8 | 6643 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
81bf3d9e | 6644 | echo "configure:6636: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6645 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6646 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6648 | else | |
6649 | ac_save_LIBS="$LIBS" | |
6650 | LIBS="-lcposix $LIBS" | |
6651 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6652 | #line 6644 "configure" |
ab87f8c8 JL |
6653 | #include "confdefs.h" |
6654 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6655 | /* We use char because int might match the return type of a gcc2 | |
6656 | builtin and then its argument prototype would still apply. */ | |
6657 | char strerror(); | |
861bb6c1 | 6658 | |
ab87f8c8 JL |
6659 | int main() { |
6660 | strerror() | |
6661 | ; return 0; } | |
6662 | EOF | |
81bf3d9e | 6663 | if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6664 | rm -rf conftest* |
6665 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6666 | else | |
6667 | echo "configure: failed program was:" >&5 | |
6668 | cat conftest.$ac_ext >&5 | |
6669 | rm -rf conftest* | |
6670 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6671 | fi |
ab87f8c8 JL |
6672 | rm -f conftest* |
6673 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6674 | |
861bb6c1 | 6675 | fi |
ab87f8c8 JL |
6676 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6677 | echo "$ac_t""yes" 1>&6 | |
6678 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6679 | else |
ab87f8c8 | 6680 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6681 | fi |
6682 | ||
ab87f8c8 | 6683 | |
2ce3c6c6 | 6684 | |
ab87f8c8 | 6685 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
81bf3d9e | 6686 | echo "configure:6678: checking for working const" >&5 |
ab87f8c8 JL |
6687 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6689 | else |
ab87f8c8 | 6690 | cat > conftest.$ac_ext <<EOF |
81bf3d9e | 6691 | #line 6683 "configure" |
ab87f8c8 | 6692 | #include "confdefs.h" |
861bb6c1 | 6693 | |
ab87f8c8 JL |
6694 | int main() { |
6695 | ||
6696 | /* Ultrix mips cc rejects this. */ | |
6697 | typedef int charset[2]; const charset x; | |
6698 | /* SunOS 4.1.1 cc rejects this. */ | |
6699 | char const *const *ccp; | |
6700 | char **p; | |
6701 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6702 | struct point {int x, y;}; | |
6703 | static struct point const zero = {0,0}; | |
6704 | /* AIX XL C 1.02.0.0 rejects this. | |
6705 | It does not let you subtract one const X* pointer from another in an arm | |
6706 | of an if-expression whose if-part is not a constant expression */ | |
6707 | const char *g = "string"; | |
6708 | ccp = &g + (g ? g-g : 0); | |
6709 | /* HPUX 7.0 cc rejects these. */ | |
6710 | ++ccp; | |
6711 | p = (char**) ccp; | |
6712 | ccp = (char const *const *) p; | |
6713 | { /* SCO 3.2v4 cc rejects this. */ | |
6714 | char *t; | |
6715 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6716 | ||
6717 | *t++ = 0; | |
6718 | } | |
6719 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6720 | int x[] = {25, 17}; | |
6721 | const int *foo = &x[0]; | |
6722 | ++foo; | |
6723 | } | |
6724 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6725 | typedef const int *iptr; | |
6726 | iptr p = 0; | |
6727 | ++p; | |
6728 | } | |
6729 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6730 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6731 | struct s { int j; const int *ap[3]; }; | |
6732 | struct s *b; b->j = 5; | |
6733 | } | |
6734 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6735 | const int foo = 10; | |
6736 | } | |
6737 | ||
6738 | ; return 0; } | |
6739 | EOF | |
81bf3d9e | 6740 | if { (eval echo configure:6732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6741 | rm -rf conftest* |
6742 | ac_cv_c_const=yes | |
861bb6c1 | 6743 | else |
ab87f8c8 JL |
6744 | echo "configure: failed program was:" >&5 |
6745 | cat conftest.$ac_ext >&5 | |
6746 | rm -rf conftest* | |
6747 | ac_cv_c_const=no | |
6748 | fi | |
6749 | rm -f conftest* | |
861bb6c1 JL |
6750 | fi |
6751 | ||
ab87f8c8 JL |
6752 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6753 | if test $ac_cv_c_const = no; then | |
6754 | cat >> confdefs.h <<\EOF | |
6755 | #define const | |
6756 | EOF | |
6757 | ||
861bb6c1 JL |
6758 | fi |
6759 | ||
ab87f8c8 | 6760 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
81bf3d9e | 6761 | echo "configure:6753: checking for inline" >&5 |
ab87f8c8 JL |
6762 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6764 | else | |
6765 | ac_cv_c_inline=no | |
6766 | for ac_kw in inline __inline__ __inline; do | |
6767 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6768 | #line 6760 "configure" |
ab87f8c8 JL |
6769 | #include "confdefs.h" |
6770 | ||
6771 | int main() { | |
6772 | } $ac_kw foo() { | |
6773 | ; return 0; } | |
6774 | EOF | |
81bf3d9e | 6775 | if { (eval echo configure:6767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6776 | rm -rf conftest* |
6777 | ac_cv_c_inline=$ac_kw; break | |
6778 | else | |
6779 | echo "configure: failed program was:" >&5 | |
6780 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6781 | fi |
ab87f8c8 JL |
6782 | rm -f conftest* |
6783 | done | |
4b95eb49 | 6784 | |
992d1248 | 6785 | fi |
861bb6c1 | 6786 | |
ab87f8c8 JL |
6787 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6788 | case "$ac_cv_c_inline" in | |
6789 | inline | yes) ;; | |
6790 | no) cat >> confdefs.h <<\EOF | |
6791 | #define inline | |
00ccc16d | 6792 | EOF |
ab87f8c8 JL |
6793 | ;; |
6794 | *) cat >> confdefs.h <<EOF | |
6795 | #define inline $ac_cv_c_inline | |
6796 | EOF | |
6797 | ;; | |
6798 | esac | |
6799 | ||
6800 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
81bf3d9e | 6801 | echo "configure:6793: checking for off_t" >&5 |
ab87f8c8 JL |
6802 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6804 | else | |
6805 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6806 | #line 6798 "configure" |
ab87f8c8 JL |
6807 | #include "confdefs.h" |
6808 | #include <sys/types.h> | |
6809 | #if STDC_HEADERS | |
6810 | #include <stdlib.h> | |
6811 | #include <stddef.h> | |
6812 | #endif | |
6813 | EOF | |
6814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6815 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6816 | rm -rf conftest* |
6817 | ac_cv_type_off_t=yes | |
6818 | else | |
6819 | rm -rf conftest* | |
6820 | ac_cv_type_off_t=no | |
6821 | fi | |
6822 | rm -f conftest* | |
6823 | ||
6824 | fi | |
6825 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6826 | if test $ac_cv_type_off_t = no; then | |
6827 | cat >> confdefs.h <<\EOF | |
6828 | #define off_t long | |
6829 | EOF | |
6830 | ||
6831 | fi | |
6832 | ||
6833 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
81bf3d9e | 6834 | echo "configure:6826: checking for size_t" >&5 |
ab87f8c8 JL |
6835 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6837 | else | |
6838 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6839 | #line 6831 "configure" |
ab87f8c8 JL |
6840 | #include "confdefs.h" |
6841 | #include <sys/types.h> | |
6842 | #if STDC_HEADERS | |
6843 | #include <stdlib.h> | |
6844 | #include <stddef.h> | |
6845 | #endif | |
6846 | EOF | |
6847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6848 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6849 | rm -rf conftest* |
6850 | ac_cv_type_size_t=yes | |
6851 | else | |
6852 | rm -rf conftest* | |
6853 | ac_cv_type_size_t=no | |
6854 | fi | |
6855 | rm -f conftest* | |
6856 | ||
6857 | fi | |
6858 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6859 | if test $ac_cv_type_size_t = no; then | |
6860 | cat >> confdefs.h <<\EOF | |
6861 | #define size_t unsigned | |
6862 | EOF | |
6863 | ||
6864 | fi | |
6865 | ||
6866 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6867 | # for constant arguments. Useless! | |
6868 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
81bf3d9e | 6869 | echo "configure:6861: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6870 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6872 | else | |
6873 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6874 | #line 6866 "configure" |
ab87f8c8 JL |
6875 | #include "confdefs.h" |
6876 | #include <alloca.h> | |
6877 | int main() { | |
6878 | char *p = alloca(2 * sizeof(int)); | |
6879 | ; return 0; } | |
6880 | EOF | |
81bf3d9e | 6881 | if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6882 | rm -rf conftest* |
6883 | ac_cv_header_alloca_h=yes | |
6884 | else | |
6885 | echo "configure: failed program was:" >&5 | |
6886 | cat conftest.$ac_ext >&5 | |
6887 | rm -rf conftest* | |
6888 | ac_cv_header_alloca_h=no | |
6889 | fi | |
6890 | rm -f conftest* | |
6891 | fi | |
6892 | ||
6893 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6894 | if test $ac_cv_header_alloca_h = yes; then | |
6895 | cat >> confdefs.h <<\EOF | |
6896 | #define HAVE_ALLOCA_H 1 | |
6897 | EOF | |
6898 | ||
6899 | fi | |
6900 | ||
6901 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
81bf3d9e | 6902 | echo "configure:6894: checking for alloca" >&5 |
ab87f8c8 JL |
6903 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6905 | else | |
6906 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6907 | #line 6899 "configure" |
ab87f8c8 JL |
6908 | #include "confdefs.h" |
6909 | ||
6910 | #ifdef __GNUC__ | |
6911 | # define alloca __builtin_alloca | |
6912 | #else | |
cd9e5e7c MK |
6913 | # ifdef _MSC_VER |
6914 | # include <malloc.h> | |
6915 | # define alloca _alloca | |
ab87f8c8 | 6916 | # else |
cd9e5e7c MK |
6917 | # if HAVE_ALLOCA_H |
6918 | # include <alloca.h> | |
3723cad9 | 6919 | # else |
cd9e5e7c MK |
6920 | # ifdef _AIX |
6921 | #pragma alloca | |
6922 | # else | |
6923 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6924 | char *alloca (); |
cd9e5e7c | 6925 | # endif |
ab87f8c8 JL |
6926 | # endif |
6927 | # endif | |
6928 | # endif | |
6929 | #endif | |
6930 | ||
6931 | int main() { | |
6932 | char *p = (char *) alloca(1); | |
6933 | ; return 0; } | |
6934 | EOF | |
81bf3d9e RH |
6935 | if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6936 | rm -rf conftest* | |
6937 | ac_cv_func_alloca_works=yes | |
ab87f8c8 JL |
6938 | else |
6939 | echo "configure: failed program was:" >&5 | |
6940 | cat conftest.$ac_ext >&5 | |
81bf3d9e RH |
6941 | rm -rf conftest* |
6942 | ac_cv_func_alloca_works=no | |
ab87f8c8 | 6943 | fi |
81bf3d9e | 6944 | rm -f conftest* |
ab87f8c8 JL |
6945 | fi |
6946 | ||
81bf3d9e RH |
6947 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
6948 | if test $ac_cv_func_alloca_works = yes; then | |
6949 | cat >> confdefs.h <<\EOF | |
6950 | #define HAVE_ALLOCA 1 | |
6951 | EOF | |
6952 | ||
ab87f8c8 JL |
6953 | fi |
6954 | ||
81bf3d9e RH |
6955 | if test $ac_cv_func_alloca_works = no; then |
6956 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6957 | # that cause trouble. Some versions do not even contain alloca or | |
6958 | # contain a buggy version. If you still want to use their alloca, | |
6959 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6960 | ALLOCA=alloca.${ac_objext} | |
6961 | cat >> confdefs.h <<\EOF | |
6962 | #define C_ALLOCA 1 | |
ab87f8c8 JL |
6963 | EOF |
6964 | ||
ab87f8c8 | 6965 | |
81bf3d9e RH |
6966 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
6967 | echo "configure:6959: checking whether alloca needs Cray hooks" >&5 | |
6968 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | |
ab87f8c8 JL |
6969 | echo $ac_n "(cached) $ac_c" 1>&6 |
6970 | else | |
6971 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 6972 | #line 6964 "configure" |
ab87f8c8 | 6973 | #include "confdefs.h" |
81bf3d9e RH |
6974 | #if defined(CRAY) && ! defined(CRAY2) |
6975 | webecray | |
6976 | #else | |
6977 | wenotbecray | |
6978 | #endif | |
6979 | ||
ab87f8c8 | 6980 | EOF |
81bf3d9e RH |
6981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6982 | egrep "webecray" >/dev/null 2>&1; then | |
ab87f8c8 | 6983 | rm -rf conftest* |
81bf3d9e | 6984 | ac_cv_os_cray=yes |
ab87f8c8 | 6985 | else |
ab87f8c8 | 6986 | rm -rf conftest* |
81bf3d9e | 6987 | ac_cv_os_cray=no |
ab87f8c8 JL |
6988 | fi |
6989 | rm -f conftest* | |
81bf3d9e | 6990 | |
ab87f8c8 | 6991 | fi |
ab87f8c8 | 6992 | |
81bf3d9e RH |
6993 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
6994 | if test $ac_cv_os_cray = yes; then | |
6995 | for ac_func in _getb67 GETB67 getb67; do | |
6996 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6997 | echo "configure:6989: checking for $ac_func" >&5 | |
ab87f8c8 JL |
6998 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7000 | else | |
7001 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7002 | #line 6994 "configure" |
ab87f8c8 JL |
7003 | #include "confdefs.h" |
7004 | /* System header to define __stub macros and hopefully few prototypes, | |
7005 | which can conflict with char $ac_func(); below. */ | |
7006 | #include <assert.h> | |
7007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7008 | /* We use char because int might match the return type of a gcc2 | |
7009 | builtin and then its argument prototype would still apply. */ | |
7010 | char $ac_func(); | |
7011 | ||
7012 | int main() { | |
7013 | ||
7014 | /* The GNU C library defines this for functions which it implements | |
7015 | to always fail with ENOSYS. Some functions are actually named | |
7016 | something starting with __ and the normal name is an alias. */ | |
7017 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7018 | choke me | |
7019 | #else | |
3ecc3258 | 7020 | $ac_func(); |
ab87f8c8 JL |
7021 | #endif |
7022 | ||
7023 | ; return 0; } | |
7024 | EOF | |
81bf3d9e | 7025 | if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7026 | rm -rf conftest* |
7027 | eval "ac_cv_func_$ac_func=yes" | |
7028 | else | |
7029 | echo "configure: failed program was:" >&5 | |
7030 | cat conftest.$ac_ext >&5 | |
7031 | rm -rf conftest* | |
7032 | eval "ac_cv_func_$ac_func=no" | |
7033 | fi | |
7034 | rm -f conftest* | |
7035 | fi | |
7036 | ||
7037 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7038 | echo "$ac_t""yes" 1>&6 | |
ab87f8c8 | 7039 | cat >> confdefs.h <<EOF |
81bf3d9e | 7040 | #define CRAY_STACKSEG_END $ac_func |
ab87f8c8 | 7041 | EOF |
81bf3d9e RH |
7042 | |
7043 | break | |
ab87f8c8 JL |
7044 | else |
7045 | echo "$ac_t""no" 1>&6 | |
7046 | fi | |
81bf3d9e | 7047 | |
ab87f8c8 | 7048 | done |
81bf3d9e | 7049 | fi |
ab87f8c8 | 7050 | |
81bf3d9e RH |
7051 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
7052 | echo "configure:7044: checking stack direction for C alloca" >&5 | |
7053 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | |
ab87f8c8 JL |
7054 | echo $ac_n "(cached) $ac_c" 1>&6 |
7055 | else | |
7056 | if test "$cross_compiling" = yes; then | |
81bf3d9e | 7057 | ac_cv_c_stack_direction=0 |
ab87f8c8 JL |
7058 | else |
7059 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7060 | #line 7052 "configure" |
ab87f8c8 | 7061 | #include "confdefs.h" |
81bf3d9e | 7062 | find_stack_direction () |
ab87f8c8 | 7063 | { |
81bf3d9e RH |
7064 | static char *addr = 0; |
7065 | auto char dummy; | |
7066 | if (addr == 0) | |
7067 | { | |
7068 | addr = &dummy; | |
7069 | return find_stack_direction (); | |
7070 | } | |
7071 | else | |
7072 | return (&dummy > addr) ? 1 : -1; | |
7073 | } | |
7074 | main () | |
7075 | { | |
7076 | exit (find_stack_direction() < 0); | |
ab87f8c8 | 7077 | } |
ab87f8c8 | 7078 | EOF |
81bf3d9e | 7079 | if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 | 7080 | then |
81bf3d9e | 7081 | ac_cv_c_stack_direction=1 |
ab87f8c8 JL |
7082 | else |
7083 | echo "configure: failed program was:" >&5 | |
7084 | cat conftest.$ac_ext >&5 | |
7085 | rm -fr conftest* | |
81bf3d9e | 7086 | ac_cv_c_stack_direction=-1 |
ab87f8c8 JL |
7087 | fi |
7088 | rm -fr conftest* | |
7089 | fi | |
7090 | ||
7091 | fi | |
7092 | ||
81bf3d9e RH |
7093 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
7094 | cat >> confdefs.h <<EOF | |
7095 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
ab87f8c8 JL |
7096 | EOF |
7097 | ||
7098 | fi | |
7099 | ||
7100 | ||
7101 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
7102 | unistd.h sys/param.h | |
7103 | do | |
7104 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7105 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
81bf3d9e | 7106 | echo "configure:7098: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
7107 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7109 | else | |
7110 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7111 | #line 7103 "configure" |
ab87f8c8 JL |
7112 | #include "confdefs.h" |
7113 | #include <$ac_hdr> | |
7114 | EOF | |
7115 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 7116 | { (eval echo configure:7108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7117 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7118 | if test -z "$ac_err"; then |
7119 | rm -rf conftest* | |
7120 | eval "ac_cv_header_$ac_safe=yes" | |
7121 | else | |
7122 | echo "$ac_err" >&5 | |
7123 | echo "configure: failed program was:" >&5 | |
7124 | cat conftest.$ac_ext >&5 | |
7125 | rm -rf conftest* | |
7126 | eval "ac_cv_header_$ac_safe=no" | |
7127 | fi | |
7128 | rm -f conftest* | |
7129 | fi | |
7130 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7131 | echo "$ac_t""yes" 1>&6 | |
7132 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7133 | cat >> confdefs.h <<EOF | |
7134 | #define $ac_tr_hdr 1 | |
7135 | EOF | |
7136 | ||
7137 | else | |
7138 | echo "$ac_t""no" 1>&6 | |
7139 | fi | |
7140 | done | |
7141 | ||
7142 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
7143 | strdup __argz_count __argz_stringify __argz_next | |
7144 | do | |
7145 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
81bf3d9e | 7146 | echo "configure:7138: checking for $ac_func" >&5 |
ab87f8c8 JL |
7147 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7149 | else | |
7150 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7151 | #line 7143 "configure" |
ab87f8c8 JL |
7152 | #include "confdefs.h" |
7153 | /* System header to define __stub macros and hopefully few prototypes, | |
7154 | which can conflict with char $ac_func(); below. */ | |
7155 | #include <assert.h> | |
7156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7157 | /* We use char because int might match the return type of a gcc2 | |
7158 | builtin and then its argument prototype would still apply. */ | |
7159 | char $ac_func(); | |
7160 | ||
7161 | int main() { | |
7162 | ||
7163 | /* The GNU C library defines this for functions which it implements | |
7164 | to always fail with ENOSYS. Some functions are actually named | |
7165 | something starting with __ and the normal name is an alias. */ | |
7166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7167 | choke me | |
7168 | #else | |
3ecc3258 | 7169 | $ac_func(); |
ab87f8c8 JL |
7170 | #endif |
7171 | ||
7172 | ; return 0; } | |
7173 | EOF | |
81bf3d9e | 7174 | if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7175 | rm -rf conftest* |
7176 | eval "ac_cv_func_$ac_func=yes" | |
7177 | else | |
7178 | echo "configure: failed program was:" >&5 | |
7179 | cat conftest.$ac_ext >&5 | |
7180 | rm -rf conftest* | |
7181 | eval "ac_cv_func_$ac_func=no" | |
7182 | fi | |
7183 | rm -f conftest* | |
7184 | fi | |
7185 | ||
7186 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7187 | echo "$ac_t""yes" 1>&6 | |
7188 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7189 | cat >> confdefs.h <<EOF | |
7190 | #define $ac_tr_func 1 | |
7191 | EOF | |
7192 | ||
7193 | else | |
7194 | echo "$ac_t""no" 1>&6 | |
7195 | fi | |
7196 | done | |
7197 | ||
7198 | ||
7199 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
7200 | for ac_func in stpcpy | |
7201 | do | |
7202 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
81bf3d9e | 7203 | echo "configure:7195: checking for $ac_func" >&5 |
ab87f8c8 JL |
7204 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7206 | else | |
7207 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7208 | #line 7200 "configure" |
ab87f8c8 JL |
7209 | #include "confdefs.h" |
7210 | /* System header to define __stub macros and hopefully few prototypes, | |
7211 | which can conflict with char $ac_func(); below. */ | |
7212 | #include <assert.h> | |
7213 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7214 | /* We use char because int might match the return type of a gcc2 | |
7215 | builtin and then its argument prototype would still apply. */ | |
7216 | char $ac_func(); | |
7217 | ||
7218 | int main() { | |
7219 | ||
7220 | /* The GNU C library defines this for functions which it implements | |
7221 | to always fail with ENOSYS. Some functions are actually named | |
7222 | something starting with __ and the normal name is an alias. */ | |
7223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7224 | choke me | |
7225 | #else | |
3ecc3258 | 7226 | $ac_func(); |
ab87f8c8 JL |
7227 | #endif |
7228 | ||
7229 | ; return 0; } | |
7230 | EOF | |
81bf3d9e | 7231 | if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7232 | rm -rf conftest* |
7233 | eval "ac_cv_func_$ac_func=yes" | |
7234 | else | |
7235 | echo "configure: failed program was:" >&5 | |
7236 | cat conftest.$ac_ext >&5 | |
7237 | rm -rf conftest* | |
7238 | eval "ac_cv_func_$ac_func=no" | |
7239 | fi | |
7240 | rm -f conftest* | |
7241 | fi | |
7242 | ||
7243 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7244 | echo "$ac_t""yes" 1>&6 | |
7245 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7246 | cat >> confdefs.h <<EOF | |
7247 | #define $ac_tr_func 1 | |
7248 | EOF | |
7249 | ||
7250 | else | |
7251 | echo "$ac_t""no" 1>&6 | |
7252 | fi | |
7253 | done | |
7254 | ||
7255 | fi | |
7256 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
7257 | cat >> confdefs.h <<\EOF | |
7258 | #define HAVE_STPCPY 1 | |
7259 | EOF | |
7260 | ||
7261 | fi | |
7262 | ||
7263 | if test $ac_cv_header_locale_h = yes; then | |
7264 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
81bf3d9e | 7265 | echo "configure:7257: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
7266 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
7267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7268 | else | |
7269 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7270 | #line 7262 "configure" |
ab87f8c8 JL |
7271 | #include "confdefs.h" |
7272 | #include <locale.h> | |
7273 | int main() { | |
7274 | return LC_MESSAGES | |
7275 | ; return 0; } | |
7276 | EOF | |
81bf3d9e | 7277 | if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7278 | rm -rf conftest* |
7279 | am_cv_val_LC_MESSAGES=yes | |
7280 | else | |
7281 | echo "configure: failed program was:" >&5 | |
7282 | cat conftest.$ac_ext >&5 | |
7283 | rm -rf conftest* | |
7284 | am_cv_val_LC_MESSAGES=no | |
7285 | fi | |
7286 | rm -f conftest* | |
7287 | fi | |
7288 | ||
7289 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
7290 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7291 | cat >> confdefs.h <<\EOF | |
7292 | #define HAVE_LC_MESSAGES 1 | |
7293 | EOF | |
7294 | ||
7295 | fi | |
7296 | fi | |
7297 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
81bf3d9e | 7298 | echo "configure:7290: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
7299 | # Check whether --enable-nls or --disable-nls was given. |
7300 | if test "${enable_nls+set}" = set; then | |
7301 | enableval="$enable_nls" | |
7302 | USE_NLS=$enableval | |
7303 | else | |
7304 | USE_NLS=yes | |
7305 | fi | |
7306 | ||
7307 | echo "$ac_t""$USE_NLS" 1>&6 | |
7308 | ||
7309 | ||
7310 | USE_INCLUDED_LIBINTL=no | |
7311 | ||
7312 | if test "$USE_NLS" = "yes"; then | |
7313 | cat >> confdefs.h <<\EOF | |
7314 | #define ENABLE_NLS 1 | |
7315 | EOF | |
7316 | ||
7317 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
81bf3d9e | 7318 | echo "configure:7310: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
7319 | # Check whether --with-included-gettext or --without-included-gettext was given. |
7320 | if test "${with_included_gettext+set}" = set; then | |
7321 | withval="$with_included_gettext" | |
7322 | nls_cv_force_use_gnu_gettext=$withval | |
7323 | else | |
7324 | nls_cv_force_use_gnu_gettext=no | |
7325 | fi | |
7326 | ||
7327 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
7328 | ||
7329 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7330 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7331 | nls_cv_header_intl= | |
7332 | nls_cv_header_libgt= | |
7333 | CATOBJEXT=NONE | |
7334 | ||
7335 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7336 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
81bf3d9e | 7337 | echo "configure:7329: checking for libintl.h" >&5 |
ab87f8c8 JL |
7338 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7340 | else | |
7341 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7342 | #line 7334 "configure" |
ab87f8c8 JL |
7343 | #include "confdefs.h" |
7344 | #include <libintl.h> | |
7345 | EOF | |
7346 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 7347 | { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7348 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7349 | if test -z "$ac_err"; then |
7350 | rm -rf conftest* | |
7351 | eval "ac_cv_header_$ac_safe=yes" | |
7352 | else | |
7353 | echo "$ac_err" >&5 | |
7354 | echo "configure: failed program was:" >&5 | |
7355 | cat conftest.$ac_ext >&5 | |
7356 | rm -rf conftest* | |
7357 | eval "ac_cv_header_$ac_safe=no" | |
7358 | fi | |
7359 | rm -f conftest* | |
7360 | fi | |
7361 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7362 | echo "$ac_t""yes" 1>&6 | |
7363 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
81bf3d9e | 7364 | echo "configure:7356: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7365 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7367 | else | |
7368 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7369 | #line 7361 "configure" |
ab87f8c8 JL |
7370 | #include "confdefs.h" |
7371 | #include <libintl.h> | |
7372 | int main() { | |
7373 | return (int) gettext ("") | |
7374 | ; return 0; } | |
7375 | EOF | |
81bf3d9e | 7376 | if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7377 | rm -rf conftest* |
7378 | gt_cv_func_gettext_libc=yes | |
7379 | else | |
7380 | echo "configure: failed program was:" >&5 | |
7381 | cat conftest.$ac_ext >&5 | |
7382 | rm -rf conftest* | |
7383 | gt_cv_func_gettext_libc=no | |
7384 | fi | |
7385 | rm -f conftest* | |
7386 | fi | |
7387 | ||
7388 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7389 | ||
7390 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7391 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
81bf3d9e | 7392 | echo "configure:7384: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7393 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7394 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7396 | else | |
7397 | ac_save_LIBS="$LIBS" | |
7398 | LIBS="-lintl $LIBS" | |
7399 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7400 | #line 7392 "configure" |
ab87f8c8 JL |
7401 | #include "confdefs.h" |
7402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7403 | /* We use char because int might match the return type of a gcc2 | |
7404 | builtin and then its argument prototype would still apply. */ | |
7405 | char bindtextdomain(); | |
7406 | ||
7407 | int main() { | |
7408 | bindtextdomain() | |
7409 | ; return 0; } | |
7410 | EOF | |
81bf3d9e | 7411 | if { (eval echo configure:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7412 | rm -rf conftest* |
7413 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7414 | else | |
7415 | echo "configure: failed program was:" >&5 | |
7416 | cat conftest.$ac_ext >&5 | |
7417 | rm -rf conftest* | |
7418 | eval "ac_cv_lib_$ac_lib_var=no" | |
7419 | fi | |
7420 | rm -f conftest* | |
7421 | LIBS="$ac_save_LIBS" | |
7422 | ||
7423 | fi | |
7424 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7425 | echo "$ac_t""yes" 1>&6 | |
7426 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
81bf3d9e | 7427 | echo "configure:7419: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7428 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7430 | else | |
7431 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
81bf3d9e | 7432 | echo "configure:7424: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7433 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7434 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7436 | else | |
7437 | ac_save_LIBS="$LIBS" | |
7438 | LIBS="-lintl $LIBS" | |
7439 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7440 | #line 7432 "configure" |
ab87f8c8 JL |
7441 | #include "confdefs.h" |
7442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7443 | /* We use char because int might match the return type of a gcc2 | |
7444 | builtin and then its argument prototype would still apply. */ | |
7445 | char gettext(); | |
7446 | ||
7447 | int main() { | |
7448 | gettext() | |
7449 | ; return 0; } | |
7450 | EOF | |
81bf3d9e | 7451 | if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7452 | rm -rf conftest* |
7453 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7454 | else | |
7455 | echo "configure: failed program was:" >&5 | |
7456 | cat conftest.$ac_ext >&5 | |
7457 | rm -rf conftest* | |
7458 | eval "ac_cv_lib_$ac_lib_var=no" | |
7459 | fi | |
7460 | rm -f conftest* | |
7461 | LIBS="$ac_save_LIBS" | |
7462 | ||
7463 | fi | |
7464 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7465 | echo "$ac_t""yes" 1>&6 | |
7466 | gt_cv_func_gettext_libintl=yes | |
7467 | else | |
7468 | echo "$ac_t""no" 1>&6 | |
7469 | gt_cv_func_gettext_libintl=no | |
7470 | fi | |
7471 | ||
7472 | fi | |
7473 | ||
7474 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7475 | else | |
7476 | echo "$ac_t""no" 1>&6 | |
7477 | fi | |
7478 | ||
7479 | fi | |
7480 | ||
7481 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7482 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7483 | cat >> confdefs.h <<\EOF | |
7484 | #define HAVE_GETTEXT 1 | |
7485 | EOF | |
7486 | ||
7487 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7488 | set dummy msgfmt; ac_word=$2 | |
7489 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7490 | echo "configure:7482: checking for $ac_word" >&5 |
ab87f8c8 JL |
7491 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7493 | else | |
7494 | case "$MSGFMT" in | |
7495 | /*) | |
7496 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7497 | ;; | |
7498 | *) | |
7499 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7500 | for ac_dir in $PATH; do | |
7501 | test -z "$ac_dir" && ac_dir=. | |
7502 | if test -f $ac_dir/$ac_word; then | |
7503 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7504 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7505 | break | |
7506 | fi | |
7507 | fi | |
7508 | done | |
7509 | IFS="$ac_save_ifs" | |
7510 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7511 | ;; | |
7512 | esac | |
7513 | fi | |
7514 | MSGFMT="$ac_cv_path_MSGFMT" | |
7515 | if test -n "$MSGFMT"; then | |
7516 | echo "$ac_t""$MSGFMT" 1>&6 | |
7517 | else | |
7518 | echo "$ac_t""no" 1>&6 | |
7519 | fi | |
7520 | if test "$MSGFMT" != "no"; then | |
7521 | for ac_func in dcgettext | |
7522 | do | |
7523 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
81bf3d9e | 7524 | echo "configure:7516: checking for $ac_func" >&5 |
ab87f8c8 JL |
7525 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7527 | else | |
7528 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7529 | #line 7521 "configure" |
ab87f8c8 JL |
7530 | #include "confdefs.h" |
7531 | /* System header to define __stub macros and hopefully few prototypes, | |
7532 | which can conflict with char $ac_func(); below. */ | |
7533 | #include <assert.h> | |
7534 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7535 | /* We use char because int might match the return type of a gcc2 | |
7536 | builtin and then its argument prototype would still apply. */ | |
7537 | char $ac_func(); | |
7538 | ||
7539 | int main() { | |
7540 | ||
7541 | /* The GNU C library defines this for functions which it implements | |
7542 | to always fail with ENOSYS. Some functions are actually named | |
7543 | something starting with __ and the normal name is an alias. */ | |
7544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7545 | choke me | |
7546 | #else | |
3ecc3258 | 7547 | $ac_func(); |
ab87f8c8 JL |
7548 | #endif |
7549 | ||
7550 | ; return 0; } | |
7551 | EOF | |
81bf3d9e | 7552 | if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7553 | rm -rf conftest* |
7554 | eval "ac_cv_func_$ac_func=yes" | |
7555 | else | |
7556 | echo "configure: failed program was:" >&5 | |
7557 | cat conftest.$ac_ext >&5 | |
7558 | rm -rf conftest* | |
7559 | eval "ac_cv_func_$ac_func=no" | |
7560 | fi | |
7561 | rm -f conftest* | |
7562 | fi | |
7563 | ||
7564 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7565 | echo "$ac_t""yes" 1>&6 | |
7566 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7567 | cat >> confdefs.h <<EOF | |
7568 | #define $ac_tr_func 1 | |
7569 | EOF | |
7570 | ||
7571 | else | |
7572 | echo "$ac_t""no" 1>&6 | |
7573 | fi | |
7574 | done | |
7575 | ||
7576 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7577 | set dummy gmsgfmt; ac_word=$2 | |
7578 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7579 | echo "configure:7571: checking for $ac_word" >&5 |
ab87f8c8 JL |
7580 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7582 | else | |
7583 | case "$GMSGFMT" in | |
7584 | /*) | |
7585 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7586 | ;; | |
7587 | ?:/*) | |
7588 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7589 | ;; | |
7590 | *) | |
cd9e5e7c | 7591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7592 | ac_dummy="$PATH" |
7593 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7594 | test -z "$ac_dir" && ac_dir=. |
7595 | if test -f $ac_dir/$ac_word; then | |
7596 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7597 | break | |
7598 | fi | |
7599 | done | |
7600 | IFS="$ac_save_ifs" | |
7601 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7602 | ;; | |
7603 | esac | |
7604 | fi | |
7605 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7606 | if test -n "$GMSGFMT"; then | |
7607 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7608 | else | |
7609 | echo "$ac_t""no" 1>&6 | |
7610 | fi | |
7611 | ||
7612 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7613 | set dummy xgettext; ac_word=$2 | |
7614 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7615 | echo "configure:7607: checking for $ac_word" >&5 |
ab87f8c8 JL |
7616 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7618 | else | |
7619 | case "$XGETTEXT" in | |
7620 | /*) | |
7621 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7622 | ;; | |
7623 | *) | |
7624 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7625 | for ac_dir in $PATH; do | |
7626 | test -z "$ac_dir" && ac_dir=. | |
7627 | if test -f $ac_dir/$ac_word; then | |
7628 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7629 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7630 | break | |
7631 | fi | |
7632 | fi | |
7633 | done | |
7634 | IFS="$ac_save_ifs" | |
7635 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7636 | ;; | |
7637 | esac | |
7638 | fi | |
7639 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7640 | if test -n "$XGETTEXT"; then | |
7641 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7642 | else | |
7643 | echo "$ac_t""no" 1>&6 | |
7644 | fi | |
7645 | ||
7646 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7647 | #line 7639 "configure" |
ab87f8c8 JL |
7648 | #include "confdefs.h" |
7649 | ||
7650 | int main() { | |
7651 | extern int _nl_msg_cat_cntr; | |
7652 | return _nl_msg_cat_cntr | |
7653 | ; return 0; } | |
7654 | EOF | |
81bf3d9e | 7655 | if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7656 | rm -rf conftest* |
7657 | CATOBJEXT=.gmo | |
7658 | DATADIRNAME=share | |
7659 | else | |
7660 | echo "configure: failed program was:" >&5 | |
7661 | cat conftest.$ac_ext >&5 | |
7662 | rm -rf conftest* | |
7663 | CATOBJEXT=.mo | |
7664 | DATADIRNAME=lib | |
7665 | fi | |
7666 | rm -f conftest* | |
7667 | INSTOBJEXT=.mo | |
7668 | fi | |
7669 | fi | |
7670 | ||
7671 | else | |
7672 | echo "$ac_t""no" 1>&6 | |
7673 | fi | |
7674 | ||
7675 | ||
7676 | if test "$CATOBJEXT" = "NONE"; then | |
7677 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
81bf3d9e | 7678 | echo "configure:7670: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7679 | # Check whether --with-catgets or --without-catgets was given. |
7680 | if test "${with_catgets+set}" = set; then | |
7681 | withval="$with_catgets" | |
7682 | nls_cv_use_catgets=$withval | |
7683 | else | |
7684 | nls_cv_use_catgets=no | |
7685 | fi | |
7686 | ||
7687 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7688 | ||
7689 | if test "$nls_cv_use_catgets" = "yes"; then | |
7690 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
81bf3d9e | 7691 | echo "configure:7683: checking for main in -li" >&5 |
ab87f8c8 JL |
7692 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7693 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7695 | else | |
7696 | ac_save_LIBS="$LIBS" | |
7697 | LIBS="-li $LIBS" | |
7698 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7699 | #line 7691 "configure" |
ab87f8c8 JL |
7700 | #include "confdefs.h" |
7701 | ||
7702 | int main() { | |
7703 | main() | |
7704 | ; return 0; } | |
7705 | EOF | |
81bf3d9e | 7706 | if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7707 | rm -rf conftest* |
7708 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7709 | else | |
7710 | echo "configure: failed program was:" >&5 | |
7711 | cat conftest.$ac_ext >&5 | |
7712 | rm -rf conftest* | |
7713 | eval "ac_cv_lib_$ac_lib_var=no" | |
7714 | fi | |
7715 | rm -f conftest* | |
7716 | LIBS="$ac_save_LIBS" | |
7717 | ||
7718 | fi | |
7719 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7720 | echo "$ac_t""yes" 1>&6 | |
7721 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7722 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7723 | cat >> confdefs.h <<EOF | |
7724 | #define $ac_tr_lib 1 | |
7725 | EOF | |
7726 | ||
7727 | LIBS="-li $LIBS" | |
7728 | ||
7729 | else | |
7730 | echo "$ac_t""no" 1>&6 | |
7731 | fi | |
7732 | ||
7733 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
81bf3d9e | 7734 | echo "configure:7726: checking for catgets" >&5 |
ab87f8c8 JL |
7735 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7737 | else | |
7738 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 7739 | #line 7731 "configure" |
ab87f8c8 JL |
7740 | #include "confdefs.h" |
7741 | /* System header to define __stub macros and hopefully few prototypes, | |
7742 | which can conflict with char catgets(); below. */ | |
7743 | #include <assert.h> | |
7744 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7745 | /* We use char because int might match the return type of a gcc2 | |
7746 | builtin and then its argument prototype would still apply. */ | |
7747 | char catgets(); | |
7748 | ||
7749 | int main() { | |
7750 | ||
7751 | /* The GNU C library defines this for functions which it implements | |
7752 | to always fail with ENOSYS. Some functions are actually named | |
7753 | something starting with __ and the normal name is an alias. */ | |
7754 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7755 | choke me | |
7756 | #else | |
3ecc3258 | 7757 | catgets(); |
ab87f8c8 JL |
7758 | #endif |
7759 | ||
7760 | ; return 0; } | |
7761 | EOF | |
81bf3d9e | 7762 | if { (eval echo configure:7754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7763 | rm -rf conftest* |
7764 | eval "ac_cv_func_catgets=yes" | |
7765 | else | |
7766 | echo "configure: failed program was:" >&5 | |
7767 | cat conftest.$ac_ext >&5 | |
7768 | rm -rf conftest* | |
7769 | eval "ac_cv_func_catgets=no" | |
7770 | fi | |
7771 | rm -f conftest* | |
7772 | fi | |
7773 | ||
7774 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7775 | echo "$ac_t""yes" 1>&6 | |
7776 | cat >> confdefs.h <<\EOF | |
7777 | #define HAVE_CATGETS 1 | |
7778 | EOF | |
7779 | ||
7780 | INTLOBJS="\$(CATOBJS)" | |
7781 | # Extract the first word of "gencat", so it can be a program name with args. | |
7782 | set dummy gencat; ac_word=$2 | |
7783 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7784 | echo "configure:7776: checking for $ac_word" >&5 |
ab87f8c8 JL |
7785 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7787 | else | |
7788 | case "$GENCAT" in | |
7789 | /*) | |
7790 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7791 | ;; | |
7792 | ?:/*) | |
7793 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7794 | ;; | |
7795 | *) | |
cd9e5e7c | 7796 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7797 | ac_dummy="$PATH" |
7798 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7799 | test -z "$ac_dir" && ac_dir=. |
7800 | if test -f $ac_dir/$ac_word; then | |
7801 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7802 | break | |
7803 | fi | |
7804 | done | |
7805 | IFS="$ac_save_ifs" | |
7806 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7807 | ;; | |
7808 | esac | |
7809 | fi | |
7810 | GENCAT="$ac_cv_path_GENCAT" | |
7811 | if test -n "$GENCAT"; then | |
7812 | echo "$ac_t""$GENCAT" 1>&6 | |
7813 | else | |
7814 | echo "$ac_t""no" 1>&6 | |
7815 | fi | |
7816 | if test "$GENCAT" != "no"; then | |
7817 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7818 | set dummy gmsgfmt; ac_word=$2 | |
7819 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7820 | echo "configure:7812: checking for $ac_word" >&5 |
ab87f8c8 JL |
7821 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7823 | else | |
7824 | case "$GMSGFMT" in | |
7825 | /*) | |
7826 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7827 | ;; | |
7828 | ?:/*) | |
7829 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7830 | ;; | |
7831 | *) | |
cd9e5e7c | 7832 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7833 | ac_dummy="$PATH" |
7834 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7835 | test -z "$ac_dir" && ac_dir=. |
7836 | if test -f $ac_dir/$ac_word; then | |
7837 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7838 | break | |
7839 | fi | |
7840 | done | |
7841 | IFS="$ac_save_ifs" | |
7842 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7843 | ;; | |
7844 | esac | |
7845 | fi | |
7846 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7847 | if test -n "$GMSGFMT"; then | |
7848 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7849 | else | |
7850 | echo "$ac_t""no" 1>&6 | |
7851 | fi | |
7852 | ||
7853 | if test "$GMSGFMT" = "no"; then | |
7854 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7855 | set dummy msgfmt; ac_word=$2 | |
7856 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7857 | echo "configure:7849: checking for $ac_word" >&5 |
ab87f8c8 JL |
7858 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7860 | else | |
7861 | case "$GMSGFMT" in | |
7862 | /*) | |
7863 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7864 | ;; | |
7865 | *) | |
7866 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7867 | for ac_dir in $PATH; do | |
7868 | test -z "$ac_dir" && ac_dir=. | |
7869 | if test -f $ac_dir/$ac_word; then | |
7870 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7871 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7872 | break | |
7873 | fi | |
7874 | fi | |
7875 | done | |
7876 | IFS="$ac_save_ifs" | |
7877 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
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 | fi | |
7889 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7890 | set dummy xgettext; ac_word=$2 | |
7891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7892 | echo "configure:7884: checking for $ac_word" >&5 |
ab87f8c8 JL |
7893 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7895 | else | |
7896 | case "$XGETTEXT" in | |
7897 | /*) | |
7898 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7899 | ;; | |
7900 | *) | |
7901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7902 | for ac_dir in $PATH; do | |
7903 | test -z "$ac_dir" && ac_dir=. | |
7904 | if test -f $ac_dir/$ac_word; then | |
7905 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7906 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7907 | break | |
7908 | fi | |
7909 | fi | |
7910 | done | |
7911 | IFS="$ac_save_ifs" | |
7912 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7913 | ;; | |
7914 | esac | |
7915 | fi | |
7916 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7917 | if test -n "$XGETTEXT"; then | |
7918 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7919 | else | |
7920 | echo "$ac_t""no" 1>&6 | |
7921 | fi | |
7922 | ||
7923 | USE_INCLUDED_LIBINTL=yes | |
7924 | CATOBJEXT=.cat | |
7925 | INSTOBJEXT=.cat | |
7926 | DATADIRNAME=lib | |
7927 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7928 | INTLLIBS=$INTLDEPS | |
7929 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7930 | nls_cv_header_intl=intl/libintl.h | |
7931 | nls_cv_header_libgt=intl/libgettext.h | |
7932 | fi | |
7933 | else | |
7934 | echo "$ac_t""no" 1>&6 | |
7935 | fi | |
7936 | ||
7937 | fi | |
7938 | fi | |
7939 | ||
7940 | if test "$CATOBJEXT" = "NONE"; then | |
7941 | nls_cv_use_gnu_gettext=yes | |
7942 | fi | |
7943 | fi | |
7944 | ||
7945 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7946 | INTLOBJS="\$(GETTOBJS)" | |
7947 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7948 | set dummy msgfmt; ac_word=$2 | |
7949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7950 | echo "configure:7942: checking for $ac_word" >&5 |
ab87f8c8 JL |
7951 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7953 | else | |
7954 | case "$MSGFMT" in | |
7955 | /*) | |
7956 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7957 | ;; | |
7958 | *) | |
7959 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7960 | for ac_dir in $PATH; do | |
7961 | test -z "$ac_dir" && ac_dir=. | |
7962 | if test -f $ac_dir/$ac_word; then | |
7963 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7964 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7965 | break | |
7966 | fi | |
7967 | fi | |
7968 | done | |
7969 | IFS="$ac_save_ifs" | |
7970 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7971 | ;; | |
7972 | esac | |
7973 | fi | |
7974 | MSGFMT="$ac_cv_path_MSGFMT" | |
7975 | if test -n "$MSGFMT"; then | |
7976 | echo "$ac_t""$MSGFMT" 1>&6 | |
7977 | else | |
7978 | echo "$ac_t""no" 1>&6 | |
7979 | fi | |
7980 | ||
7981 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7982 | set dummy gmsgfmt; ac_word=$2 | |
7983 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 7984 | echo "configure:7976: checking for $ac_word" >&5 |
ab87f8c8 JL |
7985 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7987 | else | |
7988 | case "$GMSGFMT" in | |
7989 | /*) | |
7990 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7991 | ;; | |
7992 | ?:/*) | |
7993 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7994 | ;; | |
7995 | *) | |
cd9e5e7c | 7996 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7997 | ac_dummy="$PATH" |
7998 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7999 | test -z "$ac_dir" && ac_dir=. |
8000 | if test -f $ac_dir/$ac_word; then | |
8001 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8002 | break | |
8003 | fi | |
8004 | done | |
8005 | IFS="$ac_save_ifs" | |
8006 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
8007 | ;; | |
8008 | esac | |
8009 | fi | |
8010 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8011 | if test -n "$GMSGFMT"; then | |
8012 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8013 | else | |
8014 | echo "$ac_t""no" 1>&6 | |
8015 | fi | |
8016 | ||
8017 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8018 | set dummy xgettext; ac_word=$2 | |
8019 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
81bf3d9e | 8020 | echo "configure:8012: checking for $ac_word" >&5 |
ab87f8c8 JL |
8021 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8023 | else | |
8024 | case "$XGETTEXT" in | |
8025 | /*) | |
8026 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8027 | ;; | |
8028 | *) | |
8029 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8030 | for ac_dir in $PATH; do | |
8031 | test -z "$ac_dir" && ac_dir=. | |
8032 | if test -f $ac_dir/$ac_word; then | |
8033 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8034 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8035 | break | |
8036 | fi | |
8037 | fi | |
8038 | done | |
8039 | IFS="$ac_save_ifs" | |
8040 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8041 | ;; | |
8042 | esac | |
8043 | fi | |
8044 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8045 | if test -n "$XGETTEXT"; then | |
8046 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8047 | else | |
8048 | echo "$ac_t""no" 1>&6 | |
8049 | fi | |
8050 | ||
8051 | ||
8052 | USE_INCLUDED_LIBINTL=yes | |
8053 | CATOBJEXT=.gmo | |
8054 | INSTOBJEXT=.mo | |
8055 | DATADIRNAME=share | |
8056 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8057 | INTLLIBS=$INTLDEPS | |
8058 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8059 | nls_cv_header_intl=intl/libintl.h | |
8060 | nls_cv_header_libgt=intl/libgettext.h | |
8061 | fi | |
8062 | ||
8063 | if test "$XGETTEXT" != ":"; then | |
8064 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8065 | : ; | |
8066 | else | |
8067 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
8068 | XGETTEXT=":" | |
8069 | fi | |
8070 | fi | |
8071 | ||
8072 | # We need to process the po/ directory. | |
8073 | POSUB=po | |
8074 | else | |
8075 | DATADIRNAME=share | |
8076 | nls_cv_header_intl=intl/libintl.h | |
8077 | nls_cv_header_libgt=intl/libgettext.h | |
8078 | fi | |
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8084 | # because some of the sources are only built for this goal. | |
8085 | if test "$PACKAGE" = gettext; then | |
8086 | USE_NLS=yes | |
8087 | USE_INCLUDED_LIBINTL=yes | |
8088 | fi | |
8089 | ||
8090 | for lang in $ALL_LINGUAS; do | |
8091 | GMOFILES="$GMOFILES $lang.gmo" | |
8092 | POFILES="$POFILES $lang.po" | |
8093 | done | |
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | if test "x$CATOBJEXT" != "x"; then | |
8109 | if test "x$ALL_LINGUAS" = "x"; then | |
8110 | LINGUAS= | |
8111 | else | |
8112 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
81bf3d9e | 8113 | echo "configure:8105: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
8114 | NEW_LINGUAS= |
8115 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8116 | case "$ALL_LINGUAS" in | |
8117 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8118 | esac | |
8119 | done | |
8120 | LINGUAS=$NEW_LINGUAS | |
8121 | echo "$ac_t""$LINGUAS" 1>&6 | |
8122 | fi | |
8123 | ||
8124 | if test -n "$LINGUAS"; then | |
8125 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8126 | fi | |
8127 | fi | |
8128 | ||
8129 | if test $ac_cv_header_locale_h = yes; then | |
8130 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8131 | else | |
8132 | INCLUDE_LOCALE_H="\ | |
8133 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8134 | fi | |
8135 | ||
8136 | ||
8137 | test -d intl || mkdir intl | |
8138 | if test "$CATOBJEXT" = ".cat"; then | |
8139 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
8140 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
81bf3d9e | 8141 | echo "configure:8133: checking for linux/version.h" >&5 |
ab87f8c8 JL |
8142 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8144 | else | |
8145 | cat > conftest.$ac_ext <<EOF | |
81bf3d9e | 8146 | #line 8138 "configure" |
ab87f8c8 JL |
8147 | #include "confdefs.h" |
8148 | #include <linux/version.h> | |
8149 | EOF | |
8150 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81bf3d9e | 8151 | { (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 8152 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
8153 | if test -z "$ac_err"; then |
8154 | rm -rf conftest* | |
8155 | eval "ac_cv_header_$ac_safe=yes" | |
8156 | else | |
8157 | echo "$ac_err" >&5 | |
8158 | echo "configure: failed program was:" >&5 | |
8159 | cat conftest.$ac_ext >&5 | |
8160 | rm -rf conftest* | |
8161 | eval "ac_cv_header_$ac_safe=no" | |
8162 | fi | |
8163 | rm -f conftest* | |
8164 | fi | |
8165 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8166 | echo "$ac_t""yes" 1>&6 | |
8167 | msgformat=linux | |
8168 | else | |
8169 | echo "$ac_t""no" 1>&6 | |
8170 | msgformat=xopen | |
8171 | fi | |
8172 | ||
8173 | ||
8174 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
8175 | fi | |
8176 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8177 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
8178 | ||
8179 | if test "$PACKAGE" = "gettext"; then | |
8180 | GT_NO="#NO#" | |
8181 | GT_YES= | |
8182 | else | |
8183 | GT_NO= | |
8184 | GT_YES="#YES#" | |
8185 | fi | |
8186 | ||
8187 | ||
8188 | ||
8189 | MKINSTALLDIRS= | |
8190 | if test -n "$ac_aux_dir"; then | |
8191 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
8192 | fi | |
8193 | if test -z "$MKINSTALLDIRS"; then | |
8194 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | l= | |
8199 | ||
8200 | ||
8201 | test -d po || mkdir po | |
8202 | if test "x$srcdir" != "x."; then | |
8203 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8204 | posrcprefix="$srcdir/" | |
8205 | else | |
8206 | posrcprefix="../$srcdir/" | |
8207 | fi | |
8208 | else | |
8209 | posrcprefix="../" | |
8210 | fi | |
8211 | rm -f po/POTFILES | |
8212 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8213 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8214 | ||
8215 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
8216 | ||
f4ab28e3 MK |
8217 | # Windows32 Registry support for specifying GCC installation paths. |
8218 | # Check whether --enable-win32-registry or --disable-win32-registry was given. | |
8219 | if test "${enable_win32_registry+set}" = set; then | |
8220 | enableval="$enable_win32_registry" | |
8221 | : | |
8222 | fi | |
8223 | ||
8224 | ||
8225 | echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 | |
81bf3d9e | 8226 | echo "configure:8218: checking whether windows registry support is requested" >&5 |
f4ab28e3 MK |
8227 | if test x$enable_win32_registry != xno; then |
8228 | cat >> confdefs.h <<\EOF | |
8229 | #define ENABLE_WIN32_REGISTRY 1 | |
8230 | EOF | |
8231 | ||
8232 | echo "$ac_t""yes" 1>&6 | |
8233 | else | |
8234 | echo "$ac_t""no" 1>&6 | |
8235 | fi | |
8236 | ||
8237 | # Check if user specified a different registry key. | |
8238 | case x${enable_win32_registry} in | |
8239 | x | xyes) | |
8240 | # default. | |
8241 | gcc_cv_win32_registry_key="$VERSION" | |
8242 | ;; | |
8243 | xno) | |
8244 | # no registry lookup. | |
8245 | gcc_cv_win32_registry_key='' | |
8246 | ;; | |
8247 | *) | |
8248 | # user-specified key. | |
8249 | gcc_cv_win32_registry_key="$enable_win32_registry" | |
8250 | ;; | |
8251 | esac | |
8252 | ||
8253 | if test x$enable_win32_registry != xno; then | |
8254 | echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 | |
81bf3d9e | 8255 | echo "configure:8247: checking registry key on windows hosts" >&5 |
f4ab28e3 MK |
8256 | cat >> confdefs.h <<EOF |
8257 | #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key" | |
8258 | EOF | |
8259 | ||
8260 | echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6 | |
8261 | fi | |
8262 | ||
ab87f8c8 JL |
8263 | # Get an absolute path to the GCC top-level source directory |
8264 | holddir=`pwd` | |
8265 | cd $srcdir | |
8266 | topdir=`pwd` | |
8267 | cd $holddir | |
8268 | ||
8269 | # Conditionalize the makefile for this host machine. | |
8270 | # Make-host contains the concatenation of all host makefile fragments | |
8271 | # [there can be more than one]. This file is built by configure.frag. | |
8272 | host_overrides=Make-host | |
8273 | dep_host_xmake_file= | |
8274 | for f in .. ${host_xmake_file} | |
8275 | do | |
8276 | if test -f ${srcdir}/config/$f | |
8277 | then | |
8278 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
8279 | fi | |
8280 | done | |
8281 | ||
8282 | # Conditionalize the makefile for this target machine. | |
8283 | # Make-target contains the concatenation of all host makefile fragments | |
8284 | # [there can be more than one]. This file is built by configure.frag. | |
8285 | target_overrides=Make-target | |
8286 | dep_tmake_file= | |
8287 | for f in .. ${tmake_file} | |
8288 | do | |
8289 | if test -f ${srcdir}/config/$f | |
8290 | then | |
8291 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
8292 | fi | |
8293 | done | |
8294 | ||
8295 | # If the host doesn't support symlinks, modify CC in | |
8296 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
8297 | # Otherwise, we can use "CC=$(CC)". | |
8298 | rm -f symtest.tem | |
8299 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
8300 | then | |
8301 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 8302 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
8303 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
8304 | else | |
8305 | rm -f symtest.tem | |
8306 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
8307 | then | |
8308 | symbolic_link="cp -p" | |
8309 | else | |
8310 | symbolic_link="cp" | |
8311 | fi | |
8312 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 8313 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
8314 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
8315 | fi | |
8316 | rm -f symtest.tem | |
8317 | ||
8318 | out_object_file=`basename $out_file .c`.o | |
8319 | ||
8320 | tm_file_list= | |
8321 | for f in $tm_file; do | |
64ccbc99 KG |
8322 | case $f in |
8323 | gansidecl.h ) | |
8324 | tm_file_list="${tm_file_list} $f" ;; | |
8325 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
8326 | esac | |
ab87f8c8 JL |
8327 | done |
8328 | ||
8329 | host_xm_file_list= | |
8330 | for f in $host_xm_file; do | |
64ccbc99 KG |
8331 | case $f in |
8332 | auto-host.h | gansidecl.h | hwint.h ) | |
8333 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
8334 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
8335 | esac | |
ab87f8c8 JL |
8336 | done |
8337 | ||
8338 | build_xm_file_list= | |
8339 | for f in $build_xm_file; do | |
64ccbc99 KG |
8340 | case $f in |
8341 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
8342 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
8343 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
8344 | esac | |
ab87f8c8 JL |
8345 | done |
8346 | ||
8347 | # Define macro CROSS_COMPILE in compilation | |
8348 | # if this is a cross-compiler. | |
8349 | # Also use all.cross instead of all.internal | |
8350 | # and add cross-make to Makefile. | |
8351 | cross_overrides="/dev/null" | |
8352 | if test x$host != x$target | |
8353 | then | |
8354 | cross_defines="CROSS=-DCROSS_COMPILE" | |
8355 | cross_overrides="${topdir}/cross-make" | |
8356 | fi | |
8357 | ||
8358 | # When building gcc with a cross-compiler, we need to fix a few things. | |
8359 | # This must come after cross-make as we want all.build to override | |
8360 | # all.cross. | |
8361 | build_overrides="/dev/null" | |
8362 | if test x$build != x$host | |
8363 | then | |
8364 | build_overrides="${topdir}/build-make" | |
8365 | fi | |
8366 | ||
8367 | # Expand extra_headers to include complete path. | |
8368 | # This substitutes for lots of t-* files. | |
8369 | extra_headers_list= | |
8370 | if test "x$extra_headers" = x | |
8371 | then true | |
8372 | else | |
8373 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
8374 | for file in $extra_headers; | |
8375 | do | |
8376 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8377 | done | |
8378 | fi | |
8379 | ||
8380 | if test x$use_collect2 = xno; then | |
8381 | use_collect2= | |
8382 | fi | |
8383 | ||
8384 | # Add a definition of USE_COLLECT2 if system wants one. | |
8385 | # Also tell toplev.c what to do. | |
8386 | # This substitutes for lots of t-* files. | |
8387 | if test x$use_collect2 = x | |
8388 | then | |
8389 | will_use_collect2= | |
8390 | maybe_use_collect2= | |
8391 | else | |
8392 | will_use_collect2="collect2" | |
8393 | maybe_use_collect2="-DUSE_COLLECT2" | |
8394 | fi | |
8395 | ||
8396 | # NEED TO CONVERT | |
8397 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8398 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8399 | # for line oriented comments, so we must always use a GNU cpp. If | |
8400 | # building gcc with a cross compiler, use the cross compiler just | |
8401 | # built. Otherwise, we can use the cpp just built. | |
8402 | md_file_sub= | |
8403 | if test "x$md_cppflags" = x | |
8404 | then | |
8405 | md_file_sub=$srcdir/config/$md_file | |
8406 | else | |
8407 | md_file=md | |
8408 | fi | |
8409 | ||
8410 | # If we have gas in the build tree, make a link to it. | |
8411 | if test -f ../gas/Makefile; then | |
8412 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8413 | fi | |
8414 | ||
8415 | # If we have nm in the build tree, make a link to it. | |
8416 | if test -f ../binutils/Makefile; then | |
8417 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8418 | fi | |
8419 | ||
8420 | # If we have ld in the build tree, make a link to it. | |
8421 | if test -f ../ld/Makefile; then | |
8422 | # if test x$use_collect2 = x; then | |
8423 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8424 | # else | |
8425 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8426 | # fi | |
8427 | fi | |
8428 | ||
8429 | # Figure out what assembler alignment features are present. | |
8430 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
81bf3d9e | 8431 | echo "configure:8423: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8432 | gcc_cv_as= |
8433 | gcc_cv_as_alignment_features= | |
8434 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8435 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8436 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8437 | elif test -x "$AS"; then | |
8438 | gcc_cv_as="$AS" | |
8439 | elif test -x as$host_exeext; then | |
8440 | # Build using assembler in the current directory. | |
8441 | gcc_cv_as=./as$host_exeext | |
8442 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8443 | # Single tree build which includes gas. | |
8444 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8445 | do | |
8446 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8447 | if test x$gcc_cv_gas_version != x; then | |
8448 | break | |
8449 | fi | |
8450 | done | |
8451 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8452 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8453 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8454 | # Gas version 2.6 and later support for .balign and .p2align. | |
8455 | # bytes to skip when using .p2align. | |
8456 | 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 | |
8457 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8458 | cat >> confdefs.h <<\EOF | |
8459 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8460 | EOF | |
8461 | ||
8462 | fi | |
8463 | # Gas version 2.8 and later support specifying the maximum | |
8464 | # bytes to skip when using .p2align. | |
8465 | 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 | |
8466 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8467 | cat >> confdefs.h <<\EOF | |
8468 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8469 | EOF |
8470 | ||
0b9d02c6 | 8471 | fi |
9e423e6d | 8472 | fi |
75bffa71 | 8473 | elif test x$host = x$target; then |
9e423e6d | 8474 | # Native build. |
779243f7 JL |
8475 | # Search the same directories that the installed compiler will |
8476 | # search. Else we may find the wrong assembler and lose. If we | |
8477 | # do not find a suitable assembler binary, then try the user's | |
8478 | # path. | |
8479 | # | |
8480 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8481 | # user's path. Unfortunately, there is no good way to get at the | |
8482 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8483 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8484 | # to be fixed as part of the make/configure rewrite too. | |
8485 | ||
8486 | if test "x$exec_prefix" = xNONE; then | |
8487 | if test "x$prefix" = xNONE; then | |
8488 | test_prefix=/usr/local | |
8489 | else | |
8490 | test_prefix=$prefix | |
8491 | fi | |
8492 | else | |
8493 | test_prefix=$exec_prefix | |
8494 | fi | |
8495 | ||
8496 | # If the loop below does not find an assembler, then use whatever | |
8497 | # one we can find in the users's path. | |
8498 | # user's path. | |
8499 | as=as$host_exeext | |
8500 | ||
8501 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8502 | $test_prefix/lib/gcc-lib/$target \ | |
8503 | /usr/lib/gcc/$target/$gcc_version \ | |
8504 | /usr/lib/gcc/$target \ | |
8505 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8506 | $test_prefix/$target/bin \ | |
8507 | /usr/libexec \ | |
8508 | /usr/ccs/gcc \ | |
8509 | /usr/ccs/bin \ | |
8510 | /udk/usr/ccs/bin \ | |
8511 | /bsd43/usr/lib/cmplrs/cc \ | |
8512 | /usr/cross64/usr/bin \ | |
8513 | /usr/lib/cmplrs/cc \ | |
8514 | /sysv/usr/lib/cmplrs/cc \ | |
8515 | /svr4/usr/lib/cmplrs/cc \ | |
8516 | /usr/bin" | |
8517 | ||
8518 | for dir in $test_dirs; do | |
8519 | if test -f $dir/as$host_exeext; then | |
8520 | gcc_cv_as=$dir/as$host_exeext | |
8521 | break; | |
8522 | fi | |
8523 | done | |
9e423e6d | 8524 | fi |
75bffa71 | 8525 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8526 | # Check if we have .balign and .p2align |
8527 | echo ".balign 4" > conftest.s | |
8528 | echo ".p2align 2" >> conftest.s | |
8529 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8530 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8531 | cat >> confdefs.h <<\EOF | |
8532 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8533 | EOF | |
8534 | ||
8535 | fi | |
8536 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8537 | # Check if specifying the maximum bytes to skip when |
8538 | # using .p2align is supported. | |
8539 | echo ".p2align 4,,7" > conftest.s | |
8540 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8541 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8542 | cat >> confdefs.h <<\EOF | |
8543 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8544 | EOF | |
8545 | ||
8546 | fi | |
8547 | rm -f conftest.s conftest.o | |
8548 | fi | |
8549 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8550 | ||
d1accaa3 | 8551 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
81bf3d9e | 8552 | echo "configure:8544: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8553 | gcc_cv_as_subsections= |
8554 | if test x$gcc_cv_as != x; then | |
8555 | # Check if we have .subsection | |
8556 | echo ".subsection 1" > conftest.s | |
8557 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8558 | gcc_cv_as_subsections=".subsection" | |
8559 | if test -x nm$host_exeext; then | |
8560 | gcc_cv_nm=./nm$host_exeext | |
8561 | elif test x$host = x$target; then | |
8562 | # Native build. | |
8563 | gcc_cv_nm=nm$host_exeext | |
8564 | fi | |
8565 | if test x$gcc_cv_nm != x; then | |
8566 | cat > conftest.s <<EOF | |
8567 | conftest_label1: .word 0 | |
8568 | .subsection -1 | |
8569 | conftest_label2: .word 0 | |
8570 | .previous | |
8571 | EOF | |
8572 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8573 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8574 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8575 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8576 | : | |
8577 | else | |
d1accaa3 JJ |
8578 | gcc_cv_as_subsections="working .subsection -1" |
8579 | cat >> confdefs.h <<\EOF | |
8580 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8581 | EOF | |
8582 | ||
8583 | fi | |
8584 | fi | |
8585 | fi | |
8586 | fi | |
8587 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8588 | fi | |
8589 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8590 | ||
1cb36a98 RH |
8591 | case "$target" in |
8592 | sparc*-*-*) | |
8593 | echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 | |
81bf3d9e | 8594 | echo "configure:8586: checking assembler .register pseudo-op support" >&5 |
1cb36a98 RH |
8595 | gcc_cv_as_register_pseudo_op= |
8596 | if test x$gcc_cv_as != x; then | |
8597 | # Check if we have .register | |
8598 | echo ".register %g2, #scratch" > conftest.s | |
8599 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8600 | gcc_cv_as_register_pseudo_op=yes | |
8601 | cat >> confdefs.h <<\EOF | |
8602 | #define HAVE_AS_REGISTER_PSEUDO_OP 1 | |
8603 | EOF | |
8604 | ||
8605 | fi | |
8606 | rm -f conftest.s conftest.o | |
8607 | fi | |
8608 | echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6 | |
8609 | ||
8610 | echo $ac_n "checking assembler offsetable %lo() support""... $ac_c" 1>&6 | |
81bf3d9e | 8611 | echo "configure:8603: checking assembler offsetable %lo() support" >&5 |
1cb36a98 RH |
8612 | gcc_cv_as_offsetable_lo10= |
8613 | if test x$gcc_cv_as != x; then | |
8614 | # Check if assembler has offsetable %lo() | |
8615 | echo "or %g1, %lo(ab) + 12, %g1" > conftest.s | |
8616 | echo "or %g1, %lo(ab + 12), %g1" > conftest1.s | |
8617 | gcc_cv_as_flags64="-xarch=v9" | |
7cfc8a78 NS |
8618 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then |
8619 | : | |
8620 | else | |
1cb36a98 | 8621 | gcc_cv_as_flags64="-64" |
7cfc8a78 NS |
8622 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then |
8623 | : | |
8624 | else | |
1cb36a98 RH |
8625 | gcc_cv_as_flags64="" |
8626 | fi | |
8627 | fi | |
8628 | if test -n "$gcc_cv_as_flags64" ; then | |
8629 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s > /dev/null 2>&1; then | |
8630 | if cmp conftest.o conftest1.o > /dev/null 2>&1; then | |
8631 | : | |
8632 | else | |
8633 | gcc_cv_as_offsetable_lo10=yes | |
8634 | cat >> confdefs.h <<\EOF | |
8635 | #define HAVE_AS_OFFSETABLE_LO10 1 | |
8636 | EOF | |
8637 | ||
8638 | fi | |
8639 | fi | |
8640 | fi | |
8641 | rm -f conftest.s conftest.o conftest1.s conftest1.o | |
8642 | fi | |
8643 | echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6 | |
8644 | ;; | |
8645 | ||
8646 | i[34567]86-*-*) | |
8647 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 | |
81bf3d9e | 8648 | echo "configure:8640: checking assembler instructions" >&5 |
1cb36a98 RH |
8649 | gcc_cv_as_instructions= |
8650 | if test x$gcc_cv_as != x; then | |
53b5ce19 JW |
8651 | set "filds fists" "filds mem; fists mem" |
8652 | while test $# -gt 0 | |
8653 | do | |
8654 | echo "$2" > conftest.s | |
8655 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8656 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
8657 | cat >> confdefs.h <<EOF | |
8658 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
8659 | EOF | |
8660 | ||
8661 | fi | |
8662 | shift 2 | |
8663 | done | |
8664 | rm -f conftest.s conftest.o | |
1cb36a98 RH |
8665 | fi |
8666 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
8667 | ;; | |
8668 | esac | |
53b5ce19 | 8669 | |
861bb6c1 | 8670 | # Figure out what language subdirectories are present. |
71205e0b MH |
8671 | # Look if the user specified --enable-languages="..."; if not, use |
8672 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8673 | # go away some day. | |
8674 | if test x"${enable_languages+set}" != xset; then | |
8675 | if test x"${LANGUAGES+set}" = xset; then | |
8676 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8677 | else | |
8678 | enable_languages=all | |
8679 | fi | |
8680 | fi | |
861bb6c1 JL |
8681 | subdirs= |
8682 | for lang in ${srcdir}/*/config-lang.in .. | |
8683 | do | |
8684 | case $lang in | |
8685 | ..) ;; | |
8686 | # The odd quoting in the next line works around | |
8687 | # an apparent bug in bash 1.12 on linux. | |
8688 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8689 | *) |
8690 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8691 | if test "x$lang_alias" = x | |
8692 | then | |
8693 | echo "$lang doesn't set \$language." 1>&2 | |
8694 | exit 1 | |
8695 | fi | |
8696 | if test x"${enable_languages}" = xall; then | |
8697 | add_this_lang=yes | |
8698 | else | |
8699 | case "${enable_languages}" in | |
8700 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8701 | add_this_lang=yes | |
8702 | ;; | |
8703 | * ) | |
8704 | add_this_lang=no | |
8705 | ;; | |
8706 | esac | |
8707 | fi | |
8708 | if test x"${add_this_lang}" = xyes; then | |
8709 | case $lang in | |
8710 | ${srcdir}/ada/config-lang.in) | |
8711 | if test x$gnat = xyes ; then | |
8712 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8713 | fi | |
8714 | ;; | |
8715 | *) | |
8716 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8717 | ;; | |
8718 | esac | |
8719 | fi | |
8720 | ;; | |
861bb6c1 JL |
8721 | esac |
8722 | done | |
8723 | ||
f24af81b TT |
8724 | # Make gthr-default.h if we have a thread file. |
8725 | gthread_flags= | |
75bffa71 | 8726 | if test $thread_file != single; then |
f24af81b | 8727 | rm -f gthr-default.h |
db0d1ed9 | 8728 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8729 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8730 | fi | |
8731 | ||
8732 | ||
81bf3d9e RH |
8733 | # Find out what GC implementation we want, or may, use. |
8734 | # Check whether --with-gc or --without-gc was given. | |
8735 | if test "${with_gc+set}" = set; then | |
8736 | withval="$with_gc" | |
8737 | case "$withval" in | |
8738 | simple | page) | |
8739 | GGC=ggc-$withval | |
8740 | ;; | |
8741 | *) | |
8742 | { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; } | |
8743 | ;; | |
8744 | esac | |
8745 | else | |
8746 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8747 | GGC=ggc-page | |
8748 | else | |
8749 | GGC=ggc-simple | |
8750 | fi | |
8751 | fi | |
8752 | ||
8753 | ||
8754 | echo "Using $GGC for garbage collection." | |
8755 | ||
861bb6c1 JL |
8756 | # Make empty files to contain the specs and options for each language. |
8757 | # Then add #include lines to for a compiler that has specs and/or options. | |
8758 | ||
8759 | lang_specs_files= | |
8760 | lang_options_files= | |
3103b7db ML |
8761 | lang_tree_files= |
8762 | rm -f specs.h options.h gencheck.h | |
8763 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8764 | for subdir in . $subdirs |
8765 | do | |
75bffa71 | 8766 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8767 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8768 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8769 | fi | |
75bffa71 | 8770 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8771 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8772 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8773 | fi | |
3103b7db ML |
8774 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8775 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8776 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8777 | fi | |
861bb6c1 JL |
8778 | done |
8779 | ||
8780 | # These (without "all_") are set in each config-lang.in. | |
8781 | # `language' must be a single word so is spelled singularly. | |
8782 | all_languages= | |
8783 | all_boot_languages= | |
8784 | all_compilers= | |
8785 | all_stagestuff= | |
8786 | all_diff_excludes= | |
4f3ae93c | 8787 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile' |
861bb6c1 JL |
8788 | # List of language makefile fragments. |
8789 | all_lang_makefiles= | |
8790 | all_headers= | |
8791 | all_lib2funcs= | |
8792 | ||
8793 | # Add the language fragments. | |
8794 | # Languages are added via two mechanisms. Some information must be | |
8795 | # recorded in makefile variables, these are defined in config-lang.in. | |
8796 | # We accumulate them and plug them into the main Makefile. | |
8797 | # The other mechanism is a set of hooks for each of the main targets | |
8798 | # like `clean', `install', etc. | |
8799 | ||
8800 | language_fragments="Make-lang" | |
8801 | language_hooks="Make-hooks" | |
8802 | oldstyle_subdirs= | |
8803 | ||
8804 | for s in .. $subdirs | |
8805 | do | |
75bffa71 | 8806 | if test $s != ".." |
861bb6c1 JL |
8807 | then |
8808 | language= | |
8809 | boot_language= | |
8810 | compilers= | |
8811 | stagestuff= | |
8812 | diff_excludes= | |
8813 | headers= | |
8814 | outputs= | |
8815 | lib2funcs= | |
8816 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 8817 | if test "x$language" = x |
861bb6c1 JL |
8818 | then |
8819 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
8820 | exit 1 | |
8821 | fi | |
8822 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
8823 | all_languages="$all_languages $language" | |
75bffa71 | 8824 | if test "x$boot_language" = xyes |
861bb6c1 JL |
8825 | then |
8826 | all_boot_languages="$all_boot_languages $language" | |
8827 | fi | |
8828 | all_compilers="$all_compilers $compilers" | |
8829 | all_stagestuff="$all_stagestuff $stagestuff" | |
8830 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
8831 | all_headers="$all_headers $headers" | |
8832 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 8833 | if test x$outputs = x |
861bb6c1 JL |
8834 | then |
8835 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
8836 | fi | |
8837 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
8838 | fi | |
8839 | done | |
8840 | ||
8841 | # Since we can't use `::' targets, we link each language in | |
8842 | # with a set of hooks, reached indirectly via lang.${target}. | |
8843 | ||
8844 | rm -f Make-hooks | |
8845 | touch Make-hooks | |
8846 | target_list="all.build all.cross start.encap rest.encap \ | |
8847 | info dvi \ | |
8848 | install-normal install-common install-info install-man \ | |
8849 | uninstall distdir \ | |
8850 | mostlyclean clean distclean extraclean maintainer-clean \ | |
8851 | stage1 stage2 stage3 stage4" | |
8852 | for t in $target_list | |
8853 | do | |
8854 | x= | |
ab87f8c8 | 8855 | for lang in .. $all_languages |
861bb6c1 | 8856 | do |
ab87f8c8 JL |
8857 | if test $lang != ".."; then |
8858 | x="$x $lang.$t" | |
861bb6c1 JL |
8859 | fi |
8860 | done | |
8861 | echo "lang.$t: $x" >> Make-hooks | |
8862 | done | |
8863 | ||
8864 | # If we're not building in srcdir, create .gdbinit. | |
8865 | ||
75bffa71 | 8866 | if test ! -f Makefile.in; then |
861bb6c1 JL |
8867 | echo "dir ." > .gdbinit |
8868 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 8869 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
8870 | then |
8871 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
8872 | fi | |
75bffa71 | 8873 | if test "x$subdirs" != x; then |
861bb6c1 JL |
8874 | for s in $subdirs |
8875 | do | |
8876 | echo "dir ${srcdir}/$s" >> .gdbinit | |
8877 | done | |
8878 | fi | |
8879 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
8880 | fi | |
8881 | ||
88111b26 JL |
8882 | # Define variables host_canonical and build_canonical |
8883 | # because some Cygnus local changes in the Makefile depend on them. | |
8884 | build_canonical=${build} | |
8885 | host_canonical=${host} | |
8886 | target_subdir= | |
75bffa71 | 8887 | if test "${host}" != "${target}" ; then |
88111b26 JL |
8888 | target_subdir=${target}/ |
8889 | fi | |
8890 | ||
8891 | ||
8892 | ||
8893 | ||
dec88383 DE |
8894 | # If this is using newlib, then define inhibit_libc in |
8895 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
8896 | # libgcc.a, but that's OK because newib should have its own version of | |
8897 | # assert.h. | |
8898 | inhibit_libc= | |
75bffa71 | 8899 | if test x$with_newlib = xyes; then |
dec88383 DE |
8900 | inhibit_libc=-Dinhibit_libc |
8901 | fi | |
8902 | ||
8903 | ||
8f8d3278 NC |
8904 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
8905 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
8906 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
8907 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
8908 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
8909 | # make and thus we'd get different behavior depending on where we built the | |
8910 | # sources. | |
5949a9fc | 8911 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
8912 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
8913 | else | |
8f8d3278 NC |
8914 | # An explanation of the sed strings: |
8915 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
8916 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
8917 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
8918 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
8919 | # | |
8920 | # (*) Note this pattern overwrites the first character of the string | |
8921 | # with a forward slash if one is not already present. This is not a | |
8922 | # problem because the exact names of the sub-directories concerned is | |
8923 | # unimportant, just the number of them matters. | |
8924 | # | |
8925 | # The practical upshot of these patterns is like this: | |
8926 | # | |
8927 | # prefix exec_prefix result | |
8928 | # ------ ----------- ------ | |
8929 | # /foo /foo/bar ../ | |
8930 | # /foo/ /foo/bar ../ | |
8931 | # /foo /foo/bar/ ../ | |
8932 | # /foo/ /foo/bar/ ../ | |
8933 | # /foo /foo/bar/ugg ../../ | |
8934 | # | |
4c112cda NC |
8935 | dollar='$$' |
8936 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
8937 | fi |
8938 | ||
8939 | ||
2ce3c6c6 | 8940 | |
7e717196 JL |
8941 | # Nothing to do for FLOAT_H, float_format already handled. |
8942 | objdir=`pwd` | |
8943 | ||
8944 | ||
861bb6c1 JL |
8945 | # Process the language and host/target makefile fragments. |
8946 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
8947 | ||
8948 | # Substitute configuration variables | |
8949 | ||
8950 | ||
8951 | ||
8952 | ||
8953 | ||
8954 | ||
8955 | ||
8956 | ||
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | ||
8963 | ||
8964 | ||
8965 | ||
8966 | ||
8967 | ||
8968 | ||
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | ||
8975 | ||
8976 | ||
8977 | ||
8978 | ||
8979 | ||
8980 | ||
8981 | ||
8982 | ||
8983 | ||
8984 | ||
8985 | ||
8986 | ||
8987 | ||
8988 | ||
8989 | ||
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
9b16d2c4 | 8995 | |
e9a25f70 | 8996 | |
6e26218f | 8997 | |
c8724862 | 8998 | |
e061d1ce | 8999 | |
f1943b77 | 9000 | |
0b9d02c6 | 9001 | |
3103b7db | 9002 | |
d8bb17c8 | 9003 | |
9fc9b82a L |
9004 | |
9005 | ||
df37e3db | 9006 | |
861bb6c1 JL |
9007 | |
9008 | ||
9009 | # Echo that links are built | |
75bffa71 | 9010 | if test x$host = x$target |
861bb6c1 JL |
9011 | then |
9012 | str1="native " | |
9013 | else | |
9014 | str1="cross-" | |
9015 | str2=" from $host" | |
9016 | fi | |
9017 | ||
75bffa71 | 9018 | if test x$host != x$build |
861bb6c1 JL |
9019 | then |
9020 | str3=" on a $build system" | |
9021 | fi | |
9022 | ||
75bffa71 | 9023 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9024 | then |
9025 | str4= | |
9026 | fi | |
9027 | ||
9028 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
9029 | ||
75bffa71 | 9030 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9031 | then |
9032 | echo " ${str2}${str3}." 1>&2 | |
9033 | fi | |
9034 | ||
f6cb0e63 | 9035 | # Truncate the target if necessary |
75bffa71 | 9036 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
9037 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
9038 | fi | |
9039 | ||
861bb6c1 JL |
9040 | # Configure the subdirectories |
9041 | # AC_CONFIG_SUBDIRS($subdirs) | |
9042 | ||
9043 | # Create the Makefile | |
9044 | # and configure language subdirectories | |
9045 | trap '' 1 2 15 | |
9046 | cat > confcache <<\EOF | |
9047 | # This file is a shell script that caches the results of configure | |
9048 | # tests run on this system so they can be shared between configure | |
9049 | # scripts and configure runs. It is not useful on other systems. | |
9050 | # If it contains results you don't want to keep, you may remove or edit it. | |
9051 | # | |
9052 | # By default, configure uses ./config.cache as the cache file, | |
9053 | # creating it if it does not exist already. You can give configure | |
9054 | # the --cache-file=FILE option to use a different cache file; that is | |
9055 | # what configure does when it calls configure scripts in | |
9056 | # subdirectories, so they share the cache. | |
9057 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9058 | # config.status only pays attention to the cache file if you give it the | |
9059 | # --recheck option to rerun configure. | |
9060 | # | |
9061 | EOF | |
9062 | # The following way of writing the cache mishandles newlines in values, | |
9063 | # but we know of no workaround that is simple, portable, and efficient. | |
9064 | # So, don't put newlines in cache variables' values. | |
9065 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9066 | # and sets the high bit in the cache file unless we assign to the vars. | |
9067 | (set) 2>&1 | | |
b27d2bd5 | 9068 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
9069 | *ac_space=\ *) |
9070 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9071 | # turns \\\\ into \\, and sed turns \\ into \). | |
9072 | sed -n \ | |
9073 | -e "s/'/'\\\\''/g" \ | |
9074 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9075 | ;; | |
9076 | *) | |
9077 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9078 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9079 | ;; | |
9080 | esac >> confcache | |
9081 | if cmp -s $cache_file confcache; then | |
9082 | : | |
9083 | else | |
9084 | if test -w $cache_file; then | |
9085 | echo "updating cache $cache_file" | |
9086 | cat confcache > $cache_file | |
9087 | else | |
9088 | echo "not updating unwritable cache $cache_file" | |
9089 | fi | |
9090 | fi | |
9091 | rm -f confcache | |
9092 | ||
9093 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
9094 | ||
9095 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9096 | # Let make expand exec_prefix. | |
9097 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9098 | ||
9099 | # Any assignment to VPATH causes Sun make to only execute | |
9100 | # the first set of double-colon rules, so remove it if not needed. | |
9101 | # If there is a colon in the path, we need to keep it. | |
9102 | if test "x$srcdir" = x.; then | |
9103 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
9104 | fi | |
9105 | ||
9106 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
9107 | ||
9108 | DEFS=-DHAVE_CONFIG_H | |
9109 | ||
9110 | # Without the "./", some shells look in PATH for config.status. | |
9111 | : ${CONFIG_STATUS=./config.status} | |
9112 | ||
9113 | echo creating $CONFIG_STATUS | |
9114 | rm -f $CONFIG_STATUS | |
9115 | cat > $CONFIG_STATUS <<EOF | |
9116 | #! /bin/sh | |
9117 | # Generated automatically by configure. | |
9118 | # Run this file to recreate the current configuration. | |
9119 | # This directory was configured as follows, | |
9120 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9121 | # | |
9122 | # $0 $ac_configure_args | |
9123 | # | |
9124 | # Compiler output produced by configure, useful for debugging | |
9125 | # configure, is in ./config.log if it exists. | |
9126 | ||
9127 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
9128 | for ac_option | |
9129 | do | |
9130 | case "\$ac_option" in | |
9131 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9132 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
9133 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
9134 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 9135 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
9136 | exit 0 ;; |
9137 | -help | --help | --hel | --he | --h) | |
9138 | echo "\$ac_cs_usage"; exit 0 ;; | |
9139 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
9140 | esac | |
9141 | done | |
9142 | ||
9143 | ac_given_srcdir=$srcdir | |
861bb6c1 | 9144 | |
b7cb92ad | 9145 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
9146 | EOF |
9147 | cat >> $CONFIG_STATUS <<EOF | |
9148 | ||
9149 | # Protect against being on the right side of a sed subst in config.status. | |
9150 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
9151 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
9152 | $ac_vpsub | |
9153 | $extrasub | |
6f144c9c | 9154 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
9155 | s%@CFLAGS@%$CFLAGS%g |
9156 | s%@CPPFLAGS@%$CPPFLAGS%g | |
9157 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 9158 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
9159 | s%@DEFS@%$DEFS%g |
9160 | s%@LDFLAGS@%$LDFLAGS%g | |
9161 | s%@LIBS@%$LIBS%g | |
9162 | s%@exec_prefix@%$exec_prefix%g | |
9163 | s%@prefix@%$prefix%g | |
9164 | s%@program_transform_name@%$program_transform_name%g | |
9165 | s%@bindir@%$bindir%g | |
9166 | s%@sbindir@%$sbindir%g | |
9167 | s%@libexecdir@%$libexecdir%g | |
9168 | s%@datadir@%$datadir%g | |
9169 | s%@sysconfdir@%$sysconfdir%g | |
9170 | s%@sharedstatedir@%$sharedstatedir%g | |
9171 | s%@localstatedir@%$localstatedir%g | |
9172 | s%@libdir@%$libdir%g | |
9173 | s%@includedir@%$includedir%g | |
9174 | s%@oldincludedir@%$oldincludedir%g | |
9175 | s%@infodir@%$infodir%g | |
9176 | s%@mandir@%$mandir%g | |
9177 | s%@host@%$host%g | |
9178 | s%@host_alias@%$host_alias%g | |
9179 | s%@host_cpu@%$host_cpu%g | |
9180 | s%@host_vendor@%$host_vendor%g | |
9181 | s%@host_os@%$host_os%g | |
9182 | s%@target@%$target%g | |
9183 | s%@target_alias@%$target_alias%g | |
9184 | s%@target_cpu@%$target_cpu%g | |
9185 | s%@target_vendor@%$target_vendor%g | |
9186 | s%@target_os@%$target_os%g | |
9187 | s%@build@%$build%g | |
9188 | s%@build_alias@%$build_alias%g | |
9189 | s%@build_cpu@%$build_cpu%g | |
9190 | s%@build_vendor@%$build_vendor%g | |
9191 | s%@build_os@%$build_os%g | |
e9a25f70 | 9192 | s%@CC@%$CC%g |
61842080 | 9193 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 9194 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
9195 | s%@AWK@%$AWK%g |
9196 | s%@LEX@%$LEX%g | |
9197 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
9198 | s%@LN@%$LN%g |
9199 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
9200 | s%@RANLIB@%$RANLIB%g |
9201 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
9202 | s%@INSTALL@%$INSTALL%g |
9203 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
9204 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 9205 | s%@CPP@%$CPP%g |
bcf12124 | 9206 | s%@gnat@%$gnat%g |
0a4b6309 RL |
9207 | s%@vfprintf@%$vfprintf%g |
9208 | s%@doprint@%$doprint%g | |
861bb6c1 | 9209 | s%@manext@%$manext%g |
992d1248 | 9210 | s%@objext@%$objext%g |
ab87f8c8 JL |
9211 | s%@PACKAGE@%$PACKAGE%g |
9212 | s%@VERSION@%$VERSION%g | |
9213 | s%@ALLOCA@%$ALLOCA%g | |
9214 | s%@USE_NLS@%$USE_NLS%g | |
9215 | s%@MSGFMT@%$MSGFMT%g | |
9216 | s%@GMSGFMT@%$GMSGFMT%g | |
9217 | s%@XGETTEXT@%$XGETTEXT%g | |
9218 | s%@GENCAT@%$GENCAT%g | |
9219 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
9220 | s%@CATALOGS@%$CATALOGS%g | |
9221 | s%@CATOBJEXT@%$CATOBJEXT%g | |
9222 | s%@DATADIRNAME@%$DATADIRNAME%g | |
9223 | s%@GMOFILES@%$GMOFILES%g | |
9224 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
9225 | s%@INTLDEPS@%$INTLDEPS%g | |
9226 | s%@INTLLIBS@%$INTLLIBS%g | |
9227 | s%@INTLOBJS@%$INTLOBJS%g | |
9228 | s%@POFILES@%$POFILES%g | |
9229 | s%@POSUB@%$POSUB%g | |
9230 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
9231 | s%@GT_NO@%$GT_NO%g | |
9232 | s%@GT_YES@%$GT_YES%g | |
9233 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
9234 | s%@l@%$l%g | |
f24af81b | 9235 | s%@gthread_flags@%$gthread_flags%g |
81bf3d9e | 9236 | s%@GGC@%$GGC%g |
88111b26 JL |
9237 | s%@build_canonical@%$build_canonical%g |
9238 | s%@host_canonical@%$host_canonical%g | |
9239 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 9240 | s%@inhibit_libc@%$inhibit_libc%g |
d062c304 | 9241 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 9242 | s%@dollar@%$dollar%g |
7e717196 | 9243 | s%@objdir@%$objdir%g |
861bb6c1 | 9244 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
9245 | s%@all_boot_languages@%$all_boot_languages%g |
9246 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 9247 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 9248 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
9249 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
9250 | s%@all_languages@%$all_languages%g | |
9251 | s%@all_lib2funcs@%$all_lib2funcs%g | |
9252 | s%@all_stagestuff@%$all_stagestuff%g | |
9253 | s%@build_exeext@%$build_exeext%g | |
9254 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
9255 | s%@build_xm_file_list@%$build_xm_file_list%g | |
9256 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 9257 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 9258 | s%@cpp_install_dir@%$cpp_install_dir%g |
e061d1ce | 9259 | s%@cpp_main@%$cpp_main%g |
4f3ae93c BK |
9260 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
9261 | s%@dep_tmake_file@%$dep_tmake_file%g | |
9262 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 9263 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 9264 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
9265 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
9266 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 9267 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
9268 | s%@extra_parts@%$extra_parts%g |
9269 | s%@extra_passes@%$extra_passes%g | |
9270 | s%@extra_programs@%$extra_programs%g | |
9271 | s%@fixinc_defs@%$fixinc_defs%g | |
9272 | s%@float_h_file@%$float_h_file%g | |
9273 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
9274 | s%@gcc_version@%$gcc_version%g | |
9275 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
9276 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 9277 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 9278 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c | 9279 | s%@install@%$install%g |
861bb6c1 | 9280 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 9281 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 9282 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 9283 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 9284 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
9285 | s%@md_file@%$md_file%g |
9286 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
9287 | s%@out_file@%$out_file%g | |
9288 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 9289 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 9290 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
9291 | s%@thread_file@%$thread_file%g |
9292 | s%@tm_file_list@%$tm_file_list%g | |
9293 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
9294 | /@target_overrides@/r $target_overrides |
9295 | s%@target_overrides@%%g | |
9296 | /@host_overrides@/r $host_overrides | |
9297 | s%@host_overrides@%%g | |
9298 | s%@cross_defines@%$cross_defines%g | |
9299 | /@cross_overrides@/r $cross_overrides | |
9300 | s%@cross_overrides@%%g | |
9301 | /@build_overrides@/r $build_overrides | |
9302 | s%@build_overrides@%%g | |
9303 | /@language_fragments@/r $language_fragments | |
9304 | s%@language_fragments@%%g | |
9305 | /@language_hooks@/r $language_hooks | |
9306 | s%@language_hooks@%%g | |
9307 | ||
9308 | CEOF | |
9309 | EOF | |
9310 | ||
9311 | cat >> $CONFIG_STATUS <<\EOF | |
9312 | ||
9313 | # Split the substitutions into bite-sized pieces for seds with | |
9314 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9315 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9316 | ac_file=1 # Number of current file. | |
9317 | ac_beg=1 # First line for current file. | |
9318 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9319 | ac_more_lines=: | |
9320 | ac_sed_cmds="" | |
9321 | while $ac_more_lines; do | |
9322 | if test $ac_beg -gt 1; then | |
9323 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9324 | else | |
9325 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
9326 | fi | |
9327 | if test ! -s conftest.s$ac_file; then | |
9328 | ac_more_lines=false | |
9329 | rm -f conftest.s$ac_file | |
9330 | else | |
9331 | if test -z "$ac_sed_cmds"; then | |
9332 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
9333 | else | |
9334 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9335 | fi | |
9336 | ac_file=`expr $ac_file + 1` | |
9337 | ac_beg=$ac_end | |
9338 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9339 | fi | |
9340 | done | |
9341 | if test -z "$ac_sed_cmds"; then | |
9342 | ac_sed_cmds=cat | |
9343 | fi | |
9344 | EOF | |
9345 | ||
9346 | cat >> $CONFIG_STATUS <<EOF | |
9347 | ||
9348 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
9349 | EOF | |
9350 | cat >> $CONFIG_STATUS <<\EOF | |
9351 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9352 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9353 | case "$ac_file" in | |
9354 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9355 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9356 | *) ac_file_in="${ac_file}.in" ;; | |
9357 | esac | |
9358 | ||
9359 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9360 | ||
9361 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9362 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9363 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9364 | # The file is in a subdirectory. | |
9365 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9366 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9367 | # A "../" for each directory in $ac_dir_suffix. | |
9368 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9369 | else | |
9370 | ac_dir_suffix= ac_dots= | |
9371 | fi | |
9372 | ||
9373 | case "$ac_given_srcdir" in | |
9374 | .) srcdir=. | |
9375 | if test -z "$ac_dots"; then top_srcdir=. | |
9376 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9377 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9378 | *) # Relative path. | |
9379 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9380 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9381 | esac | |
9382 | ||
861bb6c1 JL |
9383 | |
9384 | echo creating "$ac_file" | |
9385 | rm -f "$ac_file" | |
9386 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9387 | case "$ac_file" in | |
9388 | *Makefile*) ac_comsub="1i\\ | |
9389 | # $configure_input" ;; | |
9390 | *) ac_comsub= ;; | |
9391 | esac | |
9392 | ||
9393 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9394 | sed -e "$ac_comsub | |
9395 | s%@configure_input@%$configure_input%g | |
9396 | s%@srcdir@%$srcdir%g | |
9397 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
9398 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9399 | fi; done | |
9400 | rm -f conftest.s* | |
9401 | ||
9402 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9403 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9404 | # | |
9405 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9406 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9407 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9408 | ac_dC='\3' | |
9409 | ac_dD='%g' | |
9410 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9411 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9412 | ac_uB='\([ ]\)%\1#\2define\3' | |
9413 | ac_uC=' ' | |
9414 | ac_uD='\4%g' | |
9415 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9416 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9417 | ac_eB='$%\1#\2define\3' | |
9418 | ac_eC=' ' | |
9419 | ac_eD='%g' | |
9420 | ||
9421 | if test "${CONFIG_HEADERS+set}" != set; then | |
9422 | EOF | |
9423 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 9424 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
9425 | EOF |
9426 | cat >> $CONFIG_STATUS <<\EOF | |
9427 | fi | |
9428 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9429 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9430 | case "$ac_file" in | |
9431 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9432 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9433 | *) ac_file_in="${ac_file}.in" ;; | |
9434 | esac | |
9435 | ||
9436 | echo creating $ac_file | |
9437 | ||
9438 | rm -f conftest.frag conftest.in conftest.out | |
9439 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9440 | cat $ac_file_inputs > conftest.in | |
9441 | ||
9442 | EOF | |
9443 | ||
9444 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9445 | # the proper values into config.h.in to produce config.h. And first: | |
9446 | # Protect against being on the right side of a sed subst in config.status. | |
9447 | # Protect against being in an unquoted here document in config.status. | |
9448 | rm -f conftest.vals | |
9449 | cat > conftest.hdr <<\EOF | |
9450 | s/[\\&%]/\\&/g | |
9451 | s%[\\$`]%\\&%g | |
9452 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9453 | s%ac_d%ac_u%gp | |
9454 | s%ac_u%ac_e%gp | |
9455 | EOF | |
9456 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9457 | rm -f conftest.hdr | |
9458 | ||
9459 | # This sed command replaces #undef with comments. This is necessary, for | |
9460 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9461 | # on some systems where configure will not decide to define it. | |
9462 | cat >> conftest.vals <<\EOF | |
9463 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9464 | EOF | |
9465 | ||
9466 | # Break up conftest.vals because some shells have a limit on | |
9467 | # the size of here documents, and old seds have small limits too. | |
9468 | ||
9469 | rm -f conftest.tail | |
9470 | while : | |
9471 | do | |
9472 | ac_lines=`grep -c . conftest.vals` | |
9473 | # grep -c gives empty output for an empty file on some AIX systems. | |
9474 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9475 | # Write a limited-size here document to conftest.frag. | |
9476 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9477 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9478 | echo 'CEOF | |
9479 | sed -f conftest.frag conftest.in > conftest.out | |
9480 | rm -f conftest.in | |
9481 | mv conftest.out conftest.in | |
9482 | ' >> $CONFIG_STATUS | |
9483 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9484 | rm -f conftest.vals | |
9485 | mv conftest.tail conftest.vals | |
9486 | done | |
9487 | rm -f conftest.vals | |
9488 | ||
9489 | cat >> $CONFIG_STATUS <<\EOF | |
9490 | rm -f conftest.frag conftest.h | |
9491 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9492 | cat conftest.in >> conftest.h | |
9493 | rm -f conftest.in | |
9494 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9495 | echo "$ac_file is unchanged" | |
9496 | rm -f conftest.h | |
9497 | else | |
9498 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9499 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9500 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9501 | # The file is in a subdirectory. | |
9502 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9503 | fi | |
9504 | rm -f $ac_file | |
9505 | mv conftest.h $ac_file | |
9506 | fi | |
9507 | fi; done | |
9508 | ||
ab87f8c8 JL |
9509 | EOF |
9510 | ||
9511 | cat >> $CONFIG_STATUS <<EOF | |
9512 | ac_sources="$nls_cv_header_libgt" | |
9513 | ac_dests="$nls_cv_header_intl" | |
9514 | EOF | |
9515 | ||
9516 | cat >> $CONFIG_STATUS <<\EOF | |
9517 | srcdir=$ac_given_srcdir | |
9518 | while test -n "$ac_sources"; do | |
9519 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9520 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9521 | ||
9522 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9523 | ||
9524 | if test ! -r $srcdir/$ac_source; then | |
9525 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9526 | fi | |
9527 | rm -f $ac_dest | |
9528 | ||
9529 | # Make relative symlinks. | |
9530 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9531 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9532 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9533 | # The dest file is in a subdirectory. | |
9534 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9535 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9536 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9537 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9538 | else | |
9539 | ac_dest_dir_suffix= ac_dots= | |
9540 | fi | |
9541 | ||
9542 | case "$srcdir" in | |
9543 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9544 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9545 | esac | |
9546 | ||
9547 | # Make a symlink if possible; otherwise try a hard link. | |
9548 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9549 | ln $srcdir/$ac_source $ac_dest; then : | |
9550 | else | |
9551 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9552 | fi | |
9553 | done | |
861bb6c1 JL |
9554 | EOF |
9555 | cat >> $CONFIG_STATUS <<EOF | |
9556 | ||
ab87f8c8 | 9557 | |
861bb6c1 JL |
9558 | host='${host}' |
9559 | build='${build}' | |
9560 | target='${target}' | |
9561 | target_alias='${target_alias}' | |
9562 | srcdir='${srcdir}' | |
9563 | subdirs='${subdirs}' | |
9564 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9565 | symbolic_link='${symbolic_link}' | |
9566 | program_transform_set='${program_transform_set}' | |
9567 | program_transform_name='${program_transform_name}' | |
9568 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9569 | host_xmake_file='${host_xmake_file}' | |
9570 | dep_tmake_file='${dep_tmake_file}' | |
9571 | tmake_file='${tmake_file}' | |
9572 | thread_file='${thread_file}' | |
f1943b77 MH |
9573 | gcc_version='${gcc_version}' |
9574 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9575 | local_prefix='${local_prefix}' |
9576 | build_install_headers_dir='${build_install_headers_dir}' | |
9577 | build_exeext='${build_exeext}' | |
6e26218f | 9578 | host_exeext='${host_exeext}' |
7ed46111 | 9579 | out_file='${out_file}' |
861bb6c1 JL |
9580 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9581 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9582 | target_list='${target_list}' |
9583 | target_overrides='${target_overrides}' | |
9584 | host_overrides='${host_overrides}' | |
9585 | cross_defines='${cross_defines}' | |
9586 | cross_overrides='${cross_overrides}' | |
9587 | build_overrides='${build_overrides}' | |
9fc9b82a | 9588 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9589 | |
9590 | EOF | |
9591 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9592 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9593 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9594 | esac | |
861bb6c1 JL |
9595 | |
9596 | . $srcdir/configure.lang | |
9597 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9598 | xauto-host.h:config.in) |
861bb6c1 JL |
9599 | echo > cstamp-h ;; |
9600 | esac | |
93cf819d BK |
9601 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9602 | # bootstrapping and the installation procedure can still use | |
9603 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9604 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9605 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9606 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9607 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9608 | for d in .. ${subdirs} ; do |
75bffa71 | 9609 | if test $d != ..; then |
4e8a434e BK |
9610 | STARTDIR=`pwd` |
9611 | cd $d | |
9612 | for t in stage1 stage2 stage3 stage4 include | |
9613 | do | |
9614 | rm -f $t | |
9615 | $symbolic_link ../$t $t 2>/dev/null | |
9616 | done | |
9617 | cd $STARTDIR | |
93cf819d BK |
9618 | fi |
9619 | done | |
9620 | else true ; fi | |
ab87f8c8 JL |
9621 | # Avoid having to add intl to our include paths. |
9622 | if test -f intl/libintl.h; then | |
9623 | echo creating libintl.h | |
9624 | echo '#include "intl/libintl.h"' >libintl.h | |
9625 | fi | |
861bb6c1 JL |
9626 | |
9627 | exit 0 | |
9628 | EOF | |
9629 | chmod +x $CONFIG_STATUS | |
9630 | rm -fr confdefs* $ac_clean_files | |
9631 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9632 |