]>
Commit | Line | Data |
---|---|---|
861bb6c1 JL |
1 | #! /bin/sh |
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)." |
9101297d | 44 | ac_help="$ac_help |
f81a440f | 45 | --enable-c-mbchar enable multibyte characters for C and C++." |
76c8f855 BK |
46 | ac_help="$ac_help |
47 | --disable-fast-fixincludes | |
48 | Disable the new fast fixincludes. | |
49 | Run the old fixincludes script unconditionally" | |
f81a440f ZW |
50 | ac_help="$ac_help |
51 | --enable-haifa use the experimental scheduler. | |
52 | --disable-haifa don't use the experimental scheduler for the | |
9101297d | 53 | targets which normally enable it." |
861bb6c1 JL |
54 | ac_help="$ac_help |
55 | --enable-threads enable thread usage for target GCC. | |
56 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
57 | ac_help="$ac_help |
58 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
59 | the GNU Objective-C runtime." | |
df37e3db TT |
60 | ac_help="$ac_help |
61 | --enable-java-gc=TYPE choose garbage collector [boehm]" | |
90e6a802 RL |
62 | ac_help="$ac_help |
63 | --enable-dwarf2 enable DWARF2 debugging as default." | |
ab87f8c8 JL |
64 | ac_help="$ac_help |
65 | --enable-nls use Native Language Support (disabled by default)" | |
66 | ac_help="$ac_help | |
67 | --disable-nls do not use Native Language Support" | |
68 | ac_help="$ac_help | |
69 | --with-included-gettext use the GNU gettext library included here" | |
70 | ac_help="$ac_help | |
71 | --with-catgets use catgets functions if available" | |
861bb6c1 JL |
72 | |
73 | # Initialize some variables set by options. | |
74 | # The variables have the same names as the options, with | |
75 | # dashes changed to underlines. | |
76 | build=NONE | |
77 | cache_file=./config.cache | |
78 | exec_prefix=NONE | |
79 | host=NONE | |
80 | no_create= | |
81 | nonopt=NONE | |
82 | no_recursion= | |
83 | prefix=NONE | |
84 | program_prefix=NONE | |
85 | program_suffix=NONE | |
86 | program_transform_name=s,x,x, | |
87 | silent= | |
88 | site= | |
89 | srcdir= | |
90 | target=NONE | |
91 | verbose= | |
92 | x_includes=NONE | |
93 | x_libraries=NONE | |
94 | bindir='${exec_prefix}/bin' | |
95 | sbindir='${exec_prefix}/sbin' | |
96 | libexecdir='${exec_prefix}/libexec' | |
97 | datadir='${prefix}/share' | |
98 | sysconfdir='${prefix}/etc' | |
99 | sharedstatedir='${prefix}/com' | |
100 | localstatedir='${prefix}/var' | |
101 | libdir='${exec_prefix}/lib' | |
102 | includedir='${prefix}/include' | |
103 | oldincludedir='/usr/include' | |
104 | infodir='${prefix}/info' | |
105 | mandir='${prefix}/man' | |
106 | ||
107 | # Initialize some other variables. | |
108 | subdirs= | |
109 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 110 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
111 | # Maximum number of lines to put in a shell here document. |
112 | ac_max_here_lines=12 | |
113 | ||
114 | ac_prev= | |
115 | for ac_option | |
116 | do | |
117 | ||
118 | # If the previous option needs an argument, assign it. | |
119 | if test -n "$ac_prev"; then | |
120 | eval "$ac_prev=\$ac_option" | |
121 | ac_prev= | |
122 | continue | |
123 | fi | |
124 | ||
125 | case "$ac_option" in | |
126 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
127 | *) ac_optarg= ;; | |
128 | esac | |
129 | ||
130 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
131 | ||
132 | case "$ac_option" in | |
133 | ||
134 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
135 | ac_prev=bindir ;; | |
136 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
137 | bindir="$ac_optarg" ;; | |
138 | ||
139 | -build | --build | --buil | --bui | --bu) | |
140 | ac_prev=build ;; | |
141 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
142 | build="$ac_optarg" ;; | |
143 | ||
144 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
145 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
146 | ac_prev=cache_file ;; | |
147 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
148 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
149 | cache_file="$ac_optarg" ;; | |
150 | ||
151 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
152 | ac_prev=datadir ;; | |
153 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
154 | | --da=*) | |
155 | datadir="$ac_optarg" ;; | |
156 | ||
157 | -disable-* | --disable-*) | |
158 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
159 | # Reject names that are not valid shell variable names. | |
160 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
161 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
162 | fi | |
163 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
164 | eval "enable_${ac_feature}=no" ;; | |
165 | ||
166 | -enable-* | --enable-*) | |
167 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
168 | # Reject names that are not valid shell variable names. | |
169 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
170 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
171 | fi | |
172 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
173 | case "$ac_option" in | |
174 | *=*) ;; | |
175 | *) ac_optarg=yes ;; | |
176 | esac | |
177 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
178 | ||
179 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
180 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
181 | | --exec | --exe | --ex) | |
182 | ac_prev=exec_prefix ;; | |
183 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
184 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
185 | | --exec=* | --exe=* | --ex=*) | |
186 | exec_prefix="$ac_optarg" ;; | |
187 | ||
188 | -gas | --gas | --ga | --g) | |
189 | # Obsolete; use --with-gas. | |
190 | with_gas=yes ;; | |
191 | ||
192 | -help | --help | --hel | --he) | |
193 | # Omit some internal or obsolete options to make the list less imposing. | |
194 | # This message is too long to be a string in the A/UX 3.1 sh. | |
195 | cat << EOF | |
196 | Usage: configure [options] [host] | |
197 | Options: [defaults in brackets after descriptions] | |
198 | Configuration: | |
199 | --cache-file=FILE cache test results in FILE | |
200 | --help print this message | |
201 | --no-create do not create output files | |
202 | --quiet, --silent do not print \`checking...' messages | |
203 | --version print the version of autoconf that created configure | |
204 | Directory and file names: | |
205 | --prefix=PREFIX install architecture-independent files in PREFIX | |
206 | [$ac_default_prefix] | |
207 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
208 | [same as prefix] | |
209 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
210 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
211 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
212 | --datadir=DIR read-only architecture-independent data in DIR | |
213 | [PREFIX/share] | |
214 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
215 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
216 | [PREFIX/com] | |
217 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
218 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
219 | --includedir=DIR C header files in DIR [PREFIX/include] | |
220 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
221 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
222 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
223 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
224 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
225 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
226 | --program-transform-name=PROGRAM | |
227 | run sed PROGRAM on installed program names | |
228 | EOF | |
229 | cat << EOF | |
230 | Host type: | |
231 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
232 | --host=HOST configure for HOST [guessed] | |
233 | --target=TARGET configure for TARGET [TARGET=HOST] | |
234 | Features and packages: | |
235 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
236 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
237 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
238 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
239 | --x-includes=DIR X include files are in DIR | |
240 | --x-libraries=DIR X library files are in DIR | |
241 | EOF | |
242 | if test -n "$ac_help"; then | |
243 | echo "--enable and --with options recognized:$ac_help" | |
244 | fi | |
245 | exit 0 ;; | |
246 | ||
247 | -host | --host | --hos | --ho) | |
248 | ac_prev=host ;; | |
249 | -host=* | --host=* | --hos=* | --ho=*) | |
250 | host="$ac_optarg" ;; | |
251 | ||
252 | -includedir | --includedir | --includedi | --included | --include \ | |
253 | | --includ | --inclu | --incl | --inc) | |
254 | ac_prev=includedir ;; | |
255 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
256 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
257 | includedir="$ac_optarg" ;; | |
258 | ||
259 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
260 | ac_prev=infodir ;; | |
261 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
262 | infodir="$ac_optarg" ;; | |
263 | ||
264 | -libdir | --libdir | --libdi | --libd) | |
265 | ac_prev=libdir ;; | |
266 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
267 | libdir="$ac_optarg" ;; | |
268 | ||
269 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
270 | | --libexe | --libex | --libe) | |
271 | ac_prev=libexecdir ;; | |
272 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
273 | | --libexe=* | --libex=* | --libe=*) | |
274 | libexecdir="$ac_optarg" ;; | |
275 | ||
276 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
277 | | --localstate | --localstat | --localsta | --localst \ | |
278 | | --locals | --local | --loca | --loc | --lo) | |
279 | ac_prev=localstatedir ;; | |
280 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
281 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
282 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
283 | localstatedir="$ac_optarg" ;; | |
284 | ||
285 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
286 | ac_prev=mandir ;; | |
287 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
288 | mandir="$ac_optarg" ;; | |
289 | ||
290 | -nfp | --nfp | --nf) | |
291 | # Obsolete; use --without-fp. | |
292 | with_fp=no ;; | |
293 | ||
294 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
295 | | --no-cr | --no-c) | |
296 | no_create=yes ;; | |
297 | ||
298 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
299 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
300 | no_recursion=yes ;; | |
301 | ||
302 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
303 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
304 | | --oldin | --oldi | --old | --ol | --o) | |
305 | ac_prev=oldincludedir ;; | |
306 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
307 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
308 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
309 | oldincludedir="$ac_optarg" ;; | |
310 | ||
311 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
312 | ac_prev=prefix ;; | |
313 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
314 | prefix="$ac_optarg" ;; | |
315 | ||
316 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
317 | | --program-pre | --program-pr | --program-p) | |
318 | ac_prev=program_prefix ;; | |
319 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
320 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
321 | program_prefix="$ac_optarg" ;; | |
322 | ||
323 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
324 | | --program-suf | --program-su | --program-s) | |
325 | ac_prev=program_suffix ;; | |
326 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
327 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
328 | program_suffix="$ac_optarg" ;; | |
329 | ||
330 | -program-transform-name | --program-transform-name \ | |
331 | | --program-transform-nam | --program-transform-na \ | |
332 | | --program-transform-n | --program-transform- \ | |
333 | | --program-transform | --program-transfor \ | |
334 | | --program-transfo | --program-transf \ | |
335 | | --program-trans | --program-tran \ | |
336 | | --progr-tra | --program-tr | --program-t) | |
337 | ac_prev=program_transform_name ;; | |
338 | -program-transform-name=* | --program-transform-name=* \ | |
339 | | --program-transform-nam=* | --program-transform-na=* \ | |
340 | | --program-transform-n=* | --program-transform-=* \ | |
341 | | --program-transform=* | --program-transfor=* \ | |
342 | | --program-transfo=* | --program-transf=* \ | |
343 | | --program-trans=* | --program-tran=* \ | |
344 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
345 | program_transform_name="$ac_optarg" ;; | |
346 | ||
347 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
348 | | -silent | --silent | --silen | --sile | --sil) | |
349 | silent=yes ;; | |
350 | ||
351 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
352 | ac_prev=sbindir ;; | |
353 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
354 | | --sbi=* | --sb=*) | |
355 | sbindir="$ac_optarg" ;; | |
356 | ||
357 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
358 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
359 | | --sharedst | --shareds | --shared | --share | --shar \ | |
360 | | --sha | --sh) | |
361 | ac_prev=sharedstatedir ;; | |
362 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
363 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
364 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
365 | | --sha=* | --sh=*) | |
366 | sharedstatedir="$ac_optarg" ;; | |
367 | ||
368 | -site | --site | --sit) | |
369 | ac_prev=site ;; | |
370 | -site=* | --site=* | --sit=*) | |
371 | site="$ac_optarg" ;; | |
372 | ||
373 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
374 | ac_prev=srcdir ;; | |
375 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
376 | srcdir="$ac_optarg" ;; | |
377 | ||
378 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
379 | | --syscon | --sysco | --sysc | --sys | --sy) | |
380 | ac_prev=sysconfdir ;; | |
381 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
382 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
383 | sysconfdir="$ac_optarg" ;; | |
384 | ||
385 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
386 | ac_prev=target ;; | |
387 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
388 | target="$ac_optarg" ;; | |
389 | ||
390 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
391 | verbose=yes ;; | |
392 | ||
393 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 394 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
395 | exit 0 ;; |
396 | ||
397 | -with-* | --with-*) | |
398 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
399 | # Reject names that are not valid shell variable names. | |
400 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
401 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
402 | fi | |
403 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
404 | case "$ac_option" in | |
405 | *=*) ;; | |
406 | *) ac_optarg=yes ;; | |
407 | esac | |
408 | eval "with_${ac_package}='$ac_optarg'" ;; | |
409 | ||
410 | -without-* | --without-*) | |
411 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
412 | # Reject names that are not valid shell variable names. | |
413 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
414 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
415 | fi | |
416 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
417 | eval "with_${ac_package}=no" ;; | |
418 | ||
419 | --x) | |
420 | # Obsolete; use --with-x. | |
421 | with_x=yes ;; | |
422 | ||
423 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
424 | | --x-incl | --x-inc | --x-in | --x-i) | |
425 | ac_prev=x_includes ;; | |
426 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
427 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
428 | x_includes="$ac_optarg" ;; | |
429 | ||
430 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
431 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
432 | ac_prev=x_libraries ;; | |
433 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
434 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
435 | x_libraries="$ac_optarg" ;; | |
436 | ||
437 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
438 | ;; | |
439 | ||
440 | *) | |
441 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
442 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
443 | fi | |
444 | if test "x$nonopt" != xNONE; then | |
445 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
446 | fi | |
447 | nonopt="$ac_option" | |
448 | ;; | |
449 | ||
450 | esac | |
451 | done | |
452 | ||
453 | if test -n "$ac_prev"; then | |
454 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
455 | fi | |
456 | ||
457 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
458 | ||
459 | # File descriptor usage: | |
460 | # 0 standard input | |
461 | # 1 file creation | |
462 | # 2 errors and warnings | |
463 | # 3 some systems may open it to /dev/tty | |
464 | # 4 used on the Kubota Titan | |
465 | # 6 checking for... messages and results | |
466 | # 5 compiler messages saved in config.log | |
467 | if test "$silent" = yes; then | |
468 | exec 6>/dev/null | |
469 | else | |
470 | exec 6>&1 | |
471 | fi | |
472 | exec 5>./config.log | |
473 | ||
474 | echo "\ | |
475 | This file contains any messages produced by compilers while | |
476 | running configure, to aid debugging if configure makes a mistake. | |
477 | " 1>&5 | |
478 | ||
479 | # Strip out --no-create and --no-recursion so they do not pile up. | |
480 | # Also quote any args containing shell metacharacters. | |
481 | ac_configure_args= | |
482 | for ac_arg | |
483 | do | |
484 | case "$ac_arg" in | |
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
486 | | --no-cr | --no-c) ;; | |
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
489 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
490 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
491 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
492 | esac | |
493 | done | |
494 | ||
495 | # NLS nuisances. | |
496 | # Only set these to C if already set. These must not be set unconditionally | |
497 | # because not all systems understand e.g. LANG=C (notably SCO). | |
498 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
499 | # Non-C LC_CTYPE values break the ctype check. | |
500 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
501 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
502 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
503 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
504 | ||
505 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
506 | rm -rf conftest* confdefs.h | |
507 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
508 | echo > confdefs.h | |
509 | ||
510 | # A filename unique to this package, relative to the directory that | |
511 | # configure is in, which we can look for to find out if srcdir is correct. | |
512 | ac_unique_file=tree.c | |
513 | ||
514 | # Find the source files, if location was not specified. | |
515 | if test -z "$srcdir"; then | |
516 | ac_srcdir_defaulted=yes | |
517 | # Try the directory containing this script, then its parent. | |
518 | ac_prog=$0 | |
519 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
520 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
521 | srcdir=$ac_confdir | |
522 | if test ! -r $srcdir/$ac_unique_file; then | |
523 | srcdir=.. | |
524 | fi | |
525 | else | |
526 | ac_srcdir_defaulted=no | |
527 | fi | |
528 | if test ! -r $srcdir/$ac_unique_file; then | |
529 | if test "$ac_srcdir_defaulted" = yes; then | |
530 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
531 | else | |
532 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
533 | fi | |
534 | fi | |
535 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
536 | ||
537 | # Prefer explicitly selected file to automatically selected ones. | |
538 | if test -z "$CONFIG_SITE"; then | |
539 | if test "x$prefix" != xNONE; then | |
540 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
541 | else | |
542 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
543 | fi | |
544 | fi | |
545 | for ac_site_file in $CONFIG_SITE; do | |
546 | if test -r "$ac_site_file"; then | |
547 | echo "loading site script $ac_site_file" | |
548 | . "$ac_site_file" | |
549 | fi | |
550 | done | |
551 | ||
552 | if test -r "$cache_file"; then | |
553 | echo "loading cache $cache_file" | |
554 | . $cache_file | |
555 | else | |
556 | echo "creating cache $cache_file" | |
557 | > $cache_file | |
558 | fi | |
559 | ||
560 | ac_ext=c | |
561 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
562 | ac_cpp='$CPP $CPPFLAGS' | |
563 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 564 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
565 | cross_compiling=$ac_cv_prog_cc_cross |
566 | ||
cd9e5e7c MK |
567 | ac_exeext= |
568 | ac_objext=o | |
861bb6c1 JL |
569 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
570 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
571 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
572 | ac_n= ac_c=' | |
573 | ' ac_t=' ' | |
574 | else | |
575 | ac_n=-n ac_c= ac_t= | |
576 | fi | |
577 | else | |
578 | ac_n= ac_c='\c' ac_t= | |
579 | fi | |
580 | ||
581 | ||
582 | ||
583 | ||
861bb6c1 JL |
584 | remove=rm |
585 | hard_link=ln | |
586 | symbolic_link='ln -s' | |
587 | copy=cp | |
588 | ||
75a39864 JL |
589 | # Check for bogus environment variables. |
590 | # Test if LIBRARY_PATH contains the notation for the current directory | |
591 | # since this would lead to problems installing/building glibc. | |
592 | # LIBRARY_PATH contains the current directory if one of the following | |
593 | # is true: | |
594 | # - one of the terminals (":" and ";") is the first or last sign | |
595 | # - two terminals occur directly after each other | |
596 | # - the path contains an element with a dot in it | |
597 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
3ecc3258 | 598 | echo "configure:599: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
599 | case ${LIBRARY_PATH} in |
600 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
601 | library_path_setting="contains current directory" | |
602 | ;; | |
603 | *) | |
604 | library_path_setting="ok" | |
605 | ;; | |
606 | esac | |
607 | echo "$ac_t""$library_path_setting" 1>&6 | |
608 | if test "$library_path_setting" != "ok"; then | |
609 | { echo "configure: error: | |
610 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 611 | *** building gcc. Please change the environment variable |
75a39864 JL |
612 | *** and run configure again." 1>&2; exit 1; } |
613 | fi | |
614 | ||
615 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
616 | # since this would lead to problems installing/building glibc. | |
617 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
618 | # is true: | |
619 | # - one of the terminals (":" and ";") is the first or last sign | |
620 | # - two terminals occur directly after each other | |
621 | # - the path contains an element with a dot in it | |
622 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
3ecc3258 | 623 | echo "configure:624: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
624 | case ${GCC_EXEC_PREFIX} in |
625 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
626 | gcc_exec_prefix_setting="contains current directory" | |
627 | ;; | |
628 | *) | |
629 | gcc_exec_prefix_setting="ok" | |
630 | ;; | |
631 | esac | |
632 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
633 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
634 | { echo "configure: error: | |
635 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 636 | *** building gcc. Please change the environment variable |
75a39864 JL |
637 | *** and run configure again." 1>&2; exit 1; } |
638 | fi | |
639 | ||
861bb6c1 JL |
640 | # Check for additional parameters |
641 | ||
642 | # With GNU ld | |
643 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
644 | if test "${with_gnu_ld+set}" = set; then | |
645 | withval="$with_gnu_ld" | |
df6faf79 | 646 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 647 | else |
df6faf79 | 648 | gnu_ld_flag=no |
861bb6c1 JL |
649 | fi |
650 | ||
651 | ||
ab339d62 AO |
652 | # With pre-defined ld |
653 | # Check whether --with-ld or --without-ld was given. | |
654 | if test "${with_ld+set}" = set; then | |
655 | withval="$with_ld" | |
3ccc3a56 | 656 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
657 | fi |
658 | ||
3ccc3a56 AO |
659 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
660 | if test ! -x "$DEFAULT_LINKER"; then | |
661 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 662 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
663 | gnu_ld_flag=yes |
664 | fi | |
665 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 666 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
667 | EOF |
668 | ||
669 | fi | |
670 | ||
861bb6c1 JL |
671 | # With GNU as |
672 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
673 | if test "${with_gnu_as+set}" = set; then | |
674 | withval="$with_gnu_as" | |
df6faf79 | 675 | gas_flag="$with_gnu_as" |
861bb6c1 | 676 | else |
df6faf79 | 677 | gas_flag=no |
861bb6c1 JL |
678 | fi |
679 | ||
680 | ||
ab339d62 AO |
681 | # Check whether --with-as or --without-as was given. |
682 | if test "${with_as+set}" = set; then | |
683 | withval="$with_as" | |
3ccc3a56 | 684 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
685 | fi |
686 | ||
3ccc3a56 AO |
687 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
688 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
689 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 690 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
691 | gas_flag=yes |
692 | fi | |
693 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 694 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
695 | EOF |
696 | ||
3ccc3a56 | 697 | fi |
ab339d62 | 698 | |
861bb6c1 JL |
699 | # With stabs |
700 | # Check whether --with-stabs or --without-stabs was given. | |
701 | if test "${with_stabs+set}" = set; then | |
702 | withval="$with_stabs" | |
535b86ce | 703 | stabs="$with_stabs" |
861bb6c1 JL |
704 | else |
705 | stabs=no | |
706 | fi | |
707 | ||
708 | ||
709 | # With ELF | |
710 | # Check whether --with-elf or --without-elf was given. | |
711 | if test "${with_elf+set}" = set; then | |
712 | withval="$with_elf" | |
535b86ce | 713 | elf="$with_elf" |
861bb6c1 JL |
714 | else |
715 | elf=no | |
716 | fi | |
717 | ||
718 | ||
719 | # Specify the local prefix | |
4e88d51b | 720 | local_prefix= |
861bb6c1 JL |
721 | # Check whether --with-local-prefix or --without-local-prefix was given. |
722 | if test "${with_local_prefix+set}" = set; then | |
723 | withval="$with_local_prefix" | |
4e88d51b JM |
724 | case "${withval}" in |
725 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
726 | no) ;; | |
727 | *) local_prefix=$with_local_prefix ;; | |
728 | esac | |
861bb6c1 JL |
729 | fi |
730 | ||
731 | ||
732 | # Default local prefix if it is empty | |
75bffa71 | 733 | if test x$local_prefix = x; then |
861bb6c1 JL |
734 | local_prefix=/usr/local |
735 | fi | |
736 | ||
8f8d3278 NC |
737 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
738 | # passed in by the toplevel make and thus we'd get different behavior | |
739 | # depending on where we built the sources. | |
740 | gcc_gxx_include_dir= | |
861bb6c1 JL |
741 | # Specify the g++ header file directory |
742 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
743 | if test "${with_gxx_include_dir+set}" = set; then | |
744 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
745 | case "${withval}" in |
746 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
747 | no) ;; | |
8f8d3278 | 748 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 749 | esac |
861bb6c1 JL |
750 | fi |
751 | ||
752 | ||
8f8d3278 | 753 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 754 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 755 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 756 | else |
a270b446 | 757 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 758 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
759 | fi |
760 | fi | |
761 | ||
a494747c MM |
762 | # Enable expensive internal checks |
763 | # Check whether --enable-checking or --disable-checking was given. | |
764 | if test "${enable_checking+set}" = set; then | |
765 | enableval="$enable_checking" | |
4e88d51b JM |
766 | case "${enableval}" in |
767 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
768 | #define ENABLE_CHECKING 1 |
769 | EOF | |
4e88d51b JM |
770 | ;; |
771 | no) ;; | |
772 | *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; | |
773 | esac | |
a494747c MM |
774 | fi |
775 | ||
776 | ||
3ecc3258 ZW |
777 | # Check whether --enable-cpp or --disable-cpp was given. |
778 | if test "${enable_cpp+set}" = set; then | |
779 | enableval="$enable_cpp" | |
780 | : | |
781 | else | |
782 | enable_cpp=yes | |
783 | fi | |
784 | ||
785 | ||
786 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
787 | if test "${with_cpp_install_dir+set}" = set; then | |
788 | withval="$with_cpp_install_dir" | |
789 | if test x$withval = xyes; then | |
790 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
791 | elif test x$withval != xno; then | |
792 | cpp_install_dir=$withval | |
793 | fi | |
794 | fi | |
795 | ||
796 | ||
f81a440f | 797 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 798 | cpp_main=cccp |
f81a440f ZW |
799 | # Check whether --enable-cpplib or --disable-cpplib was given. |
800 | if test "${enable_cpplib+set}" = set; then | |
801 | enableval="$enable_cpplib" | |
802 | if test x$enable_cpplib != xno; then | |
803 | cpp_main=cppmain | |
804 | fi | |
805 | fi | |
806 | ||
807 | ||
808 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
861bb6c1 JL |
809 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
810 | if test "${enable_c_cpplib+set}" = set; then | |
811 | enableval="$enable_c_cpplib" | |
75bffa71 | 812 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
813 | extra_c_objs="${extra_c_objs} libcpp.a" |
814 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
4525d757 | 815 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 816 | cpp_main=cppmain |
861bb6c1 JL |
817 | fi |
818 | fi | |
819 | ||
f81a440f | 820 | |
0b9d02c6 JL |
821 | # Enable Multibyte Characters for C/C++ |
822 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
823 | if test "${enable_c_mbchar+set}" = set; then | |
824 | enableval="$enable_c_mbchar" | |
75bffa71 | 825 | if test x$enable_c_mbchar != xno; then |
0b9d02c6 JL |
826 | extra_c_flags=-DMULTIBYTE_CHARS=1 |
827 | fi | |
828 | fi | |
829 | ||
76c8f855 BK |
830 | |
831 | # Disable fast fixincludes | |
832 | # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given. | |
833 | if test "${enable_fast_fixincludes+set}" = set; then | |
834 | enableval="$enable_fast_fixincludes" | |
835 | if test x$enable_fast_fixincludes = xno ; then | |
836 | cp $srcdir/fixincludes ./fixinc.sh | |
837 | fi | |
838 | fi | |
839 | ||
840 | ||
9101297d DL |
841 | # Enable Haifa scheduler. |
842 | # Check whether --enable-haifa or --disable-haifa was given. | |
843 | if test "${enable_haifa+set}" = set; then | |
844 | enableval="$enable_haifa" | |
845 | : | |
846 | fi | |
847 | ||
861bb6c1 JL |
848 | |
849 | # Enable threads | |
850 | # Pass with no value to take the default | |
851 | # Pass with a value to specify a thread package | |
852 | # Check whether --enable-threads or --disable-threads was given. | |
853 | if test "${enable_threads+set}" = set; then | |
854 | enableval="$enable_threads" | |
75bffa71 | 855 | if test x$enable_threads = xno; then |
861bb6c1 JL |
856 | enable_threads='' |
857 | fi | |
858 | else | |
859 | enable_threads='' | |
860 | fi | |
861 | ||
862 | ||
e445171e | 863 | enable_threads_flag=$enable_threads |
861bb6c1 | 864 | # Check if a valid thread package |
e445171e | 865 | case x${enable_threads_flag} in |
861bb6c1 JL |
866 | x | xno) |
867 | # No threads | |
a851212a | 868 | target_thread_file='single' |
861bb6c1 JL |
869 | ;; |
870 | xyes) | |
871 | # default | |
a851212a | 872 | target_thread_file='' |
861bb6c1 JL |
873 | ;; |
874 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 875 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 876 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
877 | ;; |
878 | *) | |
879 | echo "$enable_threads is an unknown thread package" 1>&2 | |
880 | exit 1 | |
881 | ;; | |
882 | esac | |
883 | ||
d8bb17c8 OP |
884 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
885 | if test "${enable_objc_gc+set}" = set; then | |
886 | enableval="$enable_objc_gc" | |
887 | if [ x$enable_objc_gc = xno ]; then | |
888 | objc_boehm_gc='' | |
889 | else | |
890 | objc_boehm_gc=1 | |
891 | fi | |
892 | else | |
893 | objc_boehm_gc='' | |
894 | fi | |
895 | ||
896 | ||
df37e3db TT |
897 | # Check whether --enable-java-gc or --disable-java-gc was given. |
898 | if test "${enable_java_gc+set}" = set; then | |
899 | enableval="$enable_java_gc" | |
900 | ||
901 | JAVAGC=$enableval | |
902 | else | |
903 | JAVAGC=boehm | |
904 | fi | |
905 | ||
906 | ||
90e6a802 RL |
907 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
908 | if test "${with_dwarf2+set}" = set; then | |
909 | withval="$with_dwarf2" | |
910 | dwarf2="$with_dwarf2" | |
911 | else | |
912 | dwarf2=no | |
913 | fi | |
914 | ||
915 | ||
861bb6c1 JL |
916 | # Determine the host, build, and target systems |
917 | ac_aux_dir= | |
918 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
919 | if test -f $ac_dir/install-sh; then | |
920 | ac_aux_dir=$ac_dir | |
921 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
922 | break | |
923 | elif test -f $ac_dir/install.sh; then | |
924 | ac_aux_dir=$ac_dir | |
925 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
926 | break | |
927 | fi | |
928 | done | |
929 | if test -z "$ac_aux_dir"; then | |
930 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
931 | fi | |
932 | ac_config_guess=$ac_aux_dir/config.guess | |
933 | ac_config_sub=$ac_aux_dir/config.sub | |
934 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
935 | ||
936 | ||
937 | # Do some error checking and defaulting for the host and target type. | |
938 | # The inputs are: | |
939 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
940 | # | |
941 | # The rules are: | |
942 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
943 | # same time. | |
944 | # 2. Host defaults to nonopt. | |
945 | # 3. If nonopt is not specified, then host defaults to the current host, | |
946 | # as determined by config.guess. | |
947 | # 4. Target and build default to nonopt. | |
948 | # 5. If nonopt is not specified, then target and build default to host. | |
949 | ||
950 | # The aliases save the names the user supplied, while $host etc. | |
951 | # will get canonicalized. | |
952 | case $host---$target---$nonopt in | |
953 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
954 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
955 | esac | |
956 | ||
957 | ||
958 | # Make sure we can run config.sub. | |
6f144c9c | 959 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
960 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
961 | fi | |
962 | ||
963 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3ecc3258 | 964 | echo "configure:965: checking host system type" >&5 |
861bb6c1 JL |
965 | |
966 | host_alias=$host | |
967 | case "$host_alias" in | |
968 | NONE) | |
969 | case $nonopt in | |
970 | NONE) | |
6f144c9c | 971 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
972 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
973 | fi ;; | |
974 | *) host_alias=$nonopt ;; | |
975 | esac ;; | |
976 | esac | |
977 | ||
6f144c9c | 978 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
979 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
980 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
981 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
982 | echo "$ac_t""$host" 1>&6 | |
983 | ||
984 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3ecc3258 | 985 | echo "configure:986: checking target system type" >&5 |
861bb6c1 JL |
986 | |
987 | target_alias=$target | |
988 | case "$target_alias" in | |
989 | NONE) | |
990 | case $nonopt in | |
991 | NONE) target_alias=$host_alias ;; | |
992 | *) target_alias=$nonopt ;; | |
993 | esac ;; | |
994 | esac | |
995 | ||
6f144c9c | 996 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
997 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
998 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
999 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1000 | echo "$ac_t""$target" 1>&6 | |
1001 | ||
1002 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3ecc3258 | 1003 | echo "configure:1004: checking build system type" >&5 |
861bb6c1 JL |
1004 | |
1005 | build_alias=$build | |
1006 | case "$build_alias" in | |
1007 | NONE) | |
1008 | case $nonopt in | |
1009 | NONE) build_alias=$host_alias ;; | |
1010 | *) build_alias=$nonopt ;; | |
1011 | esac ;; | |
1012 | esac | |
1013 | ||
6f144c9c | 1014 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1015 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1016 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1017 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1018 | echo "$ac_t""$build" 1>&6 | |
1019 | ||
1020 | test "$host_alias" != "$target_alias" && | |
1021 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1022 | NONENONEs,x,x, && | |
1023 | program_prefix=${target_alias}- | |
1024 | ||
1025 | ||
e9a25f70 JL |
1026 | # Find the native compiler |
1027 | # Extract the first word of "gcc", so it can be a program name with args. | |
1028 | set dummy gcc; ac_word=$2 | |
1029 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1030 | echo "configure:1031: checking for $ac_word" >&5 |
e9a25f70 JL |
1031 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1033 | else | |
1034 | if test -n "$CC"; then | |
1035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1036 | else | |
cd9e5e7c | 1037 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1038 | ac_dummy="$PATH" |
1039 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1040 | test -z "$ac_dir" && ac_dir=. |
1041 | if test -f $ac_dir/$ac_word; then | |
1042 | ac_cv_prog_CC="gcc" | |
1043 | break | |
1044 | fi | |
1045 | done | |
1046 | IFS="$ac_save_ifs" | |
1047 | fi | |
1048 | fi | |
1049 | CC="$ac_cv_prog_CC" | |
1050 | if test -n "$CC"; then | |
1051 | echo "$ac_t""$CC" 1>&6 | |
1052 | else | |
1053 | echo "$ac_t""no" 1>&6 | |
1054 | fi | |
1055 | ||
1056 | if test -z "$CC"; then | |
1057 | # Extract the first word of "cc", so it can be a program name with args. | |
1058 | set dummy cc; ac_word=$2 | |
1059 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1060 | echo "configure:1061: checking for $ac_word" >&5 |
e9a25f70 JL |
1061 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1063 | else | |
1064 | if test -n "$CC"; then | |
1065 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1066 | else | |
cd9e5e7c | 1067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1068 | ac_prog_rejected=no |
b27d2bd5 MK |
1069 | ac_dummy="$PATH" |
1070 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1071 | test -z "$ac_dir" && ac_dir=. |
1072 | if test -f $ac_dir/$ac_word; then | |
1073 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1074 | ac_prog_rejected=yes | |
1075 | continue | |
1076 | fi | |
1077 | ac_cv_prog_CC="cc" | |
1078 | break | |
1079 | fi | |
1080 | done | |
1081 | IFS="$ac_save_ifs" | |
1082 | if test $ac_prog_rejected = yes; then | |
1083 | # We found a bogon in the path, so make sure we never use it. | |
1084 | set dummy $ac_cv_prog_CC | |
1085 | shift | |
1086 | if test $# -gt 0; then | |
1087 | # We chose a different compiler from the bogus one. | |
1088 | # However, it has the same basename, so the bogon will be chosen | |
1089 | # first if we set CC to just the basename; use the full file name. | |
1090 | shift | |
1091 | set dummy "$ac_dir/$ac_word" "$@" | |
1092 | shift | |
1093 | ac_cv_prog_CC="$@" | |
1094 | fi | |
1095 | fi | |
1096 | fi | |
1097 | fi | |
1098 | CC="$ac_cv_prog_CC" | |
1099 | if test -n "$CC"; then | |
1100 | echo "$ac_t""$CC" 1>&6 | |
1101 | else | |
1102 | echo "$ac_t""no" 1>&6 | |
1103 | fi | |
1104 | ||
cd9e5e7c MK |
1105 | if test -z "$CC"; then |
1106 | case "`uname -s`" in | |
1107 | *win32* | *WIN32*) | |
1108 | # Extract the first word of "cl", so it can be a program name with args. | |
1109 | set dummy cl; ac_word=$2 | |
1110 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1111 | echo "configure:1112: checking for $ac_word" >&5 |
cd9e5e7c MK |
1112 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1114 | else | |
1115 | if test -n "$CC"; then | |
1116 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1117 | else | |
1118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1119 | ac_dummy="$PATH" |
1120 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1121 | test -z "$ac_dir" && ac_dir=. |
1122 | if test -f $ac_dir/$ac_word; then | |
1123 | ac_cv_prog_CC="cl" | |
1124 | break | |
1125 | fi | |
1126 | done | |
1127 | IFS="$ac_save_ifs" | |
1128 | fi | |
1129 | fi | |
1130 | CC="$ac_cv_prog_CC" | |
1131 | if test -n "$CC"; then | |
1132 | echo "$ac_t""$CC" 1>&6 | |
1133 | else | |
1134 | echo "$ac_t""no" 1>&6 | |
1135 | fi | |
1136 | ;; | |
1137 | esac | |
1138 | fi | |
e9a25f70 JL |
1139 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1140 | fi | |
1141 | ||
1142 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
3ecc3258 | 1143 | echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1144 | |
1145 | ac_ext=c | |
1146 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1147 | ac_cpp='$CPP $CPPFLAGS' | |
1148 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1149 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1150 | cross_compiling=$ac_cv_prog_cc_cross |
1151 | ||
b27d2bd5 MK |
1152 | cat > conftest.$ac_ext << EOF |
1153 | ||
3ecc3258 | 1154 | #line 1155 "configure" |
e9a25f70 | 1155 | #include "confdefs.h" |
b27d2bd5 | 1156 | |
e9a25f70 JL |
1157 | main(){return(0);} |
1158 | EOF | |
3ecc3258 | 1159 | if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1160 | ac_cv_prog_cc_works=yes |
1161 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1162 | if (./conftest; exit) 2>/dev/null; then | |
1163 | ac_cv_prog_cc_cross=no | |
1164 | else | |
1165 | ac_cv_prog_cc_cross=yes | |
1166 | fi | |
1167 | else | |
1168 | echo "configure: failed program was:" >&5 | |
1169 | cat conftest.$ac_ext >&5 | |
1170 | ac_cv_prog_cc_works=no | |
1171 | fi | |
1172 | rm -fr conftest* | |
b27d2bd5 MK |
1173 | ac_ext=c |
1174 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1175 | ac_cpp='$CPP $CPPFLAGS' | |
1176 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1177 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1178 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1179 | |
1180 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1181 | if test $ac_cv_prog_cc_works = no; then | |
1182 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1183 | fi | |
1184 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3ecc3258 | 1185 | echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1186 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1187 | cross_compiling=$ac_cv_prog_cc_cross | |
1188 | ||
1189 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
3ecc3258 | 1190 | echo "configure:1191: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1191 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1193 | else | |
1194 | cat > conftest.c <<EOF | |
1195 | #ifdef __GNUC__ | |
1196 | yes; | |
1197 | #endif | |
1198 | EOF | |
3ecc3258 | 1199 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1200 | ac_cv_prog_gcc=yes |
1201 | else | |
1202 | ac_cv_prog_gcc=no | |
1203 | fi | |
1204 | fi | |
1205 | ||
1206 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1207 | ||
1208 | if test $ac_cv_prog_gcc = yes; then | |
1209 | GCC=yes | |
cd9e5e7c MK |
1210 | else |
1211 | GCC= | |
1212 | fi | |
1213 | ||
1214 | ac_test_CFLAGS="${CFLAGS+set}" | |
1215 | ac_save_CFLAGS="$CFLAGS" | |
1216 | CFLAGS= | |
1217 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
3ecc3258 | 1218 | echo "configure:1219: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1219 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1221 | else | |
1222 | echo 'void f(){}' > conftest.c | |
1223 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1224 | ac_cv_prog_cc_g=yes | |
1225 | else | |
1226 | ac_cv_prog_cc_g=no | |
1227 | fi | |
1228 | rm -f conftest* | |
1229 | ||
1230 | fi | |
1231 | ||
1232 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1233 | if test "$ac_test_CFLAGS" = set; then |
1234 | CFLAGS="$ac_save_CFLAGS" | |
1235 | elif test $ac_cv_prog_cc_g = yes; then | |
1236 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1237 | CFLAGS="-g -O2" |
1238 | else | |
cd9e5e7c | 1239 | CFLAGS="-g" |
81814e35 | 1240 | fi |
3723cad9 | 1241 | else |
cd9e5e7c MK |
1242 | if test "$GCC" = yes; then |
1243 | CFLAGS="-O2" | |
1244 | else | |
1245 | CFLAGS= | |
1246 | fi | |
e9a25f70 JL |
1247 | fi |
1248 | ||
61842080 MM |
1249 | |
1250 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1251 | # That's useful for people building cross-compilers, or just running a | |
1252 | # quick `make'. | |
1253 | if test "x$GCC" = "xyes"; then | |
1254 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1255 | else | |
1256 | stage1_warn_cflags="" | |
1257 | fi | |
1258 | ||
1259 | ||
e9a25f70 | 1260 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3ecc3258 | 1261 | echo "configure:1262: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1262 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1263 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1265 | else | |
1266 | cat > conftestmake <<\EOF | |
1267 | all: | |
1268 | @echo 'ac_maketemp="${MAKE}"' | |
1269 | EOF | |
1270 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1271 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1272 | if test -n "$ac_maketemp"; then | |
1273 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1274 | else | |
1275 | eval ac_cv_prog_make_${ac_make}_set=no | |
1276 | fi | |
1277 | rm -f conftestmake | |
1278 | fi | |
1279 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1280 | echo "$ac_t""yes" 1>&6 | |
1281 | SET_MAKE= | |
1282 | else | |
1283 | echo "$ac_t""no" 1>&6 | |
1284 | SET_MAKE="MAKE=${MAKE-make}" | |
1285 | fi | |
1286 | ||
1287 | ||
ab339d62 | 1288 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
3ecc3258 | 1289 | echo "configure:1290: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1290 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1291 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1292 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1293 | else |
3ccc3a56 | 1294 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1295 | fi |
1296 | else | |
1297 | echo "$ac_t""no" 1>&6 | |
1298 | fi | |
1299 | ||
1300 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
3ecc3258 | 1301 | echo "configure:1302: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1302 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1303 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1304 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1305 | else |
3ccc3a56 | 1306 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1307 | fi |
1308 | else | |
1309 | echo "$ac_t""no" 1>&6 | |
1310 | fi | |
1311 | ||
861bb6c1 JL |
1312 | # Find some useful tools |
1313 | for ac_prog in mawk gawk nawk awk | |
1314 | do | |
1315 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1316 | set dummy $ac_prog; ac_word=$2 | |
1317 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1318 | echo "configure:1319: checking for $ac_word" >&5 |
861bb6c1 JL |
1319 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1321 | else | |
1322 | if test -n "$AWK"; then | |
1323 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1324 | else | |
cd9e5e7c | 1325 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1326 | ac_dummy="$PATH" |
1327 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1328 | test -z "$ac_dir" && ac_dir=. |
1329 | if test -f $ac_dir/$ac_word; then | |
1330 | ac_cv_prog_AWK="$ac_prog" | |
1331 | break | |
1332 | fi | |
1333 | done | |
1334 | IFS="$ac_save_ifs" | |
1335 | fi | |
1336 | fi | |
1337 | AWK="$ac_cv_prog_AWK" | |
1338 | if test -n "$AWK"; then | |
1339 | echo "$ac_t""$AWK" 1>&6 | |
1340 | else | |
1341 | echo "$ac_t""no" 1>&6 | |
1342 | fi | |
1343 | ||
1344 | test -n "$AWK" && break | |
1345 | done | |
1346 | ||
1347 | # Extract the first word of "flex", so it can be a program name with args. | |
1348 | set dummy flex; ac_word=$2 | |
1349 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1350 | echo "configure:1351: checking for $ac_word" >&5 |
861bb6c1 JL |
1351 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1353 | else | |
1354 | if test -n "$LEX"; then | |
1355 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1356 | else | |
cd9e5e7c | 1357 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1358 | ac_dummy="$PATH" |
1359 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1360 | test -z "$ac_dir" && ac_dir=. |
1361 | if test -f $ac_dir/$ac_word; then | |
1362 | ac_cv_prog_LEX="flex" | |
1363 | break | |
1364 | fi | |
1365 | done | |
1366 | IFS="$ac_save_ifs" | |
1367 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1368 | fi | |
1369 | fi | |
1370 | LEX="$ac_cv_prog_LEX" | |
1371 | if test -n "$LEX"; then | |
1372 | echo "$ac_t""$LEX" 1>&6 | |
1373 | else | |
1374 | echo "$ac_t""no" 1>&6 | |
1375 | fi | |
1376 | ||
1377 | if test -z "$LEXLIB" | |
1378 | then | |
1379 | case "$LEX" in | |
1380 | flex*) ac_lib=fl ;; | |
1381 | *) ac_lib=l ;; | |
1382 | esac | |
1383 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
3ecc3258 | 1384 | echo "configure:1385: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1385 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1388 | else | |
1389 | ac_save_LIBS="$LIBS" | |
1390 | LIBS="-l$ac_lib $LIBS" | |
1391 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1392 | #line 1393 "configure" |
861bb6c1 JL |
1393 | #include "confdefs.h" |
1394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1395 | /* We use char because int might match the return type of a gcc2 | |
1396 | builtin and then its argument prototype would still apply. */ | |
1397 | char yywrap(); | |
1398 | ||
1399 | int main() { | |
1400 | yywrap() | |
1401 | ; return 0; } | |
1402 | EOF | |
3ecc3258 | 1403 | if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1404 | rm -rf conftest* |
1405 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1406 | else | |
1407 | echo "configure: failed program was:" >&5 | |
1408 | cat conftest.$ac_ext >&5 | |
1409 | rm -rf conftest* | |
1410 | eval "ac_cv_lib_$ac_lib_var=no" | |
1411 | fi | |
1412 | rm -f conftest* | |
1413 | LIBS="$ac_save_LIBS" | |
1414 | ||
1415 | fi | |
1416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1417 | echo "$ac_t""yes" 1>&6 | |
1418 | LEXLIB="-l$ac_lib" | |
1419 | else | |
1420 | echo "$ac_t""no" 1>&6 | |
1421 | fi | |
1422 | ||
1423 | fi | |
1424 | ||
0a4b6309 | 1425 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
3ecc3258 | 1426 | echo "configure:1427: checking whether ln works" >&5 |
0a4b6309 RL |
1427 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1429 | else | |
1430 | rm -f conftestdata_t | |
1431 | echo >conftestdata_f | |
1432 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1433 | then | |
1434 | gcc_cv_prog_LN="ln" | |
1435 | else | |
1436 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1437 | then | |
1438 | gcc_cv_prog_LN="ln -s" | |
1439 | else | |
1440 | gcc_cv_prog_LN=cp | |
1441 | fi | |
1442 | fi | |
1443 | rm -f conftestdata_f conftestdata_t | |
1444 | ||
1445 | fi | |
1446 | LN="$gcc_cv_prog_LN" | |
1447 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1448 | echo "$ac_t""yes" 1>&6 | |
1449 | else | |
1450 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1451 | echo "$ac_t""no, using ln -s" 1>&6 | |
1452 | else | |
1453 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1454 | fi | |
1455 | fi | |
1456 | ||
1457 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
3ecc3258 | 1458 | echo "configure:1459: checking whether ln -s works" >&5 |
0a4b6309 RL |
1459 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1461 | else | |
1462 | rm -f conftestdata_t | |
1463 | echo >conftestdata_f | |
1464 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1465 | then | |
1466 | gcc_cv_prog_LN_S="ln -s" | |
1467 | else | |
1468 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1469 | then | |
1470 | gcc_cv_prog_LN_S=ln | |
1471 | else | |
1472 | gcc_cv_prog_LN_S=cp | |
1473 | fi | |
1474 | fi | |
1475 | rm -f conftestdata_f conftestdata_t | |
1476 | ||
1477 | fi | |
1478 | LN_S="$gcc_cv_prog_LN_S" | |
1479 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1480 | echo "$ac_t""yes" 1>&6 | |
1481 | else | |
1482 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1483 | echo "$ac_t""no, using ln" 1>&6 | |
1484 | else | |
1485 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1486 | fi | |
1487 | fi | |
1488 | ||
1489 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
3ecc3258 | 1490 | echo "configure:1491: checking for volatile" >&5 |
0a4b6309 RL |
1491 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1493 | else | |
1494 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1495 | #line 1496 "configure" |
0a4b6309 RL |
1496 | #include "confdefs.h" |
1497 | ||
1498 | int main() { | |
1499 | volatile int foo; | |
1500 | ; return 0; } | |
1501 | EOF | |
3ecc3258 | 1502 | if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1503 | rm -rf conftest* |
1504 | gcc_cv_c_volatile=yes | |
1505 | else | |
1506 | echo "configure: failed program was:" >&5 | |
1507 | cat conftest.$ac_ext >&5 | |
1508 | rm -rf conftest* | |
1509 | gcc_cv_c_volatile=no | |
1510 | fi | |
1511 | rm -f conftest* | |
1512 | fi | |
1513 | ||
1514 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1515 | if test $gcc_cv_c_volatile = yes ; then | |
1516 | cat >> confdefs.h <<\EOF | |
1517 | #define HAVE_VOLATILE 1 | |
1518 | EOF | |
1519 | ||
1520 | fi | |
1521 | ||
861bb6c1 JL |
1522 | # Extract the first word of "ranlib", so it can be a program name with args. |
1523 | set dummy ranlib; ac_word=$2 | |
1524 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1525 | echo "configure:1526: checking for $ac_word" >&5 |
861bb6c1 JL |
1526 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1528 | else | |
1529 | if test -n "$RANLIB"; then | |
1530 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1531 | else | |
cd9e5e7c | 1532 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1533 | ac_dummy="$PATH" |
1534 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1535 | test -z "$ac_dir" && ac_dir=. |
1536 | if test -f $ac_dir/$ac_word; then | |
1537 | ac_cv_prog_RANLIB="ranlib" | |
1538 | break | |
1539 | fi | |
1540 | done | |
1541 | IFS="$ac_save_ifs" | |
1542 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1543 | fi | |
1544 | fi | |
1545 | RANLIB="$ac_cv_prog_RANLIB" | |
1546 | if test -n "$RANLIB"; then | |
1547 | echo "$ac_t""$RANLIB" 1>&6 | |
1548 | else | |
1549 | echo "$ac_t""no" 1>&6 | |
1550 | fi | |
1551 | ||
1552 | for ac_prog in 'bison -y' byacc | |
1553 | do | |
1554 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1555 | set dummy $ac_prog; ac_word=$2 | |
1556 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 1557 | echo "configure:1558: checking for $ac_word" >&5 |
861bb6c1 JL |
1558 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1560 | else | |
1561 | if test -n "$YACC"; then | |
1562 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1563 | else | |
cd9e5e7c | 1564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1565 | ac_dummy="$PATH" |
1566 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1567 | test -z "$ac_dir" && ac_dir=. |
1568 | if test -f $ac_dir/$ac_word; then | |
1569 | ac_cv_prog_YACC="$ac_prog" | |
1570 | break | |
1571 | fi | |
1572 | done | |
1573 | IFS="$ac_save_ifs" | |
1574 | fi | |
1575 | fi | |
1576 | YACC="$ac_cv_prog_YACC" | |
1577 | if test -n "$YACC"; then | |
1578 | echo "$ac_t""$YACC" 1>&6 | |
1579 | else | |
1580 | echo "$ac_t""no" 1>&6 | |
1581 | fi | |
1582 | ||
1583 | test -n "$YACC" && break | |
1584 | done | |
1585 | test -n "$YACC" || YACC="yacc" | |
1586 | ||
0a4b6309 RL |
1587 | # Find a good install program. We prefer a C program (faster), |
1588 | # so one script is as good as another. But avoid the broken or | |
1589 | # incompatible versions: | |
1590 | # SysV /etc/install, /usr/sbin/install | |
1591 | # SunOS /usr/etc/install | |
1592 | # IRIX /sbin/install | |
1593 | # AIX /bin/install | |
1594 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1595 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1596 | # ./install, which can be erroneously created by make from ./install.sh. | |
1597 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
3ecc3258 | 1598 | echo "configure:1599: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1599 | if test -z "$INSTALL"; then |
1600 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1602 | else | |
1603 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1604 | for ac_dir in $PATH; do | |
1605 | # Account for people who put trailing slashes in PATH elements. | |
1606 | case "$ac_dir/" in | |
1607 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1608 | *) | |
1609 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1610 | for ac_prog in ginstall scoinst install; do | |
1611 | if test -f $ac_dir/$ac_prog; then | |
1612 | if test $ac_prog = install && | |
1613 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1614 | # AIX install. It has an incompatible calling convention. | |
1615 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1616 | : | |
1617 | else | |
1618 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1619 | break 2 | |
1620 | fi | |
1621 | fi | |
1622 | done | |
1623 | ;; | |
1624 | esac | |
1625 | done | |
1626 | IFS="$ac_save_IFS" | |
1627 | ||
1628 | fi | |
1629 | if test "${ac_cv_path_install+set}" = set; then | |
1630 | INSTALL="$ac_cv_path_install" | |
1631 | else | |
1632 | # As a last resort, use the slow shell script. We don't cache a | |
1633 | # path for INSTALL within a source directory, because that will | |
1634 | # break other packages using the cache if that directory is | |
1635 | # removed, or if the path is relative. | |
1636 | INSTALL="$ac_install_sh" | |
1637 | fi | |
1638 | fi | |
1639 | echo "$ac_t""$INSTALL" 1>&6 | |
1640 | ||
1641 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1642 | # It thinks the first close brace ends the variable substitution. | |
1643 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1644 | ||
1645 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1646 | ||
861bb6c1 | 1647 | |
861bb6c1 | 1648 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
3ecc3258 | 1649 | echo "configure:1650: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1650 | # On Suns, sometimes $CPP names a directory. |
1651 | if test -n "$CPP" && test -d "$CPP"; then | |
1652 | CPP= | |
1653 | fi | |
1654 | if test -z "$CPP"; then | |
1655 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1657 | else | |
1658 | # This must be in double quotes, not single quotes, because CPP may get | |
1659 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1660 | CPP="${CC-cc} -E" | |
1661 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1662 | # not just through cpp. | |
1663 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1664 | #line 1665 "configure" |
861bb6c1 JL |
1665 | #include "confdefs.h" |
1666 | #include <assert.h> | |
1667 | Syntax Error | |
1668 | EOF | |
1669 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 1670 | { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1671 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1672 | if test -z "$ac_err"; then |
1673 | : | |
1674 | else | |
1675 | echo "$ac_err" >&5 | |
1676 | echo "configure: failed program was:" >&5 | |
1677 | cat conftest.$ac_ext >&5 | |
1678 | rm -rf conftest* | |
1679 | CPP="${CC-cc} -E -traditional-cpp" | |
1680 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1681 | #line 1682 "configure" |
cd9e5e7c MK |
1682 | #include "confdefs.h" |
1683 | #include <assert.h> | |
1684 | Syntax Error | |
1685 | EOF | |
1686 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 1687 | { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1688 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1689 | if test -z "$ac_err"; then | |
1690 | : | |
1691 | else | |
1692 | echo "$ac_err" >&5 | |
1693 | echo "configure: failed program was:" >&5 | |
1694 | cat conftest.$ac_ext >&5 | |
1695 | rm -rf conftest* | |
1696 | CPP="${CC-cc} -nologo -E" | |
1697 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1698 | #line 1699 "configure" |
20fced2c MM |
1699 | #include "confdefs.h" |
1700 | #include <assert.h> | |
1701 | Syntax Error | |
1702 | EOF | |
1703 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 1704 | { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1705 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1706 | if test -z "$ac_err"; then |
1707 | : | |
1708 | else | |
1709 | echo "$ac_err" >&5 | |
1710 | echo "configure: failed program was:" >&5 | |
1711 | cat conftest.$ac_ext >&5 | |
1712 | rm -rf conftest* | |
1713 | CPP=/lib/cpp | |
1714 | fi | |
1715 | rm -f conftest* | |
1716 | fi | |
cd9e5e7c MK |
1717 | rm -f conftest* |
1718 | fi | |
861bb6c1 JL |
1719 | rm -f conftest* |
1720 | ac_cv_prog_CPP="$CPP" | |
1721 | fi | |
1722 | CPP="$ac_cv_prog_CPP" | |
1723 | else | |
1724 | ac_cv_prog_CPP="$CPP" | |
1725 | fi | |
1726 | echo "$ac_t""$CPP" 1>&6 | |
1727 | ||
956d6950 | 1728 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
3ecc3258 | 1729 | echo "configure:1730: checking for ANSI C header files" >&5 |
956d6950 JL |
1730 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1732 | else | |
1733 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1734 | #line 1735 "configure" |
956d6950 JL |
1735 | #include "confdefs.h" |
1736 | #include <stdlib.h> | |
1737 | #include <stdarg.h> | |
1738 | #include <string.h> | |
1739 | #include <float.h> | |
1740 | EOF | |
1741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 1742 | { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1744 | if test -z "$ac_err"; then |
1745 | rm -rf conftest* | |
1746 | ac_cv_header_stdc=yes | |
1747 | else | |
1748 | echo "$ac_err" >&5 | |
1749 | echo "configure: failed program was:" >&5 | |
1750 | cat conftest.$ac_ext >&5 | |
1751 | rm -rf conftest* | |
1752 | ac_cv_header_stdc=no | |
1753 | fi | |
1754 | rm -f conftest* | |
1755 | ||
1756 | if test $ac_cv_header_stdc = yes; then | |
1757 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1758 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1759 | #line 1760 "configure" |
956d6950 JL |
1760 | #include "confdefs.h" |
1761 | #include <string.h> | |
1762 | EOF | |
1763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1764 | egrep "memchr" >/dev/null 2>&1; then | |
1765 | : | |
1766 | else | |
1767 | rm -rf conftest* | |
1768 | ac_cv_header_stdc=no | |
1769 | fi | |
1770 | rm -f conftest* | |
1771 | ||
1772 | fi | |
1773 | ||
1774 | if test $ac_cv_header_stdc = yes; then | |
1775 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1776 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1777 | #line 1778 "configure" |
956d6950 JL |
1778 | #include "confdefs.h" |
1779 | #include <stdlib.h> | |
1780 | EOF | |
1781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1782 | egrep "free" >/dev/null 2>&1; then | |
1783 | : | |
1784 | else | |
1785 | rm -rf conftest* | |
1786 | ac_cv_header_stdc=no | |
1787 | fi | |
1788 | rm -f conftest* | |
1789 | ||
1790 | fi | |
1791 | ||
1792 | if test $ac_cv_header_stdc = yes; then | |
1793 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1794 | if test "$cross_compiling" = yes; then | |
1795 | : | |
1796 | else | |
1797 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1798 | #line 1799 "configure" |
956d6950 JL |
1799 | #include "confdefs.h" |
1800 | #include <ctype.h> | |
1801 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1802 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1803 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1804 | int main () { int i; for (i = 0; i < 256; i++) | |
1805 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1806 | exit (0); } | |
1807 | ||
1808 | EOF | |
3ecc3258 | 1809 | if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1810 | then |
1811 | : | |
1812 | else | |
1813 | echo "configure: failed program was:" >&5 | |
1814 | cat conftest.$ac_ext >&5 | |
1815 | rm -fr conftest* | |
1816 | ac_cv_header_stdc=no | |
1817 | fi | |
1818 | rm -fr conftest* | |
1819 | fi | |
1820 | ||
1821 | fi | |
1822 | fi | |
1823 | ||
1824 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1825 | if test $ac_cv_header_stdc = yes; then | |
1826 | cat >> confdefs.h <<\EOF | |
1827 | #define STDC_HEADERS 1 | |
1828 | EOF | |
1829 | ||
1830 | fi | |
1831 | ||
1832 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
3ecc3258 | 1833 | echo "configure:1834: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1834 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1836 | else | |
1837 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1838 | #line 1839 "configure" |
956d6950 JL |
1839 | #include "confdefs.h" |
1840 | #include <sys/types.h> | |
1841 | #include <sys/time.h> | |
1842 | #include <time.h> | |
1843 | int main() { | |
1844 | struct tm *tp; | |
1845 | ; return 0; } | |
1846 | EOF | |
3ecc3258 | 1847 | if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1848 | rm -rf conftest* |
1849 | ac_cv_header_time=yes | |
1850 | else | |
1851 | echo "configure: failed program was:" >&5 | |
1852 | cat conftest.$ac_ext >&5 | |
1853 | rm -rf conftest* | |
1854 | ac_cv_header_time=no | |
1855 | fi | |
1856 | rm -f conftest* | |
1857 | fi | |
1858 | ||
1859 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1860 | if test $ac_cv_header_time = yes; then | |
1861 | cat >> confdefs.h <<\EOF | |
1862 | #define TIME_WITH_SYS_TIME 1 | |
1863 | EOF | |
1864 | ||
1865 | fi | |
1866 | ||
0a4b6309 | 1867 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
3ecc3258 | 1868 | echo "configure:1869: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1869 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1871 | else | |
1872 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1873 | #line 1874 "configure" |
0a4b6309 RL |
1874 | #include "confdefs.h" |
1875 | #include <string.h> | |
1876 | #include <strings.h> | |
1877 | int main() { | |
1878 | ||
1879 | ; return 0; } | |
1880 | EOF | |
3ecc3258 | 1881 | if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1882 | rm -rf conftest* |
1883 | gcc_cv_header_string=yes | |
1884 | else | |
1885 | echo "configure: failed program was:" >&5 | |
1886 | cat conftest.$ac_ext >&5 | |
1887 | rm -rf conftest* | |
1888 | gcc_cv_header_string=no | |
1889 | fi | |
1890 | rm -f conftest* | |
1891 | fi | |
1892 | ||
1893 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1894 | if test $gcc_cv_header_string = yes; then | |
1895 | cat >> confdefs.h <<\EOF | |
1896 | #define STRING_WITH_STRINGS 1 | |
1897 | EOF | |
1898 | ||
1899 | fi | |
1900 | ||
e9831ca0 | 1901 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
3ecc3258 | 1902 | echo "configure:1903: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1903 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1905 | else | |
1906 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1907 | #line 1908 "configure" |
e9831ca0 KG |
1908 | #include "confdefs.h" |
1909 | #include <sys/types.h> | |
1910 | #include <sys/wait.h> | |
1911 | #ifndef WEXITSTATUS | |
1912 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1913 | #endif | |
1914 | #ifndef WIFEXITED | |
1915 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1916 | #endif | |
1917 | int main() { | |
1918 | int s; | |
1919 | wait (&s); | |
1920 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1921 | ; return 0; } | |
1922 | EOF | |
3ecc3258 | 1923 | if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1924 | rm -rf conftest* |
1925 | ac_cv_header_sys_wait_h=yes | |
1926 | else | |
1927 | echo "configure: failed program was:" >&5 | |
1928 | cat conftest.$ac_ext >&5 | |
1929 | rm -rf conftest* | |
1930 | ac_cv_header_sys_wait_h=no | |
1931 | fi | |
1932 | rm -f conftest* | |
1933 | fi | |
1934 | ||
1935 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1936 | if test $ac_cv_header_sys_wait_h = yes; then | |
1937 | cat >> confdefs.h <<\EOF | |
1938 | #define HAVE_SYS_WAIT_H 1 | |
1939 | EOF | |
1940 | ||
1941 | fi | |
1942 | ||
75923b2f | 1943 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h |
861bb6c1 JL |
1944 | do |
1945 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1946 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3ecc3258 | 1947 | echo "configure:1948: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1948 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1950 | else | |
1951 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1952 | #line 1953 "configure" |
861bb6c1 JL |
1953 | #include "confdefs.h" |
1954 | #include <$ac_hdr> | |
1955 | EOF | |
956d6950 | 1956 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3ecc3258 | 1957 | { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1958 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1959 | if test -z "$ac_err"; then |
1960 | rm -rf conftest* | |
1961 | eval "ac_cv_header_$ac_safe=yes" | |
1962 | else | |
1963 | echo "$ac_err" >&5 | |
1964 | echo "configure: failed program was:" >&5 | |
1965 | cat conftest.$ac_ext >&5 | |
1966 | rm -rf conftest* | |
1967 | eval "ac_cv_header_$ac_safe=no" | |
1968 | fi | |
1969 | rm -f conftest* | |
1970 | fi | |
1971 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1972 | echo "$ac_t""yes" 1>&6 | |
1973 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1974 | cat >> confdefs.h <<EOF | |
1975 | #define $ac_tr_hdr 1 | |
1976 | EOF | |
1977 | ||
1978 | else | |
1979 | echo "$ac_t""no" 1>&6 | |
1980 | fi | |
1981 | done | |
1982 | ||
1983 | ||
f24af81b TT |
1984 | # Check for thread headers. |
1985 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1986 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
3ecc3258 | 1987 | echo "configure:1988: checking for thread.h" >&5 |
f24af81b TT |
1988 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1990 | else | |
1991 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 1992 | #line 1993 "configure" |
f24af81b TT |
1993 | #include "confdefs.h" |
1994 | #include <thread.h> | |
1995 | EOF | |
1996 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 1997 | { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1998 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
1999 | if test -z "$ac_err"; then |
2000 | rm -rf conftest* | |
2001 | eval "ac_cv_header_$ac_safe=yes" | |
2002 | else | |
2003 | echo "$ac_err" >&5 | |
2004 | echo "configure: failed program was:" >&5 | |
2005 | cat conftest.$ac_ext >&5 | |
2006 | rm -rf conftest* | |
2007 | eval "ac_cv_header_$ac_safe=no" | |
2008 | fi | |
2009 | rm -f conftest* | |
2010 | fi | |
2011 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2012 | echo "$ac_t""yes" 1>&6 | |
2013 | have_thread_h=yes | |
2014 | else | |
2015 | echo "$ac_t""no" 1>&6 | |
2016 | have_thread_h= | |
2017 | fi | |
2018 | ||
2019 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2020 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
3ecc3258 | 2021 | echo "configure:2022: checking for pthread.h" >&5 |
f24af81b TT |
2022 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2024 | else | |
2025 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2026 | #line 2027 "configure" |
f24af81b TT |
2027 | #include "confdefs.h" |
2028 | #include <pthread.h> | |
2029 | EOF | |
2030 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 2031 | { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2032 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2033 | if test -z "$ac_err"; then |
2034 | rm -rf conftest* | |
2035 | eval "ac_cv_header_$ac_safe=yes" | |
2036 | else | |
2037 | echo "$ac_err" >&5 | |
2038 | echo "configure: failed program was:" >&5 | |
2039 | cat conftest.$ac_ext >&5 | |
2040 | rm -rf conftest* | |
2041 | eval "ac_cv_header_$ac_safe=no" | |
2042 | fi | |
2043 | rm -f conftest* | |
2044 | fi | |
2045 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2046 | echo "$ac_t""yes" 1>&6 | |
2047 | have_pthread_h=yes | |
2048 | else | |
2049 | echo "$ac_t""no" 1>&6 | |
2050 | have_pthread_h= | |
2051 | fi | |
2052 | ||
2053 | ||
bcf12124 JL |
2054 | # See if GNAT has been installed |
2055 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2056 | set dummy gnatbind; ac_word=$2 | |
2057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3ecc3258 | 2058 | echo "configure:2059: checking for $ac_word" >&5 |
bcf12124 JL |
2059 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2061 | else | |
2062 | if test -n "$gnat"; then | |
2063 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2064 | else | |
cd9e5e7c | 2065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2066 | ac_dummy="$PATH" |
2067 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2068 | test -z "$ac_dir" && ac_dir=. |
2069 | if test -f $ac_dir/$ac_word; then | |
2070 | ac_cv_prog_gnat="yes" | |
2071 | break | |
2072 | fi | |
2073 | done | |
2074 | IFS="$ac_save_ifs" | |
2075 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2076 | fi | |
2077 | fi | |
2078 | gnat="$ac_cv_prog_gnat" | |
2079 | if test -n "$gnat"; then | |
2080 | echo "$ac_t""$gnat" 1>&6 | |
2081 | else | |
2082 | echo "$ac_t""no" 1>&6 | |
2083 | fi | |
2084 | ||
2085 | ||
76844337 RH |
2086 | # See if the system preprocessor understands the ANSI C preprocessor |
2087 | # stringification operator. | |
2088 | echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 | |
3ecc3258 | 2089 | echo "configure:2090: checking whether cpp understands the stringify operator" >&5 |
76844337 RH |
2090 | if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then |
2091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2092 | else | |
2093 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2094 | #line 2095 "configure" |
76844337 RH |
2095 | #include "confdefs.h" |
2096 | ||
2097 | int main() { | |
2098 | #define S(x) #x | |
2099 | char *test = S(foo); | |
2100 | ; return 0; } | |
2101 | EOF | |
3ecc3258 | 2102 | if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
76844337 RH |
2103 | rm -rf conftest* |
2104 | gcc_cv_c_have_stringify=yes | |
2105 | else | |
2106 | echo "configure: failed program was:" >&5 | |
2107 | cat conftest.$ac_ext >&5 | |
2108 | rm -rf conftest* | |
2109 | gcc_cv_c_have_stringify=no | |
2110 | fi | |
2111 | rm -f conftest* | |
2112 | fi | |
2113 | ||
2114 | echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 | |
2115 | if test $gcc_cv_c_have_stringify = yes; then | |
2116 | cat >> confdefs.h <<\EOF | |
2117 | #define HAVE_CPP_STRINGIFY 1 | |
2118 | EOF | |
2119 | ||
2120 | fi | |
2121 | ||
956d6950 JL |
2122 | # Use <inttypes.h> only if it exists, |
2123 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2124 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
3ecc3258 | 2125 | echo "configure:2126: checking for inttypes.h" >&5 |
956d6950 JL |
2126 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2128 | else | |
2129 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2130 | #line 2131 "configure" |
956d6950 JL |
2131 | #include "confdefs.h" |
2132 | #include <sys/types.h> | |
2133 | #include <inttypes.h> | |
2134 | int main() { | |
2135 | intmax_t i = -1; | |
2136 | ; return 0; } | |
2137 | EOF | |
3ecc3258 | 2138 | if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2139 | rm -rf conftest* |
0056a9b5 | 2140 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2141 | else |
2142 | echo "configure: failed program was:" >&5 | |
2143 | cat conftest.$ac_ext >&5 | |
2144 | rm -rf conftest* | |
2145 | gcc_cv_header_inttypes_h=no | |
2146 | fi | |
2147 | rm -f conftest* | |
2148 | fi | |
2149 | ||
2150 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2151 | if test $gcc_cv_header_inttypes_h = yes; then |
2152 | cat >> confdefs.h <<\EOF | |
2153 | #define HAVE_INTTYPES_H 1 | |
2154 | EOF | |
2155 | ||
2156 | fi | |
956d6950 | 2157 | |
76b4b31e | 2158 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 2159 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 UD |
2160 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
2161 | fputs_unlocked | |
956d6950 JL |
2162 | do |
2163 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3ecc3258 | 2164 | echo "configure:2165: checking for $ac_func" >&5 |
956d6950 JL |
2165 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2167 | else | |
2168 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2169 | #line 2170 "configure" |
956d6950 JL |
2170 | #include "confdefs.h" |
2171 | /* System header to define __stub macros and hopefully few prototypes, | |
2172 | which can conflict with char $ac_func(); below. */ | |
2173 | #include <assert.h> | |
2174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2175 | /* We use char because int might match the return type of a gcc2 | |
2176 | builtin and then its argument prototype would still apply. */ | |
2177 | char $ac_func(); | |
2178 | ||
2179 | int main() { | |
2180 | ||
2181 | /* The GNU C library defines this for functions which it implements | |
2182 | to always fail with ENOSYS. Some functions are actually named | |
2183 | something starting with __ and the normal name is an alias. */ | |
2184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2185 | choke me | |
2186 | #else | |
3ecc3258 | 2187 | $ac_func(); |
956d6950 JL |
2188 | #endif |
2189 | ||
2190 | ; return 0; } | |
2191 | EOF | |
3ecc3258 | 2192 | if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2193 | rm -rf conftest* |
2194 | eval "ac_cv_func_$ac_func=yes" | |
2195 | else | |
2196 | echo "configure: failed program was:" >&5 | |
2197 | cat conftest.$ac_ext >&5 | |
2198 | rm -rf conftest* | |
2199 | eval "ac_cv_func_$ac_func=no" | |
2200 | fi | |
2201 | rm -f conftest* | |
2202 | fi | |
2203 | ||
2204 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2205 | echo "$ac_t""yes" 1>&6 | |
2206 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2207 | cat >> confdefs.h <<EOF | |
2208 | #define $ac_tr_func 1 | |
2209 | EOF | |
2210 | ||
2211 | else | |
2212 | echo "$ac_t""no" 1>&6 | |
2213 | fi | |
2214 | done | |
2215 | ||
6885fc87 | 2216 | |
0b9d02c6 JL |
2217 | # Make sure wchar_t is available |
2218 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2219 | ||
0a4b6309 | 2220 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
3ecc3258 | 2221 | echo "configure:2222: checking for vprintf" >&5 |
0a4b6309 RL |
2222 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2224 | else | |
2225 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2226 | #line 2227 "configure" |
0a4b6309 RL |
2227 | #include "confdefs.h" |
2228 | /* System header to define __stub macros and hopefully few prototypes, | |
2229 | which can conflict with char vprintf(); below. */ | |
2230 | #include <assert.h> | |
2231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2232 | /* We use char because int might match the return type of a gcc2 | |
2233 | builtin and then its argument prototype would still apply. */ | |
2234 | char vprintf(); | |
2235 | ||
2236 | int main() { | |
2237 | ||
2238 | /* The GNU C library defines this for functions which it implements | |
2239 | to always fail with ENOSYS. Some functions are actually named | |
2240 | something starting with __ and the normal name is an alias. */ | |
2241 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2242 | choke me | |
2243 | #else | |
3ecc3258 | 2244 | vprintf(); |
0a4b6309 RL |
2245 | #endif |
2246 | ||
2247 | ; return 0; } | |
2248 | EOF | |
3ecc3258 | 2249 | if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2250 | rm -rf conftest* |
2251 | eval "ac_cv_func_vprintf=yes" | |
2252 | else | |
2253 | echo "configure: failed program was:" >&5 | |
2254 | cat conftest.$ac_ext >&5 | |
2255 | rm -rf conftest* | |
2256 | eval "ac_cv_func_vprintf=no" | |
2257 | fi | |
2258 | rm -f conftest* | |
2259 | fi | |
2260 | ||
2261 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2262 | echo "$ac_t""yes" 1>&6 | |
2263 | cat >> confdefs.h <<\EOF | |
2264 | #define HAVE_VPRINTF 1 | |
2265 | EOF | |
2266 | ||
2267 | else | |
2268 | echo "$ac_t""no" 1>&6 | |
2269 | fi | |
8fa1f09f | 2270 | |
0a4b6309 RL |
2271 | if test "$ac_cv_func_vprintf" != yes; then |
2272 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
3ecc3258 | 2273 | echo "configure:2274: checking for _doprnt" >&5 |
0a4b6309 RL |
2274 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2276 | else | |
2277 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2278 | #line 2279 "configure" |
0a4b6309 RL |
2279 | #include "confdefs.h" |
2280 | /* System header to define __stub macros and hopefully few prototypes, | |
2281 | which can conflict with char _doprnt(); below. */ | |
2282 | #include <assert.h> | |
2283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2284 | /* We use char because int might match the return type of a gcc2 | |
2285 | builtin and then its argument prototype would still apply. */ | |
2286 | char _doprnt(); | |
2287 | ||
2288 | int main() { | |
2289 | ||
2290 | /* The GNU C library defines this for functions which it implements | |
2291 | to always fail with ENOSYS. Some functions are actually named | |
2292 | something starting with __ and the normal name is an alias. */ | |
2293 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2294 | choke me | |
2295 | #else | |
3ecc3258 | 2296 | _doprnt(); |
0a4b6309 RL |
2297 | #endif |
2298 | ||
2299 | ; return 0; } | |
2300 | EOF | |
3ecc3258 | 2301 | if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2302 | rm -rf conftest* |
2303 | eval "ac_cv_func__doprnt=yes" | |
2304 | else | |
2305 | echo "configure: failed program was:" >&5 | |
2306 | cat conftest.$ac_ext >&5 | |
2307 | rm -rf conftest* | |
2308 | eval "ac_cv_func__doprnt=no" | |
2309 | fi | |
2310 | rm -f conftest* | |
2311 | fi | |
2312 | ||
2313 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2314 | echo "$ac_t""yes" 1>&6 | |
2315 | cat >> confdefs.h <<\EOF | |
2316 | #define HAVE_DOPRNT 1 | |
2317 | EOF | |
2318 | ||
2319 | else | |
2320 | echo "$ac_t""no" 1>&6 | |
2321 | fi | |
2322 | ||
2323 | fi | |
2324 | ||
2325 | vfprintf= | |
2326 | doprint= | |
2327 | if test $ac_cv_func_vprintf != yes ; then | |
2328 | vfprintf=vfprintf.o | |
2329 | if test $ac_cv_func__doprnt != yes ; then | |
2330 | doprint=doprint.o | |
2331 | fi | |
2332 | fi | |
2333 | ||
2334 | ||
2335 | ||
2336 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
3ecc3258 | 2337 | echo "configure:2338: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2338 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2340 | else | |
2341 | if test "$cross_compiling" = yes; then | |
2342 | gcc_cv_func_printf_ptr=no | |
2343 | else | |
2344 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2345 | #line 2346 "configure" |
0a4b6309 RL |
2346 | #include "confdefs.h" |
2347 | #include <stdio.h> | |
2348 | ||
2349 | main() | |
2350 | { | |
2351 | char buf[64]; | |
2352 | char *p = buf, *q = NULL; | |
2353 | sprintf(buf, "%p", p); | |
2354 | sscanf(buf, "%p", &q); | |
2355 | exit (p != q); | |
2356 | } | |
2357 | EOF | |
3ecc3258 | 2358 | if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2359 | then |
2360 | gcc_cv_func_printf_ptr=yes | |
2361 | else | |
2362 | echo "configure: failed program was:" >&5 | |
2363 | cat conftest.$ac_ext >&5 | |
2364 | rm -fr conftest* | |
2365 | gcc_cv_func_printf_ptr=no | |
2366 | fi | |
2367 | rm -fr conftest* | |
2368 | fi | |
2369 | ||
2370 | rm -f core core.* *.core | |
2371 | fi | |
2372 | ||
2373 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2374 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2375 | cat >> confdefs.h <<\EOF | |
2376 | #define HAVE_PRINTF_PTR 1 | |
2377 | EOF | |
2378 | ||
2379 | fi | |
2380 | ||
b27d2bd5 MK |
2381 | |
2382 | case "${host}" in | |
2383 | *-*-uwin*) | |
2384 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2385 | # can hang configure; on other versions, vfork exists just as a stub. | |
2386 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2387 | ac_cv_func_vfork_works=no | |
2388 | ;; | |
2389 | esac | |
c375c43b | 2390 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3ecc3258 | 2391 | echo "configure:2392: checking for pid_t" >&5 |
c375c43b KG |
2392 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2394 | else | |
2395 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2396 | #line 2397 "configure" |
c375c43b KG |
2397 | #include "confdefs.h" |
2398 | #include <sys/types.h> | |
2399 | #if STDC_HEADERS | |
2400 | #include <stdlib.h> | |
2401 | #include <stddef.h> | |
2402 | #endif | |
2403 | EOF | |
2404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2405 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2406 | rm -rf conftest* |
2407 | ac_cv_type_pid_t=yes | |
2408 | else | |
2409 | rm -rf conftest* | |
2410 | ac_cv_type_pid_t=no | |
2411 | fi | |
2412 | rm -f conftest* | |
2413 | ||
2414 | fi | |
2415 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2416 | if test $ac_cv_type_pid_t = no; then | |
2417 | cat >> confdefs.h <<\EOF | |
2418 | #define pid_t int | |
2419 | EOF | |
2420 | ||
2421 | fi | |
2422 | ||
2423 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2424 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
3ecc3258 | 2425 | echo "configure:2426: checking for vfork.h" >&5 |
c375c43b KG |
2426 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2428 | else | |
2429 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2430 | #line 2431 "configure" |
c375c43b KG |
2431 | #include "confdefs.h" |
2432 | #include <vfork.h> | |
2433 | EOF | |
2434 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3ecc3258 | 2435 | { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2436 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2437 | if test -z "$ac_err"; then |
2438 | rm -rf conftest* | |
2439 | eval "ac_cv_header_$ac_safe=yes" | |
2440 | else | |
2441 | echo "$ac_err" >&5 | |
2442 | echo "configure: failed program was:" >&5 | |
2443 | cat conftest.$ac_ext >&5 | |
2444 | rm -rf conftest* | |
2445 | eval "ac_cv_header_$ac_safe=no" | |
2446 | fi | |
2447 | rm -f conftest* | |
2448 | fi | |
2449 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2450 | echo "$ac_t""yes" 1>&6 | |
2451 | cat >> confdefs.h <<\EOF | |
2452 | #define HAVE_VFORK_H 1 | |
2453 | EOF | |
2454 | ||
2455 | else | |
2456 | echo "$ac_t""no" 1>&6 | |
2457 | fi | |
2458 | ||
2459 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
3ecc3258 | 2460 | echo "configure:2461: checking for working vfork" >&5 |
c375c43b KG |
2461 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2463 | else | |
2464 | if test "$cross_compiling" = yes; then | |
2465 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
3ecc3258 | 2466 | echo "configure:2467: checking for vfork" >&5 |
c375c43b KG |
2467 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2468 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2469 | else | |
2470 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2471 | #line 2472 "configure" |
c375c43b KG |
2472 | #include "confdefs.h" |
2473 | /* System header to define __stub macros and hopefully few prototypes, | |
2474 | which can conflict with char vfork(); below. */ | |
2475 | #include <assert.h> | |
2476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2477 | /* We use char because int might match the return type of a gcc2 | |
2478 | builtin and then its argument prototype would still apply. */ | |
2479 | char vfork(); | |
2480 | ||
2481 | int main() { | |
2482 | ||
2483 | /* The GNU C library defines this for functions which it implements | |
2484 | to always fail with ENOSYS. Some functions are actually named | |
2485 | something starting with __ and the normal name is an alias. */ | |
2486 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2487 | choke me | |
2488 | #else | |
3ecc3258 | 2489 | vfork(); |
c375c43b KG |
2490 | #endif |
2491 | ||
2492 | ; return 0; } | |
2493 | EOF | |
3ecc3258 | 2494 | if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2495 | rm -rf conftest* |
2496 | eval "ac_cv_func_vfork=yes" | |
2497 | else | |
2498 | echo "configure: failed program was:" >&5 | |
2499 | cat conftest.$ac_ext >&5 | |
2500 | rm -rf conftest* | |
2501 | eval "ac_cv_func_vfork=no" | |
2502 | fi | |
2503 | rm -f conftest* | |
2504 | fi | |
2505 | ||
2506 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2507 | echo "$ac_t""yes" 1>&6 | |
2508 | : | |
2509 | else | |
2510 | echo "$ac_t""no" 1>&6 | |
2511 | fi | |
2512 | ||
2513 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2514 | else | |
2515 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2516 | #line 2517 "configure" |
c375c43b KG |
2517 | #include "confdefs.h" |
2518 | /* Thanks to Paul Eggert for this test. */ | |
2519 | #include <stdio.h> | |
2520 | #include <sys/types.h> | |
2521 | #include <sys/stat.h> | |
2522 | #ifdef HAVE_UNISTD_H | |
2523 | #include <unistd.h> | |
2524 | #endif | |
2525 | #ifdef HAVE_VFORK_H | |
2526 | #include <vfork.h> | |
2527 | #endif | |
2528 | /* On some sparc systems, changes by the child to local and incoming | |
2529 | argument registers are propagated back to the parent. | |
2530 | The compiler is told about this with #include <vfork.h>, | |
2531 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2532 | Test for this by using a static variable whose address | |
2533 | is put into a register that is clobbered by the vfork. */ | |
2534 | static | |
2535 | #ifdef __cplusplus | |
2536 | sparc_address_test (int arg) | |
2537 | #else | |
2538 | sparc_address_test (arg) int arg; | |
2539 | #endif | |
2540 | { | |
2541 | static pid_t child; | |
2542 | if (!child) { | |
2543 | child = vfork (); | |
2544 | if (child < 0) { | |
2545 | perror ("vfork"); | |
2546 | _exit(2); | |
2547 | } | |
2548 | if (!child) { | |
2549 | arg = getpid(); | |
2550 | write(-1, "", 0); | |
2551 | _exit (arg); | |
2552 | } | |
2553 | } | |
2554 | } | |
2555 | main() { | |
2556 | pid_t parent = getpid (); | |
2557 | pid_t child; | |
2558 | ||
2559 | sparc_address_test (); | |
2560 | ||
2561 | child = vfork (); | |
2562 | ||
2563 | if (child == 0) { | |
2564 | /* Here is another test for sparc vfork register problems. | |
2565 | This test uses lots of local variables, at least | |
2566 | as many local variables as main has allocated so far | |
2567 | including compiler temporaries. 4 locals are enough for | |
2568 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2569 | A buggy compiler should reuse the register of parent | |
2570 | for one of the local variables, since it will think that | |
2571 | parent can't possibly be used any more in this routine. | |
2572 | Assigning to the local variable will thus munge parent | |
2573 | in the parent process. */ | |
2574 | pid_t | |
2575 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2576 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2577 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2578 | use the same hardware register for all 8 local variables. */ | |
2579 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2580 | || p != p5 || p != p6 || p != p7) | |
2581 | _exit(1); | |
2582 | ||
2583 | /* On some systems (e.g. IRIX 3.3), | |
2584 | vfork doesn't separate parent from child file descriptors. | |
2585 | If the child closes a descriptor before it execs or exits, | |
2586 | this munges the parent's descriptor as well. | |
2587 | Test for this by closing stdout in the child. */ | |
2588 | _exit(close(fileno(stdout)) != 0); | |
2589 | } else { | |
2590 | int status; | |
2591 | struct stat st; | |
2592 | ||
2593 | while (wait(&status) != child) | |
2594 | ; | |
2595 | exit( | |
2596 | /* Was there some problem with vforking? */ | |
2597 | child < 0 | |
2598 | ||
2599 | /* Did the child fail? (This shouldn't happen.) */ | |
2600 | || status | |
2601 | ||
2602 | /* Did the vfork/compiler bug occur? */ | |
2603 | || parent != getpid() | |
2604 | ||
2605 | /* Did the file descriptor bug occur? */ | |
2606 | || fstat(fileno(stdout), &st) != 0 | |
2607 | ); | |
2608 | } | |
2609 | } | |
2610 | EOF | |
3ecc3258 | 2611 | if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2612 | then |
2613 | ac_cv_func_vfork_works=yes | |
2614 | else | |
2615 | echo "configure: failed program was:" >&5 | |
2616 | cat conftest.$ac_ext >&5 | |
2617 | rm -fr conftest* | |
2618 | ac_cv_func_vfork_works=no | |
2619 | fi | |
2620 | rm -fr conftest* | |
2621 | fi | |
2622 | ||
2623 | fi | |
2624 | ||
2625 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2626 | if test $ac_cv_func_vfork_works = no; then | |
2627 | cat >> confdefs.h <<\EOF | |
2628 | #define vfork fork | |
2629 | EOF | |
2630 | ||
2631 | fi | |
2632 | ||
0a4b6309 RL |
2633 | |
2634 | for ac_func in malloc realloc calloc free bcopy bzero bcmp \ | |
007e8d2a | 2635 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ |
9c30c0e7 | 2636 | strsignal putc_unlocked fputs_unlocked |
0a4b6309 RL |
2637 | do |
2638 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
3ecc3258 | 2639 | echo "configure:2640: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2640 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2642 | else | |
2643 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2644 | #line 2645 "configure" |
0a4b6309 RL |
2645 | #include "confdefs.h" |
2646 | ||
2647 | #include <stdio.h> | |
2648 | #ifdef STRING_WITH_STRINGS | |
2649 | # include <string.h> | |
2650 | # include <strings.h> | |
2651 | #else | |
2652 | # ifdef HAVE_STRING_H | |
2653 | # include <string.h> | |
2654 | # else | |
2655 | # ifdef HAVE_STRINGS_H | |
2656 | # include <strings.h> | |
2657 | # endif | |
2658 | # endif | |
2659 | #endif | |
2660 | #ifdef HAVE_STDLIB_H | |
2661 | #include <stdlib.h> | |
2662 | #endif | |
2663 | #ifdef HAVE_UNISTD_H | |
2664 | #include <unistd.h> | |
2665 | #endif | |
2666 | #ifndef HAVE_RINDEX | |
2667 | #define rindex strrchr | |
2668 | #endif | |
2669 | #ifndef HAVE_INDEX | |
2670 | #define index strchr | |
2671 | #endif | |
2672 | ||
2673 | int main() { | |
2674 | char *(*pfn) = (char *(*)) $ac_func | |
2675 | ; return 0; } | |
2676 | EOF | |
3ecc3258 | 2677 | if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2678 | rm -rf conftest* |
2679 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2680 | else | |
2681 | echo "configure: failed program was:" >&5 | |
2682 | cat conftest.$ac_ext >&5 | |
2683 | rm -rf conftest* | |
2684 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2685 | fi | |
2686 | rm -f conftest* | |
2687 | fi | |
2688 | ||
2689 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2690 | echo "$ac_t""yes" 1>&6 | |
2691 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2692 | cat >> confdefs.h <<EOF | |
2693 | #define $gcc_tr_decl 1 | |
2694 | EOF | |
2695 | ||
2696 | else | |
2697 | echo "$ac_t""no" 1>&6 | |
2698 | fi | |
2699 | ||
2700 | done | |
2701 | ||
2702 | ||
2703 | for ac_func in getrlimit setrlimit | |
2704 | do | |
2705 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
3ecc3258 | 2706 | echo "configure:2707: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2707 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2709 | else | |
2710 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2711 | #line 2712 "configure" |
0a4b6309 | 2712 | #include "confdefs.h" |
8fa1f09f | 2713 | |
0a4b6309 RL |
2714 | #include <stdio.h> |
2715 | #ifdef STRING_WITH_STRINGS | |
2716 | # include <string.h> | |
2717 | # include <strings.h> | |
2718 | #else | |
2719 | # ifdef HAVE_STRING_H | |
2720 | # include <string.h> | |
2721 | # else | |
2722 | # ifdef HAVE_STRINGS_H | |
2723 | # include <strings.h> | |
2724 | # endif | |
2725 | # endif | |
2726 | #endif | |
2727 | #ifdef HAVE_STDLIB_H | |
2728 | #include <stdlib.h> | |
2729 | #endif | |
2730 | #ifdef HAVE_UNISTD_H | |
2731 | #include <unistd.h> | |
2732 | #endif | |
2733 | #ifndef HAVE_RINDEX | |
2734 | #define rindex strrchr | |
2735 | #endif | |
2736 | #ifndef HAVE_INDEX | |
2737 | #define index strchr | |
2738 | #endif | |
d2cabf16 KG |
2739 | #include <sys/types.h> |
2740 | #ifdef HAVE_SYS_RESOURCE_H | |
2741 | #include <sys/resource.h> | |
2742 | #endif | |
0a4b6309 RL |
2743 | |
2744 | int main() { | |
2745 | char *(*pfn) = (char *(*)) $ac_func | |
2746 | ; return 0; } | |
2747 | EOF | |
3ecc3258 | 2748 | if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2749 | rm -rf conftest* |
2750 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2751 | else | |
2752 | echo "configure: failed program was:" >&5 | |
2753 | cat conftest.$ac_ext >&5 | |
2754 | rm -rf conftest* | |
2755 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2756 | fi | |
2757 | rm -f conftest* | |
2758 | fi | |
2759 | ||
2760 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2761 | echo "$ac_t""yes" 1>&6 | |
2762 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2763 | cat >> confdefs.h <<EOF | |
2764 | #define $gcc_tr_decl 1 | |
2765 | EOF | |
2766 | ||
2767 | else | |
2768 | echo "$ac_t""no" 1>&6 | |
2769 | fi | |
2770 | ||
2771 | done | |
2772 | ||
956d6950 JL |
2773 | |
2774 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
3ecc3258 | 2775 | echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2776 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2778 | else |
956d6950 | 2779 | cat > conftest.$ac_ext <<EOF |
3ecc3258 | 2780 | #line 2781 "configure" |
956d6950 JL |
2781 | #include "confdefs.h" |
2782 | #include <sys/types.h> | |
2783 | #include <signal.h> | |
2784 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2785 | #ifdef HAVE_UNISTD_H | |
2786 | #include <unistd.h> | |
2787 | #endif | |
2788 | int main() { | |
2789 | char *msg = *(sys_siglist + 1); | |
2790 | ; return 0; } | |
2791 | EOF | |
3ecc3258 | 2792 | if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2793 | rm -rf conftest* |
2794 | ac_cv_decl_sys_siglist=yes | |
2795 | else | |
2796 | echo "configure: failed program was:" >&5 | |
2797 | cat conftest.$ac_ext >&5 | |
2798 | rm -rf conftest* | |
2799 | ac_cv_decl_sys_siglist=no | |
2800 | fi | |
2801 | rm -f conftest* | |
2802 | fi | |
2803 | ||
2804 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2805 | if test $ac_cv_decl_sys_siglist = yes; then | |
2806 | cat >> confdefs.h <<\EOF | |
2807 | #define SYS_SIGLIST_DECLARED 1 | |
2808 | EOF | |
2809 | ||
a63d08e6 | 2810 | fi |
a63d08e6 JL |
2811 | |
2812 | ||
75923b2f MK |
2813 | # mkdir takes a single argument on some systems. |
2814 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
3ecc3258 | 2815 | echo "configure:2816: checking if mkdir takes one argument" >&5 |
75923b2f MK |
2816 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
2817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2818 | else | |
2819 | cat > conftest.$ac_ext <<EOF | |
3ecc3258 | 2820 | #line 2821 "configure" |
75923b2f MK |
2821 | #include "confdefs.h" |
2822 | ||
2823 | #include <sys/types.h> | |
2824 | #ifdef HAVE_SYS_STAT_H | |
2825 | # include <sys/stat.h> | |
2826 | #endif | |
2827 | #ifdef HAVE_UNISTD_H | |
2828 | # include <unistd.h> | |
2829 | #endif | |
2830 | #ifdef HAVE_DIRECT_H | |
2831 | # include <direct.h> | |
2832 | #endif | |
2833 | int main() { | |
2834 | mkdir ("foo", 0); | |
2835 | ; return 0; } | |
2836 | EOF | |
3ecc3258 | 2837 | if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
2838 | rm -rf conftest* |
2839 | gcc_cv_mkdir_takes_one_arg=no | |
2840 | else | |
2841 | echo "configure: failed program was:" >&5 | |
2842 | cat conftest.$ac_ext >&5 | |
2843 | rm -rf conftest* | |
2844 | gcc_cv_mkdir_takes_one_arg=yes | |
2845 | fi | |
2846 | rm -f conftest* | |
2847 | fi | |
2848 | ||
2849 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
2850 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
2851 | cat >> confdefs.h <<\EOF | |
2852 | #define MKDIR_TAKES_ONE_ARG 1 | |
2853 | EOF | |
2854 | ||
2855 | fi | |
2856 | ||
2857 | ||
861bb6c1 JL |
2858 | # File extensions |
2859 | manext='.1' | |
2860 | objext='.o' | |
2861 | ||
2862 | ||
2863 | ||
2864 | build_xm_file= | |
f6cb0e63 | 2865 | build_xm_defines= |
861bb6c1 JL |
2866 | build_install_headers_dir=install-headers-tar |
2867 | build_exeext= | |
2868 | host_xm_file= | |
f6cb0e63 | 2869 | host_xm_defines= |
861bb6c1 JL |
2870 | host_xmake_file= |
2871 | host_truncate_target= | |
6e26218f | 2872 | host_exeext= |
861bb6c1 JL |
2873 | |
2874 | # Decode the host machine, then the target machine. | |
2875 | # For the host machine, we save the xm_file variable as host_xm_file; | |
2876 | # then we decode the target machine and forget everything else | |
2877 | # that came from the host machine. | |
2878 | for machine in $build $host $target; do | |
2879 | ||
2880 | out_file= | |
2881 | xmake_file= | |
2882 | tmake_file= | |
2883 | extra_headers= | |
2884 | extra_passes= | |
2885 | extra_parts= | |
2886 | extra_programs= | |
2887 | extra_objs= | |
2888 | extra_host_objs= | |
2889 | extra_gcc_objs= | |
f6cb0e63 | 2890 | xm_defines= |
861bb6c1 JL |
2891 | float_format= |
2892 | # Set this to force installation and use of collect2. | |
2893 | use_collect2= | |
2894 | # Set this to override the default target model. | |
2895 | target_cpu_default= | |
861bb6c1 JL |
2896 | # Set this to control how the header file directory is installed. |
2897 | install_headers_dir=install-headers-tar | |
2898 | # Set this to a non-empty list of args to pass to cpp if the target | |
2899 | # wants its .md file passed through cpp. | |
2900 | md_cppflags= | |
2901 | # Set this if directory names should be truncated to 14 characters. | |
2902 | truncate_target= | |
2903 | # Set this if gdb needs a dir command with `dirname $out_file` | |
2904 | gdb_needs_out_file_path= | |
2905 | # Set this if the build machine requires executables to have a | |
2906 | # file name suffix. | |
2907 | exeext= | |
a851212a JW |
2908 | # Set this to control which thread package will be used. |
2909 | thread_file= | |
df6faf79 JW |
2910 | # Reinitialize these from the flag values every loop pass, since some |
2911 | # configure entries modify them. | |
2912 | gas="$gas_flag" | |
2913 | gnu_ld="$gnu_ld_flag" | |
e445171e | 2914 | enable_threads=$enable_threads_flag |
861bb6c1 JL |
2915 | |
2916 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
2917 | # each machine entry. | |
2918 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
2919 | case $machine in | |
2920 | alpha*-*-*) | |
2921 | cpu_type=alpha | |
2922 | ;; | |
2923 | arm*-*-*) | |
2924 | cpu_type=arm | |
2925 | ;; | |
2926 | c*-convex-*) | |
2927 | cpu_type=convex | |
2928 | ;; | |
f6cb0e63 | 2929 | i[34567]86-*-*) |
861bb6c1 JL |
2930 | cpu_type=i386 |
2931 | ;; | |
2932 | hppa*-*-*) | |
2933 | cpu_type=pa | |
2934 | ;; | |
2935 | m68000-*-*) | |
2936 | cpu_type=m68k | |
2937 | ;; | |
2938 | mips*-*-*) | |
2939 | cpu_type=mips | |
2940 | ;; | |
2941 | powerpc*-*-*) | |
2942 | cpu_type=rs6000 | |
2943 | ;; | |
2944 | pyramid-*-*) | |
2945 | cpu_type=pyr | |
2946 | ;; | |
2947 | sparc*-*-*) | |
2948 | cpu_type=sparc | |
2949 | ;; | |
2950 | esac | |
2951 | ||
2952 | tm_file=${cpu_type}/${cpu_type}.h | |
2953 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
2954 | ||
1b4a979b | 2955 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
2956 | case $machine in |
2957 | *-*-linux-gnu*) | |
c7391272 | 2958 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 2959 | ;; |
1b4a979b ME |
2960 | *-*-openbsd*) |
2961 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
2962 | tmake_file="t-libc-ok t-openbsd" |
2963 | # avoid surprises, always provide an xm-openbsd file | |
2964 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
2965 | # don't depend on processor x-fragments as well |
2966 | xmake_file=none | |
1b4a979b ME |
2967 | if test x$enable_threads = xyes; then |
2968 | thread_file='posix' | |
2969 | tmake_file="${tmake_file} t-openbsd-thread" | |
2970 | fi | |
2971 | ;; | |
f6cb0e63 JL |
2972 | esac |
2973 | ||
861bb6c1 JL |
2974 | case $machine in |
2975 | # Support site-specific machine types. | |
2976 | *local*) | |
2977 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
2978 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
2979 | xm_file=${cpu_type}/xm-$rest.h | |
2980 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 2981 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
2982 | then xmake_file=${cpu_type}/x-$rest; \ |
2983 | else true; \ | |
2984 | fi | |
75bffa71 | 2985 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
2986 | then tmake_file=${cpu_type}/t-$rest; \ |
2987 | else true; \ | |
2988 | fi | |
2989 | ;; | |
2990 | 1750a-*-*) | |
2991 | ;; | |
2992 | a29k-*-bsd* | a29k-*-sym1*) | |
2993 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 2994 | xm_defines=USG |
861bb6c1 JL |
2995 | xmake_file=a29k/x-unix |
2996 | use_collect2=yes | |
2997 | ;; | |
2998 | a29k-*-udi | a29k-*-coff) | |
2999 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3000 | tmake_file=a29k/t-a29kbare | |
3001 | ;; | |
7cc34889 | 3002 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3003 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3004 | tmake_file=a29k/t-vx29k | |
3005 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3006 | thread_file='vxworks' |
861bb6c1 JL |
3007 | ;; |
3008 | a29k-*-*) # Default a29k environment. | |
3009 | use_collect2=yes | |
3010 | ;; | |
615c8231 DT |
3011 | alpha-*-interix) |
3012 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3013 | ||
3014 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3015 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3016 | |
8354da48 JL |
3017 | # GAS + IEEE_CONFORMANT |
3018 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3019 | |
3020 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3021 | xmake_file="x-interix alpha/t-pe" | |
3022 | tmake_file="alpha/t-interix" | |
615c8231 DT |
3023 | if test x$enable_threads = xyes ; then |
3024 | thread_file='posix' | |
3025 | fi | |
3026 | if test x$stabs = xyes ; then | |
3027 | tm_file="${tm_file} dbxcoff.h" | |
3028 | fi | |
3029 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3030 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3031 | ;; | |
861bb6c1 | 3032 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3033 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3034 | target_cpu_default="MASK_GAS" |
861bb6c1 JL |
3035 | gas=no |
3036 | xmake_file=none | |
861bb6c1 JL |
3037 | gas=yes gnu_ld=yes |
3038 | ;; | |
2601ebca | 3039 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3040 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3041 | target_cpu_default="MASK_GAS" |
574badbc RH |
3042 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
3043 | extra_parts="crtbegin.o crtend.o" | |
2601ebca | 3044 | xmake_file=none |
2601ebca | 3045 | gas=yes gnu_ld=yes |
75bffa71 | 3046 | if test x$enable_threads = xyes; then |
2601ebca JL |
3047 | thread_file='posix' |
3048 | fi | |
3049 | ;; | |
861bb6c1 | 3050 | alpha*-*-linux-gnu*) |
9d654bba | 3051 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3052 | target_cpu_default="MASK_GAS" |
574badbc RH |
3053 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
3054 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3055 | xmake_file=none |
861bb6c1 | 3056 | gas=yes gnu_ld=yes |
75bffa71 | 3057 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3058 | thread_file='posix' |
3059 | fi | |
3060 | ;; | |
9d654bba | 3061 | alpha*-*-netbsd*) |
66953094 | 3062 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba RH |
3063 | target_cpu_default="MASK_GAS" |
3064 | tmake_file="alpha/t-crtbe" | |
3065 | extra_parts="crtbegin.o crtend.o" | |
3066 | xmake_file=none | |
9d654bba RH |
3067 | gas=yes gnu_ld=yes |
3068 | ;; | |
1b4a979b ME |
3069 | |
3070 | alpha*-*-openbsd*) | |
3071 | # default x-alpha is only appropriate for dec-osf. | |
3072 | target_cpu_default="MASK_GAS" | |
1b4a979b | 3073 | ;; |
9d654bba | 3074 | |
e9a25f70 | 3075 | alpha*-dec-osf*) |
75bffa71 | 3076 | if test x$stabs = xyes |
861bb6c1 JL |
3077 | then |
3078 | tm_file="${tm_file} dbx.h" | |
3079 | fi | |
75bffa71 | 3080 | if test x$gas != xyes |
861bb6c1 JL |
3081 | then |
3082 | extra_passes="mips-tfile mips-tdump" | |
3083 | fi | |
861bb6c1 | 3084 | use_collect2=yes |
861bb6c1 | 3085 | case $machine in |
6ecd4e53 | 3086 | *-*-osf1*) |
b0435cf4 | 3087 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3088 | ;; |
3089 | *-*-osf[23]*) | |
b0435cf4 | 3090 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3091 | ;; |
3092 | *-*-osf4*) | |
b0435cf4 | 3093 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3094 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3095 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3096 | install_headers_dir=install-headers-cpio |
3097 | ;; | |
3098 | esac | |
e9a25f70 JL |
3099 | case $machine in |
3100 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
3101 | target_cpu_default=MASK_SUPPORT_ARCH | |
3102 | ;; | |
3103 | esac | |
861bb6c1 | 3104 | ;; |
9ec36da5 JL |
3105 | alpha*-*-vxworks*) |
3106 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
3107 | if x$gas != xyes | |
3108 | then | |
3109 | extra_passes="mips-tfile mips-tdump" | |
3110 | fi | |
3111 | use_collect2=yes | |
28897609 | 3112 | thread_file='vxworks' |
9ec36da5 | 3113 | ;; |
b0435cf4 | 3114 | alpha*-*-winnt*) |
615c8231 | 3115 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 JL |
3116 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
3117 | tmake_file=t-libc-ok | |
3118 | xmake_file=winnt/x-winnt | |
3119 | extra_host_objs=oldnames.o | |
3120 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3121 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3122 | then |
3123 | extra_programs=ld.exe | |
3124 | fi | |
75bffa71 | 3125 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3126 | thread_file='win32' |
3127 | fi | |
3128 | ;; | |
3129 | alpha*-dec-vms*) | |
3130 | tm_file=alpha/vms.h | |
3131 | xm_file="${xm_file} alpha/xm-vms.h" | |
3132 | tmake_file=alpha/t-vms | |
861bb6c1 | 3133 | ;; |
66ed0683 JL |
3134 | arc-*-elf*) |
3135 | extra_parts="crtinit.o crtfini.o" | |
3136 | ;; | |
861bb6c1 JL |
3137 | arm-*-coff* | armel-*-coff*) |
3138 | tm_file=arm/coff.h | |
3139 | tmake_file=arm/t-bare | |
3140 | ;; | |
2aa0c933 | 3141 | arm-*-vxworks*) |
e14db015 | 3142 | tm_file=arm/vxarm.h |
2aa0c933 | 3143 | tmake_file=arm/t-bare |
28897609 | 3144 | thread_file='vxworks' |
2aa0c933 | 3145 | ;; |
861bb6c1 JL |
3146 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3147 | tm_file=arm/riscix1-1.h | |
3148 | use_collect2=yes | |
3149 | ;; | |
3150 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3151 | if test x$gas = xyes |
861bb6c1 JL |
3152 | then |
3153 | tm_file=arm/rix-gas.h | |
3154 | else | |
3155 | tm_file=arm/riscix.h | |
3156 | fi | |
3157 | xmake_file=arm/x-riscix | |
3158 | tmake_file=arm/t-riscix | |
3159 | use_collect2=yes | |
3160 | ;; | |
3161 | arm-semi-aout | armel-semi-aout) | |
3162 | tm_file=arm/semi.h | |
3163 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3164 | ;; |
3165 | arm-semi-aof | armel-semi-aof) | |
3166 | tm_file=arm/semiaof.h | |
3167 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3168 | ;; |
58600d24 | 3169 | arm*-*-netbsd*) |
861bb6c1 | 3170 | tm_file=arm/netbsd.h |
641d4216 | 3171 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 3172 | tmake_file="t-netbsd arm/t-netbsd" |
af0ca027 | 3173 | use_collect2=yes |
861bb6c1 | 3174 | ;; |
b355a481 | 3175 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3176 | cpu_type=arm |
861bb6c1 | 3177 | xmake_file=x-linux |
b355a481 | 3178 | tm_file=arm/linux-aout.h |
861bb6c1 | 3179 | tmake_file=arm/t-linux |
861bb6c1 JL |
3180 | gnu_ld=yes |
3181 | ;; | |
b355a481 NC |
3182 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF |
3183 | xm_file=arm/xm-linux.h | |
3184 | xmake_file=x-linux | |
3185 | case $machine in | |
3186 | armv2*-*-*) | |
3187 | tm_file=arm/linux-elf26.h | |
3188 | ;; | |
3189 | *) | |
3190 | tm_file=arm/linux-elf.h | |
3191 | ;; | |
3192 | esac | |
3193 | tmake_file="t-linux arm/t-linux" | |
3194 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3195 | gnu_ld=yes |
65120c40 SB |
3196 | case x${enable_threads} in |
3197 | x | xyes | xpthreads | xposix) | |
3198 | thread_file='posix' | |
3199 | ;; | |
3200 | esac | |
b355a481 NC |
3201 | ;; |
3202 | arm*-*-aout) | |
861bb6c1 | 3203 | tm_file=arm/aout.h |
e9a25f70 | 3204 | tmake_file=arm/t-bare |
861bb6c1 | 3205 | ;; |
e6592fff | 3206 | arm*-*-ecos-elf) |
54953b66 UD |
3207 | tm_file=arm/ecos-elf.h |
3208 | tmake_file=arm/t-elf | |
3209 | ;; | |
b355a481 NC |
3210 | arm*-*-elf) |
3211 | tm_file=arm/unknown-elf.h | |
3212 | tmake_file=arm/t-arm-elf | |
3213 | ;; | |
cbca921c CM |
3214 | arm*-*-oabi) |
3215 | tm_file=arm/unknown-elf-oabi.h | |
3216 | tmake_file=arm/t-arm-elf | |
3217 | ;; | |
861bb6c1 JL |
3218 | c1-convex-*) # Convex C1 |
3219 | target_cpu_default=1 | |
3220 | use_collect2=yes | |
861bb6c1 JL |
3221 | ;; |
3222 | c2-convex-*) # Convex C2 | |
3223 | target_cpu_default=2 | |
3224 | use_collect2=yes | |
861bb6c1 JL |
3225 | ;; |
3226 | c32-convex-*) | |
3227 | target_cpu_default=4 | |
3228 | use_collect2=yes | |
861bb6c1 JL |
3229 | ;; |
3230 | c34-convex-*) | |
3231 | target_cpu_default=8 | |
3232 | use_collect2=yes | |
861bb6c1 JL |
3233 | ;; |
3234 | c38-convex-*) | |
3235 | target_cpu_default=16 | |
3236 | use_collect2=yes | |
861bb6c1 | 3237 | ;; |
62616695 MH |
3238 | c4x-*) |
3239 | cpu_type=c4x | |
3240 | tmake_file=c4x/t-c4x | |
3241 | ;; | |
861bb6c1 JL |
3242 | clipper-intergraph-clix*) |
3243 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3244 | xm_file=clipper/xm-clix.h | |
3245 | xmake_file=clipper/x-clix | |
3246 | extra_headers=va-clipper.h | |
3247 | extra_parts="crtbegin.o crtend.o" | |
3248 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3249 | ;; |
3250 | dsp16xx-*) | |
3251 | ;; | |
3252 | elxsi-elxsi-*) | |
3253 | use_collect2=yes | |
3254 | ;; | |
3255 | # This hasn't been upgraded to GCC 2. | |
3256 | # fx80-alliant-*) # Alliant FX/80 | |
3257 | # ;; | |
3258 | h8300-*-*) | |
3259 | float_format=i32 | |
3260 | ;; | |
1b4a979b | 3261 | hppa*-*-openbsd*) |
13ee407e | 3262 | target_cpu_default="MASK_PA_11" |
4525d757 | 3263 | tmake_file=pa/t-openbsd |
1b4a979b | 3264 | ;; |
861bb6c1 JL |
3265 | hppa1.1-*-pro*) |
3266 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
3267 | xm_file=pa/xm-papro.h | |
3268 | tmake_file=pa/t-pro | |
3269 | ;; | |
3270 | hppa1.1-*-osf*) | |
13ee407e | 3271 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3272 | tm_file="${tm_file} pa/pa-osf.h" |
3273 | use_collect2=yes | |
861bb6c1 JL |
3274 | ;; |
3275 | hppa1.1-*-rtems*) | |
3276 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
3277 | xm_file=pa/xm-papro.h | |
3278 | tmake_file=pa/t-pro | |
3279 | ;; | |
3280 | hppa1.0-*-osf*) | |
3281 | tm_file="${tm_file} pa/pa-osf.h" | |
3282 | use_collect2=yes | |
861bb6c1 JL |
3283 | ;; |
3284 | hppa1.1-*-bsd*) | |
13ee407e | 3285 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3286 | use_collect2=yes |
861bb6c1 JL |
3287 | ;; |
3288 | hppa1.0-*-bsd*) | |
3289 | use_collect2=yes | |
861bb6c1 JL |
3290 | ;; |
3291 | hppa1.0-*-hpux7*) | |
3292 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
3293 | xm_file=pa/xm-pahpux.h | |
3294 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3295 | if test x$gas = xyes |
861bb6c1 JL |
3296 | then |
3297 | tm_file="${tm_file} pa/gas.h" | |
3298 | fi | |
861bb6c1 JL |
3299 | install_headers_dir=install-headers-cpio |
3300 | use_collect2=yes | |
3301 | ;; | |
3302 | hppa1.0-*-hpux8.0[0-2]*) | |
3303 | tm_file="${tm_file} pa/pa-hpux.h" | |
3304 | xm_file=pa/xm-pahpux.h | |
3305 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3306 | if test x$gas = xyes |
861bb6c1 JL |
3307 | then |
3308 | tm_file="${tm_file} pa/pa-gas.h" | |
3309 | else | |
3310 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3311 | fi | |
861bb6c1 JL |
3312 | install_headers_dir=install-headers-cpio |
3313 | use_collect2=yes | |
3314 | ;; | |
3315 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3316 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3317 | tm_file="${tm_file} pa/pa-hpux.h" |
3318 | xm_file=pa/xm-pahpux.h | |
3319 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3320 | if test x$gas = xyes |
861bb6c1 JL |
3321 | then |
3322 | tm_file="${tm_file} pa/pa-gas.h" | |
3323 | else | |
3324 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3325 | fi | |
861bb6c1 JL |
3326 | install_headers_dir=install-headers-cpio |
3327 | use_collect2=yes | |
3328 | ;; | |
3329 | hppa1.1-*-hpux8*) | |
13ee407e | 3330 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3331 | tm_file="${tm_file} pa/pa-hpux.h" |
3332 | xm_file=pa/xm-pahpux.h | |
3333 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3334 | if test x$gas = xyes |
861bb6c1 JL |
3335 | then |
3336 | tm_file="${tm_file} pa/pa-gas.h" | |
3337 | fi | |
861bb6c1 JL |
3338 | install_headers_dir=install-headers-cpio |
3339 | use_collect2=yes | |
3340 | ;; | |
3341 | hppa1.0-*-hpux8*) | |
3342 | tm_file="${tm_file} pa/pa-hpux.h" | |
3343 | xm_file=pa/xm-pahpux.h | |
3344 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3345 | if test x$gas = xyes |
861bb6c1 JL |
3346 | then |
3347 | tm_file="${tm_file} pa/pa-gas.h" | |
3348 | fi | |
861bb6c1 JL |
3349 | install_headers_dir=install-headers-cpio |
3350 | use_collect2=yes | |
3351 | ;; | |
18cae839 | 3352 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3353 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3354 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" |
3355 | xm_file=pa/xm-pahpux.h | |
3356 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3357 | tmake_file=pa/t-pa |
75bffa71 | 3358 | if test x$gas = xyes |
861bb6c1 JL |
3359 | then |
3360 | tm_file="${tm_file} pa/pa-gas.h" | |
3361 | fi | |
75bffa71 | 3362 | if test x$enable_threads = x; then |
f24af81b TT |
3363 | enable_threads=$have_pthread_h |
3364 | fi | |
75bffa71 | 3365 | if test x$enable_threads = xyes; then |
f24af81b TT |
3366 | thread_file='dce' |
3367 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3368 | fi | |
861bb6c1 JL |
3369 | install_headers_dir=install-headers-cpio |
3370 | use_collect2=yes | |
3371 | ;; | |
3372 | hppa1.0-*-hpux10*) | |
3373 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
3374 | xm_file=pa/xm-pahpux.h | |
3375 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3376 | tmake_file=pa/t-pa |
75bffa71 | 3377 | if test x$gas = xyes |
861bb6c1 JL |
3378 | then |
3379 | tm_file="${tm_file} pa/pa-gas.h" | |
3380 | fi | |
75bffa71 | 3381 | if test x$enable_threads = x; then |
d005a5a4 JL |
3382 | enable_threads=$have_pthread_h |
3383 | fi | |
75bffa71 | 3384 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3385 | thread_file='dce' |
3386 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3387 | fi | |
861bb6c1 JL |
3388 | install_headers_dir=install-headers-cpio |
3389 | use_collect2=yes | |
3390 | ;; | |
18cae839 | 3391 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3392 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3393 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" |
3394 | xm_file=pa/xm-pahpux.h | |
3395 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3396 | if test x$gas = xyes |
861bb6c1 JL |
3397 | then |
3398 | tm_file="${tm_file} pa/pa-gas.h" | |
3399 | fi | |
861bb6c1 JL |
3400 | install_headers_dir=install-headers-cpio |
3401 | use_collect2=yes | |
3402 | ;; | |
3403 | hppa1.0-*-hpux*) | |
3404 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
3405 | xm_file=pa/xm-pahpux.h | |
3406 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3407 | if test x$gas = xyes |
861bb6c1 JL |
3408 | then |
3409 | tm_file="${tm_file} pa/pa-gas.h" | |
3410 | fi | |
861bb6c1 JL |
3411 | install_headers_dir=install-headers-cpio |
3412 | use_collect2=yes | |
3413 | ;; | |
18cae839 | 3414 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3415 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3416 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" |
3417 | xm_file=pa/xm-pahpux.h | |
3418 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3419 | if test x$gas = xyes |
861bb6c1 JL |
3420 | then |
3421 | tm_file="${tm_file} pa/pa-gas.h" | |
3422 | fi | |
861bb6c1 JL |
3423 | install_headers_dir=install-headers-cpio |
3424 | use_collect2=yes | |
3425 | ;; | |
3426 | hppa1.0-*-hiux*) | |
3427 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
3428 | xm_file=pa/xm-pahpux.h | |
3429 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3430 | if test x$gas = xyes |
861bb6c1 JL |
3431 | then |
3432 | tm_file="${tm_file} pa/pa-gas.h" | |
3433 | fi | |
861bb6c1 JL |
3434 | install_headers_dir=install-headers-cpio |
3435 | use_collect2=yes | |
3436 | ;; | |
3437 | hppa*-*-lites*) | |
13ee407e | 3438 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3439 | use_collect2=yes |
861bb6c1 JL |
3440 | ;; |
3441 | i370-*-mvs*) | |
3442 | ;; | |
f6cb0e63 | 3443 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3444 | if test x$gas = xyes |
861bb6c1 JL |
3445 | then |
3446 | tm_file=i386/aix386.h | |
3447 | extra_parts="crtbegin.o crtend.o" | |
3448 | tmake_file=i386/t-crtstuff | |
3449 | else | |
3450 | tm_file=i386/aix386ng.h | |
3451 | use_collect2=yes | |
3452 | fi | |
f6cb0e63 JL |
3453 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3454 | xm_defines=USG | |
861bb6c1 | 3455 | xmake_file=i386/x-aix |
861bb6c1 | 3456 | ;; |
75bffa71 | 3457 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
f6cb0e63 JL |
3458 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
3459 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3460 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3461 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3462 | then |
3463 | tm_file=i386/sysv4gdb.h | |
3464 | else | |
3465 | tm_file=i386/sysv4.h | |
3466 | fi | |
3467 | extra_parts="crtbegin.o crtend.o" | |
3468 | tmake_file=i386/t-crtpic | |
3469 | ;; | |
f6cb0e63 | 3470 | i[34567]86-next-*) |
861bb6c1 JL |
3471 | tm_file=i386/next.h |
3472 | xm_file=i386/xm-next.h | |
3473 | tmake_file=i386/t-next | |
3474 | xmake_file=i386/x-next | |
3475 | extra_objs=nextstep.o | |
750930c1 | 3476 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 3477 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3478 | thread_file='mach' |
3479 | fi | |
3480 | ;; | |
f6cb0e63 | 3481 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 3482 | use_collect2=yes |
75bffa71 | 3483 | if test x$gas = xyes |
861bb6c1 JL |
3484 | then |
3485 | tm_file=i386/seq-gas.h | |
3486 | else | |
3487 | tm_file=i386/sequent.h | |
3488 | fi | |
3489 | ;; | |
f6cb0e63 JL |
3490 | i[34567]86-sequent-ptx1*) |
3491 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3492 | xmake_file=i386/x-sysv3 |
3493 | tm_file=i386/seq-sysv3.h | |
3494 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
3495 | extra_parts="crtbegin.o crtend.o" |
3496 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3497 | ;; |
f6cb0e63 JL |
3498 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
3499 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3500 | xmake_file=i386/x-sysv3 |
3501 | tm_file=i386/seq2-sysv3.h | |
3502 | tmake_file=i386/t-crtstuff | |
3503 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3504 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3505 | ;; |
f6cb0e63 JL |
3506 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
3507 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3508 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
3509 | xmake_file=x-svr4 |
3510 | tm_file=i386/ptx4-i.h | |
3511 | tmake_file=t-svr4 | |
3512 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3513 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
3514 | ;; |
3515 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 3516 | xm_defines=USG |
861bb6c1 JL |
3517 | tm_file=i386/sun.h |
3518 | use_collect2=yes | |
3519 | ;; | |
62db76ee | 3520 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
3521 | tm_file=i386/vxi386.h |
3522 | tmake_file=i386/t-i386bare | |
28897609 | 3523 | thread_file='vxworks' |
9e89df50 | 3524 | ;; |
f6cb0e63 | 3525 | i[34567]86-*-aout*) |
861bb6c1 JL |
3526 | tm_file=i386/i386-aout.h |
3527 | tmake_file=i386/t-i386bare | |
3528 | ;; | |
f6cb0e63 | 3529 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 3530 | tm_file=i386/bsd386.h |
861bb6c1 JL |
3531 | # tmake_file=t-libc-ok |
3532 | ;; | |
f6cb0e63 | 3533 | i[34567]86-*-bsd*) |
861bb6c1 | 3534 | tm_file=i386/386bsd.h |
861bb6c1 JL |
3535 | # tmake_file=t-libc-ok |
3536 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
3537 | # use_collect2=yes | |
3538 | ;; | |
f6cb0e63 | 3539 | i[34567]86-*-freebsdelf*) |
d0550c9b | 3540 | tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 3541 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 3542 | tmake_file=t-freebsd |
861bb6c1 JL |
3543 | gas=yes |
3544 | gnu_ld=yes | |
3545 | stabs=yes | |
3546 | ;; | |
f6cb0e63 | 3547 | i[34567]86-*-freebsd*) |
861bb6c1 | 3548 | tm_file=i386/freebsd.h |
d0550c9b | 3549 | tmake_file=t-freebsd |
861bb6c1 | 3550 | ;; |
1b4a979b | 3551 | i[34567]86-*-netbsd*) |
861bb6c1 | 3552 | tm_file=i386/netbsd.h |
861bb6c1 | 3553 | tmake_file=t-netbsd |
af0ca027 | 3554 | use_collect2=yes |
861bb6c1 | 3555 | ;; |
1b4a979b | 3556 | i[34567]86-*-openbsd*) |
1b4a979b ME |
3557 | # we need collect2 until our bug is fixed... |
3558 | use_collect2=yes | |
3559 | ;; | |
f6cb0e63 | 3560 | i[34567]86-*-coff*) |
861bb6c1 JL |
3561 | tm_file=i386/i386-coff.h |
3562 | tmake_file=i386/t-i386bare | |
3563 | ;; | |
f6cb0e63 JL |
3564 | i[34567]86-*-isc*) # 80386 running ISC system |
3565 | xm_file="${xm_file} i386/xm-isc.h" | |
3566 | xm_defines="USG SVR3" | |
861bb6c1 | 3567 | case $machine in |
f6cb0e63 | 3568 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
3569 | xmake_file=i386/x-isc3 |
3570 | ;; | |
3571 | *) | |
3572 | xmake_file=i386/x-isc | |
3573 | ;; | |
3574 | esac | |
75bffa71 | 3575 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
3576 | then |
3577 | tm_file=i386/iscdbx.h | |
3578 | tmake_file=i386/t-svr3dbx | |
3579 | extra_parts="svr3.ifile svr3z.ifile" | |
3580 | else | |
3581 | tm_file=i386/isccoff.h | |
3582 | tmake_file=i386/t-crtstuff | |
3583 | extra_parts="crtbegin.o crtend.o" | |
3584 | fi | |
3585 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3586 | ;; |
f6cb0e63 | 3587 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 3588 | # pre BFD linkers |
861bb6c1 JL |
3589 | xmake_file=x-linux-aout |
3590 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3591 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 3592 | gnu_ld=yes |
af39d8f5 | 3593 | float_format=i386 |
861bb6c1 | 3594 | ;; |
f6cb0e63 | 3595 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
3596 | xmake_file=x-linux-aout |
3597 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3598 | tm_file=i386/linux-aout.h | |
861bb6c1 | 3599 | gnu_ld=yes |
af39d8f5 | 3600 | float_format=i386 |
861bb6c1 | 3601 | ;; |
f6cb0e63 | 3602 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3603 | # GNU/Linux C library 5 |
3604 | xmake_file=x-linux | |
3605 | tm_file=i386/linux.h | |
861bb6c1 JL |
3606 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
3607 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 3608 | gnu_ld=yes |
af39d8f5 | 3609 | float_format=i386 |
75bffa71 | 3610 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3611 | thread_file='single' |
3612 | fi | |
3613 | ;; | |
f6cb0e63 | 3614 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3615 | # aka GNU/Linux C library 6 |
3616 | xmake_file=x-linux | |
861bb6c1 JL |
3617 | tm_file=i386/linux.h |
3618 | tmake_file="t-linux i386/t-crtstuff" | |
3619 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 3620 | gnu_ld=yes |
af39d8f5 | 3621 | float_format=i386 |
75bffa71 | 3622 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3623 | thread_file='posix' |
3624 | fi | |
3625 | ;; | |
f6cb0e63 | 3626 | i[34567]86-*-gnu*) |
cd9e5e7c | 3627 | float_format=i386 |
f6cb0e63 JL |
3628 | ;; |
3629 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 3630 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 3631 | exit 1 |
861bb6c1 | 3632 | ;; |
f6cb0e63 | 3633 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
3634 | xm_file=i386/xm-djgpp.h |
3635 | tm_file=i386/djgpp.h | |
3636 | tmake_file=i386/t-djgpp | |
3637 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
3638 | gnu_ld=yes |
3639 | gas=yes | |
dedcc399 | 3640 | exeext=.exe |
77d787fa | 3641 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
3642 | target_alias=djgpp |
3643 | ;; | |
3644 | esac | |
861bb6c1 | 3645 | ;; |
f6cb0e63 | 3646 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
3647 | tm_file=i386/moss.h |
3648 | tmake_file=t-libc-ok | |
861bb6c1 JL |
3649 | gnu_ld=yes |
3650 | gas=yes | |
3651 | ;; | |
f6cb0e63 | 3652 | i[34567]86-*-lynxos*) |
75bffa71 | 3653 | if test x$gas = xyes |
861bb6c1 JL |
3654 | then |
3655 | tm_file=i386/lynx.h | |
3656 | else | |
3657 | tm_file=i386/lynx-ng.h | |
3658 | fi | |
3659 | xm_file=i386/xm-lynx.h | |
3660 | tmake_file=i386/t-i386bare | |
3661 | xmake_file=x-lynx | |
3662 | ;; | |
f6cb0e63 | 3663 | i[34567]86-*-mach*) |
861bb6c1 JL |
3664 | tm_file=i386/mach.h |
3665 | # tmake_file=t-libc-ok | |
3666 | use_collect2=yes | |
3667 | ;; | |
f6cb0e63 | 3668 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 3669 | if test x$elf = xyes |
861bb6c1 JL |
3670 | then |
3671 | tm_file=i386/osfelf.h | |
3672 | use_collect2= | |
3673 | else | |
3674 | tm_file=i386/osfrose.h | |
3675 | use_collect2=yes | |
3676 | fi | |
f6cb0e63 | 3677 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
3678 | xmake_file=i386/x-osfrose |
3679 | tmake_file=i386/t-osf | |
3680 | extra_objs=halfpic.o | |
3681 | ;; | |
f6cb0e63 | 3682 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
3683 | cpu_type=i386 |
3684 | xm_file=i386/xm-go32.h | |
3685 | tm_file=i386/go32-rtems.h | |
3686 | tmake_file="i386/t-go32 t-rtems" | |
3687 | ;; | |
f5963e61 JL |
3688 | i[34567]86-*-rtemself*) |
3689 | cpu_type=i386 | |
3690 | tm_file=i386/rtemself.h | |
3691 | tmake_file="i386/t-i386bare t-rtems" | |
3692 | ;; | |
f6cb0e63 | 3693 | i[34567]86-*-rtems*) |
861bb6c1 JL |
3694 | cpu_type=i386 |
3695 | tm_file=i386/rtems.h | |
3696 | tmake_file="i386/t-i386bare t-rtems" | |
3697 | ;; | |
f6cb0e63 JL |
3698 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
3699 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
3700 | xm_defines="USG SVR3" | |
861bb6c1 | 3701 | xmake_file=i386/x-sco5 |
f6857708 | 3702 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3703 | tm_file=i386/sco5.h |
75bffa71 | 3704 | if test x$gas = xyes |
44bb0e93 RL |
3705 | then |
3706 | tm_file="i386/sco5gas.h ${tm_file}" | |
3707 | tmake_file=i386/t-sco5gas | |
3708 | else | |
3709 | tmake_file=i386/t-sco5 | |
3710 | fi | |
42902a72 | 3711 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3712 | ;; |
f6cb0e63 JL |
3713 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
3714 | xm_file="${xm_file} i386/xm-sco.h" | |
3715 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 | 3716 | xmake_file=i386/x-sco4 |
861bb6c1 | 3717 | install_headers_dir=install-headers-cpio |
75bffa71 | 3718 | if test x$stabs = xyes |
861bb6c1 JL |
3719 | then |
3720 | tm_file=i386/sco4dbx.h | |
3721 | tmake_file=i386/t-svr3dbx | |
3722 | extra_parts="svr3.ifile svr3z.rfile" | |
3723 | else | |
3724 | tm_file=i386/sco4.h | |
3725 | tmake_file=i386/t-crtstuff | |
3726 | extra_parts="crtbegin.o crtend.o" | |
3727 | fi | |
3728 | truncate_target=yes | |
3729 | ;; | |
f6cb0e63 | 3730 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
3731 | xm_file=i386/xm-sco.h |
3732 | xmake_file=i386/x-sco | |
861bb6c1 | 3733 | install_headers_dir=install-headers-cpio |
75bffa71 | 3734 | if test x$stabs = xyes |
861bb6c1 JL |
3735 | then |
3736 | tm_file=i386/scodbx.h | |
3737 | tmake_file=i386/t-svr3dbx | |
3738 | extra_parts="svr3.ifile svr3z.rfile" | |
3739 | else | |
3740 | tm_file=i386/sco.h | |
3741 | extra_parts="crtbegin.o crtend.o" | |
3742 | tmake_file=i386/t-crtstuff | |
3743 | fi | |
3744 | truncate_target=yes | |
3745 | ;; | |
f6cb0e63 JL |
3746 | i[34567]86-*-solaris2*) |
3747 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3748 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
75bffa71 | 3749 | if test x$stabs = xyes |
861bb6c1 JL |
3750 | then |
3751 | tm_file=i386/sol2dbg.h | |
3752 | else | |
3753 | tm_file=i386/sol2.h | |
3754 | fi | |
3755 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 3756 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 3757 | xmake_file=x-svr4 |
75bffa71 | 3758 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3759 | thread_file='solaris' |
3760 | fi | |
3761 | ;; | |
f6cb0e63 | 3762 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
3763 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
3764 | xm_defines="USG POSIX" | |
87e11b70 | 3765 | tm_file=i386/sysv5.h |
75bffa71 | 3766 | if test x$stabs = xyes |
fe07d4c1 RL |
3767 | then |
3768 | tm_file="${tm_file} dbx.h" | |
3769 | fi | |
3770 | tmake_file=i386/t-crtpic | |
3771 | xmake_file=x-svr4 | |
3772 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
3773 | if test x$enable_threads = xyes; then |
3774 | thread_file='posix' | |
3775 | fi | |
fe07d4c1 | 3776 | ;; |
f6cb0e63 JL |
3777 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
3778 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3779 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3780 | tm_file=i386/sysv4.h |
75bffa71 | 3781 | if test x$stabs = xyes |
861bb6c1 JL |
3782 | then |
3783 | tm_file="${tm_file} dbx.h" | |
3784 | fi | |
3785 | tmake_file=i386/t-crtpic | |
3786 | xmake_file=x-svr4 | |
3787 | extra_parts="crtbegin.o crtend.o" | |
3788 | ;; | |
112674fa RL |
3789 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
3790 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3791 | xm_defines="USG POSIX" | |
3792 | tm_file=i386/udk.h | |
3793 | tmake_file="i386/t-crtpic i386/t-udk" | |
3794 | xmake_file=x-svr4 | |
3795 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 3796 | install_headers_dir=install-headers-cpio |
112674fa | 3797 | ;; |
f5963e61 JL |
3798 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
3799 | cpu_type=i386 | |
3800 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
3801 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 3802 | if test x$stabs = xyes |
f5963e61 JL |
3803 | then |
3804 | tm_file=i386/osf1elfgdb.h | |
3805 | else | |
3806 | tm_file=i386/osf1elf.h | |
3807 | fi | |
3808 | tmake_file=i386/t-osf1elf | |
3809 | xmake_file=i386/x-osf1elf | |
3810 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3811 | ;; | |
f6cb0e63 JL |
3812 | i[34567]86-*-sysv*) # Intel 80386's running system V |
3813 | xm_defines="USG SVR3" | |
861bb6c1 | 3814 | xmake_file=i386/x-sysv3 |
75bffa71 | 3815 | if test x$gas = xyes |
861bb6c1 | 3816 | then |
75bffa71 | 3817 | if test x$stabs = xyes |
861bb6c1 JL |
3818 | then |
3819 | tm_file=i386/svr3dbx.h | |
3820 | tmake_file=i386/t-svr3dbx | |
3821 | extra_parts="svr3.ifile svr3z.rfile" | |
3822 | else | |
3823 | tm_file=i386/svr3gas.h | |
3824 | extra_parts="crtbegin.o crtend.o" | |
3825 | tmake_file=i386/t-crtstuff | |
3826 | fi | |
3827 | else | |
3828 | tm_file=i386/sysv3.h | |
3829 | extra_parts="crtbegin.o crtend.o" | |
3830 | tmake_file=i386/t-crtstuff | |
3831 | fi | |
3832 | ;; | |
3833 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 3834 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
3835 | tm_file=i386/vsta.h |
3836 | tmake_file=i386/t-vsta | |
3837 | xmake_file=i386/x-vsta | |
3838 | ;; | |
84530511 | 3839 | i[34567]86-*-win32) |
cae21ae8 GN |
3840 | xm_file="${xm_file} i386/xm-cygwin.h" |
3841 | tmake_file=i386/t-cygwin | |
84530511 | 3842 | tm_file=i386/win32.h |
cae21ae8 | 3843 | xmake_file=i386/x-cygwin |
84530511 | 3844 | extra_objs=winnt.o |
75bffa71 | 3845 | if test x$enable_threads = xyes; then |
84530511 SC |
3846 | thread_file='win32' |
3847 | fi | |
3848 | exeext=.exe | |
3849 | ;; | |
cae21ae8 GN |
3850 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
3851 | xm_file="${xm_file} i386/xm-cygwin.h" | |
3852 | tmake_file=i386/t-cygwin | |
3853 | tm_file=i386/cygwin.h | |
3854 | xmake_file=i386/x-cygwin | |
861bb6c1 | 3855 | extra_objs=winnt.o |
75bffa71 | 3856 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3857 | thread_file='win32' |
3858 | fi | |
3859 | exeext=.exe | |
3860 | ;; | |
f6cb0e63 | 3861 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
3862 | tm_file=i386/mingw32.h |
3863 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 3864 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 3865 | extra_objs=winnt.o |
cae21ae8 | 3866 | xmake_file=i386/x-cygwin |
75bffa71 | 3867 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3868 | thread_file='win32' |
3869 | fi | |
3870 | exeext=.exe | |
f6cb0e63 JL |
3871 | case $machine in |
3872 | *mingw32msv*) | |
3873 | ;; | |
3874 | *minwg32crt* | *mingw32*) | |
3875 | tm_file="${tm_file} i386/crtdll.h" | |
3876 | ;; | |
3877 | esac | |
861bb6c1 | 3878 | ;; |
b27d2bd5 MK |
3879 | i[34567]86-*-uwin*) |
3880 | tm_file=i386/uwin.h | |
3881 | xm_file="${xm_file} i386/xm-uwin.h" | |
3882 | xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" | |
3883 | tmake_file="i386/t-cygwin i386/t-uwin" | |
3884 | extra_objs=winnt.o | |
3885 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
3886 | if test x$enable_threads = xyes; then |
3887 | thread_file='win32' | |
3888 | fi | |
3889 | exeext=.exe | |
3890 | ;; | |
052dbd9e | 3891 | i[34567]86-*-interix*) |
615c8231 | 3892 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 3893 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
052dbd9e MK |
3894 | xm_defines="USG NO_SYS_SIGLIST" |
3895 | tmake_file="i386/t-interix" | |
3896 | extra_objs=interix.o | |
3897 | xmake_file=x-interix | |
615c8231 | 3898 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
3899 | thread_file='posix' |
3900 | fi | |
615c8231 | 3901 | if test x$stabs = xyes ; then |
052dbd9e MK |
3902 | tm_file="${tm_file} dbxcoff.h" |
3903 | fi | |
3904 | ;; | |
f6cb0e63 | 3905 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
3906 | tm_file=i386/win-nt.h |
3907 | out_file=i386/i386.c | |
f6cb0e63 | 3908 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
3909 | xmake_file=winnt/x-winnt |
3910 | tmake_file=i386/t-winnt | |
3911 | extra_host_objs="winnt.o oldnames.o" | |
3912 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3913 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3914 | then |
3915 | extra_programs=ld.exe | |
3916 | fi | |
75bffa71 | 3917 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3918 | thread_file='win32' |
3919 | fi | |
3920 | ;; | |
f6cb0e63 JL |
3921 | i[34567]86-dg-dgux*) |
3922 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3923 | xm_defines="USG POSIX" | |
861bb6c1 JL |
3924 | out_file=i386/dgux.c |
3925 | tm_file=i386/dgux.h | |
3926 | tmake_file=i386/t-dgux | |
3927 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
3928 | install_headers_dir=install-headers-cpio |
3929 | ;; | |
3930 | i860-alliant-*) # Alliant FX/2800 | |
3931 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 3932 | xm_file="${xm_file}" |
861bb6c1 JL |
3933 | xmake_file=i860/x-fx2800 |
3934 | tmake_file=i860/t-fx2800 | |
3935 | extra_parts="crtbegin.o crtend.o" | |
3936 | ;; | |
3937 | i860-*-bsd*) | |
3938 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 3939 | if test x$gas = xyes |
861bb6c1 JL |
3940 | then |
3941 | tm_file="${tm_file} i860/bsd-gas.h" | |
3942 | fi | |
3943 | use_collect2=yes | |
3944 | ;; | |
3945 | i860-*-mach*) | |
3946 | tm_file="${tm_file} i860/mach.h" | |
3947 | tmake_file=t-libc-ok | |
3948 | ;; | |
3949 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
3950 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 3951 | xm_defines="USG SVR3" |
861bb6c1 | 3952 | tmake_file=t-osf |
861bb6c1 JL |
3953 | ;; |
3954 | i860-*-sysv3*) | |
3955 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 3956 | xm_defines="USG SVR3" |
861bb6c1 JL |
3957 | xmake_file=i860/x-sysv3 |
3958 | extra_parts="crtbegin.o crtend.o" | |
3959 | ;; | |
3960 | i860-*-sysv4*) | |
3961 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 3962 | xm_defines="USG SVR3" |
861bb6c1 JL |
3963 | xmake_file=i860/x-sysv4 |
3964 | tmake_file=t-svr4 | |
3965 | extra_parts="crtbegin.o crtend.o" | |
3966 | ;; | |
3967 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
3968 | tm_file="${tm_file} i960/vx960.h" | |
3969 | tmake_file=i960/t-vxworks960 | |
3970 | use_collect2=yes | |
7cc34889 | 3971 | thread_file='vxworks' |
861bb6c1 | 3972 | ;; |
a0372c94 | 3973 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
3974 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
3975 | tmake_file=i960/t-vxworks960 | |
3976 | use_collect2=yes | |
7cc34889 | 3977 | thread_file='vxworks' |
861bb6c1 JL |
3978 | ;; |
3979 | i960-wrs-vxworks*) | |
3980 | tm_file="${tm_file} i960/vx960.h" | |
3981 | tmake_file=i960/t-vxworks960 | |
3982 | use_collect2=yes | |
7cc34889 | 3983 | thread_file='vxworks' |
861bb6c1 JL |
3984 | ;; |
3985 | i960-*-coff*) | |
3986 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
3987 | tmake_file=i960/t-960bare | |
3988 | use_collect2=yes | |
3989 | ;; | |
3990 | i960-*-rtems) | |
3991 | tmake_file="i960/t-960bare t-rtems" | |
3992 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
3993 | use_collect2=yes | |
3994 | ;; | |
3995 | i960-*-*) # Default i960 environment. | |
3996 | use_collect2=yes | |
3997 | ;; | |
3998 | m32r-*-elf*) | |
3999 | extra_parts="crtinit.o crtfini.o" | |
4000 | ;; | |
4001 | m68000-convergent-sysv*) | |
4002 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4003 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4004 | xm_defines=USG | |
861bb6c1 JL |
4005 | use_collect2=yes |
4006 | extra_headers=math-68881.h | |
4007 | ;; | |
4008 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4009 | tm_file=m68k/hp2bsd.h | |
4010 | xmake_file=m68k/x-hp2bsd | |
4011 | use_collect2=yes | |
4012 | extra_headers=math-68881.h | |
4013 | ;; | |
4014 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4015 | xm_file="xm_alloca.h ${xm_file}" |
4016 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4017 | if test x$gas = xyes |
861bb6c1 JL |
4018 | then |
4019 | xmake_file=m68k/x-hp320g | |
4020 | tm_file=m68k/hp310g.h | |
4021 | else | |
4022 | xmake_file=m68k/x-hp320 | |
4023 | tm_file=m68k/hp310.h | |
4024 | fi | |
861bb6c1 JL |
4025 | install_headers_dir=install-headers-cpio |
4026 | use_collect2=yes | |
4027 | extra_headers=math-68881.h | |
4028 | ;; | |
4029 | m68000-sun-sunos3*) | |
4030 | tm_file=m68k/sun2.h | |
4031 | use_collect2=yes | |
4032 | extra_headers=math-68881.h | |
4033 | ;; | |
4034 | m68000-sun-sunos4*) | |
4035 | tm_file=m68k/sun2o4.h | |
4036 | use_collect2=yes | |
4037 | extra_headers=math-68881.h | |
4038 | ;; | |
4039 | m68000-att-sysv*) | |
f6cb0e63 JL |
4040 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4041 | xm_defines=USG | |
75bffa71 | 4042 | if test x$gas = xyes |
861bb6c1 JL |
4043 | then |
4044 | tm_file=m68k/3b1g.h | |
4045 | else | |
4046 | tm_file=m68k/3b1.h | |
4047 | fi | |
4048 | use_collect2=yes | |
4049 | extra_headers=math-68881.h | |
4050 | ;; | |
4051 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4052 | xm_defines="USG AUX" |
861bb6c1 | 4053 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4054 | install_headers_dir=install-headers-cpio |
4055 | extra_headers=math-68881.h | |
4056 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4057 | tm_file= | |
75bffa71 | 4058 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4059 | then |
4060 | tm_file="${tm_file} m68k/auxgld.h" | |
4061 | else | |
4062 | tm_file="${tm_file} m68k/auxld.h" | |
4063 | fi | |
75bffa71 | 4064 | if test "$gas" = yes |
861bb6c1 JL |
4065 | then |
4066 | tm_file="${tm_file} m68k/auxgas.h" | |
4067 | else | |
4068 | tm_file="${tm_file} m68k/auxas.h" | |
4069 | fi | |
4070 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4071 | float_format=m68k |
861bb6c1 JL |
4072 | ;; |
4073 | m68k-apollo-*) | |
4074 | tm_file=m68k/apollo68.h | |
4075 | xmake_file=m68k/x-apollo68 | |
4076 | use_collect2=yes | |
4077 | extra_headers=math-68881.h | |
0a95276e | 4078 | float_format=m68k |
861bb6c1 JL |
4079 | ;; |
4080 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4081 | if test x$gas = xyes |
861bb6c1 JL |
4082 | then |
4083 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4084 | xm_defines=USG |
861bb6c1 JL |
4085 | else |
4086 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4087 | exit 1 | |
4088 | fi | |
4089 | extra_headers=math-68881.h | |
4090 | ;; | |
4091 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4092 | if test x$gas = xyes |
861bb6c1 | 4093 | then |
75bffa71 | 4094 | if test x$stabs = xyes |
861bb6c1 JL |
4095 | then |
4096 | tm_file=m68k/dpx2cdbx.h | |
4097 | else | |
4098 | tm_file=m68k/dpx2g.h | |
4099 | fi | |
4100 | else | |
4101 | tm_file=m68k/dpx2.h | |
4102 | fi | |
f6cb0e63 JL |
4103 | xm_file="xm-alloca.h ${xm_file}" |
4104 | xm_defines=USG | |
861bb6c1 JL |
4105 | xmake_file=m68k/x-dpx2 |
4106 | use_collect2=yes | |
4107 | extra_headers=math-68881.h | |
4108 | ;; | |
4109 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4110 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4111 | xm_file="xm-alloca.h ${xm_file}" |
4112 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4113 | tmake_file=t-svr4 |
4114 | extra_parts="crtbegin.o crtend.o" | |
4115 | extra_headers=math-68881.h | |
0a95276e | 4116 | float_format=m68k |
861bb6c1 JL |
4117 | ;; |
4118 | m68k-motorola-sysv*) | |
4119 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
4120 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
4121 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 4122 | if test x$gas = xyes |
861bb6c1 JL |
4123 | then |
4124 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4125 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4126 | then |
4127 | tmake_file=m68k/t-mot3300-gald | |
4128 | else | |
4129 | tmake_file=m68k/t-mot3300-gas | |
4130 | use_collect2=yes | |
4131 | fi | |
4132 | else | |
4133 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4134 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4135 | then |
4136 | tmake_file=m68k/t-mot3300-gld | |
4137 | else | |
4138 | tmake_file=m68k/t-mot3300 | |
4139 | use_collect2=yes | |
4140 | fi | |
4141 | fi | |
4142 | gdb_needs_out_file_path=yes | |
4143 | extra_parts="crt0.o mcrt0.o" | |
4144 | extra_headers=math-68881.h | |
0a95276e | 4145 | float_format=m68k |
861bb6c1 JL |
4146 | ;; |
4147 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4148 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4149 | xm_defines="USG SVR3" |
861bb6c1 JL |
4150 | xmake_file=m68k/x-tower |
4151 | extra_parts="crtbegin.o crtend.o" | |
4152 | extra_headers=math-68881.h | |
4153 | ;; | |
4154 | m68k-plexus-sysv*) | |
4155 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4156 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4157 | xm_defines=USG | |
861bb6c1 JL |
4158 | use_collect2=yes |
4159 | extra_headers=math-68881.h | |
4160 | ;; | |
4161 | m68k-tti-*) | |
4162 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4163 | xm_file="xm-alloca.h ${xm_file}" |
4164 | xm_defines=USG | |
861bb6c1 JL |
4165 | extra_headers=math-68881.h |
4166 | ;; | |
4167 | m68k-crds-unos*) | |
f6cb0e63 JL |
4168 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4169 | xm_defines="USG unos" | |
861bb6c1 JL |
4170 | xmake_file=m68k/x-crds |
4171 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4172 | use_collect2=yes |
4173 | extra_headers=math-68881.h | |
4174 | ;; | |
4175 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4176 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4177 | xm_file="xm-alloca.h ${xm_file}" |
4178 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4179 | xmake_file=m68k/x-amix |
4180 | tmake_file=t-svr4 | |
4181 | extra_parts="crtbegin.o crtend.o" | |
4182 | extra_headers=math-68881.h | |
0a95276e | 4183 | float_format=m68k |
861bb6c1 JL |
4184 | ;; |
4185 | m68k-ccur-rtu) | |
4186 | tm_file=m68k/ccur-GAS.h | |
4187 | xmake_file=m68k/x-ccur | |
4188 | extra_headers=math-68881.h | |
4189 | use_collect2=yes | |
0a95276e | 4190 | float_format=m68k |
861bb6c1 JL |
4191 | ;; |
4192 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4193 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 4194 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
4195 | use_collect2=yes |
4196 | extra_headers=math-68881.h | |
0a95276e | 4197 | float_format=m68k |
861bb6c1 JL |
4198 | ;; |
4199 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4200 | tm_file=m68k/hp3bsd.h | |
4201 | use_collect2=yes | |
4202 | extra_headers=math-68881.h | |
0a95276e | 4203 | float_format=m68k |
861bb6c1 JL |
4204 | ;; |
4205 | m68k-isi-bsd*) | |
75bffa71 | 4206 | if test x$with_fp = xno |
861bb6c1 JL |
4207 | then |
4208 | tm_file=m68k/isi-nfp.h | |
4209 | else | |
4210 | tm_file=m68k/isi.h | |
0a95276e | 4211 | float_format=m68k |
861bb6c1 JL |
4212 | fi |
4213 | use_collect2=yes | |
4214 | extra_headers=math-68881.h | |
4215 | ;; | |
4216 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
4217 | xm_file="xm_alloca.h ${xm_file}" |
4218 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4219 | if test x$gas = xyes |
861bb6c1 JL |
4220 | then |
4221 | xmake_file=m68k/x-hp320g | |
4222 | tm_file=m68k/hp320g.h | |
4223 | else | |
4224 | xmake_file=m68k/x-hp320 | |
4225 | tm_file=m68k/hpux7.h | |
4226 | fi | |
861bb6c1 JL |
4227 | install_headers_dir=install-headers-cpio |
4228 | use_collect2=yes | |
4229 | extra_headers=math-68881.h | |
0a95276e | 4230 | float_format=m68k |
861bb6c1 JL |
4231 | ;; |
4232 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4233 | xm_file="xm_alloca.h ${xm_file}" |
4234 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4235 | if test x$gas = xyes |
861bb6c1 JL |
4236 | then |
4237 | xmake_file=m68k/x-hp320g | |
4238 | tm_file=m68k/hp320g.h | |
4239 | else | |
4240 | xmake_file=m68k/x-hp320 | |
4241 | tm_file=m68k/hp320.h | |
4242 | fi | |
861bb6c1 JL |
4243 | install_headers_dir=install-headers-cpio |
4244 | use_collect2=yes | |
4245 | extra_headers=math-68881.h | |
0a95276e | 4246 | float_format=m68k |
861bb6c1 JL |
4247 | ;; |
4248 | m68k-sun-mach*) | |
4249 | tm_file=m68k/sun3mach.h | |
4250 | use_collect2=yes | |
4251 | extra_headers=math-68881.h | |
0a95276e | 4252 | float_format=m68k |
861bb6c1 JL |
4253 | ;; |
4254 | m68k-sony-newsos3*) | |
75bffa71 | 4255 | if test x$gas = xyes |
861bb6c1 JL |
4256 | then |
4257 | tm_file=m68k/news3gas.h | |
4258 | else | |
4259 | tm_file=m68k/news3.h | |
4260 | fi | |
4261 | use_collect2=yes | |
4262 | extra_headers=math-68881.h | |
0a95276e | 4263 | float_format=m68k |
861bb6c1 JL |
4264 | ;; |
4265 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4266 | if test x$gas = xyes |
861bb6c1 JL |
4267 | then |
4268 | tm_file=m68k/newsgas.h | |
4269 | else | |
4270 | tm_file=m68k/news.h | |
4271 | fi | |
4272 | use_collect2=yes | |
4273 | extra_headers=math-68881.h | |
0a95276e | 4274 | float_format=m68k |
861bb6c1 JL |
4275 | ;; |
4276 | m68k-next-nextstep2*) | |
4277 | tm_file=m68k/next21.h | |
f6cb0e63 | 4278 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4279 | tmake_file=m68k/t-next |
4280 | xmake_file=m68k/x-next | |
4281 | extra_objs=nextstep.o | |
4282 | extra_headers=math-68881.h | |
4283 | use_collect2=yes | |
0a95276e | 4284 | float_format=m68k |
861bb6c1 JL |
4285 | ;; |
4286 | m68k-next-nextstep3*) | |
4287 | tm_file=m68k/next.h | |
f6cb0e63 | 4288 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4289 | tmake_file=m68k/t-next |
4290 | xmake_file=m68k/x-next | |
4291 | extra_objs=nextstep.o | |
750930c1 | 4292 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4293 | extra_headers=math-68881.h |
0a95276e | 4294 | float_format=m68k |
75bffa71 | 4295 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4296 | thread_file='mach' |
4297 | fi | |
4298 | ;; | |
4299 | m68k-sun-sunos3*) | |
75bffa71 | 4300 | if test x$with_fp = xno |
861bb6c1 JL |
4301 | then |
4302 | tm_file=m68k/sun3n3.h | |
4303 | else | |
4304 | tm_file=m68k/sun3o3.h | |
0a95276e | 4305 | float_format=m68k |
861bb6c1 JL |
4306 | fi |
4307 | use_collect2=yes | |
4308 | extra_headers=math-68881.h | |
4309 | ;; | |
4310 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4311 | if test x$with_fp = xno |
861bb6c1 JL |
4312 | then |
4313 | tm_file=m68k/sun3n.h | |
4314 | else | |
4315 | tm_file=m68k/sun3.h | |
0a95276e | 4316 | float_format=m68k |
861bb6c1 | 4317 | fi |
861bb6c1 JL |
4318 | use_collect2=yes |
4319 | extra_headers=math-68881.h | |
4320 | ;; | |
4321 | m68k-wrs-vxworks*) | |
4322 | tm_file=m68k/vxm68k.h | |
4323 | tmake_file=m68k/t-vxworks68 | |
4324 | extra_headers=math-68881.h | |
7cc34889 | 4325 | thread_file='vxworks' |
0a95276e | 4326 | float_format=m68k |
861bb6c1 JL |
4327 | ;; |
4328 | m68k-*-aout*) | |
4329 | tmake_file=m68k/t-m68kbare | |
4330 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4331 | extra_headers=math-68881.h | |
0a95276e | 4332 | float_format=m68k |
861bb6c1 JL |
4333 | ;; |
4334 | m68k-*-coff*) | |
4335 | tmake_file=m68k/t-m68kbare | |
4336 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4337 | extra_headers=math-68881.h | |
0a95276e | 4338 | float_format=m68k |
861bb6c1 | 4339 | ;; |
d1be3be3 JW |
4340 | m68020-*-elf* | m68k-*-elf*) |
4341 | tm_file="m68k/m68020-elf.h libgloss.h" | |
4342 | xm_file=m68k/xm-m68kv.h | |
4343 | tmake_file=m68k/t-m68kelf | |
4344 | header_files=math-68881.h | |
4345 | ;; | |
861bb6c1 | 4346 | m68k-*-lynxos*) |
75bffa71 | 4347 | if test x$gas = xyes |
861bb6c1 JL |
4348 | then |
4349 | tm_file=m68k/lynx.h | |
4350 | else | |
4351 | tm_file=m68k/lynx-ng.h | |
4352 | fi | |
4353 | xm_file=m68k/xm-lynx.h | |
4354 | xmake_file=x-lynx | |
4355 | tmake_file=m68k/t-lynx | |
4356 | extra_headers=math-68881.h | |
0a95276e | 4357 | float_format=m68k |
861bb6c1 | 4358 | ;; |
58600d24 | 4359 | m68k*-*-netbsd*) |
861bb6c1 | 4360 | tm_file=m68k/netbsd.h |
861bb6c1 | 4361 | tmake_file=t-netbsd |
0a95276e | 4362 | float_format=m68k |
af0ca027 | 4363 | use_collect2=yes |
861bb6c1 | 4364 | ;; |
1b4a979b ME |
4365 | m68k*-*-openbsd*) |
4366 | float_format=m68k | |
4367 | # we need collect2 until our bug is fixed... | |
4368 | use_collect2=yes | |
4369 | ;; | |
861bb6c1 | 4370 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4371 | xm_file="xm-alloca.h ${xm_file}" |
4372 | xm_defines=USG | |
861bb6c1 JL |
4373 | xmake_file=m68k/x-m68kv |
4374 | extra_parts="crtbegin.o crtend.o" | |
4375 | extra_headers=math-68881.h | |
0a95276e | 4376 | float_format=m68k |
861bb6c1 JL |
4377 | ;; |
4378 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4379 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4380 | xm_file="xm-alloca.h ${xm_file}" |
4381 | xm_defines=USG | |
861bb6c1 JL |
4382 | tmake_file=t-svr4 |
4383 | extra_parts="crtbegin.o crtend.o" | |
4384 | extra_headers=math-68881.h | |
0a95276e | 4385 | float_format=m68k |
861bb6c1 | 4386 | ;; |
956d6950 | 4387 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4388 | # with a.out format |
861bb6c1 JL |
4389 | xmake_file=x-linux |
4390 | tm_file=m68k/linux-aout.h | |
4391 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 4392 | extra_headers=math-68881.h |
0a95276e | 4393 | float_format=m68k |
861bb6c1 JL |
4394 | gnu_ld=yes |
4395 | ;; | |
956d6950 | 4396 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4397 | # with ELF format using the |
4398 | # GNU/Linux C library 5 | |
4399 | xmake_file=x-linux | |
861bb6c1 JL |
4400 | tm_file=m68k/linux.h |
4401 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4402 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4403 | extra_headers=math-68881.h |
0a95276e | 4404 | float_format=m68k |
861bb6c1 JL |
4405 | gnu_ld=yes |
4406 | ;; | |
956d6950 | 4407 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4408 | # with ELF format using glibc 2 |
4409 | # aka the GNU/Linux C library 6. | |
4410 | xmake_file=x-linux | |
861bb6c1 JL |
4411 | tm_file=m68k/linux.h |
4412 | tmake_file="t-linux m68k/t-linux" | |
4413 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4414 | extra_headers=math-68881.h |
0a95276e | 4415 | float_format=m68k |
861bb6c1 | 4416 | gnu_ld=yes |
75bffa71 | 4417 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4418 | thread_file='posix' |
4419 | fi | |
4420 | ;; | |
4421 | m68k-*-psos*) | |
4422 | tmake_file=m68k/t-m68kbare | |
4423 | tm_file=m68k/m68k-psos.h | |
4424 | extra_headers=math-68881.h | |
0a95276e | 4425 | float_format=m68k |
861bb6c1 JL |
4426 | ;; |
4427 | m68k-*-rtems*) | |
4428 | tmake_file="m68k/t-m68kbare t-rtems" | |
4429 | tm_file=m68k/rtems.h | |
4430 | extra_headers=math-68881.h | |
0a95276e | 4431 | float_format=m68k |
861bb6c1 JL |
4432 | ;; |
4433 | ||
4434 | m88k-dg-dgux*) | |
4435 | case $machine in | |
4436 | m88k-dg-dguxbcs*) | |
4437 | tm_file=m88k/dguxbcs.h | |
4438 | tmake_file=m88k/t-dguxbcs | |
4439 | ;; | |
4440 | *) | |
4441 | tm_file=m88k/dgux.h | |
4442 | tmake_file=m88k/t-dgux | |
4443 | ;; | |
4444 | esac | |
4445 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 4446 | xmake_file=m88k/x-dgux |
75bffa71 | 4447 | if test x$gas = xyes |
861bb6c1 JL |
4448 | then |
4449 | tmake_file=m88k/t-dgux-gas | |
4450 | fi | |
861bb6c1 JL |
4451 | ;; |
4452 | m88k-dolphin-sysv3*) | |
4453 | tm_file=m88k/dolph.h | |
4454 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4455 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4456 | xmake_file=m88k/x-dolph |
75bffa71 | 4457 | if test x$gas = xyes |
861bb6c1 JL |
4458 | then |
4459 | tmake_file=m88k/t-m88k-gas | |
4460 | fi | |
4461 | ;; | |
4462 | m88k-tektronix-sysv3) | |
4463 | tm_file=m88k/tekXD88.h | |
4464 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4465 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4466 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 4467 | if test x$gas = xyes |
861bb6c1 JL |
4468 | then |
4469 | tmake_file=m88k/t-m88k-gas | |
4470 | fi | |
4471 | ;; | |
4472 | m88k-*-aout*) | |
4473 | tm_file=m88k/m88k-aout.h | |
4474 | ;; | |
4475 | m88k-*-coff*) | |
4476 | tm_file=m88k/m88k-coff.h | |
4477 | tmake_file=m88k/t-bug | |
4478 | ;; | |
4479 | m88k-*-luna*) | |
4480 | tm_file=m88k/luna.h | |
4481 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 4482 | if test x$gas = xyes |
861bb6c1 JL |
4483 | then |
4484 | tmake_file=m88k/t-luna-gas | |
4485 | else | |
4486 | tmake_file=m88k/t-luna | |
4487 | fi | |
4488 | ;; | |
1b4a979b ME |
4489 | m88k-*-openbsd*) |
4490 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
4491 | ;; | |
861bb6c1 JL |
4492 | m88k-*-sysv3*) |
4493 | tm_file=m88k/sysv3.h | |
4494 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4495 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4496 | xmake_file=m88k/x-sysv3 |
75bffa71 | 4497 | if test x$gas = xyes |
861bb6c1 JL |
4498 | then |
4499 | tmake_file=m88k/t-m88k-gas | |
4500 | fi | |
4501 | ;; | |
4502 | m88k-*-sysv4*) | |
4503 | tm_file=m88k/sysv4.h | |
4504 | extra_parts="crtbegin.o crtend.o" | |
4505 | xmake_file=m88k/x-sysv4 | |
4506 | tmake_file=m88k/t-sysv4 | |
4507 | ;; | |
4508 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
4509 | tm_file=mips/iris6.h | |
4510 | xm_file=mips/xm-iris6.h | |
861bb6c1 JL |
4511 | xmake_file=mips/x-iris6 |
4512 | tmake_file=mips/t-iris6 | |
04069e5c | 4513 | # if test x$enable_threads = xyes; then |
6e148807 | 4514 | # thread_file='irix' |
04069e5c | 4515 | # fi |
861bb6c1 | 4516 | ;; |
98bd9f0f | 4517 | mips-wrs-vxworks) |
d8265d29 | 4518 | tm_file="mips/elf.h libgloss.h mips/vxworks.h" |
98bd9f0f DB |
4519 | tmake_file=mips/t-ecoff |
4520 | gas=yes | |
4521 | gnu_ld=yes | |
4522 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 4523 | thread_file='vxworks' |
98bd9f0f | 4524 | ;; |
861bb6c1 | 4525 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 4526 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
4527 | xm_defines=USG |
4528 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4529 | xmake_file=mips/x-iris |
4530 | tmake_file=mips/t-cross64 | |
4531 | # See comment in mips/iris[56].h files. | |
4532 | use_collect2=yes | |
04069e5c | 4533 | # if test x$enable_threads = xyes; then |
6e148807 | 4534 | # thread_file='irix' |
04069e5c | 4535 | # fi |
861bb6c1 JL |
4536 | ;; |
4537 | mips-sni-sysv4) | |
75bffa71 | 4538 | if test x$gas = xyes |
861bb6c1 | 4539 | then |
75bffa71 | 4540 | if test x$stabs = xyes |
861bb6c1 JL |
4541 | then |
4542 | tm_file=mips/iris5gdb.h | |
4543 | else | |
f6cb0e63 | 4544 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
4545 | fi |
4546 | else | |
4547 | tm_file=mips/sni-svr4.h | |
4548 | fi | |
f6cb0e63 | 4549 | xm_defines=USG |
861bb6c1 JL |
4550 | xmake_file=mips/x-sni-svr4 |
4551 | tmake_file=mips/t-mips-gas | |
75bffa71 | 4552 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4553 | then |
4554 | use_collect2=yes | |
4555 | fi | |
861bb6c1 JL |
4556 | ;; |
4557 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 4558 | if test x$gas = xyes |
861bb6c1 | 4559 | then |
f6cb0e63 | 4560 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 4561 | if test x$stabs = xyes |
861bb6c1 JL |
4562 | then |
4563 | tm_file="${tm_file} dbx.h" | |
4564 | fi | |
4565 | else | |
4566 | tm_file=mips/iris5.h | |
4567 | fi | |
74c55ab0 JW |
4568 | xm_defines=USG |
4569 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4570 | xmake_file=mips/x-iris |
4571 | # mips-tfile doesn't work yet | |
4572 | tmake_file=mips/t-mips-gas | |
4573 | # See comment in mips/iris5.h file. | |
4574 | use_collect2=yes | |
04069e5c | 4575 | # if test x$enable_threads = xyes; then |
6e148807 | 4576 | # thread_file='irix' |
04069e5c | 4577 | # fi |
861bb6c1 JL |
4578 | ;; |
4579 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 4580 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4581 | if test x$stabs = xyes; then |
861bb6c1 JL |
4582 | tm_file="${tm_file} dbx.h" |
4583 | fi | |
f6cb0e63 | 4584 | xm_defines=USG |
861bb6c1 | 4585 | xmake_file=mips/x-iris |
75bffa71 | 4586 | if test x$gas = xyes |
861bb6c1 JL |
4587 | then |
4588 | tmake_file=mips/t-mips-gas | |
4589 | else | |
4590 | extra_passes="mips-tfile mips-tdump" | |
4591 | fi | |
75bffa71 | 4592 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4593 | then |
4594 | use_collect2=yes | |
4595 | fi | |
04069e5c | 4596 | # if test x$enable_threads = xyes; then |
6e148807 | 4597 | # thread_file='irix' |
04069e5c | 4598 | # fi |
861bb6c1 JL |
4599 | ;; |
4600 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 4601 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4602 | if test x$stabs = xyes; then |
861bb6c1 JL |
4603 | tm_file="${tm_file} dbx.h" |
4604 | fi | |
f6cb0e63 | 4605 | xm_defines=USG |
861bb6c1 | 4606 | xmake_file=mips/x-iris |
75bffa71 | 4607 | if test x$gas = xyes |
861bb6c1 JL |
4608 | then |
4609 | tmake_file=mips/t-mips-gas | |
4610 | else | |
4611 | extra_passes="mips-tfile mips-tdump" | |
4612 | fi | |
75bffa71 | 4613 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4614 | then |
4615 | use_collect2=yes | |
4616 | fi | |
04069e5c | 4617 | # if test x$enable_threads = xyes; then |
6e148807 | 4618 | # thread_file='irix' |
04069e5c | 4619 | # fi |
861bb6c1 JL |
4620 | ;; |
4621 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 4622 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 4623 | if test x$stabs = xyes; then |
861bb6c1 JL |
4624 | tm_file="${tm_file} dbx.h" |
4625 | fi | |
f6cb0e63 | 4626 | xm_defines=USG |
861bb6c1 | 4627 | xmake_file=mips/x-iris3 |
75bffa71 | 4628 | if test x$gas = xyes |
861bb6c1 JL |
4629 | then |
4630 | tmake_file=mips/t-mips-gas | |
4631 | else | |
4632 | extra_passes="mips-tfile mips-tdump" | |
4633 | fi | |
75bffa71 | 4634 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4635 | then |
4636 | use_collect2=yes | |
4637 | fi | |
4638 | ;; | |
4639 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 4640 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
4641 | xmake_file=mips/x-osfrose |
4642 | tmake_file=mips/t-osfrose | |
4643 | extra_objs=halfpic.o | |
4644 | use_collect2=yes | |
4645 | ;; | |
4646 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
4647 | tm_file=mips/dec-osf1.h | |
75bffa71 | 4648 | if test x$stabs = xyes; then |
861bb6c1 JL |
4649 | tm_file="${tm_file} dbx.h" |
4650 | fi | |
4651 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 4652 | if test x$gas = xyes |
861bb6c1 JL |
4653 | then |
4654 | tmake_file=mips/t-mips-gas | |
4655 | else | |
4656 | tmake_file=mips/t-ultrix | |
4657 | extra_passes="mips-tfile mips-tdump" | |
4658 | fi | |
75bffa71 | 4659 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4660 | then |
4661 | use_collect2=yes | |
4662 | fi | |
4663 | ;; | |
4664 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
4665 | tm_file=mips/dec-bsd.h | |
75bffa71 | 4666 | if test x$gas = xyes |
861bb6c1 JL |
4667 | then |
4668 | tmake_file=mips/t-mips-gas | |
4669 | else | |
4670 | tmake_file=mips/t-ultrix | |
4671 | extra_passes="mips-tfile mips-tdump" | |
4672 | fi | |
75bffa71 | 4673 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4674 | then |
4675 | use_collect2=yes | |
4676 | fi | |
4677 | ;; | |
58600d24 | 4678 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 4679 | tm_file=mips/netbsd.h |
be1ed94f | 4680 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 4681 | tmake_file=t-netbsd |
861bb6c1 | 4682 | ;; |
54953b66 | 4683 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 RL |
4684 | xmake_file=x-linux |
4685 | xm_file="xm-siglist.h ${xm_file}" | |
54953b66 UD |
4686 | case $machine in |
4687 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
4688 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
4689 | esac | |
18cae839 RL |
4690 | extra_parts="crtbegin.o crtend.o" |
4691 | gnu_ld=yes | |
4692 | gas=yes | |
18cae839 | 4693 | ;; |
1b4a979b ME |
4694 | mips*el-*-openbsd*) # mips little endian |
4695 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4696 | tm_file=mips/openbsd.h | |
1b4a979b ME |
4697 | ;; |
4698 | mips*-*-openbsd*) # mips big endian | |
4699 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4700 | tm_file=mips/openbsd-be.h | |
1b4a979b | 4701 | ;; |
861bb6c1 | 4702 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 4703 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 4704 | if test x$stabs = xyes; then |
861bb6c1 JL |
4705 | tm_file="${tm_file} dbx.h" |
4706 | fi | |
75bffa71 | 4707 | if test x$gas = xyes |
861bb6c1 JL |
4708 | then |
4709 | tmake_file=mips/t-mips-gas | |
4710 | else | |
4711 | extra_passes="mips-tfile mips-tdump" | |
4712 | fi | |
75bffa71 | 4713 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4714 | then |
4715 | use_collect2=yes | |
4716 | fi | |
4717 | xmake_file=mips/x-sony | |
4718 | ;; | |
4719 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
4720 | # That is based on svr4. | |
4721 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 4722 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 4723 | if test x$stabs = xyes; then |
861bb6c1 JL |
4724 | tm_file="${tm_file} dbx.h" |
4725 | fi | |
f6cb0e63 JL |
4726 | xm_file="xm-siglist.h ${xm_file}" |
4727 | xm_defines=USG | |
75bffa71 | 4728 | if test x$gas = xyes |
861bb6c1 JL |
4729 | then |
4730 | tmake_file=mips/t-mips-gas | |
4731 | else | |
4732 | extra_passes="mips-tfile mips-tdump" | |
4733 | fi | |
75bffa71 | 4734 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4735 | then |
4736 | use_collect2=yes | |
4737 | fi | |
4738 | ;; | |
4739 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 4740 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 4741 | if test x$stabs = xyes; then |
861bb6c1 JL |
4742 | tm_file="${tm_file} dbx.h" |
4743 | fi | |
f6cb0e63 JL |
4744 | xm_file="xm-siglist.h ${xm_file}" |
4745 | xm_defines=USG | |
861bb6c1 | 4746 | xmake_file=mips/x-sysv |
75bffa71 | 4747 | if test x$gas = xyes |
861bb6c1 JL |
4748 | then |
4749 | tmake_file=mips/t-mips-gas | |
4750 | extra_parts="crtbegin.o crtend.o" | |
4751 | else | |
4752 | tmake_file=mips/t-mips | |
4753 | extra_passes="mips-tfile mips-tdump" | |
4754 | fi | |
75bffa71 | 4755 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4756 | then |
4757 | use_collect2=yes | |
4758 | fi | |
861bb6c1 JL |
4759 | ;; |
4760 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 4761 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 4762 | if test x$stabs = xyes; then |
861bb6c1 JL |
4763 | tm_file="${tm_file} dbx.h" |
4764 | fi | |
4765 | xmake_file=mips/x-ultrix | |
75bffa71 | 4766 | if test x$gas = xyes |
861bb6c1 JL |
4767 | then |
4768 | tmake_file=mips/t-mips-gas | |
4769 | else | |
4770 | tmake_file=mips/t-ultrix | |
4771 | extra_passes="mips-tfile mips-tdump" | |
4772 | fi | |
75bffa71 | 4773 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4774 | then |
4775 | use_collect2=yes | |
4776 | fi | |
4777 | ;; | |
4778 | mips-*-riscos[56789]bsd*) | |
4779 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 4780 | if test x$stabs = xyes; then |
861bb6c1 JL |
4781 | tm_file="${tm_file} dbx.h" |
4782 | fi | |
75bffa71 | 4783 | if test x$gas = xyes |
861bb6c1 JL |
4784 | then |
4785 | tmake_file=mips/t-bsd-gas | |
4786 | else | |
4787 | tmake_file=mips/t-bsd | |
4788 | extra_passes="mips-tfile mips-tdump" | |
4789 | fi | |
75bffa71 | 4790 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4791 | then |
4792 | use_collect2=yes | |
4793 | fi | |
861bb6c1 JL |
4794 | ;; |
4795 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 4796 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 4797 | if test x$stabs = xyes; then |
861bb6c1 JL |
4798 | tm_file="${tm_file} dbx.h" |
4799 | fi | |
75bffa71 | 4800 | if test x$gas = xyes |
861bb6c1 JL |
4801 | then |
4802 | tmake_file=mips/t-bsd-gas | |
4803 | else | |
4804 | tmake_file=mips/t-bsd | |
4805 | extra_passes="mips-tfile mips-tdump" | |
4806 | fi | |
75bffa71 | 4807 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4808 | then |
4809 | use_collect2=yes | |
4810 | fi | |
861bb6c1 JL |
4811 | ;; |
4812 | mips-*-riscos[56789]sysv4*) | |
4813 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 4814 | if test x$stabs = xyes; then |
861bb6c1 JL |
4815 | tm_file="${tm_file} dbx.h" |
4816 | fi | |
f6cb0e63 | 4817 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 | 4818 | xmake_file=mips/x-sysv |
75bffa71 | 4819 | if test x$gas = xyes |
861bb6c1 JL |
4820 | then |
4821 | tmake_file=mips/t-svr4-gas | |
4822 | else | |
4823 | tmake_file=mips/t-svr4 | |
4824 | extra_passes="mips-tfile mips-tdump" | |
4825 | fi | |
75bffa71 | 4826 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4827 | then |
4828 | use_collect2=yes | |
4829 | fi | |
861bb6c1 JL |
4830 | ;; |
4831 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 4832 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 4833 | if test x$stabs = xyes; then |
861bb6c1 JL |
4834 | tm_file="${tm_file} dbx.h" |
4835 | fi | |
f6cb0e63 | 4836 | xm_defines=USG |
861bb6c1 | 4837 | xmake_file=mips/x-sysv |
75bffa71 | 4838 | if test x$gas = xyes |
861bb6c1 JL |
4839 | then |
4840 | tmake_file=mips/t-svr4-gas | |
4841 | else | |
4842 | tmake_file=mips/t-svr4 | |
4843 | extra_passes="mips-tfile mips-tdump" | |
4844 | fi | |
75bffa71 | 4845 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4846 | then |
4847 | use_collect2=yes | |
4848 | fi | |
861bb6c1 JL |
4849 | ;; |
4850 | mips-*-riscos[56789]sysv*) | |
4851 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 4852 | if test x$stabs = xyes; then |
861bb6c1 JL |
4853 | tm_file="${tm_file} dbx.h" |
4854 | fi | |
f6cb0e63 | 4855 | xm_defines=USG |
861bb6c1 | 4856 | xmake_file=mips/x-sysv |
75bffa71 | 4857 | if test x$gas = xyes |
861bb6c1 JL |
4858 | then |
4859 | tmake_file=mips/t-svr3-gas | |
4860 | else | |
4861 | tmake_file=mips/t-svr3 | |
4862 | extra_passes="mips-tfile mips-tdump" | |
4863 | fi | |
75bffa71 | 4864 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4865 | then |
4866 | use_collect2=yes | |
4867 | fi | |
861bb6c1 JL |
4868 | ;; |
4869 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 4870 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 4871 | if test x$stabs = xyes; then |
861bb6c1 JL |
4872 | tm_file="${tm_file} dbx.h" |
4873 | fi | |
f6cb0e63 | 4874 | xm_defines=USG |
861bb6c1 | 4875 | xmake_file=mips/x-sysv |
75bffa71 | 4876 | if test x$gas = xyes |
861bb6c1 JL |
4877 | then |
4878 | tmake_file=mips/t-svr3-gas | |
4879 | else | |
4880 | tmake_file=mips/t-svr3 | |
4881 | extra_passes="mips-tfile mips-tdump" | |
4882 | fi | |
75bffa71 | 4883 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4884 | then |
4885 | use_collect2=yes | |
4886 | fi | |
861bb6c1 JL |
4887 | ;; |
4888 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4889 | tm_file=mips/mips-5.h | |
75bffa71 | 4890 | if test x$stabs = xyes; then |
861bb6c1 JL |
4891 | tm_file="${tm_file} dbx.h" |
4892 | fi | |
75bffa71 | 4893 | if test x$gas = xyes |
861bb6c1 JL |
4894 | then |
4895 | tmake_file=mips/t-mips-gas | |
4896 | else | |
4897 | extra_passes="mips-tfile mips-tdump" | |
4898 | fi | |
75bffa71 | 4899 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4900 | then |
4901 | use_collect2=yes | |
4902 | fi | |
861bb6c1 JL |
4903 | ;; |
4904 | mips-*-gnu*) | |
4905 | ;; | |
4906 | mipsel-*-ecoff*) | |
4907 | tm_file=mips/ecoffl.h | |
75bffa71 | 4908 | if test x$stabs = xyes; then |
861bb6c1 JL |
4909 | tm_file="${tm_file} dbx.h" |
4910 | fi | |
4911 | tmake_file=mips/t-ecoff | |
4912 | ;; | |
4913 | mips-*-ecoff*) | |
1be12a4a | 4914 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 4915 | if test x$stabs = xyes; then |
861bb6c1 JL |
4916 | tm_file="${tm_file} dbx.h" |
4917 | fi | |
4918 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
4919 | ;; |
4920 | mipsel-*-elf*) | |
4921 | tm_file="mips/elfl.h libgloss.h" | |
d8265d29 | 4922 | tmake_file=mips/t-elf |
861bb6c1 JL |
4923 | ;; |
4924 | mips-*-elf*) | |
d8265d29 CM |
4925 | tm_file="mips/elf.h" |
4926 | tmake_file=mips/t-elf | |
861bb6c1 JL |
4927 | ;; |
4928 | mips64el-*-elf*) | |
d8265d29 CM |
4929 | tm_file="mips/elfl64.h" |
4930 | tmake_file=mips/t-elf | |
861bb6c1 JL |
4931 | ;; |
4932 | mips64orionel-*-elf*) | |
f6cb0e63 | 4933 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
d8265d29 | 4934 | tmake_file=mips/t-elf |
861bb6c1 JL |
4935 | ;; |
4936 | mips64-*-elf*) | |
d8265d29 CM |
4937 | tm_file="mips/elf64.h" |
4938 | tmake_file=mips/t-elf | |
861bb6c1 JL |
4939 | ;; |
4940 | mips64orion-*-elf*) | |
f6cb0e63 | 4941 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
d8265d29 | 4942 | tmake_file=mips/t-elf |
861bb6c1 JL |
4943 | ;; |
4944 | mips64orion-*-rtems*) | |
6e9856ba | 4945 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
861bb6c1 JL |
4946 | tmake_file="mips/t-ecoff t-rtems" |
4947 | ;; | |
e9a25f70 | 4948 | mipstx39el-*-elf*) |
d8265d29 | 4949 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 4950 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
4951 | ;; |
4952 | mipstx39-*-elf*) | |
d8265d29 | 4953 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 4954 | tmake_file=mips/t-r3900 |
e9a25f70 | 4955 | ;; |
861bb6c1 | 4956 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 4957 | if test x$stabs = xyes; then |
861bb6c1 JL |
4958 | tm_file="${tm_file} dbx.h" |
4959 | fi | |
75bffa71 | 4960 | if test x$gas = xyes |
861bb6c1 JL |
4961 | then |
4962 | tmake_file=mips/t-mips-gas | |
4963 | else | |
4964 | extra_passes="mips-tfile mips-tdump" | |
4965 | fi | |
75bffa71 | 4966 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4967 | then |
4968 | use_collect2=yes | |
4969 | fi | |
4970 | ;; | |
4971 | mn10200-*-*) | |
4972 | cpu_type=mn10200 | |
4973 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 4974 | if test x$stabs = xyes |
861bb6c1 JL |
4975 | then |
4976 | tm_file="${tm_file} dbx.h" | |
4977 | fi | |
4978 | use_collect2=no | |
4979 | ;; | |
4980 | mn10300-*-*) | |
4981 | cpu_type=mn10300 | |
4982 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 4983 | if test x$stabs = xyes |
861bb6c1 JL |
4984 | then |
4985 | tm_file="${tm_file} dbx.h" | |
4986 | fi | |
4987 | use_collect2=no | |
4988 | ;; | |
4989 | ns32k-encore-bsd*) | |
4990 | tm_file=ns32k/encore.h | |
4991 | use_collect2=yes | |
4992 | ;; | |
4993 | ns32k-sequent-bsd*) | |
4994 | tm_file=ns32k/sequent.h | |
4995 | use_collect2=yes | |
4996 | ;; | |
4997 | ns32k-tek6100-bsd*) | |
4998 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
4999 | use_collect2=yes |
5000 | ;; | |
5001 | ns32k-tek6200-bsd*) | |
5002 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5003 | use_collect2=yes |
5004 | ;; | |
5005 | # This has not been updated to GCC 2. | |
5006 | # ns32k-ns-genix*) | |
f6cb0e63 | 5007 | # xm_defines=USG |
861bb6c1 JL |
5008 | # xmake_file=ns32k/x-genix |
5009 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5010 | # use_collect2=yes |
5011 | # ;; | |
5012 | ns32k-merlin-*) | |
5013 | tm_file=ns32k/merlin.h | |
5014 | use_collect2=yes | |
5015 | ;; | |
5016 | ns32k-pc532-mach*) | |
5017 | tm_file=ns32k/pc532-mach.h | |
5018 | use_collect2=yes | |
5019 | ;; | |
5020 | ns32k-pc532-minix*) | |
5021 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5022 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5023 | xm_defines=USG | |
861bb6c1 JL |
5024 | use_collect2=yes |
5025 | ;; | |
58600d24 | 5026 | ns32k-*-netbsd*) |
861bb6c1 | 5027 | tm_file=ns32k/netbsd.h |
641d4216 | 5028 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5029 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5030 | tmake_file=t-netbsd |
af0ca027 | 5031 | use_collect2=yes |
861bb6c1 JL |
5032 | ;; |
5033 | pdp11-*-bsd) | |
5034 | tm_file="${tm_file} pdp11/2bsd.h" | |
5035 | ;; | |
5036 | pdp11-*-*) | |
5037 | ;; | |
1b4a979b ME |
5038 | ns32k-*-openbsd*) |
5039 | # Nothing special | |
5040 | ;; | |
861bb6c1 JL |
5041 | pyramid-*-*) |
5042 | cpu_type=pyr | |
5043 | xmake_file=pyr/x-pyr | |
5044 | use_collect2=yes | |
5045 | ;; | |
5046 | romp-*-aos*) | |
5047 | use_collect2=yes | |
5048 | ;; | |
5049 | romp-*-mach*) | |
5050 | xmake_file=romp/x-mach | |
5051 | use_collect2=yes | |
5052 | ;; | |
1b4a979b ME |
5053 | romp-*-openbsd*) |
5054 | # Nothing special | |
5055 | ;; | |
5056 | powerpc-*-openbsd*) | |
5057 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5058 | ;; |
c55dcc7d FF |
5059 | powerpc-*-beos*) |
5060 | cpu_type=rs6000 | |
5061 | tm_file=rs6000/beos.h | |
5062 | xm_file=rs6000/xm-beos.h | |
5063 | tmake_file=rs6000/t-beos | |
5064 | xmake_file=rs6000/x-beos | |
5065 | ;; | |
861bb6c1 JL |
5066 | powerpc-*-sysv* | powerpc-*-elf*) |
5067 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
5068 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5069 | xm_defines="USG POSIX" | |
861bb6c1 | 5070 | extra_headers=ppc-asm.h |
75bffa71 | 5071 | if test x$gas = xyes |
861bb6c1 JL |
5072 | then |
5073 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5074 | else | |
5075 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5076 | fi | |
5077 | xmake_file=rs6000/x-sysv4 | |
5078 | ;; | |
5079 | powerpc-*-eabiaix*) | |
5080 | tm_file=rs6000/eabiaix.h | |
5081 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5082 | extra_headers=ppc-asm.h |
5083 | ;; | |
5084 | powerpc-*-eabisim*) | |
5085 | tm_file=rs6000/eabisim.h | |
5086 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5087 | extra_headers=ppc-asm.h |
5088 | ;; | |
5089 | powerpc-*-eabi*) | |
5090 | tm_file=rs6000/eabi.h | |
75bffa71 | 5091 | if test x$gas = xyes |
861bb6c1 JL |
5092 | then |
5093 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5094 | else | |
5095 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5096 | fi | |
861bb6c1 JL |
5097 | extra_headers=ppc-asm.h |
5098 | ;; | |
5099 | powerpc-*-rtems*) | |
5100 | tm_file=rs6000/rtems.h | |
75bffa71 | 5101 | if test x$gas = xyes |
861bb6c1 JL |
5102 | then |
5103 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5104 | else | |
5105 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5106 | fi | |
861bb6c1 JL |
5107 | extra_headers=ppc-asm.h |
5108 | ;; | |
ce514f57 FS |
5109 | powerpc-*-linux-gnulibc1) |
5110 | tm_file=rs6000/linux.h | |
5111 | xm_file=rs6000/xm-sysv4.h | |
5112 | out_file=rs6000/rs6000.c | |
75bffa71 | 5113 | if test x$gas = xyes |
ce514f57 FS |
5114 | then |
5115 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5116 | else | |
5117 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5118 | fi | |
5119 | xmake_file=x-linux | |
ce514f57 FS |
5120 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5121 | extra_headers=ppc-asm.h | |
75bffa71 | 5122 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5123 | thread_file='posix' |
5124 | fi | |
5125 | ;; | |
861bb6c1 JL |
5126 | powerpc-*-linux-gnu*) |
5127 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
5128 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5129 | xm_defines="USG ${xm_defines}" | |
861bb6c1 | 5130 | out_file=rs6000/rs6000.c |
75bffa71 | 5131 | if test x$gas = xyes |
861bb6c1 JL |
5132 | then |
5133 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5134 | else | |
5135 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5136 | fi | |
5137 | xmake_file=x-linux | |
861bb6c1 JL |
5138 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5139 | extra_headers=ppc-asm.h | |
75bffa71 | 5140 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5141 | thread_file='posix' |
5142 | fi | |
5143 | ;; | |
7cc34889 | 5144 | powerpc-wrs-vxworks*) |
861bb6c1 | 5145 | cpu_type=rs6000 |
f6cb0e63 JL |
5146 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5147 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5148 | tm_file=rs6000/vxppc.h |
5149 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5150 | extra_headers=ppc-asm.h | |
7cc34889 | 5151 | thread_file='vxworks' |
861bb6c1 JL |
5152 | ;; |
5153 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
5154 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
5155 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5156 | xm_defines="USG POSIX" | |
75bffa71 | 5157 | if test x$gas = xyes |
861bb6c1 JL |
5158 | then |
5159 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5160 | else | |
5161 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5162 | fi | |
5163 | xmake_file=rs6000/x-sysv4 | |
5164 | extra_headers=ppc-asm.h | |
5165 | ;; | |
5166 | powerpcle-*-eabisim*) | |
5167 | tm_file=rs6000/eabilesim.h | |
5168 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5169 | extra_headers=ppc-asm.h |
5170 | ;; | |
5171 | powerpcle-*-eabi*) | |
5172 | tm_file=rs6000/eabile.h | |
75bffa71 | 5173 | if test x$gas = xyes |
861bb6c1 JL |
5174 | then |
5175 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5176 | else | |
5177 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5178 | fi | |
861bb6c1 JL |
5179 | extra_headers=ppc-asm.h |
5180 | ;; | |
5181 | powerpcle-*-winnt* ) | |
5182 | tm_file=rs6000/win-nt.h | |
5183 | tmake_file=rs6000/t-winnt | |
5184 | # extra_objs=pe.o | |
75bffa71 | 5185 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5186 | thread_file='win32' |
5187 | fi | |
5188 | extra_headers=ppc-asm.h | |
5189 | ;; | |
cae21ae8 GN |
5190 | powerpcle-*-pe | powerpcle-*-cygwin*) |
5191 | tm_file=rs6000/cygwin.h | |
5192 | xm_file="rs6000/xm-cygwin.h ${xm_file}" | |
861bb6c1 | 5193 | tmake_file=rs6000/t-winnt |
cae21ae8 | 5194 | xmake_file=rs6000/x-cygwin |
861bb6c1 | 5195 | # extra_objs=pe.o |
75bffa71 | 5196 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5197 | thread_file='win32' |
5198 | fi | |
5199 | exeext=.exe | |
5200 | extra_headers=ppc-asm.h | |
5201 | ;; | |
5202 | powerpcle-*-solaris2*) | |
5203 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
5204 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5205 | xm_defines="USG POSIX" | |
75bffa71 | 5206 | if test x$gas = xyes |
861bb6c1 JL |
5207 | then |
5208 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5209 | else | |
5210 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5211 | fi | |
5212 | xmake_file=rs6000/x-sysv4 | |
861bb6c1 JL |
5213 | extra_headers=ppc-asm.h |
5214 | ;; | |
5215 | rs6000-ibm-aix3.[01]*) | |
5216 | tm_file=rs6000/aix31.h | |
5217 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5218 | float_format=none |
861bb6c1 JL |
5219 | use_collect2=yes |
5220 | ;; | |
5221 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5222 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5223 | if test x$host != x$target |
861bb6c1 JL |
5224 | then |
5225 | tmake_file=rs6000/t-xnewas | |
5226 | else | |
5227 | tmake_file=rs6000/t-newas | |
5228 | fi | |
45e24d08 | 5229 | float_format=none |
861bb6c1 JL |
5230 | use_collect2=yes |
5231 | ;; | |
05cea40f | 5232 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 5233 | tm_file=rs6000/aix41.h |
75bffa71 | 5234 | if test x$host != x$target |
861bb6c1 JL |
5235 | then |
5236 | tmake_file=rs6000/t-xnewas | |
5237 | else | |
5238 | tmake_file=rs6000/t-newas | |
5239 | fi | |
590e30e7 JW |
5240 | if test "$gnu_ld" = yes |
5241 | then | |
5242 | xmake_file=rs6000/x-aix41-gld | |
5243 | else | |
c83fe036 | 5244 | xmake_file=rx6000/x-aix41 |
590e30e7 | 5245 | fi |
45e24d08 | 5246 | float_format=none |
0a95276e JL |
5247 | use_collect2=yes |
5248 | ;; | |
7747ddb3 | 5249 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 5250 | tm_file=rs6000/aix43.h |
75bffa71 | 5251 | if test x$host != x$target |
0a95276e JL |
5252 | then |
5253 | tmake_file=rs6000/t-xaix43 | |
5254 | else | |
5255 | tmake_file=rs6000/t-aix43 | |
5256 | fi | |
5257 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5258 | float_format=none |
0a95276e JL |
5259 | use_collect2=yes |
5260 | ;; | |
5261 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5262 | tm_file=rs6000/aix43.h | |
75bffa71 | 5263 | if test x$host != x$target |
0a95276e JL |
5264 | then |
5265 | tmake_file=rs6000/t-xaix43 | |
5266 | else | |
5267 | tmake_file=rs6000/t-aix43 | |
5268 | fi | |
5269 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5270 | float_format=none |
861bb6c1 JL |
5271 | use_collect2=yes |
5272 | ;; | |
5273 | rs6000-ibm-aix*) | |
45e24d08 | 5274 | float_format=none |
861bb6c1 JL |
5275 | use_collect2=yes |
5276 | ;; | |
5277 | rs6000-bull-bosx) | |
45e24d08 | 5278 | float_format=none |
861bb6c1 JL |
5279 | use_collect2=yes |
5280 | ;; | |
5281 | rs6000-*-mach*) | |
5282 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5283 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5284 | xmake_file=rs6000/x-mach |
5285 | use_collect2=yes | |
5286 | ;; | |
5287 | rs6000-*-lynxos*) | |
5288 | tm_file=rs6000/lynx.h | |
5289 | xm_file=rs6000/xm-lynx.h | |
5290 | tmake_file=rs6000/t-rs6000 | |
5291 | xmake_file=rs6000/x-lynx | |
5292 | use_collect2=yes | |
5293 | ;; | |
5294 | sh-*-elf*) | |
5295 | tm_file=sh/elf.h | |
5296 | float_format=sh | |
5297 | ;; | |
b098f56d JS |
5298 | sh-*-rtemself*) |
5299 | tmake_file="sh/t-sh t-rtems" | |
5300 | tm_file=sh/rtemself.h | |
5301 | float_format=sh | |
5302 | ;; | |
5d84b57e JS |
5303 | sh-*-rtems*) |
5304 | tmake_file="sh/t-sh t-rtems" | |
5305 | tm_file=sh/rtems.h | |
5306 | float_format=sh | |
5307 | ;; | |
861bb6c1 JL |
5308 | sh-*-*) |
5309 | float_format=sh | |
5310 | ;; | |
5311 | sparc-tti-*) | |
5312 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5313 | xm_file="xm-alloca.h ${xm_file}" |
5314 | xm_defines=USG | |
861bb6c1 JL |
5315 | ;; |
5316 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5317 | tm_file=sparc/vxsparc.h | |
5318 | tmake_file=sparc/t-vxsparc | |
5319 | use_collect2=yes | |
7cc34889 | 5320 | thread_file='vxworks' |
861bb6c1 JL |
5321 | ;; |
5322 | sparc-*-aout*) | |
5323 | tmake_file=sparc/t-sparcbare | |
5324 | tm_file="sparc/aout.h libgloss.h" | |
5325 | ;; | |
5326 | sparc-*-netbsd*) | |
5327 | tm_file=sparc/netbsd.h | |
861bb6c1 | 5328 | tmake_file=t-netbsd |
af0ca027 | 5329 | use_collect2=yes |
861bb6c1 | 5330 | ;; |
1b4a979b ME |
5331 | sparc-*-openbsd*) |
5332 | # we need collect2 until our bug is fixed... | |
5333 | use_collect2=yes | |
5334 | ;; | |
861bb6c1 JL |
5335 | sparc-*-bsd*) |
5336 | tm_file=sparc/bsd.h | |
5337 | ;; | |
ac52b80b DE |
5338 | sparc-*-elf*) |
5339 | tm_file=sparc/elf.h | |
5340 | tmake_file=sparc/t-elf | |
5341 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5342 | #float_format=i128 | |
5343 | float_format=i64 | |
5344 | ;; | |
956d6950 | 5345 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5346 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5347 | tm_file=sparc/linux-aout.h |
5348 | xmake_file=x-linux | |
861bb6c1 JL |
5349 | gnu_ld=yes |
5350 | ;; | |
956d6950 | 5351 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5352 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5353 | xmake_file=x-linux |
861bb6c1 | 5354 | tm_file=sparc/linux.h |
3e88bbdb | 5355 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5356 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 JL |
5357 | gnu_ld=yes |
5358 | ;; | |
956d6950 | 5359 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5360 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5361 | xmake_file=x-linux |
861bb6c1 | 5362 | tm_file=sparc/linux.h |
3e88bbdb | 5363 | tmake_file="t-linux" |
861bb6c1 | 5364 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5365 | gnu_ld=yes |
75bffa71 | 5366 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5367 | thread_file='posix' |
5368 | fi | |
5369 | ;; | |
5370 | sparc-*-lynxos*) | |
75bffa71 | 5371 | if test x$gas = xyes |
861bb6c1 JL |
5372 | then |
5373 | tm_file=sparc/lynx.h | |
5374 | else | |
5375 | tm_file=sparc/lynx-ng.h | |
5376 | fi | |
5377 | xm_file=sparc/xm-lynx.h | |
5378 | tmake_file=sparc/t-sunos41 | |
5379 | xmake_file=x-lynx | |
5380 | ;; | |
5381 | sparc-*-rtems*) | |
5382 | tmake_file="sparc/t-sparcbare t-rtems" | |
5383 | tm_file=sparc/rtems.h | |
5384 | ;; | |
d559a4db DM |
5385 | sparcv9-*-solaris2*) |
5386 | tm_file=sparc/sol2-sld-64.h | |
5387 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
5388 | xm_defines="USG POSIX" | |
345a6161 | 5389 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5390 | xmake_file=sparc/x-sysv4 |
5391 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 5392 | float_format=none |
d7496fbb | 5393 | if test x${enable_threads} = x ; then |
d559a4db | 5394 | enable_threads=$have_pthread_h |
d7496fbb | 5395 | if test x${enable_threads} = x ; then |
d559a4db DM |
5396 | enable_threads=$have_thread_h |
5397 | fi | |
5398 | fi | |
d7496fbb DM |
5399 | if test x${enable_threads} = xyes ; then |
5400 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5401 | thread_file='posix' |
5402 | else | |
5403 | thread_file='solaris' | |
5404 | fi | |
5405 | fi | |
5406 | ;; | |
ab87f8c8 JL |
5407 | sparc-hal-solaris2*) |
5408 | xm_file=sparc/xm-sol2.h | |
5409 | tm_file="sparc/sol2.h sparc/hal.h" | |
5410 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5411 | xmake_file=sparc/x-sysv4 | |
5412 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
ab87f8c8 JL |
5413 | broken_install=yes |
5414 | ;; | |
861bb6c1 | 5415 | sparc-*-solaris2*) |
75bffa71 | 5416 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5417 | then |
5418 | tm_file=sparc/sol2.h | |
5419 | else | |
5420 | tm_file=sparc/sol2-sld.h | |
5421 | fi | |
0b3d64d2 JL |
5422 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5423 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5424 | tmake_file=sparc/t-sol2 |
5425 | xmake_file=sparc/x-sysv4 | |
5426 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
5427 | case $machine in |
5428 | *-*-solaris2.[0-4]) | |
027ea2a7 JW |
5429 | float_format=i128 |
5430 | ;; | |
f6cb0e63 | 5431 | *) |
027ea2a7 JW |
5432 | float_format=none |
5433 | ;; | |
f6cb0e63 | 5434 | esac |
75bffa71 | 5435 | if test x${enable_threads} = x; then |
f24af81b | 5436 | enable_threads=$have_pthread_h |
75bffa71 | 5437 | if test x${enable_threads} = x; then |
f24af81b TT |
5438 | enable_threads=$have_thread_h |
5439 | fi | |
5440 | fi | |
75bffa71 ILT |
5441 | if test x${enable_threads} = xyes; then |
5442 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
5443 | thread_file='posix' |
5444 | else | |
861bb6c1 | 5445 | thread_file='solaris' |
f24af81b | 5446 | fi |
861bb6c1 JL |
5447 | fi |
5448 | ;; | |
5449 | sparc-*-sunos4.0*) | |
5450 | tm_file=sparc/sunos4.h | |
5451 | tmake_file=sparc/t-sunos40 | |
5452 | use_collect2=yes | |
5453 | ;; | |
5454 | sparc-*-sunos4*) | |
5455 | tm_file=sparc/sunos4.h | |
5456 | tmake_file=sparc/t-sunos41 | |
5457 | use_collect2=yes | |
75bffa71 | 5458 | if test x$gas = xyes; then |
ca55abae JM |
5459 | tm_file="${tm_file} sparc/sun4gas.h" |
5460 | fi | |
861bb6c1 JL |
5461 | ;; |
5462 | sparc-*-sunos3*) | |
5463 | tm_file=sparc/sun4o3.h | |
5464 | use_collect2=yes | |
5465 | ;; | |
5466 | sparc-*-sysv4*) | |
5467 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
5468 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
5469 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5470 | tmake_file=t-svr4 |
5471 | xmake_file=sparc/x-sysv4 | |
5472 | extra_parts="crtbegin.o crtend.o" | |
5473 | ;; | |
5474 | sparc-*-vxsim*) | |
f5963e61 JL |
5475 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5476 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5477 | tm_file=sparc/vxsim.h |
5478 | tmake_file=sparc/t-vxsparc | |
5479 | xmake_file=sparc/x-sysv4 | |
5480 | ;; | |
5481 | sparclet-*-aout*) | |
5482 | tm_file="sparc/splet.h libgloss.h" | |
5483 | tmake_file=sparc/t-splet | |
5484 | ;; | |
5485 | sparclite-*-coff*) | |
5486 | tm_file="sparc/litecoff.h libgloss.h" | |
5487 | tmake_file=sparc/t-sparclite | |
5488 | ;; | |
5489 | sparclite-*-aout*) | |
5490 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
5491 | tmake_file=sparc/t-sparclite | |
5492 | ;; | |
5493 | sparc64-*-aout*) | |
5494 | tmake_file=sparc/t-sp64 | |
5495 | tm_file=sparc/sp64-aout.h | |
5496 | ;; | |
5497 | sparc64-*-elf*) | |
5498 | tmake_file=sparc/t-sp64 | |
5499 | tm_file=sparc/sp64-elf.h | |
5500 | extra_parts="crtbegin.o crtend.o" | |
5501 | ;; | |
956d6950 | 5502 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 5503 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
5504 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
5505 | tm_file=sparc/linux64.h | |
5506 | xmake_file=x-linux | |
345a6161 | 5507 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af DE |
5508 | gnu_ld=yes |
5509 | ;; | |
861bb6c1 JL |
5510 | # This hasn't been upgraded to GCC 2. |
5511 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
5512 | # tm_file=tahoe/harris.h | |
5513 | # ;; | |
5514 | # tahoe-*-bsd*) # tahoe running BSD | |
5515 | # ;; | |
e98e406f NC |
5516 | thumb-*-coff* | thumbel-*-coff*) |
5517 | tm_file=arm/tcoff.h | |
5518 | out_file=arm/thumb.c | |
5519 | xm_file=arm/xm-thumb.h | |
5520 | md_file=arm/thumb.md | |
5521 | tmake_file=arm/t-thumb | |
5522 | ;; | |
c83fe036 NC |
5523 | thumb-*-elf* | thumbel-*-elf*) |
5524 | tm_file=arm/telf.h | |
5525 | out_file=arm/thumb.c | |
5526 | xm_file=arm/xm-thumb.h | |
5527 | md_file=arm/thumb.md | |
5528 | tmake_file=arm/t-thumb-elf | |
5529 | ;; | |
28897609 MS |
5530 | thumb-wrs-vxworks) |
5531 | tm_file=arm/tcoff.h | |
5532 | out_file=arm/thumb.c | |
5533 | xm_file=arm/xm-thumb.h | |
5534 | md_file=arm/thumb.md | |
5535 | tmake_file=arm/t-thumb | |
5536 | thread_file='vxworks' | |
5537 | ;; | |
861bb6c1 JL |
5538 | # This hasn't been upgraded to GCC 2. |
5539 | # tron-*-*) | |
5540 | # cpu_type=gmicro | |
5541 | # use_collect2=yes | |
5542 | # ;; | |
f84271d9 JL |
5543 | v850-*-*) |
5544 | cpu_type=v850 | |
5545 | tm_file="v850/v850.h" | |
5546 | xm_file="v850/xm-v850.h" | |
62db76ee | 5547 | tmake_file=v850/t-v850 |
75bffa71 | 5548 | if test x$stabs = xyes |
f84271d9 JL |
5549 | then |
5550 | tm_file="${tm_file} dbx.h" | |
5551 | fi | |
5552 | use_collect2=no | |
5553 | ;; | |
861bb6c1 JL |
5554 | vax-*-bsd*) # vaxen running BSD |
5555 | use_collect2=yes | |
5556 | float_format=vax | |
5557 | ;; | |
5558 | vax-*-sysv*) # vaxen running system V | |
5559 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 5560 | xm_defines=USG |
861bb6c1 JL |
5561 | float_format=vax |
5562 | ;; | |
5563 | vax-*-netbsd*) | |
5564 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
5565 | tmake_file=t-netbsd |
5566 | float_format=vax | |
af0ca027 | 5567 | use_collect2=yes |
861bb6c1 | 5568 | ;; |
1b4a979b | 5569 | vax-*-openbsd*) |
766518a0 | 5570 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 5571 | ;; |
861bb6c1 JL |
5572 | vax-*-ultrix*) # vaxen running ultrix |
5573 | tm_file="${tm_file} vax/ultrix.h" | |
5574 | use_collect2=yes | |
5575 | float_format=vax | |
5576 | ;; | |
5577 | vax-*-vms*) # vaxen running VMS | |
5578 | xm_file=vax/xm-vms.h | |
5579 | tm_file=vax/vms.h | |
5580 | float_format=vax | |
5581 | ;; | |
5582 | vax-*-*) # vax default entry | |
5583 | float_format=vax | |
5584 | ;; | |
5585 | we32k-att-sysv*) | |
5586 | xm_file="${xm_file} xm-svr3" | |
5587 | use_collect2=yes | |
5588 | ;; | |
5589 | *) | |
5590 | echo "Configuration $machine not supported" 1>&2 | |
5591 | exit 1 | |
5592 | ;; | |
5593 | esac | |
5594 | ||
5595 | case $machine in | |
5596 | *-*-linux-gnu*) | |
f6cb0e63 | 5597 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
5598 | *-*-gnu*) |
5599 | # On the GNU system, the setup is just about the same on | |
5600 | # each different CPU. The specific machines that GNU | |
5601 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 5602 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
5603 | tm_file=${cpu_type}/gnu.h |
5604 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
5605 | # GNU always uses ELF. | |
5606 | elf=yes | |
5607 | # GNU tools are the only tools. | |
5608 | gnu_ld=yes | |
5609 | gas=yes | |
861bb6c1 JL |
5610 | xmake_file=x-linux # These details are the same as Linux. |
5611 | tmake_file=t-gnu # These are not. | |
5612 | ;; | |
5613 | *-*-sysv4*) | |
861bb6c1 | 5614 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
5615 | install_headers_dir=install-headers-cpio |
5616 | ;; | |
5617 | *-*-sysv*) | |
861bb6c1 JL |
5618 | install_headers_dir=install-headers-cpio |
5619 | ;; | |
5620 | esac | |
5621 | ||
f6cb0e63 | 5622 | # Distinguish i[34567]86 |
861bb6c1 JL |
5623 | # Also, do not run mips-tfile on MIPS if using gas. |
5624 | # Process --with-cpu= for PowerPC/rs6000 | |
5625 | target_cpu_default2= | |
5626 | case $machine in | |
5627 | i486-*-*) | |
5628 | target_cpu_default2=1 | |
5629 | ;; | |
5630 | i586-*-*) | |
83f4345f PT |
5631 | case $target_alias in |
5632 | k6-*) | |
5633 | target_cpu_default2=4 | |
5634 | ;; | |
5635 | *) | |
5636 | target_cpu_default2=2 | |
5637 | ;; | |
5638 | esac | |
861bb6c1 | 5639 | ;; |
f6cb0e63 | 5640 | i686-*-* | i786-*-*) |
861bb6c1 JL |
5641 | target_cpu_default2=3 |
5642 | ;; | |
5643 | alpha*-*-*) | |
5644 | case $machine in | |
e9a25f70 | 5645 | alphaev6*) |
de4abb91 | 5646 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
5647 | ;; |
5648 | alphapca56*) | |
fbb5ed67 | 5649 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 5650 | ;; |
861bb6c1 | 5651 | alphaev56*) |
e9a25f70 | 5652 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
5653 | ;; |
5654 | alphaev5*) | |
5655 | target_cpu_default2="MASK_CPU_EV5" | |
5656 | ;; | |
5657 | esac | |
5658 | ||
75bffa71 | 5659 | if test x$gas = xyes |
861bb6c1 | 5660 | then |
75bffa71 | 5661 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
5662 | then |
5663 | target_cpu_default2="MASK_GAS" | |
5664 | else | |
5665 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
5666 | fi | |
5667 | fi | |
5668 | ;; | |
956d6950 JL |
5669 | arm*-*-*) |
5670 | case "x$with_cpu" in | |
5671 | x) | |
5672 | # The most generic | |
5673 | target_cpu_default2="TARGET_CPU_generic" | |
5674 | ;; | |
5675 | ||
5676 | # Distinguish cores, and major variants | |
5677 | # arm7m doesn't exist, but D & I don't affect code | |
5678 | xarm23678 | xarm250 | xarm67010 \ | |
5679 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
5680 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 5681 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
5682 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5683 | ;; | |
5684 | ||
5685 | xyes | xno) | |
5686 | echo "--with-cpu must be passed a value" 1>&2 | |
5687 | exit 1 | |
5688 | ;; | |
5689 | ||
5690 | *) | |
75bffa71 | 5691 | if test x$pass2done = xyes |
956d6950 JL |
5692 | then |
5693 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5694 | exit 1 | |
5695 | fi | |
5696 | ;; | |
5697 | esac | |
5698 | ;; | |
5699 | ||
861bb6c1 | 5700 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 5701 | if test x$gas = xyes |
861bb6c1 | 5702 | then |
75bffa71 | 5703 | if test x$gnu_ld = xyes |
861bb6c1 JL |
5704 | then |
5705 | target_cpu_default2=20 | |
5706 | else | |
5707 | target_cpu_default2=16 | |
5708 | fi | |
5709 | fi | |
5710 | ;; | |
5711 | mips*-*-*) | |
75bffa71 | 5712 | if test x$gas = xyes |
861bb6c1 JL |
5713 | then |
5714 | target_cpu_default2=16 | |
5715 | fi | |
5716 | ;; | |
5717 | powerpc*-*-* | rs6000-*-*) | |
5718 | case "x$with_cpu" in | |
5719 | x) | |
5720 | ;; | |
5721 | ||
5722 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
5723 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
5724 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 5725 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 5726 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 5727 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
5728 | ;; |
5729 | ||
5730 | xyes | xno) | |
5731 | echo "--with-cpu must be passed a value" 1>&2 | |
5732 | exit 1 | |
5733 | ;; | |
5734 | ||
5735 | *) | |
75bffa71 | 5736 | if test x$pass2done = xyes |
956d6950 JL |
5737 | then |
5738 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5739 | exit 1 | |
5740 | fi | |
861bb6c1 JL |
5741 | ;; |
5742 | esac | |
5743 | ;; | |
5744 | sparc*-*-*) | |
5745 | case ".$with_cpu" in | |
5746 | .) | |
5747 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
5748 | ;; | |
8947065c | 5749 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
5750 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5751 | ;; | |
5752 | *) | |
75bffa71 | 5753 | if test x$pass2done = xyes |
956d6950 JL |
5754 | then |
5755 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5756 | exit 1 | |
5757 | fi | |
861bb6c1 JL |
5758 | ;; |
5759 | esac | |
5760 | ;; | |
5761 | esac | |
5762 | ||
75bffa71 | 5763 | if test "$target_cpu_default2" != "" |
861bb6c1 | 5764 | then |
75bffa71 | 5765 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
5766 | then |
5767 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
5768 | else | |
5769 | target_cpu_default=$target_cpu_default2 | |
5770 | fi | |
5771 | fi | |
5772 | ||
5773 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
5774 | # Actually, there is now; GNU ld doesn't handle the EH info or |
5775 | # collecting for shared libraries. | |
ca8c3b37 JM |
5776 | #case x$gnu_ld in |
5777 | #xyes) | |
5778 | # use_collect2= | |
5779 | # ;; | |
5780 | #esac | |
861bb6c1 JL |
5781 | |
5782 | # Save data on machine being used to compile GCC in build_xm_file. | |
5783 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 5784 | if test x$pass1done = x |
861bb6c1 | 5785 | then |
75bffa71 | 5786 | if test x"$xm_file" = x |
861bb6c1 JL |
5787 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
5788 | else build_xm_file=$xm_file | |
5789 | fi | |
f6cb0e63 | 5790 | build_xm_defines=$xm_defines |
861bb6c1 JL |
5791 | build_install_headers_dir=$install_headers_dir |
5792 | build_exeext=$exeext | |
5793 | pass1done=yes | |
5794 | else | |
75bffa71 | 5795 | if test x$pass2done = x |
861bb6c1 | 5796 | then |
75bffa71 | 5797 | if test x"$xm_file" = x |
861bb6c1 JL |
5798 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
5799 | else host_xm_file=$xm_file | |
5800 | fi | |
f6cb0e63 | 5801 | host_xm_defines=$xm_defines |
75bffa71 | 5802 | if test x"$xmake_file" = x |
861bb6c1 JL |
5803 | then xmake_file=$cpu_type/x-$cpu_type |
5804 | fi | |
5805 | host_xmake_file="$xmake_file" | |
5806 | host_truncate_target=$truncate_target | |
5807 | host_extra_gcc_objs=$extra_gcc_objs | |
5808 | host_extra_objs=$extra_host_objs | |
6e26218f | 5809 | host_exeext=$exeext |
861bb6c1 JL |
5810 | pass2done=yes |
5811 | fi | |
5812 | fi | |
5813 | done | |
5814 | ||
5815 | extra_objs="${host_extra_objs} ${extra_objs}" | |
5816 | ||
5817 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 5818 | if test x"$tm_file" = x |
861bb6c1 JL |
5819 | then tm_file=$cpu_type/$cpu_type.h; fi |
5820 | ||
75bffa71 | 5821 | if test x$extra_headers = x |
861bb6c1 JL |
5822 | then extra_headers=; fi |
5823 | ||
75bffa71 | 5824 | if test x"$xm_file" = x |
861bb6c1 JL |
5825 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
5826 | ||
75bffa71 | 5827 | if test x$md_file = x |
e98e406f | 5828 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 5829 | |
75bffa71 | 5830 | if test x$out_file = x |
861bb6c1 JL |
5831 | then out_file=$cpu_type/$cpu_type.c; fi |
5832 | ||
75bffa71 | 5833 | if test x"$tmake_file" = x |
861bb6c1 JL |
5834 | then tmake_file=$cpu_type/t-$cpu_type |
5835 | fi | |
5836 | ||
90e6a802 RL |
5837 | if test x"$dwarf2" = xyes |
5838 | then tm_file="tm-dwarf2.h $tm_file" | |
5839 | fi | |
5840 | ||
75bffa71 | 5841 | if test x$float_format = x |
861bb6c1 JL |
5842 | then float_format=i64 |
5843 | fi | |
5844 | ||
027ea2a7 JW |
5845 | if test $float_format = none |
5846 | then float_h_file=Makefile.in | |
5847 | else float_h_file=float-$float_format.h | |
5848 | fi | |
5849 | ||
75bffa71 | 5850 | if test x$enable_haifa = x |
128f7968 RH |
5851 | then |
5852 | case $target in | |
18cae839 | 5853 | alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
5854 | enable_haifa=yes;; |
5855 | esac | |
5856 | fi | |
5857 | ||
9fc9b82a | 5858 | # Handle cpp installation. |
3ecc3258 | 5859 | if test x$enable_cpp != xno |
9fc9b82a L |
5860 | then |
5861 | tmake_file="$tmake_file t-install-cpp" | |
5862 | fi | |
5863 | ||
861bb6c1 JL |
5864 | # Say what files are being used for the output code and MD file. |
5865 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
5866 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
5867 | ||
5868 | count=a | |
5869 | for f in $tm_file; do | |
5870 | count=${count}x | |
5871 | done | |
75bffa71 | 5872 | if test $count = ax; then |
861bb6c1 JL |
5873 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
5874 | else | |
5875 | echo "Using the following target machine macro files:" | |
5876 | for f in $tm_file; do | |
5877 | echo " $srcdir/config/$f" | |
5878 | done | |
5879 | fi | |
5880 | ||
5881 | count=a | |
5882 | for f in $host_xm_file; do | |
5883 | count=${count}x | |
5884 | done | |
75bffa71 | 5885 | if test $count = ax; then |
861bb6c1 JL |
5886 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
5887 | else | |
5888 | echo "Using the following host machine macro files:" | |
5889 | for f in $host_xm_file; do | |
5890 | echo " $srcdir/config/$f" | |
5891 | done | |
5892 | fi | |
5893 | ||
75bffa71 | 5894 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
5895 | count=a |
5896 | for f in $build_xm_file; do | |
5897 | count=${count}x | |
5898 | done | |
75bffa71 | 5899 | if test $count = ax; then |
861bb6c1 JL |
5900 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
5901 | else | |
5902 | echo "Using the following build machine macro files:" | |
5903 | for f in $build_xm_file; do | |
5904 | echo " $srcdir/config/$f" | |
5905 | done | |
5906 | fi | |
5907 | fi | |
5908 | ||
75bffa71 ILT |
5909 | if test x$thread_file = x; then |
5910 | if test x$target_thread_file != x; then | |
a851212a JW |
5911 | thread_file=$target_thread_file |
5912 | else | |
5913 | thread_file='single' | |
5914 | fi | |
861bb6c1 JL |
5915 | fi |
5916 | ||
5917 | # Set up the header files. | |
5918 | # $links is the list of header files to create. | |
5919 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 5920 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 5921 | # the first file included by config.h. |
f6cb0e63 | 5922 | null_defines= |
64ccbc99 | 5923 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 5924 | |
b7cb92ad | 5925 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
5926 | # as well. If host!=build, we are in error and need to do more |
5927 | # work to find out the build config parameters. | |
75bffa71 | 5928 | if test x$host = x$build |
db81d74a | 5929 | then |
64ccbc99 | 5930 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
5931 | else |
5932 | # We create a subdir, then run autoconf in the subdir. | |
5933 | # To prevent recursion we set host and build for the new | |
5934 | # invocation of configure to the build for this invocation | |
5935 | # of configure. | |
5936 | tempdir=build.$$ | |
5937 | rm -rf $tempdir | |
5938 | mkdir $tempdir | |
5939 | cd $tempdir | |
5940 | case ${srcdir} in | |
5941 | /*) realsrcdir=${srcdir};; | |
5942 | *) realsrcdir=../${srcdir};; | |
5943 | esac | |
fe81dd69 | 5944 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
5945 | --target=$target --host=$build --build=$build |
5946 | ||
5947 | # We just finished tests for the build machine, so rename | |
5948 | # the file auto-build.h in the gcc directory. | |
5949 | mv auto-host.h ../auto-build.h | |
5950 | cd .. | |
5951 | rm -rf $tempdir | |
64ccbc99 | 5952 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
5953 | fi |
5954 | ||
0056a9b5 KG |
5955 | xm_file="gansidecl.h ${xm_file}" |
5956 | tm_file="gansidecl.h ${tm_file}" | |
5957 | ||
861bb6c1 | 5958 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 5959 | links="config.h tm.h tconfig.h hconfig.h" |
f6cb0e63 | 5960 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
861bb6c1 JL |
5961 | |
5962 | rm -f config.bak | |
75bffa71 | 5963 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
5964 | |
5965 | # Make the links. | |
75bffa71 | 5966 | while test -n "$vars" |
861bb6c1 | 5967 | do |
861bb6c1 JL |
5968 | set $vars; var=$1; shift; vars=$* |
5969 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 5970 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
5971 | |
5972 | rm -f $link | |
5973 | ||
5974 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
5975 | # This substitutes for lots of *.h files. | |
75bffa71 | 5976 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 5977 | then |
8fbf199e | 5978 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
5979 | fi |
5980 | ||
5981 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
5982 | case $file in |
5983 | auto-config.h) | |
5984 | ;; | |
5985 | *) | |
5986 | echo '#ifdef IN_GCC' >>$link | |
5987 | ;; | |
5988 | esac | |
861bb6c1 | 5989 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
5990 | case $file in |
5991 | auto-config.h) | |
5992 | ;; | |
5993 | *) | |
5994 | echo '#endif' >>$link | |
5995 | ;; | |
5996 | esac | |
861bb6c1 | 5997 | done |
f6cb0e63 JL |
5998 | |
5999 | for def in `eval echo '$'$define`; do | |
6000 | echo "#ifndef $def" >>$link | |
6001 | echo "#define $def" >>$link | |
6002 | echo "#endif" >>$link | |
6003 | done | |
861bb6c1 JL |
6004 | done |
6005 | ||
6006 | # Truncate the target if necessary | |
75bffa71 | 6007 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6008 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6009 | fi | |
6010 | ||
f1943b77 | 6011 | # Get the version trigger filename from the toplevel |
75bffa71 | 6012 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6013 | gcc_version_trigger=$with_gcc_version_trigger |
6014 | else | |
6015 | gcc_version_trigger=${srcdir}/version.c | |
6016 | fi | |
6017 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 6018 | |
ab87f8c8 JL |
6019 | # Internationalization |
6020 | PACKAGE=gcc | |
6021 | VERSION="$gcc_version" | |
6022 | cat >> confdefs.h <<EOF | |
6023 | #define PACKAGE "$PACKAGE" | |
6024 | EOF | |
861bb6c1 | 6025 | |
ab87f8c8 JL |
6026 | cat >> confdefs.h <<EOF |
6027 | #define VERSION "$VERSION" | |
6028 | EOF | |
861bb6c1 | 6029 | |
861bb6c1 | 6030 | |
ab87f8c8 JL |
6031 | |
6032 | ||
6033 | ALL_LINGUAS="en_UK" | |
6034 | ||
6035 | # NLS support is still experimental, so disable it by default for now. | |
6036 | # Check whether --enable-nls or --disable-nls was given. | |
6037 | if test "${enable_nls+set}" = set; then | |
6038 | enableval="$enable_nls" | |
6039 | : | |
861bb6c1 | 6040 | else |
ab87f8c8 | 6041 | enable_nls=no |
861bb6c1 | 6042 | fi |
861bb6c1 | 6043 | |
861bb6c1 | 6044 | |
861bb6c1 | 6045 | |
ab87f8c8 | 6046 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
c83fe036 | 6047 | echo "configure:6048: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6048 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6049 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6051 | else | |
6052 | ac_save_LIBS="$LIBS" | |
6053 | LIBS="-lcposix $LIBS" | |
6054 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6055 | #line 6056 "configure" |
ab87f8c8 JL |
6056 | #include "confdefs.h" |
6057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6058 | /* We use char because int might match the return type of a gcc2 | |
6059 | builtin and then its argument prototype would still apply. */ | |
6060 | char strerror(); | |
861bb6c1 | 6061 | |
ab87f8c8 JL |
6062 | int main() { |
6063 | strerror() | |
6064 | ; return 0; } | |
6065 | EOF | |
c83fe036 | 6066 | if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6067 | rm -rf conftest* |
6068 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6069 | else | |
6070 | echo "configure: failed program was:" >&5 | |
6071 | cat conftest.$ac_ext >&5 | |
6072 | rm -rf conftest* | |
6073 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6074 | fi |
ab87f8c8 JL |
6075 | rm -f conftest* |
6076 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6077 | |
861bb6c1 | 6078 | fi |
ab87f8c8 JL |
6079 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6080 | echo "$ac_t""yes" 1>&6 | |
6081 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6082 | else |
ab87f8c8 | 6083 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6084 | fi |
6085 | ||
ab87f8c8 | 6086 | |
2ce3c6c6 | 6087 | |
ab87f8c8 | 6088 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
c83fe036 | 6089 | echo "configure:6090: checking for working const" >&5 |
ab87f8c8 JL |
6090 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6092 | else |
ab87f8c8 | 6093 | cat > conftest.$ac_ext <<EOF |
c83fe036 | 6094 | #line 6095 "configure" |
ab87f8c8 | 6095 | #include "confdefs.h" |
861bb6c1 | 6096 | |
ab87f8c8 JL |
6097 | int main() { |
6098 | ||
6099 | /* Ultrix mips cc rejects this. */ | |
6100 | typedef int charset[2]; const charset x; | |
6101 | /* SunOS 4.1.1 cc rejects this. */ | |
6102 | char const *const *ccp; | |
6103 | char **p; | |
6104 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6105 | struct point {int x, y;}; | |
6106 | static struct point const zero = {0,0}; | |
6107 | /* AIX XL C 1.02.0.0 rejects this. | |
6108 | It does not let you subtract one const X* pointer from another in an arm | |
6109 | of an if-expression whose if-part is not a constant expression */ | |
6110 | const char *g = "string"; | |
6111 | ccp = &g + (g ? g-g : 0); | |
6112 | /* HPUX 7.0 cc rejects these. */ | |
6113 | ++ccp; | |
6114 | p = (char**) ccp; | |
6115 | ccp = (char const *const *) p; | |
6116 | { /* SCO 3.2v4 cc rejects this. */ | |
6117 | char *t; | |
6118 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6119 | ||
6120 | *t++ = 0; | |
6121 | } | |
6122 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6123 | int x[] = {25, 17}; | |
6124 | const int *foo = &x[0]; | |
6125 | ++foo; | |
6126 | } | |
6127 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6128 | typedef const int *iptr; | |
6129 | iptr p = 0; | |
6130 | ++p; | |
6131 | } | |
6132 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6133 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6134 | struct s { int j; const int *ap[3]; }; | |
6135 | struct s *b; b->j = 5; | |
6136 | } | |
6137 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6138 | const int foo = 10; | |
6139 | } | |
6140 | ||
6141 | ; return 0; } | |
6142 | EOF | |
c83fe036 | 6143 | if { (eval echo configure:6144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6144 | rm -rf conftest* |
6145 | ac_cv_c_const=yes | |
861bb6c1 | 6146 | else |
ab87f8c8 JL |
6147 | echo "configure: failed program was:" >&5 |
6148 | cat conftest.$ac_ext >&5 | |
6149 | rm -rf conftest* | |
6150 | ac_cv_c_const=no | |
6151 | fi | |
6152 | rm -f conftest* | |
861bb6c1 JL |
6153 | fi |
6154 | ||
ab87f8c8 JL |
6155 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6156 | if test $ac_cv_c_const = no; then | |
6157 | cat >> confdefs.h <<\EOF | |
6158 | #define const | |
6159 | EOF | |
6160 | ||
861bb6c1 JL |
6161 | fi |
6162 | ||
ab87f8c8 | 6163 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
c83fe036 | 6164 | echo "configure:6165: checking for inline" >&5 |
ab87f8c8 JL |
6165 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6167 | else | |
6168 | ac_cv_c_inline=no | |
6169 | for ac_kw in inline __inline__ __inline; do | |
6170 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6171 | #line 6172 "configure" |
ab87f8c8 JL |
6172 | #include "confdefs.h" |
6173 | ||
6174 | int main() { | |
6175 | } $ac_kw foo() { | |
6176 | ; return 0; } | |
6177 | EOF | |
c83fe036 | 6178 | if { (eval echo configure:6179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6179 | rm -rf conftest* |
6180 | ac_cv_c_inline=$ac_kw; break | |
6181 | else | |
6182 | echo "configure: failed program was:" >&5 | |
6183 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6184 | fi |
ab87f8c8 JL |
6185 | rm -f conftest* |
6186 | done | |
4b95eb49 | 6187 | |
992d1248 | 6188 | fi |
861bb6c1 | 6189 | |
ab87f8c8 JL |
6190 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6191 | case "$ac_cv_c_inline" in | |
6192 | inline | yes) ;; | |
6193 | no) cat >> confdefs.h <<\EOF | |
6194 | #define inline | |
00ccc16d | 6195 | EOF |
ab87f8c8 JL |
6196 | ;; |
6197 | *) cat >> confdefs.h <<EOF | |
6198 | #define inline $ac_cv_c_inline | |
6199 | EOF | |
6200 | ;; | |
6201 | esac | |
6202 | ||
6203 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
c83fe036 | 6204 | echo "configure:6205: checking for off_t" >&5 |
ab87f8c8 JL |
6205 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6207 | else | |
6208 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6209 | #line 6210 "configure" |
ab87f8c8 JL |
6210 | #include "confdefs.h" |
6211 | #include <sys/types.h> | |
6212 | #if STDC_HEADERS | |
6213 | #include <stdlib.h> | |
6214 | #include <stddef.h> | |
6215 | #endif | |
6216 | EOF | |
6217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6218 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6219 | rm -rf conftest* |
6220 | ac_cv_type_off_t=yes | |
6221 | else | |
6222 | rm -rf conftest* | |
6223 | ac_cv_type_off_t=no | |
6224 | fi | |
6225 | rm -f conftest* | |
6226 | ||
6227 | fi | |
6228 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6229 | if test $ac_cv_type_off_t = no; then | |
6230 | cat >> confdefs.h <<\EOF | |
6231 | #define off_t long | |
6232 | EOF | |
6233 | ||
6234 | fi | |
6235 | ||
6236 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
c83fe036 | 6237 | echo "configure:6238: checking for size_t" >&5 |
ab87f8c8 JL |
6238 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6240 | else | |
6241 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6242 | #line 6243 "configure" |
ab87f8c8 JL |
6243 | #include "confdefs.h" |
6244 | #include <sys/types.h> | |
6245 | #if STDC_HEADERS | |
6246 | #include <stdlib.h> | |
6247 | #include <stddef.h> | |
6248 | #endif | |
6249 | EOF | |
6250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6251 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6252 | rm -rf conftest* |
6253 | ac_cv_type_size_t=yes | |
6254 | else | |
6255 | rm -rf conftest* | |
6256 | ac_cv_type_size_t=no | |
6257 | fi | |
6258 | rm -f conftest* | |
6259 | ||
6260 | fi | |
6261 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6262 | if test $ac_cv_type_size_t = no; then | |
6263 | cat >> confdefs.h <<\EOF | |
6264 | #define size_t unsigned | |
6265 | EOF | |
6266 | ||
6267 | fi | |
6268 | ||
6269 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6270 | # for constant arguments. Useless! | |
6271 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
c83fe036 | 6272 | echo "configure:6273: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6273 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6275 | else | |
6276 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6277 | #line 6278 "configure" |
ab87f8c8 JL |
6278 | #include "confdefs.h" |
6279 | #include <alloca.h> | |
6280 | int main() { | |
6281 | char *p = alloca(2 * sizeof(int)); | |
6282 | ; return 0; } | |
6283 | EOF | |
c83fe036 | 6284 | if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6285 | rm -rf conftest* |
6286 | ac_cv_header_alloca_h=yes | |
6287 | else | |
6288 | echo "configure: failed program was:" >&5 | |
6289 | cat conftest.$ac_ext >&5 | |
6290 | rm -rf conftest* | |
6291 | ac_cv_header_alloca_h=no | |
6292 | fi | |
6293 | rm -f conftest* | |
6294 | fi | |
6295 | ||
6296 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6297 | if test $ac_cv_header_alloca_h = yes; then | |
6298 | cat >> confdefs.h <<\EOF | |
6299 | #define HAVE_ALLOCA_H 1 | |
6300 | EOF | |
6301 | ||
6302 | fi | |
6303 | ||
6304 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
c83fe036 | 6305 | echo "configure:6306: checking for alloca" >&5 |
ab87f8c8 JL |
6306 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6308 | else | |
6309 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6310 | #line 6311 "configure" |
ab87f8c8 JL |
6311 | #include "confdefs.h" |
6312 | ||
6313 | #ifdef __GNUC__ | |
6314 | # define alloca __builtin_alloca | |
6315 | #else | |
cd9e5e7c MK |
6316 | # ifdef _MSC_VER |
6317 | # include <malloc.h> | |
6318 | # define alloca _alloca | |
ab87f8c8 | 6319 | # else |
cd9e5e7c MK |
6320 | # if HAVE_ALLOCA_H |
6321 | # include <alloca.h> | |
3723cad9 | 6322 | # else |
cd9e5e7c MK |
6323 | # ifdef _AIX |
6324 | #pragma alloca | |
6325 | # else | |
6326 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6327 | char *alloca (); |
cd9e5e7c | 6328 | # endif |
ab87f8c8 JL |
6329 | # endif |
6330 | # endif | |
6331 | # endif | |
6332 | #endif | |
6333 | ||
6334 | int main() { | |
6335 | char *p = (char *) alloca(1); | |
6336 | ; return 0; } | |
6337 | EOF | |
c83fe036 | 6338 | if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6339 | rm -rf conftest* |
6340 | ac_cv_func_alloca_works=yes | |
6341 | else | |
6342 | echo "configure: failed program was:" >&5 | |
6343 | cat conftest.$ac_ext >&5 | |
6344 | rm -rf conftest* | |
6345 | ac_cv_func_alloca_works=no | |
6346 | fi | |
6347 | rm -f conftest* | |
6348 | fi | |
6349 | ||
6350 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
6351 | if test $ac_cv_func_alloca_works = yes; then | |
6352 | cat >> confdefs.h <<\EOF | |
6353 | #define HAVE_ALLOCA 1 | |
6354 | EOF | |
6355 | ||
6356 | fi | |
6357 | ||
6358 | if test $ac_cv_func_alloca_works = no; then | |
6359 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6360 | # that cause trouble. Some versions do not even contain alloca or | |
6361 | # contain a buggy version. If you still want to use their alloca, | |
6362 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
cd9e5e7c | 6363 | ALLOCA=alloca.${ac_objext} |
ab87f8c8 JL |
6364 | cat >> confdefs.h <<\EOF |
6365 | #define C_ALLOCA 1 | |
6366 | EOF | |
6367 | ||
6368 | ||
6369 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
c83fe036 | 6370 | echo "configure:6371: checking whether alloca needs Cray hooks" >&5 |
ab87f8c8 JL |
6371 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
6372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6373 | else | |
6374 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6375 | #line 6376 "configure" |
ab87f8c8 JL |
6376 | #include "confdefs.h" |
6377 | #if defined(CRAY) && ! defined(CRAY2) | |
6378 | webecray | |
6379 | #else | |
6380 | wenotbecray | |
6381 | #endif | |
6382 | ||
6383 | EOF | |
6384 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6385 | egrep "webecray" >/dev/null 2>&1; then | |
6386 | rm -rf conftest* | |
6387 | ac_cv_os_cray=yes | |
6388 | else | |
6389 | rm -rf conftest* | |
6390 | ac_cv_os_cray=no | |
6391 | fi | |
6392 | rm -f conftest* | |
6393 | ||
6394 | fi | |
6395 | ||
6396 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
6397 | if test $ac_cv_os_cray = yes; then | |
6398 | for ac_func in _getb67 GETB67 getb67; do | |
6399 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
c83fe036 | 6400 | echo "configure:6401: checking for $ac_func" >&5 |
ab87f8c8 JL |
6401 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6403 | else | |
6404 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6405 | #line 6406 "configure" |
ab87f8c8 JL |
6406 | #include "confdefs.h" |
6407 | /* System header to define __stub macros and hopefully few prototypes, | |
6408 | which can conflict with char $ac_func(); below. */ | |
6409 | #include <assert.h> | |
6410 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6411 | /* We use char because int might match the return type of a gcc2 | |
6412 | builtin and then its argument prototype would still apply. */ | |
6413 | char $ac_func(); | |
6414 | ||
6415 | int main() { | |
6416 | ||
6417 | /* The GNU C library defines this for functions which it implements | |
6418 | to always fail with ENOSYS. Some functions are actually named | |
6419 | something starting with __ and the normal name is an alias. */ | |
6420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6421 | choke me | |
6422 | #else | |
3ecc3258 | 6423 | $ac_func(); |
ab87f8c8 JL |
6424 | #endif |
6425 | ||
6426 | ; return 0; } | |
6427 | EOF | |
c83fe036 | 6428 | if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6429 | rm -rf conftest* |
6430 | eval "ac_cv_func_$ac_func=yes" | |
6431 | else | |
6432 | echo "configure: failed program was:" >&5 | |
6433 | cat conftest.$ac_ext >&5 | |
6434 | rm -rf conftest* | |
6435 | eval "ac_cv_func_$ac_func=no" | |
6436 | fi | |
6437 | rm -f conftest* | |
6438 | fi | |
6439 | ||
6440 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6441 | echo "$ac_t""yes" 1>&6 | |
6442 | cat >> confdefs.h <<EOF | |
6443 | #define CRAY_STACKSEG_END $ac_func | |
6444 | EOF | |
6445 | ||
6446 | break | |
6447 | else | |
6448 | echo "$ac_t""no" 1>&6 | |
6449 | fi | |
6450 | ||
6451 | done | |
6452 | fi | |
6453 | ||
6454 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
c83fe036 | 6455 | echo "configure:6456: checking stack direction for C alloca" >&5 |
ab87f8c8 JL |
6456 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
6457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6458 | else | |
6459 | if test "$cross_compiling" = yes; then | |
6460 | ac_cv_c_stack_direction=0 | |
6461 | else | |
6462 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6463 | #line 6464 "configure" |
ab87f8c8 JL |
6464 | #include "confdefs.h" |
6465 | find_stack_direction () | |
6466 | { | |
6467 | static char *addr = 0; | |
6468 | auto char dummy; | |
6469 | if (addr == 0) | |
6470 | { | |
6471 | addr = &dummy; | |
6472 | return find_stack_direction (); | |
6473 | } | |
6474 | else | |
6475 | return (&dummy > addr) ? 1 : -1; | |
6476 | } | |
6477 | main () | |
6478 | { | |
6479 | exit (find_stack_direction() < 0); | |
6480 | } | |
6481 | EOF | |
c83fe036 | 6482 | if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6483 | then |
6484 | ac_cv_c_stack_direction=1 | |
6485 | else | |
6486 | echo "configure: failed program was:" >&5 | |
6487 | cat conftest.$ac_ext >&5 | |
6488 | rm -fr conftest* | |
6489 | ac_cv_c_stack_direction=-1 | |
6490 | fi | |
6491 | rm -fr conftest* | |
6492 | fi | |
6493 | ||
6494 | fi | |
6495 | ||
6496 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
6497 | cat >> confdefs.h <<EOF | |
6498 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6499 | EOF | |
6500 | ||
6501 | fi | |
6502 | ||
6503 | for ac_hdr in unistd.h | |
6504 | do | |
6505 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6506 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
c83fe036 | 6507 | echo "configure:6508: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6508 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6509 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6510 | else | |
6511 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6512 | #line 6513 "configure" |
ab87f8c8 JL |
6513 | #include "confdefs.h" |
6514 | #include <$ac_hdr> | |
6515 | EOF | |
6516 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
c83fe036 | 6517 | { (eval echo configure:6518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6518 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6519 | if test -z "$ac_err"; then |
6520 | rm -rf conftest* | |
6521 | eval "ac_cv_header_$ac_safe=yes" | |
6522 | else | |
6523 | echo "$ac_err" >&5 | |
6524 | echo "configure: failed program was:" >&5 | |
6525 | cat conftest.$ac_ext >&5 | |
6526 | rm -rf conftest* | |
6527 | eval "ac_cv_header_$ac_safe=no" | |
6528 | fi | |
6529 | rm -f conftest* | |
6530 | fi | |
6531 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6532 | echo "$ac_t""yes" 1>&6 | |
6533 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6534 | cat >> confdefs.h <<EOF | |
6535 | #define $ac_tr_hdr 1 | |
6536 | EOF | |
6537 | ||
6538 | else | |
6539 | echo "$ac_t""no" 1>&6 | |
6540 | fi | |
6541 | done | |
6542 | ||
6543 | for ac_func in getpagesize | |
6544 | do | |
6545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
c83fe036 | 6546 | echo "configure:6547: checking for $ac_func" >&5 |
ab87f8c8 JL |
6547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6549 | else | |
6550 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6551 | #line 6552 "configure" |
ab87f8c8 JL |
6552 | #include "confdefs.h" |
6553 | /* System header to define __stub macros and hopefully few prototypes, | |
6554 | which can conflict with char $ac_func(); below. */ | |
6555 | #include <assert.h> | |
6556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6557 | /* We use char because int might match the return type of a gcc2 | |
6558 | builtin and then its argument prototype would still apply. */ | |
6559 | char $ac_func(); | |
6560 | ||
6561 | int main() { | |
6562 | ||
6563 | /* The GNU C library defines this for functions which it implements | |
6564 | to always fail with ENOSYS. Some functions are actually named | |
6565 | something starting with __ and the normal name is an alias. */ | |
6566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6567 | choke me | |
6568 | #else | |
3ecc3258 | 6569 | $ac_func(); |
ab87f8c8 JL |
6570 | #endif |
6571 | ||
6572 | ; return 0; } | |
6573 | EOF | |
c83fe036 | 6574 | if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6575 | rm -rf conftest* |
6576 | eval "ac_cv_func_$ac_func=yes" | |
6577 | else | |
6578 | echo "configure: failed program was:" >&5 | |
6579 | cat conftest.$ac_ext >&5 | |
6580 | rm -rf conftest* | |
6581 | eval "ac_cv_func_$ac_func=no" | |
6582 | fi | |
6583 | rm -f conftest* | |
6584 | fi | |
6585 | ||
6586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6587 | echo "$ac_t""yes" 1>&6 | |
6588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6589 | cat >> confdefs.h <<EOF | |
6590 | #define $ac_tr_func 1 | |
6591 | EOF | |
6592 | ||
6593 | else | |
6594 | echo "$ac_t""no" 1>&6 | |
6595 | fi | |
6596 | done | |
6597 | ||
6598 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
c83fe036 | 6599 | echo "configure:6600: checking for working mmap" >&5 |
ab87f8c8 JL |
6600 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
6601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6602 | else | |
6603 | if test "$cross_compiling" = yes; then | |
6604 | ac_cv_func_mmap_fixed_mapped=no | |
6605 | else | |
6606 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6607 | #line 6608 "configure" |
ab87f8c8 JL |
6608 | #include "confdefs.h" |
6609 | ||
6610 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6611 | Here is a matrix of mmap possibilities: | |
6612 | mmap private not fixed | |
6613 | mmap private fixed at somewhere currently unmapped | |
6614 | mmap private fixed at somewhere already mapped | |
6615 | mmap shared not fixed | |
6616 | mmap shared fixed at somewhere currently unmapped | |
6617 | mmap shared fixed at somewhere already mapped | |
6618 | For private mappings, we should verify that changes cannot be read() | |
6619 | back from the file, nor mmap's back from the file at a different | |
6620 | address. (There have been systems where private was not correctly | |
6621 | implemented like the infamous i386 svr4.0, and systems where the | |
6622 | VM page cache was not coherent with the filesystem buffer cache | |
6623 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6624 | For shared mappings, we should conversely verify that changes get | |
6625 | propogated back to all the places they're supposed to be. | |
6626 | ||
6627 | Grep wants private fixed already mapped. | |
6628 | The main things grep needs to know about mmap are: | |
6629 | * does it exist and is it safe to write into the mmap'd area | |
6630 | * how to use it (BSD variants) */ | |
6631 | #include <sys/types.h> | |
6632 | #include <fcntl.h> | |
6633 | #include <sys/mman.h> | |
6634 | ||
6635 | /* This mess was copied from the GNU getpagesize.h. */ | |
6636 | #ifndef HAVE_GETPAGESIZE | |
6637 | # ifdef HAVE_UNISTD_H | |
6638 | # include <unistd.h> | |
6639 | # endif | |
6640 | ||
6641 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6642 | # ifndef HAVE_SYS_PARAM_H | |
6643 | # define HAVE_SYS_PARAM_H 1 | |
6644 | # endif | |
6645 | ||
6646 | # ifdef _SC_PAGESIZE | |
6647 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6648 | # else /* no _SC_PAGESIZE */ | |
6649 | # ifdef HAVE_SYS_PARAM_H | |
6650 | # include <sys/param.h> | |
6651 | # ifdef EXEC_PAGESIZE | |
6652 | # define getpagesize() EXEC_PAGESIZE | |
6653 | # else /* no EXEC_PAGESIZE */ | |
6654 | # ifdef NBPG | |
6655 | # define getpagesize() NBPG * CLSIZE | |
6656 | # ifndef CLSIZE | |
6657 | # define CLSIZE 1 | |
6658 | # endif /* no CLSIZE */ | |
6659 | # else /* no NBPG */ | |
6660 | # ifdef NBPC | |
6661 | # define getpagesize() NBPC | |
6662 | # else /* no NBPC */ | |
6663 | # ifdef PAGESIZE | |
6664 | # define getpagesize() PAGESIZE | |
6665 | # endif /* PAGESIZE */ | |
6666 | # endif /* no NBPC */ | |
6667 | # endif /* no NBPG */ | |
6668 | # endif /* no EXEC_PAGESIZE */ | |
6669 | # else /* no HAVE_SYS_PARAM_H */ | |
6670 | # define getpagesize() 8192 /* punt totally */ | |
6671 | # endif /* no HAVE_SYS_PARAM_H */ | |
6672 | # endif /* no _SC_PAGESIZE */ | |
6673 | ||
6674 | #endif /* no HAVE_GETPAGESIZE */ | |
6675 | ||
6676 | #ifdef __cplusplus | |
6677 | extern "C" { void *malloc(unsigned); } | |
6678 | #else | |
6679 | char *malloc(); | |
6680 | #endif | |
6681 | ||
6682 | int | |
6683 | main() | |
6684 | { | |
6685 | char *data, *data2, *data3; | |
6686 | int i, pagesize; | |
6687 | int fd; | |
6688 | ||
6689 | pagesize = getpagesize(); | |
6690 | ||
6691 | /* | |
6692 | * First, make a file with some known garbage in it. | |
6693 | */ | |
6694 | data = malloc(pagesize); | |
6695 | if (!data) | |
6696 | exit(1); | |
6697 | for (i = 0; i < pagesize; ++i) | |
6698 | *(data + i) = rand(); | |
6699 | umask(0); | |
6700 | fd = creat("conftestmmap", 0600); | |
6701 | if (fd < 0) | |
6702 | exit(1); | |
6703 | if (write(fd, data, pagesize) != pagesize) | |
6704 | exit(1); | |
6705 | close(fd); | |
6706 | ||
6707 | /* | |
6708 | * Next, try to mmap the file at a fixed address which | |
6709 | * already has something else allocated at it. If we can, | |
6710 | * also make sure that we see the same garbage. | |
6711 | */ | |
6712 | fd = open("conftestmmap", O_RDWR); | |
6713 | if (fd < 0) | |
6714 | exit(1); | |
6715 | data2 = malloc(2 * pagesize); | |
6716 | if (!data2) | |
6717 | exit(1); | |
6718 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6719 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
6720 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6721 | exit(1); | |
6722 | for (i = 0; i < pagesize; ++i) | |
6723 | if (*(data + i) != *(data2 + i)) | |
6724 | exit(1); | |
6725 | ||
6726 | /* | |
6727 | * Finally, make sure that changes to the mapped area | |
6728 | * do not percolate back to the file as seen by read(). | |
6729 | * (This is a bug on some variants of i386 svr4.0.) | |
6730 | */ | |
6731 | for (i = 0; i < pagesize; ++i) | |
6732 | *(data2 + i) = *(data2 + i) + 1; | |
6733 | data3 = malloc(pagesize); | |
6734 | if (!data3) | |
6735 | exit(1); | |
6736 | if (read(fd, data3, pagesize) != pagesize) | |
6737 | exit(1); | |
6738 | for (i = 0; i < pagesize; ++i) | |
6739 | if (*(data + i) != *(data3 + i)) | |
6740 | exit(1); | |
6741 | close(fd); | |
6742 | unlink("conftestmmap"); | |
6743 | exit(0); | |
6744 | } | |
6745 | ||
6746 | EOF | |
c83fe036 | 6747 | if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6748 | then |
6749 | ac_cv_func_mmap_fixed_mapped=yes | |
6750 | else | |
6751 | echo "configure: failed program was:" >&5 | |
6752 | cat conftest.$ac_ext >&5 | |
6753 | rm -fr conftest* | |
6754 | ac_cv_func_mmap_fixed_mapped=no | |
6755 | fi | |
6756 | rm -fr conftest* | |
6757 | fi | |
6758 | ||
6759 | fi | |
6760 | ||
6761 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
6762 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6763 | cat >> confdefs.h <<\EOF | |
6764 | #define HAVE_MMAP 1 | |
6765 | EOF | |
6766 | ||
6767 | fi | |
6768 | ||
6769 | ||
6770 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
6771 | unistd.h sys/param.h | |
6772 | do | |
6773 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6774 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
c83fe036 | 6775 | echo "configure:6776: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6776 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6778 | else | |
6779 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6780 | #line 6781 "configure" |
ab87f8c8 JL |
6781 | #include "confdefs.h" |
6782 | #include <$ac_hdr> | |
6783 | EOF | |
6784 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
c83fe036 | 6785 | { (eval echo configure:6786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6786 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6787 | if test -z "$ac_err"; then |
6788 | rm -rf conftest* | |
6789 | eval "ac_cv_header_$ac_safe=yes" | |
6790 | else | |
6791 | echo "$ac_err" >&5 | |
6792 | echo "configure: failed program was:" >&5 | |
6793 | cat conftest.$ac_ext >&5 | |
6794 | rm -rf conftest* | |
6795 | eval "ac_cv_header_$ac_safe=no" | |
6796 | fi | |
6797 | rm -f conftest* | |
6798 | fi | |
6799 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6800 | echo "$ac_t""yes" 1>&6 | |
6801 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6802 | cat >> confdefs.h <<EOF | |
6803 | #define $ac_tr_hdr 1 | |
6804 | EOF | |
6805 | ||
6806 | else | |
6807 | echo "$ac_t""no" 1>&6 | |
6808 | fi | |
6809 | done | |
6810 | ||
6811 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
6812 | strdup __argz_count __argz_stringify __argz_next | |
6813 | do | |
6814 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
c83fe036 | 6815 | echo "configure:6816: checking for $ac_func" >&5 |
ab87f8c8 JL |
6816 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6818 | else | |
6819 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6820 | #line 6821 "configure" |
ab87f8c8 JL |
6821 | #include "confdefs.h" |
6822 | /* System header to define __stub macros and hopefully few prototypes, | |
6823 | which can conflict with char $ac_func(); below. */ | |
6824 | #include <assert.h> | |
6825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6826 | /* We use char because int might match the return type of a gcc2 | |
6827 | builtin and then its argument prototype would still apply. */ | |
6828 | char $ac_func(); | |
6829 | ||
6830 | int main() { | |
6831 | ||
6832 | /* The GNU C library defines this for functions which it implements | |
6833 | to always fail with ENOSYS. Some functions are actually named | |
6834 | something starting with __ and the normal name is an alias. */ | |
6835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6836 | choke me | |
6837 | #else | |
3ecc3258 | 6838 | $ac_func(); |
ab87f8c8 JL |
6839 | #endif |
6840 | ||
6841 | ; return 0; } | |
6842 | EOF | |
c83fe036 | 6843 | if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6844 | rm -rf conftest* |
6845 | eval "ac_cv_func_$ac_func=yes" | |
6846 | else | |
6847 | echo "configure: failed program was:" >&5 | |
6848 | cat conftest.$ac_ext >&5 | |
6849 | rm -rf conftest* | |
6850 | eval "ac_cv_func_$ac_func=no" | |
6851 | fi | |
6852 | rm -f conftest* | |
6853 | fi | |
6854 | ||
6855 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6856 | echo "$ac_t""yes" 1>&6 | |
6857 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6858 | cat >> confdefs.h <<EOF | |
6859 | #define $ac_tr_func 1 | |
6860 | EOF | |
6861 | ||
6862 | else | |
6863 | echo "$ac_t""no" 1>&6 | |
6864 | fi | |
6865 | done | |
6866 | ||
6867 | ||
6868 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
6869 | for ac_func in stpcpy | |
6870 | do | |
6871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
c83fe036 | 6872 | echo "configure:6873: checking for $ac_func" >&5 |
ab87f8c8 JL |
6873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6875 | else | |
6876 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6877 | #line 6878 "configure" |
ab87f8c8 JL |
6878 | #include "confdefs.h" |
6879 | /* System header to define __stub macros and hopefully few prototypes, | |
6880 | which can conflict with char $ac_func(); below. */ | |
6881 | #include <assert.h> | |
6882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6883 | /* We use char because int might match the return type of a gcc2 | |
6884 | builtin and then its argument prototype would still apply. */ | |
6885 | char $ac_func(); | |
6886 | ||
6887 | int main() { | |
6888 | ||
6889 | /* The GNU C library defines this for functions which it implements | |
6890 | to always fail with ENOSYS. Some functions are actually named | |
6891 | something starting with __ and the normal name is an alias. */ | |
6892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6893 | choke me | |
6894 | #else | |
3ecc3258 | 6895 | $ac_func(); |
ab87f8c8 JL |
6896 | #endif |
6897 | ||
6898 | ; return 0; } | |
6899 | EOF | |
c83fe036 | 6900 | if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6901 | rm -rf conftest* |
6902 | eval "ac_cv_func_$ac_func=yes" | |
6903 | else | |
6904 | echo "configure: failed program was:" >&5 | |
6905 | cat conftest.$ac_ext >&5 | |
6906 | rm -rf conftest* | |
6907 | eval "ac_cv_func_$ac_func=no" | |
6908 | fi | |
6909 | rm -f conftest* | |
6910 | fi | |
6911 | ||
6912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6913 | echo "$ac_t""yes" 1>&6 | |
6914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6915 | cat >> confdefs.h <<EOF | |
6916 | #define $ac_tr_func 1 | |
6917 | EOF | |
6918 | ||
6919 | else | |
6920 | echo "$ac_t""no" 1>&6 | |
6921 | fi | |
6922 | done | |
6923 | ||
6924 | fi | |
6925 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
6926 | cat >> confdefs.h <<\EOF | |
6927 | #define HAVE_STPCPY 1 | |
6928 | EOF | |
6929 | ||
6930 | fi | |
6931 | ||
6932 | if test $ac_cv_header_locale_h = yes; then | |
6933 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
c83fe036 | 6934 | echo "configure:6935: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
6935 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
6936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6937 | else | |
6938 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 6939 | #line 6940 "configure" |
ab87f8c8 JL |
6940 | #include "confdefs.h" |
6941 | #include <locale.h> | |
6942 | int main() { | |
6943 | return LC_MESSAGES | |
6944 | ; return 0; } | |
6945 | EOF | |
c83fe036 | 6946 | if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6947 | rm -rf conftest* |
6948 | am_cv_val_LC_MESSAGES=yes | |
6949 | else | |
6950 | echo "configure: failed program was:" >&5 | |
6951 | cat conftest.$ac_ext >&5 | |
6952 | rm -rf conftest* | |
6953 | am_cv_val_LC_MESSAGES=no | |
6954 | fi | |
6955 | rm -f conftest* | |
6956 | fi | |
6957 | ||
6958 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
6959 | if test $am_cv_val_LC_MESSAGES = yes; then | |
6960 | cat >> confdefs.h <<\EOF | |
6961 | #define HAVE_LC_MESSAGES 1 | |
6962 | EOF | |
6963 | ||
6964 | fi | |
6965 | fi | |
6966 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
c83fe036 | 6967 | echo "configure:6968: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
6968 | # Check whether --enable-nls or --disable-nls was given. |
6969 | if test "${enable_nls+set}" = set; then | |
6970 | enableval="$enable_nls" | |
6971 | USE_NLS=$enableval | |
6972 | else | |
6973 | USE_NLS=yes | |
6974 | fi | |
6975 | ||
6976 | echo "$ac_t""$USE_NLS" 1>&6 | |
6977 | ||
6978 | ||
6979 | USE_INCLUDED_LIBINTL=no | |
6980 | ||
6981 | if test "$USE_NLS" = "yes"; then | |
6982 | cat >> confdefs.h <<\EOF | |
6983 | #define ENABLE_NLS 1 | |
6984 | EOF | |
6985 | ||
6986 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
c83fe036 | 6987 | echo "configure:6988: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
6988 | # Check whether --with-included-gettext or --without-included-gettext was given. |
6989 | if test "${with_included_gettext+set}" = set; then | |
6990 | withval="$with_included_gettext" | |
6991 | nls_cv_force_use_gnu_gettext=$withval | |
6992 | else | |
6993 | nls_cv_force_use_gnu_gettext=no | |
6994 | fi | |
6995 | ||
6996 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
6997 | ||
6998 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6999 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7000 | nls_cv_header_intl= | |
7001 | nls_cv_header_libgt= | |
7002 | CATOBJEXT=NONE | |
7003 | ||
7004 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7005 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
c83fe036 | 7006 | echo "configure:7007: checking for libintl.h" >&5 |
ab87f8c8 JL |
7007 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7009 | else | |
7010 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7011 | #line 7012 "configure" |
ab87f8c8 JL |
7012 | #include "confdefs.h" |
7013 | #include <libintl.h> | |
7014 | EOF | |
7015 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
c83fe036 | 7016 | { (eval echo configure:7017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7017 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7018 | if test -z "$ac_err"; then |
7019 | rm -rf conftest* | |
7020 | eval "ac_cv_header_$ac_safe=yes" | |
7021 | else | |
7022 | echo "$ac_err" >&5 | |
7023 | echo "configure: failed program was:" >&5 | |
7024 | cat conftest.$ac_ext >&5 | |
7025 | rm -rf conftest* | |
7026 | eval "ac_cv_header_$ac_safe=no" | |
7027 | fi | |
7028 | rm -f conftest* | |
7029 | fi | |
7030 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7031 | echo "$ac_t""yes" 1>&6 | |
7032 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
c83fe036 | 7033 | echo "configure:7034: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7034 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7036 | else | |
7037 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7038 | #line 7039 "configure" |
ab87f8c8 JL |
7039 | #include "confdefs.h" |
7040 | #include <libintl.h> | |
7041 | int main() { | |
7042 | return (int) gettext ("") | |
7043 | ; return 0; } | |
7044 | EOF | |
c83fe036 | 7045 | if { (eval echo configure:7046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7046 | rm -rf conftest* |
7047 | gt_cv_func_gettext_libc=yes | |
7048 | else | |
7049 | echo "configure: failed program was:" >&5 | |
7050 | cat conftest.$ac_ext >&5 | |
7051 | rm -rf conftest* | |
7052 | gt_cv_func_gettext_libc=no | |
7053 | fi | |
7054 | rm -f conftest* | |
7055 | fi | |
7056 | ||
7057 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7058 | ||
7059 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7060 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
c83fe036 | 7061 | echo "configure:7062: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7062 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7063 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7065 | else | |
7066 | ac_save_LIBS="$LIBS" | |
7067 | LIBS="-lintl $LIBS" | |
7068 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7069 | #line 7070 "configure" |
ab87f8c8 JL |
7070 | #include "confdefs.h" |
7071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7072 | /* We use char because int might match the return type of a gcc2 | |
7073 | builtin and then its argument prototype would still apply. */ | |
7074 | char bindtextdomain(); | |
7075 | ||
7076 | int main() { | |
7077 | bindtextdomain() | |
7078 | ; return 0; } | |
7079 | EOF | |
c83fe036 | 7080 | if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7081 | rm -rf conftest* |
7082 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7083 | else | |
7084 | echo "configure: failed program was:" >&5 | |
7085 | cat conftest.$ac_ext >&5 | |
7086 | rm -rf conftest* | |
7087 | eval "ac_cv_lib_$ac_lib_var=no" | |
7088 | fi | |
7089 | rm -f conftest* | |
7090 | LIBS="$ac_save_LIBS" | |
7091 | ||
7092 | fi | |
7093 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7094 | echo "$ac_t""yes" 1>&6 | |
7095 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
c83fe036 | 7096 | echo "configure:7097: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7097 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7099 | else | |
7100 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
c83fe036 | 7101 | echo "configure:7102: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7102 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7103 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7105 | else | |
7106 | ac_save_LIBS="$LIBS" | |
7107 | LIBS="-lintl $LIBS" | |
7108 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7109 | #line 7110 "configure" |
ab87f8c8 JL |
7110 | #include "confdefs.h" |
7111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7112 | /* We use char because int might match the return type of a gcc2 | |
7113 | builtin and then its argument prototype would still apply. */ | |
7114 | char gettext(); | |
7115 | ||
7116 | int main() { | |
7117 | gettext() | |
7118 | ; return 0; } | |
7119 | EOF | |
c83fe036 | 7120 | if { (eval echo configure:7121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7121 | rm -rf conftest* |
7122 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7123 | else | |
7124 | echo "configure: failed program was:" >&5 | |
7125 | cat conftest.$ac_ext >&5 | |
7126 | rm -rf conftest* | |
7127 | eval "ac_cv_lib_$ac_lib_var=no" | |
7128 | fi | |
7129 | rm -f conftest* | |
7130 | LIBS="$ac_save_LIBS" | |
7131 | ||
7132 | fi | |
7133 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7134 | echo "$ac_t""yes" 1>&6 | |
7135 | gt_cv_func_gettext_libintl=yes | |
7136 | else | |
7137 | echo "$ac_t""no" 1>&6 | |
7138 | gt_cv_func_gettext_libintl=no | |
7139 | fi | |
7140 | ||
7141 | fi | |
7142 | ||
7143 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7144 | else | |
7145 | echo "$ac_t""no" 1>&6 | |
7146 | fi | |
7147 | ||
7148 | fi | |
7149 | ||
7150 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7151 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7152 | cat >> confdefs.h <<\EOF | |
7153 | #define HAVE_GETTEXT 1 | |
7154 | EOF | |
7155 | ||
7156 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7157 | set dummy msgfmt; ac_word=$2 | |
7158 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7159 | echo "configure:7160: checking for $ac_word" >&5 |
ab87f8c8 JL |
7160 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7162 | else | |
7163 | case "$MSGFMT" in | |
7164 | /*) | |
7165 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7166 | ;; | |
7167 | *) | |
7168 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7169 | for ac_dir in $PATH; do | |
7170 | test -z "$ac_dir" && ac_dir=. | |
7171 | if test -f $ac_dir/$ac_word; then | |
7172 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7173 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7174 | break | |
7175 | fi | |
7176 | fi | |
7177 | done | |
7178 | IFS="$ac_save_ifs" | |
7179 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7180 | ;; | |
7181 | esac | |
7182 | fi | |
7183 | MSGFMT="$ac_cv_path_MSGFMT" | |
7184 | if test -n "$MSGFMT"; then | |
7185 | echo "$ac_t""$MSGFMT" 1>&6 | |
7186 | else | |
7187 | echo "$ac_t""no" 1>&6 | |
7188 | fi | |
7189 | if test "$MSGFMT" != "no"; then | |
7190 | for ac_func in dcgettext | |
7191 | do | |
7192 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
c83fe036 | 7193 | echo "configure:7194: checking for $ac_func" >&5 |
ab87f8c8 JL |
7194 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7196 | else | |
7197 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7198 | #line 7199 "configure" |
ab87f8c8 JL |
7199 | #include "confdefs.h" |
7200 | /* System header to define __stub macros and hopefully few prototypes, | |
7201 | which can conflict with char $ac_func(); below. */ | |
7202 | #include <assert.h> | |
7203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7204 | /* We use char because int might match the return type of a gcc2 | |
7205 | builtin and then its argument prototype would still apply. */ | |
7206 | char $ac_func(); | |
7207 | ||
7208 | int main() { | |
7209 | ||
7210 | /* The GNU C library defines this for functions which it implements | |
7211 | to always fail with ENOSYS. Some functions are actually named | |
7212 | something starting with __ and the normal name is an alias. */ | |
7213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7214 | choke me | |
7215 | #else | |
3ecc3258 | 7216 | $ac_func(); |
ab87f8c8 JL |
7217 | #endif |
7218 | ||
7219 | ; return 0; } | |
7220 | EOF | |
c83fe036 | 7221 | if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7222 | rm -rf conftest* |
7223 | eval "ac_cv_func_$ac_func=yes" | |
7224 | else | |
7225 | echo "configure: failed program was:" >&5 | |
7226 | cat conftest.$ac_ext >&5 | |
7227 | rm -rf conftest* | |
7228 | eval "ac_cv_func_$ac_func=no" | |
7229 | fi | |
7230 | rm -f conftest* | |
7231 | fi | |
7232 | ||
7233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7234 | echo "$ac_t""yes" 1>&6 | |
7235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7236 | cat >> confdefs.h <<EOF | |
7237 | #define $ac_tr_func 1 | |
7238 | EOF | |
7239 | ||
7240 | else | |
7241 | echo "$ac_t""no" 1>&6 | |
7242 | fi | |
7243 | done | |
7244 | ||
7245 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7246 | set dummy gmsgfmt; ac_word=$2 | |
7247 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7248 | echo "configure:7249: checking for $ac_word" >&5 |
ab87f8c8 JL |
7249 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7251 | else | |
7252 | case "$GMSGFMT" in | |
7253 | /*) | |
7254 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7255 | ;; | |
7256 | ?:/*) | |
7257 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7258 | ;; | |
7259 | *) | |
cd9e5e7c | 7260 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7261 | ac_dummy="$PATH" |
7262 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7263 | test -z "$ac_dir" && ac_dir=. |
7264 | if test -f $ac_dir/$ac_word; then | |
7265 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7266 | break | |
7267 | fi | |
7268 | done | |
7269 | IFS="$ac_save_ifs" | |
7270 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7271 | ;; | |
7272 | esac | |
7273 | fi | |
7274 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7275 | if test -n "$GMSGFMT"; then | |
7276 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7277 | else | |
7278 | echo "$ac_t""no" 1>&6 | |
7279 | fi | |
7280 | ||
7281 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7282 | set dummy xgettext; ac_word=$2 | |
7283 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7284 | echo "configure:7285: checking for $ac_word" >&5 |
ab87f8c8 JL |
7285 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7287 | else | |
7288 | case "$XGETTEXT" in | |
7289 | /*) | |
7290 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7291 | ;; | |
7292 | *) | |
7293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7294 | for ac_dir in $PATH; do | |
7295 | test -z "$ac_dir" && ac_dir=. | |
7296 | if test -f $ac_dir/$ac_word; then | |
7297 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7298 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7299 | break | |
7300 | fi | |
7301 | fi | |
7302 | done | |
7303 | IFS="$ac_save_ifs" | |
7304 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7305 | ;; | |
7306 | esac | |
7307 | fi | |
7308 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7309 | if test -n "$XGETTEXT"; then | |
7310 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7311 | else | |
7312 | echo "$ac_t""no" 1>&6 | |
7313 | fi | |
7314 | ||
7315 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7316 | #line 7317 "configure" |
ab87f8c8 JL |
7317 | #include "confdefs.h" |
7318 | ||
7319 | int main() { | |
7320 | extern int _nl_msg_cat_cntr; | |
7321 | return _nl_msg_cat_cntr | |
7322 | ; return 0; } | |
7323 | EOF | |
c83fe036 | 7324 | if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7325 | rm -rf conftest* |
7326 | CATOBJEXT=.gmo | |
7327 | DATADIRNAME=share | |
7328 | else | |
7329 | echo "configure: failed program was:" >&5 | |
7330 | cat conftest.$ac_ext >&5 | |
7331 | rm -rf conftest* | |
7332 | CATOBJEXT=.mo | |
7333 | DATADIRNAME=lib | |
7334 | fi | |
7335 | rm -f conftest* | |
7336 | INSTOBJEXT=.mo | |
7337 | fi | |
7338 | fi | |
7339 | ||
7340 | else | |
7341 | echo "$ac_t""no" 1>&6 | |
7342 | fi | |
7343 | ||
7344 | ||
7345 | if test "$CATOBJEXT" = "NONE"; then | |
7346 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
c83fe036 | 7347 | echo "configure:7348: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7348 | # Check whether --with-catgets or --without-catgets was given. |
7349 | if test "${with_catgets+set}" = set; then | |
7350 | withval="$with_catgets" | |
7351 | nls_cv_use_catgets=$withval | |
7352 | else | |
7353 | nls_cv_use_catgets=no | |
7354 | fi | |
7355 | ||
7356 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7357 | ||
7358 | if test "$nls_cv_use_catgets" = "yes"; then | |
7359 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
c83fe036 | 7360 | echo "configure:7361: checking for main in -li" >&5 |
ab87f8c8 JL |
7361 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7364 | else | |
7365 | ac_save_LIBS="$LIBS" | |
7366 | LIBS="-li $LIBS" | |
7367 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7368 | #line 7369 "configure" |
ab87f8c8 JL |
7369 | #include "confdefs.h" |
7370 | ||
7371 | int main() { | |
7372 | main() | |
7373 | ; return 0; } | |
7374 | EOF | |
c83fe036 | 7375 | if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7376 | rm -rf conftest* |
7377 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7378 | else | |
7379 | echo "configure: failed program was:" >&5 | |
7380 | cat conftest.$ac_ext >&5 | |
7381 | rm -rf conftest* | |
7382 | eval "ac_cv_lib_$ac_lib_var=no" | |
7383 | fi | |
7384 | rm -f conftest* | |
7385 | LIBS="$ac_save_LIBS" | |
7386 | ||
7387 | fi | |
7388 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7389 | echo "$ac_t""yes" 1>&6 | |
7390 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7391 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7392 | cat >> confdefs.h <<EOF | |
7393 | #define $ac_tr_lib 1 | |
7394 | EOF | |
7395 | ||
7396 | LIBS="-li $LIBS" | |
7397 | ||
7398 | else | |
7399 | echo "$ac_t""no" 1>&6 | |
7400 | fi | |
7401 | ||
7402 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
c83fe036 | 7403 | echo "configure:7404: checking for catgets" >&5 |
ab87f8c8 JL |
7404 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7406 | else | |
7407 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7408 | #line 7409 "configure" |
ab87f8c8 JL |
7409 | #include "confdefs.h" |
7410 | /* System header to define __stub macros and hopefully few prototypes, | |
7411 | which can conflict with char catgets(); below. */ | |
7412 | #include <assert.h> | |
7413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7414 | /* We use char because int might match the return type of a gcc2 | |
7415 | builtin and then its argument prototype would still apply. */ | |
7416 | char catgets(); | |
7417 | ||
7418 | int main() { | |
7419 | ||
7420 | /* The GNU C library defines this for functions which it implements | |
7421 | to always fail with ENOSYS. Some functions are actually named | |
7422 | something starting with __ and the normal name is an alias. */ | |
7423 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7424 | choke me | |
7425 | #else | |
3ecc3258 | 7426 | catgets(); |
ab87f8c8 JL |
7427 | #endif |
7428 | ||
7429 | ; return 0; } | |
7430 | EOF | |
c83fe036 | 7431 | if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7432 | rm -rf conftest* |
7433 | eval "ac_cv_func_catgets=yes" | |
7434 | else | |
7435 | echo "configure: failed program was:" >&5 | |
7436 | cat conftest.$ac_ext >&5 | |
7437 | rm -rf conftest* | |
7438 | eval "ac_cv_func_catgets=no" | |
7439 | fi | |
7440 | rm -f conftest* | |
7441 | fi | |
7442 | ||
7443 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7444 | echo "$ac_t""yes" 1>&6 | |
7445 | cat >> confdefs.h <<\EOF | |
7446 | #define HAVE_CATGETS 1 | |
7447 | EOF | |
7448 | ||
7449 | INTLOBJS="\$(CATOBJS)" | |
7450 | # Extract the first word of "gencat", so it can be a program name with args. | |
7451 | set dummy gencat; ac_word=$2 | |
7452 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7453 | echo "configure:7454: checking for $ac_word" >&5 |
ab87f8c8 JL |
7454 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7456 | else | |
7457 | case "$GENCAT" in | |
7458 | /*) | |
7459 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7460 | ;; | |
7461 | ?:/*) | |
7462 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7463 | ;; | |
7464 | *) | |
cd9e5e7c | 7465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7466 | ac_dummy="$PATH" |
7467 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7468 | test -z "$ac_dir" && ac_dir=. |
7469 | if test -f $ac_dir/$ac_word; then | |
7470 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7471 | break | |
7472 | fi | |
7473 | done | |
7474 | IFS="$ac_save_ifs" | |
7475 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7476 | ;; | |
7477 | esac | |
7478 | fi | |
7479 | GENCAT="$ac_cv_path_GENCAT" | |
7480 | if test -n "$GENCAT"; then | |
7481 | echo "$ac_t""$GENCAT" 1>&6 | |
7482 | else | |
7483 | echo "$ac_t""no" 1>&6 | |
7484 | fi | |
7485 | if test "$GENCAT" != "no"; then | |
7486 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7487 | set dummy gmsgfmt; ac_word=$2 | |
7488 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7489 | echo "configure:7490: checking for $ac_word" >&5 |
ab87f8c8 JL |
7490 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7492 | else | |
7493 | case "$GMSGFMT" in | |
7494 | /*) | |
7495 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7496 | ;; | |
7497 | ?:/*) | |
7498 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7499 | ;; | |
7500 | *) | |
cd9e5e7c | 7501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7502 | ac_dummy="$PATH" |
7503 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7504 | test -z "$ac_dir" && ac_dir=. |
7505 | if test -f $ac_dir/$ac_word; then | |
7506 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7507 | break | |
7508 | fi | |
7509 | done | |
7510 | IFS="$ac_save_ifs" | |
7511 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7512 | ;; | |
7513 | esac | |
7514 | fi | |
7515 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7516 | if test -n "$GMSGFMT"; then | |
7517 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7518 | else | |
7519 | echo "$ac_t""no" 1>&6 | |
7520 | fi | |
7521 | ||
7522 | if test "$GMSGFMT" = "no"; then | |
7523 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7524 | set dummy msgfmt; ac_word=$2 | |
7525 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7526 | echo "configure:7527: checking for $ac_word" >&5 |
ab87f8c8 JL |
7527 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7529 | else | |
7530 | case "$GMSGFMT" in | |
7531 | /*) | |
7532 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7533 | ;; | |
7534 | *) | |
7535 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7536 | for ac_dir in $PATH; do | |
7537 | test -z "$ac_dir" && ac_dir=. | |
7538 | if test -f $ac_dir/$ac_word; then | |
7539 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7540 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7541 | break | |
7542 | fi | |
7543 | fi | |
7544 | done | |
7545 | IFS="$ac_save_ifs" | |
7546 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7547 | ;; | |
7548 | esac | |
7549 | fi | |
7550 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7551 | if test -n "$GMSGFMT"; then | |
7552 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7553 | else | |
7554 | echo "$ac_t""no" 1>&6 | |
7555 | fi | |
7556 | ||
7557 | fi | |
7558 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7559 | set dummy xgettext; ac_word=$2 | |
7560 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7561 | echo "configure:7562: checking for $ac_word" >&5 |
ab87f8c8 JL |
7562 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7564 | else | |
7565 | case "$XGETTEXT" in | |
7566 | /*) | |
7567 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7568 | ;; | |
7569 | *) | |
7570 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7571 | for ac_dir in $PATH; do | |
7572 | test -z "$ac_dir" && ac_dir=. | |
7573 | if test -f $ac_dir/$ac_word; then | |
7574 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7575 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7576 | break | |
7577 | fi | |
7578 | fi | |
7579 | done | |
7580 | IFS="$ac_save_ifs" | |
7581 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7582 | ;; | |
7583 | esac | |
7584 | fi | |
7585 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7586 | if test -n "$XGETTEXT"; then | |
7587 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7588 | else | |
7589 | echo "$ac_t""no" 1>&6 | |
7590 | fi | |
7591 | ||
7592 | USE_INCLUDED_LIBINTL=yes | |
7593 | CATOBJEXT=.cat | |
7594 | INSTOBJEXT=.cat | |
7595 | DATADIRNAME=lib | |
7596 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7597 | INTLLIBS=$INTLDEPS | |
7598 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7599 | nls_cv_header_intl=intl/libintl.h | |
7600 | nls_cv_header_libgt=intl/libgettext.h | |
7601 | fi | |
7602 | else | |
7603 | echo "$ac_t""no" 1>&6 | |
7604 | fi | |
7605 | ||
7606 | fi | |
7607 | fi | |
7608 | ||
7609 | if test "$CATOBJEXT" = "NONE"; then | |
7610 | nls_cv_use_gnu_gettext=yes | |
7611 | fi | |
7612 | fi | |
7613 | ||
7614 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7615 | INTLOBJS="\$(GETTOBJS)" | |
7616 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7617 | set dummy msgfmt; ac_word=$2 | |
7618 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7619 | echo "configure:7620: checking for $ac_word" >&5 |
ab87f8c8 JL |
7620 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7622 | else | |
7623 | case "$MSGFMT" in | |
7624 | /*) | |
7625 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7626 | ;; | |
7627 | *) | |
7628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7629 | for ac_dir in $PATH; do | |
7630 | test -z "$ac_dir" && ac_dir=. | |
7631 | if test -f $ac_dir/$ac_word; then | |
7632 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7633 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7634 | break | |
7635 | fi | |
7636 | fi | |
7637 | done | |
7638 | IFS="$ac_save_ifs" | |
7639 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7640 | ;; | |
7641 | esac | |
7642 | fi | |
7643 | MSGFMT="$ac_cv_path_MSGFMT" | |
7644 | if test -n "$MSGFMT"; then | |
7645 | echo "$ac_t""$MSGFMT" 1>&6 | |
7646 | else | |
7647 | echo "$ac_t""no" 1>&6 | |
7648 | fi | |
7649 | ||
7650 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7651 | set dummy gmsgfmt; ac_word=$2 | |
7652 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7653 | echo "configure:7654: checking for $ac_word" >&5 |
ab87f8c8 JL |
7654 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7656 | else | |
7657 | case "$GMSGFMT" in | |
7658 | /*) | |
7659 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7660 | ;; | |
7661 | ?:/*) | |
7662 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7663 | ;; | |
7664 | *) | |
cd9e5e7c | 7665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7666 | ac_dummy="$PATH" |
7667 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7668 | test -z "$ac_dir" && ac_dir=. |
7669 | if test -f $ac_dir/$ac_word; then | |
7670 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7671 | break | |
7672 | fi | |
7673 | done | |
7674 | IFS="$ac_save_ifs" | |
7675 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7676 | ;; | |
7677 | esac | |
7678 | fi | |
7679 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7680 | if test -n "$GMSGFMT"; then | |
7681 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7682 | else | |
7683 | echo "$ac_t""no" 1>&6 | |
7684 | fi | |
7685 | ||
7686 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7687 | set dummy xgettext; ac_word=$2 | |
7688 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c83fe036 | 7689 | echo "configure:7690: checking for $ac_word" >&5 |
ab87f8c8 JL |
7690 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7692 | else | |
7693 | case "$XGETTEXT" in | |
7694 | /*) | |
7695 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7696 | ;; | |
7697 | *) | |
7698 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7699 | for ac_dir in $PATH; do | |
7700 | test -z "$ac_dir" && ac_dir=. | |
7701 | if test -f $ac_dir/$ac_word; then | |
7702 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7703 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7704 | break | |
7705 | fi | |
7706 | fi | |
7707 | done | |
7708 | IFS="$ac_save_ifs" | |
7709 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7710 | ;; | |
7711 | esac | |
7712 | fi | |
7713 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7714 | if test -n "$XGETTEXT"; then | |
7715 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7716 | else | |
7717 | echo "$ac_t""no" 1>&6 | |
7718 | fi | |
7719 | ||
7720 | ||
7721 | USE_INCLUDED_LIBINTL=yes | |
7722 | CATOBJEXT=.gmo | |
7723 | INSTOBJEXT=.mo | |
7724 | DATADIRNAME=share | |
7725 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7726 | INTLLIBS=$INTLDEPS | |
7727 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7728 | nls_cv_header_intl=intl/libintl.h | |
7729 | nls_cv_header_libgt=intl/libgettext.h | |
7730 | fi | |
7731 | ||
7732 | if test "$XGETTEXT" != ":"; then | |
7733 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7734 | : ; | |
7735 | else | |
7736 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
7737 | XGETTEXT=":" | |
7738 | fi | |
7739 | fi | |
7740 | ||
7741 | # We need to process the po/ directory. | |
7742 | POSUB=po | |
7743 | else | |
7744 | DATADIRNAME=share | |
7745 | nls_cv_header_intl=intl/libintl.h | |
7746 | nls_cv_header_libgt=intl/libgettext.h | |
7747 | fi | |
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7753 | # because some of the sources are only built for this goal. | |
7754 | if test "$PACKAGE" = gettext; then | |
7755 | USE_NLS=yes | |
7756 | USE_INCLUDED_LIBINTL=yes | |
7757 | fi | |
7758 | ||
7759 | for lang in $ALL_LINGUAS; do | |
7760 | GMOFILES="$GMOFILES $lang.gmo" | |
7761 | POFILES="$POFILES $lang.po" | |
7762 | done | |
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | if test "x$CATOBJEXT" != "x"; then | |
7778 | if test "x$ALL_LINGUAS" = "x"; then | |
7779 | LINGUAS= | |
7780 | else | |
7781 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
c83fe036 | 7782 | echo "configure:7783: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
7783 | NEW_LINGUAS= |
7784 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7785 | case "$ALL_LINGUAS" in | |
7786 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7787 | esac | |
7788 | done | |
7789 | LINGUAS=$NEW_LINGUAS | |
7790 | echo "$ac_t""$LINGUAS" 1>&6 | |
7791 | fi | |
7792 | ||
7793 | if test -n "$LINGUAS"; then | |
7794 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7795 | fi | |
7796 | fi | |
7797 | ||
7798 | if test $ac_cv_header_locale_h = yes; then | |
7799 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7800 | else | |
7801 | INCLUDE_LOCALE_H="\ | |
7802 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7803 | fi | |
7804 | ||
7805 | ||
7806 | test -d intl || mkdir intl | |
7807 | if test "$CATOBJEXT" = ".cat"; then | |
7808 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
7809 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
c83fe036 | 7810 | echo "configure:7811: checking for linux/version.h" >&5 |
ab87f8c8 JL |
7811 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7813 | else | |
7814 | cat > conftest.$ac_ext <<EOF | |
c83fe036 | 7815 | #line 7816 "configure" |
ab87f8c8 JL |
7816 | #include "confdefs.h" |
7817 | #include <linux/version.h> | |
7818 | EOF | |
7819 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
c83fe036 | 7820 | { (eval echo configure:7821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7821 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7822 | if test -z "$ac_err"; then |
7823 | rm -rf conftest* | |
7824 | eval "ac_cv_header_$ac_safe=yes" | |
7825 | else | |
7826 | echo "$ac_err" >&5 | |
7827 | echo "configure: failed program was:" >&5 | |
7828 | cat conftest.$ac_ext >&5 | |
7829 | rm -rf conftest* | |
7830 | eval "ac_cv_header_$ac_safe=no" | |
7831 | fi | |
7832 | rm -f conftest* | |
7833 | fi | |
7834 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7835 | echo "$ac_t""yes" 1>&6 | |
7836 | msgformat=linux | |
7837 | else | |
7838 | echo "$ac_t""no" 1>&6 | |
7839 | msgformat=xopen | |
7840 | fi | |
7841 | ||
7842 | ||
7843 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
7844 | fi | |
7845 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7846 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
7847 | ||
7848 | if test "$PACKAGE" = "gettext"; then | |
7849 | GT_NO="#NO#" | |
7850 | GT_YES= | |
7851 | else | |
7852 | GT_NO= | |
7853 | GT_YES="#YES#" | |
7854 | fi | |
7855 | ||
7856 | ||
7857 | ||
7858 | MKINSTALLDIRS= | |
7859 | if test -n "$ac_aux_dir"; then | |
7860 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
7861 | fi | |
7862 | if test -z "$MKINSTALLDIRS"; then | |
7863 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7864 | fi | |
7865 | ||
7866 | ||
7867 | l= | |
7868 | ||
7869 | ||
7870 | test -d po || mkdir po | |
7871 | if test "x$srcdir" != "x."; then | |
7872 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
7873 | posrcprefix="$srcdir/" | |
7874 | else | |
7875 | posrcprefix="../$srcdir/" | |
7876 | fi | |
7877 | else | |
7878 | posrcprefix="../" | |
7879 | fi | |
7880 | rm -f po/POTFILES | |
7881 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7882 | < $srcdir/po/POTFILES.in > po/POTFILES | |
7883 | ||
7884 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
7885 | ||
7886 | # Get an absolute path to the GCC top-level source directory | |
7887 | holddir=`pwd` | |
7888 | cd $srcdir | |
7889 | topdir=`pwd` | |
7890 | cd $holddir | |
7891 | ||
7892 | # Conditionalize the makefile for this host machine. | |
7893 | # Make-host contains the concatenation of all host makefile fragments | |
7894 | # [there can be more than one]. This file is built by configure.frag. | |
7895 | host_overrides=Make-host | |
7896 | dep_host_xmake_file= | |
7897 | for f in .. ${host_xmake_file} | |
7898 | do | |
7899 | if test -f ${srcdir}/config/$f | |
7900 | then | |
7901 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
7902 | fi | |
7903 | done | |
7904 | ||
7905 | # Conditionalize the makefile for this target machine. | |
7906 | # Make-target contains the concatenation of all host makefile fragments | |
7907 | # [there can be more than one]. This file is built by configure.frag. | |
7908 | target_overrides=Make-target | |
7909 | dep_tmake_file= | |
7910 | for f in .. ${tmake_file} | |
7911 | do | |
7912 | if test -f ${srcdir}/config/$f | |
7913 | then | |
7914 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
7915 | fi | |
7916 | done | |
7917 | ||
7918 | # If the host doesn't support symlinks, modify CC in | |
7919 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
7920 | # Otherwise, we can use "CC=$(CC)". | |
7921 | rm -f symtest.tem | |
7922 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
7923 | then | |
7924 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 7925 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
7926 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
7927 | else | |
7928 | rm -f symtest.tem | |
7929 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
7930 | then | |
7931 | symbolic_link="cp -p" | |
7932 | else | |
7933 | symbolic_link="cp" | |
7934 | fi | |
7935 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 7936 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
7937 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
7938 | fi | |
7939 | rm -f symtest.tem | |
7940 | ||
7941 | out_object_file=`basename $out_file .c`.o | |
7942 | ||
7943 | tm_file_list= | |
7944 | for f in $tm_file; do | |
64ccbc99 KG |
7945 | case $f in |
7946 | gansidecl.h ) | |
7947 | tm_file_list="${tm_file_list} $f" ;; | |
7948 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
7949 | esac | |
ab87f8c8 JL |
7950 | done |
7951 | ||
7952 | host_xm_file_list= | |
7953 | for f in $host_xm_file; do | |
64ccbc99 KG |
7954 | case $f in |
7955 | auto-host.h | gansidecl.h | hwint.h ) | |
7956 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
7957 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
7958 | esac | |
ab87f8c8 JL |
7959 | done |
7960 | ||
7961 | build_xm_file_list= | |
7962 | for f in $build_xm_file; do | |
64ccbc99 KG |
7963 | case $f in |
7964 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
7965 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
7966 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
7967 | esac | |
ab87f8c8 JL |
7968 | done |
7969 | ||
7970 | # Define macro CROSS_COMPILE in compilation | |
7971 | # if this is a cross-compiler. | |
7972 | # Also use all.cross instead of all.internal | |
7973 | # and add cross-make to Makefile. | |
7974 | cross_overrides="/dev/null" | |
7975 | if test x$host != x$target | |
7976 | then | |
7977 | cross_defines="CROSS=-DCROSS_COMPILE" | |
7978 | cross_overrides="${topdir}/cross-make" | |
7979 | fi | |
7980 | ||
7981 | # When building gcc with a cross-compiler, we need to fix a few things. | |
7982 | # This must come after cross-make as we want all.build to override | |
7983 | # all.cross. | |
7984 | build_overrides="/dev/null" | |
7985 | if test x$build != x$host | |
7986 | then | |
7987 | build_overrides="${topdir}/build-make" | |
7988 | fi | |
7989 | ||
7990 | # Expand extra_headers to include complete path. | |
7991 | # This substitutes for lots of t-* files. | |
7992 | extra_headers_list= | |
7993 | if test "x$extra_headers" = x | |
7994 | then true | |
7995 | else | |
7996 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
7997 | for file in $extra_headers; | |
7998 | do | |
7999 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8000 | done | |
8001 | fi | |
8002 | ||
8003 | if test x$use_collect2 = xno; then | |
8004 | use_collect2= | |
8005 | fi | |
8006 | ||
8007 | # Add a definition of USE_COLLECT2 if system wants one. | |
8008 | # Also tell toplev.c what to do. | |
8009 | # This substitutes for lots of t-* files. | |
8010 | if test x$use_collect2 = x | |
8011 | then | |
8012 | will_use_collect2= | |
8013 | maybe_use_collect2= | |
8014 | else | |
8015 | will_use_collect2="collect2" | |
8016 | maybe_use_collect2="-DUSE_COLLECT2" | |
8017 | fi | |
8018 | ||
8019 | # NEED TO CONVERT | |
8020 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8021 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8022 | # for line oriented comments, so we must always use a GNU cpp. If | |
8023 | # building gcc with a cross compiler, use the cross compiler just | |
8024 | # built. Otherwise, we can use the cpp just built. | |
8025 | md_file_sub= | |
8026 | if test "x$md_cppflags" = x | |
8027 | then | |
8028 | md_file_sub=$srcdir/config/$md_file | |
8029 | else | |
8030 | md_file=md | |
8031 | fi | |
8032 | ||
8033 | # If we have gas in the build tree, make a link to it. | |
8034 | if test -f ../gas/Makefile; then | |
8035 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8036 | fi | |
8037 | ||
8038 | # If we have nm in the build tree, make a link to it. | |
8039 | if test -f ../binutils/Makefile; then | |
8040 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8041 | fi | |
8042 | ||
8043 | # If we have ld in the build tree, make a link to it. | |
8044 | if test -f ../ld/Makefile; then | |
8045 | # if test x$use_collect2 = x; then | |
8046 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8047 | # else | |
8048 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8049 | # fi | |
8050 | fi | |
8051 | ||
8052 | # Figure out what assembler alignment features are present. | |
8053 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
c83fe036 | 8054 | echo "configure:8055: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8055 | gcc_cv_as= |
8056 | gcc_cv_as_alignment_features= | |
8057 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8058 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8059 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8060 | elif test -x "$AS"; then | |
8061 | gcc_cv_as="$AS" | |
8062 | elif test -x as$host_exeext; then | |
8063 | # Build using assembler in the current directory. | |
8064 | gcc_cv_as=./as$host_exeext | |
8065 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8066 | # Single tree build which includes gas. | |
8067 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8068 | do | |
8069 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8070 | if test x$gcc_cv_gas_version != x; then | |
8071 | break | |
8072 | fi | |
8073 | done | |
8074 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8075 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8076 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8077 | # Gas version 2.6 and later support for .balign and .p2align. | |
8078 | # bytes to skip when using .p2align. | |
8079 | 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 | |
8080 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8081 | cat >> confdefs.h <<\EOF | |
8082 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8083 | EOF | |
8084 | ||
8085 | fi | |
8086 | # Gas version 2.8 and later support specifying the maximum | |
8087 | # bytes to skip when using .p2align. | |
8088 | 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 | |
8089 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8090 | cat >> confdefs.h <<\EOF | |
8091 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8092 | EOF |
8093 | ||
0b9d02c6 | 8094 | fi |
9e423e6d | 8095 | fi |
75bffa71 | 8096 | elif test x$host = x$target; then |
9e423e6d | 8097 | # Native build. |
779243f7 JL |
8098 | # Search the same directories that the installed compiler will |
8099 | # search. Else we may find the wrong assembler and lose. If we | |
8100 | # do not find a suitable assembler binary, then try the user's | |
8101 | # path. | |
8102 | # | |
8103 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8104 | # user's path. Unfortunately, there is no good way to get at the | |
8105 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8106 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8107 | # to be fixed as part of the make/configure rewrite too. | |
8108 | ||
8109 | if test "x$exec_prefix" = xNONE; then | |
8110 | if test "x$prefix" = xNONE; then | |
8111 | test_prefix=/usr/local | |
8112 | else | |
8113 | test_prefix=$prefix | |
8114 | fi | |
8115 | else | |
8116 | test_prefix=$exec_prefix | |
8117 | fi | |
8118 | ||
8119 | # If the loop below does not find an assembler, then use whatever | |
8120 | # one we can find in the users's path. | |
8121 | # user's path. | |
8122 | as=as$host_exeext | |
8123 | ||
8124 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8125 | $test_prefix/lib/gcc-lib/$target \ | |
8126 | /usr/lib/gcc/$target/$gcc_version \ | |
8127 | /usr/lib/gcc/$target \ | |
8128 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8129 | $test_prefix/$target/bin \ | |
8130 | /usr/libexec \ | |
8131 | /usr/ccs/gcc \ | |
8132 | /usr/ccs/bin \ | |
8133 | /udk/usr/ccs/bin \ | |
8134 | /bsd43/usr/lib/cmplrs/cc \ | |
8135 | /usr/cross64/usr/bin \ | |
8136 | /usr/lib/cmplrs/cc \ | |
8137 | /sysv/usr/lib/cmplrs/cc \ | |
8138 | /svr4/usr/lib/cmplrs/cc \ | |
8139 | /usr/bin" | |
8140 | ||
8141 | for dir in $test_dirs; do | |
8142 | if test -f $dir/as$host_exeext; then | |
8143 | gcc_cv_as=$dir/as$host_exeext | |
8144 | break; | |
8145 | fi | |
8146 | done | |
9e423e6d | 8147 | fi |
75bffa71 | 8148 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8149 | # Check if we have .balign and .p2align |
8150 | echo ".balign 4" > conftest.s | |
8151 | echo ".p2align 2" >> conftest.s | |
8152 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8153 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8154 | cat >> confdefs.h <<\EOF | |
8155 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8156 | EOF | |
8157 | ||
8158 | fi | |
8159 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8160 | # Check if specifying the maximum bytes to skip when |
8161 | # using .p2align is supported. | |
8162 | echo ".p2align 4,,7" > conftest.s | |
8163 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8164 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8165 | cat >> confdefs.h <<\EOF | |
8166 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8167 | EOF | |
8168 | ||
8169 | fi | |
8170 | rm -f conftest.s conftest.o | |
8171 | fi | |
8172 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8173 | ||
d1accaa3 | 8174 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
c83fe036 | 8175 | echo "configure:8176: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8176 | gcc_cv_as_subsections= |
8177 | if test x$gcc_cv_as != x; then | |
8178 | # Check if we have .subsection | |
8179 | echo ".subsection 1" > conftest.s | |
8180 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8181 | gcc_cv_as_subsections=".subsection" | |
8182 | if test -x nm$host_exeext; then | |
8183 | gcc_cv_nm=./nm$host_exeext | |
8184 | elif test x$host = x$target; then | |
8185 | # Native build. | |
8186 | gcc_cv_nm=nm$host_exeext | |
8187 | fi | |
8188 | if test x$gcc_cv_nm != x; then | |
8189 | cat > conftest.s <<EOF | |
8190 | conftest_label1: .word 0 | |
8191 | .subsection -1 | |
8192 | conftest_label2: .word 0 | |
8193 | .previous | |
8194 | EOF | |
8195 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8196 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8197 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8198 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8199 | : | |
8200 | else | |
d1accaa3 JJ |
8201 | gcc_cv_as_subsections="working .subsection -1" |
8202 | cat >> confdefs.h <<\EOF | |
8203 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8204 | EOF | |
8205 | ||
8206 | fi | |
8207 | fi | |
8208 | fi | |
8209 | fi | |
8210 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8211 | fi | |
8212 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8213 | ||
53b5ce19 | 8214 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 |
c83fe036 | 8215 | echo "configure:8216: checking assembler instructions" >&5 |
53b5ce19 JW |
8216 | gcc_cv_as_instructions= |
8217 | if test x$gcc_cv_as != x; then | |
8218 | set "filds fists" "filds mem; fists mem" | |
8219 | while test $# -gt 0 | |
8220 | do | |
8221 | echo "$2" > conftest.s | |
8222 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8223 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
8224 | cat >> confdefs.h <<EOF | |
8225 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
8226 | EOF | |
8227 | ||
8228 | fi | |
8229 | shift 2 | |
8230 | done | |
8231 | rm -f conftest.s conftest.o | |
8232 | fi | |
8233 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
8234 | ||
861bb6c1 | 8235 | # Figure out what language subdirectories are present. |
71205e0b MH |
8236 | # Look if the user specified --enable-languages="..."; if not, use |
8237 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8238 | # go away some day. | |
8239 | if test x"${enable_languages+set}" != xset; then | |
8240 | if test x"${LANGUAGES+set}" = xset; then | |
8241 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8242 | else | |
8243 | enable_languages=all | |
8244 | fi | |
8245 | fi | |
861bb6c1 JL |
8246 | subdirs= |
8247 | for lang in ${srcdir}/*/config-lang.in .. | |
8248 | do | |
8249 | case $lang in | |
8250 | ..) ;; | |
8251 | # The odd quoting in the next line works around | |
8252 | # an apparent bug in bash 1.12 on linux. | |
8253 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8254 | *) |
8255 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8256 | if test "x$lang_alias" = x | |
8257 | then | |
8258 | echo "$lang doesn't set \$language." 1>&2 | |
8259 | exit 1 | |
8260 | fi | |
8261 | if test x"${enable_languages}" = xall; then | |
8262 | add_this_lang=yes | |
8263 | else | |
8264 | case "${enable_languages}" in | |
8265 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8266 | add_this_lang=yes | |
8267 | ;; | |
8268 | * ) | |
8269 | add_this_lang=no | |
8270 | ;; | |
8271 | esac | |
8272 | fi | |
8273 | if test x"${add_this_lang}" = xyes; then | |
8274 | case $lang in | |
8275 | ${srcdir}/ada/config-lang.in) | |
8276 | if test x$gnat = xyes ; then | |
8277 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8278 | fi | |
8279 | ;; | |
8280 | *) | |
8281 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8282 | ;; | |
8283 | esac | |
8284 | fi | |
8285 | ;; | |
861bb6c1 JL |
8286 | esac |
8287 | done | |
8288 | ||
f24af81b TT |
8289 | # Make gthr-default.h if we have a thread file. |
8290 | gthread_flags= | |
75bffa71 | 8291 | if test $thread_file != single; then |
f24af81b | 8292 | rm -f gthr-default.h |
db0d1ed9 | 8293 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8294 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8295 | fi | |
8296 | ||
8297 | ||
861bb6c1 JL |
8298 | # Make empty files to contain the specs and options for each language. |
8299 | # Then add #include lines to for a compiler that has specs and/or options. | |
8300 | ||
8301 | lang_specs_files= | |
8302 | lang_options_files= | |
3103b7db ML |
8303 | lang_tree_files= |
8304 | rm -f specs.h options.h gencheck.h | |
8305 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8306 | for subdir in . $subdirs |
8307 | do | |
75bffa71 | 8308 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8309 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8310 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8311 | fi | |
75bffa71 | 8312 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8313 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8314 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8315 | fi | |
3103b7db ML |
8316 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8317 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8318 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8319 | fi | |
861bb6c1 JL |
8320 | done |
8321 | ||
8322 | # These (without "all_") are set in each config-lang.in. | |
8323 | # `language' must be a single word so is spelled singularly. | |
8324 | all_languages= | |
8325 | all_boot_languages= | |
8326 | all_compilers= | |
8327 | all_stagestuff= | |
8328 | all_diff_excludes= | |
4f3ae93c | 8329 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile' |
861bb6c1 JL |
8330 | # List of language makefile fragments. |
8331 | all_lang_makefiles= | |
8332 | all_headers= | |
8333 | all_lib2funcs= | |
8334 | ||
8335 | # Add the language fragments. | |
8336 | # Languages are added via two mechanisms. Some information must be | |
8337 | # recorded in makefile variables, these are defined in config-lang.in. | |
8338 | # We accumulate them and plug them into the main Makefile. | |
8339 | # The other mechanism is a set of hooks for each of the main targets | |
8340 | # like `clean', `install', etc. | |
8341 | ||
8342 | language_fragments="Make-lang" | |
8343 | language_hooks="Make-hooks" | |
8344 | oldstyle_subdirs= | |
8345 | ||
8346 | for s in .. $subdirs | |
8347 | do | |
75bffa71 | 8348 | if test $s != ".." |
861bb6c1 JL |
8349 | then |
8350 | language= | |
8351 | boot_language= | |
8352 | compilers= | |
8353 | stagestuff= | |
8354 | diff_excludes= | |
8355 | headers= | |
8356 | outputs= | |
8357 | lib2funcs= | |
8358 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 8359 | if test "x$language" = x |
861bb6c1 JL |
8360 | then |
8361 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
8362 | exit 1 | |
8363 | fi | |
8364 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
8365 | all_languages="$all_languages $language" | |
75bffa71 | 8366 | if test "x$boot_language" = xyes |
861bb6c1 JL |
8367 | then |
8368 | all_boot_languages="$all_boot_languages $language" | |
8369 | fi | |
8370 | all_compilers="$all_compilers $compilers" | |
8371 | all_stagestuff="$all_stagestuff $stagestuff" | |
8372 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
8373 | all_headers="$all_headers $headers" | |
8374 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 8375 | if test x$outputs = x |
861bb6c1 JL |
8376 | then |
8377 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
8378 | fi | |
8379 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
8380 | fi | |
8381 | done | |
8382 | ||
8383 | # Since we can't use `::' targets, we link each language in | |
8384 | # with a set of hooks, reached indirectly via lang.${target}. | |
8385 | ||
8386 | rm -f Make-hooks | |
8387 | touch Make-hooks | |
8388 | target_list="all.build all.cross start.encap rest.encap \ | |
8389 | info dvi \ | |
8390 | install-normal install-common install-info install-man \ | |
8391 | uninstall distdir \ | |
8392 | mostlyclean clean distclean extraclean maintainer-clean \ | |
8393 | stage1 stage2 stage3 stage4" | |
8394 | for t in $target_list | |
8395 | do | |
8396 | x= | |
ab87f8c8 | 8397 | for lang in .. $all_languages |
861bb6c1 | 8398 | do |
ab87f8c8 JL |
8399 | if test $lang != ".."; then |
8400 | x="$x $lang.$t" | |
861bb6c1 JL |
8401 | fi |
8402 | done | |
8403 | echo "lang.$t: $x" >> Make-hooks | |
8404 | done | |
8405 | ||
8406 | # If we're not building in srcdir, create .gdbinit. | |
8407 | ||
75bffa71 | 8408 | if test ! -f Makefile.in; then |
861bb6c1 JL |
8409 | echo "dir ." > .gdbinit |
8410 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 8411 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
8412 | then |
8413 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
8414 | fi | |
75bffa71 | 8415 | if test "x$subdirs" != x; then |
861bb6c1 JL |
8416 | for s in $subdirs |
8417 | do | |
8418 | echo "dir ${srcdir}/$s" >> .gdbinit | |
8419 | done | |
8420 | fi | |
8421 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
8422 | fi | |
8423 | ||
88111b26 JL |
8424 | # Define variables host_canonical and build_canonical |
8425 | # because some Cygnus local changes in the Makefile depend on them. | |
8426 | build_canonical=${build} | |
8427 | host_canonical=${host} | |
8428 | target_subdir= | |
75bffa71 | 8429 | if test "${host}" != "${target}" ; then |
88111b26 JL |
8430 | target_subdir=${target}/ |
8431 | fi | |
8432 | ||
8433 | ||
8434 | ||
8435 | ||
dec88383 DE |
8436 | # If this is using newlib, then define inhibit_libc in |
8437 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
8438 | # libgcc.a, but that's OK because newib should have its own version of | |
8439 | # assert.h. | |
8440 | inhibit_libc= | |
75bffa71 | 8441 | if test x$with_newlib = xyes; then |
dec88383 DE |
8442 | inhibit_libc=-Dinhibit_libc |
8443 | fi | |
8444 | ||
8445 | ||
8c660648 JL |
8446 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
8447 | sched_prefix= | |
8448 | sched_cflags= | |
75bffa71 | 8449 | if test x$enable_haifa = xyes; then |
8c660648 JL |
8450 | echo "Using the Haifa scheduler." |
8451 | sched_prefix=haifa- | |
8452 | sched_cflags=-DHAIFA | |
8453 | fi | |
8454 | ||
8455 | ||
75bffa71 | 8456 | if test x$enable_haifa != x; then |
8c660648 | 8457 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
81814e35 | 8458 | for x in genattrtab.o toplev.o *sched.o; do |
75bffa71 | 8459 | if test -f $x; then |
8c660648 JL |
8460 | echo "Removing $x" |
8461 | rm -f $x | |
8462 | fi | |
8463 | done | |
8464 | fi | |
8465 | ||
8f8d3278 NC |
8466 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
8467 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
8468 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
8469 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
8470 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
8471 | # make and thus we'd get different behavior depending on where we built the | |
8472 | # sources. | |
5949a9fc | 8473 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
8474 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
8475 | else | |
8f8d3278 NC |
8476 | # An explanation of the sed strings: |
8477 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
8478 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
8479 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
8480 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
8481 | # | |
8482 | # (*) Note this pattern overwrites the first character of the string | |
8483 | # with a forward slash if one is not already present. This is not a | |
8484 | # problem because the exact names of the sub-directories concerned is | |
8485 | # unimportant, just the number of them matters. | |
8486 | # | |
8487 | # The practical upshot of these patterns is like this: | |
8488 | # | |
8489 | # prefix exec_prefix result | |
8490 | # ------ ----------- ------ | |
8491 | # /foo /foo/bar ../ | |
8492 | # /foo/ /foo/bar ../ | |
8493 | # /foo /foo/bar/ ../ | |
8494 | # /foo/ /foo/bar/ ../ | |
8495 | # /foo /foo/bar/ugg ../../ | |
8496 | # | |
4c112cda NC |
8497 | dollar='$$' |
8498 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
8499 | fi |
8500 | ||
8501 | ||
2ce3c6c6 | 8502 | |
7e717196 JL |
8503 | # Nothing to do for FLOAT_H, float_format already handled. |
8504 | objdir=`pwd` | |
8505 | ||
8506 | ||
861bb6c1 JL |
8507 | # Process the language and host/target makefile fragments. |
8508 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
8509 | ||
8510 | # Substitute configuration variables | |
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
9b16d2c4 | 8557 | |
e9a25f70 | 8558 | |
6e26218f | 8559 | |
c8724862 | 8560 | |
e061d1ce | 8561 | |
f1943b77 | 8562 | |
0b9d02c6 | 8563 | |
3103b7db | 8564 | |
d8bb17c8 | 8565 | |
9fc9b82a L |
8566 | |
8567 | ||
df37e3db | 8568 | |
5aa82ace | 8569 | |
861bb6c1 JL |
8570 | |
8571 | ||
8572 | # Echo that links are built | |
75bffa71 | 8573 | if test x$host = x$target |
861bb6c1 JL |
8574 | then |
8575 | str1="native " | |
8576 | else | |
8577 | str1="cross-" | |
8578 | str2=" from $host" | |
8579 | fi | |
8580 | ||
75bffa71 | 8581 | if test x$host != x$build |
861bb6c1 JL |
8582 | then |
8583 | str3=" on a $build system" | |
8584 | fi | |
8585 | ||
75bffa71 | 8586 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8587 | then |
8588 | str4= | |
8589 | fi | |
8590 | ||
8591 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
8592 | ||
75bffa71 | 8593 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8594 | then |
8595 | echo " ${str2}${str3}." 1>&2 | |
8596 | fi | |
8597 | ||
f6cb0e63 | 8598 | # Truncate the target if necessary |
75bffa71 | 8599 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
8600 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
8601 | fi | |
8602 | ||
861bb6c1 JL |
8603 | # Configure the subdirectories |
8604 | # AC_CONFIG_SUBDIRS($subdirs) | |
8605 | ||
8606 | # Create the Makefile | |
8607 | # and configure language subdirectories | |
8608 | trap '' 1 2 15 | |
8609 | cat > confcache <<\EOF | |
8610 | # This file is a shell script that caches the results of configure | |
8611 | # tests run on this system so they can be shared between configure | |
8612 | # scripts and configure runs. It is not useful on other systems. | |
8613 | # If it contains results you don't want to keep, you may remove or edit it. | |
8614 | # | |
8615 | # By default, configure uses ./config.cache as the cache file, | |
8616 | # creating it if it does not exist already. You can give configure | |
8617 | # the --cache-file=FILE option to use a different cache file; that is | |
8618 | # what configure does when it calls configure scripts in | |
8619 | # subdirectories, so they share the cache. | |
8620 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8621 | # config.status only pays attention to the cache file if you give it the | |
8622 | # --recheck option to rerun configure. | |
8623 | # | |
8624 | EOF | |
8625 | # The following way of writing the cache mishandles newlines in values, | |
8626 | # but we know of no workaround that is simple, portable, and efficient. | |
8627 | # So, don't put newlines in cache variables' values. | |
8628 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8629 | # and sets the high bit in the cache file unless we assign to the vars. | |
8630 | (set) 2>&1 | | |
b27d2bd5 | 8631 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
8632 | *ac_space=\ *) |
8633 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8634 | # turns \\\\ into \\, and sed turns \\ into \). | |
8635 | sed -n \ | |
8636 | -e "s/'/'\\\\''/g" \ | |
8637 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8638 | ;; | |
8639 | *) | |
8640 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8641 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8642 | ;; | |
8643 | esac >> confcache | |
8644 | if cmp -s $cache_file confcache; then | |
8645 | : | |
8646 | else | |
8647 | if test -w $cache_file; then | |
8648 | echo "updating cache $cache_file" | |
8649 | cat confcache > $cache_file | |
8650 | else | |
8651 | echo "not updating unwritable cache $cache_file" | |
8652 | fi | |
8653 | fi | |
8654 | rm -f confcache | |
8655 | ||
8656 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8657 | ||
8658 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8659 | # Let make expand exec_prefix. | |
8660 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8661 | ||
8662 | # Any assignment to VPATH causes Sun make to only execute | |
8663 | # the first set of double-colon rules, so remove it if not needed. | |
8664 | # If there is a colon in the path, we need to keep it. | |
8665 | if test "x$srcdir" = x.; then | |
8666 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8667 | fi | |
8668 | ||
8669 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8670 | ||
8671 | DEFS=-DHAVE_CONFIG_H | |
8672 | ||
8673 | # Without the "./", some shells look in PATH for config.status. | |
8674 | : ${CONFIG_STATUS=./config.status} | |
8675 | ||
8676 | echo creating $CONFIG_STATUS | |
8677 | rm -f $CONFIG_STATUS | |
8678 | cat > $CONFIG_STATUS <<EOF | |
8679 | #! /bin/sh | |
8680 | # Generated automatically by configure. | |
8681 | # Run this file to recreate the current configuration. | |
8682 | # This directory was configured as follows, | |
8683 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8684 | # | |
8685 | # $0 $ac_configure_args | |
8686 | # | |
8687 | # Compiler output produced by configure, useful for debugging | |
8688 | # configure, is in ./config.log if it exists. | |
8689 | ||
8690 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8691 | for ac_option | |
8692 | do | |
8693 | case "\$ac_option" in | |
8694 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8695 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8696 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8697 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 8698 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
8699 | exit 0 ;; |
8700 | -help | --help | --hel | --he | --h) | |
8701 | echo "\$ac_cs_usage"; exit 0 ;; | |
8702 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
8703 | esac | |
8704 | done | |
8705 | ||
8706 | ac_given_srcdir=$srcdir | |
861bb6c1 | 8707 | |
b7cb92ad | 8708 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
8709 | EOF |
8710 | cat >> $CONFIG_STATUS <<EOF | |
8711 | ||
8712 | # Protect against being on the right side of a sed subst in config.status. | |
8713 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8714 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8715 | $ac_vpsub | |
8716 | $extrasub | |
6f144c9c | 8717 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
8718 | s%@CFLAGS@%$CFLAGS%g |
8719 | s%@CPPFLAGS@%$CPPFLAGS%g | |
8720 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 8721 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
8722 | s%@DEFS@%$DEFS%g |
8723 | s%@LDFLAGS@%$LDFLAGS%g | |
8724 | s%@LIBS@%$LIBS%g | |
8725 | s%@exec_prefix@%$exec_prefix%g | |
8726 | s%@prefix@%$prefix%g | |
8727 | s%@program_transform_name@%$program_transform_name%g | |
8728 | s%@bindir@%$bindir%g | |
8729 | s%@sbindir@%$sbindir%g | |
8730 | s%@libexecdir@%$libexecdir%g | |
8731 | s%@datadir@%$datadir%g | |
8732 | s%@sysconfdir@%$sysconfdir%g | |
8733 | s%@sharedstatedir@%$sharedstatedir%g | |
8734 | s%@localstatedir@%$localstatedir%g | |
8735 | s%@libdir@%$libdir%g | |
8736 | s%@includedir@%$includedir%g | |
8737 | s%@oldincludedir@%$oldincludedir%g | |
8738 | s%@infodir@%$infodir%g | |
8739 | s%@mandir@%$mandir%g | |
8740 | s%@host@%$host%g | |
8741 | s%@host_alias@%$host_alias%g | |
8742 | s%@host_cpu@%$host_cpu%g | |
8743 | s%@host_vendor@%$host_vendor%g | |
8744 | s%@host_os@%$host_os%g | |
8745 | s%@target@%$target%g | |
8746 | s%@target_alias@%$target_alias%g | |
8747 | s%@target_cpu@%$target_cpu%g | |
8748 | s%@target_vendor@%$target_vendor%g | |
8749 | s%@target_os@%$target_os%g | |
8750 | s%@build@%$build%g | |
8751 | s%@build_alias@%$build_alias%g | |
8752 | s%@build_cpu@%$build_cpu%g | |
8753 | s%@build_vendor@%$build_vendor%g | |
8754 | s%@build_os@%$build_os%g | |
e9a25f70 | 8755 | s%@CC@%$CC%g |
61842080 | 8756 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 8757 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
8758 | s%@AWK@%$AWK%g |
8759 | s%@LEX@%$LEX%g | |
8760 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
8761 | s%@LN@%$LN%g |
8762 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
8763 | s%@RANLIB@%$RANLIB%g |
8764 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
8765 | s%@INSTALL@%$INSTALL%g |
8766 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
8767 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 8768 | s%@CPP@%$CPP%g |
bcf12124 | 8769 | s%@gnat@%$gnat%g |
0a4b6309 RL |
8770 | s%@vfprintf@%$vfprintf%g |
8771 | s%@doprint@%$doprint%g | |
861bb6c1 | 8772 | s%@manext@%$manext%g |
992d1248 | 8773 | s%@objext@%$objext%g |
ab87f8c8 JL |
8774 | s%@PACKAGE@%$PACKAGE%g |
8775 | s%@VERSION@%$VERSION%g | |
8776 | s%@ALLOCA@%$ALLOCA%g | |
8777 | s%@USE_NLS@%$USE_NLS%g | |
8778 | s%@MSGFMT@%$MSGFMT%g | |
8779 | s%@GMSGFMT@%$GMSGFMT%g | |
8780 | s%@XGETTEXT@%$XGETTEXT%g | |
8781 | s%@GENCAT@%$GENCAT%g | |
8782 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
8783 | s%@CATALOGS@%$CATALOGS%g | |
8784 | s%@CATOBJEXT@%$CATOBJEXT%g | |
8785 | s%@DATADIRNAME@%$DATADIRNAME%g | |
8786 | s%@GMOFILES@%$GMOFILES%g | |
8787 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
8788 | s%@INTLDEPS@%$INTLDEPS%g | |
8789 | s%@INTLLIBS@%$INTLLIBS%g | |
8790 | s%@INTLOBJS@%$INTLOBJS%g | |
8791 | s%@POFILES@%$POFILES%g | |
8792 | s%@POSUB@%$POSUB%g | |
8793 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
8794 | s%@GT_NO@%$GT_NO%g | |
8795 | s%@GT_YES@%$GT_YES%g | |
8796 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
8797 | s%@l@%$l%g | |
f24af81b | 8798 | s%@gthread_flags@%$gthread_flags%g |
88111b26 JL |
8799 | s%@build_canonical@%$build_canonical%g |
8800 | s%@host_canonical@%$host_canonical%g | |
8801 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 8802 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
8803 | s%@sched_prefix@%$sched_prefix%g |
8804 | s%@sched_cflags@%$sched_cflags%g | |
d062c304 | 8805 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 8806 | s%@dollar@%$dollar%g |
7e717196 | 8807 | s%@objdir@%$objdir%g |
861bb6c1 | 8808 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
8809 | s%@all_boot_languages@%$all_boot_languages%g |
8810 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 8811 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 8812 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
8813 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
8814 | s%@all_languages@%$all_languages%g | |
8815 | s%@all_lib2funcs@%$all_lib2funcs%g | |
8816 | s%@all_stagestuff@%$all_stagestuff%g | |
8817 | s%@build_exeext@%$build_exeext%g | |
8818 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
8819 | s%@build_xm_file_list@%$build_xm_file_list%g | |
8820 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 8821 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 8822 | s%@cpp_install_dir@%$cpp_install_dir%g |
e061d1ce | 8823 | s%@cpp_main@%$cpp_main%g |
4f3ae93c BK |
8824 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
8825 | s%@dep_tmake_file@%$dep_tmake_file%g | |
8826 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 8827 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 8828 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
8829 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
8830 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 8831 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
8832 | s%@extra_parts@%$extra_parts%g |
8833 | s%@extra_passes@%$extra_passes%g | |
8834 | s%@extra_programs@%$extra_programs%g | |
8835 | s%@fixinc_defs@%$fixinc_defs%g | |
8836 | s%@float_h_file@%$float_h_file%g | |
8837 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
8838 | s%@gcc_version@%$gcc_version%g | |
8839 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
8840 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 8841 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 8842 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c BK |
8843 | s%@install@%$install%g |
8844 | s%@JAVAGC@%$JAVAGC%g | |
861bb6c1 | 8845 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 8846 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 8847 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 8848 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 8849 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
8850 | s%@md_file@%$md_file%g |
8851 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
8852 | s%@out_file@%$out_file%g | |
8853 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 8854 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 8855 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
8856 | s%@thread_file@%$thread_file%g |
8857 | s%@tm_file_list@%$tm_file_list%g | |
8858 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
8859 | /@target_overrides@/r $target_overrides |
8860 | s%@target_overrides@%%g | |
8861 | /@host_overrides@/r $host_overrides | |
8862 | s%@host_overrides@%%g | |
8863 | s%@cross_defines@%$cross_defines%g | |
8864 | /@cross_overrides@/r $cross_overrides | |
8865 | s%@cross_overrides@%%g | |
8866 | /@build_overrides@/r $build_overrides | |
8867 | s%@build_overrides@%%g | |
8868 | /@language_fragments@/r $language_fragments | |
8869 | s%@language_fragments@%%g | |
8870 | /@language_hooks@/r $language_hooks | |
8871 | s%@language_hooks@%%g | |
8872 | ||
8873 | CEOF | |
8874 | EOF | |
8875 | ||
8876 | cat >> $CONFIG_STATUS <<\EOF | |
8877 | ||
8878 | # Split the substitutions into bite-sized pieces for seds with | |
8879 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8880 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8881 | ac_file=1 # Number of current file. | |
8882 | ac_beg=1 # First line for current file. | |
8883 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8884 | ac_more_lines=: | |
8885 | ac_sed_cmds="" | |
8886 | while $ac_more_lines; do | |
8887 | if test $ac_beg -gt 1; then | |
8888 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8889 | else | |
8890 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8891 | fi | |
8892 | if test ! -s conftest.s$ac_file; then | |
8893 | ac_more_lines=false | |
8894 | rm -f conftest.s$ac_file | |
8895 | else | |
8896 | if test -z "$ac_sed_cmds"; then | |
8897 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
8898 | else | |
8899 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8900 | fi | |
8901 | ac_file=`expr $ac_file + 1` | |
8902 | ac_beg=$ac_end | |
8903 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8904 | fi | |
8905 | done | |
8906 | if test -z "$ac_sed_cmds"; then | |
8907 | ac_sed_cmds=cat | |
8908 | fi | |
8909 | EOF | |
8910 | ||
8911 | cat >> $CONFIG_STATUS <<EOF | |
8912 | ||
8913 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
8914 | EOF | |
8915 | cat >> $CONFIG_STATUS <<\EOF | |
8916 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8917 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8918 | case "$ac_file" in | |
8919 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8920 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8921 | *) ac_file_in="${ac_file}.in" ;; | |
8922 | esac | |
8923 | ||
8924 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8925 | ||
8926 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8927 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8928 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8929 | # The file is in a subdirectory. | |
8930 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8931 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8932 | # A "../" for each directory in $ac_dir_suffix. | |
8933 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8934 | else | |
8935 | ac_dir_suffix= ac_dots= | |
8936 | fi | |
8937 | ||
8938 | case "$ac_given_srcdir" in | |
8939 | .) srcdir=. | |
8940 | if test -z "$ac_dots"; then top_srcdir=. | |
8941 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8942 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8943 | *) # Relative path. | |
8944 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8945 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8946 | esac | |
8947 | ||
861bb6c1 JL |
8948 | |
8949 | echo creating "$ac_file" | |
8950 | rm -f "$ac_file" | |
8951 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8952 | case "$ac_file" in | |
8953 | *Makefile*) ac_comsub="1i\\ | |
8954 | # $configure_input" ;; | |
8955 | *) ac_comsub= ;; | |
8956 | esac | |
8957 | ||
8958 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8959 | sed -e "$ac_comsub | |
8960 | s%@configure_input@%$configure_input%g | |
8961 | s%@srcdir@%$srcdir%g | |
8962 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
8963 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
8964 | fi; done | |
8965 | rm -f conftest.s* | |
8966 | ||
8967 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8968 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8969 | # | |
8970 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8971 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8972 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8973 | ac_dC='\3' | |
8974 | ac_dD='%g' | |
8975 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8976 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8977 | ac_uB='\([ ]\)%\1#\2define\3' | |
8978 | ac_uC=' ' | |
8979 | ac_uD='\4%g' | |
8980 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8981 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8982 | ac_eB='$%\1#\2define\3' | |
8983 | ac_eC=' ' | |
8984 | ac_eD='%g' | |
8985 | ||
8986 | if test "${CONFIG_HEADERS+set}" != set; then | |
8987 | EOF | |
8988 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 8989 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
8990 | EOF |
8991 | cat >> $CONFIG_STATUS <<\EOF | |
8992 | fi | |
8993 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8994 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8995 | case "$ac_file" in | |
8996 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8997 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8998 | *) ac_file_in="${ac_file}.in" ;; | |
8999 | esac | |
9000 | ||
9001 | echo creating $ac_file | |
9002 | ||
9003 | rm -f conftest.frag conftest.in conftest.out | |
9004 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9005 | cat $ac_file_inputs > conftest.in | |
9006 | ||
9007 | EOF | |
9008 | ||
9009 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9010 | # the proper values into config.h.in to produce config.h. And first: | |
9011 | # Protect against being on the right side of a sed subst in config.status. | |
9012 | # Protect against being in an unquoted here document in config.status. | |
9013 | rm -f conftest.vals | |
9014 | cat > conftest.hdr <<\EOF | |
9015 | s/[\\&%]/\\&/g | |
9016 | s%[\\$`]%\\&%g | |
9017 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9018 | s%ac_d%ac_u%gp | |
9019 | s%ac_u%ac_e%gp | |
9020 | EOF | |
9021 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9022 | rm -f conftest.hdr | |
9023 | ||
9024 | # This sed command replaces #undef with comments. This is necessary, for | |
9025 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9026 | # on some systems where configure will not decide to define it. | |
9027 | cat >> conftest.vals <<\EOF | |
9028 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9029 | EOF | |
9030 | ||
9031 | # Break up conftest.vals because some shells have a limit on | |
9032 | # the size of here documents, and old seds have small limits too. | |
9033 | ||
9034 | rm -f conftest.tail | |
9035 | while : | |
9036 | do | |
9037 | ac_lines=`grep -c . conftest.vals` | |
9038 | # grep -c gives empty output for an empty file on some AIX systems. | |
9039 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9040 | # Write a limited-size here document to conftest.frag. | |
9041 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9042 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9043 | echo 'CEOF | |
9044 | sed -f conftest.frag conftest.in > conftest.out | |
9045 | rm -f conftest.in | |
9046 | mv conftest.out conftest.in | |
9047 | ' >> $CONFIG_STATUS | |
9048 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9049 | rm -f conftest.vals | |
9050 | mv conftest.tail conftest.vals | |
9051 | done | |
9052 | rm -f conftest.vals | |
9053 | ||
9054 | cat >> $CONFIG_STATUS <<\EOF | |
9055 | rm -f conftest.frag conftest.h | |
9056 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9057 | cat conftest.in >> conftest.h | |
9058 | rm -f conftest.in | |
9059 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9060 | echo "$ac_file is unchanged" | |
9061 | rm -f conftest.h | |
9062 | else | |
9063 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9064 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9065 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9066 | # The file is in a subdirectory. | |
9067 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9068 | fi | |
9069 | rm -f $ac_file | |
9070 | mv conftest.h $ac_file | |
9071 | fi | |
9072 | fi; done | |
9073 | ||
ab87f8c8 JL |
9074 | EOF |
9075 | ||
9076 | cat >> $CONFIG_STATUS <<EOF | |
9077 | ac_sources="$nls_cv_header_libgt" | |
9078 | ac_dests="$nls_cv_header_intl" | |
9079 | EOF | |
9080 | ||
9081 | cat >> $CONFIG_STATUS <<\EOF | |
9082 | srcdir=$ac_given_srcdir | |
9083 | while test -n "$ac_sources"; do | |
9084 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9085 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9086 | ||
9087 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9088 | ||
9089 | if test ! -r $srcdir/$ac_source; then | |
9090 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9091 | fi | |
9092 | rm -f $ac_dest | |
9093 | ||
9094 | # Make relative symlinks. | |
9095 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9096 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9097 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9098 | # The dest file is in a subdirectory. | |
9099 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9100 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9101 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9102 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9103 | else | |
9104 | ac_dest_dir_suffix= ac_dots= | |
9105 | fi | |
9106 | ||
9107 | case "$srcdir" in | |
9108 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9109 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9110 | esac | |
9111 | ||
9112 | # Make a symlink if possible; otherwise try a hard link. | |
9113 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9114 | ln $srcdir/$ac_source $ac_dest; then : | |
9115 | else | |
9116 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9117 | fi | |
9118 | done | |
861bb6c1 JL |
9119 | EOF |
9120 | cat >> $CONFIG_STATUS <<EOF | |
9121 | ||
ab87f8c8 | 9122 | |
861bb6c1 JL |
9123 | host='${host}' |
9124 | build='${build}' | |
9125 | target='${target}' | |
9126 | target_alias='${target_alias}' | |
9127 | srcdir='${srcdir}' | |
9128 | subdirs='${subdirs}' | |
9129 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9130 | symbolic_link='${symbolic_link}' | |
9131 | program_transform_set='${program_transform_set}' | |
9132 | program_transform_name='${program_transform_name}' | |
9133 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9134 | host_xmake_file='${host_xmake_file}' | |
9135 | dep_tmake_file='${dep_tmake_file}' | |
9136 | tmake_file='${tmake_file}' | |
9137 | thread_file='${thread_file}' | |
f1943b77 MH |
9138 | gcc_version='${gcc_version}' |
9139 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9140 | local_prefix='${local_prefix}' |
9141 | build_install_headers_dir='${build_install_headers_dir}' | |
9142 | build_exeext='${build_exeext}' | |
6e26218f | 9143 | host_exeext='${host_exeext}' |
7ed46111 | 9144 | out_file='${out_file}' |
861bb6c1 JL |
9145 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9146 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9147 | target_list='${target_list}' |
9148 | target_overrides='${target_overrides}' | |
9149 | host_overrides='${host_overrides}' | |
9150 | cross_defines='${cross_defines}' | |
9151 | cross_overrides='${cross_overrides}' | |
9152 | build_overrides='${build_overrides}' | |
9fc9b82a | 9153 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9154 | |
9155 | EOF | |
9156 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9157 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9158 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9159 | esac | |
861bb6c1 JL |
9160 | |
9161 | . $srcdir/configure.lang | |
9162 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9163 | xauto-host.h:config.in) |
861bb6c1 JL |
9164 | echo > cstamp-h ;; |
9165 | esac | |
93cf819d BK |
9166 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9167 | # bootstrapping and the installation procedure can still use | |
9168 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9169 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9170 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9171 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9172 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9173 | for d in .. ${subdirs} ; do |
75bffa71 | 9174 | if test $d != ..; then |
4e8a434e BK |
9175 | STARTDIR=`pwd` |
9176 | cd $d | |
9177 | for t in stage1 stage2 stage3 stage4 include | |
9178 | do | |
9179 | rm -f $t | |
9180 | $symbolic_link ../$t $t 2>/dev/null | |
9181 | done | |
9182 | cd $STARTDIR | |
93cf819d BK |
9183 | fi |
9184 | done | |
9185 | else true ; fi | |
ab87f8c8 JL |
9186 | # Avoid having to add intl to our include paths. |
9187 | if test -f intl/libintl.h; then | |
9188 | echo creating libintl.h | |
9189 | echo '#include "intl/libintl.h"' >libintl.h | |
9190 | fi | |
861bb6c1 JL |
9191 | |
9192 | exit 0 | |
9193 | EOF | |
9194 | chmod +x $CONFIG_STATUS | |
9195 | rm -fr confdefs* $ac_clean_files | |
9196 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9197 |