]>
Commit | Line | Data |
---|---|---|
005537df | 1 | #! /bin/sh |
861bb6c1 JL |
2 | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
b27d2bd5 | 4 | # Generated automatically using autoconf version 2.13 |
861bb6c1 JL |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-gnu-ld arrange to work with GNU ld." | |
ab339d62 AO |
16 | ac_help="$ac_help |
17 | --with-ld arrange to use the specified ld (full pathname)." | |
861bb6c1 JL |
18 | ac_help="$ac_help |
19 | --with-gnu-as arrange to work with GNU as." | |
ab339d62 AO |
20 | ac_help="$ac_help |
21 | --with-as arrange to use the specified as (full pathname)." | |
861bb6c1 JL |
22 | ac_help="$ac_help |
23 | --with-stabs arrange to use stabs instead of host debug format." | |
24 | ac_help="$ac_help | |
25 | --with-elf arrange to use ELF instead of host debug format." | |
26 | ac_help="$ac_help | |
27 | --with-local-prefix=DIR specifies directory to put local include." | |
28 | ac_help="$ac_help | |
29 | --with-gxx-include-dir=DIR | |
30 | specifies directory to put g++ header files." | |
a494747c | 31 | ac_help="$ac_help |
f4524c9e ZW |
32 | --enable-checking[=LIST] |
33 | enable expensive run-time checks. With LIST, | |
34 | enable only specific categories of checks. | |
35 | Categories are: misc,tree,rtl,gc,gcac; default | |
36 | is misc,tree,rtl" | |
3ecc3258 ZW |
37 | ac_help="$ac_help |
38 | --disable-cpp don't provide a user-visible C preprocessor." | |
39 | ac_help="$ac_help | |
40 | --with-cpp-install-dir=DIR | |
41 | install the user visible C preprocessor in DIR | |
42 | (relative to PREFIX) as well as PREFIX/bin." | |
c5c76735 JL |
43 | ac_help="$ac_help |
44 | --enable-c-mbchar Enable multibyte characters for C and C++." | |
861bb6c1 JL |
45 | ac_help="$ac_help |
46 | --enable-threads enable thread usage for target GCC. | |
47 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
48 | ac_help="$ac_help |
49 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
50 | the GNU Objective-C runtime." | |
90e6a802 | 51 | ac_help="$ac_help |
756ee602 | 52 | --with-dwarf2 force the default debug format to be DWARF2." |
ab87f8c8 JL |
53 | ac_help="$ac_help |
54 | --enable-nls use Native Language Support (disabled by default)" | |
55 | ac_help="$ac_help | |
56 | --disable-nls do not use Native Language Support" | |
57 | ac_help="$ac_help | |
58 | --with-included-gettext use the GNU gettext library included here" | |
59 | ac_help="$ac_help | |
60 | --with-catgets use catgets functions if available" | |
f4ab28e3 MK |
61 | ac_help="$ac_help |
62 | --disable-win32-registry | |
63 | Disable lookup of installation paths in the | |
64 | Registry on Windows hosts. | |
65 | --enable-win32-registry Enable registry lookup (default). | |
66 | --enable-win32-registry=KEY | |
67 | Use KEY instead of GCC version as the last portion | |
68 | of the registry key." | |
81bf3d9e RH |
69 | ac_help="$ac_help |
70 | --with-gc={simple,page} Choose the garbage collection mechanism to use | |
71 | with the compiler." | |
7441a352 NS |
72 | ac_help="$ac_help |
73 | --enable-new-gxx-abi | |
74 | select the new abi for g++. You must select an ABI | |
75 | at configuration time, so that the correct runtime | |
76 | support is built. You cannot mix ABIs." | |
7822500a BK |
77 | ac_help="$ac_help |
78 | --enable-libstdcxx-v3 | |
79 | enable libstdc++-v3 for building and installation" | |
861bb6c1 JL |
80 | |
81 | # Initialize some variables set by options. | |
82 | # The variables have the same names as the options, with | |
83 | # dashes changed to underlines. | |
84 | build=NONE | |
85 | cache_file=./config.cache | |
86 | exec_prefix=NONE | |
87 | host=NONE | |
88 | no_create= | |
89 | nonopt=NONE | |
90 | no_recursion= | |
91 | prefix=NONE | |
92 | program_prefix=NONE | |
93 | program_suffix=NONE | |
94 | program_transform_name=s,x,x, | |
95 | silent= | |
96 | site= | |
97 | srcdir= | |
98 | target=NONE | |
99 | verbose= | |
100 | x_includes=NONE | |
101 | x_libraries=NONE | |
102 | bindir='${exec_prefix}/bin' | |
103 | sbindir='${exec_prefix}/sbin' | |
104 | libexecdir='${exec_prefix}/libexec' | |
105 | datadir='${prefix}/share' | |
106 | sysconfdir='${prefix}/etc' | |
107 | sharedstatedir='${prefix}/com' | |
108 | localstatedir='${prefix}/var' | |
109 | libdir='${exec_prefix}/lib' | |
110 | includedir='${prefix}/include' | |
111 | oldincludedir='/usr/include' | |
112 | infodir='${prefix}/info' | |
113 | mandir='${prefix}/man' | |
114 | ||
115 | # Initialize some other variables. | |
116 | subdirs= | |
117 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 118 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
119 | # Maximum number of lines to put in a shell here document. |
120 | ac_max_here_lines=12 | |
121 | ||
122 | ac_prev= | |
123 | for ac_option | |
124 | do | |
125 | ||
126 | # If the previous option needs an argument, assign it. | |
127 | if test -n "$ac_prev"; then | |
128 | eval "$ac_prev=\$ac_option" | |
129 | ac_prev= | |
130 | continue | |
131 | fi | |
132 | ||
133 | case "$ac_option" in | |
134 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
135 | *) ac_optarg= ;; | |
136 | esac | |
137 | ||
138 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
139 | ||
140 | case "$ac_option" in | |
141 | ||
142 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
143 | ac_prev=bindir ;; | |
144 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
145 | bindir="$ac_optarg" ;; | |
146 | ||
147 | -build | --build | --buil | --bui | --bu) | |
148 | ac_prev=build ;; | |
149 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
150 | build="$ac_optarg" ;; | |
151 | ||
152 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
153 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
154 | ac_prev=cache_file ;; | |
155 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
156 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
157 | cache_file="$ac_optarg" ;; | |
158 | ||
159 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
160 | ac_prev=datadir ;; | |
161 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
162 | | --da=*) | |
163 | datadir="$ac_optarg" ;; | |
164 | ||
165 | -disable-* | --disable-*) | |
166 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
167 | # Reject names that are not valid shell variable names. | |
168 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
169 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
170 | fi | |
171 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
172 | eval "enable_${ac_feature}=no" ;; | |
173 | ||
174 | -enable-* | --enable-*) | |
175 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
176 | # Reject names that are not valid shell variable names. | |
177 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
178 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
179 | fi | |
180 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
181 | case "$ac_option" in | |
182 | *=*) ;; | |
183 | *) ac_optarg=yes ;; | |
184 | esac | |
185 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
186 | ||
187 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
188 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
189 | | --exec | --exe | --ex) | |
190 | ac_prev=exec_prefix ;; | |
191 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
192 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
193 | | --exec=* | --exe=* | --ex=*) | |
194 | exec_prefix="$ac_optarg" ;; | |
195 | ||
196 | -gas | --gas | --ga | --g) | |
197 | # Obsolete; use --with-gas. | |
198 | with_gas=yes ;; | |
199 | ||
200 | -help | --help | --hel | --he) | |
201 | # Omit some internal or obsolete options to make the list less imposing. | |
202 | # This message is too long to be a string in the A/UX 3.1 sh. | |
203 | cat << EOF | |
204 | Usage: configure [options] [host] | |
205 | Options: [defaults in brackets after descriptions] | |
206 | Configuration: | |
207 | --cache-file=FILE cache test results in FILE | |
208 | --help print this message | |
209 | --no-create do not create output files | |
210 | --quiet, --silent do not print \`checking...' messages | |
211 | --version print the version of autoconf that created configure | |
212 | Directory and file names: | |
213 | --prefix=PREFIX install architecture-independent files in PREFIX | |
214 | [$ac_default_prefix] | |
215 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
216 | [same as prefix] | |
217 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
218 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
219 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
220 | --datadir=DIR read-only architecture-independent data in DIR | |
221 | [PREFIX/share] | |
222 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
223 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
224 | [PREFIX/com] | |
225 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
226 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
227 | --includedir=DIR C header files in DIR [PREFIX/include] | |
228 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
229 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
230 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
231 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
232 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
233 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
234 | --program-transform-name=PROGRAM | |
235 | run sed PROGRAM on installed program names | |
236 | EOF | |
237 | cat << EOF | |
238 | Host type: | |
239 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
240 | --host=HOST configure for HOST [guessed] | |
241 | --target=TARGET configure for TARGET [TARGET=HOST] | |
242 | Features and packages: | |
243 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
244 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
245 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
246 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
247 | --x-includes=DIR X include files are in DIR | |
248 | --x-libraries=DIR X library files are in DIR | |
249 | EOF | |
250 | if test -n "$ac_help"; then | |
251 | echo "--enable and --with options recognized:$ac_help" | |
252 | fi | |
253 | exit 0 ;; | |
254 | ||
255 | -host | --host | --hos | --ho) | |
256 | ac_prev=host ;; | |
257 | -host=* | --host=* | --hos=* | --ho=*) | |
258 | host="$ac_optarg" ;; | |
259 | ||
260 | -includedir | --includedir | --includedi | --included | --include \ | |
261 | | --includ | --inclu | --incl | --inc) | |
262 | ac_prev=includedir ;; | |
263 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
264 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
265 | includedir="$ac_optarg" ;; | |
266 | ||
267 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
268 | ac_prev=infodir ;; | |
269 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
270 | infodir="$ac_optarg" ;; | |
271 | ||
272 | -libdir | --libdir | --libdi | --libd) | |
273 | ac_prev=libdir ;; | |
274 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
275 | libdir="$ac_optarg" ;; | |
276 | ||
277 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
278 | | --libexe | --libex | --libe) | |
279 | ac_prev=libexecdir ;; | |
280 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
281 | | --libexe=* | --libex=* | --libe=*) | |
282 | libexecdir="$ac_optarg" ;; | |
283 | ||
284 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
285 | | --localstate | --localstat | --localsta | --localst \ | |
286 | | --locals | --local | --loca | --loc | --lo) | |
287 | ac_prev=localstatedir ;; | |
288 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
289 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
290 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
291 | localstatedir="$ac_optarg" ;; | |
292 | ||
293 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
294 | ac_prev=mandir ;; | |
295 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
296 | mandir="$ac_optarg" ;; | |
297 | ||
298 | -nfp | --nfp | --nf) | |
299 | # Obsolete; use --without-fp. | |
300 | with_fp=no ;; | |
301 | ||
302 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
303 | | --no-cr | --no-c) | |
304 | no_create=yes ;; | |
305 | ||
306 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
307 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
308 | no_recursion=yes ;; | |
309 | ||
310 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
311 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
312 | | --oldin | --oldi | --old | --ol | --o) | |
313 | ac_prev=oldincludedir ;; | |
314 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
315 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
316 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
317 | oldincludedir="$ac_optarg" ;; | |
318 | ||
319 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
320 | ac_prev=prefix ;; | |
321 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
322 | prefix="$ac_optarg" ;; | |
323 | ||
324 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
325 | | --program-pre | --program-pr | --program-p) | |
326 | ac_prev=program_prefix ;; | |
327 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
328 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
329 | program_prefix="$ac_optarg" ;; | |
330 | ||
331 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
332 | | --program-suf | --program-su | --program-s) | |
333 | ac_prev=program_suffix ;; | |
334 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
335 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
336 | program_suffix="$ac_optarg" ;; | |
337 | ||
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 | ac_prev=program_transform_name ;; | |
346 | -program-transform-name=* | --program-transform-name=* \ | |
347 | | --program-transform-nam=* | --program-transform-na=* \ | |
348 | | --program-transform-n=* | --program-transform-=* \ | |
349 | | --program-transform=* | --program-transfor=* \ | |
350 | | --program-transfo=* | --program-transf=* \ | |
351 | | --program-trans=* | --program-tran=* \ | |
352 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
353 | program_transform_name="$ac_optarg" ;; | |
354 | ||
355 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
356 | | -silent | --silent | --silen | --sile | --sil) | |
357 | silent=yes ;; | |
358 | ||
359 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
360 | ac_prev=sbindir ;; | |
361 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
362 | | --sbi=* | --sb=*) | |
363 | sbindir="$ac_optarg" ;; | |
364 | ||
365 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
366 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
367 | | --sharedst | --shareds | --shared | --share | --shar \ | |
368 | | --sha | --sh) | |
369 | ac_prev=sharedstatedir ;; | |
370 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
371 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
372 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
373 | | --sha=* | --sh=*) | |
374 | sharedstatedir="$ac_optarg" ;; | |
375 | ||
376 | -site | --site | --sit) | |
377 | ac_prev=site ;; | |
378 | -site=* | --site=* | --sit=*) | |
379 | site="$ac_optarg" ;; | |
380 | ||
381 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
382 | ac_prev=srcdir ;; | |
383 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
384 | srcdir="$ac_optarg" ;; | |
385 | ||
386 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
387 | | --syscon | --sysco | --sysc | --sys | --sy) | |
388 | ac_prev=sysconfdir ;; | |
389 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
390 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
391 | sysconfdir="$ac_optarg" ;; | |
392 | ||
393 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
394 | ac_prev=target ;; | |
395 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
396 | target="$ac_optarg" ;; | |
397 | ||
398 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
399 | verbose=yes ;; | |
400 | ||
401 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 402 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
403 | exit 0 ;; |
404 | ||
405 | -with-* | --with-*) | |
406 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
407 | # Reject names that are not valid shell variable names. | |
408 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
409 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
410 | fi | |
411 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
412 | case "$ac_option" in | |
413 | *=*) ;; | |
414 | *) ac_optarg=yes ;; | |
415 | esac | |
416 | eval "with_${ac_package}='$ac_optarg'" ;; | |
417 | ||
418 | -without-* | --without-*) | |
419 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
420 | # Reject names that are not valid shell variable names. | |
421 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
422 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
423 | fi | |
424 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
425 | eval "with_${ac_package}=no" ;; | |
426 | ||
427 | --x) | |
428 | # Obsolete; use --with-x. | |
429 | with_x=yes ;; | |
430 | ||
431 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
432 | | --x-incl | --x-inc | --x-in | --x-i) | |
433 | ac_prev=x_includes ;; | |
434 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
435 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
436 | x_includes="$ac_optarg" ;; | |
437 | ||
438 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
439 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
440 | ac_prev=x_libraries ;; | |
441 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
442 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
443 | x_libraries="$ac_optarg" ;; | |
444 | ||
445 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
446 | ;; | |
447 | ||
448 | *) | |
449 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
450 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
451 | fi | |
452 | if test "x$nonopt" != xNONE; then | |
453 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
454 | fi | |
455 | nonopt="$ac_option" | |
456 | ;; | |
457 | ||
458 | esac | |
459 | done | |
460 | ||
461 | if test -n "$ac_prev"; then | |
462 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
463 | fi | |
464 | ||
465 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
466 | ||
467 | # File descriptor usage: | |
468 | # 0 standard input | |
469 | # 1 file creation | |
470 | # 2 errors and warnings | |
471 | # 3 some systems may open it to /dev/tty | |
472 | # 4 used on the Kubota Titan | |
473 | # 6 checking for... messages and results | |
474 | # 5 compiler messages saved in config.log | |
475 | if test "$silent" = yes; then | |
476 | exec 6>/dev/null | |
477 | else | |
478 | exec 6>&1 | |
479 | fi | |
480 | exec 5>./config.log | |
481 | ||
482 | echo "\ | |
483 | This file contains any messages produced by compilers while | |
484 | running configure, to aid debugging if configure makes a mistake. | |
485 | " 1>&5 | |
486 | ||
487 | # Strip out --no-create and --no-recursion so they do not pile up. | |
488 | # Also quote any args containing shell metacharacters. | |
489 | ac_configure_args= | |
490 | for ac_arg | |
491 | do | |
492 | case "$ac_arg" in | |
493 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
494 | | --no-cr | --no-c) ;; | |
495 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
496 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
497 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
498 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
499 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
500 | esac | |
501 | done | |
502 | ||
503 | # NLS nuisances. | |
504 | # Only set these to C if already set. These must not be set unconditionally | |
505 | # because not all systems understand e.g. LANG=C (notably SCO). | |
506 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
507 | # Non-C LC_CTYPE values break the ctype check. | |
508 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
509 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
510 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
511 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
512 | ||
513 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
514 | rm -rf conftest* confdefs.h | |
515 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
516 | echo > confdefs.h | |
517 | ||
518 | # A filename unique to this package, relative to the directory that | |
519 | # configure is in, which we can look for to find out if srcdir is correct. | |
520 | ac_unique_file=tree.c | |
521 | ||
522 | # Find the source files, if location was not specified. | |
523 | if test -z "$srcdir"; then | |
524 | ac_srcdir_defaulted=yes | |
525 | # Try the directory containing this script, then its parent. | |
526 | ac_prog=$0 | |
527 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
528 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
529 | srcdir=$ac_confdir | |
530 | if test ! -r $srcdir/$ac_unique_file; then | |
531 | srcdir=.. | |
532 | fi | |
533 | else | |
534 | ac_srcdir_defaulted=no | |
535 | fi | |
536 | if test ! -r $srcdir/$ac_unique_file; then | |
537 | if test "$ac_srcdir_defaulted" = yes; then | |
538 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
539 | else | |
540 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
541 | fi | |
542 | fi | |
543 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
544 | ||
545 | # Prefer explicitly selected file to automatically selected ones. | |
24e971f6 JL |
546 | if test -z "$CONFIG_SITE"; then |
547 | if test "x$prefix" != xNONE; then | |
548 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
549 | else | |
550 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
861bb6c1 JL |
551 | fi |
552 | fi | |
553 | for ac_site_file in $CONFIG_SITE; do | |
554 | if test -r "$ac_site_file"; then | |
555 | echo "loading site script $ac_site_file" | |
556 | . "$ac_site_file" | |
557 | fi | |
558 | done | |
559 | ||
560 | if test -r "$cache_file"; then | |
561 | echo "loading cache $cache_file" | |
562 | . $cache_file | |
563 | else | |
564 | echo "creating cache $cache_file" | |
565 | > $cache_file | |
566 | fi | |
567 | ||
568 | ac_ext=c | |
569 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
570 | ac_cpp='$CPP $CPPFLAGS' | |
571 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 572 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
573 | cross_compiling=$ac_cv_prog_cc_cross |
574 | ||
cd9e5e7c MK |
575 | ac_exeext= |
576 | ac_objext=o | |
861bb6c1 JL |
577 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
578 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
579 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
580 | ac_n= ac_c=' | |
581 | ' ac_t=' ' | |
582 | else | |
583 | ac_n=-n ac_c= ac_t= | |
584 | fi | |
585 | else | |
586 | ac_n= ac_c='\c' ac_t= | |
587 | fi | |
588 | ||
589 | ||
590 | ||
591 | ||
861bb6c1 JL |
592 | remove=rm |
593 | hard_link=ln | |
594 | symbolic_link='ln -s' | |
595 | copy=cp | |
596 | ||
75a39864 JL |
597 | # Check for bogus environment variables. |
598 | # Test if LIBRARY_PATH contains the notation for the current directory | |
599 | # since this would lead to problems installing/building glibc. | |
600 | # LIBRARY_PATH contains the current directory if one of the following | |
601 | # is true: | |
602 | # - one of the terminals (":" and ";") is the first or last sign | |
603 | # - two terminals occur directly after each other | |
604 | # - the path contains an element with a dot in it | |
605 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
86702e31 | 606 | echo "configure:607: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
607 | case ${LIBRARY_PATH} in |
608 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
609 | library_path_setting="contains current directory" | |
610 | ;; | |
611 | *) | |
612 | library_path_setting="ok" | |
613 | ;; | |
614 | esac | |
615 | echo "$ac_t""$library_path_setting" 1>&6 | |
616 | if test "$library_path_setting" != "ok"; then | |
617 | { echo "configure: error: | |
618 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 619 | *** building gcc. Please change the environment variable |
75a39864 JL |
620 | *** and run configure again." 1>&2; exit 1; } |
621 | fi | |
622 | ||
623 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
624 | # since this would lead to problems installing/building glibc. | |
625 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
626 | # is true: | |
627 | # - one of the terminals (":" and ";") is the first or last sign | |
628 | # - two terminals occur directly after each other | |
629 | # - the path contains an element with a dot in it | |
630 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
86702e31 | 631 | echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
632 | case ${GCC_EXEC_PREFIX} in |
633 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
634 | gcc_exec_prefix_setting="contains current directory" | |
635 | ;; | |
636 | *) | |
637 | gcc_exec_prefix_setting="ok" | |
638 | ;; | |
639 | esac | |
640 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
641 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
642 | { echo "configure: error: | |
643 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 644 | *** building gcc. Please change the environment variable |
75a39864 JL |
645 | *** and run configure again." 1>&2; exit 1; } |
646 | fi | |
647 | ||
861bb6c1 JL |
648 | # Check for additional parameters |
649 | ||
650 | # With GNU ld | |
651 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
652 | if test "${with_gnu_ld+set}" = set; then | |
653 | withval="$with_gnu_ld" | |
df6faf79 | 654 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 655 | else |
df6faf79 | 656 | gnu_ld_flag=no |
861bb6c1 JL |
657 | fi |
658 | ||
659 | ||
ab339d62 AO |
660 | # With pre-defined ld |
661 | # Check whether --with-ld or --without-ld was given. | |
662 | if test "${with_ld+set}" = set; then | |
663 | withval="$with_ld" | |
3ccc3a56 | 664 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
665 | fi |
666 | ||
3ccc3a56 AO |
667 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
668 | if test ! -x "$DEFAULT_LINKER"; then | |
669 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 670 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
671 | gnu_ld_flag=yes |
672 | fi | |
673 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 674 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
675 | EOF |
676 | ||
677 | fi | |
678 | ||
861bb6c1 JL |
679 | # With GNU as |
680 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
681 | if test "${with_gnu_as+set}" = set; then | |
682 | withval="$with_gnu_as" | |
df6faf79 | 683 | gas_flag="$with_gnu_as" |
861bb6c1 | 684 | else |
df6faf79 | 685 | gas_flag=no |
861bb6c1 JL |
686 | fi |
687 | ||
688 | ||
ab339d62 AO |
689 | # Check whether --with-as or --without-as was given. |
690 | if test "${with_as+set}" = set; then | |
691 | withval="$with_as" | |
3ccc3a56 | 692 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
693 | fi |
694 | ||
3ccc3a56 AO |
695 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
696 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
697 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 698 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
699 | gas_flag=yes |
700 | fi | |
701 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 702 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
703 | EOF |
704 | ||
3ccc3a56 | 705 | fi |
ab339d62 | 706 | |
861bb6c1 JL |
707 | # With stabs |
708 | # Check whether --with-stabs or --without-stabs was given. | |
709 | if test "${with_stabs+set}" = set; then | |
710 | withval="$with_stabs" | |
535b86ce | 711 | stabs="$with_stabs" |
861bb6c1 JL |
712 | else |
713 | stabs=no | |
714 | fi | |
715 | ||
716 | ||
717 | # With ELF | |
718 | # Check whether --with-elf or --without-elf was given. | |
719 | if test "${with_elf+set}" = set; then | |
720 | withval="$with_elf" | |
535b86ce | 721 | elf="$with_elf" |
861bb6c1 JL |
722 | else |
723 | elf=no | |
724 | fi | |
725 | ||
726 | ||
727 | # Specify the local prefix | |
4e88d51b | 728 | local_prefix= |
861bb6c1 JL |
729 | # Check whether --with-local-prefix or --without-local-prefix was given. |
730 | if test "${with_local_prefix+set}" = set; then | |
731 | withval="$with_local_prefix" | |
4e88d51b JM |
732 | case "${withval}" in |
733 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
734 | no) ;; | |
735 | *) local_prefix=$with_local_prefix ;; | |
736 | esac | |
861bb6c1 JL |
737 | fi |
738 | ||
739 | ||
740 | # Default local prefix if it is empty | |
75bffa71 | 741 | if test x$local_prefix = x; then |
861bb6c1 JL |
742 | local_prefix=/usr/local |
743 | fi | |
744 | ||
8f8d3278 NC |
745 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
746 | # passed in by the toplevel make and thus we'd get different behavior | |
747 | # depending on where we built the sources. | |
748 | gcc_gxx_include_dir= | |
861bb6c1 JL |
749 | # Specify the g++ header file directory |
750 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
751 | if test "${with_gxx_include_dir+set}" = set; then | |
752 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
753 | case "${withval}" in |
754 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
755 | no) ;; | |
8f8d3278 | 756 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 757 | esac |
861bb6c1 JL |
758 | fi |
759 | ||
760 | ||
8f8d3278 | 761 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 762 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 763 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 764 | else |
a270b446 | 765 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 766 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
767 | fi |
768 | fi | |
769 | ||
a494747c MM |
770 | # Enable expensive internal checks |
771 | # Check whether --enable-checking or --disable-checking was given. | |
772 | if test "${enable_checking+set}" = set; then | |
773 | enableval="$enable_checking" | |
119d24d1 KG |
774 | ac_checking= |
775 | ac_tree_checking= | |
776 | ac_rtl_checking= | |
777 | ac_gc_checking= | |
778 | ac_gc_always_collect= | |
779 | case "${enableval}" in | |
780 | yes) ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;; | |
4e88d51b | 781 | no) ;; |
1c521d41 | 782 | *) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS," |
f4524c9e ZW |
783 | set fnord $enableval; shift |
784 | IFS="$ac_save_IFS" | |
c62e45ad KG |
785 | for check |
786 | do | |
f4524c9e | 787 | case $check in |
119d24d1 KG |
788 | misc) ac_checking=1 ;; |
789 | tree) ac_tree_checking=1 ;; | |
790 | rtl) ac_rtl_checking=1 ;; | |
791 | gc) ac_gc_checking=1 ;; | |
792 | gcac) ac_gc_always_collect=1 ;; | |
793 | *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; | |
794 | esac | |
795 | done | |
796 | ;; | |
797 | esac | |
798 | if test x$ac_checking != x ; then | |
799 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
800 | #define ENABLE_CHECKING 1 |
801 | EOF | |
119d24d1 KG |
802 | |
803 | fi | |
804 | if test x$ac_tree_checking != x ; then | |
805 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
806 | #define ENABLE_TREE_CHECKING 1 |
807 | EOF | |
119d24d1 KG |
808 | |
809 | fi | |
810 | if test x$ac_rtl_checking != x ; then | |
811 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
812 | #define ENABLE_RTL_CHECKING 1 |
813 | EOF | |
119d24d1 KG |
814 | |
815 | fi | |
816 | if test x$ac_gc_checking != x ; then | |
817 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
818 | #define ENABLE_GC_CHECKING 1 |
819 | EOF | |
119d24d1 KG |
820 | |
821 | fi | |
822 | if test x$ac_gc_always_collect != x ; then | |
823 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
824 | #define ENABLE_GC_ALWAYS_COLLECT 1 |
825 | EOF | |
119d24d1 KG |
826 | |
827 | fi | |
828 | ||
a494747c MM |
829 | fi |
830 | ||
831 | ||
3ecc3258 ZW |
832 | # Check whether --enable-cpp or --disable-cpp was given. |
833 | if test "${enable_cpp+set}" = set; then | |
834 | enableval="$enable_cpp" | |
835 | : | |
836 | else | |
837 | enable_cpp=yes | |
838 | fi | |
839 | ||
840 | ||
841 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
842 | if test "${with_cpp_install_dir+set}" = set; then | |
843 | withval="$with_cpp_install_dir" | |
844 | if test x$withval = xyes; then | |
845 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
846 | elif test x$withval != xno; then | |
847 | cpp_install_dir=$withval | |
848 | fi | |
849 | fi | |
850 | ||
851 | ||
f81a440f | 852 | |
c5c76735 JL |
853 | # Enable Multibyte Characters for C/C++ |
854 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
855 | if test "${enable_c_mbchar+set}" = set; then | |
856 | enableval="$enable_c_mbchar" | |
2618c083 | 857 | if test x$enable_c_mbchar != xno; then |
64fb023e | 858 | extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1" |
c5c76735 JL |
859 | fi |
860 | fi | |
861 | ||
862 | ||
861bb6c1 JL |
863 | # Enable threads |
864 | # Pass with no value to take the default | |
865 | # Pass with a value to specify a thread package | |
866 | # Check whether --enable-threads or --disable-threads was given. | |
867 | if test "${enable_threads+set}" = set; then | |
868 | enableval="$enable_threads" | |
75bffa71 | 869 | if test x$enable_threads = xno; then |
861bb6c1 JL |
870 | enable_threads='' |
871 | fi | |
872 | else | |
873 | enable_threads='' | |
874 | fi | |
875 | ||
876 | ||
e445171e | 877 | enable_threads_flag=$enable_threads |
861bb6c1 | 878 | # Check if a valid thread package |
e445171e | 879 | case x${enable_threads_flag} in |
861bb6c1 JL |
880 | x | xno) |
881 | # No threads | |
a851212a | 882 | target_thread_file='single' |
861bb6c1 JL |
883 | ;; |
884 | xyes) | |
885 | # default | |
a851212a | 886 | target_thread_file='' |
861bb6c1 JL |
887 | ;; |
888 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 889 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 890 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
891 | ;; |
892 | *) | |
893 | echo "$enable_threads is an unknown thread package" 1>&2 | |
894 | exit 1 | |
895 | ;; | |
896 | esac | |
897 | ||
d8bb17c8 OP |
898 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
899 | if test "${enable_objc_gc+set}" = set; then | |
900 | enableval="$enable_objc_gc" | |
2618c083 | 901 | if test x$enable_objc_gc = xno; then |
d8bb17c8 OP |
902 | objc_boehm_gc='' |
903 | else | |
904 | objc_boehm_gc=1 | |
905 | fi | |
906 | else | |
907 | objc_boehm_gc='' | |
908 | fi | |
909 | ||
910 | ||
90e6a802 RL |
911 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
912 | if test "${with_dwarf2+set}" = set; then | |
913 | withval="$with_dwarf2" | |
914 | dwarf2="$with_dwarf2" | |
915 | else | |
916 | dwarf2=no | |
917 | fi | |
918 | ||
919 | ||
861bb6c1 JL |
920 | # Determine the host, build, and target systems |
921 | ac_aux_dir= | |
922 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
923 | if 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 | elif test -f $ac_dir/install.sh; then | |
928 | ac_aux_dir=$ac_dir | |
929 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
930 | break | |
931 | fi | |
932 | done | |
933 | if test -z "$ac_aux_dir"; then | |
934 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
935 | fi | |
936 | ac_config_guess=$ac_aux_dir/config.guess | |
937 | ac_config_sub=$ac_aux_dir/config.sub | |
938 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
939 | ||
940 | ||
941 | # Do some error checking and defaulting for the host and target type. | |
942 | # The inputs are: | |
943 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
944 | # | |
945 | # The rules are: | |
946 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
947 | # same time. | |
948 | # 2. Host defaults to nonopt. | |
949 | # 3. If nonopt is not specified, then host defaults to the current host, | |
950 | # as determined by config.guess. | |
951 | # 4. Target and build default to nonopt. | |
952 | # 5. If nonopt is not specified, then target and build default to host. | |
953 | ||
954 | # The aliases save the names the user supplied, while $host etc. | |
955 | # will get canonicalized. | |
956 | case $host---$target---$nonopt in | |
957 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
958 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
959 | esac | |
960 | ||
961 | ||
962 | # Make sure we can run config.sub. | |
6f144c9c | 963 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
964 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
965 | fi | |
966 | ||
967 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
119d24d1 | 968 | echo "configure:969: checking host system type" >&5 |
861bb6c1 JL |
969 | |
970 | host_alias=$host | |
971 | case "$host_alias" in | |
972 | NONE) | |
973 | case $nonopt in | |
974 | NONE) | |
6f144c9c | 975 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
976 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
977 | fi ;; | |
978 | *) host_alias=$nonopt ;; | |
979 | esac ;; | |
980 | esac | |
981 | ||
6f144c9c | 982 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
983 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
984 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
985 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
986 | echo "$ac_t""$host" 1>&6 | |
987 | ||
988 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
119d24d1 | 989 | echo "configure:990: checking target system type" >&5 |
861bb6c1 JL |
990 | |
991 | target_alias=$target | |
992 | case "$target_alias" in | |
993 | NONE) | |
994 | case $nonopt in | |
995 | NONE) target_alias=$host_alias ;; | |
996 | *) target_alias=$nonopt ;; | |
997 | esac ;; | |
998 | esac | |
999 | ||
6f144c9c | 1000 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
1001 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1002 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1003 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1004 | echo "$ac_t""$target" 1>&6 | |
1005 | ||
1006 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
119d24d1 | 1007 | echo "configure:1008: checking build system type" >&5 |
861bb6c1 JL |
1008 | |
1009 | build_alias=$build | |
1010 | case "$build_alias" in | |
1011 | NONE) | |
1012 | case $nonopt in | |
1013 | NONE) build_alias=$host_alias ;; | |
1014 | *) build_alias=$nonopt ;; | |
1015 | esac ;; | |
1016 | esac | |
1017 | ||
6f144c9c | 1018 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1019 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1020 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1021 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1022 | echo "$ac_t""$build" 1>&6 | |
1023 | ||
1024 | test "$host_alias" != "$target_alias" && | |
1025 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1026 | NONENONEs,x,x, && | |
1027 | program_prefix=${target_alias}- | |
1028 | ||
1029 | ||
e9a25f70 JL |
1030 | # Find the native compiler |
1031 | # Extract the first word of "gcc", so it can be a program name with args. | |
1032 | set dummy gcc; ac_word=$2 | |
1033 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1034 | echo "configure:1035: checking for $ac_word" >&5 |
e9a25f70 JL |
1035 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1037 | else | |
1038 | if test -n "$CC"; then | |
1039 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1040 | else | |
cd9e5e7c | 1041 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1042 | ac_dummy="$PATH" |
1043 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1044 | test -z "$ac_dir" && ac_dir=. |
1045 | if test -f $ac_dir/$ac_word; then | |
1046 | ac_cv_prog_CC="gcc" | |
1047 | break | |
1048 | fi | |
1049 | done | |
1050 | IFS="$ac_save_ifs" | |
1051 | fi | |
1052 | fi | |
1053 | CC="$ac_cv_prog_CC" | |
1054 | if test -n "$CC"; then | |
1055 | echo "$ac_t""$CC" 1>&6 | |
1056 | else | |
1057 | echo "$ac_t""no" 1>&6 | |
1058 | fi | |
1059 | ||
1060 | if test -z "$CC"; then | |
1061 | # Extract the first word of "cc", so it can be a program name with args. | |
1062 | set dummy cc; ac_word=$2 | |
1063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1064 | echo "configure:1065: checking for $ac_word" >&5 |
e9a25f70 JL |
1065 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1067 | else | |
1068 | if test -n "$CC"; then | |
1069 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1070 | else | |
cd9e5e7c | 1071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1072 | ac_prog_rejected=no |
b27d2bd5 MK |
1073 | ac_dummy="$PATH" |
1074 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1075 | test -z "$ac_dir" && ac_dir=. |
1076 | if test -f $ac_dir/$ac_word; then | |
1077 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1078 | ac_prog_rejected=yes | |
1079 | continue | |
1080 | fi | |
1081 | ac_cv_prog_CC="cc" | |
1082 | break | |
1083 | fi | |
1084 | done | |
1085 | IFS="$ac_save_ifs" | |
1086 | if test $ac_prog_rejected = yes; then | |
1087 | # We found a bogon in the path, so make sure we never use it. | |
1088 | set dummy $ac_cv_prog_CC | |
1089 | shift | |
1090 | if test $# -gt 0; then | |
1091 | # We chose a different compiler from the bogus one. | |
1092 | # However, it has the same basename, so the bogon will be chosen | |
1093 | # first if we set CC to just the basename; use the full file name. | |
1094 | shift | |
1095 | set dummy "$ac_dir/$ac_word" "$@" | |
1096 | shift | |
1097 | ac_cv_prog_CC="$@" | |
1098 | fi | |
1099 | fi | |
1100 | fi | |
1101 | fi | |
1102 | CC="$ac_cv_prog_CC" | |
1103 | if test -n "$CC"; then | |
1104 | echo "$ac_t""$CC" 1>&6 | |
1105 | else | |
1106 | echo "$ac_t""no" 1>&6 | |
1107 | fi | |
1108 | ||
cd9e5e7c MK |
1109 | if test -z "$CC"; then |
1110 | case "`uname -s`" in | |
1111 | *win32* | *WIN32*) | |
1112 | # Extract the first word of "cl", so it can be a program name with args. | |
1113 | set dummy cl; ac_word=$2 | |
1114 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1115 | echo "configure:1116: checking for $ac_word" >&5 |
cd9e5e7c MK |
1116 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1118 | else | |
1119 | if test -n "$CC"; then | |
1120 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1121 | else | |
1122 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1123 | ac_dummy="$PATH" |
1124 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1125 | test -z "$ac_dir" && ac_dir=. |
1126 | if test -f $ac_dir/$ac_word; then | |
1127 | ac_cv_prog_CC="cl" | |
1128 | break | |
1129 | fi | |
1130 | done | |
1131 | IFS="$ac_save_ifs" | |
1132 | fi | |
1133 | fi | |
1134 | CC="$ac_cv_prog_CC" | |
1135 | if test -n "$CC"; then | |
1136 | echo "$ac_t""$CC" 1>&6 | |
1137 | else | |
1138 | echo "$ac_t""no" 1>&6 | |
1139 | fi | |
1140 | ;; | |
1141 | esac | |
1142 | fi | |
e9a25f70 JL |
1143 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1144 | fi | |
1145 | ||
1146 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
119d24d1 | 1147 | echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1148 | |
1149 | ac_ext=c | |
1150 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1151 | ac_cpp='$CPP $CPPFLAGS' | |
1152 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1153 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1154 | cross_compiling=$ac_cv_prog_cc_cross |
1155 | ||
b27d2bd5 MK |
1156 | cat > conftest.$ac_ext << EOF |
1157 | ||
119d24d1 | 1158 | #line 1159 "configure" |
e9a25f70 | 1159 | #include "confdefs.h" |
b27d2bd5 | 1160 | |
e9a25f70 JL |
1161 | main(){return(0);} |
1162 | EOF | |
119d24d1 | 1163 | if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1164 | ac_cv_prog_cc_works=yes |
1165 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1166 | if (./conftest; exit) 2>/dev/null; then | |
1167 | ac_cv_prog_cc_cross=no | |
1168 | else | |
1169 | ac_cv_prog_cc_cross=yes | |
1170 | fi | |
1171 | else | |
1172 | echo "configure: failed program was:" >&5 | |
1173 | cat conftest.$ac_ext >&5 | |
1174 | ac_cv_prog_cc_works=no | |
1175 | fi | |
1176 | rm -fr conftest* | |
b27d2bd5 MK |
1177 | ac_ext=c |
1178 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1179 | ac_cpp='$CPP $CPPFLAGS' | |
1180 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1181 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1182 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1183 | |
1184 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1185 | if test $ac_cv_prog_cc_works = no; then | |
1186 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1187 | fi | |
1188 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
119d24d1 | 1189 | echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1190 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1191 | cross_compiling=$ac_cv_prog_cc_cross | |
1192 | ||
1193 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
119d24d1 | 1194 | echo "configure:1195: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1195 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1197 | else | |
1198 | cat > conftest.c <<EOF | |
1199 | #ifdef __GNUC__ | |
1200 | yes; | |
1201 | #endif | |
1202 | EOF | |
119d24d1 | 1203 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1204 | ac_cv_prog_gcc=yes |
1205 | else | |
1206 | ac_cv_prog_gcc=no | |
1207 | fi | |
1208 | fi | |
1209 | ||
1210 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1211 | ||
1212 | if test $ac_cv_prog_gcc = yes; then | |
1213 | GCC=yes | |
cd9e5e7c MK |
1214 | else |
1215 | GCC= | |
1216 | fi | |
1217 | ||
1218 | ac_test_CFLAGS="${CFLAGS+set}" | |
1219 | ac_save_CFLAGS="$CFLAGS" | |
1220 | CFLAGS= | |
1221 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
119d24d1 | 1222 | echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1223 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1225 | else | |
1226 | echo 'void f(){}' > conftest.c | |
1227 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1228 | ac_cv_prog_cc_g=yes | |
1229 | else | |
1230 | ac_cv_prog_cc_g=no | |
1231 | fi | |
1232 | rm -f conftest* | |
1233 | ||
1234 | fi | |
1235 | ||
1236 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1237 | if test "$ac_test_CFLAGS" = set; then |
1238 | CFLAGS="$ac_save_CFLAGS" | |
1239 | elif test $ac_cv_prog_cc_g = yes; then | |
1240 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1241 | CFLAGS="-g -O2" |
1242 | else | |
cd9e5e7c | 1243 | CFLAGS="-g" |
81814e35 | 1244 | fi |
3723cad9 | 1245 | else |
cd9e5e7c MK |
1246 | if test "$GCC" = yes; then |
1247 | CFLAGS="-O2" | |
1248 | else | |
1249 | CFLAGS= | |
1250 | fi | |
e9a25f70 JL |
1251 | fi |
1252 | ||
04cabffc | 1253 | echo $ac_n "checking for long double""... $ac_c" 1>&6 |
119d24d1 | 1254 | echo "configure:1255: checking for long double" >&5 |
04cabffc KG |
1255 | if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1257 | else | |
1258 | if test "$GCC" = yes; then | |
1259 | gcc_cv_c_long_double=yes | |
1260 | else | |
1261 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1262 | #line 1263 "configure" |
04cabffc KG |
1263 | #include "confdefs.h" |
1264 | ||
1265 | int main() { | |
1266 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
1267 | long double foo = 0.0; | |
1268 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
1269 | switch (0) case 0: case (sizeof(long double) >= sizeof(double)):; | |
1270 | ; return 0; } | |
1271 | EOF | |
119d24d1 | 1272 | if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
04cabffc KG |
1273 | rm -rf conftest* |
1274 | gcc_cv_c_long_double=yes | |
1275 | else | |
1276 | echo "configure: failed program was:" >&5 | |
1277 | cat conftest.$ac_ext >&5 | |
1278 | rm -rf conftest* | |
1279 | gcc_cv_c_long_double=no | |
1280 | fi | |
1281 | rm -f conftest* | |
1282 | fi | |
1283 | fi | |
1284 | ||
1285 | echo "$ac_t""$gcc_cv_c_long_double" 1>&6 | |
1286 | if test $gcc_cv_c_long_double = yes; then | |
1287 | cat >> confdefs.h <<\EOF | |
1288 | #define HAVE_LONG_DOUBLE 1 | |
1289 | EOF | |
1290 | ||
1291 | fi | |
1292 | ||
61842080 MM |
1293 | |
1294 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1295 | # That's useful for people building cross-compilers, or just running a | |
1296 | # quick `make'. | |
1297 | if test "x$GCC" = "xyes"; then | |
1298 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1299 | else | |
1300 | stage1_warn_cflags="" | |
1301 | fi | |
1302 | ||
1303 | ||
e9a25f70 | 1304 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
119d24d1 | 1305 | echo "configure:1306: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1306 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1307 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1309 | else | |
1310 | cat > conftestmake <<\EOF | |
1311 | all: | |
1312 | @echo 'ac_maketemp="${MAKE}"' | |
1313 | EOF | |
1314 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1315 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1316 | if test -n "$ac_maketemp"; then | |
1317 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1318 | else | |
1319 | eval ac_cv_prog_make_${ac_make}_set=no | |
1320 | fi | |
1321 | rm -f conftestmake | |
1322 | fi | |
1323 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1324 | echo "$ac_t""yes" 1>&6 | |
1325 | SET_MAKE= | |
1326 | else | |
1327 | echo "$ac_t""no" 1>&6 | |
1328 | SET_MAKE="MAKE=${MAKE-make}" | |
1329 | fi | |
1330 | ||
1331 | ||
ab339d62 | 1332 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
119d24d1 | 1333 | echo "configure:1334: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1334 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1335 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1336 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1337 | else |
3ccc3a56 | 1338 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1339 | fi |
1340 | else | |
1341 | echo "$ac_t""no" 1>&6 | |
1342 | fi | |
1343 | ||
1344 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
119d24d1 | 1345 | echo "configure:1346: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1346 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1347 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1348 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1349 | else |
3ccc3a56 | 1350 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1351 | fi |
1352 | else | |
1353 | echo "$ac_t""no" 1>&6 | |
1354 | fi | |
1355 | ||
861bb6c1 | 1356 | # Find some useful tools |
56f02b88 | 1357 | for ac_prog in mawk gawk nawk awk |
861bb6c1 JL |
1358 | do |
1359 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1360 | set dummy $ac_prog; ac_word=$2 | |
1361 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1362 | echo "configure:1363: checking for $ac_word" >&5 |
861bb6c1 JL |
1363 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1365 | else | |
1366 | if test -n "$AWK"; then | |
1367 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1368 | else | |
cd9e5e7c | 1369 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1370 | ac_dummy="$PATH" |
1371 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1372 | test -z "$ac_dir" && ac_dir=. |
1373 | if test -f $ac_dir/$ac_word; then | |
1374 | ac_cv_prog_AWK="$ac_prog" | |
1375 | break | |
1376 | fi | |
1377 | done | |
1378 | IFS="$ac_save_ifs" | |
1379 | fi | |
1380 | fi | |
1381 | AWK="$ac_cv_prog_AWK" | |
1382 | if test -n "$AWK"; then | |
1383 | echo "$ac_t""$AWK" 1>&6 | |
1384 | else | |
1385 | echo "$ac_t""no" 1>&6 | |
1386 | fi | |
1387 | ||
1388 | test -n "$AWK" && break | |
1389 | done | |
1390 | ||
1391 | # Extract the first word of "flex", so it can be a program name with args. | |
1392 | set dummy flex; ac_word=$2 | |
1393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1394 | echo "configure:1395: checking for $ac_word" >&5 |
861bb6c1 JL |
1395 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1397 | else | |
1398 | if test -n "$LEX"; then | |
1399 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1400 | else | |
cd9e5e7c | 1401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1402 | ac_dummy="$PATH" |
1403 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1404 | test -z "$ac_dir" && ac_dir=. |
1405 | if test -f $ac_dir/$ac_word; then | |
1406 | ac_cv_prog_LEX="flex" | |
1407 | break | |
1408 | fi | |
1409 | done | |
1410 | IFS="$ac_save_ifs" | |
1411 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1412 | fi | |
1413 | fi | |
1414 | LEX="$ac_cv_prog_LEX" | |
1415 | if test -n "$LEX"; then | |
1416 | echo "$ac_t""$LEX" 1>&6 | |
1417 | else | |
1418 | echo "$ac_t""no" 1>&6 | |
1419 | fi | |
1420 | ||
1421 | if test -z "$LEXLIB" | |
1422 | then | |
1423 | case "$LEX" in | |
1424 | flex*) ac_lib=fl ;; | |
1425 | *) ac_lib=l ;; | |
1426 | esac | |
1427 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
119d24d1 | 1428 | echo "configure:1429: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1429 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1432 | else | |
1433 | ac_save_LIBS="$LIBS" | |
1434 | LIBS="-l$ac_lib $LIBS" | |
1435 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1436 | #line 1437 "configure" |
861bb6c1 JL |
1437 | #include "confdefs.h" |
1438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1439 | /* We use char because int might match the return type of a gcc2 | |
1440 | builtin and then its argument prototype would still apply. */ | |
1441 | char yywrap(); | |
1442 | ||
1443 | int main() { | |
1444 | yywrap() | |
1445 | ; return 0; } | |
1446 | EOF | |
119d24d1 | 1447 | if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1448 | rm -rf conftest* |
1449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1450 | else | |
1451 | echo "configure: failed program was:" >&5 | |
1452 | cat conftest.$ac_ext >&5 | |
1453 | rm -rf conftest* | |
1454 | eval "ac_cv_lib_$ac_lib_var=no" | |
1455 | fi | |
1456 | rm -f conftest* | |
1457 | LIBS="$ac_save_LIBS" | |
1458 | ||
1459 | fi | |
1460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1461 | echo "$ac_t""yes" 1>&6 | |
1462 | LEXLIB="-l$ac_lib" | |
1463 | else | |
1464 | echo "$ac_t""no" 1>&6 | |
1465 | fi | |
1466 | ||
1467 | fi | |
1468 | ||
0a4b6309 | 1469 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
119d24d1 | 1470 | echo "configure:1471: checking whether ln works" >&5 |
0a4b6309 RL |
1471 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1473 | else | |
1474 | rm -f conftestdata_t | |
1475 | echo >conftestdata_f | |
1476 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1477 | then | |
1478 | gcc_cv_prog_LN="ln" | |
1479 | else | |
1480 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1481 | then | |
1482 | gcc_cv_prog_LN="ln -s" | |
1483 | else | |
1484 | gcc_cv_prog_LN=cp | |
1485 | fi | |
1486 | fi | |
1487 | rm -f conftestdata_f conftestdata_t | |
1488 | ||
1489 | fi | |
1490 | LN="$gcc_cv_prog_LN" | |
1491 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1492 | echo "$ac_t""yes" 1>&6 | |
1493 | else | |
1494 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1495 | echo "$ac_t""no, using ln -s" 1>&6 | |
1496 | else | |
1497 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1498 | fi | |
1499 | fi | |
1500 | ||
1501 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
119d24d1 | 1502 | echo "configure:1503: checking whether ln -s works" >&5 |
0a4b6309 RL |
1503 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1505 | else | |
1506 | rm -f conftestdata_t | |
1507 | echo >conftestdata_f | |
1508 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1509 | then | |
1510 | gcc_cv_prog_LN_S="ln -s" | |
1511 | else | |
1512 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1513 | then | |
1514 | gcc_cv_prog_LN_S=ln | |
1515 | else | |
1516 | gcc_cv_prog_LN_S=cp | |
1517 | fi | |
1518 | fi | |
1519 | rm -f conftestdata_f conftestdata_t | |
1520 | ||
1521 | fi | |
1522 | LN_S="$gcc_cv_prog_LN_S" | |
1523 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1524 | echo "$ac_t""yes" 1>&6 | |
1525 | else | |
1526 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1527 | echo "$ac_t""no, using ln" 1>&6 | |
1528 | else | |
1529 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1530 | fi | |
1531 | fi | |
1532 | ||
1533 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
119d24d1 | 1534 | echo "configure:1535: checking for volatile" >&5 |
0a4b6309 RL |
1535 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1537 | else | |
1538 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1539 | #line 1540 "configure" |
0a4b6309 RL |
1540 | #include "confdefs.h" |
1541 | ||
1542 | int main() { | |
1543 | volatile int foo; | |
1544 | ; return 0; } | |
1545 | EOF | |
119d24d1 | 1546 | if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1547 | rm -rf conftest* |
1548 | gcc_cv_c_volatile=yes | |
1549 | else | |
1550 | echo "configure: failed program was:" >&5 | |
1551 | cat conftest.$ac_ext >&5 | |
1552 | rm -rf conftest* | |
1553 | gcc_cv_c_volatile=no | |
1554 | fi | |
1555 | rm -f conftest* | |
1556 | fi | |
1557 | ||
1558 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1559 | if test $gcc_cv_c_volatile = yes ; then | |
1560 | cat >> confdefs.h <<\EOF | |
1561 | #define HAVE_VOLATILE 1 | |
1562 | EOF | |
1563 | ||
1564 | fi | |
1565 | ||
861bb6c1 JL |
1566 | # Extract the first word of "ranlib", so it can be a program name with args. |
1567 | set dummy ranlib; ac_word=$2 | |
1568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1569 | echo "configure:1570: checking for $ac_word" >&5 |
861bb6c1 JL |
1570 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1572 | else | |
1573 | if test -n "$RANLIB"; then | |
1574 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1575 | else | |
cd9e5e7c | 1576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1577 | ac_dummy="$PATH" |
1578 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1579 | test -z "$ac_dir" && ac_dir=. |
1580 | if test -f $ac_dir/$ac_word; then | |
1581 | ac_cv_prog_RANLIB="ranlib" | |
1582 | break | |
1583 | fi | |
1584 | done | |
1585 | IFS="$ac_save_ifs" | |
1586 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1587 | fi | |
1588 | fi | |
1589 | RANLIB="$ac_cv_prog_RANLIB" | |
1590 | if test -n "$RANLIB"; then | |
1591 | echo "$ac_t""$RANLIB" 1>&6 | |
1592 | else | |
1593 | echo "$ac_t""no" 1>&6 | |
1594 | fi | |
1595 | ||
1596 | for ac_prog in 'bison -y' byacc | |
1597 | do | |
1598 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1599 | set dummy $ac_prog; ac_word=$2 | |
1600 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1601 | echo "configure:1602: checking for $ac_word" >&5 |
861bb6c1 JL |
1602 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1604 | else | |
1605 | if test -n "$YACC"; then | |
1606 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1607 | else | |
cd9e5e7c | 1608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1609 | ac_dummy="$PATH" |
1610 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1611 | test -z "$ac_dir" && ac_dir=. |
1612 | if test -f $ac_dir/$ac_word; then | |
1613 | ac_cv_prog_YACC="$ac_prog" | |
1614 | break | |
1615 | fi | |
1616 | done | |
1617 | IFS="$ac_save_ifs" | |
1618 | fi | |
1619 | fi | |
1620 | YACC="$ac_cv_prog_YACC" | |
1621 | if test -n "$YACC"; then | |
1622 | echo "$ac_t""$YACC" 1>&6 | |
1623 | else | |
1624 | echo "$ac_t""no" 1>&6 | |
1625 | fi | |
1626 | ||
1627 | test -n "$YACC" && break | |
1628 | done | |
1629 | test -n "$YACC" || YACC="yacc" | |
1630 | ||
0a4b6309 RL |
1631 | # Find a good install program. We prefer a C program (faster), |
1632 | # so one script is as good as another. But avoid the broken or | |
1633 | # incompatible versions: | |
1634 | # SysV /etc/install, /usr/sbin/install | |
1635 | # SunOS /usr/etc/install | |
1636 | # IRIX /sbin/install | |
1637 | # AIX /bin/install | |
1638 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1639 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1640 | # ./install, which can be erroneously created by make from ./install.sh. | |
1641 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
119d24d1 | 1642 | echo "configure:1643: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1643 | if test -z "$INSTALL"; then |
1644 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1646 | else | |
1647 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1648 | for ac_dir in $PATH; do | |
1649 | # Account for people who put trailing slashes in PATH elements. | |
1650 | case "$ac_dir/" in | |
1651 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1652 | *) | |
1653 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1654 | for ac_prog in ginstall scoinst install; do | |
1655 | if test -f $ac_dir/$ac_prog; then | |
1656 | if test $ac_prog = install && | |
1657 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1658 | # AIX install. It has an incompatible calling convention. | |
1659 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1660 | : | |
1661 | else | |
1662 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1663 | break 2 | |
1664 | fi | |
1665 | fi | |
1666 | done | |
1667 | ;; | |
1668 | esac | |
1669 | done | |
1670 | IFS="$ac_save_IFS" | |
1671 | ||
1672 | fi | |
1673 | if test "${ac_cv_path_install+set}" = set; then | |
1674 | INSTALL="$ac_cv_path_install" | |
1675 | else | |
1676 | # As a last resort, use the slow shell script. We don't cache a | |
1677 | # path for INSTALL within a source directory, because that will | |
1678 | # break other packages using the cache if that directory is | |
1679 | # removed, or if the path is relative. | |
1680 | INSTALL="$ac_install_sh" | |
1681 | fi | |
1682 | fi | |
1683 | echo "$ac_t""$INSTALL" 1>&6 | |
1684 | ||
1685 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1686 | # It thinks the first close brace ends the variable substitution. | |
1687 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1688 | ||
1689 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1690 | ||
861bb6c1 | 1691 | |
861bb6c1 | 1692 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
119d24d1 | 1693 | echo "configure:1694: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1694 | # On Suns, sometimes $CPP names a directory. |
1695 | if test -n "$CPP" && test -d "$CPP"; then | |
1696 | CPP= | |
1697 | fi | |
1698 | if test -z "$CPP"; then | |
1699 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1701 | else | |
1702 | # This must be in double quotes, not single quotes, because CPP may get | |
1703 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1704 | CPP="${CC-cc} -E" | |
1705 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1706 | # not just through cpp. | |
1707 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1708 | #line 1709 "configure" |
861bb6c1 JL |
1709 | #include "confdefs.h" |
1710 | #include <assert.h> | |
1711 | Syntax Error | |
1712 | EOF | |
1713 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1714 | { (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1715 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1716 | if test -z "$ac_err"; then |
1717 | : | |
1718 | else | |
1719 | echo "$ac_err" >&5 | |
1720 | echo "configure: failed program was:" >&5 | |
1721 | cat conftest.$ac_ext >&5 | |
1722 | rm -rf conftest* | |
1723 | CPP="${CC-cc} -E -traditional-cpp" | |
1724 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1725 | #line 1726 "configure" |
cd9e5e7c MK |
1726 | #include "confdefs.h" |
1727 | #include <assert.h> | |
1728 | Syntax Error | |
1729 | EOF | |
1730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1731 | { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1733 | if test -z "$ac_err"; then | |
1734 | : | |
1735 | else | |
1736 | echo "$ac_err" >&5 | |
1737 | echo "configure: failed program was:" >&5 | |
1738 | cat conftest.$ac_ext >&5 | |
1739 | rm -rf conftest* | |
1740 | CPP="${CC-cc} -nologo -E" | |
1741 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1742 | #line 1743 "configure" |
20fced2c MM |
1743 | #include "confdefs.h" |
1744 | #include <assert.h> | |
1745 | Syntax Error | |
1746 | EOF | |
1747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1748 | { (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1749 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1750 | if test -z "$ac_err"; then |
1751 | : | |
1752 | else | |
1753 | echo "$ac_err" >&5 | |
1754 | echo "configure: failed program was:" >&5 | |
1755 | cat conftest.$ac_ext >&5 | |
1756 | rm -rf conftest* | |
1757 | CPP=/lib/cpp | |
1758 | fi | |
1759 | rm -f conftest* | |
1760 | fi | |
cd9e5e7c MK |
1761 | rm -f conftest* |
1762 | fi | |
861bb6c1 JL |
1763 | rm -f conftest* |
1764 | ac_cv_prog_CPP="$CPP" | |
1765 | fi | |
1766 | CPP="$ac_cv_prog_CPP" | |
1767 | else | |
1768 | ac_cv_prog_CPP="$CPP" | |
1769 | fi | |
1770 | echo "$ac_t""$CPP" 1>&6 | |
1771 | ||
956d6950 | 1772 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
119d24d1 | 1773 | echo "configure:1774: checking for ANSI C header files" >&5 |
956d6950 JL |
1774 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1776 | else | |
1777 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1778 | #line 1779 "configure" |
956d6950 JL |
1779 | #include "confdefs.h" |
1780 | #include <stdlib.h> | |
1781 | #include <stdarg.h> | |
1782 | #include <string.h> | |
1783 | #include <float.h> | |
1784 | EOF | |
1785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1786 | { (eval echo configure:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1788 | if test -z "$ac_err"; then |
1789 | rm -rf conftest* | |
1790 | ac_cv_header_stdc=yes | |
1791 | else | |
1792 | echo "$ac_err" >&5 | |
1793 | echo "configure: failed program was:" >&5 | |
1794 | cat conftest.$ac_ext >&5 | |
1795 | rm -rf conftest* | |
1796 | ac_cv_header_stdc=no | |
1797 | fi | |
1798 | rm -f conftest* | |
1799 | ||
1800 | if test $ac_cv_header_stdc = yes; then | |
1801 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1802 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1803 | #line 1804 "configure" |
956d6950 JL |
1804 | #include "confdefs.h" |
1805 | #include <string.h> | |
1806 | EOF | |
1807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1808 | egrep "memchr" >/dev/null 2>&1; then | |
1809 | : | |
1810 | else | |
1811 | rm -rf conftest* | |
1812 | ac_cv_header_stdc=no | |
1813 | fi | |
1814 | rm -f conftest* | |
1815 | ||
1816 | fi | |
1817 | ||
1818 | if test $ac_cv_header_stdc = yes; then | |
1819 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1820 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1821 | #line 1822 "configure" |
956d6950 JL |
1822 | #include "confdefs.h" |
1823 | #include <stdlib.h> | |
1824 | EOF | |
1825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1826 | egrep "free" >/dev/null 2>&1; then | |
1827 | : | |
1828 | else | |
1829 | rm -rf conftest* | |
1830 | ac_cv_header_stdc=no | |
1831 | fi | |
1832 | rm -f conftest* | |
1833 | ||
1834 | fi | |
1835 | ||
1836 | if test $ac_cv_header_stdc = yes; then | |
1837 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1838 | if test "$cross_compiling" = yes; then | |
1839 | : | |
1840 | else | |
1841 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1842 | #line 1843 "configure" |
956d6950 JL |
1843 | #include "confdefs.h" |
1844 | #include <ctype.h> | |
1845 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1846 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1847 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1848 | int main () { int i; for (i = 0; i < 256; i++) | |
1849 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1850 | exit (0); } | |
1851 | ||
1852 | EOF | |
119d24d1 | 1853 | if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1854 | then |
1855 | : | |
1856 | else | |
1857 | echo "configure: failed program was:" >&5 | |
1858 | cat conftest.$ac_ext >&5 | |
1859 | rm -fr conftest* | |
1860 | ac_cv_header_stdc=no | |
1861 | fi | |
1862 | rm -fr conftest* | |
1863 | fi | |
1864 | ||
1865 | fi | |
1866 | fi | |
1867 | ||
1868 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1869 | if test $ac_cv_header_stdc = yes; then | |
1870 | cat >> confdefs.h <<\EOF | |
1871 | #define STDC_HEADERS 1 | |
1872 | EOF | |
1873 | ||
1874 | fi | |
1875 | ||
1876 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
119d24d1 | 1877 | echo "configure:1878: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1878 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1880 | else | |
1881 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1882 | #line 1883 "configure" |
956d6950 JL |
1883 | #include "confdefs.h" |
1884 | #include <sys/types.h> | |
1885 | #include <sys/time.h> | |
1886 | #include <time.h> | |
1887 | int main() { | |
1888 | struct tm *tp; | |
1889 | ; return 0; } | |
1890 | EOF | |
119d24d1 | 1891 | if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1892 | rm -rf conftest* |
1893 | ac_cv_header_time=yes | |
1894 | else | |
1895 | echo "configure: failed program was:" >&5 | |
1896 | cat conftest.$ac_ext >&5 | |
1897 | rm -rf conftest* | |
1898 | ac_cv_header_time=no | |
1899 | fi | |
1900 | rm -f conftest* | |
1901 | fi | |
1902 | ||
1903 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1904 | if test $ac_cv_header_time = yes; then | |
1905 | cat >> confdefs.h <<\EOF | |
1906 | #define TIME_WITH_SYS_TIME 1 | |
1907 | EOF | |
1908 | ||
1909 | fi | |
1910 | ||
0a4b6309 | 1911 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
119d24d1 | 1912 | echo "configure:1913: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1913 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1915 | else | |
1916 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1917 | #line 1918 "configure" |
0a4b6309 RL |
1918 | #include "confdefs.h" |
1919 | #include <string.h> | |
1920 | #include <strings.h> | |
1921 | int main() { | |
1922 | ||
1923 | ; return 0; } | |
1924 | EOF | |
119d24d1 | 1925 | if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1926 | rm -rf conftest* |
1927 | gcc_cv_header_string=yes | |
1928 | else | |
1929 | echo "configure: failed program was:" >&5 | |
1930 | cat conftest.$ac_ext >&5 | |
1931 | rm -rf conftest* | |
1932 | gcc_cv_header_string=no | |
1933 | fi | |
1934 | rm -f conftest* | |
1935 | fi | |
1936 | ||
1937 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1938 | if test $gcc_cv_header_string = yes; then | |
1939 | cat >> confdefs.h <<\EOF | |
1940 | #define STRING_WITH_STRINGS 1 | |
1941 | EOF | |
1942 | ||
1943 | fi | |
1944 | ||
e9831ca0 | 1945 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
119d24d1 | 1946 | echo "configure:1947: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1947 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1949 | else | |
1950 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1951 | #line 1952 "configure" |
e9831ca0 KG |
1952 | #include "confdefs.h" |
1953 | #include <sys/types.h> | |
1954 | #include <sys/wait.h> | |
1955 | #ifndef WEXITSTATUS | |
1956 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1957 | #endif | |
1958 | #ifndef WIFEXITED | |
1959 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1960 | #endif | |
1961 | int main() { | |
1962 | int s; | |
1963 | wait (&s); | |
1964 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1965 | ; return 0; } | |
1966 | EOF | |
119d24d1 | 1967 | if { (eval echo configure:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1968 | rm -rf conftest* |
1969 | ac_cv_header_sys_wait_h=yes | |
1970 | else | |
1971 | echo "configure: failed program was:" >&5 | |
1972 | cat conftest.$ac_ext >&5 | |
1973 | rm -rf conftest* | |
1974 | ac_cv_header_sys_wait_h=no | |
1975 | fi | |
1976 | rm -f conftest* | |
1977 | fi | |
1978 | ||
1979 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1980 | if test $ac_cv_header_sys_wait_h = yes; then | |
1981 | cat >> confdefs.h <<\EOF | |
1982 | #define HAVE_SYS_WAIT_H 1 | |
1983 | EOF | |
1984 | ||
1985 | fi | |
1986 | ||
03c41c05 ZW |
1987 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \ |
1988 | fcntl.h unistd.h stab.h sys/file.h sys/time.h \ | |
1989 | sys/resource.h sys/param.h sys/times.h sys/stat.h \ | |
1990 | direct.h malloc.h | |
861bb6c1 JL |
1991 | do |
1992 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1993 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
119d24d1 | 1994 | echo "configure:1995: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1995 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1997 | else | |
1998 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1999 | #line 2000 "configure" |
861bb6c1 JL |
2000 | #include "confdefs.h" |
2001 | #include <$ac_hdr> | |
2002 | EOF | |
956d6950 | 2003 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
119d24d1 | 2004 | { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2005 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
2006 | if test -z "$ac_err"; then |
2007 | rm -rf conftest* | |
2008 | eval "ac_cv_header_$ac_safe=yes" | |
2009 | else | |
2010 | echo "$ac_err" >&5 | |
2011 | echo "configure: failed program was:" >&5 | |
2012 | cat conftest.$ac_ext >&5 | |
2013 | rm -rf conftest* | |
2014 | eval "ac_cv_header_$ac_safe=no" | |
2015 | fi | |
2016 | rm -f conftest* | |
2017 | fi | |
2018 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2019 | echo "$ac_t""yes" 1>&6 | |
2020 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2021 | cat >> confdefs.h <<EOF | |
2022 | #define $ac_tr_hdr 1 | |
2023 | EOF | |
2024 | ||
2025 | else | |
2026 | echo "$ac_t""no" 1>&6 | |
2027 | fi | |
2028 | done | |
2029 | ||
2030 | ||
f24af81b TT |
2031 | # Check for thread headers. |
2032 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
2033 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
119d24d1 | 2034 | echo "configure:2035: checking for thread.h" >&5 |
f24af81b TT |
2035 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2037 | else | |
2038 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2039 | #line 2040 "configure" |
f24af81b TT |
2040 | #include "confdefs.h" |
2041 | #include <thread.h> | |
2042 | EOF | |
2043 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 2044 | { (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2045 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2046 | if test -z "$ac_err"; then |
2047 | rm -rf conftest* | |
2048 | eval "ac_cv_header_$ac_safe=yes" | |
2049 | else | |
2050 | echo "$ac_err" >&5 | |
2051 | echo "configure: failed program was:" >&5 | |
2052 | cat conftest.$ac_ext >&5 | |
2053 | rm -rf conftest* | |
2054 | eval "ac_cv_header_$ac_safe=no" | |
2055 | fi | |
2056 | rm -f conftest* | |
2057 | fi | |
2058 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2059 | echo "$ac_t""yes" 1>&6 | |
2060 | have_thread_h=yes | |
2061 | else | |
2062 | echo "$ac_t""no" 1>&6 | |
2063 | have_thread_h= | |
2064 | fi | |
2065 | ||
2066 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2067 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
119d24d1 | 2068 | echo "configure:2069: checking for pthread.h" >&5 |
f24af81b TT |
2069 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2071 | else | |
2072 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2073 | #line 2074 "configure" |
f24af81b TT |
2074 | #include "confdefs.h" |
2075 | #include <pthread.h> | |
2076 | EOF | |
2077 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 2078 | { (eval echo configure:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2079 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2080 | if test -z "$ac_err"; then |
2081 | rm -rf conftest* | |
2082 | eval "ac_cv_header_$ac_safe=yes" | |
2083 | else | |
2084 | echo "$ac_err" >&5 | |
2085 | echo "configure: failed program was:" >&5 | |
2086 | cat conftest.$ac_ext >&5 | |
2087 | rm -rf conftest* | |
2088 | eval "ac_cv_header_$ac_safe=no" | |
2089 | fi | |
2090 | rm -f conftest* | |
2091 | fi | |
2092 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2093 | echo "$ac_t""yes" 1>&6 | |
2094 | have_pthread_h=yes | |
2095 | else | |
2096 | echo "$ac_t""no" 1>&6 | |
2097 | have_pthread_h= | |
2098 | fi | |
2099 | ||
2100 | ||
bcf12124 JL |
2101 | # See if GNAT has been installed |
2102 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2103 | set dummy gnatbind; ac_word=$2 | |
2104 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 2105 | echo "configure:2106: checking for $ac_word" >&5 |
bcf12124 JL |
2106 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2108 | else | |
2109 | if test -n "$gnat"; then | |
2110 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2111 | else | |
cd9e5e7c | 2112 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2113 | ac_dummy="$PATH" |
2114 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2115 | test -z "$ac_dir" && ac_dir=. |
2116 | if test -f $ac_dir/$ac_word; then | |
2117 | ac_cv_prog_gnat="yes" | |
2118 | break | |
2119 | fi | |
2120 | done | |
2121 | IFS="$ac_save_ifs" | |
2122 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2123 | fi | |
2124 | fi | |
2125 | gnat="$ac_cv_prog_gnat" | |
2126 | if test -n "$gnat"; then | |
2127 | echo "$ac_t""$gnat" 1>&6 | |
2128 | else | |
2129 | echo "$ac_t""no" 1>&6 | |
2130 | fi | |
2131 | ||
2132 | ||
890ad3ea KG |
2133 | # See if the stage1 system preprocessor understands the ANSI C |
2134 | # preprocessor stringification operator. | |
2135 | ||
2136 | ||
2137 | echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 | |
119d24d1 | 2138 | echo "configure:2139: checking for preprocessor stringizing operator" >&5 |
890ad3ea | 2139 | if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then |
76844337 RH |
2140 | echo $ac_n "(cached) $ac_c" 1>&6 |
2141 | else | |
2142 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2143 | #line 2144 "configure" |
76844337 RH |
2144 | #include "confdefs.h" |
2145 | ||
890ad3ea KG |
2146 | #define x(y) #y |
2147 | ||
2148 | char *s = x(teststring); | |
2149 | ||
76844337 | 2150 | EOF |
890ad3ea KG |
2151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2152 | egrep "#teststring" >/dev/null 2>&1; then | |
76844337 | 2153 | rm -rf conftest* |
890ad3ea | 2154 | ac_cv_c_stringize=no |
76844337 | 2155 | else |
76844337 | 2156 | rm -rf conftest* |
890ad3ea | 2157 | ac_cv_c_stringize=yes |
76844337 RH |
2158 | fi |
2159 | rm -f conftest* | |
890ad3ea | 2160 | |
76844337 RH |
2161 | fi |
2162 | ||
890ad3ea KG |
2163 | if test "${ac_cv_c_stringize}" = yes |
2164 | then | |
2165 | cat >> confdefs.h <<\EOF | |
2166 | #define HAVE_STRINGIZE 1 | |
76844337 RH |
2167 | EOF |
2168 | ||
2169 | fi | |
890ad3ea KG |
2170 | echo "$ac_t""${ac_cv_c_stringize}" 1>&6 |
2171 | ||
76844337 | 2172 | |
956d6950 JL |
2173 | # Use <inttypes.h> only if it exists, |
2174 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2175 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
119d24d1 | 2176 | echo "configure:2177: checking for inttypes.h" >&5 |
956d6950 JL |
2177 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2179 | else | |
2180 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2181 | #line 2182 "configure" |
956d6950 JL |
2182 | #include "confdefs.h" |
2183 | #include <sys/types.h> | |
2184 | #include <inttypes.h> | |
2185 | int main() { | |
2186 | intmax_t i = -1; | |
2187 | ; return 0; } | |
2188 | EOF | |
119d24d1 | 2189 | if { (eval echo configure:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2190 | rm -rf conftest* |
0056a9b5 | 2191 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2192 | else |
2193 | echo "configure: failed program was:" >&5 | |
2194 | cat conftest.$ac_ext >&5 | |
2195 | rm -rf conftest* | |
2196 | gcc_cv_header_inttypes_h=no | |
2197 | fi | |
2198 | rm -f conftest* | |
2199 | fi | |
2200 | ||
2201 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2202 | if test $gcc_cv_header_inttypes_h = yes; then |
2203 | cat >> confdefs.h <<\EOF | |
2204 | #define HAVE_INTTYPES_H 1 | |
2205 | EOF | |
2206 | ||
2207 | fi | |
956d6950 | 2208 | |
c149cc37 RL |
2209 | # |
2210 | # Determine if enumerated bitfields are unsigned. ISO C says they can | |
2211 | # be either signed or unsigned. | |
2212 | # | |
2213 | echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6 | |
119d24d1 | 2214 | echo "configure:2215: checking for unsigned enumerated bitfields" >&5 |
c149cc37 RL |
2215 | if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then |
2216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2217 | else | |
2218 | if test "$cross_compiling" = yes; then | |
2219 | gcc_cv_enum_bf_unsigned=yes | |
2220 | else | |
2221 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2222 | #line 2223 "configure" |
c149cc37 RL |
2223 | #include "confdefs.h" |
2224 | #include <stdlib.h> | |
2225 | enum t { BLAH = 128 } ; | |
2226 | struct s_t { enum t member : 8; } s ; | |
2227 | int main(void) | |
2228 | { | |
2229 | s.member = BLAH; | |
2230 | if (s.member < 0) exit(1); | |
2231 | exit(0); | |
2232 | ||
2233 | } | |
2234 | EOF | |
119d24d1 | 2235 | if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c149cc37 RL |
2236 | then |
2237 | gcc_cv_enum_bf_unsigned=yes | |
2238 | else | |
2239 | echo "configure: failed program was:" >&5 | |
2240 | cat conftest.$ac_ext >&5 | |
2241 | rm -fr conftest* | |
2242 | gcc_cv_enum_bf_unsigned=no | |
2243 | fi | |
2244 | rm -fr conftest* | |
2245 | fi | |
2246 | ||
2247 | fi | |
2248 | ||
c149cc37 RL |
2249 | echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6 |
2250 | if test $gcc_cv_enum_bf_unsigned = yes; then | |
2251 | cat >> confdefs.h <<\EOF | |
2252 | #define ENUM_BITFIELDS_ARE_UNSIGNED 1 | |
2253 | EOF | |
2254 | ||
2255 | fi | |
2256 | ||
f95e46b9 | 2257 | for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \ |
8f81384f | 2258 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 | 2259 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
005537df | 2260 | fputs_unlocked getrusage valloc |
956d6950 JL |
2261 | do |
2262 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
119d24d1 | 2263 | echo "configure:2264: checking for $ac_func" >&5 |
956d6950 JL |
2264 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2266 | else | |
2267 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2268 | #line 2269 "configure" |
956d6950 JL |
2269 | #include "confdefs.h" |
2270 | /* System header to define __stub macros and hopefully few prototypes, | |
2271 | which can conflict with char $ac_func(); below. */ | |
2272 | #include <assert.h> | |
2273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2274 | /* We use char because int might match the return type of a gcc2 | |
2275 | builtin and then its argument prototype would still apply. */ | |
2276 | char $ac_func(); | |
2277 | ||
2278 | int main() { | |
2279 | ||
2280 | /* The GNU C library defines this for functions which it implements | |
2281 | to always fail with ENOSYS. Some functions are actually named | |
2282 | something starting with __ and the normal name is an alias. */ | |
2283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2284 | choke me | |
2285 | #else | |
86702e31 | 2286 | $ac_func(); |
956d6950 JL |
2287 | #endif |
2288 | ||
2289 | ; return 0; } | |
2290 | EOF | |
119d24d1 | 2291 | if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2292 | rm -rf conftest* |
2293 | eval "ac_cv_func_$ac_func=yes" | |
2294 | else | |
2295 | echo "configure: failed program was:" >&5 | |
2296 | cat conftest.$ac_ext >&5 | |
2297 | rm -rf conftest* | |
2298 | eval "ac_cv_func_$ac_func=no" | |
2299 | fi | |
2300 | rm -f conftest* | |
2301 | fi | |
2302 | ||
2303 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2304 | echo "$ac_t""yes" 1>&6 | |
2305 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2306 | cat >> confdefs.h <<EOF | |
2307 | #define $ac_tr_func 1 | |
2308 | EOF | |
2309 | ||
2310 | else | |
2311 | echo "$ac_t""no" 1>&6 | |
2312 | fi | |
2313 | done | |
2314 | ||
6885fc87 | 2315 | |
0b9d02c6 JL |
2316 | # Make sure wchar_t is available |
2317 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2318 | ||
0a4b6309 | 2319 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
119d24d1 | 2320 | echo "configure:2321: checking for vprintf" >&5 |
0a4b6309 RL |
2321 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2323 | else | |
2324 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2325 | #line 2326 "configure" |
0a4b6309 RL |
2326 | #include "confdefs.h" |
2327 | /* System header to define __stub macros and hopefully few prototypes, | |
2328 | which can conflict with char vprintf(); below. */ | |
2329 | #include <assert.h> | |
2330 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2331 | /* We use char because int might match the return type of a gcc2 | |
2332 | builtin and then its argument prototype would still apply. */ | |
2333 | char vprintf(); | |
2334 | ||
2335 | int main() { | |
2336 | ||
2337 | /* The GNU C library defines this for functions which it implements | |
2338 | to always fail with ENOSYS. Some functions are actually named | |
2339 | something starting with __ and the normal name is an alias. */ | |
2340 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2341 | choke me | |
2342 | #else | |
86702e31 | 2343 | vprintf(); |
0a4b6309 RL |
2344 | #endif |
2345 | ||
2346 | ; return 0; } | |
2347 | EOF | |
119d24d1 | 2348 | if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2349 | rm -rf conftest* |
2350 | eval "ac_cv_func_vprintf=yes" | |
2351 | else | |
2352 | echo "configure: failed program was:" >&5 | |
2353 | cat conftest.$ac_ext >&5 | |
2354 | rm -rf conftest* | |
2355 | eval "ac_cv_func_vprintf=no" | |
2356 | fi | |
2357 | rm -f conftest* | |
2358 | fi | |
2359 | ||
2360 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2361 | echo "$ac_t""yes" 1>&6 | |
2362 | cat >> confdefs.h <<\EOF | |
2363 | #define HAVE_VPRINTF 1 | |
2364 | EOF | |
2365 | ||
2366 | else | |
2367 | echo "$ac_t""no" 1>&6 | |
2368 | fi | |
8fa1f09f | 2369 | |
0a4b6309 RL |
2370 | if test "$ac_cv_func_vprintf" != yes; then |
2371 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
119d24d1 | 2372 | echo "configure:2373: checking for _doprnt" >&5 |
0a4b6309 RL |
2373 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2375 | else | |
2376 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2377 | #line 2378 "configure" |
0a4b6309 RL |
2378 | #include "confdefs.h" |
2379 | /* System header to define __stub macros and hopefully few prototypes, | |
2380 | which can conflict with char _doprnt(); below. */ | |
2381 | #include <assert.h> | |
2382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2383 | /* We use char because int might match the return type of a gcc2 | |
2384 | builtin and then its argument prototype would still apply. */ | |
2385 | char _doprnt(); | |
2386 | ||
2387 | int main() { | |
2388 | ||
2389 | /* The GNU C library defines this for functions which it implements | |
2390 | to always fail with ENOSYS. Some functions are actually named | |
2391 | something starting with __ and the normal name is an alias. */ | |
2392 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2393 | choke me | |
2394 | #else | |
86702e31 | 2395 | _doprnt(); |
0a4b6309 RL |
2396 | #endif |
2397 | ||
2398 | ; return 0; } | |
2399 | EOF | |
119d24d1 | 2400 | if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2401 | rm -rf conftest* |
2402 | eval "ac_cv_func__doprnt=yes" | |
2403 | else | |
2404 | echo "configure: failed program was:" >&5 | |
2405 | cat conftest.$ac_ext >&5 | |
2406 | rm -rf conftest* | |
2407 | eval "ac_cv_func__doprnt=no" | |
2408 | fi | |
2409 | rm -f conftest* | |
2410 | fi | |
2411 | ||
2412 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2413 | echo "$ac_t""yes" 1>&6 | |
2414 | cat >> confdefs.h <<\EOF | |
2415 | #define HAVE_DOPRNT 1 | |
2416 | EOF | |
2417 | ||
2418 | else | |
2419 | echo "$ac_t""no" 1>&6 | |
2420 | fi | |
2421 | ||
2422 | fi | |
2423 | ||
2424 | vfprintf= | |
2425 | doprint= | |
2426 | if test $ac_cv_func_vprintf != yes ; then | |
2427 | vfprintf=vfprintf.o | |
2428 | if test $ac_cv_func__doprnt != yes ; then | |
2429 | doprint=doprint.o | |
2430 | fi | |
2431 | fi | |
2432 | ||
2433 | ||
2434 | ||
2435 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
119d24d1 | 2436 | echo "configure:2437: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2437 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2439 | else | |
2440 | if test "$cross_compiling" = yes; then | |
2441 | gcc_cv_func_printf_ptr=no | |
2442 | else | |
2443 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2444 | #line 2445 "configure" |
0a4b6309 RL |
2445 | #include "confdefs.h" |
2446 | #include <stdio.h> | |
2447 | ||
86cf1cbd | 2448 | int main() |
0a4b6309 RL |
2449 | { |
2450 | char buf[64]; | |
2451 | char *p = buf, *q = NULL; | |
2452 | sprintf(buf, "%p", p); | |
2453 | sscanf(buf, "%p", &q); | |
86cf1cbd | 2454 | return (p != q); |
0a4b6309 RL |
2455 | } |
2456 | EOF | |
119d24d1 | 2457 | if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2458 | then |
2459 | gcc_cv_func_printf_ptr=yes | |
2460 | else | |
2461 | echo "configure: failed program was:" >&5 | |
2462 | cat conftest.$ac_ext >&5 | |
2463 | rm -fr conftest* | |
2464 | gcc_cv_func_printf_ptr=no | |
2465 | fi | |
2466 | rm -fr conftest* | |
2467 | fi | |
2468 | ||
2469 | rm -f core core.* *.core | |
2470 | fi | |
2471 | ||
2472 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2473 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2474 | cat >> confdefs.h <<\EOF | |
2475 | #define HAVE_PRINTF_PTR 1 | |
2476 | EOF | |
2477 | ||
2478 | fi | |
2479 | ||
b27d2bd5 MK |
2480 | |
2481 | case "${host}" in | |
2482 | *-*-uwin*) | |
2483 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2484 | # can hang configure; on other versions, vfork exists just as a stub. | |
2485 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2486 | ac_cv_func_vfork_works=no | |
2487 | ;; | |
2488 | esac | |
c375c43b | 2489 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
119d24d1 | 2490 | echo "configure:2491: checking for pid_t" >&5 |
c375c43b KG |
2491 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2493 | else | |
2494 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2495 | #line 2496 "configure" |
c375c43b KG |
2496 | #include "confdefs.h" |
2497 | #include <sys/types.h> | |
2498 | #if STDC_HEADERS | |
2499 | #include <stdlib.h> | |
2500 | #include <stddef.h> | |
2501 | #endif | |
2502 | EOF | |
2503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2504 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2505 | rm -rf conftest* |
2506 | ac_cv_type_pid_t=yes | |
2507 | else | |
2508 | rm -rf conftest* | |
2509 | ac_cv_type_pid_t=no | |
2510 | fi | |
2511 | rm -f conftest* | |
2512 | ||
2513 | fi | |
2514 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2515 | if test $ac_cv_type_pid_t = no; then | |
2516 | cat >> confdefs.h <<\EOF | |
2517 | #define pid_t int | |
2518 | EOF | |
2519 | ||
2520 | fi | |
2521 | ||
2522 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2523 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
119d24d1 | 2524 | echo "configure:2525: checking for vfork.h" >&5 |
c375c43b KG |
2525 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2527 | else | |
2528 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2529 | #line 2530 "configure" |
c375c43b KG |
2530 | #include "confdefs.h" |
2531 | #include <vfork.h> | |
2532 | EOF | |
2533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 2534 | { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2536 | if test -z "$ac_err"; then |
2537 | rm -rf conftest* | |
2538 | eval "ac_cv_header_$ac_safe=yes" | |
2539 | else | |
2540 | echo "$ac_err" >&5 | |
2541 | echo "configure: failed program was:" >&5 | |
2542 | cat conftest.$ac_ext >&5 | |
2543 | rm -rf conftest* | |
2544 | eval "ac_cv_header_$ac_safe=no" | |
2545 | fi | |
2546 | rm -f conftest* | |
2547 | fi | |
2548 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2549 | echo "$ac_t""yes" 1>&6 | |
2550 | cat >> confdefs.h <<\EOF | |
2551 | #define HAVE_VFORK_H 1 | |
2552 | EOF | |
2553 | ||
2554 | else | |
2555 | echo "$ac_t""no" 1>&6 | |
2556 | fi | |
2557 | ||
2558 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
119d24d1 | 2559 | echo "configure:2560: checking for working vfork" >&5 |
c375c43b KG |
2560 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2562 | else | |
2563 | if test "$cross_compiling" = yes; then | |
2564 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
119d24d1 | 2565 | echo "configure:2566: checking for vfork" >&5 |
c375c43b KG |
2566 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2568 | else | |
2569 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2570 | #line 2571 "configure" |
c375c43b KG |
2571 | #include "confdefs.h" |
2572 | /* System header to define __stub macros and hopefully few prototypes, | |
2573 | which can conflict with char vfork(); below. */ | |
2574 | #include <assert.h> | |
2575 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2576 | /* We use char because int might match the return type of a gcc2 | |
2577 | builtin and then its argument prototype would still apply. */ | |
2578 | char vfork(); | |
2579 | ||
2580 | int main() { | |
2581 | ||
2582 | /* The GNU C library defines this for functions which it implements | |
2583 | to always fail with ENOSYS. Some functions are actually named | |
2584 | something starting with __ and the normal name is an alias. */ | |
2585 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2586 | choke me | |
2587 | #else | |
86702e31 | 2588 | vfork(); |
c375c43b KG |
2589 | #endif |
2590 | ||
2591 | ; return 0; } | |
2592 | EOF | |
119d24d1 | 2593 | if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2594 | rm -rf conftest* |
2595 | eval "ac_cv_func_vfork=yes" | |
2596 | else | |
2597 | echo "configure: failed program was:" >&5 | |
2598 | cat conftest.$ac_ext >&5 | |
2599 | rm -rf conftest* | |
2600 | eval "ac_cv_func_vfork=no" | |
2601 | fi | |
2602 | rm -f conftest* | |
2603 | fi | |
2604 | ||
2605 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2606 | echo "$ac_t""yes" 1>&6 | |
2607 | : | |
2608 | else | |
2609 | echo "$ac_t""no" 1>&6 | |
2610 | fi | |
2611 | ||
2612 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2613 | else | |
2614 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2615 | #line 2616 "configure" |
c375c43b KG |
2616 | #include "confdefs.h" |
2617 | /* Thanks to Paul Eggert for this test. */ | |
2618 | #include <stdio.h> | |
2619 | #include <sys/types.h> | |
2620 | #include <sys/stat.h> | |
2621 | #ifdef HAVE_UNISTD_H | |
2622 | #include <unistd.h> | |
2623 | #endif | |
2624 | #ifdef HAVE_VFORK_H | |
2625 | #include <vfork.h> | |
2626 | #endif | |
2627 | /* On some sparc systems, changes by the child to local and incoming | |
2628 | argument registers are propagated back to the parent. | |
2629 | The compiler is told about this with #include <vfork.h>, | |
2630 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2631 | Test for this by using a static variable whose address | |
2632 | is put into a register that is clobbered by the vfork. */ | |
2633 | static | |
2634 | #ifdef __cplusplus | |
2635 | sparc_address_test (int arg) | |
2636 | #else | |
2637 | sparc_address_test (arg) int arg; | |
2638 | #endif | |
2639 | { | |
2640 | static pid_t child; | |
2641 | if (!child) { | |
2642 | child = vfork (); | |
2643 | if (child < 0) { | |
2644 | perror ("vfork"); | |
2645 | _exit(2); | |
2646 | } | |
2647 | if (!child) { | |
2648 | arg = getpid(); | |
2649 | write(-1, "", 0); | |
2650 | _exit (arg); | |
2651 | } | |
2652 | } | |
2653 | } | |
2654 | main() { | |
2655 | pid_t parent = getpid (); | |
2656 | pid_t child; | |
2657 | ||
2658 | sparc_address_test (); | |
2659 | ||
2660 | child = vfork (); | |
2661 | ||
2662 | if (child == 0) { | |
2663 | /* Here is another test for sparc vfork register problems. | |
2664 | This test uses lots of local variables, at least | |
2665 | as many local variables as main has allocated so far | |
2666 | including compiler temporaries. 4 locals are enough for | |
2667 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2668 | A buggy compiler should reuse the register of parent | |
2669 | for one of the local variables, since it will think that | |
2670 | parent can't possibly be used any more in this routine. | |
2671 | Assigning to the local variable will thus munge parent | |
2672 | in the parent process. */ | |
2673 | pid_t | |
2674 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2675 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2676 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2677 | use the same hardware register for all 8 local variables. */ | |
2678 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2679 | || p != p5 || p != p6 || p != p7) | |
2680 | _exit(1); | |
2681 | ||
2682 | /* On some systems (e.g. IRIX 3.3), | |
2683 | vfork doesn't separate parent from child file descriptors. | |
2684 | If the child closes a descriptor before it execs or exits, | |
2685 | this munges the parent's descriptor as well. | |
2686 | Test for this by closing stdout in the child. */ | |
2687 | _exit(close(fileno(stdout)) != 0); | |
2688 | } else { | |
2689 | int status; | |
2690 | struct stat st; | |
2691 | ||
2692 | while (wait(&status) != child) | |
2693 | ; | |
2694 | exit( | |
2695 | /* Was there some problem with vforking? */ | |
2696 | child < 0 | |
2697 | ||
2698 | /* Did the child fail? (This shouldn't happen.) */ | |
2699 | || status | |
2700 | ||
2701 | /* Did the vfork/compiler bug occur? */ | |
2702 | || parent != getpid() | |
2703 | ||
2704 | /* Did the file descriptor bug occur? */ | |
2705 | || fstat(fileno(stdout), &st) != 0 | |
2706 | ); | |
2707 | } | |
2708 | } | |
2709 | EOF | |
119d24d1 | 2710 | if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2711 | then |
2712 | ac_cv_func_vfork_works=yes | |
2713 | else | |
2714 | echo "configure: failed program was:" >&5 | |
2715 | cat conftest.$ac_ext >&5 | |
2716 | rm -fr conftest* | |
2717 | ac_cv_func_vfork_works=no | |
2718 | fi | |
2719 | rm -fr conftest* | |
2720 | fi | |
2721 | ||
2722 | fi | |
2723 | ||
2724 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2725 | if test $ac_cv_func_vfork_works = no; then | |
2726 | cat >> confdefs.h <<\EOF | |
2727 | #define vfork fork | |
2728 | EOF | |
2729 | ||
2730 | fi | |
2731 | ||
81bf3d9e | 2732 | for ac_hdr in unistd.h |
0a4b6309 | 2733 | do |
81bf3d9e RH |
2734 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2735 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
119d24d1 | 2736 | echo "configure:2737: checking for $ac_hdr" >&5 |
81bf3d9e | 2737 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
0a4b6309 RL |
2738 | echo $ac_n "(cached) $ac_c" 1>&6 |
2739 | else | |
2740 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2741 | #line 2742 "configure" |
0a4b6309 | 2742 | #include "confdefs.h" |
81bf3d9e | 2743 | #include <$ac_hdr> |
0a4b6309 | 2744 | EOF |
81bf3d9e | 2745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
119d24d1 | 2746 | { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
81bf3d9e RH |
2747 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2748 | if test -z "$ac_err"; then | |
0a4b6309 | 2749 | rm -rf conftest* |
81bf3d9e | 2750 | eval "ac_cv_header_$ac_safe=yes" |
0a4b6309 | 2751 | else |
81bf3d9e | 2752 | echo "$ac_err" >&5 |
0a4b6309 RL |
2753 | echo "configure: failed program was:" >&5 |
2754 | cat conftest.$ac_ext >&5 | |
2755 | rm -rf conftest* | |
81bf3d9e | 2756 | eval "ac_cv_header_$ac_safe=no" |
0a4b6309 RL |
2757 | fi |
2758 | rm -f conftest* | |
2759 | fi | |
81bf3d9e | 2760 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
0a4b6309 | 2761 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2762 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0a4b6309 | 2763 | cat >> confdefs.h <<EOF |
81bf3d9e | 2764 | #define $ac_tr_hdr 1 |
0a4b6309 | 2765 | EOF |
81bf3d9e | 2766 | |
0a4b6309 RL |
2767 | else |
2768 | echo "$ac_t""no" 1>&6 | |
2769 | fi | |
0a4b6309 RL |
2770 | done |
2771 | ||
81bf3d9e | 2772 | for ac_func in getpagesize |
0a4b6309 | 2773 | do |
81bf3d9e | 2774 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
119d24d1 | 2775 | echo "configure:2776: checking for $ac_func" >&5 |
81bf3d9e | 2776 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
0a4b6309 RL |
2777 | echo $ac_n "(cached) $ac_c" 1>&6 |
2778 | else | |
2779 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2780 | #line 2781 "configure" |
0a4b6309 | 2781 | #include "confdefs.h" |
81bf3d9e RH |
2782 | /* System header to define __stub macros and hopefully few prototypes, |
2783 | which can conflict with char $ac_func(); below. */ | |
2784 | #include <assert.h> | |
2785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2786 | /* We use char because int might match the return type of a gcc2 | |
2787 | builtin and then its argument prototype would still apply. */ | |
2788 | char $ac_func(); | |
8fa1f09f | 2789 | |
81bf3d9e RH |
2790 | int main() { |
2791 | ||
2792 | /* The GNU C library defines this for functions which it implements | |
2793 | to always fail with ENOSYS. Some functions are actually named | |
2794 | something starting with __ and the normal name is an alias. */ | |
2795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2796 | choke me | |
c5c76735 | 2797 | #else |
86702e31 | 2798 | $ac_func(); |
c5c76735 JL |
2799 | #endif |
2800 | ||
c5c76735 JL |
2801 | ; return 0; } |
2802 | EOF | |
119d24d1 | 2803 | if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c5c76735 | 2804 | rm -rf conftest* |
81bf3d9e | 2805 | eval "ac_cv_func_$ac_func=yes" |
c5c76735 JL |
2806 | else |
2807 | echo "configure: failed program was:" >&5 | |
2808 | cat conftest.$ac_ext >&5 | |
2809 | rm -rf conftest* | |
81bf3d9e | 2810 | eval "ac_cv_func_$ac_func=no" |
c5c76735 JL |
2811 | fi |
2812 | rm -f conftest* | |
2813 | fi | |
2814 | ||
81bf3d9e | 2815 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
c5c76735 | 2816 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2817 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
c5c76735 | 2818 | cat >> confdefs.h <<EOF |
81bf3d9e | 2819 | #define $ac_tr_func 1 |
c5c76735 | 2820 | EOF |
81bf3d9e | 2821 | |
c5c76735 JL |
2822 | else |
2823 | echo "$ac_t""no" 1>&6 | |
2824 | fi | |
c5c76735 JL |
2825 | done |
2826 | ||
4acab94b | 2827 | echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6 |
119d24d1 | 2828 | echo "configure:2829: checking for working mmap from /dev/zero" >&5 |
a0f20853 | 2829 | if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then |
c5c76735 | 2830 | echo $ac_n "(cached) $ac_c" 1>&6 |
81bf3d9e RH |
2831 | else |
2832 | if test "$cross_compiling" = yes; then | |
4acab94b | 2833 | ac_cv_func_mmap_anywhere=no |
c5c76735 JL |
2834 | else |
2835 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2836 | #line 2837 "configure" |
c5c76735 JL |
2837 | #include "confdefs.h" |
2838 | ||
4acab94b AO |
2839 | /* Test by Richard Henderson and Alexandre Oliva. |
2840 | Check whether mmap from /dev/zero works. */ | |
d2cabf16 | 2841 | #include <sys/types.h> |
81bf3d9e RH |
2842 | #include <fcntl.h> |
2843 | #include <sys/mman.h> | |
0a4b6309 | 2844 | |
81bf3d9e RH |
2845 | /* This mess was copied from the GNU getpagesize.h. */ |
2846 | #ifndef HAVE_GETPAGESIZE | |
2847 | # ifdef HAVE_UNISTD_H | |
2848 | # include <unistd.h> | |
2849 | # endif | |
0a4b6309 | 2850 | |
81bf3d9e RH |
2851 | /* Assume that all systems that can run configure have sys/param.h. */ |
2852 | # ifndef HAVE_SYS_PARAM_H | |
2853 | # define HAVE_SYS_PARAM_H 1 | |
2854 | # endif | |
0a4b6309 | 2855 | |
81bf3d9e RH |
2856 | # ifdef _SC_PAGESIZE |
2857 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2858 | # else /* no _SC_PAGESIZE */ | |
2859 | # ifdef HAVE_SYS_PARAM_H | |
2860 | # include <sys/param.h> | |
2861 | # ifdef EXEC_PAGESIZE | |
2862 | # define getpagesize() EXEC_PAGESIZE | |
2863 | # else /* no EXEC_PAGESIZE */ | |
2864 | # ifdef NBPG | |
2865 | # define getpagesize() NBPG * CLSIZE | |
2866 | # ifndef CLSIZE | |
2867 | # define CLSIZE 1 | |
2868 | # endif /* no CLSIZE */ | |
2869 | # else /* no NBPG */ | |
2870 | # ifdef NBPC | |
2871 | # define getpagesize() NBPC | |
2872 | # else /* no NBPC */ | |
2873 | # ifdef PAGESIZE | |
2874 | # define getpagesize() PAGESIZE | |
2875 | # endif /* PAGESIZE */ | |
2876 | # endif /* no NBPC */ | |
2877 | # endif /* no NBPG */ | |
2878 | # endif /* no EXEC_PAGESIZE */ | |
2879 | # else /* no HAVE_SYS_PARAM_H */ | |
2880 | # define getpagesize() 8192 /* punt totally */ | |
2881 | # endif /* no HAVE_SYS_PARAM_H */ | |
2882 | # endif /* no _SC_PAGESIZE */ | |
0a4b6309 | 2883 | |
81bf3d9e | 2884 | #endif /* no HAVE_GETPAGESIZE */ |
0a4b6309 | 2885 | |
4acab94b | 2886 | int main() |
81bf3d9e | 2887 | { |
4acab94b AO |
2888 | char *x; |
2889 | int fd, pg; | |
81bf3d9e | 2890 | |
4acab94b AO |
2891 | fd = open("/dev/zero", O_RDWR); |
2892 | if (fd < 0) | |
2893 | exit(1); | |
81bf3d9e | 2894 | |
4acab94b AO |
2895 | pg = getpagesize(); |
2896 | x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); | |
2897 | if (x == (char *) -1) | |
2898 | exit(2); | |
81bf3d9e | 2899 | |
4acab94b | 2900 | *(int *)x += 1; |
81bf3d9e | 2901 | |
4acab94b AO |
2902 | if (munmap(x, pg) < 0) |
2903 | exit(3); | |
81bf3d9e | 2904 | |
4acab94b AO |
2905 | exit(0); |
2906 | } | |
81bf3d9e | 2907 | EOF |
119d24d1 | 2908 | if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
81bf3d9e | 2909 | then |
4acab94b | 2910 | ac_cv_func_mmap_anywhere=yes |
81bf3d9e RH |
2911 | else |
2912 | echo "configure: failed program was:" >&5 | |
2913 | cat conftest.$ac_ext >&5 | |
2914 | rm -fr conftest* | |
4acab94b | 2915 | ac_cv_func_mmap_anywhere=no |
81bf3d9e RH |
2916 | fi |
2917 | rm -fr conftest* | |
2918 | fi | |
2919 | ||
2920 | fi | |
2921 | ||
a0f20853 | 2922 | echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6 |
4acab94b | 2923 | if test $ac_cv_func_mmap_anywhere = yes; then |
81bf3d9e | 2924 | cat >> confdefs.h <<\EOF |
4acab94b | 2925 | #define HAVE_MMAP_ANYWHERE 1 |
81bf3d9e RH |
2926 | EOF |
2927 | ||
2928 | fi | |
2929 | ||
56f02b88 | 2930 | echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6 |
119d24d1 | 2931 | echo "configure:2932: checking for working mmap of a file" >&5 |
56f02b88 ZW |
2932 | if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then |
2933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2934 | else | |
2935 | # Create a file one thousand bytes long. | |
2936 | for i in 1 2 3 4 5 6 7 8 9 0 | |
2937 | do for j in 1 2 3 4 5 6 7 8 9 0 | |
2938 | do echo $i $j xxxxx | |
2939 | done | |
2940 | done > conftestdata$$ | |
2941 | ||
2942 | if test "$cross_compiling" = yes; then | |
2943 | ac_cv_func_mmap_file=no | |
2944 | else | |
2945 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2946 | #line 2947 "configure" |
56f02b88 ZW |
2947 | #include "confdefs.h" |
2948 | ||
2949 | /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by | |
2950 | Richard Henderson and Alexandre Oliva. | |
2951 | Check whether read-only mmap of a plain file works. */ | |
2952 | #include <sys/types.h> | |
2953 | #include <sys/stat.h> | |
2954 | #include <fcntl.h> | |
2955 | #include <sys/mman.h> | |
2956 | ||
2957 | int main() | |
2958 | { | |
2959 | char *x; | |
2960 | int fd; | |
2961 | struct stat st; | |
2962 | ||
2963 | fd = open("conftestdata$$", O_RDONLY); | |
2964 | if (fd < 0) | |
2965 | exit(1); | |
2966 | ||
2967 | if (fstat (fd, &st)) | |
2968 | exit(2); | |
2969 | ||
2970 | x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); | |
2971 | if (x == (char *) -1) | |
2972 | exit(3); | |
2973 | ||
2974 | if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ') | |
2975 | exit(4); | |
2976 | ||
2977 | if (munmap(x, st.st_size) < 0) | |
2978 | exit(5); | |
2979 | ||
2980 | exit(0); | |
2981 | } | |
2982 | EOF | |
119d24d1 | 2983 | if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
56f02b88 ZW |
2984 | then |
2985 | ac_cv_func_mmap_file=yes | |
2986 | else | |
2987 | echo "configure: failed program was:" >&5 | |
2988 | cat conftest.$ac_ext >&5 | |
2989 | rm -fr conftest* | |
2990 | ac_cv_func_mmap_file=no | |
2991 | fi | |
2992 | rm -fr conftest* | |
2993 | fi | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | echo "$ac_t""$ac_cv_func_mmap_file" 1>&6 | |
2998 | if test $ac_cv_func_mmap_file = yes; then | |
2999 | cat >> confdefs.h <<\EOF | |
3000 | #define HAVE_MMAP_FILE 1 | |
3001 | EOF | |
3002 | ||
3003 | fi | |
3004 | ||
81bf3d9e | 3005 | |
86cf1cbd KG |
3006 | # We will need to find libiberty.h and ansidecl.h |
3007 | saved_CFLAGS="$CFLAGS" | |
3008 | CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" | |
81bf3d9e | 3009 | for ac_func in bcopy bzero bcmp \ |
f95e46b9 | 3010 | index rindex getenv atol sbrk abort atof getcwd getwd \ |
86cf1cbd KG |
3011 | strsignal putc_unlocked fputs_unlocked strstr environ \ |
3012 | malloc realloc calloc free | |
81bf3d9e RH |
3013 | do |
3014 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
86cf1cbd | 3015 | echo "configure:3016: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
3016 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
3017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3018 | else | |
3019 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 3020 | #line 3021 "configure" |
81bf3d9e RH |
3021 | #include "confdefs.h" |
3022 | ||
86cf1cbd KG |
3023 | #include "gansidecl.h" |
3024 | #include "system.h" | |
81bf3d9e | 3025 | int main() { |
86cf1cbd KG |
3026 | #ifndef $ac_func |
3027 | char *(*pfn) = (char *(*)) $ac_func ; | |
3028 | #endif | |
81bf3d9e RH |
3029 | ; return 0; } |
3030 | EOF | |
86cf1cbd | 3031 | if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3032 | rm -rf conftest* |
3033 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3034 | else | |
3035 | echo "configure: failed program was:" >&5 | |
3036 | cat conftest.$ac_ext >&5 | |
3037 | rm -rf conftest* | |
3038 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3039 | fi | |
3040 | rm -f conftest* | |
3041 | fi | |
3042 | ||
3043 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
86cf1cbd | 3044 | echo "$ac_t""yes" 1>&6 ; ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
81bf3d9e | 3045 | cat >> confdefs.h <<EOF |
86cf1cbd | 3046 | #define $ac_tr_decl 1 |
81bf3d9e | 3047 | EOF |
86cf1cbd | 3048 | |
81bf3d9e | 3049 | else |
86cf1cbd | 3050 | echo "$ac_t""no" 1>&6 ; : |
81bf3d9e RH |
3051 | fi |
3052 | ||
3053 | done | |
86cf1cbd | 3054 | if test x = y ; then |
81bf3d9e | 3055 | cat >> confdefs.h <<EOF |
86cf1cbd KG |
3056 | #define NEED_DECLARATION_BCOPY 1 |
3057 | EOF | |
3058 | cat >> confdefs.h <<EOF | |
3059 | #define NEED_DECLARATION_BZERO 1 | |
3060 | EOF | |
3061 | cat >> confdefs.h <<EOF | |
3062 | #define NEED_DECLARATION_BCMP 1 | |
3063 | EOF | |
3064 | \ | |
3065 | cat >> confdefs.h <<EOF | |
3066 | #define NEED_DECLARATION_INDEX 1 | |
3067 | EOF | |
3068 | cat >> confdefs.h <<EOF | |
3069 | #define NEED_DECLARATION_RINDEX 1 | |
3070 | EOF | |
3071 | cat >> confdefs.h <<EOF | |
3072 | #define NEED_DECLARATION_GETENV 1 | |
3073 | EOF | |
3074 | cat >> confdefs.h <<EOF | |
3075 | #define NEED_DECLARATION_ATOL 1 | |
3076 | EOF | |
3077 | cat >> confdefs.h <<EOF | |
3078 | #define NEED_DECLARATION_SBRK 1 | |
3079 | EOF | |
3080 | cat >> confdefs.h <<EOF | |
3081 | #define NEED_DECLARATION_ABORT 1 | |
3082 | EOF | |
3083 | cat >> confdefs.h <<EOF | |
3084 | #define NEED_DECLARATION_ATOF 1 | |
3085 | EOF | |
3086 | cat >> confdefs.h <<EOF | |
3087 | #define NEED_DECLARATION_GETCWD 1 | |
3088 | EOF | |
3089 | cat >> confdefs.h <<EOF | |
3090 | #define NEED_DECLARATION_GETWD 1 | |
3091 | EOF | |
3092 | \ | |
3093 | cat >> confdefs.h <<EOF | |
3094 | #define NEED_DECLARATION_STRSIGNAL 1 | |
3095 | EOF | |
3096 | cat >> confdefs.h <<EOF | |
3097 | #define NEED_DECLARATION_PUTC_UNLOCKED 1 | |
3098 | EOF | |
3099 | cat >> confdefs.h <<EOF | |
3100 | #define NEED_DECLARATION_FPUTS_UNLOCKED 1 | |
3101 | EOF | |
3102 | cat >> confdefs.h <<EOF | |
3103 | #define NEED_DECLARATION_STRSTR 1 | |
3104 | EOF | |
3105 | cat >> confdefs.h <<EOF | |
3106 | #define NEED_DECLARATION_ENVIRON 1 | |
3107 | EOF | |
3108 | \ | |
3109 | cat >> confdefs.h <<EOF | |
3110 | #define NEED_DECLARATION_MALLOC 1 | |
3111 | EOF | |
3112 | cat >> confdefs.h <<EOF | |
3113 | #define NEED_DECLARATION_REALLOC 1 | |
3114 | EOF | |
3115 | cat >> confdefs.h <<EOF | |
3116 | #define NEED_DECLARATION_CALLOC 1 | |
3117 | EOF | |
3118 | cat >> confdefs.h <<EOF | |
3119 | #define NEED_DECLARATION_FREE 1 | |
81bf3d9e | 3120 | EOF |
81bf3d9e RH |
3121 | fi |
3122 | ||
81bf3d9e RH |
3123 | |
3124 | for ac_func in getrlimit setrlimit getrusage | |
3125 | do | |
3126 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
86cf1cbd | 3127 | echo "configure:3128: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
3128 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
3129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3130 | else | |
3131 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 3132 | #line 3133 "configure" |
81bf3d9e RH |
3133 | #include "confdefs.h" |
3134 | ||
86cf1cbd KG |
3135 | #include "gansidecl.h" |
3136 | #include "system.h" | |
81bf3d9e RH |
3137 | #ifdef HAVE_SYS_RESOURCE_H |
3138 | #include <sys/resource.h> | |
3139 | #endif | |
3140 | ||
3141 | int main() { | |
86cf1cbd KG |
3142 | #ifndef $ac_func |
3143 | char *(*pfn) = (char *(*)) $ac_func ; | |
3144 | #endif | |
81bf3d9e RH |
3145 | ; return 0; } |
3146 | EOF | |
86cf1cbd | 3147 | if { (eval echo configure:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3148 | rm -rf conftest* |
3149 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3150 | else | |
3151 | echo "configure: failed program was:" >&5 | |
3152 | cat conftest.$ac_ext >&5 | |
3153 | rm -rf conftest* | |
3154 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3155 | fi | |
3156 | rm -f conftest* | |
3157 | fi | |
3158 | ||
3159 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
86cf1cbd | 3160 | echo "$ac_t""yes" 1>&6 ; ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
81bf3d9e | 3161 | cat >> confdefs.h <<EOF |
86cf1cbd | 3162 | #define $ac_tr_decl 1 |
81bf3d9e | 3163 | EOF |
86cf1cbd | 3164 | |
81bf3d9e | 3165 | else |
86cf1cbd | 3166 | echo "$ac_t""no" 1>&6 ; : |
81bf3d9e RH |
3167 | fi |
3168 | ||
3169 | done | |
86cf1cbd KG |
3170 | if test x = y ; then |
3171 | cat >> confdefs.h <<EOF | |
3172 | #define NEED_DECLARATION_GETRLIMIT 1 | |
3173 | EOF | |
3174 | cat >> confdefs.h <<EOF | |
3175 | #define NEED_DECLARATION_SETRLIMIT 1 | |
3176 | EOF | |
3177 | cat >> confdefs.h <<EOF | |
3178 | #define NEED_DECLARATION_GETRUSAGE 1 | |
3179 | EOF | |
3180 | fi | |
3181 | ||
81bf3d9e | 3182 | |
86cf1cbd KG |
3183 | # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. |
3184 | CFLAGS="$saved_CFLAGS" | |
81bf3d9e | 3185 | |
75923b2f MK |
3186 | # mkdir takes a single argument on some systems. |
3187 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
86cf1cbd | 3188 | echo "configure:3189: checking if mkdir takes one argument" >&5 |
75923b2f MK |
3189 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
3190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3191 | else | |
3192 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 3193 | #line 3194 "configure" |
75923b2f MK |
3194 | #include "confdefs.h" |
3195 | ||
3196 | #include <sys/types.h> | |
3197 | #ifdef HAVE_SYS_STAT_H | |
3198 | # include <sys/stat.h> | |
3199 | #endif | |
3200 | #ifdef HAVE_UNISTD_H | |
3201 | # include <unistd.h> | |
3202 | #endif | |
3203 | #ifdef HAVE_DIRECT_H | |
3204 | # include <direct.h> | |
3205 | #endif | |
3206 | int main() { | |
3207 | mkdir ("foo", 0); | |
3208 | ; return 0; } | |
3209 | EOF | |
86cf1cbd | 3210 | if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
3211 | rm -rf conftest* |
3212 | gcc_cv_mkdir_takes_one_arg=no | |
3213 | else | |
3214 | echo "configure: failed program was:" >&5 | |
3215 | cat conftest.$ac_ext >&5 | |
3216 | rm -rf conftest* | |
3217 | gcc_cv_mkdir_takes_one_arg=yes | |
3218 | fi | |
3219 | rm -f conftest* | |
3220 | fi | |
3221 | ||
3222 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
3223 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
3224 | cat >> confdefs.h <<\EOF | |
3225 | #define MKDIR_TAKES_ONE_ARG 1 | |
3226 | EOF | |
3227 | ||
3228 | fi | |
3229 | ||
3230 | ||
861bb6c1 JL |
3231 | # File extensions |
3232 | manext='.1' | |
3233 | objext='.o' | |
3234 | ||
3235 | ||
3236 | ||
3237 | build_xm_file= | |
f6cb0e63 | 3238 | build_xm_defines= |
861bb6c1 JL |
3239 | build_install_headers_dir=install-headers-tar |
3240 | build_exeext= | |
3241 | host_xm_file= | |
f6cb0e63 | 3242 | host_xm_defines= |
861bb6c1 JL |
3243 | host_xmake_file= |
3244 | host_truncate_target= | |
6e26218f | 3245 | host_exeext= |
861bb6c1 JL |
3246 | |
3247 | # Decode the host machine, then the target machine. | |
3248 | # For the host machine, we save the xm_file variable as host_xm_file; | |
3249 | # then we decode the target machine and forget everything else | |
3250 | # that came from the host machine. | |
3251 | for machine in $build $host $target; do | |
3252 | ||
3253 | out_file= | |
3254 | xmake_file= | |
3255 | tmake_file= | |
3256 | extra_headers= | |
3257 | extra_passes= | |
3258 | extra_parts= | |
3259 | extra_programs= | |
3260 | extra_objs= | |
3261 | extra_host_objs= | |
3262 | extra_gcc_objs= | |
f6cb0e63 | 3263 | xm_defines= |
861bb6c1 JL |
3264 | float_format= |
3265 | # Set this to force installation and use of collect2. | |
3266 | use_collect2= | |
3267 | # Set this to override the default target model. | |
3268 | target_cpu_default= | |
861bb6c1 JL |
3269 | # Set this to control how the header file directory is installed. |
3270 | install_headers_dir=install-headers-tar | |
3271 | # Set this to a non-empty list of args to pass to cpp if the target | |
3272 | # wants its .md file passed through cpp. | |
3273 | md_cppflags= | |
3274 | # Set this if directory names should be truncated to 14 characters. | |
3275 | truncate_target= | |
3276 | # Set this if gdb needs a dir command with `dirname $out_file` | |
3277 | gdb_needs_out_file_path= | |
3278 | # Set this if the build machine requires executables to have a | |
3279 | # file name suffix. | |
3280 | exeext= | |
a851212a JW |
3281 | # Set this to control which thread package will be used. |
3282 | thread_file= | |
df6faf79 JW |
3283 | # Reinitialize these from the flag values every loop pass, since some |
3284 | # configure entries modify them. | |
3285 | gas="$gas_flag" | |
3286 | gnu_ld="$gnu_ld_flag" | |
e445171e | 3287 | enable_threads=$enable_threads_flag |
861bb6c1 | 3288 | |
6baf1cc8 BS |
3289 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
3290 | # updated in each machine entry. | |
3291 | tm_p_file= | |
861bb6c1 JL |
3292 | cpu_type=`echo $machine | sed 's/-.*$//'` |
3293 | case $machine in | |
3294 | alpha*-*-*) | |
3295 | cpu_type=alpha | |
3296 | ;; | |
3297 | arm*-*-*) | |
3298 | cpu_type=arm | |
3299 | ;; | |
3300 | c*-convex-*) | |
3301 | cpu_type=convex | |
3302 | ;; | |
f6cb0e63 | 3303 | i[34567]86-*-*) |
861bb6c1 JL |
3304 | cpu_type=i386 |
3305 | ;; | |
3306 | hppa*-*-*) | |
3307 | cpu_type=pa | |
3308 | ;; | |
3309 | m68000-*-*) | |
3310 | cpu_type=m68k | |
3311 | ;; | |
3312 | mips*-*-*) | |
3313 | cpu_type=mips | |
3314 | ;; | |
1b992148 SC |
3315 | pj*-*-*) |
3316 | cpu_type=pj | |
3317 | ;; | |
861bb6c1 JL |
3318 | powerpc*-*-*) |
3319 | cpu_type=rs6000 | |
3320 | ;; | |
3321 | pyramid-*-*) | |
3322 | cpu_type=pyr | |
3323 | ;; | |
3324 | sparc*-*-*) | |
3325 | cpu_type=sparc | |
3326 | ;; | |
3327 | esac | |
3328 | ||
3329 | tm_file=${cpu_type}/${cpu_type}.h | |
3330 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
6baf1cc8 BS |
3331 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h; |
3332 | then | |
3333 | tm_p_file=${cpu_type}/${cpu_type}-protos.h; | |
3334 | fi | |
7aae67a2 JM |
3335 | # On a.out targets, we need to use collect2. |
3336 | case $machine in | |
3337 | *-*-*aout*) | |
3338 | use_collect2=yes | |
3339 | ;; | |
3340 | esac | |
3341 | ||
1b4a979b | 3342 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
3343 | case $machine in |
3344 | *-*-linux-gnu*) | |
c7391272 | 3345 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 3346 | ;; |
1b4a979b ME |
3347 | *-*-openbsd*) |
3348 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
3349 | tmake_file="t-libc-ok t-openbsd" |
3350 | # avoid surprises, always provide an xm-openbsd file | |
3351 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
3352 | # don't depend on processor x-fragments as well |
3353 | xmake_file=none | |
1b4a979b ME |
3354 | if test x$enable_threads = xyes; then |
3355 | thread_file='posix' | |
3356 | tmake_file="${tmake_file} t-openbsd-thread" | |
3357 | fi | |
3358 | ;; | |
f6cb0e63 JL |
3359 | esac |
3360 | ||
861bb6c1 JL |
3361 | case $machine in |
3362 | # Support site-specific machine types. | |
3363 | *local*) | |
3364 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
3365 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
3366 | xm_file=${cpu_type}/xm-$rest.h | |
3367 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 3368 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
3369 | then xmake_file=${cpu_type}/x-$rest; \ |
3370 | else true; \ | |
3371 | fi | |
75bffa71 | 3372 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
3373 | then tmake_file=${cpu_type}/t-$rest; \ |
3374 | else true; \ | |
3375 | fi | |
3376 | ;; | |
3377 | 1750a-*-*) | |
3378 | ;; | |
3379 | a29k-*-bsd* | a29k-*-sym1*) | |
3380 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 3381 | xm_defines=USG |
861bb6c1 JL |
3382 | xmake_file=a29k/x-unix |
3383 | use_collect2=yes | |
3384 | ;; | |
3385 | a29k-*-udi | a29k-*-coff) | |
3386 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3387 | tmake_file=a29k/t-a29kbare | |
3388 | ;; | |
7cc34889 | 3389 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3390 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3391 | tmake_file=a29k/t-vx29k | |
3392 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3393 | thread_file='vxworks' |
861bb6c1 JL |
3394 | ;; |
3395 | a29k-*-*) # Default a29k environment. | |
3396 | use_collect2=yes | |
3397 | ;; | |
615c8231 DT |
3398 | alpha-*-interix) |
3399 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3400 | ||
3401 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3402 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3403 | |
8354da48 JL |
3404 | # GAS + IEEE_CONFORMANT |
3405 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3406 | |
3407 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3408 | xmake_file="x-interix alpha/t-pe" | |
6da9c622 | 3409 | tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee" |
615c8231 DT |
3410 | if test x$enable_threads = xyes ; then |
3411 | thread_file='posix' | |
3412 | fi | |
3413 | if test x$stabs = xyes ; then | |
3414 | tm_file="${tm_file} dbxcoff.h" | |
3415 | fi | |
3416 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3417 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3418 | ;; | |
861bb6c1 | 3419 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3420 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3421 | target_cpu_default="MASK_GAS" |
6da9c622 | 3422 | tmake_file="alpha/t-alpha alpha/t-ieee" |
861bb6c1 JL |
3423 | gas=no |
3424 | xmake_file=none | |
861bb6c1 JL |
3425 | gas=yes gnu_ld=yes |
3426 | ;; | |
2601ebca | 3427 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3428 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3429 | target_cpu_default="MASK_GAS" |
6da9c622 | 3430 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
ee8d66f7 | 3431 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2601ebca | 3432 | xmake_file=none |
2601ebca | 3433 | gas=yes gnu_ld=yes |
75bffa71 | 3434 | if test x$enable_threads = xyes; then |
2601ebca JL |
3435 | thread_file='posix' |
3436 | fi | |
3437 | ;; | |
861bb6c1 | 3438 | alpha*-*-linux-gnu*) |
9d654bba | 3439 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3440 | target_cpu_default="MASK_GAS" |
6da9c622 | 3441 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee" |
ee8d66f7 | 3442 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3443 | xmake_file=none |
861bb6c1 | 3444 | gas=yes gnu_ld=yes |
75bffa71 | 3445 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3446 | thread_file='posix' |
3447 | fi | |
3448 | ;; | |
9d654bba | 3449 | alpha*-*-netbsd*) |
66953094 | 3450 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba | 3451 | target_cpu_default="MASK_GAS" |
6da9c622 | 3452 | tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee" |
ee8d66f7 | 3453 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
9d654bba | 3454 | xmake_file=none |
9d654bba RH |
3455 | gas=yes gnu_ld=yes |
3456 | ;; | |
1b4a979b ME |
3457 | |
3458 | alpha*-*-openbsd*) | |
3459 | # default x-alpha is only appropriate for dec-osf. | |
3460 | target_cpu_default="MASK_GAS" | |
6da9c622 | 3461 | tmake_file="alpha/t-alpha alpha/t-ieee" |
1b4a979b | 3462 | ;; |
9d654bba | 3463 | |
e9a25f70 | 3464 | alpha*-dec-osf*) |
75bffa71 | 3465 | if test x$stabs = xyes |
861bb6c1 JL |
3466 | then |
3467 | tm_file="${tm_file} dbx.h" | |
3468 | fi | |
75bffa71 | 3469 | if test x$gas != xyes |
861bb6c1 JL |
3470 | then |
3471 | extra_passes="mips-tfile mips-tdump" | |
3472 | fi | |
861bb6c1 | 3473 | use_collect2=yes |
6da9c622 | 3474 | tmake_file="alpha/t-alpha alpha/t-ieee" |
861bb6c1 | 3475 | case $machine in |
6ecd4e53 | 3476 | *-*-osf1*) |
b0435cf4 | 3477 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3478 | ;; |
3479 | *-*-osf[23]*) | |
b0435cf4 | 3480 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3481 | ;; |
3482 | *-*-osf4*) | |
b0435cf4 | 3483 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3484 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3485 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3486 | install_headers_dir=install-headers-cpio |
3487 | ;; | |
7bc69973 | 3488 | *-*-osf5*) |
5495cc55 | 3489 | tm_file="${tm_file} alpha/osf.h alpha/osf5.h" |
7bc69973 | 3490 | ;; |
861bb6c1 | 3491 | esac |
e9a25f70 | 3492 | case $machine in |
cd038ac2 | 3493 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*) |
e9a25f70 JL |
3494 | target_cpu_default=MASK_SUPPORT_ARCH |
3495 | ;; | |
3496 | esac | |
861bb6c1 | 3497 | ;; |
9ec36da5 JL |
3498 | alpha*-*-vxworks*) |
3499 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
6da9c622 | 3500 | tmake_file="alpha/t-alpha alpha/t-ieee" |
9ec36da5 JL |
3501 | if x$gas != xyes |
3502 | then | |
3503 | extra_passes="mips-tfile mips-tdump" | |
3504 | fi | |
3505 | use_collect2=yes | |
28897609 | 3506 | thread_file='vxworks' |
9ec36da5 | 3507 | ;; |
b0435cf4 | 3508 | alpha*-*-winnt*) |
615c8231 | 3509 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 | 3510 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
6da9c622 | 3511 | tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee" |
861bb6c1 JL |
3512 | xmake_file=winnt/x-winnt |
3513 | extra_host_objs=oldnames.o | |
3514 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3515 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3516 | then |
3517 | extra_programs=ld.exe | |
3518 | fi | |
75bffa71 | 3519 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3520 | thread_file='win32' |
3521 | fi | |
3522 | ;; | |
3523 | alpha*-dec-vms*) | |
3524 | tm_file=alpha/vms.h | |
3525 | xm_file="${xm_file} alpha/xm-vms.h" | |
6da9c622 | 3526 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
861bb6c1 | 3527 | ;; |
66ed0683 JL |
3528 | arc-*-elf*) |
3529 | extra_parts="crtinit.o crtfini.o" | |
3530 | ;; | |
861bb6c1 JL |
3531 | arm-*-coff* | armel-*-coff*) |
3532 | tm_file=arm/coff.h | |
d5b7b3ae | 3533 | tmake_file=arm/t-arm-coff |
861bb6c1 | 3534 | ;; |
2aa0c933 | 3535 | arm-*-vxworks*) |
e14db015 | 3536 | tm_file=arm/vxarm.h |
d5b7b3ae | 3537 | tmake_file=arm/t-arm-coff |
28897609 | 3538 | thread_file='vxworks' |
2aa0c933 | 3539 | ;; |
861bb6c1 JL |
3540 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3541 | tm_file=arm/riscix1-1.h | |
3542 | use_collect2=yes | |
3543 | ;; | |
3544 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3545 | if test x$gas = xyes |
861bb6c1 JL |
3546 | then |
3547 | tm_file=arm/rix-gas.h | |
3548 | else | |
3549 | tm_file=arm/riscix.h | |
3550 | fi | |
3551 | xmake_file=arm/x-riscix | |
3552 | tmake_file=arm/t-riscix | |
3553 | use_collect2=yes | |
3554 | ;; | |
3555 | arm-semi-aout | armel-semi-aout) | |
3556 | tm_file=arm/semi.h | |
3557 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3558 | ;; |
3559 | arm-semi-aof | armel-semi-aof) | |
3560 | tm_file=arm/semiaof.h | |
3561 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3562 | ;; |
58600d24 | 3563 | arm*-*-netbsd*) |
861bb6c1 | 3564 | tm_file=arm/netbsd.h |
e9a25f70 | 3565 | tmake_file="t-netbsd arm/t-netbsd" |
ed4acb3b | 3566 | use_collect2=yes |
861bb6c1 | 3567 | ;; |
b355a481 | 3568 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3569 | cpu_type=arm |
861bb6c1 | 3570 | xmake_file=x-linux |
b355a481 | 3571 | tm_file=arm/linux-aout.h |
861bb6c1 | 3572 | tmake_file=arm/t-linux |
861bb6c1 JL |
3573 | gnu_ld=yes |
3574 | ;; | |
078e19a4 | 3575 | arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker |
b355a481 NC |
3576 | xm_file=arm/xm-linux.h |
3577 | xmake_file=x-linux | |
078e19a4 | 3578 | tm_file="arm/linux-oldld.h arm/linux-elf.h" |
b355a481 NC |
3579 | case $machine in |
3580 | armv2*-*-*) | |
078e19a4 | 3581 | tm_file="arm/linux-elf26.h $tm_file" |
b355a481 | 3582 | ;; |
078e19a4 PB |
3583 | esac |
3584 | tmake_file="t-linux arm/t-linux" | |
3585 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3586 | gnu_ld=yes | |
3587 | case x${enable_threads} in | |
3588 | x | xyes | xpthreads | xposix) | |
3589 | thread_file='posix' | |
3590 | ;; | |
3591 | esac | |
3592 | ;; | |
3593 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF | |
3594 | xm_file=arm/xm-linux.h | |
3595 | xmake_file=x-linux | |
3596 | tm_file="arm/linux-elf.h" | |
3597 | case $machine in | |
3598 | armv2*-*-*) | |
3599 | tm_file="arm/linux-elf26.h $tm_file" | |
b355a481 NC |
3600 | ;; |
3601 | esac | |
3602 | tmake_file="t-linux arm/t-linux" | |
3603 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3604 | gnu_ld=yes |
65120c40 SB |
3605 | case x${enable_threads} in |
3606 | x | xyes | xpthreads | xposix) | |
3607 | thread_file='posix' | |
3608 | ;; | |
3609 | esac | |
b355a481 | 3610 | ;; |
483f6332 PB |
3611 | arm*-*-uclinux*) # ARM ucLinux |
3612 | tm_file=arm/uclinux-elf.h | |
3613 | tmake_file=arm/t-arm-elf | |
3614 | ;; | |
b355a481 | 3615 | arm*-*-aout) |
861bb6c1 | 3616 | tm_file=arm/aout.h |
d5b7b3ae | 3617 | tmake_file=arm/t-arm-aout |
861bb6c1 | 3618 | ;; |
e6592fff | 3619 | arm*-*-ecos-elf) |
54953b66 | 3620 | tm_file=arm/ecos-elf.h |
d5b7b3ae | 3621 | tmake_file=arm/t-arm-elf |
54953b66 | 3622 | ;; |
b355a481 NC |
3623 | arm*-*-elf) |
3624 | tm_file=arm/unknown-elf.h | |
3625 | tmake_file=arm/t-arm-elf | |
47163378 PB |
3626 | ;; |
3627 | arm*-*-conix*) | |
3628 | tm_file=arm/conix-elf.h | |
3629 | tmake_file=arm/t-arm-elf | |
b355a481 | 3630 | ;; |
cbca921c CM |
3631 | arm*-*-oabi) |
3632 | tm_file=arm/unknown-elf-oabi.h | |
3633 | tmake_file=arm/t-arm-elf | |
3634 | ;; | |
cb805c2d NC |
3635 | arm-*-pe*) |
3636 | tm_file=arm/pe.h | |
3637 | tmake_file=arm/t-pe | |
6da9c622 | 3638 | extra_objs="pe.o" |
cb805c2d | 3639 | ;; |
ed4acb3b DC |
3640 | avr-*-*) |
3641 | ;; | |
861bb6c1 JL |
3642 | c1-convex-*) # Convex C1 |
3643 | target_cpu_default=1 | |
3644 | use_collect2=yes | |
861bb6c1 JL |
3645 | ;; |
3646 | c2-convex-*) # Convex C2 | |
3647 | target_cpu_default=2 | |
3648 | use_collect2=yes | |
861bb6c1 JL |
3649 | ;; |
3650 | c32-convex-*) | |
3651 | target_cpu_default=4 | |
3652 | use_collect2=yes | |
861bb6c1 JL |
3653 | ;; |
3654 | c34-convex-*) | |
3655 | target_cpu_default=8 | |
3656 | use_collect2=yes | |
861bb6c1 JL |
3657 | ;; |
3658 | c38-convex-*) | |
3659 | target_cpu_default=16 | |
3660 | use_collect2=yes | |
861bb6c1 | 3661 | ;; |
62616695 MH |
3662 | c4x-*) |
3663 | cpu_type=c4x | |
3664 | tmake_file=c4x/t-c4x | |
3665 | ;; | |
861bb6c1 JL |
3666 | clipper-intergraph-clix*) |
3667 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3668 | xm_file=clipper/xm-clix.h | |
3669 | xmake_file=clipper/x-clix | |
3670 | extra_headers=va-clipper.h | |
3671 | extra_parts="crtbegin.o crtend.o" | |
3672 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3673 | ;; |
3674 | dsp16xx-*) | |
3675 | ;; | |
3676 | elxsi-elxsi-*) | |
3677 | use_collect2=yes | |
3678 | ;; | |
309dd885 NC |
3679 | fr30-*-elf) |
3680 | tm_file="fr30/fr30.h" | |
3681 | tmake_file=fr30/t-fr30 | |
3682 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3683 | ;; | |
861bb6c1 JL |
3684 | # This hasn't been upgraded to GCC 2. |
3685 | # fx80-alliant-*) # Alliant FX/80 | |
3686 | # ;; | |
3687 | h8300-*-*) | |
3688 | float_format=i32 | |
3689 | ;; | |
30f08b39 JL |
3690 | hppa*-*-linux*) |
3691 | target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)" | |
3692 | tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h" | |
3693 | tmake_file="t-linux pa/t-linux" | |
3694 | extra_parts="crtbegin.o crtend.o" | |
3695 | xmake_file=none | |
3696 | gas=yes gnu_ld=yes | |
3697 | if test x$enable_threads = xyes; then | |
3698 | thread_file='posix' | |
3699 | fi | |
3700 | ;; | |
1b4a979b | 3701 | hppa*-*-openbsd*) |
13ee407e | 3702 | target_cpu_default="MASK_PA_11" |
4525d757 | 3703 | tmake_file=pa/t-openbsd |
1b4a979b | 3704 | ;; |
861bb6c1 | 3705 | hppa1.1-*-pro*) |
0d381b47 | 3706 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3707 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" |
861bb6c1 JL |
3708 | xm_file=pa/xm-papro.h |
3709 | tmake_file=pa/t-pro | |
3710 | ;; | |
3711 | hppa1.1-*-osf*) | |
13ee407e | 3712 | target_cpu_default="MASK_PA_11" |
88624c0e | 3713 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3714 | use_collect2=yes |
861bb6c1 JL |
3715 | ;; |
3716 | hppa1.1-*-rtems*) | |
0d381b47 | 3717 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3718 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" |
861bb6c1 JL |
3719 | xm_file=pa/xm-papro.h |
3720 | tmake_file=pa/t-pro | |
3721 | ;; | |
3722 | hppa1.0-*-osf*) | |
88624c0e | 3723 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3724 | use_collect2=yes |
861bb6c1 JL |
3725 | ;; |
3726 | hppa1.1-*-bsd*) | |
88624c0e | 3727 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
13ee407e | 3728 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3729 | use_collect2=yes |
861bb6c1 JL |
3730 | ;; |
3731 | hppa1.0-*-bsd*) | |
88624c0e | 3732 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
861bb6c1 | 3733 | use_collect2=yes |
861bb6c1 JL |
3734 | ;; |
3735 | hppa1.0-*-hpux7*) | |
88624c0e | 3736 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" |
861bb6c1 JL |
3737 | xm_file=pa/xm-pahpux.h |
3738 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3739 | if test x$gas = xyes |
861bb6c1 JL |
3740 | then |
3741 | tm_file="${tm_file} pa/gas.h" | |
3742 | fi | |
861bb6c1 JL |
3743 | install_headers_dir=install-headers-cpio |
3744 | use_collect2=yes | |
3745 | ;; | |
3746 | hppa1.0-*-hpux8.0[0-2]*) | |
88624c0e | 3747 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3748 | xm_file=pa/xm-pahpux.h |
3749 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3750 | if test x$gas = xyes |
861bb6c1 JL |
3751 | then |
3752 | tm_file="${tm_file} pa/pa-gas.h" | |
3753 | else | |
3754 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3755 | fi | |
861bb6c1 JL |
3756 | install_headers_dir=install-headers-cpio |
3757 | use_collect2=yes | |
3758 | ;; | |
3759 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3760 | target_cpu_default="MASK_PA_11" |
88624c0e | 3761 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3762 | xm_file=pa/xm-pahpux.h |
3763 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3764 | if test x$gas = xyes |
861bb6c1 JL |
3765 | then |
3766 | tm_file="${tm_file} pa/pa-gas.h" | |
3767 | else | |
3768 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3769 | fi | |
861bb6c1 JL |
3770 | install_headers_dir=install-headers-cpio |
3771 | use_collect2=yes | |
3772 | ;; | |
3773 | hppa1.1-*-hpux8*) | |
13ee407e | 3774 | target_cpu_default="MASK_PA_11" |
88624c0e | 3775 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3776 | xm_file=pa/xm-pahpux.h |
3777 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3778 | if test x$gas = xyes |
861bb6c1 JL |
3779 | then |
3780 | tm_file="${tm_file} pa/pa-gas.h" | |
3781 | fi | |
861bb6c1 JL |
3782 | install_headers_dir=install-headers-cpio |
3783 | use_collect2=yes | |
3784 | ;; | |
3785 | hppa1.0-*-hpux8*) | |
88624c0e | 3786 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3787 | xm_file=pa/xm-pahpux.h |
3788 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3789 | if test x$gas = xyes |
861bb6c1 JL |
3790 | then |
3791 | tm_file="${tm_file} pa/pa-gas.h" | |
3792 | fi | |
861bb6c1 JL |
3793 | install_headers_dir=install-headers-cpio |
3794 | use_collect2=yes | |
3795 | ;; | |
18cae839 | 3796 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3797 | target_cpu_default="MASK_PA_11" |
88624c0e | 3798 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3799 | float_format=i128 |
861bb6c1 JL |
3800 | xm_file=pa/xm-pahpux.h |
3801 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3802 | tmake_file=pa/t-pa |
75bffa71 | 3803 | if test x$gas = xyes |
861bb6c1 JL |
3804 | then |
3805 | tm_file="${tm_file} pa/pa-gas.h" | |
3806 | fi | |
75bffa71 | 3807 | if test x$enable_threads = x; then |
f24af81b TT |
3808 | enable_threads=$have_pthread_h |
3809 | fi | |
75bffa71 | 3810 | if test x$enable_threads = xyes; then |
f24af81b TT |
3811 | thread_file='dce' |
3812 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3813 | fi | |
861bb6c1 JL |
3814 | install_headers_dir=install-headers-cpio |
3815 | use_collect2=yes | |
3816 | ;; | |
3817 | hppa1.0-*-hpux10*) | |
88624c0e | 3818 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3819 | float_format=i128 |
861bb6c1 JL |
3820 | xm_file=pa/xm-pahpux.h |
3821 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3822 | tmake_file=pa/t-pa |
75bffa71 | 3823 | if test x$gas = xyes |
861bb6c1 JL |
3824 | then |
3825 | tm_file="${tm_file} pa/pa-gas.h" | |
3826 | fi | |
75bffa71 | 3827 | if test x$enable_threads = x; then |
d005a5a4 JL |
3828 | enable_threads=$have_pthread_h |
3829 | fi | |
75bffa71 | 3830 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3831 | thread_file='dce' |
3832 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3833 | fi | |
861bb6c1 JL |
3834 | install_headers_dir=install-headers-cpio |
3835 | use_collect2=yes | |
3836 | ;; | |
fab7be4f | 3837 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) |
30f08b39 | 3838 | target_cpu_default="MASK_PA_11" |
88624c0e | 3839 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 3840 | float_format=i128 |
fab7be4f JL |
3841 | xm_file=pa/xm-pahpux.h |
3842 | xmake_file=pa/x-pa-hpux | |
3843 | tmake_file=pa/t-pa | |
2618c083 | 3844 | if test x$gas = xyes |
fab7be4f JL |
3845 | then |
3846 | tm_file="${tm_file} pa/pa-gas.h" | |
3847 | fi | |
2618c083 | 3848 | # if test x$enable_threads = x; then |
fab7be4f JL |
3849 | # enable_threads=$have_pthread_h |
3850 | # fi | |
2618c083 | 3851 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
3852 | # thread_file='dce' |
3853 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3854 | # fi | |
3855 | install_headers_dir=install-headers-cpio | |
3856 | use_collect2=yes | |
3857 | ;; | |
3858 | hppa1.0-*-hpux11*) | |
88624c0e | 3859 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 3860 | float_format=i128 |
fab7be4f JL |
3861 | xm_file=pa/xm-pahpux.h |
3862 | xmake_file=pa/x-pa-hpux | |
2618c083 | 3863 | if test x$gas = xyes |
fab7be4f JL |
3864 | then |
3865 | tm_file="${tm_file} pa/pa-gas.h" | |
3866 | fi | |
2618c083 | 3867 | # if test x$enable_threads = x; then |
fab7be4f JL |
3868 | # enable_threads=$have_pthread_h |
3869 | # fi | |
2618c083 | 3870 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
3871 | # thread_file='dce' |
3872 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3873 | # fi | |
3874 | install_headers_dir=install-headers-cpio | |
3875 | use_collect2=yes | |
3876 | ;; | |
18cae839 | 3877 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3878 | target_cpu_default="MASK_PA_11" |
88624c0e | 3879 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3880 | xm_file=pa/xm-pahpux.h |
3881 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3882 | if test x$gas = xyes |
861bb6c1 JL |
3883 | then |
3884 | tm_file="${tm_file} pa/pa-gas.h" | |
3885 | fi | |
861bb6c1 JL |
3886 | install_headers_dir=install-headers-cpio |
3887 | use_collect2=yes | |
3888 | ;; | |
3889 | hppa1.0-*-hpux*) | |
88624c0e | 3890 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3891 | xm_file=pa/xm-pahpux.h |
3892 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3893 | if test x$gas = xyes |
861bb6c1 JL |
3894 | then |
3895 | tm_file="${tm_file} pa/pa-gas.h" | |
3896 | fi | |
861bb6c1 JL |
3897 | install_headers_dir=install-headers-cpio |
3898 | use_collect2=yes | |
3899 | ;; | |
18cae839 | 3900 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3901 | target_cpu_default="MASK_PA_11" |
88624c0e | 3902 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3903 | xm_file=pa/xm-pahpux.h |
3904 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3905 | if test x$gas = xyes |
861bb6c1 JL |
3906 | then |
3907 | tm_file="${tm_file} pa/pa-gas.h" | |
3908 | fi | |
861bb6c1 JL |
3909 | install_headers_dir=install-headers-cpio |
3910 | use_collect2=yes | |
3911 | ;; | |
3912 | hppa1.0-*-hiux*) | |
88624c0e | 3913 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3914 | xm_file=pa/xm-pahpux.h |
3915 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3916 | if test x$gas = xyes |
861bb6c1 JL |
3917 | then |
3918 | tm_file="${tm_file} pa/pa-gas.h" | |
3919 | fi | |
861bb6c1 JL |
3920 | install_headers_dir=install-headers-cpio |
3921 | use_collect2=yes | |
3922 | ;; | |
3923 | hppa*-*-lites*) | |
88624c0e | 3924 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h" |
13ee407e | 3925 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3926 | use_collect2=yes |
861bb6c1 | 3927 | ;; |
6bc2c8c8 MK |
3928 | hppa*-*-mpeix*) |
3929 | tm_file="${tm_file} pa/pa-mpeix.h" | |
3930 | xm_file=pa/xm-pampeix.h | |
3931 | xmake_file=pa/x-pa-mpeix | |
3932 | echo "You must use gas. Assuming it is already installed." | |
3933 | install_headers_dir=install-headers-tar | |
6bc2c8c8 MK |
3934 | use_collect2=yes |
3935 | ;; | |
a2b368b6 LV |
3936 | i370-*-opened*) # IBM 360/370/390 Architecture |
3937 | xm_file=i370/xm-oe.h | |
3938 | tm_file=i370/oe.h | |
3939 | xmake_file=i370/x-oe | |
3940 | tmake_file=i370/t-oe | |
a2b368b6 | 3941 | ;; |
861bb6c1 | 3942 | i370-*-mvs*) |
a2b368b6 LV |
3943 | xm_file=i370/xm-mvs.h |
3944 | tm_file=i370/mvs.h | |
3945 | tmake_file=i370/t-mvs | |
a2b368b6 LV |
3946 | ;; |
3947 | i370-*-linux*) | |
3948 | xm_file="xm-linux.h i370/xm-linux.h" | |
3949 | xmake_file=x-linux | |
3950 | tm_file="i370/linux.h ${tm_file}" | |
3951 | tmake_file="t-linux i370/t-linux" | |
a2b368b6 LV |
3952 | # broken_install=yes |
3953 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3954 | # extra_parts="crtbegin.o crtend.o" | |
3955 | gnu_ld=yes | |
3956 | gas=yes | |
3957 | elf=yes | |
2618c083 | 3958 | if test x$enable_threads = xyes; then |
a2b368b6 LV |
3959 | thread_file='posix' |
3960 | fi | |
861bb6c1 | 3961 | ;; |
9b5c756a JL |
3962 | i[34567]86-*-elf*) |
3963 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h" | |
3964 | tm_file=i386/i386elf.h | |
3965 | tmake_file=i386/t-i386elf | |
3966 | xmake_file=x-svr4 | |
3967 | ;; | |
f6cb0e63 | 3968 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3969 | if test x$gas = xyes |
861bb6c1 JL |
3970 | then |
3971 | tm_file=i386/aix386.h | |
3972 | extra_parts="crtbegin.o crtend.o" | |
3973 | tmake_file=i386/t-crtstuff | |
3974 | else | |
3975 | tm_file=i386/aix386ng.h | |
3976 | use_collect2=yes | |
3977 | fi | |
f6cb0e63 JL |
3978 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3979 | xm_defines=USG | |
861bb6c1 | 3980 | xmake_file=i386/x-aix |
861bb6c1 | 3981 | ;; |
75bffa71 | 3982 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
2d092ffa | 3983 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 3984 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 3985 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3986 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3987 | then |
3988 | tm_file=i386/sysv4gdb.h | |
3989 | else | |
3990 | tm_file=i386/sysv4.h | |
3991 | fi | |
3992 | extra_parts="crtbegin.o crtend.o" | |
3993 | tmake_file=i386/t-crtpic | |
3994 | ;; | |
f6cb0e63 | 3995 | i[34567]86-next-*) |
861bb6c1 JL |
3996 | tm_file=i386/next.h |
3997 | xm_file=i386/xm-next.h | |
3998 | tmake_file=i386/t-next | |
3999 | xmake_file=i386/x-next | |
4000 | extra_objs=nextstep.o | |
750930c1 | 4001 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 4002 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4003 | thread_file='mach' |
4004 | fi | |
4005 | ;; | |
f6cb0e63 | 4006 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 4007 | use_collect2=yes |
75bffa71 | 4008 | if test x$gas = xyes |
861bb6c1 JL |
4009 | then |
4010 | tm_file=i386/seq-gas.h | |
4011 | else | |
4012 | tm_file=i386/sequent.h | |
4013 | fi | |
4014 | ;; | |
f6cb0e63 JL |
4015 | i[34567]86-sequent-ptx1*) |
4016 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4017 | xmake_file=i386/x-sysv3 |
4018 | tm_file=i386/seq-sysv3.h | |
4019 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
4020 | extra_parts="crtbegin.o crtend.o" |
4021 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4022 | ;; |
f6cb0e63 JL |
4023 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
4024 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4025 | xmake_file=i386/x-sysv3 |
4026 | tm_file=i386/seq2-sysv3.h | |
4027 | tmake_file=i386/t-crtstuff | |
4028 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4029 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4030 | ;; |
f6cb0e63 | 4031 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
2d092ffa | 4032 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4033 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 JL |
4034 | xmake_file=x-svr4 |
4035 | tm_file=i386/ptx4-i.h | |
4036 | tmake_file=t-svr4 | |
4037 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4038 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
4039 | ;; |
4040 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 4041 | xm_defines=USG |
861bb6c1 JL |
4042 | tm_file=i386/sun.h |
4043 | use_collect2=yes | |
4044 | ;; | |
62db76ee | 4045 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
4046 | tm_file=i386/vxi386.h |
4047 | tmake_file=i386/t-i386bare | |
28897609 | 4048 | thread_file='vxworks' |
9e89df50 | 4049 | ;; |
f6cb0e63 | 4050 | i[34567]86-*-aout*) |
861bb6c1 JL |
4051 | tm_file=i386/i386-aout.h |
4052 | tmake_file=i386/t-i386bare | |
4053 | ;; | |
11950183 JM |
4054 | i[34567]86-*-beospe*) |
4055 | xm_file=i386/xm-beos.h | |
4056 | xm_defines="USE_C_ALLOCA" | |
4057 | tmake_file=i386/t-beos | |
4058 | tm_file=i386/beos-pe.h | |
4059 | xmake_file=i386/x-beos | |
4060 | extra_objs=winnt.o | |
4061 | ;; | |
4062 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
4063 | xm_file=i386/xm-beos.h | |
4064 | tmake_file='i386/t-beos i386/t-crtpic' | |
4065 | tm_file=i386/beos-elf.h | |
4066 | xmake_file=i386/x-beos | |
4067 | extra_objs=winnt.o | |
4068 | extra_parts='crtbegin.o crtend.o' | |
11950183 | 4069 | ;; |
f6cb0e63 | 4070 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 4071 | tm_file=i386/bsd386.h |
861bb6c1 JL |
4072 | # tmake_file=t-libc-ok |
4073 | ;; | |
f6cb0e63 | 4074 | i[34567]86-*-bsd*) |
861bb6c1 | 4075 | tm_file=i386/386bsd.h |
861bb6c1 JL |
4076 | # tmake_file=t-libc-ok |
4077 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
4078 | # use_collect2=yes | |
4079 | ;; | |
f6cb0e63 | 4080 | i[34567]86-*-freebsdelf*) |
4e32293c | 4081 | tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 4082 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 4083 | tmake_file=t-freebsd |
861bb6c1 JL |
4084 | gas=yes |
4085 | gnu_ld=yes | |
4086 | stabs=yes | |
46346e0e LR |
4087 | case x${enable_threads} in |
4088 | xyes | xpthreads | xposix) | |
4089 | thread_file='posix' | |
e1459ff8 | 4090 | tmake_file="${tmake_file} t-freebsd-thread" |
46346e0e LR |
4091 | ;; |
4092 | esac | |
861bb6c1 | 4093 | ;; |
f6cb0e63 | 4094 | i[34567]86-*-freebsd*) |
4e32293c | 4095 | tm_file="i386/freebsd.h i386/perform.h" |
d0550c9b | 4096 | tmake_file=t-freebsd |
861bb6c1 | 4097 | ;; |
1b4a979b | 4098 | i[34567]86-*-netbsd*) |
861bb6c1 | 4099 | tm_file=i386/netbsd.h |
861bb6c1 | 4100 | tmake_file=t-netbsd |
ed4acb3b | 4101 | use_collect2=yes |
861bb6c1 | 4102 | ;; |
1b4a979b | 4103 | i[34567]86-*-openbsd*) |
1b4a979b ME |
4104 | # we need collect2 until our bug is fixed... |
4105 | use_collect2=yes | |
4106 | ;; | |
f6cb0e63 | 4107 | i[34567]86-*-coff*) |
861bb6c1 JL |
4108 | tm_file=i386/i386-coff.h |
4109 | tmake_file=i386/t-i386bare | |
4110 | ;; | |
f6cb0e63 JL |
4111 | i[34567]86-*-isc*) # 80386 running ISC system |
4112 | xm_file="${xm_file} i386/xm-isc.h" | |
4113 | xm_defines="USG SVR3" | |
861bb6c1 | 4114 | case $machine in |
f6cb0e63 | 4115 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
4116 | xmake_file=i386/x-isc3 |
4117 | ;; | |
4118 | *) | |
4119 | xmake_file=i386/x-isc | |
4120 | ;; | |
4121 | esac | |
75bffa71 | 4122 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
4123 | then |
4124 | tm_file=i386/iscdbx.h | |
4125 | tmake_file=i386/t-svr3dbx | |
4126 | extra_parts="svr3.ifile svr3z.ifile" | |
4127 | else | |
4128 | tm_file=i386/isccoff.h | |
4129 | tmake_file=i386/t-crtstuff | |
4130 | extra_parts="crtbegin.o crtend.o" | |
4131 | fi | |
4132 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4133 | ;; |
f6cb0e63 | 4134 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 4135 | # pre BFD linkers |
861bb6c1 JL |
4136 | xmake_file=x-linux-aout |
4137 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4138 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 4139 | gnu_ld=yes |
af39d8f5 | 4140 | float_format=i386 |
861bb6c1 | 4141 | ;; |
f6cb0e63 | 4142 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
4143 | xmake_file=x-linux-aout |
4144 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4145 | tm_file=i386/linux-aout.h | |
861bb6c1 | 4146 | gnu_ld=yes |
af39d8f5 | 4147 | float_format=i386 |
861bb6c1 | 4148 | ;; |
f6cb0e63 | 4149 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4150 | # GNU/Linux C library 5 |
4151 | xmake_file=x-linux | |
4152 | tm_file=i386/linux.h | |
861bb6c1 JL |
4153 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
4154 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4155 | gnu_ld=yes |
af39d8f5 | 4156 | float_format=i386 |
75bffa71 | 4157 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4158 | thread_file='single' |
4159 | fi | |
4160 | ;; | |
f6cb0e63 | 4161 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4162 | # aka GNU/Linux C library 6 |
4163 | xmake_file=x-linux | |
861bb6c1 JL |
4164 | tm_file=i386/linux.h |
4165 | tmake_file="t-linux i386/t-crtstuff" | |
4166 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4167 | gnu_ld=yes |
af39d8f5 | 4168 | float_format=i386 |
75bffa71 | 4169 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4170 | thread_file='posix' |
4171 | fi | |
4172 | ;; | |
f6cb0e63 | 4173 | i[34567]86-*-gnu*) |
cd9e5e7c | 4174 | float_format=i386 |
f6cb0e63 JL |
4175 | ;; |
4176 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 4177 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 4178 | exit 1 |
861bb6c1 | 4179 | ;; |
f6cb0e63 | 4180 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
4181 | xm_file=i386/xm-djgpp.h |
4182 | tm_file=i386/djgpp.h | |
4183 | tmake_file=i386/t-djgpp | |
4184 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
4185 | gnu_ld=yes |
4186 | gas=yes | |
dedcc399 | 4187 | exeext=.exe |
77d787fa | 4188 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
4189 | target_alias=djgpp |
4190 | ;; | |
4191 | esac | |
861bb6c1 | 4192 | ;; |
f6cb0e63 | 4193 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
4194 | tm_file=i386/moss.h |
4195 | tmake_file=t-libc-ok | |
861bb6c1 JL |
4196 | gnu_ld=yes |
4197 | gas=yes | |
4198 | ;; | |
f6cb0e63 | 4199 | i[34567]86-*-lynxos*) |
75bffa71 | 4200 | if test x$gas = xyes |
861bb6c1 JL |
4201 | then |
4202 | tm_file=i386/lynx.h | |
4203 | else | |
4204 | tm_file=i386/lynx-ng.h | |
4205 | fi | |
4206 | xm_file=i386/xm-lynx.h | |
4207 | tmake_file=i386/t-i386bare | |
4208 | xmake_file=x-lynx | |
4209 | ;; | |
f6cb0e63 | 4210 | i[34567]86-*-mach*) |
861bb6c1 JL |
4211 | tm_file=i386/mach.h |
4212 | # tmake_file=t-libc-ok | |
4213 | use_collect2=yes | |
4214 | ;; | |
f6cb0e63 | 4215 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 4216 | if test x$elf = xyes |
861bb6c1 JL |
4217 | then |
4218 | tm_file=i386/osfelf.h | |
4219 | use_collect2= | |
4220 | else | |
4221 | tm_file=i386/osfrose.h | |
4222 | use_collect2=yes | |
4223 | fi | |
f6cb0e63 | 4224 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
4225 | xmake_file=i386/x-osfrose |
4226 | tmake_file=i386/t-osf | |
4227 | extra_objs=halfpic.o | |
4228 | ;; | |
f6cb0e63 | 4229 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
4230 | cpu_type=i386 |
4231 | xm_file=i386/xm-go32.h | |
4232 | tm_file=i386/go32-rtems.h | |
4233 | tmake_file="i386/t-go32 t-rtems" | |
4234 | ;; | |
0d4ef09c JS |
4235 | i[34567]86-*-rtemscoff*) |
4236 | cpu_type=i386 | |
4237 | tm_file=i386/rtems.h | |
4238 | tmake_file="i386/t-i386bare t-rtems" | |
4239 | ;; | |
d1476635 | 4240 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) |
f5963e61 JL |
4241 | cpu_type=i386 |
4242 | tm_file=i386/rtemself.h | |
d1476635 JS |
4243 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
4244 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
f5963e61 | 4245 | ;; |
f6cb0e63 | 4246 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
2d092ffa | 4247 | xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h" |
f6cb0e63 | 4248 | xm_defines="USG SVR3" |
861bb6c1 | 4249 | xmake_file=i386/x-sco5 |
f6857708 | 4250 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4251 | tm_file=i386/sco5.h |
75bffa71 | 4252 | if test x$gas = xyes |
44bb0e93 RL |
4253 | then |
4254 | tm_file="i386/sco5gas.h ${tm_file}" | |
4255 | tmake_file=i386/t-sco5gas | |
4256 | else | |
4257 | tmake_file=i386/t-sco5 | |
4258 | fi | |
42902a72 | 4259 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 4260 | ;; |
f6cb0e63 JL |
4261 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
4262 | xm_file="${xm_file} i386/xm-sco.h" | |
2d092ffa | 4263 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX" |
861bb6c1 | 4264 | xmake_file=i386/x-sco4 |
861bb6c1 | 4265 | install_headers_dir=install-headers-cpio |
75bffa71 | 4266 | if test x$stabs = xyes |
861bb6c1 JL |
4267 | then |
4268 | tm_file=i386/sco4dbx.h | |
4269 | tmake_file=i386/t-svr3dbx | |
4270 | extra_parts="svr3.ifile svr3z.rfile" | |
4271 | else | |
4272 | tm_file=i386/sco4.h | |
4273 | tmake_file=i386/t-crtstuff | |
4274 | extra_parts="crtbegin.o crtend.o" | |
4275 | fi | |
090164c0 WB |
4276 | # The default EAFS filesystem supports long file names. |
4277 | # Truncating the target makes $host != $target which | |
4278 | # makes gcc think it is doing a cross-compile. | |
4279 | # truncate_target=yes | |
861bb6c1 | 4280 | ;; |
f6cb0e63 | 4281 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
4282 | xm_file=i386/xm-sco.h |
4283 | xmake_file=i386/x-sco | |
861bb6c1 | 4284 | install_headers_dir=install-headers-cpio |
75bffa71 | 4285 | if test x$stabs = xyes |
861bb6c1 JL |
4286 | then |
4287 | tm_file=i386/scodbx.h | |
4288 | tmake_file=i386/t-svr3dbx | |
4289 | extra_parts="svr3.ifile svr3z.rfile" | |
4290 | else | |
4291 | tm_file=i386/sco.h | |
4292 | extra_parts="crtbegin.o crtend.o" | |
4293 | tmake_file=i386/t-crtstuff | |
4294 | fi | |
4295 | truncate_target=yes | |
4296 | ;; | |
f6cb0e63 | 4297 | i[34567]86-*-solaris2*) |
2d092ffa | 4298 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4299 | xm_defines="USG POSIX SMALL_ARG_MAX" |
0c723ada AO |
4300 | tm_file=i386/sol2.h |
4301 | if test x$gas = xyes; then | |
4302 | # Only needed if gas does not support -s | |
4303 | tm_file="i386/sol2gas.h ${tm_file}" | |
861bb6c1 JL |
4304 | fi |
4305 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 4306 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 4307 | xmake_file=x-svr4 |
4a8021dc AO |
4308 | if test x${enable_threads} = x; then |
4309 | enable_threads=$have_pthread_h | |
4310 | if test x${enable_threads} = x; then | |
4311 | enable_threads=$have_thread_h | |
4312 | fi | |
4313 | fi | |
4314 | if test x${enable_threads} = xyes; then | |
4315 | if test x${have_pthread_h} = xyes; then | |
4316 | thread_file='posix' | |
4317 | else | |
861bb6c1 | 4318 | thread_file='solaris' |
4a8021dc | 4319 | fi |
861bb6c1 JL |
4320 | fi |
4321 | ;; | |
f6cb0e63 | 4322 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
2d092ffa | 4323 | xm_file="xm-alloca.h ${xm_file}" |
48a51bf4 | 4324 | xm_defines="USG POSIX" |
87e11b70 | 4325 | tm_file=i386/sysv5.h |
75bffa71 | 4326 | if test x$stabs = xyes |
fe07d4c1 RL |
4327 | then |
4328 | tm_file="${tm_file} dbx.h" | |
4329 | fi | |
4330 | tmake_file=i386/t-crtpic | |
4331 | xmake_file=x-svr4 | |
4332 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
4333 | if test x$enable_threads = xyes; then |
4334 | thread_file='posix' | |
4335 | fi | |
fe07d4c1 | 4336 | ;; |
f6cb0e63 | 4337 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
2d092ffa | 4338 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4339 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 4340 | tm_file=i386/sysv4.h |
75bffa71 | 4341 | if test x$stabs = xyes |
861bb6c1 JL |
4342 | then |
4343 | tm_file="${tm_file} dbx.h" | |
4344 | fi | |
4345 | tmake_file=i386/t-crtpic | |
4346 | xmake_file=x-svr4 | |
4347 | extra_parts="crtbegin.o crtend.o" | |
4348 | ;; | |
112674fa | 4349 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
2d092ffa | 4350 | xm_file="xm-alloca.h ${xm_file}" |
112674fa RL |
4351 | xm_defines="USG POSIX" |
4352 | tm_file=i386/udk.h | |
4353 | tmake_file="i386/t-crtpic i386/t-udk" | |
4354 | xmake_file=x-svr4 | |
4355 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 4356 | install_headers_dir=install-headers-cpio |
112674fa | 4357 | ;; |
f5963e61 JL |
4358 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
4359 | cpu_type=i386 | |
4360 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
4361 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 4362 | if test x$stabs = xyes |
f5963e61 JL |
4363 | then |
4364 | tm_file=i386/osf1elfgdb.h | |
4365 | else | |
4366 | tm_file=i386/osf1elf.h | |
4367 | fi | |
4368 | tmake_file=i386/t-osf1elf | |
4369 | xmake_file=i386/x-osf1elf | |
4370 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4371 | ;; | |
f6cb0e63 JL |
4372 | i[34567]86-*-sysv*) # Intel 80386's running system V |
4373 | xm_defines="USG SVR3" | |
861bb6c1 | 4374 | xmake_file=i386/x-sysv3 |
75bffa71 | 4375 | if test x$gas = xyes |
861bb6c1 | 4376 | then |
75bffa71 | 4377 | if test x$stabs = xyes |
861bb6c1 JL |
4378 | then |
4379 | tm_file=i386/svr3dbx.h | |
4380 | tmake_file=i386/t-svr3dbx | |
4381 | extra_parts="svr3.ifile svr3z.rfile" | |
4382 | else | |
4383 | tm_file=i386/svr3gas.h | |
4384 | extra_parts="crtbegin.o crtend.o" | |
4385 | tmake_file=i386/t-crtstuff | |
4386 | fi | |
4387 | else | |
4388 | tm_file=i386/sysv3.h | |
4389 | extra_parts="crtbegin.o crtend.o" | |
4390 | tmake_file=i386/t-crtstuff | |
4391 | fi | |
4392 | ;; | |
4393 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 4394 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
4395 | tm_file=i386/vsta.h |
4396 | tmake_file=i386/t-vsta | |
4397 | xmake_file=i386/x-vsta | |
4398 | ;; | |
84530511 | 4399 | i[34567]86-*-win32) |
cae21ae8 GN |
4400 | xm_file="${xm_file} i386/xm-cygwin.h" |
4401 | tmake_file=i386/t-cygwin | |
84530511 | 4402 | tm_file=i386/win32.h |
cae21ae8 | 4403 | xmake_file=i386/x-cygwin |
84530511 | 4404 | extra_objs=winnt.o |
75bffa71 | 4405 | if test x$enable_threads = xyes; then |
84530511 SC |
4406 | thread_file='win32' |
4407 | fi | |
4408 | exeext=.exe | |
4409 | ;; | |
cae21ae8 GN |
4410 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
4411 | xm_file="${xm_file} i386/xm-cygwin.h" | |
4412 | tmake_file=i386/t-cygwin | |
4413 | tm_file=i386/cygwin.h | |
4414 | xmake_file=i386/x-cygwin | |
861bb6c1 | 4415 | extra_objs=winnt.o |
75bffa71 | 4416 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4417 | thread_file='win32' |
4418 | fi | |
4419 | exeext=.exe | |
4420 | ;; | |
f6cb0e63 | 4421 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
4422 | tm_file=i386/mingw32.h |
4423 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 4424 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 4425 | extra_objs=winnt.o |
cae21ae8 | 4426 | xmake_file=i386/x-cygwin |
75bffa71 | 4427 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4428 | thread_file='win32' |
4429 | fi | |
4430 | exeext=.exe | |
f6cb0e63 JL |
4431 | case $machine in |
4432 | *mingw32msv*) | |
4433 | ;; | |
4434 | *minwg32crt* | *mingw32*) | |
4435 | tm_file="${tm_file} i386/crtdll.h" | |
4436 | ;; | |
4437 | esac | |
861bb6c1 | 4438 | ;; |
b27d2bd5 MK |
4439 | i[34567]86-*-uwin*) |
4440 | tm_file=i386/uwin.h | |
4441 | xm_file="${xm_file} i386/xm-uwin.h" | |
2d092ffa | 4442 | xm_defines="USG NO_STAB_H" |
b27d2bd5 MK |
4443 | tmake_file="i386/t-cygwin i386/t-uwin" |
4444 | extra_objs=winnt.o | |
4445 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
4446 | if test x$enable_threads = xyes; then |
4447 | thread_file='win32' | |
4448 | fi | |
4449 | exeext=.exe | |
4450 | ;; | |
052dbd9e | 4451 | i[34567]86-*-interix*) |
615c8231 | 4452 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 4453 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
2d092ffa | 4454 | xm_defines="USG" |
052dbd9e MK |
4455 | tmake_file="i386/t-interix" |
4456 | extra_objs=interix.o | |
4457 | xmake_file=x-interix | |
615c8231 | 4458 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
4459 | thread_file='posix' |
4460 | fi | |
615c8231 | 4461 | if test x$stabs = xyes ; then |
052dbd9e MK |
4462 | tm_file="${tm_file} dbxcoff.h" |
4463 | fi | |
4464 | ;; | |
f6cb0e63 | 4465 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
4466 | tm_file=i386/win-nt.h |
4467 | out_file=i386/i386.c | |
f6cb0e63 | 4468 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
4469 | xmake_file=winnt/x-winnt |
4470 | tmake_file=i386/t-winnt | |
4471 | extra_host_objs="winnt.o oldnames.o" | |
4472 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 4473 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4474 | then |
4475 | extra_programs=ld.exe | |
4476 | fi | |
75bffa71 | 4477 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4478 | thread_file='win32' |
4479 | fi | |
4480 | ;; | |
f6cb0e63 | 4481 | i[34567]86-dg-dgux*) |
2d092ffa | 4482 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4483 | xm_defines="USG POSIX" |
861bb6c1 JL |
4484 | out_file=i386/dgux.c |
4485 | tm_file=i386/dgux.h | |
4486 | tmake_file=i386/t-dgux | |
4487 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
4488 | install_headers_dir=install-headers-cpio |
4489 | ;; | |
4490 | i860-alliant-*) # Alliant FX/2800 | |
4491 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 4492 | xm_file="${xm_file}" |
861bb6c1 JL |
4493 | xmake_file=i860/x-fx2800 |
4494 | tmake_file=i860/t-fx2800 | |
4495 | extra_parts="crtbegin.o crtend.o" | |
4496 | ;; | |
4497 | i860-*-bsd*) | |
4498 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 4499 | if test x$gas = xyes |
861bb6c1 JL |
4500 | then |
4501 | tm_file="${tm_file} i860/bsd-gas.h" | |
4502 | fi | |
4503 | use_collect2=yes | |
4504 | ;; | |
4505 | i860-*-mach*) | |
4506 | tm_file="${tm_file} i860/mach.h" | |
4507 | tmake_file=t-libc-ok | |
4508 | ;; | |
4509 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
4510 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 4511 | xm_defines="USG SVR3" |
861bb6c1 | 4512 | tmake_file=t-osf |
861bb6c1 JL |
4513 | ;; |
4514 | i860-*-sysv3*) | |
4515 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 4516 | xm_defines="USG SVR3" |
861bb6c1 JL |
4517 | xmake_file=i860/x-sysv3 |
4518 | extra_parts="crtbegin.o crtend.o" | |
4519 | ;; | |
4520 | i860-*-sysv4*) | |
4521 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 4522 | xm_defines="USG SVR3" |
861bb6c1 JL |
4523 | xmake_file=i860/x-sysv4 |
4524 | tmake_file=t-svr4 | |
4525 | extra_parts="crtbegin.o crtend.o" | |
4526 | ;; | |
4527 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
4528 | tm_file="${tm_file} i960/vx960.h" | |
4529 | tmake_file=i960/t-vxworks960 | |
4530 | use_collect2=yes | |
7cc34889 | 4531 | thread_file='vxworks' |
861bb6c1 | 4532 | ;; |
a0372c94 | 4533 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
4534 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
4535 | tmake_file=i960/t-vxworks960 | |
4536 | use_collect2=yes | |
7cc34889 | 4537 | thread_file='vxworks' |
861bb6c1 JL |
4538 | ;; |
4539 | i960-wrs-vxworks*) | |
4540 | tm_file="${tm_file} i960/vx960.h" | |
4541 | tmake_file=i960/t-vxworks960 | |
4542 | use_collect2=yes | |
7cc34889 | 4543 | thread_file='vxworks' |
861bb6c1 JL |
4544 | ;; |
4545 | i960-*-coff*) | |
4546 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4547 | tmake_file=i960/t-960bare | |
4548 | use_collect2=yes | |
4549 | ;; | |
4550 | i960-*-rtems) | |
4551 | tmake_file="i960/t-960bare t-rtems" | |
4552 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4553 | use_collect2=yes | |
4554 | ;; | |
4555 | i960-*-*) # Default i960 environment. | |
4556 | use_collect2=yes | |
4557 | ;; | |
c65ebc55 JW |
4558 | ia64*-*-elf*) |
4559 | tm_file=ia64/elf.h | |
4560 | tmake_file="ia64/t-ia64" | |
4561 | target_cpu_default="0" | |
4562 | if test x$gas = xyes | |
4563 | then | |
4564 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
4565 | fi | |
4566 | if test x$gnu_ld = xyes | |
4567 | then | |
4568 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
4569 | fi | |
4570 | ;; | |
4571 | ia64*-*-linux*) | |
4572 | tm_file=ia64/linux.h | |
4573 | tmake_file="t-linux ia64/t-ia64" | |
4574 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
4575 | if test x$enable_threads = xyes; then | |
4576 | thread_file='posix' | |
4577 | fi | |
4578 | ;; | |
861bb6c1 JL |
4579 | m32r-*-elf*) |
4580 | extra_parts="crtinit.o crtfini.o" | |
4581 | ;; | |
4582 | m68000-convergent-sysv*) | |
4583 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4584 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4585 | xm_defines=USG | |
861bb6c1 JL |
4586 | use_collect2=yes |
4587 | extra_headers=math-68881.h | |
4588 | ;; | |
4589 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4590 | tm_file=m68k/hp2bsd.h | |
4591 | xmake_file=m68k/x-hp2bsd | |
4592 | use_collect2=yes | |
4593 | extra_headers=math-68881.h | |
4594 | ;; | |
4595 | m68000-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4596 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4597 | xm_defines="USG" |
75bffa71 | 4598 | if test x$gas = xyes |
861bb6c1 JL |
4599 | then |
4600 | xmake_file=m68k/x-hp320g | |
4601 | tm_file=m68k/hp310g.h | |
4602 | else | |
4603 | xmake_file=m68k/x-hp320 | |
4604 | tm_file=m68k/hp310.h | |
4605 | fi | |
861bb6c1 JL |
4606 | install_headers_dir=install-headers-cpio |
4607 | use_collect2=yes | |
4608 | extra_headers=math-68881.h | |
4609 | ;; | |
4610 | m68000-sun-sunos3*) | |
4611 | tm_file=m68k/sun2.h | |
4612 | use_collect2=yes | |
4613 | extra_headers=math-68881.h | |
4614 | ;; | |
4615 | m68000-sun-sunos4*) | |
4616 | tm_file=m68k/sun2o4.h | |
4617 | use_collect2=yes | |
4618 | extra_headers=math-68881.h | |
4619 | ;; | |
4620 | m68000-att-sysv*) | |
f6cb0e63 JL |
4621 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4622 | xm_defines=USG | |
75bffa71 | 4623 | if test x$gas = xyes |
861bb6c1 JL |
4624 | then |
4625 | tm_file=m68k/3b1g.h | |
4626 | else | |
4627 | tm_file=m68k/3b1.h | |
4628 | fi | |
4629 | use_collect2=yes | |
4630 | extra_headers=math-68881.h | |
4631 | ;; | |
4632 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4633 | xm_defines="USG AUX" |
861bb6c1 | 4634 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4635 | install_headers_dir=install-headers-cpio |
4636 | extra_headers=math-68881.h | |
4637 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4638 | tm_file= | |
75bffa71 | 4639 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4640 | then |
4641 | tm_file="${tm_file} m68k/auxgld.h" | |
4642 | else | |
4643 | tm_file="${tm_file} m68k/auxld.h" | |
4644 | fi | |
75bffa71 | 4645 | if test "$gas" = yes |
861bb6c1 JL |
4646 | then |
4647 | tm_file="${tm_file} m68k/auxgas.h" | |
4648 | else | |
4649 | tm_file="${tm_file} m68k/auxas.h" | |
4650 | fi | |
4651 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4652 | float_format=m68k |
861bb6c1 JL |
4653 | ;; |
4654 | m68k-apollo-*) | |
4655 | tm_file=m68k/apollo68.h | |
4656 | xmake_file=m68k/x-apollo68 | |
4657 | use_collect2=yes | |
4658 | extra_headers=math-68881.h | |
0a95276e | 4659 | float_format=m68k |
861bb6c1 JL |
4660 | ;; |
4661 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4662 | if test x$gas = xyes |
861bb6c1 JL |
4663 | then |
4664 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4665 | xm_defines=USG |
861bb6c1 JL |
4666 | else |
4667 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4668 | exit 1 | |
4669 | fi | |
4670 | extra_headers=math-68881.h | |
4671 | ;; | |
4672 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4673 | if test x$gas = xyes |
861bb6c1 | 4674 | then |
75bffa71 | 4675 | if test x$stabs = xyes |
861bb6c1 JL |
4676 | then |
4677 | tm_file=m68k/dpx2cdbx.h | |
4678 | else | |
4679 | tm_file=m68k/dpx2g.h | |
4680 | fi | |
4681 | else | |
4682 | tm_file=m68k/dpx2.h | |
4683 | fi | |
f6cb0e63 JL |
4684 | xm_file="xm-alloca.h ${xm_file}" |
4685 | xm_defines=USG | |
861bb6c1 JL |
4686 | xmake_file=m68k/x-dpx2 |
4687 | use_collect2=yes | |
4688 | extra_headers=math-68881.h | |
4689 | ;; | |
4690 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4691 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4692 | xm_file="xm-alloca.h ${xm_file}" |
4693 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4694 | tmake_file=t-svr4 |
4695 | extra_parts="crtbegin.o crtend.o" | |
4696 | extra_headers=math-68881.h | |
0a95276e | 4697 | float_format=m68k |
861bb6c1 JL |
4698 | ;; |
4699 | m68k-motorola-sysv*) | |
4700 | tm_file=m68k/mot3300.h | |
f6cb0e63 | 4701 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
75bffa71 | 4702 | if test x$gas = xyes |
861bb6c1 JL |
4703 | then |
4704 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4705 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4706 | then |
4707 | tmake_file=m68k/t-mot3300-gald | |
4708 | else | |
4709 | tmake_file=m68k/t-mot3300-gas | |
4710 | use_collect2=yes | |
4711 | fi | |
4712 | else | |
4713 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4714 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4715 | then |
4716 | tmake_file=m68k/t-mot3300-gld | |
4717 | else | |
4718 | tmake_file=m68k/t-mot3300 | |
4719 | use_collect2=yes | |
4720 | fi | |
4721 | fi | |
4722 | gdb_needs_out_file_path=yes | |
4723 | extra_parts="crt0.o mcrt0.o" | |
4724 | extra_headers=math-68881.h | |
0a95276e | 4725 | float_format=m68k |
861bb6c1 JL |
4726 | ;; |
4727 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4728 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4729 | xm_defines="USG SVR3" |
861bb6c1 JL |
4730 | xmake_file=m68k/x-tower |
4731 | extra_parts="crtbegin.o crtend.o" | |
4732 | extra_headers=math-68881.h | |
4733 | ;; | |
4734 | m68k-plexus-sysv*) | |
4735 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4736 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4737 | xm_defines=USG | |
861bb6c1 JL |
4738 | use_collect2=yes |
4739 | extra_headers=math-68881.h | |
4740 | ;; | |
4741 | m68k-tti-*) | |
4742 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4743 | xm_file="xm-alloca.h ${xm_file}" |
4744 | xm_defines=USG | |
861bb6c1 JL |
4745 | extra_headers=math-68881.h |
4746 | ;; | |
4747 | m68k-crds-unos*) | |
f6cb0e63 JL |
4748 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4749 | xm_defines="USG unos" | |
861bb6c1 JL |
4750 | xmake_file=m68k/x-crds |
4751 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4752 | use_collect2=yes |
4753 | extra_headers=math-68881.h | |
4754 | ;; | |
4755 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4756 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4757 | xm_file="xm-alloca.h ${xm_file}" |
4758 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4759 | xmake_file=m68k/x-amix |
4760 | tmake_file=t-svr4 | |
4761 | extra_parts="crtbegin.o crtend.o" | |
4762 | extra_headers=math-68881.h | |
0a95276e | 4763 | float_format=m68k |
861bb6c1 JL |
4764 | ;; |
4765 | m68k-ccur-rtu) | |
4766 | tm_file=m68k/ccur-GAS.h | |
4767 | xmake_file=m68k/x-ccur | |
4768 | extra_headers=math-68881.h | |
4769 | use_collect2=yes | |
0a95276e | 4770 | float_format=m68k |
861bb6c1 JL |
4771 | ;; |
4772 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4773 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 4774 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
4775 | use_collect2=yes |
4776 | extra_headers=math-68881.h | |
0a95276e | 4777 | float_format=m68k |
861bb6c1 JL |
4778 | ;; |
4779 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4780 | tm_file=m68k/hp3bsd.h | |
4781 | use_collect2=yes | |
4782 | extra_headers=math-68881.h | |
0a95276e | 4783 | float_format=m68k |
861bb6c1 JL |
4784 | ;; |
4785 | m68k-isi-bsd*) | |
75bffa71 | 4786 | if test x$with_fp = xno |
861bb6c1 JL |
4787 | then |
4788 | tm_file=m68k/isi-nfp.h | |
4789 | else | |
4790 | tm_file=m68k/isi.h | |
0a95276e | 4791 | float_format=m68k |
861bb6c1 JL |
4792 | fi |
4793 | use_collect2=yes | |
4794 | extra_headers=math-68881.h | |
4795 | ;; | |
4796 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
1a87de8d | 4797 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4798 | xm_defines="USG" |
75bffa71 | 4799 | if test x$gas = xyes |
861bb6c1 JL |
4800 | then |
4801 | xmake_file=m68k/x-hp320g | |
4802 | tm_file=m68k/hp320g.h | |
4803 | else | |
4804 | xmake_file=m68k/x-hp320 | |
4805 | tm_file=m68k/hpux7.h | |
4806 | fi | |
861bb6c1 JL |
4807 | install_headers_dir=install-headers-cpio |
4808 | use_collect2=yes | |
4809 | extra_headers=math-68881.h | |
0a95276e | 4810 | float_format=m68k |
861bb6c1 JL |
4811 | ;; |
4812 | m68k-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4813 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4814 | xm_defines="USG" |
75bffa71 | 4815 | if test x$gas = xyes |
861bb6c1 JL |
4816 | then |
4817 | xmake_file=m68k/x-hp320g | |
4818 | tm_file=m68k/hp320g.h | |
4819 | else | |
4820 | xmake_file=m68k/x-hp320 | |
4821 | tm_file=m68k/hp320.h | |
4822 | fi | |
861bb6c1 JL |
4823 | install_headers_dir=install-headers-cpio |
4824 | use_collect2=yes | |
4825 | extra_headers=math-68881.h | |
0a95276e | 4826 | float_format=m68k |
861bb6c1 JL |
4827 | ;; |
4828 | m68k-sun-mach*) | |
4829 | tm_file=m68k/sun3mach.h | |
4830 | use_collect2=yes | |
4831 | extra_headers=math-68881.h | |
0a95276e | 4832 | float_format=m68k |
861bb6c1 JL |
4833 | ;; |
4834 | m68k-sony-newsos3*) | |
75bffa71 | 4835 | if test x$gas = xyes |
861bb6c1 JL |
4836 | then |
4837 | tm_file=m68k/news3gas.h | |
4838 | else | |
4839 | tm_file=m68k/news3.h | |
4840 | fi | |
4841 | use_collect2=yes | |
4842 | extra_headers=math-68881.h | |
0a95276e | 4843 | float_format=m68k |
861bb6c1 JL |
4844 | ;; |
4845 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4846 | if test x$gas = xyes |
861bb6c1 JL |
4847 | then |
4848 | tm_file=m68k/newsgas.h | |
4849 | else | |
4850 | tm_file=m68k/news.h | |
4851 | fi | |
4852 | use_collect2=yes | |
4853 | extra_headers=math-68881.h | |
0a95276e | 4854 | float_format=m68k |
861bb6c1 JL |
4855 | ;; |
4856 | m68k-next-nextstep2*) | |
4857 | tm_file=m68k/next21.h | |
f6cb0e63 | 4858 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4859 | tmake_file=m68k/t-next |
4860 | xmake_file=m68k/x-next | |
4861 | extra_objs=nextstep.o | |
4862 | extra_headers=math-68881.h | |
4863 | use_collect2=yes | |
0a95276e | 4864 | float_format=m68k |
861bb6c1 | 4865 | ;; |
016cebc3 | 4866 | m68k-next-nextstep[34]*) |
861bb6c1 | 4867 | tm_file=m68k/next.h |
f6cb0e63 | 4868 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4869 | tmake_file=m68k/t-next |
4870 | xmake_file=m68k/x-next | |
4871 | extra_objs=nextstep.o | |
750930c1 | 4872 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4873 | extra_headers=math-68881.h |
0a95276e | 4874 | float_format=m68k |
75bffa71 | 4875 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4876 | thread_file='mach' |
4877 | fi | |
4878 | ;; | |
4879 | m68k-sun-sunos3*) | |
75bffa71 | 4880 | if test x$with_fp = xno |
861bb6c1 JL |
4881 | then |
4882 | tm_file=m68k/sun3n3.h | |
4883 | else | |
4884 | tm_file=m68k/sun3o3.h | |
0a95276e | 4885 | float_format=m68k |
861bb6c1 JL |
4886 | fi |
4887 | use_collect2=yes | |
4888 | extra_headers=math-68881.h | |
4889 | ;; | |
4890 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4891 | if test x$with_fp = xno |
861bb6c1 JL |
4892 | then |
4893 | tm_file=m68k/sun3n.h | |
4894 | else | |
4895 | tm_file=m68k/sun3.h | |
0a95276e | 4896 | float_format=m68k |
861bb6c1 | 4897 | fi |
861bb6c1 JL |
4898 | use_collect2=yes |
4899 | extra_headers=math-68881.h | |
4900 | ;; | |
4901 | m68k-wrs-vxworks*) | |
4902 | tm_file=m68k/vxm68k.h | |
4903 | tmake_file=m68k/t-vxworks68 | |
4904 | extra_headers=math-68881.h | |
7cc34889 | 4905 | thread_file='vxworks' |
0a95276e | 4906 | float_format=m68k |
861bb6c1 JL |
4907 | ;; |
4908 | m68k-*-aout*) | |
4909 | tmake_file=m68k/t-m68kbare | |
4910 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4911 | extra_headers=math-68881.h | |
0a95276e | 4912 | float_format=m68k |
861bb6c1 JL |
4913 | ;; |
4914 | m68k-*-coff*) | |
4915 | tmake_file=m68k/t-m68kbare | |
4916 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4917 | extra_headers=math-68881.h | |
0a95276e | 4918 | float_format=m68k |
861bb6c1 | 4919 | ;; |
d1be3be3 | 4920 | m68020-*-elf* | m68k-*-elf*) |
7aae67a2 | 4921 | tm_file="m68k/m68020-elf.h" |
d1be3be3 JW |
4922 | xm_file=m68k/xm-m68kv.h |
4923 | tmake_file=m68k/t-m68kelf | |
4924 | header_files=math-68881.h | |
4925 | ;; | |
861bb6c1 | 4926 | m68k-*-lynxos*) |
75bffa71 | 4927 | if test x$gas = xyes |
861bb6c1 JL |
4928 | then |
4929 | tm_file=m68k/lynx.h | |
4930 | else | |
4931 | tm_file=m68k/lynx-ng.h | |
4932 | fi | |
4933 | xm_file=m68k/xm-lynx.h | |
4934 | xmake_file=x-lynx | |
4935 | tmake_file=m68k/t-lynx | |
4936 | extra_headers=math-68881.h | |
0a95276e | 4937 | float_format=m68k |
861bb6c1 | 4938 | ;; |
58600d24 | 4939 | m68k*-*-netbsd*) |
861bb6c1 | 4940 | tm_file=m68k/netbsd.h |
861bb6c1 | 4941 | tmake_file=t-netbsd |
0a95276e | 4942 | float_format=m68k |
ed4acb3b | 4943 | use_collect2=yes |
861bb6c1 | 4944 | ;; |
1b4a979b ME |
4945 | m68k*-*-openbsd*) |
4946 | float_format=m68k | |
4947 | # we need collect2 until our bug is fixed... | |
4948 | use_collect2=yes | |
4949 | ;; | |
861bb6c1 | 4950 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4951 | xm_file="xm-alloca.h ${xm_file}" |
4952 | xm_defines=USG | |
861bb6c1 JL |
4953 | xmake_file=m68k/x-m68kv |
4954 | extra_parts="crtbegin.o crtend.o" | |
4955 | extra_headers=math-68881.h | |
0a95276e | 4956 | float_format=m68k |
861bb6c1 JL |
4957 | ;; |
4958 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4959 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4960 | xm_file="xm-alloca.h ${xm_file}" |
4961 | xm_defines=USG | |
861bb6c1 JL |
4962 | tmake_file=t-svr4 |
4963 | extra_parts="crtbegin.o crtend.o" | |
4964 | extra_headers=math-68881.h | |
0a95276e | 4965 | float_format=m68k |
861bb6c1 | 4966 | ;; |
956d6950 | 4967 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4968 | # with a.out format |
861bb6c1 JL |
4969 | xmake_file=x-linux |
4970 | tm_file=m68k/linux-aout.h | |
4971 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 4972 | extra_headers=math-68881.h |
0a95276e | 4973 | float_format=m68k |
861bb6c1 JL |
4974 | gnu_ld=yes |
4975 | ;; | |
956d6950 | 4976 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4977 | # with ELF format using the |
4978 | # GNU/Linux C library 5 | |
4979 | xmake_file=x-linux | |
861bb6c1 JL |
4980 | tm_file=m68k/linux.h |
4981 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4982 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4983 | extra_headers=math-68881.h |
0a95276e | 4984 | float_format=m68k |
861bb6c1 JL |
4985 | gnu_ld=yes |
4986 | ;; | |
956d6950 | 4987 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4988 | # with ELF format using glibc 2 |
4989 | # aka the GNU/Linux C library 6. | |
4990 | xmake_file=x-linux | |
861bb6c1 JL |
4991 | tm_file=m68k/linux.h |
4992 | tmake_file="t-linux m68k/t-linux" | |
4993 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4994 | extra_headers=math-68881.h |
0a95276e | 4995 | float_format=m68k |
861bb6c1 | 4996 | gnu_ld=yes |
75bffa71 | 4997 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4998 | thread_file='posix' |
4999 | fi | |
5000 | ;; | |
5001 | m68k-*-psos*) | |
5002 | tmake_file=m68k/t-m68kbare | |
5003 | tm_file=m68k/m68k-psos.h | |
5004 | extra_headers=math-68881.h | |
0a95276e | 5005 | float_format=m68k |
861bb6c1 | 5006 | ;; |
6e5138f0 | 5007 | m68k-*-rtemscoff*) |
861bb6c1 JL |
5008 | tmake_file="m68k/t-m68kbare t-rtems" |
5009 | tm_file=m68k/rtems.h | |
5010 | extra_headers=math-68881.h | |
0a95276e | 5011 | float_format=m68k |
861bb6c1 | 5012 | ;; |
6e5138f0 | 5013 | m68k-*-rtemself*|m68k-*-rtems*) |
d1476635 JS |
5014 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" |
5015 | tm_file=m68k/rtemself.h | |
5016 | extra_headers=math-68881.h | |
5017 | float_format=m68k | |
5018 | ;; | |
861bb6c1 JL |
5019 | m88k-dg-dgux*) |
5020 | case $machine in | |
5021 | m88k-dg-dguxbcs*) | |
5022 | tm_file=m88k/dguxbcs.h | |
5023 | tmake_file=m88k/t-dguxbcs | |
5024 | ;; | |
5025 | *) | |
5026 | tm_file=m88k/dgux.h | |
5027 | tmake_file=m88k/t-dgux | |
5028 | ;; | |
5029 | esac | |
5030 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 5031 | xmake_file=m88k/x-dgux |
75bffa71 | 5032 | if test x$gas = xyes |
861bb6c1 JL |
5033 | then |
5034 | tmake_file=m88k/t-dgux-gas | |
5035 | fi | |
861bb6c1 JL |
5036 | ;; |
5037 | m88k-dolphin-sysv3*) | |
5038 | tm_file=m88k/dolph.h | |
5039 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5040 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5041 | xmake_file=m88k/x-dolph |
75bffa71 | 5042 | if test x$gas = xyes |
861bb6c1 JL |
5043 | then |
5044 | tmake_file=m88k/t-m88k-gas | |
5045 | fi | |
5046 | ;; | |
5047 | m88k-tektronix-sysv3) | |
5048 | tm_file=m88k/tekXD88.h | |
5049 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5050 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5051 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 5052 | if test x$gas = xyes |
861bb6c1 JL |
5053 | then |
5054 | tmake_file=m88k/t-m88k-gas | |
5055 | fi | |
5056 | ;; | |
5057 | m88k-*-aout*) | |
5058 | tm_file=m88k/m88k-aout.h | |
5059 | ;; | |
5060 | m88k-*-coff*) | |
5061 | tm_file=m88k/m88k-coff.h | |
5062 | tmake_file=m88k/t-bug | |
5063 | ;; | |
5064 | m88k-*-luna*) | |
5065 | tm_file=m88k/luna.h | |
5066 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 5067 | if test x$gas = xyes |
861bb6c1 JL |
5068 | then |
5069 | tmake_file=m88k/t-luna-gas | |
5070 | else | |
5071 | tmake_file=m88k/t-luna | |
5072 | fi | |
5073 | ;; | |
1b4a979b ME |
5074 | m88k-*-openbsd*) |
5075 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
5076 | ;; | |
861bb6c1 JL |
5077 | m88k-*-sysv3*) |
5078 | tm_file=m88k/sysv3.h | |
5079 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5080 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5081 | xmake_file=m88k/x-sysv3 |
75bffa71 | 5082 | if test x$gas = xyes |
861bb6c1 JL |
5083 | then |
5084 | tmake_file=m88k/t-m88k-gas | |
5085 | fi | |
5086 | ;; | |
5087 | m88k-*-sysv4*) | |
5088 | tm_file=m88k/sysv4.h | |
5089 | extra_parts="crtbegin.o crtend.o" | |
5090 | xmake_file=m88k/x-sysv4 | |
5091 | tmake_file=m88k/t-sysv4 | |
5092 | ;; | |
789a3090 NC |
5093 | mcore-*-elf) |
5094 | tm_file=mcore/mcore-elf.h | |
5095 | tmake_file=mcore/t-mcore | |
5096 | ;; | |
5097 | mcore-*-pe*) | |
5098 | tm_file=mcore/mcore-pe.h | |
5099 | tmake_file=mcore/t-mcore-pe | |
5100 | ;; | |
861bb6c1 | 5101 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 |
9b5c756a JL |
5102 | if test "x$gnu_ld" = xyes |
5103 | then | |
5104 | tm_file="mips/iris6.h mips/iris6gld.h" | |
9b5c756a JL |
5105 | else |
5106 | tm_file=mips/iris6.h | |
9b5c756a | 5107 | fi |
30f08b39 | 5108 | tmake_file=mips/t-iris6 |
861bb6c1 | 5109 | xm_file=mips/xm-iris6.h |
861bb6c1 | 5110 | xmake_file=mips/x-iris6 |
04069e5c | 5111 | # if test x$enable_threads = xyes; then |
6e148807 | 5112 | # thread_file='irix' |
04069e5c | 5113 | # fi |
861bb6c1 | 5114 | ;; |
98bd9f0f | 5115 | mips-wrs-vxworks) |
7aae67a2 | 5116 | tm_file="mips/elf.h mips/vxworks.h" |
98bd9f0f DB |
5117 | tmake_file=mips/t-ecoff |
5118 | gas=yes | |
5119 | gnu_ld=yes | |
5120 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 5121 | thread_file='vxworks' |
98bd9f0f | 5122 | ;; |
861bb6c1 | 5123 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 5124 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
5125 | xm_defines=USG |
5126 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5127 | xmake_file=mips/x-iris |
5128 | tmake_file=mips/t-cross64 | |
5129 | # See comment in mips/iris[56].h files. | |
5130 | use_collect2=yes | |
04069e5c | 5131 | # if test x$enable_threads = xyes; then |
6e148807 | 5132 | # thread_file='irix' |
04069e5c | 5133 | # fi |
861bb6c1 JL |
5134 | ;; |
5135 | mips-sni-sysv4) | |
75bffa71 | 5136 | if test x$gas = xyes |
861bb6c1 | 5137 | then |
75bffa71 | 5138 | if test x$stabs = xyes |
861bb6c1 JL |
5139 | then |
5140 | tm_file=mips/iris5gdb.h | |
5141 | else | |
f6cb0e63 | 5142 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
5143 | fi |
5144 | else | |
5145 | tm_file=mips/sni-svr4.h | |
5146 | fi | |
f6cb0e63 | 5147 | xm_defines=USG |
861bb6c1 JL |
5148 | xmake_file=mips/x-sni-svr4 |
5149 | tmake_file=mips/t-mips-gas | |
75bffa71 | 5150 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5151 | then |
5152 | use_collect2=yes | |
5153 | fi | |
861bb6c1 JL |
5154 | ;; |
5155 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 5156 | if test x$gas = xyes |
861bb6c1 | 5157 | then |
f6cb0e63 | 5158 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 5159 | if test x$stabs = xyes |
861bb6c1 JL |
5160 | then |
5161 | tm_file="${tm_file} dbx.h" | |
5162 | fi | |
5163 | else | |
5164 | tm_file=mips/iris5.h | |
5165 | fi | |
74c55ab0 JW |
5166 | xm_defines=USG |
5167 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5168 | xmake_file=mips/x-iris |
5169 | # mips-tfile doesn't work yet | |
5170 | tmake_file=mips/t-mips-gas | |
5171 | # See comment in mips/iris5.h file. | |
5172 | use_collect2=yes | |
04069e5c | 5173 | # if test x$enable_threads = xyes; then |
6e148807 | 5174 | # thread_file='irix' |
04069e5c | 5175 | # fi |
861bb6c1 JL |
5176 | ;; |
5177 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 5178 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5179 | if test x$stabs = xyes; then |
861bb6c1 JL |
5180 | tm_file="${tm_file} dbx.h" |
5181 | fi | |
f6cb0e63 | 5182 | xm_defines=USG |
861bb6c1 | 5183 | xmake_file=mips/x-iris |
75bffa71 | 5184 | if test x$gas = xyes |
861bb6c1 JL |
5185 | then |
5186 | tmake_file=mips/t-mips-gas | |
5187 | else | |
5188 | extra_passes="mips-tfile mips-tdump" | |
5189 | fi | |
75bffa71 | 5190 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5191 | then |
5192 | use_collect2=yes | |
5193 | fi | |
04069e5c | 5194 | # if test x$enable_threads = xyes; then |
6e148807 | 5195 | # thread_file='irix' |
04069e5c | 5196 | # fi |
861bb6c1 JL |
5197 | ;; |
5198 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 5199 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5200 | if test x$stabs = xyes; then |
861bb6c1 JL |
5201 | tm_file="${tm_file} dbx.h" |
5202 | fi | |
f6cb0e63 | 5203 | xm_defines=USG |
861bb6c1 | 5204 | xmake_file=mips/x-iris |
75bffa71 | 5205 | if test x$gas = xyes |
861bb6c1 JL |
5206 | then |
5207 | tmake_file=mips/t-mips-gas | |
5208 | else | |
5209 | extra_passes="mips-tfile mips-tdump" | |
5210 | fi | |
75bffa71 | 5211 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5212 | then |
5213 | use_collect2=yes | |
5214 | fi | |
04069e5c | 5215 | # if test x$enable_threads = xyes; then |
6e148807 | 5216 | # thread_file='irix' |
04069e5c | 5217 | # fi |
861bb6c1 JL |
5218 | ;; |
5219 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 5220 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 5221 | if test x$stabs = xyes; then |
861bb6c1 JL |
5222 | tm_file="${tm_file} dbx.h" |
5223 | fi | |
f6cb0e63 | 5224 | xm_defines=USG |
861bb6c1 | 5225 | xmake_file=mips/x-iris3 |
75bffa71 | 5226 | if test x$gas = xyes |
861bb6c1 JL |
5227 | then |
5228 | tmake_file=mips/t-mips-gas | |
5229 | else | |
5230 | extra_passes="mips-tfile mips-tdump" | |
5231 | fi | |
75bffa71 | 5232 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5233 | then |
5234 | use_collect2=yes | |
5235 | fi | |
5236 | ;; | |
5237 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 5238 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
5239 | xmake_file=mips/x-osfrose |
5240 | tmake_file=mips/t-osfrose | |
5241 | extra_objs=halfpic.o | |
5242 | use_collect2=yes | |
5243 | ;; | |
5244 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
5245 | tm_file=mips/dec-osf1.h | |
75bffa71 | 5246 | if test x$stabs = xyes; then |
861bb6c1 JL |
5247 | tm_file="${tm_file} dbx.h" |
5248 | fi | |
5249 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 5250 | if test x$gas = xyes |
861bb6c1 JL |
5251 | then |
5252 | tmake_file=mips/t-mips-gas | |
5253 | else | |
5254 | tmake_file=mips/t-ultrix | |
5255 | extra_passes="mips-tfile mips-tdump" | |
5256 | fi | |
75bffa71 | 5257 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5258 | then |
5259 | use_collect2=yes | |
5260 | fi | |
5261 | ;; | |
5262 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
5263 | tm_file=mips/dec-bsd.h | |
75bffa71 | 5264 | if test x$gas = xyes |
861bb6c1 JL |
5265 | then |
5266 | tmake_file=mips/t-mips-gas | |
5267 | else | |
5268 | tmake_file=mips/t-ultrix | |
5269 | extra_passes="mips-tfile mips-tdump" | |
5270 | fi | |
75bffa71 | 5271 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5272 | then |
5273 | use_collect2=yes | |
5274 | fi | |
5275 | ;; | |
58600d24 | 5276 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 5277 | tm_file=mips/netbsd.h |
be1ed94f | 5278 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5279 | tmake_file=t-netbsd |
861bb6c1 | 5280 | ;; |
54953b66 | 5281 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 | 5282 | xmake_file=x-linux |
54953b66 UD |
5283 | case $machine in |
5284 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
5285 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
5286 | esac | |
e86e6730 | 5287 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
18cae839 RL |
5288 | gnu_ld=yes |
5289 | gas=yes | |
e86e6730 AJ |
5290 | if test x$enable_threads = xyes; then |
5291 | thread_file='posix' | |
5292 | fi | |
18cae839 | 5293 | ;; |
1b4a979b ME |
5294 | mips*el-*-openbsd*) # mips little endian |
5295 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1b4a979b ME |
5296 | ;; |
5297 | mips*-*-openbsd*) # mips big endian | |
5298 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
9e28024a | 5299 | tm_file="mips/openbsd-be.h ${tm_file}" |
1b4a979b | 5300 | ;; |
861bb6c1 | 5301 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 5302 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 5303 | if test x$stabs = xyes; then |
861bb6c1 JL |
5304 | tm_file="${tm_file} dbx.h" |
5305 | fi | |
75bffa71 | 5306 | if test x$gas = xyes |
861bb6c1 JL |
5307 | then |
5308 | tmake_file=mips/t-mips-gas | |
5309 | else | |
5310 | extra_passes="mips-tfile mips-tdump" | |
5311 | fi | |
75bffa71 | 5312 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5313 | then |
5314 | use_collect2=yes | |
5315 | fi | |
5316 | xmake_file=mips/x-sony | |
5317 | ;; | |
5318 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
5319 | # That is based on svr4. | |
5320 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 5321 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 5322 | if test x$stabs = xyes; then |
861bb6c1 JL |
5323 | tm_file="${tm_file} dbx.h" |
5324 | fi | |
f6cb0e63 | 5325 | xm_defines=USG |
75bffa71 | 5326 | if test x$gas = xyes |
861bb6c1 JL |
5327 | then |
5328 | tmake_file=mips/t-mips-gas | |
5329 | else | |
5330 | extra_passes="mips-tfile mips-tdump" | |
5331 | fi | |
75bffa71 | 5332 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5333 | then |
5334 | use_collect2=yes | |
5335 | fi | |
5336 | ;; | |
5337 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 5338 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 5339 | if test x$stabs = xyes; then |
861bb6c1 JL |
5340 | tm_file="${tm_file} dbx.h" |
5341 | fi | |
f6cb0e63 | 5342 | xm_defines=USG |
861bb6c1 | 5343 | xmake_file=mips/x-sysv |
75bffa71 | 5344 | if test x$gas = xyes |
861bb6c1 JL |
5345 | then |
5346 | tmake_file=mips/t-mips-gas | |
5347 | extra_parts="crtbegin.o crtend.o" | |
5348 | else | |
5349 | tmake_file=mips/t-mips | |
5350 | extra_passes="mips-tfile mips-tdump" | |
5351 | fi | |
75bffa71 | 5352 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5353 | then |
5354 | use_collect2=yes | |
5355 | fi | |
861bb6c1 JL |
5356 | ;; |
5357 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 5358 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 5359 | if test x$stabs = xyes; then |
861bb6c1 JL |
5360 | tm_file="${tm_file} dbx.h" |
5361 | fi | |
5362 | xmake_file=mips/x-ultrix | |
75bffa71 | 5363 | if test x$gas = xyes |
861bb6c1 JL |
5364 | then |
5365 | tmake_file=mips/t-mips-gas | |
5366 | else | |
5367 | tmake_file=mips/t-ultrix | |
5368 | extra_passes="mips-tfile mips-tdump" | |
5369 | fi | |
75bffa71 | 5370 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5371 | then |
5372 | use_collect2=yes | |
5373 | fi | |
5374 | ;; | |
5375 | mips-*-riscos[56789]bsd*) | |
5376 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 5377 | if test x$stabs = xyes; then |
861bb6c1 JL |
5378 | tm_file="${tm_file} dbx.h" |
5379 | fi | |
75bffa71 | 5380 | if test x$gas = xyes |
861bb6c1 JL |
5381 | then |
5382 | tmake_file=mips/t-bsd-gas | |
5383 | else | |
5384 | tmake_file=mips/t-bsd | |
5385 | extra_passes="mips-tfile mips-tdump" | |
5386 | fi | |
75bffa71 | 5387 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5388 | then |
5389 | use_collect2=yes | |
5390 | fi | |
861bb6c1 JL |
5391 | ;; |
5392 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 5393 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 5394 | if test x$stabs = xyes; then |
861bb6c1 JL |
5395 | tm_file="${tm_file} dbx.h" |
5396 | fi | |
75bffa71 | 5397 | if test x$gas = xyes |
861bb6c1 JL |
5398 | then |
5399 | tmake_file=mips/t-bsd-gas | |
5400 | else | |
5401 | tmake_file=mips/t-bsd | |
5402 | extra_passes="mips-tfile mips-tdump" | |
5403 | fi | |
75bffa71 | 5404 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5405 | then |
5406 | use_collect2=yes | |
5407 | fi | |
861bb6c1 JL |
5408 | ;; |
5409 | mips-*-riscos[56789]sysv4*) | |
5410 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 5411 | if test x$stabs = xyes; then |
861bb6c1 JL |
5412 | tm_file="${tm_file} dbx.h" |
5413 | fi | |
861bb6c1 | 5414 | xmake_file=mips/x-sysv |
75bffa71 | 5415 | if test x$gas = xyes |
861bb6c1 JL |
5416 | then |
5417 | tmake_file=mips/t-svr4-gas | |
5418 | else | |
5419 | tmake_file=mips/t-svr4 | |
5420 | extra_passes="mips-tfile mips-tdump" | |
5421 | fi | |
75bffa71 | 5422 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5423 | then |
5424 | use_collect2=yes | |
5425 | fi | |
861bb6c1 JL |
5426 | ;; |
5427 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 5428 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 5429 | if test x$stabs = xyes; then |
861bb6c1 JL |
5430 | tm_file="${tm_file} dbx.h" |
5431 | fi | |
f6cb0e63 | 5432 | xm_defines=USG |
861bb6c1 | 5433 | xmake_file=mips/x-sysv |
75bffa71 | 5434 | if test x$gas = xyes |
861bb6c1 JL |
5435 | then |
5436 | tmake_file=mips/t-svr4-gas | |
5437 | else | |
5438 | tmake_file=mips/t-svr4 | |
5439 | extra_passes="mips-tfile mips-tdump" | |
5440 | fi | |
75bffa71 | 5441 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5442 | then |
5443 | use_collect2=yes | |
5444 | fi | |
861bb6c1 JL |
5445 | ;; |
5446 | mips-*-riscos[56789]sysv*) | |
5447 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 5448 | if test x$stabs = xyes; then |
861bb6c1 JL |
5449 | tm_file="${tm_file} dbx.h" |
5450 | fi | |
f6cb0e63 | 5451 | xm_defines=USG |
861bb6c1 | 5452 | xmake_file=mips/x-sysv |
75bffa71 | 5453 | if test x$gas = xyes |
861bb6c1 JL |
5454 | then |
5455 | tmake_file=mips/t-svr3-gas | |
5456 | else | |
5457 | tmake_file=mips/t-svr3 | |
5458 | extra_passes="mips-tfile mips-tdump" | |
5459 | fi | |
75bffa71 | 5460 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5461 | then |
5462 | use_collect2=yes | |
5463 | fi | |
861bb6c1 JL |
5464 | ;; |
5465 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 5466 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 5467 | if test x$stabs = xyes; then |
861bb6c1 JL |
5468 | tm_file="${tm_file} dbx.h" |
5469 | fi | |
f6cb0e63 | 5470 | xm_defines=USG |
861bb6c1 | 5471 | xmake_file=mips/x-sysv |
75bffa71 | 5472 | if test x$gas = xyes |
861bb6c1 JL |
5473 | then |
5474 | tmake_file=mips/t-svr3-gas | |
5475 | else | |
5476 | tmake_file=mips/t-svr3 | |
5477 | extra_passes="mips-tfile mips-tdump" | |
5478 | fi | |
75bffa71 | 5479 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5480 | then |
5481 | use_collect2=yes | |
5482 | fi | |
861bb6c1 JL |
5483 | ;; |
5484 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
5485 | tm_file=mips/mips-5.h | |
75bffa71 | 5486 | if test x$stabs = xyes; then |
861bb6c1 JL |
5487 | tm_file="${tm_file} dbx.h" |
5488 | fi | |
75bffa71 | 5489 | if test x$gas = xyes |
861bb6c1 JL |
5490 | then |
5491 | tmake_file=mips/t-mips-gas | |
5492 | else | |
5493 | extra_passes="mips-tfile mips-tdump" | |
5494 | fi | |
75bffa71 | 5495 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5496 | then |
5497 | use_collect2=yes | |
5498 | fi | |
861bb6c1 JL |
5499 | ;; |
5500 | mips-*-gnu*) | |
5501 | ;; | |
5502 | mipsel-*-ecoff*) | |
5503 | tm_file=mips/ecoffl.h | |
75bffa71 | 5504 | if test x$stabs = xyes; then |
861bb6c1 JL |
5505 | tm_file="${tm_file} dbx.h" |
5506 | fi | |
5507 | tmake_file=mips/t-ecoff | |
5508 | ;; | |
5509 | mips-*-ecoff*) | |
1be12a4a | 5510 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 5511 | if test x$stabs = xyes; then |
861bb6c1 JL |
5512 | tm_file="${tm_file} dbx.h" |
5513 | fi | |
5514 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
5515 | ;; |
5516 | mipsel-*-elf*) | |
7aae67a2 | 5517 | tm_file="mips/elfl.h" |
d8265d29 | 5518 | tmake_file=mips/t-elf |
861bb6c1 JL |
5519 | ;; |
5520 | mips-*-elf*) | |
d8265d29 CM |
5521 | tm_file="mips/elf.h" |
5522 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5523 | ;; |
5524 | mips64el-*-elf*) | |
d8265d29 CM |
5525 | tm_file="mips/elfl64.h" |
5526 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5527 | ;; |
5528 | mips64orionel-*-elf*) | |
7aae67a2 | 5529 | tm_file="mips/elforion.h mips/elfl64.h" |
d8265d29 | 5530 | tmake_file=mips/t-elf |
861bb6c1 JL |
5531 | ;; |
5532 | mips64-*-elf*) | |
d8265d29 CM |
5533 | tm_file="mips/elf64.h" |
5534 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5535 | ;; |
5536 | mips64orion-*-elf*) | |
7aae67a2 | 5537 | tm_file="mips/elforion.h mips/elf64.h" |
d8265d29 | 5538 | tmake_file=mips/t-elf |
861bb6c1 JL |
5539 | ;; |
5540 | mips64orion-*-rtems*) | |
6e9856ba | 5541 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
d1476635 | 5542 | tmake_file="mips/t-elf t-rtems" |
861bb6c1 | 5543 | ;; |
e9a25f70 | 5544 | mipstx39el-*-elf*) |
d8265d29 | 5545 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 5546 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
5547 | ;; |
5548 | mipstx39-*-elf*) | |
d8265d29 | 5549 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 5550 | tmake_file=mips/t-r3900 |
e9a25f70 | 5551 | ;; |
861bb6c1 | 5552 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 5553 | if test x$stabs = xyes; then |
861bb6c1 JL |
5554 | tm_file="${tm_file} dbx.h" |
5555 | fi | |
75bffa71 | 5556 | if test x$gas = xyes |
861bb6c1 JL |
5557 | then |
5558 | tmake_file=mips/t-mips-gas | |
5559 | else | |
5560 | extra_passes="mips-tfile mips-tdump" | |
5561 | fi | |
75bffa71 | 5562 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5563 | then |
5564 | use_collect2=yes | |
5565 | fi | |
5566 | ;; | |
5567 | mn10200-*-*) | |
5e3c02a8 | 5568 | float_format=i32 |
861bb6c1 JL |
5569 | cpu_type=mn10200 |
5570 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 5571 | if test x$stabs = xyes |
861bb6c1 JL |
5572 | then |
5573 | tm_file="${tm_file} dbx.h" | |
5574 | fi | |
5575 | use_collect2=no | |
5576 | ;; | |
5577 | mn10300-*-*) | |
5578 | cpu_type=mn10300 | |
5579 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 5580 | if test x$stabs = xyes |
861bb6c1 JL |
5581 | then |
5582 | tm_file="${tm_file} dbx.h" | |
5583 | fi | |
5584 | use_collect2=no | |
5585 | ;; | |
5586 | ns32k-encore-bsd*) | |
5587 | tm_file=ns32k/encore.h | |
5588 | use_collect2=yes | |
5589 | ;; | |
5590 | ns32k-sequent-bsd*) | |
5591 | tm_file=ns32k/sequent.h | |
5592 | use_collect2=yes | |
5593 | ;; | |
5594 | ns32k-tek6100-bsd*) | |
5595 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
5596 | use_collect2=yes |
5597 | ;; | |
5598 | ns32k-tek6200-bsd*) | |
5599 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5600 | use_collect2=yes |
5601 | ;; | |
5602 | # This has not been updated to GCC 2. | |
5603 | # ns32k-ns-genix*) | |
f6cb0e63 | 5604 | # xm_defines=USG |
861bb6c1 JL |
5605 | # xmake_file=ns32k/x-genix |
5606 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5607 | # use_collect2=yes |
5608 | # ;; | |
5609 | ns32k-merlin-*) | |
5610 | tm_file=ns32k/merlin.h | |
5611 | use_collect2=yes | |
5612 | ;; | |
5613 | ns32k-pc532-mach*) | |
5614 | tm_file=ns32k/pc532-mach.h | |
5615 | use_collect2=yes | |
5616 | ;; | |
5617 | ns32k-pc532-minix*) | |
5618 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5619 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5620 | xm_defines=USG | |
861bb6c1 JL |
5621 | use_collect2=yes |
5622 | ;; | |
58600d24 | 5623 | ns32k-*-netbsd*) |
861bb6c1 | 5624 | tm_file=ns32k/netbsd.h |
641d4216 | 5625 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5626 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5627 | tmake_file=t-netbsd |
ed4acb3b | 5628 | use_collect2=yes |
861bb6c1 JL |
5629 | ;; |
5630 | pdp11-*-bsd) | |
5631 | tm_file="${tm_file} pdp11/2bsd.h" | |
5632 | ;; | |
5633 | pdp11-*-*) | |
5634 | ;; | |
d48120fe DC |
5635 | avr-*-*) |
5636 | ;; | |
1b4a979b ME |
5637 | ns32k-*-openbsd*) |
5638 | # Nothing special | |
5639 | ;; | |
7a3842b3 RH |
5640 | # This has not been updated to GCC 2. |
5641 | # pyramid-*-*) | |
5642 | # cpu_type=pyr | |
5643 | # xmake_file=pyr/x-pyr | |
5644 | # use_collect2=yes | |
5645 | # ;; | |
1b992148 SC |
5646 | |
5647 | pj*-linux*) | |
5648 | tm_file="svr4.h pj/linux.h ${tm_file}" | |
5649 | ;; | |
5650 | pj-*) | |
5651 | ;; | |
5652 | pjl-*) | |
5653 | tm_file="svr4.h pj/pjl.h ${tm_file}" | |
5654 | ;; | |
5655 | ||
861bb6c1 JL |
5656 | romp-*-aos*) |
5657 | use_collect2=yes | |
5658 | ;; | |
5659 | romp-*-mach*) | |
5660 | xmake_file=romp/x-mach | |
5661 | use_collect2=yes | |
5662 | ;; | |
1b4a979b ME |
5663 | romp-*-openbsd*) |
5664 | # Nothing special | |
5665 | ;; | |
5666 | powerpc-*-openbsd*) | |
5667 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5668 | ;; |
c55dcc7d FF |
5669 | powerpc-*-beos*) |
5670 | cpu_type=rs6000 | |
5671 | tm_file=rs6000/beos.h | |
5672 | xm_file=rs6000/xm-beos.h | |
5673 | tmake_file=rs6000/t-beos | |
5674 | xmake_file=rs6000/x-beos | |
5675 | ;; | |
b26e3a82 | 5676 | powerpc-*-sysv*) |
861bb6c1 | 5677 | tm_file=rs6000/sysv4.h |
2d092ffa | 5678 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5679 | xm_defines="USG POSIX" |
861bb6c1 | 5680 | extra_headers=ppc-asm.h |
b26e3a82 | 5681 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 JL |
5682 | xmake_file=rs6000/x-sysv4 |
5683 | ;; | |
5684 | powerpc-*-eabiaix*) | |
b26e3a82 | 5685 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" |
861bb6c1 | 5686 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5687 | extra_headers=ppc-asm.h |
5688 | ;; | |
5689 | powerpc-*-eabisim*) | |
b26e3a82 GK |
5690 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
5691 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5692 | extra_headers=ppc-asm.h | |
5693 | ;; | |
5694 | powerpc-*-elf*) | |
5695 | tm_file="rs6000/sysv4.h" | |
861bb6c1 | 5696 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5697 | extra_headers=ppc-asm.h |
5698 | ;; | |
5699 | powerpc-*-eabi*) | |
b26e3a82 GK |
5700 | tm_file="rs6000/sysv4.h rs6000/eabi.h" |
5701 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5702 | extra_headers=ppc-asm.h |
5703 | ;; | |
5704 | powerpc-*-rtems*) | |
b26e3a82 GK |
5705 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h" |
5706 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
861bb6c1 JL |
5707 | extra_headers=ppc-asm.h |
5708 | ;; | |
ce514f57 | 5709 | powerpc-*-linux-gnulibc1) |
b26e3a82 | 5710 | tm_file="rs6000/sysv4.h rs6000/linux.h" |
ce514f57 FS |
5711 | xm_file=rs6000/xm-sysv4.h |
5712 | out_file=rs6000/rs6000.c | |
b26e3a82 | 5713 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" |
ce514f57 | 5714 | xmake_file=x-linux |
ce514f57 | 5715 | extra_headers=ppc-asm.h |
75bffa71 | 5716 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5717 | thread_file='posix' |
5718 | fi | |
5719 | ;; | |
861bb6c1 | 5720 | powerpc-*-linux-gnu*) |
b26e3a82 | 5721 | tm_file="rs6000/sysv4.h rs6000/linux.h" |
2d092ffa | 5722 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5723 | xm_defines="USG ${xm_defines}" |
861bb6c1 | 5724 | out_file=rs6000/rs6000.c |
b26e3a82 | 5725 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
861bb6c1 | 5726 | xmake_file=x-linux |
861bb6c1 | 5727 | extra_headers=ppc-asm.h |
75bffa71 | 5728 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5729 | thread_file='posix' |
5730 | fi | |
5731 | ;; | |
7cc34889 | 5732 | powerpc-wrs-vxworks*) |
861bb6c1 | 5733 | cpu_type=rs6000 |
2d092ffa | 5734 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5735 | xm_defines="USG POSIX" |
b26e3a82 | 5736 | tm_file="rs6000/sysv4.h rs6000/vxppc.h" |
861bb6c1 JL |
5737 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
5738 | extra_headers=ppc-asm.h | |
7cc34889 | 5739 | thread_file='vxworks' |
861bb6c1 | 5740 | ;; |
9ebbca7d GK |
5741 | powerpcle-wrs-vxworks*) |
5742 | cpu_type=rs6000 | |
5743 | xm_file="rs6000/xm-sysv4.h" | |
5744 | xm_defines="USG POSIX" | |
b26e3a82 | 5745 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h" |
9ebbca7d GK |
5746 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
5747 | extra_headers=ppc-asm.h | |
5748 | thread_file='vxworks' | |
5749 | ;; | |
b26e3a82 GK |
5750 | powerpcle-*-sysv*) |
5751 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h" | |
2d092ffa | 5752 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5753 | xm_defines="USG POSIX" |
b26e3a82 | 5754 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 JL |
5755 | xmake_file=rs6000/x-sysv4 |
5756 | extra_headers=ppc-asm.h | |
5757 | ;; | |
b26e3a82 GK |
5758 | powerpcle-*-elf*) |
5759 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h" | |
5760 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5761 | extra_headers=ppc-asm.h | |
5762 | ;; | |
861bb6c1 | 5763 | powerpcle-*-eabisim*) |
b26e3a82 | 5764 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" |
861bb6c1 | 5765 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5766 | extra_headers=ppc-asm.h |
5767 | ;; | |
5768 | powerpcle-*-eabi*) | |
b26e3a82 GK |
5769 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
5770 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5771 | extra_headers=ppc-asm.h |
5772 | ;; | |
861bb6c1 | 5773 | powerpcle-*-solaris2*) |
b26e3a82 | 5774 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h" |
2d092ffa | 5775 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5776 | xm_defines="USG POSIX" |
b26e3a82 | 5777 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 | 5778 | xmake_file=rs6000/x-sysv4 |
861bb6c1 JL |
5779 | extra_headers=ppc-asm.h |
5780 | ;; | |
5781 | rs6000-ibm-aix3.[01]*) | |
5782 | tm_file=rs6000/aix31.h | |
5783 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5784 | float_format=none |
861bb6c1 JL |
5785 | use_collect2=yes |
5786 | ;; | |
5787 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5788 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5789 | if test x$host != x$target |
861bb6c1 JL |
5790 | then |
5791 | tmake_file=rs6000/t-xnewas | |
5792 | else | |
5793 | tmake_file=rs6000/t-newas | |
5794 | fi | |
45e24d08 | 5795 | float_format=none |
861bb6c1 JL |
5796 | use_collect2=yes |
5797 | ;; | |
05cea40f | 5798 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 5799 | tm_file=rs6000/aix41.h |
75bffa71 | 5800 | if test x$host != x$target |
861bb6c1 JL |
5801 | then |
5802 | tmake_file=rs6000/t-xnewas | |
6da9c622 RK |
5803 | else |
5804 | tmake_file=rs6000/t-newas | |
5805 | fi | |
5806 | if test "$gnu_ld" = yes | |
5807 | then | |
5808 | xmake_file=rs6000/x-aix41-gld | |
861bb6c1 | 5809 | else |
e680248e | 5810 | tmake_file="rs6000/t-newas rs6000/t-aix41" |
861bb6c1 | 5811 | fi |
9ebbca7d | 5812 | xmake_file=rs6000/x-aix41 |
45e24d08 | 5813 | float_format=none |
0a95276e JL |
5814 | use_collect2=yes |
5815 | ;; | |
7747ddb3 | 5816 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 5817 | tm_file=rs6000/aix43.h |
9ebbca7d GK |
5818 | tmake_file=rs6000/t-aix43 |
5819 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 5820 | float_format=none |
0a95276e JL |
5821 | use_collect2=yes |
5822 | ;; | |
5823 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5824 | tm_file=rs6000/aix43.h | |
9ebbca7d GK |
5825 | tmake_file=rs6000/t-aix43 |
5826 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 5827 | float_format=none |
861bb6c1 JL |
5828 | use_collect2=yes |
5829 | ;; | |
5830 | rs6000-ibm-aix*) | |
45e24d08 | 5831 | float_format=none |
861bb6c1 JL |
5832 | use_collect2=yes |
5833 | ;; | |
5834 | rs6000-bull-bosx) | |
45e24d08 | 5835 | float_format=none |
861bb6c1 JL |
5836 | use_collect2=yes |
5837 | ;; | |
5838 | rs6000-*-mach*) | |
5839 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5840 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5841 | xmake_file=rs6000/x-mach |
5842 | use_collect2=yes | |
5843 | ;; | |
5844 | rs6000-*-lynxos*) | |
5845 | tm_file=rs6000/lynx.h | |
5846 | xm_file=rs6000/xm-lynx.h | |
5847 | tmake_file=rs6000/t-rs6000 | |
5848 | xmake_file=rs6000/x-lynx | |
5849 | use_collect2=yes | |
5850 | ;; | |
5851 | sh-*-elf*) | |
5852 | tm_file=sh/elf.h | |
5853 | float_format=sh | |
5854 | ;; | |
b098f56d JS |
5855 | sh-*-rtemself*) |
5856 | tmake_file="sh/t-sh t-rtems" | |
5857 | tm_file=sh/rtemself.h | |
5858 | float_format=sh | |
5859 | ;; | |
5d84b57e JS |
5860 | sh-*-rtems*) |
5861 | tmake_file="sh/t-sh t-rtems" | |
5862 | tm_file=sh/rtems.h | |
5863 | float_format=sh | |
5864 | ;; | |
861bb6c1 JL |
5865 | sh-*-*) |
5866 | float_format=sh | |
5867 | ;; | |
5868 | sparc-tti-*) | |
5869 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5870 | xm_file="xm-alloca.h ${xm_file}" |
5871 | xm_defines=USG | |
861bb6c1 JL |
5872 | ;; |
5873 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5874 | tm_file=sparc/vxsparc.h | |
5875 | tmake_file=sparc/t-vxsparc | |
5876 | use_collect2=yes | |
7cc34889 | 5877 | thread_file='vxworks' |
861bb6c1 JL |
5878 | ;; |
5879 | sparc-*-aout*) | |
5880 | tmake_file=sparc/t-sparcbare | |
5881 | tm_file="sparc/aout.h libgloss.h" | |
5882 | ;; | |
5883 | sparc-*-netbsd*) | |
5884 | tm_file=sparc/netbsd.h | |
861bb6c1 | 5885 | tmake_file=t-netbsd |
ed4acb3b | 5886 | use_collect2=yes |
861bb6c1 | 5887 | ;; |
1b4a979b ME |
5888 | sparc-*-openbsd*) |
5889 | # we need collect2 until our bug is fixed... | |
5890 | use_collect2=yes | |
5891 | ;; | |
861bb6c1 JL |
5892 | sparc-*-bsd*) |
5893 | tm_file=sparc/bsd.h | |
5894 | ;; | |
ac52b80b DE |
5895 | sparc-*-elf*) |
5896 | tm_file=sparc/elf.h | |
5897 | tmake_file=sparc/t-elf | |
5898 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5899 | #float_format=i128 | |
5900 | float_format=i64 | |
5901 | ;; | |
956d6950 | 5902 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5903 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5904 | tm_file=sparc/linux-aout.h |
5905 | xmake_file=x-linux | |
861bb6c1 JL |
5906 | gnu_ld=yes |
5907 | ;; | |
956d6950 | 5908 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5909 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5910 | xmake_file=x-linux |
861bb6c1 | 5911 | tm_file=sparc/linux.h |
3e88bbdb | 5912 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5913 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5914 | gnu_ld=yes |
39c440fc | 5915 | float_format=sparc |
861bb6c1 | 5916 | ;; |
956d6950 | 5917 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5918 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5919 | xmake_file=x-linux |
861bb6c1 | 5920 | tm_file=sparc/linux.h |
3e88bbdb | 5921 | tmake_file="t-linux" |
861bb6c1 | 5922 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5923 | gnu_ld=yes |
75bffa71 | 5924 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5925 | thread_file='posix' |
5926 | fi | |
39c440fc | 5927 | float_format=sparc |
861bb6c1 JL |
5928 | ;; |
5929 | sparc-*-lynxos*) | |
75bffa71 | 5930 | if test x$gas = xyes |
861bb6c1 JL |
5931 | then |
5932 | tm_file=sparc/lynx.h | |
5933 | else | |
5934 | tm_file=sparc/lynx-ng.h | |
5935 | fi | |
5936 | xm_file=sparc/xm-lynx.h | |
5937 | tmake_file=sparc/t-sunos41 | |
5938 | xmake_file=x-lynx | |
5939 | ;; | |
6e5138f0 JS |
5940 | sparc-*-rtemsaout*) |
5941 | tmake_file="sparc/t-sparcbare t-rtems" | |
5942 | tm_file=sparc/rtems.h | |
dae3a2d3 | 5943 | ;; |
d1476635 JS |
5944 | sparc-*-rtems*|sparc-*-rtemself*) |
5945 | tm_file="sparc/rtemself.h" | |
5946 | tmake_file="sparc/t-elf t-rtems" | |
5947 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5948 | #float_format=i128 | |
5949 | float_format=i64 | |
5950 | ;; | |
d559a4db | 5951 | sparcv9-*-solaris2*) |
3b1c302f AO |
5952 | if test x$gnu_ld = xyes |
5953 | then | |
5954 | tm_file=sparc/sol2-64.h | |
5955 | else | |
5956 | tm_file=sparc/sol2-sld-64.h | |
5957 | fi | |
d559a4db DM |
5958 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" |
5959 | xm_defines="USG POSIX" | |
345a6161 | 5960 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5961 | xmake_file=sparc/x-sysv4 |
5962 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 5963 | float_format=none |
d7496fbb | 5964 | if test x${enable_threads} = x ; then |
d559a4db | 5965 | enable_threads=$have_pthread_h |
d7496fbb | 5966 | if test x${enable_threads} = x ; then |
d559a4db DM |
5967 | enable_threads=$have_thread_h |
5968 | fi | |
5969 | fi | |
d7496fbb DM |
5970 | if test x${enable_threads} = xyes ; then |
5971 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5972 | thread_file='posix' |
5973 | else | |
5974 | thread_file='solaris' | |
5975 | fi | |
5976 | fi | |
5977 | ;; | |
ab87f8c8 | 5978 | sparc-hal-solaris2*) |
2d092ffa | 5979 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
a5037588 | 5980 | xm_defines="USG POSIX" |
ab87f8c8 JL |
5981 | tm_file="sparc/sol2.h sparc/hal.h" |
5982 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5983 | xmake_file=sparc/x-sysv4 | |
5984 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
a5037588 | 5985 | case $machine in |
005537df | 5986 | *-*-solaris2.0-4) |
a5037588 CL |
5987 | float_format=i128 |
5988 | ;; | |
5989 | *) | |
5990 | float_format=none | |
5991 | ;; | |
5992 | esac | |
5993 | thread_file='solaris' | |
ab87f8c8 | 5994 | ;; |
861bb6c1 | 5995 | sparc-*-solaris2*) |
75bffa71 | 5996 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5997 | then |
5998 | tm_file=sparc/sol2.h | |
5999 | else | |
6000 | tm_file=sparc/sol2-sld.h | |
6001 | fi | |
2d092ffa | 6002 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
0b3d64d2 | 6003 | xm_defines="USG POSIX" |
861bb6c1 JL |
6004 | tmake_file=sparc/t-sol2 |
6005 | xmake_file=sparc/x-sysv4 | |
6006 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 | 6007 | case $machine in |
5b68c389 | 6008 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; |
a242e6f5 | 6009 | *-*-solaris2*) |
3b1c302f AO |
6010 | if test x$gnu_ld = xyes |
6011 | then | |
6012 | tm_file=sparc/sol2-64.h | |
6013 | else | |
6014 | tm_file=sparc/sol2-sld-64.h | |
6015 | fi | |
a242e6f5 RO |
6016 | tmake_file="$tmake_file sparc/t-sol2-64" |
6017 | ;; | |
6018 | esac | |
6019 | case $machine in | |
f6cb0e63 | 6020 | *-*-solaris2.[0-4]) |
027ea2a7 JW |
6021 | float_format=i128 |
6022 | ;; | |
f6cb0e63 | 6023 | *) |
027ea2a7 JW |
6024 | float_format=none |
6025 | ;; | |
f6cb0e63 | 6026 | esac |
75bffa71 | 6027 | if test x${enable_threads} = x; then |
f24af81b | 6028 | enable_threads=$have_pthread_h |
75bffa71 | 6029 | if test x${enable_threads} = x; then |
f24af81b TT |
6030 | enable_threads=$have_thread_h |
6031 | fi | |
6032 | fi | |
75bffa71 ILT |
6033 | if test x${enable_threads} = xyes; then |
6034 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
6035 | thread_file='posix' |
6036 | else | |
861bb6c1 | 6037 | thread_file='solaris' |
f24af81b | 6038 | fi |
861bb6c1 JL |
6039 | fi |
6040 | ;; | |
6041 | sparc-*-sunos4.0*) | |
6042 | tm_file=sparc/sunos4.h | |
6043 | tmake_file=sparc/t-sunos40 | |
6044 | use_collect2=yes | |
6045 | ;; | |
6046 | sparc-*-sunos4*) | |
6047 | tm_file=sparc/sunos4.h | |
6048 | tmake_file=sparc/t-sunos41 | |
6049 | use_collect2=yes | |
75bffa71 | 6050 | if test x$gas = xyes; then |
ca55abae JM |
6051 | tm_file="${tm_file} sparc/sun4gas.h" |
6052 | fi | |
861bb6c1 JL |
6053 | ;; |
6054 | sparc-*-sunos3*) | |
6055 | tm_file=sparc/sun4o3.h | |
6056 | use_collect2=yes | |
6057 | ;; | |
6058 | sparc-*-sysv4*) | |
6059 | tm_file=sparc/sysv4.h | |
2d092ffa | 6060 | xm_file="sparc/xm-sysv4.h" |
f6cb0e63 | 6061 | xm_defines="USG POSIX" |
861bb6c1 JL |
6062 | tmake_file=t-svr4 |
6063 | xmake_file=sparc/x-sysv4 | |
6064 | extra_parts="crtbegin.o crtend.o" | |
6065 | ;; | |
6066 | sparc-*-vxsim*) | |
2d092ffa | 6067 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
f5963e61 | 6068 | xm_defines="USG POSIX" |
861bb6c1 JL |
6069 | tm_file=sparc/vxsim.h |
6070 | tmake_file=sparc/t-vxsparc | |
6071 | xmake_file=sparc/x-sysv4 | |
6072 | ;; | |
6073 | sparclet-*-aout*) | |
6074 | tm_file="sparc/splet.h libgloss.h" | |
6075 | tmake_file=sparc/t-splet | |
6076 | ;; | |
6077 | sparclite-*-coff*) | |
6078 | tm_file="sparc/litecoff.h libgloss.h" | |
6079 | tmake_file=sparc/t-sparclite | |
6080 | ;; | |
6081 | sparclite-*-aout*) | |
6082 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
6083 | tmake_file=sparc/t-sparclite | |
6084 | ;; | |
28df4168 | 6085 | sparclite-*-elf*) |
6eccdc81 | 6086 | tm_file="sparc/liteelf.h" |
28df4168 JL |
6087 | tmake_file=sparc/t-sparclite |
6088 | extra_parts="crtbegin.o crtend.o" | |
6089 | ;; | |
6090 | sparc86x-*-aout*) | |
6091 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
6092 | tmake_file=sparc/t-sp86x | |
6093 | ;; | |
6094 | sparc86x-*-elf*) | |
6eccdc81 | 6095 | tm_file="sparc/sp86x-elf.h" |
28df4168 JL |
6096 | tmake_file=sparc/t-sp86x |
6097 | extra_parts="crtbegin.o crtend.o" | |
6098 | ;; | |
861bb6c1 JL |
6099 | sparc64-*-aout*) |
6100 | tmake_file=sparc/t-sp64 | |
6101 | tm_file=sparc/sp64-aout.h | |
6102 | ;; | |
6103 | sparc64-*-elf*) | |
6104 | tmake_file=sparc/t-sp64 | |
6105 | tm_file=sparc/sp64-elf.h | |
6106 | extra_parts="crtbegin.o crtend.o" | |
6107 | ;; | |
956d6950 | 6108 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 6109 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
6110 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
6111 | tm_file=sparc/linux64.h | |
6112 | xmake_file=x-linux | |
345a6161 | 6113 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af | 6114 | gnu_ld=yes |
9ce13279 JJ |
6115 | if test x$enable_threads = xyes; then |
6116 | thread_file='posix' | |
6117 | fi | |
39c440fc | 6118 | float_format=sparc |
26b551af | 6119 | ;; |
861bb6c1 JL |
6120 | # This hasn't been upgraded to GCC 2. |
6121 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
6122 | # tm_file=tahoe/harris.h | |
6123 | # ;; | |
6124 | # tahoe-*-bsd*) # tahoe running BSD | |
6125 | # ;; | |
6da9c622 | 6126 | |
d5b7b3ae RE |
6127 | thumb*-*-*) |
6128 | { echo "configure: error: | |
6129 | *** The Thumb targets have been depreciated. The equivalent | |
6130 | *** ARM based toolchain can now generated Thumb instructions | |
6131 | *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } | |
cb805c2d | 6132 | ;; |
861bb6c1 JL |
6133 | # This hasn't been upgraded to GCC 2. |
6134 | # tron-*-*) | |
6135 | # cpu_type=gmicro | |
6136 | # use_collect2=yes | |
6137 | # ;; | |
966f8bfd JS |
6138 | v850-*-rtems*) |
6139 | cpu_type=v850 | |
6140 | tm_file="v850/rtems.h" | |
6141 | xm_file="v850/xm-v850.h" | |
6142 | tmake_file="v850/t-v850 t-rtems" | |
6143 | if test x$stabs = xyes | |
6144 | then | |
6145 | tm_file="${tm_file} dbx.h" | |
6146 | fi | |
6147 | use_collect2=no | |
6148 | ;; | |
f84271d9 | 6149 | v850-*-*) |
7a846a6c | 6150 | target_cpu_default="TARGET_CPU_generic" |
f84271d9 JL |
6151 | cpu_type=v850 |
6152 | tm_file="v850/v850.h" | |
6153 | xm_file="v850/xm-v850.h" | |
62db76ee | 6154 | tmake_file=v850/t-v850 |
75bffa71 | 6155 | if test x$stabs = xyes |
f84271d9 JL |
6156 | then |
6157 | tm_file="${tm_file} dbx.h" | |
6158 | fi | |
6159 | use_collect2=no | |
6160 | ;; | |
861bb6c1 JL |
6161 | vax-*-bsd*) # vaxen running BSD |
6162 | use_collect2=yes | |
6163 | float_format=vax | |
6164 | ;; | |
6165 | vax-*-sysv*) # vaxen running system V | |
6166 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 6167 | xm_defines=USG |
861bb6c1 JL |
6168 | float_format=vax |
6169 | ;; | |
6170 | vax-*-netbsd*) | |
6171 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
6172 | tmake_file=t-netbsd |
6173 | float_format=vax | |
ed4acb3b | 6174 | use_collect2=yes |
861bb6c1 | 6175 | ;; |
1b4a979b | 6176 | vax-*-openbsd*) |
766518a0 | 6177 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 6178 | ;; |
861bb6c1 JL |
6179 | vax-*-ultrix*) # vaxen running ultrix |
6180 | tm_file="${tm_file} vax/ultrix.h" | |
6181 | use_collect2=yes | |
6182 | float_format=vax | |
6183 | ;; | |
6184 | vax-*-vms*) # vaxen running VMS | |
6185 | xm_file=vax/xm-vms.h | |
6186 | tm_file=vax/vms.h | |
6187 | float_format=vax | |
6188 | ;; | |
6189 | vax-*-*) # vax default entry | |
6190 | float_format=vax | |
6191 | ;; | |
6192 | we32k-att-sysv*) | |
6193 | xm_file="${xm_file} xm-svr3" | |
6194 | use_collect2=yes | |
6195 | ;; | |
6196 | *) | |
6197 | echo "Configuration $machine not supported" 1>&2 | |
6198 | exit 1 | |
6199 | ;; | |
6200 | esac | |
6201 | ||
6202 | case $machine in | |
6203 | *-*-linux-gnu*) | |
f6cb0e63 | 6204 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
6205 | *-*-gnu*) |
6206 | # On the GNU system, the setup is just about the same on | |
6207 | # each different CPU. The specific machines that GNU | |
6208 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 6209 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
6210 | tm_file=${cpu_type}/gnu.h |
6211 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
6212 | # GNU always uses ELF. | |
6213 | elf=yes | |
6214 | # GNU tools are the only tools. | |
6215 | gnu_ld=yes | |
6216 | gas=yes | |
861bb6c1 JL |
6217 | xmake_file=x-linux # These details are the same as Linux. |
6218 | tmake_file=t-gnu # These are not. | |
6219 | ;; | |
6220 | *-*-sysv4*) | |
861bb6c1 | 6221 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
6222 | install_headers_dir=install-headers-cpio |
6223 | ;; | |
6224 | *-*-sysv*) | |
861bb6c1 JL |
6225 | install_headers_dir=install-headers-cpio |
6226 | ;; | |
6227 | esac | |
6228 | ||
f6cb0e63 | 6229 | # Distinguish i[34567]86 |
861bb6c1 JL |
6230 | # Also, do not run mips-tfile on MIPS if using gas. |
6231 | # Process --with-cpu= for PowerPC/rs6000 | |
6232 | target_cpu_default2= | |
6233 | case $machine in | |
6234 | i486-*-*) | |
6235 | target_cpu_default2=1 | |
6236 | ;; | |
6237 | i586-*-*) | |
83f4345f PT |
6238 | case $target_alias in |
6239 | k6-*) | |
6240 | target_cpu_default2=4 | |
6241 | ;; | |
6242 | *) | |
6243 | target_cpu_default2=2 | |
6244 | ;; | |
6245 | esac | |
861bb6c1 | 6246 | ;; |
f6cb0e63 | 6247 | i686-*-* | i786-*-*) |
861bb6c1 JL |
6248 | target_cpu_default2=3 |
6249 | ;; | |
6250 | alpha*-*-*) | |
6251 | case $machine in | |
2618c083 | 6252 | alphaev6[78]*) |
d8ee3e20 RH |
6253 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" |
6254 | ;; | |
e9a25f70 | 6255 | alphaev6*) |
de4abb91 | 6256 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
6257 | ;; |
6258 | alphapca56*) | |
fbb5ed67 | 6259 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 6260 | ;; |
861bb6c1 | 6261 | alphaev56*) |
e9a25f70 | 6262 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
6263 | ;; |
6264 | alphaev5*) | |
6265 | target_cpu_default2="MASK_CPU_EV5" | |
6266 | ;; | |
6267 | esac | |
6268 | ||
75bffa71 | 6269 | if test x$gas = xyes |
861bb6c1 | 6270 | then |
75bffa71 | 6271 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
6272 | then |
6273 | target_cpu_default2="MASK_GAS" | |
6274 | else | |
6275 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
6276 | fi | |
6277 | fi | |
6278 | ;; | |
956d6950 JL |
6279 | arm*-*-*) |
6280 | case "x$with_cpu" in | |
6281 | x) | |
6282 | # The most generic | |
6283 | target_cpu_default2="TARGET_CPU_generic" | |
6284 | ;; | |
6285 | ||
6286 | # Distinguish cores, and major variants | |
6287 | # arm7m doesn't exist, but D & I don't affect code | |
005537df | 6288 | xarm[23678] | xarm250 | xarm[67][01]0 \ |
956d6950 JL |
6289 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ |
6290 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 6291 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
6292 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6293 | ;; | |
6294 | ||
6295 | xyes | xno) | |
6296 | echo "--with-cpu must be passed a value" 1>&2 | |
6297 | exit 1 | |
6298 | ;; | |
6299 | ||
6300 | *) | |
75bffa71 | 6301 | if test x$pass2done = xyes |
956d6950 JL |
6302 | then |
6303 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6304 | exit 1 | |
6305 | fi | |
6306 | ;; | |
6307 | esac | |
6308 | ;; | |
6309 | ||
861bb6c1 | 6310 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 6311 | if test x$gas = xyes |
861bb6c1 | 6312 | then |
75bffa71 | 6313 | if test x$gnu_ld = xyes |
861bb6c1 JL |
6314 | then |
6315 | target_cpu_default2=20 | |
6316 | else | |
6317 | target_cpu_default2=16 | |
6318 | fi | |
6319 | fi | |
6320 | ;; | |
6321 | mips*-*-*) | |
75bffa71 | 6322 | if test x$gas = xyes |
861bb6c1 JL |
6323 | then |
6324 | target_cpu_default2=16 | |
6325 | fi | |
6326 | ;; | |
6327 | powerpc*-*-* | rs6000-*-*) | |
6328 | case "x$with_cpu" in | |
6329 | x) | |
6330 | ;; | |
6331 | ||
6332 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
6333 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
6334 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 6335 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 6336 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 6337 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
6338 | ;; |
6339 | ||
6340 | xyes | xno) | |
6341 | echo "--with-cpu must be passed a value" 1>&2 | |
6342 | exit 1 | |
6343 | ;; | |
6344 | ||
6345 | *) | |
75bffa71 | 6346 | if test x$pass2done = xyes |
956d6950 JL |
6347 | then |
6348 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6349 | exit 1 | |
6350 | fi | |
861bb6c1 JL |
6351 | ;; |
6352 | esac | |
6353 | ;; | |
6354 | sparc*-*-*) | |
6355 | case ".$with_cpu" in | |
6356 | .) | |
6357 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
6358 | ;; | |
8947065c | 6359 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
6360 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6361 | ;; | |
6362 | *) | |
75bffa71 | 6363 | if test x$pass2done = xyes |
956d6950 JL |
6364 | then |
6365 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6366 | exit 1 | |
6367 | fi | |
861bb6c1 JL |
6368 | ;; |
6369 | esac | |
6370 | ;; | |
6371 | esac | |
6372 | ||
75bffa71 | 6373 | if test "$target_cpu_default2" != "" |
861bb6c1 | 6374 | then |
75bffa71 | 6375 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
6376 | then |
6377 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
6378 | else | |
6379 | target_cpu_default=$target_cpu_default2 | |
6380 | fi | |
6381 | fi | |
6382 | ||
6383 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
6384 | # Actually, there is now; GNU ld doesn't handle the EH info or |
6385 | # collecting for shared libraries. | |
ca8c3b37 JM |
6386 | #case x$gnu_ld in |
6387 | #xyes) | |
6388 | # use_collect2= | |
6389 | # ;; | |
6390 | #esac | |
861bb6c1 JL |
6391 | |
6392 | # Save data on machine being used to compile GCC in build_xm_file. | |
6393 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 6394 | if test x$pass1done = x |
861bb6c1 | 6395 | then |
75bffa71 | 6396 | if test x"$xm_file" = x |
861bb6c1 JL |
6397 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
6398 | else build_xm_file=$xm_file | |
6399 | fi | |
f6cb0e63 | 6400 | build_xm_defines=$xm_defines |
861bb6c1 JL |
6401 | build_install_headers_dir=$install_headers_dir |
6402 | build_exeext=$exeext | |
6403 | pass1done=yes | |
6404 | else | |
75bffa71 | 6405 | if test x$pass2done = x |
861bb6c1 | 6406 | then |
75bffa71 | 6407 | if test x"$xm_file" = x |
861bb6c1 JL |
6408 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
6409 | else host_xm_file=$xm_file | |
6410 | fi | |
f6cb0e63 | 6411 | host_xm_defines=$xm_defines |
75bffa71 | 6412 | if test x"$xmake_file" = x |
861bb6c1 JL |
6413 | then xmake_file=$cpu_type/x-$cpu_type |
6414 | fi | |
6415 | host_xmake_file="$xmake_file" | |
6416 | host_truncate_target=$truncate_target | |
6417 | host_extra_gcc_objs=$extra_gcc_objs | |
6418 | host_extra_objs=$extra_host_objs | |
6e26218f | 6419 | host_exeext=$exeext |
861bb6c1 JL |
6420 | pass2done=yes |
6421 | fi | |
6422 | fi | |
6423 | done | |
6424 | ||
6425 | extra_objs="${host_extra_objs} ${extra_objs}" | |
6426 | ||
6427 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 6428 | if test x"$tm_file" = x |
861bb6c1 JL |
6429 | then tm_file=$cpu_type/$cpu_type.h; fi |
6430 | ||
75bffa71 | 6431 | if test x$extra_headers = x |
861bb6c1 JL |
6432 | then extra_headers=; fi |
6433 | ||
75bffa71 | 6434 | if test x"$xm_file" = x |
861bb6c1 JL |
6435 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
6436 | ||
75bffa71 | 6437 | if test x$md_file = x |
e98e406f | 6438 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 6439 | |
75bffa71 | 6440 | if test x$out_file = x |
861bb6c1 JL |
6441 | then out_file=$cpu_type/$cpu_type.c; fi |
6442 | ||
75bffa71 | 6443 | if test x"$tmake_file" = x |
861bb6c1 JL |
6444 | then tmake_file=$cpu_type/t-$cpu_type |
6445 | fi | |
6446 | ||
90e6a802 | 6447 | if test x"$dwarf2" = xyes |
756ee602 | 6448 | then tm_file="$tm_file tm-dwarf2.h" |
90e6a802 RL |
6449 | fi |
6450 | ||
75bffa71 | 6451 | if test x$float_format = x |
861bb6c1 JL |
6452 | then float_format=i64 |
6453 | fi | |
6454 | ||
027ea2a7 JW |
6455 | if test $float_format = none |
6456 | then float_h_file=Makefile.in | |
6457 | else float_h_file=float-$float_format.h | |
6458 | fi | |
6459 | ||
9fc9b82a | 6460 | # Handle cpp installation. |
3ecc3258 | 6461 | if test x$enable_cpp != xno |
9fc9b82a L |
6462 | then |
6463 | tmake_file="$tmake_file t-install-cpp" | |
6464 | fi | |
6465 | ||
861bb6c1 JL |
6466 | # Say what files are being used for the output code and MD file. |
6467 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
6468 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
6469 | ||
6470 | count=a | |
6471 | for f in $tm_file; do | |
6472 | count=${count}x | |
6473 | done | |
75bffa71 | 6474 | if test $count = ax; then |
861bb6c1 JL |
6475 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
6476 | else | |
6477 | echo "Using the following target machine macro files:" | |
6478 | for f in $tm_file; do | |
6479 | echo " $srcdir/config/$f" | |
6480 | done | |
6481 | fi | |
6482 | ||
6483 | count=a | |
6484 | for f in $host_xm_file; do | |
6485 | count=${count}x | |
6486 | done | |
75bffa71 | 6487 | if test $count = ax; then |
861bb6c1 JL |
6488 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
6489 | else | |
6490 | echo "Using the following host machine macro files:" | |
6491 | for f in $host_xm_file; do | |
6492 | echo " $srcdir/config/$f" | |
6493 | done | |
6494 | fi | |
6495 | ||
75bffa71 | 6496 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
6497 | count=a |
6498 | for f in $build_xm_file; do | |
6499 | count=${count}x | |
6500 | done | |
75bffa71 | 6501 | if test $count = ax; then |
861bb6c1 JL |
6502 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
6503 | else | |
6504 | echo "Using the following build machine macro files:" | |
6505 | for f in $build_xm_file; do | |
6506 | echo " $srcdir/config/$f" | |
6507 | done | |
6508 | fi | |
6509 | fi | |
6510 | ||
75bffa71 ILT |
6511 | if test x$thread_file = x; then |
6512 | if test x$target_thread_file != x; then | |
a851212a JW |
6513 | thread_file=$target_thread_file |
6514 | else | |
6515 | thread_file='single' | |
6516 | fi | |
861bb6c1 JL |
6517 | fi |
6518 | ||
6519 | # Set up the header files. | |
6520 | # $links is the list of header files to create. | |
6521 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 6522 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 6523 | # the first file included by config.h. |
f6cb0e63 | 6524 | null_defines= |
64ccbc99 | 6525 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 6526 | |
b7cb92ad | 6527 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
6528 | # as well. If host!=build, we are in error and need to do more |
6529 | # work to find out the build config parameters. | |
75bffa71 | 6530 | if test x$host = x$build |
db81d74a | 6531 | then |
64ccbc99 | 6532 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
6533 | else |
6534 | # We create a subdir, then run autoconf in the subdir. | |
6535 | # To prevent recursion we set host and build for the new | |
6536 | # invocation of configure to the build for this invocation | |
6537 | # of configure. | |
6538 | tempdir=build.$$ | |
6539 | rm -rf $tempdir | |
6540 | mkdir $tempdir | |
6541 | cd $tempdir | |
6542 | case ${srcdir} in | |
6543 | /*) realsrcdir=${srcdir};; | |
6544 | *) realsrcdir=../${srcdir};; | |
6545 | esac | |
fe81dd69 | 6546 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
6547 | --target=$target --host=$build --build=$build |
6548 | ||
6549 | # We just finished tests for the build machine, so rename | |
6550 | # the file auto-build.h in the gcc directory. | |
6551 | mv auto-host.h ../auto-build.h | |
6552 | cd .. | |
6553 | rm -rf $tempdir | |
64ccbc99 | 6554 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
6555 | fi |
6556 | ||
0056a9b5 KG |
6557 | xm_file="gansidecl.h ${xm_file}" |
6558 | tm_file="gansidecl.h ${tm_file}" | |
6559 | ||
6baf1cc8 BS |
6560 | vars="host_xm_file tm_file tm_p_file xm_file build_xm_file" |
6561 | links="config.h tm.h tm_p.h tconfig.h hconfig.h" | |
6562 | defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines" | |
861bb6c1 JL |
6563 | |
6564 | rm -f config.bak | |
75bffa71 | 6565 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
6566 | |
6567 | # Make the links. | |
75bffa71 | 6568 | while test -n "$vars" |
861bb6c1 | 6569 | do |
861bb6c1 JL |
6570 | set $vars; var=$1; shift; vars=$* |
6571 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 6572 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
6573 | |
6574 | rm -f $link | |
6baf1cc8 BS |
6575 | # Make sure the file is created, even if it is empty. |
6576 | echo >$link | |
861bb6c1 JL |
6577 | |
6578 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
6579 | # This substitutes for lots of *.h files. | |
75bffa71 | 6580 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 6581 | then |
8fbf199e | 6582 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
6583 | fi |
6584 | ||
6585 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
6586 | case $file in |
6587 | auto-config.h) | |
6588 | ;; | |
6589 | *) | |
6590 | echo '#ifdef IN_GCC' >>$link | |
6591 | ;; | |
6592 | esac | |
861bb6c1 | 6593 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
6594 | case $file in |
6595 | auto-config.h) | |
6596 | ;; | |
6597 | *) | |
6598 | echo '#endif' >>$link | |
6599 | ;; | |
6600 | esac | |
861bb6c1 | 6601 | done |
f6cb0e63 JL |
6602 | |
6603 | for def in `eval echo '$'$define`; do | |
6604 | echo "#ifndef $def" >>$link | |
6605 | echo "#define $def" >>$link | |
6606 | echo "#endif" >>$link | |
6607 | done | |
861bb6c1 JL |
6608 | done |
6609 | ||
6610 | # Truncate the target if necessary | |
75bffa71 | 6611 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6612 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6613 | fi | |
6614 | ||
f1943b77 | 6615 | # Get the version trigger filename from the toplevel |
75bffa71 | 6616 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6617 | gcc_version_trigger=$with_gcc_version_trigger |
6618 | else | |
6619 | gcc_version_trigger=${srcdir}/version.c | |
6620 | fi | |
4746ee26 | 6621 | gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` |
861bb6c1 | 6622 | |
ab87f8c8 JL |
6623 | # Internationalization |
6624 | PACKAGE=gcc | |
6625 | VERSION="$gcc_version" | |
6626 | cat >> confdefs.h <<EOF | |
6627 | #define PACKAGE "$PACKAGE" | |
6628 | EOF | |
861bb6c1 | 6629 | |
ab87f8c8 JL |
6630 | cat >> confdefs.h <<EOF |
6631 | #define VERSION "$VERSION" | |
6632 | EOF | |
861bb6c1 | 6633 | |
861bb6c1 | 6634 | |
ab87f8c8 JL |
6635 | |
6636 | ||
6637 | ALL_LINGUAS="en_UK" | |
6638 | ||
6639 | # NLS support is still experimental, so disable it by default for now. | |
6640 | # Check whether --enable-nls or --disable-nls was given. | |
6641 | if test "${enable_nls+set}" = set; then | |
6642 | enableval="$enable_nls" | |
6643 | : | |
861bb6c1 | 6644 | else |
ab87f8c8 | 6645 | enable_nls=no |
861bb6c1 | 6646 | fi |
861bb6c1 | 6647 | |
861bb6c1 | 6648 | |
861bb6c1 | 6649 | |
ab87f8c8 | 6650 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
86cf1cbd | 6651 | echo "configure:6652: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6652 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6653 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6655 | else | |
6656 | ac_save_LIBS="$LIBS" | |
6657 | LIBS="-lcposix $LIBS" | |
6658 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6659 | #line 6660 "configure" |
ab87f8c8 JL |
6660 | #include "confdefs.h" |
6661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6662 | /* We use char because int might match the return type of a gcc2 | |
6663 | builtin and then its argument prototype would still apply. */ | |
6664 | char strerror(); | |
861bb6c1 | 6665 | |
ab87f8c8 JL |
6666 | int main() { |
6667 | strerror() | |
6668 | ; return 0; } | |
6669 | EOF | |
86cf1cbd | 6670 | if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6671 | rm -rf conftest* |
6672 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6673 | else | |
6674 | echo "configure: failed program was:" >&5 | |
6675 | cat conftest.$ac_ext >&5 | |
6676 | rm -rf conftest* | |
6677 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6678 | fi |
ab87f8c8 JL |
6679 | rm -f conftest* |
6680 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6681 | |
861bb6c1 | 6682 | fi |
ab87f8c8 JL |
6683 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6684 | echo "$ac_t""yes" 1>&6 | |
6685 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6686 | else |
ab87f8c8 | 6687 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6688 | fi |
6689 | ||
ab87f8c8 | 6690 | |
2ce3c6c6 | 6691 | |
ab87f8c8 | 6692 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
86cf1cbd | 6693 | echo "configure:6694: checking for working const" >&5 |
ab87f8c8 JL |
6694 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6696 | else |
ab87f8c8 | 6697 | cat > conftest.$ac_ext <<EOF |
86cf1cbd | 6698 | #line 6699 "configure" |
ab87f8c8 | 6699 | #include "confdefs.h" |
861bb6c1 | 6700 | |
ab87f8c8 JL |
6701 | int main() { |
6702 | ||
6703 | /* Ultrix mips cc rejects this. */ | |
99e757d5 | 6704 | typedef int charset[2]; const charset x; |
ab87f8c8 JL |
6705 | /* SunOS 4.1.1 cc rejects this. */ |
6706 | char const *const *ccp; | |
6707 | char **p; | |
6708 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6709 | struct point {int x, y;}; | |
6710 | static struct point const zero = {0,0}; | |
6711 | /* AIX XL C 1.02.0.0 rejects this. | |
6712 | It does not let you subtract one const X* pointer from another in an arm | |
6713 | of an if-expression whose if-part is not a constant expression */ | |
6714 | const char *g = "string"; | |
6715 | ccp = &g + (g ? g-g : 0); | |
6716 | /* HPUX 7.0 cc rejects these. */ | |
6717 | ++ccp; | |
6718 | p = (char**) ccp; | |
6719 | ccp = (char const *const *) p; | |
6720 | { /* SCO 3.2v4 cc rejects this. */ | |
6721 | char *t; | |
6722 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6723 | ||
6724 | *t++ = 0; | |
6725 | } | |
6726 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6727 | int x[] = {25, 17}; | |
6728 | const int *foo = &x[0]; | |
6729 | ++foo; | |
6730 | } | |
6731 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6732 | typedef const int *iptr; | |
6733 | iptr p = 0; | |
6734 | ++p; | |
6735 | } | |
6736 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6737 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6738 | struct s { int j; const int *ap[3]; }; | |
6739 | struct s *b; b->j = 5; | |
6740 | } | |
6741 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6742 | const int foo = 10; | |
6743 | } | |
6744 | ||
6745 | ; return 0; } | |
6746 | EOF | |
86cf1cbd | 6747 | if { (eval echo configure:6748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6748 | rm -rf conftest* |
6749 | ac_cv_c_const=yes | |
861bb6c1 | 6750 | else |
ab87f8c8 JL |
6751 | echo "configure: failed program was:" >&5 |
6752 | cat conftest.$ac_ext >&5 | |
6753 | rm -rf conftest* | |
6754 | ac_cv_c_const=no | |
6755 | fi | |
6756 | rm -f conftest* | |
861bb6c1 JL |
6757 | fi |
6758 | ||
ab87f8c8 JL |
6759 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6760 | if test $ac_cv_c_const = no; then | |
6761 | cat >> confdefs.h <<\EOF | |
6762 | #define const | |
6763 | EOF | |
6764 | ||
861bb6c1 JL |
6765 | fi |
6766 | ||
ab87f8c8 | 6767 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
86cf1cbd | 6768 | echo "configure:6769: checking for inline" >&5 |
ab87f8c8 JL |
6769 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6771 | else | |
6772 | ac_cv_c_inline=no | |
6773 | for ac_kw in inline __inline__ __inline; do | |
6774 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6775 | #line 6776 "configure" |
ab87f8c8 JL |
6776 | #include "confdefs.h" |
6777 | ||
6778 | int main() { | |
99e757d5 | 6779 | } $ac_kw foo() { |
ab87f8c8 JL |
6780 | ; return 0; } |
6781 | EOF | |
86cf1cbd | 6782 | if { (eval echo configure:6783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6783 | rm -rf conftest* |
6784 | ac_cv_c_inline=$ac_kw; break | |
6785 | else | |
6786 | echo "configure: failed program was:" >&5 | |
6787 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6788 | fi |
ab87f8c8 JL |
6789 | rm -f conftest* |
6790 | done | |
4b95eb49 | 6791 | |
992d1248 | 6792 | fi |
861bb6c1 | 6793 | |
ab87f8c8 JL |
6794 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6795 | case "$ac_cv_c_inline" in | |
6796 | inline | yes) ;; | |
6797 | no) cat >> confdefs.h <<\EOF | |
6798 | #define inline | |
00ccc16d | 6799 | EOF |
ab87f8c8 JL |
6800 | ;; |
6801 | *) cat >> confdefs.h <<EOF | |
6802 | #define inline $ac_cv_c_inline | |
6803 | EOF | |
6804 | ;; | |
6805 | esac | |
6806 | ||
6807 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
86cf1cbd | 6808 | echo "configure:6809: checking for off_t" >&5 |
ab87f8c8 JL |
6809 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6811 | else | |
6812 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6813 | #line 6814 "configure" |
ab87f8c8 JL |
6814 | #include "confdefs.h" |
6815 | #include <sys/types.h> | |
6816 | #if STDC_HEADERS | |
6817 | #include <stdlib.h> | |
6818 | #include <stddef.h> | |
6819 | #endif | |
6820 | EOF | |
6821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6822 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6823 | rm -rf conftest* |
6824 | ac_cv_type_off_t=yes | |
6825 | else | |
6826 | rm -rf conftest* | |
6827 | ac_cv_type_off_t=no | |
6828 | fi | |
6829 | rm -f conftest* | |
6830 | ||
6831 | fi | |
6832 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6833 | if test $ac_cv_type_off_t = no; then | |
6834 | cat >> confdefs.h <<\EOF | |
6835 | #define off_t long | |
6836 | EOF | |
6837 | ||
6838 | fi | |
6839 | ||
6840 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
86cf1cbd | 6841 | echo "configure:6842: checking for size_t" >&5 |
ab87f8c8 JL |
6842 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6844 | else | |
6845 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6846 | #line 6847 "configure" |
ab87f8c8 JL |
6847 | #include "confdefs.h" |
6848 | #include <sys/types.h> | |
6849 | #if STDC_HEADERS | |
6850 | #include <stdlib.h> | |
6851 | #include <stddef.h> | |
6852 | #endif | |
6853 | EOF | |
6854 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6855 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6856 | rm -rf conftest* |
6857 | ac_cv_type_size_t=yes | |
6858 | else | |
6859 | rm -rf conftest* | |
6860 | ac_cv_type_size_t=no | |
6861 | fi | |
6862 | rm -f conftest* | |
6863 | ||
6864 | fi | |
6865 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6866 | if test $ac_cv_type_size_t = no; then | |
6867 | cat >> confdefs.h <<\EOF | |
6868 | #define size_t unsigned | |
6869 | EOF | |
6870 | ||
6871 | fi | |
6872 | ||
6873 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6874 | # for constant arguments. Useless! | |
6875 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
86cf1cbd | 6876 | echo "configure:6877: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6877 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6879 | else | |
6880 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6881 | #line 6882 "configure" |
ab87f8c8 JL |
6882 | #include "confdefs.h" |
6883 | #include <alloca.h> | |
6884 | int main() { | |
99e757d5 | 6885 | char *p = alloca(2 * sizeof(int)); |
ab87f8c8 JL |
6886 | ; return 0; } |
6887 | EOF | |
86cf1cbd | 6888 | if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6889 | rm -rf conftest* |
6890 | ac_cv_header_alloca_h=yes | |
6891 | else | |
6892 | echo "configure: failed program was:" >&5 | |
6893 | cat conftest.$ac_ext >&5 | |
6894 | rm -rf conftest* | |
6895 | ac_cv_header_alloca_h=no | |
6896 | fi | |
6897 | rm -f conftest* | |
6898 | fi | |
6899 | ||
6900 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6901 | if test $ac_cv_header_alloca_h = yes; then | |
6902 | cat >> confdefs.h <<\EOF | |
6903 | #define HAVE_ALLOCA_H 1 | |
6904 | EOF | |
6905 | ||
6906 | fi | |
6907 | ||
6908 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
86cf1cbd | 6909 | echo "configure:6910: checking for alloca" >&5 |
ab87f8c8 JL |
6910 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6912 | else | |
6913 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6914 | #line 6915 "configure" |
ab87f8c8 JL |
6915 | #include "confdefs.h" |
6916 | ||
6917 | #ifdef __GNUC__ | |
6918 | # define alloca __builtin_alloca | |
6919 | #else | |
cd9e5e7c MK |
6920 | # ifdef _MSC_VER |
6921 | # include <malloc.h> | |
6922 | # define alloca _alloca | |
ab87f8c8 | 6923 | # else |
cd9e5e7c MK |
6924 | # if HAVE_ALLOCA_H |
6925 | # include <alloca.h> | |
3723cad9 | 6926 | # else |
cd9e5e7c MK |
6927 | # ifdef _AIX |
6928 | #pragma alloca | |
6929 | # else | |
6930 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6931 | char *alloca (); |
cd9e5e7c | 6932 | # endif |
ab87f8c8 JL |
6933 | # endif |
6934 | # endif | |
6935 | # endif | |
6936 | #endif | |
6937 | ||
6938 | int main() { | |
6939 | char *p = (char *) alloca(1); | |
6940 | ; return 0; } | |
6941 | EOF | |
86cf1cbd | 6942 | if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
81bf3d9e RH |
6943 | rm -rf conftest* |
6944 | ac_cv_func_alloca_works=yes | |
ab87f8c8 JL |
6945 | else |
6946 | echo "configure: failed program was:" >&5 | |
6947 | cat conftest.$ac_ext >&5 | |
81bf3d9e RH |
6948 | rm -rf conftest* |
6949 | ac_cv_func_alloca_works=no | |
ab87f8c8 | 6950 | fi |
81bf3d9e | 6951 | rm -f conftest* |
ab87f8c8 JL |
6952 | fi |
6953 | ||
81bf3d9e RH |
6954 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
6955 | if test $ac_cv_func_alloca_works = yes; then | |
6956 | cat >> confdefs.h <<\EOF | |
6957 | #define HAVE_ALLOCA 1 | |
6958 | EOF | |
6959 | ||
ab87f8c8 JL |
6960 | fi |
6961 | ||
81bf3d9e RH |
6962 | if test $ac_cv_func_alloca_works = no; then |
6963 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6964 | # that cause trouble. Some versions do not even contain alloca or | |
6965 | # contain a buggy version. If you still want to use their alloca, | |
6966 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6967 | ALLOCA=alloca.${ac_objext} | |
6968 | cat >> confdefs.h <<\EOF | |
6969 | #define C_ALLOCA 1 | |
ab87f8c8 JL |
6970 | EOF |
6971 | ||
ab87f8c8 | 6972 | |
81bf3d9e | 6973 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
86cf1cbd | 6974 | echo "configure:6975: checking whether alloca needs Cray hooks" >&5 |
81bf3d9e | 6975 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
ab87f8c8 JL |
6976 | echo $ac_n "(cached) $ac_c" 1>&6 |
6977 | else | |
6978 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 6979 | #line 6980 "configure" |
ab87f8c8 | 6980 | #include "confdefs.h" |
81bf3d9e RH |
6981 | #if defined(CRAY) && ! defined(CRAY2) |
6982 | webecray | |
6983 | #else | |
6984 | wenotbecray | |
6985 | #endif | |
6986 | ||
ab87f8c8 | 6987 | EOF |
81bf3d9e RH |
6988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6989 | egrep "webecray" >/dev/null 2>&1; then | |
ab87f8c8 | 6990 | rm -rf conftest* |
81bf3d9e | 6991 | ac_cv_os_cray=yes |
ab87f8c8 | 6992 | else |
ab87f8c8 | 6993 | rm -rf conftest* |
81bf3d9e | 6994 | ac_cv_os_cray=no |
ab87f8c8 JL |
6995 | fi |
6996 | rm -f conftest* | |
81bf3d9e | 6997 | |
ab87f8c8 | 6998 | fi |
ab87f8c8 | 6999 | |
81bf3d9e RH |
7000 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
7001 | if test $ac_cv_os_cray = yes; then | |
7002 | for ac_func in _getb67 GETB67 getb67; do | |
7003 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
86cf1cbd | 7004 | echo "configure:7005: checking for $ac_func" >&5 |
ab87f8c8 JL |
7005 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7007 | else | |
7008 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7009 | #line 7010 "configure" |
ab87f8c8 JL |
7010 | #include "confdefs.h" |
7011 | /* System header to define __stub macros and hopefully few prototypes, | |
7012 | which can conflict with char $ac_func(); below. */ | |
7013 | #include <assert.h> | |
7014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7015 | /* We use char because int might match the return type of a gcc2 | |
7016 | builtin and then its argument prototype would still apply. */ | |
7017 | char $ac_func(); | |
7018 | ||
7019 | int main() { | |
7020 | ||
7021 | /* The GNU C library defines this for functions which it implements | |
7022 | to always fail with ENOSYS. Some functions are actually named | |
7023 | something starting with __ and the normal name is an alias. */ | |
7024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7025 | choke me | |
7026 | #else | |
86702e31 | 7027 | $ac_func(); |
ab87f8c8 JL |
7028 | #endif |
7029 | ||
7030 | ; return 0; } | |
7031 | EOF | |
86cf1cbd | 7032 | if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7033 | rm -rf conftest* |
7034 | eval "ac_cv_func_$ac_func=yes" | |
7035 | else | |
7036 | echo "configure: failed program was:" >&5 | |
7037 | cat conftest.$ac_ext >&5 | |
7038 | rm -rf conftest* | |
7039 | eval "ac_cv_func_$ac_func=no" | |
7040 | fi | |
7041 | rm -f conftest* | |
7042 | fi | |
7043 | ||
7044 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7045 | echo "$ac_t""yes" 1>&6 | |
ab87f8c8 | 7046 | cat >> confdefs.h <<EOF |
81bf3d9e | 7047 | #define CRAY_STACKSEG_END $ac_func |
ab87f8c8 | 7048 | EOF |
81bf3d9e RH |
7049 | |
7050 | break | |
ab87f8c8 JL |
7051 | else |
7052 | echo "$ac_t""no" 1>&6 | |
7053 | fi | |
81bf3d9e | 7054 | |
ab87f8c8 | 7055 | done |
81bf3d9e | 7056 | fi |
ab87f8c8 | 7057 | |
81bf3d9e | 7058 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
86cf1cbd | 7059 | echo "configure:7060: checking stack direction for C alloca" >&5 |
81bf3d9e | 7060 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
ab87f8c8 JL |
7061 | echo $ac_n "(cached) $ac_c" 1>&6 |
7062 | else | |
7063 | if test "$cross_compiling" = yes; then | |
81bf3d9e | 7064 | ac_cv_c_stack_direction=0 |
ab87f8c8 JL |
7065 | else |
7066 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7067 | #line 7068 "configure" |
ab87f8c8 | 7068 | #include "confdefs.h" |
81bf3d9e | 7069 | find_stack_direction () |
ab87f8c8 | 7070 | { |
81bf3d9e RH |
7071 | static char *addr = 0; |
7072 | auto char dummy; | |
7073 | if (addr == 0) | |
7074 | { | |
7075 | addr = &dummy; | |
7076 | return find_stack_direction (); | |
7077 | } | |
7078 | else | |
7079 | return (&dummy > addr) ? 1 : -1; | |
7080 | } | |
7081 | main () | |
7082 | { | |
7083 | exit (find_stack_direction() < 0); | |
ab87f8c8 | 7084 | } |
ab87f8c8 | 7085 | EOF |
86cf1cbd | 7086 | if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 | 7087 | then |
81bf3d9e | 7088 | ac_cv_c_stack_direction=1 |
ab87f8c8 JL |
7089 | else |
7090 | echo "configure: failed program was:" >&5 | |
7091 | cat conftest.$ac_ext >&5 | |
7092 | rm -fr conftest* | |
81bf3d9e | 7093 | ac_cv_c_stack_direction=-1 |
ab87f8c8 JL |
7094 | fi |
7095 | rm -fr conftest* | |
7096 | fi | |
7097 | ||
7098 | fi | |
7099 | ||
81bf3d9e RH |
7100 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
7101 | cat >> confdefs.h <<EOF | |
7102 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
ab87f8c8 JL |
7103 | EOF |
7104 | ||
4acab94b AO |
7105 | fi |
7106 | ||
56f02b88 | 7107 | |
ab87f8c8 JL |
7108 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
7109 | unistd.h sys/param.h | |
7110 | do | |
7111 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7112 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
86cf1cbd | 7113 | echo "configure:7114: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
7114 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7116 | else | |
7117 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7118 | #line 7119 "configure" |
ab87f8c8 JL |
7119 | #include "confdefs.h" |
7120 | #include <$ac_hdr> | |
7121 | EOF | |
7122 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
86cf1cbd | 7123 | { (eval echo configure:7124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7124 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7125 | if test -z "$ac_err"; then |
7126 | rm -rf conftest* | |
7127 | eval "ac_cv_header_$ac_safe=yes" | |
7128 | else | |
7129 | echo "$ac_err" >&5 | |
7130 | echo "configure: failed program was:" >&5 | |
7131 | cat conftest.$ac_ext >&5 | |
7132 | rm -rf conftest* | |
7133 | eval "ac_cv_header_$ac_safe=no" | |
7134 | fi | |
7135 | rm -f conftest* | |
7136 | fi | |
7137 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7138 | echo "$ac_t""yes" 1>&6 | |
7139 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7140 | cat >> confdefs.h <<EOF | |
7141 | #define $ac_tr_hdr 1 | |
7142 | EOF | |
7143 | ||
7144 | else | |
7145 | echo "$ac_t""no" 1>&6 | |
7146 | fi | |
7147 | done | |
7148 | ||
7149 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
7150 | strdup __argz_count __argz_stringify __argz_next | |
7151 | do | |
7152 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
86cf1cbd | 7153 | echo "configure:7154: checking for $ac_func" >&5 |
ab87f8c8 JL |
7154 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7156 | else | |
7157 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7158 | #line 7159 "configure" |
ab87f8c8 JL |
7159 | #include "confdefs.h" |
7160 | /* System header to define __stub macros and hopefully few prototypes, | |
7161 | which can conflict with char $ac_func(); below. */ | |
7162 | #include <assert.h> | |
7163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7164 | /* We use char because int might match the return type of a gcc2 | |
7165 | builtin and then its argument prototype would still apply. */ | |
7166 | char $ac_func(); | |
7167 | ||
7168 | int main() { | |
7169 | ||
7170 | /* The GNU C library defines this for functions which it implements | |
7171 | to always fail with ENOSYS. Some functions are actually named | |
7172 | something starting with __ and the normal name is an alias. */ | |
7173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7174 | choke me | |
7175 | #else | |
86702e31 | 7176 | $ac_func(); |
ab87f8c8 JL |
7177 | #endif |
7178 | ||
7179 | ; return 0; } | |
7180 | EOF | |
86cf1cbd | 7181 | if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7182 | rm -rf conftest* |
7183 | eval "ac_cv_func_$ac_func=yes" | |
7184 | else | |
7185 | echo "configure: failed program was:" >&5 | |
7186 | cat conftest.$ac_ext >&5 | |
7187 | rm -rf conftest* | |
7188 | eval "ac_cv_func_$ac_func=no" | |
7189 | fi | |
7190 | rm -f conftest* | |
7191 | fi | |
7192 | ||
7193 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7194 | echo "$ac_t""yes" 1>&6 | |
7195 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7196 | cat >> confdefs.h <<EOF | |
7197 | #define $ac_tr_func 1 | |
7198 | EOF | |
7199 | ||
7200 | else | |
7201 | echo "$ac_t""no" 1>&6 | |
7202 | fi | |
7203 | done | |
7204 | ||
7205 | ||
7206 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
7207 | for ac_func in stpcpy | |
7208 | do | |
7209 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
86cf1cbd | 7210 | echo "configure:7211: checking for $ac_func" >&5 |
ab87f8c8 JL |
7211 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7213 | else | |
7214 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7215 | #line 7216 "configure" |
ab87f8c8 JL |
7216 | #include "confdefs.h" |
7217 | /* System header to define __stub macros and hopefully few prototypes, | |
7218 | which can conflict with char $ac_func(); below. */ | |
7219 | #include <assert.h> | |
7220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7221 | /* We use char because int might match the return type of a gcc2 | |
7222 | builtin and then its argument prototype would still apply. */ | |
7223 | char $ac_func(); | |
7224 | ||
7225 | int main() { | |
7226 | ||
7227 | /* The GNU C library defines this for functions which it implements | |
7228 | to always fail with ENOSYS. Some functions are actually named | |
7229 | something starting with __ and the normal name is an alias. */ | |
7230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7231 | choke me | |
7232 | #else | |
86702e31 | 7233 | $ac_func(); |
ab87f8c8 JL |
7234 | #endif |
7235 | ||
7236 | ; return 0; } | |
7237 | EOF | |
86cf1cbd | 7238 | if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7239 | rm -rf conftest* |
7240 | eval "ac_cv_func_$ac_func=yes" | |
7241 | else | |
7242 | echo "configure: failed program was:" >&5 | |
7243 | cat conftest.$ac_ext >&5 | |
7244 | rm -rf conftest* | |
7245 | eval "ac_cv_func_$ac_func=no" | |
7246 | fi | |
7247 | rm -f conftest* | |
7248 | fi | |
7249 | ||
7250 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7251 | echo "$ac_t""yes" 1>&6 | |
7252 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7253 | cat >> confdefs.h <<EOF | |
7254 | #define $ac_tr_func 1 | |
7255 | EOF | |
7256 | ||
7257 | else | |
7258 | echo "$ac_t""no" 1>&6 | |
7259 | fi | |
7260 | done | |
7261 | ||
7262 | fi | |
7263 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
7264 | cat >> confdefs.h <<\EOF | |
7265 | #define HAVE_STPCPY 1 | |
7266 | EOF | |
7267 | ||
7268 | fi | |
7269 | ||
7270 | if test $ac_cv_header_locale_h = yes; then | |
7271 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
86cf1cbd | 7272 | echo "configure:7273: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
7273 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
7274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7275 | else | |
7276 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7277 | #line 7278 "configure" |
ab87f8c8 JL |
7278 | #include "confdefs.h" |
7279 | #include <locale.h> | |
7280 | int main() { | |
7281 | return LC_MESSAGES | |
7282 | ; return 0; } | |
7283 | EOF | |
86cf1cbd | 7284 | if { (eval echo configure:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7285 | rm -rf conftest* |
7286 | am_cv_val_LC_MESSAGES=yes | |
7287 | else | |
7288 | echo "configure: failed program was:" >&5 | |
7289 | cat conftest.$ac_ext >&5 | |
7290 | rm -rf conftest* | |
7291 | am_cv_val_LC_MESSAGES=no | |
7292 | fi | |
7293 | rm -f conftest* | |
7294 | fi | |
7295 | ||
7296 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
7297 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7298 | cat >> confdefs.h <<\EOF | |
7299 | #define HAVE_LC_MESSAGES 1 | |
7300 | EOF | |
7301 | ||
7302 | fi | |
7303 | fi | |
7304 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
86cf1cbd | 7305 | echo "configure:7306: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
7306 | # Check whether --enable-nls or --disable-nls was given. |
7307 | if test "${enable_nls+set}" = set; then | |
7308 | enableval="$enable_nls" | |
7309 | USE_NLS=$enableval | |
7310 | else | |
7311 | USE_NLS=yes | |
7312 | fi | |
7313 | ||
7314 | echo "$ac_t""$USE_NLS" 1>&6 | |
7315 | ||
7316 | ||
7317 | USE_INCLUDED_LIBINTL=no | |
7318 | ||
7319 | if test "$USE_NLS" = "yes"; then | |
7320 | cat >> confdefs.h <<\EOF | |
7321 | #define ENABLE_NLS 1 | |
7322 | EOF | |
7323 | ||
7324 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
86cf1cbd | 7325 | echo "configure:7326: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
7326 | # Check whether --with-included-gettext or --without-included-gettext was given. |
7327 | if test "${with_included_gettext+set}" = set; then | |
7328 | withval="$with_included_gettext" | |
7329 | nls_cv_force_use_gnu_gettext=$withval | |
7330 | else | |
7331 | nls_cv_force_use_gnu_gettext=no | |
7332 | fi | |
7333 | ||
7334 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
7335 | ||
7336 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7337 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7338 | nls_cv_header_intl= | |
7339 | nls_cv_header_libgt= | |
7340 | CATOBJEXT=NONE | |
7341 | ||
7342 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7343 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
86cf1cbd | 7344 | echo "configure:7345: checking for libintl.h" >&5 |
ab87f8c8 JL |
7345 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7347 | else | |
7348 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7349 | #line 7350 "configure" |
ab87f8c8 JL |
7350 | #include "confdefs.h" |
7351 | #include <libintl.h> | |
7352 | EOF | |
7353 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
86cf1cbd | 7354 | { (eval echo configure:7355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7355 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7356 | if test -z "$ac_err"; then |
7357 | rm -rf conftest* | |
7358 | eval "ac_cv_header_$ac_safe=yes" | |
7359 | else | |
7360 | echo "$ac_err" >&5 | |
7361 | echo "configure: failed program was:" >&5 | |
7362 | cat conftest.$ac_ext >&5 | |
7363 | rm -rf conftest* | |
7364 | eval "ac_cv_header_$ac_safe=no" | |
7365 | fi | |
7366 | rm -f conftest* | |
7367 | fi | |
7368 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7369 | echo "$ac_t""yes" 1>&6 | |
7370 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
86cf1cbd | 7371 | echo "configure:7372: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7372 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7374 | else | |
7375 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7376 | #line 7377 "configure" |
ab87f8c8 JL |
7377 | #include "confdefs.h" |
7378 | #include <libintl.h> | |
7379 | int main() { | |
7380 | return (int) gettext ("") | |
7381 | ; return 0; } | |
7382 | EOF | |
86cf1cbd | 7383 | if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7384 | rm -rf conftest* |
7385 | gt_cv_func_gettext_libc=yes | |
7386 | else | |
7387 | echo "configure: failed program was:" >&5 | |
7388 | cat conftest.$ac_ext >&5 | |
7389 | rm -rf conftest* | |
7390 | gt_cv_func_gettext_libc=no | |
7391 | fi | |
7392 | rm -f conftest* | |
7393 | fi | |
7394 | ||
7395 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7396 | ||
7397 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7398 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
86cf1cbd | 7399 | echo "configure:7400: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7400 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7401 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7403 | else | |
7404 | ac_save_LIBS="$LIBS" | |
7405 | LIBS="-lintl $LIBS" | |
7406 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7407 | #line 7408 "configure" |
ab87f8c8 JL |
7408 | #include "confdefs.h" |
7409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7410 | /* We use char because int might match the return type of a gcc2 | |
7411 | builtin and then its argument prototype would still apply. */ | |
7412 | char bindtextdomain(); | |
7413 | ||
7414 | int main() { | |
7415 | bindtextdomain() | |
7416 | ; return 0; } | |
7417 | EOF | |
86cf1cbd | 7418 | if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7419 | rm -rf conftest* |
7420 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7421 | else | |
7422 | echo "configure: failed program was:" >&5 | |
7423 | cat conftest.$ac_ext >&5 | |
7424 | rm -rf conftest* | |
7425 | eval "ac_cv_lib_$ac_lib_var=no" | |
7426 | fi | |
7427 | rm -f conftest* | |
7428 | LIBS="$ac_save_LIBS" | |
7429 | ||
7430 | fi | |
7431 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7432 | echo "$ac_t""yes" 1>&6 | |
7433 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
86cf1cbd | 7434 | echo "configure:7435: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7435 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7437 | else | |
7438 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
86cf1cbd | 7439 | echo "configure:7440: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7440 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7441 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7443 | else | |
7444 | ac_save_LIBS="$LIBS" | |
7445 | LIBS="-lintl $LIBS" | |
7446 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7447 | #line 7448 "configure" |
ab87f8c8 JL |
7448 | #include "confdefs.h" |
7449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7450 | /* We use char because int might match the return type of a gcc2 | |
7451 | builtin and then its argument prototype would still apply. */ | |
7452 | char gettext(); | |
7453 | ||
7454 | int main() { | |
7455 | gettext() | |
7456 | ; return 0; } | |
7457 | EOF | |
86cf1cbd | 7458 | if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7459 | rm -rf conftest* |
7460 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7461 | else | |
7462 | echo "configure: failed program was:" >&5 | |
7463 | cat conftest.$ac_ext >&5 | |
7464 | rm -rf conftest* | |
7465 | eval "ac_cv_lib_$ac_lib_var=no" | |
7466 | fi | |
7467 | rm -f conftest* | |
7468 | LIBS="$ac_save_LIBS" | |
7469 | ||
7470 | fi | |
7471 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7472 | echo "$ac_t""yes" 1>&6 | |
7473 | gt_cv_func_gettext_libintl=yes | |
7474 | else | |
7475 | echo "$ac_t""no" 1>&6 | |
7476 | gt_cv_func_gettext_libintl=no | |
7477 | fi | |
7478 | ||
7479 | fi | |
7480 | ||
7481 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7482 | else | |
7483 | echo "$ac_t""no" 1>&6 | |
7484 | fi | |
7485 | ||
7486 | fi | |
7487 | ||
7488 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7489 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7490 | cat >> confdefs.h <<\EOF | |
7491 | #define HAVE_GETTEXT 1 | |
7492 | EOF | |
7493 | ||
7494 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7495 | set dummy msgfmt; ac_word=$2 | |
7496 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7497 | echo "configure:7498: checking for $ac_word" >&5 |
ab87f8c8 JL |
7498 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7500 | else | |
7501 | case "$MSGFMT" in | |
7502 | /*) | |
7503 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7504 | ;; | |
7505 | *) | |
7506 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7507 | for ac_dir in $PATH; do | |
7508 | test -z "$ac_dir" && ac_dir=. | |
7509 | if test -f $ac_dir/$ac_word; then | |
7510 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7511 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7512 | break | |
7513 | fi | |
7514 | fi | |
7515 | done | |
7516 | IFS="$ac_save_ifs" | |
7517 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7518 | ;; | |
7519 | esac | |
7520 | fi | |
7521 | MSGFMT="$ac_cv_path_MSGFMT" | |
7522 | if test -n "$MSGFMT"; then | |
7523 | echo "$ac_t""$MSGFMT" 1>&6 | |
7524 | else | |
7525 | echo "$ac_t""no" 1>&6 | |
7526 | fi | |
7527 | if test "$MSGFMT" != "no"; then | |
7528 | for ac_func in dcgettext | |
7529 | do | |
7530 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
86cf1cbd | 7531 | echo "configure:7532: checking for $ac_func" >&5 |
ab87f8c8 JL |
7532 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7534 | else | |
7535 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7536 | #line 7537 "configure" |
ab87f8c8 JL |
7537 | #include "confdefs.h" |
7538 | /* System header to define __stub macros and hopefully few prototypes, | |
7539 | which can conflict with char $ac_func(); below. */ | |
7540 | #include <assert.h> | |
7541 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7542 | /* We use char because int might match the return type of a gcc2 | |
7543 | builtin and then its argument prototype would still apply. */ | |
7544 | char $ac_func(); | |
7545 | ||
7546 | int main() { | |
7547 | ||
7548 | /* The GNU C library defines this for functions which it implements | |
7549 | to always fail with ENOSYS. Some functions are actually named | |
7550 | something starting with __ and the normal name is an alias. */ | |
7551 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7552 | choke me | |
7553 | #else | |
86702e31 | 7554 | $ac_func(); |
ab87f8c8 JL |
7555 | #endif |
7556 | ||
7557 | ; return 0; } | |
7558 | EOF | |
86cf1cbd | 7559 | if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7560 | rm -rf conftest* |
7561 | eval "ac_cv_func_$ac_func=yes" | |
7562 | else | |
7563 | echo "configure: failed program was:" >&5 | |
7564 | cat conftest.$ac_ext >&5 | |
7565 | rm -rf conftest* | |
7566 | eval "ac_cv_func_$ac_func=no" | |
7567 | fi | |
7568 | rm -f conftest* | |
7569 | fi | |
7570 | ||
7571 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7572 | echo "$ac_t""yes" 1>&6 | |
7573 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7574 | cat >> confdefs.h <<EOF | |
7575 | #define $ac_tr_func 1 | |
7576 | EOF | |
7577 | ||
7578 | else | |
7579 | echo "$ac_t""no" 1>&6 | |
7580 | fi | |
7581 | done | |
7582 | ||
7583 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7584 | set dummy gmsgfmt; ac_word=$2 | |
7585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7586 | echo "configure:7587: checking for $ac_word" >&5 |
ab87f8c8 JL |
7587 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7589 | else | |
7590 | case "$GMSGFMT" in | |
7591 | /*) | |
7592 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7593 | ;; | |
7594 | ?:/*) | |
7595 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7596 | ;; | |
7597 | *) | |
cd9e5e7c | 7598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7599 | ac_dummy="$PATH" |
7600 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7601 | test -z "$ac_dir" && ac_dir=. |
7602 | if test -f $ac_dir/$ac_word; then | |
7603 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7604 | break | |
7605 | fi | |
7606 | done | |
7607 | IFS="$ac_save_ifs" | |
7608 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7609 | ;; | |
7610 | esac | |
7611 | fi | |
7612 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7613 | if test -n "$GMSGFMT"; then | |
7614 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7615 | else | |
7616 | echo "$ac_t""no" 1>&6 | |
7617 | fi | |
7618 | ||
7619 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7620 | set dummy xgettext; ac_word=$2 | |
7621 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7622 | echo "configure:7623: checking for $ac_word" >&5 |
ab87f8c8 JL |
7623 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7625 | else | |
7626 | case "$XGETTEXT" in | |
7627 | /*) | |
7628 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7629 | ;; | |
7630 | *) | |
7631 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7632 | for ac_dir in $PATH; do | |
7633 | test -z "$ac_dir" && ac_dir=. | |
7634 | if test -f $ac_dir/$ac_word; then | |
7635 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7636 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7637 | break | |
7638 | fi | |
7639 | fi | |
7640 | done | |
7641 | IFS="$ac_save_ifs" | |
7642 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7643 | ;; | |
7644 | esac | |
7645 | fi | |
7646 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7647 | if test -n "$XGETTEXT"; then | |
7648 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7649 | else | |
7650 | echo "$ac_t""no" 1>&6 | |
7651 | fi | |
7652 | ||
7653 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7654 | #line 7655 "configure" |
ab87f8c8 JL |
7655 | #include "confdefs.h" |
7656 | ||
7657 | int main() { | |
7658 | extern int _nl_msg_cat_cntr; | |
7659 | return _nl_msg_cat_cntr | |
7660 | ; return 0; } | |
7661 | EOF | |
86cf1cbd | 7662 | if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7663 | rm -rf conftest* |
7664 | CATOBJEXT=.gmo | |
7665 | DATADIRNAME=share | |
7666 | else | |
7667 | echo "configure: failed program was:" >&5 | |
7668 | cat conftest.$ac_ext >&5 | |
7669 | rm -rf conftest* | |
7670 | CATOBJEXT=.mo | |
7671 | DATADIRNAME=lib | |
7672 | fi | |
7673 | rm -f conftest* | |
7674 | INSTOBJEXT=.mo | |
7675 | fi | |
7676 | fi | |
7677 | ||
7678 | else | |
7679 | echo "$ac_t""no" 1>&6 | |
7680 | fi | |
7681 | ||
7682 | ||
7683 | if test "$CATOBJEXT" = "NONE"; then | |
7684 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
86cf1cbd | 7685 | echo "configure:7686: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7686 | # Check whether --with-catgets or --without-catgets was given. |
7687 | if test "${with_catgets+set}" = set; then | |
7688 | withval="$with_catgets" | |
7689 | nls_cv_use_catgets=$withval | |
7690 | else | |
7691 | nls_cv_use_catgets=no | |
7692 | fi | |
7693 | ||
7694 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7695 | ||
7696 | if test "$nls_cv_use_catgets" = "yes"; then | |
7697 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
86cf1cbd | 7698 | echo "configure:7699: checking for main in -li" >&5 |
ab87f8c8 JL |
7699 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7700 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7701 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7702 | else | |
7703 | ac_save_LIBS="$LIBS" | |
7704 | LIBS="-li $LIBS" | |
7705 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7706 | #line 7707 "configure" |
ab87f8c8 JL |
7707 | #include "confdefs.h" |
7708 | ||
7709 | int main() { | |
7710 | main() | |
7711 | ; return 0; } | |
7712 | EOF | |
86cf1cbd | 7713 | if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7714 | rm -rf conftest* |
7715 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7716 | else | |
7717 | echo "configure: failed program was:" >&5 | |
7718 | cat conftest.$ac_ext >&5 | |
7719 | rm -rf conftest* | |
7720 | eval "ac_cv_lib_$ac_lib_var=no" | |
7721 | fi | |
7722 | rm -f conftest* | |
7723 | LIBS="$ac_save_LIBS" | |
7724 | ||
7725 | fi | |
7726 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7727 | echo "$ac_t""yes" 1>&6 | |
7728 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7729 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7730 | cat >> confdefs.h <<EOF | |
7731 | #define $ac_tr_lib 1 | |
7732 | EOF | |
7733 | ||
7734 | LIBS="-li $LIBS" | |
7735 | ||
7736 | else | |
7737 | echo "$ac_t""no" 1>&6 | |
7738 | fi | |
7739 | ||
7740 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
86cf1cbd | 7741 | echo "configure:7742: checking for catgets" >&5 |
ab87f8c8 JL |
7742 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7744 | else | |
7745 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 7746 | #line 7747 "configure" |
ab87f8c8 JL |
7747 | #include "confdefs.h" |
7748 | /* System header to define __stub macros and hopefully few prototypes, | |
7749 | which can conflict with char catgets(); below. */ | |
7750 | #include <assert.h> | |
7751 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7752 | /* We use char because int might match the return type of a gcc2 | |
7753 | builtin and then its argument prototype would still apply. */ | |
7754 | char catgets(); | |
7755 | ||
7756 | int main() { | |
7757 | ||
7758 | /* The GNU C library defines this for functions which it implements | |
7759 | to always fail with ENOSYS. Some functions are actually named | |
7760 | something starting with __ and the normal name is an alias. */ | |
7761 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7762 | choke me | |
7763 | #else | |
86702e31 | 7764 | catgets(); |
ab87f8c8 JL |
7765 | #endif |
7766 | ||
7767 | ; return 0; } | |
7768 | EOF | |
86cf1cbd | 7769 | if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7770 | rm -rf conftest* |
7771 | eval "ac_cv_func_catgets=yes" | |
7772 | else | |
7773 | echo "configure: failed program was:" >&5 | |
7774 | cat conftest.$ac_ext >&5 | |
7775 | rm -rf conftest* | |
7776 | eval "ac_cv_func_catgets=no" | |
7777 | fi | |
7778 | rm -f conftest* | |
7779 | fi | |
7780 | ||
7781 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7782 | echo "$ac_t""yes" 1>&6 | |
7783 | cat >> confdefs.h <<\EOF | |
7784 | #define HAVE_CATGETS 1 | |
7785 | EOF | |
7786 | ||
7787 | INTLOBJS="\$(CATOBJS)" | |
7788 | # Extract the first word of "gencat", so it can be a program name with args. | |
7789 | set dummy gencat; ac_word=$2 | |
7790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7791 | echo "configure:7792: checking for $ac_word" >&5 |
ab87f8c8 JL |
7792 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7794 | else | |
7795 | case "$GENCAT" in | |
7796 | /*) | |
7797 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7798 | ;; | |
7799 | ?:/*) | |
7800 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7801 | ;; | |
7802 | *) | |
cd9e5e7c | 7803 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7804 | ac_dummy="$PATH" |
7805 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7806 | test -z "$ac_dir" && ac_dir=. |
7807 | if test -f $ac_dir/$ac_word; then | |
7808 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7809 | break | |
7810 | fi | |
7811 | done | |
7812 | IFS="$ac_save_ifs" | |
7813 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7814 | ;; | |
7815 | esac | |
7816 | fi | |
7817 | GENCAT="$ac_cv_path_GENCAT" | |
7818 | if test -n "$GENCAT"; then | |
7819 | echo "$ac_t""$GENCAT" 1>&6 | |
7820 | else | |
7821 | echo "$ac_t""no" 1>&6 | |
7822 | fi | |
7823 | if test "$GENCAT" != "no"; then | |
7824 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7825 | set dummy gmsgfmt; ac_word=$2 | |
7826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7827 | echo "configure:7828: checking for $ac_word" >&5 |
ab87f8c8 JL |
7828 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7830 | else | |
7831 | case "$GMSGFMT" in | |
7832 | /*) | |
7833 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7834 | ;; | |
7835 | ?:/*) | |
7836 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7837 | ;; | |
7838 | *) | |
cd9e5e7c | 7839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7840 | ac_dummy="$PATH" |
7841 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7842 | test -z "$ac_dir" && ac_dir=. |
7843 | if test -f $ac_dir/$ac_word; then | |
7844 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7845 | break | |
7846 | fi | |
7847 | done | |
7848 | IFS="$ac_save_ifs" | |
7849 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7850 | ;; | |
7851 | esac | |
7852 | fi | |
7853 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7854 | if test -n "$GMSGFMT"; then | |
7855 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7856 | else | |
7857 | echo "$ac_t""no" 1>&6 | |
7858 | fi | |
7859 | ||
7860 | if test "$GMSGFMT" = "no"; then | |
7861 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7862 | set dummy msgfmt; ac_word=$2 | |
7863 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7864 | echo "configure:7865: checking for $ac_word" >&5 |
ab87f8c8 JL |
7865 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7867 | else | |
7868 | case "$GMSGFMT" in | |
7869 | /*) | |
7870 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7871 | ;; | |
7872 | *) | |
7873 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7874 | for ac_dir in $PATH; do | |
7875 | test -z "$ac_dir" && ac_dir=. | |
7876 | if test -f $ac_dir/$ac_word; then | |
7877 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7878 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7879 | break | |
7880 | fi | |
7881 | fi | |
7882 | done | |
7883 | IFS="$ac_save_ifs" | |
7884 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7885 | ;; | |
7886 | esac | |
7887 | fi | |
7888 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7889 | if test -n "$GMSGFMT"; then | |
7890 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7891 | else | |
7892 | echo "$ac_t""no" 1>&6 | |
7893 | fi | |
7894 | ||
7895 | fi | |
7896 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7897 | set dummy xgettext; ac_word=$2 | |
7898 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7899 | echo "configure:7900: checking for $ac_word" >&5 |
ab87f8c8 JL |
7900 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7902 | else | |
7903 | case "$XGETTEXT" in | |
7904 | /*) | |
7905 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7906 | ;; | |
7907 | *) | |
7908 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7909 | for ac_dir in $PATH; do | |
7910 | test -z "$ac_dir" && ac_dir=. | |
7911 | if test -f $ac_dir/$ac_word; then | |
7912 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7913 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7914 | break | |
7915 | fi | |
7916 | fi | |
7917 | done | |
7918 | IFS="$ac_save_ifs" | |
7919 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7920 | ;; | |
7921 | esac | |
7922 | fi | |
7923 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7924 | if test -n "$XGETTEXT"; then | |
7925 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7926 | else | |
7927 | echo "$ac_t""no" 1>&6 | |
7928 | fi | |
7929 | ||
7930 | USE_INCLUDED_LIBINTL=yes | |
7931 | CATOBJEXT=.cat | |
7932 | INSTOBJEXT=.cat | |
7933 | DATADIRNAME=lib | |
7934 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7935 | INTLLIBS=$INTLDEPS | |
7936 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7937 | nls_cv_header_intl=intl/libintl.h | |
7938 | nls_cv_header_libgt=intl/libgettext.h | |
7939 | fi | |
7940 | else | |
7941 | echo "$ac_t""no" 1>&6 | |
7942 | fi | |
7943 | ||
7944 | fi | |
7945 | fi | |
7946 | ||
7947 | if test "$CATOBJEXT" = "NONE"; then | |
7948 | nls_cv_use_gnu_gettext=yes | |
7949 | fi | |
7950 | fi | |
7951 | ||
7952 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7953 | INTLOBJS="\$(GETTOBJS)" | |
7954 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7955 | set dummy msgfmt; ac_word=$2 | |
7956 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7957 | echo "configure:7958: checking for $ac_word" >&5 |
ab87f8c8 JL |
7958 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7960 | else | |
7961 | case "$MSGFMT" in | |
7962 | /*) | |
7963 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7964 | ;; | |
7965 | *) | |
7966 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7967 | for ac_dir in $PATH; do | |
7968 | test -z "$ac_dir" && ac_dir=. | |
7969 | if test -f $ac_dir/$ac_word; then | |
7970 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7971 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7972 | break | |
7973 | fi | |
7974 | fi | |
7975 | done | |
7976 | IFS="$ac_save_ifs" | |
7977 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7978 | ;; | |
7979 | esac | |
7980 | fi | |
7981 | MSGFMT="$ac_cv_path_MSGFMT" | |
7982 | if test -n "$MSGFMT"; then | |
7983 | echo "$ac_t""$MSGFMT" 1>&6 | |
7984 | else | |
7985 | echo "$ac_t""no" 1>&6 | |
7986 | fi | |
7987 | ||
7988 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7989 | set dummy gmsgfmt; ac_word=$2 | |
7990 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 7991 | echo "configure:7992: checking for $ac_word" >&5 |
ab87f8c8 JL |
7992 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7994 | else | |
7995 | case "$GMSGFMT" in | |
7996 | /*) | |
7997 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7998 | ;; | |
7999 | ?:/*) | |
8000 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
8001 | ;; | |
8002 | *) | |
cd9e5e7c | 8003 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8004 | ac_dummy="$PATH" |
8005 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8006 | test -z "$ac_dir" && ac_dir=. |
8007 | if test -f $ac_dir/$ac_word; then | |
8008 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8009 | break | |
8010 | fi | |
8011 | done | |
8012 | IFS="$ac_save_ifs" | |
8013 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
8014 | ;; | |
8015 | esac | |
8016 | fi | |
8017 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8018 | if test -n "$GMSGFMT"; then | |
8019 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8020 | else | |
8021 | echo "$ac_t""no" 1>&6 | |
8022 | fi | |
8023 | ||
8024 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8025 | set dummy xgettext; ac_word=$2 | |
8026 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
86cf1cbd | 8027 | echo "configure:8028: checking for $ac_word" >&5 |
ab87f8c8 JL |
8028 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8030 | else | |
8031 | case "$XGETTEXT" in | |
8032 | /*) | |
8033 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8034 | ;; | |
8035 | *) | |
8036 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8037 | for ac_dir in $PATH; do | |
8038 | test -z "$ac_dir" && ac_dir=. | |
8039 | if test -f $ac_dir/$ac_word; then | |
8040 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8041 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8042 | break | |
8043 | fi | |
8044 | fi | |
8045 | done | |
8046 | IFS="$ac_save_ifs" | |
8047 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8048 | ;; | |
8049 | esac | |
8050 | fi | |
8051 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8052 | if test -n "$XGETTEXT"; then | |
8053 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8054 | else | |
8055 | echo "$ac_t""no" 1>&6 | |
8056 | fi | |
8057 | ||
8058 | ||
8059 | USE_INCLUDED_LIBINTL=yes | |
8060 | CATOBJEXT=.gmo | |
8061 | INSTOBJEXT=.mo | |
8062 | DATADIRNAME=share | |
8063 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8064 | INTLLIBS=$INTLDEPS | |
8065 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8066 | nls_cv_header_intl=intl/libintl.h | |
8067 | nls_cv_header_libgt=intl/libgettext.h | |
8068 | fi | |
8069 | ||
8070 | if test "$XGETTEXT" != ":"; then | |
8071 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8072 | : ; | |
8073 | else | |
8074 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
8075 | XGETTEXT=":" | |
8076 | fi | |
8077 | fi | |
8078 | ||
8079 | # We need to process the po/ directory. | |
8080 | POSUB=po | |
8081 | else | |
8082 | DATADIRNAME=share | |
8083 | nls_cv_header_intl=intl/libintl.h | |
8084 | nls_cv_header_libgt=intl/libgettext.h | |
8085 | fi | |
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8091 | # because some of the sources are only built for this goal. | |
8092 | if test "$PACKAGE" = gettext; then | |
8093 | USE_NLS=yes | |
8094 | USE_INCLUDED_LIBINTL=yes | |
8095 | fi | |
8096 | ||
8097 | for lang in $ALL_LINGUAS; do | |
8098 | GMOFILES="$GMOFILES $lang.gmo" | |
8099 | POFILES="$POFILES $lang.po" | |
8100 | done | |
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | if test "x$CATOBJEXT" != "x"; then | |
8116 | if test "x$ALL_LINGUAS" = "x"; then | |
8117 | LINGUAS= | |
8118 | else | |
8119 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
86cf1cbd | 8120 | echo "configure:8121: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
8121 | NEW_LINGUAS= |
8122 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8123 | case "$ALL_LINGUAS" in | |
8124 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8125 | esac | |
8126 | done | |
8127 | LINGUAS=$NEW_LINGUAS | |
8128 | echo "$ac_t""$LINGUAS" 1>&6 | |
8129 | fi | |
8130 | ||
8131 | if test -n "$LINGUAS"; then | |
8132 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8133 | fi | |
8134 | fi | |
8135 | ||
8136 | if test $ac_cv_header_locale_h = yes; then | |
8137 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8138 | else | |
8139 | INCLUDE_LOCALE_H="\ | |
8140 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8141 | fi | |
8142 | ||
8143 | ||
8144 | test -d intl || mkdir intl | |
8145 | if test "$CATOBJEXT" = ".cat"; then | |
8146 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
8147 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
86cf1cbd | 8148 | echo "configure:8149: checking for linux/version.h" >&5 |
ab87f8c8 JL |
8149 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8151 | else | |
8152 | cat > conftest.$ac_ext <<EOF | |
86cf1cbd | 8153 | #line 8154 "configure" |
ab87f8c8 JL |
8154 | #include "confdefs.h" |
8155 | #include <linux/version.h> | |
8156 | EOF | |
8157 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
86cf1cbd | 8158 | { (eval echo configure:8159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 8159 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
8160 | if test -z "$ac_err"; then |
8161 | rm -rf conftest* | |
8162 | eval "ac_cv_header_$ac_safe=yes" | |
8163 | else | |
8164 | echo "$ac_err" >&5 | |
8165 | echo "configure: failed program was:" >&5 | |
8166 | cat conftest.$ac_ext >&5 | |
8167 | rm -rf conftest* | |
8168 | eval "ac_cv_header_$ac_safe=no" | |
8169 | fi | |
8170 | rm -f conftest* | |
8171 | fi | |
8172 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8173 | echo "$ac_t""yes" 1>&6 | |
8174 | msgformat=linux | |
8175 | else | |
8176 | echo "$ac_t""no" 1>&6 | |
8177 | msgformat=xopen | |
8178 | fi | |
8179 | ||
8180 | ||
8181 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
8182 | fi | |
8183 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8184 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
8185 | ||
8186 | if test "$PACKAGE" = "gettext"; then | |
8187 | GT_NO="#NO#" | |
8188 | GT_YES= | |
8189 | else | |
8190 | GT_NO= | |
8191 | GT_YES="#YES#" | |
8192 | fi | |
8193 | ||
8194 | ||
8195 | ||
8196 | MKINSTALLDIRS= | |
8197 | if test -n "$ac_aux_dir"; then | |
8198 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
8199 | fi | |
8200 | if test -z "$MKINSTALLDIRS"; then | |
8201 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
8202 | fi | |
8203 | ||
8204 | ||
8205 | l= | |
8206 | ||
8207 | ||
8208 | test -d po || mkdir po | |
8209 | if test "x$srcdir" != "x."; then | |
8210 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8211 | posrcprefix="$srcdir/" | |
8212 | else | |
8213 | posrcprefix="../$srcdir/" | |
8214 | fi | |
8215 | else | |
8216 | posrcprefix="../" | |
8217 | fi | |
8218 | rm -f po/POTFILES | |
8219 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8220 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8221 | ||
8222 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
8223 | ||
f4ab28e3 MK |
8224 | # Windows32 Registry support for specifying GCC installation paths. |
8225 | # Check whether --enable-win32-registry or --disable-win32-registry was given. | |
8226 | if test "${enable_win32_registry+set}" = set; then | |
8227 | enableval="$enable_win32_registry" | |
8228 | : | |
8229 | fi | |
8230 | ||
8231 | ||
8232 | echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 | |
86cf1cbd | 8233 | echo "configure:8234: checking whether windows registry support is requested" >&5 |
f4ab28e3 MK |
8234 | if test x$enable_win32_registry != xno; then |
8235 | cat >> confdefs.h <<\EOF | |
8236 | #define ENABLE_WIN32_REGISTRY 1 | |
8237 | EOF | |
8238 | ||
8239 | echo "$ac_t""yes" 1>&6 | |
8240 | else | |
8241 | echo "$ac_t""no" 1>&6 | |
8242 | fi | |
8243 | ||
8244 | # Check if user specified a different registry key. | |
8245 | case x${enable_win32_registry} in | |
8246 | x | xyes) | |
8247 | # default. | |
8248 | gcc_cv_win32_registry_key="$VERSION" | |
8249 | ;; | |
8250 | xno) | |
8251 | # no registry lookup. | |
8252 | gcc_cv_win32_registry_key='' | |
8253 | ;; | |
8254 | *) | |
8255 | # user-specified key. | |
8256 | gcc_cv_win32_registry_key="$enable_win32_registry" | |
8257 | ;; | |
8258 | esac | |
8259 | ||
8260 | if test x$enable_win32_registry != xno; then | |
8261 | echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 | |
86cf1cbd | 8262 | echo "configure:8263: checking registry key on windows hosts" >&5 |
f4ab28e3 MK |
8263 | cat >> confdefs.h <<EOF |
8264 | #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key" | |
8265 | EOF | |
8266 | ||
8267 | echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6 | |
8268 | fi | |
8269 | ||
ab87f8c8 JL |
8270 | # Get an absolute path to the GCC top-level source directory |
8271 | holddir=`pwd` | |
8272 | cd $srcdir | |
8273 | topdir=`pwd` | |
8274 | cd $holddir | |
8275 | ||
8276 | # Conditionalize the makefile for this host machine. | |
8277 | # Make-host contains the concatenation of all host makefile fragments | |
8278 | # [there can be more than one]. This file is built by configure.frag. | |
8279 | host_overrides=Make-host | |
8280 | dep_host_xmake_file= | |
8281 | for f in .. ${host_xmake_file} | |
8282 | do | |
8283 | if test -f ${srcdir}/config/$f | |
8284 | then | |
8285 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
8286 | fi | |
8287 | done | |
8288 | ||
8289 | # Conditionalize the makefile for this target machine. | |
8290 | # Make-target contains the concatenation of all host makefile fragments | |
8291 | # [there can be more than one]. This file is built by configure.frag. | |
8292 | target_overrides=Make-target | |
8293 | dep_tmake_file= | |
8294 | for f in .. ${tmake_file} | |
8295 | do | |
8296 | if test -f ${srcdir}/config/$f | |
8297 | then | |
8298 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
8299 | fi | |
8300 | done | |
8301 | ||
8302 | # If the host doesn't support symlinks, modify CC in | |
8303 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
8304 | # Otherwise, we can use "CC=$(CC)". | |
8305 | rm -f symtest.tem | |
8306 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
8307 | then | |
8308 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 8309 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
8310 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
8311 | else | |
8312 | rm -f symtest.tem | |
8313 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
8314 | then | |
8315 | symbolic_link="cp -p" | |
8316 | else | |
8317 | symbolic_link="cp" | |
8318 | fi | |
8319 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 8320 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
8321 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
8322 | fi | |
8323 | rm -f symtest.tem | |
8324 | ||
8325 | out_object_file=`basename $out_file .c`.o | |
8326 | ||
8327 | tm_file_list= | |
8328 | for f in $tm_file; do | |
64ccbc99 KG |
8329 | case $f in |
8330 | gansidecl.h ) | |
8331 | tm_file_list="${tm_file_list} $f" ;; | |
8332 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
8333 | esac | |
ab87f8c8 JL |
8334 | done |
8335 | ||
8336 | host_xm_file_list= | |
8337 | for f in $host_xm_file; do | |
64ccbc99 KG |
8338 | case $f in |
8339 | auto-host.h | gansidecl.h | hwint.h ) | |
8340 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
8341 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
8342 | esac | |
ab87f8c8 JL |
8343 | done |
8344 | ||
8345 | build_xm_file_list= | |
8346 | for f in $build_xm_file; do | |
64ccbc99 KG |
8347 | case $f in |
8348 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
8349 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
8350 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
8351 | esac | |
ab87f8c8 JL |
8352 | done |
8353 | ||
8354 | # Define macro CROSS_COMPILE in compilation | |
8355 | # if this is a cross-compiler. | |
8356 | # Also use all.cross instead of all.internal | |
8357 | # and add cross-make to Makefile. | |
8358 | cross_overrides="/dev/null" | |
8359 | if test x$host != x$target | |
8360 | then | |
8361 | cross_defines="CROSS=-DCROSS_COMPILE" | |
8362 | cross_overrides="${topdir}/cross-make" | |
8363 | fi | |
8364 | ||
8365 | # When building gcc with a cross-compiler, we need to fix a few things. | |
8366 | # This must come after cross-make as we want all.build to override | |
8367 | # all.cross. | |
8368 | build_overrides="/dev/null" | |
8369 | if test x$build != x$host | |
8370 | then | |
8371 | build_overrides="${topdir}/build-make" | |
8372 | fi | |
8373 | ||
8374 | # Expand extra_headers to include complete path. | |
8375 | # This substitutes for lots of t-* files. | |
8376 | extra_headers_list= | |
8377 | if test "x$extra_headers" = x | |
8378 | then true | |
8379 | else | |
8380 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
8381 | for file in $extra_headers; | |
8382 | do | |
8383 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8384 | done | |
8385 | fi | |
8386 | ||
8387 | if test x$use_collect2 = xno; then | |
8388 | use_collect2= | |
8389 | fi | |
8390 | ||
8391 | # Add a definition of USE_COLLECT2 if system wants one. | |
8392 | # Also tell toplev.c what to do. | |
8393 | # This substitutes for lots of t-* files. | |
8394 | if test x$use_collect2 = x | |
8395 | then | |
8396 | will_use_collect2= | |
8397 | maybe_use_collect2= | |
8398 | else | |
8399 | will_use_collect2="collect2" | |
8400 | maybe_use_collect2="-DUSE_COLLECT2" | |
8401 | fi | |
8402 | ||
8403 | # NEED TO CONVERT | |
8404 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8405 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8406 | # for line oriented comments, so we must always use a GNU cpp. If | |
8407 | # building gcc with a cross compiler, use the cross compiler just | |
8408 | # built. Otherwise, we can use the cpp just built. | |
8409 | md_file_sub= | |
8410 | if test "x$md_cppflags" = x | |
8411 | then | |
8412 | md_file_sub=$srcdir/config/$md_file | |
8413 | else | |
8414 | md_file=md | |
8415 | fi | |
8416 | ||
8417 | # If we have gas in the build tree, make a link to it. | |
8418 | if test -f ../gas/Makefile; then | |
8419 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8420 | fi | |
8421 | ||
8422 | # If we have nm in the build tree, make a link to it. | |
8423 | if test -f ../binutils/Makefile; then | |
8424 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8425 | fi | |
8426 | ||
8427 | # If we have ld in the build tree, make a link to it. | |
8428 | if test -f ../ld/Makefile; then | |
8429 | # if test x$use_collect2 = x; then | |
8430 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8431 | # else | |
8432 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8433 | # fi | |
8434 | fi | |
8435 | ||
8436 | # Figure out what assembler alignment features are present. | |
8437 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
86cf1cbd | 8438 | echo "configure:8439: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8439 | gcc_cv_as= |
8440 | gcc_cv_as_alignment_features= | |
8441 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8442 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8443 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8444 | elif test -x "$AS"; then | |
8445 | gcc_cv_as="$AS" | |
8446 | elif test -x as$host_exeext; then | |
8447 | # Build using assembler in the current directory. | |
8448 | gcc_cv_as=./as$host_exeext | |
8449 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8450 | # Single tree build which includes gas. | |
8451 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8452 | do | |
8453 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8454 | if test x$gcc_cv_gas_version != x; then | |
8455 | break | |
8456 | fi | |
8457 | done | |
8458 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8459 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8460 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8461 | # Gas version 2.6 and later support for .balign and .p2align. | |
8462 | # bytes to skip when using .p2align. | |
8463 | 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 | |
8464 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8465 | cat >> confdefs.h <<\EOF | |
8466 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8467 | EOF | |
8468 | ||
8469 | fi | |
8470 | # Gas version 2.8 and later support specifying the maximum | |
8471 | # bytes to skip when using .p2align. | |
8472 | 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 | |
8473 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8474 | cat >> confdefs.h <<\EOF | |
8475 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8476 | EOF |
8477 | ||
0b9d02c6 | 8478 | fi |
9e423e6d | 8479 | fi |
75bffa71 | 8480 | elif test x$host = x$target; then |
9e423e6d | 8481 | # Native build. |
779243f7 JL |
8482 | # Search the same directories that the installed compiler will |
8483 | # search. Else we may find the wrong assembler and lose. If we | |
8484 | # do not find a suitable assembler binary, then try the user's | |
8485 | # path. | |
8486 | # | |
8487 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8488 | # user's path. Unfortunately, there is no good way to get at the | |
8489 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8490 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8491 | # to be fixed as part of the make/configure rewrite too. | |
8492 | ||
8493 | if test "x$exec_prefix" = xNONE; then | |
8494 | if test "x$prefix" = xNONE; then | |
8495 | test_prefix=/usr/local | |
8496 | else | |
8497 | test_prefix=$prefix | |
8498 | fi | |
8499 | else | |
8500 | test_prefix=$exec_prefix | |
8501 | fi | |
8502 | ||
8503 | # If the loop below does not find an assembler, then use whatever | |
8504 | # one we can find in the users's path. | |
8505 | # user's path. | |
8506 | as=as$host_exeext | |
8507 | ||
8508 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8509 | $test_prefix/lib/gcc-lib/$target \ | |
8510 | /usr/lib/gcc/$target/$gcc_version \ | |
8511 | /usr/lib/gcc/$target \ | |
8512 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8513 | $test_prefix/$target/bin \ | |
8514 | /usr/libexec \ | |
8515 | /usr/ccs/gcc \ | |
8516 | /usr/ccs/bin \ | |
8517 | /udk/usr/ccs/bin \ | |
8518 | /bsd43/usr/lib/cmplrs/cc \ | |
8519 | /usr/cross64/usr/bin \ | |
8520 | /usr/lib/cmplrs/cc \ | |
8521 | /sysv/usr/lib/cmplrs/cc \ | |
8522 | /svr4/usr/lib/cmplrs/cc \ | |
8523 | /usr/bin" | |
8524 | ||
8525 | for dir in $test_dirs; do | |
8526 | if test -f $dir/as$host_exeext; then | |
8527 | gcc_cv_as=$dir/as$host_exeext | |
8528 | break; | |
8529 | fi | |
8530 | done | |
9e423e6d | 8531 | fi |
75bffa71 | 8532 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8533 | # Check if we have .balign and .p2align |
8534 | echo ".balign 4" > conftest.s | |
8535 | echo ".p2align 2" >> conftest.s | |
8536 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8537 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8538 | cat >> confdefs.h <<\EOF | |
8539 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8540 | EOF | |
8541 | ||
8542 | fi | |
8543 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8544 | # Check if specifying the maximum bytes to skip when |
8545 | # using .p2align is supported. | |
8546 | echo ".p2align 4,,7" > conftest.s | |
8547 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8548 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8549 | cat >> confdefs.h <<\EOF | |
8550 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8551 | EOF | |
8552 | ||
8553 | fi | |
8554 | rm -f conftest.s conftest.o | |
8555 | fi | |
8556 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8557 | ||
d1accaa3 | 8558 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
86cf1cbd | 8559 | echo "configure:8560: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8560 | gcc_cv_as_subsections= |
8561 | if test x$gcc_cv_as != x; then | |
8562 | # Check if we have .subsection | |
8563 | echo ".subsection 1" > conftest.s | |
8564 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8565 | gcc_cv_as_subsections=".subsection" | |
8566 | if test -x nm$host_exeext; then | |
8567 | gcc_cv_nm=./nm$host_exeext | |
8568 | elif test x$host = x$target; then | |
8569 | # Native build. | |
8570 | gcc_cv_nm=nm$host_exeext | |
8571 | fi | |
8572 | if test x$gcc_cv_nm != x; then | |
8573 | cat > conftest.s <<EOF | |
8574 | conftest_label1: .word 0 | |
8575 | .subsection -1 | |
8576 | conftest_label2: .word 0 | |
8577 | .previous | |
8578 | EOF | |
8579 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8580 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8581 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8582 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8583 | : | |
8584 | else | |
d1accaa3 JJ |
8585 | gcc_cv_as_subsections="working .subsection -1" |
8586 | cat >> confdefs.h <<\EOF | |
8587 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8588 | EOF | |
8589 | ||
8590 | fi | |
8591 | fi | |
8592 | fi | |
8593 | fi | |
8594 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8595 | fi | |
8596 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8597 | ||
12822146 | 8598 | echo $ac_n "checking assembler weak support""... $ac_c" 1>&6 |
86cf1cbd | 8599 | echo "configure:8600: checking assembler weak support" >&5 |
12822146 JL |
8600 | gcc_cv_as_weak= |
8601 | if test x$gcc_cv_as != x; then | |
8602 | # Check if we have .weak | |
8603 | echo " .weak foobar" > conftest.s | |
8604 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8605 | cat >> confdefs.h <<\EOF | |
8606 | #define HAVE_GAS_WEAK 1 | |
8607 | EOF | |
8608 | ||
8609 | gcc_cv_as_weak="yes" | |
8610 | fi | |
8611 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8612 | fi | |
8613 | echo "$ac_t""$gcc_cv_as_weak" 1>&6 | |
8614 | ||
6a9c5260 | 8615 | echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6 |
86cf1cbd | 8616 | echo "configure:8617: checking assembler hidden support" >&5 |
6a9c5260 UD |
8617 | gcc_cv_as_hidden= |
8618 | if test x$gcc_cv_as != x; then | |
8619 | # Check if we have .hidden | |
8620 | echo " .hidden foobar" > conftest.s | |
8621 | echo "foobar:" >> conftest.s | |
8622 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8623 | cat >> confdefs.h <<\EOF | |
8624 | #define HAVE_GAS_HIDDEN 1 | |
8625 | EOF | |
8626 | ||
8627 | gcc_cv_as_hidden="yes" | |
8628 | fi | |
8629 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8630 | fi | |
8631 | echo "$ac_t""$gcc_cv_as_hidden" 1>&6 | |
8632 | ||
1cb36a98 RH |
8633 | case "$target" in |
8634 | sparc*-*-*) | |
8635 | echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 | |
86cf1cbd | 8636 | echo "configure:8637: checking assembler .register pseudo-op support" >&5 |
5b68c389 AO |
8637 | if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then |
8638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8639 | else | |
8640 | ||
8641 | gcc_cv_as_register_pseudo_op=unknown | |
8642 | if test x$gcc_cv_as != x; then | |
8643 | # Check if we have .register | |
8644 | echo ".register %g2, #scratch" > conftest.s | |
8645 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
1cb36a98 | 8646 | gcc_cv_as_register_pseudo_op=yes |
5b68c389 AO |
8647 | else |
8648 | gcc_cv_as_register_pseudo_op=no | |
8649 | fi | |
8650 | rm -f conftest.s conftest.o | |
8651 | fi | |
8652 | ||
8653 | fi | |
8654 | ||
8655 | echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6 | |
8656 | if test "x$gcc_cv_as_register_pseudo_op" = xyes; then | |
8657 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8658 | #define HAVE_AS_REGISTER_PSEUDO_OP 1 |
8659 | EOF | |
8660 | ||
1cb36a98 | 8661 | fi |
1cb36a98 | 8662 | |
5b68c389 AO |
8663 | case "$tm_file" in |
8664 | *64*) | |
8665 | echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6 | |
86cf1cbd | 8666 | echo "configure:8667: checking for 64 bit support in assembler ($gcc_cv_as)" >&5 |
5b68c389 AO |
8667 | if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then |
8668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8669 | else | |
8670 | ||
8671 | if test -n "$gcc_cv_as"; then | |
8672 | echo ".xword foo" > conftest.s | |
8673 | gcc_cv_as_flags64=no | |
8a90b95d | 8674 | for flag in "-xarch=v9" "-64 -Av9"; do |
5b68c389 AO |
8675 | if $gcc_cv_as $flag -o conftest.o conftest.s \ |
8676 | > /dev/null 2>&1; then | |
8677 | gcc_cv_as_flags64=$flag | |
8678 | break | |
8679 | fi | |
8680 | done | |
8681 | rm -f conftest.s conftest.o | |
8682 | else | |
8683 | if test "$gas" = yes; then | |
8684 | gcc_cv_as_flags64="-64 -Av9" | |
8685 | else | |
8686 | gcc_cv_as_flags64="-xarch=v9" | |
8687 | fi | |
1cb36a98 | 8688 | fi |
5b68c389 AO |
8689 | |
8690 | fi | |
8691 | ||
8692 | echo "$ac_t""$gcc_cv_as_flags64" 1>&6 | |
8693 | if test "x$gcc_cv_as_flags64" = xno; then | |
8694 | ||
8695 | tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8696 | dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8697 | ||
8698 | else | |
8699 | cat >> confdefs.h <<EOF | |
8700 | #define AS_SPARC64_FLAG "$gcc_cv_as_flags64" | |
8701 | EOF | |
8702 | ||
1cb36a98 | 8703 | fi |
5b68c389 AO |
8704 | ;; |
8705 | *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no} | |
8706 | ;; | |
8707 | esac | |
8708 | ||
8709 | if test "x$gcc_cv_as_flags64" != xno; then | |
8710 | echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6 | |
86cf1cbd | 8711 | echo "configure:8712: checking for assembler offsetable %lo() support" >&5 |
5b68c389 AO |
8712 | if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then |
8713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8714 | else | |
8715 | ||
8716 | gcc_cv_as_offsetable_lo10=unknown | |
8717 | if test "x$gcc_cv_as" != x; then | |
8718 | # Check if assembler has offsetable %lo() | |
8719 | echo "or %g1, %lo(ab) + 12, %g1" > conftest.s | |
8720 | echo "or %g1, %lo(ab + 12), %g1" > conftest1.s | |
8721 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \ | |
8722 | > /dev/null 2>&1 && | |
8723 | $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \ | |
8724 | > /dev/null 2>&1; then | |
8725 | if cmp conftest.o conftest1.o > /dev/null 2>&1; then | |
8726 | gcc_cv_as_offsetable_lo10=no | |
8727 | else | |
8728 | gcc_cv_as_offsetable_lo10=yes | |
8729 | fi | |
8730 | else | |
8731 | gcc_cv_as_offsetable_lo10=no | |
8732 | fi | |
8733 | rm -f conftest.s conftest.o conftest1.s conftest1.o | |
8734 | fi | |
8735 | ||
8736 | fi | |
8737 | ||
8738 | echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6 | |
8739 | if test "x$gcc_cv_as_offsetable_lo10" = xyes; then | |
8740 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8741 | #define HAVE_AS_OFFSETABLE_LO10 1 |
8742 | EOF | |
8743 | ||
1cb36a98 | 8744 | fi |
1cb36a98 | 8745 | fi |
1cb36a98 RH |
8746 | ;; |
8747 | ||
8748 | i[34567]86-*-*) | |
8749 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 | |
86cf1cbd | 8750 | echo "configure:8751: checking assembler instructions" >&5 |
1cb36a98 RH |
8751 | gcc_cv_as_instructions= |
8752 | if test x$gcc_cv_as != x; then | |
53b5ce19 JW |
8753 | set "filds fists" "filds mem; fists mem" |
8754 | while test $# -gt 0 | |
8755 | do | |
8756 | echo "$2" > conftest.s | |
8757 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8758 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
8759 | cat >> confdefs.h <<EOF | |
8760 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
8761 | EOF | |
8762 | ||
8763 | fi | |
8764 | shift 2 | |
8765 | done | |
8766 | rm -f conftest.s conftest.o | |
1cb36a98 RH |
8767 | fi |
8768 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
8769 | ;; | |
8770 | esac | |
53b5ce19 | 8771 | |
861bb6c1 | 8772 | # Figure out what language subdirectories are present. |
71205e0b MH |
8773 | # Look if the user specified --enable-languages="..."; if not, use |
8774 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8775 | # go away some day. | |
8776 | if test x"${enable_languages+set}" != xset; then | |
8777 | if test x"${LANGUAGES+set}" = xset; then | |
8778 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8779 | else | |
8780 | enable_languages=all | |
8781 | fi | |
8782 | fi | |
861bb6c1 JL |
8783 | subdirs= |
8784 | for lang in ${srcdir}/*/config-lang.in .. | |
8785 | do | |
8786 | case $lang in | |
8787 | ..) ;; | |
8788 | # The odd quoting in the next line works around | |
8789 | # an apparent bug in bash 1.12 on linux. | |
8790 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8791 | *) |
8792 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8793 | if test "x$lang_alias" = x | |
8794 | then | |
8795 | echo "$lang doesn't set \$language." 1>&2 | |
8796 | exit 1 | |
8797 | fi | |
8798 | if test x"${enable_languages}" = xall; then | |
8799 | add_this_lang=yes | |
8800 | else | |
8801 | case "${enable_languages}" in | |
8802 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8803 | add_this_lang=yes | |
8804 | ;; | |
8805 | * ) | |
8806 | add_this_lang=no | |
8807 | ;; | |
8808 | esac | |
8809 | fi | |
8810 | if test x"${add_this_lang}" = xyes; then | |
8811 | case $lang in | |
8812 | ${srcdir}/ada/config-lang.in) | |
8813 | if test x$gnat = xyes ; then | |
8814 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8815 | fi | |
8816 | ;; | |
8817 | *) | |
8818 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8819 | ;; | |
8820 | esac | |
8821 | fi | |
8822 | ;; | |
861bb6c1 JL |
8823 | esac |
8824 | done | |
8825 | ||
f24af81b TT |
8826 | # Make gthr-default.h if we have a thread file. |
8827 | gthread_flags= | |
75bffa71 | 8828 | if test $thread_file != single; then |
f24af81b | 8829 | rm -f gthr-default.h |
db0d1ed9 | 8830 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8831 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8832 | fi | |
8833 | ||
8834 | ||
81bf3d9e RH |
8835 | # Find out what GC implementation we want, or may, use. |
8836 | # Check whether --with-gc or --without-gc was given. | |
8837 | if test "${with_gc+set}" = set; then | |
8838 | withval="$with_gc" | |
8839 | case "$withval" in | |
8840 | simple | page) | |
8841 | GGC=ggc-$withval | |
8842 | ;; | |
8843 | *) | |
8844 | { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; } | |
8845 | ;; | |
8846 | esac | |
8847 | else | |
4acab94b AO |
8848 | if test $ac_cv_func_mmap_anywhere = yes \ |
8849 | || test $ac_cv_func_valloc = yes; then | |
005537df | 8850 | GGC=ggc-page |
81bf3d9e RH |
8851 | else |
8852 | GGC=ggc-simple | |
8853 | fi | |
8854 | fi | |
8855 | ||
8856 | ||
8857 | echo "Using $GGC for garbage collection." | |
8858 | ||
7441a352 NS |
8859 | # Build a new-abi (c++) system |
8860 | # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given. | |
8861 | if test "${enable_new_gxx_abi+set}" = set; then | |
8862 | enableval="$enable_new_gxx_abi" | |
8863 | cat >> confdefs.h <<\EOF | |
8864 | #define ENABLE_NEW_GXX_ABI 1 | |
8865 | EOF | |
8866 | ||
8867 | GXX_ABI_FLAG='-fnew-abi' | |
8868 | echo "Building a new-abi g++ compiler." | |
8869 | ||
8870 | fi | |
8871 | ||
8872 | ||
8873 | ||
7822500a BK |
8874 | # Build a new-libstdc++ system (ie libstdc++-v3) |
8875 | echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6 | |
86cf1cbd | 8876 | echo "configure:8877: checking for libstdc++ to install" >&5 |
7822500a BK |
8877 | # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given. |
8878 | if test "${enable_libstdcxx_v3+set}" = set; then | |
8879 | enableval="$enable_libstdcxx_v3" | |
8880 | enable_libstdcxx_v3=yes | |
8881 | else | |
8882 | enable_libstdcxx_v3=no | |
8883 | fi | |
8884 | ||
8885 | ||
8886 | if test x$enable_libstdcxx_v3 = xyes; then | |
8887 | echo "$ac_t""v3" 1>&6 | |
119d24d1 | 8888 | ac_esn=1 |
7822500a BK |
8889 | else |
8890 | echo "$ac_t""v2" 1>&6 | |
119d24d1 | 8891 | ac_esn=0 |
7822500a | 8892 | fi |
119d24d1 KG |
8893 | cat >> confdefs.h <<EOF |
8894 | #define ENABLE_STD_NAMESPACE $ac_esn | |
8895 | EOF | |
7822500a BK |
8896 | |
8897 | ||
861bb6c1 JL |
8898 | # Make empty files to contain the specs and options for each language. |
8899 | # Then add #include lines to for a compiler that has specs and/or options. | |
8900 | ||
8901 | lang_specs_files= | |
8902 | lang_options_files= | |
3103b7db ML |
8903 | lang_tree_files= |
8904 | rm -f specs.h options.h gencheck.h | |
8905 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8906 | for subdir in . $subdirs |
8907 | do | |
75bffa71 | 8908 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8909 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8910 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8911 | fi | |
75bffa71 | 8912 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8913 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8914 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8915 | fi | |
3103b7db ML |
8916 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8917 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8918 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8919 | fi | |
861bb6c1 JL |
8920 | done |
8921 | ||
8922 | # These (without "all_") are set in each config-lang.in. | |
8923 | # `language' must be a single word so is spelled singularly. | |
8924 | all_languages= | |
8925 | all_boot_languages= | |
8926 | all_compilers= | |
8927 | all_stagestuff= | |
8928 | all_diff_excludes= | |
e4476d1c | 8929 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug' |
861bb6c1 JL |
8930 | # List of language makefile fragments. |
8931 | all_lang_makefiles= | |
8932 | all_headers= | |
8933 | all_lib2funcs= | |
8934 | ||
8935 | # Add the language fragments. | |
8936 | # Languages are added via two mechanisms. Some information must be | |
8937 | # recorded in makefile variables, these are defined in config-lang.in. | |
8938 | # We accumulate them and plug them into the main Makefile. | |
8939 | # The other mechanism is a set of hooks for each of the main targets | |
8940 | # like `clean', `install', etc. | |
8941 | ||
8942 | language_fragments="Make-lang" | |
8943 | language_hooks="Make-hooks" | |
8944 | oldstyle_subdirs= | |
8945 | ||
8946 | for s in .. $subdirs | |
8947 | do | |
75bffa71 | 8948 | if test $s != ".." |
861bb6c1 JL |
8949 | then |
8950 | language= | |
8951 | boot_language= | |
8952 | compilers= | |
8953 | stagestuff= | |
8954 | diff_excludes= | |
8955 | headers= | |
8956 | outputs= | |
8957 | lib2funcs= | |
8958 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 8959 | if test "x$language" = x |
861bb6c1 JL |
8960 | then |
8961 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
8962 | exit 1 | |
8963 | fi | |
8964 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
8965 | all_languages="$all_languages $language" | |
75bffa71 | 8966 | if test "x$boot_language" = xyes |
861bb6c1 JL |
8967 | then |
8968 | all_boot_languages="$all_boot_languages $language" | |
8969 | fi | |
8970 | all_compilers="$all_compilers $compilers" | |
8971 | all_stagestuff="$all_stagestuff $stagestuff" | |
8972 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
8973 | all_headers="$all_headers $headers" | |
8974 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 8975 | if test x$outputs = x |
861bb6c1 JL |
8976 | then |
8977 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
8978 | fi | |
8979 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
8980 | fi | |
8981 | done | |
8982 | ||
8983 | # Since we can't use `::' targets, we link each language in | |
8984 | # with a set of hooks, reached indirectly via lang.${target}. | |
8985 | ||
8986 | rm -f Make-hooks | |
8987 | touch Make-hooks | |
8988 | target_list="all.build all.cross start.encap rest.encap \ | |
8989 | info dvi \ | |
8990 | install-normal install-common install-info install-man \ | |
8991 | uninstall distdir \ | |
8992 | mostlyclean clean distclean extraclean maintainer-clean \ | |
8993 | stage1 stage2 stage3 stage4" | |
8994 | for t in $target_list | |
8995 | do | |
8996 | x= | |
ab87f8c8 | 8997 | for lang in .. $all_languages |
861bb6c1 | 8998 | do |
ab87f8c8 JL |
8999 | if test $lang != ".."; then |
9000 | x="$x $lang.$t" | |
861bb6c1 JL |
9001 | fi |
9002 | done | |
9003 | echo "lang.$t: $x" >> Make-hooks | |
9004 | done | |
9005 | ||
9006 | # If we're not building in srcdir, create .gdbinit. | |
9007 | ||
75bffa71 | 9008 | if test ! -f Makefile.in; then |
861bb6c1 JL |
9009 | echo "dir ." > .gdbinit |
9010 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 9011 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
9012 | then |
9013 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
9014 | fi | |
75bffa71 | 9015 | if test "x$subdirs" != x; then |
861bb6c1 JL |
9016 | for s in $subdirs |
9017 | do | |
9018 | echo "dir ${srcdir}/$s" >> .gdbinit | |
9019 | done | |
9020 | fi | |
9021 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
9022 | fi | |
9023 | ||
88111b26 JL |
9024 | # Define variables host_canonical and build_canonical |
9025 | # because some Cygnus local changes in the Makefile depend on them. | |
9026 | build_canonical=${build} | |
9027 | host_canonical=${host} | |
9028 | target_subdir= | |
75bffa71 | 9029 | if test "${host}" != "${target}" ; then |
88111b26 JL |
9030 | target_subdir=${target}/ |
9031 | fi | |
9032 | ||
9033 | ||
9034 | ||
9035 | ||
dec88383 DE |
9036 | # If this is using newlib, then define inhibit_libc in |
9037 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
9038 | # libgcc.a, but that's OK because newib should have its own version of | |
9039 | # assert.h. | |
9040 | inhibit_libc= | |
75bffa71 | 9041 | if test x$with_newlib = xyes; then |
dec88383 DE |
9042 | inhibit_libc=-Dinhibit_libc |
9043 | fi | |
9044 | ||
9045 | ||
8f8d3278 NC |
9046 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
9047 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
9048 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
9049 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
9050 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
9051 | # make and thus we'd get different behavior depending on where we built the | |
9052 | # sources. | |
5949a9fc | 9053 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
9054 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
9055 | else | |
8f8d3278 NC |
9056 | # An explanation of the sed strings: |
9057 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
9058 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
9059 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
9060 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
9061 | # | |
9062 | # (*) Note this pattern overwrites the first character of the string | |
9063 | # with a forward slash if one is not already present. This is not a | |
9064 | # problem because the exact names of the sub-directories concerned is | |
9065 | # unimportant, just the number of them matters. | |
9066 | # | |
9067 | # The practical upshot of these patterns is like this: | |
9068 | # | |
9069 | # prefix exec_prefix result | |
9070 | # ------ ----------- ------ | |
9071 | # /foo /foo/bar ../ | |
9072 | # /foo/ /foo/bar ../ | |
9073 | # /foo /foo/bar/ ../ | |
9074 | # /foo/ /foo/bar/ ../ | |
9075 | # /foo /foo/bar/ugg ../../ | |
9076 | # | |
4c112cda NC |
9077 | dollar='$$' |
9078 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
9079 | fi |
9080 | ||
9081 | ||
2ce3c6c6 | 9082 | |
7e717196 JL |
9083 | # Nothing to do for FLOAT_H, float_format already handled. |
9084 | objdir=`pwd` | |
9085 | ||
9086 | ||
861bb6c1 JL |
9087 | # Process the language and host/target makefile fragments. |
9088 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
9089 | ||
9090 | # Substitute configuration variables | |
9091 | ||
9092 | ||
9093 | ||
9094 | ||
9095 | ||
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | ||
9103 | ||
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | ||
9120 | ||
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9b16d2c4 | 9137 | |
e9a25f70 | 9138 | |
6e26218f | 9139 | |
c8724862 | 9140 | |
e061d1ce | 9141 | |
f1943b77 | 9142 | |
0b9d02c6 | 9143 | |
3103b7db | 9144 | |
d8bb17c8 | 9145 | |
9fc9b82a | 9146 | |
861bb6c1 JL |
9147 | |
9148 | ||
9149 | # Echo that links are built | |
75bffa71 | 9150 | if test x$host = x$target |
861bb6c1 JL |
9151 | then |
9152 | str1="native " | |
9153 | else | |
9154 | str1="cross-" | |
9155 | str2=" from $host" | |
9156 | fi | |
9157 | ||
75bffa71 | 9158 | if test x$host != x$build |
861bb6c1 JL |
9159 | then |
9160 | str3=" on a $build system" | |
9161 | fi | |
9162 | ||
75bffa71 | 9163 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9164 | then |
9165 | str4= | |
9166 | fi | |
9167 | ||
9168 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
9169 | ||
75bffa71 | 9170 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9171 | then |
9172 | echo " ${str2}${str3}." 1>&2 | |
9173 | fi | |
9174 | ||
f6cb0e63 | 9175 | # Truncate the target if necessary |
75bffa71 | 9176 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
9177 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
9178 | fi | |
9179 | ||
861bb6c1 JL |
9180 | # Configure the subdirectories |
9181 | # AC_CONFIG_SUBDIRS($subdirs) | |
9182 | ||
9183 | # Create the Makefile | |
9184 | # and configure language subdirectories | |
9185 | trap '' 1 2 15 | |
9186 | cat > confcache <<\EOF | |
9187 | # This file is a shell script that caches the results of configure | |
9188 | # tests run on this system so they can be shared between configure | |
9189 | # scripts and configure runs. It is not useful on other systems. | |
9190 | # If it contains results you don't want to keep, you may remove or edit it. | |
9191 | # | |
9192 | # By default, configure uses ./config.cache as the cache file, | |
9193 | # creating it if it does not exist already. You can give configure | |
9194 | # the --cache-file=FILE option to use a different cache file; that is | |
9195 | # what configure does when it calls configure scripts in | |
9196 | # subdirectories, so they share the cache. | |
9197 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9198 | # config.status only pays attention to the cache file if you give it the | |
9199 | # --recheck option to rerun configure. | |
9200 | # | |
9201 | EOF | |
9202 | # The following way of writing the cache mishandles newlines in values, | |
9203 | # but we know of no workaround that is simple, portable, and efficient. | |
9204 | # So, don't put newlines in cache variables' values. | |
9205 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9206 | # and sets the high bit in the cache file unless we assign to the vars. | |
9207 | (set) 2>&1 | | |
b27d2bd5 | 9208 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
9209 | *ac_space=\ *) |
9210 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9211 | # turns \\\\ into \\, and sed turns \\ into \). | |
9212 | sed -n \ | |
9213 | -e "s/'/'\\\\''/g" \ | |
9214 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9215 | ;; | |
9216 | *) | |
9217 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9218 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9219 | ;; | |
9220 | esac >> confcache | |
9221 | if cmp -s $cache_file confcache; then | |
9222 | : | |
9223 | else | |
9224 | if test -w $cache_file; then | |
9225 | echo "updating cache $cache_file" | |
9226 | cat confcache > $cache_file | |
9227 | else | |
9228 | echo "not updating unwritable cache $cache_file" | |
9229 | fi | |
9230 | fi | |
9231 | rm -f confcache | |
9232 | ||
9233 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
9234 | ||
9235 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9236 | # Let make expand exec_prefix. | |
9237 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9238 | ||
9239 | # Any assignment to VPATH causes Sun make to only execute | |
9240 | # the first set of double-colon rules, so remove it if not needed. | |
9241 | # If there is a colon in the path, we need to keep it. | |
9242 | if test "x$srcdir" = x.; then | |
9243 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
9244 | fi | |
9245 | ||
9246 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
9247 | ||
9248 | DEFS=-DHAVE_CONFIG_H | |
9249 | ||
9250 | # Without the "./", some shells look in PATH for config.status. | |
9251 | : ${CONFIG_STATUS=./config.status} | |
9252 | ||
9253 | echo creating $CONFIG_STATUS | |
9254 | rm -f $CONFIG_STATUS | |
9255 | cat > $CONFIG_STATUS <<EOF | |
9256 | #! /bin/sh | |
9257 | # Generated automatically by configure. | |
9258 | # Run this file to recreate the current configuration. | |
9259 | # This directory was configured as follows, | |
9260 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9261 | # | |
9262 | # $0 $ac_configure_args | |
9263 | # | |
9264 | # Compiler output produced by configure, useful for debugging | |
9265 | # configure, is in ./config.log if it exists. | |
9266 | ||
9267 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
9268 | for ac_option | |
9269 | do | |
9270 | case "\$ac_option" in | |
9271 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9272 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
9273 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
9274 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 9275 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
9276 | exit 0 ;; |
9277 | -help | --help | --hel | --he | --h) | |
9278 | echo "\$ac_cs_usage"; exit 0 ;; | |
9279 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
9280 | esac | |
9281 | done | |
9282 | ||
9283 | ac_given_srcdir=$srcdir | |
861bb6c1 | 9284 | |
b7cb92ad | 9285 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
9286 | EOF |
9287 | cat >> $CONFIG_STATUS <<EOF | |
9288 | ||
9289 | # Protect against being on the right side of a sed subst in config.status. | |
9290 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
9291 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
9292 | $ac_vpsub | |
9293 | $extrasub | |
6f144c9c | 9294 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
9295 | s%@CFLAGS@%$CFLAGS%g |
9296 | s%@CPPFLAGS@%$CPPFLAGS%g | |
9297 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 9298 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
9299 | s%@DEFS@%$DEFS%g |
9300 | s%@LDFLAGS@%$LDFLAGS%g | |
9301 | s%@LIBS@%$LIBS%g | |
9302 | s%@exec_prefix@%$exec_prefix%g | |
9303 | s%@prefix@%$prefix%g | |
9304 | s%@program_transform_name@%$program_transform_name%g | |
9305 | s%@bindir@%$bindir%g | |
9306 | s%@sbindir@%$sbindir%g | |
9307 | s%@libexecdir@%$libexecdir%g | |
9308 | s%@datadir@%$datadir%g | |
9309 | s%@sysconfdir@%$sysconfdir%g | |
9310 | s%@sharedstatedir@%$sharedstatedir%g | |
9311 | s%@localstatedir@%$localstatedir%g | |
9312 | s%@libdir@%$libdir%g | |
9313 | s%@includedir@%$includedir%g | |
9314 | s%@oldincludedir@%$oldincludedir%g | |
9315 | s%@infodir@%$infodir%g | |
9316 | s%@mandir@%$mandir%g | |
9317 | s%@host@%$host%g | |
9318 | s%@host_alias@%$host_alias%g | |
9319 | s%@host_cpu@%$host_cpu%g | |
9320 | s%@host_vendor@%$host_vendor%g | |
9321 | s%@host_os@%$host_os%g | |
9322 | s%@target@%$target%g | |
9323 | s%@target_alias@%$target_alias%g | |
9324 | s%@target_cpu@%$target_cpu%g | |
9325 | s%@target_vendor@%$target_vendor%g | |
9326 | s%@target_os@%$target_os%g | |
9327 | s%@build@%$build%g | |
9328 | s%@build_alias@%$build_alias%g | |
9329 | s%@build_cpu@%$build_cpu%g | |
9330 | s%@build_vendor@%$build_vendor%g | |
9331 | s%@build_os@%$build_os%g | |
e9a25f70 | 9332 | s%@CC@%$CC%g |
61842080 | 9333 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 9334 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
9335 | s%@AWK@%$AWK%g |
9336 | s%@LEX@%$LEX%g | |
9337 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
9338 | s%@LN@%$LN%g |
9339 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
9340 | s%@RANLIB@%$RANLIB%g |
9341 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
9342 | s%@INSTALL@%$INSTALL%g |
9343 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
9344 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 9345 | s%@CPP@%$CPP%g |
bcf12124 | 9346 | s%@gnat@%$gnat%g |
0a4b6309 RL |
9347 | s%@vfprintf@%$vfprintf%g |
9348 | s%@doprint@%$doprint%g | |
861bb6c1 | 9349 | s%@manext@%$manext%g |
992d1248 | 9350 | s%@objext@%$objext%g |
ab87f8c8 JL |
9351 | s%@PACKAGE@%$PACKAGE%g |
9352 | s%@VERSION@%$VERSION%g | |
9353 | s%@ALLOCA@%$ALLOCA%g | |
9354 | s%@USE_NLS@%$USE_NLS%g | |
9355 | s%@MSGFMT@%$MSGFMT%g | |
9356 | s%@GMSGFMT@%$GMSGFMT%g | |
9357 | s%@XGETTEXT@%$XGETTEXT%g | |
9358 | s%@GENCAT@%$GENCAT%g | |
9359 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
9360 | s%@CATALOGS@%$CATALOGS%g | |
9361 | s%@CATOBJEXT@%$CATOBJEXT%g | |
9362 | s%@DATADIRNAME@%$DATADIRNAME%g | |
9363 | s%@GMOFILES@%$GMOFILES%g | |
9364 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
9365 | s%@INTLDEPS@%$INTLDEPS%g | |
9366 | s%@INTLLIBS@%$INTLLIBS%g | |
9367 | s%@INTLOBJS@%$INTLOBJS%g | |
9368 | s%@POFILES@%$POFILES%g | |
9369 | s%@POSUB@%$POSUB%g | |
9370 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
9371 | s%@GT_NO@%$GT_NO%g | |
9372 | s%@GT_YES@%$GT_YES%g | |
9373 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
9374 | s%@l@%$l%g | |
f24af81b | 9375 | s%@gthread_flags@%$gthread_flags%g |
81bf3d9e | 9376 | s%@GGC@%$GGC%g |
7441a352 | 9377 | s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g |
88111b26 JL |
9378 | s%@build_canonical@%$build_canonical%g |
9379 | s%@host_canonical@%$host_canonical%g | |
9380 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 9381 | s%@inhibit_libc@%$inhibit_libc%g |
d062c304 | 9382 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 9383 | s%@dollar@%$dollar%g |
7e717196 | 9384 | s%@objdir@%$objdir%g |
861bb6c1 | 9385 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
9386 | s%@all_boot_languages@%$all_boot_languages%g |
9387 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 9388 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 9389 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
9390 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
9391 | s%@all_languages@%$all_languages%g | |
9392 | s%@all_lib2funcs@%$all_lib2funcs%g | |
9393 | s%@all_stagestuff@%$all_stagestuff%g | |
9394 | s%@build_exeext@%$build_exeext%g | |
9395 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
9396 | s%@build_xm_file_list@%$build_xm_file_list%g | |
9397 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 9398 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 9399 | s%@cpp_install_dir@%$cpp_install_dir%g |
4f3ae93c BK |
9400 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
9401 | s%@dep_tmake_file@%$dep_tmake_file%g | |
9402 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 9403 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 9404 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
9405 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
9406 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 9407 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
9408 | s%@extra_parts@%$extra_parts%g |
9409 | s%@extra_passes@%$extra_passes%g | |
9410 | s%@extra_programs@%$extra_programs%g | |
4f3ae93c BK |
9411 | s%@float_h_file@%$float_h_file%g |
9412 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
9413 | s%@gcc_version@%$gcc_version%g | |
9414 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
9415 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 9416 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 9417 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c | 9418 | s%@install@%$install%g |
861bb6c1 | 9419 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 9420 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 9421 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 9422 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 9423 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
9424 | s%@md_file@%$md_file%g |
9425 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
9426 | s%@out_file@%$out_file%g | |
9427 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 9428 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 9429 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
9430 | s%@thread_file@%$thread_file%g |
9431 | s%@tm_file_list@%$tm_file_list%g | |
9432 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
9433 | /@target_overrides@/r $target_overrides |
9434 | s%@target_overrides@%%g | |
9435 | /@host_overrides@/r $host_overrides | |
9436 | s%@host_overrides@%%g | |
9437 | s%@cross_defines@%$cross_defines%g | |
9438 | /@cross_overrides@/r $cross_overrides | |
9439 | s%@cross_overrides@%%g | |
9440 | /@build_overrides@/r $build_overrides | |
9441 | s%@build_overrides@%%g | |
9442 | /@language_fragments@/r $language_fragments | |
9443 | s%@language_fragments@%%g | |
9444 | /@language_hooks@/r $language_hooks | |
9445 | s%@language_hooks@%%g | |
9446 | ||
9447 | CEOF | |
9448 | EOF | |
9449 | ||
9450 | cat >> $CONFIG_STATUS <<\EOF | |
9451 | ||
9452 | # Split the substitutions into bite-sized pieces for seds with | |
9453 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9454 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9455 | ac_file=1 # Number of current file. | |
9456 | ac_beg=1 # First line for current file. | |
9457 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9458 | ac_more_lines=: | |
9459 | ac_sed_cmds="" | |
9460 | while $ac_more_lines; do | |
9461 | if test $ac_beg -gt 1; then | |
9462 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9463 | else | |
9464 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
9465 | fi | |
9466 | if test ! -s conftest.s$ac_file; then | |
9467 | ac_more_lines=false | |
9468 | rm -f conftest.s$ac_file | |
9469 | else | |
9470 | if test -z "$ac_sed_cmds"; then | |
9471 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
9472 | else | |
9473 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9474 | fi | |
9475 | ac_file=`expr $ac_file + 1` | |
9476 | ac_beg=$ac_end | |
9477 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9478 | fi | |
9479 | done | |
9480 | if test -z "$ac_sed_cmds"; then | |
9481 | ac_sed_cmds=cat | |
9482 | fi | |
9483 | EOF | |
9484 | ||
9485 | cat >> $CONFIG_STATUS <<EOF | |
9486 | ||
9487 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
9488 | EOF | |
9489 | cat >> $CONFIG_STATUS <<\EOF | |
9490 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9491 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9492 | case "$ac_file" in | |
9493 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9494 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9495 | *) ac_file_in="${ac_file}.in" ;; | |
9496 | esac | |
9497 | ||
9498 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9499 | ||
9500 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9501 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9502 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9503 | # The file is in a subdirectory. | |
9504 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9505 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9506 | # A "../" for each directory in $ac_dir_suffix. | |
9507 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9508 | else | |
9509 | ac_dir_suffix= ac_dots= | |
9510 | fi | |
9511 | ||
9512 | case "$ac_given_srcdir" in | |
9513 | .) srcdir=. | |
9514 | if test -z "$ac_dots"; then top_srcdir=. | |
9515 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9516 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9517 | *) # Relative path. | |
9518 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9519 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9520 | esac | |
9521 | ||
861bb6c1 JL |
9522 | |
9523 | echo creating "$ac_file" | |
9524 | rm -f "$ac_file" | |
9525 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9526 | case "$ac_file" in | |
9527 | *Makefile*) ac_comsub="1i\\ | |
9528 | # $configure_input" ;; | |
9529 | *) ac_comsub= ;; | |
9530 | esac | |
9531 | ||
9532 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9533 | sed -e "$ac_comsub | |
9534 | s%@configure_input@%$configure_input%g | |
9535 | s%@srcdir@%$srcdir%g | |
9536 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
9537 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9538 | fi; done | |
9539 | rm -f conftest.s* | |
9540 | ||
9541 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9542 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9543 | # | |
9544 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9545 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9546 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9547 | ac_dC='\3' | |
9548 | ac_dD='%g' | |
9549 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9550 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9551 | ac_uB='\([ ]\)%\1#\2define\3' | |
9552 | ac_uC=' ' | |
9553 | ac_uD='\4%g' | |
9554 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9555 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9556 | ac_eB='$%\1#\2define\3' | |
9557 | ac_eC=' ' | |
9558 | ac_eD='%g' | |
9559 | ||
9560 | if test "${CONFIG_HEADERS+set}" != set; then | |
9561 | EOF | |
9562 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 9563 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
9564 | EOF |
9565 | cat >> $CONFIG_STATUS <<\EOF | |
9566 | fi | |
9567 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9568 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9569 | case "$ac_file" in | |
9570 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9571 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9572 | *) ac_file_in="${ac_file}.in" ;; | |
9573 | esac | |
9574 | ||
9575 | echo creating $ac_file | |
9576 | ||
9577 | rm -f conftest.frag conftest.in conftest.out | |
9578 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9579 | cat $ac_file_inputs > conftest.in | |
9580 | ||
9581 | EOF | |
9582 | ||
9583 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9584 | # the proper values into config.h.in to produce config.h. And first: | |
9585 | # Protect against being on the right side of a sed subst in config.status. | |
9586 | # Protect against being in an unquoted here document in config.status. | |
9587 | rm -f conftest.vals | |
9588 | cat > conftest.hdr <<\EOF | |
9589 | s/[\\&%]/\\&/g | |
9590 | s%[\\$`]%\\&%g | |
9591 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9592 | s%ac_d%ac_u%gp | |
9593 | s%ac_u%ac_e%gp | |
9594 | EOF | |
9595 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9596 | rm -f conftest.hdr | |
9597 | ||
9598 | # This sed command replaces #undef with comments. This is necessary, for | |
9599 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9600 | # on some systems where configure will not decide to define it. | |
9601 | cat >> conftest.vals <<\EOF | |
9602 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9603 | EOF | |
9604 | ||
9605 | # Break up conftest.vals because some shells have a limit on | |
9606 | # the size of here documents, and old seds have small limits too. | |
9607 | ||
9608 | rm -f conftest.tail | |
9609 | while : | |
9610 | do | |
9611 | ac_lines=`grep -c . conftest.vals` | |
9612 | # grep -c gives empty output for an empty file on some AIX systems. | |
9613 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9614 | # Write a limited-size here document to conftest.frag. | |
9615 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9616 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9617 | echo 'CEOF | |
9618 | sed -f conftest.frag conftest.in > conftest.out | |
9619 | rm -f conftest.in | |
9620 | mv conftest.out conftest.in | |
9621 | ' >> $CONFIG_STATUS | |
9622 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9623 | rm -f conftest.vals | |
9624 | mv conftest.tail conftest.vals | |
9625 | done | |
9626 | rm -f conftest.vals | |
9627 | ||
9628 | cat >> $CONFIG_STATUS <<\EOF | |
9629 | rm -f conftest.frag conftest.h | |
9630 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9631 | cat conftest.in >> conftest.h | |
9632 | rm -f conftest.in | |
9633 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9634 | echo "$ac_file is unchanged" | |
9635 | rm -f conftest.h | |
9636 | else | |
9637 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9638 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9639 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9640 | # The file is in a subdirectory. | |
9641 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9642 | fi | |
9643 | rm -f $ac_file | |
9644 | mv conftest.h $ac_file | |
9645 | fi | |
9646 | fi; done | |
9647 | ||
ab87f8c8 JL |
9648 | EOF |
9649 | ||
9650 | cat >> $CONFIG_STATUS <<EOF | |
9651 | ac_sources="$nls_cv_header_libgt" | |
9652 | ac_dests="$nls_cv_header_intl" | |
9653 | EOF | |
9654 | ||
9655 | cat >> $CONFIG_STATUS <<\EOF | |
9656 | srcdir=$ac_given_srcdir | |
9657 | while test -n "$ac_sources"; do | |
9658 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9659 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9660 | ||
9661 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9662 | ||
9663 | if test ! -r $srcdir/$ac_source; then | |
9664 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9665 | fi | |
9666 | rm -f $ac_dest | |
9667 | ||
9668 | # Make relative symlinks. | |
9669 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9670 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9671 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9672 | # The dest file is in a subdirectory. | |
9673 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9674 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9675 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9676 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9677 | else | |
9678 | ac_dest_dir_suffix= ac_dots= | |
9679 | fi | |
9680 | ||
9681 | case "$srcdir" in | |
9682 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9683 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9684 | esac | |
9685 | ||
9686 | # Make a symlink if possible; otherwise try a hard link. | |
9687 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9688 | ln $srcdir/$ac_source $ac_dest; then : | |
9689 | else | |
9690 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9691 | fi | |
9692 | done | |
861bb6c1 JL |
9693 | EOF |
9694 | cat >> $CONFIG_STATUS <<EOF | |
9695 | ||
ab87f8c8 | 9696 | |
861bb6c1 JL |
9697 | host='${host}' |
9698 | build='${build}' | |
9699 | target='${target}' | |
9700 | target_alias='${target_alias}' | |
9701 | srcdir='${srcdir}' | |
9702 | subdirs='${subdirs}' | |
9703 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9704 | symbolic_link='${symbolic_link}' | |
9705 | program_transform_set='${program_transform_set}' | |
9706 | program_transform_name='${program_transform_name}' | |
9707 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9708 | host_xmake_file='${host_xmake_file}' | |
9709 | dep_tmake_file='${dep_tmake_file}' | |
9710 | tmake_file='${tmake_file}' | |
9711 | thread_file='${thread_file}' | |
f1943b77 MH |
9712 | gcc_version='${gcc_version}' |
9713 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9714 | local_prefix='${local_prefix}' |
9715 | build_install_headers_dir='${build_install_headers_dir}' | |
9716 | build_exeext='${build_exeext}' | |
6e26218f | 9717 | host_exeext='${host_exeext}' |
7ed46111 | 9718 | out_file='${out_file}' |
861bb6c1 JL |
9719 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9720 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9721 | target_list='${target_list}' |
9722 | target_overrides='${target_overrides}' | |
9723 | host_overrides='${host_overrides}' | |
9724 | cross_defines='${cross_defines}' | |
9725 | cross_overrides='${cross_overrides}' | |
9726 | build_overrides='${build_overrides}' | |
9fc9b82a | 9727 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9728 | |
9729 | EOF | |
9730 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9731 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9732 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9733 | esac | |
861bb6c1 JL |
9734 | |
9735 | . $srcdir/configure.lang | |
9736 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9737 | xauto-host.h:config.in) |
861bb6c1 JL |
9738 | echo > cstamp-h ;; |
9739 | esac | |
93cf819d BK |
9740 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9741 | # bootstrapping and the installation procedure can still use | |
9742 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9743 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9744 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9745 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9746 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9747 | for d in .. ${subdirs} ; do |
75bffa71 | 9748 | if test $d != ..; then |
4e8a434e BK |
9749 | STARTDIR=`pwd` |
9750 | cd $d | |
9751 | for t in stage1 stage2 stage3 stage4 include | |
9752 | do | |
9753 | rm -f $t | |
9754 | $symbolic_link ../$t $t 2>/dev/null | |
9755 | done | |
9756 | cd $STARTDIR | |
93cf819d BK |
9757 | fi |
9758 | done | |
9759 | else true ; fi | |
ab87f8c8 JL |
9760 | # Avoid having to add intl to our include paths. |
9761 | if test -f intl/libintl.h; then | |
9762 | echo creating libintl.h | |
9763 | echo '#include "intl/libintl.h"' >libintl.h | |
9764 | fi | |
861bb6c1 JL |
9765 | |
9766 | exit 0 | |
9767 | EOF | |
9768 | chmod +x $CONFIG_STATUS | |
9769 | rm -fr confdefs* $ac_clean_files | |
9770 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9771 |