]>
Commit | Line | Data |
---|---|---|
861bb6c1 JL |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
f24af81b | 4 | # Generated automatically using autoconf version 2.12.1 |
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." | |
16 | ac_help="$ac_help | |
17 | --with-gnu-as arrange to work with GNU as." | |
18 | ac_help="$ac_help | |
19 | --with-stabs arrange to use stabs instead of host debug format." | |
20 | ac_help="$ac_help | |
21 | --with-elf arrange to use ELF instead of host debug format." | |
22 | ac_help="$ac_help | |
23 | --with-local-prefix=DIR specifies directory to put local include." | |
24 | ac_help="$ac_help | |
25 | --with-gxx-include-dir=DIR | |
26 | specifies directory to put g++ header files." | |
27 | ac_help="$ac_help | |
28 | --enable-c-cpplib Use cpplib for C." | |
9101297d DL |
29 | ac_help="$ac_help |
30 | --enable-haifa Use the experimental scheduler. | |
31 | --disable-haifa Don't use the experimental scheduler for the | |
32 | targets which normally enable it." | |
861bb6c1 JL |
33 | ac_help="$ac_help |
34 | --enable-threads enable thread usage for target GCC. | |
35 | --enable-threads=LIB use LIB thread package for target GCC." | |
36 | ||
37 | # Initialize some variables set by options. | |
38 | # The variables have the same names as the options, with | |
39 | # dashes changed to underlines. | |
40 | build=NONE | |
41 | cache_file=./config.cache | |
42 | exec_prefix=NONE | |
43 | host=NONE | |
44 | no_create= | |
45 | nonopt=NONE | |
46 | no_recursion= | |
47 | prefix=NONE | |
48 | program_prefix=NONE | |
49 | program_suffix=NONE | |
50 | program_transform_name=s,x,x, | |
51 | silent= | |
52 | site= | |
53 | srcdir= | |
54 | target=NONE | |
55 | verbose= | |
56 | x_includes=NONE | |
57 | x_libraries=NONE | |
58 | bindir='${exec_prefix}/bin' | |
59 | sbindir='${exec_prefix}/sbin' | |
60 | libexecdir='${exec_prefix}/libexec' | |
61 | datadir='${prefix}/share' | |
62 | sysconfdir='${prefix}/etc' | |
63 | sharedstatedir='${prefix}/com' | |
64 | localstatedir='${prefix}/var' | |
65 | libdir='${exec_prefix}/lib' | |
66 | includedir='${prefix}/include' | |
67 | oldincludedir='/usr/include' | |
68 | infodir='${prefix}/info' | |
69 | mandir='${prefix}/man' | |
70 | ||
71 | # Initialize some other variables. | |
72 | subdirs= | |
73 | MFLAGS= MAKEFLAGS= | |
f24af81b | 74 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
75 | # Maximum number of lines to put in a shell here document. |
76 | ac_max_here_lines=12 | |
77 | ||
78 | ac_prev= | |
79 | for ac_option | |
80 | do | |
81 | ||
82 | # If the previous option needs an argument, assign it. | |
83 | if test -n "$ac_prev"; then | |
84 | eval "$ac_prev=\$ac_option" | |
85 | ac_prev= | |
86 | continue | |
87 | fi | |
88 | ||
89 | case "$ac_option" in | |
90 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
91 | *) ac_optarg= ;; | |
92 | esac | |
93 | ||
94 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
95 | ||
96 | case "$ac_option" in | |
97 | ||
98 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
99 | ac_prev=bindir ;; | |
100 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
101 | bindir="$ac_optarg" ;; | |
102 | ||
103 | -build | --build | --buil | --bui | --bu) | |
104 | ac_prev=build ;; | |
105 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
106 | build="$ac_optarg" ;; | |
107 | ||
108 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
109 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
110 | ac_prev=cache_file ;; | |
111 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
112 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
113 | cache_file="$ac_optarg" ;; | |
114 | ||
115 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
116 | ac_prev=datadir ;; | |
117 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
118 | | --da=*) | |
119 | datadir="$ac_optarg" ;; | |
120 | ||
121 | -disable-* | --disable-*) | |
122 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
123 | # Reject names that are not valid shell variable names. | |
124 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
126 | fi | |
127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
128 | eval "enable_${ac_feature}=no" ;; | |
129 | ||
130 | -enable-* | --enable-*) | |
131 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
132 | # Reject names that are not valid shell variable names. | |
133 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
135 | fi | |
136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
137 | case "$ac_option" in | |
138 | *=*) ;; | |
139 | *) ac_optarg=yes ;; | |
140 | esac | |
141 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
142 | ||
143 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
144 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
145 | | --exec | --exe | --ex) | |
146 | ac_prev=exec_prefix ;; | |
147 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
148 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
149 | | --exec=* | --exe=* | --ex=*) | |
150 | exec_prefix="$ac_optarg" ;; | |
151 | ||
152 | -gas | --gas | --ga | --g) | |
153 | # Obsolete; use --with-gas. | |
154 | with_gas=yes ;; | |
155 | ||
156 | -help | --help | --hel | --he) | |
157 | # Omit some internal or obsolete options to make the list less imposing. | |
158 | # This message is too long to be a string in the A/UX 3.1 sh. | |
159 | cat << EOF | |
160 | Usage: configure [options] [host] | |
161 | Options: [defaults in brackets after descriptions] | |
162 | Configuration: | |
163 | --cache-file=FILE cache test results in FILE | |
164 | --help print this message | |
165 | --no-create do not create output files | |
166 | --quiet, --silent do not print \`checking...' messages | |
167 | --version print the version of autoconf that created configure | |
168 | Directory and file names: | |
169 | --prefix=PREFIX install architecture-independent files in PREFIX | |
170 | [$ac_default_prefix] | |
171 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
172 | [same as prefix] | |
173 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
174 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
175 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
176 | --datadir=DIR read-only architecture-independent data in DIR | |
177 | [PREFIX/share] | |
178 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
179 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
180 | [PREFIX/com] | |
181 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
182 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
183 | --includedir=DIR C header files in DIR [PREFIX/include] | |
184 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
185 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
186 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
187 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
188 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
189 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
190 | --program-transform-name=PROGRAM | |
191 | run sed PROGRAM on installed program names | |
192 | EOF | |
193 | cat << EOF | |
194 | Host type: | |
195 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
196 | --host=HOST configure for HOST [guessed] | |
197 | --target=TARGET configure for TARGET [TARGET=HOST] | |
198 | Features and packages: | |
199 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
200 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
201 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
202 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
203 | --x-includes=DIR X include files are in DIR | |
204 | --x-libraries=DIR X library files are in DIR | |
205 | EOF | |
206 | if test -n "$ac_help"; then | |
207 | echo "--enable and --with options recognized:$ac_help" | |
208 | fi | |
209 | exit 0 ;; | |
210 | ||
211 | -host | --host | --hos | --ho) | |
212 | ac_prev=host ;; | |
213 | -host=* | --host=* | --hos=* | --ho=*) | |
214 | host="$ac_optarg" ;; | |
215 | ||
216 | -includedir | --includedir | --includedi | --included | --include \ | |
217 | | --includ | --inclu | --incl | --inc) | |
218 | ac_prev=includedir ;; | |
219 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
220 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
221 | includedir="$ac_optarg" ;; | |
222 | ||
223 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
224 | ac_prev=infodir ;; | |
225 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
226 | infodir="$ac_optarg" ;; | |
227 | ||
228 | -libdir | --libdir | --libdi | --libd) | |
229 | ac_prev=libdir ;; | |
230 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
231 | libdir="$ac_optarg" ;; | |
232 | ||
233 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
234 | | --libexe | --libex | --libe) | |
235 | ac_prev=libexecdir ;; | |
236 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
237 | | --libexe=* | --libex=* | --libe=*) | |
238 | libexecdir="$ac_optarg" ;; | |
239 | ||
240 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
241 | | --localstate | --localstat | --localsta | --localst \ | |
242 | | --locals | --local | --loca | --loc | --lo) | |
243 | ac_prev=localstatedir ;; | |
244 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
245 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
246 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
247 | localstatedir="$ac_optarg" ;; | |
248 | ||
249 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
250 | ac_prev=mandir ;; | |
251 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
252 | mandir="$ac_optarg" ;; | |
253 | ||
254 | -nfp | --nfp | --nf) | |
255 | # Obsolete; use --without-fp. | |
256 | with_fp=no ;; | |
257 | ||
258 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
259 | | --no-cr | --no-c) | |
260 | no_create=yes ;; | |
261 | ||
262 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
263 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
264 | no_recursion=yes ;; | |
265 | ||
266 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
267 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
268 | | --oldin | --oldi | --old | --ol | --o) | |
269 | ac_prev=oldincludedir ;; | |
270 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
271 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
272 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
273 | oldincludedir="$ac_optarg" ;; | |
274 | ||
275 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
276 | ac_prev=prefix ;; | |
277 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
278 | prefix="$ac_optarg" ;; | |
279 | ||
280 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
281 | | --program-pre | --program-pr | --program-p) | |
282 | ac_prev=program_prefix ;; | |
283 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
284 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
285 | program_prefix="$ac_optarg" ;; | |
286 | ||
287 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
288 | | --program-suf | --program-su | --program-s) | |
289 | ac_prev=program_suffix ;; | |
290 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
291 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
292 | program_suffix="$ac_optarg" ;; | |
293 | ||
294 | -program-transform-name | --program-transform-name \ | |
295 | | --program-transform-nam | --program-transform-na \ | |
296 | | --program-transform-n | --program-transform- \ | |
297 | | --program-transform | --program-transfor \ | |
298 | | --program-transfo | --program-transf \ | |
299 | | --program-trans | --program-tran \ | |
300 | | --progr-tra | --program-tr | --program-t) | |
301 | ac_prev=program_transform_name ;; | |
302 | -program-transform-name=* | --program-transform-name=* \ | |
303 | | --program-transform-nam=* | --program-transform-na=* \ | |
304 | | --program-transform-n=* | --program-transform-=* \ | |
305 | | --program-transform=* | --program-transfor=* \ | |
306 | | --program-transfo=* | --program-transf=* \ | |
307 | | --program-trans=* | --program-tran=* \ | |
308 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
309 | program_transform_name="$ac_optarg" ;; | |
310 | ||
311 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
312 | | -silent | --silent | --silen | --sile | --sil) | |
313 | silent=yes ;; | |
314 | ||
315 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
316 | ac_prev=sbindir ;; | |
317 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
318 | | --sbi=* | --sb=*) | |
319 | sbindir="$ac_optarg" ;; | |
320 | ||
321 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
322 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
323 | | --sharedst | --shareds | --shared | --share | --shar \ | |
324 | | --sha | --sh) | |
325 | ac_prev=sharedstatedir ;; | |
326 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
327 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
328 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
329 | | --sha=* | --sh=*) | |
330 | sharedstatedir="$ac_optarg" ;; | |
331 | ||
332 | -site | --site | --sit) | |
333 | ac_prev=site ;; | |
334 | -site=* | --site=* | --sit=*) | |
335 | site="$ac_optarg" ;; | |
336 | ||
337 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
338 | ac_prev=srcdir ;; | |
339 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
340 | srcdir="$ac_optarg" ;; | |
341 | ||
342 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
343 | | --syscon | --sysco | --sysc | --sys | --sy) | |
344 | ac_prev=sysconfdir ;; | |
345 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
346 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
347 | sysconfdir="$ac_optarg" ;; | |
348 | ||
349 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
350 | ac_prev=target ;; | |
351 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
352 | target="$ac_optarg" ;; | |
353 | ||
354 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
355 | verbose=yes ;; | |
356 | ||
357 | -version | --version | --versio | --versi | --vers) | |
f24af81b | 358 | echo "configure generated by autoconf version 2.12.1" |
861bb6c1 JL |
359 | exit 0 ;; |
360 | ||
361 | -with-* | --with-*) | |
362 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
363 | # Reject names that are not valid shell variable names. | |
364 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
365 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
366 | fi | |
367 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
368 | case "$ac_option" in | |
369 | *=*) ;; | |
370 | *) ac_optarg=yes ;; | |
371 | esac | |
372 | eval "with_${ac_package}='$ac_optarg'" ;; | |
373 | ||
374 | -without-* | --without-*) | |
375 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
376 | # Reject names that are not valid shell variable names. | |
377 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
378 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
379 | fi | |
380 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
381 | eval "with_${ac_package}=no" ;; | |
382 | ||
383 | --x) | |
384 | # Obsolete; use --with-x. | |
385 | with_x=yes ;; | |
386 | ||
387 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
388 | | --x-incl | --x-inc | --x-in | --x-i) | |
389 | ac_prev=x_includes ;; | |
390 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
391 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
392 | x_includes="$ac_optarg" ;; | |
393 | ||
394 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
395 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
396 | ac_prev=x_libraries ;; | |
397 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
398 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
399 | x_libraries="$ac_optarg" ;; | |
400 | ||
401 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
402 | ;; | |
403 | ||
404 | *) | |
405 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
406 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
407 | fi | |
408 | if test "x$nonopt" != xNONE; then | |
409 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
410 | fi | |
411 | nonopt="$ac_option" | |
412 | ;; | |
413 | ||
414 | esac | |
415 | done | |
416 | ||
417 | if test -n "$ac_prev"; then | |
418 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
419 | fi | |
420 | ||
421 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
422 | ||
423 | # File descriptor usage: | |
424 | # 0 standard input | |
425 | # 1 file creation | |
426 | # 2 errors and warnings | |
427 | # 3 some systems may open it to /dev/tty | |
428 | # 4 used on the Kubota Titan | |
429 | # 6 checking for... messages and results | |
430 | # 5 compiler messages saved in config.log | |
431 | if test "$silent" = yes; then | |
432 | exec 6>/dev/null | |
433 | else | |
434 | exec 6>&1 | |
435 | fi | |
436 | exec 5>./config.log | |
437 | ||
438 | echo "\ | |
439 | This file contains any messages produced by compilers while | |
440 | running configure, to aid debugging if configure makes a mistake. | |
441 | " 1>&5 | |
442 | ||
443 | # Strip out --no-create and --no-recursion so they do not pile up. | |
444 | # Also quote any args containing shell metacharacters. | |
445 | ac_configure_args= | |
446 | for ac_arg | |
447 | do | |
448 | case "$ac_arg" in | |
449 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
450 | | --no-cr | --no-c) ;; | |
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
453 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
454 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
455 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
456 | esac | |
457 | done | |
458 | ||
459 | # NLS nuisances. | |
460 | # Only set these to C if already set. These must not be set unconditionally | |
461 | # because not all systems understand e.g. LANG=C (notably SCO). | |
462 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
463 | # Non-C LC_CTYPE values break the ctype check. | |
464 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
465 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
466 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
467 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
468 | ||
469 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
470 | rm -rf conftest* confdefs.h | |
471 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
472 | echo > confdefs.h | |
473 | ||
474 | # A filename unique to this package, relative to the directory that | |
475 | # configure is in, which we can look for to find out if srcdir is correct. | |
476 | ac_unique_file=tree.c | |
477 | ||
478 | # Find the source files, if location was not specified. | |
479 | if test -z "$srcdir"; then | |
480 | ac_srcdir_defaulted=yes | |
481 | # Try the directory containing this script, then its parent. | |
482 | ac_prog=$0 | |
483 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
484 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
485 | srcdir=$ac_confdir | |
486 | if test ! -r $srcdir/$ac_unique_file; then | |
487 | srcdir=.. | |
488 | fi | |
489 | else | |
490 | ac_srcdir_defaulted=no | |
491 | fi | |
492 | if test ! -r $srcdir/$ac_unique_file; then | |
493 | if test "$ac_srcdir_defaulted" = yes; then | |
494 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
495 | else | |
496 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
497 | fi | |
498 | fi | |
499 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
500 | ||
501 | # Prefer explicitly selected file to automatically selected ones. | |
502 | if test -z "$CONFIG_SITE"; then | |
503 | if test "x$prefix" != xNONE; then | |
504 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
505 | else | |
506 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
507 | fi | |
508 | fi | |
509 | for ac_site_file in $CONFIG_SITE; do | |
510 | if test -r "$ac_site_file"; then | |
511 | echo "loading site script $ac_site_file" | |
512 | . "$ac_site_file" | |
513 | fi | |
514 | done | |
515 | ||
516 | if test -r "$cache_file"; then | |
517 | echo "loading cache $cache_file" | |
518 | . $cache_file | |
519 | else | |
520 | echo "creating cache $cache_file" | |
521 | > $cache_file | |
522 | fi | |
523 | ||
524 | ac_ext=c | |
525 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
526 | ac_cpp='$CPP $CPPFLAGS' | |
527 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
528 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
529 | cross_compiling=$ac_cv_prog_cc_cross | |
530 | ||
531 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
532 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
533 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
534 | ac_n= ac_c=' | |
535 | ' ac_t=' ' | |
536 | else | |
537 | ac_n=-n ac_c= ac_t= | |
538 | fi | |
539 | else | |
540 | ac_n= ac_c='\c' ac_t= | |
541 | fi | |
542 | ||
543 | ||
544 | ||
545 | ||
861bb6c1 JL |
546 | remove=rm |
547 | hard_link=ln | |
548 | symbolic_link='ln -s' | |
549 | copy=cp | |
550 | ||
551 | # Check for additional parameters | |
552 | ||
553 | # With GNU ld | |
554 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
555 | if test "${with_gnu_ld+set}" = set; then | |
556 | withval="$with_gnu_ld" | |
557 | gnu_ld=yes | |
558 | else | |
559 | gnu_ld=no | |
560 | fi | |
561 | ||
562 | ||
563 | # With GNU as | |
564 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
565 | if test "${with_gnu_as+set}" = set; then | |
566 | withval="$with_gnu_as" | |
567 | gas=yes | |
568 | else | |
569 | gas=no | |
570 | fi | |
571 | ||
572 | ||
573 | # With stabs | |
574 | # Check whether --with-stabs or --without-stabs was given. | |
575 | if test "${with_stabs+set}" = set; then | |
576 | withval="$with_stabs" | |
577 | stabs=yes | |
578 | else | |
579 | stabs=no | |
580 | fi | |
581 | ||
582 | ||
583 | # With ELF | |
584 | # Check whether --with-elf or --without-elf was given. | |
585 | if test "${with_elf+set}" = set; then | |
586 | withval="$with_elf" | |
587 | elf=yes | |
588 | else | |
589 | elf=no | |
590 | fi | |
591 | ||
592 | ||
593 | # Specify the local prefix | |
594 | # Check whether --with-local-prefix or --without-local-prefix was given. | |
595 | if test "${with_local_prefix+set}" = set; then | |
596 | withval="$with_local_prefix" | |
597 | local_prefix=$with_local_prefix | |
598 | else | |
599 | local_prefix=/usr/local | |
600 | fi | |
601 | ||
602 | ||
603 | # Default local prefix if it is empty | |
604 | if [ x$local_prefix = x ]; then | |
605 | local_prefix=/usr/local | |
606 | fi | |
607 | ||
608 | # Specify the g++ header file directory | |
609 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
610 | if test "${with_gxx_include_dir+set}" = set; then | |
611 | withval="$with_gxx_include_dir" | |
612 | gxx_include_dir=$with_gxx_include_dir | |
613 | else | |
614 | gxx_include_dir='${prefix}/include/g++' | |
615 | fi | |
616 | ||
617 | ||
618 | # Default g++ header file directory if it is empty | |
619 | if [ x$gxx_include_dir = x ]; then | |
620 | gxx_include_dir='${prefix}/include/g++' | |
621 | fi | |
622 | ||
623 | # Enable use of cpplib for C. | |
624 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. | |
625 | if test "${enable_c_cpplib+set}" = set; then | |
626 | enableval="$enable_c_cpplib" | |
627 | if [ x$enable_c_cpplib != xno ]; then | |
628 | extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o" | |
629 | extra_c_flags=-DUSE_CPPLIB=1 | |
630 | fi | |
631 | fi | |
632 | ||
9101297d DL |
633 | |
634 | # Enable Haifa scheduler. | |
635 | # Check whether --enable-haifa or --disable-haifa was given. | |
636 | if test "${enable_haifa+set}" = set; then | |
637 | enableval="$enable_haifa" | |
638 | : | |
639 | fi | |
640 | ||
861bb6c1 JL |
641 | |
642 | # Enable threads | |
643 | # Pass with no value to take the default | |
644 | # Pass with a value to specify a thread package | |
645 | # Check whether --enable-threads or --disable-threads was given. | |
646 | if test "${enable_threads+set}" = set; then | |
647 | enableval="$enable_threads" | |
648 | if [ x$enable_threads = xno ]; then | |
649 | enable_threads='' | |
650 | fi | |
651 | else | |
652 | enable_threads='' | |
653 | fi | |
654 | ||
655 | ||
656 | # Check if a valid thread package | |
657 | case x${enable_threads} in | |
658 | x | xno) | |
659 | # No threads | |
660 | thread_file='single' | |
661 | ;; | |
662 | xyes) | |
663 | # default | |
664 | thread_file='' | |
665 | ;; | |
666 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
f24af81b | 667 | xsolaris | xwin32 | xdce) |
861bb6c1 JL |
668 | thread_file=$enable_threads |
669 | ;; | |
670 | *) | |
671 | echo "$enable_threads is an unknown thread package" 1>&2 | |
672 | exit 1 | |
673 | ;; | |
674 | esac | |
675 | ||
676 | # Determine the host, build, and target systems | |
677 | ac_aux_dir= | |
678 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
679 | if test -f $ac_dir/install-sh; then | |
680 | ac_aux_dir=$ac_dir | |
681 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
682 | break | |
683 | elif test -f $ac_dir/install.sh; then | |
684 | ac_aux_dir=$ac_dir | |
685 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
686 | break | |
687 | fi | |
688 | done | |
689 | if test -z "$ac_aux_dir"; then | |
690 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
691 | fi | |
692 | ac_config_guess=$ac_aux_dir/config.guess | |
693 | ac_config_sub=$ac_aux_dir/config.sub | |
694 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
695 | ||
696 | ||
697 | # Do some error checking and defaulting for the host and target type. | |
698 | # The inputs are: | |
699 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
700 | # | |
701 | # The rules are: | |
702 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
703 | # same time. | |
704 | # 2. Host defaults to nonopt. | |
705 | # 3. If nonopt is not specified, then host defaults to the current host, | |
706 | # as determined by config.guess. | |
707 | # 4. Target and build default to nonopt. | |
708 | # 5. If nonopt is not specified, then target and build default to host. | |
709 | ||
710 | # The aliases save the names the user supplied, while $host etc. | |
711 | # will get canonicalized. | |
712 | case $host---$target---$nonopt in | |
713 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
714 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
715 | esac | |
716 | ||
717 | ||
718 | # Make sure we can run config.sub. | |
f24af81b | 719 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
720 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
721 | fi | |
722 | ||
723 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
f24af81b | 724 | echo "configure:725: checking host system type" >&5 |
861bb6c1 JL |
725 | |
726 | host_alias=$host | |
727 | case "$host_alias" in | |
728 | NONE) | |
729 | case $nonopt in | |
730 | NONE) | |
f24af81b | 731 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
732 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
733 | fi ;; | |
734 | *) host_alias=$nonopt ;; | |
735 | esac ;; | |
736 | esac | |
737 | ||
f24af81b | 738 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
739 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
740 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
741 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
742 | echo "$ac_t""$host" 1>&6 | |
743 | ||
744 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
f24af81b | 745 | echo "configure:746: checking target system type" >&5 |
861bb6c1 JL |
746 | |
747 | target_alias=$target | |
748 | case "$target_alias" in | |
749 | NONE) | |
750 | case $nonopt in | |
751 | NONE) target_alias=$host_alias ;; | |
752 | *) target_alias=$nonopt ;; | |
753 | esac ;; | |
754 | esac | |
755 | ||
f24af81b | 756 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
757 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
758 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
759 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
760 | echo "$ac_t""$target" 1>&6 | |
761 | ||
762 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
f24af81b | 763 | echo "configure:764: checking build system type" >&5 |
861bb6c1 JL |
764 | |
765 | build_alias=$build | |
766 | case "$build_alias" in | |
767 | NONE) | |
768 | case $nonopt in | |
769 | NONE) build_alias=$host_alias ;; | |
770 | *) build_alias=$nonopt ;; | |
771 | esac ;; | |
772 | esac | |
773 | ||
f24af81b | 774 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
775 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
776 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
777 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
778 | echo "$ac_t""$build" 1>&6 | |
779 | ||
780 | test "$host_alias" != "$target_alias" && | |
781 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
782 | NONENONEs,x,x, && | |
783 | program_prefix=${target_alias}- | |
784 | ||
785 | ||
e9a25f70 JL |
786 | # Find the native compiler |
787 | # Extract the first word of "gcc", so it can be a program name with args. | |
788 | set dummy gcc; ac_word=$2 | |
789 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 790 | echo "configure:791: checking for $ac_word" >&5 |
e9a25f70 JL |
791 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
793 | else | |
794 | if test -n "$CC"; then | |
795 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
796 | else | |
797 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
798 | for ac_dir in $PATH; do | |
799 | test -z "$ac_dir" && ac_dir=. | |
800 | if test -f $ac_dir/$ac_word; then | |
801 | ac_cv_prog_CC="gcc" | |
802 | break | |
803 | fi | |
804 | done | |
805 | IFS="$ac_save_ifs" | |
806 | fi | |
807 | fi | |
808 | CC="$ac_cv_prog_CC" | |
809 | if test -n "$CC"; then | |
810 | echo "$ac_t""$CC" 1>&6 | |
811 | else | |
812 | echo "$ac_t""no" 1>&6 | |
813 | fi | |
814 | ||
815 | if test -z "$CC"; then | |
816 | # Extract the first word of "cc", so it can be a program name with args. | |
817 | set dummy cc; ac_word=$2 | |
818 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 819 | echo "configure:820: checking for $ac_word" >&5 |
e9a25f70 JL |
820 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
822 | else | |
823 | if test -n "$CC"; then | |
824 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
825 | else | |
826 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
827 | ac_prog_rejected=no | |
828 | for ac_dir in $PATH; do | |
829 | test -z "$ac_dir" && ac_dir=. | |
830 | if test -f $ac_dir/$ac_word; then | |
831 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
832 | ac_prog_rejected=yes | |
833 | continue | |
834 | fi | |
835 | ac_cv_prog_CC="cc" | |
836 | break | |
837 | fi | |
838 | done | |
839 | IFS="$ac_save_ifs" | |
840 | if test $ac_prog_rejected = yes; then | |
841 | # We found a bogon in the path, so make sure we never use it. | |
842 | set dummy $ac_cv_prog_CC | |
843 | shift | |
844 | if test $# -gt 0; then | |
845 | # We chose a different compiler from the bogus one. | |
846 | # However, it has the same basename, so the bogon will be chosen | |
847 | # first if we set CC to just the basename; use the full file name. | |
848 | shift | |
849 | set dummy "$ac_dir/$ac_word" "$@" | |
850 | shift | |
851 | ac_cv_prog_CC="$@" | |
852 | fi | |
853 | fi | |
854 | fi | |
855 | fi | |
856 | CC="$ac_cv_prog_CC" | |
857 | if test -n "$CC"; then | |
858 | echo "$ac_t""$CC" 1>&6 | |
859 | else | |
860 | echo "$ac_t""no" 1>&6 | |
861 | fi | |
862 | ||
863 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
864 | fi | |
865 | ||
866 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
f24af81b | 867 | echo "configure:868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
868 | |
869 | ac_ext=c | |
870 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
871 | ac_cpp='$CPP $CPPFLAGS' | |
872 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
873 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
874 | cross_compiling=$ac_cv_prog_cc_cross | |
875 | ||
876 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 877 | #line 878 "configure" |
e9a25f70 JL |
878 | #include "confdefs.h" |
879 | main(){return(0);} | |
880 | EOF | |
f24af81b | 881 | if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
e9a25f70 JL |
882 | ac_cv_prog_cc_works=yes |
883 | # If we can't run a trivial program, we are probably using a cross compiler. | |
884 | if (./conftest; exit) 2>/dev/null; then | |
885 | ac_cv_prog_cc_cross=no | |
886 | else | |
887 | ac_cv_prog_cc_cross=yes | |
888 | fi | |
889 | else | |
890 | echo "configure: failed program was:" >&5 | |
891 | cat conftest.$ac_ext >&5 | |
892 | ac_cv_prog_cc_works=no | |
893 | fi | |
894 | rm -fr conftest* | |
895 | ||
896 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
897 | if test $ac_cv_prog_cc_works = no; then | |
898 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
899 | fi | |
900 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f24af81b | 901 | echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
902 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
903 | cross_compiling=$ac_cv_prog_cc_cross | |
904 | ||
905 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
f24af81b | 906 | echo "configure:907: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
907 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
909 | else | |
910 | cat > conftest.c <<EOF | |
911 | #ifdef __GNUC__ | |
912 | yes; | |
913 | #endif | |
914 | EOF | |
f24af81b | 915 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
916 | ac_cv_prog_gcc=yes |
917 | else | |
918 | ac_cv_prog_gcc=no | |
919 | fi | |
920 | fi | |
921 | ||
922 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
923 | ||
924 | if test $ac_cv_prog_gcc = yes; then | |
925 | GCC=yes | |
926 | ac_test_CFLAGS="${CFLAGS+set}" | |
927 | ac_save_CFLAGS="$CFLAGS" | |
928 | CFLAGS= | |
929 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
f24af81b | 930 | echo "configure:931: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
931 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
933 | else | |
934 | echo 'void f(){}' > conftest.c | |
935 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
936 | ac_cv_prog_cc_g=yes | |
937 | else | |
938 | ac_cv_prog_cc_g=no | |
939 | fi | |
940 | rm -f conftest* | |
941 | ||
942 | fi | |
943 | ||
944 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
945 | if test "$ac_test_CFLAGS" = set; then | |
946 | CFLAGS="$ac_save_CFLAGS" | |
947 | elif test $ac_cv_prog_cc_g = yes; then | |
948 | CFLAGS="-g -O2" | |
949 | else | |
950 | CFLAGS="-O2" | |
951 | fi | |
952 | else | |
953 | GCC= | |
954 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
955 | fi | |
956 | ||
957 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
f24af81b | 958 | echo "configure:959: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
959 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
960 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
962 | else | |
963 | cat > conftestmake <<\EOF | |
964 | all: | |
965 | @echo 'ac_maketemp="${MAKE}"' | |
966 | EOF | |
967 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
968 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
969 | if test -n "$ac_maketemp"; then | |
970 | eval ac_cv_prog_make_${ac_make}_set=yes | |
971 | else | |
972 | eval ac_cv_prog_make_${ac_make}_set=no | |
973 | fi | |
974 | rm -f conftestmake | |
975 | fi | |
976 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
977 | echo "$ac_t""yes" 1>&6 | |
978 | SET_MAKE= | |
979 | else | |
980 | echo "$ac_t""no" 1>&6 | |
981 | SET_MAKE="MAKE=${MAKE-make}" | |
982 | fi | |
983 | ||
984 | ||
861bb6c1 JL |
985 | # Find some useful tools |
986 | for ac_prog in mawk gawk nawk awk | |
987 | do | |
988 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
989 | set dummy $ac_prog; ac_word=$2 | |
990 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 991 | echo "configure:992: checking for $ac_word" >&5 |
861bb6c1 JL |
992 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
994 | else | |
995 | if test -n "$AWK"; then | |
996 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
997 | else | |
998 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
999 | for ac_dir in $PATH; do | |
1000 | test -z "$ac_dir" && ac_dir=. | |
1001 | if test -f $ac_dir/$ac_word; then | |
1002 | ac_cv_prog_AWK="$ac_prog" | |
1003 | break | |
1004 | fi | |
1005 | done | |
1006 | IFS="$ac_save_ifs" | |
1007 | fi | |
1008 | fi | |
1009 | AWK="$ac_cv_prog_AWK" | |
1010 | if test -n "$AWK"; then | |
1011 | echo "$ac_t""$AWK" 1>&6 | |
1012 | else | |
1013 | echo "$ac_t""no" 1>&6 | |
1014 | fi | |
1015 | ||
1016 | test -n "$AWK" && break | |
1017 | done | |
1018 | ||
1019 | # Extract the first word of "flex", so it can be a program name with args. | |
1020 | set dummy flex; ac_word=$2 | |
1021 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 1022 | echo "configure:1023: checking for $ac_word" >&5 |
861bb6c1 JL |
1023 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1025 | else | |
1026 | if test -n "$LEX"; then | |
1027 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1028 | else | |
1029 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1030 | for ac_dir in $PATH; do | |
1031 | test -z "$ac_dir" && ac_dir=. | |
1032 | if test -f $ac_dir/$ac_word; then | |
1033 | ac_cv_prog_LEX="flex" | |
1034 | break | |
1035 | fi | |
1036 | done | |
1037 | IFS="$ac_save_ifs" | |
1038 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1039 | fi | |
1040 | fi | |
1041 | LEX="$ac_cv_prog_LEX" | |
1042 | if test -n "$LEX"; then | |
1043 | echo "$ac_t""$LEX" 1>&6 | |
1044 | else | |
1045 | echo "$ac_t""no" 1>&6 | |
1046 | fi | |
1047 | ||
1048 | if test -z "$LEXLIB" | |
1049 | then | |
1050 | case "$LEX" in | |
1051 | flex*) ac_lib=fl ;; | |
1052 | *) ac_lib=l ;; | |
1053 | esac | |
1054 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
f24af81b | 1055 | echo "configure:1056: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1056 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1059 | else | |
1060 | ac_save_LIBS="$LIBS" | |
1061 | LIBS="-l$ac_lib $LIBS" | |
1062 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1063 | #line 1064 "configure" |
861bb6c1 JL |
1064 | #include "confdefs.h" |
1065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1066 | /* We use char because int might match the return type of a gcc2 | |
1067 | builtin and then its argument prototype would still apply. */ | |
1068 | char yywrap(); | |
1069 | ||
1070 | int main() { | |
1071 | yywrap() | |
1072 | ; return 0; } | |
1073 | EOF | |
f24af81b | 1074 | if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
861bb6c1 JL |
1075 | rm -rf conftest* |
1076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1077 | else | |
1078 | echo "configure: failed program was:" >&5 | |
1079 | cat conftest.$ac_ext >&5 | |
1080 | rm -rf conftest* | |
1081 | eval "ac_cv_lib_$ac_lib_var=no" | |
1082 | fi | |
1083 | rm -f conftest* | |
1084 | LIBS="$ac_save_LIBS" | |
1085 | ||
1086 | fi | |
1087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1088 | echo "$ac_t""yes" 1>&6 | |
1089 | LEXLIB="-l$ac_lib" | |
1090 | else | |
1091 | echo "$ac_t""no" 1>&6 | |
1092 | fi | |
1093 | ||
1094 | fi | |
1095 | ||
ac64120e | 1096 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
f24af81b | 1097 | echo "configure:1098: checking whether ln works" >&5 |
ac64120e JW |
1098 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1100 | else | |
e566af04 MH |
1101 | rm -f conftestdata_t |
1102 | echo >conftestdata_f | |
1103 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
ac64120e JW |
1104 | then |
1105 | gcc_cv_prog_LN="ln" | |
1106 | else | |
e566af04 | 1107 | if ln -s conftestdata_f conftestdata_t 2>/dev/null |
ac64120e JW |
1108 | then |
1109 | gcc_cv_prog_LN="ln -s" | |
1110 | else | |
1111 | gcc_cv_prog_LN=cp | |
1112 | fi | |
1113 | fi | |
e566af04 | 1114 | rm -f conftestdata_f conftestdata_t |
ac64120e JW |
1115 | |
1116 | fi | |
1117 | LN="$gcc_cv_prog_LN" | |
1118 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1119 | echo "$ac_t""yes" 1>&6 | |
1120 | else | |
1121 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1122 | echo "$ac_t""no, using ln -s" 1>&6 | |
1123 | else | |
1124 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1125 | fi | |
1126 | fi | |
1127 | ||
861bb6c1 | 1128 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
f24af81b | 1129 | echo "configure:1130: checking whether ln -s works" >&5 |
ac64120e | 1130 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
861bb6c1 JL |
1131 | echo $ac_n "(cached) $ac_c" 1>&6 |
1132 | else | |
e566af04 MH |
1133 | rm -f conftestdata_t |
1134 | echo >conftestdata_f | |
1135 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
861bb6c1 | 1136 | then |
ac64120e | 1137 | gcc_cv_prog_LN_S="ln -s" |
861bb6c1 | 1138 | else |
e566af04 | 1139 | if ln conftestdata_f conftestdata_t 2>/dev/null |
ac64120e JW |
1140 | then |
1141 | gcc_cv_prog_LN_S=ln | |
1142 | else | |
1143 | gcc_cv_prog_LN_S=cp | |
1144 | fi | |
861bb6c1 | 1145 | fi |
e566af04 | 1146 | rm -f conftestdata_f conftestdata_t |
ac64120e | 1147 | |
861bb6c1 | 1148 | fi |
ac64120e JW |
1149 | LN_S="$gcc_cv_prog_LN_S" |
1150 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
861bb6c1 JL |
1151 | echo "$ac_t""yes" 1>&6 |
1152 | else | |
ac64120e JW |
1153 | if test "$gcc_cv_prog_LN_S" = "ln"; then |
1154 | echo "$ac_t""no, using ln" 1>&6 | |
1155 | else | |
1156 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1157 | fi | |
861bb6c1 JL |
1158 | fi |
1159 | ||
1160 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1161 | set dummy ranlib; ac_word=$2 | |
1162 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 1163 | echo "configure:1164: checking for $ac_word" >&5 |
861bb6c1 JL |
1164 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1166 | else | |
1167 | if test -n "$RANLIB"; then | |
1168 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1169 | else | |
1170 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1171 | for ac_dir in $PATH; do | |
1172 | test -z "$ac_dir" && ac_dir=. | |
1173 | if test -f $ac_dir/$ac_word; then | |
1174 | ac_cv_prog_RANLIB="ranlib" | |
1175 | break | |
1176 | fi | |
1177 | done | |
1178 | IFS="$ac_save_ifs" | |
1179 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1180 | fi | |
1181 | fi | |
1182 | RANLIB="$ac_cv_prog_RANLIB" | |
1183 | if test -n "$RANLIB"; then | |
1184 | echo "$ac_t""$RANLIB" 1>&6 | |
1185 | else | |
1186 | echo "$ac_t""no" 1>&6 | |
1187 | fi | |
1188 | ||
1189 | for ac_prog in 'bison -y' byacc | |
1190 | do | |
1191 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1192 | set dummy $ac_prog; ac_word=$2 | |
1193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 1194 | echo "configure:1195: checking for $ac_word" >&5 |
861bb6c1 JL |
1195 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1197 | else | |
1198 | if test -n "$YACC"; then | |
1199 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1200 | else | |
1201 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1202 | for ac_dir in $PATH; do | |
1203 | test -z "$ac_dir" && ac_dir=. | |
1204 | if test -f $ac_dir/$ac_word; then | |
1205 | ac_cv_prog_YACC="$ac_prog" | |
1206 | break | |
1207 | fi | |
1208 | done | |
1209 | IFS="$ac_save_ifs" | |
1210 | fi | |
1211 | fi | |
1212 | YACC="$ac_cv_prog_YACC" | |
1213 | if test -n "$YACC"; then | |
1214 | echo "$ac_t""$YACC" 1>&6 | |
1215 | else | |
1216 | echo "$ac_t""no" 1>&6 | |
1217 | fi | |
1218 | ||
1219 | test -n "$YACC" && break | |
1220 | done | |
1221 | test -n "$YACC" || YACC="yacc" | |
1222 | ||
1223 | # Find a good install program. We prefer a C program (faster), | |
1224 | # so one script is as good as another. But avoid the broken or | |
1225 | # incompatible versions: | |
1226 | # SysV /etc/install, /usr/sbin/install | |
1227 | # SunOS /usr/etc/install | |
1228 | # IRIX /sbin/install | |
1229 | # AIX /bin/install | |
1230 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1231 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1232 | # ./install, which can be erroneously created by make from ./install.sh. | |
1233 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
f24af81b | 1234 | echo "configure:1235: checking for a BSD compatible install" >&5 |
861bb6c1 JL |
1235 | if test -z "$INSTALL"; then |
1236 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1238 | else | |
1239 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1240 | for ac_dir in $PATH; do | |
1241 | # Account for people who put trailing slashes in PATH elements. | |
1242 | case "$ac_dir/" in | |
1243 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1244 | *) | |
1245 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
76143254 | 1246 | for ac_prog in ginstall scoinst install; do |
861bb6c1 JL |
1247 | if test -f $ac_dir/$ac_prog; then |
1248 | if test $ac_prog = install && | |
1249 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1250 | # AIX install. It has an incompatible calling convention. | |
1251 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1252 | : | |
1253 | else | |
1254 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1255 | break 2 | |
1256 | fi | |
1257 | fi | |
1258 | done | |
1259 | ;; | |
1260 | esac | |
1261 | done | |
1262 | IFS="$ac_save_IFS" | |
1263 | ||
1264 | fi | |
1265 | if test "${ac_cv_path_install+set}" = set; then | |
1266 | INSTALL="$ac_cv_path_install" | |
1267 | else | |
1268 | # As a last resort, use the slow shell script. We don't cache a | |
1269 | # path for INSTALL within a source directory, because that will | |
1270 | # break other packages using the cache if that directory is | |
1271 | # removed, or if the path is relative. | |
1272 | INSTALL="$ac_install_sh" | |
1273 | fi | |
1274 | fi | |
1275 | echo "$ac_t""$INSTALL" 1>&6 | |
1276 | ||
1277 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1278 | # It thinks the first close brace ends the variable substitution. | |
1279 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1280 | ||
1281 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1282 | ||
1283 | ||
1284 | # Find the native compiler | |
1285 | # Extract the first word of "gcc", so it can be a program name with args. | |
1286 | set dummy gcc; ac_word=$2 | |
1287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 1288 | echo "configure:1289: checking for $ac_word" >&5 |
861bb6c1 JL |
1289 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1291 | else | |
1292 | if test -n "$CC"; then | |
1293 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1294 | else | |
1295 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1296 | for ac_dir in $PATH; do | |
1297 | test -z "$ac_dir" && ac_dir=. | |
1298 | if test -f $ac_dir/$ac_word; then | |
1299 | ac_cv_prog_CC="gcc" | |
1300 | break | |
1301 | fi | |
1302 | done | |
1303 | IFS="$ac_save_ifs" | |
1304 | fi | |
1305 | fi | |
1306 | CC="$ac_cv_prog_CC" | |
1307 | if test -n "$CC"; then | |
1308 | echo "$ac_t""$CC" 1>&6 | |
1309 | else | |
1310 | echo "$ac_t""no" 1>&6 | |
1311 | fi | |
1312 | ||
1313 | if test -z "$CC"; then | |
1314 | # Extract the first word of "cc", so it can be a program name with args. | |
1315 | set dummy cc; ac_word=$2 | |
1316 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f24af81b | 1317 | echo "configure:1318: checking for $ac_word" >&5 |
861bb6c1 JL |
1318 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1320 | else | |
1321 | if test -n "$CC"; then | |
1322 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1323 | else | |
1324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1325 | ac_prog_rejected=no | |
1326 | for ac_dir in $PATH; do | |
1327 | test -z "$ac_dir" && ac_dir=. | |
1328 | if test -f $ac_dir/$ac_word; then | |
1329 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1330 | ac_prog_rejected=yes | |
1331 | continue | |
1332 | fi | |
1333 | ac_cv_prog_CC="cc" | |
1334 | break | |
1335 | fi | |
1336 | done | |
1337 | IFS="$ac_save_ifs" | |
1338 | if test $ac_prog_rejected = yes; then | |
1339 | # We found a bogon in the path, so make sure we never use it. | |
1340 | set dummy $ac_cv_prog_CC | |
1341 | shift | |
1342 | if test $# -gt 0; then | |
1343 | # We chose a different compiler from the bogus one. | |
1344 | # However, it has the same basename, so the bogon will be chosen | |
1345 | # first if we set CC to just the basename; use the full file name. | |
1346 | shift | |
1347 | set dummy "$ac_dir/$ac_word" "$@" | |
1348 | shift | |
1349 | ac_cv_prog_CC="$@" | |
1350 | fi | |
1351 | fi | |
1352 | fi | |
1353 | fi | |
1354 | CC="$ac_cv_prog_CC" | |
1355 | if test -n "$CC"; then | |
1356 | echo "$ac_t""$CC" 1>&6 | |
1357 | else | |
1358 | echo "$ac_t""no" 1>&6 | |
1359 | fi | |
1360 | ||
1361 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1362 | fi | |
1363 | ||
1364 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
f24af81b | 1365 | echo "configure:1366: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
861bb6c1 JL |
1366 | |
1367 | ac_ext=c | |
1368 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1369 | ac_cpp='$CPP $CPPFLAGS' | |
1370 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1371 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1372 | cross_compiling=$ac_cv_prog_cc_cross | |
1373 | ||
1374 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1375 | #line 1376 "configure" |
861bb6c1 JL |
1376 | #include "confdefs.h" |
1377 | main(){return(0);} | |
1378 | EOF | |
f24af81b | 1379 | if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
861bb6c1 JL |
1380 | ac_cv_prog_cc_works=yes |
1381 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1382 | if (./conftest; exit) 2>/dev/null; then | |
1383 | ac_cv_prog_cc_cross=no | |
1384 | else | |
1385 | ac_cv_prog_cc_cross=yes | |
1386 | fi | |
1387 | else | |
1388 | echo "configure: failed program was:" >&5 | |
1389 | cat conftest.$ac_ext >&5 | |
1390 | ac_cv_prog_cc_works=no | |
1391 | fi | |
1392 | rm -fr conftest* | |
1393 | ||
1394 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1395 | if test $ac_cv_prog_cc_works = no; then | |
1396 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1397 | fi | |
1398 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f24af81b | 1399 | echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
861bb6c1 JL |
1400 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1401 | cross_compiling=$ac_cv_prog_cc_cross | |
1402 | ||
1403 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
f24af81b | 1404 | echo "configure:1405: checking whether we are using GNU C" >&5 |
861bb6c1 JL |
1405 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1407 | else | |
1408 | cat > conftest.c <<EOF | |
1409 | #ifdef __GNUC__ | |
1410 | yes; | |
1411 | #endif | |
1412 | EOF | |
f24af81b | 1413 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
861bb6c1 JL |
1414 | ac_cv_prog_gcc=yes |
1415 | else | |
1416 | ac_cv_prog_gcc=no | |
1417 | fi | |
1418 | fi | |
1419 | ||
1420 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1421 | ||
1422 | if test $ac_cv_prog_gcc = yes; then | |
1423 | GCC=yes | |
1424 | ac_test_CFLAGS="${CFLAGS+set}" | |
1425 | ac_save_CFLAGS="$CFLAGS" | |
1426 | CFLAGS= | |
1427 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
f24af81b | 1428 | echo "configure:1429: checking whether ${CC-cc} accepts -g" >&5 |
861bb6c1 JL |
1429 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1431 | else | |
1432 | echo 'void f(){}' > conftest.c | |
1433 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1434 | ac_cv_prog_cc_g=yes | |
1435 | else | |
1436 | ac_cv_prog_cc_g=no | |
1437 | fi | |
1438 | rm -f conftest* | |
1439 | ||
1440 | fi | |
1441 | ||
1442 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1443 | if test "$ac_test_CFLAGS" = set; then | |
1444 | CFLAGS="$ac_save_CFLAGS" | |
1445 | elif test $ac_cv_prog_cc_g = yes; then | |
1446 | CFLAGS="-g -O2" | |
1447 | else | |
1448 | CFLAGS="-O2" | |
1449 | fi | |
1450 | else | |
1451 | GCC= | |
1452 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1453 | fi | |
1454 | ||
1455 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
f24af81b | 1456 | echo "configure:1457: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
861bb6c1 JL |
1457 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1458 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1460 | else | |
1461 | cat > conftestmake <<\EOF | |
1462 | all: | |
1463 | @echo 'ac_maketemp="${MAKE}"' | |
1464 | EOF | |
1465 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1466 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1467 | if test -n "$ac_maketemp"; then | |
1468 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1469 | else | |
1470 | eval ac_cv_prog_make_${ac_make}_set=no | |
1471 | fi | |
1472 | rm -f conftestmake | |
1473 | fi | |
1474 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1475 | echo "$ac_t""yes" 1>&6 | |
1476 | SET_MAKE= | |
1477 | else | |
1478 | echo "$ac_t""no" 1>&6 | |
1479 | SET_MAKE="MAKE=${MAKE-make}" | |
1480 | fi | |
1481 | ||
1482 | ||
1483 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
f24af81b | 1484 | echo "configure:1485: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1485 | # On Suns, sometimes $CPP names a directory. |
1486 | if test -n "$CPP" && test -d "$CPP"; then | |
1487 | CPP= | |
1488 | fi | |
1489 | if test -z "$CPP"; then | |
1490 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1492 | else | |
1493 | # This must be in double quotes, not single quotes, because CPP may get | |
1494 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1495 | CPP="${CC-cc} -E" | |
1496 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1497 | # not just through cpp. | |
1498 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1499 | #line 1500 "configure" |
861bb6c1 JL |
1500 | #include "confdefs.h" |
1501 | #include <assert.h> | |
1502 | Syntax Error | |
1503 | EOF | |
1504 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f24af81b | 1505 | { (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861bb6c1 JL |
1506 | ac_err=`grep -v '^ *+' conftest.out` |
1507 | if test -z "$ac_err"; then | |
1508 | : | |
1509 | else | |
1510 | echo "$ac_err" >&5 | |
1511 | echo "configure: failed program was:" >&5 | |
1512 | cat conftest.$ac_ext >&5 | |
1513 | rm -rf conftest* | |
1514 | CPP="${CC-cc} -E -traditional-cpp" | |
1515 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1516 | #line 1517 "configure" |
861bb6c1 JL |
1517 | #include "confdefs.h" |
1518 | #include <assert.h> | |
1519 | Syntax Error | |
1520 | EOF | |
1521 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f24af81b | 1522 | { (eval echo configure:1523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861bb6c1 JL |
1523 | ac_err=`grep -v '^ *+' conftest.out` |
1524 | if test -z "$ac_err"; then | |
1525 | : | |
1526 | else | |
1527 | echo "$ac_err" >&5 | |
1528 | echo "configure: failed program was:" >&5 | |
1529 | cat conftest.$ac_ext >&5 | |
1530 | rm -rf conftest* | |
1531 | CPP=/lib/cpp | |
1532 | fi | |
1533 | rm -f conftest* | |
1534 | fi | |
1535 | rm -f conftest* | |
1536 | ac_cv_prog_CPP="$CPP" | |
1537 | fi | |
1538 | CPP="$ac_cv_prog_CPP" | |
1539 | else | |
1540 | ac_cv_prog_CPP="$CPP" | |
1541 | fi | |
1542 | echo "$ac_t""$CPP" 1>&6 | |
1543 | ||
956d6950 | 1544 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
f24af81b | 1545 | echo "configure:1546: checking for ANSI C header files" >&5 |
956d6950 JL |
1546 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1548 | else | |
1549 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1550 | #line 1551 "configure" |
956d6950 JL |
1551 | #include "confdefs.h" |
1552 | #include <stdlib.h> | |
1553 | #include <stdarg.h> | |
1554 | #include <string.h> | |
1555 | #include <float.h> | |
1556 | EOF | |
1557 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f24af81b | 1558 | { (eval echo configure:1559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956d6950 JL |
1559 | ac_err=`grep -v '^ *+' conftest.out` |
1560 | if test -z "$ac_err"; then | |
1561 | rm -rf conftest* | |
1562 | ac_cv_header_stdc=yes | |
1563 | else | |
1564 | echo "$ac_err" >&5 | |
1565 | echo "configure: failed program was:" >&5 | |
1566 | cat conftest.$ac_ext >&5 | |
1567 | rm -rf conftest* | |
1568 | ac_cv_header_stdc=no | |
1569 | fi | |
1570 | rm -f conftest* | |
1571 | ||
1572 | if test $ac_cv_header_stdc = yes; then | |
1573 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1574 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1575 | #line 1576 "configure" |
956d6950 JL |
1576 | #include "confdefs.h" |
1577 | #include <string.h> | |
1578 | EOF | |
1579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1580 | egrep "memchr" >/dev/null 2>&1; then | |
1581 | : | |
1582 | else | |
1583 | rm -rf conftest* | |
1584 | ac_cv_header_stdc=no | |
1585 | fi | |
1586 | rm -f conftest* | |
1587 | ||
1588 | fi | |
1589 | ||
1590 | if test $ac_cv_header_stdc = yes; then | |
1591 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1592 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1593 | #line 1594 "configure" |
956d6950 JL |
1594 | #include "confdefs.h" |
1595 | #include <stdlib.h> | |
1596 | EOF | |
1597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1598 | egrep "free" >/dev/null 2>&1; then | |
1599 | : | |
1600 | else | |
1601 | rm -rf conftest* | |
1602 | ac_cv_header_stdc=no | |
1603 | fi | |
1604 | rm -f conftest* | |
1605 | ||
1606 | fi | |
1607 | ||
1608 | if test $ac_cv_header_stdc = yes; then | |
1609 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1610 | if test "$cross_compiling" = yes; then | |
1611 | : | |
1612 | else | |
1613 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1614 | #line 1615 "configure" |
956d6950 JL |
1615 | #include "confdefs.h" |
1616 | #include <ctype.h> | |
1617 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1618 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1619 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1620 | int main () { int i; for (i = 0; i < 256; i++) | |
1621 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1622 | exit (0); } | |
1623 | ||
1624 | EOF | |
f24af81b | 1625 | if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1626 | then |
1627 | : | |
1628 | else | |
1629 | echo "configure: failed program was:" >&5 | |
1630 | cat conftest.$ac_ext >&5 | |
1631 | rm -fr conftest* | |
1632 | ac_cv_header_stdc=no | |
1633 | fi | |
1634 | rm -fr conftest* | |
1635 | fi | |
1636 | ||
1637 | fi | |
1638 | fi | |
1639 | ||
1640 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1641 | if test $ac_cv_header_stdc = yes; then | |
1642 | cat >> confdefs.h <<\EOF | |
1643 | #define STDC_HEADERS 1 | |
1644 | EOF | |
1645 | ||
1646 | fi | |
1647 | ||
1648 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
f24af81b | 1649 | echo "configure:1650: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1650 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1652 | else | |
1653 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1654 | #line 1655 "configure" |
956d6950 JL |
1655 | #include "confdefs.h" |
1656 | #include <sys/types.h> | |
1657 | #include <sys/time.h> | |
1658 | #include <time.h> | |
1659 | int main() { | |
1660 | struct tm *tp; | |
1661 | ; return 0; } | |
1662 | EOF | |
f24af81b | 1663 | if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1664 | rm -rf conftest* |
1665 | ac_cv_header_time=yes | |
1666 | else | |
1667 | echo "configure: failed program was:" >&5 | |
1668 | cat conftest.$ac_ext >&5 | |
1669 | rm -rf conftest* | |
1670 | ac_cv_header_time=no | |
1671 | fi | |
1672 | rm -f conftest* | |
1673 | fi | |
1674 | ||
1675 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1676 | if test $ac_cv_header_time = yes; then | |
1677 | cat >> confdefs.h <<\EOF | |
1678 | #define TIME_WITH_SYS_TIME 1 | |
1679 | EOF | |
1680 | ||
1681 | fi | |
1682 | ||
1683 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h varargs.h sys/varargs.h | |
861bb6c1 JL |
1684 | do |
1685 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1686 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f24af81b | 1687 | echo "configure:1688: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1688 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1690 | else | |
1691 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1692 | #line 1693 "configure" |
861bb6c1 JL |
1693 | #include "confdefs.h" |
1694 | #include <$ac_hdr> | |
1695 | EOF | |
956d6950 | 1696 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
f24af81b | 1697 | { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956d6950 JL |
1698 | ac_err=`grep -v '^ *+' conftest.out` |
1699 | if test -z "$ac_err"; then | |
1700 | rm -rf conftest* | |
1701 | eval "ac_cv_header_$ac_safe=yes" | |
1702 | else | |
1703 | echo "$ac_err" >&5 | |
1704 | echo "configure: failed program was:" >&5 | |
1705 | cat conftest.$ac_ext >&5 | |
1706 | rm -rf conftest* | |
1707 | eval "ac_cv_header_$ac_safe=no" | |
1708 | fi | |
1709 | rm -f conftest* | |
1710 | fi | |
1711 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1712 | echo "$ac_t""yes" 1>&6 | |
1713 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1714 | cat >> confdefs.h <<EOF | |
1715 | #define $ac_tr_hdr 1 | |
1716 | EOF | |
1717 | ||
1718 | else | |
1719 | echo "$ac_t""no" 1>&6 | |
1720 | fi | |
1721 | done | |
1722 | ||
1723 | ||
f24af81b TT |
1724 | # Check for thread headers. |
1725 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1726 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
1727 | echo "configure:1728: checking for thread.h" >&5 | |
1728 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1730 | else | |
1731 | cat > conftest.$ac_ext <<EOF | |
1732 | #line 1733 "configure" | |
1733 | #include "confdefs.h" | |
1734 | #include <thread.h> | |
1735 | EOF | |
1736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1737 | { (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1738 | ac_err=`grep -v '^ *+' conftest.out` | |
1739 | if test -z "$ac_err"; then | |
1740 | rm -rf conftest* | |
1741 | eval "ac_cv_header_$ac_safe=yes" | |
1742 | else | |
1743 | echo "$ac_err" >&5 | |
1744 | echo "configure: failed program was:" >&5 | |
1745 | cat conftest.$ac_ext >&5 | |
1746 | rm -rf conftest* | |
1747 | eval "ac_cv_header_$ac_safe=no" | |
1748 | fi | |
1749 | rm -f conftest* | |
1750 | fi | |
1751 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1752 | echo "$ac_t""yes" 1>&6 | |
1753 | have_thread_h=yes | |
1754 | else | |
1755 | echo "$ac_t""no" 1>&6 | |
1756 | have_thread_h= | |
1757 | fi | |
1758 | ||
1759 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
1760 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
1761 | echo "configure:1762: checking for pthread.h" >&5 | |
1762 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1764 | else | |
1765 | cat > conftest.$ac_ext <<EOF | |
1766 | #line 1767 "configure" | |
1767 | #include "confdefs.h" | |
1768 | #include <pthread.h> | |
1769 | EOF | |
1770 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1771 | { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1772 | ac_err=`grep -v '^ *+' conftest.out` | |
1773 | if test -z "$ac_err"; then | |
1774 | rm -rf conftest* | |
1775 | eval "ac_cv_header_$ac_safe=yes" | |
1776 | else | |
1777 | echo "$ac_err" >&5 | |
1778 | echo "configure: failed program was:" >&5 | |
1779 | cat conftest.$ac_ext >&5 | |
1780 | rm -rf conftest* | |
1781 | eval "ac_cv_header_$ac_safe=no" | |
1782 | fi | |
1783 | rm -f conftest* | |
1784 | fi | |
1785 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1786 | echo "$ac_t""yes" 1>&6 | |
1787 | have_pthread_h=yes | |
1788 | else | |
1789 | echo "$ac_t""no" 1>&6 | |
1790 | have_pthread_h= | |
1791 | fi | |
1792 | ||
1793 | ||
956d6950 JL |
1794 | # Use <inttypes.h> only if it exists, |
1795 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
1796 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
f24af81b | 1797 | echo "configure:1798: checking for inttypes.h" >&5 |
956d6950 JL |
1798 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
1799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1800 | else | |
1801 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1802 | #line 1803 "configure" |
956d6950 JL |
1803 | #include "confdefs.h" |
1804 | #include <sys/types.h> | |
1805 | #include <inttypes.h> | |
1806 | int main() { | |
1807 | intmax_t i = -1; | |
1808 | ; return 0; } | |
1809 | EOF | |
f24af81b | 1810 | if { (eval echo configure:1811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1811 | rm -rf conftest* |
1812 | cat >> confdefs.h <<EOF | |
1813 | #define HAVE_INTTYPES_H 1 | |
1814 | EOF | |
1815 | ||
1816 | gcc_cv_header_inttypes_h=yes | |
1817 | else | |
1818 | echo "configure: failed program was:" >&5 | |
1819 | cat conftest.$ac_ext >&5 | |
1820 | rm -rf conftest* | |
1821 | gcc_cv_header_inttypes_h=no | |
1822 | fi | |
1823 | rm -f conftest* | |
1824 | fi | |
1825 | ||
1826 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
1827 | ||
1828 | for ac_func in strtoul | |
1829 | do | |
1830 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 1831 | echo "configure:1832: checking for $ac_func" >&5 |
956d6950 JL |
1832 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1834 | else | |
1835 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1836 | #line 1837 "configure" |
956d6950 JL |
1837 | #include "confdefs.h" |
1838 | /* System header to define __stub macros and hopefully few prototypes, | |
1839 | which can conflict with char $ac_func(); below. */ | |
1840 | #include <assert.h> | |
1841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1842 | /* We use char because int might match the return type of a gcc2 | |
1843 | builtin and then its argument prototype would still apply. */ | |
1844 | char $ac_func(); | |
1845 | ||
1846 | int main() { | |
1847 | ||
1848 | /* The GNU C library defines this for functions which it implements | |
1849 | to always fail with ENOSYS. Some functions are actually named | |
1850 | something starting with __ and the normal name is an alias. */ | |
1851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1852 | choke me | |
1853 | #else | |
1854 | $ac_func(); | |
1855 | #endif | |
1856 | ||
1857 | ; return 0; } | |
1858 | EOF | |
f24af81b | 1859 | if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
1860 | rm -rf conftest* |
1861 | eval "ac_cv_func_$ac_func=yes" | |
1862 | else | |
1863 | echo "configure: failed program was:" >&5 | |
1864 | cat conftest.$ac_ext >&5 | |
1865 | rm -rf conftest* | |
1866 | eval "ac_cv_func_$ac_func=no" | |
1867 | fi | |
1868 | rm -f conftest* | |
1869 | fi | |
1870 | ||
1871 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1872 | echo "$ac_t""yes" 1>&6 | |
1873 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1874 | cat >> confdefs.h <<EOF | |
1875 | #define $ac_tr_func 1 | |
1876 | EOF | |
1877 | ||
1878 | else | |
1879 | echo "$ac_t""no" 1>&6 | |
1880 | fi | |
1881 | done | |
1882 | ||
1883 | for ac_func in bsearch | |
1884 | do | |
1885 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 1886 | echo "configure:1887: checking for $ac_func" >&5 |
956d6950 JL |
1887 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1889 | else | |
1890 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1891 | #line 1892 "configure" |
956d6950 JL |
1892 | #include "confdefs.h" |
1893 | /* System header to define __stub macros and hopefully few prototypes, | |
1894 | which can conflict with char $ac_func(); below. */ | |
1895 | #include <assert.h> | |
1896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1897 | /* We use char because int might match the return type of a gcc2 | |
1898 | builtin and then its argument prototype would still apply. */ | |
1899 | char $ac_func(); | |
1900 | ||
1901 | int main() { | |
1902 | ||
1903 | /* The GNU C library defines this for functions which it implements | |
1904 | to always fail with ENOSYS. Some functions are actually named | |
1905 | something starting with __ and the normal name is an alias. */ | |
1906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1907 | choke me | |
1908 | #else | |
1909 | $ac_func(); | |
1910 | #endif | |
1911 | ||
1912 | ; return 0; } | |
1913 | EOF | |
f24af81b | 1914 | if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
1915 | rm -rf conftest* |
1916 | eval "ac_cv_func_$ac_func=yes" | |
1917 | else | |
1918 | echo "configure: failed program was:" >&5 | |
1919 | cat conftest.$ac_ext >&5 | |
1920 | rm -rf conftest* | |
1921 | eval "ac_cv_func_$ac_func=no" | |
1922 | fi | |
1923 | rm -f conftest* | |
1924 | fi | |
1925 | ||
1926 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1927 | echo "$ac_t""yes" 1>&6 | |
1928 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1929 | cat >> confdefs.h <<EOF | |
1930 | #define $ac_tr_func 1 | |
1931 | EOF | |
1932 | ||
1933 | else | |
1934 | echo "$ac_t""no" 1>&6 | |
1935 | fi | |
1936 | done | |
1937 | ||
1938 | for ac_func in strerror | |
1939 | do | |
1940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 1941 | echo "configure:1942: checking for $ac_func" >&5 |
956d6950 JL |
1942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1944 | else | |
1945 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 1946 | #line 1947 "configure" |
956d6950 JL |
1947 | #include "confdefs.h" |
1948 | /* System header to define __stub macros and hopefully few prototypes, | |
1949 | which can conflict with char $ac_func(); below. */ | |
1950 | #include <assert.h> | |
1951 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1952 | /* We use char because int might match the return type of a gcc2 | |
1953 | builtin and then its argument prototype would still apply. */ | |
1954 | char $ac_func(); | |
1955 | ||
1956 | int main() { | |
1957 | ||
1958 | /* The GNU C library defines this for functions which it implements | |
1959 | to always fail with ENOSYS. Some functions are actually named | |
1960 | something starting with __ and the normal name is an alias. */ | |
1961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1962 | choke me | |
1963 | #else | |
1964 | $ac_func(); | |
1965 | #endif | |
1966 | ||
1967 | ; return 0; } | |
1968 | EOF | |
f24af81b | 1969 | if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
1970 | rm -rf conftest* |
1971 | eval "ac_cv_func_$ac_func=yes" | |
1972 | else | |
1973 | echo "configure: failed program was:" >&5 | |
1974 | cat conftest.$ac_ext >&5 | |
1975 | rm -rf conftest* | |
1976 | eval "ac_cv_func_$ac_func=no" | |
1977 | fi | |
1978 | rm -f conftest* | |
1979 | fi | |
1980 | ||
1981 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1982 | echo "$ac_t""yes" 1>&6 | |
1983 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1984 | cat >> confdefs.h <<EOF | |
1985 | #define $ac_tr_func 1 | |
1986 | EOF | |
1987 | ||
1988 | else | |
1989 | echo "$ac_t""no" 1>&6 | |
1990 | fi | |
1991 | done | |
1992 | ||
1993 | for ac_func in putenv | |
1994 | do | |
1995 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 1996 | echo "configure:1997: checking for $ac_func" >&5 |
956d6950 JL |
1997 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1999 | else | |
2000 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2001 | #line 2002 "configure" |
956d6950 JL |
2002 | #include "confdefs.h" |
2003 | /* System header to define __stub macros and hopefully few prototypes, | |
2004 | which can conflict with char $ac_func(); below. */ | |
2005 | #include <assert.h> | |
2006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2007 | /* We use char because int might match the return type of a gcc2 | |
2008 | builtin and then its argument prototype would still apply. */ | |
2009 | char $ac_func(); | |
2010 | ||
2011 | int main() { | |
2012 | ||
2013 | /* The GNU C library defines this for functions which it implements | |
2014 | to always fail with ENOSYS. Some functions are actually named | |
2015 | something starting with __ and the normal name is an alias. */ | |
2016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2017 | choke me | |
2018 | #else | |
2019 | $ac_func(); | |
2020 | #endif | |
2021 | ||
2022 | ; return 0; } | |
2023 | EOF | |
f24af81b | 2024 | if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2025 | rm -rf conftest* |
2026 | eval "ac_cv_func_$ac_func=yes" | |
2027 | else | |
2028 | echo "configure: failed program was:" >&5 | |
2029 | cat conftest.$ac_ext >&5 | |
2030 | rm -rf conftest* | |
2031 | eval "ac_cv_func_$ac_func=no" | |
2032 | fi | |
2033 | rm -f conftest* | |
2034 | fi | |
2035 | ||
2036 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2037 | echo "$ac_t""yes" 1>&6 | |
2038 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2039 | cat >> confdefs.h <<EOF | |
2040 | #define $ac_tr_func 1 | |
2041 | EOF | |
2042 | ||
2043 | else | |
2044 | echo "$ac_t""no" 1>&6 | |
2045 | fi | |
2046 | done | |
2047 | ||
2048 | for ac_func in popen | |
2049 | do | |
2050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2051 | echo "configure:2052: checking for $ac_func" >&5 |
956d6950 JL |
2052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2054 | else | |
2055 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2056 | #line 2057 "configure" |
956d6950 JL |
2057 | #include "confdefs.h" |
2058 | /* System header to define __stub macros and hopefully few prototypes, | |
2059 | which can conflict with char $ac_func(); below. */ | |
2060 | #include <assert.h> | |
2061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2062 | /* We use char because int might match the return type of a gcc2 | |
2063 | builtin and then its argument prototype would still apply. */ | |
2064 | char $ac_func(); | |
2065 | ||
2066 | int main() { | |
2067 | ||
2068 | /* The GNU C library defines this for functions which it implements | |
2069 | to always fail with ENOSYS. Some functions are actually named | |
2070 | something starting with __ and the normal name is an alias. */ | |
2071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2072 | choke me | |
2073 | #else | |
2074 | $ac_func(); | |
2075 | #endif | |
2076 | ||
2077 | ; return 0; } | |
2078 | EOF | |
f24af81b | 2079 | if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2080 | rm -rf conftest* |
2081 | eval "ac_cv_func_$ac_func=yes" | |
2082 | else | |
2083 | echo "configure: failed program was:" >&5 | |
2084 | cat conftest.$ac_ext >&5 | |
2085 | rm -rf conftest* | |
2086 | eval "ac_cv_func_$ac_func=no" | |
2087 | fi | |
2088 | rm -f conftest* | |
2089 | fi | |
2090 | ||
2091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2092 | echo "$ac_t""yes" 1>&6 | |
2093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2094 | cat >> confdefs.h <<EOF | |
2095 | #define $ac_tr_func 1 | |
2096 | EOF | |
2097 | ||
2098 | else | |
2099 | echo "$ac_t""no" 1>&6 | |
2100 | fi | |
2101 | done | |
2102 | ||
2103 | for ac_func in vprintf | |
2104 | do | |
2105 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2106 | echo "configure:2107: checking for $ac_func" >&5 |
956d6950 JL |
2107 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2109 | else | |
2110 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2111 | #line 2112 "configure" |
956d6950 JL |
2112 | #include "confdefs.h" |
2113 | /* System header to define __stub macros and hopefully few prototypes, | |
2114 | which can conflict with char $ac_func(); below. */ | |
2115 | #include <assert.h> | |
2116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2117 | /* We use char because int might match the return type of a gcc2 | |
2118 | builtin and then its argument prototype would still apply. */ | |
2119 | char $ac_func(); | |
2120 | ||
2121 | int main() { | |
2122 | ||
2123 | /* The GNU C library defines this for functions which it implements | |
2124 | to always fail with ENOSYS. Some functions are actually named | |
2125 | something starting with __ and the normal name is an alias. */ | |
2126 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2127 | choke me | |
2128 | #else | |
2129 | $ac_func(); | |
2130 | #endif | |
2131 | ||
2132 | ; return 0; } | |
2133 | EOF | |
f24af81b | 2134 | if { (eval echo configure:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2135 | rm -rf conftest* |
2136 | eval "ac_cv_func_$ac_func=yes" | |
2137 | else | |
2138 | echo "configure: failed program was:" >&5 | |
2139 | cat conftest.$ac_ext >&5 | |
2140 | rm -rf conftest* | |
2141 | eval "ac_cv_func_$ac_func=no" | |
2142 | fi | |
2143 | rm -f conftest* | |
2144 | fi | |
2145 | ||
2146 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2147 | echo "$ac_t""yes" 1>&6 | |
2148 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2149 | cat >> confdefs.h <<EOF | |
2150 | #define $ac_tr_func 1 | |
2151 | EOF | |
2152 | ||
2153 | else | |
2154 | echo "$ac_t""no" 1>&6 | |
2155 | fi | |
2156 | done | |
2157 | ||
2158 | for ac_func in bcopy | |
2159 | do | |
2160 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2161 | echo "configure:2162: checking for $ac_func" >&5 |
956d6950 JL |
2162 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2164 | else | |
2165 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2166 | #line 2167 "configure" |
956d6950 JL |
2167 | #include "confdefs.h" |
2168 | /* System header to define __stub macros and hopefully few prototypes, | |
2169 | which can conflict with char $ac_func(); below. */ | |
2170 | #include <assert.h> | |
2171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2172 | /* We use char because int might match the return type of a gcc2 | |
2173 | builtin and then its argument prototype would still apply. */ | |
2174 | char $ac_func(); | |
2175 | ||
2176 | int main() { | |
2177 | ||
2178 | /* The GNU C library defines this for functions which it implements | |
2179 | to always fail with ENOSYS. Some functions are actually named | |
2180 | something starting with __ and the normal name is an alias. */ | |
2181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2182 | choke me | |
2183 | #else | |
2184 | $ac_func(); | |
2185 | #endif | |
2186 | ||
2187 | ; return 0; } | |
2188 | EOF | |
f24af81b | 2189 | if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2190 | rm -rf conftest* |
2191 | eval "ac_cv_func_$ac_func=yes" | |
2192 | else | |
2193 | echo "configure: failed program was:" >&5 | |
2194 | cat conftest.$ac_ext >&5 | |
2195 | rm -rf conftest* | |
2196 | eval "ac_cv_func_$ac_func=no" | |
2197 | fi | |
2198 | rm -f conftest* | |
2199 | fi | |
2200 | ||
2201 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2202 | echo "$ac_t""yes" 1>&6 | |
2203 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2204 | cat >> confdefs.h <<EOF | |
2205 | #define $ac_tr_func 1 | |
2206 | EOF | |
2207 | ||
2208 | else | |
2209 | echo "$ac_t""no" 1>&6 | |
2210 | fi | |
2211 | done | |
2212 | ||
2213 | for ac_func in bzero | |
2214 | do | |
2215 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2216 | echo "configure:2217: checking for $ac_func" >&5 |
956d6950 JL |
2217 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2219 | else | |
2220 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2221 | #line 2222 "configure" |
956d6950 JL |
2222 | #include "confdefs.h" |
2223 | /* System header to define __stub macros and hopefully few prototypes, | |
2224 | which can conflict with char $ac_func(); below. */ | |
2225 | #include <assert.h> | |
2226 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2227 | /* We use char because int might match the return type of a gcc2 | |
2228 | builtin and then its argument prototype would still apply. */ | |
2229 | char $ac_func(); | |
2230 | ||
2231 | int main() { | |
2232 | ||
2233 | /* The GNU C library defines this for functions which it implements | |
2234 | to always fail with ENOSYS. Some functions are actually named | |
2235 | something starting with __ and the normal name is an alias. */ | |
2236 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2237 | choke me | |
2238 | #else | |
2239 | $ac_func(); | |
2240 | #endif | |
2241 | ||
2242 | ; return 0; } | |
2243 | EOF | |
f24af81b | 2244 | if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2245 | rm -rf conftest* |
2246 | eval "ac_cv_func_$ac_func=yes" | |
2247 | else | |
2248 | echo "configure: failed program was:" >&5 | |
2249 | cat conftest.$ac_ext >&5 | |
2250 | rm -rf conftest* | |
2251 | eval "ac_cv_func_$ac_func=no" | |
2252 | fi | |
2253 | rm -f conftest* | |
2254 | fi | |
2255 | ||
2256 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2257 | echo "$ac_t""yes" 1>&6 | |
2258 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2259 | cat >> confdefs.h <<EOF | |
2260 | #define $ac_tr_func 1 | |
2261 | EOF | |
2262 | ||
2263 | else | |
2264 | echo "$ac_t""no" 1>&6 | |
2265 | fi | |
2266 | done | |
2267 | ||
2268 | for ac_func in bcmp | |
2269 | do | |
2270 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2271 | echo "configure:2272: checking for $ac_func" >&5 |
956d6950 JL |
2272 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2274 | else | |
2275 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2276 | #line 2277 "configure" |
956d6950 JL |
2277 | #include "confdefs.h" |
2278 | /* System header to define __stub macros and hopefully few prototypes, | |
2279 | which can conflict with char $ac_func(); below. */ | |
2280 | #include <assert.h> | |
2281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2282 | /* We use char because int might match the return type of a gcc2 | |
2283 | builtin and then its argument prototype would still apply. */ | |
2284 | char $ac_func(); | |
2285 | ||
2286 | int main() { | |
2287 | ||
2288 | /* The GNU C library defines this for functions which it implements | |
2289 | to always fail with ENOSYS. Some functions are actually named | |
2290 | something starting with __ and the normal name is an alias. */ | |
2291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2292 | choke me | |
2293 | #else | |
2294 | $ac_func(); | |
2295 | #endif | |
2296 | ||
2297 | ; return 0; } | |
2298 | EOF | |
f24af81b | 2299 | if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2300 | rm -rf conftest* |
2301 | eval "ac_cv_func_$ac_func=yes" | |
2302 | else | |
2303 | echo "configure: failed program was:" >&5 | |
2304 | cat conftest.$ac_ext >&5 | |
2305 | rm -rf conftest* | |
2306 | eval "ac_cv_func_$ac_func=no" | |
2307 | fi | |
2308 | rm -f conftest* | |
2309 | fi | |
2310 | ||
2311 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2312 | echo "$ac_t""yes" 1>&6 | |
2313 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2314 | cat >> confdefs.h <<EOF | |
2315 | #define $ac_tr_func 1 | |
2316 | EOF | |
2317 | ||
2318 | else | |
2319 | echo "$ac_t""no" 1>&6 | |
2320 | fi | |
2321 | done | |
2322 | ||
2323 | for ac_func in index | |
2324 | do | |
2325 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2326 | echo "configure:2327: checking for $ac_func" >&5 |
956d6950 JL |
2327 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2329 | else | |
2330 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2331 | #line 2332 "configure" |
956d6950 JL |
2332 | #include "confdefs.h" |
2333 | /* System header to define __stub macros and hopefully few prototypes, | |
2334 | which can conflict with char $ac_func(); below. */ | |
2335 | #include <assert.h> | |
2336 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2337 | /* We use char because int might match the return type of a gcc2 | |
2338 | builtin and then its argument prototype would still apply. */ | |
2339 | char $ac_func(); | |
2340 | ||
2341 | int main() { | |
2342 | ||
2343 | /* The GNU C library defines this for functions which it implements | |
2344 | to always fail with ENOSYS. Some functions are actually named | |
2345 | something starting with __ and the normal name is an alias. */ | |
2346 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2347 | choke me | |
2348 | #else | |
2349 | $ac_func(); | |
2350 | #endif | |
2351 | ||
2352 | ; return 0; } | |
2353 | EOF | |
f24af81b | 2354 | if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
2355 | rm -rf conftest* |
2356 | eval "ac_cv_func_$ac_func=yes" | |
2357 | else | |
2358 | echo "configure: failed program was:" >&5 | |
2359 | cat conftest.$ac_ext >&5 | |
2360 | rm -rf conftest* | |
2361 | eval "ac_cv_func_$ac_func=no" | |
2362 | fi | |
2363 | rm -f conftest* | |
2364 | fi | |
2365 | ||
2366 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2367 | echo "$ac_t""yes" 1>&6 | |
2368 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2369 | cat >> confdefs.h <<EOF | |
2370 | #define $ac_tr_func 1 | |
2371 | EOF | |
2372 | ||
2373 | else | |
2374 | echo "$ac_t""no" 1>&6 | |
2375 | fi | |
2376 | done | |
2377 | ||
2378 | for ac_func in rindex | |
2379 | do | |
2380 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2381 | echo "configure:2382: checking for $ac_func" >&5 |
956d6950 JL |
2382 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2384 | else | |
2385 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2386 | #line 2387 "configure" |
956d6950 JL |
2387 | #include "confdefs.h" |
2388 | /* System header to define __stub macros and hopefully few prototypes, | |
2389 | which can conflict with char $ac_func(); below. */ | |
2390 | #include <assert.h> | |
2391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2392 | /* We use char because int might match the return type of a gcc2 | |
2393 | builtin and then its argument prototype would still apply. */ | |
2394 | char $ac_func(); | |
2395 | ||
2396 | int main() { | |
2397 | ||
2398 | /* The GNU C library defines this for functions which it implements | |
2399 | to always fail with ENOSYS. Some functions are actually named | |
2400 | something starting with __ and the normal name is an alias. */ | |
2401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2402 | choke me | |
2403 | #else | |
2404 | $ac_func(); | |
2405 | #endif | |
2406 | ||
2407 | ; return 0; } | |
2408 | EOF | |
f24af81b | 2409 | if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
861bb6c1 | 2410 | rm -rf conftest* |
956d6950 | 2411 | eval "ac_cv_func_$ac_func=yes" |
861bb6c1 | 2412 | else |
861bb6c1 JL |
2413 | echo "configure: failed program was:" >&5 |
2414 | cat conftest.$ac_ext >&5 | |
2415 | rm -rf conftest* | |
956d6950 | 2416 | eval "ac_cv_func_$ac_func=no" |
861bb6c1 JL |
2417 | fi |
2418 | rm -f conftest* | |
2419 | fi | |
956d6950 JL |
2420 | |
2421 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
861bb6c1 | 2422 | echo "$ac_t""yes" 1>&6 |
956d6950 | 2423 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
861bb6c1 | 2424 | cat >> confdefs.h <<EOF |
956d6950 | 2425 | #define $ac_tr_func 1 |
861bb6c1 JL |
2426 | EOF |
2427 | ||
2428 | else | |
2429 | echo "$ac_t""no" 1>&6 | |
2430 | fi | |
2431 | done | |
2432 | ||
956d6950 JL |
2433 | for ac_func in kill |
2434 | do | |
2435 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2436 | echo "configure:2437: checking for $ac_func" >&5 |
956d6950 | 2437 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7636d567 JW |
2438 | echo $ac_n "(cached) $ac_c" 1>&6 |
2439 | else | |
2440 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2441 | #line 2442 "configure" |
7636d567 | 2442 | #include "confdefs.h" |
956d6950 JL |
2443 | /* System header to define __stub macros and hopefully few prototypes, |
2444 | which can conflict with char $ac_func(); below. */ | |
2445 | #include <assert.h> | |
2446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2447 | /* We use char because int might match the return type of a gcc2 | |
2448 | builtin and then its argument prototype would still apply. */ | |
2449 | char $ac_func(); | |
2450 | ||
7636d567 | 2451 | int main() { |
956d6950 JL |
2452 | |
2453 | /* The GNU C library defines this for functions which it implements | |
2454 | to always fail with ENOSYS. Some functions are actually named | |
2455 | something starting with __ and the normal name is an alias. */ | |
2456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2457 | choke me | |
2458 | #else | |
2459 | $ac_func(); | |
2460 | #endif | |
2461 | ||
7636d567 JW |
2462 | ; return 0; } |
2463 | EOF | |
f24af81b | 2464 | if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7636d567 | 2465 | rm -rf conftest* |
956d6950 | 2466 | eval "ac_cv_func_$ac_func=yes" |
7636d567 JW |
2467 | else |
2468 | echo "configure: failed program was:" >&5 | |
2469 | cat conftest.$ac_ext >&5 | |
2470 | rm -rf conftest* | |
956d6950 | 2471 | eval "ac_cv_func_$ac_func=no" |
7636d567 JW |
2472 | fi |
2473 | rm -f conftest* | |
2474 | fi | |
2475 | ||
956d6950 JL |
2476 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2477 | echo "$ac_t""yes" 1>&6 | |
2478 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2479 | cat >> confdefs.h <<EOF | |
2480 | #define $ac_tr_func 1 | |
2481 | EOF | |
2482 | ||
2483 | else | |
2484 | echo "$ac_t""no" 1>&6 | |
2485 | fi | |
2486 | done | |
2487 | ||
0a232106 MH |
2488 | for ac_func in getrlimit |
2489 | do | |
2490 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2491 | echo "configure:2492: checking for $ac_func" >&5 |
0a232106 MH |
2492 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2494 | else | |
2495 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2496 | #line 2497 "configure" |
0a232106 MH |
2497 | #include "confdefs.h" |
2498 | /* System header to define __stub macros and hopefully few prototypes, | |
2499 | which can conflict with char $ac_func(); below. */ | |
2500 | #include <assert.h> | |
2501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2502 | /* We use char because int might match the return type of a gcc2 | |
2503 | builtin and then its argument prototype would still apply. */ | |
2504 | char $ac_func(); | |
2505 | ||
2506 | int main() { | |
2507 | ||
2508 | /* The GNU C library defines this for functions which it implements | |
2509 | to always fail with ENOSYS. Some functions are actually named | |
2510 | something starting with __ and the normal name is an alias. */ | |
2511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2512 | choke me | |
2513 | #else | |
2514 | $ac_func(); | |
2515 | #endif | |
2516 | ||
2517 | ; return 0; } | |
2518 | EOF | |
f24af81b | 2519 | if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0a232106 MH |
2520 | rm -rf conftest* |
2521 | eval "ac_cv_func_$ac_func=yes" | |
2522 | else | |
2523 | echo "configure: failed program was:" >&5 | |
2524 | cat conftest.$ac_ext >&5 | |
2525 | rm -rf conftest* | |
2526 | eval "ac_cv_func_$ac_func=no" | |
2527 | fi | |
2528 | rm -f conftest* | |
2529 | fi | |
2530 | ||
2531 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2532 | echo "$ac_t""yes" 1>&6 | |
2533 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2534 | cat >> confdefs.h <<EOF | |
2535 | #define $ac_tr_func 1 | |
2536 | EOF | |
2537 | ||
2538 | else | |
2539 | echo "$ac_t""no" 1>&6 | |
2540 | fi | |
2541 | done | |
2542 | ||
2543 | for ac_func in setrlimit | |
2544 | do | |
2545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f24af81b | 2546 | echo "configure:2547: checking for $ac_func" >&5 |
0a232106 MH |
2547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2549 | else | |
2550 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2551 | #line 2552 "configure" |
0a232106 MH |
2552 | #include "confdefs.h" |
2553 | /* System header to define __stub macros and hopefully few prototypes, | |
2554 | which can conflict with char $ac_func(); below. */ | |
2555 | #include <assert.h> | |
2556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2557 | /* We use char because int might match the return type of a gcc2 | |
2558 | builtin and then its argument prototype would still apply. */ | |
2559 | char $ac_func(); | |
2560 | ||
2561 | int main() { | |
2562 | ||
2563 | /* The GNU C library defines this for functions which it implements | |
2564 | to always fail with ENOSYS. Some functions are actually named | |
2565 | something starting with __ and the normal name is an alias. */ | |
2566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2567 | choke me | |
2568 | #else | |
2569 | $ac_func(); | |
2570 | #endif | |
2571 | ||
2572 | ; return 0; } | |
2573 | EOF | |
f24af81b | 2574 | if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0a232106 MH |
2575 | rm -rf conftest* |
2576 | eval "ac_cv_func_$ac_func=yes" | |
2577 | else | |
2578 | echo "configure: failed program was:" >&5 | |
2579 | cat conftest.$ac_ext >&5 | |
2580 | rm -rf conftest* | |
2581 | eval "ac_cv_func_$ac_func=no" | |
2582 | fi | |
2583 | rm -f conftest* | |
2584 | fi | |
2585 | ||
2586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2587 | echo "$ac_t""yes" 1>&6 | |
2588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2589 | cat >> confdefs.h <<EOF | |
2590 | #define $ac_tr_func 1 | |
2591 | EOF | |
2592 | ||
2593 | else | |
2594 | echo "$ac_t""no" 1>&6 | |
2595 | fi | |
2596 | done | |
2597 | ||
7636d567 | 2598 | |
861bb6c1 | 2599 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 |
f24af81b | 2600 | echo "configure:2601: checking whether malloc must be declared" >&5 |
861bb6c1 JL |
2601 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then |
2602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2603 | else | |
2604 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2605 | #line 2606 "configure" |
861bb6c1 JL |
2606 | #include "confdefs.h" |
2607 | ||
2608 | #include <stdio.h> | |
2609 | #ifdef HAVE_STRING_H | |
2610 | #include <string.h> | |
2611 | #else | |
2612 | #ifdef HAVE_STRINGS_H | |
2613 | #include <strings.h> | |
2614 | #endif | |
2615 | #endif | |
2616 | #ifdef HAVE_STDLIB_H | |
2617 | #include <stdlib.h> | |
2618 | #endif | |
2619 | #ifdef HAVE_UNISTD_H | |
2620 | #include <unistd.h> | |
2621 | #endif | |
956d6950 JL |
2622 | #ifndef HAVE_RINDEX |
2623 | #define rindex strrchr | |
2624 | #endif | |
2625 | #ifndef HAVE_INDEX | |
2626 | #define index strchr | |
2627 | #endif | |
861bb6c1 JL |
2628 | int main() { |
2629 | char *(*pfn) = (char *(*)) malloc | |
2630 | ; return 0; } | |
2631 | EOF | |
f24af81b | 2632 | if { (eval echo configure:2633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
861bb6c1 JL |
2633 | rm -rf conftest* |
2634 | gcc_cv_decl_needed_malloc=no | |
2635 | else | |
2636 | echo "configure: failed program was:" >&5 | |
2637 | cat conftest.$ac_ext >&5 | |
2638 | rm -rf conftest* | |
2639 | gcc_cv_decl_needed_malloc=yes | |
2640 | fi | |
2641 | rm -f conftest* | |
2642 | fi | |
2643 | ||
2644 | echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6 | |
2645 | if test $gcc_cv_decl_needed_malloc = yes; then | |
2646 | gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2647 | cat >> confdefs.h <<EOF | |
2648 | #define $gcc_tr_decl 1 | |
2649 | EOF | |
2650 | ||
2651 | fi | |
2652 | ||
2653 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 | |
f24af81b | 2654 | echo "configure:2655: checking whether realloc must be declared" >&5 |
861bb6c1 JL |
2655 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then |
2656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2657 | else | |
2658 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2659 | #line 2660 "configure" |
861bb6c1 JL |
2660 | #include "confdefs.h" |
2661 | ||
2662 | #include <stdio.h> | |
2663 | #ifdef HAVE_STRING_H | |
2664 | #include <string.h> | |
2665 | #else | |
2666 | #ifdef HAVE_STRINGS_H | |
2667 | #include <strings.h> | |
2668 | #endif | |
2669 | #endif | |
2670 | #ifdef HAVE_STDLIB_H | |
2671 | #include <stdlib.h> | |
2672 | #endif | |
2673 | #ifdef HAVE_UNISTD_H | |
2674 | #include <unistd.h> | |
2675 | #endif | |
956d6950 JL |
2676 | #ifndef HAVE_RINDEX |
2677 | #define rindex strrchr | |
2678 | #endif | |
2679 | #ifndef HAVE_INDEX | |
2680 | #define index strchr | |
2681 | #endif | |
861bb6c1 JL |
2682 | int main() { |
2683 | char *(*pfn) = (char *(*)) realloc | |
2684 | ; return 0; } | |
2685 | EOF | |
f24af81b | 2686 | if { (eval echo configure:2687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
861bb6c1 JL |
2687 | rm -rf conftest* |
2688 | gcc_cv_decl_needed_realloc=no | |
2689 | else | |
2690 | echo "configure: failed program was:" >&5 | |
2691 | cat conftest.$ac_ext >&5 | |
2692 | rm -rf conftest* | |
2693 | gcc_cv_decl_needed_realloc=yes | |
2694 | fi | |
2695 | rm -f conftest* | |
2696 | fi | |
2697 | ||
2698 | echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6 | |
2699 | if test $gcc_cv_decl_needed_realloc = yes; then | |
2700 | gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2701 | cat >> confdefs.h <<EOF | |
2702 | #define $gcc_tr_decl 1 | |
2703 | EOF | |
2704 | ||
2705 | fi | |
2706 | ||
19372aa1 | 2707 | echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6 |
f24af81b | 2708 | echo "configure:2709: checking whether calloc must be declared" >&5 |
19372aa1 JW |
2709 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then |
2710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2711 | else | |
2712 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2713 | #line 2714 "configure" |
19372aa1 JW |
2714 | #include "confdefs.h" |
2715 | ||
2716 | #include <stdio.h> | |
2717 | #ifdef HAVE_STRING_H | |
2718 | #include <string.h> | |
2719 | #else | |
2720 | #ifdef HAVE_STRINGS_H | |
2721 | #include <strings.h> | |
2722 | #endif | |
2723 | #endif | |
2724 | #ifdef HAVE_STDLIB_H | |
2725 | #include <stdlib.h> | |
2726 | #endif | |
2727 | #ifdef HAVE_UNISTD_H | |
2728 | #include <unistd.h> | |
2729 | #endif | |
956d6950 JL |
2730 | #ifndef HAVE_RINDEX |
2731 | #define rindex strrchr | |
2732 | #endif | |
2733 | #ifndef HAVE_INDEX | |
2734 | #define index strchr | |
2735 | #endif | |
19372aa1 JW |
2736 | int main() { |
2737 | char *(*pfn) = (char *(*)) calloc | |
2738 | ; return 0; } | |
2739 | EOF | |
f24af81b | 2740 | if { (eval echo configure:2741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
19372aa1 JW |
2741 | rm -rf conftest* |
2742 | gcc_cv_decl_needed_calloc=no | |
2743 | else | |
2744 | echo "configure: failed program was:" >&5 | |
2745 | cat conftest.$ac_ext >&5 | |
2746 | rm -rf conftest* | |
2747 | gcc_cv_decl_needed_calloc=yes | |
2748 | fi | |
2749 | rm -f conftest* | |
2750 | fi | |
2751 | ||
2752 | echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6 | |
2753 | if test $gcc_cv_decl_needed_calloc = yes; then | |
2754 | gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2755 | cat >> confdefs.h <<EOF | |
2756 | #define $gcc_tr_decl 1 | |
2757 | EOF | |
2758 | ||
2759 | fi | |
2760 | ||
861bb6c1 | 2761 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 |
f24af81b | 2762 | echo "configure:2763: checking whether free must be declared" >&5 |
861bb6c1 JL |
2763 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then |
2764 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2765 | else | |
2766 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2767 | #line 2768 "configure" |
861bb6c1 JL |
2768 | #include "confdefs.h" |
2769 | ||
2770 | #include <stdio.h> | |
2771 | #ifdef HAVE_STRING_H | |
2772 | #include <string.h> | |
2773 | #else | |
2774 | #ifdef HAVE_STRINGS_H | |
2775 | #include <strings.h> | |
2776 | #endif | |
2777 | #endif | |
2778 | #ifdef HAVE_STDLIB_H | |
2779 | #include <stdlib.h> | |
2780 | #endif | |
2781 | #ifdef HAVE_UNISTD_H | |
2782 | #include <unistd.h> | |
2783 | #endif | |
956d6950 JL |
2784 | #ifndef HAVE_RINDEX |
2785 | #define rindex strrchr | |
2786 | #endif | |
2787 | #ifndef HAVE_INDEX | |
2788 | #define index strchr | |
2789 | #endif | |
861bb6c1 JL |
2790 | int main() { |
2791 | char *(*pfn) = (char *(*)) free | |
2792 | ; return 0; } | |
2793 | EOF | |
f24af81b | 2794 | if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
861bb6c1 JL |
2795 | rm -rf conftest* |
2796 | gcc_cv_decl_needed_free=no | |
2797 | else | |
2798 | echo "configure: failed program was:" >&5 | |
2799 | cat conftest.$ac_ext >&5 | |
2800 | rm -rf conftest* | |
2801 | gcc_cv_decl_needed_free=yes | |
2802 | fi | |
2803 | rm -f conftest* | |
2804 | fi | |
2805 | ||
2806 | echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6 | |
2807 | if test $gcc_cv_decl_needed_free = yes; then | |
2808 | gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2809 | cat >> confdefs.h <<EOF | |
2810 | #define $gcc_tr_decl 1 | |
2811 | EOF | |
2812 | ||
2813 | fi | |
2814 | ||
956d6950 | 2815 | echo $ac_n "checking whether index must be declared""... $ac_c" 1>&6 |
f24af81b | 2816 | echo "configure:2817: checking whether index must be declared" >&5 |
956d6950 | 2817 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_index'+set}'`\" = set"; then |
e3512ac2 JL |
2818 | echo $ac_n "(cached) $ac_c" 1>&6 |
2819 | else | |
2820 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2821 | #line 2822 "configure" |
e3512ac2 | 2822 | #include "confdefs.h" |
956d6950 JL |
2823 | |
2824 | #include <stdio.h> | |
2825 | #ifdef HAVE_STRING_H | |
2826 | #include <string.h> | |
2827 | #else | |
2828 | #ifdef HAVE_STRINGS_H | |
2829 | #include <strings.h> | |
2830 | #endif | |
2831 | #endif | |
2832 | #ifdef HAVE_STDLIB_H | |
2833 | #include <stdlib.h> | |
2834 | #endif | |
e3512ac2 JL |
2835 | #ifdef HAVE_UNISTD_H |
2836 | #include <unistd.h> | |
2837 | #endif | |
956d6950 JL |
2838 | #ifndef HAVE_RINDEX |
2839 | #define rindex strrchr | |
2840 | #endif | |
2841 | #ifndef HAVE_INDEX | |
2842 | #define index strchr | |
2843 | #endif | |
e3512ac2 | 2844 | int main() { |
956d6950 | 2845 | char *(*pfn) = (char *(*)) index |
e3512ac2 JL |
2846 | ; return 0; } |
2847 | EOF | |
f24af81b | 2848 | if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e3512ac2 | 2849 | rm -rf conftest* |
956d6950 | 2850 | gcc_cv_decl_needed_index=no |
e3512ac2 JL |
2851 | else |
2852 | echo "configure: failed program was:" >&5 | |
2853 | cat conftest.$ac_ext >&5 | |
2854 | rm -rf conftest* | |
956d6950 | 2855 | gcc_cv_decl_needed_index=yes |
e3512ac2 JL |
2856 | fi |
2857 | rm -f conftest* | |
2858 | fi | |
2859 | ||
956d6950 JL |
2860 | echo "$ac_t""$gcc_cv_decl_needed_index" 1>&6 |
2861 | if test $gcc_cv_decl_needed_index = yes; then | |
2862 | gcc_tr_decl=NEED_DECLARATION_`echo index | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2863 | cat >> confdefs.h <<EOF | |
2864 | #define $gcc_tr_decl 1 | |
e3512ac2 JL |
2865 | EOF |
2866 | ||
2867 | fi | |
2868 | ||
956d6950 | 2869 | echo $ac_n "checking whether rindex must be declared""... $ac_c" 1>&6 |
f24af81b | 2870 | echo "configure:2871: checking whether rindex must be declared" >&5 |
956d6950 | 2871 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_rindex'+set}'`\" = set"; then |
a63d08e6 JL |
2872 | echo $ac_n "(cached) $ac_c" 1>&6 |
2873 | else | |
2874 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2875 | #line 2876 "configure" |
a63d08e6 | 2876 | #include "confdefs.h" |
a63d08e6 | 2877 | |
956d6950 JL |
2878 | #include <stdio.h> |
2879 | #ifdef HAVE_STRING_H | |
2880 | #include <string.h> | |
2881 | #else | |
2882 | #ifdef HAVE_STRINGS_H | |
2883 | #include <strings.h> | |
2884 | #endif | |
2885 | #endif | |
2886 | #ifdef HAVE_STDLIB_H | |
2887 | #include <stdlib.h> | |
2888 | #endif | |
2889 | #ifdef HAVE_UNISTD_H | |
2890 | #include <unistd.h> | |
2891 | #endif | |
2892 | #ifndef HAVE_RINDEX | |
2893 | #define rindex strrchr | |
2894 | #endif | |
2895 | #ifndef HAVE_INDEX | |
2896 | #define index strchr | |
2897 | #endif | |
a63d08e6 | 2898 | int main() { |
956d6950 JL |
2899 | char *(*pfn) = (char *(*)) rindex |
2900 | ; return 0; } | |
2901 | EOF | |
f24af81b | 2902 | if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2903 | rm -rf conftest* |
2904 | gcc_cv_decl_needed_rindex=no | |
2905 | else | |
2906 | echo "configure: failed program was:" >&5 | |
2907 | cat conftest.$ac_ext >&5 | |
2908 | rm -rf conftest* | |
2909 | gcc_cv_decl_needed_rindex=yes | |
2910 | fi | |
2911 | rm -f conftest* | |
2912 | fi | |
a63d08e6 | 2913 | |
956d6950 JL |
2914 | echo "$ac_t""$gcc_cv_decl_needed_rindex" 1>&6 |
2915 | if test $gcc_cv_decl_needed_rindex = yes; then | |
2916 | gcc_tr_decl=NEED_DECLARATION_`echo rindex | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2917 | cat >> confdefs.h <<EOF | |
2918 | #define $gcc_tr_decl 1 | |
2919 | EOF | |
2920 | ||
2921 | fi | |
2922 | ||
2923 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 | |
f24af81b | 2924 | echo "configure:2925: checking whether getenv must be declared" >&5 |
956d6950 JL |
2925 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_getenv'+set}'`\" = set"; then |
2926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2927 | else | |
2928 | cat > conftest.$ac_ext <<EOF | |
f24af81b | 2929 | #line 2930 "configure" |
956d6950 JL |
2930 | #include "confdefs.h" |
2931 | ||
2932 | #include <stdio.h> | |
2933 | #ifdef HAVE_STRING_H | |
2934 | #include <string.h> | |
a63d08e6 | 2935 | #else |
956d6950 JL |
2936 | #ifdef HAVE_STRINGS_H |
2937 | #include <strings.h> | |
a63d08e6 | 2938 | #endif |
956d6950 JL |
2939 | #endif |
2940 | #ifdef HAVE_STDLIB_H | |
2941 | #include <stdlib.h> | |
2942 | #endif | |
2943 | #ifdef HAVE_UNISTD_H | |
2944 | #include <unistd.h> | |
2945 | #endif | |
2946 | #ifndef HAVE_RINDEX | |
2947 | #define rindex strrchr | |
2948 | #endif | |
2949 | #ifndef HAVE_INDEX | |
2950 | #define index strchr | |
2951 | #endif | |
2952 | int main() { | |
2953 | char *(*pfn) = (char *(*)) getenv | |
a63d08e6 JL |
2954 | ; return 0; } |
2955 | EOF | |
f24af81b | 2956 | if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a63d08e6 | 2957 | rm -rf conftest* |
956d6950 | 2958 | gcc_cv_decl_needed_getenv=no |
a63d08e6 JL |
2959 | else |
2960 | echo "configure: failed program was:" >&5 | |
2961 | cat conftest.$ac_ext >&5 | |
2962 | rm -rf conftest* | |
956d6950 | 2963 | gcc_cv_decl_needed_getenv=yes |
a63d08e6 JL |
2964 | fi |
2965 | rm -f conftest* | |
2966 | fi | |
2967 | ||
956d6950 JL |
2968 | echo "$ac_t""$gcc_cv_decl_needed_getenv" 1>&6 |
2969 | if test $gcc_cv_decl_needed_getenv = yes; then | |
2970 | gcc_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
a63d08e6 | 2971 | cat >> confdefs.h <<EOF |
956d6950 | 2972 | #define $gcc_tr_decl 1 |
a63d08e6 | 2973 | EOF |
956d6950 JL |
2974 | |
2975 | fi | |
2976 | ||
2977 | ||
2978 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
f24af81b | 2979 | echo "configure:2980: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2980 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2982 | else |
956d6950 | 2983 | cat > conftest.$ac_ext <<EOF |
f24af81b | 2984 | #line 2985 "configure" |
956d6950 JL |
2985 | #include "confdefs.h" |
2986 | #include <sys/types.h> | |
2987 | #include <signal.h> | |
2988 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2989 | #ifdef HAVE_UNISTD_H | |
2990 | #include <unistd.h> | |
2991 | #endif | |
2992 | int main() { | |
2993 | char *msg = *(sys_siglist + 1); | |
2994 | ; return 0; } | |
2995 | EOF | |
f24af81b | 2996 | if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2997 | rm -rf conftest* |
2998 | ac_cv_decl_sys_siglist=yes | |
2999 | else | |
3000 | echo "configure: failed program was:" >&5 | |
3001 | cat conftest.$ac_ext >&5 | |
3002 | rm -rf conftest* | |
3003 | ac_cv_decl_sys_siglist=no | |
3004 | fi | |
3005 | rm -f conftest* | |
3006 | fi | |
3007 | ||
3008 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
3009 | if test $ac_cv_decl_sys_siglist = yes; then | |
3010 | cat >> confdefs.h <<\EOF | |
3011 | #define SYS_SIGLIST_DECLARED 1 | |
3012 | EOF | |
3013 | ||
a63d08e6 | 3014 | fi |
a63d08e6 JL |
3015 | |
3016 | ||
861bb6c1 JL |
3017 | # File extensions |
3018 | manext='.1' | |
3019 | objext='.o' | |
3020 | ||
3021 | ||
3022 | ||
3023 | build_xm_file= | |
861bb6c1 JL |
3024 | build_install_headers_dir=install-headers-tar |
3025 | build_exeext= | |
3026 | host_xm_file= | |
3027 | host_xmake_file= | |
3028 | host_truncate_target= | |
3029 | ||
3030 | # Decode the host machine, then the target machine. | |
3031 | # For the host machine, we save the xm_file variable as host_xm_file; | |
3032 | # then we decode the target machine and forget everything else | |
3033 | # that came from the host machine. | |
3034 | for machine in $build $host $target; do | |
3035 | ||
3036 | out_file= | |
3037 | xmake_file= | |
3038 | tmake_file= | |
3039 | extra_headers= | |
3040 | extra_passes= | |
3041 | extra_parts= | |
3042 | extra_programs= | |
3043 | extra_objs= | |
3044 | extra_host_objs= | |
3045 | extra_gcc_objs= | |
3046 | float_format= | |
3047 | # Set this to force installation and use of collect2. | |
3048 | use_collect2= | |
3049 | # Set this to override the default target model. | |
3050 | target_cpu_default= | |
861bb6c1 JL |
3051 | # Set this to control which fixincludes program to use. |
3052 | fixincludes=fixincludes | |
3053 | # Set this to control how the header file directory is installed. | |
3054 | install_headers_dir=install-headers-tar | |
3055 | # Set this to a non-empty list of args to pass to cpp if the target | |
3056 | # wants its .md file passed through cpp. | |
3057 | md_cppflags= | |
3058 | # Set this if directory names should be truncated to 14 characters. | |
3059 | truncate_target= | |
3060 | # Set this if gdb needs a dir command with `dirname $out_file` | |
3061 | gdb_needs_out_file_path= | |
3062 | # Set this if the build machine requires executables to have a | |
3063 | # file name suffix. | |
3064 | exeext= | |
3065 | ||
3066 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
3067 | # each machine entry. | |
3068 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
3069 | case $machine in | |
3070 | alpha*-*-*) | |
3071 | cpu_type=alpha | |
3072 | ;; | |
3073 | arm*-*-*) | |
3074 | cpu_type=arm | |
3075 | ;; | |
3076 | c*-convex-*) | |
3077 | cpu_type=convex | |
3078 | ;; | |
3079 | i[3456]86-*-*) | |
3080 | cpu_type=i386 | |
3081 | ;; | |
3082 | hppa*-*-*) | |
3083 | cpu_type=pa | |
3084 | ;; | |
3085 | m68000-*-*) | |
3086 | cpu_type=m68k | |
3087 | ;; | |
3088 | mips*-*-*) | |
3089 | cpu_type=mips | |
3090 | ;; | |
3091 | powerpc*-*-*) | |
3092 | cpu_type=rs6000 | |
3093 | ;; | |
3094 | pyramid-*-*) | |
3095 | cpu_type=pyr | |
3096 | ;; | |
3097 | sparc*-*-*) | |
3098 | cpu_type=sparc | |
3099 | ;; | |
3100 | esac | |
3101 | ||
3102 | tm_file=${cpu_type}/${cpu_type}.h | |
3103 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
3104 | ||
3105 | case $machine in | |
3106 | # Support site-specific machine types. | |
3107 | *local*) | |
3108 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
3109 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
3110 | xm_file=${cpu_type}/xm-$rest.h | |
3111 | tm_file=${cpu_type}/$rest.h | |
3112 | if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \ | |
3113 | then xmake_file=${cpu_type}/x-$rest; \ | |
3114 | else true; \ | |
3115 | fi | |
3116 | if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \ | |
3117 | then tmake_file=${cpu_type}/t-$rest; \ | |
3118 | else true; \ | |
3119 | fi | |
3120 | ;; | |
3121 | 1750a-*-*) | |
3122 | ;; | |
3123 | a29k-*-bsd* | a29k-*-sym1*) | |
3124 | tm_file="${tm_file} a29k/unix.h" | |
3125 | xm_file=a29k/xm-unix.h | |
3126 | xmake_file=a29k/x-unix | |
3127 | use_collect2=yes | |
3128 | ;; | |
3129 | a29k-*-udi | a29k-*-coff) | |
3130 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3131 | tmake_file=a29k/t-a29kbare | |
3132 | ;; | |
3133 | a29k-*-vxworks*) | |
3134 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" | |
3135 | tmake_file=a29k/t-vx29k | |
3136 | extra_parts="crtbegin.o crtend.o" | |
3137 | ;; | |
3138 | a29k-*-*) # Default a29k environment. | |
3139 | use_collect2=yes | |
3140 | ;; | |
3141 | alpha*-*-linux-gnuecoff*) | |
b0435cf4 RH |
3142 | if [ x$enable_haifa != xno ]; then |
3143 | enable_haifa=yes | |
3144 | fi | |
3145 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" | |
861bb6c1 | 3146 | xm_file="${xm_file} alpha/xm-linux.h" |
861bb6c1 JL |
3147 | gas=no |
3148 | xmake_file=none | |
3149 | fixincludes=Makefile.in | |
3150 | gas=yes gnu_ld=yes | |
3151 | ;; | |
2601ebca | 3152 | alpha*-*-linux-gnulibc1*) |
b0435cf4 RH |
3153 | if [ x$enable_haifa != xno ]; then |
3154 | enable_haifa=yes | |
3155 | fi | |
3156 | tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h" | |
2601ebca | 3157 | xm_file="${xm_file} alpha/xm-linux.h" |
2601ebca JL |
3158 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux" |
3159 | xmake_file=none | |
3160 | fixincludes=Makefile.in | |
3161 | gas=yes gnu_ld=yes | |
3162 | if [ x$enable_threads = xyes ]; then | |
3163 | thread_file='posix' | |
3164 | fi | |
3165 | ;; | |
861bb6c1 | 3166 | alpha*-*-linux-gnu*) |
b0435cf4 RH |
3167 | if [ x$enable_haifa != xno ]; then |
3168 | enable_haifa=yes | |
3169 | fi | |
3170 | tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h" | |
861bb6c1 | 3171 | xm_file="${xm_file} alpha/xm-linux.h" |
861bb6c1 JL |
3172 | tmake_file="t-linux alpha/t-linux" |
3173 | xmake_file=none | |
3174 | fixincludes=Makefile.in | |
861bb6c1 JL |
3175 | gas=yes gnu_ld=yes |
3176 | if [ x$enable_threads = xyes ]; then | |
3177 | thread_file='posix' | |
3178 | fi | |
3179 | ;; | |
e9a25f70 | 3180 | alpha*-dec-osf*) |
b0435cf4 RH |
3181 | if [ x$enable_haifa != xno ]; then |
3182 | enable_haifa=yes | |
3183 | fi | |
861bb6c1 JL |
3184 | if [ x$stabs = xyes ] |
3185 | then | |
3186 | tm_file="${tm_file} dbx.h" | |
3187 | fi | |
3188 | if [ x$gas != xyes ] | |
3189 | then | |
3190 | extra_passes="mips-tfile mips-tdump" | |
3191 | fi | |
861bb6c1 | 3192 | use_collect2=yes |
861bb6c1 | 3193 | case $machine in |
e9a25f70 | 3194 | *-*-osf1.2) |
b0435cf4 | 3195 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3196 | ;; |
3197 | *-*-osf[23]*) | |
b0435cf4 | 3198 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3199 | ;; |
3200 | *-*-osf4*) | |
b0435cf4 | 3201 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3202 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3203 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3204 | install_headers_dir=install-headers-cpio |
3205 | ;; | |
3206 | esac | |
e9a25f70 JL |
3207 | case $machine in |
3208 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
3209 | target_cpu_default=MASK_SUPPORT_ARCH | |
3210 | ;; | |
3211 | esac | |
861bb6c1 | 3212 | ;; |
b0435cf4 RH |
3213 | alpha*-*-winnt*) |
3214 | if [ x$enable_haifa != xno ]; then | |
3215 | enable_haifa=yes | |
3216 | fi | |
861bb6c1 | 3217 | tm_file="${tm_file} alpha/win-nt.h" |
861bb6c1 JL |
3218 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
3219 | tmake_file=t-libc-ok | |
3220 | xmake_file=winnt/x-winnt | |
3221 | extra_host_objs=oldnames.o | |
3222 | extra_gcc_objs="spawnv.o oldnames.o" | |
3223 | fixincludes=fixinc.winnt | |
3224 | if [ x$gnu_ld != xyes ] | |
3225 | then | |
3226 | extra_programs=ld.exe | |
3227 | fi | |
3228 | if [ x$enable_threads = xyes ]; then | |
3229 | thread_file='win32' | |
3230 | fi | |
3231 | ;; | |
3232 | alpha*-dec-vms*) | |
b0435cf4 RH |
3233 | if [ x$enable_haifa != xno ]; then |
3234 | enable_haifa=yes | |
3235 | fi | |
861bb6c1 JL |
3236 | tm_file=alpha/vms.h |
3237 | xm_file="${xm_file} alpha/xm-vms.h" | |
3238 | tmake_file=alpha/t-vms | |
3239 | fixincludes=Makefile.in | |
3240 | ;; | |
66ed0683 JL |
3241 | arc-*-elf*) |
3242 | extra_parts="crtinit.o crtfini.o" | |
3243 | ;; | |
861bb6c1 JL |
3244 | arm-*-coff* | armel-*-coff*) |
3245 | tm_file=arm/coff.h | |
3246 | tmake_file=arm/t-bare | |
3247 | ;; | |
3248 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
3249 | tm_file=arm/riscix1-1.h | |
3250 | use_collect2=yes | |
3251 | ;; | |
3252 | arm-*-riscix*) # Acorn RISC machine | |
3253 | if [ x$gas = xyes ] | |
3254 | then | |
3255 | tm_file=arm/rix-gas.h | |
3256 | else | |
3257 | tm_file=arm/riscix.h | |
3258 | fi | |
3259 | xmake_file=arm/x-riscix | |
3260 | tmake_file=arm/t-riscix | |
3261 | use_collect2=yes | |
3262 | ;; | |
3263 | arm-semi-aout | armel-semi-aout) | |
3264 | tm_file=arm/semi.h | |
3265 | tmake_file=arm/t-semi | |
3266 | fixincludes=Makefile.in # There is nothing to fix | |
3267 | ;; | |
3268 | arm-semi-aof | armel-semi-aof) | |
3269 | tm_file=arm/semiaof.h | |
3270 | tmake_file=arm/t-semiaof | |
3271 | fixincludes=Makefile.in # There is nothing to fix | |
3272 | ;; | |
3273 | arm-*-netbsd*) | |
3274 | tm_file=arm/netbsd.h | |
3275 | xm_file=arm/xm-netbsd.h | |
e9a25f70 | 3276 | tmake_file="t-netbsd arm/t-netbsd" |
be1ed94f JL |
3277 | # On NetBSD, the headers are already okay, except for math.h. |
3278 | fixincludes=fixinc.math | |
861bb6c1 | 3279 | ;; |
956d6950 | 3280 | arm-*-linux-gnuaout*) # ARM GNU/Linux |
861bb6c1 JL |
3281 | cpu_type=arm |
3282 | xm_file=arm/xm-linux.h | |
3283 | xmake_file=x-linux | |
3284 | tm_file=arm/linux-gas.h | |
3285 | tmake_file=arm/t-linux | |
3286 | fixincludes=Makefile.in | |
861bb6c1 JL |
3287 | gnu_ld=yes |
3288 | ;; | |
3289 | arm-*-aout) | |
3290 | tm_file=arm/aout.h | |
e9a25f70 | 3291 | tmake_file=arm/t-bare |
861bb6c1 JL |
3292 | ;; |
3293 | c1-convex-*) # Convex C1 | |
3294 | target_cpu_default=1 | |
3295 | use_collect2=yes | |
3296 | fixincludes=Makefile.in | |
3297 | ;; | |
3298 | c2-convex-*) # Convex C2 | |
3299 | target_cpu_default=2 | |
3300 | use_collect2=yes | |
3301 | fixincludes=Makefile.in | |
3302 | ;; | |
3303 | c32-convex-*) | |
3304 | target_cpu_default=4 | |
3305 | use_collect2=yes | |
3306 | fixincludes=Makefile.in | |
3307 | ;; | |
3308 | c34-convex-*) | |
3309 | target_cpu_default=8 | |
3310 | use_collect2=yes | |
3311 | fixincludes=Makefile.in | |
3312 | ;; | |
3313 | c38-convex-*) | |
3314 | target_cpu_default=16 | |
3315 | use_collect2=yes | |
3316 | fixincludes=Makefile.in | |
3317 | ;; | |
3318 | clipper-intergraph-clix*) | |
3319 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3320 | xm_file=clipper/xm-clix.h | |
3321 | xmake_file=clipper/x-clix | |
3322 | extra_headers=va-clipper.h | |
3323 | extra_parts="crtbegin.o crtend.o" | |
3324 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3325 | ;; |
3326 | dsp16xx-*) | |
3327 | ;; | |
3328 | elxsi-elxsi-*) | |
3329 | use_collect2=yes | |
3330 | ;; | |
3331 | # This hasn't been upgraded to GCC 2. | |
3332 | # fx80-alliant-*) # Alliant FX/80 | |
3333 | # ;; | |
3334 | h8300-*-*) | |
3335 | float_format=i32 | |
3336 | ;; | |
3337 | hppa1.1-*-pro*) | |
2da05a5b JL |
3338 | if [ x$enable_haifa != xno ]; then |
3339 | enable_haifa=yes | |
3340 | fi | |
861bb6c1 JL |
3341 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" |
3342 | xm_file=pa/xm-papro.h | |
3343 | tmake_file=pa/t-pro | |
3344 | ;; | |
3345 | hppa1.1-*-osf*) | |
2da05a5b JL |
3346 | if [ x$enable_haifa != xno ]; then |
3347 | enable_haifa=yes | |
3348 | fi | |
861bb6c1 JL |
3349 | target_cpu_default=1 |
3350 | tm_file="${tm_file} pa/pa-osf.h" | |
3351 | use_collect2=yes | |
3352 | fixincludes=Makefile.in | |
3353 | ;; | |
3354 | hppa1.1-*-rtems*) | |
2da05a5b JL |
3355 | if [ x$enable_haifa != xno ]; then |
3356 | enable_haifa=yes | |
3357 | fi | |
861bb6c1 JL |
3358 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" |
3359 | xm_file=pa/xm-papro.h | |
3360 | tmake_file=pa/t-pro | |
3361 | ;; | |
3362 | hppa1.0-*-osf*) | |
2da05a5b JL |
3363 | if [ x$enable_haifa != xno ]; then |
3364 | enable_haifa=yes | |
3365 | fi | |
861bb6c1 JL |
3366 | tm_file="${tm_file} pa/pa-osf.h" |
3367 | use_collect2=yes | |
3368 | fixincludes=Makefile.in | |
3369 | ;; | |
3370 | hppa1.1-*-bsd*) | |
2da05a5b JL |
3371 | if [ x$enable_haifa != xno ]; then |
3372 | enable_haifa=yes | |
3373 | fi | |
861bb6c1 JL |
3374 | target_cpu_default=1 |
3375 | use_collect2=yes | |
3376 | fixincludes=Makefile.in | |
3377 | ;; | |
3378 | hppa1.0-*-bsd*) | |
2da05a5b JL |
3379 | if [ x$enable_haifa != xno ]; then |
3380 | enable_haifa=yes | |
3381 | fi | |
861bb6c1 JL |
3382 | use_collect2=yes |
3383 | fixincludes=Makefile.in | |
3384 | ;; | |
3385 | hppa1.0-*-hpux7*) | |
2da05a5b JL |
3386 | if [ x$enable_haifa != xno ]; then |
3387 | enable_haifa=yes | |
3388 | fi | |
861bb6c1 JL |
3389 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" |
3390 | xm_file=pa/xm-pahpux.h | |
3391 | xmake_file=pa/x-pa-hpux | |
3392 | if [ x$gas = xyes ] | |
3393 | then | |
3394 | tm_file="${tm_file} pa/gas.h" | |
3395 | fi | |
861bb6c1 JL |
3396 | install_headers_dir=install-headers-cpio |
3397 | use_collect2=yes | |
3398 | ;; | |
3399 | hppa1.0-*-hpux8.0[0-2]*) | |
2da05a5b JL |
3400 | if [ x$enable_haifa != xno ]; then |
3401 | enable_haifa=yes | |
3402 | fi | |
861bb6c1 JL |
3403 | tm_file="${tm_file} pa/pa-hpux.h" |
3404 | xm_file=pa/xm-pahpux.h | |
3405 | xmake_file=pa/x-pa-hpux | |
3406 | if [ x$gas = xyes ] | |
3407 | then | |
3408 | tm_file="${tm_file} pa/pa-gas.h" | |
3409 | else | |
3410 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3411 | fi | |
861bb6c1 JL |
3412 | install_headers_dir=install-headers-cpio |
3413 | use_collect2=yes | |
3414 | ;; | |
3415 | hppa1.1-*-hpux8.0[0-2]*) | |
2da05a5b JL |
3416 | if [ x$enable_haifa != xno ]; then |
3417 | enable_haifa=yes | |
3418 | fi | |
861bb6c1 JL |
3419 | target_cpu_default=1 |
3420 | tm_file="${tm_file} pa/pa-hpux.h" | |
3421 | xm_file=pa/xm-pahpux.h | |
3422 | xmake_file=pa/x-pa-hpux | |
3423 | if [ x$gas = xyes ] | |
3424 | then | |
3425 | tm_file="${tm_file} pa/pa-gas.h" | |
3426 | else | |
3427 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3428 | fi | |
861bb6c1 JL |
3429 | install_headers_dir=install-headers-cpio |
3430 | use_collect2=yes | |
3431 | ;; | |
3432 | hppa1.1-*-hpux8*) | |
2da05a5b JL |
3433 | if [ x$enable_haifa != xno ]; then |
3434 | enable_haifa=yes | |
3435 | fi | |
861bb6c1 JL |
3436 | target_cpu_default=1 |
3437 | tm_file="${tm_file} pa/pa-hpux.h" | |
3438 | xm_file=pa/xm-pahpux.h | |
3439 | xmake_file=pa/x-pa-hpux | |
3440 | if [ x$gas = xyes ] | |
3441 | then | |
3442 | tm_file="${tm_file} pa/pa-gas.h" | |
3443 | fi | |
861bb6c1 JL |
3444 | install_headers_dir=install-headers-cpio |
3445 | use_collect2=yes | |
3446 | ;; | |
3447 | hppa1.0-*-hpux8*) | |
2da05a5b JL |
3448 | if [ x$enable_haifa != xno ]; then |
3449 | enable_haifa=yes | |
3450 | fi | |
861bb6c1 JL |
3451 | tm_file="${tm_file} pa/pa-hpux.h" |
3452 | xm_file=pa/xm-pahpux.h | |
3453 | xmake_file=pa/x-pa-hpux | |
3454 | if [ x$gas = xyes ] | |
3455 | then | |
3456 | tm_file="${tm_file} pa/pa-gas.h" | |
3457 | fi | |
861bb6c1 JL |
3458 | install_headers_dir=install-headers-cpio |
3459 | use_collect2=yes | |
3460 | ;; | |
3461 | hppa1.1-*-hpux10*) | |
2da05a5b JL |
3462 | if [ x$enable_haifa != xno ]; then |
3463 | enable_haifa=yes | |
3464 | fi | |
861bb6c1 JL |
3465 | target_cpu_default=1 |
3466 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
3467 | xm_file=pa/xm-pahpux.h | |
3468 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3469 | tmake_file=pa/t-pa |
861bb6c1 JL |
3470 | if [ x$gas = xyes ] |
3471 | then | |
3472 | tm_file="${tm_file} pa/pa-gas.h" | |
3473 | fi | |
f24af81b TT |
3474 | if [ x$enable_threads = x ]; then |
3475 | enable_threads=$have_pthread_h | |
3476 | fi | |
3477 | if [ x$enable_threads = xyes ]; then | |
3478 | thread_file='dce' | |
3479 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3480 | fi | |
861bb6c1 JL |
3481 | install_headers_dir=install-headers-cpio |
3482 | use_collect2=yes | |
3483 | ;; | |
3484 | hppa1.0-*-hpux10*) | |
2da05a5b JL |
3485 | if [ x$enable_haifa != xno ]; then |
3486 | enable_haifa=yes | |
3487 | fi | |
861bb6c1 JL |
3488 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" |
3489 | xm_file=pa/xm-pahpux.h | |
3490 | xmake_file=pa/x-pa-hpux | |
3491 | if [ x$gas = xyes ] | |
3492 | then | |
3493 | tm_file="${tm_file} pa/pa-gas.h" | |
3494 | fi | |
861bb6c1 JL |
3495 | install_headers_dir=install-headers-cpio |
3496 | use_collect2=yes | |
3497 | ;; | |
3498 | hppa1.1-*-hpux*) | |
2da05a5b JL |
3499 | if [ x$enable_haifa != xno ]; then |
3500 | enable_haifa=yes | |
3501 | fi | |
861bb6c1 JL |
3502 | target_cpu_default=1 |
3503 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
3504 | xm_file=pa/xm-pahpux.h | |
3505 | xmake_file=pa/x-pa-hpux | |
3506 | if [ x$gas = xyes ] | |
3507 | then | |
3508 | tm_file="${tm_file} pa/pa-gas.h" | |
3509 | fi | |
861bb6c1 JL |
3510 | install_headers_dir=install-headers-cpio |
3511 | use_collect2=yes | |
3512 | ;; | |
3513 | hppa1.0-*-hpux*) | |
2da05a5b JL |
3514 | if [ x$enable_haifa != xno ]; then |
3515 | enable_haifa=yes | |
3516 | fi | |
861bb6c1 JL |
3517 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" |
3518 | xm_file=pa/xm-pahpux.h | |
3519 | xmake_file=pa/x-pa-hpux | |
3520 | if [ x$gas = xyes ] | |
3521 | then | |
3522 | tm_file="${tm_file} pa/pa-gas.h" | |
3523 | fi | |
861bb6c1 JL |
3524 | install_headers_dir=install-headers-cpio |
3525 | use_collect2=yes | |
3526 | ;; | |
3527 | hppa1.1-*-hiux*) | |
2da05a5b JL |
3528 | if [ x$enable_haifa != xno ]; then |
3529 | enable_haifa=yes | |
3530 | fi | |
861bb6c1 JL |
3531 | target_cpu_default=1 |
3532 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
3533 | xm_file=pa/xm-pahpux.h | |
3534 | xmake_file=pa/x-pa-hpux | |
3535 | if [ x$gas = xyes ] | |
3536 | then | |
3537 | tm_file="${tm_file} pa/pa-gas.h" | |
3538 | fi | |
861bb6c1 JL |
3539 | install_headers_dir=install-headers-cpio |
3540 | use_collect2=yes | |
3541 | ;; | |
3542 | hppa1.0-*-hiux*) | |
2da05a5b JL |
3543 | if [ x$enable_haifa != xno ]; then |
3544 | enable_haifa=yes | |
3545 | fi | |
861bb6c1 JL |
3546 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" |
3547 | xm_file=pa/xm-pahpux.h | |
3548 | xmake_file=pa/x-pa-hpux | |
3549 | if [ x$gas = xyes ] | |
3550 | then | |
3551 | tm_file="${tm_file} pa/pa-gas.h" | |
3552 | fi | |
861bb6c1 JL |
3553 | install_headers_dir=install-headers-cpio |
3554 | use_collect2=yes | |
3555 | ;; | |
3556 | hppa*-*-lites*) | |
2da05a5b JL |
3557 | if [ x$enable_haifa != xno ]; then |
3558 | enable_haifa=yes | |
3559 | fi | |
861bb6c1 JL |
3560 | target_cpu_default=1 |
3561 | use_collect2=yes | |
3562 | fixincludes=Makefile.in | |
3563 | ;; | |
3564 | i370-*-mvs*) | |
3565 | ;; | |
3566 | i[3456]86-ibm-aix*) # IBM PS/2 running AIX | |
3567 | if [ x$gas = xyes ] | |
3568 | then | |
3569 | tm_file=i386/aix386.h | |
3570 | extra_parts="crtbegin.o crtend.o" | |
3571 | tmake_file=i386/t-crtstuff | |
3572 | else | |
3573 | tm_file=i386/aix386ng.h | |
3574 | use_collect2=yes | |
3575 | fi | |
3576 | xm_file=i386/xm-aix.h | |
3577 | xmake_file=i386/x-aix | |
861bb6c1 | 3578 | ;; |
b4dfb707 | 3579 | i[456]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
861bb6c1 JL |
3580 | xm_file=i386/xm-sysv4.h |
3581 | xmake_file=i386/x-ncr3000 | |
3582 | if [ x$stabs = xyes -a x$gas = xyes ] | |
3583 | then | |
3584 | tm_file=i386/sysv4gdb.h | |
3585 | else | |
3586 | tm_file=i386/sysv4.h | |
3587 | fi | |
3588 | extra_parts="crtbegin.o crtend.o" | |
3589 | tmake_file=i386/t-crtpic | |
3590 | ;; | |
3591 | i[3456]86-next-*) | |
3592 | tm_file=i386/next.h | |
3593 | xm_file=i386/xm-next.h | |
3594 | tmake_file=i386/t-next | |
3595 | xmake_file=i386/x-next | |
3596 | extra_objs=nextstep.o | |
3597 | if [ x$enable_threads = xyes ]; then | |
3598 | thread_file='mach' | |
3599 | fi | |
3600 | ;; | |
3601 | i[3456]86-sequent-bsd*) # 80386 from Sequent | |
3602 | use_collect2=yes | |
3603 | if [ x$gas = xyes ] | |
3604 | then | |
3605 | tm_file=i386/seq-gas.h | |
3606 | else | |
3607 | tm_file=i386/sequent.h | |
3608 | fi | |
3609 | ;; | |
3610 | i[3456]86-sequent-ptx1*) | |
3611 | xm_file=i386/xm-sysv3.h | |
3612 | xmake_file=i386/x-sysv3 | |
3613 | tm_file=i386/seq-sysv3.h | |
3614 | tmake_file=i386/t-crtstuff | |
3615 | fixincludes=fixinc.ptx | |
3616 | extra_parts="crtbegin.o crtend.o" | |
3617 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3618 | ;; |
3619 | i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*) | |
3620 | xm_file=i386/xm-sysv3.h | |
3621 | xmake_file=i386/x-sysv3 | |
3622 | tm_file=i386/seq2-sysv3.h | |
3623 | tmake_file=i386/t-crtstuff | |
3624 | extra_parts="crtbegin.o crtend.o" | |
3625 | fixincludes=fixinc.ptx | |
3626 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3627 | ;; |
3628 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*) | |
3629 | xm_file=i386/xm-sysv4.h | |
3630 | xmake_file=x-svr4 | |
3631 | tm_file=i386/ptx4-i.h | |
3632 | tmake_file=t-svr4 | |
3633 | extra_parts="crtbegin.o crtend.o" | |
3634 | fixincludes=fixinc.ptx | |
3635 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3636 | ;; |
3637 | i386-sun-sunos*) # Sun i386 roadrunner | |
3638 | xm_file=i386/xm-sun.h | |
3639 | tm_file=i386/sun.h | |
3640 | use_collect2=yes | |
3641 | ;; | |
3642 | i[3456]86-*-aout*) | |
3643 | tm_file=i386/i386-aout.h | |
3644 | tmake_file=i386/t-i386bare | |
3645 | ;; | |
3646 | i[3456]86-*-bsdi* | i[345]86-*-bsd386*) | |
3647 | tm_file=i386/bsd386.h | |
3648 | xm_file=i386/xm-bsd386.h | |
3649 | # tmake_file=t-libc-ok | |
3650 | ;; | |
3651 | i[3456]86-*-bsd*) | |
3652 | tm_file=i386/386bsd.h | |
3653 | xm_file=i386/xm-bsd386.h | |
3654 | # tmake_file=t-libc-ok | |
3655 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
3656 | # use_collect2=yes | |
3657 | ;; | |
3658 | i[3456]86-*-freebsdelf*) | |
3659 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" | |
be1ed94f JL |
3660 | # On FreeBSD, the headers are already ok, except for math.h. |
3661 | fixincludes=fixinc.math | |
861bb6c1 JL |
3662 | tmake_file=i386/t-freebsd |
3663 | gas=yes | |
3664 | gnu_ld=yes | |
3665 | stabs=yes | |
3666 | ;; | |
3667 | i[3456]86-*-freebsd*) | |
3668 | tm_file=i386/freebsd.h | |
ca55abae | 3669 | # On FreeBSD, the headers are already ok, except for math.h. |
be1ed94f | 3670 | fixincludes=fixinc.math |
861bb6c1 JL |
3671 | tmake_file=i386/t-freebsd |
3672 | ;; | |
3673 | i[3456]86-*-netbsd*) | |
3674 | tm_file=i386/netbsd.h | |
be1ed94f JL |
3675 | # On NetBSD, the headers are already okay, except for math.h. |
3676 | fixincludes=fixinc.math | |
861bb6c1 JL |
3677 | tmake_file=t-netbsd |
3678 | ;; | |
3679 | i[3456]86-*-coff*) | |
3680 | tm_file=i386/i386-coff.h | |
3681 | tmake_file=i386/t-i386bare | |
3682 | ;; | |
3683 | i[3456]86-*-isc*) # 80386 running ISC system | |
3684 | xm_file=i386/xm-isc.h | |
3685 | case $machine in | |
3686 | i[345]86-*-isc[34]*) | |
3687 | xmake_file=i386/x-isc3 | |
3688 | ;; | |
3689 | *) | |
3690 | xmake_file=i386/x-isc | |
3691 | ;; | |
3692 | esac | |
3693 | if [ x$gas = xyes -a x$stabs = xyes ] | |
3694 | then | |
3695 | tm_file=i386/iscdbx.h | |
3696 | tmake_file=i386/t-svr3dbx | |
3697 | extra_parts="svr3.ifile svr3z.ifile" | |
3698 | else | |
3699 | tm_file=i386/isccoff.h | |
3700 | tmake_file=i386/t-crtstuff | |
3701 | extra_parts="crtbegin.o crtend.o" | |
3702 | fi | |
3703 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3704 | ;; |
956d6950 | 3705 | i[3456]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
3706 | xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers |
3707 | xmake_file=x-linux-aout | |
3708 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3709 | tm_file=i386/linux-oldld.h | |
3710 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
3711 | gnu_ld=yes |
3712 | ;; | |
956d6950 | 3713 | i[3456]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
3714 | xm_file=i386/xm-linux.h # with a.out format |
3715 | xmake_file=x-linux-aout | |
3716 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3717 | tm_file=i386/linux-aout.h | |
3718 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
3719 | gnu_ld=yes |
3720 | ;; | |
3721 | i[3456]86-*-linux-gnulibc1) | |
956d6950 | 3722 | xm_file=i386/xm-linux.h # Intel 80386's running GNU/Linux |
861bb6c1 | 3723 | xmake_file=x-linux # with ELF format using the |
956d6950 | 3724 | tm_file=i386/linux.h # GNU/Linux C library 5 |
861bb6c1 JL |
3725 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
3726 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3727 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
3728 | gnu_ld=yes |
3729 | if [ x$enable_threads = xyes ]; then | |
3730 | thread_file='single' | |
3731 | fi | |
3732 | ;; | |
956d6950 | 3733 | i[3456]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
861bb6c1 | 3734 | xm_file=i386/xm-linux.h # with ELF format using glibc 2 |
956d6950 | 3735 | xmake_file=x-linux # aka GNU/Linux C library 6 |
861bb6c1 JL |
3736 | tm_file=i386/linux.h |
3737 | tmake_file="t-linux i386/t-crtstuff" | |
3738 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3739 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
3740 | gnu_ld=yes |
3741 | if [ x$enable_threads = xyes ]; then | |
3742 | thread_file='posix' | |
3743 | fi | |
3744 | ;; | |
3745 | i[3456]86-*-gnu*) | |
3746 | ;; | |
3747 | i[3456]86-go32-msdos | i[3456]86-*-go32*) | |
3748 | xm_file=i386/xm-go32.h | |
3749 | tm_file=i386/go32.h | |
3750 | tmake_file=i386/t-go32 | |
3751 | ;; | |
3752 | i[3456]86-moss-msdos* | i[3456]86-*-moss*) | |
3753 | tm_file=i386/moss.h | |
3754 | tmake_file=t-libc-ok | |
3755 | fixincludes=Makefile.in | |
3756 | gnu_ld=yes | |
3757 | gas=yes | |
3758 | ;; | |
3759 | i[3456]86-*-lynxos*) | |
3760 | if [ x$gas = xyes ] | |
3761 | then | |
3762 | tm_file=i386/lynx.h | |
3763 | else | |
3764 | tm_file=i386/lynx-ng.h | |
3765 | fi | |
3766 | xm_file=i386/xm-lynx.h | |
3767 | tmake_file=i386/t-i386bare | |
3768 | xmake_file=x-lynx | |
3769 | ;; | |
3770 | i[3456]86-*-mach*) | |
3771 | tm_file=i386/mach.h | |
3772 | # tmake_file=t-libc-ok | |
3773 | use_collect2=yes | |
3774 | ;; | |
3775 | i[3456]86-*-osfrose*) # 386 using OSF/rose | |
3776 | if [ x$elf = xyes ] | |
3777 | then | |
3778 | tm_file=i386/osfelf.h | |
3779 | use_collect2= | |
3780 | else | |
3781 | tm_file=i386/osfrose.h | |
3782 | use_collect2=yes | |
3783 | fi | |
3784 | xm_file=i386/xm-osf.h | |
3785 | xmake_file=i386/x-osfrose | |
3786 | tmake_file=i386/t-osf | |
3787 | extra_objs=halfpic.o | |
3788 | ;; | |
3789 | i[345]86-go32-rtems*) | |
3790 | cpu_type=i386 | |
3791 | xm_file=i386/xm-go32.h | |
3792 | tm_file=i386/go32-rtems.h | |
3793 | tmake_file="i386/t-go32 t-rtems" | |
3794 | ;; | |
3795 | i[345]86-*-rtems*) | |
3796 | cpu_type=i386 | |
3797 | tm_file=i386/rtems.h | |
3798 | tmake_file="i386/t-i386bare t-rtems" | |
3799 | ;; | |
3800 | i[3456]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
3801 | xm_file=i386/xm-sco5.h | |
3802 | xmake_file=i386/x-sco5 | |
3803 | fixincludes=fixinc.sco | |
f6857708 | 3804 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
3805 | tm_file=i386/sco5.h |
3806 | tmake_file=i386/t-sco5 | |
3807 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
3808 | ;; | |
3809 | i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system | |
3810 | xm_file=i386/xm-sco.h | |
3811 | xmake_file=i386/x-sco4 | |
3812 | fixincludes=fixinc.sco | |
861bb6c1 JL |
3813 | install_headers_dir=install-headers-cpio |
3814 | if [ x$stabs = xyes ] | |
3815 | then | |
3816 | tm_file=i386/sco4dbx.h | |
3817 | tmake_file=i386/t-svr3dbx | |
3818 | extra_parts="svr3.ifile svr3z.rfile" | |
3819 | else | |
3820 | tm_file=i386/sco4.h | |
3821 | tmake_file=i386/t-crtstuff | |
3822 | extra_parts="crtbegin.o crtend.o" | |
3823 | fi | |
3824 | truncate_target=yes | |
3825 | ;; | |
3826 | i[3456]86-*-sco*) # 80386 running SCO system | |
3827 | xm_file=i386/xm-sco.h | |
3828 | xmake_file=i386/x-sco | |
861bb6c1 JL |
3829 | install_headers_dir=install-headers-cpio |
3830 | if [ x$stabs = xyes ] | |
3831 | then | |
3832 | tm_file=i386/scodbx.h | |
3833 | tmake_file=i386/t-svr3dbx | |
3834 | extra_parts="svr3.ifile svr3z.rfile" | |
3835 | else | |
3836 | tm_file=i386/sco.h | |
3837 | extra_parts="crtbegin.o crtend.o" | |
3838 | tmake_file=i386/t-crtstuff | |
3839 | fi | |
3840 | truncate_target=yes | |
3841 | ;; | |
3842 | i[3456]86-*-solaris2*) | |
3843 | xm_file=i386/xm-sysv4.h | |
3844 | if [ x$stabs = xyes ] | |
3845 | then | |
3846 | tm_file=i386/sol2dbg.h | |
3847 | else | |
3848 | tm_file=i386/sol2.h | |
3849 | fi | |
3850 | tmake_file=i386/t-sol2 | |
3851 | extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o" | |
3852 | xmake_file=x-svr4 | |
3853 | fixincludes=fixinc.svr4 | |
e9a25f70 | 3854 | broken_install=yes |
861bb6c1 JL |
3855 | if [ x$enable_threads = xyes ]; then |
3856 | thread_file='solaris' | |
3857 | fi | |
3858 | ;; | |
3859 | i[3456]86-*-sysv4*) # Intel 80386's running system V.4 | |
3860 | xm_file=i386/xm-sysv4.h | |
3861 | tm_file=i386/sysv4.h | |
3862 | if [ x$stabs = xyes ] | |
3863 | then | |
3864 | tm_file="${tm_file} dbx.h" | |
3865 | fi | |
3866 | tmake_file=i386/t-crtpic | |
3867 | xmake_file=x-svr4 | |
3868 | extra_parts="crtbegin.o crtend.o" | |
3869 | ;; | |
3870 | i[3456]86-*-sysv*) # Intel 80386's running system V | |
3871 | xm_file=i386/xm-sysv3.h | |
3872 | xmake_file=i386/x-sysv3 | |
3873 | if [ x$gas = xyes ] | |
3874 | then | |
3875 | if [ x$stabs = xyes ] | |
3876 | then | |
3877 | tm_file=i386/svr3dbx.h | |
3878 | tmake_file=i386/t-svr3dbx | |
3879 | extra_parts="svr3.ifile svr3z.rfile" | |
3880 | else | |
3881 | tm_file=i386/svr3gas.h | |
3882 | extra_parts="crtbegin.o crtend.o" | |
3883 | tmake_file=i386/t-crtstuff | |
3884 | fi | |
3885 | else | |
3886 | tm_file=i386/sysv3.h | |
3887 | extra_parts="crtbegin.o crtend.o" | |
3888 | tmake_file=i386/t-crtstuff | |
3889 | fi | |
3890 | ;; | |
3891 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
3892 | xm_file=i386/xm-vsta.h | |
3893 | tm_file=i386/vsta.h | |
3894 | tmake_file=i386/t-vsta | |
3895 | xmake_file=i386/x-vsta | |
3896 | ;; | |
3897 | i[3456]86-*-pe | i[3456]86-*-cygwin32) | |
3898 | xm_file="${xm_file} i386/xm-cygwin32.h" | |
3899 | tmake_file=i386/t-cygwin32 | |
3900 | tm_file=i386/cygwin32.h | |
3901 | xmake_file=i386/x-cygwin32 | |
3902 | extra_objs=winnt.o | |
3903 | fixincludes=Makefile.in | |
3904 | if [ x$enable_threads = xyes ]; then | |
3905 | thread_file='win32' | |
3906 | fi | |
3907 | exeext=.exe | |
3908 | ;; | |
3909 | i[3456]86-*-mingw32) | |
3910 | tm_file=i386/mingw32.h | |
3911 | xm_file="${xm_file} i386/xm-mingw32.h" | |
3912 | tmake_file=i386/t-cygwin32 | |
3913 | extra_objs=winnt.o | |
3914 | xmake_file=i386/x-cygwin32 | |
3915 | fixincludes=Makefile.in | |
3916 | if [ x$enable_threads = xyes ]; then | |
3917 | thread_file='win32' | |
3918 | fi | |
3919 | exeext=.exe | |
3920 | ;; | |
b0435cf4 | 3921 | i[3456]86-*-winnt*) |
861bb6c1 JL |
3922 | tm_file=i386/win-nt.h |
3923 | out_file=i386/i386.c | |
3924 | xm_file=i386/xm-winnt.h | |
3925 | xmake_file=winnt/x-winnt | |
3926 | tmake_file=i386/t-winnt | |
3927 | extra_host_objs="winnt.o oldnames.o" | |
3928 | extra_gcc_objs="spawnv.o oldnames.o" | |
3929 | fixincludes=fixinc.winnt | |
3930 | if [ x$gnu_ld != xyes ] | |
3931 | then | |
3932 | extra_programs=ld.exe | |
3933 | fi | |
3934 | if [ x$enable_threads = xyes ]; then | |
3935 | thread_file='win32' | |
3936 | fi | |
3937 | ;; | |
3938 | i[3456]86-dg-dgux) | |
3939 | xm_file=i386/xm-dgux.h | |
3940 | out_file=i386/dgux.c | |
3941 | tm_file=i386/dgux.h | |
3942 | tmake_file=i386/t-dgux | |
3943 | xmake_file=i386/x-dgux | |
3944 | fixincludes=fixinc.dgux | |
3945 | install_headers_dir=install-headers-cpio | |
3946 | ;; | |
3947 | i860-alliant-*) # Alliant FX/2800 | |
3948 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 3949 | xm_file="${xm_file}" |
861bb6c1 JL |
3950 | xmake_file=i860/x-fx2800 |
3951 | tmake_file=i860/t-fx2800 | |
3952 | extra_parts="crtbegin.o crtend.o" | |
3953 | ;; | |
3954 | i860-*-bsd*) | |
3955 | tm_file="${tm_file} i860/bsd.h" | |
3956 | if [ x$gas = xyes ] | |
3957 | then | |
3958 | tm_file="${tm_file} i860/bsd-gas.h" | |
3959 | fi | |
3960 | use_collect2=yes | |
3961 | ;; | |
3962 | i860-*-mach*) | |
3963 | tm_file="${tm_file} i860/mach.h" | |
3964 | tmake_file=t-libc-ok | |
3965 | ;; | |
3966 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
3967 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
3968 | xm_file="${xm_file} xm-svr3.h" | |
3969 | tmake_file=t-osf | |
861bb6c1 JL |
3970 | ;; |
3971 | i860-*-sysv3*) | |
3972 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
3973 | xm_file="${tm_file} xm-svr3.h" | |
3974 | xmake_file=i860/x-sysv3 | |
3975 | extra_parts="crtbegin.o crtend.o" | |
3976 | ;; | |
3977 | i860-*-sysv4*) | |
3978 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
3979 | xm_file="${xm_file} xm-svr3.h" | |
3980 | xmake_file=i860/x-sysv4 | |
3981 | tmake_file=t-svr4 | |
3982 | extra_parts="crtbegin.o crtend.o" | |
3983 | ;; | |
3984 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
3985 | tm_file="${tm_file} i960/vx960.h" | |
3986 | tmake_file=i960/t-vxworks960 | |
3987 | use_collect2=yes | |
3988 | ;; | |
3989 | i960-wrs-vxworks5*) | |
3990 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" | |
3991 | tmake_file=i960/t-vxworks960 | |
3992 | use_collect2=yes | |
3993 | ;; | |
3994 | i960-wrs-vxworks*) | |
3995 | tm_file="${tm_file} i960/vx960.h" | |
3996 | tmake_file=i960/t-vxworks960 | |
3997 | use_collect2=yes | |
3998 | ;; | |
3999 | i960-*-coff*) | |
4000 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4001 | tmake_file=i960/t-960bare | |
4002 | use_collect2=yes | |
4003 | ;; | |
4004 | i960-*-rtems) | |
4005 | tmake_file="i960/t-960bare t-rtems" | |
4006 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4007 | use_collect2=yes | |
4008 | ;; | |
4009 | i960-*-*) # Default i960 environment. | |
4010 | use_collect2=yes | |
4011 | ;; | |
4012 | m32r-*-elf*) | |
4013 | extra_parts="crtinit.o crtfini.o" | |
4014 | ;; | |
4015 | m68000-convergent-sysv*) | |
4016 | tm_file=m68k/ctix.h | |
4017 | xm_file=m68k/xm-3b1.h | |
4018 | use_collect2=yes | |
4019 | extra_headers=math-68881.h | |
4020 | ;; | |
4021 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4022 | tm_file=m68k/hp2bsd.h | |
4023 | xmake_file=m68k/x-hp2bsd | |
4024 | use_collect2=yes | |
4025 | extra_headers=math-68881.h | |
4026 | ;; | |
4027 | m68000-hp-hpux*) # HP 9000 series 300 | |
4028 | xm_file=m68k/xm-hp320.h | |
4029 | if [ x$gas = xyes ] | |
4030 | then | |
4031 | xmake_file=m68k/x-hp320g | |
4032 | tm_file=m68k/hp310g.h | |
4033 | else | |
4034 | xmake_file=m68k/x-hp320 | |
4035 | tm_file=m68k/hp310.h | |
4036 | fi | |
861bb6c1 JL |
4037 | install_headers_dir=install-headers-cpio |
4038 | use_collect2=yes | |
4039 | extra_headers=math-68881.h | |
4040 | ;; | |
4041 | m68000-sun-sunos3*) | |
4042 | tm_file=m68k/sun2.h | |
4043 | use_collect2=yes | |
4044 | extra_headers=math-68881.h | |
4045 | ;; | |
4046 | m68000-sun-sunos4*) | |
4047 | tm_file=m68k/sun2o4.h | |
4048 | use_collect2=yes | |
4049 | extra_headers=math-68881.h | |
4050 | ;; | |
4051 | m68000-att-sysv*) | |
4052 | xm_file=m68k/xm-3b1.h | |
4053 | if [ x$gas = xyes ] | |
4054 | then | |
4055 | tm_file=m68k/3b1g.h | |
4056 | else | |
4057 | tm_file=m68k/3b1.h | |
4058 | fi | |
4059 | use_collect2=yes | |
4060 | extra_headers=math-68881.h | |
4061 | ;; | |
4062 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
4063 | xm_file=m68k/xm-aux.h | |
4064 | tmake_file=m68k/t-aux | |
861bb6c1 JL |
4065 | install_headers_dir=install-headers-cpio |
4066 | extra_headers=math-68881.h | |
4067 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4068 | tm_file= | |
4069 | if [ "$gnu_ld" = yes ] | |
4070 | then | |
4071 | tm_file="${tm_file} m68k/auxgld.h" | |
4072 | else | |
4073 | tm_file="${tm_file} m68k/auxld.h" | |
4074 | fi | |
4075 | if [ "$gas" = yes ] | |
4076 | then | |
4077 | tm_file="${tm_file} m68k/auxgas.h" | |
4078 | else | |
4079 | tm_file="${tm_file} m68k/auxas.h" | |
4080 | fi | |
4081 | tm_file="${tm_file} m68k/a-ux.h" | |
4082 | ;; | |
4083 | m68k-apollo-*) | |
4084 | tm_file=m68k/apollo68.h | |
4085 | xmake_file=m68k/x-apollo68 | |
4086 | use_collect2=yes | |
4087 | extra_headers=math-68881.h | |
4088 | ;; | |
4089 | m68k-altos-sysv*) # Altos 3068 | |
4090 | if [ x$gas = xyes ] | |
4091 | then | |
4092 | tm_file=m68k/altos3068.h | |
4093 | xm_file=m68k/xm-altos3068.h | |
4094 | else | |
4095 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4096 | exit 1 | |
4097 | fi | |
4098 | extra_headers=math-68881.h | |
4099 | ;; | |
4100 | m68k-bull-sysv*) # Bull DPX/2 | |
4101 | if [ x$gas = xyes ] | |
4102 | then | |
4103 | if [ x$stabs = xyes ] | |
4104 | then | |
4105 | tm_file=m68k/dpx2cdbx.h | |
4106 | else | |
4107 | tm_file=m68k/dpx2g.h | |
4108 | fi | |
4109 | else | |
4110 | tm_file=m68k/dpx2.h | |
4111 | fi | |
4112 | xm_file=m68k/xm-m68kv.h | |
4113 | xmake_file=m68k/x-dpx2 | |
4114 | use_collect2=yes | |
4115 | extra_headers=math-68881.h | |
4116 | ;; | |
4117 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4118 | tm_file=m68k/atari.h | |
4119 | xm_file=m68k/xm-atari.h | |
4120 | tmake_file=t-svr4 | |
4121 | extra_parts="crtbegin.o crtend.o" | |
4122 | extra_headers=math-68881.h | |
4123 | ;; | |
4124 | m68k-motorola-sysv*) | |
4125 | tm_file=m68k/mot3300.h | |
4126 | xm_file=m68k/xm-mot3300.h | |
4127 | if [ x$gas = xyes ] | |
4128 | then | |
4129 | xmake_file=m68k/x-mot3300-gas | |
4130 | if [ x$gnu_ld = xyes ] | |
4131 | then | |
4132 | tmake_file=m68k/t-mot3300-gald | |
4133 | else | |
4134 | tmake_file=m68k/t-mot3300-gas | |
4135 | use_collect2=yes | |
4136 | fi | |
4137 | else | |
4138 | xmake_file=m68k/x-mot3300 | |
4139 | if [ x$gnu_ld = xyes ] | |
4140 | then | |
4141 | tmake_file=m68k/t-mot3300-gld | |
4142 | else | |
4143 | tmake_file=m68k/t-mot3300 | |
4144 | use_collect2=yes | |
4145 | fi | |
4146 | fi | |
4147 | gdb_needs_out_file_path=yes | |
4148 | extra_parts="crt0.o mcrt0.o" | |
4149 | extra_headers=math-68881.h | |
4150 | ;; | |
4151 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4152 | tm_file=m68k/tower-as.h | |
956d6950 | 4153 | xm_file="${xm_file} xm-svr3.h" |
861bb6c1 JL |
4154 | xmake_file=m68k/x-tower |
4155 | extra_parts="crtbegin.o crtend.o" | |
4156 | extra_headers=math-68881.h | |
4157 | ;; | |
4158 | m68k-plexus-sysv*) | |
4159 | tm_file=m68k/plexus.h | |
4160 | xm_file=m68k/xm-plexus.h | |
4161 | use_collect2=yes | |
4162 | extra_headers=math-68881.h | |
4163 | ;; | |
4164 | m68k-tti-*) | |
4165 | tm_file=m68k/pbb.h | |
4166 | xm_file=m68k/xm-m68kv.h | |
4167 | extra_headers=math-68881.h | |
4168 | ;; | |
4169 | m68k-crds-unos*) | |
4170 | xm_file=m68k/xm-crds.h | |
4171 | xmake_file=m68k/x-crds | |
4172 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4173 | use_collect2=yes |
4174 | extra_headers=math-68881.h | |
4175 | ;; | |
4176 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4177 | tm_file=m68k/amix.h | |
4178 | xm_file=m68k/xm-amix.h | |
4179 | xmake_file=m68k/x-amix | |
4180 | tmake_file=t-svr4 | |
4181 | extra_parts="crtbegin.o crtend.o" | |
4182 | extra_headers=math-68881.h | |
4183 | ;; | |
4184 | m68k-ccur-rtu) | |
4185 | tm_file=m68k/ccur-GAS.h | |
4186 | xmake_file=m68k/x-ccur | |
4187 | extra_headers=math-68881.h | |
4188 | use_collect2=yes | |
861bb6c1 JL |
4189 | ;; |
4190 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4191 | tm_file=m68k/hp3bsd44.h | |
4192 | xmake_file=m68k/x-hp3bsd44 | |
4193 | use_collect2=yes | |
4194 | extra_headers=math-68881.h | |
4195 | ;; | |
4196 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4197 | tm_file=m68k/hp3bsd.h | |
4198 | use_collect2=yes | |
4199 | extra_headers=math-68881.h | |
4200 | ;; | |
4201 | m68k-isi-bsd*) | |
4202 | if [ x$with_fp = xno ] | |
4203 | then | |
4204 | tm_file=m68k/isi-nfp.h | |
4205 | else | |
4206 | tm_file=m68k/isi.h | |
4207 | fi | |
4208 | use_collect2=yes | |
4209 | extra_headers=math-68881.h | |
4210 | ;; | |
4211 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
4212 | xm_file=m68k/xm-hp320.h | |
4213 | if [ x$gas = xyes ] | |
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/hpux7.h | |
4220 | fi | |
861bb6c1 JL |
4221 | install_headers_dir=install-headers-cpio |
4222 | use_collect2=yes | |
4223 | extra_headers=math-68881.h | |
4224 | ;; | |
4225 | m68k-hp-hpux*) # HP 9000 series 300 | |
4226 | xm_file=m68k/xm-hp320.h | |
4227 | if [ x$gas = xyes ] | |
4228 | then | |
4229 | xmake_file=m68k/x-hp320g | |
4230 | tm_file=m68k/hp320g.h | |
4231 | else | |
4232 | xmake_file=m68k/x-hp320 | |
4233 | tm_file=m68k/hp320.h | |
4234 | fi | |
861bb6c1 JL |
4235 | install_headers_dir=install-headers-cpio |
4236 | use_collect2=yes | |
4237 | extra_headers=math-68881.h | |
4238 | ;; | |
4239 | m68k-sun-mach*) | |
4240 | tm_file=m68k/sun3mach.h | |
4241 | use_collect2=yes | |
4242 | extra_headers=math-68881.h | |
4243 | ;; | |
4244 | m68k-sony-newsos3*) | |
4245 | if [ x$gas = xyes ] | |
4246 | then | |
4247 | tm_file=m68k/news3gas.h | |
4248 | else | |
4249 | tm_file=m68k/news3.h | |
4250 | fi | |
4251 | use_collect2=yes | |
4252 | extra_headers=math-68881.h | |
4253 | ;; | |
4254 | m68k-sony-bsd* | m68k-sony-newsos*) | |
4255 | if [ x$gas = xyes ] | |
4256 | then | |
4257 | tm_file=m68k/newsgas.h | |
4258 | else | |
4259 | tm_file=m68k/news.h | |
4260 | fi | |
4261 | use_collect2=yes | |
4262 | extra_headers=math-68881.h | |
4263 | ;; | |
4264 | m68k-next-nextstep2*) | |
4265 | tm_file=m68k/next21.h | |
4266 | xm_file=m68k/xm-next.h | |
4267 | tmake_file=m68k/t-next | |
4268 | xmake_file=m68k/x-next | |
4269 | extra_objs=nextstep.o | |
4270 | extra_headers=math-68881.h | |
4271 | use_collect2=yes | |
4272 | ;; | |
4273 | m68k-next-nextstep3*) | |
4274 | tm_file=m68k/next.h | |
4275 | xm_file=m68k/xm-next.h | |
4276 | tmake_file=m68k/t-next | |
4277 | xmake_file=m68k/x-next | |
4278 | extra_objs=nextstep.o | |
4279 | extra_headers=math-68881.h | |
4280 | if [ x$enable_threads = xyes ]; then | |
4281 | thread_file='mach' | |
4282 | fi | |
4283 | ;; | |
4284 | m68k-sun-sunos3*) | |
4285 | if [ x$with_fp = xno ] | |
4286 | then | |
4287 | tm_file=m68k/sun3n3.h | |
4288 | else | |
4289 | tm_file=m68k/sun3o3.h | |
4290 | fi | |
4291 | use_collect2=yes | |
4292 | extra_headers=math-68881.h | |
4293 | ;; | |
4294 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
4295 | if [ x$with_fp = xno ] | |
4296 | then | |
4297 | tm_file=m68k/sun3n.h | |
4298 | else | |
4299 | tm_file=m68k/sun3.h | |
4300 | fi | |
861bb6c1 JL |
4301 | use_collect2=yes |
4302 | extra_headers=math-68881.h | |
4303 | ;; | |
4304 | m68k-wrs-vxworks*) | |
4305 | tm_file=m68k/vxm68k.h | |
4306 | tmake_file=m68k/t-vxworks68 | |
4307 | extra_headers=math-68881.h | |
4308 | ;; | |
4309 | m68k-*-aout*) | |
4310 | tmake_file=m68k/t-m68kbare | |
4311 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4312 | extra_headers=math-68881.h | |
4313 | ;; | |
4314 | m68k-*-coff*) | |
4315 | tmake_file=m68k/t-m68kbare | |
4316 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4317 | extra_headers=math-68881.h | |
4318 | ;; | |
4319 | m68k-*-lynxos*) | |
4320 | if [ x$gas = xyes ] | |
4321 | then | |
4322 | tm_file=m68k/lynx.h | |
4323 | else | |
4324 | tm_file=m68k/lynx-ng.h | |
4325 | fi | |
4326 | xm_file=m68k/xm-lynx.h | |
4327 | xmake_file=x-lynx | |
4328 | tmake_file=m68k/t-lynx | |
4329 | extra_headers=math-68881.h | |
4330 | ;; | |
4331 | m68k-*-netbsd*) | |
4332 | tm_file=m68k/netbsd.h | |
be1ed94f JL |
4333 | # On NetBSD, the headers are already okay, except for math.h. |
4334 | fixincludes=fixinc.math | |
861bb6c1 JL |
4335 | tmake_file=t-netbsd |
4336 | ;; | |
4337 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
4338 | xm_file=m68k/xm-m68kv.h | |
4339 | xmake_file=m68k/x-m68kv | |
4340 | extra_parts="crtbegin.o crtend.o" | |
4341 | extra_headers=math-68881.h | |
4342 | ;; | |
4343 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4344 | tm_file=m68k/m68kv4.h | |
4345 | xm_file=m68k/xm-m68kv.h | |
4346 | tmake_file=t-svr4 | |
4347 | extra_parts="crtbegin.o crtend.o" | |
4348 | extra_headers=math-68881.h | |
4349 | ;; | |
956d6950 | 4350 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
861bb6c1 JL |
4351 | xm_file=m68k/xm-linux.h # with a.out format |
4352 | xmake_file=x-linux | |
4353 | tm_file=m68k/linux-aout.h | |
4354 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
956d6950 | 4355 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 JL |
4356 | extra_headers=math-68881.h |
4357 | gnu_ld=yes | |
4358 | ;; | |
956d6950 | 4359 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
861bb6c1 | 4360 | xm_file=m68k/xm-linux.h # with ELF format using the |
956d6950 | 4361 | xmake_file=x-linux # GNU/Linux C library 5 |
861bb6c1 JL |
4362 | tm_file=m68k/linux.h |
4363 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4364 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 4365 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 JL |
4366 | extra_headers=math-68881.h |
4367 | gnu_ld=yes | |
4368 | ;; | |
956d6950 | 4369 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
861bb6c1 | 4370 | xm_file=m68k/xm-linux.h # with ELF format using glibc 2 |
956d6950 | 4371 | xmake_file=x-linux # aka the GNU/Linux C library 6. |
861bb6c1 JL |
4372 | tm_file=m68k/linux.h |
4373 | tmake_file="t-linux m68k/t-linux" | |
4374 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 4375 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 JL |
4376 | extra_headers=math-68881.h |
4377 | gnu_ld=yes | |
4378 | if [ x$enable_threads = xyes ]; then | |
4379 | thread_file='posix' | |
4380 | fi | |
4381 | ;; | |
4382 | m68k-*-psos*) | |
4383 | tmake_file=m68k/t-m68kbare | |
4384 | tm_file=m68k/m68k-psos.h | |
4385 | extra_headers=math-68881.h | |
4386 | ;; | |
4387 | m68k-*-rtems*) | |
4388 | tmake_file="m68k/t-m68kbare t-rtems" | |
4389 | tm_file=m68k/rtems.h | |
4390 | extra_headers=math-68881.h | |
4391 | ;; | |
4392 | ||
4393 | m88k-dg-dgux*) | |
4394 | case $machine in | |
4395 | m88k-dg-dguxbcs*) | |
4396 | tm_file=m88k/dguxbcs.h | |
4397 | tmake_file=m88k/t-dguxbcs | |
4398 | ;; | |
4399 | *) | |
4400 | tm_file=m88k/dgux.h | |
4401 | tmake_file=m88k/t-dgux | |
4402 | ;; | |
4403 | esac | |
4404 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 JL |
4405 | xmake_file=m88k/x-dgux |
4406 | if [ x$gas = xyes ] | |
4407 | then | |
4408 | tmake_file=m88k/t-dgux-gas | |
4409 | fi | |
4410 | fixincludes=fixinc.dgux | |
4411 | ;; | |
4412 | m88k-dolphin-sysv3*) | |
4413 | tm_file=m88k/dolph.h | |
4414 | extra_parts="crtbegin.o crtend.o" | |
4415 | xm_file=m88k/xm-sysv3.h | |
4416 | xmake_file=m88k/x-dolph | |
4417 | if [ x$gas = xyes ] | |
4418 | then | |
4419 | tmake_file=m88k/t-m88k-gas | |
4420 | fi | |
4421 | ;; | |
4422 | m88k-tektronix-sysv3) | |
4423 | tm_file=m88k/tekXD88.h | |
4424 | extra_parts="crtbegin.o crtend.o" | |
4425 | xm_file=m88k/xm-sysv3.h | |
4426 | xmake_file=m88k/x-tekXD88 | |
4427 | if [ x$gas = xyes ] | |
4428 | then | |
4429 | tmake_file=m88k/t-m88k-gas | |
4430 | fi | |
4431 | ;; | |
4432 | m88k-*-aout*) | |
4433 | tm_file=m88k/m88k-aout.h | |
4434 | ;; | |
4435 | m88k-*-coff*) | |
4436 | tm_file=m88k/m88k-coff.h | |
4437 | tmake_file=m88k/t-bug | |
4438 | ;; | |
4439 | m88k-*-luna*) | |
4440 | tm_file=m88k/luna.h | |
4441 | extra_parts="crtbegin.o crtend.o" | |
4442 | if [ x$gas = xyes ] | |
4443 | then | |
4444 | tmake_file=m88k/t-luna-gas | |
4445 | else | |
4446 | tmake_file=m88k/t-luna | |
4447 | fi | |
4448 | ;; | |
4449 | m88k-*-sysv3*) | |
4450 | tm_file=m88k/sysv3.h | |
4451 | extra_parts="crtbegin.o crtend.o" | |
4452 | xm_file=m88k/xm-sysv3.h | |
4453 | xmake_file=m88k/x-sysv3 | |
4454 | if [ x$gas = xyes ] | |
4455 | then | |
4456 | tmake_file=m88k/t-m88k-gas | |
4457 | fi | |
4458 | ;; | |
4459 | m88k-*-sysv4*) | |
4460 | tm_file=m88k/sysv4.h | |
4461 | extra_parts="crtbegin.o crtend.o" | |
4462 | xmake_file=m88k/x-sysv4 | |
4463 | tmake_file=m88k/t-sysv4 | |
4464 | ;; | |
4465 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
4466 | tm_file=mips/iris6.h | |
4467 | xm_file=mips/xm-iris6.h | |
861bb6c1 JL |
4468 | fixincludes=fixinc.irix |
4469 | xmake_file=mips/x-iris6 | |
4470 | tmake_file=mips/t-iris6 | |
4471 | if [ x$enable_threads = xyes ]; then | |
4472 | thread_file='irix' | |
4473 | fi | |
4474 | ;; | |
4475 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 | |
4476 | tm_file=mips/cross64.h | |
4477 | xm_file=mips/xm-iris5.h | |
861bb6c1 JL |
4478 | fixincludes=Makefile.in |
4479 | xmake_file=mips/x-iris | |
4480 | tmake_file=mips/t-cross64 | |
4481 | # See comment in mips/iris[56].h files. | |
4482 | use_collect2=yes | |
4483 | if [ x$enable_threads = xyes ]; then | |
4484 | thread_file='irix' | |
4485 | fi | |
4486 | ;; | |
4487 | mips-sni-sysv4) | |
4488 | if [ x$gas = xyes ] | |
4489 | then | |
4490 | if [ x$stabs = xyes ] | |
4491 | then | |
4492 | tm_file=mips/iris5gdb.h | |
4493 | else | |
4494 | tm_file=mips/sni-gas.h | |
4495 | fi | |
4496 | else | |
4497 | tm_file=mips/sni-svr4.h | |
4498 | fi | |
4499 | xm_file=mips/xm-sysv.h | |
4500 | xmake_file=mips/x-sni-svr4 | |
4501 | tmake_file=mips/t-mips-gas | |
4502 | if [ x$gnu_ld != xyes ] | |
4503 | then | |
4504 | use_collect2=yes | |
4505 | fi | |
861bb6c1 JL |
4506 | ;; |
4507 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
4508 | if [ x$gas = xyes ] | |
4509 | then | |
4510 | tm_file=mips/iris5gas.h | |
4511 | if [ x$stabs = xyes ] | |
4512 | then | |
4513 | tm_file="${tm_file} dbx.h" | |
4514 | fi | |
4515 | else | |
4516 | tm_file=mips/iris5.h | |
4517 | fi | |
4518 | xm_file=mips/xm-iris5.h | |
861bb6c1 JL |
4519 | fixincludes=fixinc.irix |
4520 | xmake_file=mips/x-iris | |
4521 | # mips-tfile doesn't work yet | |
4522 | tmake_file=mips/t-mips-gas | |
4523 | # See comment in mips/iris5.h file. | |
4524 | use_collect2=yes | |
4525 | if [ x$enable_threads = xyes ]; then | |
4526 | thread_file='irix' | |
4527 | fi | |
4528 | ;; | |
4529 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
4530 | tm_file=mips/iris4loser.h | |
4531 | if [ x$stabs = xyes ]; then | |
4532 | tm_file="${tm_file} dbx.h" | |
4533 | fi | |
4534 | xm_file=mips/xm-iris4.h | |
861bb6c1 JL |
4535 | xmake_file=mips/x-iris |
4536 | if [ x$gas = xyes ] | |
4537 | then | |
4538 | tmake_file=mips/t-mips-gas | |
4539 | else | |
4540 | extra_passes="mips-tfile mips-tdump" | |
4541 | fi | |
4542 | if [ x$gnu_ld != xyes ] | |
4543 | then | |
4544 | use_collect2=yes | |
4545 | fi | |
4546 | if [ x$enable_threads = xyes ]; then | |
4547 | thread_file='irix' | |
4548 | fi | |
4549 | ;; | |
4550 | mips-sgi-irix4*) # Mostly like a MIPS. | |
4551 | tm_file=mips/iris4.h | |
4552 | if [ x$stabs = xyes ]; then | |
4553 | tm_file="${tm_file} dbx.h" | |
4554 | fi | |
4555 | xm_file=mips/xm-iris4.h | |
861bb6c1 JL |
4556 | xmake_file=mips/x-iris |
4557 | if [ x$gas = xyes ] | |
4558 | then | |
4559 | tmake_file=mips/t-mips-gas | |
4560 | else | |
4561 | extra_passes="mips-tfile mips-tdump" | |
4562 | fi | |
4563 | if [ x$gnu_ld != xyes ] | |
4564 | then | |
4565 | use_collect2=yes | |
4566 | fi | |
4567 | if [ x$enable_threads = xyes ]; then | |
4568 | thread_file='irix' | |
4569 | fi | |
4570 | ;; | |
4571 | mips-sgi-*) # Mostly like a MIPS. | |
4572 | tm_file=mips/iris3.h | |
4573 | if [ x$stabs = xyes ]; then | |
4574 | tm_file="${tm_file} dbx.h" | |
4575 | fi | |
4576 | xm_file=mips/xm-iris3.h | |
861bb6c1 JL |
4577 | xmake_file=mips/x-iris3 |
4578 | if [ x$gas = xyes ] | |
4579 | then | |
4580 | tmake_file=mips/t-mips-gas | |
4581 | else | |
4582 | extra_passes="mips-tfile mips-tdump" | |
4583 | fi | |
4584 | if [ x$gnu_ld != xyes ] | |
4585 | then | |
4586 | use_collect2=yes | |
4587 | fi | |
4588 | ;; | |
4589 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
4590 | tm_file=mips/osfrose.h | |
4591 | xmake_file=mips/x-osfrose | |
4592 | tmake_file=mips/t-osfrose | |
4593 | extra_objs=halfpic.o | |
4594 | use_collect2=yes | |
4595 | ;; | |
4596 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
4597 | tm_file=mips/dec-osf1.h | |
4598 | if [ x$stabs = xyes ]; then | |
4599 | tm_file="${tm_file} dbx.h" | |
4600 | fi | |
4601 | xmake_file=mips/x-dec-osf1 | |
4602 | if [ x$gas = xyes ] | |
4603 | then | |
4604 | tmake_file=mips/t-mips-gas | |
4605 | else | |
4606 | tmake_file=mips/t-ultrix | |
4607 | extra_passes="mips-tfile mips-tdump" | |
4608 | fi | |
4609 | if [ x$gnu_ld != xyes ] | |
4610 | then | |
4611 | use_collect2=yes | |
4612 | fi | |
4613 | ;; | |
4614 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
4615 | tm_file=mips/dec-bsd.h | |
4616 | fixincludes= | |
4617 | if [ x$gas = xyes ] | |
4618 | then | |
4619 | tmake_file=mips/t-mips-gas | |
4620 | else | |
4621 | tmake_file=mips/t-ultrix | |
4622 | extra_passes="mips-tfile mips-tdump" | |
4623 | fi | |
4624 | if [ x$gnu_ld != xyes ] | |
4625 | then | |
4626 | use_collect2=yes | |
4627 | fi | |
4628 | ;; | |
4629 | mips-dec-netbsd*) # Decstation running NetBSD | |
4630 | tm_file=mips/netbsd.h | |
be1ed94f JL |
4631 | # On NetBSD, the headers are already okay, except for math.h. |
4632 | fixincludes=fixinc.math | |
861bb6c1 | 4633 | tmake_file=t-netbsd |
861bb6c1 JL |
4634 | ;; |
4635 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
4636 | tm_file=mips/news4.h | |
4637 | if [ x$stabs = xyes ]; then | |
4638 | tm_file="${tm_file} dbx.h" | |
4639 | fi | |
4640 | if [ x$gas = xyes ] | |
4641 | then | |
4642 | tmake_file=mips/t-mips-gas | |
4643 | else | |
4644 | extra_passes="mips-tfile mips-tdump" | |
4645 | fi | |
4646 | if [ x$gnu_ld != xyes ] | |
4647 | then | |
4648 | use_collect2=yes | |
4649 | fi | |
4650 | xmake_file=mips/x-sony | |
4651 | ;; | |
4652 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
4653 | # That is based on svr4. | |
4654 | # t-svr4 is not right because this system doesn't use ELF. | |
4655 | tm_file=mips/news5.h | |
4656 | if [ x$stabs = xyes ]; then | |
4657 | tm_file="${tm_file} dbx.h" | |
4658 | fi | |
4659 | xm_file=mips/xm-news.h | |
4660 | if [ x$gas = xyes ] | |
4661 | then | |
4662 | tmake_file=mips/t-mips-gas | |
4663 | else | |
4664 | extra_passes="mips-tfile mips-tdump" | |
4665 | fi | |
4666 | if [ x$gnu_ld != xyes ] | |
4667 | then | |
4668 | use_collect2=yes | |
4669 | fi | |
4670 | ;; | |
4671 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
4672 | tm_file=mips/svr4-t.h | |
4673 | if [ x$stabs = xyes ]; then | |
4674 | tm_file="${tm_file} dbx.h" | |
4675 | fi | |
4676 | xm_file=mips/xm-sysv4.h | |
4677 | xmake_file=mips/x-sysv | |
4678 | if [ x$gas = xyes ] | |
4679 | then | |
4680 | tmake_file=mips/t-mips-gas | |
4681 | extra_parts="crtbegin.o crtend.o" | |
4682 | else | |
4683 | tmake_file=mips/t-mips | |
4684 | extra_passes="mips-tfile mips-tdump" | |
4685 | fi | |
4686 | if [ x$gnu_ld != xyes ] | |
4687 | then | |
4688 | use_collect2=yes | |
4689 | fi | |
861bb6c1 JL |
4690 | ;; |
4691 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
4692 | tm_file=mips/ultrix.h | |
4693 | if [ x$stabs = xyes ]; then | |
4694 | tm_file="${tm_file} dbx.h" | |
4695 | fi | |
4696 | xmake_file=mips/x-ultrix | |
4697 | if [ x$gas = xyes ] | |
4698 | then | |
4699 | tmake_file=mips/t-mips-gas | |
4700 | else | |
4701 | tmake_file=mips/t-ultrix | |
4702 | extra_passes="mips-tfile mips-tdump" | |
4703 | fi | |
4704 | if [ x$gnu_ld != xyes ] | |
4705 | then | |
4706 | use_collect2=yes | |
4707 | fi | |
4708 | ;; | |
4709 | mips-*-riscos[56789]bsd*) | |
4710 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
4711 | if [ x$stabs = xyes ]; then | |
4712 | tm_file="${tm_file} dbx.h" | |
4713 | fi | |
4714 | if [ x$gas = xyes ] | |
4715 | then | |
4716 | tmake_file=mips/t-bsd-gas | |
4717 | else | |
4718 | tmake_file=mips/t-bsd | |
4719 | extra_passes="mips-tfile mips-tdump" | |
4720 | fi | |
4721 | if [ x$gnu_ld != xyes ] | |
4722 | then | |
4723 | use_collect2=yes | |
4724 | fi | |
861bb6c1 JL |
4725 | ;; |
4726 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
4727 | tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0 | |
4728 | if [ x$stabs = xyes ]; then | |
4729 | tm_file="${tm_file} dbx.h" | |
4730 | fi | |
4731 | if [ x$gas = xyes ] | |
4732 | then | |
4733 | tmake_file=mips/t-bsd-gas | |
4734 | else | |
4735 | tmake_file=mips/t-bsd | |
4736 | extra_passes="mips-tfile mips-tdump" | |
4737 | fi | |
4738 | if [ x$gnu_ld != xyes ] | |
4739 | then | |
4740 | use_collect2=yes | |
4741 | fi | |
861bb6c1 JL |
4742 | ;; |
4743 | mips-*-riscos[56789]sysv4*) | |
4744 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
4745 | if [ x$stabs = xyes ]; then | |
4746 | tm_file="${tm_file} dbx.h" | |
4747 | fi | |
4748 | xm_file=mips/xm-sysv4.h | |
4749 | xmake_file=mips/x-sysv | |
4750 | if [ x$gas = xyes ] | |
4751 | then | |
4752 | tmake_file=mips/t-svr4-gas | |
4753 | else | |
4754 | tmake_file=mips/t-svr4 | |
4755 | extra_passes="mips-tfile mips-tdump" | |
4756 | fi | |
4757 | if [ x$gnu_ld != xyes ] | |
4758 | then | |
4759 | use_collect2=yes | |
4760 | fi | |
861bb6c1 JL |
4761 | ;; |
4762 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
4763 | tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0 | |
4764 | if [ x$stabs = xyes ]; then | |
4765 | tm_file="${tm_file} dbx.h" | |
4766 | fi | |
4767 | xm_file=mips/xm-sysv.h | |
4768 | xmake_file=mips/x-sysv | |
4769 | if [ x$gas = xyes ] | |
4770 | then | |
4771 | tmake_file=mips/t-svr4-gas | |
4772 | else | |
4773 | tmake_file=mips/t-svr4 | |
4774 | extra_passes="mips-tfile mips-tdump" | |
4775 | fi | |
4776 | if [ x$gnu_ld != xyes ] | |
4777 | then | |
4778 | use_collect2=yes | |
4779 | fi | |
861bb6c1 JL |
4780 | ;; |
4781 | mips-*-riscos[56789]sysv*) | |
4782 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
4783 | if [ x$stabs = xyes ]; then | |
4784 | tm_file="${tm_file} dbx.h" | |
4785 | fi | |
4786 | xm_file=mips/xm-sysv.h | |
4787 | xmake_file=mips/x-sysv | |
4788 | if [ x$gas = xyes ] | |
4789 | then | |
4790 | tmake_file=mips/t-svr3-gas | |
4791 | else | |
4792 | tmake_file=mips/t-svr3 | |
4793 | extra_passes="mips-tfile mips-tdump" | |
4794 | fi | |
4795 | if [ x$gnu_ld != xyes ] | |
4796 | then | |
4797 | use_collect2=yes | |
4798 | fi | |
861bb6c1 JL |
4799 | ;; |
4800 | mips-*-sysv* | mips-*-riscos*sysv*) | |
4801 | tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0 | |
4802 | if [ x$stabs = xyes ]; then | |
4803 | tm_file="${tm_file} dbx.h" | |
4804 | fi | |
4805 | xm_file=mips/xm-sysv.h | |
4806 | xmake_file=mips/x-sysv | |
4807 | if [ x$gas = xyes ] | |
4808 | then | |
4809 | tmake_file=mips/t-svr3-gas | |
4810 | else | |
4811 | tmake_file=mips/t-svr3 | |
4812 | extra_passes="mips-tfile mips-tdump" | |
4813 | fi | |
4814 | if [ x$gnu_ld != xyes ] | |
4815 | then | |
4816 | use_collect2=yes | |
4817 | fi | |
861bb6c1 JL |
4818 | ;; |
4819 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4820 | tm_file=mips/mips-5.h | |
4821 | if [ x$stabs = xyes ]; then | |
4822 | tm_file="${tm_file} dbx.h" | |
4823 | fi | |
4824 | if [ x$gas = xyes ] | |
4825 | then | |
4826 | tmake_file=mips/t-mips-gas | |
4827 | else | |
4828 | extra_passes="mips-tfile mips-tdump" | |
4829 | fi | |
4830 | if [ x$gnu_ld != xyes ] | |
4831 | then | |
4832 | use_collect2=yes | |
4833 | fi | |
861bb6c1 JL |
4834 | ;; |
4835 | mips-*-gnu*) | |
4836 | ;; | |
4837 | mipsel-*-ecoff*) | |
4838 | tm_file=mips/ecoffl.h | |
4839 | if [ x$stabs = xyes ]; then | |
4840 | tm_file="${tm_file} dbx.h" | |
4841 | fi | |
4842 | tmake_file=mips/t-ecoff | |
4843 | ;; | |
4844 | mips-*-ecoff*) | |
4845 | tm_file=mips/ecoff.h | |
4846 | if [ x$stabs = xyes ]; then | |
4847 | tm_file="${tm_file} dbx.h" | |
4848 | fi | |
4849 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
4850 | ;; |
4851 | mipsel-*-elf*) | |
4852 | tm_file="mips/elfl.h libgloss.h" | |
4853 | tmake_file=mips/t-ecoff | |
4854 | ;; | |
4855 | mips-*-elf*) | |
4856 | tm_file="mips/elf.h libgloss.h" | |
4857 | tmake_file=mips/t-ecoff | |
4858 | ;; | |
4859 | mips64el-*-elf*) | |
4860 | tm_file="mips/elfl64.h libgloss.h" | |
4861 | tmake_file=mips/t-ecoff | |
4862 | ;; | |
4863 | mips64orionel-*-elf*) | |
4864 | tm_file="mips/elflorion.h libgloss.h" | |
4865 | tmake_file=mips/t-ecoff | |
4866 | ;; | |
4867 | mips64-*-elf*) | |
4868 | tm_file="mips/elf64.h libgloss.h" | |
4869 | tmake_file=mips/t-ecoff | |
4870 | ;; | |
4871 | mips64orion-*-elf*) | |
4872 | tm_file="mips/elforion.h libgloss.h" | |
4873 | tmake_file=mips/t-ecoff | |
4874 | ;; | |
4875 | mips64orion-*-rtems*) | |
4876 | tm_file=mips/rtems64.h | |
4877 | tmake_file="mips/t-ecoff t-rtems" | |
4878 | ;; | |
e9a25f70 JL |
4879 | mipstx39el-*-elf*) |
4880 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h" | |
4881 | tmake_file=mips/t-ecoff | |
4882 | ;; | |
4883 | mipstx39-*-elf*) | |
4884 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h" | |
4885 | tmake_file=mips/t-ecoff | |
4886 | ;; | |
861bb6c1 JL |
4887 | mips-*-*) # Default MIPS RISC-OS 4.0. |
4888 | if [ x$stabs = xyes ]; then | |
4889 | tm_file="${tm_file} dbx.h" | |
4890 | fi | |
4891 | if [ x$gas = xyes ] | |
4892 | then | |
4893 | tmake_file=mips/t-mips-gas | |
4894 | else | |
4895 | extra_passes="mips-tfile mips-tdump" | |
4896 | fi | |
4897 | if [ x$gnu_ld != xyes ] | |
4898 | then | |
4899 | use_collect2=yes | |
4900 | fi | |
4901 | ;; | |
4902 | mn10200-*-*) | |
4903 | cpu_type=mn10200 | |
4904 | tm_file="mn10200/mn10200.h" | |
4905 | if [ x$stabs = xyes ] | |
4906 | then | |
4907 | tm_file="${tm_file} dbx.h" | |
4908 | fi | |
4909 | use_collect2=no | |
4910 | ;; | |
4911 | mn10300-*-*) | |
4912 | cpu_type=mn10300 | |
4913 | tm_file="mn10300/mn10300.h" | |
4914 | if [ x$stabs = xyes ] | |
4915 | then | |
4916 | tm_file="${tm_file} dbx.h" | |
4917 | fi | |
4918 | use_collect2=no | |
4919 | ;; | |
4920 | ns32k-encore-bsd*) | |
4921 | tm_file=ns32k/encore.h | |
4922 | use_collect2=yes | |
4923 | ;; | |
4924 | ns32k-sequent-bsd*) | |
4925 | tm_file=ns32k/sequent.h | |
4926 | use_collect2=yes | |
4927 | ;; | |
4928 | ns32k-tek6100-bsd*) | |
4929 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
4930 | use_collect2=yes |
4931 | ;; | |
4932 | ns32k-tek6200-bsd*) | |
4933 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
4934 | use_collect2=yes |
4935 | ;; | |
4936 | # This has not been updated to GCC 2. | |
4937 | # ns32k-ns-genix*) | |
4938 | # xm_file=ns32k/xm-genix.h | |
4939 | # xmake_file=ns32k/x-genix | |
4940 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
4941 | # use_collect2=yes |
4942 | # ;; | |
4943 | ns32k-merlin-*) | |
4944 | tm_file=ns32k/merlin.h | |
4945 | use_collect2=yes | |
4946 | ;; | |
4947 | ns32k-pc532-mach*) | |
4948 | tm_file=ns32k/pc532-mach.h | |
4949 | use_collect2=yes | |
4950 | ;; | |
4951 | ns32k-pc532-minix*) | |
4952 | tm_file=ns32k/pc532-min.h | |
4953 | xm_file=ns32k/xm-pc532-min.h | |
4954 | use_collect2=yes | |
4955 | ;; | |
4956 | ns32k-pc532-netbsd*) | |
4957 | tm_file=ns32k/netbsd.h | |
be1ed94f JL |
4958 | # On NetBSD, the headers are already okay, except for math.h. |
4959 | fixincludes=fixinc.math | |
861bb6c1 JL |
4960 | tmake_file=t-netbsd |
4961 | ;; | |
4962 | pdp11-*-bsd) | |
4963 | tm_file="${tm_file} pdp11/2bsd.h" | |
4964 | ;; | |
4965 | pdp11-*-*) | |
4966 | ;; | |
4967 | pyramid-*-*) | |
4968 | cpu_type=pyr | |
4969 | xmake_file=pyr/x-pyr | |
4970 | use_collect2=yes | |
4971 | ;; | |
4972 | romp-*-aos*) | |
4973 | use_collect2=yes | |
4974 | ;; | |
4975 | romp-*-mach*) | |
4976 | xmake_file=romp/x-mach | |
4977 | use_collect2=yes | |
4978 | ;; | |
c55dcc7d FF |
4979 | powerpc-*-beos*) |
4980 | cpu_type=rs6000 | |
4981 | tm_file=rs6000/beos.h | |
4982 | xm_file=rs6000/xm-beos.h | |
4983 | tmake_file=rs6000/t-beos | |
4984 | xmake_file=rs6000/x-beos | |
4985 | ;; | |
861bb6c1 | 4986 | powerpc-*-sysv* | powerpc-*-elf*) |
44517326 DE |
4987 | if [ x$enable_haifa != xno ]; then |
4988 | enable_haifa=yes | |
4989 | fi | |
861bb6c1 JL |
4990 | tm_file=rs6000/sysv4.h |
4991 | xm_file=rs6000/xm-sysv4.h | |
4992 | extra_headers=ppc-asm.h | |
4993 | if [ x$gas = xyes ] | |
4994 | then | |
4995 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4996 | else | |
4997 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4998 | fi | |
4999 | xmake_file=rs6000/x-sysv4 | |
5000 | ;; | |
5001 | powerpc-*-eabiaix*) | |
44517326 DE |
5002 | if [ x$enable_haifa != xno ]; then |
5003 | enable_haifa=yes | |
5004 | fi | |
861bb6c1 JL |
5005 | tm_file=rs6000/eabiaix.h |
5006 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5007 | fixincludes=Makefile.in | |
5008 | extra_headers=ppc-asm.h | |
5009 | ;; | |
5010 | powerpc-*-eabisim*) | |
44517326 DE |
5011 | if [ x$enable_haifa != xno ]; then |
5012 | enable_haifa=yes | |
5013 | fi | |
861bb6c1 JL |
5014 | tm_file=rs6000/eabisim.h |
5015 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5016 | fixincludes=Makefile.in | |
5017 | extra_headers=ppc-asm.h | |
5018 | ;; | |
5019 | powerpc-*-eabi*) | |
44517326 DE |
5020 | if [ x$enable_haifa != xno ]; then |
5021 | enable_haifa=yes | |
5022 | fi | |
861bb6c1 JL |
5023 | tm_file=rs6000/eabi.h |
5024 | if [ x$gas = xyes ] | |
5025 | then | |
5026 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5027 | else | |
5028 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5029 | fi | |
5030 | fixincludes=Makefile.in | |
5031 | extra_headers=ppc-asm.h | |
5032 | ;; | |
5033 | powerpc-*-rtems*) | |
44517326 DE |
5034 | if [ x$enable_haifa != xno ]; then |
5035 | enable_haifa=yes | |
5036 | fi | |
861bb6c1 JL |
5037 | tm_file=rs6000/rtems.h |
5038 | if [ x$gas = xyes ] | |
5039 | then | |
5040 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5041 | else | |
5042 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5043 | fi | |
5044 | fixincludes=Makefile.in | |
5045 | extra_headers=ppc-asm.h | |
5046 | ;; | |
5047 | powerpc-*-linux-gnu*) | |
44517326 DE |
5048 | if [ x$enable_haifa != xno ]; then |
5049 | enable_haifa=yes | |
5050 | fi | |
861bb6c1 JL |
5051 | tm_file=rs6000/linux.h |
5052 | xm_file=rs6000/xm-sysv4.h | |
5053 | out_file=rs6000/rs6000.c | |
5054 | if [ x$gas = xyes ] | |
5055 | then | |
5056 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5057 | else | |
5058 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5059 | fi | |
5060 | xmake_file=x-linux | |
5061 | fixincludes=Makefile.in | |
5062 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
5063 | extra_headers=ppc-asm.h | |
5064 | if [ x$enable_threads = xyes ]; then | |
5065 | thread_file='posix' | |
5066 | fi | |
5067 | ;; | |
5068 | powerpc-*-vxworks*) | |
44517326 DE |
5069 | if [ x$enable_haifa != xno ]; then |
5070 | enable_haifa=yes | |
5071 | fi | |
861bb6c1 JL |
5072 | cpu_type=rs6000 |
5073 | xm_file=rs6000/xm-sysv4.h | |
5074 | tm_file=rs6000/vxppc.h | |
5075 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5076 | extra_headers=ppc-asm.h | |
5077 | ;; | |
5078 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
44517326 DE |
5079 | if [ x$enable_haifa != xno ]; then |
5080 | enable_haifa=yes | |
5081 | fi | |
861bb6c1 JL |
5082 | tm_file=rs6000/sysv4le.h |
5083 | xm_file=rs6000/xm-sysv4.h | |
5084 | if [ x$gas = xyes ] | |
5085 | then | |
5086 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5087 | else | |
5088 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5089 | fi | |
5090 | xmake_file=rs6000/x-sysv4 | |
5091 | extra_headers=ppc-asm.h | |
5092 | ;; | |
5093 | powerpcle-*-eabisim*) | |
44517326 DE |
5094 | if [ x$enable_haifa != xno ]; then |
5095 | enable_haifa=yes | |
5096 | fi | |
861bb6c1 JL |
5097 | tm_file=rs6000/eabilesim.h |
5098 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5099 | fixincludes=Makefile.in | |
5100 | extra_headers=ppc-asm.h | |
5101 | ;; | |
5102 | powerpcle-*-eabi*) | |
44517326 DE |
5103 | if [ x$enable_haifa != xno ]; then |
5104 | enable_haifa=yes | |
5105 | fi | |
861bb6c1 JL |
5106 | tm_file=rs6000/eabile.h |
5107 | if [ x$gas = xyes ] | |
5108 | then | |
5109 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5110 | else | |
5111 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5112 | fi | |
5113 | fixincludes=Makefile.in | |
5114 | extra_headers=ppc-asm.h | |
5115 | ;; | |
5116 | powerpcle-*-winnt* ) | |
44517326 DE |
5117 | if [ x$enable_haifa != xno ]; then |
5118 | enable_haifa=yes | |
5119 | fi | |
861bb6c1 JL |
5120 | tm_file=rs6000/win-nt.h |
5121 | tmake_file=rs6000/t-winnt | |
5122 | # extra_objs=pe.o | |
5123 | fixincludes=Makefile.in | |
5124 | if [ x$enable_threads = xyes ]; then | |
5125 | thread_file='win32' | |
5126 | fi | |
5127 | extra_headers=ppc-asm.h | |
5128 | ;; | |
5129 | powerpcle-*-pe | powerpcle-*-cygwin32) | |
44517326 DE |
5130 | if [ x$enable_haifa != xno ]; then |
5131 | enable_haifa=yes | |
5132 | fi | |
861bb6c1 JL |
5133 | tm_file=rs6000/cygwin32.h |
5134 | xm_file=rs6000/xm-cygwin32.h | |
5135 | tmake_file=rs6000/t-winnt | |
5136 | xmake_file=rs6000/x-cygwin32 | |
5137 | # extra_objs=pe.o | |
5138 | fixincludes=Makefile.in | |
5139 | if [ x$enable_threads = xyes ]; then | |
5140 | thread_file='win32' | |
5141 | fi | |
5142 | exeext=.exe | |
5143 | extra_headers=ppc-asm.h | |
5144 | ;; | |
5145 | powerpcle-*-solaris2*) | |
44517326 DE |
5146 | if [ x$enable_haifa != xno ]; then |
5147 | enable_haifa=yes | |
5148 | fi | |
861bb6c1 JL |
5149 | tm_file=rs6000/sol2.h |
5150 | xm_file=rs6000/xm-sysv4.h | |
5151 | if [ x$gas = xyes ] | |
5152 | then | |
5153 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5154 | else | |
5155 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5156 | fi | |
5157 | xmake_file=rs6000/x-sysv4 | |
e9a25f70 | 5158 | fixincludes=fixinc.math |
861bb6c1 JL |
5159 | extra_headers=ppc-asm.h |
5160 | ;; | |
5161 | rs6000-ibm-aix3.[01]*) | |
44517326 DE |
5162 | if [ x$enable_haifa != xno ]; then |
5163 | enable_haifa=yes | |
5164 | fi | |
861bb6c1 JL |
5165 | tm_file=rs6000/aix31.h |
5166 | xmake_file=rs6000/x-aix31 | |
5167 | use_collect2=yes | |
5168 | ;; | |
5169 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
44517326 DE |
5170 | if [ x$enable_haifa != xno ]; then |
5171 | enable_haifa=yes | |
5172 | fi | |
861bb6c1 JL |
5173 | tm_file=rs6000/aix3newas.h |
5174 | if [ x$host != x$target ] | |
5175 | then | |
5176 | tmake_file=rs6000/t-xnewas | |
5177 | else | |
5178 | tmake_file=rs6000/t-newas | |
5179 | fi | |
5180 | use_collect2=yes | |
5181 | ;; | |
5182 | rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*) | |
44517326 DE |
5183 | if [ x$enable_haifa != xno ]; then |
5184 | enable_haifa=yes | |
5185 | fi | |
861bb6c1 JL |
5186 | tm_file=rs6000/aix41.h |
5187 | if [ x$host != x$target ] | |
5188 | then | |
5189 | tmake_file=rs6000/t-xnewas | |
5190 | else | |
5191 | tmake_file=rs6000/t-newas | |
5192 | fi | |
5193 | xmake_file=rs6000/x-aix31 | |
5194 | use_collect2=yes | |
5195 | ;; | |
5196 | rs6000-ibm-aix*) | |
44517326 DE |
5197 | if [ x$enable_haifa != xno ]; then |
5198 | enable_haifa=yes | |
5199 | fi | |
861bb6c1 JL |
5200 | use_collect2=yes |
5201 | ;; | |
5202 | rs6000-bull-bosx) | |
44517326 DE |
5203 | if [ x$enable_haifa != xno ]; then |
5204 | enable_haifa=yes | |
5205 | fi | |
861bb6c1 JL |
5206 | use_collect2=yes |
5207 | ;; | |
5208 | rs6000-*-mach*) | |
44517326 DE |
5209 | if [ x$enable_haifa != xno ]; then |
5210 | enable_haifa=yes | |
5211 | fi | |
861bb6c1 JL |
5212 | tm_file=rs6000/mach.h |
5213 | xm_file=rs6000/xm-mach.h | |
5214 | xmake_file=rs6000/x-mach | |
5215 | use_collect2=yes | |
5216 | ;; | |
5217 | rs6000-*-lynxos*) | |
44517326 DE |
5218 | if [ x$enable_haifa != xno ]; then |
5219 | enable_haifa=yes | |
5220 | fi | |
861bb6c1 JL |
5221 | tm_file=rs6000/lynx.h |
5222 | xm_file=rs6000/xm-lynx.h | |
5223 | tmake_file=rs6000/t-rs6000 | |
5224 | xmake_file=rs6000/x-lynx | |
5225 | use_collect2=yes | |
5226 | ;; | |
5227 | sh-*-elf*) | |
5228 | tm_file=sh/elf.h | |
5229 | float_format=sh | |
5230 | ;; | |
5d84b57e JS |
5231 | sh-*-rtems*) |
5232 | tmake_file="sh/t-sh t-rtems" | |
5233 | tm_file=sh/rtems.h | |
5234 | float_format=sh | |
5235 | ;; | |
861bb6c1 JL |
5236 | sh-*-*) |
5237 | float_format=sh | |
5238 | ;; | |
5239 | sparc-tti-*) | |
5240 | tm_file=sparc/pbd.h | |
5241 | xm_file=sparc/xm-pbd.h | |
5242 | ;; | |
5243 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5244 | tm_file=sparc/vxsparc.h | |
5245 | tmake_file=sparc/t-vxsparc | |
5246 | use_collect2=yes | |
5247 | ;; | |
5248 | sparc-*-aout*) | |
5249 | tmake_file=sparc/t-sparcbare | |
5250 | tm_file="sparc/aout.h libgloss.h" | |
5251 | ;; | |
5252 | sparc-*-netbsd*) | |
5253 | tm_file=sparc/netbsd.h | |
be1ed94f JL |
5254 | # On NetBSD, the headers are already okay, except for math.h. |
5255 | fixincludes=fixinc.math | |
861bb6c1 JL |
5256 | tmake_file=t-netbsd |
5257 | ;; | |
5258 | sparc-*-bsd*) | |
5259 | tm_file=sparc/bsd.h | |
5260 | ;; | |
ac52b80b DE |
5261 | sparc-*-elf*) |
5262 | tm_file=sparc/elf.h | |
5263 | tmake_file=sparc/t-elf | |
5264 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5265 | #float_format=i128 | |
5266 | float_format=i64 | |
5267 | ;; | |
956d6950 | 5268 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
26b551af | 5269 | xm_file="sparc/xm-sparc.h sparc/xm-linux.h" |
861bb6c1 JL |
5270 | tm_file=sparc/linux-aout.h |
5271 | xmake_file=x-linux | |
5272 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
5273 | gnu_ld=yes |
5274 | ;; | |
956d6950 | 5275 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
26b551af DE |
5276 | xm_file="sparc/xm-sparc.h sparc/xm-linux.h" |
5277 | xmake_file=x-linux | |
861bb6c1 JL |
5278 | tm_file=sparc/linux.h |
5279 | tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux" | |
5280 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
5281 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
5282 | gnu_ld=yes |
5283 | ;; | |
956d6950 | 5284 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
26b551af DE |
5285 | xm_file="sparc/xm-sparc.h sparc/xm-linux.h" |
5286 | xmake_file=x-linux | |
861bb6c1 JL |
5287 | tm_file=sparc/linux.h |
5288 | tmake_file="t-linux sparc/t-linux" | |
5289 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
5290 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
5291 | gnu_ld=yes |
5292 | if [ x$enable_threads = xyes ]; then | |
5293 | thread_file='posix' | |
5294 | fi | |
5295 | ;; | |
5296 | sparc-*-lynxos*) | |
5297 | if [ x$gas = xyes ] | |
5298 | then | |
5299 | tm_file=sparc/lynx.h | |
5300 | else | |
5301 | tm_file=sparc/lynx-ng.h | |
5302 | fi | |
5303 | xm_file=sparc/xm-lynx.h | |
5304 | tmake_file=sparc/t-sunos41 | |
5305 | xmake_file=x-lynx | |
5306 | ;; | |
5307 | sparc-*-rtems*) | |
5308 | tmake_file="sparc/t-sparcbare t-rtems" | |
5309 | tm_file=sparc/rtems.h | |
5310 | ;; | |
5311 | sparc-*-solaris2*) | |
5312 | tm_file=sparc/sol2.h | |
5313 | xm_file=sparc/xm-sol2.h | |
5314 | tmake_file=sparc/t-sol2 | |
5315 | xmake_file=sparc/x-sysv4 | |
5316 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
5317 | fixincludes=fixinc.svr4 | |
e9a25f70 JL |
5318 | float_format=i128 |
5319 | broken_install=yes | |
f24af81b TT |
5320 | if [ x${enable_threads} = x ]; then |
5321 | enable_threads=$have_pthread_h | |
5322 | if [ x${enable_threads} = x ]; then | |
5323 | enable_threads=$have_thread_h | |
5324 | fi | |
5325 | fi | |
5326 | if [ x${enable_threads} = xyes ]; then | |
5327 | if [ x${have_pthread_h} = xyes ]; then | |
5328 | thread_file='posix' | |
5329 | else | |
861bb6c1 | 5330 | thread_file='solaris' |
f24af81b | 5331 | fi |
861bb6c1 JL |
5332 | fi |
5333 | ;; | |
5334 | sparc-*-sunos4.0*) | |
5335 | tm_file=sparc/sunos4.h | |
5336 | tmake_file=sparc/t-sunos40 | |
5337 | use_collect2=yes | |
5338 | ;; | |
5339 | sparc-*-sunos4*) | |
5340 | tm_file=sparc/sunos4.h | |
5341 | tmake_file=sparc/t-sunos41 | |
5342 | use_collect2=yes | |
ca55abae JM |
5343 | if [ x$gas = xyes ]; then |
5344 | tm_file="${tm_file} sparc/sun4gas.h" | |
5345 | fi | |
861bb6c1 JL |
5346 | ;; |
5347 | sparc-*-sunos3*) | |
5348 | tm_file=sparc/sun4o3.h | |
5349 | use_collect2=yes | |
5350 | ;; | |
5351 | sparc-*-sysv4*) | |
5352 | tm_file=sparc/sysv4.h | |
5353 | xm_file=sparc/xm-sysv4.h | |
5354 | tmake_file=t-svr4 | |
5355 | xmake_file=sparc/x-sysv4 | |
5356 | extra_parts="crtbegin.o crtend.o" | |
5357 | ;; | |
5358 | sparc-*-vxsim*) | |
5359 | xm_file=sparc/xm-sol2.h | |
5360 | tm_file=sparc/vxsim.h | |
5361 | tmake_file=sparc/t-vxsparc | |
5362 | xmake_file=sparc/x-sysv4 | |
5363 | ;; | |
5364 | sparclet-*-aout*) | |
5365 | tm_file="sparc/splet.h libgloss.h" | |
5366 | tmake_file=sparc/t-splet | |
5367 | ;; | |
5368 | sparclite-*-coff*) | |
5369 | tm_file="sparc/litecoff.h libgloss.h" | |
5370 | tmake_file=sparc/t-sparclite | |
5371 | ;; | |
5372 | sparclite-*-aout*) | |
5373 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
5374 | tmake_file=sparc/t-sparclite | |
5375 | ;; | |
5376 | sparc64-*-aout*) | |
5377 | tmake_file=sparc/t-sp64 | |
5378 | tm_file=sparc/sp64-aout.h | |
5379 | ;; | |
5380 | sparc64-*-elf*) | |
5381 | tmake_file=sparc/t-sp64 | |
5382 | tm_file=sparc/sp64-elf.h | |
5383 | extra_parts="crtbegin.o crtend.o" | |
5384 | ;; | |
956d6950 | 5385 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
26b551af DE |
5386 | tmake_file=sparc/t-sp64 |
5387 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" | |
5388 | tm_file=sparc/linux64.h | |
5389 | xmake_file=x-linux | |
956d6950 | 5390 | fixincludes=Makefile.in # The headers are ok already. |
26b551af DE |
5391 | gnu_ld=yes |
5392 | ;; | |
861bb6c1 JL |
5393 | # This hasn't been upgraded to GCC 2. |
5394 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
5395 | # tm_file=tahoe/harris.h | |
5396 | # ;; | |
5397 | # tahoe-*-bsd*) # tahoe running BSD | |
5398 | # ;; | |
5399 | # This hasn't been upgraded to GCC 2. | |
5400 | # tron-*-*) | |
5401 | # cpu_type=gmicro | |
5402 | # use_collect2=yes | |
5403 | # ;; | |
f84271d9 JL |
5404 | v850-*-*) |
5405 | cpu_type=v850 | |
5406 | tm_file="v850/v850.h" | |
5407 | xm_file="v850/xm-v850.h" | |
5408 | if [ x$stabs = xyes ] | |
5409 | then | |
5410 | tm_file="${tm_file} dbx.h" | |
5411 | fi | |
5412 | use_collect2=no | |
5413 | ;; | |
861bb6c1 JL |
5414 | vax-*-bsd*) # vaxen running BSD |
5415 | use_collect2=yes | |
5416 | float_format=vax | |
5417 | ;; | |
5418 | vax-*-sysv*) # vaxen running system V | |
5419 | tm_file="${tm_file} vax/vaxv.h" | |
956d6950 | 5420 | xm_file="${xm_file} vax/xm-vaxv.h" |
861bb6c1 JL |
5421 | float_format=vax |
5422 | ;; | |
5423 | vax-*-netbsd*) | |
5424 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
be1ed94f JL |
5425 | # On NetBSD, the headers are already okay, except for math.h. |
5426 | fixincludes=fixinc.math | |
861bb6c1 JL |
5427 | tmake_file=t-netbsd |
5428 | float_format=vax | |
5429 | ;; | |
5430 | vax-*-ultrix*) # vaxen running ultrix | |
5431 | tm_file="${tm_file} vax/ultrix.h" | |
5432 | use_collect2=yes | |
5433 | float_format=vax | |
5434 | ;; | |
5435 | vax-*-vms*) # vaxen running VMS | |
5436 | xm_file=vax/xm-vms.h | |
5437 | tm_file=vax/vms.h | |
5438 | float_format=vax | |
5439 | ;; | |
5440 | vax-*-*) # vax default entry | |
5441 | float_format=vax | |
5442 | ;; | |
5443 | we32k-att-sysv*) | |
5444 | xm_file="${xm_file} xm-svr3" | |
5445 | use_collect2=yes | |
5446 | ;; | |
5447 | *) | |
5448 | echo "Configuration $machine not supported" 1>&2 | |
5449 | exit 1 | |
5450 | ;; | |
5451 | esac | |
5452 | ||
5453 | case $machine in | |
5454 | *-*-linux-gnu*) | |
5455 | ;; # Existing Linux/GNU systems do not use the GNU setup. | |
5456 | *-*-gnu*) | |
5457 | # On the GNU system, the setup is just about the same on | |
5458 | # each different CPU. The specific machines that GNU | |
5459 | # supports are matched above and just set $cpu_type. | |
5460 | xm_file=${cpu_type}/xm-gnu.h | |
5461 | tm_file=${cpu_type}/gnu.h | |
5462 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
5463 | # GNU always uses ELF. | |
5464 | elf=yes | |
5465 | # GNU tools are the only tools. | |
5466 | gnu_ld=yes | |
5467 | gas=yes | |
5468 | # On GNU, the headers are already okay. | |
5469 | fixincludes=Makefile.in | |
5470 | xmake_file=x-linux # These details are the same as Linux. | |
5471 | tmake_file=t-gnu # These are not. | |
5472 | ;; | |
5473 | *-*-sysv4*) | |
5474 | fixincludes=fixinc.svr4 | |
5475 | xmake_try_sysv=x-sysv | |
861bb6c1 JL |
5476 | install_headers_dir=install-headers-cpio |
5477 | ;; | |
5478 | *-*-sysv*) | |
861bb6c1 JL |
5479 | install_headers_dir=install-headers-cpio |
5480 | ;; | |
5481 | esac | |
5482 | ||
5483 | # Distinguish i[3456]86 | |
5484 | # Also, do not run mips-tfile on MIPS if using gas. | |
5485 | # Process --with-cpu= for PowerPC/rs6000 | |
5486 | target_cpu_default2= | |
5487 | case $machine in | |
5488 | i486-*-*) | |
5489 | target_cpu_default2=1 | |
5490 | ;; | |
5491 | i586-*-*) | |
5492 | target_cpu_default2=2 | |
5493 | ;; | |
5494 | i686-*-*) | |
5495 | target_cpu_default2=3 | |
5496 | ;; | |
5497 | alpha*-*-*) | |
5498 | case $machine in | |
e9a25f70 JL |
5499 | alphaev6*) |
5500 | target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX" | |
5501 | ;; | |
5502 | alphapca56*) | |
5503 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|TASK_MAX" | |
5504 | ;; | |
861bb6c1 | 5505 | alphaev56*) |
e9a25f70 | 5506 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
5507 | ;; |
5508 | alphaev5*) | |
5509 | target_cpu_default2="MASK_CPU_EV5" | |
5510 | ;; | |
5511 | esac | |
5512 | ||
5513 | if [ x$gas = xyes ] | |
5514 | then | |
5515 | if [ x$target_cpu_default2 = x ] | |
5516 | then | |
5517 | target_cpu_default2="MASK_GAS" | |
5518 | else | |
5519 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
5520 | fi | |
5521 | fi | |
5522 | ;; | |
956d6950 JL |
5523 | arm*-*-*) |
5524 | case "x$with_cpu" in | |
5525 | x) | |
5526 | # The most generic | |
5527 | target_cpu_default2="TARGET_CPU_generic" | |
5528 | ;; | |
5529 | ||
5530 | # Distinguish cores, and major variants | |
5531 | # arm7m doesn't exist, but D & I don't affect code | |
5532 | xarm23678 | xarm250 | xarm67010 \ | |
5533 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
5534 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
5535 | | xstrongarm | xstrongarm110) | |
5536 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
5537 | ;; | |
5538 | ||
5539 | xyes | xno) | |
5540 | echo "--with-cpu must be passed a value" 1>&2 | |
5541 | exit 1 | |
5542 | ;; | |
5543 | ||
5544 | *) | |
5545 | if [ x$pass2done = xyes ] | |
5546 | then | |
5547 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5548 | exit 1 | |
5549 | fi | |
5550 | ;; | |
5551 | esac | |
5552 | ;; | |
5553 | ||
861bb6c1 JL |
5554 | mips*-*-ecoff* | mips*-*-elf*) |
5555 | if [ x$gas = xyes ] | |
5556 | then | |
5557 | if [ x$gnu_ld = xyes ] | |
5558 | then | |
5559 | target_cpu_default2=20 | |
5560 | else | |
5561 | target_cpu_default2=16 | |
5562 | fi | |
5563 | fi | |
5564 | ;; | |
5565 | mips*-*-*) | |
5566 | if [ x$gas = xyes ] | |
5567 | then | |
5568 | target_cpu_default2=16 | |
5569 | fi | |
5570 | ;; | |
5571 | powerpc*-*-* | rs6000-*-*) | |
5572 | case "x$with_cpu" in | |
5573 | x) | |
5574 | ;; | |
5575 | ||
5576 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
5577 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
5578 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
5579 | | x403 | x505 | x801 | x821 | x823 | x860) | |
f24b370a | 5580 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
5581 | ;; |
5582 | ||
5583 | xyes | xno) | |
5584 | echo "--with-cpu must be passed a value" 1>&2 | |
5585 | exit 1 | |
5586 | ;; | |
5587 | ||
5588 | *) | |
956d6950 JL |
5589 | if [ x$pass2done = xyes ] |
5590 | then | |
5591 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5592 | exit 1 | |
5593 | fi | |
861bb6c1 JL |
5594 | ;; |
5595 | esac | |
5596 | ;; | |
5597 | sparc*-*-*) | |
5598 | case ".$with_cpu" in | |
5599 | .) | |
5600 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
5601 | ;; | |
ac52b80b | 5602 | .supersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
5603 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5604 | ;; | |
5605 | *) | |
956d6950 JL |
5606 | if [ x$pass2done = xyes ] |
5607 | then | |
5608 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5609 | exit 1 | |
5610 | fi | |
861bb6c1 JL |
5611 | ;; |
5612 | esac | |
5613 | ;; | |
5614 | esac | |
5615 | ||
5616 | if [ x$target_cpu_default2 != x ] | |
5617 | then | |
5618 | if [ x$target_cpu_default != x ] | |
5619 | then | |
5620 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
5621 | else | |
5622 | target_cpu_default=$target_cpu_default2 | |
5623 | fi | |
5624 | fi | |
5625 | ||
5626 | # No need for collect2 if we have the GNU linker. | |
5627 | case x$gnu_ld in | |
5628 | xyes) | |
5629 | use_collect2= | |
5630 | ;; | |
5631 | esac | |
5632 | ||
5633 | # Save data on machine being used to compile GCC in build_xm_file. | |
5634 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
5635 | if [ x$pass1done = x ] | |
5636 | then | |
5637 | if [ x"$xm_file" = x ] | |
5638 | then build_xm_file=$cpu_type/xm-$cpu_type.h | |
5639 | else build_xm_file=$xm_file | |
5640 | fi | |
861bb6c1 JL |
5641 | build_install_headers_dir=$install_headers_dir |
5642 | build_exeext=$exeext | |
5643 | pass1done=yes | |
5644 | else | |
5645 | if [ x$pass2done = x ] | |
5646 | then | |
5647 | if [ x"$xm_file" = x ] | |
5648 | then host_xm_file=$cpu_type/xm-$cpu_type.h | |
5649 | else host_xm_file=$xm_file | |
5650 | fi | |
5651 | if [ x"$xmake_file" = x ] | |
5652 | then xmake_file=$cpu_type/x-$cpu_type | |
5653 | fi | |
5654 | host_xmake_file="$xmake_file" | |
5655 | host_truncate_target=$truncate_target | |
5656 | host_extra_gcc_objs=$extra_gcc_objs | |
5657 | host_extra_objs=$extra_host_objs | |
5658 | pass2done=yes | |
5659 | fi | |
5660 | fi | |
5661 | done | |
5662 | ||
5663 | extra_objs="${host_extra_objs} ${extra_objs}" | |
5664 | ||
5665 | # Default the target-machine variables that were not explicitly set. | |
5666 | if [ x"$tm_file" = x ] | |
5667 | then tm_file=$cpu_type/$cpu_type.h; fi | |
5668 | ||
5669 | if [ x$extra_headers = x ] | |
5670 | then extra_headers=; fi | |
5671 | ||
5672 | if [ x"$xm_file" = x ] | |
5673 | then xm_file=$cpu_type/xm-$cpu_type.h; fi | |
5674 | ||
5675 | md_file=$cpu_type/$cpu_type.md | |
5676 | ||
5677 | if [ x$out_file = x ] | |
5678 | then out_file=$cpu_type/$cpu_type.c; fi | |
5679 | ||
5680 | if [ x"$tmake_file" = x ] | |
5681 | then tmake_file=$cpu_type/t-$cpu_type | |
5682 | fi | |
5683 | ||
5684 | if [ x$float_format = x ] | |
5685 | then float_format=i64 | |
5686 | fi | |
5687 | ||
5688 | # Say what files are being used for the output code and MD file. | |
5689 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
5690 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
5691 | ||
5692 | count=a | |
5693 | for f in $tm_file; do | |
5694 | count=${count}x | |
5695 | done | |
5696 | if [ $count = ax ]; then | |
5697 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." | |
5698 | else | |
5699 | echo "Using the following target machine macro files:" | |
5700 | for f in $tm_file; do | |
5701 | echo " $srcdir/config/$f" | |
5702 | done | |
5703 | fi | |
5704 | ||
5705 | count=a | |
5706 | for f in $host_xm_file; do | |
5707 | count=${count}x | |
5708 | done | |
5709 | if [ $count = ax ]; then | |
5710 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." | |
5711 | else | |
5712 | echo "Using the following host machine macro files:" | |
5713 | for f in $host_xm_file; do | |
5714 | echo " $srcdir/config/$f" | |
5715 | done | |
5716 | fi | |
5717 | ||
5718 | if [ "$host_xm_file" != "$build_xm_file" ]; then | |
5719 | count=a | |
5720 | for f in $build_xm_file; do | |
5721 | count=${count}x | |
5722 | done | |
5723 | if [ $count = ax ]; then | |
5724 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." | |
5725 | else | |
5726 | echo "Using the following build machine macro files:" | |
5727 | for f in $build_xm_file; do | |
5728 | echo " $srcdir/config/$f" | |
5729 | done | |
5730 | fi | |
5731 | fi | |
5732 | ||
5733 | if [ x$thread_file = x ] | |
5734 | then thread_file='single' | |
5735 | fi | |
5736 | ||
5737 | # Set up the header files. | |
5738 | # $links is the list of header files to create. | |
5739 | # $vars is the list of shell variables with file names to include. | |
e9a25f70 JL |
5740 | # auto-conf.h is the file containing items generated by autoconf and is |
5741 | # the first file included by config.h. | |
5742 | host_xm_file="auto-config.h ${host_xm_file}" | |
861bb6c1 | 5743 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 5744 | links="config.h tm.h tconfig.h hconfig.h" |
861bb6c1 JL |
5745 | |
5746 | rm -f config.bak | |
5747 | if [ -f config.status ]; then mv -f config.status config.bak; fi | |
5748 | ||
5749 | # Make the links. | |
5750 | while [ -n "$vars" ] | |
5751 | do | |
5752 | # set file to car of files, files to cdr of files | |
5753 | set $vars; var=$1; shift; vars=$* | |
5754 | set $links; link=$1; shift; links=$* | |
5755 | ||
5756 | rm -f $link | |
5757 | ||
5758 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
5759 | # This substitutes for lots of *.h files. | |
5760 | if [ x$target_cpu_default != x -a $link = tm.h ] | |
5761 | then | |
5762 | echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link | |
5763 | fi | |
5764 | ||
5765 | for file in `eval echo '$'$var`; do | |
5766 | echo "#include \"$file\"" >>$link | |
5767 | done | |
5768 | done | |
5769 | ||
5770 | # Truncate the target if necessary | |
5771 | if [ x$host_truncate_target != x ]; then | |
5772 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
5773 | fi | |
5774 | ||
5775 | # Get the version number from the toplevel | |
5776 | version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c` | |
5777 | ||
861bb6c1 JL |
5778 | # Get an absolute path to the GCC top-level source directory |
5779 | holddir=`pwd` | |
5780 | cd $srcdir | |
5781 | topdir=`pwd` | |
5782 | cd $holddir | |
5783 | ||
5784 | # Conditionalize the makefile for this host machine. | |
5785 | # Make-host contains the concatenation of all host makefile fragments | |
5786 | # [there can be more than one]. This file is built by configure.frag. | |
5787 | host_overrides=Make-host | |
5788 | dep_host_xmake_file= | |
5789 | for f in .. ${host_xmake_file} | |
5790 | do | |
5791 | if [ -f ${srcdir}/config/$f ] | |
5792 | then | |
5793 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
5794 | fi | |
5795 | done | |
5796 | ||
5797 | # Conditionalize the makefile for this target machine. | |
5798 | # Make-target contains the concatenation of all host makefile fragments | |
5799 | # [there can be more than one]. This file is built by configure.frag. | |
5800 | target_overrides=Make-target | |
5801 | dep_tmake_file= | |
5802 | for f in .. ${tmake_file} | |
5803 | do | |
5804 | if [ -f ${srcdir}/config/$f ] | |
5805 | then | |
5806 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
5807 | fi | |
5808 | done | |
5809 | ||
5810 | # If the host doesn't support symlinks, modify CC in | |
5811 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
5812 | # Otherwise, we can use "CC=$(CC)". | |
5813 | rm -f symtest.tem | |
5814 | if $symbolic_link symtest1.tem symtest.tem 2>/dev/null | |
5815 | then | |
5816 | cc_set_by_configure="\$(CC)" | |
5817 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
5818 | else | |
e9a25f70 | 5819 | symbolic_link="cp -p" |
861bb6c1 JL |
5820 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" |
5821 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
5822 | fi | |
5823 | rm -f symtest.tem | |
5824 | ||
5825 | out_object_file=`basename $out_file .c`.o | |
5826 | ||
5827 | tm_file_list= | |
5828 | for f in $tm_file; do | |
5829 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
5830 | done | |
5831 | ||
5832 | host_xm_file_list= | |
5833 | for f in $host_xm_file; do | |
5834 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" | |
5835 | done | |
5836 | ||
5837 | build_xm_file_list= | |
5838 | for f in $build_xm_file; do | |
5839 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
5840 | done | |
5841 | ||
5842 | # Define macro CROSS_COMPILE in compilation | |
5843 | # if this is a cross-compiler. | |
5844 | # Also use all.cross instead of all.internal | |
5845 | # and add cross-make to Makefile. | |
5846 | cross_overrides="/dev/null" | |
5847 | if [ x$host != x$target ] | |
5848 | then | |
5849 | cross_defines="CROSS=-DCROSS_COMPILE" | |
5850 | cross_overrides="${topdir}/cross-make" | |
5851 | fi | |
5852 | ||
5853 | # When building gcc with a cross-compiler, we need to fix a few things. | |
5854 | # This must come after cross-make as we want all.build to override | |
5855 | # all.cross. | |
5856 | build_overrides="/dev/null" | |
5857 | if [ x$build != x$host ] | |
5858 | then | |
5859 | build_overrides="${topdir}/build-make" | |
5860 | fi | |
5861 | ||
5862 | # Expand extra_headers to include complete path. | |
5863 | # This substitutes for lots of t-* files. | |
5864 | extra_headers_list= | |
5865 | if [ "x$extra_headers" = x ] | |
5866 | then true | |
5867 | else | |
5868 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
5869 | for file in $extra_headers; | |
5870 | do | |
5871 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
5872 | done | |
5873 | fi | |
5874 | ||
5875 | # Add a definition of USE_COLLECT2 if system wants one. | |
5876 | # Also tell toplev.c what to do. | |
5877 | # This substitutes for lots of t-* files. | |
5878 | if [ x$use_collect2 = x ] | |
5879 | then | |
5880 | will_use_collect2= | |
5881 | maybe_use_collect2= | |
5882 | else | |
5883 | will_use_collect2="ld" | |
5884 | maybe_use_collect2="-DUSE_COLLECT2" | |
5885 | fi | |
5886 | ||
5887 | # NEED TO CONVERT | |
5888 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
5889 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
5890 | # for line oriented comments, so we must always use a GNU cpp. If | |
5891 | # building gcc with a cross compiler, use the cross compiler just | |
5892 | # built. Otherwise, we can use the cpp just built. | |
5893 | md_file_sub= | |
5894 | if [ "x$md_cppflags" = x ] | |
5895 | then | |
5896 | md_file_sub=$srcdir/config/$md_file | |
5897 | else | |
5898 | md_file=md | |
5899 | fi | |
5900 | ||
5901 | # If we have gas in the build tree, make a link to it. | |
5902 | if [ -f ../gas/Makefile ]; then | |
e41cea70 | 5903 | rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null |
861bb6c1 JL |
5904 | fi |
5905 | ||
5906 | # If we have ld in the build tree, make a link to it. | |
992d1248 DE |
5907 | if [ -f ../ld/Makefile ]; then |
5908 | # if [[ x$use_collect2 = x ]]; then | |
e41cea70 | 5909 | # rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null |
aa32d841 | 5910 | # else |
e41cea70 | 5911 | rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null |
aa32d841 | 5912 | # fi |
992d1248 | 5913 | fi |
861bb6c1 JL |
5914 | |
5915 | # Figure out what language subdirectories are present. | |
5916 | subdirs= | |
5917 | for lang in ${srcdir}/*/config-lang.in .. | |
5918 | do | |
5919 | case $lang in | |
5920 | ..) ;; | |
5921 | # The odd quoting in the next line works around | |
5922 | # an apparent bug in bash 1.12 on linux. | |
5923 | ${srcdir}/[*]/config-lang.in) ;; | |
5924 | *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;; | |
5925 | esac | |
5926 | done | |
5927 | ||
f24af81b TT |
5928 | # Make gthr-default.h if we have a thread file. |
5929 | gthread_flags= | |
5930 | if [ $thread_file != single ]; then | |
5931 | rm -f gthr-default.h | |
5932 | $symbolic_link gthr-${thread_file}.h gthr-default.h | |
5933 | gthread_flags=-DHAVE_GTHR_DEFAULT | |
5934 | fi | |
5935 | ||
5936 | ||
861bb6c1 JL |
5937 | # Make empty files to contain the specs and options for each language. |
5938 | # Then add #include lines to for a compiler that has specs and/or options. | |
5939 | ||
5940 | lang_specs_files= | |
5941 | lang_options_files= | |
5942 | rm -f specs.h options.h | |
5943 | touch specs.h options.h | |
5944 | for subdir in . $subdirs | |
5945 | do | |
5946 | if [ -f $srcdir/$subdir/lang-specs.h ]; then | |
5947 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h | |
5948 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
5949 | fi | |
5950 | if [ -f $srcdir/$subdir/lang-options.h ]; then | |
5951 | echo "#include \"$subdir/lang-options.h\"" >>options.h | |
5952 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
5953 | fi | |
5954 | done | |
5955 | ||
5956 | # These (without "all_") are set in each config-lang.in. | |
5957 | # `language' must be a single word so is spelled singularly. | |
5958 | all_languages= | |
5959 | all_boot_languages= | |
5960 | all_compilers= | |
5961 | all_stagestuff= | |
5962 | all_diff_excludes= | |
5963 | all_outputs=Makefile | |
5964 | # List of language makefile fragments. | |
5965 | all_lang_makefiles= | |
5966 | all_headers= | |
5967 | all_lib2funcs= | |
5968 | ||
5969 | # Add the language fragments. | |
5970 | # Languages are added via two mechanisms. Some information must be | |
5971 | # recorded in makefile variables, these are defined in config-lang.in. | |
5972 | # We accumulate them and plug them into the main Makefile. | |
5973 | # The other mechanism is a set of hooks for each of the main targets | |
5974 | # like `clean', `install', etc. | |
5975 | ||
5976 | language_fragments="Make-lang" | |
5977 | language_hooks="Make-hooks" | |
5978 | oldstyle_subdirs= | |
5979 | ||
5980 | for s in .. $subdirs | |
5981 | do | |
5982 | if [ $s != ".." ] | |
5983 | then | |
5984 | language= | |
5985 | boot_language= | |
5986 | compilers= | |
5987 | stagestuff= | |
5988 | diff_excludes= | |
5989 | headers= | |
5990 | outputs= | |
5991 | lib2funcs= | |
5992 | . ${srcdir}/$s/config-lang.in | |
5993 | if [ "x$language" = x ] | |
5994 | then | |
5995 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
5996 | exit 1 | |
5997 | fi | |
5998 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
5999 | all_languages="$all_languages $language" | |
6000 | if [ "x$boot_language" = xyes ] | |
6001 | then | |
6002 | all_boot_languages="$all_boot_languages $language" | |
6003 | fi | |
6004 | all_compilers="$all_compilers $compilers" | |
6005 | all_stagestuff="$all_stagestuff $stagestuff" | |
6006 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
6007 | all_headers="$all_headers $headers" | |
6008 | all_outputs="$all_outputs $outputs" | |
6009 | if [ x$outputs = x ] | |
6010 | then | |
6011 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
6012 | fi | |
6013 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
6014 | fi | |
6015 | done | |
6016 | ||
6017 | # Since we can't use `::' targets, we link each language in | |
6018 | # with a set of hooks, reached indirectly via lang.${target}. | |
6019 | ||
6020 | rm -f Make-hooks | |
6021 | touch Make-hooks | |
6022 | target_list="all.build all.cross start.encap rest.encap \ | |
6023 | info dvi \ | |
6024 | install-normal install-common install-info install-man \ | |
6025 | uninstall distdir \ | |
6026 | mostlyclean clean distclean extraclean maintainer-clean \ | |
6027 | stage1 stage2 stage3 stage4" | |
6028 | for t in $target_list | |
6029 | do | |
6030 | x= | |
6031 | for l in .. $all_languages | |
6032 | do | |
6033 | if [ $l != ".." ]; then | |
6034 | x="$x $l.$t" | |
6035 | fi | |
6036 | done | |
6037 | echo "lang.$t: $x" >> Make-hooks | |
6038 | done | |
6039 | ||
6040 | # If we're not building in srcdir, create .gdbinit. | |
6041 | ||
6042 | if [ ! -f Makefile.in ]; then | |
6043 | echo "dir ." > .gdbinit | |
6044 | echo "dir ${srcdir}" >> .gdbinit | |
6045 | if [ x$gdb_needs_out_file_path = xyes ] | |
6046 | then | |
6047 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
6048 | fi | |
6049 | if [ "x$subdirs" != x ]; then | |
6050 | for s in $subdirs | |
6051 | do | |
6052 | echo "dir ${srcdir}/$s" >> .gdbinit | |
6053 | done | |
6054 | fi | |
6055 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
6056 | fi | |
6057 | ||
dec88383 DE |
6058 | # If this is using newlib, then define inhibit_libc in |
6059 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
6060 | # libgcc.a, but that's OK because newib should have its own version of | |
6061 | # assert.h. | |
6062 | inhibit_libc= | |
6063 | if [ x$with_newlib = xyes ]; then | |
6064 | inhibit_libc=-Dinhibit_libc | |
6065 | fi | |
6066 | ||
6067 | ||
8c660648 JL |
6068 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
6069 | sched_prefix= | |
6070 | sched_cflags= | |
992d1248 | 6071 | if [ x$enable_haifa = xyes ]; then |
8c660648 JL |
6072 | echo "Using the Haifa scheduler." |
6073 | sched_prefix=haifa- | |
6074 | sched_cflags=-DHAIFA | |
6075 | fi | |
6076 | ||
6077 | ||
992d1248 | 6078 | if [ x$enable_haifa != x ]; then |
8c660648 JL |
6079 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
6080 | for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do | |
6081 | if [ -f $x ]; then | |
6082 | echo "Removing $x" | |
6083 | rm -f $x | |
6084 | fi | |
6085 | done | |
6086 | fi | |
6087 | ||
861bb6c1 JL |
6088 | # Process the language and host/target makefile fragments. |
6089 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
6090 | ||
6091 | # Substitute configuration variables | |
6092 | ||
6093 | ||
6094 | ||
6095 | ||
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
6101 | ||
6102 | ||
6103 | ||
6104 | ||
6105 | ||
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | ||
6121 | ||
6122 | ||
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
6130 | ||
6131 | ||
6132 | ||
6133 | ||
6134 | ||
6135 | ||
6136 | ||
6137 | ||
9b16d2c4 | 6138 | |
e9a25f70 | 6139 | |
861bb6c1 JL |
6140 | |
6141 | ||
6142 | # Echo that links are built | |
6143 | if [ x$host = x$target ] | |
6144 | then | |
6145 | str1="native " | |
6146 | else | |
6147 | str1="cross-" | |
6148 | str2=" from $host" | |
6149 | fi | |
6150 | ||
6151 | if [ x$host != x$build ] | |
6152 | then | |
6153 | str3=" on a $build system" | |
6154 | fi | |
6155 | ||
6156 | if [ "x$str2" != x ] || [ "x$str3" != x ] | |
6157 | then | |
6158 | str4= | |
6159 | fi | |
6160 | ||
6161 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
6162 | ||
6163 | if [ "x$str2" != x ] || [ "x$str3" != x ] | |
6164 | then | |
6165 | echo " ${str2}${str3}." 1>&2 | |
6166 | fi | |
6167 | ||
6168 | # Configure the subdirectories | |
6169 | # AC_CONFIG_SUBDIRS($subdirs) | |
6170 | ||
6171 | # Create the Makefile | |
6172 | # and configure language subdirectories | |
6173 | trap '' 1 2 15 | |
6174 | cat > confcache <<\EOF | |
6175 | # This file is a shell script that caches the results of configure | |
6176 | # tests run on this system so they can be shared between configure | |
6177 | # scripts and configure runs. It is not useful on other systems. | |
6178 | # If it contains results you don't want to keep, you may remove or edit it. | |
6179 | # | |
6180 | # By default, configure uses ./config.cache as the cache file, | |
6181 | # creating it if it does not exist already. You can give configure | |
6182 | # the --cache-file=FILE option to use a different cache file; that is | |
6183 | # what configure does when it calls configure scripts in | |
6184 | # subdirectories, so they share the cache. | |
6185 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6186 | # config.status only pays attention to the cache file if you give it the | |
6187 | # --recheck option to rerun configure. | |
6188 | # | |
6189 | EOF | |
6190 | # The following way of writing the cache mishandles newlines in values, | |
6191 | # but we know of no workaround that is simple, portable, and efficient. | |
6192 | # So, don't put newlines in cache variables' values. | |
6193 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6194 | # and sets the high bit in the cache file unless we assign to the vars. | |
6195 | (set) 2>&1 | | |
f24af81b | 6196 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
861bb6c1 JL |
6197 | *ac_space=\ *) |
6198 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6199 | # turns \\\\ into \\, and sed turns \\ into \). | |
6200 | sed -n \ | |
6201 | -e "s/'/'\\\\''/g" \ | |
6202 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6203 | ;; | |
6204 | *) | |
6205 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6206 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6207 | ;; | |
6208 | esac >> confcache | |
6209 | if cmp -s $cache_file confcache; then | |
6210 | : | |
6211 | else | |
6212 | if test -w $cache_file; then | |
6213 | echo "updating cache $cache_file" | |
6214 | cat confcache > $cache_file | |
6215 | else | |
6216 | echo "not updating unwritable cache $cache_file" | |
6217 | fi | |
6218 | fi | |
6219 | rm -f confcache | |
6220 | ||
6221 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6222 | ||
6223 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6224 | # Let make expand exec_prefix. | |
6225 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6226 | ||
6227 | # Any assignment to VPATH causes Sun make to only execute | |
6228 | # the first set of double-colon rules, so remove it if not needed. | |
6229 | # If there is a colon in the path, we need to keep it. | |
6230 | if test "x$srcdir" = x.; then | |
6231 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6232 | fi | |
6233 | ||
6234 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6235 | ||
6236 | DEFS=-DHAVE_CONFIG_H | |
6237 | ||
6238 | # Without the "./", some shells look in PATH for config.status. | |
6239 | : ${CONFIG_STATUS=./config.status} | |
6240 | ||
6241 | echo creating $CONFIG_STATUS | |
6242 | rm -f $CONFIG_STATUS | |
6243 | cat > $CONFIG_STATUS <<EOF | |
6244 | #! /bin/sh | |
6245 | # Generated automatically by configure. | |
6246 | # Run this file to recreate the current configuration. | |
6247 | # This directory was configured as follows, | |
6248 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6249 | # | |
6250 | # $0 $ac_configure_args | |
6251 | # | |
6252 | # Compiler output produced by configure, useful for debugging | |
6253 | # configure, is in ./config.log if it exists. | |
6254 | ||
6255 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6256 | for ac_option | |
6257 | do | |
6258 | case "\$ac_option" in | |
6259 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6260 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6261 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6262 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
f24af81b | 6263 | echo "$CONFIG_STATUS generated by autoconf version 2.12.1" |
861bb6c1 JL |
6264 | exit 0 ;; |
6265 | -help | --help | --hel | --he | --h) | |
6266 | echo "\$ac_cs_usage"; exit 0 ;; | |
6267 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6268 | esac | |
6269 | done | |
6270 | ||
6271 | ac_given_srcdir=$srcdir | |
861bb6c1 | 6272 | |
e9a25f70 | 6273 | trap 'rm -fr `echo "$all_outputs auto-config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
6274 | EOF |
6275 | cat >> $CONFIG_STATUS <<EOF | |
6276 | ||
6277 | # Protect against being on the right side of a sed subst in config.status. | |
6278 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6279 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6280 | $ac_vpsub | |
6281 | $extrasub | |
f24af81b | 6282 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
6283 | s%@CFLAGS@%$CFLAGS%g |
6284 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6285 | s%@CXXFLAGS@%$CXXFLAGS%g | |
6286 | s%@DEFS@%$DEFS%g | |
6287 | s%@LDFLAGS@%$LDFLAGS%g | |
6288 | s%@LIBS@%$LIBS%g | |
6289 | s%@exec_prefix@%$exec_prefix%g | |
6290 | s%@prefix@%$prefix%g | |
6291 | s%@program_transform_name@%$program_transform_name%g | |
6292 | s%@bindir@%$bindir%g | |
6293 | s%@sbindir@%$sbindir%g | |
6294 | s%@libexecdir@%$libexecdir%g | |
6295 | s%@datadir@%$datadir%g | |
6296 | s%@sysconfdir@%$sysconfdir%g | |
6297 | s%@sharedstatedir@%$sharedstatedir%g | |
6298 | s%@localstatedir@%$localstatedir%g | |
6299 | s%@libdir@%$libdir%g | |
6300 | s%@includedir@%$includedir%g | |
6301 | s%@oldincludedir@%$oldincludedir%g | |
6302 | s%@infodir@%$infodir%g | |
6303 | s%@mandir@%$mandir%g | |
6304 | s%@host@%$host%g | |
6305 | s%@host_alias@%$host_alias%g | |
6306 | s%@host_cpu@%$host_cpu%g | |
6307 | s%@host_vendor@%$host_vendor%g | |
6308 | s%@host_os@%$host_os%g | |
6309 | s%@target@%$target%g | |
6310 | s%@target_alias@%$target_alias%g | |
6311 | s%@target_cpu@%$target_cpu%g | |
6312 | s%@target_vendor@%$target_vendor%g | |
6313 | s%@target_os@%$target_os%g | |
6314 | s%@build@%$build%g | |
6315 | s%@build_alias@%$build_alias%g | |
6316 | s%@build_cpu@%$build_cpu%g | |
6317 | s%@build_vendor@%$build_vendor%g | |
6318 | s%@build_os@%$build_os%g | |
e9a25f70 JL |
6319 | s%@CC@%$CC%g |
6320 | s%@SET_MAKE@%$SET_MAKE%g | |
861bb6c1 JL |
6321 | s%@AWK@%$AWK%g |
6322 | s%@LEX@%$LEX%g | |
6323 | s%@LEXLIB@%$LEXLIB%g | |
ac64120e | 6324 | s%@LN@%$LN%g |
861bb6c1 JL |
6325 | s%@LN_S@%$LN_S%g |
6326 | s%@RANLIB@%$RANLIB%g | |
6327 | s%@YACC@%$YACC%g | |
5643c767 | 6328 | s%@INSTALL@%$INSTALL%g |
861bb6c1 JL |
6329 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
6330 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 JL |
6331 | s%@CPP@%$CPP%g |
6332 | s%@manext@%$manext%g | |
992d1248 | 6333 | s%@objext@%$objext%g |
f24af81b | 6334 | s%@gthread_flags@%$gthread_flags%g |
dec88383 | 6335 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
6336 | s%@sched_prefix@%$sched_prefix%g |
6337 | s%@sched_cflags@%$sched_cflags%g | |
861bb6c1 JL |
6338 | s%@subdirs@%$subdirs%g |
6339 | s%@all_languages@%$all_languages%g | |
6340 | s%@all_boot_languages@%$all_boot_languages%g | |
6341 | s%@all_compilers@%$all_compilers%g | |
6342 | s%@all_lang_makefiles@%$all_lang_makefiles%g | |
6343 | s%@all_stagestuff@%$all_stagestuff%g | |
6344 | s%@all_diff_excludes@%$all_diff_excludes%g | |
6345 | s%@all_lib2funcs@%$all_lib2funcs%g | |
6346 | s%@all_headers@%$all_headers%g | |
6347 | s%@extra_passes@%$extra_passes%g | |
6348 | s%@extra_programs@%$extra_programs%g | |
6349 | s%@extra_parts@%$extra_parts%g | |
6350 | s%@extra_c_objs@%$extra_c_objs%g | |
6351 | s%@extra_c_flags@%$extra_c_flags%g | |
6352 | s%@extra_objs@%$extra_objs%g | |
6353 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g | |
6354 | s%@extra_headers_list@%$extra_headers_list%g | |
6355 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g | |
6356 | s%@dep_tmake_file@%$dep_tmake_file%g | |
6357 | s%@out_file@%$out_file%g | |
6358 | s%@out_object_file@%$out_object_file%g | |
6359 | s%@md_file@%$md_file%g | |
6360 | s%@tm_file_list@%$tm_file_list%g | |
6361 | s%@build_xm_file_list@%$build_xm_file_list%g | |
6362 | s%@host_xm_file_list@%$host_xm_file_list%g | |
6363 | s%@lang_specs_files@%$lang_specs_files%g | |
6364 | s%@lang_options_files@%$lang_options_files%g | |
6365 | s%@thread_file@%$thread_file%g | |
6366 | s%@version@%$version%g | |
6367 | s%@local_prefix@%$local_prefix%g | |
6368 | s%@gxx_include_dir@%$gxx_include_dir%g | |
6369 | s%@fixincludes@%$fixincludes%g | |
6370 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
6371 | s%@build_exeext@%$build_exeext%g | |
6372 | s%@float_format@%$float_format%g | |
6373 | s%@will_use_collect2@%$will_use_collect2%g | |
6374 | s%@maybe_use_collect2@%$maybe_use_collect2%g | |
6375 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
6376 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g | |
9b16d2c4 | 6377 | s%@install@%$install%g |
e9a25f70 | 6378 | s%@symbolic_link@%$symbolic_link%g |
861bb6c1 JL |
6379 | /@target_overrides@/r $target_overrides |
6380 | s%@target_overrides@%%g | |
6381 | /@host_overrides@/r $host_overrides | |
6382 | s%@host_overrides@%%g | |
6383 | s%@cross_defines@%$cross_defines%g | |
6384 | /@cross_overrides@/r $cross_overrides | |
6385 | s%@cross_overrides@%%g | |
6386 | /@build_overrides@/r $build_overrides | |
6387 | s%@build_overrides@%%g | |
6388 | /@language_fragments@/r $language_fragments | |
6389 | s%@language_fragments@%%g | |
6390 | /@language_hooks@/r $language_hooks | |
6391 | s%@language_hooks@%%g | |
6392 | ||
6393 | CEOF | |
6394 | EOF | |
6395 | ||
6396 | cat >> $CONFIG_STATUS <<\EOF | |
6397 | ||
6398 | # Split the substitutions into bite-sized pieces for seds with | |
6399 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6400 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6401 | ac_file=1 # Number of current file. | |
6402 | ac_beg=1 # First line for current file. | |
6403 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6404 | ac_more_lines=: | |
6405 | ac_sed_cmds="" | |
6406 | while $ac_more_lines; do | |
6407 | if test $ac_beg -gt 1; then | |
6408 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6409 | else | |
6410 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6411 | fi | |
6412 | if test ! -s conftest.s$ac_file; then | |
6413 | ac_more_lines=false | |
6414 | rm -f conftest.s$ac_file | |
6415 | else | |
6416 | if test -z "$ac_sed_cmds"; then | |
6417 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6418 | else | |
6419 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6420 | fi | |
6421 | ac_file=`expr $ac_file + 1` | |
6422 | ac_beg=$ac_end | |
6423 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6424 | fi | |
6425 | done | |
6426 | if test -z "$ac_sed_cmds"; then | |
6427 | ac_sed_cmds=cat | |
6428 | fi | |
6429 | EOF | |
6430 | ||
6431 | cat >> $CONFIG_STATUS <<EOF | |
6432 | ||
6433 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
6434 | EOF | |
6435 | cat >> $CONFIG_STATUS <<\EOF | |
6436 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6437 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6438 | case "$ac_file" in | |
6439 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6440 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6441 | *) ac_file_in="${ac_file}.in" ;; | |
6442 | esac | |
6443 | ||
6444 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6445 | ||
6446 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6447 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6448 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6449 | # The file is in a subdirectory. | |
6450 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6451 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6452 | # A "../" for each directory in $ac_dir_suffix. | |
6453 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6454 | else | |
6455 | ac_dir_suffix= ac_dots= | |
6456 | fi | |
6457 | ||
6458 | case "$ac_given_srcdir" in | |
6459 | .) srcdir=. | |
6460 | if test -z "$ac_dots"; then top_srcdir=. | |
6461 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6462 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6463 | *) # Relative path. | |
6464 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6465 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6466 | esac | |
6467 | ||
861bb6c1 JL |
6468 | |
6469 | echo creating "$ac_file" | |
6470 | rm -f "$ac_file" | |
6471 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6472 | case "$ac_file" in | |
6473 | *Makefile*) ac_comsub="1i\\ | |
6474 | # $configure_input" ;; | |
6475 | *) ac_comsub= ;; | |
6476 | esac | |
6477 | ||
6478 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6479 | sed -e "$ac_comsub | |
6480 | s%@configure_input@%$configure_input%g | |
6481 | s%@srcdir@%$srcdir%g | |
6482 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
6483 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
6484 | fi; done | |
6485 | rm -f conftest.s* | |
6486 | ||
6487 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6488 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6489 | # | |
6490 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6491 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6492 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6493 | ac_dC='\3' | |
6494 | ac_dD='%g' | |
6495 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6496 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6497 | ac_uB='\([ ]\)%\1#\2define\3' | |
6498 | ac_uC=' ' | |
6499 | ac_uD='\4%g' | |
6500 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6501 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6502 | ac_eB='$%\1#\2define\3' | |
6503 | ac_eC=' ' | |
6504 | ac_eD='%g' | |
6505 | ||
6506 | if test "${CONFIG_HEADERS+set}" != set; then | |
6507 | EOF | |
6508 | cat >> $CONFIG_STATUS <<EOF | |
e9a25f70 | 6509 | CONFIG_HEADERS="auto-config.h:config.in" |
861bb6c1 JL |
6510 | EOF |
6511 | cat >> $CONFIG_STATUS <<\EOF | |
6512 | fi | |
6513 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
6514 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6515 | case "$ac_file" in | |
6516 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6517 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6518 | *) ac_file_in="${ac_file}.in" ;; | |
6519 | esac | |
6520 | ||
6521 | echo creating $ac_file | |
6522 | ||
6523 | rm -f conftest.frag conftest.in conftest.out | |
6524 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6525 | cat $ac_file_inputs > conftest.in | |
6526 | ||
6527 | EOF | |
6528 | ||
6529 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6530 | # the proper values into config.h.in to produce config.h. And first: | |
6531 | # Protect against being on the right side of a sed subst in config.status. | |
6532 | # Protect against being in an unquoted here document in config.status. | |
6533 | rm -f conftest.vals | |
6534 | cat > conftest.hdr <<\EOF | |
6535 | s/[\\&%]/\\&/g | |
6536 | s%[\\$`]%\\&%g | |
6537 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6538 | s%ac_d%ac_u%gp | |
6539 | s%ac_u%ac_e%gp | |
6540 | EOF | |
6541 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6542 | rm -f conftest.hdr | |
6543 | ||
6544 | # This sed command replaces #undef with comments. This is necessary, for | |
6545 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6546 | # on some systems where configure will not decide to define it. | |
6547 | cat >> conftest.vals <<\EOF | |
6548 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6549 | EOF | |
6550 | ||
6551 | # Break up conftest.vals because some shells have a limit on | |
6552 | # the size of here documents, and old seds have small limits too. | |
6553 | ||
6554 | rm -f conftest.tail | |
6555 | while : | |
6556 | do | |
6557 | ac_lines=`grep -c . conftest.vals` | |
6558 | # grep -c gives empty output for an empty file on some AIX systems. | |
6559 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6560 | # Write a limited-size here document to conftest.frag. | |
6561 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6562 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6563 | echo 'CEOF | |
6564 | sed -f conftest.frag conftest.in > conftest.out | |
6565 | rm -f conftest.in | |
6566 | mv conftest.out conftest.in | |
6567 | ' >> $CONFIG_STATUS | |
6568 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6569 | rm -f conftest.vals | |
6570 | mv conftest.tail conftest.vals | |
6571 | done | |
6572 | rm -f conftest.vals | |
6573 | ||
6574 | cat >> $CONFIG_STATUS <<\EOF | |
6575 | rm -f conftest.frag conftest.h | |
6576 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6577 | cat conftest.in >> conftest.h | |
6578 | rm -f conftest.in | |
6579 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6580 | echo "$ac_file is unchanged" | |
6581 | rm -f conftest.h | |
6582 | else | |
6583 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6584 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6585 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6586 | # The file is in a subdirectory. | |
6587 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6588 | fi | |
6589 | rm -f $ac_file | |
6590 | mv conftest.h $ac_file | |
6591 | fi | |
6592 | fi; done | |
6593 | ||
6594 | EOF | |
6595 | cat >> $CONFIG_STATUS <<EOF | |
6596 | ||
6597 | host='${host}' | |
6598 | build='${build}' | |
6599 | target='${target}' | |
6600 | target_alias='${target_alias}' | |
6601 | srcdir='${srcdir}' | |
6602 | subdirs='${subdirs}' | |
6603 | oldstyle_subdirs='${oldstyle_subdirs}' | |
6604 | symbolic_link='${symbolic_link}' | |
6605 | program_transform_set='${program_transform_set}' | |
6606 | program_transform_name='${program_transform_name}' | |
6607 | dep_host_xmake_file='${dep_host_xmake_file}' | |
6608 | host_xmake_file='${host_xmake_file}' | |
6609 | dep_tmake_file='${dep_tmake_file}' | |
6610 | tmake_file='${tmake_file}' | |
6611 | thread_file='${thread_file}' | |
6612 | version='${version}' | |
6613 | local_prefix='${local_prefix}' | |
6614 | build_install_headers_dir='${build_install_headers_dir}' | |
6615 | build_exeext='${build_exeext}' | |
7ed46111 | 6616 | out_file='${out_file}' |
861bb6c1 JL |
6617 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
6618 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
6619 | target_list='${target_list}' |
6620 | target_overrides='${target_overrides}' | |
6621 | host_overrides='${host_overrides}' | |
6622 | cross_defines='${cross_defines}' | |
6623 | cross_overrides='${cross_overrides}' | |
6624 | build_overrides='${build_overrides}' | |
6625 | ||
6626 | EOF | |
6627 | cat >> $CONFIG_STATUS <<\EOF | |
6628 | ||
6629 | . $srcdir/configure.lang | |
6630 | case x$CONFIG_HEADERS in | |
e9a25f70 | 6631 | xauto-config.h:config.in) |
861bb6c1 JL |
6632 | echo > cstamp-h ;; |
6633 | esac | |
93cf819d BK |
6634 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
6635 | # bootstrapping and the installation procedure can still use | |
6636 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
6637 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
6638 | # This is virtually a duplicate of what happens in configure.lang; we do | |
6639 | # an extra check to make sure this only happens if ln -s can be used. | |
6640 | if [ "$symbolic_link" = "ln -s" ]; then | |
6641 | for d in .. ${subdirs} ; do | |
6642 | if [ $d != .. ]; then | |
4e8a434e BK |
6643 | STARTDIR=`pwd` |
6644 | cd $d | |
6645 | for t in stage1 stage2 stage3 stage4 include | |
6646 | do | |
6647 | rm -f $t | |
6648 | $symbolic_link ../$t $t 2>/dev/null | |
6649 | done | |
6650 | cd $STARTDIR | |
93cf819d BK |
6651 | fi |
6652 | done | |
6653 | else true ; fi | |
861bb6c1 JL |
6654 | |
6655 | exit 0 | |
6656 | EOF | |
6657 | chmod +x $CONFIG_STATUS | |
6658 | rm -fr confdefs* $ac_clean_files | |
6659 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6660 |