]>
Commit | Line | Data |
---|---|---|
861bb6c1 JL |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
b27d2bd5 | 4 | # Generated automatically using autoconf version 2.13 |
861bb6c1 JL |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-gnu-ld arrange to work with GNU ld." | |
ab339d62 AO |
16 | ac_help="$ac_help |
17 | --with-ld arrange to use the specified ld (full pathname)." | |
861bb6c1 JL |
18 | ac_help="$ac_help |
19 | --with-gnu-as arrange to work with GNU as." | |
ab339d62 AO |
20 | ac_help="$ac_help |
21 | --with-as arrange to use the specified as (full pathname)." | |
861bb6c1 JL |
22 | ac_help="$ac_help |
23 | --with-stabs arrange to use stabs instead of host debug format." | |
24 | ac_help="$ac_help | |
25 | --with-elf arrange to use ELF instead of host debug format." | |
26 | ac_help="$ac_help | |
27 | --with-local-prefix=DIR specifies directory to put local include." | |
28 | ac_help="$ac_help | |
29 | --with-gxx-include-dir=DIR | |
30 | specifies directory to put g++ header files." | |
a494747c MM |
31 | ac_help="$ac_help |
32 | --enable-checking enable expensive run-time checks." | |
861bb6c1 | 33 | ac_help="$ac_help |
f81a440f | 34 | --enable-cpplib use cpplib for the C preprocessor." |
0b9d02c6 | 35 | ac_help="$ac_help |
f81a440f ZW |
36 | --enable-c-cpplib link cpplib directly into C and C++ compilers |
37 | (implies --enable-cpplib)." | |
9101297d | 38 | ac_help="$ac_help |
f81a440f | 39 | --enable-c-mbchar enable multibyte characters for C and C++." |
76c8f855 BK |
40 | ac_help="$ac_help |
41 | --disable-fast-fixincludes | |
42 | Disable the new fast fixincludes. | |
43 | Run the old fixincludes script unconditionally" | |
f81a440f ZW |
44 | ac_help="$ac_help |
45 | --enable-haifa use the experimental scheduler. | |
46 | --disable-haifa don't use the experimental scheduler for the | |
9101297d | 47 | targets which normally enable it." |
861bb6c1 JL |
48 | ac_help="$ac_help |
49 | --enable-threads enable thread usage for target GCC. | |
50 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
51 | ac_help="$ac_help |
52 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
53 | the GNU Objective-C runtime." | |
df37e3db TT |
54 | ac_help="$ac_help |
55 | --enable-java-gc=TYPE choose garbage collector [boehm]" | |
90e6a802 RL |
56 | ac_help="$ac_help |
57 | --enable-dwarf2 enable DWARF2 debugging as default." | |
ab87f8c8 JL |
58 | ac_help="$ac_help |
59 | --enable-nls use Native Language Support (disabled by default)" | |
60 | ac_help="$ac_help | |
61 | --disable-nls do not use Native Language Support" | |
62 | ac_help="$ac_help | |
63 | --with-included-gettext use the GNU gettext library included here" | |
64 | ac_help="$ac_help | |
65 | --with-catgets use catgets functions if available" | |
861bb6c1 JL |
66 | |
67 | # Initialize some variables set by options. | |
68 | # The variables have the same names as the options, with | |
69 | # dashes changed to underlines. | |
70 | build=NONE | |
71 | cache_file=./config.cache | |
72 | exec_prefix=NONE | |
73 | host=NONE | |
74 | no_create= | |
75 | nonopt=NONE | |
76 | no_recursion= | |
77 | prefix=NONE | |
78 | program_prefix=NONE | |
79 | program_suffix=NONE | |
80 | program_transform_name=s,x,x, | |
81 | silent= | |
82 | site= | |
83 | srcdir= | |
84 | target=NONE | |
85 | verbose= | |
86 | x_includes=NONE | |
87 | x_libraries=NONE | |
88 | bindir='${exec_prefix}/bin' | |
89 | sbindir='${exec_prefix}/sbin' | |
90 | libexecdir='${exec_prefix}/libexec' | |
91 | datadir='${prefix}/share' | |
92 | sysconfdir='${prefix}/etc' | |
93 | sharedstatedir='${prefix}/com' | |
94 | localstatedir='${prefix}/var' | |
95 | libdir='${exec_prefix}/lib' | |
96 | includedir='${prefix}/include' | |
97 | oldincludedir='/usr/include' | |
98 | infodir='${prefix}/info' | |
99 | mandir='${prefix}/man' | |
100 | ||
101 | # Initialize some other variables. | |
102 | subdirs= | |
103 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 104 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
105 | # Maximum number of lines to put in a shell here document. |
106 | ac_max_here_lines=12 | |
107 | ||
108 | ac_prev= | |
109 | for ac_option | |
110 | do | |
111 | ||
112 | # If the previous option needs an argument, assign it. | |
113 | if test -n "$ac_prev"; then | |
114 | eval "$ac_prev=\$ac_option" | |
115 | ac_prev= | |
116 | continue | |
117 | fi | |
118 | ||
119 | case "$ac_option" in | |
120 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
121 | *) ac_optarg= ;; | |
122 | esac | |
123 | ||
124 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
125 | ||
126 | case "$ac_option" in | |
127 | ||
128 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
129 | ac_prev=bindir ;; | |
130 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
131 | bindir="$ac_optarg" ;; | |
132 | ||
133 | -build | --build | --buil | --bui | --bu) | |
134 | ac_prev=build ;; | |
135 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
136 | build="$ac_optarg" ;; | |
137 | ||
138 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
139 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
140 | ac_prev=cache_file ;; | |
141 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
142 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
143 | cache_file="$ac_optarg" ;; | |
144 | ||
145 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
146 | ac_prev=datadir ;; | |
147 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
148 | | --da=*) | |
149 | datadir="$ac_optarg" ;; | |
150 | ||
151 | -disable-* | --disable-*) | |
152 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
153 | # Reject names that are not valid shell variable names. | |
154 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
155 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
156 | fi | |
157 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
158 | eval "enable_${ac_feature}=no" ;; | |
159 | ||
160 | -enable-* | --enable-*) | |
161 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
162 | # Reject names that are not valid shell variable names. | |
163 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
164 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
165 | fi | |
166 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
167 | case "$ac_option" in | |
168 | *=*) ;; | |
169 | *) ac_optarg=yes ;; | |
170 | esac | |
171 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
172 | ||
173 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
174 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
175 | | --exec | --exe | --ex) | |
176 | ac_prev=exec_prefix ;; | |
177 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
178 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
179 | | --exec=* | --exe=* | --ex=*) | |
180 | exec_prefix="$ac_optarg" ;; | |
181 | ||
182 | -gas | --gas | --ga | --g) | |
183 | # Obsolete; use --with-gas. | |
184 | with_gas=yes ;; | |
185 | ||
186 | -help | --help | --hel | --he) | |
187 | # Omit some internal or obsolete options to make the list less imposing. | |
188 | # This message is too long to be a string in the A/UX 3.1 sh. | |
189 | cat << EOF | |
190 | Usage: configure [options] [host] | |
191 | Options: [defaults in brackets after descriptions] | |
192 | Configuration: | |
193 | --cache-file=FILE cache test results in FILE | |
194 | --help print this message | |
195 | --no-create do not create output files | |
196 | --quiet, --silent do not print \`checking...' messages | |
197 | --version print the version of autoconf that created configure | |
198 | Directory and file names: | |
199 | --prefix=PREFIX install architecture-independent files in PREFIX | |
200 | [$ac_default_prefix] | |
201 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
202 | [same as prefix] | |
203 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
204 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
205 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
206 | --datadir=DIR read-only architecture-independent data in DIR | |
207 | [PREFIX/share] | |
208 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
209 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
210 | [PREFIX/com] | |
211 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
212 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
213 | --includedir=DIR C header files in DIR [PREFIX/include] | |
214 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
215 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
216 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
217 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
218 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
219 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
220 | --program-transform-name=PROGRAM | |
221 | run sed PROGRAM on installed program names | |
222 | EOF | |
223 | cat << EOF | |
224 | Host type: | |
225 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
226 | --host=HOST configure for HOST [guessed] | |
227 | --target=TARGET configure for TARGET [TARGET=HOST] | |
228 | Features and packages: | |
229 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
230 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
231 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
232 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
233 | --x-includes=DIR X include files are in DIR | |
234 | --x-libraries=DIR X library files are in DIR | |
235 | EOF | |
236 | if test -n "$ac_help"; then | |
237 | echo "--enable and --with options recognized:$ac_help" | |
238 | fi | |
239 | exit 0 ;; | |
240 | ||
241 | -host | --host | --hos | --ho) | |
242 | ac_prev=host ;; | |
243 | -host=* | --host=* | --hos=* | --ho=*) | |
244 | host="$ac_optarg" ;; | |
245 | ||
246 | -includedir | --includedir | --includedi | --included | --include \ | |
247 | | --includ | --inclu | --incl | --inc) | |
248 | ac_prev=includedir ;; | |
249 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
250 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
251 | includedir="$ac_optarg" ;; | |
252 | ||
253 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
254 | ac_prev=infodir ;; | |
255 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
256 | infodir="$ac_optarg" ;; | |
257 | ||
258 | -libdir | --libdir | --libdi | --libd) | |
259 | ac_prev=libdir ;; | |
260 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
261 | libdir="$ac_optarg" ;; | |
262 | ||
263 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
264 | | --libexe | --libex | --libe) | |
265 | ac_prev=libexecdir ;; | |
266 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
267 | | --libexe=* | --libex=* | --libe=*) | |
268 | libexecdir="$ac_optarg" ;; | |
269 | ||
270 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
271 | | --localstate | --localstat | --localsta | --localst \ | |
272 | | --locals | --local | --loca | --loc | --lo) | |
273 | ac_prev=localstatedir ;; | |
274 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
275 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
276 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
277 | localstatedir="$ac_optarg" ;; | |
278 | ||
279 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
280 | ac_prev=mandir ;; | |
281 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
282 | mandir="$ac_optarg" ;; | |
283 | ||
284 | -nfp | --nfp | --nf) | |
285 | # Obsolete; use --without-fp. | |
286 | with_fp=no ;; | |
287 | ||
288 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
289 | | --no-cr | --no-c) | |
290 | no_create=yes ;; | |
291 | ||
292 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
293 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
294 | no_recursion=yes ;; | |
295 | ||
296 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
297 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
298 | | --oldin | --oldi | --old | --ol | --o) | |
299 | ac_prev=oldincludedir ;; | |
300 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
301 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
302 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
303 | oldincludedir="$ac_optarg" ;; | |
304 | ||
305 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
306 | ac_prev=prefix ;; | |
307 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
308 | prefix="$ac_optarg" ;; | |
309 | ||
310 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
311 | | --program-pre | --program-pr | --program-p) | |
312 | ac_prev=program_prefix ;; | |
313 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
314 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
315 | program_prefix="$ac_optarg" ;; | |
316 | ||
317 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
318 | | --program-suf | --program-su | --program-s) | |
319 | ac_prev=program_suffix ;; | |
320 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
321 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
322 | program_suffix="$ac_optarg" ;; | |
323 | ||
324 | -program-transform-name | --program-transform-name \ | |
325 | | --program-transform-nam | --program-transform-na \ | |
326 | | --program-transform-n | --program-transform- \ | |
327 | | --program-transform | --program-transfor \ | |
328 | | --program-transfo | --program-transf \ | |
329 | | --program-trans | --program-tran \ | |
330 | | --progr-tra | --program-tr | --program-t) | |
331 | ac_prev=program_transform_name ;; | |
332 | -program-transform-name=* | --program-transform-name=* \ | |
333 | | --program-transform-nam=* | --program-transform-na=* \ | |
334 | | --program-transform-n=* | --program-transform-=* \ | |
335 | | --program-transform=* | --program-transfor=* \ | |
336 | | --program-transfo=* | --program-transf=* \ | |
337 | | --program-trans=* | --program-tran=* \ | |
338 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
339 | program_transform_name="$ac_optarg" ;; | |
340 | ||
341 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
342 | | -silent | --silent | --silen | --sile | --sil) | |
343 | silent=yes ;; | |
344 | ||
345 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
346 | ac_prev=sbindir ;; | |
347 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
348 | | --sbi=* | --sb=*) | |
349 | sbindir="$ac_optarg" ;; | |
350 | ||
351 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
352 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
353 | | --sharedst | --shareds | --shared | --share | --shar \ | |
354 | | --sha | --sh) | |
355 | ac_prev=sharedstatedir ;; | |
356 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
357 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
358 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
359 | | --sha=* | --sh=*) | |
360 | sharedstatedir="$ac_optarg" ;; | |
361 | ||
362 | -site | --site | --sit) | |
363 | ac_prev=site ;; | |
364 | -site=* | --site=* | --sit=*) | |
365 | site="$ac_optarg" ;; | |
366 | ||
367 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
368 | ac_prev=srcdir ;; | |
369 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
370 | srcdir="$ac_optarg" ;; | |
371 | ||
372 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
373 | | --syscon | --sysco | --sysc | --sys | --sy) | |
374 | ac_prev=sysconfdir ;; | |
375 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
376 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
377 | sysconfdir="$ac_optarg" ;; | |
378 | ||
379 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
380 | ac_prev=target ;; | |
381 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
382 | target="$ac_optarg" ;; | |
383 | ||
384 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
385 | verbose=yes ;; | |
386 | ||
387 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 388 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
389 | exit 0 ;; |
390 | ||
391 | -with-* | --with-*) | |
392 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
393 | # Reject names that are not valid shell variable names. | |
394 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
395 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
396 | fi | |
397 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
398 | case "$ac_option" in | |
399 | *=*) ;; | |
400 | *) ac_optarg=yes ;; | |
401 | esac | |
402 | eval "with_${ac_package}='$ac_optarg'" ;; | |
403 | ||
404 | -without-* | --without-*) | |
405 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
406 | # Reject names that are not valid shell variable names. | |
407 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
408 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
409 | fi | |
410 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
411 | eval "with_${ac_package}=no" ;; | |
412 | ||
413 | --x) | |
414 | # Obsolete; use --with-x. | |
415 | with_x=yes ;; | |
416 | ||
417 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
418 | | --x-incl | --x-inc | --x-in | --x-i) | |
419 | ac_prev=x_includes ;; | |
420 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
421 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
422 | x_includes="$ac_optarg" ;; | |
423 | ||
424 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
425 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
426 | ac_prev=x_libraries ;; | |
427 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
428 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
429 | x_libraries="$ac_optarg" ;; | |
430 | ||
431 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
432 | ;; | |
433 | ||
434 | *) | |
435 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
436 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
437 | fi | |
438 | if test "x$nonopt" != xNONE; then | |
439 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
440 | fi | |
441 | nonopt="$ac_option" | |
442 | ;; | |
443 | ||
444 | esac | |
445 | done | |
446 | ||
447 | if test -n "$ac_prev"; then | |
448 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
449 | fi | |
450 | ||
451 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
452 | ||
453 | # File descriptor usage: | |
454 | # 0 standard input | |
455 | # 1 file creation | |
456 | # 2 errors and warnings | |
457 | # 3 some systems may open it to /dev/tty | |
458 | # 4 used on the Kubota Titan | |
459 | # 6 checking for... messages and results | |
460 | # 5 compiler messages saved in config.log | |
461 | if test "$silent" = yes; then | |
462 | exec 6>/dev/null | |
463 | else | |
464 | exec 6>&1 | |
465 | fi | |
466 | exec 5>./config.log | |
467 | ||
468 | echo "\ | |
469 | This file contains any messages produced by compilers while | |
470 | running configure, to aid debugging if configure makes a mistake. | |
471 | " 1>&5 | |
472 | ||
473 | # Strip out --no-create and --no-recursion so they do not pile up. | |
474 | # Also quote any args containing shell metacharacters. | |
475 | ac_configure_args= | |
476 | for ac_arg | |
477 | do | |
478 | case "$ac_arg" in | |
479 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
480 | | --no-cr | --no-c) ;; | |
481 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
482 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
483 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
484 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
485 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
486 | esac | |
487 | done | |
488 | ||
489 | # NLS nuisances. | |
490 | # Only set these to C if already set. These must not be set unconditionally | |
491 | # because not all systems understand e.g. LANG=C (notably SCO). | |
492 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
493 | # Non-C LC_CTYPE values break the ctype check. | |
494 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
495 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
496 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
497 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
498 | ||
499 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
500 | rm -rf conftest* confdefs.h | |
501 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
502 | echo > confdefs.h | |
503 | ||
504 | # A filename unique to this package, relative to the directory that | |
505 | # configure is in, which we can look for to find out if srcdir is correct. | |
506 | ac_unique_file=tree.c | |
507 | ||
508 | # Find the source files, if location was not specified. | |
509 | if test -z "$srcdir"; then | |
510 | ac_srcdir_defaulted=yes | |
511 | # Try the directory containing this script, then its parent. | |
512 | ac_prog=$0 | |
513 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
514 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
515 | srcdir=$ac_confdir | |
516 | if test ! -r $srcdir/$ac_unique_file; then | |
517 | srcdir=.. | |
518 | fi | |
519 | else | |
520 | ac_srcdir_defaulted=no | |
521 | fi | |
522 | if test ! -r $srcdir/$ac_unique_file; then | |
523 | if test "$ac_srcdir_defaulted" = yes; then | |
524 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
525 | else | |
526 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
527 | fi | |
528 | fi | |
529 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
530 | ||
531 | # Prefer explicitly selected file to automatically selected ones. | |
532 | if test -z "$CONFIG_SITE"; then | |
533 | if test "x$prefix" != xNONE; then | |
534 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
535 | else | |
536 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
537 | fi | |
538 | fi | |
539 | for ac_site_file in $CONFIG_SITE; do | |
540 | if test -r "$ac_site_file"; then | |
541 | echo "loading site script $ac_site_file" | |
542 | . "$ac_site_file" | |
543 | fi | |
544 | done | |
545 | ||
546 | if test -r "$cache_file"; then | |
547 | echo "loading cache $cache_file" | |
548 | . $cache_file | |
549 | else | |
550 | echo "creating cache $cache_file" | |
551 | > $cache_file | |
552 | fi | |
553 | ||
554 | ac_ext=c | |
555 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
556 | ac_cpp='$CPP $CPPFLAGS' | |
557 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 558 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
559 | cross_compiling=$ac_cv_prog_cc_cross |
560 | ||
cd9e5e7c MK |
561 | ac_exeext= |
562 | ac_objext=o | |
861bb6c1 JL |
563 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
564 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
565 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
566 | ac_n= ac_c=' | |
567 | ' ac_t=' ' | |
568 | else | |
569 | ac_n=-n ac_c= ac_t= | |
570 | fi | |
571 | else | |
572 | ac_n= ac_c='\c' ac_t= | |
573 | fi | |
574 | ||
575 | ||
576 | ||
577 | ||
861bb6c1 JL |
578 | remove=rm |
579 | hard_link=ln | |
580 | symbolic_link='ln -s' | |
581 | copy=cp | |
582 | ||
75a39864 JL |
583 | # Check for bogus environment variables. |
584 | # Test if LIBRARY_PATH contains the notation for the current directory | |
585 | # since this would lead to problems installing/building glibc. | |
586 | # LIBRARY_PATH contains the current directory if one of the following | |
587 | # is true: | |
588 | # - one of the terminals (":" and ";") is the first or last sign | |
589 | # - two terminals occur directly after each other | |
590 | # - the path contains an element with a dot in it | |
591 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
76c8f855 | 592 | echo "configure:593: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
593 | case ${LIBRARY_PATH} in |
594 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
595 | library_path_setting="contains current directory" | |
596 | ;; | |
597 | *) | |
598 | library_path_setting="ok" | |
599 | ;; | |
600 | esac | |
601 | echo "$ac_t""$library_path_setting" 1>&6 | |
602 | if test "$library_path_setting" != "ok"; then | |
603 | { echo "configure: error: | |
604 | *** LIBRARY_PATH shouldn't contain the current directory when | |
605 | *** building egcs. Please change the environment variable | |
606 | *** and run configure again." 1>&2; exit 1; } | |
607 | fi | |
608 | ||
609 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
610 | # since this would lead to problems installing/building glibc. | |
611 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
612 | # is true: | |
613 | # - one of the terminals (":" and ";") is the first or last sign | |
614 | # - two terminals occur directly after each other | |
615 | # - the path contains an element with a dot in it | |
616 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
76c8f855 | 617 | echo "configure:618: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
618 | case ${GCC_EXEC_PREFIX} in |
619 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
620 | gcc_exec_prefix_setting="contains current directory" | |
621 | ;; | |
622 | *) | |
623 | gcc_exec_prefix_setting="ok" | |
624 | ;; | |
625 | esac | |
626 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
627 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
628 | { echo "configure: error: | |
629 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
630 | *** building egcs. Please change the environment variable | |
631 | *** and run configure again." 1>&2; exit 1; } | |
632 | fi | |
633 | ||
861bb6c1 JL |
634 | # Check for additional parameters |
635 | ||
636 | # With GNU ld | |
637 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
638 | if test "${with_gnu_ld+set}" = set; then | |
639 | withval="$with_gnu_ld" | |
df6faf79 | 640 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 641 | else |
df6faf79 | 642 | gnu_ld_flag=no |
861bb6c1 JL |
643 | fi |
644 | ||
645 | ||
ab339d62 AO |
646 | # With pre-defined ld |
647 | # Check whether --with-ld or --without-ld was given. | |
648 | if test "${with_ld+set}" = set; then | |
649 | withval="$with_ld" | |
3ccc3a56 | 650 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
651 | fi |
652 | ||
3ccc3a56 AO |
653 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
654 | if test ! -x "$DEFAULT_LINKER"; then | |
655 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 656 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
657 | gnu_ld_flag=yes |
658 | fi | |
659 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 660 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
661 | EOF |
662 | ||
663 | fi | |
664 | ||
861bb6c1 JL |
665 | # With GNU as |
666 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
667 | if test "${with_gnu_as+set}" = set; then | |
668 | withval="$with_gnu_as" | |
df6faf79 | 669 | gas_flag="$with_gnu_as" |
861bb6c1 | 670 | else |
df6faf79 | 671 | gas_flag=no |
861bb6c1 JL |
672 | fi |
673 | ||
674 | ||
ab339d62 AO |
675 | # Check whether --with-as or --without-as was given. |
676 | if test "${with_as+set}" = set; then | |
677 | withval="$with_as" | |
3ccc3a56 | 678 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
679 | fi |
680 | ||
3ccc3a56 AO |
681 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
682 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
683 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 684 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
685 | gas_flag=yes |
686 | fi | |
687 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 688 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
689 | EOF |
690 | ||
3ccc3a56 | 691 | fi |
ab339d62 | 692 | |
861bb6c1 JL |
693 | # With stabs |
694 | # Check whether --with-stabs or --without-stabs was given. | |
695 | if test "${with_stabs+set}" = set; then | |
696 | withval="$with_stabs" | |
535b86ce | 697 | stabs="$with_stabs" |
861bb6c1 JL |
698 | else |
699 | stabs=no | |
700 | fi | |
701 | ||
702 | ||
703 | # With ELF | |
704 | # Check whether --with-elf or --without-elf was given. | |
705 | if test "${with_elf+set}" = set; then | |
706 | withval="$with_elf" | |
535b86ce | 707 | elf="$with_elf" |
861bb6c1 JL |
708 | else |
709 | elf=no | |
710 | fi | |
711 | ||
712 | ||
713 | # Specify the local prefix | |
4e88d51b | 714 | local_prefix= |
861bb6c1 JL |
715 | # Check whether --with-local-prefix or --without-local-prefix was given. |
716 | if test "${with_local_prefix+set}" = set; then | |
717 | withval="$with_local_prefix" | |
4e88d51b JM |
718 | case "${withval}" in |
719 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
720 | no) ;; | |
721 | *) local_prefix=$with_local_prefix ;; | |
722 | esac | |
861bb6c1 JL |
723 | fi |
724 | ||
725 | ||
726 | # Default local prefix if it is empty | |
75bffa71 | 727 | if test x$local_prefix = x; then |
861bb6c1 JL |
728 | local_prefix=/usr/local |
729 | fi | |
730 | ||
8f8d3278 NC |
731 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
732 | # passed in by the toplevel make and thus we'd get different behavior | |
733 | # depending on where we built the sources. | |
734 | gcc_gxx_include_dir= | |
861bb6c1 JL |
735 | # Specify the g++ header file directory |
736 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
737 | if test "${with_gxx_include_dir+set}" = set; then | |
738 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
739 | case "${withval}" in |
740 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
741 | no) ;; | |
8f8d3278 | 742 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 743 | esac |
861bb6c1 JL |
744 | fi |
745 | ||
746 | ||
8f8d3278 | 747 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 748 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 749 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 750 | else |
a270b446 | 751 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 752 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
753 | fi |
754 | fi | |
755 | ||
a494747c MM |
756 | # Enable expensive internal checks |
757 | # Check whether --enable-checking or --disable-checking was given. | |
758 | if test "${enable_checking+set}" = set; then | |
759 | enableval="$enable_checking" | |
4e88d51b JM |
760 | case "${enableval}" in |
761 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
762 | #define ENABLE_CHECKING 1 |
763 | EOF | |
4e88d51b JM |
764 | ;; |
765 | no) ;; | |
766 | *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; | |
767 | esac | |
a494747c MM |
768 | fi |
769 | ||
770 | ||
f81a440f | 771 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 772 | cpp_main=cccp |
f81a440f ZW |
773 | # Check whether --enable-cpplib or --disable-cpplib was given. |
774 | if test "${enable_cpplib+set}" = set; then | |
775 | enableval="$enable_cpplib" | |
776 | if test x$enable_cpplib != xno; then | |
777 | cpp_main=cppmain | |
778 | fi | |
779 | fi | |
780 | ||
781 | ||
782 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
861bb6c1 JL |
783 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
784 | if test "${enable_c_cpplib+set}" = set; then | |
785 | enableval="$enable_c_cpplib" | |
75bffa71 | 786 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
787 | extra_c_objs="${extra_c_objs} libcpp.a" |
788 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
4525d757 | 789 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 790 | cpp_main=cppmain |
861bb6c1 JL |
791 | fi |
792 | fi | |
793 | ||
f81a440f | 794 | |
0b9d02c6 JL |
795 | # Enable Multibyte Characters for C/C++ |
796 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
797 | if test "${enable_c_mbchar+set}" = set; then | |
798 | enableval="$enable_c_mbchar" | |
75bffa71 | 799 | if test x$enable_c_mbchar != xno; then |
0b9d02c6 JL |
800 | extra_c_flags=-DMULTIBYTE_CHARS=1 |
801 | fi | |
802 | fi | |
803 | ||
76c8f855 BK |
804 | |
805 | # Disable fast fixincludes | |
806 | # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given. | |
807 | if test "${enable_fast_fixincludes+set}" = set; then | |
808 | enableval="$enable_fast_fixincludes" | |
809 | if test x$enable_fast_fixincludes = xno ; then | |
810 | cp $srcdir/fixincludes ./fixinc.sh | |
811 | fi | |
812 | fi | |
813 | ||
814 | ||
9101297d DL |
815 | # Enable Haifa scheduler. |
816 | # Check whether --enable-haifa or --disable-haifa was given. | |
817 | if test "${enable_haifa+set}" = set; then | |
818 | enableval="$enable_haifa" | |
819 | : | |
820 | fi | |
821 | ||
861bb6c1 JL |
822 | |
823 | # Enable threads | |
824 | # Pass with no value to take the default | |
825 | # Pass with a value to specify a thread package | |
826 | # Check whether --enable-threads or --disable-threads was given. | |
827 | if test "${enable_threads+set}" = set; then | |
828 | enableval="$enable_threads" | |
75bffa71 | 829 | if test x$enable_threads = xno; then |
861bb6c1 JL |
830 | enable_threads='' |
831 | fi | |
832 | else | |
833 | enable_threads='' | |
834 | fi | |
835 | ||
836 | ||
e445171e | 837 | enable_threads_flag=$enable_threads |
861bb6c1 | 838 | # Check if a valid thread package |
e445171e | 839 | case x${enable_threads_flag} in |
861bb6c1 JL |
840 | x | xno) |
841 | # No threads | |
a851212a | 842 | target_thread_file='single' |
861bb6c1 JL |
843 | ;; |
844 | xyes) | |
845 | # default | |
a851212a | 846 | target_thread_file='' |
861bb6c1 JL |
847 | ;; |
848 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 849 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 850 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
851 | ;; |
852 | *) | |
853 | echo "$enable_threads is an unknown thread package" 1>&2 | |
854 | exit 1 | |
855 | ;; | |
856 | esac | |
857 | ||
d8bb17c8 OP |
858 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
859 | if test "${enable_objc_gc+set}" = set; then | |
860 | enableval="$enable_objc_gc" | |
861 | if [ x$enable_objc_gc = xno ]; then | |
862 | objc_boehm_gc='' | |
863 | else | |
864 | objc_boehm_gc=1 | |
865 | fi | |
866 | else | |
867 | objc_boehm_gc='' | |
868 | fi | |
869 | ||
870 | ||
df37e3db TT |
871 | # Check whether --enable-java-gc or --disable-java-gc was given. |
872 | if test "${enable_java_gc+set}" = set; then | |
873 | enableval="$enable_java_gc" | |
874 | ||
875 | JAVAGC=$enableval | |
876 | else | |
877 | JAVAGC=boehm | |
878 | fi | |
879 | ||
880 | ||
90e6a802 RL |
881 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
882 | if test "${with_dwarf2+set}" = set; then | |
883 | withval="$with_dwarf2" | |
884 | dwarf2="$with_dwarf2" | |
885 | else | |
886 | dwarf2=no | |
887 | fi | |
888 | ||
889 | ||
861bb6c1 JL |
890 | # Determine the host, build, and target systems |
891 | ac_aux_dir= | |
892 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
893 | if test -f $ac_dir/install-sh; then | |
894 | ac_aux_dir=$ac_dir | |
895 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
896 | break | |
897 | elif test -f $ac_dir/install.sh; then | |
898 | ac_aux_dir=$ac_dir | |
899 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
900 | break | |
901 | fi | |
902 | done | |
903 | if test -z "$ac_aux_dir"; then | |
904 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
905 | fi | |
906 | ac_config_guess=$ac_aux_dir/config.guess | |
907 | ac_config_sub=$ac_aux_dir/config.sub | |
908 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
909 | ||
910 | ||
911 | # Do some error checking and defaulting for the host and target type. | |
912 | # The inputs are: | |
913 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
914 | # | |
915 | # The rules are: | |
916 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
917 | # same time. | |
918 | # 2. Host defaults to nonopt. | |
919 | # 3. If nonopt is not specified, then host defaults to the current host, | |
920 | # as determined by config.guess. | |
921 | # 4. Target and build default to nonopt. | |
922 | # 5. If nonopt is not specified, then target and build default to host. | |
923 | ||
924 | # The aliases save the names the user supplied, while $host etc. | |
925 | # will get canonicalized. | |
926 | case $host---$target---$nonopt in | |
927 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
928 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
929 | esac | |
930 | ||
931 | ||
932 | # Make sure we can run config.sub. | |
6f144c9c | 933 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
934 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
935 | fi | |
936 | ||
937 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
76c8f855 | 938 | echo "configure:939: checking host system type" >&5 |
861bb6c1 JL |
939 | |
940 | host_alias=$host | |
941 | case "$host_alias" in | |
942 | NONE) | |
943 | case $nonopt in | |
944 | NONE) | |
6f144c9c | 945 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
946 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
947 | fi ;; | |
948 | *) host_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
6f144c9c | 952 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
953 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
954 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$host" 1>&6 | |
957 | ||
958 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
76c8f855 | 959 | echo "configure:960: checking target system type" >&5 |
861bb6c1 JL |
960 | |
961 | target_alias=$target | |
962 | case "$target_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) target_alias=$host_alias ;; | |
966 | *) target_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
6f144c9c | 970 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
971 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
972 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$target" 1>&6 | |
975 | ||
976 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
76c8f855 | 977 | echo "configure:978: checking build system type" >&5 |
861bb6c1 JL |
978 | |
979 | build_alias=$build | |
980 | case "$build_alias" in | |
981 | NONE) | |
982 | case $nonopt in | |
983 | NONE) build_alias=$host_alias ;; | |
984 | *) build_alias=$nonopt ;; | |
985 | esac ;; | |
986 | esac | |
987 | ||
6f144c9c | 988 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
989 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
990 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
991 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
992 | echo "$ac_t""$build" 1>&6 | |
993 | ||
994 | test "$host_alias" != "$target_alias" && | |
995 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
996 | NONENONEs,x,x, && | |
997 | program_prefix=${target_alias}- | |
998 | ||
999 | ||
e9a25f70 JL |
1000 | # Find the native compiler |
1001 | # Extract the first word of "gcc", so it can be a program name with args. | |
1002 | set dummy gcc; ac_word=$2 | |
1003 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 1004 | echo "configure:1005: checking for $ac_word" >&5 |
e9a25f70 JL |
1005 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1007 | else | |
1008 | if test -n "$CC"; then | |
1009 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1010 | else | |
cd9e5e7c | 1011 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1012 | ac_dummy="$PATH" |
1013 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1014 | test -z "$ac_dir" && ac_dir=. |
1015 | if test -f $ac_dir/$ac_word; then | |
1016 | ac_cv_prog_CC="gcc" | |
1017 | break | |
1018 | fi | |
1019 | done | |
1020 | IFS="$ac_save_ifs" | |
1021 | fi | |
1022 | fi | |
1023 | CC="$ac_cv_prog_CC" | |
1024 | if test -n "$CC"; then | |
1025 | echo "$ac_t""$CC" 1>&6 | |
1026 | else | |
1027 | echo "$ac_t""no" 1>&6 | |
1028 | fi | |
1029 | ||
1030 | if test -z "$CC"; then | |
1031 | # Extract the first word of "cc", so it can be a program name with args. | |
1032 | set dummy cc; ac_word=$2 | |
1033 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 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=":" |
e9a25f70 | 1042 | ac_prog_rejected=no |
b27d2bd5 MK |
1043 | ac_dummy="$PATH" |
1044 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1045 | test -z "$ac_dir" && ac_dir=. |
1046 | if test -f $ac_dir/$ac_word; then | |
1047 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1048 | ac_prog_rejected=yes | |
1049 | continue | |
1050 | fi | |
1051 | ac_cv_prog_CC="cc" | |
1052 | break | |
1053 | fi | |
1054 | done | |
1055 | IFS="$ac_save_ifs" | |
1056 | if test $ac_prog_rejected = yes; then | |
1057 | # We found a bogon in the path, so make sure we never use it. | |
1058 | set dummy $ac_cv_prog_CC | |
1059 | shift | |
1060 | if test $# -gt 0; then | |
1061 | # We chose a different compiler from the bogus one. | |
1062 | # However, it has the same basename, so the bogon will be chosen | |
1063 | # first if we set CC to just the basename; use the full file name. | |
1064 | shift | |
1065 | set dummy "$ac_dir/$ac_word" "$@" | |
1066 | shift | |
1067 | ac_cv_prog_CC="$@" | |
1068 | fi | |
1069 | fi | |
1070 | fi | |
1071 | fi | |
1072 | CC="$ac_cv_prog_CC" | |
1073 | if test -n "$CC"; then | |
1074 | echo "$ac_t""$CC" 1>&6 | |
1075 | else | |
1076 | echo "$ac_t""no" 1>&6 | |
1077 | fi | |
1078 | ||
cd9e5e7c MK |
1079 | if test -z "$CC"; then |
1080 | case "`uname -s`" in | |
1081 | *win32* | *WIN32*) | |
1082 | # Extract the first word of "cl", so it can be a program name with args. | |
1083 | set dummy cl; ac_word=$2 | |
1084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 1085 | echo "configure:1086: checking for $ac_word" >&5 |
cd9e5e7c MK |
1086 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1088 | else | |
1089 | if test -n "$CC"; then | |
1090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1091 | else | |
1092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1093 | ac_dummy="$PATH" |
1094 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1095 | test -z "$ac_dir" && ac_dir=. |
1096 | if test -f $ac_dir/$ac_word; then | |
1097 | ac_cv_prog_CC="cl" | |
1098 | break | |
1099 | fi | |
1100 | done | |
1101 | IFS="$ac_save_ifs" | |
1102 | fi | |
1103 | fi | |
1104 | CC="$ac_cv_prog_CC" | |
1105 | if test -n "$CC"; then | |
1106 | echo "$ac_t""$CC" 1>&6 | |
1107 | else | |
1108 | echo "$ac_t""no" 1>&6 | |
1109 | fi | |
1110 | ;; | |
1111 | esac | |
1112 | fi | |
e9a25f70 JL |
1113 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1114 | fi | |
1115 | ||
1116 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
76c8f855 | 1117 | echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1118 | |
1119 | ac_ext=c | |
1120 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1121 | ac_cpp='$CPP $CPPFLAGS' | |
1122 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1123 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1124 | cross_compiling=$ac_cv_prog_cc_cross |
1125 | ||
b27d2bd5 MK |
1126 | cat > conftest.$ac_ext << EOF |
1127 | ||
76c8f855 | 1128 | #line 1129 "configure" |
e9a25f70 | 1129 | #include "confdefs.h" |
b27d2bd5 | 1130 | |
e9a25f70 JL |
1131 | main(){return(0);} |
1132 | EOF | |
76c8f855 | 1133 | if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1134 | ac_cv_prog_cc_works=yes |
1135 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1136 | if (./conftest; exit) 2>/dev/null; then | |
1137 | ac_cv_prog_cc_cross=no | |
1138 | else | |
1139 | ac_cv_prog_cc_cross=yes | |
1140 | fi | |
1141 | else | |
1142 | echo "configure: failed program was:" >&5 | |
1143 | cat conftest.$ac_ext >&5 | |
1144 | ac_cv_prog_cc_works=no | |
1145 | fi | |
1146 | rm -fr conftest* | |
b27d2bd5 MK |
1147 | ac_ext=c |
1148 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1149 | ac_cpp='$CPP $CPPFLAGS' | |
1150 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1151 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1152 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1153 | |
1154 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1155 | if test $ac_cv_prog_cc_works = no; then | |
1156 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1157 | fi | |
1158 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
76c8f855 | 1159 | echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1160 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1161 | cross_compiling=$ac_cv_prog_cc_cross | |
1162 | ||
1163 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
76c8f855 | 1164 | echo "configure:1165: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1165 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1167 | else | |
1168 | cat > conftest.c <<EOF | |
1169 | #ifdef __GNUC__ | |
1170 | yes; | |
1171 | #endif | |
1172 | EOF | |
76c8f855 | 1173 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1174 | ac_cv_prog_gcc=yes |
1175 | else | |
1176 | ac_cv_prog_gcc=no | |
1177 | fi | |
1178 | fi | |
1179 | ||
1180 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1181 | ||
1182 | if test $ac_cv_prog_gcc = yes; then | |
1183 | GCC=yes | |
cd9e5e7c MK |
1184 | else |
1185 | GCC= | |
1186 | fi | |
1187 | ||
1188 | ac_test_CFLAGS="${CFLAGS+set}" | |
1189 | ac_save_CFLAGS="$CFLAGS" | |
1190 | CFLAGS= | |
1191 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
76c8f855 | 1192 | echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1193 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1195 | else | |
1196 | echo 'void f(){}' > conftest.c | |
1197 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1198 | ac_cv_prog_cc_g=yes | |
1199 | else | |
1200 | ac_cv_prog_cc_g=no | |
1201 | fi | |
1202 | rm -f conftest* | |
1203 | ||
1204 | fi | |
1205 | ||
1206 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1207 | if test "$ac_test_CFLAGS" = set; then |
1208 | CFLAGS="$ac_save_CFLAGS" | |
1209 | elif test $ac_cv_prog_cc_g = yes; then | |
1210 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1211 | CFLAGS="-g -O2" |
1212 | else | |
cd9e5e7c | 1213 | CFLAGS="-g" |
81814e35 | 1214 | fi |
3723cad9 | 1215 | else |
cd9e5e7c MK |
1216 | if test "$GCC" = yes; then |
1217 | CFLAGS="-O2" | |
1218 | else | |
1219 | CFLAGS= | |
1220 | fi | |
e9a25f70 JL |
1221 | fi |
1222 | ||
61842080 MM |
1223 | |
1224 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1225 | # That's useful for people building cross-compilers, or just running a | |
1226 | # quick `make'. | |
1227 | if test "x$GCC" = "xyes"; then | |
1228 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1229 | else | |
1230 | stage1_warn_cflags="" | |
1231 | fi | |
1232 | ||
1233 | ||
e9a25f70 | 1234 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
76c8f855 | 1235 | echo "configure:1236: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1236 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1237 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1239 | else | |
1240 | cat > conftestmake <<\EOF | |
1241 | all: | |
1242 | @echo 'ac_maketemp="${MAKE}"' | |
1243 | EOF | |
1244 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1245 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1246 | if test -n "$ac_maketemp"; then | |
1247 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1248 | else | |
1249 | eval ac_cv_prog_make_${ac_make}_set=no | |
1250 | fi | |
1251 | rm -f conftestmake | |
1252 | fi | |
1253 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1254 | echo "$ac_t""yes" 1>&6 | |
1255 | SET_MAKE= | |
1256 | else | |
1257 | echo "$ac_t""no" 1>&6 | |
1258 | SET_MAKE="MAKE=${MAKE-make}" | |
1259 | fi | |
1260 | ||
1261 | ||
ab339d62 | 1262 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
76c8f855 | 1263 | echo "configure:1264: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1264 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1265 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1266 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1267 | else |
3ccc3a56 | 1268 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1269 | fi |
1270 | else | |
1271 | echo "$ac_t""no" 1>&6 | |
1272 | fi | |
1273 | ||
1274 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
76c8f855 | 1275 | echo "configure:1276: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1276 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1277 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1278 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1279 | else |
3ccc3a56 | 1280 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1281 | fi |
1282 | else | |
1283 | echo "$ac_t""no" 1>&6 | |
1284 | fi | |
1285 | ||
861bb6c1 JL |
1286 | # Find some useful tools |
1287 | for ac_prog in mawk gawk nawk awk | |
1288 | do | |
1289 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1290 | set dummy $ac_prog; ac_word=$2 | |
1291 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 1292 | echo "configure:1293: checking for $ac_word" >&5 |
861bb6c1 JL |
1293 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1295 | else | |
1296 | if test -n "$AWK"; then | |
1297 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1298 | else | |
cd9e5e7c | 1299 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1300 | ac_dummy="$PATH" |
1301 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1302 | test -z "$ac_dir" && ac_dir=. |
1303 | if test -f $ac_dir/$ac_word; then | |
1304 | ac_cv_prog_AWK="$ac_prog" | |
1305 | break | |
1306 | fi | |
1307 | done | |
1308 | IFS="$ac_save_ifs" | |
1309 | fi | |
1310 | fi | |
1311 | AWK="$ac_cv_prog_AWK" | |
1312 | if test -n "$AWK"; then | |
1313 | echo "$ac_t""$AWK" 1>&6 | |
1314 | else | |
1315 | echo "$ac_t""no" 1>&6 | |
1316 | fi | |
1317 | ||
1318 | test -n "$AWK" && break | |
1319 | done | |
1320 | ||
1321 | # Extract the first word of "flex", so it can be a program name with args. | |
1322 | set dummy flex; ac_word=$2 | |
1323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 1324 | echo "configure:1325: checking for $ac_word" >&5 |
861bb6c1 JL |
1325 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1327 | else | |
1328 | if test -n "$LEX"; then | |
1329 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1330 | else | |
cd9e5e7c | 1331 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1332 | ac_dummy="$PATH" |
1333 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1334 | test -z "$ac_dir" && ac_dir=. |
1335 | if test -f $ac_dir/$ac_word; then | |
1336 | ac_cv_prog_LEX="flex" | |
1337 | break | |
1338 | fi | |
1339 | done | |
1340 | IFS="$ac_save_ifs" | |
1341 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1342 | fi | |
1343 | fi | |
1344 | LEX="$ac_cv_prog_LEX" | |
1345 | if test -n "$LEX"; then | |
1346 | echo "$ac_t""$LEX" 1>&6 | |
1347 | else | |
1348 | echo "$ac_t""no" 1>&6 | |
1349 | fi | |
1350 | ||
1351 | if test -z "$LEXLIB" | |
1352 | then | |
1353 | case "$LEX" in | |
1354 | flex*) ac_lib=fl ;; | |
1355 | *) ac_lib=l ;; | |
1356 | esac | |
1357 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
76c8f855 | 1358 | echo "configure:1359: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1359 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1360 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1362 | else | |
1363 | ac_save_LIBS="$LIBS" | |
1364 | LIBS="-l$ac_lib $LIBS" | |
1365 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1366 | #line 1367 "configure" |
861bb6c1 JL |
1367 | #include "confdefs.h" |
1368 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1369 | /* We use char because int might match the return type of a gcc2 | |
1370 | builtin and then its argument prototype would still apply. */ | |
1371 | char yywrap(); | |
1372 | ||
1373 | int main() { | |
1374 | yywrap() | |
1375 | ; return 0; } | |
1376 | EOF | |
76c8f855 | 1377 | if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1378 | rm -rf conftest* |
1379 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1380 | else | |
1381 | echo "configure: failed program was:" >&5 | |
1382 | cat conftest.$ac_ext >&5 | |
1383 | rm -rf conftest* | |
1384 | eval "ac_cv_lib_$ac_lib_var=no" | |
1385 | fi | |
1386 | rm -f conftest* | |
1387 | LIBS="$ac_save_LIBS" | |
1388 | ||
1389 | fi | |
1390 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1391 | echo "$ac_t""yes" 1>&6 | |
1392 | LEXLIB="-l$ac_lib" | |
1393 | else | |
1394 | echo "$ac_t""no" 1>&6 | |
1395 | fi | |
1396 | ||
1397 | fi | |
1398 | ||
0a4b6309 | 1399 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
76c8f855 | 1400 | echo "configure:1401: checking whether ln works" >&5 |
0a4b6309 RL |
1401 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1403 | else | |
1404 | rm -f conftestdata_t | |
1405 | echo >conftestdata_f | |
1406 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1407 | then | |
1408 | gcc_cv_prog_LN="ln" | |
1409 | else | |
1410 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1411 | then | |
1412 | gcc_cv_prog_LN="ln -s" | |
1413 | else | |
1414 | gcc_cv_prog_LN=cp | |
1415 | fi | |
1416 | fi | |
1417 | rm -f conftestdata_f conftestdata_t | |
1418 | ||
1419 | fi | |
1420 | LN="$gcc_cv_prog_LN" | |
1421 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1422 | echo "$ac_t""yes" 1>&6 | |
1423 | else | |
1424 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1425 | echo "$ac_t""no, using ln -s" 1>&6 | |
1426 | else | |
1427 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1428 | fi | |
1429 | fi | |
1430 | ||
1431 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
76c8f855 | 1432 | echo "configure:1433: checking whether ln -s works" >&5 |
0a4b6309 RL |
1433 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1435 | else | |
1436 | rm -f conftestdata_t | |
1437 | echo >conftestdata_f | |
1438 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1439 | then | |
1440 | gcc_cv_prog_LN_S="ln -s" | |
1441 | else | |
1442 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1443 | then | |
1444 | gcc_cv_prog_LN_S=ln | |
1445 | else | |
1446 | gcc_cv_prog_LN_S=cp | |
1447 | fi | |
1448 | fi | |
1449 | rm -f conftestdata_f conftestdata_t | |
1450 | ||
1451 | fi | |
1452 | LN_S="$gcc_cv_prog_LN_S" | |
1453 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1454 | echo "$ac_t""yes" 1>&6 | |
1455 | else | |
1456 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1457 | echo "$ac_t""no, using ln" 1>&6 | |
1458 | else | |
1459 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1460 | fi | |
1461 | fi | |
1462 | ||
1463 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
76c8f855 | 1464 | echo "configure:1465: checking for volatile" >&5 |
0a4b6309 RL |
1465 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1467 | else | |
1468 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1469 | #line 1470 "configure" |
0a4b6309 RL |
1470 | #include "confdefs.h" |
1471 | ||
1472 | int main() { | |
1473 | volatile int foo; | |
1474 | ; return 0; } | |
1475 | EOF | |
76c8f855 | 1476 | if { (eval echo configure:1477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1477 | rm -rf conftest* |
1478 | gcc_cv_c_volatile=yes | |
1479 | else | |
1480 | echo "configure: failed program was:" >&5 | |
1481 | cat conftest.$ac_ext >&5 | |
1482 | rm -rf conftest* | |
1483 | gcc_cv_c_volatile=no | |
1484 | fi | |
1485 | rm -f conftest* | |
1486 | fi | |
1487 | ||
1488 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1489 | if test $gcc_cv_c_volatile = yes ; then | |
1490 | cat >> confdefs.h <<\EOF | |
1491 | #define HAVE_VOLATILE 1 | |
1492 | EOF | |
1493 | ||
1494 | fi | |
1495 | ||
861bb6c1 JL |
1496 | # Extract the first word of "ranlib", so it can be a program name with args. |
1497 | set dummy ranlib; ac_word=$2 | |
1498 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 1499 | echo "configure:1500: checking for $ac_word" >&5 |
861bb6c1 JL |
1500 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1502 | else | |
1503 | if test -n "$RANLIB"; then | |
1504 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1505 | else | |
cd9e5e7c | 1506 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1507 | ac_dummy="$PATH" |
1508 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1509 | test -z "$ac_dir" && ac_dir=. |
1510 | if test -f $ac_dir/$ac_word; then | |
1511 | ac_cv_prog_RANLIB="ranlib" | |
1512 | break | |
1513 | fi | |
1514 | done | |
1515 | IFS="$ac_save_ifs" | |
1516 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1517 | fi | |
1518 | fi | |
1519 | RANLIB="$ac_cv_prog_RANLIB" | |
1520 | if test -n "$RANLIB"; then | |
1521 | echo "$ac_t""$RANLIB" 1>&6 | |
1522 | else | |
1523 | echo "$ac_t""no" 1>&6 | |
1524 | fi | |
1525 | ||
1526 | for ac_prog in 'bison -y' byacc | |
1527 | do | |
1528 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1529 | set dummy $ac_prog; ac_word=$2 | |
1530 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 1531 | echo "configure:1532: checking for $ac_word" >&5 |
861bb6c1 JL |
1532 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1534 | else | |
1535 | if test -n "$YACC"; then | |
1536 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1537 | else | |
cd9e5e7c | 1538 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1539 | ac_dummy="$PATH" |
1540 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1541 | test -z "$ac_dir" && ac_dir=. |
1542 | if test -f $ac_dir/$ac_word; then | |
1543 | ac_cv_prog_YACC="$ac_prog" | |
1544 | break | |
1545 | fi | |
1546 | done | |
1547 | IFS="$ac_save_ifs" | |
1548 | fi | |
1549 | fi | |
1550 | YACC="$ac_cv_prog_YACC" | |
1551 | if test -n "$YACC"; then | |
1552 | echo "$ac_t""$YACC" 1>&6 | |
1553 | else | |
1554 | echo "$ac_t""no" 1>&6 | |
1555 | fi | |
1556 | ||
1557 | test -n "$YACC" && break | |
1558 | done | |
1559 | test -n "$YACC" || YACC="yacc" | |
1560 | ||
0a4b6309 RL |
1561 | # Find a good install program. We prefer a C program (faster), |
1562 | # so one script is as good as another. But avoid the broken or | |
1563 | # incompatible versions: | |
1564 | # SysV /etc/install, /usr/sbin/install | |
1565 | # SunOS /usr/etc/install | |
1566 | # IRIX /sbin/install | |
1567 | # AIX /bin/install | |
1568 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1569 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1570 | # ./install, which can be erroneously created by make from ./install.sh. | |
1571 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
76c8f855 | 1572 | echo "configure:1573: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1573 | if test -z "$INSTALL"; then |
1574 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1576 | else | |
1577 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1578 | for ac_dir in $PATH; do | |
1579 | # Account for people who put trailing slashes in PATH elements. | |
1580 | case "$ac_dir/" in | |
1581 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1582 | *) | |
1583 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1584 | for ac_prog in ginstall scoinst install; do | |
1585 | if test -f $ac_dir/$ac_prog; then | |
1586 | if test $ac_prog = install && | |
1587 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1588 | # AIX install. It has an incompatible calling convention. | |
1589 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1590 | : | |
1591 | else | |
1592 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1593 | break 2 | |
1594 | fi | |
1595 | fi | |
1596 | done | |
1597 | ;; | |
1598 | esac | |
1599 | done | |
1600 | IFS="$ac_save_IFS" | |
1601 | ||
1602 | fi | |
1603 | if test "${ac_cv_path_install+set}" = set; then | |
1604 | INSTALL="$ac_cv_path_install" | |
1605 | else | |
1606 | # As a last resort, use the slow shell script. We don't cache a | |
1607 | # path for INSTALL within a source directory, because that will | |
1608 | # break other packages using the cache if that directory is | |
1609 | # removed, or if the path is relative. | |
1610 | INSTALL="$ac_install_sh" | |
1611 | fi | |
1612 | fi | |
1613 | echo "$ac_t""$INSTALL" 1>&6 | |
1614 | ||
1615 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1616 | # It thinks the first close brace ends the variable substitution. | |
1617 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1618 | ||
1619 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1620 | ||
861bb6c1 | 1621 | |
861bb6c1 | 1622 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
76c8f855 | 1623 | echo "configure:1624: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1624 | # On Suns, sometimes $CPP names a directory. |
1625 | if test -n "$CPP" && test -d "$CPP"; then | |
1626 | CPP= | |
1627 | fi | |
1628 | if test -z "$CPP"; then | |
1629 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1631 | else | |
1632 | # This must be in double quotes, not single quotes, because CPP may get | |
1633 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1634 | CPP="${CC-cc} -E" | |
1635 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1636 | # not just through cpp. | |
1637 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1638 | #line 1639 "configure" |
861bb6c1 JL |
1639 | #include "confdefs.h" |
1640 | #include <assert.h> | |
1641 | Syntax Error | |
1642 | EOF | |
1643 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
76c8f855 | 1644 | { (eval echo configure:1645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1645 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1646 | if test -z "$ac_err"; then |
1647 | : | |
1648 | else | |
1649 | echo "$ac_err" >&5 | |
1650 | echo "configure: failed program was:" >&5 | |
1651 | cat conftest.$ac_ext >&5 | |
1652 | rm -rf conftest* | |
1653 | CPP="${CC-cc} -E -traditional-cpp" | |
1654 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1655 | #line 1656 "configure" |
cd9e5e7c MK |
1656 | #include "confdefs.h" |
1657 | #include <assert.h> | |
1658 | Syntax Error | |
1659 | EOF | |
1660 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
76c8f855 | 1661 | { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1662 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1663 | if test -z "$ac_err"; then | |
1664 | : | |
1665 | else | |
1666 | echo "$ac_err" >&5 | |
1667 | echo "configure: failed program was:" >&5 | |
1668 | cat conftest.$ac_ext >&5 | |
1669 | rm -rf conftest* | |
1670 | CPP="${CC-cc} -nologo -E" | |
1671 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1672 | #line 1673 "configure" |
20fced2c MM |
1673 | #include "confdefs.h" |
1674 | #include <assert.h> | |
1675 | Syntax Error | |
1676 | EOF | |
1677 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
76c8f855 | 1678 | { (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1679 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1680 | if test -z "$ac_err"; then |
1681 | : | |
1682 | else | |
1683 | echo "$ac_err" >&5 | |
1684 | echo "configure: failed program was:" >&5 | |
1685 | cat conftest.$ac_ext >&5 | |
1686 | rm -rf conftest* | |
1687 | CPP=/lib/cpp | |
1688 | fi | |
1689 | rm -f conftest* | |
1690 | fi | |
cd9e5e7c MK |
1691 | rm -f conftest* |
1692 | fi | |
861bb6c1 JL |
1693 | rm -f conftest* |
1694 | ac_cv_prog_CPP="$CPP" | |
1695 | fi | |
1696 | CPP="$ac_cv_prog_CPP" | |
1697 | else | |
1698 | ac_cv_prog_CPP="$CPP" | |
1699 | fi | |
1700 | echo "$ac_t""$CPP" 1>&6 | |
1701 | ||
956d6950 | 1702 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
76c8f855 | 1703 | echo "configure:1704: checking for ANSI C header files" >&5 |
956d6950 JL |
1704 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1706 | else | |
1707 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1708 | #line 1709 "configure" |
956d6950 JL |
1709 | #include "confdefs.h" |
1710 | #include <stdlib.h> | |
1711 | #include <stdarg.h> | |
1712 | #include <string.h> | |
1713 | #include <float.h> | |
1714 | EOF | |
1715 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
76c8f855 | 1716 | { (eval echo configure:1717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1717 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1718 | if test -z "$ac_err"; then |
1719 | rm -rf conftest* | |
1720 | ac_cv_header_stdc=yes | |
1721 | else | |
1722 | echo "$ac_err" >&5 | |
1723 | echo "configure: failed program was:" >&5 | |
1724 | cat conftest.$ac_ext >&5 | |
1725 | rm -rf conftest* | |
1726 | ac_cv_header_stdc=no | |
1727 | fi | |
1728 | rm -f conftest* | |
1729 | ||
1730 | if test $ac_cv_header_stdc = yes; then | |
1731 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1732 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1733 | #line 1734 "configure" |
956d6950 JL |
1734 | #include "confdefs.h" |
1735 | #include <string.h> | |
1736 | EOF | |
1737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1738 | egrep "memchr" >/dev/null 2>&1; then | |
1739 | : | |
1740 | else | |
1741 | rm -rf conftest* | |
1742 | ac_cv_header_stdc=no | |
1743 | fi | |
1744 | rm -f conftest* | |
1745 | ||
1746 | fi | |
1747 | ||
1748 | if test $ac_cv_header_stdc = yes; then | |
1749 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1750 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1751 | #line 1752 "configure" |
956d6950 JL |
1752 | #include "confdefs.h" |
1753 | #include <stdlib.h> | |
1754 | EOF | |
1755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1756 | egrep "free" >/dev/null 2>&1; then | |
1757 | : | |
1758 | else | |
1759 | rm -rf conftest* | |
1760 | ac_cv_header_stdc=no | |
1761 | fi | |
1762 | rm -f conftest* | |
1763 | ||
1764 | fi | |
1765 | ||
1766 | if test $ac_cv_header_stdc = yes; then | |
1767 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1768 | if test "$cross_compiling" = yes; then | |
1769 | : | |
1770 | else | |
1771 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1772 | #line 1773 "configure" |
956d6950 JL |
1773 | #include "confdefs.h" |
1774 | #include <ctype.h> | |
1775 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1776 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1777 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1778 | int main () { int i; for (i = 0; i < 256; i++) | |
1779 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1780 | exit (0); } | |
1781 | ||
1782 | EOF | |
76c8f855 | 1783 | if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1784 | then |
1785 | : | |
1786 | else | |
1787 | echo "configure: failed program was:" >&5 | |
1788 | cat conftest.$ac_ext >&5 | |
1789 | rm -fr conftest* | |
1790 | ac_cv_header_stdc=no | |
1791 | fi | |
1792 | rm -fr conftest* | |
1793 | fi | |
1794 | ||
1795 | fi | |
1796 | fi | |
1797 | ||
1798 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1799 | if test $ac_cv_header_stdc = yes; then | |
1800 | cat >> confdefs.h <<\EOF | |
1801 | #define STDC_HEADERS 1 | |
1802 | EOF | |
1803 | ||
1804 | fi | |
1805 | ||
1806 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
76c8f855 | 1807 | echo "configure:1808: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1808 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1810 | else | |
1811 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1812 | #line 1813 "configure" |
956d6950 JL |
1813 | #include "confdefs.h" |
1814 | #include <sys/types.h> | |
1815 | #include <sys/time.h> | |
1816 | #include <time.h> | |
1817 | int main() { | |
1818 | struct tm *tp; | |
1819 | ; return 0; } | |
1820 | EOF | |
76c8f855 | 1821 | if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1822 | rm -rf conftest* |
1823 | ac_cv_header_time=yes | |
1824 | else | |
1825 | echo "configure: failed program was:" >&5 | |
1826 | cat conftest.$ac_ext >&5 | |
1827 | rm -rf conftest* | |
1828 | ac_cv_header_time=no | |
1829 | fi | |
1830 | rm -f conftest* | |
1831 | fi | |
1832 | ||
1833 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1834 | if test $ac_cv_header_time = yes; then | |
1835 | cat >> confdefs.h <<\EOF | |
1836 | #define TIME_WITH_SYS_TIME 1 | |
1837 | EOF | |
1838 | ||
1839 | fi | |
1840 | ||
0a4b6309 | 1841 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
76c8f855 | 1842 | echo "configure:1843: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1843 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1845 | else | |
1846 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1847 | #line 1848 "configure" |
0a4b6309 RL |
1848 | #include "confdefs.h" |
1849 | #include <string.h> | |
1850 | #include <strings.h> | |
1851 | int main() { | |
1852 | ||
1853 | ; return 0; } | |
1854 | EOF | |
76c8f855 | 1855 | if { (eval echo configure:1856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1856 | rm -rf conftest* |
1857 | gcc_cv_header_string=yes | |
1858 | else | |
1859 | echo "configure: failed program was:" >&5 | |
1860 | cat conftest.$ac_ext >&5 | |
1861 | rm -rf conftest* | |
1862 | gcc_cv_header_string=no | |
1863 | fi | |
1864 | rm -f conftest* | |
1865 | fi | |
1866 | ||
1867 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1868 | if test $gcc_cv_header_string = yes; then | |
1869 | cat >> confdefs.h <<\EOF | |
1870 | #define STRING_WITH_STRINGS 1 | |
1871 | EOF | |
1872 | ||
1873 | fi | |
1874 | ||
e9831ca0 | 1875 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
76c8f855 | 1876 | echo "configure:1877: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1877 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1879 | else | |
1880 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1881 | #line 1882 "configure" |
e9831ca0 KG |
1882 | #include "confdefs.h" |
1883 | #include <sys/types.h> | |
1884 | #include <sys/wait.h> | |
1885 | #ifndef WEXITSTATUS | |
1886 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1887 | #endif | |
1888 | #ifndef WIFEXITED | |
1889 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1890 | #endif | |
1891 | int main() { | |
1892 | int s; | |
1893 | wait (&s); | |
1894 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1895 | ; return 0; } | |
1896 | EOF | |
76c8f855 | 1897 | if { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1898 | rm -rf conftest* |
1899 | ac_cv_header_sys_wait_h=yes | |
1900 | else | |
1901 | echo "configure: failed program was:" >&5 | |
1902 | cat conftest.$ac_ext >&5 | |
1903 | rm -rf conftest* | |
1904 | ac_cv_header_sys_wait_h=no | |
1905 | fi | |
1906 | rm -f conftest* | |
1907 | fi | |
1908 | ||
1909 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1910 | if test $ac_cv_header_sys_wait_h = yes; then | |
1911 | cat >> confdefs.h <<\EOF | |
1912 | #define HAVE_SYS_WAIT_H 1 | |
1913 | EOF | |
1914 | ||
1915 | fi | |
1916 | ||
75923b2f | 1917 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h |
861bb6c1 JL |
1918 | do |
1919 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1920 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
76c8f855 | 1921 | echo "configure:1922: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1922 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1924 | else | |
1925 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1926 | #line 1927 "configure" |
861bb6c1 JL |
1927 | #include "confdefs.h" |
1928 | #include <$ac_hdr> | |
1929 | EOF | |
956d6950 | 1930 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
76c8f855 | 1931 | { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1932 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1933 | if test -z "$ac_err"; then |
1934 | rm -rf conftest* | |
1935 | eval "ac_cv_header_$ac_safe=yes" | |
1936 | else | |
1937 | echo "$ac_err" >&5 | |
1938 | echo "configure: failed program was:" >&5 | |
1939 | cat conftest.$ac_ext >&5 | |
1940 | rm -rf conftest* | |
1941 | eval "ac_cv_header_$ac_safe=no" | |
1942 | fi | |
1943 | rm -f conftest* | |
1944 | fi | |
1945 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1946 | echo "$ac_t""yes" 1>&6 | |
1947 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1948 | cat >> confdefs.h <<EOF | |
1949 | #define $ac_tr_hdr 1 | |
1950 | EOF | |
1951 | ||
1952 | else | |
1953 | echo "$ac_t""no" 1>&6 | |
1954 | fi | |
1955 | done | |
1956 | ||
1957 | ||
f24af81b TT |
1958 | # Check for thread headers. |
1959 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1960 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
76c8f855 | 1961 | echo "configure:1962: checking for thread.h" >&5 |
f24af81b TT |
1962 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1964 | else | |
1965 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 1966 | #line 1967 "configure" |
f24af81b TT |
1967 | #include "confdefs.h" |
1968 | #include <thread.h> | |
1969 | EOF | |
1970 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
76c8f855 | 1971 | { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1972 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
1973 | if test -z "$ac_err"; then |
1974 | rm -rf conftest* | |
1975 | eval "ac_cv_header_$ac_safe=yes" | |
1976 | else | |
1977 | echo "$ac_err" >&5 | |
1978 | echo "configure: failed program was:" >&5 | |
1979 | cat conftest.$ac_ext >&5 | |
1980 | rm -rf conftest* | |
1981 | eval "ac_cv_header_$ac_safe=no" | |
1982 | fi | |
1983 | rm -f conftest* | |
1984 | fi | |
1985 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1986 | echo "$ac_t""yes" 1>&6 | |
1987 | have_thread_h=yes | |
1988 | else | |
1989 | echo "$ac_t""no" 1>&6 | |
1990 | have_thread_h= | |
1991 | fi | |
1992 | ||
1993 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
1994 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
76c8f855 | 1995 | echo "configure:1996: checking for pthread.h" >&5 |
f24af81b TT |
1996 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1998 | else | |
1999 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 2000 | #line 2001 "configure" |
f24af81b TT |
2001 | #include "confdefs.h" |
2002 | #include <pthread.h> | |
2003 | EOF | |
2004 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
76c8f855 | 2005 | { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2006 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2007 | if test -z "$ac_err"; then |
2008 | rm -rf conftest* | |
2009 | eval "ac_cv_header_$ac_safe=yes" | |
2010 | else | |
2011 | echo "$ac_err" >&5 | |
2012 | echo "configure: failed program was:" >&5 | |
2013 | cat conftest.$ac_ext >&5 | |
2014 | rm -rf conftest* | |
2015 | eval "ac_cv_header_$ac_safe=no" | |
2016 | fi | |
2017 | rm -f conftest* | |
2018 | fi | |
2019 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2020 | echo "$ac_t""yes" 1>&6 | |
2021 | have_pthread_h=yes | |
2022 | else | |
2023 | echo "$ac_t""no" 1>&6 | |
2024 | have_pthread_h= | |
2025 | fi | |
2026 | ||
2027 | ||
bcf12124 JL |
2028 | # See if GNAT has been installed |
2029 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2030 | set dummy gnatbind; ac_word=$2 | |
2031 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
76c8f855 | 2032 | echo "configure:2033: checking for $ac_word" >&5 |
bcf12124 JL |
2033 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2035 | else | |
2036 | if test -n "$gnat"; then | |
2037 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2038 | else | |
cd9e5e7c | 2039 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2040 | ac_dummy="$PATH" |
2041 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2042 | test -z "$ac_dir" && ac_dir=. |
2043 | if test -f $ac_dir/$ac_word; then | |
2044 | ac_cv_prog_gnat="yes" | |
2045 | break | |
2046 | fi | |
2047 | done | |
2048 | IFS="$ac_save_ifs" | |
2049 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2050 | fi | |
2051 | fi | |
2052 | gnat="$ac_cv_prog_gnat" | |
2053 | if test -n "$gnat"; then | |
2054 | echo "$ac_t""$gnat" 1>&6 | |
2055 | else | |
2056 | echo "$ac_t""no" 1>&6 | |
2057 | fi | |
2058 | ||
2059 | ||
76844337 RH |
2060 | # See if the system preprocessor understands the ANSI C preprocessor |
2061 | # stringification operator. | |
2062 | echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 | |
76c8f855 | 2063 | echo "configure:2064: checking whether cpp understands the stringify operator" >&5 |
76844337 RH |
2064 | if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then |
2065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2066 | else | |
2067 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 2068 | #line 2069 "configure" |
76844337 RH |
2069 | #include "confdefs.h" |
2070 | ||
2071 | int main() { | |
2072 | #define S(x) #x | |
2073 | char *test = S(foo); | |
2074 | ; return 0; } | |
2075 | EOF | |
76c8f855 | 2076 | if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
76844337 RH |
2077 | rm -rf conftest* |
2078 | gcc_cv_c_have_stringify=yes | |
2079 | else | |
2080 | echo "configure: failed program was:" >&5 | |
2081 | cat conftest.$ac_ext >&5 | |
2082 | rm -rf conftest* | |
2083 | gcc_cv_c_have_stringify=no | |
2084 | fi | |
2085 | rm -f conftest* | |
2086 | fi | |
2087 | ||
2088 | echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 | |
2089 | if test $gcc_cv_c_have_stringify = yes; then | |
2090 | cat >> confdefs.h <<\EOF | |
2091 | #define HAVE_CPP_STRINGIFY 1 | |
2092 | EOF | |
2093 | ||
2094 | fi | |
2095 | ||
956d6950 JL |
2096 | # Use <inttypes.h> only if it exists, |
2097 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2098 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
76c8f855 | 2099 | echo "configure:2100: checking for inttypes.h" >&5 |
956d6950 JL |
2100 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2102 | else | |
2103 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 2104 | #line 2105 "configure" |
956d6950 JL |
2105 | #include "confdefs.h" |
2106 | #include <sys/types.h> | |
2107 | #include <inttypes.h> | |
2108 | int main() { | |
2109 | intmax_t i = -1; | |
2110 | ; return 0; } | |
2111 | EOF | |
76c8f855 | 2112 | if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2113 | rm -rf conftest* |
0056a9b5 | 2114 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2115 | else |
2116 | echo "configure: failed program was:" >&5 | |
2117 | cat conftest.$ac_ext >&5 | |
2118 | rm -rf conftest* | |
2119 | gcc_cv_header_inttypes_h=no | |
2120 | fi | |
2121 | rm -f conftest* | |
2122 | fi | |
2123 | ||
2124 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2125 | if test $gcc_cv_header_inttypes_h = yes; then |
2126 | cat >> confdefs.h <<\EOF | |
2127 | #define HAVE_INTTYPES_H 1 | |
2128 | EOF | |
2129 | ||
2130 | fi | |
956d6950 | 2131 | |
76b4b31e | 2132 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 2133 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 UD |
2134 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
2135 | fputs_unlocked | |
956d6950 JL |
2136 | do |
2137 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
76c8f855 | 2138 | echo "configure:2139: checking for $ac_func" >&5 |
956d6950 JL |
2139 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2141 | else | |
2142 | cat > conftest.$ac_ext <<EOF | |
76c8f855 | 2143 | #line 2144 "configure" |
956d6950 JL |
2144 | #include "confdefs.h" |
2145 | /* System header to define __stub macros and hopefully few prototypes, | |
2146 | which can conflict with char $ac_func(); below. */ | |
2147 | #include <assert.h> | |
2148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2149 | /* We use char because int might match the return type of a gcc2 | |
2150 | builtin and then its argument prototype would still apply. */ | |
2151 | char $ac_func(); | |
01e39005 | 2152 | char (*f)(); |
956d6950 JL |
2153 | |
2154 | int main() { | |
2155 | ||
2156 | /* The GNU C library defines this for functions which it implements | |
2157 | to always fail with ENOSYS. Some functions are actually named | |
2158 | something starting with __ and the normal name is an alias. */ | |
2159 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2160 | choke me | |
2161 | #else | |
01e39005 | 2162 | f = $ac_func; |
956d6950 JL |
2163 | #endif |
2164 | ||
2165 | ; return 0; } | |
2166 | EOF | |
01e39005 | 2167 | if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2168 | rm -rf conftest* |
2169 | eval "ac_cv_func_$ac_func=yes" | |
2170 | else | |
2171 | echo "configure: failed program was:" >&5 | |
2172 | cat conftest.$ac_ext >&5 | |
2173 | rm -rf conftest* | |
2174 | eval "ac_cv_func_$ac_func=no" | |
2175 | fi | |
2176 | rm -f conftest* | |
2177 | fi | |
2178 | ||
2179 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2180 | echo "$ac_t""yes" 1>&6 | |
2181 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2182 | cat >> confdefs.h <<EOF | |
2183 | #define $ac_tr_func 1 | |
2184 | EOF | |
2185 | ||
2186 | else | |
2187 | echo "$ac_t""no" 1>&6 | |
2188 | fi | |
2189 | done | |
2190 | ||
6885fc87 | 2191 | |
0b9d02c6 JL |
2192 | # Make sure wchar_t is available |
2193 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2194 | ||
0a4b6309 | 2195 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
01e39005 | 2196 | echo "configure:2197: checking for vprintf" >&5 |
0a4b6309 RL |
2197 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2199 | else | |
2200 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2201 | #line 2202 "configure" |
0a4b6309 RL |
2202 | #include "confdefs.h" |
2203 | /* System header to define __stub macros and hopefully few prototypes, | |
2204 | which can conflict with char vprintf(); below. */ | |
2205 | #include <assert.h> | |
2206 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2207 | /* We use char because int might match the return type of a gcc2 | |
2208 | builtin and then its argument prototype would still apply. */ | |
2209 | char vprintf(); | |
01e39005 | 2210 | char (*f)(); |
0a4b6309 RL |
2211 | |
2212 | int main() { | |
2213 | ||
2214 | /* The GNU C library defines this for functions which it implements | |
2215 | to always fail with ENOSYS. Some functions are actually named | |
2216 | something starting with __ and the normal name is an alias. */ | |
2217 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2218 | choke me | |
2219 | #else | |
01e39005 | 2220 | f = vprintf; |
0a4b6309 RL |
2221 | #endif |
2222 | ||
2223 | ; return 0; } | |
2224 | EOF | |
01e39005 | 2225 | if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2226 | rm -rf conftest* |
2227 | eval "ac_cv_func_vprintf=yes" | |
2228 | else | |
2229 | echo "configure: failed program was:" >&5 | |
2230 | cat conftest.$ac_ext >&5 | |
2231 | rm -rf conftest* | |
2232 | eval "ac_cv_func_vprintf=no" | |
2233 | fi | |
2234 | rm -f conftest* | |
2235 | fi | |
2236 | ||
2237 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2238 | echo "$ac_t""yes" 1>&6 | |
2239 | cat >> confdefs.h <<\EOF | |
2240 | #define HAVE_VPRINTF 1 | |
2241 | EOF | |
2242 | ||
2243 | else | |
2244 | echo "$ac_t""no" 1>&6 | |
2245 | fi | |
8fa1f09f | 2246 | |
0a4b6309 RL |
2247 | if test "$ac_cv_func_vprintf" != yes; then |
2248 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
01e39005 | 2249 | echo "configure:2250: checking for _doprnt" >&5 |
0a4b6309 RL |
2250 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2252 | else | |
2253 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2254 | #line 2255 "configure" |
0a4b6309 RL |
2255 | #include "confdefs.h" |
2256 | /* System header to define __stub macros and hopefully few prototypes, | |
2257 | which can conflict with char _doprnt(); below. */ | |
2258 | #include <assert.h> | |
2259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2260 | /* We use char because int might match the return type of a gcc2 | |
2261 | builtin and then its argument prototype would still apply. */ | |
2262 | char _doprnt(); | |
01e39005 | 2263 | char (*f)(); |
0a4b6309 RL |
2264 | |
2265 | int main() { | |
2266 | ||
2267 | /* The GNU C library defines this for functions which it implements | |
2268 | to always fail with ENOSYS. Some functions are actually named | |
2269 | something starting with __ and the normal name is an alias. */ | |
2270 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2271 | choke me | |
2272 | #else | |
01e39005 | 2273 | f = _doprnt; |
0a4b6309 RL |
2274 | #endif |
2275 | ||
2276 | ; return 0; } | |
2277 | EOF | |
01e39005 | 2278 | if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2279 | rm -rf conftest* |
2280 | eval "ac_cv_func__doprnt=yes" | |
2281 | else | |
2282 | echo "configure: failed program was:" >&5 | |
2283 | cat conftest.$ac_ext >&5 | |
2284 | rm -rf conftest* | |
2285 | eval "ac_cv_func__doprnt=no" | |
2286 | fi | |
2287 | rm -f conftest* | |
2288 | fi | |
2289 | ||
2290 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2291 | echo "$ac_t""yes" 1>&6 | |
2292 | cat >> confdefs.h <<\EOF | |
2293 | #define HAVE_DOPRNT 1 | |
2294 | EOF | |
2295 | ||
2296 | else | |
2297 | echo "$ac_t""no" 1>&6 | |
2298 | fi | |
2299 | ||
2300 | fi | |
2301 | ||
2302 | vfprintf= | |
2303 | doprint= | |
2304 | if test $ac_cv_func_vprintf != yes ; then | |
2305 | vfprintf=vfprintf.o | |
2306 | if test $ac_cv_func__doprnt != yes ; then | |
2307 | doprint=doprint.o | |
2308 | fi | |
2309 | fi | |
2310 | ||
2311 | ||
2312 | ||
2313 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
01e39005 | 2314 | echo "configure:2315: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2315 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2317 | else | |
2318 | if test "$cross_compiling" = yes; then | |
2319 | gcc_cv_func_printf_ptr=no | |
2320 | else | |
2321 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2322 | #line 2323 "configure" |
0a4b6309 RL |
2323 | #include "confdefs.h" |
2324 | #include <stdio.h> | |
2325 | ||
2326 | main() | |
2327 | { | |
2328 | char buf[64]; | |
2329 | char *p = buf, *q = NULL; | |
2330 | sprintf(buf, "%p", p); | |
2331 | sscanf(buf, "%p", &q); | |
2332 | exit (p != q); | |
2333 | } | |
2334 | EOF | |
01e39005 | 2335 | if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2336 | then |
2337 | gcc_cv_func_printf_ptr=yes | |
2338 | else | |
2339 | echo "configure: failed program was:" >&5 | |
2340 | cat conftest.$ac_ext >&5 | |
2341 | rm -fr conftest* | |
2342 | gcc_cv_func_printf_ptr=no | |
2343 | fi | |
2344 | rm -fr conftest* | |
2345 | fi | |
2346 | ||
2347 | rm -f core core.* *.core | |
2348 | fi | |
2349 | ||
2350 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2351 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2352 | cat >> confdefs.h <<\EOF | |
2353 | #define HAVE_PRINTF_PTR 1 | |
2354 | EOF | |
2355 | ||
2356 | fi | |
2357 | ||
b27d2bd5 MK |
2358 | |
2359 | case "${host}" in | |
2360 | *-*-uwin*) | |
2361 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2362 | # can hang configure; on other versions, vfork exists just as a stub. | |
2363 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2364 | ac_cv_func_vfork_works=no | |
2365 | ;; | |
2366 | esac | |
c375c43b | 2367 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
01e39005 | 2368 | echo "configure:2369: checking for pid_t" >&5 |
c375c43b KG |
2369 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2371 | else | |
2372 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2373 | #line 2374 "configure" |
c375c43b KG |
2374 | #include "confdefs.h" |
2375 | #include <sys/types.h> | |
2376 | #if STDC_HEADERS | |
2377 | #include <stdlib.h> | |
2378 | #include <stddef.h> | |
2379 | #endif | |
2380 | EOF | |
2381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2382 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2383 | rm -rf conftest* |
2384 | ac_cv_type_pid_t=yes | |
2385 | else | |
2386 | rm -rf conftest* | |
2387 | ac_cv_type_pid_t=no | |
2388 | fi | |
2389 | rm -f conftest* | |
2390 | ||
2391 | fi | |
2392 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2393 | if test $ac_cv_type_pid_t = no; then | |
2394 | cat >> confdefs.h <<\EOF | |
2395 | #define pid_t int | |
2396 | EOF | |
2397 | ||
2398 | fi | |
2399 | ||
2400 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2401 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
01e39005 | 2402 | echo "configure:2403: checking for vfork.h" >&5 |
c375c43b KG |
2403 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2405 | else | |
2406 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2407 | #line 2408 "configure" |
c375c43b KG |
2408 | #include "confdefs.h" |
2409 | #include <vfork.h> | |
2410 | EOF | |
2411 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01e39005 | 2412 | { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2413 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2414 | if test -z "$ac_err"; then |
2415 | rm -rf conftest* | |
2416 | eval "ac_cv_header_$ac_safe=yes" | |
2417 | else | |
2418 | echo "$ac_err" >&5 | |
2419 | echo "configure: failed program was:" >&5 | |
2420 | cat conftest.$ac_ext >&5 | |
2421 | rm -rf conftest* | |
2422 | eval "ac_cv_header_$ac_safe=no" | |
2423 | fi | |
2424 | rm -f conftest* | |
2425 | fi | |
2426 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2427 | echo "$ac_t""yes" 1>&6 | |
2428 | cat >> confdefs.h <<\EOF | |
2429 | #define HAVE_VFORK_H 1 | |
2430 | EOF | |
2431 | ||
2432 | else | |
2433 | echo "$ac_t""no" 1>&6 | |
2434 | fi | |
2435 | ||
2436 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
01e39005 | 2437 | echo "configure:2438: checking for working vfork" >&5 |
c375c43b KG |
2438 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2440 | else | |
2441 | if test "$cross_compiling" = yes; then | |
2442 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
01e39005 | 2443 | echo "configure:2444: checking for vfork" >&5 |
c375c43b KG |
2444 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2446 | else | |
2447 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2448 | #line 2449 "configure" |
c375c43b KG |
2449 | #include "confdefs.h" |
2450 | /* System header to define __stub macros and hopefully few prototypes, | |
2451 | which can conflict with char vfork(); below. */ | |
2452 | #include <assert.h> | |
2453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2454 | /* We use char because int might match the return type of a gcc2 | |
2455 | builtin and then its argument prototype would still apply. */ | |
2456 | char vfork(); | |
01e39005 | 2457 | char (*f)(); |
c375c43b KG |
2458 | |
2459 | int main() { | |
2460 | ||
2461 | /* The GNU C library defines this for functions which it implements | |
2462 | to always fail with ENOSYS. Some functions are actually named | |
2463 | something starting with __ and the normal name is an alias. */ | |
2464 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2465 | choke me | |
2466 | #else | |
01e39005 | 2467 | f = vfork; |
c375c43b KG |
2468 | #endif |
2469 | ||
2470 | ; return 0; } | |
2471 | EOF | |
01e39005 | 2472 | if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2473 | rm -rf conftest* |
2474 | eval "ac_cv_func_vfork=yes" | |
2475 | else | |
2476 | echo "configure: failed program was:" >&5 | |
2477 | cat conftest.$ac_ext >&5 | |
2478 | rm -rf conftest* | |
2479 | eval "ac_cv_func_vfork=no" | |
2480 | fi | |
2481 | rm -f conftest* | |
2482 | fi | |
2483 | ||
2484 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2485 | echo "$ac_t""yes" 1>&6 | |
2486 | : | |
2487 | else | |
2488 | echo "$ac_t""no" 1>&6 | |
2489 | fi | |
2490 | ||
2491 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2492 | else | |
2493 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2494 | #line 2495 "configure" |
c375c43b KG |
2495 | #include "confdefs.h" |
2496 | /* Thanks to Paul Eggert for this test. */ | |
2497 | #include <stdio.h> | |
2498 | #include <sys/types.h> | |
2499 | #include <sys/stat.h> | |
2500 | #ifdef HAVE_UNISTD_H | |
2501 | #include <unistd.h> | |
2502 | #endif | |
2503 | #ifdef HAVE_VFORK_H | |
2504 | #include <vfork.h> | |
2505 | #endif | |
2506 | /* On some sparc systems, changes by the child to local and incoming | |
2507 | argument registers are propagated back to the parent. | |
2508 | The compiler is told about this with #include <vfork.h>, | |
2509 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2510 | Test for this by using a static variable whose address | |
2511 | is put into a register that is clobbered by the vfork. */ | |
2512 | static | |
2513 | #ifdef __cplusplus | |
2514 | sparc_address_test (int arg) | |
2515 | #else | |
2516 | sparc_address_test (arg) int arg; | |
2517 | #endif | |
2518 | { | |
2519 | static pid_t child; | |
2520 | if (!child) { | |
2521 | child = vfork (); | |
2522 | if (child < 0) { | |
2523 | perror ("vfork"); | |
2524 | _exit(2); | |
2525 | } | |
2526 | if (!child) { | |
2527 | arg = getpid(); | |
2528 | write(-1, "", 0); | |
2529 | _exit (arg); | |
2530 | } | |
2531 | } | |
2532 | } | |
2533 | main() { | |
2534 | pid_t parent = getpid (); | |
2535 | pid_t child; | |
2536 | ||
2537 | sparc_address_test (); | |
2538 | ||
2539 | child = vfork (); | |
2540 | ||
2541 | if (child == 0) { | |
2542 | /* Here is another test for sparc vfork register problems. | |
2543 | This test uses lots of local variables, at least | |
2544 | as many local variables as main has allocated so far | |
2545 | including compiler temporaries. 4 locals are enough for | |
2546 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2547 | A buggy compiler should reuse the register of parent | |
2548 | for one of the local variables, since it will think that | |
2549 | parent can't possibly be used any more in this routine. | |
2550 | Assigning to the local variable will thus munge parent | |
2551 | in the parent process. */ | |
2552 | pid_t | |
2553 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2554 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2555 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2556 | use the same hardware register for all 8 local variables. */ | |
2557 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2558 | || p != p5 || p != p6 || p != p7) | |
2559 | _exit(1); | |
2560 | ||
2561 | /* On some systems (e.g. IRIX 3.3), | |
2562 | vfork doesn't separate parent from child file descriptors. | |
2563 | If the child closes a descriptor before it execs or exits, | |
2564 | this munges the parent's descriptor as well. | |
2565 | Test for this by closing stdout in the child. */ | |
2566 | _exit(close(fileno(stdout)) != 0); | |
2567 | } else { | |
2568 | int status; | |
2569 | struct stat st; | |
2570 | ||
2571 | while (wait(&status) != child) | |
2572 | ; | |
2573 | exit( | |
2574 | /* Was there some problem with vforking? */ | |
2575 | child < 0 | |
2576 | ||
2577 | /* Did the child fail? (This shouldn't happen.) */ | |
2578 | || status | |
2579 | ||
2580 | /* Did the vfork/compiler bug occur? */ | |
2581 | || parent != getpid() | |
2582 | ||
2583 | /* Did the file descriptor bug occur? */ | |
2584 | || fstat(fileno(stdout), &st) != 0 | |
2585 | ); | |
2586 | } | |
2587 | } | |
2588 | EOF | |
01e39005 | 2589 | if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2590 | then |
2591 | ac_cv_func_vfork_works=yes | |
2592 | else | |
2593 | echo "configure: failed program was:" >&5 | |
2594 | cat conftest.$ac_ext >&5 | |
2595 | rm -fr conftest* | |
2596 | ac_cv_func_vfork_works=no | |
2597 | fi | |
2598 | rm -fr conftest* | |
2599 | fi | |
2600 | ||
2601 | fi | |
2602 | ||
2603 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2604 | if test $ac_cv_func_vfork_works = no; then | |
2605 | cat >> confdefs.h <<\EOF | |
2606 | #define vfork fork | |
2607 | EOF | |
2608 | ||
2609 | fi | |
2610 | ||
0a4b6309 RL |
2611 | |
2612 | for ac_func in malloc realloc calloc free bcopy bzero bcmp \ | |
007e8d2a | 2613 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ |
9c30c0e7 | 2614 | strsignal putc_unlocked fputs_unlocked |
0a4b6309 RL |
2615 | do |
2616 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
01e39005 | 2617 | echo "configure:2618: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2618 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2620 | else | |
2621 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2622 | #line 2623 "configure" |
0a4b6309 RL |
2623 | #include "confdefs.h" |
2624 | ||
2625 | #include <stdio.h> | |
2626 | #ifdef STRING_WITH_STRINGS | |
2627 | # include <string.h> | |
2628 | # include <strings.h> | |
2629 | #else | |
2630 | # ifdef HAVE_STRING_H | |
2631 | # include <string.h> | |
2632 | # else | |
2633 | # ifdef HAVE_STRINGS_H | |
2634 | # include <strings.h> | |
2635 | # endif | |
2636 | # endif | |
2637 | #endif | |
2638 | #ifdef HAVE_STDLIB_H | |
2639 | #include <stdlib.h> | |
2640 | #endif | |
2641 | #ifdef HAVE_UNISTD_H | |
2642 | #include <unistd.h> | |
2643 | #endif | |
2644 | #ifndef HAVE_RINDEX | |
2645 | #define rindex strrchr | |
2646 | #endif | |
2647 | #ifndef HAVE_INDEX | |
2648 | #define index strchr | |
2649 | #endif | |
2650 | ||
2651 | int main() { | |
2652 | char *(*pfn) = (char *(*)) $ac_func | |
2653 | ; return 0; } | |
2654 | EOF | |
01e39005 | 2655 | if { (eval echo configure:2656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2656 | rm -rf conftest* |
2657 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2658 | else | |
2659 | echo "configure: failed program was:" >&5 | |
2660 | cat conftest.$ac_ext >&5 | |
2661 | rm -rf conftest* | |
2662 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2663 | fi | |
2664 | rm -f conftest* | |
2665 | fi | |
2666 | ||
2667 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2668 | echo "$ac_t""yes" 1>&6 | |
2669 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2670 | cat >> confdefs.h <<EOF | |
2671 | #define $gcc_tr_decl 1 | |
2672 | EOF | |
2673 | ||
2674 | else | |
2675 | echo "$ac_t""no" 1>&6 | |
2676 | fi | |
2677 | ||
2678 | done | |
2679 | ||
2680 | ||
2681 | for ac_func in getrlimit setrlimit | |
2682 | do | |
2683 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
01e39005 | 2684 | echo "configure:2685: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2685 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2687 | else | |
2688 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2689 | #line 2690 "configure" |
0a4b6309 | 2690 | #include "confdefs.h" |
8fa1f09f | 2691 | |
0a4b6309 RL |
2692 | #include <stdio.h> |
2693 | #ifdef STRING_WITH_STRINGS | |
2694 | # include <string.h> | |
2695 | # include <strings.h> | |
2696 | #else | |
2697 | # ifdef HAVE_STRING_H | |
2698 | # include <string.h> | |
2699 | # else | |
2700 | # ifdef HAVE_STRINGS_H | |
2701 | # include <strings.h> | |
2702 | # endif | |
2703 | # endif | |
2704 | #endif | |
2705 | #ifdef HAVE_STDLIB_H | |
2706 | #include <stdlib.h> | |
2707 | #endif | |
2708 | #ifdef HAVE_UNISTD_H | |
2709 | #include <unistd.h> | |
2710 | #endif | |
2711 | #ifndef HAVE_RINDEX | |
2712 | #define rindex strrchr | |
2713 | #endif | |
2714 | #ifndef HAVE_INDEX | |
2715 | #define index strchr | |
2716 | #endif | |
d2cabf16 KG |
2717 | #include <sys/types.h> |
2718 | #ifdef HAVE_SYS_RESOURCE_H | |
2719 | #include <sys/resource.h> | |
2720 | #endif | |
0a4b6309 RL |
2721 | |
2722 | int main() { | |
2723 | char *(*pfn) = (char *(*)) $ac_func | |
2724 | ; return 0; } | |
2725 | EOF | |
01e39005 | 2726 | if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2727 | rm -rf conftest* |
2728 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2729 | else | |
2730 | echo "configure: failed program was:" >&5 | |
2731 | cat conftest.$ac_ext >&5 | |
2732 | rm -rf conftest* | |
2733 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2734 | fi | |
2735 | rm -f conftest* | |
2736 | fi | |
2737 | ||
2738 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2739 | echo "$ac_t""yes" 1>&6 | |
2740 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2741 | cat >> confdefs.h <<EOF | |
2742 | #define $gcc_tr_decl 1 | |
2743 | EOF | |
2744 | ||
2745 | else | |
2746 | echo "$ac_t""no" 1>&6 | |
2747 | fi | |
2748 | ||
2749 | done | |
2750 | ||
956d6950 JL |
2751 | |
2752 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
01e39005 | 2753 | echo "configure:2754: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2754 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2756 | else |
956d6950 | 2757 | cat > conftest.$ac_ext <<EOF |
01e39005 | 2758 | #line 2759 "configure" |
956d6950 JL |
2759 | #include "confdefs.h" |
2760 | #include <sys/types.h> | |
2761 | #include <signal.h> | |
2762 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2763 | #ifdef HAVE_UNISTD_H | |
2764 | #include <unistd.h> | |
2765 | #endif | |
2766 | int main() { | |
2767 | char *msg = *(sys_siglist + 1); | |
2768 | ; return 0; } | |
2769 | EOF | |
01e39005 | 2770 | if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2771 | rm -rf conftest* |
2772 | ac_cv_decl_sys_siglist=yes | |
2773 | else | |
2774 | echo "configure: failed program was:" >&5 | |
2775 | cat conftest.$ac_ext >&5 | |
2776 | rm -rf conftest* | |
2777 | ac_cv_decl_sys_siglist=no | |
2778 | fi | |
2779 | rm -f conftest* | |
2780 | fi | |
2781 | ||
2782 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2783 | if test $ac_cv_decl_sys_siglist = yes; then | |
2784 | cat >> confdefs.h <<\EOF | |
2785 | #define SYS_SIGLIST_DECLARED 1 | |
2786 | EOF | |
2787 | ||
a63d08e6 | 2788 | fi |
a63d08e6 JL |
2789 | |
2790 | ||
75923b2f MK |
2791 | # mkdir takes a single argument on some systems. |
2792 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
01e39005 | 2793 | echo "configure:2794: checking if mkdir takes one argument" >&5 |
75923b2f MK |
2794 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
2795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2796 | else | |
2797 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 2798 | #line 2799 "configure" |
75923b2f MK |
2799 | #include "confdefs.h" |
2800 | ||
2801 | #include <sys/types.h> | |
2802 | #ifdef HAVE_SYS_STAT_H | |
2803 | # include <sys/stat.h> | |
2804 | #endif | |
2805 | #ifdef HAVE_UNISTD_H | |
2806 | # include <unistd.h> | |
2807 | #endif | |
2808 | #ifdef HAVE_DIRECT_H | |
2809 | # include <direct.h> | |
2810 | #endif | |
2811 | int main() { | |
2812 | mkdir ("foo", 0); | |
2813 | ; return 0; } | |
2814 | EOF | |
01e39005 | 2815 | if { (eval echo configure:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
2816 | rm -rf conftest* |
2817 | gcc_cv_mkdir_takes_one_arg=no | |
2818 | else | |
2819 | echo "configure: failed program was:" >&5 | |
2820 | cat conftest.$ac_ext >&5 | |
2821 | rm -rf conftest* | |
2822 | gcc_cv_mkdir_takes_one_arg=yes | |
2823 | fi | |
2824 | rm -f conftest* | |
2825 | fi | |
2826 | ||
2827 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
2828 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
2829 | cat >> confdefs.h <<\EOF | |
2830 | #define MKDIR_TAKES_ONE_ARG 1 | |
2831 | EOF | |
2832 | ||
2833 | fi | |
2834 | ||
2835 | ||
861bb6c1 JL |
2836 | # File extensions |
2837 | manext='.1' | |
2838 | objext='.o' | |
2839 | ||
2840 | ||
2841 | ||
2842 | build_xm_file= | |
f6cb0e63 | 2843 | build_xm_defines= |
861bb6c1 JL |
2844 | build_install_headers_dir=install-headers-tar |
2845 | build_exeext= | |
2846 | host_xm_file= | |
f6cb0e63 | 2847 | host_xm_defines= |
861bb6c1 JL |
2848 | host_xmake_file= |
2849 | host_truncate_target= | |
6e26218f | 2850 | host_exeext= |
861bb6c1 | 2851 | |
9fc9b82a L |
2852 | # It is relative to $prefix. |
2853 | cpp_install_dir= | |
2854 | ||
861bb6c1 JL |
2855 | # Decode the host machine, then the target machine. |
2856 | # For the host machine, we save the xm_file variable as host_xm_file; | |
2857 | # then we decode the target machine and forget everything else | |
2858 | # that came from the host machine. | |
2859 | for machine in $build $host $target; do | |
2860 | ||
2861 | out_file= | |
2862 | xmake_file= | |
2863 | tmake_file= | |
2864 | extra_headers= | |
2865 | extra_passes= | |
2866 | extra_parts= | |
2867 | extra_programs= | |
2868 | extra_objs= | |
2869 | extra_host_objs= | |
2870 | extra_gcc_objs= | |
f6cb0e63 | 2871 | xm_defines= |
861bb6c1 JL |
2872 | float_format= |
2873 | # Set this to force installation and use of collect2. | |
2874 | use_collect2= | |
2875 | # Set this to override the default target model. | |
2876 | target_cpu_default= | |
861bb6c1 JL |
2877 | # Set this to control how the header file directory is installed. |
2878 | install_headers_dir=install-headers-tar | |
2879 | # Set this to a non-empty list of args to pass to cpp if the target | |
2880 | # wants its .md file passed through cpp. | |
2881 | md_cppflags= | |
2882 | # Set this if directory names should be truncated to 14 characters. | |
2883 | truncate_target= | |
2884 | # Set this if gdb needs a dir command with `dirname $out_file` | |
2885 | gdb_needs_out_file_path= | |
2886 | # Set this if the build machine requires executables to have a | |
2887 | # file name suffix. | |
2888 | exeext= | |
a851212a JW |
2889 | # Set this to control which thread package will be used. |
2890 | thread_file= | |
df6faf79 JW |
2891 | # Reinitialize these from the flag values every loop pass, since some |
2892 | # configure entries modify them. | |
2893 | gas="$gas_flag" | |
2894 | gnu_ld="$gnu_ld_flag" | |
e445171e | 2895 | enable_threads=$enable_threads_flag |
861bb6c1 JL |
2896 | |
2897 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
2898 | # each machine entry. | |
2899 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
2900 | case $machine in | |
2901 | alpha*-*-*) | |
2902 | cpu_type=alpha | |
2903 | ;; | |
2904 | arm*-*-*) | |
2905 | cpu_type=arm | |
2906 | ;; | |
2907 | c*-convex-*) | |
2908 | cpu_type=convex | |
2909 | ;; | |
f6cb0e63 | 2910 | i[34567]86-*-*) |
861bb6c1 JL |
2911 | cpu_type=i386 |
2912 | ;; | |
2913 | hppa*-*-*) | |
2914 | cpu_type=pa | |
2915 | ;; | |
2916 | m68000-*-*) | |
2917 | cpu_type=m68k | |
2918 | ;; | |
2919 | mips*-*-*) | |
2920 | cpu_type=mips | |
2921 | ;; | |
2922 | powerpc*-*-*) | |
2923 | cpu_type=rs6000 | |
2924 | ;; | |
2925 | pyramid-*-*) | |
2926 | cpu_type=pyr | |
2927 | ;; | |
2928 | sparc*-*-*) | |
2929 | cpu_type=sparc | |
2930 | ;; | |
2931 | esac | |
2932 | ||
2933 | tm_file=${cpu_type}/${cpu_type}.h | |
2934 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
2935 | ||
1b4a979b | 2936 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
2937 | case $machine in |
2938 | *-*-linux-gnu*) | |
c7391272 | 2939 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 2940 | ;; |
1b4a979b ME |
2941 | *-*-openbsd*) |
2942 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
2943 | tmake_file="t-libc-ok t-openbsd" |
2944 | # avoid surprises, always provide an xm-openbsd file | |
2945 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
2946 | # don't depend on processor x-fragments as well |
2947 | xmake_file=none | |
1b4a979b ME |
2948 | if test x$enable_threads = xyes; then |
2949 | thread_file='posix' | |
2950 | tmake_file="${tmake_file} t-openbsd-thread" | |
2951 | fi | |
2952 | ;; | |
f6cb0e63 JL |
2953 | esac |
2954 | ||
861bb6c1 JL |
2955 | case $machine in |
2956 | # Support site-specific machine types. | |
2957 | *local*) | |
2958 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
2959 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
2960 | xm_file=${cpu_type}/xm-$rest.h | |
2961 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 2962 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
2963 | then xmake_file=${cpu_type}/x-$rest; \ |
2964 | else true; \ | |
2965 | fi | |
75bffa71 | 2966 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
2967 | then tmake_file=${cpu_type}/t-$rest; \ |
2968 | else true; \ | |
2969 | fi | |
2970 | ;; | |
2971 | 1750a-*-*) | |
2972 | ;; | |
2973 | a29k-*-bsd* | a29k-*-sym1*) | |
2974 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 2975 | xm_defines=USG |
861bb6c1 JL |
2976 | xmake_file=a29k/x-unix |
2977 | use_collect2=yes | |
2978 | ;; | |
2979 | a29k-*-udi | a29k-*-coff) | |
2980 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
2981 | tmake_file=a29k/t-a29kbare | |
2982 | ;; | |
7cc34889 | 2983 | a29k-wrs-vxworks*) |
861bb6c1 JL |
2984 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
2985 | tmake_file=a29k/t-vx29k | |
2986 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 2987 | thread_file='vxworks' |
861bb6c1 JL |
2988 | ;; |
2989 | a29k-*-*) # Default a29k environment. | |
2990 | use_collect2=yes | |
2991 | ;; | |
615c8231 DT |
2992 | alpha-*-interix) |
2993 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
2994 | ||
2995 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 2996 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 2997 | |
8354da48 JL |
2998 | # GAS + IEEE_CONFORMANT |
2999 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3000 | |
3001 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3002 | xmake_file="x-interix alpha/t-pe" | |
3003 | tmake_file="alpha/t-interix" | |
615c8231 DT |
3004 | if test x$enable_threads = xyes ; then |
3005 | thread_file='posix' | |
3006 | fi | |
3007 | if test x$stabs = xyes ; then | |
3008 | tm_file="${tm_file} dbxcoff.h" | |
3009 | fi | |
3010 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3011 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3012 | ;; | |
861bb6c1 | 3013 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3014 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3015 | target_cpu_default="MASK_GAS" |
861bb6c1 JL |
3016 | gas=no |
3017 | xmake_file=none | |
861bb6c1 JL |
3018 | gas=yes gnu_ld=yes |
3019 | ;; | |
2601ebca | 3020 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3021 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3022 | target_cpu_default="MASK_GAS" |
574badbc RH |
3023 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
3024 | extra_parts="crtbegin.o crtend.o" | |
2601ebca | 3025 | xmake_file=none |
2601ebca | 3026 | gas=yes gnu_ld=yes |
75bffa71 | 3027 | if test x$enable_threads = xyes; then |
2601ebca JL |
3028 | thread_file='posix' |
3029 | fi | |
3030 | ;; | |
861bb6c1 | 3031 | alpha*-*-linux-gnu*) |
9d654bba | 3032 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3033 | target_cpu_default="MASK_GAS" |
574badbc RH |
3034 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
3035 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3036 | xmake_file=none |
861bb6c1 | 3037 | gas=yes gnu_ld=yes |
75bffa71 | 3038 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3039 | thread_file='posix' |
3040 | fi | |
3041 | ;; | |
9d654bba | 3042 | alpha*-*-netbsd*) |
66953094 | 3043 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba RH |
3044 | target_cpu_default="MASK_GAS" |
3045 | tmake_file="alpha/t-crtbe" | |
3046 | extra_parts="crtbegin.o crtend.o" | |
3047 | xmake_file=none | |
9d654bba RH |
3048 | gas=yes gnu_ld=yes |
3049 | ;; | |
1b4a979b ME |
3050 | |
3051 | alpha*-*-openbsd*) | |
3052 | # default x-alpha is only appropriate for dec-osf. | |
3053 | target_cpu_default="MASK_GAS" | |
1b4a979b | 3054 | ;; |
9d654bba | 3055 | |
e9a25f70 | 3056 | alpha*-dec-osf*) |
75bffa71 | 3057 | if test x$stabs = xyes |
861bb6c1 JL |
3058 | then |
3059 | tm_file="${tm_file} dbx.h" | |
3060 | fi | |
75bffa71 | 3061 | if test x$gas != xyes |
861bb6c1 JL |
3062 | then |
3063 | extra_passes="mips-tfile mips-tdump" | |
3064 | fi | |
861bb6c1 | 3065 | use_collect2=yes |
861bb6c1 | 3066 | case $machine in |
6ecd4e53 | 3067 | *-*-osf1*) |
b0435cf4 | 3068 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3069 | ;; |
3070 | *-*-osf[23]*) | |
b0435cf4 | 3071 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3072 | ;; |
3073 | *-*-osf4*) | |
b0435cf4 | 3074 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3075 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3076 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3077 | install_headers_dir=install-headers-cpio |
3078 | ;; | |
3079 | esac | |
e9a25f70 JL |
3080 | case $machine in |
3081 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
3082 | target_cpu_default=MASK_SUPPORT_ARCH | |
3083 | ;; | |
3084 | esac | |
861bb6c1 | 3085 | ;; |
9ec36da5 JL |
3086 | alpha*-*-vxworks*) |
3087 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
3088 | if x$gas != xyes | |
3089 | then | |
3090 | extra_passes="mips-tfile mips-tdump" | |
3091 | fi | |
3092 | use_collect2=yes | |
28897609 | 3093 | thread_file='vxworks' |
9ec36da5 | 3094 | ;; |
b0435cf4 | 3095 | alpha*-*-winnt*) |
615c8231 | 3096 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 JL |
3097 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
3098 | tmake_file=t-libc-ok | |
3099 | xmake_file=winnt/x-winnt | |
3100 | extra_host_objs=oldnames.o | |
3101 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3102 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3103 | then |
3104 | extra_programs=ld.exe | |
3105 | fi | |
75bffa71 | 3106 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3107 | thread_file='win32' |
3108 | fi | |
3109 | ;; | |
3110 | alpha*-dec-vms*) | |
3111 | tm_file=alpha/vms.h | |
3112 | xm_file="${xm_file} alpha/xm-vms.h" | |
3113 | tmake_file=alpha/t-vms | |
861bb6c1 | 3114 | ;; |
66ed0683 JL |
3115 | arc-*-elf*) |
3116 | extra_parts="crtinit.o crtfini.o" | |
3117 | ;; | |
861bb6c1 JL |
3118 | arm-*-coff* | armel-*-coff*) |
3119 | tm_file=arm/coff.h | |
3120 | tmake_file=arm/t-bare | |
3121 | ;; | |
2aa0c933 | 3122 | arm-*-vxworks*) |
e14db015 | 3123 | tm_file=arm/vxarm.h |
2aa0c933 | 3124 | tmake_file=arm/t-bare |
28897609 | 3125 | thread_file='vxworks' |
2aa0c933 | 3126 | ;; |
861bb6c1 JL |
3127 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3128 | tm_file=arm/riscix1-1.h | |
3129 | use_collect2=yes | |
3130 | ;; | |
3131 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3132 | if test x$gas = xyes |
861bb6c1 JL |
3133 | then |
3134 | tm_file=arm/rix-gas.h | |
3135 | else | |
3136 | tm_file=arm/riscix.h | |
3137 | fi | |
3138 | xmake_file=arm/x-riscix | |
3139 | tmake_file=arm/t-riscix | |
3140 | use_collect2=yes | |
3141 | ;; | |
3142 | arm-semi-aout | armel-semi-aout) | |
3143 | tm_file=arm/semi.h | |
3144 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3145 | ;; |
3146 | arm-semi-aof | armel-semi-aof) | |
3147 | tm_file=arm/semiaof.h | |
3148 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3149 | ;; |
58600d24 | 3150 | arm*-*-netbsd*) |
861bb6c1 | 3151 | tm_file=arm/netbsd.h |
641d4216 | 3152 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 3153 | tmake_file="t-netbsd arm/t-netbsd" |
861bb6c1 | 3154 | ;; |
b355a481 | 3155 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3156 | cpu_type=arm |
861bb6c1 | 3157 | xmake_file=x-linux |
b355a481 | 3158 | tm_file=arm/linux-aout.h |
861bb6c1 | 3159 | tmake_file=arm/t-linux |
861bb6c1 JL |
3160 | gnu_ld=yes |
3161 | ;; | |
b355a481 NC |
3162 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF |
3163 | xm_file=arm/xm-linux.h | |
3164 | xmake_file=x-linux | |
3165 | case $machine in | |
3166 | armv2*-*-*) | |
3167 | tm_file=arm/linux-elf26.h | |
3168 | ;; | |
3169 | *) | |
3170 | tm_file=arm/linux-elf.h | |
3171 | ;; | |
3172 | esac | |
3173 | tmake_file="t-linux arm/t-linux" | |
3174 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3175 | gnu_ld=yes |
65120c40 SB |
3176 | case x${enable_threads} in |
3177 | x | xyes | xpthreads | xposix) | |
3178 | thread_file='posix' | |
3179 | ;; | |
3180 | esac | |
b355a481 NC |
3181 | ;; |
3182 | arm*-*-aout) | |
861bb6c1 | 3183 | tm_file=arm/aout.h |
e9a25f70 | 3184 | tmake_file=arm/t-bare |
861bb6c1 | 3185 | ;; |
e6592fff | 3186 | arm*-*-ecos-elf) |
54953b66 UD |
3187 | tm_file=arm/ecos-elf.h |
3188 | tmake_file=arm/t-elf | |
3189 | ;; | |
b355a481 NC |
3190 | arm*-*-elf) |
3191 | tm_file=arm/unknown-elf.h | |
3192 | tmake_file=arm/t-arm-elf | |
3193 | ;; | |
cbca921c CM |
3194 | arm*-*-oabi) |
3195 | tm_file=arm/unknown-elf-oabi.h | |
3196 | tmake_file=arm/t-arm-elf | |
3197 | ;; | |
861bb6c1 JL |
3198 | c1-convex-*) # Convex C1 |
3199 | target_cpu_default=1 | |
3200 | use_collect2=yes | |
861bb6c1 JL |
3201 | ;; |
3202 | c2-convex-*) # Convex C2 | |
3203 | target_cpu_default=2 | |
3204 | use_collect2=yes | |
861bb6c1 JL |
3205 | ;; |
3206 | c32-convex-*) | |
3207 | target_cpu_default=4 | |
3208 | use_collect2=yes | |
861bb6c1 JL |
3209 | ;; |
3210 | c34-convex-*) | |
3211 | target_cpu_default=8 | |
3212 | use_collect2=yes | |
861bb6c1 JL |
3213 | ;; |
3214 | c38-convex-*) | |
3215 | target_cpu_default=16 | |
3216 | use_collect2=yes | |
861bb6c1 | 3217 | ;; |
62616695 MH |
3218 | c4x-*) |
3219 | cpu_type=c4x | |
3220 | tmake_file=c4x/t-c4x | |
3221 | ;; | |
861bb6c1 JL |
3222 | clipper-intergraph-clix*) |
3223 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3224 | xm_file=clipper/xm-clix.h | |
3225 | xmake_file=clipper/x-clix | |
3226 | extra_headers=va-clipper.h | |
3227 | extra_parts="crtbegin.o crtend.o" | |
3228 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3229 | ;; |
3230 | dsp16xx-*) | |
3231 | ;; | |
3232 | elxsi-elxsi-*) | |
3233 | use_collect2=yes | |
3234 | ;; | |
3235 | # This hasn't been upgraded to GCC 2. | |
3236 | # fx80-alliant-*) # Alliant FX/80 | |
3237 | # ;; | |
3238 | h8300-*-*) | |
3239 | float_format=i32 | |
3240 | ;; | |
1b4a979b | 3241 | hppa*-*-openbsd*) |
13ee407e | 3242 | target_cpu_default="MASK_PA_11" |
4525d757 | 3243 | tmake_file=pa/t-openbsd |
1b4a979b | 3244 | ;; |
861bb6c1 JL |
3245 | hppa1.1-*-pro*) |
3246 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
3247 | xm_file=pa/xm-papro.h | |
3248 | tmake_file=pa/t-pro | |
3249 | ;; | |
3250 | hppa1.1-*-osf*) | |
13ee407e | 3251 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3252 | tm_file="${tm_file} pa/pa-osf.h" |
3253 | use_collect2=yes | |
861bb6c1 JL |
3254 | ;; |
3255 | hppa1.1-*-rtems*) | |
3256 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
3257 | xm_file=pa/xm-papro.h | |
3258 | tmake_file=pa/t-pro | |
3259 | ;; | |
3260 | hppa1.0-*-osf*) | |
3261 | tm_file="${tm_file} pa/pa-osf.h" | |
3262 | use_collect2=yes | |
861bb6c1 JL |
3263 | ;; |
3264 | hppa1.1-*-bsd*) | |
13ee407e | 3265 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3266 | use_collect2=yes |
861bb6c1 JL |
3267 | ;; |
3268 | hppa1.0-*-bsd*) | |
3269 | use_collect2=yes | |
861bb6c1 JL |
3270 | ;; |
3271 | hppa1.0-*-hpux7*) | |
3272 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
3273 | xm_file=pa/xm-pahpux.h | |
3274 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3275 | if test x$gas = xyes |
861bb6c1 JL |
3276 | then |
3277 | tm_file="${tm_file} pa/gas.h" | |
3278 | fi | |
861bb6c1 JL |
3279 | install_headers_dir=install-headers-cpio |
3280 | use_collect2=yes | |
3281 | ;; | |
3282 | hppa1.0-*-hpux8.0[0-2]*) | |
3283 | tm_file="${tm_file} pa/pa-hpux.h" | |
3284 | xm_file=pa/xm-pahpux.h | |
3285 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3286 | if test x$gas = xyes |
861bb6c1 JL |
3287 | then |
3288 | tm_file="${tm_file} pa/pa-gas.h" | |
3289 | else | |
3290 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3291 | fi | |
861bb6c1 JL |
3292 | install_headers_dir=install-headers-cpio |
3293 | use_collect2=yes | |
3294 | ;; | |
3295 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3296 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3297 | tm_file="${tm_file} pa/pa-hpux.h" |
3298 | xm_file=pa/xm-pahpux.h | |
3299 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3300 | if test x$gas = xyes |
861bb6c1 JL |
3301 | then |
3302 | tm_file="${tm_file} pa/pa-gas.h" | |
3303 | else | |
3304 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3305 | fi | |
861bb6c1 JL |
3306 | install_headers_dir=install-headers-cpio |
3307 | use_collect2=yes | |
3308 | ;; | |
3309 | hppa1.1-*-hpux8*) | |
13ee407e | 3310 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3311 | tm_file="${tm_file} pa/pa-hpux.h" |
3312 | xm_file=pa/xm-pahpux.h | |
3313 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3314 | if test x$gas = xyes |
861bb6c1 JL |
3315 | then |
3316 | tm_file="${tm_file} pa/pa-gas.h" | |
3317 | fi | |
861bb6c1 JL |
3318 | install_headers_dir=install-headers-cpio |
3319 | use_collect2=yes | |
3320 | ;; | |
3321 | hppa1.0-*-hpux8*) | |
3322 | tm_file="${tm_file} pa/pa-hpux.h" | |
3323 | xm_file=pa/xm-pahpux.h | |
3324 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3325 | if test x$gas = xyes |
861bb6c1 JL |
3326 | then |
3327 | tm_file="${tm_file} pa/pa-gas.h" | |
3328 | fi | |
861bb6c1 JL |
3329 | install_headers_dir=install-headers-cpio |
3330 | use_collect2=yes | |
3331 | ;; | |
18cae839 | 3332 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3333 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3334 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" |
3335 | xm_file=pa/xm-pahpux.h | |
3336 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3337 | tmake_file=pa/t-pa |
75bffa71 | 3338 | if test x$gas = xyes |
861bb6c1 JL |
3339 | then |
3340 | tm_file="${tm_file} pa/pa-gas.h" | |
3341 | fi | |
75bffa71 | 3342 | if test x$enable_threads = x; then |
f24af81b TT |
3343 | enable_threads=$have_pthread_h |
3344 | fi | |
75bffa71 | 3345 | if test x$enable_threads = xyes; then |
f24af81b TT |
3346 | thread_file='dce' |
3347 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3348 | fi | |
861bb6c1 JL |
3349 | install_headers_dir=install-headers-cpio |
3350 | use_collect2=yes | |
3351 | ;; | |
3352 | hppa1.0-*-hpux10*) | |
3353 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
3354 | xm_file=pa/xm-pahpux.h | |
3355 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3356 | tmake_file=pa/t-pa |
75bffa71 | 3357 | if test x$gas = xyes |
861bb6c1 JL |
3358 | then |
3359 | tm_file="${tm_file} pa/pa-gas.h" | |
3360 | fi | |
75bffa71 | 3361 | if test x$enable_threads = x; then |
d005a5a4 JL |
3362 | enable_threads=$have_pthread_h |
3363 | fi | |
75bffa71 | 3364 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3365 | thread_file='dce' |
3366 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3367 | fi | |
861bb6c1 JL |
3368 | install_headers_dir=install-headers-cpio |
3369 | use_collect2=yes | |
3370 | ;; | |
18cae839 | 3371 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3372 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3373 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" |
3374 | xm_file=pa/xm-pahpux.h | |
3375 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3376 | if test x$gas = xyes |
861bb6c1 JL |
3377 | then |
3378 | tm_file="${tm_file} pa/pa-gas.h" | |
3379 | fi | |
861bb6c1 JL |
3380 | install_headers_dir=install-headers-cpio |
3381 | use_collect2=yes | |
3382 | ;; | |
3383 | hppa1.0-*-hpux*) | |
3384 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
3385 | xm_file=pa/xm-pahpux.h | |
3386 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3387 | if test x$gas = xyes |
861bb6c1 JL |
3388 | then |
3389 | tm_file="${tm_file} pa/pa-gas.h" | |
3390 | fi | |
861bb6c1 JL |
3391 | install_headers_dir=install-headers-cpio |
3392 | use_collect2=yes | |
3393 | ;; | |
18cae839 | 3394 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3395 | target_cpu_default="MASK_PA_11" |
861bb6c1 JL |
3396 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" |
3397 | xm_file=pa/xm-pahpux.h | |
3398 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3399 | if test x$gas = xyes |
861bb6c1 JL |
3400 | then |
3401 | tm_file="${tm_file} pa/pa-gas.h" | |
3402 | fi | |
861bb6c1 JL |
3403 | install_headers_dir=install-headers-cpio |
3404 | use_collect2=yes | |
3405 | ;; | |
3406 | hppa1.0-*-hiux*) | |
3407 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
3408 | xm_file=pa/xm-pahpux.h | |
3409 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3410 | if test x$gas = xyes |
861bb6c1 JL |
3411 | then |
3412 | tm_file="${tm_file} pa/pa-gas.h" | |
3413 | fi | |
861bb6c1 JL |
3414 | install_headers_dir=install-headers-cpio |
3415 | use_collect2=yes | |
3416 | ;; | |
3417 | hppa*-*-lites*) | |
13ee407e | 3418 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3419 | use_collect2=yes |
861bb6c1 JL |
3420 | ;; |
3421 | i370-*-mvs*) | |
3422 | ;; | |
f6cb0e63 | 3423 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3424 | if test x$gas = xyes |
861bb6c1 JL |
3425 | then |
3426 | tm_file=i386/aix386.h | |
3427 | extra_parts="crtbegin.o crtend.o" | |
3428 | tmake_file=i386/t-crtstuff | |
3429 | else | |
3430 | tm_file=i386/aix386ng.h | |
3431 | use_collect2=yes | |
3432 | fi | |
f6cb0e63 JL |
3433 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3434 | xm_defines=USG | |
861bb6c1 | 3435 | xmake_file=i386/x-aix |
861bb6c1 | 3436 | ;; |
75bffa71 | 3437 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
f6cb0e63 JL |
3438 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
3439 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3440 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3441 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3442 | then |
3443 | tm_file=i386/sysv4gdb.h | |
3444 | else | |
3445 | tm_file=i386/sysv4.h | |
3446 | fi | |
3447 | extra_parts="crtbegin.o crtend.o" | |
3448 | tmake_file=i386/t-crtpic | |
3449 | ;; | |
f6cb0e63 | 3450 | i[34567]86-next-*) |
861bb6c1 JL |
3451 | tm_file=i386/next.h |
3452 | xm_file=i386/xm-next.h | |
3453 | tmake_file=i386/t-next | |
3454 | xmake_file=i386/x-next | |
3455 | extra_objs=nextstep.o | |
750930c1 | 3456 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 3457 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3458 | thread_file='mach' |
3459 | fi | |
3460 | ;; | |
f6cb0e63 | 3461 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 3462 | use_collect2=yes |
75bffa71 | 3463 | if test x$gas = xyes |
861bb6c1 JL |
3464 | then |
3465 | tm_file=i386/seq-gas.h | |
3466 | else | |
3467 | tm_file=i386/sequent.h | |
3468 | fi | |
3469 | ;; | |
f6cb0e63 JL |
3470 | i[34567]86-sequent-ptx1*) |
3471 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3472 | xmake_file=i386/x-sysv3 |
3473 | tm_file=i386/seq-sysv3.h | |
3474 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
3475 | extra_parts="crtbegin.o crtend.o" |
3476 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3477 | ;; |
f6cb0e63 JL |
3478 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
3479 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3480 | xmake_file=i386/x-sysv3 |
3481 | tm_file=i386/seq2-sysv3.h | |
3482 | tmake_file=i386/t-crtstuff | |
3483 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3484 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3485 | ;; |
f6cb0e63 JL |
3486 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
3487 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3488 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
3489 | xmake_file=x-svr4 |
3490 | tm_file=i386/ptx4-i.h | |
3491 | tmake_file=t-svr4 | |
3492 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3493 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
3494 | ;; |
3495 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 3496 | xm_defines=USG |
861bb6c1 JL |
3497 | tm_file=i386/sun.h |
3498 | use_collect2=yes | |
3499 | ;; | |
62db76ee | 3500 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
3501 | tm_file=i386/vxi386.h |
3502 | tmake_file=i386/t-i386bare | |
28897609 | 3503 | thread_file='vxworks' |
9e89df50 | 3504 | ;; |
f6cb0e63 | 3505 | i[34567]86-*-aout*) |
861bb6c1 JL |
3506 | tm_file=i386/i386-aout.h |
3507 | tmake_file=i386/t-i386bare | |
3508 | ;; | |
f6cb0e63 | 3509 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 3510 | tm_file=i386/bsd386.h |
861bb6c1 JL |
3511 | # tmake_file=t-libc-ok |
3512 | ;; | |
f6cb0e63 | 3513 | i[34567]86-*-bsd*) |
861bb6c1 | 3514 | tm_file=i386/386bsd.h |
861bb6c1 JL |
3515 | # tmake_file=t-libc-ok |
3516 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
3517 | # use_collect2=yes | |
3518 | ;; | |
f6cb0e63 | 3519 | i[34567]86-*-freebsdelf*) |
861bb6c1 | 3520 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 3521 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 JL |
3522 | tmake_file=i386/t-freebsd |
3523 | gas=yes | |
3524 | gnu_ld=yes | |
3525 | stabs=yes | |
3526 | ;; | |
f6cb0e63 | 3527 | i[34567]86-*-freebsd*) |
861bb6c1 | 3528 | tm_file=i386/freebsd.h |
861bb6c1 JL |
3529 | tmake_file=i386/t-freebsd |
3530 | ;; | |
1b4a979b | 3531 | i[34567]86-*-netbsd*) |
861bb6c1 | 3532 | tm_file=i386/netbsd.h |
861bb6c1 JL |
3533 | tmake_file=t-netbsd |
3534 | ;; | |
1b4a979b | 3535 | i[34567]86-*-openbsd*) |
1b4a979b ME |
3536 | # we need collect2 until our bug is fixed... |
3537 | use_collect2=yes | |
3538 | ;; | |
f6cb0e63 | 3539 | i[34567]86-*-coff*) |
861bb6c1 JL |
3540 | tm_file=i386/i386-coff.h |
3541 | tmake_file=i386/t-i386bare | |
3542 | ;; | |
f6cb0e63 JL |
3543 | i[34567]86-*-isc*) # 80386 running ISC system |
3544 | xm_file="${xm_file} i386/xm-isc.h" | |
3545 | xm_defines="USG SVR3" | |
861bb6c1 | 3546 | case $machine in |
f6cb0e63 | 3547 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
3548 | xmake_file=i386/x-isc3 |
3549 | ;; | |
3550 | *) | |
3551 | xmake_file=i386/x-isc | |
3552 | ;; | |
3553 | esac | |
75bffa71 | 3554 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
3555 | then |
3556 | tm_file=i386/iscdbx.h | |
3557 | tmake_file=i386/t-svr3dbx | |
3558 | extra_parts="svr3.ifile svr3z.ifile" | |
3559 | else | |
3560 | tm_file=i386/isccoff.h | |
3561 | tmake_file=i386/t-crtstuff | |
3562 | extra_parts="crtbegin.o crtend.o" | |
3563 | fi | |
3564 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3565 | ;; |
f6cb0e63 | 3566 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 3567 | # pre BFD linkers |
861bb6c1 JL |
3568 | xmake_file=x-linux-aout |
3569 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3570 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 3571 | gnu_ld=yes |
af39d8f5 | 3572 | float_format=i386 |
861bb6c1 | 3573 | ;; |
f6cb0e63 | 3574 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
3575 | xmake_file=x-linux-aout |
3576 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3577 | tm_file=i386/linux-aout.h | |
861bb6c1 | 3578 | gnu_ld=yes |
af39d8f5 | 3579 | float_format=i386 |
861bb6c1 | 3580 | ;; |
f6cb0e63 | 3581 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3582 | # GNU/Linux C library 5 |
3583 | xmake_file=x-linux | |
3584 | tm_file=i386/linux.h | |
861bb6c1 JL |
3585 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
3586 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 3587 | gnu_ld=yes |
af39d8f5 | 3588 | float_format=i386 |
75bffa71 | 3589 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3590 | thread_file='single' |
3591 | fi | |
3592 | ;; | |
f6cb0e63 | 3593 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3594 | # aka GNU/Linux C library 6 |
3595 | xmake_file=x-linux | |
861bb6c1 JL |
3596 | tm_file=i386/linux.h |
3597 | tmake_file="t-linux i386/t-crtstuff" | |
3598 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 3599 | gnu_ld=yes |
af39d8f5 | 3600 | float_format=i386 |
75bffa71 | 3601 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3602 | thread_file='posix' |
3603 | fi | |
3604 | ;; | |
f6cb0e63 | 3605 | i[34567]86-*-gnu*) |
cd9e5e7c | 3606 | float_format=i386 |
f6cb0e63 JL |
3607 | ;; |
3608 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 3609 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 3610 | exit 1 |
861bb6c1 | 3611 | ;; |
f6cb0e63 | 3612 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
3613 | xm_file=i386/xm-djgpp.h |
3614 | tm_file=i386/djgpp.h | |
3615 | tmake_file=i386/t-djgpp | |
3616 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
3617 | gnu_ld=yes |
3618 | gas=yes | |
dedcc399 | 3619 | exeext=.exe |
77d787fa | 3620 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
3621 | target_alias=djgpp |
3622 | ;; | |
3623 | esac | |
861bb6c1 | 3624 | ;; |
f6cb0e63 | 3625 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
3626 | tm_file=i386/moss.h |
3627 | tmake_file=t-libc-ok | |
861bb6c1 JL |
3628 | gnu_ld=yes |
3629 | gas=yes | |
3630 | ;; | |
f6cb0e63 | 3631 | i[34567]86-*-lynxos*) |
75bffa71 | 3632 | if test x$gas = xyes |
861bb6c1 JL |
3633 | then |
3634 | tm_file=i386/lynx.h | |
3635 | else | |
3636 | tm_file=i386/lynx-ng.h | |
3637 | fi | |
3638 | xm_file=i386/xm-lynx.h | |
3639 | tmake_file=i386/t-i386bare | |
3640 | xmake_file=x-lynx | |
3641 | ;; | |
f6cb0e63 | 3642 | i[34567]86-*-mach*) |
861bb6c1 JL |
3643 | tm_file=i386/mach.h |
3644 | # tmake_file=t-libc-ok | |
3645 | use_collect2=yes | |
3646 | ;; | |
f6cb0e63 | 3647 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 3648 | if test x$elf = xyes |
861bb6c1 JL |
3649 | then |
3650 | tm_file=i386/osfelf.h | |
3651 | use_collect2= | |
3652 | else | |
3653 | tm_file=i386/osfrose.h | |
3654 | use_collect2=yes | |
3655 | fi | |
f6cb0e63 | 3656 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
3657 | xmake_file=i386/x-osfrose |
3658 | tmake_file=i386/t-osf | |
3659 | extra_objs=halfpic.o | |
3660 | ;; | |
f6cb0e63 | 3661 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
3662 | cpu_type=i386 |
3663 | xm_file=i386/xm-go32.h | |
3664 | tm_file=i386/go32-rtems.h | |
3665 | tmake_file="i386/t-go32 t-rtems" | |
3666 | ;; | |
f5963e61 JL |
3667 | i[34567]86-*-rtemself*) |
3668 | cpu_type=i386 | |
3669 | tm_file=i386/rtemself.h | |
3670 | tmake_file="i386/t-i386bare t-rtems" | |
3671 | ;; | |
f6cb0e63 | 3672 | i[34567]86-*-rtems*) |
861bb6c1 JL |
3673 | cpu_type=i386 |
3674 | tm_file=i386/rtems.h | |
3675 | tmake_file="i386/t-i386bare t-rtems" | |
3676 | ;; | |
f6cb0e63 JL |
3677 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
3678 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
3679 | xm_defines="USG SVR3" | |
861bb6c1 | 3680 | xmake_file=i386/x-sco5 |
f6857708 | 3681 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3682 | tm_file=i386/sco5.h |
75bffa71 | 3683 | if test x$gas = xyes |
44bb0e93 RL |
3684 | then |
3685 | tm_file="i386/sco5gas.h ${tm_file}" | |
3686 | tmake_file=i386/t-sco5gas | |
3687 | else | |
3688 | tmake_file=i386/t-sco5 | |
3689 | fi | |
42902a72 | 3690 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3691 | ;; |
f6cb0e63 JL |
3692 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
3693 | xm_file="${xm_file} i386/xm-sco.h" | |
3694 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 | 3695 | xmake_file=i386/x-sco4 |
861bb6c1 | 3696 | install_headers_dir=install-headers-cpio |
75bffa71 | 3697 | if test x$stabs = xyes |
861bb6c1 JL |
3698 | then |
3699 | tm_file=i386/sco4dbx.h | |
3700 | tmake_file=i386/t-svr3dbx | |
3701 | extra_parts="svr3.ifile svr3z.rfile" | |
3702 | else | |
3703 | tm_file=i386/sco4.h | |
3704 | tmake_file=i386/t-crtstuff | |
3705 | extra_parts="crtbegin.o crtend.o" | |
3706 | fi | |
3707 | truncate_target=yes | |
3708 | ;; | |
f6cb0e63 | 3709 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
3710 | xm_file=i386/xm-sco.h |
3711 | xmake_file=i386/x-sco | |
861bb6c1 | 3712 | install_headers_dir=install-headers-cpio |
75bffa71 | 3713 | if test x$stabs = xyes |
861bb6c1 JL |
3714 | then |
3715 | tm_file=i386/scodbx.h | |
3716 | tmake_file=i386/t-svr3dbx | |
3717 | extra_parts="svr3.ifile svr3z.rfile" | |
3718 | else | |
3719 | tm_file=i386/sco.h | |
3720 | extra_parts="crtbegin.o crtend.o" | |
3721 | tmake_file=i386/t-crtstuff | |
3722 | fi | |
3723 | truncate_target=yes | |
3724 | ;; | |
f6cb0e63 JL |
3725 | i[34567]86-*-solaris2*) |
3726 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3727 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
75bffa71 | 3728 | if test x$stabs = xyes |
861bb6c1 JL |
3729 | then |
3730 | tm_file=i386/sol2dbg.h | |
3731 | else | |
3732 | tm_file=i386/sol2.h | |
3733 | fi | |
3734 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 3735 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 3736 | xmake_file=x-svr4 |
75bffa71 | 3737 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3738 | thread_file='solaris' |
3739 | fi | |
3740 | ;; | |
f6cb0e63 | 3741 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
3742 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
3743 | xm_defines="USG POSIX" | |
87e11b70 | 3744 | tm_file=i386/sysv5.h |
75bffa71 | 3745 | if test x$stabs = xyes |
fe07d4c1 RL |
3746 | then |
3747 | tm_file="${tm_file} dbx.h" | |
3748 | fi | |
3749 | tmake_file=i386/t-crtpic | |
3750 | xmake_file=x-svr4 | |
3751 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
3752 | if test x$enable_threads = xyes; then |
3753 | thread_file='posix' | |
3754 | fi | |
fe07d4c1 | 3755 | ;; |
f6cb0e63 JL |
3756 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
3757 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3758 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3759 | tm_file=i386/sysv4.h |
75bffa71 | 3760 | if test x$stabs = xyes |
861bb6c1 JL |
3761 | then |
3762 | tm_file="${tm_file} dbx.h" | |
3763 | fi | |
3764 | tmake_file=i386/t-crtpic | |
3765 | xmake_file=x-svr4 | |
3766 | extra_parts="crtbegin.o crtend.o" | |
3767 | ;; | |
112674fa RL |
3768 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
3769 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3770 | xm_defines="USG POSIX" | |
3771 | tm_file=i386/udk.h | |
3772 | tmake_file="i386/t-crtpic i386/t-udk" | |
3773 | xmake_file=x-svr4 | |
3774 | extra_parts="crtbegin.o crtend.o" | |
112674fa | 3775 | ;; |
f5963e61 JL |
3776 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
3777 | cpu_type=i386 | |
3778 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
3779 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 3780 | if test x$stabs = xyes |
f5963e61 JL |
3781 | then |
3782 | tm_file=i386/osf1elfgdb.h | |
3783 | else | |
3784 | tm_file=i386/osf1elf.h | |
3785 | fi | |
3786 | tmake_file=i386/t-osf1elf | |
3787 | xmake_file=i386/x-osf1elf | |
3788 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3789 | ;; | |
f6cb0e63 JL |
3790 | i[34567]86-*-sysv*) # Intel 80386's running system V |
3791 | xm_defines="USG SVR3" | |
861bb6c1 | 3792 | xmake_file=i386/x-sysv3 |
75bffa71 | 3793 | if test x$gas = xyes |
861bb6c1 | 3794 | then |
75bffa71 | 3795 | if test x$stabs = xyes |
861bb6c1 JL |
3796 | then |
3797 | tm_file=i386/svr3dbx.h | |
3798 | tmake_file=i386/t-svr3dbx | |
3799 | extra_parts="svr3.ifile svr3z.rfile" | |
3800 | else | |
3801 | tm_file=i386/svr3gas.h | |
3802 | extra_parts="crtbegin.o crtend.o" | |
3803 | tmake_file=i386/t-crtstuff | |
3804 | fi | |
3805 | else | |
3806 | tm_file=i386/sysv3.h | |
3807 | extra_parts="crtbegin.o crtend.o" | |
3808 | tmake_file=i386/t-crtstuff | |
3809 | fi | |
3810 | ;; | |
3811 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 3812 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
3813 | tm_file=i386/vsta.h |
3814 | tmake_file=i386/t-vsta | |
3815 | xmake_file=i386/x-vsta | |
3816 | ;; | |
84530511 | 3817 | i[34567]86-*-win32) |
cae21ae8 GN |
3818 | xm_file="${xm_file} i386/xm-cygwin.h" |
3819 | tmake_file=i386/t-cygwin | |
84530511 | 3820 | tm_file=i386/win32.h |
cae21ae8 | 3821 | xmake_file=i386/x-cygwin |
84530511 | 3822 | extra_objs=winnt.o |
75bffa71 | 3823 | if test x$enable_threads = xyes; then |
84530511 SC |
3824 | thread_file='win32' |
3825 | fi | |
3826 | exeext=.exe | |
3827 | ;; | |
cae21ae8 GN |
3828 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
3829 | xm_file="${xm_file} i386/xm-cygwin.h" | |
3830 | tmake_file=i386/t-cygwin | |
3831 | tm_file=i386/cygwin.h | |
3832 | xmake_file=i386/x-cygwin | |
861bb6c1 | 3833 | extra_objs=winnt.o |
75bffa71 | 3834 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3835 | thread_file='win32' |
3836 | fi | |
3837 | exeext=.exe | |
3838 | ;; | |
f6cb0e63 | 3839 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
3840 | tm_file=i386/mingw32.h |
3841 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 3842 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 3843 | extra_objs=winnt.o |
cae21ae8 | 3844 | xmake_file=i386/x-cygwin |
75bffa71 | 3845 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3846 | thread_file='win32' |
3847 | fi | |
3848 | exeext=.exe | |
f6cb0e63 JL |
3849 | case $machine in |
3850 | *mingw32msv*) | |
3851 | ;; | |
3852 | *minwg32crt* | *mingw32*) | |
3853 | tm_file="${tm_file} i386/crtdll.h" | |
3854 | ;; | |
3855 | esac | |
861bb6c1 | 3856 | ;; |
b27d2bd5 MK |
3857 | i[34567]86-*-uwin*) |
3858 | tm_file=i386/uwin.h | |
3859 | xm_file="${xm_file} i386/xm-uwin.h" | |
3860 | xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" | |
3861 | tmake_file="i386/t-cygwin i386/t-uwin" | |
3862 | extra_objs=winnt.o | |
3863 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
3864 | if test x$enable_threads = xyes; then |
3865 | thread_file='win32' | |
3866 | fi | |
3867 | exeext=.exe | |
3868 | ;; | |
052dbd9e | 3869 | i[34567]86-*-interix*) |
615c8231 | 3870 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 3871 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
052dbd9e MK |
3872 | xm_defines="USG NO_SYS_SIGLIST" |
3873 | tmake_file="i386/t-interix" | |
3874 | extra_objs=interix.o | |
3875 | xmake_file=x-interix | |
615c8231 | 3876 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
3877 | thread_file='posix' |
3878 | fi | |
615c8231 | 3879 | if test x$stabs = xyes ; then |
052dbd9e MK |
3880 | tm_file="${tm_file} dbxcoff.h" |
3881 | fi | |
3882 | ;; | |
f6cb0e63 | 3883 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
3884 | tm_file=i386/win-nt.h |
3885 | out_file=i386/i386.c | |
f6cb0e63 | 3886 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
3887 | xmake_file=winnt/x-winnt |
3888 | tmake_file=i386/t-winnt | |
3889 | extra_host_objs="winnt.o oldnames.o" | |
3890 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3891 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3892 | then |
3893 | extra_programs=ld.exe | |
3894 | fi | |
75bffa71 | 3895 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3896 | thread_file='win32' |
3897 | fi | |
3898 | ;; | |
f6cb0e63 JL |
3899 | i[34567]86-dg-dgux*) |
3900 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3901 | xm_defines="USG POSIX" | |
861bb6c1 JL |
3902 | out_file=i386/dgux.c |
3903 | tm_file=i386/dgux.h | |
3904 | tmake_file=i386/t-dgux | |
3905 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
3906 | install_headers_dir=install-headers-cpio |
3907 | ;; | |
3908 | i860-alliant-*) # Alliant FX/2800 | |
3909 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 3910 | xm_file="${xm_file}" |
861bb6c1 JL |
3911 | xmake_file=i860/x-fx2800 |
3912 | tmake_file=i860/t-fx2800 | |
3913 | extra_parts="crtbegin.o crtend.o" | |
3914 | ;; | |
3915 | i860-*-bsd*) | |
3916 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 3917 | if test x$gas = xyes |
861bb6c1 JL |
3918 | then |
3919 | tm_file="${tm_file} i860/bsd-gas.h" | |
3920 | fi | |
3921 | use_collect2=yes | |
3922 | ;; | |
3923 | i860-*-mach*) | |
3924 | tm_file="${tm_file} i860/mach.h" | |
3925 | tmake_file=t-libc-ok | |
3926 | ;; | |
3927 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
3928 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 3929 | xm_defines="USG SVR3" |
861bb6c1 | 3930 | tmake_file=t-osf |
861bb6c1 JL |
3931 | ;; |
3932 | i860-*-sysv3*) | |
3933 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 3934 | xm_defines="USG SVR3" |
861bb6c1 JL |
3935 | xmake_file=i860/x-sysv3 |
3936 | extra_parts="crtbegin.o crtend.o" | |
3937 | ;; | |
3938 | i860-*-sysv4*) | |
3939 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 3940 | xm_defines="USG SVR3" |
861bb6c1 JL |
3941 | xmake_file=i860/x-sysv4 |
3942 | tmake_file=t-svr4 | |
3943 | extra_parts="crtbegin.o crtend.o" | |
3944 | ;; | |
3945 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
3946 | tm_file="${tm_file} i960/vx960.h" | |
3947 | tmake_file=i960/t-vxworks960 | |
3948 | use_collect2=yes | |
7cc34889 | 3949 | thread_file='vxworks' |
861bb6c1 | 3950 | ;; |
a0372c94 | 3951 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
3952 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
3953 | tmake_file=i960/t-vxworks960 | |
3954 | use_collect2=yes | |
7cc34889 | 3955 | thread_file='vxworks' |
861bb6c1 JL |
3956 | ;; |
3957 | i960-wrs-vxworks*) | |
3958 | tm_file="${tm_file} i960/vx960.h" | |
3959 | tmake_file=i960/t-vxworks960 | |
3960 | use_collect2=yes | |
7cc34889 | 3961 | thread_file='vxworks' |
861bb6c1 JL |
3962 | ;; |
3963 | i960-*-coff*) | |
3964 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
3965 | tmake_file=i960/t-960bare | |
3966 | use_collect2=yes | |
3967 | ;; | |
3968 | i960-*-rtems) | |
3969 | tmake_file="i960/t-960bare t-rtems" | |
3970 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
3971 | use_collect2=yes | |
3972 | ;; | |
3973 | i960-*-*) # Default i960 environment. | |
3974 | use_collect2=yes | |
3975 | ;; | |
3976 | m32r-*-elf*) | |
3977 | extra_parts="crtinit.o crtfini.o" | |
3978 | ;; | |
3979 | m68000-convergent-sysv*) | |
3980 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
3981 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3982 | xm_defines=USG | |
861bb6c1 JL |
3983 | use_collect2=yes |
3984 | extra_headers=math-68881.h | |
3985 | ;; | |
3986 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
3987 | tm_file=m68k/hp2bsd.h | |
3988 | xmake_file=m68k/x-hp2bsd | |
3989 | use_collect2=yes | |
3990 | extra_headers=math-68881.h | |
3991 | ;; | |
3992 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
3993 | xm_file="xm_alloca.h ${xm_file}" |
3994 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 3995 | if test x$gas = xyes |
861bb6c1 JL |
3996 | then |
3997 | xmake_file=m68k/x-hp320g | |
3998 | tm_file=m68k/hp310g.h | |
3999 | else | |
4000 | xmake_file=m68k/x-hp320 | |
4001 | tm_file=m68k/hp310.h | |
4002 | fi | |
861bb6c1 JL |
4003 | install_headers_dir=install-headers-cpio |
4004 | use_collect2=yes | |
4005 | extra_headers=math-68881.h | |
4006 | ;; | |
4007 | m68000-sun-sunos3*) | |
4008 | tm_file=m68k/sun2.h | |
4009 | use_collect2=yes | |
4010 | extra_headers=math-68881.h | |
4011 | ;; | |
4012 | m68000-sun-sunos4*) | |
4013 | tm_file=m68k/sun2o4.h | |
4014 | use_collect2=yes | |
4015 | extra_headers=math-68881.h | |
4016 | ;; | |
4017 | m68000-att-sysv*) | |
f6cb0e63 JL |
4018 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4019 | xm_defines=USG | |
75bffa71 | 4020 | if test x$gas = xyes |
861bb6c1 JL |
4021 | then |
4022 | tm_file=m68k/3b1g.h | |
4023 | else | |
4024 | tm_file=m68k/3b1.h | |
4025 | fi | |
4026 | use_collect2=yes | |
4027 | extra_headers=math-68881.h | |
4028 | ;; | |
4029 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4030 | xm_defines="USG AUX" |
861bb6c1 | 4031 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4032 | install_headers_dir=install-headers-cpio |
4033 | extra_headers=math-68881.h | |
4034 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4035 | tm_file= | |
75bffa71 | 4036 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4037 | then |
4038 | tm_file="${tm_file} m68k/auxgld.h" | |
4039 | else | |
4040 | tm_file="${tm_file} m68k/auxld.h" | |
4041 | fi | |
75bffa71 | 4042 | if test "$gas" = yes |
861bb6c1 JL |
4043 | then |
4044 | tm_file="${tm_file} m68k/auxgas.h" | |
4045 | else | |
4046 | tm_file="${tm_file} m68k/auxas.h" | |
4047 | fi | |
4048 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4049 | float_format=m68k |
861bb6c1 JL |
4050 | ;; |
4051 | m68k-apollo-*) | |
4052 | tm_file=m68k/apollo68.h | |
4053 | xmake_file=m68k/x-apollo68 | |
4054 | use_collect2=yes | |
4055 | extra_headers=math-68881.h | |
0a95276e | 4056 | float_format=m68k |
861bb6c1 JL |
4057 | ;; |
4058 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4059 | if test x$gas = xyes |
861bb6c1 JL |
4060 | then |
4061 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4062 | xm_defines=USG |
861bb6c1 JL |
4063 | else |
4064 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4065 | exit 1 | |
4066 | fi | |
4067 | extra_headers=math-68881.h | |
4068 | ;; | |
4069 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4070 | if test x$gas = xyes |
861bb6c1 | 4071 | then |
75bffa71 | 4072 | if test x$stabs = xyes |
861bb6c1 JL |
4073 | then |
4074 | tm_file=m68k/dpx2cdbx.h | |
4075 | else | |
4076 | tm_file=m68k/dpx2g.h | |
4077 | fi | |
4078 | else | |
4079 | tm_file=m68k/dpx2.h | |
4080 | fi | |
f6cb0e63 JL |
4081 | xm_file="xm-alloca.h ${xm_file}" |
4082 | xm_defines=USG | |
861bb6c1 JL |
4083 | xmake_file=m68k/x-dpx2 |
4084 | use_collect2=yes | |
4085 | extra_headers=math-68881.h | |
4086 | ;; | |
4087 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4088 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4089 | xm_file="xm-alloca.h ${xm_file}" |
4090 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4091 | tmake_file=t-svr4 |
4092 | extra_parts="crtbegin.o crtend.o" | |
4093 | extra_headers=math-68881.h | |
0a95276e | 4094 | float_format=m68k |
861bb6c1 JL |
4095 | ;; |
4096 | m68k-motorola-sysv*) | |
4097 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
4098 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
4099 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 4100 | if test x$gas = xyes |
861bb6c1 JL |
4101 | then |
4102 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4103 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4104 | then |
4105 | tmake_file=m68k/t-mot3300-gald | |
4106 | else | |
4107 | tmake_file=m68k/t-mot3300-gas | |
4108 | use_collect2=yes | |
4109 | fi | |
4110 | else | |
4111 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4112 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4113 | then |
4114 | tmake_file=m68k/t-mot3300-gld | |
4115 | else | |
4116 | tmake_file=m68k/t-mot3300 | |
4117 | use_collect2=yes | |
4118 | fi | |
4119 | fi | |
4120 | gdb_needs_out_file_path=yes | |
4121 | extra_parts="crt0.o mcrt0.o" | |
4122 | extra_headers=math-68881.h | |
0a95276e | 4123 | float_format=m68k |
861bb6c1 JL |
4124 | ;; |
4125 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4126 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4127 | xm_defines="USG SVR3" |
861bb6c1 JL |
4128 | xmake_file=m68k/x-tower |
4129 | extra_parts="crtbegin.o crtend.o" | |
4130 | extra_headers=math-68881.h | |
4131 | ;; | |
4132 | m68k-plexus-sysv*) | |
4133 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4134 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4135 | xm_defines=USG | |
861bb6c1 JL |
4136 | use_collect2=yes |
4137 | extra_headers=math-68881.h | |
4138 | ;; | |
4139 | m68k-tti-*) | |
4140 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4141 | xm_file="xm-alloca.h ${xm_file}" |
4142 | xm_defines=USG | |
861bb6c1 JL |
4143 | extra_headers=math-68881.h |
4144 | ;; | |
4145 | m68k-crds-unos*) | |
f6cb0e63 JL |
4146 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4147 | xm_defines="USG unos" | |
861bb6c1 JL |
4148 | xmake_file=m68k/x-crds |
4149 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4150 | use_collect2=yes |
4151 | extra_headers=math-68881.h | |
4152 | ;; | |
4153 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4154 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4155 | xm_file="xm-alloca.h ${xm_file}" |
4156 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4157 | xmake_file=m68k/x-amix |
4158 | tmake_file=t-svr4 | |
4159 | extra_parts="crtbegin.o crtend.o" | |
4160 | extra_headers=math-68881.h | |
0a95276e | 4161 | float_format=m68k |
861bb6c1 JL |
4162 | ;; |
4163 | m68k-ccur-rtu) | |
4164 | tm_file=m68k/ccur-GAS.h | |
4165 | xmake_file=m68k/x-ccur | |
4166 | extra_headers=math-68881.h | |
4167 | use_collect2=yes | |
0a95276e | 4168 | float_format=m68k |
861bb6c1 JL |
4169 | ;; |
4170 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4171 | tm_file=m68k/hp3bsd44.h | |
4172 | xmake_file=m68k/x-hp3bsd44 | |
4173 | use_collect2=yes | |
4174 | extra_headers=math-68881.h | |
0a95276e | 4175 | float_format=m68k |
861bb6c1 JL |
4176 | ;; |
4177 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4178 | tm_file=m68k/hp3bsd.h | |
4179 | use_collect2=yes | |
4180 | extra_headers=math-68881.h | |
0a95276e | 4181 | float_format=m68k |
861bb6c1 JL |
4182 | ;; |
4183 | m68k-isi-bsd*) | |
75bffa71 | 4184 | if test x$with_fp = xno |
861bb6c1 JL |
4185 | then |
4186 | tm_file=m68k/isi-nfp.h | |
4187 | else | |
4188 | tm_file=m68k/isi.h | |
0a95276e | 4189 | float_format=m68k |
861bb6c1 JL |
4190 | fi |
4191 | use_collect2=yes | |
4192 | extra_headers=math-68881.h | |
4193 | ;; | |
4194 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
4195 | xm_file="xm_alloca.h ${xm_file}" |
4196 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4197 | if test x$gas = xyes |
861bb6c1 JL |
4198 | then |
4199 | xmake_file=m68k/x-hp320g | |
4200 | tm_file=m68k/hp320g.h | |
4201 | else | |
4202 | xmake_file=m68k/x-hp320 | |
4203 | tm_file=m68k/hpux7.h | |
4204 | fi | |
861bb6c1 JL |
4205 | install_headers_dir=install-headers-cpio |
4206 | use_collect2=yes | |
4207 | extra_headers=math-68881.h | |
0a95276e | 4208 | float_format=m68k |
861bb6c1 JL |
4209 | ;; |
4210 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4211 | xm_file="xm_alloca.h ${xm_file}" |
4212 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4213 | if test x$gas = xyes |
861bb6c1 JL |
4214 | then |
4215 | xmake_file=m68k/x-hp320g | |
4216 | tm_file=m68k/hp320g.h | |
4217 | else | |
4218 | xmake_file=m68k/x-hp320 | |
4219 | tm_file=m68k/hp320.h | |
4220 | fi | |
861bb6c1 JL |
4221 | install_headers_dir=install-headers-cpio |
4222 | use_collect2=yes | |
4223 | extra_headers=math-68881.h | |
0a95276e | 4224 | float_format=m68k |
861bb6c1 JL |
4225 | ;; |
4226 | m68k-sun-mach*) | |
4227 | tm_file=m68k/sun3mach.h | |
4228 | use_collect2=yes | |
4229 | extra_headers=math-68881.h | |
0a95276e | 4230 | float_format=m68k |
861bb6c1 JL |
4231 | ;; |
4232 | m68k-sony-newsos3*) | |
75bffa71 | 4233 | if test x$gas = xyes |
861bb6c1 JL |
4234 | then |
4235 | tm_file=m68k/news3gas.h | |
4236 | else | |
4237 | tm_file=m68k/news3.h | |
4238 | fi | |
4239 | use_collect2=yes | |
4240 | extra_headers=math-68881.h | |
0a95276e | 4241 | float_format=m68k |
861bb6c1 JL |
4242 | ;; |
4243 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4244 | if test x$gas = xyes |
861bb6c1 JL |
4245 | then |
4246 | tm_file=m68k/newsgas.h | |
4247 | else | |
4248 | tm_file=m68k/news.h | |
4249 | fi | |
4250 | use_collect2=yes | |
4251 | extra_headers=math-68881.h | |
0a95276e | 4252 | float_format=m68k |
861bb6c1 JL |
4253 | ;; |
4254 | m68k-next-nextstep2*) | |
4255 | tm_file=m68k/next21.h | |
f6cb0e63 | 4256 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4257 | tmake_file=m68k/t-next |
4258 | xmake_file=m68k/x-next | |
4259 | extra_objs=nextstep.o | |
4260 | extra_headers=math-68881.h | |
4261 | use_collect2=yes | |
0a95276e | 4262 | float_format=m68k |
861bb6c1 JL |
4263 | ;; |
4264 | m68k-next-nextstep3*) | |
4265 | tm_file=m68k/next.h | |
f6cb0e63 | 4266 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4267 | tmake_file=m68k/t-next |
4268 | xmake_file=m68k/x-next | |
4269 | extra_objs=nextstep.o | |
750930c1 | 4270 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4271 | extra_headers=math-68881.h |
0a95276e | 4272 | float_format=m68k |
75bffa71 | 4273 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4274 | thread_file='mach' |
4275 | fi | |
4276 | ;; | |
4277 | m68k-sun-sunos3*) | |
75bffa71 | 4278 | if test x$with_fp = xno |
861bb6c1 JL |
4279 | then |
4280 | tm_file=m68k/sun3n3.h | |
4281 | else | |
4282 | tm_file=m68k/sun3o3.h | |
0a95276e | 4283 | float_format=m68k |
861bb6c1 JL |
4284 | fi |
4285 | use_collect2=yes | |
4286 | extra_headers=math-68881.h | |
4287 | ;; | |
4288 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4289 | if test x$with_fp = xno |
861bb6c1 JL |
4290 | then |
4291 | tm_file=m68k/sun3n.h | |
4292 | else | |
4293 | tm_file=m68k/sun3.h | |
0a95276e | 4294 | float_format=m68k |
861bb6c1 | 4295 | fi |
861bb6c1 JL |
4296 | use_collect2=yes |
4297 | extra_headers=math-68881.h | |
4298 | ;; | |
4299 | m68k-wrs-vxworks*) | |
4300 | tm_file=m68k/vxm68k.h | |
4301 | tmake_file=m68k/t-vxworks68 | |
4302 | extra_headers=math-68881.h | |
7cc34889 | 4303 | thread_file='vxworks' |
0a95276e | 4304 | float_format=m68k |
861bb6c1 JL |
4305 | ;; |
4306 | m68k-*-aout*) | |
4307 | tmake_file=m68k/t-m68kbare | |
4308 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4309 | extra_headers=math-68881.h | |
0a95276e | 4310 | float_format=m68k |
861bb6c1 JL |
4311 | ;; |
4312 | m68k-*-coff*) | |
4313 | tmake_file=m68k/t-m68kbare | |
4314 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4315 | extra_headers=math-68881.h | |
0a95276e | 4316 | float_format=m68k |
861bb6c1 | 4317 | ;; |
d1be3be3 JW |
4318 | m68020-*-elf* | m68k-*-elf*) |
4319 | tm_file="m68k/m68020-elf.h libgloss.h" | |
4320 | xm_file=m68k/xm-m68kv.h | |
4321 | tmake_file=m68k/t-m68kelf | |
4322 | header_files=math-68881.h | |
4323 | ;; | |
861bb6c1 | 4324 | m68k-*-lynxos*) |
75bffa71 | 4325 | if test x$gas = xyes |
861bb6c1 JL |
4326 | then |
4327 | tm_file=m68k/lynx.h | |
4328 | else | |
4329 | tm_file=m68k/lynx-ng.h | |
4330 | fi | |
4331 | xm_file=m68k/xm-lynx.h | |
4332 | xmake_file=x-lynx | |
4333 | tmake_file=m68k/t-lynx | |
4334 | extra_headers=math-68881.h | |
0a95276e | 4335 | float_format=m68k |
861bb6c1 | 4336 | ;; |
58600d24 | 4337 | m68k*-*-netbsd*) |
861bb6c1 | 4338 | tm_file=m68k/netbsd.h |
861bb6c1 | 4339 | tmake_file=t-netbsd |
0a95276e | 4340 | float_format=m68k |
861bb6c1 | 4341 | ;; |
1b4a979b ME |
4342 | m68k*-*-openbsd*) |
4343 | float_format=m68k | |
4344 | # we need collect2 until our bug is fixed... | |
4345 | use_collect2=yes | |
4346 | ;; | |
861bb6c1 | 4347 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4348 | xm_file="xm-alloca.h ${xm_file}" |
4349 | xm_defines=USG | |
861bb6c1 JL |
4350 | xmake_file=m68k/x-m68kv |
4351 | extra_parts="crtbegin.o crtend.o" | |
4352 | extra_headers=math-68881.h | |
0a95276e | 4353 | float_format=m68k |
861bb6c1 JL |
4354 | ;; |
4355 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4356 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4357 | xm_file="xm-alloca.h ${xm_file}" |
4358 | xm_defines=USG | |
861bb6c1 JL |
4359 | tmake_file=t-svr4 |
4360 | extra_parts="crtbegin.o crtend.o" | |
4361 | extra_headers=math-68881.h | |
0a95276e | 4362 | float_format=m68k |
861bb6c1 | 4363 | ;; |
956d6950 | 4364 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4365 | # with a.out format |
861bb6c1 JL |
4366 | xmake_file=x-linux |
4367 | tm_file=m68k/linux-aout.h | |
4368 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 4369 | extra_headers=math-68881.h |
0a95276e | 4370 | float_format=m68k |
861bb6c1 JL |
4371 | gnu_ld=yes |
4372 | ;; | |
956d6950 | 4373 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4374 | # with ELF format using the |
4375 | # GNU/Linux C library 5 | |
4376 | xmake_file=x-linux | |
861bb6c1 JL |
4377 | tm_file=m68k/linux.h |
4378 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4379 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4380 | extra_headers=math-68881.h |
0a95276e | 4381 | float_format=m68k |
861bb6c1 JL |
4382 | gnu_ld=yes |
4383 | ;; | |
956d6950 | 4384 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4385 | # with ELF format using glibc 2 |
4386 | # aka the GNU/Linux C library 6. | |
4387 | xmake_file=x-linux | |
861bb6c1 JL |
4388 | tm_file=m68k/linux.h |
4389 | tmake_file="t-linux m68k/t-linux" | |
4390 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4391 | extra_headers=math-68881.h |
0a95276e | 4392 | float_format=m68k |
861bb6c1 | 4393 | gnu_ld=yes |
75bffa71 | 4394 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4395 | thread_file='posix' |
4396 | fi | |
4397 | ;; | |
4398 | m68k-*-psos*) | |
4399 | tmake_file=m68k/t-m68kbare | |
4400 | tm_file=m68k/m68k-psos.h | |
4401 | extra_headers=math-68881.h | |
0a95276e | 4402 | float_format=m68k |
861bb6c1 JL |
4403 | ;; |
4404 | m68k-*-rtems*) | |
4405 | tmake_file="m68k/t-m68kbare t-rtems" | |
4406 | tm_file=m68k/rtems.h | |
4407 | extra_headers=math-68881.h | |
0a95276e | 4408 | float_format=m68k |
861bb6c1 JL |
4409 | ;; |
4410 | ||
4411 | m88k-dg-dgux*) | |
4412 | case $machine in | |
4413 | m88k-dg-dguxbcs*) | |
4414 | tm_file=m88k/dguxbcs.h | |
4415 | tmake_file=m88k/t-dguxbcs | |
4416 | ;; | |
4417 | *) | |
4418 | tm_file=m88k/dgux.h | |
4419 | tmake_file=m88k/t-dgux | |
4420 | ;; | |
4421 | esac | |
4422 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 4423 | xmake_file=m88k/x-dgux |
75bffa71 | 4424 | if test x$gas = xyes |
861bb6c1 JL |
4425 | then |
4426 | tmake_file=m88k/t-dgux-gas | |
4427 | fi | |
861bb6c1 JL |
4428 | ;; |
4429 | m88k-dolphin-sysv3*) | |
4430 | tm_file=m88k/dolph.h | |
4431 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4432 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4433 | xmake_file=m88k/x-dolph |
75bffa71 | 4434 | if test x$gas = xyes |
861bb6c1 JL |
4435 | then |
4436 | tmake_file=m88k/t-m88k-gas | |
4437 | fi | |
4438 | ;; | |
4439 | m88k-tektronix-sysv3) | |
4440 | tm_file=m88k/tekXD88.h | |
4441 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4442 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4443 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 4444 | if test x$gas = xyes |
861bb6c1 JL |
4445 | then |
4446 | tmake_file=m88k/t-m88k-gas | |
4447 | fi | |
4448 | ;; | |
4449 | m88k-*-aout*) | |
4450 | tm_file=m88k/m88k-aout.h | |
4451 | ;; | |
4452 | m88k-*-coff*) | |
4453 | tm_file=m88k/m88k-coff.h | |
4454 | tmake_file=m88k/t-bug | |
4455 | ;; | |
4456 | m88k-*-luna*) | |
4457 | tm_file=m88k/luna.h | |
4458 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 4459 | if test x$gas = xyes |
861bb6c1 JL |
4460 | then |
4461 | tmake_file=m88k/t-luna-gas | |
4462 | else | |
4463 | tmake_file=m88k/t-luna | |
4464 | fi | |
4465 | ;; | |
1b4a979b ME |
4466 | m88k-*-openbsd*) |
4467 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
4468 | ;; | |
861bb6c1 JL |
4469 | m88k-*-sysv3*) |
4470 | tm_file=m88k/sysv3.h | |
4471 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4472 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4473 | xmake_file=m88k/x-sysv3 |
75bffa71 | 4474 | if test x$gas = xyes |
861bb6c1 JL |
4475 | then |
4476 | tmake_file=m88k/t-m88k-gas | |
4477 | fi | |
4478 | ;; | |
4479 | m88k-*-sysv4*) | |
4480 | tm_file=m88k/sysv4.h | |
4481 | extra_parts="crtbegin.o crtend.o" | |
4482 | xmake_file=m88k/x-sysv4 | |
4483 | tmake_file=m88k/t-sysv4 | |
4484 | ;; | |
4485 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
4486 | tm_file=mips/iris6.h | |
4487 | xm_file=mips/xm-iris6.h | |
861bb6c1 JL |
4488 | xmake_file=mips/x-iris6 |
4489 | tmake_file=mips/t-iris6 | |
04069e5c | 4490 | # if test x$enable_threads = xyes; then |
6e148807 | 4491 | # thread_file='irix' |
04069e5c | 4492 | # fi |
861bb6c1 | 4493 | ;; |
98bd9f0f | 4494 | mips-wrs-vxworks) |
d8265d29 | 4495 | tm_file="mips/elf.h libgloss.h mips/vxworks.h" |
98bd9f0f DB |
4496 | tmake_file=mips/t-ecoff |
4497 | gas=yes | |
4498 | gnu_ld=yes | |
4499 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 4500 | thread_file='vxworks' |
98bd9f0f | 4501 | ;; |
861bb6c1 | 4502 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 4503 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
4504 | xm_defines=USG |
4505 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4506 | xmake_file=mips/x-iris |
4507 | tmake_file=mips/t-cross64 | |
4508 | # See comment in mips/iris[56].h files. | |
4509 | use_collect2=yes | |
04069e5c | 4510 | # if test x$enable_threads = xyes; then |
6e148807 | 4511 | # thread_file='irix' |
04069e5c | 4512 | # fi |
861bb6c1 JL |
4513 | ;; |
4514 | mips-sni-sysv4) | |
75bffa71 | 4515 | if test x$gas = xyes |
861bb6c1 | 4516 | then |
75bffa71 | 4517 | if test x$stabs = xyes |
861bb6c1 JL |
4518 | then |
4519 | tm_file=mips/iris5gdb.h | |
4520 | else | |
f6cb0e63 | 4521 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
4522 | fi |
4523 | else | |
4524 | tm_file=mips/sni-svr4.h | |
4525 | fi | |
f6cb0e63 | 4526 | xm_defines=USG |
861bb6c1 JL |
4527 | xmake_file=mips/x-sni-svr4 |
4528 | tmake_file=mips/t-mips-gas | |
75bffa71 | 4529 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4530 | then |
4531 | use_collect2=yes | |
4532 | fi | |
861bb6c1 JL |
4533 | ;; |
4534 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 4535 | if test x$gas = xyes |
861bb6c1 | 4536 | then |
f6cb0e63 | 4537 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 4538 | if test x$stabs = xyes |
861bb6c1 JL |
4539 | then |
4540 | tm_file="${tm_file} dbx.h" | |
4541 | fi | |
4542 | else | |
4543 | tm_file=mips/iris5.h | |
4544 | fi | |
74c55ab0 JW |
4545 | xm_defines=USG |
4546 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4547 | xmake_file=mips/x-iris |
4548 | # mips-tfile doesn't work yet | |
4549 | tmake_file=mips/t-mips-gas | |
4550 | # See comment in mips/iris5.h file. | |
4551 | use_collect2=yes | |
04069e5c | 4552 | # if test x$enable_threads = xyes; then |
6e148807 | 4553 | # thread_file='irix' |
04069e5c | 4554 | # fi |
861bb6c1 JL |
4555 | ;; |
4556 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 4557 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4558 | if test x$stabs = xyes; then |
861bb6c1 JL |
4559 | tm_file="${tm_file} dbx.h" |
4560 | fi | |
f6cb0e63 | 4561 | xm_defines=USG |
861bb6c1 | 4562 | xmake_file=mips/x-iris |
75bffa71 | 4563 | if test x$gas = xyes |
861bb6c1 JL |
4564 | then |
4565 | tmake_file=mips/t-mips-gas | |
4566 | else | |
4567 | extra_passes="mips-tfile mips-tdump" | |
4568 | fi | |
75bffa71 | 4569 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4570 | then |
4571 | use_collect2=yes | |
4572 | fi | |
04069e5c | 4573 | # if test x$enable_threads = xyes; then |
6e148807 | 4574 | # thread_file='irix' |
04069e5c | 4575 | # fi |
861bb6c1 JL |
4576 | ;; |
4577 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 4578 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4579 | if test x$stabs = xyes; then |
861bb6c1 JL |
4580 | tm_file="${tm_file} dbx.h" |
4581 | fi | |
f6cb0e63 | 4582 | xm_defines=USG |
861bb6c1 | 4583 | xmake_file=mips/x-iris |
75bffa71 | 4584 | if test x$gas = xyes |
861bb6c1 JL |
4585 | then |
4586 | tmake_file=mips/t-mips-gas | |
4587 | else | |
4588 | extra_passes="mips-tfile mips-tdump" | |
4589 | fi | |
75bffa71 | 4590 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4591 | then |
4592 | use_collect2=yes | |
4593 | fi | |
04069e5c | 4594 | # if test x$enable_threads = xyes; then |
6e148807 | 4595 | # thread_file='irix' |
04069e5c | 4596 | # fi |
861bb6c1 JL |
4597 | ;; |
4598 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 4599 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 4600 | if test x$stabs = xyes; then |
861bb6c1 JL |
4601 | tm_file="${tm_file} dbx.h" |
4602 | fi | |
f6cb0e63 | 4603 | xm_defines=USG |
861bb6c1 | 4604 | xmake_file=mips/x-iris3 |
75bffa71 | 4605 | if test x$gas = xyes |
861bb6c1 JL |
4606 | then |
4607 | tmake_file=mips/t-mips-gas | |
4608 | else | |
4609 | extra_passes="mips-tfile mips-tdump" | |
4610 | fi | |
75bffa71 | 4611 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4612 | then |
4613 | use_collect2=yes | |
4614 | fi | |
4615 | ;; | |
4616 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 4617 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
4618 | xmake_file=mips/x-osfrose |
4619 | tmake_file=mips/t-osfrose | |
4620 | extra_objs=halfpic.o | |
4621 | use_collect2=yes | |
4622 | ;; | |
4623 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
4624 | tm_file=mips/dec-osf1.h | |
75bffa71 | 4625 | if test x$stabs = xyes; then |
861bb6c1 JL |
4626 | tm_file="${tm_file} dbx.h" |
4627 | fi | |
4628 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 4629 | if test x$gas = xyes |
861bb6c1 JL |
4630 | then |
4631 | tmake_file=mips/t-mips-gas | |
4632 | else | |
4633 | tmake_file=mips/t-ultrix | |
4634 | extra_passes="mips-tfile mips-tdump" | |
4635 | fi | |
75bffa71 | 4636 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4637 | then |
4638 | use_collect2=yes | |
4639 | fi | |
4640 | ;; | |
4641 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
4642 | tm_file=mips/dec-bsd.h | |
75bffa71 | 4643 | if test x$gas = xyes |
861bb6c1 JL |
4644 | then |
4645 | tmake_file=mips/t-mips-gas | |
4646 | else | |
4647 | tmake_file=mips/t-ultrix | |
4648 | extra_passes="mips-tfile mips-tdump" | |
4649 | fi | |
75bffa71 | 4650 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4651 | then |
4652 | use_collect2=yes | |
4653 | fi | |
4654 | ;; | |
58600d24 | 4655 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 4656 | tm_file=mips/netbsd.h |
be1ed94f | 4657 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 4658 | tmake_file=t-netbsd |
861bb6c1 | 4659 | ;; |
54953b66 | 4660 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 RL |
4661 | xmake_file=x-linux |
4662 | xm_file="xm-siglist.h ${xm_file}" | |
54953b66 UD |
4663 | case $machine in |
4664 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
4665 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
4666 | esac | |
18cae839 RL |
4667 | extra_parts="crtbegin.o crtend.o" |
4668 | gnu_ld=yes | |
4669 | gas=yes | |
18cae839 | 4670 | ;; |
1b4a979b ME |
4671 | mips*el-*-openbsd*) # mips little endian |
4672 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4673 | tm_file=mips/openbsd.h | |
1b4a979b ME |
4674 | ;; |
4675 | mips*-*-openbsd*) # mips big endian | |
4676 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4677 | tm_file=mips/openbsd-be.h | |
1b4a979b | 4678 | ;; |
861bb6c1 | 4679 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 4680 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 4681 | if test x$stabs = xyes; then |
861bb6c1 JL |
4682 | tm_file="${tm_file} dbx.h" |
4683 | fi | |
75bffa71 | 4684 | if test x$gas = xyes |
861bb6c1 JL |
4685 | then |
4686 | tmake_file=mips/t-mips-gas | |
4687 | else | |
4688 | extra_passes="mips-tfile mips-tdump" | |
4689 | fi | |
75bffa71 | 4690 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4691 | then |
4692 | use_collect2=yes | |
4693 | fi | |
4694 | xmake_file=mips/x-sony | |
4695 | ;; | |
4696 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
4697 | # That is based on svr4. | |
4698 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 4699 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 4700 | if test x$stabs = xyes; then |
861bb6c1 JL |
4701 | tm_file="${tm_file} dbx.h" |
4702 | fi | |
f6cb0e63 JL |
4703 | xm_file="xm-siglist.h ${xm_file}" |
4704 | xm_defines=USG | |
75bffa71 | 4705 | if test x$gas = xyes |
861bb6c1 JL |
4706 | then |
4707 | tmake_file=mips/t-mips-gas | |
4708 | else | |
4709 | extra_passes="mips-tfile mips-tdump" | |
4710 | fi | |
75bffa71 | 4711 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4712 | then |
4713 | use_collect2=yes | |
4714 | fi | |
4715 | ;; | |
4716 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 4717 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 4718 | if test x$stabs = xyes; then |
861bb6c1 JL |
4719 | tm_file="${tm_file} dbx.h" |
4720 | fi | |
f6cb0e63 JL |
4721 | xm_file="xm-siglist.h ${xm_file}" |
4722 | xm_defines=USG | |
861bb6c1 | 4723 | xmake_file=mips/x-sysv |
75bffa71 | 4724 | if test x$gas = xyes |
861bb6c1 JL |
4725 | then |
4726 | tmake_file=mips/t-mips-gas | |
4727 | extra_parts="crtbegin.o crtend.o" | |
4728 | else | |
4729 | tmake_file=mips/t-mips | |
4730 | extra_passes="mips-tfile mips-tdump" | |
4731 | fi | |
75bffa71 | 4732 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4733 | then |
4734 | use_collect2=yes | |
4735 | fi | |
861bb6c1 JL |
4736 | ;; |
4737 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 4738 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 4739 | if test x$stabs = xyes; then |
861bb6c1 JL |
4740 | tm_file="${tm_file} dbx.h" |
4741 | fi | |
4742 | xmake_file=mips/x-ultrix | |
75bffa71 | 4743 | if test x$gas = xyes |
861bb6c1 JL |
4744 | then |
4745 | tmake_file=mips/t-mips-gas | |
4746 | else | |
4747 | tmake_file=mips/t-ultrix | |
4748 | extra_passes="mips-tfile mips-tdump" | |
4749 | fi | |
75bffa71 | 4750 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4751 | then |
4752 | use_collect2=yes | |
4753 | fi | |
4754 | ;; | |
4755 | mips-*-riscos[56789]bsd*) | |
4756 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 4757 | if test x$stabs = xyes; then |
861bb6c1 JL |
4758 | tm_file="${tm_file} dbx.h" |
4759 | fi | |
75bffa71 | 4760 | if test x$gas = xyes |
861bb6c1 JL |
4761 | then |
4762 | tmake_file=mips/t-bsd-gas | |
4763 | else | |
4764 | tmake_file=mips/t-bsd | |
4765 | extra_passes="mips-tfile mips-tdump" | |
4766 | fi | |
75bffa71 | 4767 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4768 | then |
4769 | use_collect2=yes | |
4770 | fi | |
861bb6c1 JL |
4771 | ;; |
4772 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 4773 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 4774 | if test x$stabs = xyes; then |
861bb6c1 JL |
4775 | tm_file="${tm_file} dbx.h" |
4776 | fi | |
75bffa71 | 4777 | if test x$gas = xyes |
861bb6c1 JL |
4778 | then |
4779 | tmake_file=mips/t-bsd-gas | |
4780 | else | |
4781 | tmake_file=mips/t-bsd | |
4782 | extra_passes="mips-tfile mips-tdump" | |
4783 | fi | |
75bffa71 | 4784 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4785 | then |
4786 | use_collect2=yes | |
4787 | fi | |
861bb6c1 JL |
4788 | ;; |
4789 | mips-*-riscos[56789]sysv4*) | |
4790 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 4791 | if test x$stabs = xyes; then |
861bb6c1 JL |
4792 | tm_file="${tm_file} dbx.h" |
4793 | fi | |
f6cb0e63 | 4794 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 | 4795 | xmake_file=mips/x-sysv |
75bffa71 | 4796 | if test x$gas = xyes |
861bb6c1 JL |
4797 | then |
4798 | tmake_file=mips/t-svr4-gas | |
4799 | else | |
4800 | tmake_file=mips/t-svr4 | |
4801 | extra_passes="mips-tfile mips-tdump" | |
4802 | fi | |
75bffa71 | 4803 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4804 | then |
4805 | use_collect2=yes | |
4806 | fi | |
861bb6c1 JL |
4807 | ;; |
4808 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 4809 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 4810 | if test x$stabs = xyes; then |
861bb6c1 JL |
4811 | tm_file="${tm_file} dbx.h" |
4812 | fi | |
f6cb0e63 | 4813 | xm_defines=USG |
861bb6c1 | 4814 | xmake_file=mips/x-sysv |
75bffa71 | 4815 | if test x$gas = xyes |
861bb6c1 JL |
4816 | then |
4817 | tmake_file=mips/t-svr4-gas | |
4818 | else | |
4819 | tmake_file=mips/t-svr4 | |
4820 | extra_passes="mips-tfile mips-tdump" | |
4821 | fi | |
75bffa71 | 4822 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4823 | then |
4824 | use_collect2=yes | |
4825 | fi | |
861bb6c1 JL |
4826 | ;; |
4827 | mips-*-riscos[56789]sysv*) | |
4828 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 4829 | if test x$stabs = xyes; then |
861bb6c1 JL |
4830 | tm_file="${tm_file} dbx.h" |
4831 | fi | |
f6cb0e63 | 4832 | xm_defines=USG |
861bb6c1 | 4833 | xmake_file=mips/x-sysv |
75bffa71 | 4834 | if test x$gas = xyes |
861bb6c1 JL |
4835 | then |
4836 | tmake_file=mips/t-svr3-gas | |
4837 | else | |
4838 | tmake_file=mips/t-svr3 | |
4839 | extra_passes="mips-tfile mips-tdump" | |
4840 | fi | |
75bffa71 | 4841 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4842 | then |
4843 | use_collect2=yes | |
4844 | fi | |
861bb6c1 JL |
4845 | ;; |
4846 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 4847 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 4848 | if test x$stabs = xyes; then |
861bb6c1 JL |
4849 | tm_file="${tm_file} dbx.h" |
4850 | fi | |
f6cb0e63 | 4851 | xm_defines=USG |
861bb6c1 | 4852 | xmake_file=mips/x-sysv |
75bffa71 | 4853 | if test x$gas = xyes |
861bb6c1 JL |
4854 | then |
4855 | tmake_file=mips/t-svr3-gas | |
4856 | else | |
4857 | tmake_file=mips/t-svr3 | |
4858 | extra_passes="mips-tfile mips-tdump" | |
4859 | fi | |
75bffa71 | 4860 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4861 | then |
4862 | use_collect2=yes | |
4863 | fi | |
861bb6c1 JL |
4864 | ;; |
4865 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4866 | tm_file=mips/mips-5.h | |
75bffa71 | 4867 | if test x$stabs = xyes; then |
861bb6c1 JL |
4868 | tm_file="${tm_file} dbx.h" |
4869 | fi | |
75bffa71 | 4870 | if test x$gas = xyes |
861bb6c1 JL |
4871 | then |
4872 | tmake_file=mips/t-mips-gas | |
4873 | else | |
4874 | extra_passes="mips-tfile mips-tdump" | |
4875 | fi | |
75bffa71 | 4876 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4877 | then |
4878 | use_collect2=yes | |
4879 | fi | |
861bb6c1 JL |
4880 | ;; |
4881 | mips-*-gnu*) | |
4882 | ;; | |
4883 | mipsel-*-ecoff*) | |
4884 | tm_file=mips/ecoffl.h | |
75bffa71 | 4885 | if test x$stabs = xyes; then |
861bb6c1 JL |
4886 | tm_file="${tm_file} dbx.h" |
4887 | fi | |
4888 | tmake_file=mips/t-ecoff | |
4889 | ;; | |
4890 | mips-*-ecoff*) | |
1be12a4a | 4891 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 4892 | if test x$stabs = xyes; then |
861bb6c1 JL |
4893 | tm_file="${tm_file} dbx.h" |
4894 | fi | |
4895 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
4896 | ;; |
4897 | mipsel-*-elf*) | |
4898 | tm_file="mips/elfl.h libgloss.h" | |
d8265d29 | 4899 | tmake_file=mips/t-elf |
861bb6c1 JL |
4900 | ;; |
4901 | mips-*-elf*) | |
d8265d29 CM |
4902 | tm_file="mips/elf.h" |
4903 | tmake_file=mips/t-elf | |
861bb6c1 JL |
4904 | ;; |
4905 | mips64el-*-elf*) | |
d8265d29 CM |
4906 | tm_file="mips/elfl64.h" |
4907 | tmake_file=mips/t-elf | |
861bb6c1 JL |
4908 | ;; |
4909 | mips64orionel-*-elf*) | |
f6cb0e63 | 4910 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
d8265d29 | 4911 | tmake_file=mips/t-elf |
861bb6c1 JL |
4912 | ;; |
4913 | mips64-*-elf*) | |
d8265d29 CM |
4914 | tm_file="mips/elf64.h" |
4915 | tmake_file=mips/t-elf | |
861bb6c1 JL |
4916 | ;; |
4917 | mips64orion-*-elf*) | |
f6cb0e63 | 4918 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
d8265d29 | 4919 | tmake_file=mips/t-elf |
861bb6c1 JL |
4920 | ;; |
4921 | mips64orion-*-rtems*) | |
6e9856ba | 4922 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
861bb6c1 JL |
4923 | tmake_file="mips/t-ecoff t-rtems" |
4924 | ;; | |
e9a25f70 | 4925 | mipstx39el-*-elf*) |
d8265d29 | 4926 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 4927 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
4928 | ;; |
4929 | mipstx39-*-elf*) | |
d8265d29 | 4930 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 4931 | tmake_file=mips/t-r3900 |
e9a25f70 | 4932 | ;; |
861bb6c1 | 4933 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 4934 | if test x$stabs = xyes; then |
861bb6c1 JL |
4935 | tm_file="${tm_file} dbx.h" |
4936 | fi | |
75bffa71 | 4937 | if test x$gas = xyes |
861bb6c1 JL |
4938 | then |
4939 | tmake_file=mips/t-mips-gas | |
4940 | else | |
4941 | extra_passes="mips-tfile mips-tdump" | |
4942 | fi | |
75bffa71 | 4943 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4944 | then |
4945 | use_collect2=yes | |
4946 | fi | |
4947 | ;; | |
4948 | mn10200-*-*) | |
4949 | cpu_type=mn10200 | |
4950 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 4951 | if test x$stabs = xyes |
861bb6c1 JL |
4952 | then |
4953 | tm_file="${tm_file} dbx.h" | |
4954 | fi | |
4955 | use_collect2=no | |
4956 | ;; | |
4957 | mn10300-*-*) | |
4958 | cpu_type=mn10300 | |
4959 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 4960 | if test x$stabs = xyes |
861bb6c1 JL |
4961 | then |
4962 | tm_file="${tm_file} dbx.h" | |
4963 | fi | |
4964 | use_collect2=no | |
4965 | ;; | |
4966 | ns32k-encore-bsd*) | |
4967 | tm_file=ns32k/encore.h | |
4968 | use_collect2=yes | |
4969 | ;; | |
4970 | ns32k-sequent-bsd*) | |
4971 | tm_file=ns32k/sequent.h | |
4972 | use_collect2=yes | |
4973 | ;; | |
4974 | ns32k-tek6100-bsd*) | |
4975 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
4976 | use_collect2=yes |
4977 | ;; | |
4978 | ns32k-tek6200-bsd*) | |
4979 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
4980 | use_collect2=yes |
4981 | ;; | |
4982 | # This has not been updated to GCC 2. | |
4983 | # ns32k-ns-genix*) | |
f6cb0e63 | 4984 | # xm_defines=USG |
861bb6c1 JL |
4985 | # xmake_file=ns32k/x-genix |
4986 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
4987 | # use_collect2=yes |
4988 | # ;; | |
4989 | ns32k-merlin-*) | |
4990 | tm_file=ns32k/merlin.h | |
4991 | use_collect2=yes | |
4992 | ;; | |
4993 | ns32k-pc532-mach*) | |
4994 | tm_file=ns32k/pc532-mach.h | |
4995 | use_collect2=yes | |
4996 | ;; | |
4997 | ns32k-pc532-minix*) | |
4998 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
4999 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5000 | xm_defines=USG | |
861bb6c1 JL |
5001 | use_collect2=yes |
5002 | ;; | |
58600d24 | 5003 | ns32k-*-netbsd*) |
861bb6c1 | 5004 | tm_file=ns32k/netbsd.h |
641d4216 | 5005 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5006 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 JL |
5007 | tmake_file=t-netbsd |
5008 | ;; | |
5009 | pdp11-*-bsd) | |
5010 | tm_file="${tm_file} pdp11/2bsd.h" | |
5011 | ;; | |
5012 | pdp11-*-*) | |
5013 | ;; | |
1b4a979b ME |
5014 | ns32k-*-openbsd*) |
5015 | # Nothing special | |
5016 | ;; | |
861bb6c1 JL |
5017 | pyramid-*-*) |
5018 | cpu_type=pyr | |
5019 | xmake_file=pyr/x-pyr | |
5020 | use_collect2=yes | |
5021 | ;; | |
5022 | romp-*-aos*) | |
5023 | use_collect2=yes | |
5024 | ;; | |
5025 | romp-*-mach*) | |
5026 | xmake_file=romp/x-mach | |
5027 | use_collect2=yes | |
5028 | ;; | |
1b4a979b ME |
5029 | romp-*-openbsd*) |
5030 | # Nothing special | |
5031 | ;; | |
5032 | powerpc-*-openbsd*) | |
5033 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5034 | ;; |
c55dcc7d FF |
5035 | powerpc-*-beos*) |
5036 | cpu_type=rs6000 | |
5037 | tm_file=rs6000/beos.h | |
5038 | xm_file=rs6000/xm-beos.h | |
5039 | tmake_file=rs6000/t-beos | |
5040 | xmake_file=rs6000/x-beos | |
5041 | ;; | |
861bb6c1 JL |
5042 | powerpc-*-sysv* | powerpc-*-elf*) |
5043 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
5044 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5045 | xm_defines="USG POSIX" | |
861bb6c1 | 5046 | extra_headers=ppc-asm.h |
75bffa71 | 5047 | if test x$gas = xyes |
861bb6c1 JL |
5048 | then |
5049 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5050 | else | |
5051 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5052 | fi | |
5053 | xmake_file=rs6000/x-sysv4 | |
5054 | ;; | |
5055 | powerpc-*-eabiaix*) | |
5056 | tm_file=rs6000/eabiaix.h | |
5057 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5058 | extra_headers=ppc-asm.h |
5059 | ;; | |
5060 | powerpc-*-eabisim*) | |
5061 | tm_file=rs6000/eabisim.h | |
5062 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5063 | extra_headers=ppc-asm.h |
5064 | ;; | |
5065 | powerpc-*-eabi*) | |
5066 | tm_file=rs6000/eabi.h | |
75bffa71 | 5067 | if test x$gas = xyes |
861bb6c1 JL |
5068 | then |
5069 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5070 | else | |
5071 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5072 | fi | |
861bb6c1 JL |
5073 | extra_headers=ppc-asm.h |
5074 | ;; | |
5075 | powerpc-*-rtems*) | |
5076 | tm_file=rs6000/rtems.h | |
75bffa71 | 5077 | if test x$gas = xyes |
861bb6c1 JL |
5078 | then |
5079 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5080 | else | |
5081 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5082 | fi | |
861bb6c1 JL |
5083 | extra_headers=ppc-asm.h |
5084 | ;; | |
ce514f57 FS |
5085 | powerpc-*-linux-gnulibc1) |
5086 | tm_file=rs6000/linux.h | |
5087 | xm_file=rs6000/xm-sysv4.h | |
5088 | out_file=rs6000/rs6000.c | |
75bffa71 | 5089 | if test x$gas = xyes |
ce514f57 FS |
5090 | then |
5091 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5092 | else | |
5093 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5094 | fi | |
5095 | xmake_file=x-linux | |
ce514f57 FS |
5096 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5097 | extra_headers=ppc-asm.h | |
75bffa71 | 5098 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5099 | thread_file='posix' |
5100 | fi | |
5101 | ;; | |
861bb6c1 JL |
5102 | powerpc-*-linux-gnu*) |
5103 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
5104 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5105 | xm_defines="USG ${xm_defines}" | |
861bb6c1 | 5106 | out_file=rs6000/rs6000.c |
75bffa71 | 5107 | if test x$gas = xyes |
861bb6c1 JL |
5108 | then |
5109 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5110 | else | |
5111 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5112 | fi | |
5113 | xmake_file=x-linux | |
861bb6c1 JL |
5114 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5115 | extra_headers=ppc-asm.h | |
75bffa71 | 5116 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5117 | thread_file='posix' |
5118 | fi | |
5119 | ;; | |
7cc34889 | 5120 | powerpc-wrs-vxworks*) |
861bb6c1 | 5121 | cpu_type=rs6000 |
f6cb0e63 JL |
5122 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5123 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5124 | tm_file=rs6000/vxppc.h |
5125 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5126 | extra_headers=ppc-asm.h | |
7cc34889 | 5127 | thread_file='vxworks' |
861bb6c1 JL |
5128 | ;; |
5129 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
5130 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
5131 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5132 | xm_defines="USG POSIX" | |
75bffa71 | 5133 | if test x$gas = xyes |
861bb6c1 JL |
5134 | then |
5135 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5136 | else | |
5137 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5138 | fi | |
5139 | xmake_file=rs6000/x-sysv4 | |
5140 | extra_headers=ppc-asm.h | |
5141 | ;; | |
5142 | powerpcle-*-eabisim*) | |
5143 | tm_file=rs6000/eabilesim.h | |
5144 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5145 | extra_headers=ppc-asm.h |
5146 | ;; | |
5147 | powerpcle-*-eabi*) | |
5148 | tm_file=rs6000/eabile.h | |
75bffa71 | 5149 | if test x$gas = xyes |
861bb6c1 JL |
5150 | then |
5151 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5152 | else | |
5153 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5154 | fi | |
861bb6c1 JL |
5155 | extra_headers=ppc-asm.h |
5156 | ;; | |
5157 | powerpcle-*-winnt* ) | |
5158 | tm_file=rs6000/win-nt.h | |
5159 | tmake_file=rs6000/t-winnt | |
5160 | # extra_objs=pe.o | |
75bffa71 | 5161 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5162 | thread_file='win32' |
5163 | fi | |
5164 | extra_headers=ppc-asm.h | |
5165 | ;; | |
cae21ae8 GN |
5166 | powerpcle-*-pe | powerpcle-*-cygwin*) |
5167 | tm_file=rs6000/cygwin.h | |
5168 | xm_file="rs6000/xm-cygwin.h ${xm_file}" | |
861bb6c1 | 5169 | tmake_file=rs6000/t-winnt |
cae21ae8 | 5170 | xmake_file=rs6000/x-cygwin |
861bb6c1 | 5171 | # extra_objs=pe.o |
75bffa71 | 5172 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5173 | thread_file='win32' |
5174 | fi | |
5175 | exeext=.exe | |
5176 | extra_headers=ppc-asm.h | |
5177 | ;; | |
5178 | powerpcle-*-solaris2*) | |
5179 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
5180 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5181 | xm_defines="USG POSIX" | |
75bffa71 | 5182 | if test x$gas = xyes |
861bb6c1 JL |
5183 | then |
5184 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5185 | else | |
5186 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5187 | fi | |
5188 | xmake_file=rs6000/x-sysv4 | |
861bb6c1 JL |
5189 | extra_headers=ppc-asm.h |
5190 | ;; | |
5191 | rs6000-ibm-aix3.[01]*) | |
5192 | tm_file=rs6000/aix31.h | |
5193 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5194 | float_format=none |
861bb6c1 JL |
5195 | use_collect2=yes |
5196 | ;; | |
5197 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5198 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5199 | if test x$host != x$target |
861bb6c1 JL |
5200 | then |
5201 | tmake_file=rs6000/t-xnewas | |
5202 | else | |
5203 | tmake_file=rs6000/t-newas | |
5204 | fi | |
45e24d08 | 5205 | float_format=none |
861bb6c1 JL |
5206 | use_collect2=yes |
5207 | ;; | |
05cea40f | 5208 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
20fced2c | 5209 | if test "$gnu_ld" = yes |
d202e8aa | 5210 | then |
20fced2c MM |
5211 | tm_file=rs6000/aix41-gld.h |
5212 | else | |
5213 | tm_file=rs6000/aix41.h | |
5214 | fi | |
75bffa71 | 5215 | if test x$host != x$target |
861bb6c1 JL |
5216 | then |
5217 | tmake_file=rs6000/t-xnewas | |
5218 | else | |
5219 | tmake_file=rs6000/t-newas | |
5220 | fi | |
0a95276e | 5221 | xmake_file=rs6000/x-aix41 |
45e24d08 | 5222 | float_format=none |
0a95276e JL |
5223 | use_collect2=yes |
5224 | ;; | |
5225 | rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*) | |
5226 | tm_file=rs6000/aix43.h | |
75bffa71 | 5227 | if test x$host != x$target |
0a95276e JL |
5228 | then |
5229 | tmake_file=rs6000/t-xaix43 | |
5230 | else | |
5231 | tmake_file=rs6000/t-aix43 | |
5232 | fi | |
5233 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5234 | float_format=none |
0a95276e JL |
5235 | use_collect2=yes |
5236 | ;; | |
5237 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5238 | tm_file=rs6000/aix43.h | |
75bffa71 | 5239 | if test x$host != x$target |
0a95276e JL |
5240 | then |
5241 | tmake_file=rs6000/t-xaix43 | |
5242 | else | |
5243 | tmake_file=rs6000/t-aix43 | |
5244 | fi | |
5245 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5246 | float_format=none |
861bb6c1 JL |
5247 | use_collect2=yes |
5248 | ;; | |
5249 | rs6000-ibm-aix*) | |
45e24d08 | 5250 | float_format=none |
861bb6c1 JL |
5251 | use_collect2=yes |
5252 | ;; | |
5253 | rs6000-bull-bosx) | |
45e24d08 | 5254 | float_format=none |
861bb6c1 JL |
5255 | use_collect2=yes |
5256 | ;; | |
5257 | rs6000-*-mach*) | |
5258 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5259 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5260 | xmake_file=rs6000/x-mach |
5261 | use_collect2=yes | |
5262 | ;; | |
5263 | rs6000-*-lynxos*) | |
5264 | tm_file=rs6000/lynx.h | |
5265 | xm_file=rs6000/xm-lynx.h | |
5266 | tmake_file=rs6000/t-rs6000 | |
5267 | xmake_file=rs6000/x-lynx | |
5268 | use_collect2=yes | |
5269 | ;; | |
5270 | sh-*-elf*) | |
5271 | tm_file=sh/elf.h | |
5272 | float_format=sh | |
5273 | ;; | |
b098f56d JS |
5274 | sh-*-rtemself*) |
5275 | tmake_file="sh/t-sh t-rtems" | |
5276 | tm_file=sh/rtemself.h | |
5277 | float_format=sh | |
5278 | ;; | |
5d84b57e JS |
5279 | sh-*-rtems*) |
5280 | tmake_file="sh/t-sh t-rtems" | |
5281 | tm_file=sh/rtems.h | |
5282 | float_format=sh | |
5283 | ;; | |
861bb6c1 JL |
5284 | sh-*-*) |
5285 | float_format=sh | |
5286 | ;; | |
5287 | sparc-tti-*) | |
5288 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5289 | xm_file="xm-alloca.h ${xm_file}" |
5290 | xm_defines=USG | |
861bb6c1 JL |
5291 | ;; |
5292 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5293 | tm_file=sparc/vxsparc.h | |
5294 | tmake_file=sparc/t-vxsparc | |
5295 | use_collect2=yes | |
7cc34889 | 5296 | thread_file='vxworks' |
861bb6c1 JL |
5297 | ;; |
5298 | sparc-*-aout*) | |
5299 | tmake_file=sparc/t-sparcbare | |
5300 | tm_file="sparc/aout.h libgloss.h" | |
5301 | ;; | |
5302 | sparc-*-netbsd*) | |
5303 | tm_file=sparc/netbsd.h | |
861bb6c1 JL |
5304 | tmake_file=t-netbsd |
5305 | ;; | |
1b4a979b ME |
5306 | sparc-*-openbsd*) |
5307 | # we need collect2 until our bug is fixed... | |
5308 | use_collect2=yes | |
5309 | ;; | |
861bb6c1 JL |
5310 | sparc-*-bsd*) |
5311 | tm_file=sparc/bsd.h | |
5312 | ;; | |
ac52b80b DE |
5313 | sparc-*-elf*) |
5314 | tm_file=sparc/elf.h | |
5315 | tmake_file=sparc/t-elf | |
5316 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5317 | #float_format=i128 | |
5318 | float_format=i64 | |
5319 | ;; | |
956d6950 | 5320 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5321 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5322 | tm_file=sparc/linux-aout.h |
5323 | xmake_file=x-linux | |
861bb6c1 JL |
5324 | gnu_ld=yes |
5325 | ;; | |
956d6950 | 5326 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5327 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5328 | xmake_file=x-linux |
861bb6c1 | 5329 | tm_file=sparc/linux.h |
3e88bbdb | 5330 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5331 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 JL |
5332 | gnu_ld=yes |
5333 | ;; | |
956d6950 | 5334 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5335 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5336 | xmake_file=x-linux |
861bb6c1 | 5337 | tm_file=sparc/linux.h |
3e88bbdb | 5338 | tmake_file="t-linux" |
861bb6c1 | 5339 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5340 | gnu_ld=yes |
75bffa71 | 5341 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5342 | thread_file='posix' |
5343 | fi | |
5344 | ;; | |
5345 | sparc-*-lynxos*) | |
75bffa71 | 5346 | if test x$gas = xyes |
861bb6c1 JL |
5347 | then |
5348 | tm_file=sparc/lynx.h | |
5349 | else | |
5350 | tm_file=sparc/lynx-ng.h | |
5351 | fi | |
5352 | xm_file=sparc/xm-lynx.h | |
5353 | tmake_file=sparc/t-sunos41 | |
5354 | xmake_file=x-lynx | |
5355 | ;; | |
5356 | sparc-*-rtems*) | |
5357 | tmake_file="sparc/t-sparcbare t-rtems" | |
5358 | tm_file=sparc/rtems.h | |
5359 | ;; | |
d559a4db DM |
5360 | sparcv9-*-solaris2*) |
5361 | tm_file=sparc/sol2-sld-64.h | |
5362 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
5363 | xm_defines="USG POSIX" | |
345a6161 | 5364 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5365 | xmake_file=sparc/x-sysv4 |
5366 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 5367 | float_format=none |
d7496fbb | 5368 | if test x${enable_threads} = x ; then |
d559a4db | 5369 | enable_threads=$have_pthread_h |
d7496fbb | 5370 | if test x${enable_threads} = x ; then |
d559a4db DM |
5371 | enable_threads=$have_thread_h |
5372 | fi | |
5373 | fi | |
d7496fbb DM |
5374 | if test x${enable_threads} = xyes ; then |
5375 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5376 | thread_file='posix' |
5377 | else | |
5378 | thread_file='solaris' | |
5379 | fi | |
5380 | fi | |
5381 | ;; | |
ab87f8c8 JL |
5382 | sparc-hal-solaris2*) |
5383 | xm_file=sparc/xm-sol2.h | |
5384 | tm_file="sparc/sol2.h sparc/hal.h" | |
5385 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5386 | xmake_file=sparc/x-sysv4 | |
5387 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
ab87f8c8 JL |
5388 | broken_install=yes |
5389 | ;; | |
861bb6c1 | 5390 | sparc-*-solaris2*) |
75bffa71 | 5391 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5392 | then |
5393 | tm_file=sparc/sol2.h | |
5394 | else | |
5395 | tm_file=sparc/sol2-sld.h | |
5396 | fi | |
0b3d64d2 JL |
5397 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5398 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5399 | tmake_file=sparc/t-sol2 |
5400 | xmake_file=sparc/x-sysv4 | |
5401 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
5402 | case $machine in |
5403 | *-*-solaris2.[0-4]) | |
027ea2a7 JW |
5404 | float_format=i128 |
5405 | ;; | |
f6cb0e63 | 5406 | *) |
027ea2a7 JW |
5407 | float_format=none |
5408 | ;; | |
f6cb0e63 | 5409 | esac |
75bffa71 | 5410 | if test x${enable_threads} = x; then |
f24af81b | 5411 | enable_threads=$have_pthread_h |
75bffa71 | 5412 | if test x${enable_threads} = x; then |
f24af81b TT |
5413 | enable_threads=$have_thread_h |
5414 | fi | |
5415 | fi | |
75bffa71 ILT |
5416 | if test x${enable_threads} = xyes; then |
5417 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
5418 | thread_file='posix' |
5419 | else | |
861bb6c1 | 5420 | thread_file='solaris' |
f24af81b | 5421 | fi |
861bb6c1 JL |
5422 | fi |
5423 | ;; | |
5424 | sparc-*-sunos4.0*) | |
5425 | tm_file=sparc/sunos4.h | |
5426 | tmake_file=sparc/t-sunos40 | |
5427 | use_collect2=yes | |
5428 | ;; | |
5429 | sparc-*-sunos4*) | |
5430 | tm_file=sparc/sunos4.h | |
5431 | tmake_file=sparc/t-sunos41 | |
5432 | use_collect2=yes | |
75bffa71 | 5433 | if test x$gas = xyes; then |
ca55abae JM |
5434 | tm_file="${tm_file} sparc/sun4gas.h" |
5435 | fi | |
861bb6c1 JL |
5436 | ;; |
5437 | sparc-*-sunos3*) | |
5438 | tm_file=sparc/sun4o3.h | |
5439 | use_collect2=yes | |
5440 | ;; | |
5441 | sparc-*-sysv4*) | |
5442 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
5443 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
5444 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5445 | tmake_file=t-svr4 |
5446 | xmake_file=sparc/x-sysv4 | |
5447 | extra_parts="crtbegin.o crtend.o" | |
5448 | ;; | |
5449 | sparc-*-vxsim*) | |
f5963e61 JL |
5450 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5451 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5452 | tm_file=sparc/vxsim.h |
5453 | tmake_file=sparc/t-vxsparc | |
5454 | xmake_file=sparc/x-sysv4 | |
5455 | ;; | |
5456 | sparclet-*-aout*) | |
5457 | tm_file="sparc/splet.h libgloss.h" | |
5458 | tmake_file=sparc/t-splet | |
5459 | ;; | |
5460 | sparclite-*-coff*) | |
5461 | tm_file="sparc/litecoff.h libgloss.h" | |
5462 | tmake_file=sparc/t-sparclite | |
5463 | ;; | |
5464 | sparclite-*-aout*) | |
5465 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
5466 | tmake_file=sparc/t-sparclite | |
5467 | ;; | |
5468 | sparc64-*-aout*) | |
5469 | tmake_file=sparc/t-sp64 | |
5470 | tm_file=sparc/sp64-aout.h | |
5471 | ;; | |
5472 | sparc64-*-elf*) | |
5473 | tmake_file=sparc/t-sp64 | |
5474 | tm_file=sparc/sp64-elf.h | |
5475 | extra_parts="crtbegin.o crtend.o" | |
5476 | ;; | |
956d6950 | 5477 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 5478 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
5479 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
5480 | tm_file=sparc/linux64.h | |
5481 | xmake_file=x-linux | |
345a6161 | 5482 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af DE |
5483 | gnu_ld=yes |
5484 | ;; | |
861bb6c1 JL |
5485 | # This hasn't been upgraded to GCC 2. |
5486 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
5487 | # tm_file=tahoe/harris.h | |
5488 | # ;; | |
5489 | # tahoe-*-bsd*) # tahoe running BSD | |
5490 | # ;; | |
e98e406f NC |
5491 | thumb-*-coff* | thumbel-*-coff*) |
5492 | tm_file=arm/tcoff.h | |
5493 | out_file=arm/thumb.c | |
5494 | xm_file=arm/xm-thumb.h | |
5495 | md_file=arm/thumb.md | |
5496 | tmake_file=arm/t-thumb | |
5497 | ;; | |
28897609 MS |
5498 | thumb-wrs-vxworks) |
5499 | tm_file=arm/tcoff.h | |
5500 | out_file=arm/thumb.c | |
5501 | xm_file=arm/xm-thumb.h | |
5502 | md_file=arm/thumb.md | |
5503 | tmake_file=arm/t-thumb | |
5504 | thread_file='vxworks' | |
5505 | ;; | |
861bb6c1 JL |
5506 | # This hasn't been upgraded to GCC 2. |
5507 | # tron-*-*) | |
5508 | # cpu_type=gmicro | |
5509 | # use_collect2=yes | |
5510 | # ;; | |
f84271d9 JL |
5511 | v850-*-*) |
5512 | cpu_type=v850 | |
5513 | tm_file="v850/v850.h" | |
5514 | xm_file="v850/xm-v850.h" | |
62db76ee | 5515 | tmake_file=v850/t-v850 |
75bffa71 | 5516 | if test x$stabs = xyes |
f84271d9 JL |
5517 | then |
5518 | tm_file="${tm_file} dbx.h" | |
5519 | fi | |
5520 | use_collect2=no | |
5521 | ;; | |
861bb6c1 JL |
5522 | vax-*-bsd*) # vaxen running BSD |
5523 | use_collect2=yes | |
5524 | float_format=vax | |
5525 | ;; | |
5526 | vax-*-sysv*) # vaxen running system V | |
5527 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 5528 | xm_defines=USG |
861bb6c1 JL |
5529 | float_format=vax |
5530 | ;; | |
5531 | vax-*-netbsd*) | |
5532 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
5533 | tmake_file=t-netbsd |
5534 | float_format=vax | |
5535 | ;; | |
1b4a979b | 5536 | vax-*-openbsd*) |
766518a0 | 5537 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 5538 | ;; |
861bb6c1 JL |
5539 | vax-*-ultrix*) # vaxen running ultrix |
5540 | tm_file="${tm_file} vax/ultrix.h" | |
5541 | use_collect2=yes | |
5542 | float_format=vax | |
5543 | ;; | |
5544 | vax-*-vms*) # vaxen running VMS | |
5545 | xm_file=vax/xm-vms.h | |
5546 | tm_file=vax/vms.h | |
5547 | float_format=vax | |
5548 | ;; | |
5549 | vax-*-*) # vax default entry | |
5550 | float_format=vax | |
5551 | ;; | |
5552 | we32k-att-sysv*) | |
5553 | xm_file="${xm_file} xm-svr3" | |
5554 | use_collect2=yes | |
5555 | ;; | |
5556 | *) | |
5557 | echo "Configuration $machine not supported" 1>&2 | |
5558 | exit 1 | |
5559 | ;; | |
5560 | esac | |
5561 | ||
5562 | case $machine in | |
5563 | *-*-linux-gnu*) | |
f6cb0e63 | 5564 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
5565 | *-*-gnu*) |
5566 | # On the GNU system, the setup is just about the same on | |
5567 | # each different CPU. The specific machines that GNU | |
5568 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 5569 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
5570 | tm_file=${cpu_type}/gnu.h |
5571 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
5572 | # GNU always uses ELF. | |
5573 | elf=yes | |
5574 | # GNU tools are the only tools. | |
5575 | gnu_ld=yes | |
5576 | gas=yes | |
861bb6c1 JL |
5577 | xmake_file=x-linux # These details are the same as Linux. |
5578 | tmake_file=t-gnu # These are not. | |
5579 | ;; | |
5580 | *-*-sysv4*) | |
861bb6c1 | 5581 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
5582 | install_headers_dir=install-headers-cpio |
5583 | ;; | |
5584 | *-*-sysv*) | |
861bb6c1 JL |
5585 | install_headers_dir=install-headers-cpio |
5586 | ;; | |
5587 | esac | |
5588 | ||
f6cb0e63 | 5589 | # Distinguish i[34567]86 |
861bb6c1 JL |
5590 | # Also, do not run mips-tfile on MIPS if using gas. |
5591 | # Process --with-cpu= for PowerPC/rs6000 | |
5592 | target_cpu_default2= | |
5593 | case $machine in | |
5594 | i486-*-*) | |
5595 | target_cpu_default2=1 | |
5596 | ;; | |
5597 | i586-*-*) | |
83f4345f PT |
5598 | case $target_alias in |
5599 | k6-*) | |
5600 | target_cpu_default2=4 | |
5601 | ;; | |
5602 | *) | |
5603 | target_cpu_default2=2 | |
5604 | ;; | |
5605 | esac | |
861bb6c1 | 5606 | ;; |
f6cb0e63 | 5607 | i686-*-* | i786-*-*) |
861bb6c1 JL |
5608 | target_cpu_default2=3 |
5609 | ;; | |
5610 | alpha*-*-*) | |
5611 | case $machine in | |
e9a25f70 | 5612 | alphaev6*) |
44e95b19 | 5613 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX" |
e9a25f70 JL |
5614 | ;; |
5615 | alphapca56*) | |
fbb5ed67 | 5616 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 5617 | ;; |
861bb6c1 | 5618 | alphaev56*) |
e9a25f70 | 5619 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
5620 | ;; |
5621 | alphaev5*) | |
5622 | target_cpu_default2="MASK_CPU_EV5" | |
5623 | ;; | |
5624 | esac | |
5625 | ||
75bffa71 | 5626 | if test x$gas = xyes |
861bb6c1 | 5627 | then |
75bffa71 | 5628 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
5629 | then |
5630 | target_cpu_default2="MASK_GAS" | |
5631 | else | |
5632 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
5633 | fi | |
5634 | fi | |
5635 | ;; | |
956d6950 JL |
5636 | arm*-*-*) |
5637 | case "x$with_cpu" in | |
5638 | x) | |
5639 | # The most generic | |
5640 | target_cpu_default2="TARGET_CPU_generic" | |
5641 | ;; | |
5642 | ||
5643 | # Distinguish cores, and major variants | |
5644 | # arm7m doesn't exist, but D & I don't affect code | |
5645 | xarm23678 | xarm250 | xarm67010 \ | |
5646 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
5647 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 5648 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
5649 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5650 | ;; | |
5651 | ||
5652 | xyes | xno) | |
5653 | echo "--with-cpu must be passed a value" 1>&2 | |
5654 | exit 1 | |
5655 | ;; | |
5656 | ||
5657 | *) | |
75bffa71 | 5658 | if test x$pass2done = xyes |
956d6950 JL |
5659 | then |
5660 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5661 | exit 1 | |
5662 | fi | |
5663 | ;; | |
5664 | esac | |
5665 | ;; | |
5666 | ||
861bb6c1 | 5667 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 5668 | if test x$gas = xyes |
861bb6c1 | 5669 | then |
75bffa71 | 5670 | if test x$gnu_ld = xyes |
861bb6c1 JL |
5671 | then |
5672 | target_cpu_default2=20 | |
5673 | else | |
5674 | target_cpu_default2=16 | |
5675 | fi | |
5676 | fi | |
5677 | ;; | |
5678 | mips*-*-*) | |
75bffa71 | 5679 | if test x$gas = xyes |
861bb6c1 JL |
5680 | then |
5681 | target_cpu_default2=16 | |
5682 | fi | |
5683 | ;; | |
5684 | powerpc*-*-* | rs6000-*-*) | |
5685 | case "x$with_cpu" in | |
5686 | x) | |
5687 | ;; | |
5688 | ||
5689 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
5690 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
5691 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 5692 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 5693 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 5694 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
5695 | ;; |
5696 | ||
5697 | xyes | xno) | |
5698 | echo "--with-cpu must be passed a value" 1>&2 | |
5699 | exit 1 | |
5700 | ;; | |
5701 | ||
5702 | *) | |
75bffa71 | 5703 | if test x$pass2done = xyes |
956d6950 JL |
5704 | then |
5705 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5706 | exit 1 | |
5707 | fi | |
861bb6c1 JL |
5708 | ;; |
5709 | esac | |
5710 | ;; | |
5711 | sparc*-*-*) | |
5712 | case ".$with_cpu" in | |
5713 | .) | |
5714 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
5715 | ;; | |
8947065c | 5716 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
5717 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5718 | ;; | |
5719 | *) | |
75bffa71 | 5720 | if test x$pass2done = xyes |
956d6950 JL |
5721 | then |
5722 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5723 | exit 1 | |
5724 | fi | |
861bb6c1 JL |
5725 | ;; |
5726 | esac | |
5727 | ;; | |
5728 | esac | |
5729 | ||
75bffa71 | 5730 | if test "$target_cpu_default2" != "" |
861bb6c1 | 5731 | then |
75bffa71 | 5732 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
5733 | then |
5734 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
5735 | else | |
5736 | target_cpu_default=$target_cpu_default2 | |
5737 | fi | |
5738 | fi | |
5739 | ||
5740 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
5741 | # Actually, there is now; GNU ld doesn't handle the EH info or |
5742 | # collecting for shared libraries. | |
ca8c3b37 JM |
5743 | #case x$gnu_ld in |
5744 | #xyes) | |
5745 | # use_collect2= | |
5746 | # ;; | |
5747 | #esac | |
861bb6c1 JL |
5748 | |
5749 | # Save data on machine being used to compile GCC in build_xm_file. | |
5750 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 5751 | if test x$pass1done = x |
861bb6c1 | 5752 | then |
75bffa71 | 5753 | if test x"$xm_file" = x |
861bb6c1 JL |
5754 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
5755 | else build_xm_file=$xm_file | |
5756 | fi | |
f6cb0e63 | 5757 | build_xm_defines=$xm_defines |
861bb6c1 JL |
5758 | build_install_headers_dir=$install_headers_dir |
5759 | build_exeext=$exeext | |
5760 | pass1done=yes | |
5761 | else | |
75bffa71 | 5762 | if test x$pass2done = x |
861bb6c1 | 5763 | then |
75bffa71 | 5764 | if test x"$xm_file" = x |
861bb6c1 JL |
5765 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
5766 | else host_xm_file=$xm_file | |
5767 | fi | |
f6cb0e63 | 5768 | host_xm_defines=$xm_defines |
75bffa71 | 5769 | if test x"$xmake_file" = x |
861bb6c1 JL |
5770 | then xmake_file=$cpu_type/x-$cpu_type |
5771 | fi | |
5772 | host_xmake_file="$xmake_file" | |
5773 | host_truncate_target=$truncate_target | |
5774 | host_extra_gcc_objs=$extra_gcc_objs | |
5775 | host_extra_objs=$extra_host_objs | |
6e26218f | 5776 | host_exeext=$exeext |
861bb6c1 JL |
5777 | pass2done=yes |
5778 | fi | |
5779 | fi | |
5780 | done | |
5781 | ||
5782 | extra_objs="${host_extra_objs} ${extra_objs}" | |
5783 | ||
5784 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 5785 | if test x"$tm_file" = x |
861bb6c1 JL |
5786 | then tm_file=$cpu_type/$cpu_type.h; fi |
5787 | ||
75bffa71 | 5788 | if test x$extra_headers = x |
861bb6c1 JL |
5789 | then extra_headers=; fi |
5790 | ||
75bffa71 | 5791 | if test x"$xm_file" = x |
861bb6c1 JL |
5792 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
5793 | ||
75bffa71 | 5794 | if test x$md_file = x |
e98e406f | 5795 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 5796 | |
75bffa71 | 5797 | if test x$out_file = x |
861bb6c1 JL |
5798 | then out_file=$cpu_type/$cpu_type.c; fi |
5799 | ||
75bffa71 | 5800 | if test x"$tmake_file" = x |
861bb6c1 JL |
5801 | then tmake_file=$cpu_type/t-$cpu_type |
5802 | fi | |
5803 | ||
90e6a802 RL |
5804 | if test x"$dwarf2" = xyes |
5805 | then tm_file="tm-dwarf2.h $tm_file" | |
5806 | fi | |
5807 | ||
75bffa71 | 5808 | if test x$float_format = x |
861bb6c1 JL |
5809 | then float_format=i64 |
5810 | fi | |
5811 | ||
027ea2a7 JW |
5812 | if test $float_format = none |
5813 | then float_h_file=Makefile.in | |
5814 | else float_h_file=float-$float_format.h | |
5815 | fi | |
5816 | ||
75bffa71 | 5817 | if test x$enable_haifa = x |
128f7968 RH |
5818 | then |
5819 | case $target in | |
18cae839 | 5820 | alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
5821 | enable_haifa=yes;; |
5822 | esac | |
5823 | fi | |
5824 | ||
9fc9b82a L |
5825 | # Handle cpp installation. |
5826 | if [ x$enable_cpp != x ] | |
5827 | then | |
5828 | tmake_file="$tmake_file t-install-cpp" | |
5829 | fi | |
5830 | ||
861bb6c1 JL |
5831 | # Say what files are being used for the output code and MD file. |
5832 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
5833 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
5834 | ||
5835 | count=a | |
5836 | for f in $tm_file; do | |
5837 | count=${count}x | |
5838 | done | |
75bffa71 | 5839 | if test $count = ax; then |
861bb6c1 JL |
5840 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
5841 | else | |
5842 | echo "Using the following target machine macro files:" | |
5843 | for f in $tm_file; do | |
5844 | echo " $srcdir/config/$f" | |
5845 | done | |
5846 | fi | |
5847 | ||
5848 | count=a | |
5849 | for f in $host_xm_file; do | |
5850 | count=${count}x | |
5851 | done | |
75bffa71 | 5852 | if test $count = ax; then |
861bb6c1 JL |
5853 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
5854 | else | |
5855 | echo "Using the following host machine macro files:" | |
5856 | for f in $host_xm_file; do | |
5857 | echo " $srcdir/config/$f" | |
5858 | done | |
5859 | fi | |
5860 | ||
75bffa71 | 5861 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
5862 | count=a |
5863 | for f in $build_xm_file; do | |
5864 | count=${count}x | |
5865 | done | |
75bffa71 | 5866 | if test $count = ax; then |
861bb6c1 JL |
5867 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
5868 | else | |
5869 | echo "Using the following build machine macro files:" | |
5870 | for f in $build_xm_file; do | |
5871 | echo " $srcdir/config/$f" | |
5872 | done | |
5873 | fi | |
5874 | fi | |
5875 | ||
75bffa71 ILT |
5876 | if test x$thread_file = x; then |
5877 | if test x$target_thread_file != x; then | |
a851212a JW |
5878 | thread_file=$target_thread_file |
5879 | else | |
5880 | thread_file='single' | |
5881 | fi | |
861bb6c1 JL |
5882 | fi |
5883 | ||
5884 | # Set up the header files. | |
5885 | # $links is the list of header files to create. | |
5886 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 5887 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 5888 | # the first file included by config.h. |
f6cb0e63 | 5889 | null_defines= |
64ccbc99 | 5890 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 5891 | |
b7cb92ad | 5892 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
5893 | # as well. If host!=build, we are in error and need to do more |
5894 | # work to find out the build config parameters. | |
75bffa71 | 5895 | if test x$host = x$build |
db81d74a | 5896 | then |
64ccbc99 | 5897 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
5898 | else |
5899 | # We create a subdir, then run autoconf in the subdir. | |
5900 | # To prevent recursion we set host and build for the new | |
5901 | # invocation of configure to the build for this invocation | |
5902 | # of configure. | |
5903 | tempdir=build.$$ | |
5904 | rm -rf $tempdir | |
5905 | mkdir $tempdir | |
5906 | cd $tempdir | |
5907 | case ${srcdir} in | |
5908 | /*) realsrcdir=${srcdir};; | |
5909 | *) realsrcdir=../${srcdir};; | |
5910 | esac | |
fe81dd69 | 5911 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
5912 | --target=$target --host=$build --build=$build |
5913 | ||
5914 | # We just finished tests for the build machine, so rename | |
5915 | # the file auto-build.h in the gcc directory. | |
5916 | mv auto-host.h ../auto-build.h | |
5917 | cd .. | |
5918 | rm -rf $tempdir | |
64ccbc99 | 5919 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
5920 | fi |
5921 | ||
0056a9b5 KG |
5922 | xm_file="gansidecl.h ${xm_file}" |
5923 | tm_file="gansidecl.h ${tm_file}" | |
5924 | ||
861bb6c1 | 5925 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 5926 | links="config.h tm.h tconfig.h hconfig.h" |
f6cb0e63 | 5927 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
861bb6c1 JL |
5928 | |
5929 | rm -f config.bak | |
75bffa71 | 5930 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
5931 | |
5932 | # Make the links. | |
75bffa71 | 5933 | while test -n "$vars" |
861bb6c1 | 5934 | do |
861bb6c1 JL |
5935 | set $vars; var=$1; shift; vars=$* |
5936 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 5937 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
5938 | |
5939 | rm -f $link | |
5940 | ||
5941 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
5942 | # This substitutes for lots of *.h files. | |
75bffa71 | 5943 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 5944 | then |
8fbf199e | 5945 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
5946 | fi |
5947 | ||
5948 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
5949 | case $file in |
5950 | auto-config.h) | |
5951 | ;; | |
5952 | *) | |
5953 | echo '#ifdef IN_GCC' >>$link | |
5954 | ;; | |
5955 | esac | |
861bb6c1 | 5956 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
5957 | case $file in |
5958 | auto-config.h) | |
5959 | ;; | |
5960 | *) | |
5961 | echo '#endif' >>$link | |
5962 | ;; | |
5963 | esac | |
861bb6c1 | 5964 | done |
f6cb0e63 JL |
5965 | |
5966 | for def in `eval echo '$'$define`; do | |
5967 | echo "#ifndef $def" >>$link | |
5968 | echo "#define $def" >>$link | |
5969 | echo "#endif" >>$link | |
5970 | done | |
861bb6c1 JL |
5971 | done |
5972 | ||
5973 | # Truncate the target if necessary | |
75bffa71 | 5974 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
5975 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
5976 | fi | |
5977 | ||
f1943b77 | 5978 | # Get the version trigger filename from the toplevel |
75bffa71 | 5979 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
5980 | gcc_version_trigger=$with_gcc_version_trigger |
5981 | else | |
5982 | gcc_version_trigger=${srcdir}/version.c | |
5983 | fi | |
5984 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 5985 | |
ab87f8c8 JL |
5986 | # Internationalization |
5987 | PACKAGE=gcc | |
5988 | VERSION="$gcc_version" | |
5989 | cat >> confdefs.h <<EOF | |
5990 | #define PACKAGE "$PACKAGE" | |
5991 | EOF | |
861bb6c1 | 5992 | |
ab87f8c8 JL |
5993 | cat >> confdefs.h <<EOF |
5994 | #define VERSION "$VERSION" | |
5995 | EOF | |
861bb6c1 | 5996 | |
861bb6c1 | 5997 | |
ab87f8c8 JL |
5998 | |
5999 | ||
6000 | ALL_LINGUAS="en_UK" | |
6001 | ||
6002 | # NLS support is still experimental, so disable it by default for now. | |
6003 | # Check whether --enable-nls or --disable-nls was given. | |
6004 | if test "${enable_nls+set}" = set; then | |
6005 | enableval="$enable_nls" | |
6006 | : | |
861bb6c1 | 6007 | else |
ab87f8c8 | 6008 | enable_nls=no |
861bb6c1 | 6009 | fi |
861bb6c1 | 6010 | |
861bb6c1 | 6011 | |
861bb6c1 | 6012 | |
ab87f8c8 | 6013 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
01e39005 | 6014 | echo "configure:6015: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6015 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6016 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6018 | else | |
6019 | ac_save_LIBS="$LIBS" | |
6020 | LIBS="-lcposix $LIBS" | |
6021 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6022 | #line 6023 "configure" |
ab87f8c8 JL |
6023 | #include "confdefs.h" |
6024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6025 | /* We use char because int might match the return type of a gcc2 | |
6026 | builtin and then its argument prototype would still apply. */ | |
6027 | char strerror(); | |
861bb6c1 | 6028 | |
ab87f8c8 JL |
6029 | int main() { |
6030 | strerror() | |
6031 | ; return 0; } | |
6032 | EOF | |
01e39005 | 6033 | if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6034 | rm -rf conftest* |
6035 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6036 | else | |
6037 | echo "configure: failed program was:" >&5 | |
6038 | cat conftest.$ac_ext >&5 | |
6039 | rm -rf conftest* | |
6040 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6041 | fi |
ab87f8c8 JL |
6042 | rm -f conftest* |
6043 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6044 | |
861bb6c1 | 6045 | fi |
ab87f8c8 JL |
6046 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6047 | echo "$ac_t""yes" 1>&6 | |
6048 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6049 | else |
ab87f8c8 | 6050 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6051 | fi |
6052 | ||
ab87f8c8 | 6053 | |
2ce3c6c6 | 6054 | |
ab87f8c8 | 6055 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
01e39005 | 6056 | echo "configure:6057: checking for working const" >&5 |
ab87f8c8 JL |
6057 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6059 | else |
ab87f8c8 | 6060 | cat > conftest.$ac_ext <<EOF |
01e39005 | 6061 | #line 6062 "configure" |
ab87f8c8 | 6062 | #include "confdefs.h" |
861bb6c1 | 6063 | |
ab87f8c8 JL |
6064 | int main() { |
6065 | ||
6066 | /* Ultrix mips cc rejects this. */ | |
6067 | typedef int charset[2]; const charset x; | |
6068 | /* SunOS 4.1.1 cc rejects this. */ | |
6069 | char const *const *ccp; | |
6070 | char **p; | |
6071 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6072 | struct point {int x, y;}; | |
6073 | static struct point const zero = {0,0}; | |
6074 | /* AIX XL C 1.02.0.0 rejects this. | |
6075 | It does not let you subtract one const X* pointer from another in an arm | |
6076 | of an if-expression whose if-part is not a constant expression */ | |
6077 | const char *g = "string"; | |
6078 | ccp = &g + (g ? g-g : 0); | |
6079 | /* HPUX 7.0 cc rejects these. */ | |
6080 | ++ccp; | |
6081 | p = (char**) ccp; | |
6082 | ccp = (char const *const *) p; | |
6083 | { /* SCO 3.2v4 cc rejects this. */ | |
6084 | char *t; | |
6085 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6086 | ||
6087 | *t++ = 0; | |
6088 | } | |
6089 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6090 | int x[] = {25, 17}; | |
6091 | const int *foo = &x[0]; | |
6092 | ++foo; | |
6093 | } | |
6094 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6095 | typedef const int *iptr; | |
6096 | iptr p = 0; | |
6097 | ++p; | |
6098 | } | |
6099 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6100 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6101 | struct s { int j; const int *ap[3]; }; | |
6102 | struct s *b; b->j = 5; | |
6103 | } | |
6104 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6105 | const int foo = 10; | |
6106 | } | |
6107 | ||
6108 | ; return 0; } | |
6109 | EOF | |
01e39005 | 6110 | if { (eval echo configure:6111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6111 | rm -rf conftest* |
6112 | ac_cv_c_const=yes | |
861bb6c1 | 6113 | else |
ab87f8c8 JL |
6114 | echo "configure: failed program was:" >&5 |
6115 | cat conftest.$ac_ext >&5 | |
6116 | rm -rf conftest* | |
6117 | ac_cv_c_const=no | |
6118 | fi | |
6119 | rm -f conftest* | |
861bb6c1 JL |
6120 | fi |
6121 | ||
ab87f8c8 JL |
6122 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6123 | if test $ac_cv_c_const = no; then | |
6124 | cat >> confdefs.h <<\EOF | |
6125 | #define const | |
6126 | EOF | |
6127 | ||
861bb6c1 JL |
6128 | fi |
6129 | ||
ab87f8c8 | 6130 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
01e39005 | 6131 | echo "configure:6132: checking for inline" >&5 |
ab87f8c8 JL |
6132 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6134 | else | |
6135 | ac_cv_c_inline=no | |
6136 | for ac_kw in inline __inline__ __inline; do | |
6137 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6138 | #line 6139 "configure" |
ab87f8c8 JL |
6139 | #include "confdefs.h" |
6140 | ||
6141 | int main() { | |
6142 | } $ac_kw foo() { | |
6143 | ; return 0; } | |
6144 | EOF | |
01e39005 | 6145 | if { (eval echo configure:6146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6146 | rm -rf conftest* |
6147 | ac_cv_c_inline=$ac_kw; break | |
6148 | else | |
6149 | echo "configure: failed program was:" >&5 | |
6150 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6151 | fi |
ab87f8c8 JL |
6152 | rm -f conftest* |
6153 | done | |
4b95eb49 | 6154 | |
992d1248 | 6155 | fi |
861bb6c1 | 6156 | |
ab87f8c8 JL |
6157 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6158 | case "$ac_cv_c_inline" in | |
6159 | inline | yes) ;; | |
6160 | no) cat >> confdefs.h <<\EOF | |
6161 | #define inline | |
00ccc16d | 6162 | EOF |
ab87f8c8 JL |
6163 | ;; |
6164 | *) cat >> confdefs.h <<EOF | |
6165 | #define inline $ac_cv_c_inline | |
6166 | EOF | |
6167 | ;; | |
6168 | esac | |
6169 | ||
6170 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
01e39005 | 6171 | echo "configure:6172: checking for off_t" >&5 |
ab87f8c8 JL |
6172 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6174 | else | |
6175 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6176 | #line 6177 "configure" |
ab87f8c8 JL |
6177 | #include "confdefs.h" |
6178 | #include <sys/types.h> | |
6179 | #if STDC_HEADERS | |
6180 | #include <stdlib.h> | |
6181 | #include <stddef.h> | |
6182 | #endif | |
6183 | EOF | |
6184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6185 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6186 | rm -rf conftest* |
6187 | ac_cv_type_off_t=yes | |
6188 | else | |
6189 | rm -rf conftest* | |
6190 | ac_cv_type_off_t=no | |
6191 | fi | |
6192 | rm -f conftest* | |
6193 | ||
6194 | fi | |
6195 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6196 | if test $ac_cv_type_off_t = no; then | |
6197 | cat >> confdefs.h <<\EOF | |
6198 | #define off_t long | |
6199 | EOF | |
6200 | ||
6201 | fi | |
6202 | ||
6203 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
01e39005 | 6204 | echo "configure:6205: checking for size_t" >&5 |
ab87f8c8 JL |
6205 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6207 | else | |
6208 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6209 | #line 6210 "configure" |
ab87f8c8 JL |
6210 | #include "confdefs.h" |
6211 | #include <sys/types.h> | |
6212 | #if STDC_HEADERS | |
6213 | #include <stdlib.h> | |
6214 | #include <stddef.h> | |
6215 | #endif | |
6216 | EOF | |
6217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6218 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6219 | rm -rf conftest* |
6220 | ac_cv_type_size_t=yes | |
6221 | else | |
6222 | rm -rf conftest* | |
6223 | ac_cv_type_size_t=no | |
6224 | fi | |
6225 | rm -f conftest* | |
6226 | ||
6227 | fi | |
6228 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6229 | if test $ac_cv_type_size_t = no; then | |
6230 | cat >> confdefs.h <<\EOF | |
6231 | #define size_t unsigned | |
6232 | EOF | |
6233 | ||
6234 | fi | |
6235 | ||
6236 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6237 | # for constant arguments. Useless! | |
6238 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
01e39005 | 6239 | echo "configure:6240: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6240 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6242 | else | |
6243 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6244 | #line 6245 "configure" |
ab87f8c8 JL |
6245 | #include "confdefs.h" |
6246 | #include <alloca.h> | |
6247 | int main() { | |
6248 | char *p = alloca(2 * sizeof(int)); | |
6249 | ; return 0; } | |
6250 | EOF | |
01e39005 | 6251 | if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6252 | rm -rf conftest* |
6253 | ac_cv_header_alloca_h=yes | |
6254 | else | |
6255 | echo "configure: failed program was:" >&5 | |
6256 | cat conftest.$ac_ext >&5 | |
6257 | rm -rf conftest* | |
6258 | ac_cv_header_alloca_h=no | |
6259 | fi | |
6260 | rm -f conftest* | |
6261 | fi | |
6262 | ||
6263 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6264 | if test $ac_cv_header_alloca_h = yes; then | |
6265 | cat >> confdefs.h <<\EOF | |
6266 | #define HAVE_ALLOCA_H 1 | |
6267 | EOF | |
6268 | ||
6269 | fi | |
6270 | ||
6271 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
01e39005 | 6272 | echo "configure:6273: checking for alloca" >&5 |
ab87f8c8 JL |
6273 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6275 | else | |
6276 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6277 | #line 6278 "configure" |
ab87f8c8 JL |
6278 | #include "confdefs.h" |
6279 | ||
6280 | #ifdef __GNUC__ | |
6281 | # define alloca __builtin_alloca | |
6282 | #else | |
cd9e5e7c MK |
6283 | # ifdef _MSC_VER |
6284 | # include <malloc.h> | |
6285 | # define alloca _alloca | |
ab87f8c8 | 6286 | # else |
cd9e5e7c MK |
6287 | # if HAVE_ALLOCA_H |
6288 | # include <alloca.h> | |
3723cad9 | 6289 | # else |
cd9e5e7c MK |
6290 | # ifdef _AIX |
6291 | #pragma alloca | |
6292 | # else | |
6293 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6294 | char *alloca (); |
cd9e5e7c | 6295 | # endif |
ab87f8c8 JL |
6296 | # endif |
6297 | # endif | |
6298 | # endif | |
6299 | #endif | |
6300 | ||
6301 | int main() { | |
6302 | char *p = (char *) alloca(1); | |
6303 | ; return 0; } | |
6304 | EOF | |
01e39005 | 6305 | if { (eval echo configure:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6306 | rm -rf conftest* |
6307 | ac_cv_func_alloca_works=yes | |
6308 | else | |
6309 | echo "configure: failed program was:" >&5 | |
6310 | cat conftest.$ac_ext >&5 | |
6311 | rm -rf conftest* | |
6312 | ac_cv_func_alloca_works=no | |
6313 | fi | |
6314 | rm -f conftest* | |
6315 | fi | |
6316 | ||
6317 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
6318 | if test $ac_cv_func_alloca_works = yes; then | |
6319 | cat >> confdefs.h <<\EOF | |
6320 | #define HAVE_ALLOCA 1 | |
6321 | EOF | |
6322 | ||
6323 | fi | |
6324 | ||
6325 | if test $ac_cv_func_alloca_works = no; then | |
6326 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6327 | # that cause trouble. Some versions do not even contain alloca or | |
6328 | # contain a buggy version. If you still want to use their alloca, | |
6329 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
cd9e5e7c | 6330 | ALLOCA=alloca.${ac_objext} |
ab87f8c8 JL |
6331 | cat >> confdefs.h <<\EOF |
6332 | #define C_ALLOCA 1 | |
6333 | EOF | |
6334 | ||
6335 | ||
6336 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
01e39005 | 6337 | echo "configure:6338: checking whether alloca needs Cray hooks" >&5 |
ab87f8c8 JL |
6338 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
6339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6340 | else | |
6341 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6342 | #line 6343 "configure" |
ab87f8c8 JL |
6343 | #include "confdefs.h" |
6344 | #if defined(CRAY) && ! defined(CRAY2) | |
6345 | webecray | |
6346 | #else | |
6347 | wenotbecray | |
6348 | #endif | |
6349 | ||
6350 | EOF | |
6351 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6352 | egrep "webecray" >/dev/null 2>&1; then | |
6353 | rm -rf conftest* | |
6354 | ac_cv_os_cray=yes | |
6355 | else | |
6356 | rm -rf conftest* | |
6357 | ac_cv_os_cray=no | |
6358 | fi | |
6359 | rm -f conftest* | |
6360 | ||
6361 | fi | |
6362 | ||
6363 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
6364 | if test $ac_cv_os_cray = yes; then | |
6365 | for ac_func in _getb67 GETB67 getb67; do | |
6366 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01e39005 | 6367 | echo "configure:6368: checking for $ac_func" >&5 |
ab87f8c8 JL |
6368 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6370 | else | |
6371 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6372 | #line 6373 "configure" |
ab87f8c8 JL |
6373 | #include "confdefs.h" |
6374 | /* System header to define __stub macros and hopefully few prototypes, | |
6375 | which can conflict with char $ac_func(); below. */ | |
6376 | #include <assert.h> | |
6377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6378 | /* We use char because int might match the return type of a gcc2 | |
6379 | builtin and then its argument prototype would still apply. */ | |
6380 | char $ac_func(); | |
01e39005 | 6381 | char (*f)(); |
ab87f8c8 JL |
6382 | |
6383 | int main() { | |
6384 | ||
6385 | /* The GNU C library defines this for functions which it implements | |
6386 | to always fail with ENOSYS. Some functions are actually named | |
6387 | something starting with __ and the normal name is an alias. */ | |
6388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6389 | choke me | |
6390 | #else | |
01e39005 | 6391 | f = $ac_func; |
ab87f8c8 JL |
6392 | #endif |
6393 | ||
6394 | ; return 0; } | |
6395 | EOF | |
01e39005 | 6396 | if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6397 | rm -rf conftest* |
6398 | eval "ac_cv_func_$ac_func=yes" | |
6399 | else | |
6400 | echo "configure: failed program was:" >&5 | |
6401 | cat conftest.$ac_ext >&5 | |
6402 | rm -rf conftest* | |
6403 | eval "ac_cv_func_$ac_func=no" | |
6404 | fi | |
6405 | rm -f conftest* | |
6406 | fi | |
6407 | ||
6408 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6409 | echo "$ac_t""yes" 1>&6 | |
6410 | cat >> confdefs.h <<EOF | |
6411 | #define CRAY_STACKSEG_END $ac_func | |
6412 | EOF | |
6413 | ||
6414 | break | |
6415 | else | |
6416 | echo "$ac_t""no" 1>&6 | |
6417 | fi | |
6418 | ||
6419 | done | |
6420 | fi | |
6421 | ||
6422 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
01e39005 | 6423 | echo "configure:6424: checking stack direction for C alloca" >&5 |
ab87f8c8 JL |
6424 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
6425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6426 | else | |
6427 | if test "$cross_compiling" = yes; then | |
6428 | ac_cv_c_stack_direction=0 | |
6429 | else | |
6430 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6431 | #line 6432 "configure" |
ab87f8c8 JL |
6432 | #include "confdefs.h" |
6433 | find_stack_direction () | |
6434 | { | |
6435 | static char *addr = 0; | |
6436 | auto char dummy; | |
6437 | if (addr == 0) | |
6438 | { | |
6439 | addr = &dummy; | |
6440 | return find_stack_direction (); | |
6441 | } | |
6442 | else | |
6443 | return (&dummy > addr) ? 1 : -1; | |
6444 | } | |
6445 | main () | |
6446 | { | |
6447 | exit (find_stack_direction() < 0); | |
6448 | } | |
6449 | EOF | |
01e39005 | 6450 | if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6451 | then |
6452 | ac_cv_c_stack_direction=1 | |
6453 | else | |
6454 | echo "configure: failed program was:" >&5 | |
6455 | cat conftest.$ac_ext >&5 | |
6456 | rm -fr conftest* | |
6457 | ac_cv_c_stack_direction=-1 | |
6458 | fi | |
6459 | rm -fr conftest* | |
6460 | fi | |
6461 | ||
6462 | fi | |
6463 | ||
6464 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
6465 | cat >> confdefs.h <<EOF | |
6466 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6467 | EOF | |
6468 | ||
6469 | fi | |
6470 | ||
6471 | for ac_hdr in unistd.h | |
6472 | do | |
6473 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6474 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
01e39005 | 6475 | echo "configure:6476: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6476 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6478 | else | |
6479 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6480 | #line 6481 "configure" |
ab87f8c8 JL |
6481 | #include "confdefs.h" |
6482 | #include <$ac_hdr> | |
6483 | EOF | |
6484 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01e39005 | 6485 | { (eval echo configure:6486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6486 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6487 | if test -z "$ac_err"; then |
6488 | rm -rf conftest* | |
6489 | eval "ac_cv_header_$ac_safe=yes" | |
6490 | else | |
6491 | echo "$ac_err" >&5 | |
6492 | echo "configure: failed program was:" >&5 | |
6493 | cat conftest.$ac_ext >&5 | |
6494 | rm -rf conftest* | |
6495 | eval "ac_cv_header_$ac_safe=no" | |
6496 | fi | |
6497 | rm -f conftest* | |
6498 | fi | |
6499 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6500 | echo "$ac_t""yes" 1>&6 | |
6501 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6502 | cat >> confdefs.h <<EOF | |
6503 | #define $ac_tr_hdr 1 | |
6504 | EOF | |
6505 | ||
6506 | else | |
6507 | echo "$ac_t""no" 1>&6 | |
6508 | fi | |
6509 | done | |
6510 | ||
6511 | for ac_func in getpagesize | |
6512 | do | |
6513 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01e39005 | 6514 | echo "configure:6515: checking for $ac_func" >&5 |
ab87f8c8 JL |
6515 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6517 | else | |
6518 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6519 | #line 6520 "configure" |
ab87f8c8 JL |
6520 | #include "confdefs.h" |
6521 | /* System header to define __stub macros and hopefully few prototypes, | |
6522 | which can conflict with char $ac_func(); below. */ | |
6523 | #include <assert.h> | |
6524 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6525 | /* We use char because int might match the return type of a gcc2 | |
6526 | builtin and then its argument prototype would still apply. */ | |
6527 | char $ac_func(); | |
01e39005 | 6528 | char (*f)(); |
ab87f8c8 JL |
6529 | |
6530 | int main() { | |
6531 | ||
6532 | /* The GNU C library defines this for functions which it implements | |
6533 | to always fail with ENOSYS. Some functions are actually named | |
6534 | something starting with __ and the normal name is an alias. */ | |
6535 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6536 | choke me | |
6537 | #else | |
01e39005 | 6538 | f = $ac_func; |
ab87f8c8 JL |
6539 | #endif |
6540 | ||
6541 | ; return 0; } | |
6542 | EOF | |
01e39005 | 6543 | if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6544 | rm -rf conftest* |
6545 | eval "ac_cv_func_$ac_func=yes" | |
6546 | else | |
6547 | echo "configure: failed program was:" >&5 | |
6548 | cat conftest.$ac_ext >&5 | |
6549 | rm -rf conftest* | |
6550 | eval "ac_cv_func_$ac_func=no" | |
6551 | fi | |
6552 | rm -f conftest* | |
6553 | fi | |
6554 | ||
6555 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6556 | echo "$ac_t""yes" 1>&6 | |
6557 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6558 | cat >> confdefs.h <<EOF | |
6559 | #define $ac_tr_func 1 | |
6560 | EOF | |
6561 | ||
6562 | else | |
6563 | echo "$ac_t""no" 1>&6 | |
6564 | fi | |
6565 | done | |
6566 | ||
6567 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
01e39005 | 6568 | echo "configure:6569: checking for working mmap" >&5 |
ab87f8c8 JL |
6569 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
6570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6571 | else | |
6572 | if test "$cross_compiling" = yes; then | |
6573 | ac_cv_func_mmap_fixed_mapped=no | |
6574 | else | |
6575 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6576 | #line 6577 "configure" |
ab87f8c8 JL |
6577 | #include "confdefs.h" |
6578 | ||
6579 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6580 | Here is a matrix of mmap possibilities: | |
6581 | mmap private not fixed | |
6582 | mmap private fixed at somewhere currently unmapped | |
6583 | mmap private fixed at somewhere already mapped | |
6584 | mmap shared not fixed | |
6585 | mmap shared fixed at somewhere currently unmapped | |
6586 | mmap shared fixed at somewhere already mapped | |
6587 | For private mappings, we should verify that changes cannot be read() | |
6588 | back from the file, nor mmap's back from the file at a different | |
6589 | address. (There have been systems where private was not correctly | |
6590 | implemented like the infamous i386 svr4.0, and systems where the | |
6591 | VM page cache was not coherent with the filesystem buffer cache | |
6592 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6593 | For shared mappings, we should conversely verify that changes get | |
6594 | propogated back to all the places they're supposed to be. | |
6595 | ||
6596 | Grep wants private fixed already mapped. | |
6597 | The main things grep needs to know about mmap are: | |
6598 | * does it exist and is it safe to write into the mmap'd area | |
6599 | * how to use it (BSD variants) */ | |
6600 | #include <sys/types.h> | |
6601 | #include <fcntl.h> | |
6602 | #include <sys/mman.h> | |
6603 | ||
6604 | /* This mess was copied from the GNU getpagesize.h. */ | |
6605 | #ifndef HAVE_GETPAGESIZE | |
6606 | # ifdef HAVE_UNISTD_H | |
6607 | # include <unistd.h> | |
6608 | # endif | |
6609 | ||
6610 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6611 | # ifndef HAVE_SYS_PARAM_H | |
6612 | # define HAVE_SYS_PARAM_H 1 | |
6613 | # endif | |
6614 | ||
6615 | # ifdef _SC_PAGESIZE | |
6616 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6617 | # else /* no _SC_PAGESIZE */ | |
6618 | # ifdef HAVE_SYS_PARAM_H | |
6619 | # include <sys/param.h> | |
6620 | # ifdef EXEC_PAGESIZE | |
6621 | # define getpagesize() EXEC_PAGESIZE | |
6622 | # else /* no EXEC_PAGESIZE */ | |
6623 | # ifdef NBPG | |
6624 | # define getpagesize() NBPG * CLSIZE | |
6625 | # ifndef CLSIZE | |
6626 | # define CLSIZE 1 | |
6627 | # endif /* no CLSIZE */ | |
6628 | # else /* no NBPG */ | |
6629 | # ifdef NBPC | |
6630 | # define getpagesize() NBPC | |
6631 | # else /* no NBPC */ | |
6632 | # ifdef PAGESIZE | |
6633 | # define getpagesize() PAGESIZE | |
6634 | # endif /* PAGESIZE */ | |
6635 | # endif /* no NBPC */ | |
6636 | # endif /* no NBPG */ | |
6637 | # endif /* no EXEC_PAGESIZE */ | |
6638 | # else /* no HAVE_SYS_PARAM_H */ | |
6639 | # define getpagesize() 8192 /* punt totally */ | |
6640 | # endif /* no HAVE_SYS_PARAM_H */ | |
6641 | # endif /* no _SC_PAGESIZE */ | |
6642 | ||
6643 | #endif /* no HAVE_GETPAGESIZE */ | |
6644 | ||
6645 | #ifdef __cplusplus | |
6646 | extern "C" { void *malloc(unsigned); } | |
6647 | #else | |
6648 | char *malloc(); | |
6649 | #endif | |
6650 | ||
6651 | int | |
6652 | main() | |
6653 | { | |
6654 | char *data, *data2, *data3; | |
6655 | int i, pagesize; | |
6656 | int fd; | |
6657 | ||
6658 | pagesize = getpagesize(); | |
6659 | ||
6660 | /* | |
6661 | * First, make a file with some known garbage in it. | |
6662 | */ | |
6663 | data = malloc(pagesize); | |
6664 | if (!data) | |
6665 | exit(1); | |
6666 | for (i = 0; i < pagesize; ++i) | |
6667 | *(data + i) = rand(); | |
6668 | umask(0); | |
6669 | fd = creat("conftestmmap", 0600); | |
6670 | if (fd < 0) | |
6671 | exit(1); | |
6672 | if (write(fd, data, pagesize) != pagesize) | |
6673 | exit(1); | |
6674 | close(fd); | |
6675 | ||
6676 | /* | |
6677 | * Next, try to mmap the file at a fixed address which | |
6678 | * already has something else allocated at it. If we can, | |
6679 | * also make sure that we see the same garbage. | |
6680 | */ | |
6681 | fd = open("conftestmmap", O_RDWR); | |
6682 | if (fd < 0) | |
6683 | exit(1); | |
6684 | data2 = malloc(2 * pagesize); | |
6685 | if (!data2) | |
6686 | exit(1); | |
6687 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6688 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
6689 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6690 | exit(1); | |
6691 | for (i = 0; i < pagesize; ++i) | |
6692 | if (*(data + i) != *(data2 + i)) | |
6693 | exit(1); | |
6694 | ||
6695 | /* | |
6696 | * Finally, make sure that changes to the mapped area | |
6697 | * do not percolate back to the file as seen by read(). | |
6698 | * (This is a bug on some variants of i386 svr4.0.) | |
6699 | */ | |
6700 | for (i = 0; i < pagesize; ++i) | |
6701 | *(data2 + i) = *(data2 + i) + 1; | |
6702 | data3 = malloc(pagesize); | |
6703 | if (!data3) | |
6704 | exit(1); | |
6705 | if (read(fd, data3, pagesize) != pagesize) | |
6706 | exit(1); | |
6707 | for (i = 0; i < pagesize; ++i) | |
6708 | if (*(data + i) != *(data3 + i)) | |
6709 | exit(1); | |
6710 | close(fd); | |
6711 | unlink("conftestmmap"); | |
6712 | exit(0); | |
6713 | } | |
6714 | ||
6715 | EOF | |
01e39005 | 6716 | if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6717 | then |
6718 | ac_cv_func_mmap_fixed_mapped=yes | |
6719 | else | |
6720 | echo "configure: failed program was:" >&5 | |
6721 | cat conftest.$ac_ext >&5 | |
6722 | rm -fr conftest* | |
6723 | ac_cv_func_mmap_fixed_mapped=no | |
6724 | fi | |
6725 | rm -fr conftest* | |
6726 | fi | |
6727 | ||
6728 | fi | |
6729 | ||
6730 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
6731 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6732 | cat >> confdefs.h <<\EOF | |
6733 | #define HAVE_MMAP 1 | |
6734 | EOF | |
6735 | ||
6736 | fi | |
6737 | ||
6738 | ||
6739 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
6740 | unistd.h sys/param.h | |
6741 | do | |
6742 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6743 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
01e39005 | 6744 | echo "configure:6745: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6745 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6747 | else | |
6748 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6749 | #line 6750 "configure" |
ab87f8c8 JL |
6750 | #include "confdefs.h" |
6751 | #include <$ac_hdr> | |
6752 | EOF | |
6753 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01e39005 | 6754 | { (eval echo configure:6755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6755 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6756 | if test -z "$ac_err"; then |
6757 | rm -rf conftest* | |
6758 | eval "ac_cv_header_$ac_safe=yes" | |
6759 | else | |
6760 | echo "$ac_err" >&5 | |
6761 | echo "configure: failed program was:" >&5 | |
6762 | cat conftest.$ac_ext >&5 | |
6763 | rm -rf conftest* | |
6764 | eval "ac_cv_header_$ac_safe=no" | |
6765 | fi | |
6766 | rm -f conftest* | |
6767 | fi | |
6768 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6769 | echo "$ac_t""yes" 1>&6 | |
6770 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6771 | cat >> confdefs.h <<EOF | |
6772 | #define $ac_tr_hdr 1 | |
6773 | EOF | |
6774 | ||
6775 | else | |
6776 | echo "$ac_t""no" 1>&6 | |
6777 | fi | |
6778 | done | |
6779 | ||
6780 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
6781 | strdup __argz_count __argz_stringify __argz_next | |
6782 | do | |
6783 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01e39005 | 6784 | echo "configure:6785: checking for $ac_func" >&5 |
ab87f8c8 JL |
6785 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6787 | else | |
6788 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6789 | #line 6790 "configure" |
ab87f8c8 JL |
6790 | #include "confdefs.h" |
6791 | /* System header to define __stub macros and hopefully few prototypes, | |
6792 | which can conflict with char $ac_func(); below. */ | |
6793 | #include <assert.h> | |
6794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6795 | /* We use char because int might match the return type of a gcc2 | |
6796 | builtin and then its argument prototype would still apply. */ | |
6797 | char $ac_func(); | |
01e39005 | 6798 | char (*f)(); |
ab87f8c8 JL |
6799 | |
6800 | int main() { | |
6801 | ||
6802 | /* The GNU C library defines this for functions which it implements | |
6803 | to always fail with ENOSYS. Some functions are actually named | |
6804 | something starting with __ and the normal name is an alias. */ | |
6805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6806 | choke me | |
6807 | #else | |
01e39005 | 6808 | f = $ac_func; |
ab87f8c8 JL |
6809 | #endif |
6810 | ||
6811 | ; return 0; } | |
6812 | EOF | |
01e39005 | 6813 | if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6814 | rm -rf conftest* |
6815 | eval "ac_cv_func_$ac_func=yes" | |
6816 | else | |
6817 | echo "configure: failed program was:" >&5 | |
6818 | cat conftest.$ac_ext >&5 | |
6819 | rm -rf conftest* | |
6820 | eval "ac_cv_func_$ac_func=no" | |
6821 | fi | |
6822 | rm -f conftest* | |
6823 | fi | |
6824 | ||
6825 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6826 | echo "$ac_t""yes" 1>&6 | |
6827 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6828 | cat >> confdefs.h <<EOF | |
6829 | #define $ac_tr_func 1 | |
6830 | EOF | |
6831 | ||
6832 | else | |
6833 | echo "$ac_t""no" 1>&6 | |
6834 | fi | |
6835 | done | |
6836 | ||
6837 | ||
6838 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
6839 | for ac_func in stpcpy | |
6840 | do | |
6841 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01e39005 | 6842 | echo "configure:6843: checking for $ac_func" >&5 |
ab87f8c8 JL |
6843 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6845 | else | |
6846 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6847 | #line 6848 "configure" |
ab87f8c8 JL |
6848 | #include "confdefs.h" |
6849 | /* System header to define __stub macros and hopefully few prototypes, | |
6850 | which can conflict with char $ac_func(); below. */ | |
6851 | #include <assert.h> | |
6852 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6853 | /* We use char because int might match the return type of a gcc2 | |
6854 | builtin and then its argument prototype would still apply. */ | |
6855 | char $ac_func(); | |
01e39005 | 6856 | char (*f)(); |
ab87f8c8 JL |
6857 | |
6858 | int main() { | |
6859 | ||
6860 | /* The GNU C library defines this for functions which it implements | |
6861 | to always fail with ENOSYS. Some functions are actually named | |
6862 | something starting with __ and the normal name is an alias. */ | |
6863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6864 | choke me | |
6865 | #else | |
01e39005 | 6866 | f = $ac_func; |
ab87f8c8 JL |
6867 | #endif |
6868 | ||
6869 | ; return 0; } | |
6870 | EOF | |
01e39005 | 6871 | if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6872 | rm -rf conftest* |
6873 | eval "ac_cv_func_$ac_func=yes" | |
6874 | else | |
6875 | echo "configure: failed program was:" >&5 | |
6876 | cat conftest.$ac_ext >&5 | |
6877 | rm -rf conftest* | |
6878 | eval "ac_cv_func_$ac_func=no" | |
6879 | fi | |
6880 | rm -f conftest* | |
6881 | fi | |
6882 | ||
6883 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6884 | echo "$ac_t""yes" 1>&6 | |
6885 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6886 | cat >> confdefs.h <<EOF | |
6887 | #define $ac_tr_func 1 | |
6888 | EOF | |
6889 | ||
6890 | else | |
6891 | echo "$ac_t""no" 1>&6 | |
6892 | fi | |
6893 | done | |
6894 | ||
6895 | fi | |
6896 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
6897 | cat >> confdefs.h <<\EOF | |
6898 | #define HAVE_STPCPY 1 | |
6899 | EOF | |
6900 | ||
6901 | fi | |
6902 | ||
6903 | if test $ac_cv_header_locale_h = yes; then | |
6904 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
01e39005 | 6905 | echo "configure:6906: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
6906 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
6907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6908 | else | |
6909 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6910 | #line 6911 "configure" |
ab87f8c8 JL |
6911 | #include "confdefs.h" |
6912 | #include <locale.h> | |
6913 | int main() { | |
6914 | return LC_MESSAGES | |
6915 | ; return 0; } | |
6916 | EOF | |
01e39005 | 6917 | if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6918 | rm -rf conftest* |
6919 | am_cv_val_LC_MESSAGES=yes | |
6920 | else | |
6921 | echo "configure: failed program was:" >&5 | |
6922 | cat conftest.$ac_ext >&5 | |
6923 | rm -rf conftest* | |
6924 | am_cv_val_LC_MESSAGES=no | |
6925 | fi | |
6926 | rm -f conftest* | |
6927 | fi | |
6928 | ||
6929 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
6930 | if test $am_cv_val_LC_MESSAGES = yes; then | |
6931 | cat >> confdefs.h <<\EOF | |
6932 | #define HAVE_LC_MESSAGES 1 | |
6933 | EOF | |
6934 | ||
6935 | fi | |
6936 | fi | |
6937 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
01e39005 | 6938 | echo "configure:6939: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
6939 | # Check whether --enable-nls or --disable-nls was given. |
6940 | if test "${enable_nls+set}" = set; then | |
6941 | enableval="$enable_nls" | |
6942 | USE_NLS=$enableval | |
6943 | else | |
6944 | USE_NLS=yes | |
6945 | fi | |
6946 | ||
6947 | echo "$ac_t""$USE_NLS" 1>&6 | |
6948 | ||
6949 | ||
6950 | USE_INCLUDED_LIBINTL=no | |
6951 | ||
6952 | if test "$USE_NLS" = "yes"; then | |
6953 | cat >> confdefs.h <<\EOF | |
6954 | #define ENABLE_NLS 1 | |
6955 | EOF | |
6956 | ||
6957 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
01e39005 | 6958 | echo "configure:6959: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
6959 | # Check whether --with-included-gettext or --without-included-gettext was given. |
6960 | if test "${with_included_gettext+set}" = set; then | |
6961 | withval="$with_included_gettext" | |
6962 | nls_cv_force_use_gnu_gettext=$withval | |
6963 | else | |
6964 | nls_cv_force_use_gnu_gettext=no | |
6965 | fi | |
6966 | ||
6967 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
6968 | ||
6969 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6970 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
6971 | nls_cv_header_intl= | |
6972 | nls_cv_header_libgt= | |
6973 | CATOBJEXT=NONE | |
6974 | ||
6975 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
6976 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
01e39005 | 6977 | echo "configure:6978: checking for libintl.h" >&5 |
ab87f8c8 JL |
6978 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6980 | else | |
6981 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 6982 | #line 6983 "configure" |
ab87f8c8 JL |
6983 | #include "confdefs.h" |
6984 | #include <libintl.h> | |
6985 | EOF | |
6986 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01e39005 | 6987 | { (eval echo configure:6988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6988 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6989 | if test -z "$ac_err"; then |
6990 | rm -rf conftest* | |
6991 | eval "ac_cv_header_$ac_safe=yes" | |
6992 | else | |
6993 | echo "$ac_err" >&5 | |
6994 | echo "configure: failed program was:" >&5 | |
6995 | cat conftest.$ac_ext >&5 | |
6996 | rm -rf conftest* | |
6997 | eval "ac_cv_header_$ac_safe=no" | |
6998 | fi | |
6999 | rm -f conftest* | |
7000 | fi | |
7001 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7002 | echo "$ac_t""yes" 1>&6 | |
7003 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
01e39005 | 7004 | echo "configure:7005: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7005 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7007 | else | |
7008 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7009 | #line 7010 "configure" |
ab87f8c8 JL |
7010 | #include "confdefs.h" |
7011 | #include <libintl.h> | |
7012 | int main() { | |
7013 | return (int) gettext ("") | |
7014 | ; return 0; } | |
7015 | EOF | |
01e39005 | 7016 | if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7017 | rm -rf conftest* |
7018 | gt_cv_func_gettext_libc=yes | |
7019 | else | |
7020 | echo "configure: failed program was:" >&5 | |
7021 | cat conftest.$ac_ext >&5 | |
7022 | rm -rf conftest* | |
7023 | gt_cv_func_gettext_libc=no | |
7024 | fi | |
7025 | rm -f conftest* | |
7026 | fi | |
7027 | ||
7028 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7029 | ||
7030 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7031 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
01e39005 | 7032 | echo "configure:7033: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7033 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7034 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7036 | else | |
7037 | ac_save_LIBS="$LIBS" | |
7038 | LIBS="-lintl $LIBS" | |
7039 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7040 | #line 7041 "configure" |
ab87f8c8 JL |
7041 | #include "confdefs.h" |
7042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7043 | /* We use char because int might match the return type of a gcc2 | |
7044 | builtin and then its argument prototype would still apply. */ | |
7045 | char bindtextdomain(); | |
7046 | ||
7047 | int main() { | |
7048 | bindtextdomain() | |
7049 | ; return 0; } | |
7050 | EOF | |
01e39005 | 7051 | if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7052 | rm -rf conftest* |
7053 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7054 | else | |
7055 | echo "configure: failed program was:" >&5 | |
7056 | cat conftest.$ac_ext >&5 | |
7057 | rm -rf conftest* | |
7058 | eval "ac_cv_lib_$ac_lib_var=no" | |
7059 | fi | |
7060 | rm -f conftest* | |
7061 | LIBS="$ac_save_LIBS" | |
7062 | ||
7063 | fi | |
7064 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7065 | echo "$ac_t""yes" 1>&6 | |
7066 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
01e39005 | 7067 | echo "configure:7068: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7068 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7070 | else | |
7071 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
01e39005 | 7072 | echo "configure:7073: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7073 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7074 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7076 | else | |
7077 | ac_save_LIBS="$LIBS" | |
7078 | LIBS="-lintl $LIBS" | |
7079 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7080 | #line 7081 "configure" |
ab87f8c8 JL |
7081 | #include "confdefs.h" |
7082 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7083 | /* We use char because int might match the return type of a gcc2 | |
7084 | builtin and then its argument prototype would still apply. */ | |
7085 | char gettext(); | |
7086 | ||
7087 | int main() { | |
7088 | gettext() | |
7089 | ; return 0; } | |
7090 | EOF | |
01e39005 | 7091 | if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7092 | rm -rf conftest* |
7093 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7094 | else | |
7095 | echo "configure: failed program was:" >&5 | |
7096 | cat conftest.$ac_ext >&5 | |
7097 | rm -rf conftest* | |
7098 | eval "ac_cv_lib_$ac_lib_var=no" | |
7099 | fi | |
7100 | rm -f conftest* | |
7101 | LIBS="$ac_save_LIBS" | |
7102 | ||
7103 | fi | |
7104 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7105 | echo "$ac_t""yes" 1>&6 | |
7106 | gt_cv_func_gettext_libintl=yes | |
7107 | else | |
7108 | echo "$ac_t""no" 1>&6 | |
7109 | gt_cv_func_gettext_libintl=no | |
7110 | fi | |
7111 | ||
7112 | fi | |
7113 | ||
7114 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7115 | else | |
7116 | echo "$ac_t""no" 1>&6 | |
7117 | fi | |
7118 | ||
7119 | fi | |
7120 | ||
7121 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7122 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7123 | cat >> confdefs.h <<\EOF | |
7124 | #define HAVE_GETTEXT 1 | |
7125 | EOF | |
7126 | ||
7127 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7128 | set dummy msgfmt; ac_word=$2 | |
7129 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7130 | echo "configure:7131: checking for $ac_word" >&5 |
ab87f8c8 JL |
7131 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7133 | else | |
7134 | case "$MSGFMT" in | |
7135 | /*) | |
7136 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7137 | ;; | |
7138 | *) | |
7139 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7140 | for ac_dir in $PATH; do | |
7141 | test -z "$ac_dir" && ac_dir=. | |
7142 | if test -f $ac_dir/$ac_word; then | |
7143 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7144 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7145 | break | |
7146 | fi | |
7147 | fi | |
7148 | done | |
7149 | IFS="$ac_save_ifs" | |
7150 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7151 | ;; | |
7152 | esac | |
7153 | fi | |
7154 | MSGFMT="$ac_cv_path_MSGFMT" | |
7155 | if test -n "$MSGFMT"; then | |
7156 | echo "$ac_t""$MSGFMT" 1>&6 | |
7157 | else | |
7158 | echo "$ac_t""no" 1>&6 | |
7159 | fi | |
7160 | if test "$MSGFMT" != "no"; then | |
7161 | for ac_func in dcgettext | |
7162 | do | |
7163 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01e39005 | 7164 | echo "configure:7165: checking for $ac_func" >&5 |
ab87f8c8 JL |
7165 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7167 | else | |
7168 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7169 | #line 7170 "configure" |
ab87f8c8 JL |
7170 | #include "confdefs.h" |
7171 | /* System header to define __stub macros and hopefully few prototypes, | |
7172 | which can conflict with char $ac_func(); below. */ | |
7173 | #include <assert.h> | |
7174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7175 | /* We use char because int might match the return type of a gcc2 | |
7176 | builtin and then its argument prototype would still apply. */ | |
7177 | char $ac_func(); | |
01e39005 | 7178 | char (*f)(); |
ab87f8c8 JL |
7179 | |
7180 | int main() { | |
7181 | ||
7182 | /* The GNU C library defines this for functions which it implements | |
7183 | to always fail with ENOSYS. Some functions are actually named | |
7184 | something starting with __ and the normal name is an alias. */ | |
7185 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7186 | choke me | |
7187 | #else | |
01e39005 | 7188 | f = $ac_func; |
ab87f8c8 JL |
7189 | #endif |
7190 | ||
7191 | ; return 0; } | |
7192 | EOF | |
01e39005 | 7193 | if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7194 | rm -rf conftest* |
7195 | eval "ac_cv_func_$ac_func=yes" | |
7196 | else | |
7197 | echo "configure: failed program was:" >&5 | |
7198 | cat conftest.$ac_ext >&5 | |
7199 | rm -rf conftest* | |
7200 | eval "ac_cv_func_$ac_func=no" | |
7201 | fi | |
7202 | rm -f conftest* | |
7203 | fi | |
7204 | ||
7205 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7206 | echo "$ac_t""yes" 1>&6 | |
7207 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7208 | cat >> confdefs.h <<EOF | |
7209 | #define $ac_tr_func 1 | |
7210 | EOF | |
7211 | ||
7212 | else | |
7213 | echo "$ac_t""no" 1>&6 | |
7214 | fi | |
7215 | done | |
7216 | ||
7217 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7218 | set dummy gmsgfmt; ac_word=$2 | |
7219 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7220 | echo "configure:7221: checking for $ac_word" >&5 |
ab87f8c8 JL |
7221 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7223 | else | |
7224 | case "$GMSGFMT" in | |
7225 | /*) | |
7226 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7227 | ;; | |
7228 | ?:/*) | |
7229 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7230 | ;; | |
7231 | *) | |
cd9e5e7c | 7232 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7233 | ac_dummy="$PATH" |
7234 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7235 | test -z "$ac_dir" && ac_dir=. |
7236 | if test -f $ac_dir/$ac_word; then | |
7237 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7238 | break | |
7239 | fi | |
7240 | done | |
7241 | IFS="$ac_save_ifs" | |
7242 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7243 | ;; | |
7244 | esac | |
7245 | fi | |
7246 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7247 | if test -n "$GMSGFMT"; then | |
7248 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7249 | else | |
7250 | echo "$ac_t""no" 1>&6 | |
7251 | fi | |
7252 | ||
7253 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7254 | set dummy xgettext; ac_word=$2 | |
7255 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7256 | echo "configure:7257: checking for $ac_word" >&5 |
ab87f8c8 JL |
7257 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7259 | else | |
7260 | case "$XGETTEXT" in | |
7261 | /*) | |
7262 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7263 | ;; | |
7264 | *) | |
7265 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7266 | for ac_dir in $PATH; do | |
7267 | test -z "$ac_dir" && ac_dir=. | |
7268 | if test -f $ac_dir/$ac_word; then | |
7269 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7270 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7271 | break | |
7272 | fi | |
7273 | fi | |
7274 | done | |
7275 | IFS="$ac_save_ifs" | |
7276 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7277 | ;; | |
7278 | esac | |
7279 | fi | |
7280 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7281 | if test -n "$XGETTEXT"; then | |
7282 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7283 | else | |
7284 | echo "$ac_t""no" 1>&6 | |
7285 | fi | |
7286 | ||
7287 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7288 | #line 7289 "configure" |
ab87f8c8 JL |
7289 | #include "confdefs.h" |
7290 | ||
7291 | int main() { | |
7292 | extern int _nl_msg_cat_cntr; | |
7293 | return _nl_msg_cat_cntr | |
7294 | ; return 0; } | |
7295 | EOF | |
01e39005 | 7296 | if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7297 | rm -rf conftest* |
7298 | CATOBJEXT=.gmo | |
7299 | DATADIRNAME=share | |
7300 | else | |
7301 | echo "configure: failed program was:" >&5 | |
7302 | cat conftest.$ac_ext >&5 | |
7303 | rm -rf conftest* | |
7304 | CATOBJEXT=.mo | |
7305 | DATADIRNAME=lib | |
7306 | fi | |
7307 | rm -f conftest* | |
7308 | INSTOBJEXT=.mo | |
7309 | fi | |
7310 | fi | |
7311 | ||
7312 | else | |
7313 | echo "$ac_t""no" 1>&6 | |
7314 | fi | |
7315 | ||
7316 | ||
7317 | if test "$CATOBJEXT" = "NONE"; then | |
7318 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
01e39005 | 7319 | echo "configure:7320: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7320 | # Check whether --with-catgets or --without-catgets was given. |
7321 | if test "${with_catgets+set}" = set; then | |
7322 | withval="$with_catgets" | |
7323 | nls_cv_use_catgets=$withval | |
7324 | else | |
7325 | nls_cv_use_catgets=no | |
7326 | fi | |
7327 | ||
7328 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7329 | ||
7330 | if test "$nls_cv_use_catgets" = "yes"; then | |
7331 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
01e39005 | 7332 | echo "configure:7333: checking for main in -li" >&5 |
ab87f8c8 JL |
7333 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7334 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7336 | else | |
7337 | ac_save_LIBS="$LIBS" | |
7338 | LIBS="-li $LIBS" | |
7339 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7340 | #line 7341 "configure" |
ab87f8c8 JL |
7341 | #include "confdefs.h" |
7342 | ||
7343 | int main() { | |
7344 | main() | |
7345 | ; return 0; } | |
7346 | EOF | |
01e39005 | 7347 | if { (eval echo configure:7348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7348 | rm -rf conftest* |
7349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7350 | else | |
7351 | echo "configure: failed program was:" >&5 | |
7352 | cat conftest.$ac_ext >&5 | |
7353 | rm -rf conftest* | |
7354 | eval "ac_cv_lib_$ac_lib_var=no" | |
7355 | fi | |
7356 | rm -f conftest* | |
7357 | LIBS="$ac_save_LIBS" | |
7358 | ||
7359 | fi | |
7360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7361 | echo "$ac_t""yes" 1>&6 | |
7362 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7363 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7364 | cat >> confdefs.h <<EOF | |
7365 | #define $ac_tr_lib 1 | |
7366 | EOF | |
7367 | ||
7368 | LIBS="-li $LIBS" | |
7369 | ||
7370 | else | |
7371 | echo "$ac_t""no" 1>&6 | |
7372 | fi | |
7373 | ||
7374 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
01e39005 | 7375 | echo "configure:7376: checking for catgets" >&5 |
ab87f8c8 JL |
7376 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7378 | else | |
7379 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7380 | #line 7381 "configure" |
ab87f8c8 JL |
7381 | #include "confdefs.h" |
7382 | /* System header to define __stub macros and hopefully few prototypes, | |
7383 | which can conflict with char catgets(); below. */ | |
7384 | #include <assert.h> | |
7385 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7386 | /* We use char because int might match the return type of a gcc2 | |
7387 | builtin and then its argument prototype would still apply. */ | |
7388 | char catgets(); | |
01e39005 | 7389 | char (*f)(); |
ab87f8c8 JL |
7390 | |
7391 | int main() { | |
7392 | ||
7393 | /* The GNU C library defines this for functions which it implements | |
7394 | to always fail with ENOSYS. Some functions are actually named | |
7395 | something starting with __ and the normal name is an alias. */ | |
7396 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7397 | choke me | |
7398 | #else | |
01e39005 | 7399 | f = catgets; |
ab87f8c8 JL |
7400 | #endif |
7401 | ||
7402 | ; return 0; } | |
7403 | EOF | |
01e39005 | 7404 | if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7405 | rm -rf conftest* |
7406 | eval "ac_cv_func_catgets=yes" | |
7407 | else | |
7408 | echo "configure: failed program was:" >&5 | |
7409 | cat conftest.$ac_ext >&5 | |
7410 | rm -rf conftest* | |
7411 | eval "ac_cv_func_catgets=no" | |
7412 | fi | |
7413 | rm -f conftest* | |
7414 | fi | |
7415 | ||
7416 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7417 | echo "$ac_t""yes" 1>&6 | |
7418 | cat >> confdefs.h <<\EOF | |
7419 | #define HAVE_CATGETS 1 | |
7420 | EOF | |
7421 | ||
7422 | INTLOBJS="\$(CATOBJS)" | |
7423 | # Extract the first word of "gencat", so it can be a program name with args. | |
7424 | set dummy gencat; ac_word=$2 | |
7425 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7426 | echo "configure:7427: checking for $ac_word" >&5 |
ab87f8c8 JL |
7427 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7429 | else | |
7430 | case "$GENCAT" in | |
7431 | /*) | |
7432 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7433 | ;; | |
7434 | ?:/*) | |
7435 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7436 | ;; | |
7437 | *) | |
cd9e5e7c | 7438 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7439 | ac_dummy="$PATH" |
7440 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7441 | test -z "$ac_dir" && ac_dir=. |
7442 | if test -f $ac_dir/$ac_word; then | |
7443 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7444 | break | |
7445 | fi | |
7446 | done | |
7447 | IFS="$ac_save_ifs" | |
7448 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7449 | ;; | |
7450 | esac | |
7451 | fi | |
7452 | GENCAT="$ac_cv_path_GENCAT" | |
7453 | if test -n "$GENCAT"; then | |
7454 | echo "$ac_t""$GENCAT" 1>&6 | |
7455 | else | |
7456 | echo "$ac_t""no" 1>&6 | |
7457 | fi | |
7458 | if test "$GENCAT" != "no"; then | |
7459 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7460 | set dummy gmsgfmt; ac_word=$2 | |
7461 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7462 | echo "configure:7463: checking for $ac_word" >&5 |
ab87f8c8 JL |
7463 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7465 | else | |
7466 | case "$GMSGFMT" in | |
7467 | /*) | |
7468 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7469 | ;; | |
7470 | ?:/*) | |
7471 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7472 | ;; | |
7473 | *) | |
cd9e5e7c | 7474 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7475 | ac_dummy="$PATH" |
7476 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7477 | test -z "$ac_dir" && ac_dir=. |
7478 | if test -f $ac_dir/$ac_word; then | |
7479 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7480 | break | |
7481 | fi | |
7482 | done | |
7483 | IFS="$ac_save_ifs" | |
7484 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7485 | ;; | |
7486 | esac | |
7487 | fi | |
7488 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7489 | if test -n "$GMSGFMT"; then | |
7490 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7491 | else | |
7492 | echo "$ac_t""no" 1>&6 | |
7493 | fi | |
7494 | ||
7495 | if test "$GMSGFMT" = "no"; then | |
7496 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7497 | set dummy msgfmt; ac_word=$2 | |
7498 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7499 | echo "configure:7500: checking for $ac_word" >&5 |
ab87f8c8 JL |
7500 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7502 | else | |
7503 | case "$GMSGFMT" in | |
7504 | /*) | |
7505 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7506 | ;; | |
7507 | *) | |
7508 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7509 | for ac_dir in $PATH; do | |
7510 | test -z "$ac_dir" && ac_dir=. | |
7511 | if test -f $ac_dir/$ac_word; then | |
7512 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7513 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7514 | break | |
7515 | fi | |
7516 | fi | |
7517 | done | |
7518 | IFS="$ac_save_ifs" | |
7519 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7520 | ;; | |
7521 | esac | |
7522 | fi | |
7523 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7524 | if test -n "$GMSGFMT"; then | |
7525 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7526 | else | |
7527 | echo "$ac_t""no" 1>&6 | |
7528 | fi | |
7529 | ||
7530 | fi | |
7531 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7532 | set dummy xgettext; ac_word=$2 | |
7533 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7534 | echo "configure:7535: checking for $ac_word" >&5 |
ab87f8c8 JL |
7535 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7537 | else | |
7538 | case "$XGETTEXT" in | |
7539 | /*) | |
7540 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7541 | ;; | |
7542 | *) | |
7543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7544 | for ac_dir in $PATH; do | |
7545 | test -z "$ac_dir" && ac_dir=. | |
7546 | if test -f $ac_dir/$ac_word; then | |
7547 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7548 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7549 | break | |
7550 | fi | |
7551 | fi | |
7552 | done | |
7553 | IFS="$ac_save_ifs" | |
7554 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7555 | ;; | |
7556 | esac | |
7557 | fi | |
7558 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7559 | if test -n "$XGETTEXT"; then | |
7560 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7561 | else | |
7562 | echo "$ac_t""no" 1>&6 | |
7563 | fi | |
7564 | ||
7565 | USE_INCLUDED_LIBINTL=yes | |
7566 | CATOBJEXT=.cat | |
7567 | INSTOBJEXT=.cat | |
7568 | DATADIRNAME=lib | |
7569 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7570 | INTLLIBS=$INTLDEPS | |
7571 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7572 | nls_cv_header_intl=intl/libintl.h | |
7573 | nls_cv_header_libgt=intl/libgettext.h | |
7574 | fi | |
7575 | else | |
7576 | echo "$ac_t""no" 1>&6 | |
7577 | fi | |
7578 | ||
7579 | fi | |
7580 | fi | |
7581 | ||
7582 | if test "$CATOBJEXT" = "NONE"; then | |
7583 | nls_cv_use_gnu_gettext=yes | |
7584 | fi | |
7585 | fi | |
7586 | ||
7587 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7588 | INTLOBJS="\$(GETTOBJS)" | |
7589 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7590 | set dummy msgfmt; ac_word=$2 | |
7591 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7592 | echo "configure:7593: checking for $ac_word" >&5 |
ab87f8c8 JL |
7593 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7595 | else | |
7596 | case "$MSGFMT" in | |
7597 | /*) | |
7598 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7599 | ;; | |
7600 | *) | |
7601 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7602 | for ac_dir in $PATH; do | |
7603 | test -z "$ac_dir" && ac_dir=. | |
7604 | if test -f $ac_dir/$ac_word; then | |
7605 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7606 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7607 | break | |
7608 | fi | |
7609 | fi | |
7610 | done | |
7611 | IFS="$ac_save_ifs" | |
7612 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7613 | ;; | |
7614 | esac | |
7615 | fi | |
7616 | MSGFMT="$ac_cv_path_MSGFMT" | |
7617 | if test -n "$MSGFMT"; then | |
7618 | echo "$ac_t""$MSGFMT" 1>&6 | |
7619 | else | |
7620 | echo "$ac_t""no" 1>&6 | |
7621 | fi | |
7622 | ||
7623 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7624 | set dummy gmsgfmt; ac_word=$2 | |
7625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7626 | echo "configure:7627: checking for $ac_word" >&5 |
ab87f8c8 JL |
7627 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7629 | else | |
7630 | case "$GMSGFMT" in | |
7631 | /*) | |
7632 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7633 | ;; | |
7634 | ?:/*) | |
7635 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7636 | ;; | |
7637 | *) | |
cd9e5e7c | 7638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7639 | ac_dummy="$PATH" |
7640 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7641 | test -z "$ac_dir" && ac_dir=. |
7642 | if test -f $ac_dir/$ac_word; then | |
7643 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7644 | break | |
7645 | fi | |
7646 | done | |
7647 | IFS="$ac_save_ifs" | |
7648 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7649 | ;; | |
7650 | esac | |
7651 | fi | |
7652 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7653 | if test -n "$GMSGFMT"; then | |
7654 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7655 | else | |
7656 | echo "$ac_t""no" 1>&6 | |
7657 | fi | |
7658 | ||
7659 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7660 | set dummy xgettext; ac_word=$2 | |
7661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
01e39005 | 7662 | echo "configure:7663: checking for $ac_word" >&5 |
ab87f8c8 JL |
7663 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7665 | else | |
7666 | case "$XGETTEXT" in | |
7667 | /*) | |
7668 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7669 | ;; | |
7670 | *) | |
7671 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7672 | for ac_dir in $PATH; do | |
7673 | test -z "$ac_dir" && ac_dir=. | |
7674 | if test -f $ac_dir/$ac_word; then | |
7675 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7676 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7677 | break | |
7678 | fi | |
7679 | fi | |
7680 | done | |
7681 | IFS="$ac_save_ifs" | |
7682 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7683 | ;; | |
7684 | esac | |
7685 | fi | |
7686 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7687 | if test -n "$XGETTEXT"; then | |
7688 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7689 | else | |
7690 | echo "$ac_t""no" 1>&6 | |
7691 | fi | |
7692 | ||
7693 | ||
7694 | USE_INCLUDED_LIBINTL=yes | |
7695 | CATOBJEXT=.gmo | |
7696 | INSTOBJEXT=.mo | |
7697 | DATADIRNAME=share | |
7698 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7699 | INTLLIBS=$INTLDEPS | |
7700 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7701 | nls_cv_header_intl=intl/libintl.h | |
7702 | nls_cv_header_libgt=intl/libgettext.h | |
7703 | fi | |
7704 | ||
7705 | if test "$XGETTEXT" != ":"; then | |
7706 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7707 | : ; | |
7708 | else | |
7709 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
7710 | XGETTEXT=":" | |
7711 | fi | |
7712 | fi | |
7713 | ||
7714 | # We need to process the po/ directory. | |
7715 | POSUB=po | |
7716 | else | |
7717 | DATADIRNAME=share | |
7718 | nls_cv_header_intl=intl/libintl.h | |
7719 | nls_cv_header_libgt=intl/libgettext.h | |
7720 | fi | |
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7726 | # because some of the sources are only built for this goal. | |
7727 | if test "$PACKAGE" = gettext; then | |
7728 | USE_NLS=yes | |
7729 | USE_INCLUDED_LIBINTL=yes | |
7730 | fi | |
7731 | ||
7732 | for lang in $ALL_LINGUAS; do | |
7733 | GMOFILES="$GMOFILES $lang.gmo" | |
7734 | POFILES="$POFILES $lang.po" | |
7735 | done | |
7736 | ||
7737 | ||
7738 | ||
7739 | ||
7740 | ||
7741 | ||
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | if test "x$CATOBJEXT" != "x"; then | |
7751 | if test "x$ALL_LINGUAS" = "x"; then | |
7752 | LINGUAS= | |
7753 | else | |
7754 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
01e39005 | 7755 | echo "configure:7756: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
7756 | NEW_LINGUAS= |
7757 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7758 | case "$ALL_LINGUAS" in | |
7759 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7760 | esac | |
7761 | done | |
7762 | LINGUAS=$NEW_LINGUAS | |
7763 | echo "$ac_t""$LINGUAS" 1>&6 | |
7764 | fi | |
7765 | ||
7766 | if test -n "$LINGUAS"; then | |
7767 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7768 | fi | |
7769 | fi | |
7770 | ||
7771 | if test $ac_cv_header_locale_h = yes; then | |
7772 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7773 | else | |
7774 | INCLUDE_LOCALE_H="\ | |
7775 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7776 | fi | |
7777 | ||
7778 | ||
7779 | test -d intl || mkdir intl | |
7780 | if test "$CATOBJEXT" = ".cat"; then | |
7781 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
7782 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
01e39005 | 7783 | echo "configure:7784: checking for linux/version.h" >&5 |
ab87f8c8 JL |
7784 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7786 | else | |
7787 | cat > conftest.$ac_ext <<EOF | |
01e39005 | 7788 | #line 7789 "configure" |
ab87f8c8 JL |
7789 | #include "confdefs.h" |
7790 | #include <linux/version.h> | |
7791 | EOF | |
7792 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01e39005 | 7793 | { (eval echo configure:7794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7794 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7795 | if test -z "$ac_err"; then |
7796 | rm -rf conftest* | |
7797 | eval "ac_cv_header_$ac_safe=yes" | |
7798 | else | |
7799 | echo "$ac_err" >&5 | |
7800 | echo "configure: failed program was:" >&5 | |
7801 | cat conftest.$ac_ext >&5 | |
7802 | rm -rf conftest* | |
7803 | eval "ac_cv_header_$ac_safe=no" | |
7804 | fi | |
7805 | rm -f conftest* | |
7806 | fi | |
7807 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7808 | echo "$ac_t""yes" 1>&6 | |
7809 | msgformat=linux | |
7810 | else | |
7811 | echo "$ac_t""no" 1>&6 | |
7812 | msgformat=xopen | |
7813 | fi | |
7814 | ||
7815 | ||
7816 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
7817 | fi | |
7818 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7819 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
7820 | ||
7821 | if test "$PACKAGE" = "gettext"; then | |
7822 | GT_NO="#NO#" | |
7823 | GT_YES= | |
7824 | else | |
7825 | GT_NO= | |
7826 | GT_YES="#YES#" | |
7827 | fi | |
7828 | ||
7829 | ||
7830 | ||
7831 | MKINSTALLDIRS= | |
7832 | if test -n "$ac_aux_dir"; then | |
7833 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
7834 | fi | |
7835 | if test -z "$MKINSTALLDIRS"; then | |
7836 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7837 | fi | |
7838 | ||
7839 | ||
7840 | l= | |
7841 | ||
7842 | ||
7843 | test -d po || mkdir po | |
7844 | if test "x$srcdir" != "x."; then | |
7845 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
7846 | posrcprefix="$srcdir/" | |
7847 | else | |
7848 | posrcprefix="../$srcdir/" | |
7849 | fi | |
7850 | else | |
7851 | posrcprefix="../" | |
7852 | fi | |
7853 | rm -f po/POTFILES | |
7854 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7855 | < $srcdir/po/POTFILES.in > po/POTFILES | |
7856 | ||
7857 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
7858 | ||
7859 | # Get an absolute path to the GCC top-level source directory | |
7860 | holddir=`pwd` | |
7861 | cd $srcdir | |
7862 | topdir=`pwd` | |
7863 | cd $holddir | |
7864 | ||
7865 | # Conditionalize the makefile for this host machine. | |
7866 | # Make-host contains the concatenation of all host makefile fragments | |
7867 | # [there can be more than one]. This file is built by configure.frag. | |
7868 | host_overrides=Make-host | |
7869 | dep_host_xmake_file= | |
7870 | for f in .. ${host_xmake_file} | |
7871 | do | |
7872 | if test -f ${srcdir}/config/$f | |
7873 | then | |
7874 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
7875 | fi | |
7876 | done | |
7877 | ||
7878 | # Conditionalize the makefile for this target machine. | |
7879 | # Make-target contains the concatenation of all host makefile fragments | |
7880 | # [there can be more than one]. This file is built by configure.frag. | |
7881 | target_overrides=Make-target | |
7882 | dep_tmake_file= | |
7883 | for f in .. ${tmake_file} | |
7884 | do | |
7885 | if test -f ${srcdir}/config/$f | |
7886 | then | |
7887 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
7888 | fi | |
7889 | done | |
7890 | ||
7891 | # If the host doesn't support symlinks, modify CC in | |
7892 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
7893 | # Otherwise, we can use "CC=$(CC)". | |
7894 | rm -f symtest.tem | |
7895 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
7896 | then | |
7897 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 7898 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
7899 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
7900 | else | |
7901 | rm -f symtest.tem | |
7902 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
7903 | then | |
7904 | symbolic_link="cp -p" | |
7905 | else | |
7906 | symbolic_link="cp" | |
7907 | fi | |
7908 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 7909 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
7910 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
7911 | fi | |
7912 | rm -f symtest.tem | |
7913 | ||
7914 | out_object_file=`basename $out_file .c`.o | |
7915 | ||
7916 | tm_file_list= | |
7917 | for f in $tm_file; do | |
64ccbc99 KG |
7918 | case $f in |
7919 | gansidecl.h ) | |
7920 | tm_file_list="${tm_file_list} $f" ;; | |
7921 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
7922 | esac | |
ab87f8c8 JL |
7923 | done |
7924 | ||
7925 | host_xm_file_list= | |
7926 | for f in $host_xm_file; do | |
64ccbc99 KG |
7927 | case $f in |
7928 | auto-host.h | gansidecl.h | hwint.h ) | |
7929 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
7930 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
7931 | esac | |
ab87f8c8 JL |
7932 | done |
7933 | ||
7934 | build_xm_file_list= | |
7935 | for f in $build_xm_file; do | |
64ccbc99 KG |
7936 | case $f in |
7937 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
7938 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
7939 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
7940 | esac | |
ab87f8c8 JL |
7941 | done |
7942 | ||
7943 | # Define macro CROSS_COMPILE in compilation | |
7944 | # if this is a cross-compiler. | |
7945 | # Also use all.cross instead of all.internal | |
7946 | # and add cross-make to Makefile. | |
7947 | cross_overrides="/dev/null" | |
7948 | if test x$host != x$target | |
7949 | then | |
7950 | cross_defines="CROSS=-DCROSS_COMPILE" | |
7951 | cross_overrides="${topdir}/cross-make" | |
7952 | fi | |
7953 | ||
7954 | # When building gcc with a cross-compiler, we need to fix a few things. | |
7955 | # This must come after cross-make as we want all.build to override | |
7956 | # all.cross. | |
7957 | build_overrides="/dev/null" | |
7958 | if test x$build != x$host | |
7959 | then | |
7960 | build_overrides="${topdir}/build-make" | |
7961 | fi | |
7962 | ||
7963 | # Expand extra_headers to include complete path. | |
7964 | # This substitutes for lots of t-* files. | |
7965 | extra_headers_list= | |
7966 | if test "x$extra_headers" = x | |
7967 | then true | |
7968 | else | |
7969 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
7970 | for file in $extra_headers; | |
7971 | do | |
7972 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
7973 | done | |
7974 | fi | |
7975 | ||
7976 | if test x$use_collect2 = xno; then | |
7977 | use_collect2= | |
7978 | fi | |
7979 | ||
7980 | # Add a definition of USE_COLLECT2 if system wants one. | |
7981 | # Also tell toplev.c what to do. | |
7982 | # This substitutes for lots of t-* files. | |
7983 | if test x$use_collect2 = x | |
7984 | then | |
7985 | will_use_collect2= | |
7986 | maybe_use_collect2= | |
7987 | else | |
7988 | will_use_collect2="collect2" | |
7989 | maybe_use_collect2="-DUSE_COLLECT2" | |
7990 | fi | |
7991 | ||
7992 | # NEED TO CONVERT | |
7993 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
7994 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
7995 | # for line oriented comments, so we must always use a GNU cpp. If | |
7996 | # building gcc with a cross compiler, use the cross compiler just | |
7997 | # built. Otherwise, we can use the cpp just built. | |
7998 | md_file_sub= | |
7999 | if test "x$md_cppflags" = x | |
8000 | then | |
8001 | md_file_sub=$srcdir/config/$md_file | |
8002 | else | |
8003 | md_file=md | |
8004 | fi | |
8005 | ||
8006 | # If we have gas in the build tree, make a link to it. | |
8007 | if test -f ../gas/Makefile; then | |
8008 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8009 | fi | |
8010 | ||
8011 | # If we have nm in the build tree, make a link to it. | |
8012 | if test -f ../binutils/Makefile; then | |
8013 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8014 | fi | |
8015 | ||
8016 | # If we have ld in the build tree, make a link to it. | |
8017 | if test -f ../ld/Makefile; then | |
8018 | # if test x$use_collect2 = x; then | |
8019 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8020 | # else | |
8021 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8022 | # fi | |
8023 | fi | |
8024 | ||
8025 | # Figure out what assembler alignment features are present. | |
8026 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
01e39005 | 8027 | echo "configure:8028: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8028 | gcc_cv_as= |
8029 | gcc_cv_as_alignment_features= | |
8030 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8031 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8032 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8033 | elif test -x "$AS"; then | |
8034 | gcc_cv_as="$AS" | |
8035 | elif test -x as$host_exeext; then | |
8036 | # Build using assembler in the current directory. | |
8037 | gcc_cv_as=./as$host_exeext | |
8038 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8039 | # Single tree build which includes gas. | |
8040 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8041 | do | |
8042 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8043 | if test x$gcc_cv_gas_version != x; then | |
8044 | break | |
8045 | fi | |
8046 | done | |
8047 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8048 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8049 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8050 | # Gas version 2.6 and later support for .balign and .p2align. | |
8051 | # bytes to skip when using .p2align. | |
8052 | 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 | |
8053 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8054 | cat >> confdefs.h <<\EOF | |
8055 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8056 | EOF | |
8057 | ||
8058 | fi | |
8059 | # Gas version 2.8 and later support specifying the maximum | |
8060 | # bytes to skip when using .p2align. | |
8061 | 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 | |
8062 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8063 | cat >> confdefs.h <<\EOF | |
8064 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8065 | EOF |
8066 | ||
0b9d02c6 | 8067 | fi |
9e423e6d | 8068 | fi |
75bffa71 | 8069 | elif test x$host = x$target; then |
9e423e6d JW |
8070 | # Native build. |
8071 | gcc_cv_as=as$host_exeext | |
8072 | fi | |
75bffa71 | 8073 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8074 | # Check if we have .balign and .p2align |
8075 | echo ".balign 4" > conftest.s | |
8076 | echo ".p2align 2" >> conftest.s | |
8077 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8078 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8079 | cat >> confdefs.h <<\EOF | |
8080 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8081 | EOF | |
8082 | ||
8083 | fi | |
8084 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8085 | # Check if specifying the maximum bytes to skip when |
8086 | # using .p2align is supported. | |
8087 | echo ".p2align 4,,7" > conftest.s | |
8088 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8089 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8090 | cat >> confdefs.h <<\EOF | |
8091 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8092 | EOF | |
8093 | ||
8094 | fi | |
8095 | rm -f conftest.s conftest.o | |
8096 | fi | |
8097 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8098 | ||
d1accaa3 | 8099 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
01e39005 | 8100 | echo "configure:8101: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8101 | gcc_cv_as_subsections= |
8102 | if test x$gcc_cv_as != x; then | |
8103 | # Check if we have .subsection | |
8104 | echo ".subsection 1" > conftest.s | |
8105 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8106 | gcc_cv_as_subsections=".subsection" | |
8107 | if test -x nm$host_exeext; then | |
8108 | gcc_cv_nm=./nm$host_exeext | |
8109 | elif test x$host = x$target; then | |
8110 | # Native build. | |
8111 | gcc_cv_nm=nm$host_exeext | |
8112 | fi | |
8113 | if test x$gcc_cv_nm != x; then | |
8114 | cat > conftest.s <<EOF | |
8115 | conftest_label1: .word 0 | |
8116 | .subsection -1 | |
8117 | conftest_label2: .word 0 | |
8118 | .previous | |
8119 | EOF | |
8120 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8121 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8122 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8123 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8124 | : | |
8125 | else | |
d1accaa3 JJ |
8126 | gcc_cv_as_subsections="working .subsection -1" |
8127 | cat >> confdefs.h <<\EOF | |
8128 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8129 | EOF | |
8130 | ||
8131 | fi | |
8132 | fi | |
8133 | fi | |
8134 | fi | |
8135 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8136 | fi | |
8137 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8138 | ||
53b5ce19 | 8139 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 |
01e39005 | 8140 | echo "configure:8141: checking assembler instructions" >&5 |
53b5ce19 JW |
8141 | gcc_cv_as_instructions= |
8142 | if test x$gcc_cv_as != x; then | |
8143 | set "filds fists" "filds mem; fists mem" | |
8144 | while test $# -gt 0 | |
8145 | do | |
8146 | echo "$2" > conftest.s | |
8147 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8148 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
8149 | cat >> confdefs.h <<EOF | |
8150 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
8151 | EOF | |
8152 | ||
8153 | fi | |
8154 | shift 2 | |
8155 | done | |
8156 | rm -f conftest.s conftest.o | |
8157 | fi | |
8158 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
8159 | ||
861bb6c1 | 8160 | # Figure out what language subdirectories are present. |
71205e0b MH |
8161 | # Look if the user specified --enable-languages="..."; if not, use |
8162 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8163 | # go away some day. | |
8164 | if test x"${enable_languages+set}" != xset; then | |
8165 | if test x"${LANGUAGES+set}" = xset; then | |
8166 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8167 | else | |
8168 | enable_languages=all | |
8169 | fi | |
8170 | fi | |
861bb6c1 JL |
8171 | subdirs= |
8172 | for lang in ${srcdir}/*/config-lang.in .. | |
8173 | do | |
8174 | case $lang in | |
8175 | ..) ;; | |
8176 | # The odd quoting in the next line works around | |
8177 | # an apparent bug in bash 1.12 on linux. | |
8178 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8179 | *) |
8180 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8181 | if test "x$lang_alias" = x | |
8182 | then | |
8183 | echo "$lang doesn't set \$language." 1>&2 | |
8184 | exit 1 | |
8185 | fi | |
8186 | if test x"${enable_languages}" = xall; then | |
8187 | add_this_lang=yes | |
8188 | else | |
8189 | case "${enable_languages}" in | |
8190 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8191 | add_this_lang=yes | |
8192 | ;; | |
8193 | * ) | |
8194 | add_this_lang=no | |
8195 | ;; | |
8196 | esac | |
8197 | fi | |
8198 | if test x"${add_this_lang}" = xyes; then | |
8199 | case $lang in | |
8200 | ${srcdir}/ada/config-lang.in) | |
8201 | if test x$gnat = xyes ; then | |
8202 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8203 | fi | |
8204 | ;; | |
8205 | *) | |
8206 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8207 | ;; | |
8208 | esac | |
8209 | fi | |
8210 | ;; | |
861bb6c1 JL |
8211 | esac |
8212 | done | |
8213 | ||
f24af81b TT |
8214 | # Make gthr-default.h if we have a thread file. |
8215 | gthread_flags= | |
75bffa71 | 8216 | if test $thread_file != single; then |
f24af81b | 8217 | rm -f gthr-default.h |
db0d1ed9 | 8218 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8219 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8220 | fi | |
8221 | ||
8222 | ||
861bb6c1 JL |
8223 | # Make empty files to contain the specs and options for each language. |
8224 | # Then add #include lines to for a compiler that has specs and/or options. | |
8225 | ||
8226 | lang_specs_files= | |
8227 | lang_options_files= | |
3103b7db ML |
8228 | lang_tree_files= |
8229 | rm -f specs.h options.h gencheck.h | |
8230 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8231 | for subdir in . $subdirs |
8232 | do | |
75bffa71 | 8233 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8234 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8235 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8236 | fi | |
75bffa71 | 8237 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8238 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8239 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8240 | fi | |
3103b7db ML |
8241 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8242 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8243 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8244 | fi | |
861bb6c1 JL |
8245 | done |
8246 | ||
8247 | # These (without "all_") are set in each config-lang.in. | |
8248 | # `language' must be a single word so is spelled singularly. | |
8249 | all_languages= | |
8250 | all_boot_languages= | |
8251 | all_compilers= | |
8252 | all_stagestuff= | |
8253 | all_diff_excludes= | |
4f3ae93c | 8254 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile' |
861bb6c1 JL |
8255 | # List of language makefile fragments. |
8256 | all_lang_makefiles= | |
8257 | all_headers= | |
8258 | all_lib2funcs= | |
8259 | ||
8260 | # Add the language fragments. | |
8261 | # Languages are added via two mechanisms. Some information must be | |
8262 | # recorded in makefile variables, these are defined in config-lang.in. | |
8263 | # We accumulate them and plug them into the main Makefile. | |
8264 | # The other mechanism is a set of hooks for each of the main targets | |
8265 | # like `clean', `install', etc. | |
8266 | ||
8267 | language_fragments="Make-lang" | |
8268 | language_hooks="Make-hooks" | |
8269 | oldstyle_subdirs= | |
8270 | ||
8271 | for s in .. $subdirs | |
8272 | do | |
75bffa71 | 8273 | if test $s != ".." |
861bb6c1 JL |
8274 | then |
8275 | language= | |
8276 | boot_language= | |
8277 | compilers= | |
8278 | stagestuff= | |
8279 | diff_excludes= | |
8280 | headers= | |
8281 | outputs= | |
8282 | lib2funcs= | |
8283 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 8284 | if test "x$language" = x |
861bb6c1 JL |
8285 | then |
8286 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
8287 | exit 1 | |
8288 | fi | |
8289 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
8290 | all_languages="$all_languages $language" | |
75bffa71 | 8291 | if test "x$boot_language" = xyes |
861bb6c1 JL |
8292 | then |
8293 | all_boot_languages="$all_boot_languages $language" | |
8294 | fi | |
8295 | all_compilers="$all_compilers $compilers" | |
8296 | all_stagestuff="$all_stagestuff $stagestuff" | |
8297 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
8298 | all_headers="$all_headers $headers" | |
8299 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 8300 | if test x$outputs = x |
861bb6c1 JL |
8301 | then |
8302 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
8303 | fi | |
8304 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
8305 | fi | |
8306 | done | |
8307 | ||
8308 | # Since we can't use `::' targets, we link each language in | |
8309 | # with a set of hooks, reached indirectly via lang.${target}. | |
8310 | ||
8311 | rm -f Make-hooks | |
8312 | touch Make-hooks | |
8313 | target_list="all.build all.cross start.encap rest.encap \ | |
8314 | info dvi \ | |
8315 | install-normal install-common install-info install-man \ | |
8316 | uninstall distdir \ | |
8317 | mostlyclean clean distclean extraclean maintainer-clean \ | |
8318 | stage1 stage2 stage3 stage4" | |
8319 | for t in $target_list | |
8320 | do | |
8321 | x= | |
ab87f8c8 | 8322 | for lang in .. $all_languages |
861bb6c1 | 8323 | do |
ab87f8c8 JL |
8324 | if test $lang != ".."; then |
8325 | x="$x $lang.$t" | |
861bb6c1 JL |
8326 | fi |
8327 | done | |
8328 | echo "lang.$t: $x" >> Make-hooks | |
8329 | done | |
8330 | ||
8331 | # If we're not building in srcdir, create .gdbinit. | |
8332 | ||
75bffa71 | 8333 | if test ! -f Makefile.in; then |
861bb6c1 JL |
8334 | echo "dir ." > .gdbinit |
8335 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 8336 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
8337 | then |
8338 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
8339 | fi | |
75bffa71 | 8340 | if test "x$subdirs" != x; then |
861bb6c1 JL |
8341 | for s in $subdirs |
8342 | do | |
8343 | echo "dir ${srcdir}/$s" >> .gdbinit | |
8344 | done | |
8345 | fi | |
8346 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
8347 | fi | |
8348 | ||
88111b26 JL |
8349 | # Define variables host_canonical and build_canonical |
8350 | # because some Cygnus local changes in the Makefile depend on them. | |
8351 | build_canonical=${build} | |
8352 | host_canonical=${host} | |
8353 | target_subdir= | |
75bffa71 | 8354 | if test "${host}" != "${target}" ; then |
88111b26 JL |
8355 | target_subdir=${target}/ |
8356 | fi | |
8357 | ||
8358 | ||
8359 | ||
8360 | ||
dec88383 DE |
8361 | # If this is using newlib, then define inhibit_libc in |
8362 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
8363 | # libgcc.a, but that's OK because newib should have its own version of | |
8364 | # assert.h. | |
8365 | inhibit_libc= | |
75bffa71 | 8366 | if test x$with_newlib = xyes; then |
dec88383 DE |
8367 | inhibit_libc=-Dinhibit_libc |
8368 | fi | |
8369 | ||
8370 | ||
8c660648 JL |
8371 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
8372 | sched_prefix= | |
8373 | sched_cflags= | |
75bffa71 | 8374 | if test x$enable_haifa = xyes; then |
8c660648 JL |
8375 | echo "Using the Haifa scheduler." |
8376 | sched_prefix=haifa- | |
8377 | sched_cflags=-DHAIFA | |
8378 | fi | |
8379 | ||
8380 | ||
75bffa71 | 8381 | if test x$enable_haifa != x; then |
8c660648 | 8382 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
81814e35 | 8383 | for x in genattrtab.o toplev.o *sched.o; do |
75bffa71 | 8384 | if test -f $x; then |
8c660648 JL |
8385 | echo "Removing $x" |
8386 | rm -f $x | |
8387 | fi | |
8388 | done | |
8389 | fi | |
8390 | ||
8f8d3278 NC |
8391 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
8392 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
8393 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
8394 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
8395 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
8396 | # make and thus we'd get different behavior depending on where we built the | |
8397 | # sources. | |
5949a9fc | 8398 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
8399 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
8400 | else | |
8f8d3278 NC |
8401 | # An explanation of the sed strings: |
8402 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
8403 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
8404 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
8405 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
8406 | # | |
8407 | # (*) Note this pattern overwrites the first character of the string | |
8408 | # with a forward slash if one is not already present. This is not a | |
8409 | # problem because the exact names of the sub-directories concerned is | |
8410 | # unimportant, just the number of them matters. | |
8411 | # | |
8412 | # The practical upshot of these patterns is like this: | |
8413 | # | |
8414 | # prefix exec_prefix result | |
8415 | # ------ ----------- ------ | |
8416 | # /foo /foo/bar ../ | |
8417 | # /foo/ /foo/bar ../ | |
8418 | # /foo /foo/bar/ ../ | |
8419 | # /foo/ /foo/bar/ ../ | |
8420 | # /foo /foo/bar/ugg ../../ | |
8421 | # | |
4c112cda NC |
8422 | dollar='$$' |
8423 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
8424 | fi |
8425 | ||
8426 | ||
2ce3c6c6 | 8427 | |
7e717196 JL |
8428 | # Nothing to do for FLOAT_H, float_format already handled. |
8429 | objdir=`pwd` | |
8430 | ||
8431 | ||
861bb6c1 JL |
8432 | # Process the language and host/target makefile fragments. |
8433 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
8434 | ||
8435 | # Substitute configuration variables | |
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
8453 | ||
8454 | ||
8455 | ||
8456 | ||
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
9b16d2c4 | 8482 | |
e9a25f70 | 8483 | |
6e26218f | 8484 | |
c8724862 | 8485 | |
e061d1ce | 8486 | |
f1943b77 | 8487 | |
0b9d02c6 | 8488 | |
3103b7db | 8489 | |
d8bb17c8 | 8490 | |
9fc9b82a L |
8491 | |
8492 | ||
df37e3db | 8493 | |
5aa82ace | 8494 | |
861bb6c1 JL |
8495 | |
8496 | ||
8497 | # Echo that links are built | |
75bffa71 | 8498 | if test x$host = x$target |
861bb6c1 JL |
8499 | then |
8500 | str1="native " | |
8501 | else | |
8502 | str1="cross-" | |
8503 | str2=" from $host" | |
8504 | fi | |
8505 | ||
75bffa71 | 8506 | if test x$host != x$build |
861bb6c1 JL |
8507 | then |
8508 | str3=" on a $build system" | |
8509 | fi | |
8510 | ||
75bffa71 | 8511 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8512 | then |
8513 | str4= | |
8514 | fi | |
8515 | ||
8516 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
8517 | ||
75bffa71 | 8518 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8519 | then |
8520 | echo " ${str2}${str3}." 1>&2 | |
8521 | fi | |
8522 | ||
f6cb0e63 | 8523 | # Truncate the target if necessary |
75bffa71 | 8524 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
8525 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
8526 | fi | |
8527 | ||
861bb6c1 JL |
8528 | # Configure the subdirectories |
8529 | # AC_CONFIG_SUBDIRS($subdirs) | |
8530 | ||
8531 | # Create the Makefile | |
8532 | # and configure language subdirectories | |
8533 | trap '' 1 2 15 | |
8534 | cat > confcache <<\EOF | |
8535 | # This file is a shell script that caches the results of configure | |
8536 | # tests run on this system so they can be shared between configure | |
8537 | # scripts and configure runs. It is not useful on other systems. | |
8538 | # If it contains results you don't want to keep, you may remove or edit it. | |
8539 | # | |
8540 | # By default, configure uses ./config.cache as the cache file, | |
8541 | # creating it if it does not exist already. You can give configure | |
8542 | # the --cache-file=FILE option to use a different cache file; that is | |
8543 | # what configure does when it calls configure scripts in | |
8544 | # subdirectories, so they share the cache. | |
8545 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8546 | # config.status only pays attention to the cache file if you give it the | |
8547 | # --recheck option to rerun configure. | |
8548 | # | |
8549 | EOF | |
8550 | # The following way of writing the cache mishandles newlines in values, | |
8551 | # but we know of no workaround that is simple, portable, and efficient. | |
8552 | # So, don't put newlines in cache variables' values. | |
8553 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8554 | # and sets the high bit in the cache file unless we assign to the vars. | |
8555 | (set) 2>&1 | | |
b27d2bd5 | 8556 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
8557 | *ac_space=\ *) |
8558 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8559 | # turns \\\\ into \\, and sed turns \\ into \). | |
8560 | sed -n \ | |
8561 | -e "s/'/'\\\\''/g" \ | |
8562 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8563 | ;; | |
8564 | *) | |
8565 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8566 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8567 | ;; | |
8568 | esac >> confcache | |
8569 | if cmp -s $cache_file confcache; then | |
8570 | : | |
8571 | else | |
8572 | if test -w $cache_file; then | |
8573 | echo "updating cache $cache_file" | |
8574 | cat confcache > $cache_file | |
8575 | else | |
8576 | echo "not updating unwritable cache $cache_file" | |
8577 | fi | |
8578 | fi | |
8579 | rm -f confcache | |
8580 | ||
8581 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8582 | ||
8583 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8584 | # Let make expand exec_prefix. | |
8585 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8586 | ||
8587 | # Any assignment to VPATH causes Sun make to only execute | |
8588 | # the first set of double-colon rules, so remove it if not needed. | |
8589 | # If there is a colon in the path, we need to keep it. | |
8590 | if test "x$srcdir" = x.; then | |
8591 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8592 | fi | |
8593 | ||
8594 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8595 | ||
8596 | DEFS=-DHAVE_CONFIG_H | |
8597 | ||
8598 | # Without the "./", some shells look in PATH for config.status. | |
8599 | : ${CONFIG_STATUS=./config.status} | |
8600 | ||
8601 | echo creating $CONFIG_STATUS | |
8602 | rm -f $CONFIG_STATUS | |
8603 | cat > $CONFIG_STATUS <<EOF | |
8604 | #! /bin/sh | |
8605 | # Generated automatically by configure. | |
8606 | # Run this file to recreate the current configuration. | |
8607 | # This directory was configured as follows, | |
8608 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8609 | # | |
8610 | # $0 $ac_configure_args | |
8611 | # | |
8612 | # Compiler output produced by configure, useful for debugging | |
8613 | # configure, is in ./config.log if it exists. | |
8614 | ||
8615 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8616 | for ac_option | |
8617 | do | |
8618 | case "\$ac_option" in | |
8619 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8620 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8621 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8622 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 8623 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
8624 | exit 0 ;; |
8625 | -help | --help | --hel | --he | --h) | |
8626 | echo "\$ac_cs_usage"; exit 0 ;; | |
8627 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
8628 | esac | |
8629 | done | |
8630 | ||
8631 | ac_given_srcdir=$srcdir | |
861bb6c1 | 8632 | |
b7cb92ad | 8633 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
8634 | EOF |
8635 | cat >> $CONFIG_STATUS <<EOF | |
8636 | ||
8637 | # Protect against being on the right side of a sed subst in config.status. | |
8638 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8639 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8640 | $ac_vpsub | |
8641 | $extrasub | |
6f144c9c | 8642 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
8643 | s%@CFLAGS@%$CFLAGS%g |
8644 | s%@CPPFLAGS@%$CPPFLAGS%g | |
8645 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 8646 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
8647 | s%@DEFS@%$DEFS%g |
8648 | s%@LDFLAGS@%$LDFLAGS%g | |
8649 | s%@LIBS@%$LIBS%g | |
8650 | s%@exec_prefix@%$exec_prefix%g | |
8651 | s%@prefix@%$prefix%g | |
8652 | s%@program_transform_name@%$program_transform_name%g | |
8653 | s%@bindir@%$bindir%g | |
8654 | s%@sbindir@%$sbindir%g | |
8655 | s%@libexecdir@%$libexecdir%g | |
8656 | s%@datadir@%$datadir%g | |
8657 | s%@sysconfdir@%$sysconfdir%g | |
8658 | s%@sharedstatedir@%$sharedstatedir%g | |
8659 | s%@localstatedir@%$localstatedir%g | |
8660 | s%@libdir@%$libdir%g | |
8661 | s%@includedir@%$includedir%g | |
8662 | s%@oldincludedir@%$oldincludedir%g | |
8663 | s%@infodir@%$infodir%g | |
8664 | s%@mandir@%$mandir%g | |
8665 | s%@host@%$host%g | |
8666 | s%@host_alias@%$host_alias%g | |
8667 | s%@host_cpu@%$host_cpu%g | |
8668 | s%@host_vendor@%$host_vendor%g | |
8669 | s%@host_os@%$host_os%g | |
8670 | s%@target@%$target%g | |
8671 | s%@target_alias@%$target_alias%g | |
8672 | s%@target_cpu@%$target_cpu%g | |
8673 | s%@target_vendor@%$target_vendor%g | |
8674 | s%@target_os@%$target_os%g | |
8675 | s%@build@%$build%g | |
8676 | s%@build_alias@%$build_alias%g | |
8677 | s%@build_cpu@%$build_cpu%g | |
8678 | s%@build_vendor@%$build_vendor%g | |
8679 | s%@build_os@%$build_os%g | |
e9a25f70 | 8680 | s%@CC@%$CC%g |
61842080 | 8681 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 8682 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
8683 | s%@AWK@%$AWK%g |
8684 | s%@LEX@%$LEX%g | |
8685 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
8686 | s%@LN@%$LN%g |
8687 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
8688 | s%@RANLIB@%$RANLIB%g |
8689 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
8690 | s%@INSTALL@%$INSTALL%g |
8691 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
8692 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 8693 | s%@CPP@%$CPP%g |
bcf12124 | 8694 | s%@gnat@%$gnat%g |
0a4b6309 RL |
8695 | s%@vfprintf@%$vfprintf%g |
8696 | s%@doprint@%$doprint%g | |
861bb6c1 | 8697 | s%@manext@%$manext%g |
992d1248 | 8698 | s%@objext@%$objext%g |
ab87f8c8 JL |
8699 | s%@PACKAGE@%$PACKAGE%g |
8700 | s%@VERSION@%$VERSION%g | |
8701 | s%@ALLOCA@%$ALLOCA%g | |
8702 | s%@USE_NLS@%$USE_NLS%g | |
8703 | s%@MSGFMT@%$MSGFMT%g | |
8704 | s%@GMSGFMT@%$GMSGFMT%g | |
8705 | s%@XGETTEXT@%$XGETTEXT%g | |
8706 | s%@GENCAT@%$GENCAT%g | |
8707 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
8708 | s%@CATALOGS@%$CATALOGS%g | |
8709 | s%@CATOBJEXT@%$CATOBJEXT%g | |
8710 | s%@DATADIRNAME@%$DATADIRNAME%g | |
8711 | s%@GMOFILES@%$GMOFILES%g | |
8712 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
8713 | s%@INTLDEPS@%$INTLDEPS%g | |
8714 | s%@INTLLIBS@%$INTLLIBS%g | |
8715 | s%@INTLOBJS@%$INTLOBJS%g | |
8716 | s%@POFILES@%$POFILES%g | |
8717 | s%@POSUB@%$POSUB%g | |
8718 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
8719 | s%@GT_NO@%$GT_NO%g | |
8720 | s%@GT_YES@%$GT_YES%g | |
8721 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
8722 | s%@l@%$l%g | |
f24af81b | 8723 | s%@gthread_flags@%$gthread_flags%g |
88111b26 JL |
8724 | s%@build_canonical@%$build_canonical%g |
8725 | s%@host_canonical@%$host_canonical%g | |
8726 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 8727 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
8728 | s%@sched_prefix@%$sched_prefix%g |
8729 | s%@sched_cflags@%$sched_cflags%g | |
d062c304 | 8730 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 8731 | s%@dollar@%$dollar%g |
7e717196 | 8732 | s%@objdir@%$objdir%g |
861bb6c1 | 8733 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
8734 | s%@all_boot_languages@%$all_boot_languages%g |
8735 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 8736 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 8737 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
8738 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
8739 | s%@all_languages@%$all_languages%g | |
8740 | s%@all_lib2funcs@%$all_lib2funcs%g | |
8741 | s%@all_stagestuff@%$all_stagestuff%g | |
8742 | s%@build_exeext@%$build_exeext%g | |
8743 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
8744 | s%@build_xm_file_list@%$build_xm_file_list%g | |
8745 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 8746 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 8747 | s%@cpp_install_dir@%$cpp_install_dir%g |
e061d1ce | 8748 | s%@cpp_main@%$cpp_main%g |
4f3ae93c BK |
8749 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
8750 | s%@dep_tmake_file@%$dep_tmake_file%g | |
8751 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 8752 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 8753 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
8754 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
8755 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 8756 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
8757 | s%@extra_parts@%$extra_parts%g |
8758 | s%@extra_passes@%$extra_passes%g | |
8759 | s%@extra_programs@%$extra_programs%g | |
8760 | s%@fixinc_defs@%$fixinc_defs%g | |
8761 | s%@float_h_file@%$float_h_file%g | |
8762 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
8763 | s%@gcc_version@%$gcc_version%g | |
8764 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
8765 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 8766 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 8767 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c BK |
8768 | s%@install@%$install%g |
8769 | s%@JAVAGC@%$JAVAGC%g | |
861bb6c1 | 8770 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 8771 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 8772 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 8773 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 8774 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
8775 | s%@md_file@%$md_file%g |
8776 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
8777 | s%@out_file@%$out_file%g | |
8778 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 8779 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 8780 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
8781 | s%@thread_file@%$thread_file%g |
8782 | s%@tm_file_list@%$tm_file_list%g | |
8783 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
8784 | /@target_overrides@/r $target_overrides |
8785 | s%@target_overrides@%%g | |
8786 | /@host_overrides@/r $host_overrides | |
8787 | s%@host_overrides@%%g | |
8788 | s%@cross_defines@%$cross_defines%g | |
8789 | /@cross_overrides@/r $cross_overrides | |
8790 | s%@cross_overrides@%%g | |
8791 | /@build_overrides@/r $build_overrides | |
8792 | s%@build_overrides@%%g | |
8793 | /@language_fragments@/r $language_fragments | |
8794 | s%@language_fragments@%%g | |
8795 | /@language_hooks@/r $language_hooks | |
8796 | s%@language_hooks@%%g | |
8797 | ||
8798 | CEOF | |
8799 | EOF | |
8800 | ||
8801 | cat >> $CONFIG_STATUS <<\EOF | |
8802 | ||
8803 | # Split the substitutions into bite-sized pieces for seds with | |
8804 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8805 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8806 | ac_file=1 # Number of current file. | |
8807 | ac_beg=1 # First line for current file. | |
8808 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8809 | ac_more_lines=: | |
8810 | ac_sed_cmds="" | |
8811 | while $ac_more_lines; do | |
8812 | if test $ac_beg -gt 1; then | |
8813 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8814 | else | |
8815 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8816 | fi | |
8817 | if test ! -s conftest.s$ac_file; then | |
8818 | ac_more_lines=false | |
8819 | rm -f conftest.s$ac_file | |
8820 | else | |
8821 | if test -z "$ac_sed_cmds"; then | |
8822 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
8823 | else | |
8824 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8825 | fi | |
8826 | ac_file=`expr $ac_file + 1` | |
8827 | ac_beg=$ac_end | |
8828 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8829 | fi | |
8830 | done | |
8831 | if test -z "$ac_sed_cmds"; then | |
8832 | ac_sed_cmds=cat | |
8833 | fi | |
8834 | EOF | |
8835 | ||
8836 | cat >> $CONFIG_STATUS <<EOF | |
8837 | ||
8838 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
8839 | EOF | |
8840 | cat >> $CONFIG_STATUS <<\EOF | |
8841 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8842 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8843 | case "$ac_file" in | |
8844 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8845 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8846 | *) ac_file_in="${ac_file}.in" ;; | |
8847 | esac | |
8848 | ||
8849 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8850 | ||
8851 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8852 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8853 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8854 | # The file is in a subdirectory. | |
8855 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8856 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8857 | # A "../" for each directory in $ac_dir_suffix. | |
8858 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8859 | else | |
8860 | ac_dir_suffix= ac_dots= | |
8861 | fi | |
8862 | ||
8863 | case "$ac_given_srcdir" in | |
8864 | .) srcdir=. | |
8865 | if test -z "$ac_dots"; then top_srcdir=. | |
8866 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8867 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8868 | *) # Relative path. | |
8869 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8870 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8871 | esac | |
8872 | ||
861bb6c1 JL |
8873 | |
8874 | echo creating "$ac_file" | |
8875 | rm -f "$ac_file" | |
8876 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8877 | case "$ac_file" in | |
8878 | *Makefile*) ac_comsub="1i\\ | |
8879 | # $configure_input" ;; | |
8880 | *) ac_comsub= ;; | |
8881 | esac | |
8882 | ||
8883 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8884 | sed -e "$ac_comsub | |
8885 | s%@configure_input@%$configure_input%g | |
8886 | s%@srcdir@%$srcdir%g | |
8887 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
8888 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
8889 | fi; done | |
8890 | rm -f conftest.s* | |
8891 | ||
8892 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8893 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8894 | # | |
8895 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8896 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8897 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8898 | ac_dC='\3' | |
8899 | ac_dD='%g' | |
8900 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8901 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8902 | ac_uB='\([ ]\)%\1#\2define\3' | |
8903 | ac_uC=' ' | |
8904 | ac_uD='\4%g' | |
8905 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8906 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8907 | ac_eB='$%\1#\2define\3' | |
8908 | ac_eC=' ' | |
8909 | ac_eD='%g' | |
8910 | ||
8911 | if test "${CONFIG_HEADERS+set}" != set; then | |
8912 | EOF | |
8913 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 8914 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
8915 | EOF |
8916 | cat >> $CONFIG_STATUS <<\EOF | |
8917 | fi | |
8918 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8919 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8920 | case "$ac_file" in | |
8921 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8922 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8923 | *) ac_file_in="${ac_file}.in" ;; | |
8924 | esac | |
8925 | ||
8926 | echo creating $ac_file | |
8927 | ||
8928 | rm -f conftest.frag conftest.in conftest.out | |
8929 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8930 | cat $ac_file_inputs > conftest.in | |
8931 | ||
8932 | EOF | |
8933 | ||
8934 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
8935 | # the proper values into config.h.in to produce config.h. And first: | |
8936 | # Protect against being on the right side of a sed subst in config.status. | |
8937 | # Protect against being in an unquoted here document in config.status. | |
8938 | rm -f conftest.vals | |
8939 | cat > conftest.hdr <<\EOF | |
8940 | s/[\\&%]/\\&/g | |
8941 | s%[\\$`]%\\&%g | |
8942 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
8943 | s%ac_d%ac_u%gp | |
8944 | s%ac_u%ac_e%gp | |
8945 | EOF | |
8946 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
8947 | rm -f conftest.hdr | |
8948 | ||
8949 | # This sed command replaces #undef with comments. This is necessary, for | |
8950 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8951 | # on some systems where configure will not decide to define it. | |
8952 | cat >> conftest.vals <<\EOF | |
8953 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
8954 | EOF | |
8955 | ||
8956 | # Break up conftest.vals because some shells have a limit on | |
8957 | # the size of here documents, and old seds have small limits too. | |
8958 | ||
8959 | rm -f conftest.tail | |
8960 | while : | |
8961 | do | |
8962 | ac_lines=`grep -c . conftest.vals` | |
8963 | # grep -c gives empty output for an empty file on some AIX systems. | |
8964 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
8965 | # Write a limited-size here document to conftest.frag. | |
8966 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
8967 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
8968 | echo 'CEOF | |
8969 | sed -f conftest.frag conftest.in > conftest.out | |
8970 | rm -f conftest.in | |
8971 | mv conftest.out conftest.in | |
8972 | ' >> $CONFIG_STATUS | |
8973 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
8974 | rm -f conftest.vals | |
8975 | mv conftest.tail conftest.vals | |
8976 | done | |
8977 | rm -f conftest.vals | |
8978 | ||
8979 | cat >> $CONFIG_STATUS <<\EOF | |
8980 | rm -f conftest.frag conftest.h | |
8981 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
8982 | cat conftest.in >> conftest.h | |
8983 | rm -f conftest.in | |
8984 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
8985 | echo "$ac_file is unchanged" | |
8986 | rm -f conftest.h | |
8987 | else | |
8988 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8989 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8990 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8991 | # The file is in a subdirectory. | |
8992 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8993 | fi | |
8994 | rm -f $ac_file | |
8995 | mv conftest.h $ac_file | |
8996 | fi | |
8997 | fi; done | |
8998 | ||
ab87f8c8 JL |
8999 | EOF |
9000 | ||
9001 | cat >> $CONFIG_STATUS <<EOF | |
9002 | ac_sources="$nls_cv_header_libgt" | |
9003 | ac_dests="$nls_cv_header_intl" | |
9004 | EOF | |
9005 | ||
9006 | cat >> $CONFIG_STATUS <<\EOF | |
9007 | srcdir=$ac_given_srcdir | |
9008 | while test -n "$ac_sources"; do | |
9009 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9010 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9011 | ||
9012 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9013 | ||
9014 | if test ! -r $srcdir/$ac_source; then | |
9015 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9016 | fi | |
9017 | rm -f $ac_dest | |
9018 | ||
9019 | # Make relative symlinks. | |
9020 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9021 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9022 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9023 | # The dest file is in a subdirectory. | |
9024 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9025 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9026 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9027 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9028 | else | |
9029 | ac_dest_dir_suffix= ac_dots= | |
9030 | fi | |
9031 | ||
9032 | case "$srcdir" in | |
9033 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9034 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9035 | esac | |
9036 | ||
9037 | # Make a symlink if possible; otherwise try a hard link. | |
9038 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9039 | ln $srcdir/$ac_source $ac_dest; then : | |
9040 | else | |
9041 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9042 | fi | |
9043 | done | |
861bb6c1 JL |
9044 | EOF |
9045 | cat >> $CONFIG_STATUS <<EOF | |
9046 | ||
ab87f8c8 | 9047 | |
861bb6c1 JL |
9048 | host='${host}' |
9049 | build='${build}' | |
9050 | target='${target}' | |
9051 | target_alias='${target_alias}' | |
9052 | srcdir='${srcdir}' | |
9053 | subdirs='${subdirs}' | |
9054 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9055 | symbolic_link='${symbolic_link}' | |
9056 | program_transform_set='${program_transform_set}' | |
9057 | program_transform_name='${program_transform_name}' | |
9058 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9059 | host_xmake_file='${host_xmake_file}' | |
9060 | dep_tmake_file='${dep_tmake_file}' | |
9061 | tmake_file='${tmake_file}' | |
9062 | thread_file='${thread_file}' | |
f1943b77 MH |
9063 | gcc_version='${gcc_version}' |
9064 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9065 | local_prefix='${local_prefix}' |
9066 | build_install_headers_dir='${build_install_headers_dir}' | |
9067 | build_exeext='${build_exeext}' | |
6e26218f | 9068 | host_exeext='${host_exeext}' |
7ed46111 | 9069 | out_file='${out_file}' |
861bb6c1 JL |
9070 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9071 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9072 | target_list='${target_list}' |
9073 | target_overrides='${target_overrides}' | |
9074 | host_overrides='${host_overrides}' | |
9075 | cross_defines='${cross_defines}' | |
9076 | cross_overrides='${cross_overrides}' | |
9077 | build_overrides='${build_overrides}' | |
9fc9b82a | 9078 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9079 | |
9080 | EOF | |
9081 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9082 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9083 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9084 | esac | |
861bb6c1 JL |
9085 | |
9086 | . $srcdir/configure.lang | |
9087 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9088 | xauto-host.h:config.in) |
861bb6c1 JL |
9089 | echo > cstamp-h ;; |
9090 | esac | |
93cf819d BK |
9091 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9092 | # bootstrapping and the installation procedure can still use | |
9093 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9094 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9095 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9096 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9097 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9098 | for d in .. ${subdirs} ; do |
75bffa71 | 9099 | if test $d != ..; then |
4e8a434e BK |
9100 | STARTDIR=`pwd` |
9101 | cd $d | |
9102 | for t in stage1 stage2 stage3 stage4 include | |
9103 | do | |
9104 | rm -f $t | |
9105 | $symbolic_link ../$t $t 2>/dev/null | |
9106 | done | |
9107 | cd $STARTDIR | |
93cf819d BK |
9108 | fi |
9109 | done | |
9110 | else true ; fi | |
ab87f8c8 JL |
9111 | # Avoid having to add intl to our include paths. |
9112 | if test -f intl/libintl.h; then | |
9113 | echo creating libintl.h | |
9114 | echo '#include "intl/libintl.h"' >libintl.h | |
9115 | fi | |
861bb6c1 JL |
9116 | |
9117 | exit 0 | |
9118 | EOF | |
9119 | chmod +x $CONFIG_STATUS | |
9120 | rm -fr confdefs* $ac_clean_files | |
9121 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9122 |