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