* pa.md (subsi3): Turn into an expander. Create two anonymous
[official-gcc.git] / gcc / configure
blob3c3fda8506fa982ae302158c9383da4d5af9bda9
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-ld arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19 --with-gnu-as arrange to work with GNU as."
20 ac_help="$ac_help
21 --with-as arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23 --with-stabs arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25 --with-elf arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27 --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
31 ac_help="$ac_help
32 --enable-checking enable expensive run-time checks."
33 ac_help="$ac_help
34 --disable-cpp don't provide a user-visible C preprocessor."
35 ac_help="$ac_help
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
39 ac_help="$ac_help
40 --enable-cpplib use cpplib for the C preprocessor."
41 ac_help="$ac_help
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
44 ac_help="$ac_help
45 --disable-fast-fixincludes
46 Disable the new fast fixincludes.
47 Run the old fixincludes script unconditionally"
48 ac_help="$ac_help
49 --enable-c-mbchar Enable multibyte characters for C and C++."
50 ac_help="$ac_help
51 --enable-threads enable thread usage for target GCC.
52 --enable-threads=LIB use LIB thread package for target GCC."
53 ac_help="$ac_help
54 --enable-objc-gc enable the use of Boehm's garbage collector with
55 the GNU Objective-C runtime."
56 ac_help="$ac_help
57 --enable-dwarf2 enable DWARF2 debugging as default."
58 ac_help="$ac_help
59 --enable-nls use Native Language Support (disabled by default)"
60 ac_help="$ac_help
61 --disable-nls do not use Native Language Support"
62 ac_help="$ac_help
63 --with-included-gettext use the GNU gettext library included here"
64 ac_help="$ac_help
65 --with-catgets use catgets functions if available"
66 ac_help="$ac_help
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
73 of the registry key."
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=tree.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
586 remove=rm
587 hard_link=ln
588 symbolic_link='ln -s'
589 copy=cp
591 # Check for bogus environment variables.
592 # Test if LIBRARY_PATH contains the notation for the current directory
593 # since this would lead to problems installing/building glibc.
594 # LIBRARY_PATH contains the current directory if one of the following
595 # is true:
596 # - one of the terminals (":" and ";") is the first or last sign
597 # - two terminals occur directly after each other
598 # - the path contains an element with a dot in it
599 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
600 echo "configure:601: checking LIBRARY_PATH variable" >&5
601 case ${LIBRARY_PATH} in
602 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
603 library_path_setting="contains current directory"
606 library_path_setting="ok"
608 esac
609 echo "$ac_t""$library_path_setting" 1>&6
610 if test "$library_path_setting" != "ok"; then
611 { echo "configure: error:
612 *** LIBRARY_PATH shouldn't contain the current directory when
613 *** building gcc. Please change the environment variable
614 *** and run configure again." 1>&2; exit 1; }
617 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
618 # since this would lead to problems installing/building glibc.
619 # GCC_EXEC_PREFIX contains the current directory if one of the following
620 # is true:
621 # - one of the terminals (":" and ";") is the first or last sign
622 # - two terminals occur directly after each other
623 # - the path contains an element with a dot in it
624 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
625 echo "configure:626: checking GCC_EXEC_PREFIX variable" >&5
626 case ${GCC_EXEC_PREFIX} in
627 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
628 gcc_exec_prefix_setting="contains current directory"
631 gcc_exec_prefix_setting="ok"
633 esac
634 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
635 if test "$gcc_exec_prefix_setting" != "ok"; then
636 { echo "configure: error:
637 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
638 *** building gcc. Please change the environment variable
639 *** and run configure again." 1>&2; exit 1; }
642 # Check for additional parameters
644 # With GNU ld
645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
646 if test "${with_gnu_ld+set}" = set; then
647 withval="$with_gnu_ld"
648 gnu_ld_flag="$with_gnu_ld"
649 else
650 gnu_ld_flag=no
654 # With pre-defined ld
655 # Check whether --with-ld or --without-ld was given.
656 if test "${with_ld+set}" = set; then
657 withval="$with_ld"
658 DEFAULT_LINKER="$with_ld"
661 if test x"${DEFAULT_LINKER+set}" = x"set"; then
662 if test ! -x "$DEFAULT_LINKER"; then
663 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
664 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
665 gnu_ld_flag=yes
667 cat >> confdefs.h <<EOF
668 #define DEFAULT_LINKER "$DEFAULT_LINKER"
673 # With GNU as
674 # Check whether --with-gnu-as or --without-gnu-as was given.
675 if test "${with_gnu_as+set}" = set; then
676 withval="$with_gnu_as"
677 gas_flag="$with_gnu_as"
678 else
679 gas_flag=no
683 # Check whether --with-as or --without-as was given.
684 if test "${with_as+set}" = set; then
685 withval="$with_as"
686 DEFAULT_ASSEMBLER="$with_as"
689 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
690 if test ! -x "$DEFAULT_ASSEMBLER"; then
691 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
692 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
693 gas_flag=yes
695 cat >> confdefs.h <<EOF
696 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
701 # With stabs
702 # Check whether --with-stabs or --without-stabs was given.
703 if test "${with_stabs+set}" = set; then
704 withval="$with_stabs"
705 stabs="$with_stabs"
706 else
707 stabs=no
711 # With ELF
712 # Check whether --with-elf or --without-elf was given.
713 if test "${with_elf+set}" = set; then
714 withval="$with_elf"
715 elf="$with_elf"
716 else
717 elf=no
721 # Specify the local prefix
722 local_prefix=
723 # Check whether --with-local-prefix or --without-local-prefix was given.
724 if test "${with_local_prefix+set}" = set; then
725 withval="$with_local_prefix"
726 case "${withval}" in
727 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
728 no) ;;
729 *) local_prefix=$with_local_prefix ;;
730 esac
734 # Default local prefix if it is empty
735 if test x$local_prefix = x; then
736 local_prefix=/usr/local
739 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
740 # passed in by the toplevel make and thus we'd get different behavior
741 # depending on where we built the sources.
742 gcc_gxx_include_dir=
743 # Specify the g++ header file directory
744 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
745 if test "${with_gxx_include_dir+set}" = set; then
746 withval="$with_gxx_include_dir"
747 case "${withval}" in
748 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
749 no) ;;
750 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
751 esac
755 if test x${gcc_gxx_include_dir} = x; then
756 if test x${enable_version_specific_runtime_libs} = xyes; then
757 gcc_gxx_include_dir='${libsubdir}/include/g++'
758 else
759 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
760 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
764 # Enable expensive internal checks
765 # Check whether --enable-checking or --disable-checking was given.
766 if test "${enable_checking+set}" = set; then
767 enableval="$enable_checking"
768 case "${enableval}" in
769 yes) cat >> confdefs.h <<\EOF
770 #define ENABLE_CHECKING 1
773 no) ;;
774 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
775 esac
779 # Check whether --enable-cpp or --disable-cpp was given.
780 if test "${enable_cpp+set}" = set; then
781 enableval="$enable_cpp"
783 else
784 enable_cpp=yes
788 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
789 if test "${with_cpp_install_dir+set}" = set; then
790 withval="$with_cpp_install_dir"
791 if test x$withval = xyes; then
792 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
793 elif test x$withval != xno; then
794 cpp_install_dir=$withval
799 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
800 cpp_main=cccp
801 # Check whether --enable-cpplib or --disable-cpplib was given.
802 if test "${enable_cpplib+set}" = set; then
803 enableval="$enable_cpplib"
804 if test x$enable_cpplib != xno; then
805 cpp_main=cppmain
810 # Link cpplib into the compiler proper, for C/C++/ObjC.
811 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
812 if test "${enable_c_cpplib+set}" = set; then
813 enableval="$enable_c_cpplib"
814 if test x$enable_c_cpplib != xno; then
815 extra_c_objs="${extra_c_objs} libcpp.a"
816 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
817 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
818 cpp_main=cppmain
823 # Disable fast fixincludes
824 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
825 if test "${enable_fast_fixincludes+set}" = set; then
826 enableval="$enable_fast_fixincludes"
827 if test x$enable_fast_fixincludes = xno ; then
828 cp $srcdir/fixincludes ./fixinc.sh
833 # Enable Multibyte Characters for C/C++
834 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
835 if test "${enable_c_mbchar+set}" = set; then
836 enableval="$enable_c_mbchar"
837 if [ x$enable_c_mbchar != xno ]; then
838 extra_c_flags=-DMULTIBYTE_CHARS=1
843 # Enable threads
844 # Pass with no value to take the default
845 # Pass with a value to specify a thread package
846 # Check whether --enable-threads or --disable-threads was given.
847 if test "${enable_threads+set}" = set; then
848 enableval="$enable_threads"
849 if test x$enable_threads = xno; then
850 enable_threads=''
852 else
853 enable_threads=''
857 enable_threads_flag=$enable_threads
858 # Check if a valid thread package
859 case x${enable_threads_flag} in
860 x | xno)
861 # No threads
862 target_thread_file='single'
864 xyes)
865 # default
866 target_thread_file=''
868 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
869 xsolaris | xwin32 | xdce | xvxworks)
870 target_thread_file=$enable_threads_flag
873 echo "$enable_threads is an unknown thread package" 1>&2
874 exit 1
876 esac
878 # Check whether --enable-objc-gc or --disable-objc-gc was given.
879 if test "${enable_objc_gc+set}" = set; then
880 enableval="$enable_objc_gc"
881 if [ x$enable_objc_gc = xno ]; then
882 objc_boehm_gc=''
883 else
884 objc_boehm_gc=1
886 else
887 objc_boehm_gc=''
891 # Check whether --with-dwarf2 or --without-dwarf2 was given.
892 if test "${with_dwarf2+set}" = set; then
893 withval="$with_dwarf2"
894 dwarf2="$with_dwarf2"
895 else
896 dwarf2=no
900 # Determine the host, build, and target systems
901 ac_aux_dir=
902 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
903 if test -f $ac_dir/install-sh; then
904 ac_aux_dir=$ac_dir
905 ac_install_sh="$ac_aux_dir/install-sh -c"
906 break
907 elif test -f $ac_dir/install.sh; then
908 ac_aux_dir=$ac_dir
909 ac_install_sh="$ac_aux_dir/install.sh -c"
910 break
912 done
913 if test -z "$ac_aux_dir"; then
914 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
916 ac_config_guess=$ac_aux_dir/config.guess
917 ac_config_sub=$ac_aux_dir/config.sub
918 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
921 # Do some error checking and defaulting for the host and target type.
922 # The inputs are:
923 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
925 # The rules are:
926 # 1. You are not allowed to specify --host, --target, and nonopt at the
927 # same time.
928 # 2. Host defaults to nonopt.
929 # 3. If nonopt is not specified, then host defaults to the current host,
930 # as determined by config.guess.
931 # 4. Target and build default to nonopt.
932 # 5. If nonopt is not specified, then target and build default to host.
934 # The aliases save the names the user supplied, while $host etc.
935 # will get canonicalized.
936 case $host---$target---$nonopt in
937 NONE---*---* | *---NONE---* | *---*---NONE) ;;
938 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
939 esac
942 # Make sure we can run config.sub.
943 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
944 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
947 echo $ac_n "checking host system type""... $ac_c" 1>&6
948 echo "configure:949: checking host system type" >&5
950 host_alias=$host
951 case "$host_alias" in
952 NONE)
953 case $nonopt in
954 NONE)
955 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
956 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
957 fi ;;
958 *) host_alias=$nonopt ;;
959 esac ;;
960 esac
962 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
963 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
964 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
965 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
966 echo "$ac_t""$host" 1>&6
968 echo $ac_n "checking target system type""... $ac_c" 1>&6
969 echo "configure:970: checking target system type" >&5
971 target_alias=$target
972 case "$target_alias" in
973 NONE)
974 case $nonopt in
975 NONE) target_alias=$host_alias ;;
976 *) target_alias=$nonopt ;;
977 esac ;;
978 esac
980 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
981 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
984 echo "$ac_t""$target" 1>&6
986 echo $ac_n "checking build system type""... $ac_c" 1>&6
987 echo "configure:988: checking build system type" >&5
989 build_alias=$build
990 case "$build_alias" in
991 NONE)
992 case $nonopt in
993 NONE) build_alias=$host_alias ;;
994 *) build_alias=$nonopt ;;
995 esac ;;
996 esac
998 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
999 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1000 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1001 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1002 echo "$ac_t""$build" 1>&6
1004 test "$host_alias" != "$target_alias" &&
1005 test "$program_prefix$program_suffix$program_transform_name" = \
1006 NONENONEs,x,x, &&
1007 program_prefix=${target_alias}-
1010 # Find the native compiler
1011 # Extract the first word of "gcc", so it can be a program name with args.
1012 set dummy gcc; ac_word=$2
1013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1014 echo "configure:1015: checking for $ac_word" >&5
1015 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1017 else
1018 if test -n "$CC"; then
1019 ac_cv_prog_CC="$CC" # Let the user override the test.
1020 else
1021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1022 ac_dummy="$PATH"
1023 for ac_dir in $ac_dummy; do
1024 test -z "$ac_dir" && ac_dir=.
1025 if test -f $ac_dir/$ac_word; then
1026 ac_cv_prog_CC="gcc"
1027 break
1029 done
1030 IFS="$ac_save_ifs"
1033 CC="$ac_cv_prog_CC"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1036 else
1037 echo "$ac_t""no" 1>&6
1040 if test -z "$CC"; then
1041 # Extract the first word of "cc", so it can be a program name with args.
1042 set dummy cc; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1047 else
1048 if test -n "$CC"; then
1049 ac_cv_prog_CC="$CC" # Let the user override the test.
1050 else
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1052 ac_prog_rejected=no
1053 ac_dummy="$PATH"
1054 for ac_dir in $ac_dummy; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1058 ac_prog_rejected=yes
1059 continue
1061 ac_cv_prog_CC="cc"
1062 break
1064 done
1065 IFS="$ac_save_ifs"
1066 if test $ac_prog_rejected = yes; then
1067 # We found a bogon in the path, so make sure we never use it.
1068 set dummy $ac_cv_prog_CC
1069 shift
1070 if test $# -gt 0; then
1071 # We chose a different compiler from the bogus one.
1072 # However, it has the same basename, so the bogon will be chosen
1073 # first if we set CC to just the basename; use the full file name.
1074 shift
1075 set dummy "$ac_dir/$ac_word" "$@"
1076 shift
1077 ac_cv_prog_CC="$@"
1082 CC="$ac_cv_prog_CC"
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1085 else
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 case "`uname -s`" in
1091 *win32* | *WIN32*)
1092 # Extract the first word of "cl", so it can be a program name with args.
1093 set dummy cl; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099 if test -n "$CC"; then
1100 ac_cv_prog_CC="$CC" # Let the user override the test.
1101 else
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103 ac_dummy="$PATH"
1104 for ac_dir in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 ac_cv_prog_CC="cl"
1108 break
1110 done
1111 IFS="$ac_save_ifs"
1114 CC="$ac_cv_prog_CC"
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1121 esac
1123 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1126 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1129 ac_ext=c
1130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1131 ac_cpp='$CPP $CPPFLAGS'
1132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1134 cross_compiling=$ac_cv_prog_cc_cross
1136 cat > conftest.$ac_ext << EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1141 main(){return(0);}
1143 if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1144 ac_cv_prog_cc_works=yes
1145 # If we can't run a trivial program, we are probably using a cross compiler.
1146 if (./conftest; exit) 2>/dev/null; then
1147 ac_cv_prog_cc_cross=no
1148 else
1149 ac_cv_prog_cc_cross=yes
1151 else
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1154 ac_cv_prog_cc_works=no
1156 rm -fr conftest*
1157 ac_ext=c
1158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1159 ac_cpp='$CPP $CPPFLAGS'
1160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1162 cross_compiling=$ac_cv_prog_cc_cross
1164 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1165 if test $ac_cv_prog_cc_works = no; then
1166 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1168 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1170 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1171 cross_compiling=$ac_cv_prog_cc_cross
1173 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether we are using GNU C" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1177 else
1178 cat > conftest.c <<EOF
1179 #ifdef __GNUC__
1180 yes;
1181 #endif
1183 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1184 ac_cv_prog_gcc=yes
1185 else
1186 ac_cv_prog_gcc=no
1190 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1192 if test $ac_cv_prog_gcc = yes; then
1193 GCC=yes
1194 else
1195 GCC=
1198 ac_test_CFLAGS="${CFLAGS+set}"
1199 ac_save_CFLAGS="$CFLAGS"
1200 CFLAGS=
1201 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether ${CC-cc} accepts -g" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 echo 'void f(){}' > conftest.c
1207 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1208 ac_cv_prog_cc_g=yes
1209 else
1210 ac_cv_prog_cc_g=no
1212 rm -f conftest*
1216 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1217 if test "$ac_test_CFLAGS" = set; then
1218 CFLAGS="$ac_save_CFLAGS"
1219 elif test $ac_cv_prog_cc_g = yes; then
1220 if test "$GCC" = yes; then
1221 CFLAGS="-g -O2"
1222 else
1223 CFLAGS="-g"
1225 else
1226 if test "$GCC" = yes; then
1227 CFLAGS="-O2"
1228 else
1229 CFLAGS=
1233 echo $ac_n "checking for long double""... $ac_c" 1>&6
1234 echo "configure:1235: checking for long double" >&5
1235 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test "$GCC" = yes; then
1239 gcc_cv_c_long_double=yes
1240 else
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1245 int main() {
1246 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1247 long double foo = 0.0;
1248 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1249 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1250 ; return 0; }
1252 if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1253 rm -rf conftest*
1254 gcc_cv_c_long_double=yes
1255 else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 rm -rf conftest*
1259 gcc_cv_c_long_double=no
1261 rm -f conftest*
1265 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1266 if test $gcc_cv_c_long_double = yes; then
1267 cat >> confdefs.h <<\EOF
1268 #define HAVE_LONG_DOUBLE 1
1274 # If the native compiler is GCC, we can enable warnings even in stage1.
1275 # That's useful for people building cross-compilers, or just running a
1276 # quick `make'.
1277 if test "x$GCC" = "xyes"; then
1278 stage1_warn_cflags='$(WARN_CFLAGS)'
1279 else
1280 stage1_warn_cflags=""
1284 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ${MAKE-make} sets \${MAKE}" >&5
1286 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1287 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 cat > conftestmake <<\EOF
1291 all:
1292 @echo 'ac_maketemp="${MAKE}"'
1294 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1295 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1296 if test -n "$ac_maketemp"; then
1297 eval ac_cv_prog_make_${ac_make}_set=yes
1298 else
1299 eval ac_cv_prog_make_${ac_make}_set=no
1301 rm -f conftestmake
1303 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 SET_MAKE=
1306 else
1307 echo "$ac_t""no" 1>&6
1308 SET_MAKE="MAKE=${MAKE-make}"
1312 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether a default assembler was specified" >&5
1314 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1315 if test x"$gas_flag" = x"no"; then
1316 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1317 else
1318 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1320 else
1321 echo "$ac_t""no" 1>&6
1324 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether a default linker was specified" >&5
1326 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1327 if test x"$gnu_ld_flag" = x"no"; then
1328 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1329 else
1330 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1332 else
1333 echo "$ac_t""no" 1>&6
1336 # Find some useful tools
1337 for ac_prog in mawk gawk nawk awk
1339 # Extract the first word of "$ac_prog", so it can be a program name with args.
1340 set dummy $ac_prog; ac_word=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346 if test -n "$AWK"; then
1347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1348 else
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1350 ac_dummy="$PATH"
1351 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f $ac_dir/$ac_word; then
1354 ac_cv_prog_AWK="$ac_prog"
1355 break
1357 done
1358 IFS="$ac_save_ifs"
1361 AWK="$ac_cv_prog_AWK"
1362 if test -n "$AWK"; then
1363 echo "$ac_t""$AWK" 1>&6
1364 else
1365 echo "$ac_t""no" 1>&6
1368 test -n "$AWK" && break
1369 done
1371 # Extract the first word of "flex", so it can be a program name with args.
1372 set dummy flex; ac_word=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378 if test -n "$LEX"; then
1379 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1380 else
1381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1382 ac_dummy="$PATH"
1383 for ac_dir in $ac_dummy; do
1384 test -z "$ac_dir" && ac_dir=.
1385 if test -f $ac_dir/$ac_word; then
1386 ac_cv_prog_LEX="flex"
1387 break
1389 done
1390 IFS="$ac_save_ifs"
1391 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1394 LEX="$ac_cv_prog_LEX"
1395 if test -n "$LEX"; then
1396 echo "$ac_t""$LEX" 1>&6
1397 else
1398 echo "$ac_t""no" 1>&6
1401 if test -z "$LEXLIB"
1402 then
1403 case "$LEX" in
1404 flex*) ac_lib=fl ;;
1405 *) ac_lib=l ;;
1406 esac
1407 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1408 echo "configure:1409: checking for yywrap in -l$ac_lib" >&5
1409 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413 ac_save_LIBS="$LIBS"
1414 LIBS="-l$ac_lib $LIBS"
1415 cat > conftest.$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1418 /* Override any gcc2 internal prototype to avoid an error. */
1419 /* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1421 char yywrap();
1423 int main() {
1424 yywrap()
1425 ; return 0; }
1427 if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428 rm -rf conftest*
1429 eval "ac_cv_lib_$ac_lib_var=yes"
1430 else
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1433 rm -rf conftest*
1434 eval "ac_cv_lib_$ac_lib_var=no"
1436 rm -f conftest*
1437 LIBS="$ac_save_LIBS"
1440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1442 LEXLIB="-l$ac_lib"
1443 else
1444 echo "$ac_t""no" 1>&6
1449 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether ln works" >&5
1451 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 rm -f conftestdata_t
1455 echo >conftestdata_f
1456 if ln conftestdata_f conftestdata_t 2>/dev/null
1457 then
1458 gcc_cv_prog_LN="ln"
1459 else
1460 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1461 then
1462 gcc_cv_prog_LN="ln -s"
1463 else
1464 gcc_cv_prog_LN=cp
1467 rm -f conftestdata_f conftestdata_t
1470 LN="$gcc_cv_prog_LN"
1471 if test "$gcc_cv_prog_LN" = "ln"; then
1472 echo "$ac_t""yes" 1>&6
1473 else
1474 if test "$gcc_cv_prog_LN" = "ln -s"; then
1475 echo "$ac_t""no, using ln -s" 1>&6
1476 else
1477 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1481 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether ln -s works" >&5
1483 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 rm -f conftestdata_t
1487 echo >conftestdata_f
1488 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1489 then
1490 gcc_cv_prog_LN_S="ln -s"
1491 else
1492 if ln conftestdata_f conftestdata_t 2>/dev/null
1493 then
1494 gcc_cv_prog_LN_S=ln
1495 else
1496 gcc_cv_prog_LN_S=cp
1499 rm -f conftestdata_f conftestdata_t
1502 LN_S="$gcc_cv_prog_LN_S"
1503 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1504 echo "$ac_t""yes" 1>&6
1505 else
1506 if test "$gcc_cv_prog_LN_S" = "ln"; then
1507 echo "$ac_t""no, using ln" 1>&6
1508 else
1509 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1513 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1514 echo "configure:1515: checking for volatile" >&5
1515 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1522 int main() {
1523 volatile int foo;
1524 ; return 0; }
1526 if { (eval echo configure:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1527 rm -rf conftest*
1528 gcc_cv_c_volatile=yes
1529 else
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1532 rm -rf conftest*
1533 gcc_cv_c_volatile=no
1535 rm -f conftest*
1538 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1539 if test $gcc_cv_c_volatile = yes ; then
1540 cat >> confdefs.h <<\EOF
1541 #define HAVE_VOLATILE 1
1546 # Extract the first word of "ranlib", so it can be a program name with args.
1547 set dummy ranlib; ac_word=$2
1548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_word" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1552 else
1553 if test -n "$RANLIB"; then
1554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1555 else
1556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1557 ac_dummy="$PATH"
1558 for ac_dir in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir=.
1560 if test -f $ac_dir/$ac_word; then
1561 ac_cv_prog_RANLIB="ranlib"
1562 break
1564 done
1565 IFS="$ac_save_ifs"
1566 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1569 RANLIB="$ac_cv_prog_RANLIB"
1570 if test -n "$RANLIB"; then
1571 echo "$ac_t""$RANLIB" 1>&6
1572 else
1573 echo "$ac_t""no" 1>&6
1576 for ac_prog in 'bison -y' byacc
1578 # Extract the first word of "$ac_prog", so it can be a program name with args.
1579 set dummy $ac_prog; ac_word=$2
1580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1581 echo "configure:1582: checking for $ac_word" >&5
1582 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585 if test -n "$YACC"; then
1586 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1587 else
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1589 ac_dummy="$PATH"
1590 for ac_dir in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir=.
1592 if test -f $ac_dir/$ac_word; then
1593 ac_cv_prog_YACC="$ac_prog"
1594 break
1596 done
1597 IFS="$ac_save_ifs"
1600 YACC="$ac_cv_prog_YACC"
1601 if test -n "$YACC"; then
1602 echo "$ac_t""$YACC" 1>&6
1603 else
1604 echo "$ac_t""no" 1>&6
1607 test -n "$YACC" && break
1608 done
1609 test -n "$YACC" || YACC="yacc"
1611 # Find a good install program. We prefer a C program (faster),
1612 # so one script is as good as another. But avoid the broken or
1613 # incompatible versions:
1614 # SysV /etc/install, /usr/sbin/install
1615 # SunOS /usr/etc/install
1616 # IRIX /sbin/install
1617 # AIX /bin/install
1618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1620 # ./install, which can be erroneously created by make from ./install.sh.
1621 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1622 echo "configure:1623: checking for a BSD compatible install" >&5
1623 if test -z "$INSTALL"; then
1624 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1628 for ac_dir in $PATH; do
1629 # Account for people who put trailing slashes in PATH elements.
1630 case "$ac_dir/" in
1631 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1633 # OSF1 and SCO ODT 3.0 have their own names for install.
1634 for ac_prog in ginstall scoinst install; do
1635 if test -f $ac_dir/$ac_prog; then
1636 if test $ac_prog = install &&
1637 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1638 # AIX install. It has an incompatible calling convention.
1639 # OSF/1 installbsd also uses dspmsg, but is usable.
1641 else
1642 ac_cv_path_install="$ac_dir/$ac_prog -c"
1643 break 2
1646 done
1648 esac
1649 done
1650 IFS="$ac_save_IFS"
1653 if test "${ac_cv_path_install+set}" = set; then
1654 INSTALL="$ac_cv_path_install"
1655 else
1656 # As a last resort, use the slow shell script. We don't cache a
1657 # path for INSTALL within a source directory, because that will
1658 # break other packages using the cache if that directory is
1659 # removed, or if the path is relative.
1660 INSTALL="$ac_install_sh"
1663 echo "$ac_t""$INSTALL" 1>&6
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1672 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1673 echo "configure:1674: checking how to run the C preprocessor" >&5
1674 # On Suns, sometimes $CPP names a directory.
1675 if test -n "$CPP" && test -d "$CPP"; then
1676 CPP=
1678 if test -z "$CPP"; then
1679 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682 # This must be in double quotes, not single quotes, because CPP may get
1683 # substituted into the Makefile and "${CC-cc}" will confuse make.
1684 CPP="${CC-cc} -E"
1685 # On the NeXT, cc -E runs the code through the compiler's parser,
1686 # not just through cpp.
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <assert.h>
1691 Syntax Error
1693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1696 if test -z "$ac_err"; then
1698 else
1699 echo "$ac_err" >&5
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
1703 CPP="${CC-cc} -E -traditional-cpp"
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 #include <assert.h>
1708 Syntax Error
1710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1713 if test -z "$ac_err"; then
1715 else
1716 echo "$ac_err" >&5
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -rf conftest*
1720 CPP="${CC-cc} -nologo -E"
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 #include <assert.h>
1725 Syntax Error
1727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1728 { (eval echo configure:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1730 if test -z "$ac_err"; then
1732 else
1733 echo "$ac_err" >&5
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 rm -rf conftest*
1737 CPP=/lib/cpp
1739 rm -f conftest*
1741 rm -f conftest*
1743 rm -f conftest*
1744 ac_cv_prog_CPP="$CPP"
1746 CPP="$ac_cv_prog_CPP"
1747 else
1748 ac_cv_prog_CPP="$CPP"
1750 echo "$ac_t""$CPP" 1>&6
1752 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1753 echo "configure:1754: checking for ANSI C header files" >&5
1754 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 #include <stdlib.h>
1761 #include <stdarg.h>
1762 #include <string.h>
1763 #include <float.h>
1765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1768 if test -z "$ac_err"; then
1769 rm -rf conftest*
1770 ac_cv_header_stdc=yes
1771 else
1772 echo "$ac_err" >&5
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 rm -rf conftest*
1776 ac_cv_header_stdc=no
1778 rm -f conftest*
1780 if test $ac_cv_header_stdc = yes; then
1781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <string.h>
1787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1788 egrep "memchr" >/dev/null 2>&1; then
1790 else
1791 rm -rf conftest*
1792 ac_cv_header_stdc=no
1794 rm -f conftest*
1798 if test $ac_cv_header_stdc = yes; then
1799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 #include <stdlib.h>
1805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1806 egrep "free" >/dev/null 2>&1; then
1808 else
1809 rm -rf conftest*
1810 ac_cv_header_stdc=no
1812 rm -f conftest*
1816 if test $ac_cv_header_stdc = yes; then
1817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1818 if test "$cross_compiling" = yes; then
1820 else
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 #include <ctype.h>
1825 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1826 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1828 int main () { int i; for (i = 0; i < 256; i++)
1829 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1830 exit (0); }
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1834 then
1836 else
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 rm -fr conftest*
1840 ac_cv_header_stdc=no
1842 rm -fr conftest*
1848 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1849 if test $ac_cv_header_stdc = yes; then
1850 cat >> confdefs.h <<\EOF
1851 #define STDC_HEADERS 1
1856 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1857 echo "configure:1858: checking whether time.h and sys/time.h may both be included" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <sys/types.h>
1865 #include <sys/time.h>
1866 #include <time.h>
1867 int main() {
1868 struct tm *tp;
1869 ; return 0; }
1871 if { (eval echo configure:1872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1872 rm -rf conftest*
1873 ac_cv_header_time=yes
1874 else
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 rm -rf conftest*
1878 ac_cv_header_time=no
1880 rm -f conftest*
1883 echo "$ac_t""$ac_cv_header_time" 1>&6
1884 if test $ac_cv_header_time = yes; then
1885 cat >> confdefs.h <<\EOF
1886 #define TIME_WITH_SYS_TIME 1
1891 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1892 echo "configure:1893: checking whether string.h and strings.h may both be included" >&5
1893 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1895 else
1896 cat > conftest.$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1899 #include <string.h>
1900 #include <strings.h>
1901 int main() {
1903 ; return 0; }
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1906 rm -rf conftest*
1907 gcc_cv_header_string=yes
1908 else
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1911 rm -rf conftest*
1912 gcc_cv_header_string=no
1914 rm -f conftest*
1917 echo "$ac_t""$gcc_cv_header_string" 1>&6
1918 if test $gcc_cv_header_string = yes; then
1919 cat >> confdefs.h <<\EOF
1920 #define STRING_WITH_STRINGS 1
1925 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1926 echo "configure:1927: checking for sys/wait.h that is POSIX.1 compatible" >&5
1927 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929 else
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 #include <sys/types.h>
1934 #include <sys/wait.h>
1935 #ifndef WEXITSTATUS
1936 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1937 #endif
1938 #ifndef WIFEXITED
1939 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1940 #endif
1941 int main() {
1942 int s;
1943 wait (&s);
1944 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1945 ; return 0; }
1947 if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1948 rm -rf conftest*
1949 ac_cv_header_sys_wait_h=yes
1950 else
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1953 rm -rf conftest*
1954 ac_cv_header_sys_wait_h=no
1956 rm -f conftest*
1959 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1960 if test $ac_cv_header_sys_wait_h = yes; then
1961 cat >> confdefs.h <<\EOF
1962 #define HAVE_SYS_WAIT_H 1
1967 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
1968 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
1969 sys/resource.h sys/param.h sys/times.h sys/stat.h \
1970 direct.h malloc.h
1972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_hdr" >&5
1975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <$ac_hdr>
1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986 if test -z "$ac_err"; then
1987 rm -rf conftest*
1988 eval "ac_cv_header_$ac_safe=yes"
1989 else
1990 echo "$ac_err" >&5
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 rm -rf conftest*
1994 eval "ac_cv_header_$ac_safe=no"
1996 rm -f conftest*
1998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2001 cat >> confdefs.h <<EOF
2002 #define $ac_tr_hdr 1
2005 else
2006 echo "$ac_t""no" 1>&6
2008 done
2011 # Check for thread headers.
2012 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2013 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2014 echo "configure:2015: checking for thread.h" >&5
2015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2017 else
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2021 #include <thread.h>
2023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2024 { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2026 if test -z "$ac_err"; then
2027 rm -rf conftest*
2028 eval "ac_cv_header_$ac_safe=yes"
2029 else
2030 echo "$ac_err" >&5
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2033 rm -rf conftest*
2034 eval "ac_cv_header_$ac_safe=no"
2036 rm -f conftest*
2038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2039 echo "$ac_t""yes" 1>&6
2040 have_thread_h=yes
2041 else
2042 echo "$ac_t""no" 1>&6
2043 have_thread_h=
2046 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2047 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2048 echo "configure:2049: checking for pthread.h" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 #include <pthread.h>
2057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2058 { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2060 if test -z "$ac_err"; then
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=yes"
2063 else
2064 echo "$ac_err" >&5
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 eval "ac_cv_header_$ac_safe=no"
2070 rm -f conftest*
2072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2074 have_pthread_h=yes
2075 else
2076 echo "$ac_t""no" 1>&6
2077 have_pthread_h=
2081 # See if GNAT has been installed
2082 # Extract the first word of "gnatbind", so it can be a program name with args.
2083 set dummy gnatbind; ac_word=$2
2084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2085 echo "configure:2086: checking for $ac_word" >&5
2086 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089 if test -n "$gnat"; then
2090 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2091 else
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2093 ac_dummy="$PATH"
2094 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 if test -f $ac_dir/$ac_word; then
2097 ac_cv_prog_gnat="yes"
2098 break
2100 done
2101 IFS="$ac_save_ifs"
2102 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2105 gnat="$ac_cv_prog_gnat"
2106 if test -n "$gnat"; then
2107 echo "$ac_t""$gnat" 1>&6
2108 else
2109 echo "$ac_t""no" 1>&6
2113 # See if the stage1 system preprocessor understands the ANSI C
2114 # preprocessor stringification operator.
2117 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2118 echo "configure:2119: checking for preprocessor stringizing operator" >&5
2119 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2126 #define x(y) #y
2128 char *s = x(teststring);
2131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2132 egrep "#teststring" >/dev/null 2>&1; then
2133 rm -rf conftest*
2134 ac_cv_c_stringize=no
2135 else
2136 rm -rf conftest*
2137 ac_cv_c_stringize=yes
2139 rm -f conftest*
2143 if test "${ac_cv_c_stringize}" = yes
2144 then
2145 cat >> confdefs.h <<\EOF
2146 #define HAVE_STRINGIZE 1
2150 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2153 # Use <inttypes.h> only if it exists,
2154 # doesn't clash with <sys/types.h>, and declares intmax_t.
2155 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2156 echo "configure:2157: checking for inttypes.h" >&5
2157 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #include <sys/types.h>
2164 #include <inttypes.h>
2165 int main() {
2166 intmax_t i = -1;
2167 ; return 0; }
2169 if { (eval echo configure:2170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2170 rm -rf conftest*
2171 gcc_cv_header_inttypes_h=yes
2172 else
2173 echo "configure: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 rm -rf conftest*
2176 gcc_cv_header_inttypes_h=no
2178 rm -f conftest*
2181 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2182 if test $gcc_cv_header_inttypes_h = yes; then
2183 cat >> confdefs.h <<\EOF
2184 #define HAVE_INTTYPES_H 1
2189 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2190 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2191 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2192 fputs_unlocked getrusage
2194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_func" >&5
2196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $ac_func(); below. */
2204 #include <assert.h>
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2208 char $ac_func();
2210 int main() {
2212 /* The GNU C library defines this for functions which it implements
2213 to always fail with ENOSYS. Some functions are actually named
2214 something starting with __ and the normal name is an alias. */
2215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2216 choke me
2217 #else
2218 $ac_func();
2219 #endif
2221 ; return 0; }
2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2224 rm -rf conftest*
2225 eval "ac_cv_func_$ac_func=yes"
2226 else
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2229 rm -rf conftest*
2230 eval "ac_cv_func_$ac_func=no"
2232 rm -f conftest*
2235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2238 cat >> confdefs.h <<EOF
2239 #define $ac_tr_func 1
2242 else
2243 echo "$ac_t""no" 1>&6
2245 done
2248 # Make sure wchar_t is available
2249 #AC_CHECK_TYPE(wchar_t, unsigned int)
2251 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2252 echo "configure:2253: checking for vprintf" >&5
2253 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 /* System header to define __stub macros and hopefully few prototypes,
2260 which can conflict with char vprintf(); below. */
2261 #include <assert.h>
2262 /* Override any gcc2 internal prototype to avoid an error. */
2263 /* We use char because int might match the return type of a gcc2
2264 builtin and then its argument prototype would still apply. */
2265 char vprintf();
2267 int main() {
2269 /* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2273 choke me
2274 #else
2275 vprintf();
2276 #endif
2278 ; return 0; }
2280 if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2281 rm -rf conftest*
2282 eval "ac_cv_func_vprintf=yes"
2283 else
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 rm -rf conftest*
2287 eval "ac_cv_func_vprintf=no"
2289 rm -f conftest*
2292 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 cat >> confdefs.h <<\EOF
2295 #define HAVE_VPRINTF 1
2298 else
2299 echo "$ac_t""no" 1>&6
2302 if test "$ac_cv_func_vprintf" != yes; then
2303 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2304 echo "configure:2305: checking for _doprnt" >&5
2305 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2307 else
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 /* System header to define __stub macros and hopefully few prototypes,
2312 which can conflict with char _doprnt(); below. */
2313 #include <assert.h>
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2317 char _doprnt();
2319 int main() {
2321 /* The GNU C library defines this for functions which it implements
2322 to always fail with ENOSYS. Some functions are actually named
2323 something starting with __ and the normal name is an alias. */
2324 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2325 choke me
2326 #else
2327 _doprnt();
2328 #endif
2330 ; return 0; }
2332 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333 rm -rf conftest*
2334 eval "ac_cv_func__doprnt=yes"
2335 else
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2338 rm -rf conftest*
2339 eval "ac_cv_func__doprnt=no"
2341 rm -f conftest*
2344 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2345 echo "$ac_t""yes" 1>&6
2346 cat >> confdefs.h <<\EOF
2347 #define HAVE_DOPRNT 1
2350 else
2351 echo "$ac_t""no" 1>&6
2356 vfprintf=
2357 doprint=
2358 if test $ac_cv_func_vprintf != yes ; then
2359 vfprintf=vfprintf.o
2360 if test $ac_cv_func__doprnt != yes ; then
2361 doprint=doprint.o
2367 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2368 echo "configure:2369: checking whether the printf functions support %p" >&5
2369 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2371 else
2372 if test "$cross_compiling" = yes; then
2373 gcc_cv_func_printf_ptr=no
2374 else
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <stdio.h>
2380 main()
2382 char buf[64];
2383 char *p = buf, *q = NULL;
2384 sprintf(buf, "%p", p);
2385 sscanf(buf, "%p", &q);
2386 exit (p != q);
2389 if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2390 then
2391 gcc_cv_func_printf_ptr=yes
2392 else
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2395 rm -fr conftest*
2396 gcc_cv_func_printf_ptr=no
2398 rm -fr conftest*
2401 rm -f core core.* *.core
2404 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2405 if test $gcc_cv_func_printf_ptr = yes ; then
2406 cat >> confdefs.h <<\EOF
2407 #define HAVE_PRINTF_PTR 1
2413 case "${host}" in
2414 *-*-uwin*)
2415 # Under some versions of uwin, vfork is notoriously buggy and the test
2416 # can hang configure; on other versions, vfork exists just as a stub.
2417 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2418 ac_cv_func_vfork_works=no
2420 esac
2421 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2422 echo "configure:2423: checking for pid_t" >&5
2423 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2425 else
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 #include <sys/types.h>
2430 #if STDC_HEADERS
2431 #include <stdlib.h>
2432 #include <stddef.h>
2433 #endif
2435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2436 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2437 rm -rf conftest*
2438 ac_cv_type_pid_t=yes
2439 else
2440 rm -rf conftest*
2441 ac_cv_type_pid_t=no
2443 rm -f conftest*
2446 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2447 if test $ac_cv_type_pid_t = no; then
2448 cat >> confdefs.h <<\EOF
2449 #define pid_t int
2454 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2455 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2456 echo "configure:2457: checking for vfork.h" >&5
2457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <vfork.h>
2465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2466 { (eval echo configure:2467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2468 if test -z "$ac_err"; then
2469 rm -rf conftest*
2470 eval "ac_cv_header_$ac_safe=yes"
2471 else
2472 echo "$ac_err" >&5
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 eval "ac_cv_header_$ac_safe=no"
2478 rm -f conftest*
2480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 cat >> confdefs.h <<\EOF
2483 #define HAVE_VFORK_H 1
2486 else
2487 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2491 echo "configure:2492: checking for working vfork" >&5
2492 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495 if test "$cross_compiling" = yes; then
2496 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2497 echo "configure:2498: checking for vfork" >&5
2498 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2500 else
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char vfork(); below. */
2506 #include <assert.h>
2507 /* Override any gcc2 internal prototype to avoid an error. */
2508 /* We use char because int might match the return type of a gcc2
2509 builtin and then its argument prototype would still apply. */
2510 char vfork();
2512 int main() {
2514 /* The GNU C library defines this for functions which it implements
2515 to always fail with ENOSYS. Some functions are actually named
2516 something starting with __ and the normal name is an alias. */
2517 #if defined (__stub_vfork) || defined (__stub___vfork)
2518 choke me
2519 #else
2520 vfork();
2521 #endif
2523 ; return 0; }
2525 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526 rm -rf conftest*
2527 eval "ac_cv_func_vfork=yes"
2528 else
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 rm -rf conftest*
2532 eval "ac_cv_func_vfork=no"
2534 rm -f conftest*
2537 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2540 else
2541 echo "$ac_t""no" 1>&6
2544 ac_cv_func_vfork_works=$ac_cv_func_vfork
2545 else
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 /* Thanks to Paul Eggert for this test. */
2550 #include <stdio.h>
2551 #include <sys/types.h>
2552 #include <sys/stat.h>
2553 #ifdef HAVE_UNISTD_H
2554 #include <unistd.h>
2555 #endif
2556 #ifdef HAVE_VFORK_H
2557 #include <vfork.h>
2558 #endif
2559 /* On some sparc systems, changes by the child to local and incoming
2560 argument registers are propagated back to the parent.
2561 The compiler is told about this with #include <vfork.h>,
2562 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2563 Test for this by using a static variable whose address
2564 is put into a register that is clobbered by the vfork. */
2565 static
2566 #ifdef __cplusplus
2567 sparc_address_test (int arg)
2568 #else
2569 sparc_address_test (arg) int arg;
2570 #endif
2572 static pid_t child;
2573 if (!child) {
2574 child = vfork ();
2575 if (child < 0) {
2576 perror ("vfork");
2577 _exit(2);
2579 if (!child) {
2580 arg = getpid();
2581 write(-1, "", 0);
2582 _exit (arg);
2586 main() {
2587 pid_t parent = getpid ();
2588 pid_t child;
2590 sparc_address_test ();
2592 child = vfork ();
2594 if (child == 0) {
2595 /* Here is another test for sparc vfork register problems.
2596 This test uses lots of local variables, at least
2597 as many local variables as main has allocated so far
2598 including compiler temporaries. 4 locals are enough for
2599 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2600 A buggy compiler should reuse the register of parent
2601 for one of the local variables, since it will think that
2602 parent can't possibly be used any more in this routine.
2603 Assigning to the local variable will thus munge parent
2604 in the parent process. */
2605 pid_t
2606 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2607 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2608 /* Convince the compiler that p..p7 are live; otherwise, it might
2609 use the same hardware register for all 8 local variables. */
2610 if (p != p1 || p != p2 || p != p3 || p != p4
2611 || p != p5 || p != p6 || p != p7)
2612 _exit(1);
2614 /* On some systems (e.g. IRIX 3.3),
2615 vfork doesn't separate parent from child file descriptors.
2616 If the child closes a descriptor before it execs or exits,
2617 this munges the parent's descriptor as well.
2618 Test for this by closing stdout in the child. */
2619 _exit(close(fileno(stdout)) != 0);
2620 } else {
2621 int status;
2622 struct stat st;
2624 while (wait(&status) != child)
2626 exit(
2627 /* Was there some problem with vforking? */
2628 child < 0
2630 /* Did the child fail? (This shouldn't happen.) */
2631 || status
2633 /* Did the vfork/compiler bug occur? */
2634 || parent != getpid()
2636 /* Did the file descriptor bug occur? */
2637 || fstat(fileno(stdout), &st) != 0
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2643 then
2644 ac_cv_func_vfork_works=yes
2645 else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -fr conftest*
2649 ac_cv_func_vfork_works=no
2651 rm -fr conftest*
2656 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2657 if test $ac_cv_func_vfork_works = no; then
2658 cat >> confdefs.h <<\EOF
2659 #define vfork fork
2665 for ac_func in bcopy bzero bcmp \
2666 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2667 strsignal putc_unlocked fputs_unlocked strstr
2669 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2670 echo "configure:2671: checking whether $ac_func must be declared" >&5
2671 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2673 else
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2678 #include <stdio.h>
2679 #ifdef STRING_WITH_STRINGS
2680 # include <string.h>
2681 # include <strings.h>
2682 #else
2683 # ifdef HAVE_STRING_H
2684 # include <string.h>
2685 # else
2686 # ifdef HAVE_STRINGS_H
2687 # include <strings.h>
2688 # endif
2689 # endif
2690 #endif
2691 #ifdef HAVE_STDLIB_H
2692 #include <stdlib.h>
2693 #endif
2694 #ifdef HAVE_UNISTD_H
2695 #include <unistd.h>
2696 #endif
2697 #ifndef HAVE_RINDEX
2698 #define rindex strrchr
2699 #endif
2700 #ifndef HAVE_INDEX
2701 #define index strchr
2702 #endif
2704 int main() {
2705 char *(*pfn) = (char *(*)) $ac_func
2706 ; return 0; }
2708 if { (eval echo configure:2709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2709 rm -rf conftest*
2710 eval "gcc_cv_decl_needed_$ac_func=no"
2711 else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "gcc_cv_decl_needed_$ac_func=yes"
2717 rm -f conftest*
2720 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h <<EOF
2724 #define $gcc_tr_decl 1
2727 else
2728 echo "$ac_t""no" 1>&6
2731 done
2734 for ac_func in malloc realloc calloc free
2736 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2737 echo "configure:2738: checking whether $ac_func must be declared" >&5
2738 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740 else
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2745 #include <stdio.h>
2746 #ifdef STRING_WITH_STRINGS
2747 # include <string.h>
2748 # include <strings.h>
2749 #else
2750 # ifdef HAVE_STRING_H
2751 # include <string.h>
2752 # else
2753 # ifdef HAVE_STRINGS_H
2754 # include <strings.h>
2755 # endif
2756 # endif
2757 #endif
2758 #ifdef HAVE_STDLIB_H
2759 #include <stdlib.h>
2760 #endif
2761 #ifdef HAVE_UNISTD_H
2762 #include <unistd.h>
2763 #endif
2764 #ifndef HAVE_RINDEX
2765 #define rindex strrchr
2766 #endif
2767 #ifndef HAVE_INDEX
2768 #define index strchr
2769 #endif
2770 #ifdef HAVE_MALLOC_H
2771 #include <malloc.h>
2772 #endif
2774 int main() {
2775 char *(*pfn) = (char *(*)) $ac_func
2776 ; return 0; }
2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2779 rm -rf conftest*
2780 eval "gcc_cv_decl_needed_$ac_func=no"
2781 else
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 rm -rf conftest*
2785 eval "gcc_cv_decl_needed_$ac_func=yes"
2787 rm -f conftest*
2790 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2791 echo "$ac_t""yes" 1>&6
2792 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2793 cat >> confdefs.h <<EOF
2794 #define $gcc_tr_decl 1
2797 else
2798 echo "$ac_t""no" 1>&6
2801 done
2804 for ac_func in getrlimit setrlimit getrusage
2806 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2807 echo "configure:2808: checking whether $ac_func must be declared" >&5
2808 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2810 else
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 #include <stdio.h>
2816 #ifdef STRING_WITH_STRINGS
2817 # include <string.h>
2818 # include <strings.h>
2819 #else
2820 # ifdef HAVE_STRING_H
2821 # include <string.h>
2822 # else
2823 # ifdef HAVE_STRINGS_H
2824 # include <strings.h>
2825 # endif
2826 # endif
2827 #endif
2828 #ifdef HAVE_STDLIB_H
2829 #include <stdlib.h>
2830 #endif
2831 #ifdef HAVE_UNISTD_H
2832 #include <unistd.h>
2833 #endif
2834 #ifndef HAVE_RINDEX
2835 #define rindex strrchr
2836 #endif
2837 #ifndef HAVE_INDEX
2838 #define index strchr
2839 #endif
2840 #include <sys/types.h>
2841 #ifdef HAVE_SYS_RESOURCE_H
2842 #include <sys/resource.h>
2843 #endif
2845 int main() {
2846 char *(*pfn) = (char *(*)) $ac_func
2847 ; return 0; }
2849 if { (eval echo configure:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2850 rm -rf conftest*
2851 eval "gcc_cv_decl_needed_$ac_func=no"
2852 else
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2855 rm -rf conftest*
2856 eval "gcc_cv_decl_needed_$ac_func=yes"
2858 rm -f conftest*
2861 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2864 cat >> confdefs.h <<EOF
2865 #define $gcc_tr_decl 1
2868 else
2869 echo "$ac_t""no" 1>&6
2872 done
2875 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2876 echo "configure:2877: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2877 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2879 else
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include <sys/types.h>
2884 #include <signal.h>
2885 /* NetBSD declares sys_siglist in unistd.h. */
2886 #ifdef HAVE_UNISTD_H
2887 #include <unistd.h>
2888 #endif
2889 int main() {
2890 char *msg = *(sys_siglist + 1);
2891 ; return 0; }
2893 if { (eval echo configure:2894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2894 rm -rf conftest*
2895 ac_cv_decl_sys_siglist=yes
2896 else
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2899 rm -rf conftest*
2900 ac_cv_decl_sys_siglist=no
2902 rm -f conftest*
2905 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2906 if test $ac_cv_decl_sys_siglist = yes; then
2907 cat >> confdefs.h <<\EOF
2908 #define SYS_SIGLIST_DECLARED 1
2914 # mkdir takes a single argument on some systems.
2915 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2916 echo "configure:2917: checking if mkdir takes one argument" >&5
2917 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2924 #include <sys/types.h>
2925 #ifdef HAVE_SYS_STAT_H
2926 # include <sys/stat.h>
2927 #endif
2928 #ifdef HAVE_UNISTD_H
2929 # include <unistd.h>
2930 #endif
2931 #ifdef HAVE_DIRECT_H
2932 # include <direct.h>
2933 #endif
2934 int main() {
2935 mkdir ("foo", 0);
2936 ; return 0; }
2938 if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2939 rm -rf conftest*
2940 gcc_cv_mkdir_takes_one_arg=no
2941 else
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 gcc_cv_mkdir_takes_one_arg=yes
2947 rm -f conftest*
2950 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2951 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2952 cat >> confdefs.h <<\EOF
2953 #define MKDIR_TAKES_ONE_ARG 1
2959 # File extensions
2960 manext='.1'
2961 objext='.o'
2965 build_xm_file=
2966 build_xm_defines=
2967 build_install_headers_dir=install-headers-tar
2968 build_exeext=
2969 host_xm_file=
2970 host_xm_defines=
2971 host_xmake_file=
2972 host_truncate_target=
2973 host_exeext=
2975 # Decode the host machine, then the target machine.
2976 # For the host machine, we save the xm_file variable as host_xm_file;
2977 # then we decode the target machine and forget everything else
2978 # that came from the host machine.
2979 for machine in $build $host $target; do
2981 out_file=
2982 xmake_file=
2983 tmake_file=
2984 extra_headers=
2985 extra_passes=
2986 extra_parts=
2987 extra_programs=
2988 extra_objs=
2989 extra_host_objs=
2990 extra_gcc_objs=
2991 xm_defines=
2992 float_format=
2993 # Set this to force installation and use of collect2.
2994 use_collect2=
2995 # Set this to override the default target model.
2996 target_cpu_default=
2997 # Set this to control how the header file directory is installed.
2998 install_headers_dir=install-headers-tar
2999 # Set this to a non-empty list of args to pass to cpp if the target
3000 # wants its .md file passed through cpp.
3001 md_cppflags=
3002 # Set this if directory names should be truncated to 14 characters.
3003 truncate_target=
3004 # Set this if gdb needs a dir command with `dirname $out_file`
3005 gdb_needs_out_file_path=
3006 # Set this if the build machine requires executables to have a
3007 # file name suffix.
3008 exeext=
3009 # Set this to control which thread package will be used.
3010 thread_file=
3011 # Reinitialize these from the flag values every loop pass, since some
3012 # configure entries modify them.
3013 gas="$gas_flag"
3014 gnu_ld="$gnu_ld_flag"
3015 enable_threads=$enable_threads_flag
3017 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3018 # updated in each machine entry.
3019 tm_p_file=
3020 cpu_type=`echo $machine | sed 's/-.*$//'`
3021 case $machine in
3022 alpha*-*-*)
3023 cpu_type=alpha
3025 arm*-*-*)
3026 cpu_type=arm
3028 c*-convex-*)
3029 cpu_type=convex
3031 i[34567]86-*-*)
3032 cpu_type=i386
3034 hppa*-*-*)
3035 cpu_type=pa
3037 m68000-*-*)
3038 cpu_type=m68k
3040 mips*-*-*)
3041 cpu_type=mips
3043 powerpc*-*-*)
3044 cpu_type=rs6000
3046 pyramid-*-*)
3047 cpu_type=pyr
3049 sparc*-*-*)
3050 cpu_type=sparc
3052 esac
3054 tm_file=${cpu_type}/${cpu_type}.h
3055 xm_file=${cpu_type}/xm-${cpu_type}.h
3056 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3057 then
3058 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3060 # On a.out targets, we need to use collect2.
3061 case $machine in
3062 *-*-*aout*)
3063 use_collect2=yes
3065 esac
3067 # Common parts for linux-gnu and openbsd systems
3068 case $machine in
3069 *-*-linux-gnu*)
3070 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3072 *-*-openbsd*)
3073 tm_file=${cpu_type}/openbsd.h
3074 tmake_file="t-libc-ok t-openbsd"
3075 # avoid surprises, always provide an xm-openbsd file
3076 xm_file=${cpu_type}/xm-openbsd.h
3077 # don't depend on processor x-fragments as well
3078 xmake_file=none
3079 if test x$enable_threads = xyes; then
3080 thread_file='posix'
3081 tmake_file="${tmake_file} t-openbsd-thread"
3084 esac
3086 case $machine in
3087 # Support site-specific machine types.
3088 *local*)
3089 cpu_type=`echo $machine | sed -e 's/-.*//'`
3090 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3091 xm_file=${cpu_type}/xm-$rest.h
3092 tm_file=${cpu_type}/$rest.h
3093 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3094 then xmake_file=${cpu_type}/x-$rest; \
3095 else true; \
3097 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3098 then tmake_file=${cpu_type}/t-$rest; \
3099 else true; \
3102 1750a-*-*)
3104 a29k-*-bsd* | a29k-*-sym1*)
3105 tm_file="${tm_file} a29k/unix.h"
3106 xm_defines=USG
3107 xmake_file=a29k/x-unix
3108 use_collect2=yes
3110 a29k-*-udi | a29k-*-coff)
3111 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3112 tmake_file=a29k/t-a29kbare
3114 a29k-wrs-vxworks*)
3115 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3116 tmake_file=a29k/t-vx29k
3117 extra_parts="crtbegin.o crtend.o"
3118 thread_file='vxworks'
3120 a29k-*-*) # Default a29k environment.
3121 use_collect2=yes
3123 alpha-*-interix)
3124 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3126 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3127 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3129 # GAS + IEEE_CONFORMANT
3130 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3132 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3133 xmake_file="x-interix alpha/t-pe"
3134 tmake_file="alpha/t-interix alpha/t-ieee"
3135 if test x$enable_threads = xyes ; then
3136 thread_file='posix'
3138 if test x$stabs = xyes ; then
3139 tm_file="${tm_file} dbxcoff.h"
3141 #prefix='$$INTERIX_ROOT'/usr/contrib
3142 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3144 alpha*-*-linux-gnuecoff*)
3145 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3146 target_cpu_default="MASK_GAS"
3147 tmake_file="alpha/t-ieee"
3148 gas=no
3149 xmake_file=none
3150 gas=yes gnu_ld=yes
3152 alpha*-*-linux-gnulibc1*)
3153 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3154 target_cpu_default="MASK_GAS"
3155 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3156 extra_parts="crtbegin.o crtend.o"
3157 xmake_file=none
3158 gas=yes gnu_ld=yes
3159 if test x$enable_threads = xyes; then
3160 thread_file='posix'
3163 alpha*-*-linux-gnu*)
3164 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3165 target_cpu_default="MASK_GAS"
3166 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3167 extra_parts="crtbegin.o crtend.o"
3168 xmake_file=none
3169 gas=yes gnu_ld=yes
3170 if test x$enable_threads = xyes; then
3171 thread_file='posix'
3174 alpha*-*-netbsd*)
3175 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3176 target_cpu_default="MASK_GAS"
3177 tmake_file="alpha/t-crtbe alpha/t-ieee"
3178 extra_parts="crtbegin.o crtend.o"
3179 xmake_file=none
3180 gas=yes gnu_ld=yes
3183 alpha*-*-openbsd*)
3184 # default x-alpha is only appropriate for dec-osf.
3185 target_cpu_default="MASK_GAS"
3186 tmake_file="alpha/t-ieee"
3189 alpha*-dec-osf*)
3190 if test x$stabs = xyes
3191 then
3192 tm_file="${tm_file} dbx.h"
3194 if test x$gas != xyes
3195 then
3196 extra_passes="mips-tfile mips-tdump"
3198 use_collect2=yes
3199 tmake_file="alpha/t-ieee"
3200 case $machine in
3201 *-*-osf1*)
3202 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3204 *-*-osf[23]*)
3205 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3207 *-*-osf4*)
3208 tm_file="${tm_file} alpha/osf.h"
3209 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3210 # a broken tar, so we use cpio instead.
3211 install_headers_dir=install-headers-cpio
3213 *-*-osf5*)
3214 tm_file="${tm_file} alpha/osf.h"
3216 esac
3217 case $machine in
3218 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3219 target_cpu_default=MASK_SUPPORT_ARCH
3221 esac
3223 alpha*-*-vxworks*)
3224 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3225 tmake_file="alpha/t-ieee"
3226 if x$gas != xyes
3227 then
3228 extra_passes="mips-tfile mips-tdump"
3230 use_collect2=yes
3231 thread_file='vxworks'
3233 alpha*-*-winnt*)
3234 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3235 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3236 tmake_file="t-libc-ok alpha/t-ieee"
3237 xmake_file=winnt/x-winnt
3238 extra_host_objs=oldnames.o
3239 extra_gcc_objs="spawnv.o oldnames.o"
3240 if test x$gnu_ld != xyes
3241 then
3242 extra_programs=ld.exe
3244 if test x$enable_threads = xyes; then
3245 thread_file='win32'
3248 alpha*-dec-vms*)
3249 tm_file=alpha/vms.h
3250 xm_file="${xm_file} alpha/xm-vms.h"
3251 tmake_file="alpha/t-vms alpha/t-ieee"
3253 arc-*-elf*)
3254 extra_parts="crtinit.o crtfini.o"
3256 arm-*-coff* | armel-*-coff*)
3257 tm_file=arm/coff.h
3258 tmake_file=arm/t-bare
3260 arm-*-vxworks*)
3261 tm_file=arm/vxarm.h
3262 tmake_file=arm/t-bare
3263 thread_file='vxworks'
3265 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3266 tm_file=arm/riscix1-1.h
3267 use_collect2=yes
3269 arm-*-riscix*) # Acorn RISC machine
3270 if test x$gas = xyes
3271 then
3272 tm_file=arm/rix-gas.h
3273 else
3274 tm_file=arm/riscix.h
3276 xmake_file=arm/x-riscix
3277 tmake_file=arm/t-riscix
3278 use_collect2=yes
3280 arm-semi-aout | armel-semi-aout)
3281 tm_file=arm/semi.h
3282 tmake_file=arm/t-semi
3284 arm-semi-aof | armel-semi-aof)
3285 tm_file=arm/semiaof.h
3286 tmake_file=arm/t-semiaof
3288 arm*-*-netbsd*)
3289 tm_file=arm/netbsd.h
3290 xm_file="arm/xm-netbsd.h ${xm_file}"
3291 tmake_file="t-netbsd arm/t-netbsd"
3292 use_collect2=yes
3294 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3295 cpu_type=arm
3296 xmake_file=x-linux
3297 tm_file=arm/linux-aout.h
3298 tmake_file=arm/t-linux
3299 gnu_ld=yes
3301 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3302 xm_file=arm/xm-linux.h
3303 xmake_file=x-linux
3304 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3305 case $machine in
3306 armv2*-*-*)
3307 tm_file="arm/linux-elf26.h $tm_file"
3309 esac
3310 tmake_file="t-linux arm/t-linux"
3311 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3312 gnu_ld=yes
3313 case x${enable_threads} in
3314 x | xyes | xpthreads | xposix)
3315 thread_file='posix'
3317 esac
3319 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3320 xm_file=arm/xm-linux.h
3321 xmake_file=x-linux
3322 tm_file="arm/linux-elf.h"
3323 case $machine in
3324 armv2*-*-*)
3325 tm_file="arm/linux-elf26.h $tm_file"
3327 esac
3328 tmake_file="t-linux arm/t-linux"
3329 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3330 gnu_ld=yes
3331 case x${enable_threads} in
3332 x | xyes | xpthreads | xposix)
3333 thread_file='posix'
3335 esac
3337 arm*-*-uclinux*) # ARM ucLinux
3338 tm_file=arm/uclinux-elf.h
3339 tmake_file=arm/t-arm-elf
3341 arm*-*-aout)
3342 tm_file=arm/aout.h
3343 tmake_file=arm/t-bare
3345 arm*-*-ecos-elf)
3346 tm_file=arm/ecos-elf.h
3347 tmake_file=arm/t-elf
3349 arm*-*-elf)
3350 tm_file=arm/unknown-elf.h
3351 tmake_file=arm/t-arm-elf
3353 arm*-*-oabi)
3354 tm_file=arm/unknown-elf-oabi.h
3355 tmake_file=arm/t-arm-elf
3357 arm-*-pe*)
3358 tm_file=arm/pe.h
3359 tmake_file=arm/t-pe
3360 extra_objs=pe.o
3362 c1-convex-*) # Convex C1
3363 target_cpu_default=1
3364 use_collect2=yes
3366 c2-convex-*) # Convex C2
3367 target_cpu_default=2
3368 use_collect2=yes
3370 c32-convex-*)
3371 target_cpu_default=4
3372 use_collect2=yes
3374 c34-convex-*)
3375 target_cpu_default=8
3376 use_collect2=yes
3378 c38-convex-*)
3379 target_cpu_default=16
3380 use_collect2=yes
3382 c4x-*)
3383 cpu_type=c4x
3384 tmake_file=c4x/t-c4x
3386 clipper-intergraph-clix*)
3387 tm_file="${tm_file} svr3.h clipper/clix.h"
3388 xm_file=clipper/xm-clix.h
3389 xmake_file=clipper/x-clix
3390 extra_headers=va-clipper.h
3391 extra_parts="crtbegin.o crtend.o"
3392 install_headers_dir=install-headers-cpio
3394 dsp16xx-*)
3396 elxsi-elxsi-*)
3397 use_collect2=yes
3399 fr30-*-elf)
3400 tm_file="fr30/fr30.h"
3401 tmake_file=fr30/t-fr30
3402 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3404 # This hasn't been upgraded to GCC 2.
3405 # fx80-alliant-*) # Alliant FX/80
3406 # ;;
3407 h8300-*-*)
3408 float_format=i32
3410 hppa*-*-linux*)
3411 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3412 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3413 tmake_file="t-linux pa/t-linux"
3414 extra_parts="crtbegin.o crtend.o"
3415 xmake_file=none
3416 gas=yes gnu_ld=yes
3417 if test x$enable_threads = xyes; then
3418 thread_file='posix'
3421 hppa*-*-openbsd*)
3422 target_cpu_default="MASK_PA_11"
3423 tmake_file=pa/t-openbsd
3425 hppa1.1-*-pro*)
3426 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3427 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3428 xm_file=pa/xm-papro.h
3429 tmake_file=pa/t-pro
3431 hppa1.1-*-osf*)
3432 target_cpu_default="MASK_PA_11"
3433 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3434 use_collect2=yes
3436 hppa1.1-*-rtems*)
3437 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3438 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3439 xm_file=pa/xm-papro.h
3440 tmake_file=pa/t-pro
3442 hppa1.0-*-osf*)
3443 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3444 use_collect2=yes
3446 hppa1.1-*-bsd*)
3447 tm_file="${tm_file} pa/som.h"
3448 target_cpu_default="MASK_PA_11"
3449 use_collect2=yes
3451 hppa1.0-*-bsd*)
3452 tm_file="${tm_file} pa/som.h"
3453 use_collect2=yes
3455 hppa1.0-*-hpux7*)
3456 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3457 xm_file=pa/xm-pahpux.h
3458 xmake_file=pa/x-pa-hpux
3459 if test x$gas = xyes
3460 then
3461 tm_file="${tm_file} pa/gas.h"
3463 install_headers_dir=install-headers-cpio
3464 use_collect2=yes
3466 hppa1.0-*-hpux8.0[0-2]*)
3467 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3468 xm_file=pa/xm-pahpux.h
3469 xmake_file=pa/x-pa-hpux
3470 if test x$gas = xyes
3471 then
3472 tm_file="${tm_file} pa/pa-gas.h"
3473 else
3474 tm_file="pa/pa-oldas.h ${tm_file}"
3476 install_headers_dir=install-headers-cpio
3477 use_collect2=yes
3479 hppa1.1-*-hpux8.0[0-2]*)
3480 target_cpu_default="MASK_PA_11"
3481 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3482 xm_file=pa/xm-pahpux.h
3483 xmake_file=pa/x-pa-hpux
3484 if test x$gas = xyes
3485 then
3486 tm_file="${tm_file} pa/pa-gas.h"
3487 else
3488 tm_file="pa/pa-oldas.h ${tm_file}"
3490 install_headers_dir=install-headers-cpio
3491 use_collect2=yes
3493 hppa1.1-*-hpux8*)
3494 target_cpu_default="MASK_PA_11"
3495 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3496 xm_file=pa/xm-pahpux.h
3497 xmake_file=pa/x-pa-hpux
3498 if test x$gas = xyes
3499 then
3500 tm_file="${tm_file} pa/pa-gas.h"
3502 install_headers_dir=install-headers-cpio
3503 use_collect2=yes
3505 hppa1.0-*-hpux8*)
3506 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3507 xm_file=pa/xm-pahpux.h
3508 xmake_file=pa/x-pa-hpux
3509 if test x$gas = xyes
3510 then
3511 tm_file="${tm_file} pa/pa-gas.h"
3513 install_headers_dir=install-headers-cpio
3514 use_collect2=yes
3516 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3517 target_cpu_default="MASK_PA_11"
3518 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3519 xm_file=pa/xm-pahpux.h
3520 xmake_file=pa/x-pa-hpux
3521 tmake_file=pa/t-pa
3522 if test x$gas = xyes
3523 then
3524 tm_file="${tm_file} pa/pa-gas.h"
3526 if test x$enable_threads = x; then
3527 enable_threads=$have_pthread_h
3529 if test x$enable_threads = xyes; then
3530 thread_file='dce'
3531 tmake_file="${tmake_file} pa/t-dce-thr"
3533 install_headers_dir=install-headers-cpio
3534 use_collect2=yes
3536 hppa1.0-*-hpux10*)
3537 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3538 xm_file=pa/xm-pahpux.h
3539 xmake_file=pa/x-pa-hpux
3540 tmake_file=pa/t-pa
3541 if test x$gas = xyes
3542 then
3543 tm_file="${tm_file} pa/pa-gas.h"
3545 if test x$enable_threads = x; then
3546 enable_threads=$have_pthread_h
3548 if test x$enable_threads = xyes; then
3549 thread_file='dce'
3550 tmake_file="${tmake_file} pa/t-dce-thr"
3552 install_headers_dir=install-headers-cpio
3553 use_collect2=yes
3555 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3556 target_cpu_default="MASK_PA_11"
3557 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3558 xm_file=pa/xm-pahpux.h
3559 xmake_file=pa/x-pa-hpux
3560 tmake_file=pa/t-pa
3561 if [ x$gas = xyes ]
3562 then
3563 tm_file="${tm_file} pa/pa-gas.h"
3565 # if [[ x$enable_threads = x ]]; then
3566 # enable_threads=$have_pthread_h
3567 # fi
3568 # if [[ x$enable_threads = xyes ]]; then
3569 # thread_file='dce'
3570 # tmake_file="${tmake_file} pa/t-dce-thr"
3571 # fi
3572 install_headers_dir=install-headers-cpio
3573 use_collect2=yes
3575 hppa1.0-*-hpux11*)
3576 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3577 xm_file=pa/xm-pahpux.h
3578 xmake_file=pa/x-pa-hpux
3579 if [ x$gas = xyes ]
3580 then
3581 tm_file="${tm_file} pa/pa-gas.h"
3583 # if [[ x$enable_threads = x ]]; then
3584 # enable_threads=$have_pthread_h
3585 # fi
3586 # if [[ x$enable_threads = xyes ]]; then
3587 # thread_file='dce'
3588 # tmake_file="${tmake_file} pa/t-dce-thr"
3589 # fi
3590 install_headers_dir=install-headers-cpio
3591 use_collect2=yes
3593 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3594 target_cpu_default="MASK_PA_11"
3595 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3596 xm_file=pa/xm-pahpux.h
3597 xmake_file=pa/x-pa-hpux
3598 if test x$gas = xyes
3599 then
3600 tm_file="${tm_file} pa/pa-gas.h"
3602 install_headers_dir=install-headers-cpio
3603 use_collect2=yes
3605 hppa1.0-*-hpux*)
3606 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3607 xm_file=pa/xm-pahpux.h
3608 xmake_file=pa/x-pa-hpux
3609 if test x$gas = xyes
3610 then
3611 tm_file="${tm_file} pa/pa-gas.h"
3613 install_headers_dir=install-headers-cpio
3614 use_collect2=yes
3616 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3617 target_cpu_default="MASK_PA_11"
3618 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3619 xm_file=pa/xm-pahpux.h
3620 xmake_file=pa/x-pa-hpux
3621 if test x$gas = xyes
3622 then
3623 tm_file="${tm_file} pa/pa-gas.h"
3625 install_headers_dir=install-headers-cpio
3626 use_collect2=yes
3628 hppa1.0-*-hiux*)
3629 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3630 xm_file=pa/xm-pahpux.h
3631 xmake_file=pa/x-pa-hpux
3632 if test x$gas = xyes
3633 then
3634 tm_file="${tm_file} pa/pa-gas.h"
3636 install_headers_dir=install-headers-cpio
3637 use_collect2=yes
3639 hppa*-*-lites*)
3640 tm_file="${tm_file} elfos.h pa/elf.h"
3641 target_cpu_default="MASK_PA_11"
3642 use_collect2=yes
3644 hppa*-*-mpeix*)
3645 tm_file="${tm_file} pa/pa-mpeix.h"
3646 xm_file=pa/xm-pampeix.h
3647 xmake_file=pa/x-pa-mpeix
3648 echo "You must use gas. Assuming it is already installed."
3649 install_headers_dir=install-headers-tar
3650 fixincludes=Makefile.in
3651 use_collect2=yes
3653 i370-*-opened*) # IBM 360/370/390 Architecture
3654 xm_file=i370/xm-oe.h
3655 tm_file=i370/oe.h
3656 xmake_file=i370/x-oe
3657 tmake_file=i370/t-oe
3658 fixincludes=Makefile.in # Headers are wierd, don't mess with
3660 i370-*-mvs*)
3661 xm_file=i370/xm-mvs.h
3662 tm_file=i370/mvs.h
3663 tmake_file=i370/t-mvs
3664 fixincludes=Makefile.in # Headers are wierd, don't mess with
3666 i370-*-linux*)
3667 xm_file="xm-linux.h i370/xm-linux.h"
3668 xmake_file=x-linux
3669 tm_file="i370/linux.h ${tm_file}"
3670 tmake_file="t-linux i370/t-linux"
3671 fixincludes=Makefile.in # The headers are ok already.
3672 # broken_install=yes
3673 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3674 # extra_parts="crtbegin.o crtend.o"
3675 gnu_ld=yes
3676 gas=yes
3677 elf=yes
3678 if [ x$enable_threads = xyes ]; then
3679 thread_file='posix'
3682 i[34567]86-*-elf*)
3683 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3684 tm_file=i386/i386elf.h
3685 tmake_file=i386/t-i386elf
3686 xmake_file=x-svr4
3688 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3689 if test x$gas = xyes
3690 then
3691 tm_file=i386/aix386.h
3692 extra_parts="crtbegin.o crtend.o"
3693 tmake_file=i386/t-crtstuff
3694 else
3695 tm_file=i386/aix386ng.h
3696 use_collect2=yes
3698 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3699 xm_defines=USG
3700 xmake_file=i386/x-aix
3702 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3703 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3704 xm_defines="USG POSIX SMALL_ARG_MAX"
3705 xmake_file=i386/x-ncr3000
3706 if test x$stabs = xyes -a x$gas = xyes
3707 then
3708 tm_file=i386/sysv4gdb.h
3709 else
3710 tm_file=i386/sysv4.h
3712 extra_parts="crtbegin.o crtend.o"
3713 tmake_file=i386/t-crtpic
3715 i[34567]86-next-*)
3716 tm_file=i386/next.h
3717 xm_file=i386/xm-next.h
3718 tmake_file=i386/t-next
3719 xmake_file=i386/x-next
3720 extra_objs=nextstep.o
3721 extra_parts="crtbegin.o crtend.o"
3722 if test x$enable_threads = xyes; then
3723 thread_file='mach'
3726 i[34567]86-sequent-bsd*) # 80386 from Sequent
3727 use_collect2=yes
3728 if test x$gas = xyes
3729 then
3730 tm_file=i386/seq-gas.h
3731 else
3732 tm_file=i386/sequent.h
3735 i[34567]86-sequent-ptx1*)
3736 xm_defines="USG SVR3"
3737 xmake_file=i386/x-sysv3
3738 tm_file=i386/seq-sysv3.h
3739 tmake_file=i386/t-crtstuff
3740 extra_parts="crtbegin.o crtend.o"
3741 install_headers_dir=install-headers-cpio
3743 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3744 xm_defines="USG SVR3"
3745 xmake_file=i386/x-sysv3
3746 tm_file=i386/seq2-sysv3.h
3747 tmake_file=i386/t-crtstuff
3748 extra_parts="crtbegin.o crtend.o"
3749 install_headers_dir=install-headers-cpio
3751 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3752 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3753 xm_defines="USG POSIX SMALL_ARG_MAX"
3754 xmake_file=x-svr4
3755 tm_file=i386/ptx4-i.h
3756 tmake_file=t-svr4
3757 extra_parts="crtbegin.o crtend.o"
3758 install_headers_dir=install-headers-cpio
3760 i386-sun-sunos*) # Sun i386 roadrunner
3761 xm_defines=USG
3762 tm_file=i386/sun.h
3763 use_collect2=yes
3765 i[34567]86-wrs-vxworks*)
3766 tm_file=i386/vxi386.h
3767 tmake_file=i386/t-i386bare
3768 thread_file='vxworks'
3770 i[34567]86-*-aout*)
3771 tm_file=i386/i386-aout.h
3772 tmake_file=i386/t-i386bare
3774 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3775 tm_file=i386/bsd386.h
3776 # tmake_file=t-libc-ok
3778 i[34567]86-*-bsd*)
3779 tm_file=i386/386bsd.h
3780 # tmake_file=t-libc-ok
3781 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3782 # use_collect2=yes
3784 i[34567]86-*-freebsdelf*)
3785 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3786 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3787 tmake_file=t-freebsd
3788 gas=yes
3789 gnu_ld=yes
3790 stabs=yes
3791 case x${enable_threads} in
3792 xyes | xpthreads | xposix)
3793 thread_file='posix'
3794 tmake_file="${tmake_file} t-openbsd-thread"
3796 esac
3798 i[34567]86-*-freebsd*)
3799 tm_file=i386/freebsd.h
3800 tmake_file=t-freebsd
3802 i[34567]86-*-netbsd*)
3803 tm_file=i386/netbsd.h
3804 tmake_file=t-netbsd
3805 use_collect2=yes
3807 i[34567]86-*-openbsd*)
3808 # we need collect2 until our bug is fixed...
3809 use_collect2=yes
3811 i[34567]86-*-coff*)
3812 tm_file=i386/i386-coff.h
3813 tmake_file=i386/t-i386bare
3815 i[34567]86-*-isc*) # 80386 running ISC system
3816 xm_file="${xm_file} i386/xm-isc.h"
3817 xm_defines="USG SVR3"
3818 case $machine in
3819 i[34567]86-*-isc[34]*)
3820 xmake_file=i386/x-isc3
3823 xmake_file=i386/x-isc
3825 esac
3826 if test x$gas = xyes -a x$stabs = xyes
3827 then
3828 tm_file=i386/iscdbx.h
3829 tmake_file=i386/t-svr3dbx
3830 extra_parts="svr3.ifile svr3z.ifile"
3831 else
3832 tm_file=i386/isccoff.h
3833 tmake_file=i386/t-crtstuff
3834 extra_parts="crtbegin.o crtend.o"
3836 install_headers_dir=install-headers-cpio
3838 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3839 # pre BFD linkers
3840 xmake_file=x-linux-aout
3841 tmake_file="t-linux-aout i386/t-crtstuff"
3842 tm_file=i386/linux-oldld.h
3843 gnu_ld=yes
3844 float_format=i386
3846 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3847 xmake_file=x-linux-aout
3848 tmake_file="t-linux-aout i386/t-crtstuff"
3849 tm_file=i386/linux-aout.h
3850 gnu_ld=yes
3851 float_format=i386
3853 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3854 # GNU/Linux C library 5
3855 xmake_file=x-linux
3856 tm_file=i386/linux.h
3857 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3858 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3859 gnu_ld=yes
3860 float_format=i386
3861 if test x$enable_threads = xyes; then
3862 thread_file='single'
3865 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3866 # aka GNU/Linux C library 6
3867 xmake_file=x-linux
3868 tm_file=i386/linux.h
3869 tmake_file="t-linux i386/t-crtstuff"
3870 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3871 gnu_ld=yes
3872 float_format=i386
3873 if test x$enable_threads = xyes; then
3874 thread_file='posix'
3877 i[34567]86-*-gnu*)
3878 float_format=i386
3880 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3881 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3882 exit 1
3884 i[34567]86-pc-msdosdjgpp*)
3885 xm_file=i386/xm-djgpp.h
3886 tm_file=i386/djgpp.h
3887 tmake_file=i386/t-djgpp
3888 xmake_file=i386/x-djgpp
3889 gnu_ld=yes
3890 gas=yes
3891 exeext=.exe
3892 case $host in *pc-msdosdjgpp*)
3893 target_alias=djgpp
3895 esac
3897 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3898 tm_file=i386/moss.h
3899 tmake_file=t-libc-ok
3900 gnu_ld=yes
3901 gas=yes
3903 i[34567]86-*-lynxos*)
3904 if test x$gas = xyes
3905 then
3906 tm_file=i386/lynx.h
3907 else
3908 tm_file=i386/lynx-ng.h
3910 xm_file=i386/xm-lynx.h
3911 tmake_file=i386/t-i386bare
3912 xmake_file=x-lynx
3914 i[34567]86-*-mach*)
3915 tm_file=i386/mach.h
3916 # tmake_file=t-libc-ok
3917 use_collect2=yes
3919 i[34567]86-*-osfrose*) # 386 using OSF/rose
3920 if test x$elf = xyes
3921 then
3922 tm_file=i386/osfelf.h
3923 use_collect2=
3924 else
3925 tm_file=i386/osfrose.h
3926 use_collect2=yes
3928 xm_file="i386/xm-osf.h ${xm_file}"
3929 xmake_file=i386/x-osfrose
3930 tmake_file=i386/t-osf
3931 extra_objs=halfpic.o
3933 i[34567]86-go32-rtems*)
3934 cpu_type=i386
3935 xm_file=i386/xm-go32.h
3936 tm_file=i386/go32-rtems.h
3937 tmake_file="i386/t-go32 t-rtems"
3939 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
3940 cpu_type=i386
3941 tm_file=i386/rtemself.h
3942 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
3943 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
3945 i[34567]86-*-rtemscoff*)
3946 cpu_type=i386
3947 tm_file=i386/rtems.h
3948 tmake_file="i386/t-i386bare t-rtems"
3950 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3951 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3952 xm_defines="USG SVR3"
3953 xmake_file=i386/x-sco5
3954 install_headers_dir=install-headers-cpio
3955 tm_file=i386/sco5.h
3956 if test x$gas = xyes
3957 then
3958 tm_file="i386/sco5gas.h ${tm_file}"
3959 tmake_file=i386/t-sco5gas
3960 else
3961 tmake_file=i386/t-sco5
3963 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3965 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3966 xm_file="${xm_file} i386/xm-sco.h"
3967 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3968 xmake_file=i386/x-sco4
3969 install_headers_dir=install-headers-cpio
3970 if test x$stabs = xyes
3971 then
3972 tm_file=i386/sco4dbx.h
3973 tmake_file=i386/t-svr3dbx
3974 extra_parts="svr3.ifile svr3z.rfile"
3975 else
3976 tm_file=i386/sco4.h
3977 tmake_file=i386/t-crtstuff
3978 extra_parts="crtbegin.o crtend.o"
3980 # The default EAFS filesystem supports long file names.
3981 # Truncating the target makes $host != $target which
3982 # makes gcc think it is doing a cross-compile.
3983 # truncate_target=yes
3985 i[34567]86-*-sco*) # 80386 running SCO system
3986 xm_file=i386/xm-sco.h
3987 xmake_file=i386/x-sco
3988 install_headers_dir=install-headers-cpio
3989 if test x$stabs = xyes
3990 then
3991 tm_file=i386/scodbx.h
3992 tmake_file=i386/t-svr3dbx
3993 extra_parts="svr3.ifile svr3z.rfile"
3994 else
3995 tm_file=i386/sco.h
3996 extra_parts="crtbegin.o crtend.o"
3997 tmake_file=i386/t-crtstuff
3999 truncate_target=yes
4001 i[34567]86-*-solaris2*)
4002 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
4003 xm_defines="USG POSIX SMALL_ARG_MAX"
4004 tm_file=i386/sol2.h
4005 if test x$gas = xyes; then
4006 # Only needed if gas does not support -s
4007 tm_file="i386/sol2gas.h ${tm_file}"
4009 tmake_file=i386/t-sol2
4010 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4011 xmake_file=x-svr4
4012 if test x${enable_threads} = x; then
4013 enable_threads=$have_pthread_h
4014 if test x${enable_threads} = x; then
4015 enable_threads=$have_thread_h
4018 if test x${enable_threads} = xyes; then
4019 if test x${have_pthread_h} = xyes; then
4020 thread_file='posix'
4021 else
4022 thread_file='solaris'
4026 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4027 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4028 xm_defines="USG POSIX"
4029 tm_file=i386/sysv5.h
4030 if test x$stabs = xyes
4031 then
4032 tm_file="${tm_file} dbx.h"
4034 tmake_file=i386/t-crtpic
4035 xmake_file=x-svr4
4036 extra_parts="crtbegin.o crtend.o"
4037 if test x$enable_threads = xyes; then
4038 thread_file='posix'
4041 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4042 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
4043 xm_defines="USG POSIX SMALL_ARG_MAX"
4044 tm_file=i386/sysv4.h
4045 if test x$stabs = xyes
4046 then
4047 tm_file="${tm_file} dbx.h"
4049 tmake_file=i386/t-crtpic
4050 xmake_file=x-svr4
4051 extra_parts="crtbegin.o crtend.o"
4053 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4054 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4055 xm_defines="USG POSIX"
4056 tm_file=i386/udk.h
4057 tmake_file="i386/t-crtpic i386/t-udk"
4058 xmake_file=x-svr4
4059 extra_parts="crtbegin.o crtend.o"
4060 install_headers_dir=install-headers-cpio
4062 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4063 cpu_type=i386
4064 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4065 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4066 if test x$stabs = xyes
4067 then
4068 tm_file=i386/osf1elfgdb.h
4069 else
4070 tm_file=i386/osf1elf.h
4072 tmake_file=i386/t-osf1elf
4073 xmake_file=i386/x-osf1elf
4074 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4076 i[34567]86-*-sysv*) # Intel 80386's running system V
4077 xm_defines="USG SVR3"
4078 xmake_file=i386/x-sysv3
4079 if test x$gas = xyes
4080 then
4081 if test x$stabs = xyes
4082 then
4083 tm_file=i386/svr3dbx.h
4084 tmake_file=i386/t-svr3dbx
4085 extra_parts="svr3.ifile svr3z.rfile"
4086 else
4087 tm_file=i386/svr3gas.h
4088 extra_parts="crtbegin.o crtend.o"
4089 tmake_file=i386/t-crtstuff
4091 else
4092 tm_file=i386/sysv3.h
4093 extra_parts="crtbegin.o crtend.o"
4094 tmake_file=i386/t-crtstuff
4097 i386-*-vsta) # Intel 80386's running VSTa kernel
4098 xm_file="${xm_file} i386/xm-vsta.h"
4099 tm_file=i386/vsta.h
4100 tmake_file=i386/t-vsta
4101 xmake_file=i386/x-vsta
4103 i[34567]86-*-win32)
4104 xm_file="${xm_file} i386/xm-cygwin.h"
4105 tmake_file=i386/t-cygwin
4106 tm_file=i386/win32.h
4107 xmake_file=i386/x-cygwin
4108 extra_objs=winnt.o
4109 if test x$enable_threads = xyes; then
4110 thread_file='win32'
4112 exeext=.exe
4114 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4115 xm_file="${xm_file} i386/xm-cygwin.h"
4116 tmake_file=i386/t-cygwin
4117 tm_file=i386/cygwin.h
4118 xmake_file=i386/x-cygwin
4119 extra_objs=winnt.o
4120 if test x$enable_threads = xyes; then
4121 thread_file='win32'
4123 exeext=.exe
4125 i[34567]86-*-mingw32*)
4126 tm_file=i386/mingw32.h
4127 xm_file="${xm_file} i386/xm-mingw32.h"
4128 tmake_file="i386/t-cygwin i386/t-mingw32"
4129 extra_objs=winnt.o
4130 xmake_file=i386/x-cygwin
4131 if test x$enable_threads = xyes; then
4132 thread_file='win32'
4134 exeext=.exe
4135 case $machine in
4136 *mingw32msv*)
4138 *minwg32crt* | *mingw32*)
4139 tm_file="${tm_file} i386/crtdll.h"
4141 esac
4143 i[34567]86-*-uwin*)
4144 tm_file=i386/uwin.h
4145 xm_file="${xm_file} i386/xm-uwin.h"
4146 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
4147 tmake_file="i386/t-cygwin i386/t-uwin"
4148 extra_objs=winnt.o
4149 xmake_file=i386/x-cygwin
4150 if test x$enable_threads = xyes; then
4151 thread_file='win32'
4153 exeext=.exe
4155 i[34567]86-*-interix*)
4156 tm_file="i386/i386-interix.h interix.h"
4157 xm_file="i386/xm-i386-interix.h xm-interix.h"
4158 xm_defines="USG NO_SYS_SIGLIST"
4159 tmake_file="i386/t-interix"
4160 extra_objs=interix.o
4161 xmake_file=x-interix
4162 if test x$enable_threads = xyes ; then
4163 thread_file='posix'
4165 if test x$stabs = xyes ; then
4166 tm_file="${tm_file} dbxcoff.h"
4169 i[34567]86-*-winnt3*)
4170 tm_file=i386/win-nt.h
4171 out_file=i386/i386.c
4172 xm_file="xm-winnt.h ${xm_file}"
4173 xmake_file=winnt/x-winnt
4174 tmake_file=i386/t-winnt
4175 extra_host_objs="winnt.o oldnames.o"
4176 extra_gcc_objs="spawnv.o oldnames.o"
4177 if test x$gnu_ld != xyes
4178 then
4179 extra_programs=ld.exe
4181 if test x$enable_threads = xyes; then
4182 thread_file='win32'
4185 i[34567]86-dg-dgux*)
4186 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4187 xm_defines="USG POSIX"
4188 out_file=i386/dgux.c
4189 tm_file=i386/dgux.h
4190 tmake_file=i386/t-dgux
4191 xmake_file=i386/x-dgux
4192 install_headers_dir=install-headers-cpio
4194 i860-alliant-*) # Alliant FX/2800
4195 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4196 xm_file="${xm_file}"
4197 xmake_file=i860/x-fx2800
4198 tmake_file=i860/t-fx2800
4199 extra_parts="crtbegin.o crtend.o"
4201 i860-*-bsd*)
4202 tm_file="${tm_file} i860/bsd.h"
4203 if test x$gas = xyes
4204 then
4205 tm_file="${tm_file} i860/bsd-gas.h"
4207 use_collect2=yes
4209 i860-*-mach*)
4210 tm_file="${tm_file} i860/mach.h"
4211 tmake_file=t-libc-ok
4213 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4214 tm_file="${tm_file} svr3.h i860/paragon.h"
4215 xm_defines="USG SVR3"
4216 tmake_file=t-osf
4218 i860-*-sysv3*)
4219 tm_file="${tm_file} svr3.h i860/sysv3.h"
4220 xm_defines="USG SVR3"
4221 xmake_file=i860/x-sysv3
4222 extra_parts="crtbegin.o crtend.o"
4224 i860-*-sysv4*)
4225 tm_file="${tm_file} svr4.h i860/sysv4.h"
4226 xm_defines="USG SVR3"
4227 xmake_file=i860/x-sysv4
4228 tmake_file=t-svr4
4229 extra_parts="crtbegin.o crtend.o"
4231 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4232 tm_file="${tm_file} i960/vx960.h"
4233 tmake_file=i960/t-vxworks960
4234 use_collect2=yes
4235 thread_file='vxworks'
4237 i960-wrs-vxworks5* | i960-wrs-vxworks)
4238 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4239 tmake_file=i960/t-vxworks960
4240 use_collect2=yes
4241 thread_file='vxworks'
4243 i960-wrs-vxworks*)
4244 tm_file="${tm_file} i960/vx960.h"
4245 tmake_file=i960/t-vxworks960
4246 use_collect2=yes
4247 thread_file='vxworks'
4249 i960-*-coff*)
4250 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4251 tmake_file=i960/t-960bare
4252 use_collect2=yes
4254 i960-*-rtems)
4255 tmake_file="i960/t-960bare t-rtems"
4256 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4257 use_collect2=yes
4259 i960-*-*) # Default i960 environment.
4260 use_collect2=yes
4262 m32r-*-elf*)
4263 extra_parts="crtinit.o crtfini.o"
4265 m68000-convergent-sysv*)
4266 tm_file=m68k/ctix.h
4267 xm_file="m68k/xm-3b1.h ${xm_file}"
4268 xm_defines=USG
4269 use_collect2=yes
4270 extra_headers=math-68881.h
4272 m68000-hp-bsd*) # HP 9000/200 running BSD
4273 tm_file=m68k/hp2bsd.h
4274 xmake_file=m68k/x-hp2bsd
4275 use_collect2=yes
4276 extra_headers=math-68881.h
4278 m68000-hp-hpux*) # HP 9000 series 300
4279 xm_file="xm_alloca.h ${xm_file}"
4280 xm_defines="USG NO_SYS_SIGLIST"
4281 if test x$gas = xyes
4282 then
4283 xmake_file=m68k/x-hp320g
4284 tm_file=m68k/hp310g.h
4285 else
4286 xmake_file=m68k/x-hp320
4287 tm_file=m68k/hp310.h
4289 install_headers_dir=install-headers-cpio
4290 use_collect2=yes
4291 extra_headers=math-68881.h
4293 m68000-sun-sunos3*)
4294 tm_file=m68k/sun2.h
4295 use_collect2=yes
4296 extra_headers=math-68881.h
4298 m68000-sun-sunos4*)
4299 tm_file=m68k/sun2o4.h
4300 use_collect2=yes
4301 extra_headers=math-68881.h
4303 m68000-att-sysv*)
4304 xm_file="m68k/xm-3b1.h ${xm_file}"
4305 xm_defines=USG
4306 if test x$gas = xyes
4307 then
4308 tm_file=m68k/3b1g.h
4309 else
4310 tm_file=m68k/3b1.h
4312 use_collect2=yes
4313 extra_headers=math-68881.h
4315 m68k-apple-aux*) # Apple Macintosh running A/UX
4316 xm_defines="USG AUX"
4317 tmake_file=m68k/t-aux
4318 install_headers_dir=install-headers-cpio
4319 extra_headers=math-68881.h
4320 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4321 tm_file=
4322 if test "$gnu_ld" = yes
4323 then
4324 tm_file="${tm_file} m68k/auxgld.h"
4325 else
4326 tm_file="${tm_file} m68k/auxld.h"
4328 if test "$gas" = yes
4329 then
4330 tm_file="${tm_file} m68k/auxgas.h"
4331 else
4332 tm_file="${tm_file} m68k/auxas.h"
4334 tm_file="${tm_file} m68k/a-ux.h"
4335 float_format=m68k
4337 m68k-apollo-*)
4338 tm_file=m68k/apollo68.h
4339 xmake_file=m68k/x-apollo68
4340 use_collect2=yes
4341 extra_headers=math-68881.h
4342 float_format=m68k
4344 m68k-altos-sysv*) # Altos 3068
4345 if test x$gas = xyes
4346 then
4347 tm_file=m68k/altos3068.h
4348 xm_defines=USG
4349 else
4350 echo "The Altos is supported only with the GNU assembler" 1>&2
4351 exit 1
4353 extra_headers=math-68881.h
4355 m68k-bull-sysv*) # Bull DPX/2
4356 if test x$gas = xyes
4357 then
4358 if test x$stabs = xyes
4359 then
4360 tm_file=m68k/dpx2cdbx.h
4361 else
4362 tm_file=m68k/dpx2g.h
4364 else
4365 tm_file=m68k/dpx2.h
4367 xm_file="xm-alloca.h ${xm_file}"
4368 xm_defines=USG
4369 xmake_file=m68k/x-dpx2
4370 use_collect2=yes
4371 extra_headers=math-68881.h
4373 m68k-atari-sysv4*) # Atari variant of V.4.
4374 tm_file=m68k/atari.h
4375 xm_file="xm-alloca.h ${xm_file}"
4376 xm_defines="USG FULL_PROTOTYPES"
4377 tmake_file=t-svr4
4378 extra_parts="crtbegin.o crtend.o"
4379 extra_headers=math-68881.h
4380 float_format=m68k
4382 m68k-motorola-sysv*)
4383 tm_file=m68k/mot3300.h
4384 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4385 xm_defines=NO_SYS_SIGLIST
4386 if test x$gas = xyes
4387 then
4388 xmake_file=m68k/x-mot3300-gas
4389 if test x$gnu_ld = xyes
4390 then
4391 tmake_file=m68k/t-mot3300-gald
4392 else
4393 tmake_file=m68k/t-mot3300-gas
4394 use_collect2=yes
4396 else
4397 xmake_file=m68k/x-mot3300
4398 if test x$gnu_ld = xyes
4399 then
4400 tmake_file=m68k/t-mot3300-gld
4401 else
4402 tmake_file=m68k/t-mot3300
4403 use_collect2=yes
4406 gdb_needs_out_file_path=yes
4407 extra_parts="crt0.o mcrt0.o"
4408 extra_headers=math-68881.h
4409 float_format=m68k
4411 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4412 tm_file=m68k/tower-as.h
4413 xm_defines="USG SVR3"
4414 xmake_file=m68k/x-tower
4415 extra_parts="crtbegin.o crtend.o"
4416 extra_headers=math-68881.h
4418 m68k-plexus-sysv*)
4419 tm_file=m68k/plexus.h
4420 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4421 xm_defines=USG
4422 use_collect2=yes
4423 extra_headers=math-68881.h
4425 m68k-tti-*)
4426 tm_file=m68k/pbb.h
4427 xm_file="xm-alloca.h ${xm_file}"
4428 xm_defines=USG
4429 extra_headers=math-68881.h
4431 m68k-crds-unos*)
4432 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4433 xm_defines="USG unos"
4434 xmake_file=m68k/x-crds
4435 tm_file=m68k/crds.h
4436 use_collect2=yes
4437 extra_headers=math-68881.h
4439 m68k-cbm-sysv4*) # Commodore variant of V.4.
4440 tm_file=m68k/amix.h
4441 xm_file="xm-alloca.h ${xm_file}"
4442 xm_defines="USG FULL_PROTOTYPES"
4443 xmake_file=m68k/x-amix
4444 tmake_file=t-svr4
4445 extra_parts="crtbegin.o crtend.o"
4446 extra_headers=math-68881.h
4447 float_format=m68k
4449 m68k-ccur-rtu)
4450 tm_file=m68k/ccur-GAS.h
4451 xmake_file=m68k/x-ccur
4452 extra_headers=math-68881.h
4453 use_collect2=yes
4454 float_format=m68k
4456 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4457 tm_file=m68k/hp3bsd44.h
4458 xmake_file=m68k/x-hp3bsd44
4459 use_collect2=yes
4460 extra_headers=math-68881.h
4461 float_format=m68k
4463 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4464 tm_file=m68k/hp3bsd.h
4465 use_collect2=yes
4466 extra_headers=math-68881.h
4467 float_format=m68k
4469 m68k-isi-bsd*)
4470 if test x$with_fp = xno
4471 then
4472 tm_file=m68k/isi-nfp.h
4473 else
4474 tm_file=m68k/isi.h
4475 float_format=m68k
4477 use_collect2=yes
4478 extra_headers=math-68881.h
4480 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4481 xm_file="xm_alloca.h ${xm_file}"
4482 xm_defines="USG NO_SYS_SIGLIST"
4483 if test x$gas = xyes
4484 then
4485 xmake_file=m68k/x-hp320g
4486 tm_file=m68k/hp320g.h
4487 else
4488 xmake_file=m68k/x-hp320
4489 tm_file=m68k/hpux7.h
4491 install_headers_dir=install-headers-cpio
4492 use_collect2=yes
4493 extra_headers=math-68881.h
4494 float_format=m68k
4496 m68k-hp-hpux*) # HP 9000 series 300
4497 xm_file="xm_alloca.h ${xm_file}"
4498 xm_defines="USG NO_SYS_SIGLIST"
4499 if test x$gas = xyes
4500 then
4501 xmake_file=m68k/x-hp320g
4502 tm_file=m68k/hp320g.h
4503 else
4504 xmake_file=m68k/x-hp320
4505 tm_file=m68k/hp320.h
4507 install_headers_dir=install-headers-cpio
4508 use_collect2=yes
4509 extra_headers=math-68881.h
4510 float_format=m68k
4512 m68k-sun-mach*)
4513 tm_file=m68k/sun3mach.h
4514 use_collect2=yes
4515 extra_headers=math-68881.h
4516 float_format=m68k
4518 m68k-sony-newsos3*)
4519 if test x$gas = xyes
4520 then
4521 tm_file=m68k/news3gas.h
4522 else
4523 tm_file=m68k/news3.h
4525 use_collect2=yes
4526 extra_headers=math-68881.h
4527 float_format=m68k
4529 m68k-sony-bsd* | m68k-sony-newsos*)
4530 if test x$gas = xyes
4531 then
4532 tm_file=m68k/newsgas.h
4533 else
4534 tm_file=m68k/news.h
4536 use_collect2=yes
4537 extra_headers=math-68881.h
4538 float_format=m68k
4540 m68k-next-nextstep2*)
4541 tm_file=m68k/next21.h
4542 xm_file="m68k/xm-next.h ${xm_file}"
4543 tmake_file=m68k/t-next
4544 xmake_file=m68k/x-next
4545 extra_objs=nextstep.o
4546 extra_headers=math-68881.h
4547 use_collect2=yes
4548 float_format=m68k
4550 m68k-next-nextstep3*)
4551 tm_file=m68k/next.h
4552 xm_file="m68k/xm-next.h ${xm_file}"
4553 tmake_file=m68k/t-next
4554 xmake_file=m68k/x-next
4555 extra_objs=nextstep.o
4556 extra_parts="crtbegin.o crtend.o"
4557 extra_headers=math-68881.h
4558 float_format=m68k
4559 if test x$enable_threads = xyes; then
4560 thread_file='mach'
4563 m68k-sun-sunos3*)
4564 if test x$with_fp = xno
4565 then
4566 tm_file=m68k/sun3n3.h
4567 else
4568 tm_file=m68k/sun3o3.h
4569 float_format=m68k
4571 use_collect2=yes
4572 extra_headers=math-68881.h
4574 m68k-sun-sunos*) # For SunOS 4 (the default).
4575 if test x$with_fp = xno
4576 then
4577 tm_file=m68k/sun3n.h
4578 else
4579 tm_file=m68k/sun3.h
4580 float_format=m68k
4582 use_collect2=yes
4583 extra_headers=math-68881.h
4585 m68k-wrs-vxworks*)
4586 tm_file=m68k/vxm68k.h
4587 tmake_file=m68k/t-vxworks68
4588 extra_headers=math-68881.h
4589 thread_file='vxworks'
4590 float_format=m68k
4592 m68k-*-aout*)
4593 tmake_file=m68k/t-m68kbare
4594 tm_file="m68k/m68k-aout.h libgloss.h"
4595 extra_headers=math-68881.h
4596 float_format=m68k
4598 m68k-*-coff*)
4599 tmake_file=m68k/t-m68kbare
4600 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4601 extra_headers=math-68881.h
4602 float_format=m68k
4604 m68020-*-elf* | m68k-*-elf*)
4605 tm_file="m68k/m68020-elf.h"
4606 xm_file=m68k/xm-m68kv.h
4607 tmake_file=m68k/t-m68kelf
4608 header_files=math-68881.h
4610 m68k-*-lynxos*)
4611 if test x$gas = xyes
4612 then
4613 tm_file=m68k/lynx.h
4614 else
4615 tm_file=m68k/lynx-ng.h
4617 xm_file=m68k/xm-lynx.h
4618 xmake_file=x-lynx
4619 tmake_file=m68k/t-lynx
4620 extra_headers=math-68881.h
4621 float_format=m68k
4623 m68k*-*-netbsd*)
4624 tm_file=m68k/netbsd.h
4625 tmake_file=t-netbsd
4626 float_format=m68k
4627 use_collect2=yes
4629 m68k*-*-openbsd*)
4630 float_format=m68k
4631 # we need collect2 until our bug is fixed...
4632 use_collect2=yes
4634 m68k-*-sysv3*) # Motorola m68k's running system V.3
4635 xm_file="xm-alloca.h ${xm_file}"
4636 xm_defines=USG
4637 xmake_file=m68k/x-m68kv
4638 extra_parts="crtbegin.o crtend.o"
4639 extra_headers=math-68881.h
4640 float_format=m68k
4642 m68k-*-sysv4*) # Motorola m68k's running system V.4
4643 tm_file=m68k/m68kv4.h
4644 xm_file="xm-alloca.h ${xm_file}"
4645 xm_defines=USG
4646 tmake_file=t-svr4
4647 extra_parts="crtbegin.o crtend.o"
4648 extra_headers=math-68881.h
4649 float_format=m68k
4651 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4652 # with a.out format
4653 xmake_file=x-linux
4654 tm_file=m68k/linux-aout.h
4655 tmake_file="t-linux-aout m68k/t-linux-aout"
4656 extra_headers=math-68881.h
4657 float_format=m68k
4658 gnu_ld=yes
4660 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4661 # with ELF format using the
4662 # GNU/Linux C library 5
4663 xmake_file=x-linux
4664 tm_file=m68k/linux.h
4665 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4666 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4667 extra_headers=math-68881.h
4668 float_format=m68k
4669 gnu_ld=yes
4671 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4672 # with ELF format using glibc 2
4673 # aka the GNU/Linux C library 6.
4674 xmake_file=x-linux
4675 tm_file=m68k/linux.h
4676 tmake_file="t-linux m68k/t-linux"
4677 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4678 extra_headers=math-68881.h
4679 float_format=m68k
4680 gnu_ld=yes
4681 if test x$enable_threads = xyes; then
4682 thread_file='posix'
4685 m68k-*-psos*)
4686 tmake_file=m68k/t-m68kbare
4687 tm_file=m68k/m68k-psos.h
4688 extra_headers=math-68881.h
4689 float_format=m68k
4691 m68k-*-rtemscoff*|m68k-*-rtems*)
4692 tmake_file="m68k/t-m68kbare t-rtems"
4693 tm_file=m68k/rtems.h
4694 extra_headers=math-68881.h
4695 float_format=m68k
4697 m68k-*-rtemself*)
4698 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4699 tm_file=m68k/rtemself.h
4700 extra_headers=math-68881.h
4701 float_format=m68k
4703 m88k-dg-dgux*)
4704 case $machine in
4705 m88k-dg-dguxbcs*)
4706 tm_file=m88k/dguxbcs.h
4707 tmake_file=m88k/t-dguxbcs
4710 tm_file=m88k/dgux.h
4711 tmake_file=m88k/t-dgux
4713 esac
4714 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4715 xmake_file=m88k/x-dgux
4716 if test x$gas = xyes
4717 then
4718 tmake_file=m88k/t-dgux-gas
4721 m88k-dolphin-sysv3*)
4722 tm_file=m88k/dolph.h
4723 extra_parts="crtbegin.o crtend.o"
4724 xm_file="m88k/xm-sysv3.h ${xm_file}"
4725 xmake_file=m88k/x-dolph
4726 if test x$gas = xyes
4727 then
4728 tmake_file=m88k/t-m88k-gas
4731 m88k-tektronix-sysv3)
4732 tm_file=m88k/tekXD88.h
4733 extra_parts="crtbegin.o crtend.o"
4734 xm_file="m88k/xm-sysv3.h ${xm_file}"
4735 xmake_file=m88k/x-tekXD88
4736 if test x$gas = xyes
4737 then
4738 tmake_file=m88k/t-m88k-gas
4741 m88k-*-aout*)
4742 tm_file=m88k/m88k-aout.h
4744 m88k-*-coff*)
4745 tm_file=m88k/m88k-coff.h
4746 tmake_file=m88k/t-bug
4748 m88k-*-luna*)
4749 tm_file=m88k/luna.h
4750 extra_parts="crtbegin.o crtend.o"
4751 if test x$gas = xyes
4752 then
4753 tmake_file=m88k/t-luna-gas
4754 else
4755 tmake_file=m88k/t-luna
4758 m88k-*-openbsd*)
4759 tmake_file="${tmake_file} m88k/t-luna-gas"
4761 m88k-*-sysv3*)
4762 tm_file=m88k/sysv3.h
4763 extra_parts="crtbegin.o crtend.o"
4764 xm_file="m88k/xm-sysv3.h ${xm_file}"
4765 xmake_file=m88k/x-sysv3
4766 if test x$gas = xyes
4767 then
4768 tmake_file=m88k/t-m88k-gas
4771 m88k-*-sysv4*)
4772 tm_file=m88k/sysv4.h
4773 extra_parts="crtbegin.o crtend.o"
4774 xmake_file=m88k/x-sysv4
4775 tmake_file=m88k/t-sysv4
4777 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4778 if test "x$gnu_ld" = xyes
4779 then
4780 tm_file="mips/iris6.h mips/iris6gld.h"
4781 else
4782 tm_file=mips/iris6.h
4784 tmake_file=mips/t-iris6
4785 xm_file=mips/xm-iris6.h
4786 xmake_file=mips/x-iris6
4787 # if test x$enable_threads = xyes; then
4788 # thread_file='irix'
4789 # fi
4791 mips-wrs-vxworks)
4792 tm_file="mips/elf.h mips/vxworks.h"
4793 tmake_file=mips/t-ecoff
4794 gas=yes
4795 gnu_ld=yes
4796 extra_parts="crtbegin.o crtend.o"
4797 thread_file='vxworks'
4799 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4800 tm_file="mips/iris6.h mips/cross64.h"
4801 xm_defines=USG
4802 xm_file="mips/xm-iris5.h"
4803 xmake_file=mips/x-iris
4804 tmake_file=mips/t-cross64
4805 # See comment in mips/iris[56].h files.
4806 use_collect2=yes
4807 # if test x$enable_threads = xyes; then
4808 # thread_file='irix'
4809 # fi
4811 mips-sni-sysv4)
4812 if test x$gas = xyes
4813 then
4814 if test x$stabs = xyes
4815 then
4816 tm_file=mips/iris5gdb.h
4817 else
4818 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4820 else
4821 tm_file=mips/sni-svr4.h
4823 xm_defines=USG
4824 xmake_file=mips/x-sni-svr4
4825 tmake_file=mips/t-mips-gas
4826 if test x$gnu_ld != xyes
4827 then
4828 use_collect2=yes
4831 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4832 if test x$gas = xyes
4833 then
4834 tm_file="mips/iris5.h mips/iris5gas.h"
4835 if test x$stabs = xyes
4836 then
4837 tm_file="${tm_file} dbx.h"
4839 else
4840 tm_file=mips/iris5.h
4842 xm_defines=USG
4843 xm_file="mips/xm-iris5.h"
4844 xmake_file=mips/x-iris
4845 # mips-tfile doesn't work yet
4846 tmake_file=mips/t-mips-gas
4847 # See comment in mips/iris5.h file.
4848 use_collect2=yes
4849 # if test x$enable_threads = xyes; then
4850 # thread_file='irix'
4851 # fi
4853 mips-sgi-irix4loser*) # Mostly like a MIPS.
4854 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4855 if test x$stabs = xyes; then
4856 tm_file="${tm_file} dbx.h"
4858 xm_defines=USG
4859 xmake_file=mips/x-iris
4860 if test x$gas = xyes
4861 then
4862 tmake_file=mips/t-mips-gas
4863 else
4864 extra_passes="mips-tfile mips-tdump"
4866 if test x$gnu_ld != xyes
4867 then
4868 use_collect2=yes
4870 # if test x$enable_threads = xyes; then
4871 # thread_file='irix'
4872 # fi
4874 mips-sgi-irix4*) # Mostly like a MIPS.
4875 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4876 if test x$stabs = xyes; then
4877 tm_file="${tm_file} dbx.h"
4879 xm_defines=USG
4880 xmake_file=mips/x-iris
4881 if test x$gas = xyes
4882 then
4883 tmake_file=mips/t-mips-gas
4884 else
4885 extra_passes="mips-tfile mips-tdump"
4887 if test x$gnu_ld != xyes
4888 then
4889 use_collect2=yes
4891 # if test x$enable_threads = xyes; then
4892 # thread_file='irix'
4893 # fi
4895 mips-sgi-*) # Mostly like a MIPS.
4896 tm_file="mips/iris3.h ${tm_file}"
4897 if test x$stabs = xyes; then
4898 tm_file="${tm_file} dbx.h"
4900 xm_defines=USG
4901 xmake_file=mips/x-iris3
4902 if test x$gas = xyes
4903 then
4904 tmake_file=mips/t-mips-gas
4905 else
4906 extra_passes="mips-tfile mips-tdump"
4908 if test x$gnu_ld != xyes
4909 then
4910 use_collect2=yes
4913 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4914 tm_file="mips/osfrose.h ${tm_file}"
4915 xmake_file=mips/x-osfrose
4916 tmake_file=mips/t-osfrose
4917 extra_objs=halfpic.o
4918 use_collect2=yes
4920 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4921 tm_file=mips/dec-osf1.h
4922 if test x$stabs = xyes; then
4923 tm_file="${tm_file} dbx.h"
4925 xmake_file=mips/x-dec-osf1
4926 if test x$gas = xyes
4927 then
4928 tmake_file=mips/t-mips-gas
4929 else
4930 tmake_file=mips/t-ultrix
4931 extra_passes="mips-tfile mips-tdump"
4933 if test x$gnu_ld != xyes
4934 then
4935 use_collect2=yes
4938 mips-dec-bsd*) # Decstation running 4.4 BSD
4939 tm_file=mips/dec-bsd.h
4940 if test x$gas = xyes
4941 then
4942 tmake_file=mips/t-mips-gas
4943 else
4944 tmake_file=mips/t-ultrix
4945 extra_passes="mips-tfile mips-tdump"
4947 if test x$gnu_ld != xyes
4948 then
4949 use_collect2=yes
4952 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4953 tm_file=mips/netbsd.h
4954 # On NetBSD, the headers are already okay, except for math.h.
4955 tmake_file=t-netbsd
4957 mips*-*-linux*) # Linux MIPS, either endian.
4958 xmake_file=x-linux
4959 xm_file="xm-siglist.h ${xm_file}"
4960 case $machine in
4961 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4962 *) tm_file="mips/elf.h mips/linux.h" ;;
4963 esac
4964 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4965 gnu_ld=yes
4966 gas=yes
4967 if test x$enable_threads = xyes; then
4968 thread_file='posix'
4971 mips*el-*-openbsd*) # mips little endian
4972 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4973 tm_file=mips/openbsd.h
4975 mips*-*-openbsd*) # mips big endian
4976 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4977 tm_file=mips/openbsd-be.h
4979 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4980 tm_file="mips/news4.h ${tm_file}"
4981 if test x$stabs = xyes; then
4982 tm_file="${tm_file} dbx.h"
4984 if test x$gas = xyes
4985 then
4986 tmake_file=mips/t-mips-gas
4987 else
4988 extra_passes="mips-tfile mips-tdump"
4990 if test x$gnu_ld != xyes
4991 then
4992 use_collect2=yes
4994 xmake_file=mips/x-sony
4996 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4997 # That is based on svr4.
4998 # t-svr4 is not right because this system doesn't use ELF.
4999 tm_file="mips/news5.h ${tm_file}"
5000 if test x$stabs = xyes; then
5001 tm_file="${tm_file} dbx.h"
5003 xm_file="xm-siglist.h ${xm_file}"
5004 xm_defines=USG
5005 if test x$gas = xyes
5006 then
5007 tmake_file=mips/t-mips-gas
5008 else
5009 extra_passes="mips-tfile mips-tdump"
5011 if test x$gnu_ld != xyes
5012 then
5013 use_collect2=yes
5016 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5017 tm_file="mips/svr4-5.h mips/svr4-t.h"
5018 if test x$stabs = xyes; then
5019 tm_file="${tm_file} dbx.h"
5021 xm_file="xm-siglist.h ${xm_file}"
5022 xm_defines=USG
5023 xmake_file=mips/x-sysv
5024 if test x$gas = xyes
5025 then
5026 tmake_file=mips/t-mips-gas
5027 extra_parts="crtbegin.o crtend.o"
5028 else
5029 tmake_file=mips/t-mips
5030 extra_passes="mips-tfile mips-tdump"
5032 if test x$gnu_ld != xyes
5033 then
5034 use_collect2=yes
5037 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5038 tm_file="mips/ultrix.h ${tm_file}"
5039 if test x$stabs = xyes; then
5040 tm_file="${tm_file} dbx.h"
5042 xmake_file=mips/x-ultrix
5043 if test x$gas = xyes
5044 then
5045 tmake_file=mips/t-mips-gas
5046 else
5047 tmake_file=mips/t-ultrix
5048 extra_passes="mips-tfile mips-tdump"
5050 if test x$gnu_ld != xyes
5051 then
5052 use_collect2=yes
5055 mips-*-riscos[56789]bsd*)
5056 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5057 if test x$stabs = xyes; then
5058 tm_file="${tm_file} dbx.h"
5060 if test x$gas = xyes
5061 then
5062 tmake_file=mips/t-bsd-gas
5063 else
5064 tmake_file=mips/t-bsd
5065 extra_passes="mips-tfile mips-tdump"
5067 if test x$gnu_ld != xyes
5068 then
5069 use_collect2=yes
5072 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5073 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5074 if test x$stabs = xyes; then
5075 tm_file="${tm_file} dbx.h"
5077 if test x$gas = xyes
5078 then
5079 tmake_file=mips/t-bsd-gas
5080 else
5081 tmake_file=mips/t-bsd
5082 extra_passes="mips-tfile mips-tdump"
5084 if test x$gnu_ld != xyes
5085 then
5086 use_collect2=yes
5089 mips-*-riscos[56789]sysv4*)
5090 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5091 if test x$stabs = xyes; then
5092 tm_file="${tm_file} dbx.h"
5094 xm_file="xm-siglist.h ${xm_file}"
5095 xmake_file=mips/x-sysv
5096 if test x$gas = xyes
5097 then
5098 tmake_file=mips/t-svr4-gas
5099 else
5100 tmake_file=mips/t-svr4
5101 extra_passes="mips-tfile mips-tdump"
5103 if test x$gnu_ld != xyes
5104 then
5105 use_collect2=yes
5108 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5109 tm_file="mips/svr4-4.h ${tm_file}"
5110 if test x$stabs = xyes; then
5111 tm_file="${tm_file} dbx.h"
5113 xm_defines=USG
5114 xmake_file=mips/x-sysv
5115 if test x$gas = xyes
5116 then
5117 tmake_file=mips/t-svr4-gas
5118 else
5119 tmake_file=mips/t-svr4
5120 extra_passes="mips-tfile mips-tdump"
5122 if test x$gnu_ld != xyes
5123 then
5124 use_collect2=yes
5127 mips-*-riscos[56789]sysv*)
5128 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5129 if test x$stabs = xyes; then
5130 tm_file="${tm_file} dbx.h"
5132 xm_defines=USG
5133 xmake_file=mips/x-sysv
5134 if test x$gas = xyes
5135 then
5136 tmake_file=mips/t-svr3-gas
5137 else
5138 tmake_file=mips/t-svr3
5139 extra_passes="mips-tfile mips-tdump"
5141 if test x$gnu_ld != xyes
5142 then
5143 use_collect2=yes
5146 mips-*-sysv* | mips-*-riscos*sysv*)
5147 tm_file="mips/svr3-4.h ${tm_file}"
5148 if test x$stabs = xyes; then
5149 tm_file="${tm_file} dbx.h"
5151 xm_defines=USG
5152 xmake_file=mips/x-sysv
5153 if test x$gas = xyes
5154 then
5155 tmake_file=mips/t-svr3-gas
5156 else
5157 tmake_file=mips/t-svr3
5158 extra_passes="mips-tfile mips-tdump"
5160 if test x$gnu_ld != xyes
5161 then
5162 use_collect2=yes
5165 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5166 tm_file=mips/mips-5.h
5167 if test x$stabs = xyes; then
5168 tm_file="${tm_file} dbx.h"
5170 if test x$gas = xyes
5171 then
5172 tmake_file=mips/t-mips-gas
5173 else
5174 extra_passes="mips-tfile mips-tdump"
5176 if test x$gnu_ld != xyes
5177 then
5178 use_collect2=yes
5181 mips-*-gnu*)
5183 mipsel-*-ecoff*)
5184 tm_file=mips/ecoffl.h
5185 if test x$stabs = xyes; then
5186 tm_file="${tm_file} dbx.h"
5188 tmake_file=mips/t-ecoff
5190 mips-*-ecoff*)
5191 tm_file="gofast.h mips/ecoff.h"
5192 if test x$stabs = xyes; then
5193 tm_file="${tm_file} dbx.h"
5195 tmake_file=mips/t-ecoff
5197 mipsel-*-elf*)
5198 tm_file="mips/elfl.h"
5199 tmake_file=mips/t-elf
5201 mips-*-elf*)
5202 tm_file="mips/elf.h"
5203 tmake_file=mips/t-elf
5205 mips64el-*-elf*)
5206 tm_file="mips/elfl64.h"
5207 tmake_file=mips/t-elf
5209 mips64orionel-*-elf*)
5210 tm_file="mips/elforion.h mips/elfl64.h"
5211 tmake_file=mips/t-elf
5213 mips64-*-elf*)
5214 tm_file="mips/elf64.h"
5215 tmake_file=mips/t-elf
5217 mips64orion-*-elf*)
5218 tm_file="mips/elforion.h mips/elf64.h"
5219 tmake_file=mips/t-elf
5221 mips64orion-*-rtems*)
5222 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5223 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5224 tmake_file="mips/t-elf t-rtems"
5226 mipstx39el-*-elf*)
5227 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5228 tmake_file=mips/t-r3900
5230 mipstx39-*-elf*)
5231 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5232 tmake_file=mips/t-r3900
5234 mips-*-*) # Default MIPS RISC-OS 4.0.
5235 if test x$stabs = xyes; then
5236 tm_file="${tm_file} dbx.h"
5238 if test x$gas = xyes
5239 then
5240 tmake_file=mips/t-mips-gas
5241 else
5242 extra_passes="mips-tfile mips-tdump"
5244 if test x$gnu_ld != xyes
5245 then
5246 use_collect2=yes
5249 mn10200-*-*)
5250 cpu_type=mn10200
5251 tm_file="mn10200/mn10200.h"
5252 if test x$stabs = xyes
5253 then
5254 tm_file="${tm_file} dbx.h"
5256 use_collect2=no
5258 mn10300-*-*)
5259 cpu_type=mn10300
5260 tm_file="mn10300/mn10300.h"
5261 if test x$stabs = xyes
5262 then
5263 tm_file="${tm_file} dbx.h"
5265 use_collect2=no
5267 ns32k-encore-bsd*)
5268 tm_file=ns32k/encore.h
5269 use_collect2=yes
5271 ns32k-sequent-bsd*)
5272 tm_file=ns32k/sequent.h
5273 use_collect2=yes
5275 ns32k-tek6100-bsd*)
5276 tm_file=ns32k/tek6100.h
5277 use_collect2=yes
5279 ns32k-tek6200-bsd*)
5280 tm_file=ns32k/tek6200.h
5281 use_collect2=yes
5283 # This has not been updated to GCC 2.
5284 # ns32k-ns-genix*)
5285 # xm_defines=USG
5286 # xmake_file=ns32k/x-genix
5287 # tm_file=ns32k/genix.h
5288 # use_collect2=yes
5289 # ;;
5290 ns32k-merlin-*)
5291 tm_file=ns32k/merlin.h
5292 use_collect2=yes
5294 ns32k-pc532-mach*)
5295 tm_file=ns32k/pc532-mach.h
5296 use_collect2=yes
5298 ns32k-pc532-minix*)
5299 tm_file=ns32k/pc532-min.h
5300 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5301 xm_defines=USG
5302 use_collect2=yes
5304 ns32k-*-netbsd*)
5305 tm_file=ns32k/netbsd.h
5306 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5307 # On NetBSD, the headers are already okay, except for math.h.
5308 tmake_file=t-netbsd
5309 use_collect2=yes
5311 pdp11-*-bsd)
5312 tm_file="${tm_file} pdp11/2bsd.h"
5314 pdp11-*-*)
5316 ns32k-*-openbsd*)
5317 # Nothing special
5319 # This has not been updated to GCC 2.
5320 # pyramid-*-*)
5321 # cpu_type=pyr
5322 # xmake_file=pyr/x-pyr
5323 # use_collect2=yes
5324 # ;;
5325 romp-*-aos*)
5326 use_collect2=yes
5328 romp-*-mach*)
5329 xmake_file=romp/x-mach
5330 use_collect2=yes
5332 romp-*-openbsd*)
5333 # Nothing special
5335 powerpc-*-openbsd*)
5336 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5338 powerpc-*-beos*)
5339 cpu_type=rs6000
5340 tm_file=rs6000/beos.h
5341 xm_file=rs6000/xm-beos.h
5342 tmake_file=rs6000/t-beos
5343 xmake_file=rs6000/x-beos
5345 powerpc-*-sysv* | powerpc-*-elf*)
5346 tm_file=rs6000/sysv4.h
5347 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5348 xm_defines="USG POSIX"
5349 extra_headers=ppc-asm.h
5350 if test x$gas = xyes
5351 then
5352 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5353 else
5354 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5356 xmake_file=rs6000/x-sysv4
5358 powerpc-*-eabiaix*)
5359 tm_file=rs6000/eabiaix.h
5360 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5361 extra_headers=ppc-asm.h
5363 powerpc-*-eabisim*)
5364 tm_file=rs6000/eabisim.h
5365 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5366 extra_headers=ppc-asm.h
5368 powerpc-*-eabi*)
5369 tm_file=rs6000/eabi.h
5370 if test x$gas = xyes
5371 then
5372 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5373 else
5374 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5376 extra_headers=ppc-asm.h
5378 powerpc-*-rtems*)
5379 tm_file=rs6000/rtems.h
5380 if test x$gas = xyes
5381 then
5382 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5383 else
5384 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5386 extra_headers=ppc-asm.h
5388 powerpc-*-linux-gnulibc1)
5389 tm_file=rs6000/linux.h
5390 xm_file=rs6000/xm-sysv4.h
5391 out_file=rs6000/rs6000.c
5392 if test x$gas = xyes
5393 then
5394 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5395 else
5396 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5398 xmake_file=x-linux
5399 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5400 extra_headers=ppc-asm.h
5401 if test x$enable_threads = xyes; then
5402 thread_file='posix'
5405 powerpc-*-linux-gnu*)
5406 tm_file=rs6000/linux.h
5407 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5408 xm_defines="USG ${xm_defines}"
5409 out_file=rs6000/rs6000.c
5410 if test x$gas = xyes
5411 then
5412 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5413 else
5414 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5416 xmake_file=x-linux
5417 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5418 extra_headers=ppc-asm.h
5419 if test x$enable_threads = xyes; then
5420 thread_file='posix'
5423 powerpc-wrs-vxworks*)
5424 cpu_type=rs6000
5425 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5426 xm_defines="USG POSIX"
5427 tm_file=rs6000/vxppc.h
5428 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5429 extra_headers=ppc-asm.h
5430 thread_file='vxworks'
5432 powerpcle-*-sysv* | powerpcle-*-elf*)
5433 tm_file=rs6000/sysv4le.h
5434 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5435 xm_defines="USG POSIX"
5436 if test x$gas = xyes
5437 then
5438 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5439 else
5440 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5442 xmake_file=rs6000/x-sysv4
5443 extra_headers=ppc-asm.h
5445 powerpcle-*-eabisim*)
5446 tm_file=rs6000/eabilesim.h
5447 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5448 extra_headers=ppc-asm.h
5450 powerpcle-*-eabi*)
5451 tm_file=rs6000/eabile.h
5452 if test x$gas = xyes
5453 then
5454 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5455 else
5456 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5458 extra_headers=ppc-asm.h
5460 powerpcle-*-winnt* )
5461 tm_file=rs6000/win-nt.h
5462 tmake_file=rs6000/t-winnt
5463 # extra_objs=pe.o
5464 if test x$enable_threads = xyes; then
5465 thread_file='win32'
5467 extra_headers=ppc-asm.h
5469 powerpcle-*-pe | powerpcle-*-cygwin*)
5470 tm_file=rs6000/cygwin.h
5471 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5472 tmake_file=rs6000/t-winnt
5473 xmake_file=rs6000/x-cygwin
5474 # extra_objs=pe.o
5475 if test x$enable_threads = xyes; then
5476 thread_file='win32'
5478 exeext=.exe
5479 extra_headers=ppc-asm.h
5481 powerpcle-*-solaris2*)
5482 tm_file=rs6000/sol2.h
5483 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5484 xm_defines="USG POSIX"
5485 if test x$gas = xyes
5486 then
5487 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5488 else
5489 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5491 xmake_file=rs6000/x-sysv4
5492 extra_headers=ppc-asm.h
5494 rs6000-ibm-aix3.[01]*)
5495 tm_file=rs6000/aix31.h
5496 xmake_file=rs6000/x-aix31
5497 float_format=none
5498 use_collect2=yes
5500 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5501 tm_file=rs6000/aix3newas.h
5502 if test x$host != x$target
5503 then
5504 tmake_file=rs6000/t-xnewas
5505 else
5506 tmake_file=rs6000/t-newas
5508 float_format=none
5509 use_collect2=yes
5511 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5512 tm_file=rs6000/aix41.h
5513 if test x$host != x$target
5514 then
5515 tmake_file=rs6000/t-xnewas
5516 else
5517 tmake_file=rs6000/t-newas
5519 if test "$gnu_ld" = yes
5520 then
5521 xmake_file=rs6000/x-aix41-gld
5522 else
5523 xmake_file=rs6000/x-aix41
5525 float_format=none
5526 use_collect2=yes
5528 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5529 tm_file=rs6000/aix43.h
5530 if test x$host != x$target
5531 then
5532 tmake_file=rs6000/t-xaix43
5533 else
5534 tmake_file=rs6000/t-aix43
5536 xmake_file=rs6000/x-aix43
5537 float_format=none
5538 use_collect2=yes
5540 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5541 tm_file=rs6000/aix43.h
5542 if test x$host != x$target
5543 then
5544 tmake_file=rs6000/t-xaix43
5545 else
5546 tmake_file=rs6000/t-aix43
5548 xmake_file=rs6000/x-aix43
5549 float_format=none
5550 use_collect2=yes
5552 rs6000-ibm-aix*)
5553 float_format=none
5554 use_collect2=yes
5556 rs6000-bull-bosx)
5557 float_format=none
5558 use_collect2=yes
5560 rs6000-*-mach*)
5561 tm_file=rs6000/mach.h
5562 xm_file="${xm_file} rs6000/xm-mach.h"
5563 xmake_file=rs6000/x-mach
5564 use_collect2=yes
5566 rs6000-*-lynxos*)
5567 tm_file=rs6000/lynx.h
5568 xm_file=rs6000/xm-lynx.h
5569 tmake_file=rs6000/t-rs6000
5570 xmake_file=rs6000/x-lynx
5571 use_collect2=yes
5573 sh-*-elf*)
5574 tm_file=sh/elf.h
5575 float_format=sh
5577 sh-*-rtemself*)
5578 tmake_file="sh/t-sh t-rtems"
5579 tm_file=sh/rtemself.h
5580 float_format=sh
5582 sh-*-rtems*)
5583 tmake_file="sh/t-sh t-rtems"
5584 tm_file=sh/rtems.h
5585 float_format=sh
5587 sh-*-*)
5588 float_format=sh
5590 sparc-tti-*)
5591 tm_file=sparc/pbd.h
5592 xm_file="xm-alloca.h ${xm_file}"
5593 xm_defines=USG
5595 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5596 tm_file=sparc/vxsparc.h
5597 tmake_file=sparc/t-vxsparc
5598 use_collect2=yes
5599 thread_file='vxworks'
5601 sparc-*-aout*)
5602 tmake_file=sparc/t-sparcbare
5603 tm_file="sparc/aout.h libgloss.h"
5605 sparc-*-netbsd*)
5606 tm_file=sparc/netbsd.h
5607 tmake_file=t-netbsd
5608 use_collect2=yes
5610 sparc-*-openbsd*)
5611 # we need collect2 until our bug is fixed...
5612 use_collect2=yes
5614 sparc-*-bsd*)
5615 tm_file=sparc/bsd.h
5617 sparc-*-elf*)
5618 tm_file=sparc/elf.h
5619 tmake_file=sparc/t-elf
5620 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5621 #float_format=i128
5622 float_format=i64
5624 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5625 xm_file="${xm_file} sparc/xm-linux.h"
5626 tm_file=sparc/linux-aout.h
5627 xmake_file=x-linux
5628 gnu_ld=yes
5630 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5631 xm_file="${xm_file} sparc/xm-linux.h"
5632 xmake_file=x-linux
5633 tm_file=sparc/linux.h
5634 tmake_file="t-linux t-linux-gnulibc1"
5635 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5636 gnu_ld=yes
5637 float_format=sparc
5639 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5640 xm_file="${xm_file} sparc/xm-linux.h"
5641 xmake_file=x-linux
5642 tm_file=sparc/linux.h
5643 tmake_file="t-linux"
5644 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5645 gnu_ld=yes
5646 if test x$enable_threads = xyes; then
5647 thread_file='posix'
5649 float_format=sparc
5651 sparc-*-lynxos*)
5652 if test x$gas = xyes
5653 then
5654 tm_file=sparc/lynx.h
5655 else
5656 tm_file=sparc/lynx-ng.h
5658 xm_file=sparc/xm-lynx.h
5659 tmake_file=sparc/t-sunos41
5660 xmake_file=x-lynx
5662 sparc-*-rtems*|sparc-*-rtemself*)
5663 tm_file="sparc/rtemself.h"
5664 tmake_file="sparc/t-elf t-rtems"
5665 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5666 #float_format=i128
5667 float_format=i64
5669 sparc-*-rtemsaout*)
5670 tmake_file="sparc/t-sparcbare t-rtems"
5671 tm_file=sparc/rtems.h
5673 sparcv9-*-solaris2*)
5674 tm_file=sparc/sol2-sld-64.h
5675 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5676 xm_defines="USG POSIX"
5677 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5678 xmake_file=sparc/x-sysv4
5679 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5680 float_format=none
5681 if test x${enable_threads} = x ; then
5682 enable_threads=$have_pthread_h
5683 if test x${enable_threads} = x ; then
5684 enable_threads=$have_thread_h
5687 if test x${enable_threads} = xyes ; then
5688 if test x${have_pthread_h} = xyes ; then
5689 thread_file='posix'
5690 else
5691 thread_file='solaris'
5695 sparc-hal-solaris2*)
5696 xm_file=sparc/xm-sol2.h
5697 tm_file="sparc/sol2.h sparc/hal.h"
5698 tmake_file="sparc/t-halos sparc/t-sol2"
5699 xmake_file=sparc/x-sysv4
5700 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5701 broken_install=yes
5703 sparc-*-solaris2*)
5704 if test x$gnu_ld = xyes
5705 then
5706 tm_file=sparc/sol2.h
5707 else
5708 tm_file=sparc/sol2-sld.h
5710 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5711 xm_defines="USG POSIX"
5712 tmake_file=sparc/t-sol2
5713 xmake_file=sparc/x-sysv4
5714 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5715 case $machine in
5716 *-*-solaris2.[0-4])
5717 float_format=i128
5720 float_format=none
5722 esac
5723 if test x${enable_threads} = x; then
5724 enable_threads=$have_pthread_h
5725 if test x${enable_threads} = x; then
5726 enable_threads=$have_thread_h
5729 if test x${enable_threads} = xyes; then
5730 if test x${have_pthread_h} = xyes; then
5731 thread_file='posix'
5732 else
5733 thread_file='solaris'
5737 sparc-*-sunos4.0*)
5738 tm_file=sparc/sunos4.h
5739 tmake_file=sparc/t-sunos40
5740 use_collect2=yes
5742 sparc-*-sunos4*)
5743 tm_file=sparc/sunos4.h
5744 tmake_file=sparc/t-sunos41
5745 use_collect2=yes
5746 if test x$gas = xyes; then
5747 tm_file="${tm_file} sparc/sun4gas.h"
5750 sparc-*-sunos3*)
5751 tm_file=sparc/sun4o3.h
5752 use_collect2=yes
5754 sparc-*-sysv4*)
5755 tm_file=sparc/sysv4.h
5756 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5757 xm_defines="USG POSIX"
5758 tmake_file=t-svr4
5759 xmake_file=sparc/x-sysv4
5760 extra_parts="crtbegin.o crtend.o"
5762 sparc-*-vxsim*)
5763 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5764 xm_defines="USG POSIX"
5765 tm_file=sparc/vxsim.h
5766 tmake_file=sparc/t-vxsparc
5767 xmake_file=sparc/x-sysv4
5769 sparclet-*-aout*)
5770 tm_file="sparc/splet.h libgloss.h"
5771 tmake_file=sparc/t-splet
5773 sparclite-*-coff*)
5774 tm_file="sparc/litecoff.h libgloss.h"
5775 tmake_file=sparc/t-sparclite
5777 sparclite-*-aout*)
5778 tm_file="sparc/lite.h aoutos.h libgloss.h"
5779 tmake_file=sparc/t-sparclite
5781 sparclite-*-elf*)
5782 tm_file="sparc/liteelf.h libgloss.h"
5783 tmake_file=sparc/t-sparclite
5784 extra_parts="crtbegin.o crtend.o"
5786 sparc86x-*-aout*)
5787 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
5788 tmake_file=sparc/t-sp86x
5790 sparc86x-*-elf*)
5791 tm_file="sparc/sp86x-elf.h libgloss.h"
5792 tmake_file=sparc/t-sp86x
5793 extra_parts="crtbegin.o crtend.o"
5795 sparc64-*-aout*)
5796 tmake_file=sparc/t-sp64
5797 tm_file=sparc/sp64-aout.h
5799 sparc64-*-elf*)
5800 tmake_file=sparc/t-sp64
5801 tm_file=sparc/sp64-elf.h
5802 extra_parts="crtbegin.o crtend.o"
5804 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5805 tmake_file="t-linux sparc/t-linux64"
5806 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5807 tm_file=sparc/linux64.h
5808 xmake_file=x-linux
5809 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5810 gnu_ld=yes
5811 float_format=sparc
5813 # This hasn't been upgraded to GCC 2.
5814 # tahoe-harris-*) # Harris tahoe, using COFF.
5815 # tm_file=tahoe/harris.h
5816 # ;;
5817 # tahoe-*-bsd*) # tahoe running BSD
5818 # ;;
5819 thumb-*-coff* | thumbel-*-coff*)
5820 tm_file=arm/tcoff.h
5821 out_file=arm/thumb.c
5822 xm_file=arm/xm-thumb.h
5823 md_file=arm/thumb.md
5824 tmake_file=arm/t-thumb
5826 thumb-*-elf* | thumbel-*-elf*)
5827 tm_file=arm/telf.h
5828 out_file=arm/thumb.c
5829 xm_file=arm/xm-thumb.h
5830 md_file=arm/thumb.md
5831 tmake_file=arm/t-thumb-elf
5833 thumb-*-linux-gnu*)
5834 tm_file=arm/linux-telf.h
5835 out_file=arm/thumb.c
5836 xm_file=arm/xm-thumb.h
5837 md_file=arm/thumb.md
5838 tmake_file=arm/t-thumb-linux
5840 thumb-*-uclinux*)
5841 tm_file=arm/uclinux-telf.h
5842 out_file=arm/thumb.c
5843 md_file=arm/thumb.md
5844 tmake_file=arm/t-thumb-linux
5845 xm_file=arm/xm-thumb.h
5847 thumb-wrs-vxworks)
5848 tm_file=arm/tcoff.h
5849 out_file=arm/thumb.c
5850 xm_file=arm/xm-thumb.h
5851 md_file=arm/thumb.md
5852 tmake_file=arm/t-thumb
5853 thread_file='vxworks'
5855 thumb-*-pe)
5856 tm_file=arm/tpe.h
5857 out_file=arm/thumb.c
5858 xm_file=arm/xm-thumb.h
5859 md_file=arm/thumb.md
5860 tmake_file=arm/t-pe-thumb
5861 extra_objs=pe.o
5863 # This hasn't been upgraded to GCC 2.
5864 # tron-*-*)
5865 # cpu_type=gmicro
5866 # use_collect2=yes
5867 # ;;
5868 v850-*-*)
5869 target_cpu_default="TARGET_CPU_generic"
5870 cpu_type=v850
5871 tm_file="v850/v850.h"
5872 xm_file="v850/xm-v850.h"
5873 tmake_file=v850/t-v850
5874 if test x$stabs = xyes
5875 then
5876 tm_file="${tm_file} dbx.h"
5878 use_collect2=no
5880 vax-*-bsd*) # vaxen running BSD
5881 use_collect2=yes
5882 float_format=vax
5884 vax-*-sysv*) # vaxen running system V
5885 tm_file="${tm_file} vax/vaxv.h"
5886 xm_defines=USG
5887 float_format=vax
5889 vax-*-netbsd*)
5890 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5891 tmake_file=t-netbsd
5892 float_format=vax
5893 use_collect2=yes
5895 vax-*-openbsd*)
5896 tmake_file="${tmake_file} vax/t-openbsd"
5898 vax-*-ultrix*) # vaxen running ultrix
5899 tm_file="${tm_file} vax/ultrix.h"
5900 use_collect2=yes
5901 float_format=vax
5903 vax-*-vms*) # vaxen running VMS
5904 xm_file=vax/xm-vms.h
5905 tm_file=vax/vms.h
5906 float_format=vax
5908 vax-*-*) # vax default entry
5909 float_format=vax
5911 we32k-att-sysv*)
5912 xm_file="${xm_file} xm-svr3"
5913 use_collect2=yes
5916 echo "Configuration $machine not supported" 1>&2
5917 exit 1
5919 esac
5921 case $machine in
5922 *-*-linux-gnu*)
5923 ;; # Existing GNU/Linux systems do not use the GNU setup.
5924 *-*-gnu*)
5925 # On the GNU system, the setup is just about the same on
5926 # each different CPU. The specific machines that GNU
5927 # supports are matched above and just set $cpu_type.
5928 xm_file="xm-gnu.h ${xm_file}"
5929 tm_file=${cpu_type}/gnu.h
5930 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5931 # GNU always uses ELF.
5932 elf=yes
5933 # GNU tools are the only tools.
5934 gnu_ld=yes
5935 gas=yes
5936 xmake_file=x-linux # These details are the same as Linux.
5937 tmake_file=t-gnu # These are not.
5939 *-*-sysv4*)
5940 xmake_try_sysv=x-sysv
5941 install_headers_dir=install-headers-cpio
5943 *-*-sysv*)
5944 install_headers_dir=install-headers-cpio
5946 esac
5948 # Distinguish i[34567]86
5949 # Also, do not run mips-tfile on MIPS if using gas.
5950 # Process --with-cpu= for PowerPC/rs6000
5951 target_cpu_default2=
5952 case $machine in
5953 i486-*-*)
5954 target_cpu_default2=1
5956 i586-*-*)
5957 case $target_alias in
5958 k6-*)
5959 target_cpu_default2=4
5962 target_cpu_default2=2
5964 esac
5966 i686-*-* | i786-*-*)
5967 target_cpu_default2=3
5969 alpha*-*-*)
5970 case $machine in
5971 alphaev6*)
5972 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5974 alphapca56*)
5975 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5977 alphaev56*)
5978 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5980 alphaev5*)
5981 target_cpu_default2="MASK_CPU_EV5"
5983 esac
5985 if test x$gas = xyes
5986 then
5987 if test "$target_cpu_default2" = ""
5988 then
5989 target_cpu_default2="MASK_GAS"
5990 else
5991 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5995 arm*-*-*)
5996 case "x$with_cpu" in
5998 # The most generic
5999 target_cpu_default2="TARGET_CPU_generic"
6002 # Distinguish cores, and major variants
6003 # arm7m doesn't exist, but D & I don't affect code
6004 xarm23678 | xarm250 | xarm67010 \
6005 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6006 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6007 | xstrongarm | xstrongarm110 | xstrongarm1100)
6008 target_cpu_default2="TARGET_CPU_$with_cpu"
6011 xyes | xno)
6012 echo "--with-cpu must be passed a value" 1>&2
6013 exit 1
6017 if test x$pass2done = xyes
6018 then
6019 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6020 exit 1
6023 esac
6026 mips*-*-ecoff* | mips*-*-elf*)
6027 if test x$gas = xyes
6028 then
6029 if test x$gnu_ld = xyes
6030 then
6031 target_cpu_default2=20
6032 else
6033 target_cpu_default2=16
6037 mips*-*-*)
6038 if test x$gas = xyes
6039 then
6040 target_cpu_default2=16
6043 powerpc*-*-* | rs6000-*-*)
6044 case "x$with_cpu" in
6048 xcommon | xpower | xpower2 | xpowerpc | xrios \
6049 | xrios1 | xrios2 | xrsc | xrsc1 \
6050 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6051 | xec603e | x740 | x750 | x401 \
6052 | x403 | x505 | x801 | x821 | x823 | x860)
6053 target_cpu_default2="\"$with_cpu\""
6056 xyes | xno)
6057 echo "--with-cpu must be passed a value" 1>&2
6058 exit 1
6062 if test x$pass2done = xyes
6063 then
6064 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6065 exit 1
6068 esac
6070 sparc*-*-*)
6071 case ".$with_cpu" in
6073 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6075 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6076 target_cpu_default2="TARGET_CPU_$with_cpu"
6079 if test x$pass2done = xyes
6080 then
6081 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6082 exit 1
6085 esac
6087 esac
6089 if test "$target_cpu_default2" != ""
6090 then
6091 if test "$target_cpu_default" != ""
6092 then
6093 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6094 else
6095 target_cpu_default=$target_cpu_default2
6099 # No need for collect2 if we have the GNU linker.
6100 # Actually, there is now; GNU ld doesn't handle the EH info or
6101 # collecting for shared libraries.
6102 #case x$gnu_ld in
6103 #xyes)
6104 # use_collect2=
6105 # ;;
6106 #esac
6108 # Save data on machine being used to compile GCC in build_xm_file.
6109 # Save data on host machine in vars host_xm_file and host_xmake_file.
6110 if test x$pass1done = x
6111 then
6112 if test x"$xm_file" = x
6113 then build_xm_file=$cpu_type/xm-$cpu_type.h
6114 else build_xm_file=$xm_file
6116 build_xm_defines=$xm_defines
6117 build_install_headers_dir=$install_headers_dir
6118 build_exeext=$exeext
6119 pass1done=yes
6120 else
6121 if test x$pass2done = x
6122 then
6123 if test x"$xm_file" = x
6124 then host_xm_file=$cpu_type/xm-$cpu_type.h
6125 else host_xm_file=$xm_file
6127 host_xm_defines=$xm_defines
6128 if test x"$xmake_file" = x
6129 then xmake_file=$cpu_type/x-$cpu_type
6131 host_xmake_file="$xmake_file"
6132 host_truncate_target=$truncate_target
6133 host_extra_gcc_objs=$extra_gcc_objs
6134 host_extra_objs=$extra_host_objs
6135 host_exeext=$exeext
6136 pass2done=yes
6139 done
6141 extra_objs="${host_extra_objs} ${extra_objs}"
6143 # Default the target-machine variables that were not explicitly set.
6144 if test x"$tm_file" = x
6145 then tm_file=$cpu_type/$cpu_type.h; fi
6147 if test x$extra_headers = x
6148 then extra_headers=; fi
6150 if test x"$xm_file" = x
6151 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6153 if test x$md_file = x
6154 then md_file=$cpu_type/$cpu_type.md; fi
6156 if test x$out_file = x
6157 then out_file=$cpu_type/$cpu_type.c; fi
6159 if test x"$tmake_file" = x
6160 then tmake_file=$cpu_type/t-$cpu_type
6163 if test x"$dwarf2" = xyes
6164 then tm_file="tm-dwarf2.h $tm_file"
6167 if test x$float_format = x
6168 then float_format=i64
6171 if test $float_format = none
6172 then float_h_file=Makefile.in
6173 else float_h_file=float-$float_format.h
6176 # Handle cpp installation.
6177 if test x$enable_cpp != xno
6178 then
6179 tmake_file="$tmake_file t-install-cpp"
6182 # Say what files are being used for the output code and MD file.
6183 echo "Using \`$srcdir/config/$out_file' to output insns."
6184 echo "Using \`$srcdir/config/$md_file' as machine description file."
6186 count=a
6187 for f in $tm_file; do
6188 count=${count}x
6189 done
6190 if test $count = ax; then
6191 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6192 else
6193 echo "Using the following target machine macro files:"
6194 for f in $tm_file; do
6195 echo " $srcdir/config/$f"
6196 done
6199 count=a
6200 for f in $host_xm_file; do
6201 count=${count}x
6202 done
6203 if test $count = ax; then
6204 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6205 else
6206 echo "Using the following host machine macro files:"
6207 for f in $host_xm_file; do
6208 echo " $srcdir/config/$f"
6209 done
6212 if test "$host_xm_file" != "$build_xm_file"; then
6213 count=a
6214 for f in $build_xm_file; do
6215 count=${count}x
6216 done
6217 if test $count = ax; then
6218 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6219 else
6220 echo "Using the following build machine macro files:"
6221 for f in $build_xm_file; do
6222 echo " $srcdir/config/$f"
6223 done
6227 if test x$thread_file = x; then
6228 if test x$target_thread_file != x; then
6229 thread_file=$target_thread_file
6230 else
6231 thread_file='single'
6235 # Set up the header files.
6236 # $links is the list of header files to create.
6237 # $vars is the list of shell variables with file names to include.
6238 # auto-host.h is the file containing items generated by autoconf and is
6239 # the first file included by config.h.
6240 null_defines=
6241 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6243 # If host=build, it is correct to have hconfig include auto-host.h
6244 # as well. If host!=build, we are in error and need to do more
6245 # work to find out the build config parameters.
6246 if test x$host = x$build
6247 then
6248 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6249 else
6250 # We create a subdir, then run autoconf in the subdir.
6251 # To prevent recursion we set host and build for the new
6252 # invocation of configure to the build for this invocation
6253 # of configure.
6254 tempdir=build.$$
6255 rm -rf $tempdir
6256 mkdir $tempdir
6257 cd $tempdir
6258 case ${srcdir} in
6259 /*) realsrcdir=${srcdir};;
6260 *) realsrcdir=../${srcdir};;
6261 esac
6262 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6263 --target=$target --host=$build --build=$build
6265 # We just finished tests for the build machine, so rename
6266 # the file auto-build.h in the gcc directory.
6267 mv auto-host.h ../auto-build.h
6268 cd ..
6269 rm -rf $tempdir
6270 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6273 xm_file="gansidecl.h ${xm_file}"
6274 tm_file="gansidecl.h ${tm_file}"
6276 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6277 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6278 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6280 rm -f config.bak
6281 if test -f config.status; then mv -f config.status config.bak; fi
6283 # Make the links.
6284 while test -n "$vars"
6286 set $vars; var=$1; shift; vars=$*
6287 set $links; link=$1; shift; links=$*
6288 set $defines; define=$1; shift; defines=$*
6290 rm -f $link
6291 # Make sure the file is created, even if it is empty.
6292 echo >$link
6294 # Define TARGET_CPU_DEFAULT if the system wants one.
6295 # This substitutes for lots of *.h files.
6296 if test "$target_cpu_default" != "" -a $link = tm.h
6297 then
6298 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6301 for file in `eval echo '$'$var`; do
6302 case $file in
6303 auto-config.h)
6306 echo '#ifdef IN_GCC' >>$link
6308 esac
6309 echo "#include \"$file\"" >>$link
6310 case $file in
6311 auto-config.h)
6314 echo '#endif' >>$link
6316 esac
6317 done
6319 for def in `eval echo '$'$define`; do
6320 echo "#ifndef $def" >>$link
6321 echo "#define $def" >>$link
6322 echo "#endif" >>$link
6323 done
6324 done
6326 # Truncate the target if necessary
6327 if test x$host_truncate_target != x; then
6328 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6331 # Get the version trigger filename from the toplevel
6332 if test "${with_gcc_version_trigger+set}" = set; then
6333 gcc_version_trigger=$with_gcc_version_trigger
6334 else
6335 gcc_version_trigger=${srcdir}/version.c
6337 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6339 # Internationalization
6340 PACKAGE=gcc
6341 VERSION="$gcc_version"
6342 cat >> confdefs.h <<EOF
6343 #define PACKAGE "$PACKAGE"
6346 cat >> confdefs.h <<EOF
6347 #define VERSION "$VERSION"
6353 ALL_LINGUAS="en_UK"
6355 # NLS support is still experimental, so disable it by default for now.
6356 # Check whether --enable-nls or --disable-nls was given.
6357 if test "${enable_nls+set}" = set; then
6358 enableval="$enable_nls"
6360 else
6361 enable_nls=no
6366 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6367 echo "configure:6368: checking for strerror in -lcposix" >&5
6368 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6371 else
6372 ac_save_LIBS="$LIBS"
6373 LIBS="-lcposix $LIBS"
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380 char strerror();
6382 int main() {
6383 strerror()
6384 ; return 0; }
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6387 rm -rf conftest*
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6389 else
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6392 rm -rf conftest*
6393 eval "ac_cv_lib_$ac_lib_var=no"
6395 rm -f conftest*
6396 LIBS="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 LIBS="$LIBS -lcposix"
6402 else
6403 echo "$ac_t""no" 1>&6
6408 echo $ac_n "checking for working const""... $ac_c" 1>&6
6409 echo "configure:6410: checking for working const" >&5
6410 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6412 else
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6417 int main() {
6419 /* Ultrix mips cc rejects this. */
6420 typedef int charset[2]; const charset x;
6421 /* SunOS 4.1.1 cc rejects this. */
6422 char const *const *ccp;
6423 char **p;
6424 /* NEC SVR4.0.2 mips cc rejects this. */
6425 struct point {int x, y;};
6426 static struct point const zero = {0,0};
6427 /* AIX XL C 1.02.0.0 rejects this.
6428 It does not let you subtract one const X* pointer from another in an arm
6429 of an if-expression whose if-part is not a constant expression */
6430 const char *g = "string";
6431 ccp = &g + (g ? g-g : 0);
6432 /* HPUX 7.0 cc rejects these. */
6433 ++ccp;
6434 p = (char**) ccp;
6435 ccp = (char const *const *) p;
6436 { /* SCO 3.2v4 cc rejects this. */
6437 char *t;
6438 char const *s = 0 ? (char *) 0 : (char const *) 0;
6440 *t++ = 0;
6442 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6443 int x[] = {25, 17};
6444 const int *foo = &x[0];
6445 ++foo;
6447 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6448 typedef const int *iptr;
6449 iptr p = 0;
6450 ++p;
6452 { /* AIX XL C 1.02.0.0 rejects this saying
6453 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6454 struct s { int j; const int *ap[3]; };
6455 struct s *b; b->j = 5;
6457 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6458 const int foo = 10;
6461 ; return 0; }
6463 if { (eval echo configure:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6464 rm -rf conftest*
6465 ac_cv_c_const=yes
6466 else
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 rm -rf conftest*
6470 ac_cv_c_const=no
6472 rm -f conftest*
6475 echo "$ac_t""$ac_cv_c_const" 1>&6
6476 if test $ac_cv_c_const = no; then
6477 cat >> confdefs.h <<\EOF
6478 #define const
6483 echo $ac_n "checking for inline""... $ac_c" 1>&6
6484 echo "configure:6485: checking for inline" >&5
6485 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6487 else
6488 ac_cv_c_inline=no
6489 for ac_kw in inline __inline__ __inline; do
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6494 int main() {
6495 } $ac_kw foo() {
6496 ; return 0; }
6498 if { (eval echo configure:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6499 rm -rf conftest*
6500 ac_cv_c_inline=$ac_kw; break
6501 else
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 rm -f conftest*
6506 done
6510 echo "$ac_t""$ac_cv_c_inline" 1>&6
6511 case "$ac_cv_c_inline" in
6512 inline | yes) ;;
6513 no) cat >> confdefs.h <<\EOF
6514 #define inline
6517 *) cat >> confdefs.h <<EOF
6518 #define inline $ac_cv_c_inline
6521 esac
6523 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6524 echo "configure:6525: checking for off_t" >&5
6525 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6527 else
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 #include <sys/types.h>
6532 #if STDC_HEADERS
6533 #include <stdlib.h>
6534 #include <stddef.h>
6535 #endif
6537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6538 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6539 rm -rf conftest*
6540 ac_cv_type_off_t=yes
6541 else
6542 rm -rf conftest*
6543 ac_cv_type_off_t=no
6545 rm -f conftest*
6548 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6549 if test $ac_cv_type_off_t = no; then
6550 cat >> confdefs.h <<\EOF
6551 #define off_t long
6556 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6557 echo "configure:6558: checking for size_t" >&5
6558 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6560 else
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 #include <sys/types.h>
6565 #if STDC_HEADERS
6566 #include <stdlib.h>
6567 #include <stddef.h>
6568 #endif
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6572 rm -rf conftest*
6573 ac_cv_type_size_t=yes
6574 else
6575 rm -rf conftest*
6576 ac_cv_type_size_t=no
6578 rm -f conftest*
6581 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6582 if test $ac_cv_type_size_t = no; then
6583 cat >> confdefs.h <<\EOF
6584 #define size_t unsigned
6589 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6590 # for constant arguments. Useless!
6591 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6592 echo "configure:6593: checking for working alloca.h" >&5
6593 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595 else
6596 cat > conftest.$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6599 #include <alloca.h>
6600 int main() {
6601 char *p = alloca(2 * sizeof(int));
6602 ; return 0; }
6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6605 rm -rf conftest*
6606 ac_cv_header_alloca_h=yes
6607 else
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 rm -rf conftest*
6611 ac_cv_header_alloca_h=no
6613 rm -f conftest*
6616 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6617 if test $ac_cv_header_alloca_h = yes; then
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE_ALLOCA_H 1
6624 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6625 echo "configure:6626: checking for alloca" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6628 else
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6633 #ifdef __GNUC__
6634 # define alloca __builtin_alloca
6635 #else
6636 # ifdef _MSC_VER
6637 # include <malloc.h>
6638 # define alloca _alloca
6639 # else
6640 # if HAVE_ALLOCA_H
6641 # include <alloca.h>
6642 # else
6643 # ifdef _AIX
6644 #pragma alloca
6645 # else
6646 # ifndef alloca /* predefined by HP cc +Olibcalls */
6647 char *alloca ();
6648 # endif
6649 # endif
6650 # endif
6651 # endif
6652 #endif
6654 int main() {
6655 char *p = (char *) alloca(1);
6656 ; return 0; }
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 rm -rf conftest*
6660 ac_cv_func_alloca_works=yes
6661 else
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 rm -rf conftest*
6665 ac_cv_func_alloca_works=no
6667 rm -f conftest*
6670 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6671 if test $ac_cv_func_alloca_works = yes; then
6672 cat >> confdefs.h <<\EOF
6673 #define HAVE_ALLOCA 1
6678 if test $ac_cv_func_alloca_works = no; then
6679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6680 # that cause trouble. Some versions do not even contain alloca or
6681 # contain a buggy version. If you still want to use their alloca,
6682 # use ar to extract alloca.o from them instead of compiling alloca.c.
6683 ALLOCA=alloca.${ac_objext}
6684 cat >> confdefs.h <<\EOF
6685 #define C_ALLOCA 1
6689 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6690 echo "configure:6691: checking whether alloca needs Cray hooks" >&5
6691 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6693 else
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 #if defined(CRAY) && ! defined(CRAY2)
6698 webecray
6699 #else
6700 wenotbecray
6701 #endif
6704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6705 egrep "webecray" >/dev/null 2>&1; then
6706 rm -rf conftest*
6707 ac_cv_os_cray=yes
6708 else
6709 rm -rf conftest*
6710 ac_cv_os_cray=no
6712 rm -f conftest*
6716 echo "$ac_t""$ac_cv_os_cray" 1>&6
6717 if test $ac_cv_os_cray = yes; then
6718 for ac_func in _getb67 GETB67 getb67; do
6719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6720 echo "configure:6721: checking for $ac_func" >&5
6721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6723 else
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* System header to define __stub macros and hopefully few prototypes,
6728 which can conflict with char $ac_func(); below. */
6729 #include <assert.h>
6730 /* Override any gcc2 internal prototype to avoid an error. */
6731 /* We use char because int might match the return type of a gcc2
6732 builtin and then its argument prototype would still apply. */
6733 char $ac_func();
6735 int main() {
6737 /* The GNU C library defines this for functions which it implements
6738 to always fail with ENOSYS. Some functions are actually named
6739 something starting with __ and the normal name is an alias. */
6740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6741 choke me
6742 #else
6743 $ac_func();
6744 #endif
6746 ; return 0; }
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6749 rm -rf conftest*
6750 eval "ac_cv_func_$ac_func=yes"
6751 else
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6754 rm -rf conftest*
6755 eval "ac_cv_func_$ac_func=no"
6757 rm -f conftest*
6760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 cat >> confdefs.h <<EOF
6763 #define CRAY_STACKSEG_END $ac_func
6766 break
6767 else
6768 echo "$ac_t""no" 1>&6
6771 done
6774 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6775 echo "configure:6776: checking stack direction for C alloca" >&5
6776 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6778 else
6779 if test "$cross_compiling" = yes; then
6780 ac_cv_c_stack_direction=0
6781 else
6782 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 find_stack_direction ()
6787 static char *addr = 0;
6788 auto char dummy;
6789 if (addr == 0)
6791 addr = &dummy;
6792 return find_stack_direction ();
6794 else
6795 return (&dummy > addr) ? 1 : -1;
6797 main ()
6799 exit (find_stack_direction() < 0);
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6803 then
6804 ac_cv_c_stack_direction=1
6805 else
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 rm -fr conftest*
6809 ac_cv_c_stack_direction=-1
6811 rm -fr conftest*
6816 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6817 cat >> confdefs.h <<EOF
6818 #define STACK_DIRECTION $ac_cv_c_stack_direction
6823 for ac_hdr in unistd.h
6825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_hdr" >&5
6828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6830 else
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 #include <$ac_hdr>
6836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6837 { (eval echo configure:6838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6839 if test -z "$ac_err"; then
6840 rm -rf conftest*
6841 eval "ac_cv_header_$ac_safe=yes"
6842 else
6843 echo "$ac_err" >&5
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 rm -rf conftest*
6847 eval "ac_cv_header_$ac_safe=no"
6849 rm -f conftest*
6851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6854 cat >> confdefs.h <<EOF
6855 #define $ac_tr_hdr 1
6858 else
6859 echo "$ac_t""no" 1>&6
6861 done
6863 for ac_func in getpagesize
6865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6866 echo "configure:6867: checking for $ac_func" >&5
6867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6869 else
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* System header to define __stub macros and hopefully few prototypes,
6874 which can conflict with char $ac_func(); below. */
6875 #include <assert.h>
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char $ac_func();
6881 int main() {
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6887 choke me
6888 #else
6889 $ac_func();
6890 #endif
6892 ; return 0; }
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6895 rm -rf conftest*
6896 eval "ac_cv_func_$ac_func=yes"
6897 else
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6900 rm -rf conftest*
6901 eval "ac_cv_func_$ac_func=no"
6903 rm -f conftest*
6906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6907 echo "$ac_t""yes" 1>&6
6908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6909 cat >> confdefs.h <<EOF
6910 #define $ac_tr_func 1
6913 else
6914 echo "$ac_t""no" 1>&6
6916 done
6918 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6919 echo "configure:6920: checking for working mmap" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6922 else
6923 if test "$cross_compiling" = yes; then
6924 ac_cv_func_mmap_fixed_mapped=no
6925 else
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6930 /* Thanks to Mike Haertel and Jim Avera for this test.
6931 Here is a matrix of mmap possibilities:
6932 mmap private not fixed
6933 mmap private fixed at somewhere currently unmapped
6934 mmap private fixed at somewhere already mapped
6935 mmap shared not fixed
6936 mmap shared fixed at somewhere currently unmapped
6937 mmap shared fixed at somewhere already mapped
6938 For private mappings, we should verify that changes cannot be read()
6939 back from the file, nor mmap's back from the file at a different
6940 address. (There have been systems where private was not correctly
6941 implemented like the infamous i386 svr4.0, and systems where the
6942 VM page cache was not coherent with the filesystem buffer cache
6943 like early versions of FreeBSD and possibly contemporary NetBSD.)
6944 For shared mappings, we should conversely verify that changes get
6945 propogated back to all the places they're supposed to be.
6947 Grep wants private fixed already mapped.
6948 The main things grep needs to know about mmap are:
6949 * does it exist and is it safe to write into the mmap'd area
6950 * how to use it (BSD variants) */
6951 #include <sys/types.h>
6952 #include <fcntl.h>
6953 #include <sys/mman.h>
6955 /* This mess was copied from the GNU getpagesize.h. */
6956 #ifndef HAVE_GETPAGESIZE
6957 # ifdef HAVE_UNISTD_H
6958 # include <unistd.h>
6959 # endif
6961 /* Assume that all systems that can run configure have sys/param.h. */
6962 # ifndef HAVE_SYS_PARAM_H
6963 # define HAVE_SYS_PARAM_H 1
6964 # endif
6966 # ifdef _SC_PAGESIZE
6967 # define getpagesize() sysconf(_SC_PAGESIZE)
6968 # else /* no _SC_PAGESIZE */
6969 # ifdef HAVE_SYS_PARAM_H
6970 # include <sys/param.h>
6971 # ifdef EXEC_PAGESIZE
6972 # define getpagesize() EXEC_PAGESIZE
6973 # else /* no EXEC_PAGESIZE */
6974 # ifdef NBPG
6975 # define getpagesize() NBPG * CLSIZE
6976 # ifndef CLSIZE
6977 # define CLSIZE 1
6978 # endif /* no CLSIZE */
6979 # else /* no NBPG */
6980 # ifdef NBPC
6981 # define getpagesize() NBPC
6982 # else /* no NBPC */
6983 # ifdef PAGESIZE
6984 # define getpagesize() PAGESIZE
6985 # endif /* PAGESIZE */
6986 # endif /* no NBPC */
6987 # endif /* no NBPG */
6988 # endif /* no EXEC_PAGESIZE */
6989 # else /* no HAVE_SYS_PARAM_H */
6990 # define getpagesize() 8192 /* punt totally */
6991 # endif /* no HAVE_SYS_PARAM_H */
6992 # endif /* no _SC_PAGESIZE */
6994 #endif /* no HAVE_GETPAGESIZE */
6996 #ifdef __cplusplus
6997 extern "C" { void *malloc(unsigned); }
6998 #else
6999 char *malloc();
7000 #endif
7003 main()
7005 char *data, *data2, *data3;
7006 int i, pagesize;
7007 int fd;
7009 pagesize = getpagesize();
7012 * First, make a file with some known garbage in it.
7014 data = malloc(pagesize);
7015 if (!data)
7016 exit(1);
7017 for (i = 0; i < pagesize; ++i)
7018 *(data + i) = rand();
7019 umask(0);
7020 fd = creat("conftestmmap", 0600);
7021 if (fd < 0)
7022 exit(1);
7023 if (write(fd, data, pagesize) != pagesize)
7024 exit(1);
7025 close(fd);
7028 * Next, try to mmap the file at a fixed address which
7029 * already has something else allocated at it. If we can,
7030 * also make sure that we see the same garbage.
7032 fd = open("conftestmmap", O_RDWR);
7033 if (fd < 0)
7034 exit(1);
7035 data2 = malloc(2 * pagesize);
7036 if (!data2)
7037 exit(1);
7038 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7039 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7040 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7041 exit(1);
7042 for (i = 0; i < pagesize; ++i)
7043 if (*(data + i) != *(data2 + i))
7044 exit(1);
7047 * Finally, make sure that changes to the mapped area
7048 * do not percolate back to the file as seen by read().
7049 * (This is a bug on some variants of i386 svr4.0.)
7051 for (i = 0; i < pagesize; ++i)
7052 *(data2 + i) = *(data2 + i) + 1;
7053 data3 = malloc(pagesize);
7054 if (!data3)
7055 exit(1);
7056 if (read(fd, data3, pagesize) != pagesize)
7057 exit(1);
7058 for (i = 0; i < pagesize; ++i)
7059 if (*(data + i) != *(data3 + i))
7060 exit(1);
7061 close(fd);
7062 unlink("conftestmmap");
7063 exit(0);
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7068 then
7069 ac_cv_func_mmap_fixed_mapped=yes
7070 else
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 rm -fr conftest*
7074 ac_cv_func_mmap_fixed_mapped=no
7076 rm -fr conftest*
7081 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7082 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7083 cat >> confdefs.h <<\EOF
7084 #define HAVE_MMAP 1
7090 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7091 unistd.h sys/param.h
7093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7095 echo "configure:7096: checking for $ac_hdr" >&5
7096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7098 else
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 #include <$ac_hdr>
7104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7105 { (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7107 if test -z "$ac_err"; then
7108 rm -rf conftest*
7109 eval "ac_cv_header_$ac_safe=yes"
7110 else
7111 echo "$ac_err" >&5
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 rm -rf conftest*
7115 eval "ac_cv_header_$ac_safe=no"
7117 rm -f conftest*
7119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7120 echo "$ac_t""yes" 1>&6
7121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7122 cat >> confdefs.h <<EOF
7123 #define $ac_tr_hdr 1
7126 else
7127 echo "$ac_t""no" 1>&6
7129 done
7131 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7132 strdup __argz_count __argz_stringify __argz_next
7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7138 else
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */
7144 #include <assert.h>
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7148 char $ac_func();
7150 int main() {
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 choke me
7157 #else
7158 $ac_func();
7159 #endif
7161 ; return 0; }
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 rm -rf conftest*
7165 eval "ac_cv_func_$ac_func=yes"
7166 else
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 rm -rf conftest*
7170 eval "ac_cv_func_$ac_func=no"
7172 rm -f conftest*
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_func 1
7182 else
7183 echo "$ac_t""no" 1>&6
7185 done
7188 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7189 for ac_func in stpcpy
7191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7192 echo "configure:7193: checking for $ac_func" >&5
7193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7195 else
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* System header to define __stub macros and hopefully few prototypes,
7200 which can conflict with char $ac_func(); below. */
7201 #include <assert.h>
7202 /* Override any gcc2 internal prototype to avoid an error. */
7203 /* We use char because int might match the return type of a gcc2
7204 builtin and then its argument prototype would still apply. */
7205 char $ac_func();
7207 int main() {
7209 /* The GNU C library defines this for functions which it implements
7210 to always fail with ENOSYS. Some functions are actually named
7211 something starting with __ and the normal name is an alias. */
7212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7213 choke me
7214 #else
7215 $ac_func();
7216 #endif
7218 ; return 0; }
7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 rm -rf conftest*
7222 eval "ac_cv_func_$ac_func=yes"
7223 else
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7226 rm -rf conftest*
7227 eval "ac_cv_func_$ac_func=no"
7229 rm -f conftest*
7232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7235 cat >> confdefs.h <<EOF
7236 #define $ac_tr_func 1
7239 else
7240 echo "$ac_t""no" 1>&6
7242 done
7245 if test "${ac_cv_func_stpcpy}" = "yes"; then
7246 cat >> confdefs.h <<\EOF
7247 #define HAVE_STPCPY 1
7252 if test $ac_cv_header_locale_h = yes; then
7253 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7254 echo "configure:7255: checking for LC_MESSAGES" >&5
7255 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7257 else
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7261 #include <locale.h>
7262 int main() {
7263 return LC_MESSAGES
7264 ; return 0; }
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7267 rm -rf conftest*
7268 am_cv_val_LC_MESSAGES=yes
7269 else
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 rm -rf conftest*
7273 am_cv_val_LC_MESSAGES=no
7275 rm -f conftest*
7278 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7279 if test $am_cv_val_LC_MESSAGES = yes; then
7280 cat >> confdefs.h <<\EOF
7281 #define HAVE_LC_MESSAGES 1
7286 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7287 echo "configure:7288: checking whether NLS is requested" >&5
7288 # Check whether --enable-nls or --disable-nls was given.
7289 if test "${enable_nls+set}" = set; then
7290 enableval="$enable_nls"
7291 USE_NLS=$enableval
7292 else
7293 USE_NLS=yes
7296 echo "$ac_t""$USE_NLS" 1>&6
7299 USE_INCLUDED_LIBINTL=no
7301 if test "$USE_NLS" = "yes"; then
7302 cat >> confdefs.h <<\EOF
7303 #define ENABLE_NLS 1
7306 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7307 echo "configure:7308: checking whether included gettext is requested" >&5
7308 # Check whether --with-included-gettext or --without-included-gettext was given.
7309 if test "${with_included_gettext+set}" = set; then
7310 withval="$with_included_gettext"
7311 nls_cv_force_use_gnu_gettext=$withval
7312 else
7313 nls_cv_force_use_gnu_gettext=no
7316 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7318 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7319 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7320 nls_cv_header_intl=
7321 nls_cv_header_libgt=
7322 CATOBJEXT=NONE
7324 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7325 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7326 echo "configure:7327: checking for libintl.h" >&5
7327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7329 else
7330 cat > conftest.$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 #include <libintl.h>
7335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7336 { (eval echo configure:7337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7338 if test -z "$ac_err"; then
7339 rm -rf conftest*
7340 eval "ac_cv_header_$ac_safe=yes"
7341 else
7342 echo "$ac_err" >&5
7343 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7345 rm -rf conftest*
7346 eval "ac_cv_header_$ac_safe=no"
7348 rm -f conftest*
7350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7351 echo "$ac_t""yes" 1>&6
7352 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7353 echo "configure:7354: checking for gettext in libc" >&5
7354 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7356 else
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 #include <libintl.h>
7361 int main() {
7362 return (int) gettext ("")
7363 ; return 0; }
7365 if { (eval echo configure:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 rm -rf conftest*
7367 gt_cv_func_gettext_libc=yes
7368 else
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7371 rm -rf conftest*
7372 gt_cv_func_gettext_libc=no
7374 rm -f conftest*
7377 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7379 if test "$gt_cv_func_gettext_libc" != "yes"; then
7380 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7381 echo "configure:7382: checking for bindtextdomain in -lintl" >&5
7382 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7385 else
7386 ac_save_LIBS="$LIBS"
7387 LIBS="-lintl $LIBS"
7388 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7391 /* Override any gcc2 internal prototype to avoid an error. */
7392 /* We use char because int might match the return type of a gcc2
7393 builtin and then its argument prototype would still apply. */
7394 char bindtextdomain();
7396 int main() {
7397 bindtextdomain()
7398 ; return 0; }
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7401 rm -rf conftest*
7402 eval "ac_cv_lib_$ac_lib_var=yes"
7403 else
7404 echo "configure: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7406 rm -rf conftest*
7407 eval "ac_cv_lib_$ac_lib_var=no"
7409 rm -f conftest*
7410 LIBS="$ac_save_LIBS"
7413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7414 echo "$ac_t""yes" 1>&6
7415 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7416 echo "configure:7417: checking for gettext in libintl" >&5
7417 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7420 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7421 echo "configure:7422: checking for gettext in -lintl" >&5
7422 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7424 echo $ac_n "(cached) $ac_c" 1>&6
7425 else
7426 ac_save_LIBS="$LIBS"
7427 LIBS="-lintl $LIBS"
7428 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7431 /* Override any gcc2 internal prototype to avoid an error. */
7432 /* We use char because int might match the return type of a gcc2
7433 builtin and then its argument prototype would still apply. */
7434 char gettext();
7436 int main() {
7437 gettext()
7438 ; return 0; }
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7441 rm -rf conftest*
7442 eval "ac_cv_lib_$ac_lib_var=yes"
7443 else
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7446 rm -rf conftest*
7447 eval "ac_cv_lib_$ac_lib_var=no"
7449 rm -f conftest*
7450 LIBS="$ac_save_LIBS"
7453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 gt_cv_func_gettext_libintl=yes
7456 else
7457 echo "$ac_t""no" 1>&6
7458 gt_cv_func_gettext_libintl=no
7463 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7464 else
7465 echo "$ac_t""no" 1>&6
7470 if test "$gt_cv_func_gettext_libc" = "yes" \
7471 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7472 cat >> confdefs.h <<\EOF
7473 #define HAVE_GETTEXT 1
7476 # Extract the first word of "msgfmt", so it can be a program name with args.
7477 set dummy msgfmt; ac_word=$2
7478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7479 echo "configure:7480: checking for $ac_word" >&5
7480 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7482 else
7483 case "$MSGFMT" in
7485 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7489 for ac_dir in $PATH; do
7490 test -z "$ac_dir" && ac_dir=.
7491 if test -f $ac_dir/$ac_word; then
7492 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7493 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7494 break
7497 done
7498 IFS="$ac_save_ifs"
7499 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7501 esac
7503 MSGFMT="$ac_cv_path_MSGFMT"
7504 if test -n "$MSGFMT"; then
7505 echo "$ac_t""$MSGFMT" 1>&6
7506 else
7507 echo "$ac_t""no" 1>&6
7509 if test "$MSGFMT" != "no"; then
7510 for ac_func in dcgettext
7512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7513 echo "configure:7514: checking for $ac_func" >&5
7514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7516 else
7517 cat > conftest.$ac_ext <<EOF
7518 #line 7519 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func(); below. */
7522 #include <assert.h>
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7526 char $ac_func();
7528 int main() {
7530 /* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
7533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7534 choke me
7535 #else
7536 $ac_func();
7537 #endif
7539 ; return 0; }
7541 if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7542 rm -rf conftest*
7543 eval "ac_cv_func_$ac_func=yes"
7544 else
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 rm -rf conftest*
7548 eval "ac_cv_func_$ac_func=no"
7550 rm -f conftest*
7553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7556 cat >> confdefs.h <<EOF
7557 #define $ac_tr_func 1
7560 else
7561 echo "$ac_t""no" 1>&6
7563 done
7565 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7566 set dummy gmsgfmt; ac_word=$2
7567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_word" >&5
7569 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7571 else
7572 case "$GMSGFMT" in
7574 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7576 ?:/*)
7577 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7581 ac_dummy="$PATH"
7582 for ac_dir in $ac_dummy; do
7583 test -z "$ac_dir" && ac_dir=.
7584 if test -f $ac_dir/$ac_word; then
7585 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7586 break
7588 done
7589 IFS="$ac_save_ifs"
7590 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7592 esac
7594 GMSGFMT="$ac_cv_path_GMSGFMT"
7595 if test -n "$GMSGFMT"; then
7596 echo "$ac_t""$GMSGFMT" 1>&6
7597 else
7598 echo "$ac_t""no" 1>&6
7601 # Extract the first word of "xgettext", so it can be a program name with args.
7602 set dummy xgettext; ac_word=$2
7603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_word" >&5
7605 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7607 else
7608 case "$XGETTEXT" in
7610 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7614 for ac_dir in $PATH; do
7615 test -z "$ac_dir" && ac_dir=.
7616 if test -f $ac_dir/$ac_word; then
7617 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7618 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7619 break
7622 done
7623 IFS="$ac_save_ifs"
7624 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7626 esac
7628 XGETTEXT="$ac_cv_path_XGETTEXT"
7629 if test -n "$XGETTEXT"; then
7630 echo "$ac_t""$XGETTEXT" 1>&6
7631 else
7632 echo "$ac_t""no" 1>&6
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7639 int main() {
7640 extern int _nl_msg_cat_cntr;
7641 return _nl_msg_cat_cntr
7642 ; return 0; }
7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7645 rm -rf conftest*
7646 CATOBJEXT=.gmo
7647 DATADIRNAME=share
7648 else
7649 echo "configure: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7651 rm -rf conftest*
7652 CATOBJEXT=.mo
7653 DATADIRNAME=lib
7655 rm -f conftest*
7656 INSTOBJEXT=.mo
7660 else
7661 echo "$ac_t""no" 1>&6
7665 if test "$CATOBJEXT" = "NONE"; then
7666 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7667 echo "configure:7668: checking whether catgets can be used" >&5
7668 # Check whether --with-catgets or --without-catgets was given.
7669 if test "${with_catgets+set}" = set; then
7670 withval="$with_catgets"
7671 nls_cv_use_catgets=$withval
7672 else
7673 nls_cv_use_catgets=no
7676 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7678 if test "$nls_cv_use_catgets" = "yes"; then
7679 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7680 echo "configure:7681: checking for main in -li" >&5
7681 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7684 else
7685 ac_save_LIBS="$LIBS"
7686 LIBS="-li $LIBS"
7687 cat > conftest.$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7691 int main() {
7692 main()
7693 ; return 0; }
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 rm -rf conftest*
7697 eval "ac_cv_lib_$ac_lib_var=yes"
7698 else
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 rm -rf conftest*
7702 eval "ac_cv_lib_$ac_lib_var=no"
7704 rm -f conftest*
7705 LIBS="$ac_save_LIBS"
7708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7709 echo "$ac_t""yes" 1>&6
7710 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7711 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7712 cat >> confdefs.h <<EOF
7713 #define $ac_tr_lib 1
7716 LIBS="-li $LIBS"
7718 else
7719 echo "$ac_t""no" 1>&6
7722 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7723 echo "configure:7724: checking for catgets" >&5
7724 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7726 else
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char catgets(); below. */
7732 #include <assert.h>
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7736 char catgets();
7738 int main() {
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_catgets) || defined (__stub___catgets)
7744 choke me
7745 #else
7746 catgets();
7747 #endif
7749 ; return 0; }
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 rm -rf conftest*
7753 eval "ac_cv_func_catgets=yes"
7754 else
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 rm -rf conftest*
7758 eval "ac_cv_func_catgets=no"
7760 rm -f conftest*
7763 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 cat >> confdefs.h <<\EOF
7766 #define HAVE_CATGETS 1
7769 INTLOBJS="\$(CATOBJS)"
7770 # Extract the first word of "gencat", so it can be a program name with args.
7771 set dummy gencat; ac_word=$2
7772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_word" >&5
7774 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777 case "$GENCAT" in
7779 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7781 ?:/*)
7782 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7786 ac_dummy="$PATH"
7787 for ac_dir in $ac_dummy; do
7788 test -z "$ac_dir" && ac_dir=.
7789 if test -f $ac_dir/$ac_word; then
7790 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7791 break
7793 done
7794 IFS="$ac_save_ifs"
7795 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7797 esac
7799 GENCAT="$ac_cv_path_GENCAT"
7800 if test -n "$GENCAT"; then
7801 echo "$ac_t""$GENCAT" 1>&6
7802 else
7803 echo "$ac_t""no" 1>&6
7805 if test "$GENCAT" != "no"; then
7806 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7807 set dummy gmsgfmt; ac_word=$2
7808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7809 echo "configure:7810: checking for $ac_word" >&5
7810 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7812 else
7813 case "$GMSGFMT" in
7815 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7817 ?:/*)
7818 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7822 ac_dummy="$PATH"
7823 for ac_dir in $ac_dummy; do
7824 test -z "$ac_dir" && ac_dir=.
7825 if test -f $ac_dir/$ac_word; then
7826 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7827 break
7829 done
7830 IFS="$ac_save_ifs"
7831 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7833 esac
7835 GMSGFMT="$ac_cv_path_GMSGFMT"
7836 if test -n "$GMSGFMT"; then
7837 echo "$ac_t""$GMSGFMT" 1>&6
7838 else
7839 echo "$ac_t""no" 1>&6
7842 if test "$GMSGFMT" = "no"; then
7843 # Extract the first word of "msgfmt", so it can be a program name with args.
7844 set dummy msgfmt; ac_word=$2
7845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7846 echo "configure:7847: checking for $ac_word" >&5
7847 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7848 echo $ac_n "(cached) $ac_c" 1>&6
7849 else
7850 case "$GMSGFMT" in
7852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7856 for ac_dir in $PATH; do
7857 test -z "$ac_dir" && ac_dir=.
7858 if test -f $ac_dir/$ac_word; then
7859 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7860 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7861 break
7864 done
7865 IFS="$ac_save_ifs"
7866 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7868 esac
7870 GMSGFMT="$ac_cv_path_GMSGFMT"
7871 if test -n "$GMSGFMT"; then
7872 echo "$ac_t""$GMSGFMT" 1>&6
7873 else
7874 echo "$ac_t""no" 1>&6
7878 # Extract the first word of "xgettext", so it can be a program name with args.
7879 set dummy xgettext; ac_word=$2
7880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7881 echo "configure:7882: checking for $ac_word" >&5
7882 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7884 else
7885 case "$XGETTEXT" in
7887 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7891 for ac_dir in $PATH; do
7892 test -z "$ac_dir" && ac_dir=.
7893 if test -f $ac_dir/$ac_word; then
7894 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7895 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7896 break
7899 done
7900 IFS="$ac_save_ifs"
7901 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7903 esac
7905 XGETTEXT="$ac_cv_path_XGETTEXT"
7906 if test -n "$XGETTEXT"; then
7907 echo "$ac_t""$XGETTEXT" 1>&6
7908 else
7909 echo "$ac_t""no" 1>&6
7912 USE_INCLUDED_LIBINTL=yes
7913 CATOBJEXT=.cat
7914 INSTOBJEXT=.cat
7915 DATADIRNAME=lib
7916 INTLDEPS='$(top_builddir)/intl/libintl.a'
7917 INTLLIBS=$INTLDEPS
7918 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7919 nls_cv_header_intl=intl/libintl.h
7920 nls_cv_header_libgt=intl/libgettext.h
7922 else
7923 echo "$ac_t""no" 1>&6
7929 if test "$CATOBJEXT" = "NONE"; then
7930 nls_cv_use_gnu_gettext=yes
7934 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7935 INTLOBJS="\$(GETTOBJS)"
7936 # Extract the first word of "msgfmt", so it can be a program name with args.
7937 set dummy msgfmt; ac_word=$2
7938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7939 echo "configure:7940: checking for $ac_word" >&5
7940 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7942 else
7943 case "$MSGFMT" in
7945 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7949 for ac_dir in $PATH; do
7950 test -z "$ac_dir" && ac_dir=.
7951 if test -f $ac_dir/$ac_word; then
7952 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7953 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7954 break
7957 done
7958 IFS="$ac_save_ifs"
7959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7961 esac
7963 MSGFMT="$ac_cv_path_MSGFMT"
7964 if test -n "$MSGFMT"; then
7965 echo "$ac_t""$MSGFMT" 1>&6
7966 else
7967 echo "$ac_t""no" 1>&6
7970 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7971 set dummy gmsgfmt; ac_word=$2
7972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7973 echo "configure:7974: checking for $ac_word" >&5
7974 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7976 else
7977 case "$GMSGFMT" in
7979 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7981 ?:/*)
7982 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7986 ac_dummy="$PATH"
7987 for ac_dir in $ac_dummy; do
7988 test -z "$ac_dir" && ac_dir=.
7989 if test -f $ac_dir/$ac_word; then
7990 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7991 break
7993 done
7994 IFS="$ac_save_ifs"
7995 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7997 esac
7999 GMSGFMT="$ac_cv_path_GMSGFMT"
8000 if test -n "$GMSGFMT"; then
8001 echo "$ac_t""$GMSGFMT" 1>&6
8002 else
8003 echo "$ac_t""no" 1>&6
8006 # Extract the first word of "xgettext", so it can be a program name with args.
8007 set dummy xgettext; ac_word=$2
8008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8009 echo "configure:8010: checking for $ac_word" >&5
8010 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013 case "$XGETTEXT" in
8015 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8019 for ac_dir in $PATH; do
8020 test -z "$ac_dir" && ac_dir=.
8021 if test -f $ac_dir/$ac_word; then
8022 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8023 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8024 break
8027 done
8028 IFS="$ac_save_ifs"
8029 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8031 esac
8033 XGETTEXT="$ac_cv_path_XGETTEXT"
8034 if test -n "$XGETTEXT"; then
8035 echo "$ac_t""$XGETTEXT" 1>&6
8036 else
8037 echo "$ac_t""no" 1>&6
8041 USE_INCLUDED_LIBINTL=yes
8042 CATOBJEXT=.gmo
8043 INSTOBJEXT=.mo
8044 DATADIRNAME=share
8045 INTLDEPS='$(top_builddir)/intl/libintl.a'
8046 INTLLIBS=$INTLDEPS
8047 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8048 nls_cv_header_intl=intl/libintl.h
8049 nls_cv_header_libgt=intl/libgettext.h
8052 if test "$XGETTEXT" != ":"; then
8053 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8055 else
8056 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8057 XGETTEXT=":"
8061 # We need to process the po/ directory.
8062 POSUB=po
8063 else
8064 DATADIRNAME=share
8065 nls_cv_header_intl=intl/libintl.h
8066 nls_cv_header_libgt=intl/libgettext.h
8072 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8073 # because some of the sources are only built for this goal.
8074 if test "$PACKAGE" = gettext; then
8075 USE_NLS=yes
8076 USE_INCLUDED_LIBINTL=yes
8079 for lang in $ALL_LINGUAS; do
8080 GMOFILES="$GMOFILES $lang.gmo"
8081 POFILES="$POFILES $lang.po"
8082 done
8097 if test "x$CATOBJEXT" != "x"; then
8098 if test "x$ALL_LINGUAS" = "x"; then
8099 LINGUAS=
8100 else
8101 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8102 echo "configure:8103: checking for catalogs to be installed" >&5
8103 NEW_LINGUAS=
8104 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8105 case "$ALL_LINGUAS" in
8106 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8107 esac
8108 done
8109 LINGUAS=$NEW_LINGUAS
8110 echo "$ac_t""$LINGUAS" 1>&6
8113 if test -n "$LINGUAS"; then
8114 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8118 if test $ac_cv_header_locale_h = yes; then
8119 INCLUDE_LOCALE_H="#include <locale.h>"
8120 else
8121 INCLUDE_LOCALE_H="\
8122 /* The system does not provide the header <locale.h>. Take care yourself. */"
8126 test -d intl || mkdir intl
8127 if test "$CATOBJEXT" = ".cat"; then
8128 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8129 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8130 echo "configure:8131: checking for linux/version.h" >&5
8131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8132 echo $ac_n "(cached) $ac_c" 1>&6
8133 else
8134 cat > conftest.$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8137 #include <linux/version.h>
8139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8140 { (eval echo configure:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8142 if test -z "$ac_err"; then
8143 rm -rf conftest*
8144 eval "ac_cv_header_$ac_safe=yes"
8145 else
8146 echo "$ac_err" >&5
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8149 rm -rf conftest*
8150 eval "ac_cv_header_$ac_safe=no"
8152 rm -f conftest*
8154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 msgformat=linux
8157 else
8158 echo "$ac_t""no" 1>&6
8159 msgformat=xopen
8163 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8165 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8166 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8168 if test "$PACKAGE" = "gettext"; then
8169 GT_NO="#NO#"
8170 GT_YES=
8171 else
8172 GT_NO=
8173 GT_YES="#YES#"
8178 MKINSTALLDIRS=
8179 if test -n "$ac_aux_dir"; then
8180 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8182 if test -z "$MKINSTALLDIRS"; then
8183 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8190 test -d po || mkdir po
8191 if test "x$srcdir" != "x."; then
8192 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8193 posrcprefix="$srcdir/"
8194 else
8195 posrcprefix="../$srcdir/"
8197 else
8198 posrcprefix="../"
8200 rm -f po/POTFILES
8201 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8202 < $srcdir/po/POTFILES.in > po/POTFILES
8204 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8206 # Windows32 Registry support for specifying GCC installation paths.
8207 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8208 if test "${enable_win32_registry+set}" = set; then
8209 enableval="$enable_win32_registry"
8214 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8215 echo "configure:8216: checking whether windows registry support is requested" >&5
8216 if test x$enable_win32_registry != xno; then
8217 cat >> confdefs.h <<\EOF
8218 #define ENABLE_WIN32_REGISTRY 1
8221 echo "$ac_t""yes" 1>&6
8222 else
8223 echo "$ac_t""no" 1>&6
8226 # Check if user specified a different registry key.
8227 case x${enable_win32_registry} in
8228 x | xyes)
8229 # default.
8230 gcc_cv_win32_registry_key="$VERSION"
8232 xno)
8233 # no registry lookup.
8234 gcc_cv_win32_registry_key=''
8237 # user-specified key.
8238 gcc_cv_win32_registry_key="$enable_win32_registry"
8240 esac
8242 if test x$enable_win32_registry != xno; then
8243 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8244 echo "configure:8245: checking registry key on windows hosts" >&5
8245 cat >> confdefs.h <<EOF
8246 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8249 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8252 # Get an absolute path to the GCC top-level source directory
8253 holddir=`pwd`
8254 cd $srcdir
8255 topdir=`pwd`
8256 cd $holddir
8258 # Conditionalize the makefile for this host machine.
8259 # Make-host contains the concatenation of all host makefile fragments
8260 # [there can be more than one]. This file is built by configure.frag.
8261 host_overrides=Make-host
8262 dep_host_xmake_file=
8263 for f in .. ${host_xmake_file}
8265 if test -f ${srcdir}/config/$f
8266 then
8267 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8269 done
8271 # Conditionalize the makefile for this target machine.
8272 # Make-target contains the concatenation of all host makefile fragments
8273 # [there can be more than one]. This file is built by configure.frag.
8274 target_overrides=Make-target
8275 dep_tmake_file=
8276 for f in .. ${tmake_file}
8278 if test -f ${srcdir}/config/$f
8279 then
8280 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8282 done
8284 # If the host doesn't support symlinks, modify CC in
8285 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8286 # Otherwise, we can use "CC=$(CC)".
8287 rm -f symtest.tem
8288 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8289 then
8290 cc_set_by_configure="\$(CC)"
8291 quoted_cc_set_by_configure="\$(CC)"
8292 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8293 else
8294 rm -f symtest.tem
8295 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8296 then
8297 symbolic_link="cp -p"
8298 else
8299 symbolic_link="cp"
8301 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8302 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8303 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8305 rm -f symtest.tem
8307 out_object_file=`basename $out_file .c`.o
8309 tm_file_list=
8310 for f in $tm_file; do
8311 case $f in
8312 gansidecl.h )
8313 tm_file_list="${tm_file_list} $f" ;;
8314 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8315 esac
8316 done
8318 host_xm_file_list=
8319 for f in $host_xm_file; do
8320 case $f in
8321 auto-host.h | gansidecl.h | hwint.h )
8322 host_xm_file_list="${host_xm_file_list} $f" ;;
8323 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8324 esac
8325 done
8327 build_xm_file_list=
8328 for f in $build_xm_file; do
8329 case $f in
8330 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8331 build_xm_file_list="${build_xm_file_list} $f" ;;
8332 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8333 esac
8334 done
8336 # Define macro CROSS_COMPILE in compilation
8337 # if this is a cross-compiler.
8338 # Also use all.cross instead of all.internal
8339 # and add cross-make to Makefile.
8340 cross_overrides="/dev/null"
8341 if test x$host != x$target
8342 then
8343 cross_defines="CROSS=-DCROSS_COMPILE"
8344 cross_overrides="${topdir}/cross-make"
8347 # When building gcc with a cross-compiler, we need to fix a few things.
8348 # This must come after cross-make as we want all.build to override
8349 # all.cross.
8350 build_overrides="/dev/null"
8351 if test x$build != x$host
8352 then
8353 build_overrides="${topdir}/build-make"
8356 # Expand extra_headers to include complete path.
8357 # This substitutes for lots of t-* files.
8358 extra_headers_list=
8359 if test "x$extra_headers" = x
8360 then true
8361 else
8362 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8363 for file in $extra_headers;
8365 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8366 done
8369 if test x$use_collect2 = xno; then
8370 use_collect2=
8373 # Add a definition of USE_COLLECT2 if system wants one.
8374 # Also tell toplev.c what to do.
8375 # This substitutes for lots of t-* files.
8376 if test x$use_collect2 = x
8377 then
8378 will_use_collect2=
8379 maybe_use_collect2=
8380 else
8381 will_use_collect2="collect2"
8382 maybe_use_collect2="-DUSE_COLLECT2"
8385 # NEED TO CONVERT
8386 # Set MD_DEPS if the real md file is in md.pre-cpp.
8387 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8388 # for line oriented comments, so we must always use a GNU cpp. If
8389 # building gcc with a cross compiler, use the cross compiler just
8390 # built. Otherwise, we can use the cpp just built.
8391 md_file_sub=
8392 if test "x$md_cppflags" = x
8393 then
8394 md_file_sub=$srcdir/config/$md_file
8395 else
8396 md_file=md
8399 # If we have gas in the build tree, make a link to it.
8400 if test -f ../gas/Makefile; then
8401 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8404 # If we have nm in the build tree, make a link to it.
8405 if test -f ../binutils/Makefile; then
8406 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8409 # If we have ld in the build tree, make a link to it.
8410 if test -f ../ld/Makefile; then
8411 # if test x$use_collect2 = x; then
8412 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8413 # else
8414 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8415 # fi
8418 # Figure out what assembler alignment features are present.
8419 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8420 echo "configure:8421: checking assembler alignment features" >&5
8421 gcc_cv_as=
8422 gcc_cv_as_alignment_features=
8423 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8424 if test -x "$DEFAULT_ASSEMBLER"; then
8425 gcc_cv_as="$DEFAULT_ASSEMBLER"
8426 elif test -x "$AS"; then
8427 gcc_cv_as="$AS"
8428 elif test -x as$host_exeext; then
8429 # Build using assembler in the current directory.
8430 gcc_cv_as=./as$host_exeext
8431 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8432 # Single tree build which includes gas.
8433 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8435 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8436 if test x$gcc_cv_gas_version != x; then
8437 break
8439 done
8440 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8441 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8442 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8443 # Gas version 2.6 and later support for .balign and .p2align.
8444 # bytes to skip when using .p2align.
8445 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
8446 gcc_cv_as_alignment_features=".balign and .p2align"
8447 cat >> confdefs.h <<\EOF
8448 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8452 # Gas version 2.8 and later support specifying the maximum
8453 # bytes to skip when using .p2align.
8454 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
8455 gcc_cv_as_alignment_features=".p2align including maximum skip"
8456 cat >> confdefs.h <<\EOF
8457 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8462 elif test x$host = x$target; then
8463 # Native build.
8464 # Search the same directories that the installed compiler will
8465 # search. Else we may find the wrong assembler and lose. If we
8466 # do not find a suitable assembler binary, then try the user's
8467 # path.
8469 # Also note we have to check MD_EXEC_PREFIX before checking the
8470 # user's path. Unfortunately, there is no good way to get at the
8471 # value of MD_EXEC_PREFIX here. So we do a brute force search
8472 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8473 # to be fixed as part of the make/configure rewrite too.
8475 if test "x$exec_prefix" = xNONE; then
8476 if test "x$prefix" = xNONE; then
8477 test_prefix=/usr/local
8478 else
8479 test_prefix=$prefix
8481 else
8482 test_prefix=$exec_prefix
8485 # If the loop below does not find an assembler, then use whatever
8486 # one we can find in the users's path.
8487 # user's path.
8488 as=as$host_exeext
8490 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8491 $test_prefix/lib/gcc-lib/$target \
8492 /usr/lib/gcc/$target/$gcc_version \
8493 /usr/lib/gcc/$target \
8494 $test_prefix/$target/bin/$target/$gcc_version \
8495 $test_prefix/$target/bin \
8496 /usr/libexec \
8497 /usr/ccs/gcc \
8498 /usr/ccs/bin \
8499 /udk/usr/ccs/bin \
8500 /bsd43/usr/lib/cmplrs/cc \
8501 /usr/cross64/usr/bin \
8502 /usr/lib/cmplrs/cc \
8503 /sysv/usr/lib/cmplrs/cc \
8504 /svr4/usr/lib/cmplrs/cc \
8505 /usr/bin"
8507 for dir in $test_dirs; do
8508 if test -f $dir/as$host_exeext; then
8509 gcc_cv_as=$dir/as$host_exeext
8510 break;
8512 done
8514 if test x$gcc_cv_as != x; then
8515 # Check if we have .balign and .p2align
8516 echo ".balign 4" > conftest.s
8517 echo ".p2align 2" >> conftest.s
8518 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8519 gcc_cv_as_alignment_features=".balign and .p2align"
8520 cat >> confdefs.h <<\EOF
8521 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8525 rm -f conftest.s conftest.o
8526 # Check if specifying the maximum bytes to skip when
8527 # using .p2align is supported.
8528 echo ".p2align 4,,7" > conftest.s
8529 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8530 gcc_cv_as_alignment_features=".p2align including maximum skip"
8531 cat >> confdefs.h <<\EOF
8532 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8536 rm -f conftest.s conftest.o
8538 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8540 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8541 echo "configure:8542: checking assembler subsection support" >&5
8542 gcc_cv_as_subsections=
8543 if test x$gcc_cv_as != x; then
8544 # Check if we have .subsection
8545 echo ".subsection 1" > conftest.s
8546 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8547 gcc_cv_as_subsections=".subsection"
8548 if test -x nm$host_exeext; then
8549 gcc_cv_nm=./nm$host_exeext
8550 elif test x$host = x$target; then
8551 # Native build.
8552 gcc_cv_nm=nm$host_exeext
8554 if test x$gcc_cv_nm != x; then
8555 cat > conftest.s <<EOF
8556 conftest_label1: .word 0
8557 .subsection -1
8558 conftest_label2: .word 0
8559 .previous
8561 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8562 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8563 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8564 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8566 else
8567 gcc_cv_as_subsections="working .subsection -1"
8568 cat >> confdefs.h <<\EOF
8569 #define HAVE_GAS_SUBSECTION_ORDERING 1
8576 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8578 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8580 case "$target" in
8581 sparc*-*-*)
8582 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8583 echo "configure:8584: checking assembler .register pseudo-op support" >&5
8584 gcc_cv_as_register_pseudo_op=
8585 if test x$gcc_cv_as != x; then
8586 # Check if we have .register
8587 echo ".register %g2, #scratch" > conftest.s
8588 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8589 gcc_cv_as_register_pseudo_op=yes
8590 cat >> confdefs.h <<\EOF
8591 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8595 rm -f conftest.s conftest.o
8597 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8599 echo $ac_n "checking assembler offsetable %lo() support""... $ac_c" 1>&6
8600 echo "configure:8601: checking assembler offsetable %lo() support" >&5
8601 gcc_cv_as_offsetable_lo10=
8602 if test x$gcc_cv_as != x; then
8603 # Check if assembler has offsetable %lo()
8604 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8605 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8606 gcc_cv_as_flags64="-xarch=v9"
8607 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
8609 else
8610 gcc_cv_as_flags64="-64"
8611 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
8613 else
8614 gcc_cv_as_flags64=""
8617 if test -n "$gcc_cv_as_flags64" ; then
8618 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s > /dev/null 2>&1; then
8619 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8621 else
8622 gcc_cv_as_offsetable_lo10=yes
8623 cat >> confdefs.h <<\EOF
8624 #define HAVE_AS_OFFSETABLE_LO10 1
8630 rm -f conftest.s conftest.o conftest1.s conftest1.o
8632 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8635 i[34567]86-*-*)
8636 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8637 echo "configure:8638: checking assembler instructions" >&5
8638 gcc_cv_as_instructions=
8639 if test x$gcc_cv_as != x; then
8640 set "filds fists" "filds mem; fists mem"
8641 while test $# -gt 0
8643 echo "$2" > conftest.s
8644 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8645 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8646 cat >> confdefs.h <<EOF
8647 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8651 shift 2
8652 done
8653 rm -f conftest.s conftest.o
8655 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8657 esac
8659 # Figure out what language subdirectories are present.
8660 # Look if the user specified --enable-languages="..."; if not, use
8661 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8662 # go away some day.
8663 if test x"${enable_languages+set}" != xset; then
8664 if test x"${LANGUAGES+set}" = xset; then
8665 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8666 else
8667 enable_languages=all
8670 subdirs=
8671 for lang in ${srcdir}/*/config-lang.in ..
8673 case $lang in
8674 ..) ;;
8675 # The odd quoting in the next line works around
8676 # an apparent bug in bash 1.12 on linux.
8677 ${srcdir}/[*]/config-lang.in) ;;
8679 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8680 if test "x$lang_alias" = x
8681 then
8682 echo "$lang doesn't set \$language." 1>&2
8683 exit 1
8685 if test x"${enable_languages}" = xall; then
8686 add_this_lang=yes
8687 else
8688 case "${enable_languages}" in
8689 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8690 add_this_lang=yes
8693 add_this_lang=no
8695 esac
8697 if test x"${add_this_lang}" = xyes; then
8698 case $lang in
8699 ${srcdir}/ada/config-lang.in)
8700 if test x$gnat = xyes ; then
8701 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8705 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8707 esac
8710 esac
8711 done
8713 # Make gthr-default.h if we have a thread file.
8714 gthread_flags=
8715 if test $thread_file != single; then
8716 rm -f gthr-default.h
8717 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8718 gthread_flags=-DHAVE_GTHR_DEFAULT
8722 # Make empty files to contain the specs and options for each language.
8723 # Then add #include lines to for a compiler that has specs and/or options.
8725 lang_specs_files=
8726 lang_options_files=
8727 lang_tree_files=
8728 rm -f specs.h options.h gencheck.h
8729 touch specs.h options.h gencheck.h
8730 for subdir in . $subdirs
8732 if test -f $srcdir/$subdir/lang-specs.h; then
8733 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8734 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8736 if test -f $srcdir/$subdir/lang-options.h; then
8737 echo "#include \"$subdir/lang-options.h\"" >>options.h
8738 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8740 if test -f $srcdir/$subdir/$subdir-tree.def; then
8741 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8742 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8744 done
8746 # These (without "all_") are set in each config-lang.in.
8747 # `language' must be a single word so is spelled singularly.
8748 all_languages=
8749 all_boot_languages=
8750 all_compilers=
8751 all_stagestuff=
8752 all_diff_excludes=
8753 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8754 # List of language makefile fragments.
8755 all_lang_makefiles=
8756 all_headers=
8757 all_lib2funcs=
8759 # Add the language fragments.
8760 # Languages are added via two mechanisms. Some information must be
8761 # recorded in makefile variables, these are defined in config-lang.in.
8762 # We accumulate them and plug them into the main Makefile.
8763 # The other mechanism is a set of hooks for each of the main targets
8764 # like `clean', `install', etc.
8766 language_fragments="Make-lang"
8767 language_hooks="Make-hooks"
8768 oldstyle_subdirs=
8770 for s in .. $subdirs
8772 if test $s != ".."
8773 then
8774 language=
8775 boot_language=
8776 compilers=
8777 stagestuff=
8778 diff_excludes=
8779 headers=
8780 outputs=
8781 lib2funcs=
8782 . ${srcdir}/$s/config-lang.in
8783 if test "x$language" = x
8784 then
8785 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8786 exit 1
8788 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8789 all_languages="$all_languages $language"
8790 if test "x$boot_language" = xyes
8791 then
8792 all_boot_languages="$all_boot_languages $language"
8794 all_compilers="$all_compilers $compilers"
8795 all_stagestuff="$all_stagestuff $stagestuff"
8796 all_diff_excludes="$all_diff_excludes $diff_excludes"
8797 all_headers="$all_headers $headers"
8798 all_outputs="$all_outputs $outputs"
8799 if test x$outputs = x
8800 then
8801 oldstyle_subdirs="$oldstyle_subdirs $s"
8803 all_lib2funcs="$all_lib2funcs $lib2funcs"
8805 done
8807 # Since we can't use `::' targets, we link each language in
8808 # with a set of hooks, reached indirectly via lang.${target}.
8810 rm -f Make-hooks
8811 touch Make-hooks
8812 target_list="all.build all.cross start.encap rest.encap \
8813 info dvi \
8814 install-normal install-common install-info install-man \
8815 uninstall distdir \
8816 mostlyclean clean distclean extraclean maintainer-clean \
8817 stage1 stage2 stage3 stage4"
8818 for t in $target_list
8821 for lang in .. $all_languages
8823 if test $lang != ".."; then
8824 x="$x $lang.$t"
8826 done
8827 echo "lang.$t: $x" >> Make-hooks
8828 done
8830 # If we're not building in srcdir, create .gdbinit.
8832 if test ! -f Makefile.in; then
8833 echo "dir ." > .gdbinit
8834 echo "dir ${srcdir}" >> .gdbinit
8835 if test x$gdb_needs_out_file_path = xyes
8836 then
8837 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8839 if test "x$subdirs" != x; then
8840 for s in $subdirs
8842 echo "dir ${srcdir}/$s" >> .gdbinit
8843 done
8845 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8848 # Define variables host_canonical and build_canonical
8849 # because some Cygnus local changes in the Makefile depend on them.
8850 build_canonical=${build}
8851 host_canonical=${host}
8852 target_subdir=
8853 if test "${host}" != "${target}" ; then
8854 target_subdir=${target}/
8860 # If this is using newlib, then define inhibit_libc in
8861 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8862 # libgcc.a, but that's OK because newib should have its own version of
8863 # assert.h.
8864 inhibit_libc=
8865 if test x$with_newlib = xyes; then
8866 inhibit_libc=-Dinhibit_libc
8870 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8871 # absolute path for gcc_tooldir based on inserting the number of up-directory
8872 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8873 # $(libsubdir)/@(unlibsubdir) based path.
8874 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8875 # make and thus we'd get different behavior depending on where we built the
8876 # sources.
8877 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8878 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8879 else
8880 # An explanation of the sed strings:
8881 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8882 # -e 's|/$||' match a trailing forward slash and eliminates it
8883 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8884 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8886 # (*) Note this pattern overwrites the first character of the string
8887 # with a forward slash if one is not already present. This is not a
8888 # problem because the exact names of the sub-directories concerned is
8889 # unimportant, just the number of them matters.
8891 # The practical upshot of these patterns is like this:
8893 # prefix exec_prefix result
8894 # ------ ----------- ------
8895 # /foo /foo/bar ../
8896 # /foo/ /foo/bar ../
8897 # /foo /foo/bar/ ../
8898 # /foo/ /foo/bar/ ../
8899 # /foo /foo/bar/ugg ../../
8901 dollar='$$'
8902 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8907 # Nothing to do for FLOAT_H, float_format already handled.
8908 objdir=`pwd`
8911 # Process the language and host/target makefile fragments.
8912 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8914 # Substitute configuration variables
8975 # Echo that links are built
8976 if test x$host = x$target
8977 then
8978 str1="native "
8979 else
8980 str1="cross-"
8981 str2=" from $host"
8984 if test x$host != x$build
8985 then
8986 str3=" on a $build system"
8989 if test "x$str2" != x || test "x$str3" != x
8990 then
8991 str4=
8994 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8996 if test "x$str2" != x || test "x$str3" != x
8997 then
8998 echo " ${str2}${str3}." 1>&2
9001 # Truncate the target if necessary
9002 if test x$host_truncate_target != x; then
9003 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9006 # Configure the subdirectories
9007 # AC_CONFIG_SUBDIRS($subdirs)
9009 # Create the Makefile
9010 # and configure language subdirectories
9011 trap '' 1 2 15
9012 cat > confcache <<\EOF
9013 # This file is a shell script that caches the results of configure
9014 # tests run on this system so they can be shared between configure
9015 # scripts and configure runs. It is not useful on other systems.
9016 # If it contains results you don't want to keep, you may remove or edit it.
9018 # By default, configure uses ./config.cache as the cache file,
9019 # creating it if it does not exist already. You can give configure
9020 # the --cache-file=FILE option to use a different cache file; that is
9021 # what configure does when it calls configure scripts in
9022 # subdirectories, so they share the cache.
9023 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9024 # config.status only pays attention to the cache file if you give it the
9025 # --recheck option to rerun configure.
9028 # The following way of writing the cache mishandles newlines in values,
9029 # but we know of no workaround that is simple, portable, and efficient.
9030 # So, don't put newlines in cache variables' values.
9031 # Ultrix sh set writes to stderr and can't be redirected directly,
9032 # and sets the high bit in the cache file unless we assign to the vars.
9033 (set) 2>&1 |
9034 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9035 *ac_space=\ *)
9036 # `set' does not quote correctly, so add quotes (double-quote substitution
9037 # turns \\\\ into \\, and sed turns \\ into \).
9038 sed -n \
9039 -e "s/'/'\\\\''/g" \
9040 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9043 # `set' quotes correctly as required by POSIX, so do not add quotes.
9044 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9046 esac >> confcache
9047 if cmp -s $cache_file confcache; then
9049 else
9050 if test -w $cache_file; then
9051 echo "updating cache $cache_file"
9052 cat confcache > $cache_file
9053 else
9054 echo "not updating unwritable cache $cache_file"
9057 rm -f confcache
9059 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9062 # Let make expand exec_prefix.
9063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9065 # Any assignment to VPATH causes Sun make to only execute
9066 # the first set of double-colon rules, so remove it if not needed.
9067 # If there is a colon in the path, we need to keep it.
9068 if test "x$srcdir" = x.; then
9069 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9072 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9074 DEFS=-DHAVE_CONFIG_H
9076 # Without the "./", some shells look in PATH for config.status.
9077 : ${CONFIG_STATUS=./config.status}
9079 echo creating $CONFIG_STATUS
9080 rm -f $CONFIG_STATUS
9081 cat > $CONFIG_STATUS <<EOF
9082 #! /bin/sh
9083 # Generated automatically by configure.
9084 # Run this file to recreate the current configuration.
9085 # This directory was configured as follows,
9086 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9088 # $0 $ac_configure_args
9090 # Compiler output produced by configure, useful for debugging
9091 # configure, is in ./config.log if it exists.
9093 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9094 for ac_option
9096 case "\$ac_option" in
9097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9098 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9099 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9100 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9101 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9102 exit 0 ;;
9103 -help | --help | --hel | --he | --h)
9104 echo "\$ac_cs_usage"; exit 0 ;;
9105 *) echo "\$ac_cs_usage"; exit 1 ;;
9106 esac
9107 done
9109 ac_given_srcdir=$srcdir
9111 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9113 cat >> $CONFIG_STATUS <<EOF
9115 # Protect against being on the right side of a sed subst in config.status.
9116 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9117 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9118 $ac_vpsub
9119 $extrasub
9120 s%@SHELL@%$SHELL%g
9121 s%@CFLAGS@%$CFLAGS%g
9122 s%@CPPFLAGS@%$CPPFLAGS%g
9123 s%@CXXFLAGS@%$CXXFLAGS%g
9124 s%@FFLAGS@%$FFLAGS%g
9125 s%@DEFS@%$DEFS%g
9126 s%@LDFLAGS@%$LDFLAGS%g
9127 s%@LIBS@%$LIBS%g
9128 s%@exec_prefix@%$exec_prefix%g
9129 s%@prefix@%$prefix%g
9130 s%@program_transform_name@%$program_transform_name%g
9131 s%@bindir@%$bindir%g
9132 s%@sbindir@%$sbindir%g
9133 s%@libexecdir@%$libexecdir%g
9134 s%@datadir@%$datadir%g
9135 s%@sysconfdir@%$sysconfdir%g
9136 s%@sharedstatedir@%$sharedstatedir%g
9137 s%@localstatedir@%$localstatedir%g
9138 s%@libdir@%$libdir%g
9139 s%@includedir@%$includedir%g
9140 s%@oldincludedir@%$oldincludedir%g
9141 s%@infodir@%$infodir%g
9142 s%@mandir@%$mandir%g
9143 s%@host@%$host%g
9144 s%@host_alias@%$host_alias%g
9145 s%@host_cpu@%$host_cpu%g
9146 s%@host_vendor@%$host_vendor%g
9147 s%@host_os@%$host_os%g
9148 s%@target@%$target%g
9149 s%@target_alias@%$target_alias%g
9150 s%@target_cpu@%$target_cpu%g
9151 s%@target_vendor@%$target_vendor%g
9152 s%@target_os@%$target_os%g
9153 s%@build@%$build%g
9154 s%@build_alias@%$build_alias%g
9155 s%@build_cpu@%$build_cpu%g
9156 s%@build_vendor@%$build_vendor%g
9157 s%@build_os@%$build_os%g
9158 s%@CC@%$CC%g
9159 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9160 s%@SET_MAKE@%$SET_MAKE%g
9161 s%@AWK@%$AWK%g
9162 s%@LEX@%$LEX%g
9163 s%@LEXLIB@%$LEXLIB%g
9164 s%@LN@%$LN%g
9165 s%@LN_S@%$LN_S%g
9166 s%@RANLIB@%$RANLIB%g
9167 s%@YACC@%$YACC%g
9168 s%@INSTALL@%$INSTALL%g
9169 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9170 s%@INSTALL_DATA@%$INSTALL_DATA%g
9171 s%@CPP@%$CPP%g
9172 s%@gnat@%$gnat%g
9173 s%@vfprintf@%$vfprintf%g
9174 s%@doprint@%$doprint%g
9175 s%@manext@%$manext%g
9176 s%@objext@%$objext%g
9177 s%@PACKAGE@%$PACKAGE%g
9178 s%@VERSION@%$VERSION%g
9179 s%@ALLOCA@%$ALLOCA%g
9180 s%@USE_NLS@%$USE_NLS%g
9181 s%@MSGFMT@%$MSGFMT%g
9182 s%@GMSGFMT@%$GMSGFMT%g
9183 s%@XGETTEXT@%$XGETTEXT%g
9184 s%@GENCAT@%$GENCAT%g
9185 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9186 s%@CATALOGS@%$CATALOGS%g
9187 s%@CATOBJEXT@%$CATOBJEXT%g
9188 s%@DATADIRNAME@%$DATADIRNAME%g
9189 s%@GMOFILES@%$GMOFILES%g
9190 s%@INSTOBJEXT@%$INSTOBJEXT%g
9191 s%@INTLDEPS@%$INTLDEPS%g
9192 s%@INTLLIBS@%$INTLLIBS%g
9193 s%@INTLOBJS@%$INTLOBJS%g
9194 s%@POFILES@%$POFILES%g
9195 s%@POSUB@%$POSUB%g
9196 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9197 s%@GT_NO@%$GT_NO%g
9198 s%@GT_YES@%$GT_YES%g
9199 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9200 s%@l@%$l%g
9201 s%@gthread_flags@%$gthread_flags%g
9202 s%@build_canonical@%$build_canonical%g
9203 s%@host_canonical@%$host_canonical%g
9204 s%@target_subdir@%$target_subdir%g
9205 s%@inhibit_libc@%$inhibit_libc%g
9206 s%@gcc_tooldir@%$gcc_tooldir%g
9207 s%@dollar@%$dollar%g
9208 s%@objdir@%$objdir%g
9209 s%@subdirs@%$subdirs%g
9210 s%@all_boot_languages@%$all_boot_languages%g
9211 s%@all_compilers@%$all_compilers%g
9212 s%@all_diff_excludes@%$all_diff_excludes%g
9213 s%@all_headers@%$all_headers%g
9214 s%@all_lang_makefiles@%$all_lang_makefiles%g
9215 s%@all_languages@%$all_languages%g
9216 s%@all_lib2funcs@%$all_lib2funcs%g
9217 s%@all_stagestuff@%$all_stagestuff%g
9218 s%@build_exeext@%$build_exeext%g
9219 s%@build_install_headers_dir@%$build_install_headers_dir%g
9220 s%@build_xm_file_list@%$build_xm_file_list%g
9221 s%@cc_set_by_configure@%$cc_set_by_configure%g
9222 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9223 s%@cpp_install_dir@%$cpp_install_dir%g
9224 s%@cpp_main@%$cpp_main%g
9225 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9226 s%@dep_tmake_file@%$dep_tmake_file%g
9227 s%@extra_c_flags@%$extra_c_flags%g
9228 s%@extra_c_objs@%$extra_c_objs%g
9229 s%@extra_cpp_objs@%$extra_cpp_objs%g
9230 s%@extra_cxx_objs@%$extra_cxx_objs%g
9231 s%@extra_headers_list@%$extra_headers_list%g
9232 s%@extra_objs@%$extra_objs%g
9233 s%@extra_parts@%$extra_parts%g
9234 s%@extra_passes@%$extra_passes%g
9235 s%@extra_programs@%$extra_programs%g
9236 s%@fixinc_defs@%$fixinc_defs%g
9237 s%@float_h_file@%$float_h_file%g
9238 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9239 s%@gcc_version@%$gcc_version%g
9240 s%@gcc_version_trigger@%$gcc_version_trigger%g
9241 s%@host_exeext@%$host_exeext%g
9242 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9243 s%@host_xm_file_list@%$host_xm_file_list%g
9244 s%@install@%$install%g
9245 s%@lang_options_files@%$lang_options_files%g
9246 s%@lang_specs_files@%$lang_specs_files%g
9247 s%@lang_tree_files@%$lang_tree_files%g
9248 s%@local_prefix@%$local_prefix%g
9249 s%@maybe_use_collect2@%$maybe_use_collect2%g
9250 s%@md_file@%$md_file%g
9251 s%@objc_boehm_gc@%$objc_boehm_gc%g
9252 s%@out_file@%$out_file%g
9253 s%@out_object_file@%$out_object_file%g
9254 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9255 s%@symbolic_link@%$symbolic_link%g
9256 s%@thread_file@%$thread_file%g
9257 s%@tm_file_list@%$tm_file_list%g
9258 s%@will_use_collect2@%$will_use_collect2%g
9259 /@target_overrides@/r $target_overrides
9260 s%@target_overrides@%%g
9261 /@host_overrides@/r $host_overrides
9262 s%@host_overrides@%%g
9263 s%@cross_defines@%$cross_defines%g
9264 /@cross_overrides@/r $cross_overrides
9265 s%@cross_overrides@%%g
9266 /@build_overrides@/r $build_overrides
9267 s%@build_overrides@%%g
9268 /@language_fragments@/r $language_fragments
9269 s%@language_fragments@%%g
9270 /@language_hooks@/r $language_hooks
9271 s%@language_hooks@%%g
9273 CEOF
9276 cat >> $CONFIG_STATUS <<\EOF
9278 # Split the substitutions into bite-sized pieces for seds with
9279 # small command number limits, like on Digital OSF/1 and HP-UX.
9280 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9281 ac_file=1 # Number of current file.
9282 ac_beg=1 # First line for current file.
9283 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9284 ac_more_lines=:
9285 ac_sed_cmds=""
9286 while $ac_more_lines; do
9287 if test $ac_beg -gt 1; then
9288 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9289 else
9290 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9292 if test ! -s conftest.s$ac_file; then
9293 ac_more_lines=false
9294 rm -f conftest.s$ac_file
9295 else
9296 if test -z "$ac_sed_cmds"; then
9297 ac_sed_cmds="sed -f conftest.s$ac_file"
9298 else
9299 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9301 ac_file=`expr $ac_file + 1`
9302 ac_beg=$ac_end
9303 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9305 done
9306 if test -z "$ac_sed_cmds"; then
9307 ac_sed_cmds=cat
9311 cat >> $CONFIG_STATUS <<EOF
9313 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9315 cat >> $CONFIG_STATUS <<\EOF
9316 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9317 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9318 case "$ac_file" in
9319 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9320 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9321 *) ac_file_in="${ac_file}.in" ;;
9322 esac
9324 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9326 # Remove last slash and all that follows it. Not all systems have dirname.
9327 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9328 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9329 # The file is in a subdirectory.
9330 test ! -d "$ac_dir" && mkdir "$ac_dir"
9331 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9332 # A "../" for each directory in $ac_dir_suffix.
9333 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9334 else
9335 ac_dir_suffix= ac_dots=
9338 case "$ac_given_srcdir" in
9339 .) srcdir=.
9340 if test -z "$ac_dots"; then top_srcdir=.
9341 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9342 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9343 *) # Relative path.
9344 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9345 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9346 esac
9349 echo creating "$ac_file"
9350 rm -f "$ac_file"
9351 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9352 case "$ac_file" in
9353 *Makefile*) ac_comsub="1i\\
9354 # $configure_input" ;;
9355 *) ac_comsub= ;;
9356 esac
9358 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9359 sed -e "$ac_comsub
9360 s%@configure_input@%$configure_input%g
9361 s%@srcdir@%$srcdir%g
9362 s%@top_srcdir@%$top_srcdir%g
9363 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9364 fi; done
9365 rm -f conftest.s*
9367 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9368 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9370 # ac_d sets the value in "#define NAME VALUE" lines.
9371 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9372 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9373 ac_dC='\3'
9374 ac_dD='%g'
9375 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9376 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9377 ac_uB='\([ ]\)%\1#\2define\3'
9378 ac_uC=' '
9379 ac_uD='\4%g'
9380 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9381 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9382 ac_eB='$%\1#\2define\3'
9383 ac_eC=' '
9384 ac_eD='%g'
9386 if test "${CONFIG_HEADERS+set}" != set; then
9388 cat >> $CONFIG_STATUS <<EOF
9389 CONFIG_HEADERS="auto-host.h:config.in"
9391 cat >> $CONFIG_STATUS <<\EOF
9393 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9395 case "$ac_file" in
9396 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9397 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9398 *) ac_file_in="${ac_file}.in" ;;
9399 esac
9401 echo creating $ac_file
9403 rm -f conftest.frag conftest.in conftest.out
9404 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9405 cat $ac_file_inputs > conftest.in
9409 # Transform confdefs.h into a sed script conftest.vals that substitutes
9410 # the proper values into config.h.in to produce config.h. And first:
9411 # Protect against being on the right side of a sed subst in config.status.
9412 # Protect against being in an unquoted here document in config.status.
9413 rm -f conftest.vals
9414 cat > conftest.hdr <<\EOF
9415 s/[\\&%]/\\&/g
9416 s%[\\$`]%\\&%g
9417 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9418 s%ac_d%ac_u%gp
9419 s%ac_u%ac_e%gp
9421 sed -n -f conftest.hdr confdefs.h > conftest.vals
9422 rm -f conftest.hdr
9424 # This sed command replaces #undef with comments. This is necessary, for
9425 # example, in the case of _POSIX_SOURCE, which is predefined and required
9426 # on some systems where configure will not decide to define it.
9427 cat >> conftest.vals <<\EOF
9428 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9431 # Break up conftest.vals because some shells have a limit on
9432 # the size of here documents, and old seds have small limits too.
9434 rm -f conftest.tail
9435 while :
9437 ac_lines=`grep -c . conftest.vals`
9438 # grep -c gives empty output for an empty file on some AIX systems.
9439 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9440 # Write a limited-size here document to conftest.frag.
9441 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9442 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9443 echo 'CEOF
9444 sed -f conftest.frag conftest.in > conftest.out
9445 rm -f conftest.in
9446 mv conftest.out conftest.in
9447 ' >> $CONFIG_STATUS
9448 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9449 rm -f conftest.vals
9450 mv conftest.tail conftest.vals
9451 done
9452 rm -f conftest.vals
9454 cat >> $CONFIG_STATUS <<\EOF
9455 rm -f conftest.frag conftest.h
9456 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9457 cat conftest.in >> conftest.h
9458 rm -f conftest.in
9459 if cmp -s $ac_file conftest.h 2>/dev/null; then
9460 echo "$ac_file is unchanged"
9461 rm -f conftest.h
9462 else
9463 # Remove last slash and all that follows it. Not all systems have dirname.
9464 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9465 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9466 # The file is in a subdirectory.
9467 test ! -d "$ac_dir" && mkdir "$ac_dir"
9469 rm -f $ac_file
9470 mv conftest.h $ac_file
9472 fi; done
9476 cat >> $CONFIG_STATUS <<EOF
9477 ac_sources="$nls_cv_header_libgt"
9478 ac_dests="$nls_cv_header_intl"
9481 cat >> $CONFIG_STATUS <<\EOF
9482 srcdir=$ac_given_srcdir
9483 while test -n "$ac_sources"; do
9484 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9485 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9487 echo "linking $srcdir/$ac_source to $ac_dest"
9489 if test ! -r $srcdir/$ac_source; then
9490 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9492 rm -f $ac_dest
9494 # Make relative symlinks.
9495 # Remove last slash and all that follows it. Not all systems have dirname.
9496 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9497 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9498 # The dest file is in a subdirectory.
9499 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9500 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9501 # A "../" for each directory in $ac_dest_dir_suffix.
9502 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9503 else
9504 ac_dest_dir_suffix= ac_dots=
9507 case "$srcdir" in
9508 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9509 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9510 esac
9512 # Make a symlink if possible; otherwise try a hard link.
9513 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9514 ln $srcdir/$ac_source $ac_dest; then :
9515 else
9516 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9518 done
9520 cat >> $CONFIG_STATUS <<EOF
9523 host='${host}'
9524 build='${build}'
9525 target='${target}'
9526 target_alias='${target_alias}'
9527 srcdir='${srcdir}'
9528 subdirs='${subdirs}'
9529 oldstyle_subdirs='${oldstyle_subdirs}'
9530 symbolic_link='${symbolic_link}'
9531 program_transform_set='${program_transform_set}'
9532 program_transform_name='${program_transform_name}'
9533 dep_host_xmake_file='${dep_host_xmake_file}'
9534 host_xmake_file='${host_xmake_file}'
9535 dep_tmake_file='${dep_tmake_file}'
9536 tmake_file='${tmake_file}'
9537 thread_file='${thread_file}'
9538 gcc_version='${gcc_version}'
9539 gcc_version_trigger='${gcc_version_trigger}'
9540 local_prefix='${local_prefix}'
9541 build_install_headers_dir='${build_install_headers_dir}'
9542 build_exeext='${build_exeext}'
9543 host_exeext='${host_exeext}'
9544 out_file='${out_file}'
9545 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9546 SET_MAKE='${SET_MAKE}'
9547 target_list='${target_list}'
9548 target_overrides='${target_overrides}'
9549 host_overrides='${host_overrides}'
9550 cross_defines='${cross_defines}'
9551 cross_overrides='${cross_overrides}'
9552 build_overrides='${build_overrides}'
9553 cpp_install_dir='${cpp_install_dir}'
9556 cat >> $CONFIG_STATUS <<\EOF
9557 case "$CONFIG_FILES" in *po/Makefile.in*)
9558 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9559 esac
9561 . $srcdir/configure.lang
9562 case x$CONFIG_HEADERS in
9563 xauto-host.h:config.in)
9564 echo > cstamp-h ;;
9565 esac
9566 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9567 # bootstrapping and the installation procedure can still use
9568 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9569 # FLAGS_TO_PASS has been modified to solve the problem there.
9570 # This is virtually a duplicate of what happens in configure.lang; we do
9571 # an extra check to make sure this only happens if ln -s can be used.
9572 if test "$symbolic_link" = "ln -s"; then
9573 for d in .. ${subdirs} ; do
9574 if test $d != ..; then
9575 STARTDIR=`pwd`
9576 cd $d
9577 for t in stage1 stage2 stage3 stage4 include
9579 rm -f $t
9580 $symbolic_link ../$t $t 2>/dev/null
9581 done
9582 cd $STARTDIR
9584 done
9585 else true ; fi
9586 # Avoid having to add intl to our include paths.
9587 if test -f intl/libintl.h; then
9588 echo creating libintl.h
9589 echo '#include "intl/libintl.h"' >libintl.h
9592 exit 0
9594 chmod +x $CONFIG_STATUS
9595 rm -fr confdefs* $ac_clean_files
9596 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1