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