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