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