* m68k.c (output_function_prologue): Fix computation of save mask
[official-gcc.git] / gcc / configure
blobe10f48dc27ebcf1009481900b8801326fd337bc2
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16 ac_help="$ac_help
17 --with-ld arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19 --with-gnu-as arrange to work with GNU as."
20 ac_help="$ac_help
21 --with-as arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23 --with-stabs arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25 --with-elf arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27 --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
31 ac_help="$ac_help
32 --enable-checking enable expensive run-time checks."
33 ac_help="$ac_help
34 --disable-cpp don't provide a user-visible C preprocessor."
35 ac_help="$ac_help
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
39 ac_help="$ac_help
40 --enable-cpplib use cpplib for the C preprocessor."
41 ac_help="$ac_help
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
44 ac_help="$ac_help
45 --enable-c-mbchar enable multibyte characters for C and C++."
46 ac_help="$ac_help
47 --disable-fast-fixincludes
48 Disable the new fast fixincludes.
49 Run the old fixincludes script unconditionally"
50 ac_help="$ac_help
51 --enable-haifa use the experimental scheduler.
52 --disable-haifa don't use the experimental scheduler for the
53 targets which normally enable it."
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-java-gc=TYPE choose garbage collector [boehm]"
62 ac_help="$ac_help
63 --enable-dwarf2 enable DWARF2 debugging as default."
64 ac_help="$ac_help
65 --enable-nls use Native Language Support (disabled by default)"
66 ac_help="$ac_help
67 --disable-nls do not use Native Language Support"
68 ac_help="$ac_help
69 --with-included-gettext use the GNU gettext library included here"
70 ac_help="$ac_help
71 --with-catgets use catgets functions if available"
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
76 build=NONE
77 cache_file=./config.cache
78 exec_prefix=NONE
79 host=NONE
80 no_create=
81 nonopt=NONE
82 no_recursion=
83 prefix=NONE
84 program_prefix=NONE
85 program_suffix=NONE
86 program_transform_name=s,x,x,
87 silent=
88 site=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
114 ac_prev=
115 for ac_option
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
130 # Accept the important Cygnus configure options, so we can diagnose typos.
132 case "$ac_option" in
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
206 [$ac_default_prefix]
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 [same as prefix]
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
213 [PREFIX/share]
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 [PREFIX/com]
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
229 cat << EOF
230 Host type:
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
245 exit 0 ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host="$ac_optarg" ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir="$ac_optarg" ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 ac_prev=infodir ;;
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir="$ac_optarg" ;;
264 -libdir | --libdir | --libdi | --libd)
265 ac_prev=libdir ;;
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir="$ac_optarg" ;;
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir="$ac_optarg" ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir="$ac_optarg" ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 ac_prev=mandir ;;
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir="$ac_optarg" ;;
290 -nfp | --nfp | --nf)
291 # Obsolete; use --without-fp.
292 with_fp=no ;;
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 | --no-cr | --no-c)
296 no_create=yes ;;
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 no_recursion=yes ;;
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir="$ac_optarg" ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 ac_prev=prefix ;;
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix="$ac_optarg" ;;
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix="$ac_optarg" ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix="$ac_optarg" ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name="$ac_optarg" ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
349 silent=yes ;;
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 ac_prev=sbindir ;;
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 | --sbi=* | --sb=*)
355 sbindir="$ac_optarg" ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
360 | --sha | --sh)
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 | --sha=* | --sh=*)
366 sharedstatedir="$ac_optarg" ;;
368 -site | --site | --sit)
369 ac_prev=site ;;
370 -site=* | --site=* | --sit=*)
371 site="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 nonopt="$ac_option"
450 esac
451 done
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
472 exec 5>./config.log
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=tree.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
525 else
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 else
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
548 . "$ac_site_file"
550 done
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
554 . $cache_file
555 else
556 echo "creating cache $cache_file"
557 > $cache_file
560 ac_ext=c
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
567 ac_exeext=
568 ac_objext=o
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='
573 ' ac_t=' '
574 else
575 ac_n=-n ac_c= ac_t=
577 else
578 ac_n= ac_c='\c' ac_t=
584 remove=rm
585 hard_link=ln
586 symbolic_link='ln -s'
587 copy=cp
589 # Check for bogus environment variables.
590 # Test if LIBRARY_PATH contains the notation for the current directory
591 # since this would lead to problems installing/building glibc.
592 # LIBRARY_PATH contains the current directory if one of the following
593 # is true:
594 # - one of the terminals (":" and ";") is the first or last sign
595 # - two terminals occur directly after each other
596 # - the path contains an element with a dot in it
597 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
598 echo "configure:599: checking LIBRARY_PATH variable" >&5
599 case ${LIBRARY_PATH} in
600 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
601 library_path_setting="contains current directory"
604 library_path_setting="ok"
606 esac
607 echo "$ac_t""$library_path_setting" 1>&6
608 if test "$library_path_setting" != "ok"; then
609 { echo "configure: error:
610 *** LIBRARY_PATH shouldn't contain the current directory when
611 *** building gcc. Please change the environment variable
612 *** and run configure again." 1>&2; exit 1; }
615 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
616 # since this would lead to problems installing/building glibc.
617 # GCC_EXEC_PREFIX contains the current directory if one of the following
618 # is true:
619 # - one of the terminals (":" and ";") is the first or last sign
620 # - two terminals occur directly after each other
621 # - the path contains an element with a dot in it
622 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
623 echo "configure:624: checking GCC_EXEC_PREFIX variable" >&5
624 case ${GCC_EXEC_PREFIX} in
625 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
626 gcc_exec_prefix_setting="contains current directory"
629 gcc_exec_prefix_setting="ok"
631 esac
632 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
633 if test "$gcc_exec_prefix_setting" != "ok"; then
634 { echo "configure: error:
635 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
636 *** building gcc. Please change the environment variable
637 *** and run configure again." 1>&2; exit 1; }
640 # Check for additional parameters
642 # With GNU ld
643 # Check whether --with-gnu-ld or --without-gnu-ld was given.
644 if test "${with_gnu_ld+set}" = set; then
645 withval="$with_gnu_ld"
646 gnu_ld_flag="$with_gnu_ld"
647 else
648 gnu_ld_flag=no
652 # With pre-defined ld
653 # Check whether --with-ld or --without-ld was given.
654 if test "${with_ld+set}" = set; then
655 withval="$with_ld"
656 DEFAULT_LINKER="$with_ld"
659 if test x"${DEFAULT_LINKER+set}" = x"set"; then
660 if test ! -x "$DEFAULT_LINKER"; then
661 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
662 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
663 gnu_ld_flag=yes
665 cat >> confdefs.h <<EOF
666 #define DEFAULT_LINKER "$DEFAULT_LINKER"
671 # With GNU as
672 # Check whether --with-gnu-as or --without-gnu-as was given.
673 if test "${with_gnu_as+set}" = set; then
674 withval="$with_gnu_as"
675 gas_flag="$with_gnu_as"
676 else
677 gas_flag=no
681 # Check whether --with-as or --without-as was given.
682 if test "${with_as+set}" = set; then
683 withval="$with_as"
684 DEFAULT_ASSEMBLER="$with_as"
687 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
688 if test ! -x "$DEFAULT_ASSEMBLER"; then
689 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
690 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
691 gas_flag=yes
693 cat >> confdefs.h <<EOF
694 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
699 # With stabs
700 # Check whether --with-stabs or --without-stabs was given.
701 if test "${with_stabs+set}" = set; then
702 withval="$with_stabs"
703 stabs="$with_stabs"
704 else
705 stabs=no
709 # With ELF
710 # Check whether --with-elf or --without-elf was given.
711 if test "${with_elf+set}" = set; then
712 withval="$with_elf"
713 elf="$with_elf"
714 else
715 elf=no
719 # Specify the local prefix
720 local_prefix=
721 # Check whether --with-local-prefix or --without-local-prefix was given.
722 if test "${with_local_prefix+set}" = set; then
723 withval="$with_local_prefix"
724 case "${withval}" in
725 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
726 no) ;;
727 *) local_prefix=$with_local_prefix ;;
728 esac
732 # Default local prefix if it is empty
733 if test x$local_prefix = x; then
734 local_prefix=/usr/local
737 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
738 # passed in by the toplevel make and thus we'd get different behavior
739 # depending on where we built the sources.
740 gcc_gxx_include_dir=
741 # Specify the g++ header file directory
742 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
743 if test "${with_gxx_include_dir+set}" = set; then
744 withval="$with_gxx_include_dir"
745 case "${withval}" in
746 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
747 no) ;;
748 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
749 esac
753 if test x${gcc_gxx_include_dir} = x; then
754 if test x${enable_version_specific_runtime_libs} = xyes; then
755 gcc_gxx_include_dir='${libsubdir}/include/g++'
756 else
757 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
758 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
762 # Enable expensive internal checks
763 # Check whether --enable-checking or --disable-checking was given.
764 if test "${enable_checking+set}" = set; then
765 enableval="$enable_checking"
766 case "${enableval}" in
767 yes) cat >> confdefs.h <<\EOF
768 #define ENABLE_CHECKING 1
771 no) ;;
772 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
773 esac
777 # Check whether --enable-cpp or --disable-cpp was given.
778 if test "${enable_cpp+set}" = set; then
779 enableval="$enable_cpp"
781 else
782 enable_cpp=yes
786 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
787 if test "${with_cpp_install_dir+set}" = set; then
788 withval="$with_cpp_install_dir"
789 if test x$withval = xyes; then
790 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
791 elif test x$withval != xno; then
792 cpp_install_dir=$withval
797 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
798 cpp_main=cccp
799 # Check whether --enable-cpplib or --disable-cpplib was given.
800 if test "${enable_cpplib+set}" = set; then
801 enableval="$enable_cpplib"
802 if test x$enable_cpplib != xno; then
803 cpp_main=cppmain
808 # Link cpplib into the compiler proper, for C/C++/ObjC.
809 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
810 if test "${enable_c_cpplib+set}" = set; then
811 enableval="$enable_c_cpplib"
812 if test x$enable_c_cpplib != xno; then
813 extra_c_objs="${extra_c_objs} libcpp.a"
814 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
815 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
816 cpp_main=cppmain
821 # Enable Multibyte Characters for C/C++
822 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
823 if test "${enable_c_mbchar+set}" = set; then
824 enableval="$enable_c_mbchar"
825 if test x$enable_c_mbchar != xno; then
826 extra_c_flags=-DMULTIBYTE_CHARS=1
831 # Disable fast fixincludes
832 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
833 if test "${enable_fast_fixincludes+set}" = set; then
834 enableval="$enable_fast_fixincludes"
835 if test x$enable_fast_fixincludes = xno ; then
836 cp $srcdir/fixincludes ./fixinc.sh
841 # Enable Haifa scheduler.
842 # Check whether --enable-haifa or --disable-haifa was given.
843 if test "${enable_haifa+set}" = set; then
844 enableval="$enable_haifa"
849 # Enable threads
850 # Pass with no value to take the default
851 # Pass with a value to specify a thread package
852 # Check whether --enable-threads or --disable-threads was given.
853 if test "${enable_threads+set}" = set; then
854 enableval="$enable_threads"
855 if test x$enable_threads = xno; then
856 enable_threads=''
858 else
859 enable_threads=''
863 enable_threads_flag=$enable_threads
864 # Check if a valid thread package
865 case x${enable_threads_flag} in
866 x | xno)
867 # No threads
868 target_thread_file='single'
870 xyes)
871 # default
872 target_thread_file=''
874 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
875 xsolaris | xwin32 | xdce | xvxworks)
876 target_thread_file=$enable_threads_flag
879 echo "$enable_threads is an unknown thread package" 1>&2
880 exit 1
882 esac
884 # Check whether --enable-objc-gc or --disable-objc-gc was given.
885 if test "${enable_objc_gc+set}" = set; then
886 enableval="$enable_objc_gc"
887 if [ x$enable_objc_gc = xno ]; then
888 objc_boehm_gc=''
889 else
890 objc_boehm_gc=1
892 else
893 objc_boehm_gc=''
897 # Check whether --enable-java-gc or --disable-java-gc was given.
898 if test "${enable_java_gc+set}" = set; then
899 enableval="$enable_java_gc"
901 JAVAGC=$enableval
902 else
903 JAVAGC=boehm
907 # Check whether --with-dwarf2 or --without-dwarf2 was given.
908 if test "${with_dwarf2+set}" = set; then
909 withval="$with_dwarf2"
910 dwarf2="$with_dwarf2"
911 else
912 dwarf2=no
916 # Determine the host, build, and target systems
917 ac_aux_dir=
918 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
919 if test -f $ac_dir/install-sh; then
920 ac_aux_dir=$ac_dir
921 ac_install_sh="$ac_aux_dir/install-sh -c"
922 break
923 elif test -f $ac_dir/install.sh; then
924 ac_aux_dir=$ac_dir
925 ac_install_sh="$ac_aux_dir/install.sh -c"
926 break
928 done
929 if test -z "$ac_aux_dir"; then
930 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
932 ac_config_guess=$ac_aux_dir/config.guess
933 ac_config_sub=$ac_aux_dir/config.sub
934 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
937 # Do some error checking and defaulting for the host and target type.
938 # The inputs are:
939 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
941 # The rules are:
942 # 1. You are not allowed to specify --host, --target, and nonopt at the
943 # same time.
944 # 2. Host defaults to nonopt.
945 # 3. If nonopt is not specified, then host defaults to the current host,
946 # as determined by config.guess.
947 # 4. Target and build default to nonopt.
948 # 5. If nonopt is not specified, then target and build default to host.
950 # The aliases save the names the user supplied, while $host etc.
951 # will get canonicalized.
952 case $host---$target---$nonopt in
953 NONE---*---* | *---NONE---* | *---*---NONE) ;;
954 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
955 esac
958 # Make sure we can run config.sub.
959 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
960 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
963 echo $ac_n "checking host system type""... $ac_c" 1>&6
964 echo "configure:965: checking host system type" >&5
966 host_alias=$host
967 case "$host_alias" in
968 NONE)
969 case $nonopt in
970 NONE)
971 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
972 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
973 fi ;;
974 *) host_alias=$nonopt ;;
975 esac ;;
976 esac
978 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
979 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$host" 1>&6
984 echo $ac_n "checking target system type""... $ac_c" 1>&6
985 echo "configure:986: checking target system type" >&5
987 target_alias=$target
988 case "$target_alias" in
989 NONE)
990 case $nonopt in
991 NONE) target_alias=$host_alias ;;
992 *) target_alias=$nonopt ;;
993 esac ;;
994 esac
996 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
997 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$target" 1>&6
1002 echo $ac_n "checking build system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking build system type" >&5
1005 build_alias=$build
1006 case "$build_alias" in
1007 NONE)
1008 case $nonopt in
1009 NONE) build_alias=$host_alias ;;
1010 *) build_alias=$nonopt ;;
1011 esac ;;
1012 esac
1014 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1015 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$build" 1>&6
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1022 NONENONEs,x,x, &&
1023 program_prefix=${target_alias}-
1026 # Find the native compiler
1027 # Extract the first word of "gcc", so it can be a program name with args.
1028 set dummy gcc; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034 if test -n "$CC"; then
1035 ac_cv_prog_CC="$CC" # Let the user override the test.
1036 else
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1038 ac_dummy="$PATH"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1042 ac_cv_prog_CC="gcc"
1043 break
1045 done
1046 IFS="$ac_save_ifs"
1049 CC="$ac_cv_prog_CC"
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1056 if test -z "$CC"; then
1057 # Extract the first word of "cc", so it can be a program name with args.
1058 set dummy cc; ac_word=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 echo "configure:1061: checking for $ac_word" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1066 else
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1068 ac_prog_rejected=no
1069 ac_dummy="$PATH"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1074 ac_prog_rejected=yes
1075 continue
1077 ac_cv_prog_CC="cc"
1078 break
1080 done
1081 IFS="$ac_save_ifs"
1082 if test $ac_prog_rejected = yes; then
1083 # We found a bogon in the path, so make sure we never use it.
1084 set dummy $ac_cv_prog_CC
1085 shift
1086 if test $# -gt 0; then
1087 # We chose a different compiler from the bogus one.
1088 # However, it has the same basename, so the bogon will be chosen
1089 # first if we set CC to just the basename; use the full file name.
1090 shift
1091 set dummy "$ac_dir/$ac_word" "$@"
1092 shift
1093 ac_cv_prog_CC="$@"
1098 CC="$ac_cv_prog_CC"
1099 if test -n "$CC"; then
1100 echo "$ac_t""$CC" 1>&6
1101 else
1102 echo "$ac_t""no" 1>&6
1105 if test -z "$CC"; then
1106 case "`uname -s`" in
1107 *win32* | *WIN32*)
1108 # Extract the first word of "cl", so it can be a program name with args.
1109 set dummy cl; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC="$CC" # Let the user override the test.
1117 else
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1119 ac_dummy="$PATH"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_CC="cl"
1124 break
1126 done
1127 IFS="$ac_save_ifs"
1130 CC="$ac_cv_prog_CC"
1131 if test -n "$CC"; then
1132 echo "$ac_t""$CC" 1>&6
1133 else
1134 echo "$ac_t""no" 1>&6
1137 esac
1139 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1142 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1145 ac_ext=c
1146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150 cross_compiling=$ac_cv_prog_cc_cross
1152 cat > conftest.$ac_ext << EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1157 main(){return(0);}
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160 ac_cv_prog_cc_works=yes
1161 # If we can't run a trivial program, we are probably using a cross compiler.
1162 if (./conftest; exit) 2>/dev/null; then
1163 ac_cv_prog_cc_cross=no
1164 else
1165 ac_cv_prog_cc_cross=yes
1167 else
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1170 ac_cv_prog_cc_works=no
1172 rm -fr conftest*
1173 ac_ext=c
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1181 if test $ac_cv_prog_cc_works = no; then
1182 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1186 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1187 cross_compiling=$ac_cv_prog_cc_cross
1189 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether we are using GNU C" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 cat > conftest.c <<EOF
1195 #ifdef __GNUC__
1196 yes;
1197 #endif
1199 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1200 ac_cv_prog_gcc=yes
1201 else
1202 ac_cv_prog_gcc=no
1206 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1208 if test $ac_cv_prog_gcc = yes; then
1209 GCC=yes
1210 else
1211 GCC=
1214 ac_test_CFLAGS="${CFLAGS+set}"
1215 ac_save_CFLAGS="$CFLAGS"
1216 CFLAGS=
1217 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${CC-cc} accepts -g" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222 echo 'void f(){}' > conftest.c
1223 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1224 ac_cv_prog_cc_g=yes
1225 else
1226 ac_cv_prog_cc_g=no
1228 rm -f conftest*
1232 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1233 if test "$ac_test_CFLAGS" = set; then
1234 CFLAGS="$ac_save_CFLAGS"
1235 elif test $ac_cv_prog_cc_g = yes; then
1236 if test "$GCC" = yes; then
1237 CFLAGS="-g -O2"
1238 else
1239 CFLAGS="-g"
1241 else
1242 if test "$GCC" = yes; then
1243 CFLAGS="-O2"
1244 else
1245 CFLAGS=
1250 # If the native compiler is GCC, we can enable warnings even in stage1.
1251 # That's useful for people building cross-compilers, or just running a
1252 # quick `make'.
1253 if test "x$GCC" = "xyes"; then
1254 stage1_warn_cflags='$(WARN_CFLAGS)'
1255 else
1256 stage1_warn_cflags=""
1260 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether ${MAKE-make} sets \${MAKE}" >&5
1262 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266 cat > conftestmake <<\EOF
1267 all:
1268 @echo 'ac_maketemp="${MAKE}"'
1270 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1271 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1272 if test -n "$ac_maketemp"; then
1273 eval ac_cv_prog_make_${ac_make}_set=yes
1274 else
1275 eval ac_cv_prog_make_${ac_make}_set=no
1277 rm -f conftestmake
1279 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1280 echo "$ac_t""yes" 1>&6
1281 SET_MAKE=
1282 else
1283 echo "$ac_t""no" 1>&6
1284 SET_MAKE="MAKE=${MAKE-make}"
1288 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether a default assembler was specified" >&5
1290 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1291 if test x"$gas_flag" = x"no"; then
1292 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1293 else
1294 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1296 else
1297 echo "$ac_t""no" 1>&6
1300 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether a default linker was specified" >&5
1302 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1303 if test x"$gnu_ld_flag" = x"no"; then
1304 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1305 else
1306 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1308 else
1309 echo "$ac_t""no" 1>&6
1312 # Find some useful tools
1313 for ac_prog in gawk mawk nawk awk
1315 # Extract the first word of "$ac_prog", so it can be a program name with args.
1316 set dummy $ac_prog; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test -n "$AWK"; then
1323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1324 else
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 ac_dummy="$PATH"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AWK="$ac_prog"
1331 break
1333 done
1334 IFS="$ac_save_ifs"
1337 AWK="$ac_cv_prog_AWK"
1338 if test -n "$AWK"; then
1339 echo "$ac_t""$AWK" 1>&6
1340 else
1341 echo "$ac_t""no" 1>&6
1344 test -n "$AWK" && break
1345 done
1347 # Extract the first word of "flex", so it can be a program name with args.
1348 set dummy flex; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 if test -n "$LEX"; then
1355 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1356 else
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 ac_dummy="$PATH"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_LEX="flex"
1363 break
1365 done
1366 IFS="$ac_save_ifs"
1367 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1370 LEX="$ac_cv_prog_LEX"
1371 if test -n "$LEX"; then
1372 echo "$ac_t""$LEX" 1>&6
1373 else
1374 echo "$ac_t""no" 1>&6
1377 if test -z "$LEXLIB"
1378 then
1379 case "$LEX" in
1380 flex*) ac_lib=fl ;;
1381 *) ac_lib=l ;;
1382 esac
1383 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1384 echo "configure:1385: checking for yywrap in -l$ac_lib" >&5
1385 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 ac_save_LIBS="$LIBS"
1390 LIBS="-l$ac_lib $LIBS"
1391 cat > conftest.$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1397 char yywrap();
1399 int main() {
1400 yywrap()
1401 ; return 0; }
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 rm -rf conftest*
1405 eval "ac_cv_lib_$ac_lib_var=yes"
1406 else
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1409 rm -rf conftest*
1410 eval "ac_cv_lib_$ac_lib_var=no"
1412 rm -f conftest*
1413 LIBS="$ac_save_LIBS"
1416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1418 LEXLIB="-l$ac_lib"
1419 else
1420 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ln works" >&5
1427 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 rm -f conftestdata_t
1431 echo >conftestdata_f
1432 if ln conftestdata_f conftestdata_t 2>/dev/null
1433 then
1434 gcc_cv_prog_LN="ln"
1435 else
1436 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1437 then
1438 gcc_cv_prog_LN="ln -s"
1439 else
1440 gcc_cv_prog_LN=cp
1443 rm -f conftestdata_f conftestdata_t
1446 LN="$gcc_cv_prog_LN"
1447 if test "$gcc_cv_prog_LN" = "ln"; then
1448 echo "$ac_t""yes" 1>&6
1449 else
1450 if test "$gcc_cv_prog_LN" = "ln -s"; then
1451 echo "$ac_t""no, using ln -s" 1>&6
1452 else
1453 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1457 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1458 echo "configure:1459: checking whether ln -s works" >&5
1459 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 rm -f conftestdata_t
1463 echo >conftestdata_f
1464 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1465 then
1466 gcc_cv_prog_LN_S="ln -s"
1467 else
1468 if ln conftestdata_f conftestdata_t 2>/dev/null
1469 then
1470 gcc_cv_prog_LN_S=ln
1471 else
1472 gcc_cv_prog_LN_S=cp
1475 rm -f conftestdata_f conftestdata_t
1478 LN_S="$gcc_cv_prog_LN_S"
1479 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1480 echo "$ac_t""yes" 1>&6
1481 else
1482 if test "$gcc_cv_prog_LN_S" = "ln"; then
1483 echo "$ac_t""no, using ln" 1>&6
1484 else
1485 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1489 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1490 echo "configure:1491: checking for volatile" >&5
1491 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1493 else
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1498 int main() {
1499 volatile int foo;
1500 ; return 0; }
1502 if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1503 rm -rf conftest*
1504 gcc_cv_c_volatile=yes
1505 else
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1508 rm -rf conftest*
1509 gcc_cv_c_volatile=no
1511 rm -f conftest*
1514 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1515 if test $gcc_cv_c_volatile = yes ; then
1516 cat >> confdefs.h <<\EOF
1517 #define HAVE_VOLATILE 1
1522 # Extract the first word of "ranlib", so it can be a program name with args.
1523 set dummy ranlib; ac_word=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 if test -n "$RANLIB"; then
1530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1531 else
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1533 ac_dummy="$PATH"
1534 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f $ac_dir/$ac_word; then
1537 ac_cv_prog_RANLIB="ranlib"
1538 break
1540 done
1541 IFS="$ac_save_ifs"
1542 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1545 RANLIB="$ac_cv_prog_RANLIB"
1546 if test -n "$RANLIB"; then
1547 echo "$ac_t""$RANLIB" 1>&6
1548 else
1549 echo "$ac_t""no" 1>&6
1552 for ac_prog in 'bison -y' byacc
1554 # Extract the first word of "$ac_prog", so it can be a program name with args.
1555 set dummy $ac_prog; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 if test -n "$YACC"; then
1562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1563 else
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 ac_dummy="$PATH"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_YACC="$ac_prog"
1570 break
1572 done
1573 IFS="$ac_save_ifs"
1576 YACC="$ac_cv_prog_YACC"
1577 if test -n "$YACC"; then
1578 echo "$ac_t""$YACC" 1>&6
1579 else
1580 echo "$ac_t""no" 1>&6
1583 test -n "$YACC" && break
1584 done
1585 test -n "$YACC" || YACC="yacc"
1587 # Find a good install program. We prefer a C program (faster),
1588 # so one script is as good as another. But avoid the broken or
1589 # incompatible versions:
1590 # SysV /etc/install, /usr/sbin/install
1591 # SunOS /usr/etc/install
1592 # IRIX /sbin/install
1593 # AIX /bin/install
1594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1596 # ./install, which can be erroneously created by make from ./install.sh.
1597 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1598 echo "configure:1599: checking for a BSD compatible install" >&5
1599 if test -z "$INSTALL"; then
1600 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1604 for ac_dir in $PATH; do
1605 # Account for people who put trailing slashes in PATH elements.
1606 case "$ac_dir/" in
1607 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1609 # OSF1 and SCO ODT 3.0 have their own names for install.
1610 for ac_prog in ginstall scoinst install; do
1611 if test -f $ac_dir/$ac_prog; then
1612 if test $ac_prog = install &&
1613 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1614 # AIX install. It has an incompatible calling convention.
1615 # OSF/1 installbsd also uses dspmsg, but is usable.
1617 else
1618 ac_cv_path_install="$ac_dir/$ac_prog -c"
1619 break 2
1622 done
1624 esac
1625 done
1626 IFS="$ac_save_IFS"
1629 if test "${ac_cv_path_install+set}" = set; then
1630 INSTALL="$ac_cv_path_install"
1631 else
1632 # As a last resort, use the slow shell script. We don't cache a
1633 # path for INSTALL within a source directory, because that will
1634 # break other packages using the cache if that directory is
1635 # removed, or if the path is relative.
1636 INSTALL="$ac_install_sh"
1639 echo "$ac_t""$INSTALL" 1>&6
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1649 echo "configure:1650: checking how to run the C preprocessor" >&5
1650 # On Suns, sometimes $CPP names a directory.
1651 if test -n "$CPP" && test -d "$CPP"; then
1652 CPP=
1654 if test -z "$CPP"; then
1655 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658 # This must be in double quotes, not single quotes, because CPP may get
1659 # substituted into the Makefile and "${CC-cc}" will confuse make.
1660 CPP="${CC-cc} -E"
1661 # On the NeXT, cc -E runs the code through the compiler's parser,
1662 # not just through cpp.
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 #include <assert.h>
1667 Syntax Error
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672 if test -z "$ac_err"; then
1674 else
1675 echo "$ac_err" >&5
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1678 rm -rf conftest*
1679 CPP="${CC-cc} -E -traditional-cpp"
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 #include <assert.h>
1684 Syntax Error
1686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1691 else
1692 echo "$ac_err" >&5
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 rm -rf conftest*
1696 CPP="${CC-cc} -nologo -E"
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 #include <assert.h>
1701 Syntax Error
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1708 else
1709 echo "$ac_err" >&5
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 CPP=/lib/cpp
1715 rm -f conftest*
1717 rm -f conftest*
1719 rm -f conftest*
1720 ac_cv_prog_CPP="$CPP"
1722 CPP="$ac_cv_prog_CPP"
1723 else
1724 ac_cv_prog_CPP="$CPP"
1726 echo "$ac_t""$CPP" 1>&6
1728 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1729 echo "configure:1730: checking for ANSI C header files" >&5
1730 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732 else
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 #include <stdlib.h>
1737 #include <stdarg.h>
1738 #include <string.h>
1739 #include <float.h>
1741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1742 { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1744 if test -z "$ac_err"; then
1745 rm -rf conftest*
1746 ac_cv_header_stdc=yes
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 ac_cv_header_stdc=no
1754 rm -f conftest*
1756 if test $ac_cv_header_stdc = yes; then
1757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1758 cat > conftest.$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1761 #include <string.h>
1763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1764 egrep "memchr" >/dev/null 2>&1; then
1766 else
1767 rm -rf conftest*
1768 ac_cv_header_stdc=no
1770 rm -f conftest*
1774 if test $ac_cv_header_stdc = yes; then
1775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 #include <stdlib.h>
1781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1782 egrep "free" >/dev/null 2>&1; then
1784 else
1785 rm -rf conftest*
1786 ac_cv_header_stdc=no
1788 rm -f conftest*
1792 if test $ac_cv_header_stdc = yes; then
1793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1794 if test "$cross_compiling" = yes; then
1796 else
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800 #include <ctype.h>
1801 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1802 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1804 int main () { int i; for (i = 0; i < 256; i++)
1805 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1806 exit (0); }
1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1810 then
1812 else
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1815 rm -fr conftest*
1816 ac_cv_header_stdc=no
1818 rm -fr conftest*
1824 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1825 if test $ac_cv_header_stdc = yes; then
1826 cat >> confdefs.h <<\EOF
1827 #define STDC_HEADERS 1
1832 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether time.h and sys/time.h may both be included" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 #include <sys/types.h>
1841 #include <sys/time.h>
1842 #include <time.h>
1843 int main() {
1844 struct tm *tp;
1845 ; return 0; }
1847 if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1848 rm -rf conftest*
1849 ac_cv_header_time=yes
1850 else
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 rm -rf conftest*
1854 ac_cv_header_time=no
1856 rm -f conftest*
1859 echo "$ac_t""$ac_cv_header_time" 1>&6
1860 if test $ac_cv_header_time = yes; then
1861 cat >> confdefs.h <<\EOF
1862 #define TIME_WITH_SYS_TIME 1
1867 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1868 echo "configure:1869: checking whether string.h and strings.h may both be included" >&5
1869 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <string.h>
1876 #include <strings.h>
1877 int main() {
1879 ; return 0; }
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 rm -rf conftest*
1883 gcc_cv_header_string=yes
1884 else
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 rm -rf conftest*
1888 gcc_cv_header_string=no
1890 rm -f conftest*
1893 echo "$ac_t""$gcc_cv_header_string" 1>&6
1894 if test $gcc_cv_header_string = yes; then
1895 cat >> confdefs.h <<\EOF
1896 #define STRING_WITH_STRINGS 1
1901 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1902 echo "configure:1903: checking for sys/wait.h that is POSIX.1 compatible" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1905 else
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <sys/types.h>
1910 #include <sys/wait.h>
1911 #ifndef WEXITSTATUS
1912 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1913 #endif
1914 #ifndef WIFEXITED
1915 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1916 #endif
1917 int main() {
1918 int s;
1919 wait (&s);
1920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1921 ; return 0; }
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 rm -rf conftest*
1925 ac_cv_header_sys_wait_h=yes
1926 else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 ac_cv_header_sys_wait_h=no
1932 rm -f conftest*
1935 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1936 if test $ac_cv_header_sys_wait_h = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define HAVE_SYS_WAIT_H 1
1943 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h
1945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_hdr" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #include <$ac_hdr>
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1960 rm -rf conftest*
1961 eval "ac_cv_header_$ac_safe=yes"
1962 else
1963 echo "$ac_err" >&5
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1966 rm -rf conftest*
1967 eval "ac_cv_header_$ac_safe=no"
1969 rm -f conftest*
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_hdr 1
1978 else
1979 echo "$ac_t""no" 1>&6
1981 done
1984 # Check for thread headers.
1985 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1987 echo "configure:1988: checking for thread.h" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990 else
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <thread.h>
1996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999 if test -z "$ac_err"; then
2000 rm -rf conftest*
2001 eval "ac_cv_header_$ac_safe=yes"
2002 else
2003 echo "$ac_err" >&5
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -rf conftest*
2007 eval "ac_cv_header_$ac_safe=no"
2009 rm -f conftest*
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 have_thread_h=yes
2014 else
2015 echo "$ac_t""no" 1>&6
2016 have_thread_h=
2019 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2020 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2021 echo "configure:2022: checking for pthread.h" >&5
2022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <pthread.h>
2030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2031 { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2033 if test -z "$ac_err"; then
2034 rm -rf conftest*
2035 eval "ac_cv_header_$ac_safe=yes"
2036 else
2037 echo "$ac_err" >&5
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 rm -rf conftest*
2041 eval "ac_cv_header_$ac_safe=no"
2043 rm -f conftest*
2045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2046 echo "$ac_t""yes" 1>&6
2047 have_pthread_h=yes
2048 else
2049 echo "$ac_t""no" 1>&6
2050 have_pthread_h=
2054 # See if GNAT has been installed
2055 # Extract the first word of "gnatbind", so it can be a program name with args.
2056 set dummy gnatbind; ac_word=$2
2057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_word" >&5
2059 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 if test -n "$gnat"; then
2063 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2064 else
2065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2066 ac_dummy="$PATH"
2067 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 if test -f $ac_dir/$ac_word; then
2070 ac_cv_prog_gnat="yes"
2071 break
2073 done
2074 IFS="$ac_save_ifs"
2075 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2078 gnat="$ac_cv_prog_gnat"
2079 if test -n "$gnat"; then
2080 echo "$ac_t""$gnat" 1>&6
2081 else
2082 echo "$ac_t""no" 1>&6
2086 # See if the system preprocessor understands the ANSI C preprocessor
2087 # stringification operator.
2088 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2089 echo "configure:2090: checking whether cpp understands the stringify operator" >&5
2090 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2097 int main() {
2098 #define S(x) #x
2099 char *test = S(foo);
2100 ; return 0; }
2102 if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2103 rm -rf conftest*
2104 gcc_cv_c_have_stringify=yes
2105 else
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 rm -rf conftest*
2109 gcc_cv_c_have_stringify=no
2111 rm -f conftest*
2114 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2115 if test $gcc_cv_c_have_stringify = yes; then
2116 cat >> confdefs.h <<\EOF
2117 #define HAVE_CPP_STRINGIFY 1
2122 # Use <inttypes.h> only if it exists,
2123 # doesn't clash with <sys/types.h>, and declares intmax_t.
2124 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2125 echo "configure:2126: checking for inttypes.h" >&5
2126 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <inttypes.h>
2134 int main() {
2135 intmax_t i = -1;
2136 ; return 0; }
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2139 rm -rf conftest*
2140 gcc_cv_header_inttypes_h=yes
2141 else
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2144 rm -rf conftest*
2145 gcc_cv_header_inttypes_h=no
2147 rm -f conftest*
2150 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2151 if test $gcc_cv_header_inttypes_h = yes; then
2152 cat >> confdefs.h <<\EOF
2153 #define HAVE_INTTYPES_H 1
2158 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2159 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2160 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2161 fputs_unlocked
2163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2164 echo "configure:2165: checking for $ac_func" >&5
2165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* System header to define __stub macros and hopefully few prototypes,
2172 which can conflict with char $ac_func(); below. */
2173 #include <assert.h>
2174 /* Override any gcc2 internal prototype to avoid an error. */
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2177 char $ac_func();
2179 int main() {
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2185 choke me
2186 #else
2187 $ac_func();
2188 #endif
2190 ; return 0; }
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193 rm -rf conftest*
2194 eval "ac_cv_func_$ac_func=yes"
2195 else
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 rm -rf conftest*
2199 eval "ac_cv_func_$ac_func=no"
2201 rm -f conftest*
2204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2205 echo "$ac_t""yes" 1>&6
2206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2207 cat >> confdefs.h <<EOF
2208 #define $ac_tr_func 1
2211 else
2212 echo "$ac_t""no" 1>&6
2214 done
2217 # Make sure wchar_t is available
2218 #AC_CHECK_TYPE(wchar_t, unsigned int)
2220 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2221 echo "configure:2222: checking for vprintf" >&5
2222 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2224 else
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char vprintf(); below. */
2230 #include <assert.h>
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2234 char vprintf();
2236 int main() {
2238 /* The GNU C library defines this for functions which it implements
2239 to always fail with ENOSYS. Some functions are actually named
2240 something starting with __ and the normal name is an alias. */
2241 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2242 choke me
2243 #else
2244 vprintf();
2245 #endif
2247 ; return 0; }
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250 rm -rf conftest*
2251 eval "ac_cv_func_vprintf=yes"
2252 else
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 rm -rf conftest*
2256 eval "ac_cv_func_vprintf=no"
2258 rm -f conftest*
2261 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2262 echo "$ac_t""yes" 1>&6
2263 cat >> confdefs.h <<\EOF
2264 #define HAVE_VPRINTF 1
2267 else
2268 echo "$ac_t""no" 1>&6
2271 if test "$ac_cv_func_vprintf" != yes; then
2272 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2273 echo "configure:2274: checking for _doprnt" >&5
2274 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 /* System header to define __stub macros and hopefully few prototypes,
2281 which can conflict with char _doprnt(); below. */
2282 #include <assert.h>
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286 char _doprnt();
2288 int main() {
2290 /* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2294 choke me
2295 #else
2296 _doprnt();
2297 #endif
2299 ; return 0; }
2301 if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2302 rm -rf conftest*
2303 eval "ac_cv_func__doprnt=yes"
2304 else
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 rm -rf conftest*
2308 eval "ac_cv_func__doprnt=no"
2310 rm -f conftest*
2313 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 cat >> confdefs.h <<\EOF
2316 #define HAVE_DOPRNT 1
2319 else
2320 echo "$ac_t""no" 1>&6
2325 vfprintf=
2326 doprint=
2327 if test $ac_cv_func_vprintf != yes ; then
2328 vfprintf=vfprintf.o
2329 if test $ac_cv_func__doprnt != yes ; then
2330 doprint=doprint.o
2336 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether the printf functions support %p" >&5
2338 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341 if test "$cross_compiling" = yes; then
2342 gcc_cv_func_printf_ptr=no
2343 else
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <stdio.h>
2349 main()
2351 char buf[64];
2352 char *p = buf, *q = NULL;
2353 sprintf(buf, "%p", p);
2354 sscanf(buf, "%p", &q);
2355 exit (p != q);
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2359 then
2360 gcc_cv_func_printf_ptr=yes
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -fr conftest*
2365 gcc_cv_func_printf_ptr=no
2367 rm -fr conftest*
2370 rm -f core core.* *.core
2373 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2374 if test $gcc_cv_func_printf_ptr = yes ; then
2375 cat >> confdefs.h <<\EOF
2376 #define HAVE_PRINTF_PTR 1
2382 case "${host}" in
2383 *-*-uwin*)
2384 # Under some versions of uwin, vfork is notoriously buggy and the test
2385 # can hang configure; on other versions, vfork exists just as a stub.
2386 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2387 ac_cv_func_vfork_works=no
2389 esac
2390 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2391 echo "configure:2392: checking for pid_t" >&5
2392 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 #include <sys/types.h>
2399 #if STDC_HEADERS
2400 #include <stdlib.h>
2401 #include <stddef.h>
2402 #endif
2404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2406 rm -rf conftest*
2407 ac_cv_type_pid_t=yes
2408 else
2409 rm -rf conftest*
2410 ac_cv_type_pid_t=no
2412 rm -f conftest*
2415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2416 if test $ac_cv_type_pid_t = no; then
2417 cat >> confdefs.h <<\EOF
2418 #define pid_t int
2423 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2424 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2425 echo "configure:2426: checking for vfork.h" >&5
2426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <vfork.h>
2434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2435 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2437 if test -z "$ac_err"; then
2438 rm -rf conftest*
2439 eval "ac_cv_header_$ac_safe=yes"
2440 else
2441 echo "$ac_err" >&5
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 rm -rf conftest*
2445 eval "ac_cv_header_$ac_safe=no"
2447 rm -f conftest*
2449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2450 echo "$ac_t""yes" 1>&6
2451 cat >> confdefs.h <<\EOF
2452 #define HAVE_VFORK_H 1
2455 else
2456 echo "$ac_t""no" 1>&6
2459 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2460 echo "configure:2461: checking for working vfork" >&5
2461 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 if test "$cross_compiling" = yes; then
2465 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2466 echo "configure:2467: checking for vfork" >&5
2467 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char vfork(); below. */
2475 #include <assert.h>
2476 /* Override any gcc2 internal prototype to avoid an error. */
2477 /* We use char because int might match the return type of a gcc2
2478 builtin and then its argument prototype would still apply. */
2479 char vfork();
2481 int main() {
2483 /* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486 #if defined (__stub_vfork) || defined (__stub___vfork)
2487 choke me
2488 #else
2489 vfork();
2490 #endif
2492 ; return 0; }
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 rm -rf conftest*
2496 eval "ac_cv_func_vfork=yes"
2497 else
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2500 rm -rf conftest*
2501 eval "ac_cv_func_vfork=no"
2503 rm -f conftest*
2506 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2509 else
2510 echo "$ac_t""no" 1>&6
2513 ac_cv_func_vfork_works=$ac_cv_func_vfork
2514 else
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Thanks to Paul Eggert for this test. */
2519 #include <stdio.h>
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 #ifdef HAVE_UNISTD_H
2523 #include <unistd.h>
2524 #endif
2525 #ifdef HAVE_VFORK_H
2526 #include <vfork.h>
2527 #endif
2528 /* On some sparc systems, changes by the child to local and incoming
2529 argument registers are propagated back to the parent.
2530 The compiler is told about this with #include <vfork.h>,
2531 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2532 Test for this by using a static variable whose address
2533 is put into a register that is clobbered by the vfork. */
2534 static
2535 #ifdef __cplusplus
2536 sparc_address_test (int arg)
2537 #else
2538 sparc_address_test (arg) int arg;
2539 #endif
2541 static pid_t child;
2542 if (!child) {
2543 child = vfork ();
2544 if (child < 0) {
2545 perror ("vfork");
2546 _exit(2);
2548 if (!child) {
2549 arg = getpid();
2550 write(-1, "", 0);
2551 _exit (arg);
2555 main() {
2556 pid_t parent = getpid ();
2557 pid_t child;
2559 sparc_address_test ();
2561 child = vfork ();
2563 if (child == 0) {
2564 /* Here is another test for sparc vfork register problems.
2565 This test uses lots of local variables, at least
2566 as many local variables as main has allocated so far
2567 including compiler temporaries. 4 locals are enough for
2568 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2569 A buggy compiler should reuse the register of parent
2570 for one of the local variables, since it will think that
2571 parent can't possibly be used any more in this routine.
2572 Assigning to the local variable will thus munge parent
2573 in the parent process. */
2574 pid_t
2575 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2576 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2577 /* Convince the compiler that p..p7 are live; otherwise, it might
2578 use the same hardware register for all 8 local variables. */
2579 if (p != p1 || p != p2 || p != p3 || p != p4
2580 || p != p5 || p != p6 || p != p7)
2581 _exit(1);
2583 /* On some systems (e.g. IRIX 3.3),
2584 vfork doesn't separate parent from child file descriptors.
2585 If the child closes a descriptor before it execs or exits,
2586 this munges the parent's descriptor as well.
2587 Test for this by closing stdout in the child. */
2588 _exit(close(fileno(stdout)) != 0);
2589 } else {
2590 int status;
2591 struct stat st;
2593 while (wait(&status) != child)
2595 exit(
2596 /* Was there some problem with vforking? */
2597 child < 0
2599 /* Did the child fail? (This shouldn't happen.) */
2600 || status
2602 /* Did the vfork/compiler bug occur? */
2603 || parent != getpid()
2605 /* Did the file descriptor bug occur? */
2606 || fstat(fileno(stdout), &st) != 0
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2612 then
2613 ac_cv_func_vfork_works=yes
2614 else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -fr conftest*
2618 ac_cv_func_vfork_works=no
2620 rm -fr conftest*
2625 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2626 if test $ac_cv_func_vfork_works = no; then
2627 cat >> confdefs.h <<\EOF
2628 #define vfork fork
2634 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2635 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2636 strsignal putc_unlocked fputs_unlocked strstr
2638 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2639 echo "configure:2640: checking whether $ac_func must be declared" >&5
2640 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2647 #include <stdio.h>
2648 #ifdef STRING_WITH_STRINGS
2649 # include <string.h>
2650 # include <strings.h>
2651 #else
2652 # ifdef HAVE_STRING_H
2653 # include <string.h>
2654 # else
2655 # ifdef HAVE_STRINGS_H
2656 # include <strings.h>
2657 # endif
2658 # endif
2659 #endif
2660 #ifdef HAVE_STDLIB_H
2661 #include <stdlib.h>
2662 #endif
2663 #ifdef HAVE_UNISTD_H
2664 #include <unistd.h>
2665 #endif
2666 #ifndef HAVE_RINDEX
2667 #define rindex strrchr
2668 #endif
2669 #ifndef HAVE_INDEX
2670 #define index strchr
2671 #endif
2673 int main() {
2674 char *(*pfn) = (char *(*)) $ac_func
2675 ; return 0; }
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678 rm -rf conftest*
2679 eval "gcc_cv_decl_needed_$ac_func=no"
2680 else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 eval "gcc_cv_decl_needed_$ac_func=yes"
2686 rm -f conftest*
2689 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2692 cat >> confdefs.h <<EOF
2693 #define $gcc_tr_decl 1
2696 else
2697 echo "$ac_t""no" 1>&6
2700 done
2703 for ac_func in getrlimit setrlimit
2705 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2706 echo "configure:2707: checking whether $ac_func must be declared" >&5
2707 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2714 #include <stdio.h>
2715 #ifdef STRING_WITH_STRINGS
2716 # include <string.h>
2717 # include <strings.h>
2718 #else
2719 # ifdef HAVE_STRING_H
2720 # include <string.h>
2721 # else
2722 # ifdef HAVE_STRINGS_H
2723 # include <strings.h>
2724 # endif
2725 # endif
2726 #endif
2727 #ifdef HAVE_STDLIB_H
2728 #include <stdlib.h>
2729 #endif
2730 #ifdef HAVE_UNISTD_H
2731 #include <unistd.h>
2732 #endif
2733 #ifndef HAVE_RINDEX
2734 #define rindex strrchr
2735 #endif
2736 #ifndef HAVE_INDEX
2737 #define index strchr
2738 #endif
2739 #include <sys/types.h>
2740 #ifdef HAVE_SYS_RESOURCE_H
2741 #include <sys/resource.h>
2742 #endif
2744 int main() {
2745 char *(*pfn) = (char *(*)) $ac_func
2746 ; return 0; }
2748 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2749 rm -rf conftest*
2750 eval "gcc_cv_decl_needed_$ac_func=no"
2751 else
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 rm -rf conftest*
2755 eval "gcc_cv_decl_needed_$ac_func=yes"
2757 rm -f conftest*
2760 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2763 cat >> confdefs.h <<EOF
2764 #define $gcc_tr_decl 1
2767 else
2768 echo "$ac_t""no" 1>&6
2771 done
2774 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2775 echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2776 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <sys/types.h>
2783 #include <signal.h>
2784 /* NetBSD declares sys_siglist in unistd.h. */
2785 #ifdef HAVE_UNISTD_H
2786 #include <unistd.h>
2787 #endif
2788 int main() {
2789 char *msg = *(sys_siglist + 1);
2790 ; return 0; }
2792 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2793 rm -rf conftest*
2794 ac_cv_decl_sys_siglist=yes
2795 else
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2798 rm -rf conftest*
2799 ac_cv_decl_sys_siglist=no
2801 rm -f conftest*
2804 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2805 if test $ac_cv_decl_sys_siglist = yes; then
2806 cat >> confdefs.h <<\EOF
2807 #define SYS_SIGLIST_DECLARED 1
2813 # mkdir takes a single argument on some systems.
2814 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2815 echo "configure:2816: checking if mkdir takes one argument" >&5
2816 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2823 #include <sys/types.h>
2824 #ifdef HAVE_SYS_STAT_H
2825 # include <sys/stat.h>
2826 #endif
2827 #ifdef HAVE_UNISTD_H
2828 # include <unistd.h>
2829 #endif
2830 #ifdef HAVE_DIRECT_H
2831 # include <direct.h>
2832 #endif
2833 int main() {
2834 mkdir ("foo", 0);
2835 ; return 0; }
2837 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2838 rm -rf conftest*
2839 gcc_cv_mkdir_takes_one_arg=no
2840 else
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 rm -rf conftest*
2844 gcc_cv_mkdir_takes_one_arg=yes
2846 rm -f conftest*
2849 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2850 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2851 cat >> confdefs.h <<\EOF
2852 #define MKDIR_TAKES_ONE_ARG 1
2858 # File extensions
2859 manext='.1'
2860 objext='.o'
2864 build_xm_file=
2865 build_xm_defines=
2866 build_install_headers_dir=install-headers-tar
2867 build_exeext=
2868 host_xm_file=
2869 host_xm_defines=
2870 host_xmake_file=
2871 host_truncate_target=
2872 host_exeext=
2874 # Decode the host machine, then the target machine.
2875 # For the host machine, we save the xm_file variable as host_xm_file;
2876 # then we decode the target machine and forget everything else
2877 # that came from the host machine.
2878 for machine in $build $host $target; do
2880 out_file=
2881 xmake_file=
2882 tmake_file=
2883 extra_headers=
2884 extra_passes=
2885 extra_parts=
2886 extra_programs=
2887 extra_objs=
2888 extra_host_objs=
2889 extra_gcc_objs=
2890 xm_defines=
2891 float_format=
2892 # Set this to force installation and use of collect2.
2893 use_collect2=
2894 # Set this to override the default target model.
2895 target_cpu_default=
2896 # Set this to control how the header file directory is installed.
2897 install_headers_dir=install-headers-tar
2898 # Set this to a non-empty list of args to pass to cpp if the target
2899 # wants its .md file passed through cpp.
2900 md_cppflags=
2901 # Set this if directory names should be truncated to 14 characters.
2902 truncate_target=
2903 # Set this if gdb needs a dir command with `dirname $out_file`
2904 gdb_needs_out_file_path=
2905 # Set this if the build machine requires executables to have a
2906 # file name suffix.
2907 exeext=
2908 # Set this to control which thread package will be used.
2909 thread_file=
2910 # Reinitialize these from the flag values every loop pass, since some
2911 # configure entries modify them.
2912 gas="$gas_flag"
2913 gnu_ld="$gnu_ld_flag"
2914 enable_threads=$enable_threads_flag
2916 # Set default cpu_type, tm_file and xm_file so it can be updated in
2917 # each machine entry.
2918 cpu_type=`echo $machine | sed 's/-.*$//'`
2919 case $machine in
2920 alpha*-*-*)
2921 cpu_type=alpha
2923 arm*-*-*)
2924 cpu_type=arm
2926 c*-convex-*)
2927 cpu_type=convex
2929 i[34567]86-*-*)
2930 cpu_type=i386
2932 hppa*-*-*)
2933 cpu_type=pa
2935 m68000-*-*)
2936 cpu_type=m68k
2938 mips*-*-*)
2939 cpu_type=mips
2941 powerpc*-*-*)
2942 cpu_type=rs6000
2944 pyramid-*-*)
2945 cpu_type=pyr
2947 sparc*-*-*)
2948 cpu_type=sparc
2950 esac
2952 tm_file=${cpu_type}/${cpu_type}.h
2953 xm_file=${cpu_type}/xm-${cpu_type}.h
2955 # Common parts for linux-gnu and openbsd systems
2956 case $machine in
2957 *-*-linux-gnu*)
2958 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2960 *-*-openbsd*)
2961 tm_file=${cpu_type}/openbsd.h
2962 tmake_file="t-libc-ok t-openbsd"
2963 # avoid surprises, always provide an xm-openbsd file
2964 xm_file=${cpu_type}/xm-openbsd.h
2965 # don't depend on processor x-fragments as well
2966 xmake_file=none
2967 if test x$enable_threads = xyes; then
2968 thread_file='posix'
2969 tmake_file="${tmake_file} t-openbsd-thread"
2972 esac
2974 case $machine in
2975 # Support site-specific machine types.
2976 *local*)
2977 cpu_type=`echo $machine | sed -e 's/-.*//'`
2978 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2979 xm_file=${cpu_type}/xm-$rest.h
2980 tm_file=${cpu_type}/$rest.h
2981 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2982 then xmake_file=${cpu_type}/x-$rest; \
2983 else true; \
2985 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2986 then tmake_file=${cpu_type}/t-$rest; \
2987 else true; \
2990 1750a-*-*)
2992 a29k-*-bsd* | a29k-*-sym1*)
2993 tm_file="${tm_file} a29k/unix.h"
2994 xm_defines=USG
2995 xmake_file=a29k/x-unix
2996 use_collect2=yes
2998 a29k-*-udi | a29k-*-coff)
2999 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3000 tmake_file=a29k/t-a29kbare
3002 a29k-wrs-vxworks*)
3003 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3004 tmake_file=a29k/t-vx29k
3005 extra_parts="crtbegin.o crtend.o"
3006 thread_file='vxworks'
3008 a29k-*-*) # Default a29k environment.
3009 use_collect2=yes
3011 alpha-*-interix)
3012 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3014 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3015 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3017 # GAS + IEEE_CONFORMANT
3018 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3020 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3021 xmake_file="x-interix alpha/t-pe"
3022 tmake_file="alpha/t-interix alpha/t-ieee"
3023 if test x$enable_threads = xyes ; then
3024 thread_file='posix'
3026 if test x$stabs = xyes ; then
3027 tm_file="${tm_file} dbxcoff.h"
3029 #prefix='$$INTERIX_ROOT'/usr/contrib
3030 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3032 alpha*-*-linux-gnuecoff*)
3033 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3034 target_cpu_default="MASK_GAS"
3035 tmake_file="alpha/t-ieee"
3036 gas=no
3037 xmake_file=none
3038 gas=yes gnu_ld=yes
3040 alpha*-*-linux-gnulibc1*)
3041 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3042 target_cpu_default="MASK_GAS"
3043 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3044 extra_parts="crtbegin.o crtend.o"
3045 xmake_file=none
3046 gas=yes gnu_ld=yes
3047 if test x$enable_threads = xyes; then
3048 thread_file='posix'
3051 alpha*-*-linux-gnu*)
3052 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3053 target_cpu_default="MASK_GAS"
3054 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3055 extra_parts="crtbegin.o crtend.o"
3056 xmake_file=none
3057 gas=yes gnu_ld=yes
3058 if test x$enable_threads = xyes; then
3059 thread_file='posix'
3062 alpha*-*-netbsd*)
3063 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3064 target_cpu_default="MASK_GAS"
3065 tmake_file="alpha/t-crtbe alpha/t-ieee"
3066 extra_parts="crtbegin.o crtend.o"
3067 xmake_file=none
3068 gas=yes gnu_ld=yes
3071 alpha*-*-openbsd*)
3072 # default x-alpha is only appropriate for dec-osf.
3073 target_cpu_default="MASK_GAS"
3074 tmake_file="alpha/t-ieee"
3077 alpha*-dec-osf*)
3078 if test x$stabs = xyes
3079 then
3080 tm_file="${tm_file} dbx.h"
3082 if test x$gas != xyes
3083 then
3084 extra_passes="mips-tfile mips-tdump"
3086 use_collect2=yes
3087 tmake_file="alpha/t-ieee"
3088 case $machine in
3089 *-*-osf1*)
3090 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3092 *-*-osf[23]*)
3093 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3095 *-*-osf4*)
3096 tm_file="${tm_file} alpha/osf.h"
3097 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3098 # a broken tar, so we use cpio instead.
3099 install_headers_dir=install-headers-cpio
3101 esac
3102 case $machine in
3103 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3104 target_cpu_default=MASK_SUPPORT_ARCH
3106 esac
3108 alpha*-*-vxworks*)
3109 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3110 tmake_file="alpha/t-ieee"
3111 if x$gas != xyes
3112 then
3113 extra_passes="mips-tfile mips-tdump"
3115 use_collect2=yes
3116 thread_file='vxworks'
3118 alpha*-*-winnt*)
3119 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3120 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3121 tmake_file="t-libc-ok alpha/t-ieee"
3122 xmake_file=winnt/x-winnt
3123 extra_host_objs=oldnames.o
3124 extra_gcc_objs="spawnv.o oldnames.o"
3125 if test x$gnu_ld != xyes
3126 then
3127 extra_programs=ld.exe
3129 if test x$enable_threads = xyes; then
3130 thread_file='win32'
3133 alpha*-dec-vms*)
3134 tm_file=alpha/vms.h
3135 xm_file="${xm_file} alpha/xm-vms.h"
3136 tmake_file="alpha/t-vms alpha/t-ieee"
3138 arc-*-elf*)
3139 extra_parts="crtinit.o crtfini.o"
3141 arm-*-coff* | armel-*-coff*)
3142 tm_file=arm/coff.h
3143 tmake_file=arm/t-bare
3145 arm-*-vxworks*)
3146 tm_file=arm/vxarm.h
3147 tmake_file=arm/t-bare
3148 thread_file='vxworks'
3150 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3151 tm_file=arm/riscix1-1.h
3152 use_collect2=yes
3154 arm-*-riscix*) # Acorn RISC machine
3155 if test x$gas = xyes
3156 then
3157 tm_file=arm/rix-gas.h
3158 else
3159 tm_file=arm/riscix.h
3161 xmake_file=arm/x-riscix
3162 tmake_file=arm/t-riscix
3163 use_collect2=yes
3165 arm-semi-aout | armel-semi-aout)
3166 tm_file=arm/semi.h
3167 tmake_file=arm/t-semi
3169 arm-semi-aof | armel-semi-aof)
3170 tm_file=arm/semiaof.h
3171 tmake_file=arm/t-semiaof
3173 arm*-*-netbsd*)
3174 tm_file=arm/netbsd.h
3175 xm_file="arm/xm-netbsd.h ${xm_file}"
3176 tmake_file="t-netbsd arm/t-netbsd"
3177 use_collect2=yes
3179 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3180 cpu_type=arm
3181 xmake_file=x-linux
3182 tm_file=arm/linux-aout.h
3183 tmake_file=arm/t-linux
3184 gnu_ld=yes
3186 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3187 xm_file=arm/xm-linux.h
3188 xmake_file=x-linux
3189 case $machine in
3190 armv2*-*-*)
3191 tm_file=arm/linux-elf26.h
3194 tm_file=arm/linux-elf.h
3196 esac
3197 tmake_file="t-linux arm/t-linux"
3198 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3199 gnu_ld=yes
3200 case x${enable_threads} in
3201 x | xyes | xpthreads | xposix)
3202 thread_file='posix'
3204 esac
3206 arm*-*-aout)
3207 tm_file=arm/aout.h
3208 tmake_file=arm/t-bare
3210 arm*-*-ecos-elf)
3211 tm_file=arm/ecos-elf.h
3212 tmake_file=arm/t-elf
3214 arm*-*-elf)
3215 tm_file=arm/unknown-elf.h
3216 tmake_file=arm/t-arm-elf
3218 arm*-*-oabi)
3219 tm_file=arm/unknown-elf-oabi.h
3220 tmake_file=arm/t-arm-elf
3222 arm-*-pe*)
3223 tm_file=arm/pe.h
3224 tmake_file=arm/t-pe
3225 extra_objs=pe.o
3227 c1-convex-*) # Convex C1
3228 target_cpu_default=1
3229 use_collect2=yes
3231 c2-convex-*) # Convex C2
3232 target_cpu_default=2
3233 use_collect2=yes
3235 c32-convex-*)
3236 target_cpu_default=4
3237 use_collect2=yes
3239 c34-convex-*)
3240 target_cpu_default=8
3241 use_collect2=yes
3243 c38-convex-*)
3244 target_cpu_default=16
3245 use_collect2=yes
3247 c4x-*)
3248 cpu_type=c4x
3249 tmake_file=c4x/t-c4x
3251 clipper-intergraph-clix*)
3252 tm_file="${tm_file} svr3.h clipper/clix.h"
3253 xm_file=clipper/xm-clix.h
3254 xmake_file=clipper/x-clix
3255 extra_headers=va-clipper.h
3256 extra_parts="crtbegin.o crtend.o"
3257 install_headers_dir=install-headers-cpio
3259 dsp16xx-*)
3261 elxsi-elxsi-*)
3262 use_collect2=yes
3264 # This hasn't been upgraded to GCC 2.
3265 # fx80-alliant-*) # Alliant FX/80
3266 # ;;
3267 h8300-*-*)
3268 float_format=i32
3270 hppa*-*-openbsd*)
3271 target_cpu_default="MASK_PA_11"
3272 tmake_file=pa/t-openbsd
3274 hppa1.1-*-pro*)
3275 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3276 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3277 xm_file=pa/xm-papro.h
3278 tmake_file=pa/t-pro
3280 hppa1.1-*-osf*)
3281 target_cpu_default="MASK_PA_11"
3282 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3283 use_collect2=yes
3285 hppa1.1-*-rtems*)
3286 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3287 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3288 xm_file=pa/xm-papro.h
3289 tmake_file=pa/t-pro
3291 hppa1.0-*-osf*)
3292 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3293 use_collect2=yes
3295 hppa1.1-*-bsd*)
3296 tm_file="${tm_file} pa/som.h"
3297 target_cpu_default="MASK_PA_11"
3298 use_collect2=yes
3300 hppa1.0-*-bsd*)
3301 tm_file="${tm_file} pa/som.h"
3302 use_collect2=yes
3304 hppa1.0-*-hpux7*)
3305 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3306 xm_file=pa/xm-pahpux.h
3307 xmake_file=pa/x-pa-hpux
3308 if test x$gas = xyes
3309 then
3310 tm_file="${tm_file} pa/gas.h"
3312 install_headers_dir=install-headers-cpio
3313 use_collect2=yes
3315 hppa1.0-*-hpux8.0[0-2]*)
3316 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3317 xm_file=pa/xm-pahpux.h
3318 xmake_file=pa/x-pa-hpux
3319 if test x$gas = xyes
3320 then
3321 tm_file="${tm_file} pa/pa-gas.h"
3322 else
3323 tm_file="pa/pa-oldas.h ${tm_file}"
3325 install_headers_dir=install-headers-cpio
3326 use_collect2=yes
3328 hppa1.1-*-hpux8.0[0-2]*)
3329 target_cpu_default="MASK_PA_11"
3330 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3331 xm_file=pa/xm-pahpux.h
3332 xmake_file=pa/x-pa-hpux
3333 if test x$gas = xyes
3334 then
3335 tm_file="${tm_file} pa/pa-gas.h"
3336 else
3337 tm_file="pa/pa-oldas.h ${tm_file}"
3339 install_headers_dir=install-headers-cpio
3340 use_collect2=yes
3342 hppa1.1-*-hpux8*)
3343 target_cpu_default="MASK_PA_11"
3344 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3345 xm_file=pa/xm-pahpux.h
3346 xmake_file=pa/x-pa-hpux
3347 if test x$gas = xyes
3348 then
3349 tm_file="${tm_file} pa/pa-gas.h"
3351 install_headers_dir=install-headers-cpio
3352 use_collect2=yes
3354 hppa1.0-*-hpux8*)
3355 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3356 xm_file=pa/xm-pahpux.h
3357 xmake_file=pa/x-pa-hpux
3358 if test x$gas = xyes
3359 then
3360 tm_file="${tm_file} pa/pa-gas.h"
3362 install_headers_dir=install-headers-cpio
3363 use_collect2=yes
3365 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3366 target_cpu_default="MASK_PA_11"
3367 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3368 xm_file=pa/xm-pahpux.h
3369 xmake_file=pa/x-pa-hpux
3370 tmake_file=pa/t-pa
3371 if test x$gas = xyes
3372 then
3373 tm_file="${tm_file} pa/pa-gas.h"
3375 if test x$enable_threads = x; then
3376 enable_threads=$have_pthread_h
3378 if test x$enable_threads = xyes; then
3379 thread_file='dce'
3380 tmake_file="${tmake_file} pa/t-dce-thr"
3382 install_headers_dir=install-headers-cpio
3383 use_collect2=yes
3385 hppa1.0-*-hpux10*)
3386 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3387 xm_file=pa/xm-pahpux.h
3388 xmake_file=pa/x-pa-hpux
3389 tmake_file=pa/t-pa
3390 if test x$gas = xyes
3391 then
3392 tm_file="${tm_file} pa/pa-gas.h"
3394 if test x$enable_threads = x; then
3395 enable_threads=$have_pthread_h
3397 if test x$enable_threads = xyes; then
3398 thread_file='dce'
3399 tmake_file="${tmake_file} pa/t-dce-thr"
3401 install_headers_dir=install-headers-cpio
3402 use_collect2=yes
3404 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3405 target_cpu_default=1
3406 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3407 xm_file=pa/xm-pahpux.h
3408 xmake_file=pa/x-pa-hpux
3409 tmake_file=pa/t-pa
3410 if [ x$gas = xyes ]
3411 then
3412 tm_file="${tm_file} pa/pa-gas.h"
3414 # if [[ x$enable_threads = x ]]; then
3415 # enable_threads=$have_pthread_h
3416 # fi
3417 # if [[ x$enable_threads = xyes ]]; then
3418 # thread_file='dce'
3419 # tmake_file="${tmake_file} pa/t-dce-thr"
3420 # fi
3421 install_headers_dir=install-headers-cpio
3422 use_collect2=yes
3424 hppa1.0-*-hpux11*)
3425 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3426 xm_file=pa/xm-pahpux.h
3427 xmake_file=pa/x-pa-hpux
3428 if [ x$gas = xyes ]
3429 then
3430 tm_file="${tm_file} pa/pa-gas.h"
3432 # if [[ x$enable_threads = x ]]; then
3433 # enable_threads=$have_pthread_h
3434 # fi
3435 # if [[ x$enable_threads = xyes ]]; then
3436 # thread_file='dce'
3437 # tmake_file="${tmake_file} pa/t-dce-thr"
3438 # fi
3439 install_headers_dir=install-headers-cpio
3440 use_collect2=yes
3442 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3443 target_cpu_default="MASK_PA_11"
3444 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3445 xm_file=pa/xm-pahpux.h
3446 xmake_file=pa/x-pa-hpux
3447 if test x$gas = xyes
3448 then
3449 tm_file="${tm_file} pa/pa-gas.h"
3451 install_headers_dir=install-headers-cpio
3452 use_collect2=yes
3454 hppa1.0-*-hpux*)
3455 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3456 xm_file=pa/xm-pahpux.h
3457 xmake_file=pa/x-pa-hpux
3458 if test x$gas = xyes
3459 then
3460 tm_file="${tm_file} pa/pa-gas.h"
3462 install_headers_dir=install-headers-cpio
3463 use_collect2=yes
3465 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3466 target_cpu_default="MASK_PA_11"
3467 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3468 xm_file=pa/xm-pahpux.h
3469 xmake_file=pa/x-pa-hpux
3470 if test x$gas = xyes
3471 then
3472 tm_file="${tm_file} pa/pa-gas.h"
3474 install_headers_dir=install-headers-cpio
3475 use_collect2=yes
3477 hppa1.0-*-hiux*)
3478 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3479 xm_file=pa/xm-pahpux.h
3480 xmake_file=pa/x-pa-hpux
3481 if test x$gas = xyes
3482 then
3483 tm_file="${tm_file} pa/pa-gas.h"
3485 install_headers_dir=install-headers-cpio
3486 use_collect2=yes
3488 hppa*-*-lites*)
3489 tm_file="${tm_file} elfos.h pa/elf.h"
3490 target_cpu_default="MASK_PA_11"
3491 use_collect2=yes
3493 i370-*-mvs*)
3495 i[34567]86-*-elf*)
3496 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3497 tm_file=i386/i386elf.h
3498 tmake_file=i386/t-i386elf
3499 xmake_file=x-svr4
3501 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3502 if test x$gas = xyes
3503 then
3504 tm_file=i386/aix386.h
3505 extra_parts="crtbegin.o crtend.o"
3506 tmake_file=i386/t-crtstuff
3507 else
3508 tm_file=i386/aix386ng.h
3509 use_collect2=yes
3511 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3512 xm_defines=USG
3513 xmake_file=i386/x-aix
3515 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3516 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3517 xm_defines="USG POSIX SMALL_ARG_MAX"
3518 xmake_file=i386/x-ncr3000
3519 if test x$stabs = xyes -a x$gas = xyes
3520 then
3521 tm_file=i386/sysv4gdb.h
3522 else
3523 tm_file=i386/sysv4.h
3525 extra_parts="crtbegin.o crtend.o"
3526 tmake_file=i386/t-crtpic
3528 i[34567]86-next-*)
3529 tm_file=i386/next.h
3530 xm_file=i386/xm-next.h
3531 tmake_file=i386/t-next
3532 xmake_file=i386/x-next
3533 extra_objs=nextstep.o
3534 extra_parts="crtbegin.o crtend.o"
3535 if test x$enable_threads = xyes; then
3536 thread_file='mach'
3539 i[34567]86-sequent-bsd*) # 80386 from Sequent
3540 use_collect2=yes
3541 if test x$gas = xyes
3542 then
3543 tm_file=i386/seq-gas.h
3544 else
3545 tm_file=i386/sequent.h
3548 i[34567]86-sequent-ptx1*)
3549 xm_defines="USG SVR3"
3550 xmake_file=i386/x-sysv3
3551 tm_file=i386/seq-sysv3.h
3552 tmake_file=i386/t-crtstuff
3553 extra_parts="crtbegin.o crtend.o"
3554 install_headers_dir=install-headers-cpio
3556 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3557 xm_defines="USG SVR3"
3558 xmake_file=i386/x-sysv3
3559 tm_file=i386/seq2-sysv3.h
3560 tmake_file=i386/t-crtstuff
3561 extra_parts="crtbegin.o crtend.o"
3562 install_headers_dir=install-headers-cpio
3564 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3565 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3566 xm_defines="USG POSIX SMALL_ARG_MAX"
3567 xmake_file=x-svr4
3568 tm_file=i386/ptx4-i.h
3569 tmake_file=t-svr4
3570 extra_parts="crtbegin.o crtend.o"
3571 install_headers_dir=install-headers-cpio
3573 i386-sun-sunos*) # Sun i386 roadrunner
3574 xm_defines=USG
3575 tm_file=i386/sun.h
3576 use_collect2=yes
3578 i[34567]86-wrs-vxworks*)
3579 tm_file=i386/vxi386.h
3580 tmake_file=i386/t-i386bare
3581 thread_file='vxworks'
3583 i[34567]86-*-aout*)
3584 tm_file=i386/i386-aout.h
3585 tmake_file=i386/t-i386bare
3587 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3588 tm_file=i386/bsd386.h
3589 # tmake_file=t-libc-ok
3591 i[34567]86-*-bsd*)
3592 tm_file=i386/386bsd.h
3593 # tmake_file=t-libc-ok
3594 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3595 # use_collect2=yes
3597 i[34567]86-*-freebsdelf*)
3598 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3599 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3600 tmake_file=t-freebsd
3601 gas=yes
3602 gnu_ld=yes
3603 stabs=yes
3605 i[34567]86-*-freebsd*)
3606 tm_file=i386/freebsd.h
3607 tmake_file=t-freebsd
3609 i[34567]86-*-netbsd*)
3610 tm_file=i386/netbsd.h
3611 tmake_file=t-netbsd
3612 use_collect2=yes
3614 i[34567]86-*-openbsd*)
3615 # we need collect2 until our bug is fixed...
3616 use_collect2=yes
3618 i[34567]86-*-coff*)
3619 tm_file=i386/i386-coff.h
3620 tmake_file=i386/t-i386bare
3622 i[34567]86-*-isc*) # 80386 running ISC system
3623 xm_file="${xm_file} i386/xm-isc.h"
3624 xm_defines="USG SVR3"
3625 case $machine in
3626 i[34567]86-*-isc[34]*)
3627 xmake_file=i386/x-isc3
3630 xmake_file=i386/x-isc
3632 esac
3633 if test x$gas = xyes -a x$stabs = xyes
3634 then
3635 tm_file=i386/iscdbx.h
3636 tmake_file=i386/t-svr3dbx
3637 extra_parts="svr3.ifile svr3z.ifile"
3638 else
3639 tm_file=i386/isccoff.h
3640 tmake_file=i386/t-crtstuff
3641 extra_parts="crtbegin.o crtend.o"
3643 install_headers_dir=install-headers-cpio
3645 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3646 # pre BFD linkers
3647 xmake_file=x-linux-aout
3648 tmake_file="t-linux-aout i386/t-crtstuff"
3649 tm_file=i386/linux-oldld.h
3650 gnu_ld=yes
3651 float_format=i386
3653 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3654 xmake_file=x-linux-aout
3655 tmake_file="t-linux-aout i386/t-crtstuff"
3656 tm_file=i386/linux-aout.h
3657 gnu_ld=yes
3658 float_format=i386
3660 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3661 # GNU/Linux C library 5
3662 xmake_file=x-linux
3663 tm_file=i386/linux.h
3664 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3665 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3666 gnu_ld=yes
3667 float_format=i386
3668 if test x$enable_threads = xyes; then
3669 thread_file='single'
3672 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3673 # aka GNU/Linux C library 6
3674 xmake_file=x-linux
3675 tm_file=i386/linux.h
3676 tmake_file="t-linux i386/t-crtstuff"
3677 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3678 gnu_ld=yes
3679 float_format=i386
3680 if test x$enable_threads = xyes; then
3681 thread_file='posix'
3684 i[34567]86-*-gnu*)
3685 float_format=i386
3687 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3688 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3689 exit 1
3691 i[34567]86-pc-msdosdjgpp*)
3692 xm_file=i386/xm-djgpp.h
3693 tm_file=i386/djgpp.h
3694 tmake_file=i386/t-djgpp
3695 xmake_file=i386/x-djgpp
3696 gnu_ld=yes
3697 gas=yes
3698 exeext=.exe
3699 case $host in *pc-msdosdjgpp*)
3700 target_alias=djgpp
3702 esac
3704 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3705 tm_file=i386/moss.h
3706 tmake_file=t-libc-ok
3707 gnu_ld=yes
3708 gas=yes
3710 i[34567]86-*-lynxos*)
3711 if test x$gas = xyes
3712 then
3713 tm_file=i386/lynx.h
3714 else
3715 tm_file=i386/lynx-ng.h
3717 xm_file=i386/xm-lynx.h
3718 tmake_file=i386/t-i386bare
3719 xmake_file=x-lynx
3721 i[34567]86-*-mach*)
3722 tm_file=i386/mach.h
3723 # tmake_file=t-libc-ok
3724 use_collect2=yes
3726 i[34567]86-*-osfrose*) # 386 using OSF/rose
3727 if test x$elf = xyes
3728 then
3729 tm_file=i386/osfelf.h
3730 use_collect2=
3731 else
3732 tm_file=i386/osfrose.h
3733 use_collect2=yes
3735 xm_file="i386/xm-osf.h ${xm_file}"
3736 xmake_file=i386/x-osfrose
3737 tmake_file=i386/t-osf
3738 extra_objs=halfpic.o
3740 i[34567]86-go32-rtems*)
3741 cpu_type=i386
3742 xm_file=i386/xm-go32.h
3743 tm_file=i386/go32-rtems.h
3744 tmake_file="i386/t-go32 t-rtems"
3746 i[34567]86-*-rtemself*)
3747 cpu_type=i386
3748 tm_file=i386/rtemself.h
3749 tmake_file="i386/t-i386bare t-rtems"
3751 i[34567]86-*-rtems*)
3752 cpu_type=i386
3753 tm_file=i386/rtems.h
3754 tmake_file="i386/t-i386bare t-rtems"
3756 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3757 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3758 xm_defines="USG SVR3"
3759 xmake_file=i386/x-sco5
3760 install_headers_dir=install-headers-cpio
3761 tm_file=i386/sco5.h
3762 if test x$gas = xyes
3763 then
3764 tm_file="i386/sco5gas.h ${tm_file}"
3765 tmake_file=i386/t-sco5gas
3766 else
3767 tmake_file=i386/t-sco5
3769 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3771 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3772 xm_file="${xm_file} i386/xm-sco.h"
3773 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3774 xmake_file=i386/x-sco4
3775 install_headers_dir=install-headers-cpio
3776 if test x$stabs = xyes
3777 then
3778 tm_file=i386/sco4dbx.h
3779 tmake_file=i386/t-svr3dbx
3780 extra_parts="svr3.ifile svr3z.rfile"
3781 else
3782 tm_file=i386/sco4.h
3783 tmake_file=i386/t-crtstuff
3784 extra_parts="crtbegin.o crtend.o"
3786 truncate_target=yes
3788 i[34567]86-*-sco*) # 80386 running SCO system
3789 xm_file=i386/xm-sco.h
3790 xmake_file=i386/x-sco
3791 install_headers_dir=install-headers-cpio
3792 if test x$stabs = xyes
3793 then
3794 tm_file=i386/scodbx.h
3795 tmake_file=i386/t-svr3dbx
3796 extra_parts="svr3.ifile svr3z.rfile"
3797 else
3798 tm_file=i386/sco.h
3799 extra_parts="crtbegin.o crtend.o"
3800 tmake_file=i386/t-crtstuff
3802 truncate_target=yes
3804 i[34567]86-*-solaris2*)
3805 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3806 xm_defines="USG POSIX SMALL_ARG_MAX"
3807 if test x$stabs = xyes
3808 then
3809 tm_file=i386/sol2dbg.h
3810 else
3811 tm_file=i386/sol2.h
3813 tmake_file=i386/t-sol2
3814 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3815 xmake_file=x-svr4
3816 if test x$enable_threads = xyes; then
3817 thread_file='solaris'
3820 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3821 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3822 xm_defines="USG POSIX"
3823 tm_file=i386/sysv5.h
3824 if test x$stabs = xyes
3825 then
3826 tm_file="${tm_file} dbx.h"
3828 tmake_file=i386/t-crtpic
3829 xmake_file=x-svr4
3830 extra_parts="crtbegin.o crtend.o"
3831 if test x$enable_threads = xyes; then
3832 thread_file='posix'
3835 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3836 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3837 xm_defines="USG POSIX SMALL_ARG_MAX"
3838 tm_file=i386/sysv4.h
3839 if test x$stabs = xyes
3840 then
3841 tm_file="${tm_file} dbx.h"
3843 tmake_file=i386/t-crtpic
3844 xmake_file=x-svr4
3845 extra_parts="crtbegin.o crtend.o"
3847 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3848 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3849 xm_defines="USG POSIX"
3850 tm_file=i386/udk.h
3851 tmake_file="i386/t-crtpic i386/t-udk"
3852 xmake_file=x-svr4
3853 extra_parts="crtbegin.o crtend.o"
3854 install_headers_dir=install-headers-cpio
3856 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3857 cpu_type=i386
3858 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3859 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3860 if test x$stabs = xyes
3861 then
3862 tm_file=i386/osf1elfgdb.h
3863 else
3864 tm_file=i386/osf1elf.h
3866 tmake_file=i386/t-osf1elf
3867 xmake_file=i386/x-osf1elf
3868 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3870 i[34567]86-*-sysv*) # Intel 80386's running system V
3871 xm_defines="USG SVR3"
3872 xmake_file=i386/x-sysv3
3873 if test x$gas = xyes
3874 then
3875 if test x$stabs = xyes
3876 then
3877 tm_file=i386/svr3dbx.h
3878 tmake_file=i386/t-svr3dbx
3879 extra_parts="svr3.ifile svr3z.rfile"
3880 else
3881 tm_file=i386/svr3gas.h
3882 extra_parts="crtbegin.o crtend.o"
3883 tmake_file=i386/t-crtstuff
3885 else
3886 tm_file=i386/sysv3.h
3887 extra_parts="crtbegin.o crtend.o"
3888 tmake_file=i386/t-crtstuff
3891 i386-*-vsta) # Intel 80386's running VSTa kernel
3892 xm_file="${xm_file} i386/xm-vsta.h"
3893 tm_file=i386/vsta.h
3894 tmake_file=i386/t-vsta
3895 xmake_file=i386/x-vsta
3897 i[34567]86-*-win32)
3898 xm_file="${xm_file} i386/xm-cygwin.h"
3899 tmake_file=i386/t-cygwin
3900 tm_file=i386/win32.h
3901 xmake_file=i386/x-cygwin
3902 extra_objs=winnt.o
3903 if test x$enable_threads = xyes; then
3904 thread_file='win32'
3906 exeext=.exe
3908 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3909 xm_file="${xm_file} i386/xm-cygwin.h"
3910 tmake_file=i386/t-cygwin
3911 tm_file=i386/cygwin.h
3912 xmake_file=i386/x-cygwin
3913 extra_objs=winnt.o
3914 if test x$enable_threads = xyes; then
3915 thread_file='win32'
3917 exeext=.exe
3919 i[34567]86-*-mingw32*)
3920 tm_file=i386/mingw32.h
3921 xm_file="${xm_file} i386/xm-mingw32.h"
3922 tmake_file="i386/t-cygwin i386/t-mingw32"
3923 extra_objs=winnt.o
3924 xmake_file=i386/x-cygwin
3925 if test x$enable_threads = xyes; then
3926 thread_file='win32'
3928 exeext=.exe
3929 case $machine in
3930 *mingw32msv*)
3932 *minwg32crt* | *mingw32*)
3933 tm_file="${tm_file} i386/crtdll.h"
3935 esac
3937 i[34567]86-*-uwin*)
3938 tm_file=i386/uwin.h
3939 xm_file="${xm_file} i386/xm-uwin.h"
3940 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
3941 tmake_file="i386/t-cygwin i386/t-uwin"
3942 extra_objs=winnt.o
3943 xmake_file=i386/x-cygwin
3944 if test x$enable_threads = xyes; then
3945 thread_file='win32'
3947 exeext=.exe
3949 i[34567]86-*-interix*)
3950 tm_file="i386/i386-interix.h interix.h"
3951 xm_file="i386/xm-i386-interix.h xm-interix.h"
3952 xm_defines="USG NO_SYS_SIGLIST"
3953 tmake_file="i386/t-interix"
3954 extra_objs=interix.o
3955 xmake_file=x-interix
3956 if test x$enable_threads = xyes ; then
3957 thread_file='posix'
3959 if test x$stabs = xyes ; then
3960 tm_file="${tm_file} dbxcoff.h"
3963 i[34567]86-*-winnt3*)
3964 tm_file=i386/win-nt.h
3965 out_file=i386/i386.c
3966 xm_file="xm-winnt.h ${xm_file}"
3967 xmake_file=winnt/x-winnt
3968 tmake_file=i386/t-winnt
3969 extra_host_objs="winnt.o oldnames.o"
3970 extra_gcc_objs="spawnv.o oldnames.o"
3971 if test x$gnu_ld != xyes
3972 then
3973 extra_programs=ld.exe
3975 if test x$enable_threads = xyes; then
3976 thread_file='win32'
3979 i[34567]86-dg-dgux*)
3980 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3981 xm_defines="USG POSIX"
3982 out_file=i386/dgux.c
3983 tm_file=i386/dgux.h
3984 tmake_file=i386/t-dgux
3985 xmake_file=i386/x-dgux
3986 install_headers_dir=install-headers-cpio
3988 i860-alliant-*) # Alliant FX/2800
3989 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3990 xm_file="${xm_file}"
3991 xmake_file=i860/x-fx2800
3992 tmake_file=i860/t-fx2800
3993 extra_parts="crtbegin.o crtend.o"
3995 i860-*-bsd*)
3996 tm_file="${tm_file} i860/bsd.h"
3997 if test x$gas = xyes
3998 then
3999 tm_file="${tm_file} i860/bsd-gas.h"
4001 use_collect2=yes
4003 i860-*-mach*)
4004 tm_file="${tm_file} i860/mach.h"
4005 tmake_file=t-libc-ok
4007 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4008 tm_file="${tm_file} svr3.h i860/paragon.h"
4009 xm_defines="USG SVR3"
4010 tmake_file=t-osf
4012 i860-*-sysv3*)
4013 tm_file="${tm_file} svr3.h i860/sysv3.h"
4014 xm_defines="USG SVR3"
4015 xmake_file=i860/x-sysv3
4016 extra_parts="crtbegin.o crtend.o"
4018 i860-*-sysv4*)
4019 tm_file="${tm_file} svr4.h i860/sysv4.h"
4020 xm_defines="USG SVR3"
4021 xmake_file=i860/x-sysv4
4022 tmake_file=t-svr4
4023 extra_parts="crtbegin.o crtend.o"
4025 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4026 tm_file="${tm_file} i960/vx960.h"
4027 tmake_file=i960/t-vxworks960
4028 use_collect2=yes
4029 thread_file='vxworks'
4031 i960-wrs-vxworks5* | i960-wrs-vxworks)
4032 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4033 tmake_file=i960/t-vxworks960
4034 use_collect2=yes
4035 thread_file='vxworks'
4037 i960-wrs-vxworks*)
4038 tm_file="${tm_file} i960/vx960.h"
4039 tmake_file=i960/t-vxworks960
4040 use_collect2=yes
4041 thread_file='vxworks'
4043 i960-*-coff*)
4044 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4045 tmake_file=i960/t-960bare
4046 use_collect2=yes
4048 i960-*-rtems)
4049 tmake_file="i960/t-960bare t-rtems"
4050 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4051 use_collect2=yes
4053 i960-*-*) # Default i960 environment.
4054 use_collect2=yes
4056 m32r-*-elf*)
4057 extra_parts="crtinit.o crtfini.o"
4059 m68000-convergent-sysv*)
4060 tm_file=m68k/ctix.h
4061 xm_file="m68k/xm-3b1.h ${xm_file}"
4062 xm_defines=USG
4063 use_collect2=yes
4064 extra_headers=math-68881.h
4066 m68000-hp-bsd*) # HP 9000/200 running BSD
4067 tm_file=m68k/hp2bsd.h
4068 xmake_file=m68k/x-hp2bsd
4069 use_collect2=yes
4070 extra_headers=math-68881.h
4072 m68000-hp-hpux*) # HP 9000 series 300
4073 xm_file="xm_alloca.h ${xm_file}"
4074 xm_defines="USG NO_SYS_SIGLIST"
4075 if test x$gas = xyes
4076 then
4077 xmake_file=m68k/x-hp320g
4078 tm_file=m68k/hp310g.h
4079 else
4080 xmake_file=m68k/x-hp320
4081 tm_file=m68k/hp310.h
4083 install_headers_dir=install-headers-cpio
4084 use_collect2=yes
4085 extra_headers=math-68881.h
4087 m68000-sun-sunos3*)
4088 tm_file=m68k/sun2.h
4089 use_collect2=yes
4090 extra_headers=math-68881.h
4092 m68000-sun-sunos4*)
4093 tm_file=m68k/sun2o4.h
4094 use_collect2=yes
4095 extra_headers=math-68881.h
4097 m68000-att-sysv*)
4098 xm_file="m68k/xm-3b1.h ${xm_file}"
4099 xm_defines=USG
4100 if test x$gas = xyes
4101 then
4102 tm_file=m68k/3b1g.h
4103 else
4104 tm_file=m68k/3b1.h
4106 use_collect2=yes
4107 extra_headers=math-68881.h
4109 m68k-apple-aux*) # Apple Macintosh running A/UX
4110 xm_defines="USG AUX"
4111 tmake_file=m68k/t-aux
4112 install_headers_dir=install-headers-cpio
4113 extra_headers=math-68881.h
4114 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4115 tm_file=
4116 if test "$gnu_ld" = yes
4117 then
4118 tm_file="${tm_file} m68k/auxgld.h"
4119 else
4120 tm_file="${tm_file} m68k/auxld.h"
4122 if test "$gas" = yes
4123 then
4124 tm_file="${tm_file} m68k/auxgas.h"
4125 else
4126 tm_file="${tm_file} m68k/auxas.h"
4128 tm_file="${tm_file} m68k/a-ux.h"
4129 float_format=m68k
4131 m68k-apollo-*)
4132 tm_file=m68k/apollo68.h
4133 xmake_file=m68k/x-apollo68
4134 use_collect2=yes
4135 extra_headers=math-68881.h
4136 float_format=m68k
4138 m68k-altos-sysv*) # Altos 3068
4139 if test x$gas = xyes
4140 then
4141 tm_file=m68k/altos3068.h
4142 xm_defines=USG
4143 else
4144 echo "The Altos is supported only with the GNU assembler" 1>&2
4145 exit 1
4147 extra_headers=math-68881.h
4149 m68k-bull-sysv*) # Bull DPX/2
4150 if test x$gas = xyes
4151 then
4152 if test x$stabs = xyes
4153 then
4154 tm_file=m68k/dpx2cdbx.h
4155 else
4156 tm_file=m68k/dpx2g.h
4158 else
4159 tm_file=m68k/dpx2.h
4161 xm_file="xm-alloca.h ${xm_file}"
4162 xm_defines=USG
4163 xmake_file=m68k/x-dpx2
4164 use_collect2=yes
4165 extra_headers=math-68881.h
4167 m68k-atari-sysv4*) # Atari variant of V.4.
4168 tm_file=m68k/atari.h
4169 xm_file="xm-alloca.h ${xm_file}"
4170 xm_defines="USG FULL_PROTOTYPES"
4171 tmake_file=t-svr4
4172 extra_parts="crtbegin.o crtend.o"
4173 extra_headers=math-68881.h
4174 float_format=m68k
4176 m68k-motorola-sysv*)
4177 tm_file=m68k/mot3300.h
4178 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4179 xm_defines=NO_SYS_SIGLIST
4180 if test x$gas = xyes
4181 then
4182 xmake_file=m68k/x-mot3300-gas
4183 if test x$gnu_ld = xyes
4184 then
4185 tmake_file=m68k/t-mot3300-gald
4186 else
4187 tmake_file=m68k/t-mot3300-gas
4188 use_collect2=yes
4190 else
4191 xmake_file=m68k/x-mot3300
4192 if test x$gnu_ld = xyes
4193 then
4194 tmake_file=m68k/t-mot3300-gld
4195 else
4196 tmake_file=m68k/t-mot3300
4197 use_collect2=yes
4200 gdb_needs_out_file_path=yes
4201 extra_parts="crt0.o mcrt0.o"
4202 extra_headers=math-68881.h
4203 float_format=m68k
4205 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4206 tm_file=m68k/tower-as.h
4207 xm_defines="USG SVR3"
4208 xmake_file=m68k/x-tower
4209 extra_parts="crtbegin.o crtend.o"
4210 extra_headers=math-68881.h
4212 m68k-plexus-sysv*)
4213 tm_file=m68k/plexus.h
4214 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4215 xm_defines=USG
4216 use_collect2=yes
4217 extra_headers=math-68881.h
4219 m68k-tti-*)
4220 tm_file=m68k/pbb.h
4221 xm_file="xm-alloca.h ${xm_file}"
4222 xm_defines=USG
4223 extra_headers=math-68881.h
4225 m68k-crds-unos*)
4226 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4227 xm_defines="USG unos"
4228 xmake_file=m68k/x-crds
4229 tm_file=m68k/crds.h
4230 use_collect2=yes
4231 extra_headers=math-68881.h
4233 m68k-cbm-sysv4*) # Commodore variant of V.4.
4234 tm_file=m68k/amix.h
4235 xm_file="xm-alloca.h ${xm_file}"
4236 xm_defines="USG FULL_PROTOTYPES"
4237 xmake_file=m68k/x-amix
4238 tmake_file=t-svr4
4239 extra_parts="crtbegin.o crtend.o"
4240 extra_headers=math-68881.h
4241 float_format=m68k
4243 m68k-ccur-rtu)
4244 tm_file=m68k/ccur-GAS.h
4245 xmake_file=m68k/x-ccur
4246 extra_headers=math-68881.h
4247 use_collect2=yes
4248 float_format=m68k
4250 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4251 tm_file=m68k/hp3bsd44.h
4252 xmake_file=m68k/x-hp3bsd44
4253 use_collect2=yes
4254 extra_headers=math-68881.h
4255 float_format=m68k
4257 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4258 tm_file=m68k/hp3bsd.h
4259 use_collect2=yes
4260 extra_headers=math-68881.h
4261 float_format=m68k
4263 m68k-isi-bsd*)
4264 if test x$with_fp = xno
4265 then
4266 tm_file=m68k/isi-nfp.h
4267 else
4268 tm_file=m68k/isi.h
4269 float_format=m68k
4271 use_collect2=yes
4272 extra_headers=math-68881.h
4274 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4275 xm_file="xm_alloca.h ${xm_file}"
4276 xm_defines="USG NO_SYS_SIGLIST"
4277 if test x$gas = xyes
4278 then
4279 xmake_file=m68k/x-hp320g
4280 tm_file=m68k/hp320g.h
4281 else
4282 xmake_file=m68k/x-hp320
4283 tm_file=m68k/hpux7.h
4285 install_headers_dir=install-headers-cpio
4286 use_collect2=yes
4287 extra_headers=math-68881.h
4288 float_format=m68k
4290 m68k-hp-hpux*) # HP 9000 series 300
4291 xm_file="xm_alloca.h ${xm_file}"
4292 xm_defines="USG NO_SYS_SIGLIST"
4293 if test x$gas = xyes
4294 then
4295 xmake_file=m68k/x-hp320g
4296 tm_file=m68k/hp320g.h
4297 else
4298 xmake_file=m68k/x-hp320
4299 tm_file=m68k/hp320.h
4301 install_headers_dir=install-headers-cpio
4302 use_collect2=yes
4303 extra_headers=math-68881.h
4304 float_format=m68k
4306 m68k-sun-mach*)
4307 tm_file=m68k/sun3mach.h
4308 use_collect2=yes
4309 extra_headers=math-68881.h
4310 float_format=m68k
4312 m68k-sony-newsos3*)
4313 if test x$gas = xyes
4314 then
4315 tm_file=m68k/news3gas.h
4316 else
4317 tm_file=m68k/news3.h
4319 use_collect2=yes
4320 extra_headers=math-68881.h
4321 float_format=m68k
4323 m68k-sony-bsd* | m68k-sony-newsos*)
4324 if test x$gas = xyes
4325 then
4326 tm_file=m68k/newsgas.h
4327 else
4328 tm_file=m68k/news.h
4330 use_collect2=yes
4331 extra_headers=math-68881.h
4332 float_format=m68k
4334 m68k-next-nextstep2*)
4335 tm_file=m68k/next21.h
4336 xm_file="m68k/xm-next.h ${xm_file}"
4337 tmake_file=m68k/t-next
4338 xmake_file=m68k/x-next
4339 extra_objs=nextstep.o
4340 extra_headers=math-68881.h
4341 use_collect2=yes
4342 float_format=m68k
4344 m68k-next-nextstep3*)
4345 tm_file=m68k/next.h
4346 xm_file="m68k/xm-next.h ${xm_file}"
4347 tmake_file=m68k/t-next
4348 xmake_file=m68k/x-next
4349 extra_objs=nextstep.o
4350 extra_parts="crtbegin.o crtend.o"
4351 extra_headers=math-68881.h
4352 float_format=m68k
4353 if test x$enable_threads = xyes; then
4354 thread_file='mach'
4357 m68k-sun-sunos3*)
4358 if test x$with_fp = xno
4359 then
4360 tm_file=m68k/sun3n3.h
4361 else
4362 tm_file=m68k/sun3o3.h
4363 float_format=m68k
4365 use_collect2=yes
4366 extra_headers=math-68881.h
4368 m68k-sun-sunos*) # For SunOS 4 (the default).
4369 if test x$with_fp = xno
4370 then
4371 tm_file=m68k/sun3n.h
4372 else
4373 tm_file=m68k/sun3.h
4374 float_format=m68k
4376 use_collect2=yes
4377 extra_headers=math-68881.h
4379 m68k-wrs-vxworks*)
4380 tm_file=m68k/vxm68k.h
4381 tmake_file=m68k/t-vxworks68
4382 extra_headers=math-68881.h
4383 thread_file='vxworks'
4384 float_format=m68k
4386 m68k-*-aout*)
4387 tmake_file=m68k/t-m68kbare
4388 tm_file="m68k/m68k-aout.h libgloss.h"
4389 extra_headers=math-68881.h
4390 float_format=m68k
4392 m68k-*-coff*)
4393 tmake_file=m68k/t-m68kbare
4394 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4395 extra_headers=math-68881.h
4396 float_format=m68k
4398 m68020-*-elf* | m68k-*-elf*)
4399 tm_file="m68k/m68020-elf.h libgloss.h"
4400 xm_file=m68k/xm-m68kv.h
4401 tmake_file=m68k/t-m68kelf
4402 header_files=math-68881.h
4404 m68k-*-lynxos*)
4405 if test x$gas = xyes
4406 then
4407 tm_file=m68k/lynx.h
4408 else
4409 tm_file=m68k/lynx-ng.h
4411 xm_file=m68k/xm-lynx.h
4412 xmake_file=x-lynx
4413 tmake_file=m68k/t-lynx
4414 extra_headers=math-68881.h
4415 float_format=m68k
4417 m68k*-*-netbsd*)
4418 tm_file=m68k/netbsd.h
4419 tmake_file=t-netbsd
4420 float_format=m68k
4421 use_collect2=yes
4423 m68k*-*-openbsd*)
4424 float_format=m68k
4425 # we need collect2 until our bug is fixed...
4426 use_collect2=yes
4428 m68k-*-sysv3*) # Motorola m68k's running system V.3
4429 xm_file="xm-alloca.h ${xm_file}"
4430 xm_defines=USG
4431 xmake_file=m68k/x-m68kv
4432 extra_parts="crtbegin.o crtend.o"
4433 extra_headers=math-68881.h
4434 float_format=m68k
4436 m68k-*-sysv4*) # Motorola m68k's running system V.4
4437 tm_file=m68k/m68kv4.h
4438 xm_file="xm-alloca.h ${xm_file}"
4439 xm_defines=USG
4440 tmake_file=t-svr4
4441 extra_parts="crtbegin.o crtend.o"
4442 extra_headers=math-68881.h
4443 float_format=m68k
4445 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4446 # with a.out format
4447 xmake_file=x-linux
4448 tm_file=m68k/linux-aout.h
4449 tmake_file="t-linux-aout m68k/t-linux-aout"
4450 extra_headers=math-68881.h
4451 float_format=m68k
4452 gnu_ld=yes
4454 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4455 # with ELF format using the
4456 # GNU/Linux C library 5
4457 xmake_file=x-linux
4458 tm_file=m68k/linux.h
4459 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4460 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4461 extra_headers=math-68881.h
4462 float_format=m68k
4463 gnu_ld=yes
4465 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4466 # with ELF format using glibc 2
4467 # aka the GNU/Linux C library 6.
4468 xmake_file=x-linux
4469 tm_file=m68k/linux.h
4470 tmake_file="t-linux m68k/t-linux"
4471 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4472 extra_headers=math-68881.h
4473 float_format=m68k
4474 gnu_ld=yes
4475 if test x$enable_threads = xyes; then
4476 thread_file='posix'
4479 m68k-*-psos*)
4480 tmake_file=m68k/t-m68kbare
4481 tm_file=m68k/m68k-psos.h
4482 extra_headers=math-68881.h
4483 float_format=m68k
4485 m68k-*-rtems*)
4486 tmake_file="m68k/t-m68kbare t-rtems"
4487 tm_file=m68k/rtems.h
4488 extra_headers=math-68881.h
4489 float_format=m68k
4492 m88k-dg-dgux*)
4493 case $machine in
4494 m88k-dg-dguxbcs*)
4495 tm_file=m88k/dguxbcs.h
4496 tmake_file=m88k/t-dguxbcs
4499 tm_file=m88k/dgux.h
4500 tmake_file=m88k/t-dgux
4502 esac
4503 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4504 xmake_file=m88k/x-dgux
4505 if test x$gas = xyes
4506 then
4507 tmake_file=m88k/t-dgux-gas
4510 m88k-dolphin-sysv3*)
4511 tm_file=m88k/dolph.h
4512 extra_parts="crtbegin.o crtend.o"
4513 xm_file="m88k/xm-sysv3.h ${xm_file}"
4514 xmake_file=m88k/x-dolph
4515 if test x$gas = xyes
4516 then
4517 tmake_file=m88k/t-m88k-gas
4520 m88k-tektronix-sysv3)
4521 tm_file=m88k/tekXD88.h
4522 extra_parts="crtbegin.o crtend.o"
4523 xm_file="m88k/xm-sysv3.h ${xm_file}"
4524 xmake_file=m88k/x-tekXD88
4525 if test x$gas = xyes
4526 then
4527 tmake_file=m88k/t-m88k-gas
4530 m88k-*-aout*)
4531 tm_file=m88k/m88k-aout.h
4533 m88k-*-coff*)
4534 tm_file=m88k/m88k-coff.h
4535 tmake_file=m88k/t-bug
4537 m88k-*-luna*)
4538 tm_file=m88k/luna.h
4539 extra_parts="crtbegin.o crtend.o"
4540 if test x$gas = xyes
4541 then
4542 tmake_file=m88k/t-luna-gas
4543 else
4544 tmake_file=m88k/t-luna
4547 m88k-*-openbsd*)
4548 tmake_file="${tmake_file} m88k/t-luna-gas"
4550 m88k-*-sysv3*)
4551 tm_file=m88k/sysv3.h
4552 extra_parts="crtbegin.o crtend.o"
4553 xm_file="m88k/xm-sysv3.h ${xm_file}"
4554 xmake_file=m88k/x-sysv3
4555 if test x$gas = xyes
4556 then
4557 tmake_file=m88k/t-m88k-gas
4560 m88k-*-sysv4*)
4561 tm_file=m88k/sysv4.h
4562 extra_parts="crtbegin.o crtend.o"
4563 xmake_file=m88k/x-sysv4
4564 tmake_file=m88k/t-sysv4
4566 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4567 if test "x$gnu_ld" = xyes
4568 then
4569 tm_file="mips/iris6.h mips/iris6gld.h"
4570 tmake_file=mips/t-iris6gld
4571 else
4572 tm_file=mips/iris6.h
4573 tmake_file=mips/t-iris6
4575 xm_file=mips/xm-iris6.h
4576 xmake_file=mips/x-iris6
4577 # if test x$enable_threads = xyes; then
4578 # thread_file='irix'
4579 # fi
4581 mips-wrs-vxworks)
4582 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4583 tmake_file=mips/t-ecoff
4584 gas=yes
4585 gnu_ld=yes
4586 extra_parts="crtbegin.o crtend.o"
4587 thread_file='vxworks'
4589 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4590 tm_file="mips/iris6.h mips/cross64.h"
4591 xm_defines=USG
4592 xm_file="mips/xm-iris5.h"
4593 xmake_file=mips/x-iris
4594 tmake_file=mips/t-cross64
4595 # See comment in mips/iris[56].h files.
4596 use_collect2=yes
4597 # if test x$enable_threads = xyes; then
4598 # thread_file='irix'
4599 # fi
4601 mips-sni-sysv4)
4602 if test x$gas = xyes
4603 then
4604 if test x$stabs = xyes
4605 then
4606 tm_file=mips/iris5gdb.h
4607 else
4608 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4610 else
4611 tm_file=mips/sni-svr4.h
4613 xm_defines=USG
4614 xmake_file=mips/x-sni-svr4
4615 tmake_file=mips/t-mips-gas
4616 if test x$gnu_ld != xyes
4617 then
4618 use_collect2=yes
4621 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4622 if test x$gas = xyes
4623 then
4624 tm_file="mips/iris5.h mips/iris5gas.h"
4625 if test x$stabs = xyes
4626 then
4627 tm_file="${tm_file} dbx.h"
4629 else
4630 tm_file=mips/iris5.h
4632 xm_defines=USG
4633 xm_file="mips/xm-iris5.h"
4634 xmake_file=mips/x-iris
4635 # mips-tfile doesn't work yet
4636 tmake_file=mips/t-mips-gas
4637 # See comment in mips/iris5.h file.
4638 use_collect2=yes
4639 # if test x$enable_threads = xyes; then
4640 # thread_file='irix'
4641 # fi
4643 mips-sgi-irix4loser*) # Mostly like a MIPS.
4644 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4645 if test x$stabs = xyes; then
4646 tm_file="${tm_file} dbx.h"
4648 xm_defines=USG
4649 xmake_file=mips/x-iris
4650 if test x$gas = xyes
4651 then
4652 tmake_file=mips/t-mips-gas
4653 else
4654 extra_passes="mips-tfile mips-tdump"
4656 if test x$gnu_ld != xyes
4657 then
4658 use_collect2=yes
4660 # if test x$enable_threads = xyes; then
4661 # thread_file='irix'
4662 # fi
4664 mips-sgi-irix4*) # Mostly like a MIPS.
4665 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4666 if test x$stabs = xyes; then
4667 tm_file="${tm_file} dbx.h"
4669 xm_defines=USG
4670 xmake_file=mips/x-iris
4671 if test x$gas = xyes
4672 then
4673 tmake_file=mips/t-mips-gas
4674 else
4675 extra_passes="mips-tfile mips-tdump"
4677 if test x$gnu_ld != xyes
4678 then
4679 use_collect2=yes
4681 # if test x$enable_threads = xyes; then
4682 # thread_file='irix'
4683 # fi
4685 mips-sgi-*) # Mostly like a MIPS.
4686 tm_file="mips/iris3.h ${tm_file}"
4687 if test x$stabs = xyes; then
4688 tm_file="${tm_file} dbx.h"
4690 xm_defines=USG
4691 xmake_file=mips/x-iris3
4692 if test x$gas = xyes
4693 then
4694 tmake_file=mips/t-mips-gas
4695 else
4696 extra_passes="mips-tfile mips-tdump"
4698 if test x$gnu_ld != xyes
4699 then
4700 use_collect2=yes
4703 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4704 tm_file="mips/osfrose.h ${tm_file}"
4705 xmake_file=mips/x-osfrose
4706 tmake_file=mips/t-osfrose
4707 extra_objs=halfpic.o
4708 use_collect2=yes
4710 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4711 tm_file=mips/dec-osf1.h
4712 if test x$stabs = xyes; then
4713 tm_file="${tm_file} dbx.h"
4715 xmake_file=mips/x-dec-osf1
4716 if test x$gas = xyes
4717 then
4718 tmake_file=mips/t-mips-gas
4719 else
4720 tmake_file=mips/t-ultrix
4721 extra_passes="mips-tfile mips-tdump"
4723 if test x$gnu_ld != xyes
4724 then
4725 use_collect2=yes
4728 mips-dec-bsd*) # Decstation running 4.4 BSD
4729 tm_file=mips/dec-bsd.h
4730 if test x$gas = xyes
4731 then
4732 tmake_file=mips/t-mips-gas
4733 else
4734 tmake_file=mips/t-ultrix
4735 extra_passes="mips-tfile mips-tdump"
4737 if test x$gnu_ld != xyes
4738 then
4739 use_collect2=yes
4742 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4743 tm_file=mips/netbsd.h
4744 # On NetBSD, the headers are already okay, except for math.h.
4745 tmake_file=t-netbsd
4747 mips*-*-linux*) # Linux MIPS, either endian.
4748 xmake_file=x-linux
4749 xm_file="xm-siglist.h ${xm_file}"
4750 case $machine in
4751 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4752 *) tm_file="mips/elf.h mips/linux.h" ;;
4753 esac
4754 extra_parts="crtbegin.o crtend.o"
4755 gnu_ld=yes
4756 gas=yes
4758 mips*el-*-openbsd*) # mips little endian
4759 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4760 tm_file=mips/openbsd.h
4762 mips*-*-openbsd*) # mips big endian
4763 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4764 tm_file=mips/openbsd-be.h
4766 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4767 tm_file="mips/news4.h ${tm_file}"
4768 if test x$stabs = xyes; then
4769 tm_file="${tm_file} dbx.h"
4771 if test x$gas = xyes
4772 then
4773 tmake_file=mips/t-mips-gas
4774 else
4775 extra_passes="mips-tfile mips-tdump"
4777 if test x$gnu_ld != xyes
4778 then
4779 use_collect2=yes
4781 xmake_file=mips/x-sony
4783 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4784 # That is based on svr4.
4785 # t-svr4 is not right because this system doesn't use ELF.
4786 tm_file="mips/news5.h ${tm_file}"
4787 if test x$stabs = xyes; then
4788 tm_file="${tm_file} dbx.h"
4790 xm_file="xm-siglist.h ${xm_file}"
4791 xm_defines=USG
4792 if test x$gas = xyes
4793 then
4794 tmake_file=mips/t-mips-gas
4795 else
4796 extra_passes="mips-tfile mips-tdump"
4798 if test x$gnu_ld != xyes
4799 then
4800 use_collect2=yes
4803 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4804 tm_file="mips/svr4-5.h mips/svr4-t.h"
4805 if test x$stabs = xyes; then
4806 tm_file="${tm_file} dbx.h"
4808 xm_file="xm-siglist.h ${xm_file}"
4809 xm_defines=USG
4810 xmake_file=mips/x-sysv
4811 if test x$gas = xyes
4812 then
4813 tmake_file=mips/t-mips-gas
4814 extra_parts="crtbegin.o crtend.o"
4815 else
4816 tmake_file=mips/t-mips
4817 extra_passes="mips-tfile mips-tdump"
4819 if test x$gnu_ld != xyes
4820 then
4821 use_collect2=yes
4824 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4825 tm_file="mips/ultrix.h ${tm_file}"
4826 if test x$stabs = xyes; then
4827 tm_file="${tm_file} dbx.h"
4829 xmake_file=mips/x-ultrix
4830 if test x$gas = xyes
4831 then
4832 tmake_file=mips/t-mips-gas
4833 else
4834 tmake_file=mips/t-ultrix
4835 extra_passes="mips-tfile mips-tdump"
4837 if test x$gnu_ld != xyes
4838 then
4839 use_collect2=yes
4842 mips-*-riscos[56789]bsd*)
4843 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4844 if test x$stabs = xyes; then
4845 tm_file="${tm_file} dbx.h"
4847 if test x$gas = xyes
4848 then
4849 tmake_file=mips/t-bsd-gas
4850 else
4851 tmake_file=mips/t-bsd
4852 extra_passes="mips-tfile mips-tdump"
4854 if test x$gnu_ld != xyes
4855 then
4856 use_collect2=yes
4859 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4860 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4861 if test x$stabs = xyes; then
4862 tm_file="${tm_file} dbx.h"
4864 if test x$gas = xyes
4865 then
4866 tmake_file=mips/t-bsd-gas
4867 else
4868 tmake_file=mips/t-bsd
4869 extra_passes="mips-tfile mips-tdump"
4871 if test x$gnu_ld != xyes
4872 then
4873 use_collect2=yes
4876 mips-*-riscos[56789]sysv4*)
4877 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4878 if test x$stabs = xyes; then
4879 tm_file="${tm_file} dbx.h"
4881 xm_file="xm-siglist.h ${xm_file}"
4882 xmake_file=mips/x-sysv
4883 if test x$gas = xyes
4884 then
4885 tmake_file=mips/t-svr4-gas
4886 else
4887 tmake_file=mips/t-svr4
4888 extra_passes="mips-tfile mips-tdump"
4890 if test x$gnu_ld != xyes
4891 then
4892 use_collect2=yes
4895 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4896 tm_file="mips/svr4-4.h ${tm_file}"
4897 if test x$stabs = xyes; then
4898 tm_file="${tm_file} dbx.h"
4900 xm_defines=USG
4901 xmake_file=mips/x-sysv
4902 if test x$gas = xyes
4903 then
4904 tmake_file=mips/t-svr4-gas
4905 else
4906 tmake_file=mips/t-svr4
4907 extra_passes="mips-tfile mips-tdump"
4909 if test x$gnu_ld != xyes
4910 then
4911 use_collect2=yes
4914 mips-*-riscos[56789]sysv*)
4915 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4916 if test x$stabs = xyes; then
4917 tm_file="${tm_file} dbx.h"
4919 xm_defines=USG
4920 xmake_file=mips/x-sysv
4921 if test x$gas = xyes
4922 then
4923 tmake_file=mips/t-svr3-gas
4924 else
4925 tmake_file=mips/t-svr3
4926 extra_passes="mips-tfile mips-tdump"
4928 if test x$gnu_ld != xyes
4929 then
4930 use_collect2=yes
4933 mips-*-sysv* | mips-*-riscos*sysv*)
4934 tm_file="mips/svr3-4.h ${tm_file}"
4935 if test x$stabs = xyes; then
4936 tm_file="${tm_file} dbx.h"
4938 xm_defines=USG
4939 xmake_file=mips/x-sysv
4940 if test x$gas = xyes
4941 then
4942 tmake_file=mips/t-svr3-gas
4943 else
4944 tmake_file=mips/t-svr3
4945 extra_passes="mips-tfile mips-tdump"
4947 if test x$gnu_ld != xyes
4948 then
4949 use_collect2=yes
4952 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4953 tm_file=mips/mips-5.h
4954 if test x$stabs = xyes; then
4955 tm_file="${tm_file} dbx.h"
4957 if test x$gas = xyes
4958 then
4959 tmake_file=mips/t-mips-gas
4960 else
4961 extra_passes="mips-tfile mips-tdump"
4963 if test x$gnu_ld != xyes
4964 then
4965 use_collect2=yes
4968 mips-*-gnu*)
4970 mipsel-*-ecoff*)
4971 tm_file=mips/ecoffl.h
4972 if test x$stabs = xyes; then
4973 tm_file="${tm_file} dbx.h"
4975 tmake_file=mips/t-ecoff
4977 mips-*-ecoff*)
4978 tm_file="gofast.h mips/ecoff.h"
4979 if test x$stabs = xyes; then
4980 tm_file="${tm_file} dbx.h"
4982 tmake_file=mips/t-ecoff
4984 mipsel-*-elf*)
4985 tm_file="mips/elfl.h libgloss.h"
4986 tmake_file=mips/t-elf
4988 mips-*-elf*)
4989 tm_file="mips/elf.h"
4990 tmake_file=mips/t-elf
4992 mips64el-*-elf*)
4993 tm_file="mips/elfl64.h"
4994 tmake_file=mips/t-elf
4996 mips64orionel-*-elf*)
4997 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4998 tmake_file=mips/t-elf
5000 mips64-*-elf*)
5001 tm_file="mips/elf64.h"
5002 tmake_file=mips/t-elf
5004 mips64orion-*-elf*)
5005 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
5006 tmake_file=mips/t-elf
5008 mips64orion-*-rtems*)
5009 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5010 tmake_file="mips/t-ecoff t-rtems"
5012 mipstx39el-*-elf*)
5013 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5014 tmake_file=mips/t-r3900
5016 mipstx39-*-elf*)
5017 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5018 tmake_file=mips/t-r3900
5020 mips-*-*) # Default MIPS RISC-OS 4.0.
5021 if test x$stabs = xyes; then
5022 tm_file="${tm_file} dbx.h"
5024 if test x$gas = xyes
5025 then
5026 tmake_file=mips/t-mips-gas
5027 else
5028 extra_passes="mips-tfile mips-tdump"
5030 if test x$gnu_ld != xyes
5031 then
5032 use_collect2=yes
5035 mn10200-*-*)
5036 cpu_type=mn10200
5037 tm_file="mn10200/mn10200.h"
5038 if test x$stabs = xyes
5039 then
5040 tm_file="${tm_file} dbx.h"
5042 use_collect2=no
5044 mn10300-*-*)
5045 cpu_type=mn10300
5046 tm_file="mn10300/mn10300.h"
5047 if test x$stabs = xyes
5048 then
5049 tm_file="${tm_file} dbx.h"
5051 use_collect2=no
5053 ns32k-encore-bsd*)
5054 tm_file=ns32k/encore.h
5055 use_collect2=yes
5057 ns32k-sequent-bsd*)
5058 tm_file=ns32k/sequent.h
5059 use_collect2=yes
5061 ns32k-tek6100-bsd*)
5062 tm_file=ns32k/tek6100.h
5063 use_collect2=yes
5065 ns32k-tek6200-bsd*)
5066 tm_file=ns32k/tek6200.h
5067 use_collect2=yes
5069 # This has not been updated to GCC 2.
5070 # ns32k-ns-genix*)
5071 # xm_defines=USG
5072 # xmake_file=ns32k/x-genix
5073 # tm_file=ns32k/genix.h
5074 # use_collect2=yes
5075 # ;;
5076 ns32k-merlin-*)
5077 tm_file=ns32k/merlin.h
5078 use_collect2=yes
5080 ns32k-pc532-mach*)
5081 tm_file=ns32k/pc532-mach.h
5082 use_collect2=yes
5084 ns32k-pc532-minix*)
5085 tm_file=ns32k/pc532-min.h
5086 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5087 xm_defines=USG
5088 use_collect2=yes
5090 ns32k-*-netbsd*)
5091 tm_file=ns32k/netbsd.h
5092 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5093 # On NetBSD, the headers are already okay, except for math.h.
5094 tmake_file=t-netbsd
5095 use_collect2=yes
5097 pdp11-*-bsd)
5098 tm_file="${tm_file} pdp11/2bsd.h"
5100 pdp11-*-*)
5102 ns32k-*-openbsd*)
5103 # Nothing special
5105 pyramid-*-*)
5106 cpu_type=pyr
5107 xmake_file=pyr/x-pyr
5108 use_collect2=yes
5110 romp-*-aos*)
5111 use_collect2=yes
5113 romp-*-mach*)
5114 xmake_file=romp/x-mach
5115 use_collect2=yes
5117 romp-*-openbsd*)
5118 # Nothing special
5120 powerpc-*-openbsd*)
5121 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5123 powerpc-*-beos*)
5124 cpu_type=rs6000
5125 tm_file=rs6000/beos.h
5126 xm_file=rs6000/xm-beos.h
5127 tmake_file=rs6000/t-beos
5128 xmake_file=rs6000/x-beos
5130 powerpc-*-sysv* | powerpc-*-elf*)
5131 tm_file=rs6000/sysv4.h
5132 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5133 xm_defines="USG POSIX"
5134 extra_headers=ppc-asm.h
5135 if test x$gas = xyes
5136 then
5137 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5138 else
5139 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5141 xmake_file=rs6000/x-sysv4
5143 powerpc-*-eabiaix*)
5144 tm_file=rs6000/eabiaix.h
5145 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5146 extra_headers=ppc-asm.h
5148 powerpc-*-eabisim*)
5149 tm_file=rs6000/eabisim.h
5150 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5151 extra_headers=ppc-asm.h
5153 powerpc-*-eabi*)
5154 tm_file=rs6000/eabi.h
5155 if test x$gas = xyes
5156 then
5157 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5158 else
5159 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5161 extra_headers=ppc-asm.h
5163 powerpc-*-rtems*)
5164 tm_file=rs6000/rtems.h
5165 if test x$gas = xyes
5166 then
5167 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5168 else
5169 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5171 extra_headers=ppc-asm.h
5173 powerpc-*-linux-gnulibc1)
5174 tm_file=rs6000/linux.h
5175 xm_file=rs6000/xm-sysv4.h
5176 out_file=rs6000/rs6000.c
5177 if test x$gas = xyes
5178 then
5179 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5180 else
5181 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5183 xmake_file=x-linux
5184 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5185 extra_headers=ppc-asm.h
5186 if test x$enable_threads = xyes; then
5187 thread_file='posix'
5190 powerpc-*-linux-gnu*)
5191 tm_file=rs6000/linux.h
5192 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5193 xm_defines="USG ${xm_defines}"
5194 out_file=rs6000/rs6000.c
5195 if test x$gas = xyes
5196 then
5197 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5198 else
5199 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5201 xmake_file=x-linux
5202 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5203 extra_headers=ppc-asm.h
5204 if test x$enable_threads = xyes; then
5205 thread_file='posix'
5208 powerpc-wrs-vxworks*)
5209 cpu_type=rs6000
5210 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5211 xm_defines="USG POSIX"
5212 tm_file=rs6000/vxppc.h
5213 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5214 extra_headers=ppc-asm.h
5215 thread_file='vxworks'
5217 powerpcle-*-sysv* | powerpcle-*-elf*)
5218 tm_file=rs6000/sysv4le.h
5219 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5220 xm_defines="USG POSIX"
5221 if test x$gas = xyes
5222 then
5223 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5224 else
5225 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5227 xmake_file=rs6000/x-sysv4
5228 extra_headers=ppc-asm.h
5230 powerpcle-*-eabisim*)
5231 tm_file=rs6000/eabilesim.h
5232 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5233 extra_headers=ppc-asm.h
5235 powerpcle-*-eabi*)
5236 tm_file=rs6000/eabile.h
5237 if test x$gas = xyes
5238 then
5239 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5240 else
5241 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5243 extra_headers=ppc-asm.h
5245 powerpcle-*-winnt* )
5246 tm_file=rs6000/win-nt.h
5247 tmake_file=rs6000/t-winnt
5248 # extra_objs=pe.o
5249 if test x$enable_threads = xyes; then
5250 thread_file='win32'
5252 extra_headers=ppc-asm.h
5254 powerpcle-*-pe | powerpcle-*-cygwin*)
5255 tm_file=rs6000/cygwin.h
5256 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5257 tmake_file=rs6000/t-winnt
5258 xmake_file=rs6000/x-cygwin
5259 # extra_objs=pe.o
5260 if test x$enable_threads = xyes; then
5261 thread_file='win32'
5263 exeext=.exe
5264 extra_headers=ppc-asm.h
5266 powerpcle-*-solaris2*)
5267 tm_file=rs6000/sol2.h
5268 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5269 xm_defines="USG POSIX"
5270 if test x$gas = xyes
5271 then
5272 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5273 else
5274 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5276 xmake_file=rs6000/x-sysv4
5277 extra_headers=ppc-asm.h
5279 rs6000-ibm-aix3.[01]*)
5280 tm_file=rs6000/aix31.h
5281 xmake_file=rs6000/x-aix31
5282 float_format=none
5283 use_collect2=yes
5285 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5286 tm_file=rs6000/aix3newas.h
5287 if test x$host != x$target
5288 then
5289 tmake_file=rs6000/t-xnewas
5290 else
5291 tmake_file=rs6000/t-newas
5293 float_format=none
5294 use_collect2=yes
5296 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5297 tm_file=rs6000/aix41.h
5298 if test x$host != x$target
5299 then
5300 tmake_file=rs6000/t-xnewas
5301 else
5302 tmake_file=rs6000/t-newas
5304 if test "$gnu_ld" = yes
5305 then
5306 xmake_file=rs6000/x-aix41-gld
5307 else
5308 xmake_file=rs6000/x-aix41
5310 float_format=none
5311 use_collect2=yes
5313 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5314 tm_file=rs6000/aix43.h
5315 if test x$host != x$target
5316 then
5317 tmake_file=rs6000/t-xaix43
5318 else
5319 tmake_file=rs6000/t-aix43
5321 xmake_file=rs6000/x-aix43
5322 float_format=none
5323 use_collect2=yes
5325 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5326 tm_file=rs6000/aix43.h
5327 if test x$host != x$target
5328 then
5329 tmake_file=rs6000/t-xaix43
5330 else
5331 tmake_file=rs6000/t-aix43
5333 xmake_file=rs6000/x-aix43
5334 float_format=none
5335 use_collect2=yes
5337 rs6000-ibm-aix*)
5338 float_format=none
5339 use_collect2=yes
5341 rs6000-bull-bosx)
5342 float_format=none
5343 use_collect2=yes
5345 rs6000-*-mach*)
5346 tm_file=rs6000/mach.h
5347 xm_file="${xm_file} rs6000/xm-mach.h"
5348 xmake_file=rs6000/x-mach
5349 use_collect2=yes
5351 rs6000-*-lynxos*)
5352 tm_file=rs6000/lynx.h
5353 xm_file=rs6000/xm-lynx.h
5354 tmake_file=rs6000/t-rs6000
5355 xmake_file=rs6000/x-lynx
5356 use_collect2=yes
5358 sh-*-elf*)
5359 tm_file=sh/elf.h
5360 float_format=sh
5362 sh-*-rtemself*)
5363 tmake_file="sh/t-sh t-rtems"
5364 tm_file=sh/rtemself.h
5365 float_format=sh
5367 sh-*-rtems*)
5368 tmake_file="sh/t-sh t-rtems"
5369 tm_file=sh/rtems.h
5370 float_format=sh
5372 sh-*-*)
5373 float_format=sh
5375 sparc-tti-*)
5376 tm_file=sparc/pbd.h
5377 xm_file="xm-alloca.h ${xm_file}"
5378 xm_defines=USG
5380 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5381 tm_file=sparc/vxsparc.h
5382 tmake_file=sparc/t-vxsparc
5383 use_collect2=yes
5384 thread_file='vxworks'
5386 sparc-*-aout*)
5387 tmake_file=sparc/t-sparcbare
5388 tm_file="sparc/aout.h libgloss.h"
5390 sparc-*-netbsd*)
5391 tm_file=sparc/netbsd.h
5392 tmake_file=t-netbsd
5393 use_collect2=yes
5395 sparc-*-openbsd*)
5396 # we need collect2 until our bug is fixed...
5397 use_collect2=yes
5399 sparc-*-bsd*)
5400 tm_file=sparc/bsd.h
5402 sparc-*-elf*)
5403 tm_file=sparc/elf.h
5404 tmake_file=sparc/t-elf
5405 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5406 #float_format=i128
5407 float_format=i64
5409 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5410 xm_file="${xm_file} sparc/xm-linux.h"
5411 tm_file=sparc/linux-aout.h
5412 xmake_file=x-linux
5413 gnu_ld=yes
5415 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5416 xm_file="${xm_file} sparc/xm-linux.h"
5417 xmake_file=x-linux
5418 tm_file=sparc/linux.h
5419 tmake_file="t-linux t-linux-gnulibc1"
5420 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5421 gnu_ld=yes
5423 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5424 xm_file="${xm_file} sparc/xm-linux.h"
5425 xmake_file=x-linux
5426 tm_file=sparc/linux.h
5427 tmake_file="t-linux"
5428 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5429 gnu_ld=yes
5430 if test x$enable_threads = xyes; then
5431 thread_file='posix'
5434 sparc-*-lynxos*)
5435 if test x$gas = xyes
5436 then
5437 tm_file=sparc/lynx.h
5438 else
5439 tm_file=sparc/lynx-ng.h
5441 xm_file=sparc/xm-lynx.h
5442 tmake_file=sparc/t-sunos41
5443 xmake_file=x-lynx
5445 sparc-*-rtems*)
5446 tmake_file="sparc/t-sparcbare t-rtems"
5447 tm_file=sparc/rtems.h
5449 sparcv9-*-solaris2*)
5450 tm_file=sparc/sol2-sld-64.h
5451 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5452 xm_defines="USG POSIX"
5453 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5454 xmake_file=sparc/x-sysv4
5455 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5456 float_format=none
5457 if test x${enable_threads} = x ; then
5458 enable_threads=$have_pthread_h
5459 if test x${enable_threads} = x ; then
5460 enable_threads=$have_thread_h
5463 if test x${enable_threads} = xyes ; then
5464 if test x${have_pthread_h} = xyes ; then
5465 thread_file='posix'
5466 else
5467 thread_file='solaris'
5471 sparc-hal-solaris2*)
5472 xm_file=sparc/xm-sol2.h
5473 tm_file="sparc/sol2.h sparc/hal.h"
5474 tmake_file="sparc/t-halos sparc/t-sol2"
5475 xmake_file=sparc/x-sysv4
5476 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5477 broken_install=yes
5479 sparc-*-solaris2*)
5480 if test x$gnu_ld = xyes
5481 then
5482 tm_file=sparc/sol2.h
5483 else
5484 tm_file=sparc/sol2-sld.h
5486 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5487 xm_defines="USG POSIX"
5488 tmake_file=sparc/t-sol2
5489 xmake_file=sparc/x-sysv4
5490 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5491 case $machine in
5492 *-*-solaris2.[0-4])
5493 float_format=i128
5496 float_format=none
5498 esac
5499 if test x${enable_threads} = x; then
5500 enable_threads=$have_pthread_h
5501 if test x${enable_threads} = x; then
5502 enable_threads=$have_thread_h
5505 if test x${enable_threads} = xyes; then
5506 if test x${have_pthread_h} = xyes; then
5507 thread_file='posix'
5508 else
5509 thread_file='solaris'
5513 sparc-*-sunos4.0*)
5514 tm_file=sparc/sunos4.h
5515 tmake_file=sparc/t-sunos40
5516 use_collect2=yes
5518 sparc-*-sunos4*)
5519 tm_file=sparc/sunos4.h
5520 tmake_file=sparc/t-sunos41
5521 use_collect2=yes
5522 if test x$gas = xyes; then
5523 tm_file="${tm_file} sparc/sun4gas.h"
5526 sparc-*-sunos3*)
5527 tm_file=sparc/sun4o3.h
5528 use_collect2=yes
5530 sparc-*-sysv4*)
5531 tm_file=sparc/sysv4.h
5532 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5533 xm_defines="USG POSIX"
5534 tmake_file=t-svr4
5535 xmake_file=sparc/x-sysv4
5536 extra_parts="crtbegin.o crtend.o"
5538 sparc-*-vxsim*)
5539 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5540 xm_defines="USG POSIX"
5541 tm_file=sparc/vxsim.h
5542 tmake_file=sparc/t-vxsparc
5543 xmake_file=sparc/x-sysv4
5545 sparclet-*-aout*)
5546 tm_file="sparc/splet.h libgloss.h"
5547 tmake_file=sparc/t-splet
5549 sparclite-*-coff*)
5550 tm_file="sparc/litecoff.h libgloss.h"
5551 tmake_file=sparc/t-sparclite
5553 sparclite-*-aout*)
5554 tm_file="sparc/lite.h aoutos.h libgloss.h"
5555 tmake_file=sparc/t-sparclite
5557 sparc64-*-aout*)
5558 tmake_file=sparc/t-sp64
5559 tm_file=sparc/sp64-aout.h
5561 sparc64-*-elf*)
5562 tmake_file=sparc/t-sp64
5563 tm_file=sparc/sp64-elf.h
5564 extra_parts="crtbegin.o crtend.o"
5566 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5567 tmake_file="t-linux sparc/t-linux64"
5568 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5569 tm_file=sparc/linux64.h
5570 xmake_file=x-linux
5571 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5572 gnu_ld=yes
5574 # This hasn't been upgraded to GCC 2.
5575 # tahoe-harris-*) # Harris tahoe, using COFF.
5576 # tm_file=tahoe/harris.h
5577 # ;;
5578 # tahoe-*-bsd*) # tahoe running BSD
5579 # ;;
5580 thumb-*-coff* | thumbel-*-coff*)
5581 tm_file=arm/tcoff.h
5582 out_file=arm/thumb.c
5583 xm_file=arm/xm-thumb.h
5584 md_file=arm/thumb.md
5585 tmake_file=arm/t-thumb
5587 thumb-*-elf* | thumbel-*-elf*)
5588 tm_file=arm/telf.h
5589 out_file=arm/thumb.c
5590 xm_file=arm/xm-thumb.h
5591 md_file=arm/thumb.md
5592 tmake_file=arm/t-thumb-elf
5594 thumb-wrs-vxworks)
5595 tm_file=arm/tcoff.h
5596 out_file=arm/thumb.c
5597 xm_file=arm/xm-thumb.h
5598 md_file=arm/thumb.md
5599 tmake_file=arm/t-thumb
5600 thread_file='vxworks'
5602 thumb-*-pe)
5603 tm_file=arm/tpe.h
5604 out_file=arm/thumb.c
5605 xm_file=arm/xm-thumb.h
5606 md_file=arm/thumb.md
5607 tmake_file=arm/t-pe-thumb
5608 extra_objs=pe.o
5610 # This hasn't been upgraded to GCC 2.
5611 # tron-*-*)
5612 # cpu_type=gmicro
5613 # use_collect2=yes
5614 # ;;
5615 v850-*-*)
5616 cpu_type=v850
5617 tm_file="v850/v850.h"
5618 xm_file="v850/xm-v850.h"
5619 tmake_file=v850/t-v850
5620 if test x$stabs = xyes
5621 then
5622 tm_file="${tm_file} dbx.h"
5624 use_collect2=no
5626 vax-*-bsd*) # vaxen running BSD
5627 use_collect2=yes
5628 float_format=vax
5630 vax-*-sysv*) # vaxen running system V
5631 tm_file="${tm_file} vax/vaxv.h"
5632 xm_defines=USG
5633 float_format=vax
5635 vax-*-netbsd*)
5636 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5637 tmake_file=t-netbsd
5638 float_format=vax
5639 use_collect2=yes
5641 vax-*-openbsd*)
5642 tmake_file="${tmake_file} vax/t-openbsd"
5644 vax-*-ultrix*) # vaxen running ultrix
5645 tm_file="${tm_file} vax/ultrix.h"
5646 use_collect2=yes
5647 float_format=vax
5649 vax-*-vms*) # vaxen running VMS
5650 xm_file=vax/xm-vms.h
5651 tm_file=vax/vms.h
5652 float_format=vax
5654 vax-*-*) # vax default entry
5655 float_format=vax
5657 we32k-att-sysv*)
5658 xm_file="${xm_file} xm-svr3"
5659 use_collect2=yes
5662 echo "Configuration $machine not supported" 1>&2
5663 exit 1
5665 esac
5667 case $machine in
5668 *-*-linux-gnu*)
5669 ;; # Existing GNU/Linux systems do not use the GNU setup.
5670 *-*-gnu*)
5671 # On the GNU system, the setup is just about the same on
5672 # each different CPU. The specific machines that GNU
5673 # supports are matched above and just set $cpu_type.
5674 xm_file="xm-gnu.h ${xm_file}"
5675 tm_file=${cpu_type}/gnu.h
5676 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5677 # GNU always uses ELF.
5678 elf=yes
5679 # GNU tools are the only tools.
5680 gnu_ld=yes
5681 gas=yes
5682 xmake_file=x-linux # These details are the same as Linux.
5683 tmake_file=t-gnu # These are not.
5685 *-*-sysv4*)
5686 xmake_try_sysv=x-sysv
5687 install_headers_dir=install-headers-cpio
5689 *-*-sysv*)
5690 install_headers_dir=install-headers-cpio
5692 esac
5694 # Distinguish i[34567]86
5695 # Also, do not run mips-tfile on MIPS if using gas.
5696 # Process --with-cpu= for PowerPC/rs6000
5697 target_cpu_default2=
5698 case $machine in
5699 i486-*-*)
5700 target_cpu_default2=1
5702 i586-*-*)
5703 case $target_alias in
5704 k6-*)
5705 target_cpu_default2=4
5708 target_cpu_default2=2
5710 esac
5712 i686-*-* | i786-*-*)
5713 target_cpu_default2=3
5715 alpha*-*-*)
5716 case $machine in
5717 alphaev6*)
5718 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5720 alphapca56*)
5721 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5723 alphaev56*)
5724 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5726 alphaev5*)
5727 target_cpu_default2="MASK_CPU_EV5"
5729 esac
5731 if test x$gas = xyes
5732 then
5733 if test "$target_cpu_default2" = ""
5734 then
5735 target_cpu_default2="MASK_GAS"
5736 else
5737 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5741 arm*-*-*)
5742 case "x$with_cpu" in
5744 # The most generic
5745 target_cpu_default2="TARGET_CPU_generic"
5748 # Distinguish cores, and major variants
5749 # arm7m doesn't exist, but D & I don't affect code
5750 xarm23678 | xarm250 | xarm67010 \
5751 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5752 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5753 | xstrongarm | xstrongarm110 | xstrongarm1100)
5754 target_cpu_default2="TARGET_CPU_$with_cpu"
5757 xyes | xno)
5758 echo "--with-cpu must be passed a value" 1>&2
5759 exit 1
5763 if test x$pass2done = xyes
5764 then
5765 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5766 exit 1
5769 esac
5772 mips*-*-ecoff* | mips*-*-elf*)
5773 if test x$gas = xyes
5774 then
5775 if test x$gnu_ld = xyes
5776 then
5777 target_cpu_default2=20
5778 else
5779 target_cpu_default2=16
5783 mips*-*-*)
5784 if test x$gas = xyes
5785 then
5786 target_cpu_default2=16
5789 powerpc*-*-* | rs6000-*-*)
5790 case "x$with_cpu" in
5794 xcommon | xpower | xpower2 | xpowerpc | xrios \
5795 | xrios1 | xrios2 | xrsc | xrsc1 \
5796 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5797 | xec603e | x740 | x750 | x401 \
5798 | x403 | x505 | x801 | x821 | x823 | x860)
5799 target_cpu_default2="\"$with_cpu\""
5802 xyes | xno)
5803 echo "--with-cpu must be passed a value" 1>&2
5804 exit 1
5808 if test x$pass2done = xyes
5809 then
5810 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5811 exit 1
5814 esac
5816 sparc*-*-*)
5817 case ".$with_cpu" in
5819 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5821 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5822 target_cpu_default2="TARGET_CPU_$with_cpu"
5825 if test x$pass2done = xyes
5826 then
5827 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5828 exit 1
5831 esac
5833 esac
5835 if test "$target_cpu_default2" != ""
5836 then
5837 if test "$target_cpu_default" != ""
5838 then
5839 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5840 else
5841 target_cpu_default=$target_cpu_default2
5845 # No need for collect2 if we have the GNU linker.
5846 # Actually, there is now; GNU ld doesn't handle the EH info or
5847 # collecting for shared libraries.
5848 #case x$gnu_ld in
5849 #xyes)
5850 # use_collect2=
5851 # ;;
5852 #esac
5854 # Save data on machine being used to compile GCC in build_xm_file.
5855 # Save data on host machine in vars host_xm_file and host_xmake_file.
5856 if test x$pass1done = x
5857 then
5858 if test x"$xm_file" = x
5859 then build_xm_file=$cpu_type/xm-$cpu_type.h
5860 else build_xm_file=$xm_file
5862 build_xm_defines=$xm_defines
5863 build_install_headers_dir=$install_headers_dir
5864 build_exeext=$exeext
5865 pass1done=yes
5866 else
5867 if test x$pass2done = x
5868 then
5869 if test x"$xm_file" = x
5870 then host_xm_file=$cpu_type/xm-$cpu_type.h
5871 else host_xm_file=$xm_file
5873 host_xm_defines=$xm_defines
5874 if test x"$xmake_file" = x
5875 then xmake_file=$cpu_type/x-$cpu_type
5877 host_xmake_file="$xmake_file"
5878 host_truncate_target=$truncate_target
5879 host_extra_gcc_objs=$extra_gcc_objs
5880 host_extra_objs=$extra_host_objs
5881 host_exeext=$exeext
5882 pass2done=yes
5885 done
5887 extra_objs="${host_extra_objs} ${extra_objs}"
5889 # Default the target-machine variables that were not explicitly set.
5890 if test x"$tm_file" = x
5891 then tm_file=$cpu_type/$cpu_type.h; fi
5893 if test x$extra_headers = x
5894 then extra_headers=; fi
5896 if test x"$xm_file" = x
5897 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5899 if test x$md_file = x
5900 then md_file=$cpu_type/$cpu_type.md; fi
5902 if test x$out_file = x
5903 then out_file=$cpu_type/$cpu_type.c; fi
5905 if test x"$tmake_file" = x
5906 then tmake_file=$cpu_type/t-$cpu_type
5909 if test x"$dwarf2" = xyes
5910 then tm_file="tm-dwarf2.h $tm_file"
5913 if test x$float_format = x
5914 then float_format=i64
5917 if test $float_format = none
5918 then float_h_file=Makefile.in
5919 else float_h_file=float-$float_format.h
5922 if test x$enable_haifa = x
5923 then
5924 case $target in
5925 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5926 enable_haifa=yes;;
5927 esac
5930 # Handle cpp installation.
5931 if test x$enable_cpp != xno
5932 then
5933 tmake_file="$tmake_file t-install-cpp"
5936 # Say what files are being used for the output code and MD file.
5937 echo "Using \`$srcdir/config/$out_file' to output insns."
5938 echo "Using \`$srcdir/config/$md_file' as machine description file."
5940 count=a
5941 for f in $tm_file; do
5942 count=${count}x
5943 done
5944 if test $count = ax; then
5945 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5946 else
5947 echo "Using the following target machine macro files:"
5948 for f in $tm_file; do
5949 echo " $srcdir/config/$f"
5950 done
5953 count=a
5954 for f in $host_xm_file; do
5955 count=${count}x
5956 done
5957 if test $count = ax; then
5958 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5959 else
5960 echo "Using the following host machine macro files:"
5961 for f in $host_xm_file; do
5962 echo " $srcdir/config/$f"
5963 done
5966 if test "$host_xm_file" != "$build_xm_file"; then
5967 count=a
5968 for f in $build_xm_file; do
5969 count=${count}x
5970 done
5971 if test $count = ax; then
5972 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5973 else
5974 echo "Using the following build machine macro files:"
5975 for f in $build_xm_file; do
5976 echo " $srcdir/config/$f"
5977 done
5981 if test x$thread_file = x; then
5982 if test x$target_thread_file != x; then
5983 thread_file=$target_thread_file
5984 else
5985 thread_file='single'
5989 # Set up the header files.
5990 # $links is the list of header files to create.
5991 # $vars is the list of shell variables with file names to include.
5992 # auto-host.h is the file containing items generated by autoconf and is
5993 # the first file included by config.h.
5994 null_defines=
5995 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5997 # If host=build, it is correct to have hconfig include auto-host.h
5998 # as well. If host!=build, we are in error and need to do more
5999 # work to find out the build config parameters.
6000 if test x$host = x$build
6001 then
6002 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6003 else
6004 # We create a subdir, then run autoconf in the subdir.
6005 # To prevent recursion we set host and build for the new
6006 # invocation of configure to the build for this invocation
6007 # of configure.
6008 tempdir=build.$$
6009 rm -rf $tempdir
6010 mkdir $tempdir
6011 cd $tempdir
6012 case ${srcdir} in
6013 /*) realsrcdir=${srcdir};;
6014 *) realsrcdir=../${srcdir};;
6015 esac
6016 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6017 --target=$target --host=$build --build=$build
6019 # We just finished tests for the build machine, so rename
6020 # the file auto-build.h in the gcc directory.
6021 mv auto-host.h ../auto-build.h
6022 cd ..
6023 rm -rf $tempdir
6024 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6027 xm_file="gansidecl.h ${xm_file}"
6028 tm_file="gansidecl.h ${tm_file}"
6030 vars="host_xm_file tm_file xm_file build_xm_file"
6031 links="config.h tm.h tconfig.h hconfig.h"
6032 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6034 rm -f config.bak
6035 if test -f config.status; then mv -f config.status config.bak; fi
6037 # Make the links.
6038 while test -n "$vars"
6040 set $vars; var=$1; shift; vars=$*
6041 set $links; link=$1; shift; links=$*
6042 set $defines; define=$1; shift; defines=$*
6044 rm -f $link
6046 # Define TARGET_CPU_DEFAULT if the system wants one.
6047 # This substitutes for lots of *.h files.
6048 if test "$target_cpu_default" != "" -a $link = tm.h
6049 then
6050 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6053 for file in `eval echo '$'$var`; do
6054 case $file in
6055 auto-config.h)
6058 echo '#ifdef IN_GCC' >>$link
6060 esac
6061 echo "#include \"$file\"" >>$link
6062 case $file in
6063 auto-config.h)
6066 echo '#endif' >>$link
6068 esac
6069 done
6071 for def in `eval echo '$'$define`; do
6072 echo "#ifndef $def" >>$link
6073 echo "#define $def" >>$link
6074 echo "#endif" >>$link
6075 done
6076 done
6078 # Truncate the target if necessary
6079 if test x$host_truncate_target != x; then
6080 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6083 # Get the version trigger filename from the toplevel
6084 if test "${with_gcc_version_trigger+set}" = set; then
6085 gcc_version_trigger=$with_gcc_version_trigger
6086 else
6087 gcc_version_trigger=${srcdir}/version.c
6089 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6091 # Internationalization
6092 PACKAGE=gcc
6093 VERSION="$gcc_version"
6094 cat >> confdefs.h <<EOF
6095 #define PACKAGE "$PACKAGE"
6098 cat >> confdefs.h <<EOF
6099 #define VERSION "$VERSION"
6105 ALL_LINGUAS="en_UK"
6107 # NLS support is still experimental, so disable it by default for now.
6108 # Check whether --enable-nls or --disable-nls was given.
6109 if test "${enable_nls+set}" = set; then
6110 enableval="$enable_nls"
6112 else
6113 enable_nls=no
6118 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6119 echo "configure:6120: checking for strerror in -lcposix" >&5
6120 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6123 else
6124 ac_save_LIBS="$LIBS"
6125 LIBS="-lcposix $LIBS"
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6132 char strerror();
6134 int main() {
6135 strerror()
6136 ; return 0; }
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 eval "ac_cv_lib_$ac_lib_var=yes"
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 eval "ac_cv_lib_$ac_lib_var=no"
6147 rm -f conftest*
6148 LIBS="$ac_save_LIBS"
6151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6152 echo "$ac_t""yes" 1>&6
6153 LIBS="$LIBS -lcposix"
6154 else
6155 echo "$ac_t""no" 1>&6
6160 echo $ac_n "checking for working const""... $ac_c" 1>&6
6161 echo "configure:6162: checking for working const" >&5
6162 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6164 else
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6169 int main() {
6171 /* Ultrix mips cc rejects this. */
6172 typedef int charset[2]; const charset x;
6173 /* SunOS 4.1.1 cc rejects this. */
6174 char const *const *ccp;
6175 char **p;
6176 /* NEC SVR4.0.2 mips cc rejects this. */
6177 struct point {int x, y;};
6178 static struct point const zero = {0,0};
6179 /* AIX XL C 1.02.0.0 rejects this.
6180 It does not let you subtract one const X* pointer from another in an arm
6181 of an if-expression whose if-part is not a constant expression */
6182 const char *g = "string";
6183 ccp = &g + (g ? g-g : 0);
6184 /* HPUX 7.0 cc rejects these. */
6185 ++ccp;
6186 p = (char**) ccp;
6187 ccp = (char const *const *) p;
6188 { /* SCO 3.2v4 cc rejects this. */
6189 char *t;
6190 char const *s = 0 ? (char *) 0 : (char const *) 0;
6192 *t++ = 0;
6194 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6195 int x[] = {25, 17};
6196 const int *foo = &x[0];
6197 ++foo;
6199 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6200 typedef const int *iptr;
6201 iptr p = 0;
6202 ++p;
6204 { /* AIX XL C 1.02.0.0 rejects this saying
6205 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6206 struct s { int j; const int *ap[3]; };
6207 struct s *b; b->j = 5;
6209 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6210 const int foo = 10;
6213 ; return 0; }
6215 if { (eval echo configure:6216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6216 rm -rf conftest*
6217 ac_cv_c_const=yes
6218 else
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 rm -rf conftest*
6222 ac_cv_c_const=no
6224 rm -f conftest*
6227 echo "$ac_t""$ac_cv_c_const" 1>&6
6228 if test $ac_cv_c_const = no; then
6229 cat >> confdefs.h <<\EOF
6230 #define const
6235 echo $ac_n "checking for inline""... $ac_c" 1>&6
6236 echo "configure:6237: checking for inline" >&5
6237 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6239 else
6240 ac_cv_c_inline=no
6241 for ac_kw in inline __inline__ __inline; do
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6246 int main() {
6247 } $ac_kw foo() {
6248 ; return 0; }
6250 if { (eval echo configure:6251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6251 rm -rf conftest*
6252 ac_cv_c_inline=$ac_kw; break
6253 else
6254 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6257 rm -f conftest*
6258 done
6262 echo "$ac_t""$ac_cv_c_inline" 1>&6
6263 case "$ac_cv_c_inline" in
6264 inline | yes) ;;
6265 no) cat >> confdefs.h <<\EOF
6266 #define inline
6269 *) cat >> confdefs.h <<EOF
6270 #define inline $ac_cv_c_inline
6273 esac
6275 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6276 echo "configure:6277: checking for off_t" >&5
6277 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6279 else
6280 cat > conftest.$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 #include <sys/types.h>
6284 #if STDC_HEADERS
6285 #include <stdlib.h>
6286 #include <stddef.h>
6287 #endif
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6291 rm -rf conftest*
6292 ac_cv_type_off_t=yes
6293 else
6294 rm -rf conftest*
6295 ac_cv_type_off_t=no
6297 rm -f conftest*
6300 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6301 if test $ac_cv_type_off_t = no; then
6302 cat >> confdefs.h <<\EOF
6303 #define off_t long
6308 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6309 echo "configure:6310: checking for size_t" >&5
6310 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312 else
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 #include <sys/types.h>
6317 #if STDC_HEADERS
6318 #include <stdlib.h>
6319 #include <stddef.h>
6320 #endif
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6324 rm -rf conftest*
6325 ac_cv_type_size_t=yes
6326 else
6327 rm -rf conftest*
6328 ac_cv_type_size_t=no
6330 rm -f conftest*
6333 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6334 if test $ac_cv_type_size_t = no; then
6335 cat >> confdefs.h <<\EOF
6336 #define size_t unsigned
6341 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6342 # for constant arguments. Useless!
6343 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6344 echo "configure:6345: checking for working alloca.h" >&5
6345 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6347 else
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6351 #include <alloca.h>
6352 int main() {
6353 char *p = alloca(2 * sizeof(int));
6354 ; return 0; }
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 rm -rf conftest*
6358 ac_cv_header_alloca_h=yes
6359 else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 rm -rf conftest*
6363 ac_cv_header_alloca_h=no
6365 rm -f conftest*
6368 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6369 if test $ac_cv_header_alloca_h = yes; then
6370 cat >> confdefs.h <<\EOF
6371 #define HAVE_ALLOCA_H 1
6376 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6377 echo "configure:6378: checking for alloca" >&5
6378 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6380 else
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6385 #ifdef __GNUC__
6386 # define alloca __builtin_alloca
6387 #else
6388 # ifdef _MSC_VER
6389 # include <malloc.h>
6390 # define alloca _alloca
6391 # else
6392 # if HAVE_ALLOCA_H
6393 # include <alloca.h>
6394 # else
6395 # ifdef _AIX
6396 #pragma alloca
6397 # else
6398 # ifndef alloca /* predefined by HP cc +Olibcalls */
6399 char *alloca ();
6400 # endif
6401 # endif
6402 # endif
6403 # endif
6404 #endif
6406 int main() {
6407 char *p = (char *) alloca(1);
6408 ; return 0; }
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 rm -rf conftest*
6412 ac_cv_func_alloca_works=yes
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 ac_cv_func_alloca_works=no
6419 rm -f conftest*
6422 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6423 if test $ac_cv_func_alloca_works = yes; then
6424 cat >> confdefs.h <<\EOF
6425 #define HAVE_ALLOCA 1
6430 if test $ac_cv_func_alloca_works = no; then
6431 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6432 # that cause trouble. Some versions do not even contain alloca or
6433 # contain a buggy version. If you still want to use their alloca,
6434 # use ar to extract alloca.o from them instead of compiling alloca.c.
6435 ALLOCA=alloca.${ac_objext}
6436 cat >> confdefs.h <<\EOF
6437 #define C_ALLOCA 1
6441 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6442 echo "configure:6443: checking whether alloca needs Cray hooks" >&5
6443 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6445 else
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6449 #if defined(CRAY) && ! defined(CRAY2)
6450 webecray
6451 #else
6452 wenotbecray
6453 #endif
6456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6457 egrep "webecray" >/dev/null 2>&1; then
6458 rm -rf conftest*
6459 ac_cv_os_cray=yes
6460 else
6461 rm -rf conftest*
6462 ac_cv_os_cray=no
6464 rm -f conftest*
6468 echo "$ac_t""$ac_cv_os_cray" 1>&6
6469 if test $ac_cv_os_cray = yes; then
6470 for ac_func in _getb67 GETB67 getb67; do
6471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_func" >&5
6473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6475 else
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func(); below. */
6481 #include <assert.h>
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485 char $ac_func();
6487 int main() {
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6493 choke me
6494 #else
6495 $ac_func();
6496 #endif
6498 ; return 0; }
6500 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 rm -rf conftest*
6502 eval "ac_cv_func_$ac_func=yes"
6503 else
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 rm -rf conftest*
6507 eval "ac_cv_func_$ac_func=no"
6509 rm -f conftest*
6512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 cat >> confdefs.h <<EOF
6515 #define CRAY_STACKSEG_END $ac_func
6518 break
6519 else
6520 echo "$ac_t""no" 1>&6
6523 done
6526 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6527 echo "configure:6528: checking stack direction for C alloca" >&5
6528 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531 if test "$cross_compiling" = yes; then
6532 ac_cv_c_stack_direction=0
6533 else
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 find_stack_direction ()
6539 static char *addr = 0;
6540 auto char dummy;
6541 if (addr == 0)
6543 addr = &dummy;
6544 return find_stack_direction ();
6546 else
6547 return (&dummy > addr) ? 1 : -1;
6549 main ()
6551 exit (find_stack_direction() < 0);
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6555 then
6556 ac_cv_c_stack_direction=1
6557 else
6558 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6560 rm -fr conftest*
6561 ac_cv_c_stack_direction=-1
6563 rm -fr conftest*
6568 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6569 cat >> confdefs.h <<EOF
6570 #define STACK_DIRECTION $ac_cv_c_stack_direction
6575 for ac_hdr in unistd.h
6577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_hdr" >&5
6580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 #include <$ac_hdr>
6588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6589 { (eval echo configure:6590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6591 if test -z "$ac_err"; then
6592 rm -rf conftest*
6593 eval "ac_cv_header_$ac_safe=yes"
6594 else
6595 echo "$ac_err" >&5
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 rm -rf conftest*
6599 eval "ac_cv_header_$ac_safe=no"
6601 rm -f conftest*
6603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6604 echo "$ac_t""yes" 1>&6
6605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6606 cat >> confdefs.h <<EOF
6607 #define $ac_tr_hdr 1
6610 else
6611 echo "$ac_t""no" 1>&6
6613 done
6615 for ac_func in getpagesize
6617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_func" >&5
6619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6621 else
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* System header to define __stub macros and hopefully few prototypes,
6626 which can conflict with char $ac_func(); below. */
6627 #include <assert.h>
6628 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6631 char $ac_func();
6633 int main() {
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 choke me
6640 #else
6641 $ac_func();
6642 #endif
6644 ; return 0; }
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 rm -rf conftest*
6648 eval "ac_cv_func_$ac_func=yes"
6649 else
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 rm -rf conftest*
6653 eval "ac_cv_func_$ac_func=no"
6655 rm -f conftest*
6658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6661 cat >> confdefs.h <<EOF
6662 #define $ac_tr_func 1
6665 else
6666 echo "$ac_t""no" 1>&6
6668 done
6670 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6671 echo "configure:6672: checking for working mmap" >&5
6672 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6674 else
6675 if test "$cross_compiling" = yes; then
6676 ac_cv_func_mmap_fixed_mapped=no
6677 else
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6682 /* Thanks to Mike Haertel and Jim Avera for this test.
6683 Here is a matrix of mmap possibilities:
6684 mmap private not fixed
6685 mmap private fixed at somewhere currently unmapped
6686 mmap private fixed at somewhere already mapped
6687 mmap shared not fixed
6688 mmap shared fixed at somewhere currently unmapped
6689 mmap shared fixed at somewhere already mapped
6690 For private mappings, we should verify that changes cannot be read()
6691 back from the file, nor mmap's back from the file at a different
6692 address. (There have been systems where private was not correctly
6693 implemented like the infamous i386 svr4.0, and systems where the
6694 VM page cache was not coherent with the filesystem buffer cache
6695 like early versions of FreeBSD and possibly contemporary NetBSD.)
6696 For shared mappings, we should conversely verify that changes get
6697 propogated back to all the places they're supposed to be.
6699 Grep wants private fixed already mapped.
6700 The main things grep needs to know about mmap are:
6701 * does it exist and is it safe to write into the mmap'd area
6702 * how to use it (BSD variants) */
6703 #include <sys/types.h>
6704 #include <fcntl.h>
6705 #include <sys/mman.h>
6707 /* This mess was copied from the GNU getpagesize.h. */
6708 #ifndef HAVE_GETPAGESIZE
6709 # ifdef HAVE_UNISTD_H
6710 # include <unistd.h>
6711 # endif
6713 /* Assume that all systems that can run configure have sys/param.h. */
6714 # ifndef HAVE_SYS_PARAM_H
6715 # define HAVE_SYS_PARAM_H 1
6716 # endif
6718 # ifdef _SC_PAGESIZE
6719 # define getpagesize() sysconf(_SC_PAGESIZE)
6720 # else /* no _SC_PAGESIZE */
6721 # ifdef HAVE_SYS_PARAM_H
6722 # include <sys/param.h>
6723 # ifdef EXEC_PAGESIZE
6724 # define getpagesize() EXEC_PAGESIZE
6725 # else /* no EXEC_PAGESIZE */
6726 # ifdef NBPG
6727 # define getpagesize() NBPG * CLSIZE
6728 # ifndef CLSIZE
6729 # define CLSIZE 1
6730 # endif /* no CLSIZE */
6731 # else /* no NBPG */
6732 # ifdef NBPC
6733 # define getpagesize() NBPC
6734 # else /* no NBPC */
6735 # ifdef PAGESIZE
6736 # define getpagesize() PAGESIZE
6737 # endif /* PAGESIZE */
6738 # endif /* no NBPC */
6739 # endif /* no NBPG */
6740 # endif /* no EXEC_PAGESIZE */
6741 # else /* no HAVE_SYS_PARAM_H */
6742 # define getpagesize() 8192 /* punt totally */
6743 # endif /* no HAVE_SYS_PARAM_H */
6744 # endif /* no _SC_PAGESIZE */
6746 #endif /* no HAVE_GETPAGESIZE */
6748 #ifdef __cplusplus
6749 extern "C" { void *malloc(unsigned); }
6750 #else
6751 char *malloc();
6752 #endif
6755 main()
6757 char *data, *data2, *data3;
6758 int i, pagesize;
6759 int fd;
6761 pagesize = getpagesize();
6764 * First, make a file with some known garbage in it.
6766 data = malloc(pagesize);
6767 if (!data)
6768 exit(1);
6769 for (i = 0; i < pagesize; ++i)
6770 *(data + i) = rand();
6771 umask(0);
6772 fd = creat("conftestmmap", 0600);
6773 if (fd < 0)
6774 exit(1);
6775 if (write(fd, data, pagesize) != pagesize)
6776 exit(1);
6777 close(fd);
6780 * Next, try to mmap the file at a fixed address which
6781 * already has something else allocated at it. If we can,
6782 * also make sure that we see the same garbage.
6784 fd = open("conftestmmap", O_RDWR);
6785 if (fd < 0)
6786 exit(1);
6787 data2 = malloc(2 * pagesize);
6788 if (!data2)
6789 exit(1);
6790 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6791 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6793 exit(1);
6794 for (i = 0; i < pagesize; ++i)
6795 if (*(data + i) != *(data2 + i))
6796 exit(1);
6799 * Finally, make sure that changes to the mapped area
6800 * do not percolate back to the file as seen by read().
6801 * (This is a bug on some variants of i386 svr4.0.)
6803 for (i = 0; i < pagesize; ++i)
6804 *(data2 + i) = *(data2 + i) + 1;
6805 data3 = malloc(pagesize);
6806 if (!data3)
6807 exit(1);
6808 if (read(fd, data3, pagesize) != pagesize)
6809 exit(1);
6810 for (i = 0; i < pagesize; ++i)
6811 if (*(data + i) != *(data3 + i))
6812 exit(1);
6813 close(fd);
6814 unlink("conftestmmap");
6815 exit(0);
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6820 then
6821 ac_cv_func_mmap_fixed_mapped=yes
6822 else
6823 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6825 rm -fr conftest*
6826 ac_cv_func_mmap_fixed_mapped=no
6828 rm -fr conftest*
6833 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6834 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6835 cat >> confdefs.h <<\EOF
6836 #define HAVE_MMAP 1
6842 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6843 unistd.h sys/param.h
6845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6847 echo "configure:6848: checking for $ac_hdr" >&5
6848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6850 else
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 #include <$ac_hdr>
6856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6857 { (eval echo configure:6858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6859 if test -z "$ac_err"; then
6860 rm -rf conftest*
6861 eval "ac_cv_header_$ac_safe=yes"
6862 else
6863 echo "$ac_err" >&5
6864 echo "configure: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6866 rm -rf conftest*
6867 eval "ac_cv_header_$ac_safe=no"
6869 rm -f conftest*
6871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6872 echo "$ac_t""yes" 1>&6
6873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6874 cat >> confdefs.h <<EOF
6875 #define $ac_tr_hdr 1
6878 else
6879 echo "$ac_t""no" 1>&6
6881 done
6883 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6884 strdup __argz_count __argz_stringify __argz_next
6886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6887 echo "configure:6888: checking for $ac_func" >&5
6888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6890 else
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func(); below. */
6896 #include <assert.h>
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6900 char $ac_func();
6902 int main() {
6904 /* The GNU C library defines this for functions which it implements
6905 to always fail with ENOSYS. Some functions are actually named
6906 something starting with __ and the normal name is an alias. */
6907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908 choke me
6909 #else
6910 $ac_func();
6911 #endif
6913 ; return 0; }
6915 if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 rm -rf conftest*
6917 eval "ac_cv_func_$ac_func=yes"
6918 else
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 rm -rf conftest*
6922 eval "ac_cv_func_$ac_func=no"
6924 rm -f conftest*
6927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6930 cat >> confdefs.h <<EOF
6931 #define $ac_tr_func 1
6934 else
6935 echo "$ac_t""no" 1>&6
6937 done
6940 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6941 for ac_func in stpcpy
6943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6944 echo "configure:6945: checking for $ac_func" >&5
6945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6947 else
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char $ac_func(); below. */
6953 #include <assert.h>
6954 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char $ac_func();
6959 int main() {
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 choke me
6966 #else
6967 $ac_func();
6968 #endif
6970 ; return 0; }
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6973 rm -rf conftest*
6974 eval "ac_cv_func_$ac_func=yes"
6975 else
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 rm -rf conftest*
6979 eval "ac_cv_func_$ac_func=no"
6981 rm -f conftest*
6984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6987 cat >> confdefs.h <<EOF
6988 #define $ac_tr_func 1
6991 else
6992 echo "$ac_t""no" 1>&6
6994 done
6997 if test "${ac_cv_func_stpcpy}" = "yes"; then
6998 cat >> confdefs.h <<\EOF
6999 #define HAVE_STPCPY 1
7004 if test $ac_cv_header_locale_h = yes; then
7005 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7006 echo "configure:7007: checking for LC_MESSAGES" >&5
7007 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+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 #include <locale.h>
7014 int main() {
7015 return LC_MESSAGES
7016 ; return 0; }
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7019 rm -rf conftest*
7020 am_cv_val_LC_MESSAGES=yes
7021 else
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 rm -rf conftest*
7025 am_cv_val_LC_MESSAGES=no
7027 rm -f conftest*
7030 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7031 if test $am_cv_val_LC_MESSAGES = yes; then
7032 cat >> confdefs.h <<\EOF
7033 #define HAVE_LC_MESSAGES 1
7038 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7039 echo "configure:7040: checking whether NLS is requested" >&5
7040 # Check whether --enable-nls or --disable-nls was given.
7041 if test "${enable_nls+set}" = set; then
7042 enableval="$enable_nls"
7043 USE_NLS=$enableval
7044 else
7045 USE_NLS=yes
7048 echo "$ac_t""$USE_NLS" 1>&6
7051 USE_INCLUDED_LIBINTL=no
7053 if test "$USE_NLS" = "yes"; then
7054 cat >> confdefs.h <<\EOF
7055 #define ENABLE_NLS 1
7058 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7059 echo "configure:7060: checking whether included gettext is requested" >&5
7060 # Check whether --with-included-gettext or --without-included-gettext was given.
7061 if test "${with_included_gettext+set}" = set; then
7062 withval="$with_included_gettext"
7063 nls_cv_force_use_gnu_gettext=$withval
7064 else
7065 nls_cv_force_use_gnu_gettext=no
7068 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7070 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7071 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7072 nls_cv_header_intl=
7073 nls_cv_header_libgt=
7074 CATOBJEXT=NONE
7076 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7077 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7078 echo "configure:7079: checking for libintl.h" >&5
7079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7081 else
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 #include <libintl.h>
7087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7088 { (eval echo configure:7089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7090 if test -z "$ac_err"; then
7091 rm -rf conftest*
7092 eval "ac_cv_header_$ac_safe=yes"
7093 else
7094 echo "$ac_err" >&5
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 eval "ac_cv_header_$ac_safe=no"
7100 rm -f conftest*
7102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7105 echo "configure:7106: checking for gettext in libc" >&5
7106 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7108 else
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 #include <libintl.h>
7113 int main() {
7114 return (int) gettext ("")
7115 ; return 0; }
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 rm -rf conftest*
7119 gt_cv_func_gettext_libc=yes
7120 else
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7123 rm -rf conftest*
7124 gt_cv_func_gettext_libc=no
7126 rm -f conftest*
7129 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7131 if test "$gt_cv_func_gettext_libc" != "yes"; then
7132 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7133 echo "configure:7134: checking for bindtextdomain in -lintl" >&5
7134 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7137 else
7138 ac_save_LIBS="$LIBS"
7139 LIBS="-lintl $LIBS"
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char bindtextdomain();
7148 int main() {
7149 bindtextdomain()
7150 ; return 0; }
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7153 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7155 else
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 rm -rf conftest*
7159 eval "ac_cv_lib_$ac_lib_var=no"
7161 rm -f conftest*
7162 LIBS="$ac_save_LIBS"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7168 echo "configure:7169: checking for gettext in libintl" >&5
7169 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7171 else
7172 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7173 echo "configure:7174: checking for gettext in -lintl" >&5
7174 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7177 else
7178 ac_save_LIBS="$LIBS"
7179 LIBS="-lintl $LIBS"
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7186 char gettext();
7188 int main() {
7189 gettext()
7190 ; return 0; }
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7193 rm -rf conftest*
7194 eval "ac_cv_lib_$ac_lib_var=yes"
7195 else
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7198 rm -rf conftest*
7199 eval "ac_cv_lib_$ac_lib_var=no"
7201 rm -f conftest*
7202 LIBS="$ac_save_LIBS"
7205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7206 echo "$ac_t""yes" 1>&6
7207 gt_cv_func_gettext_libintl=yes
7208 else
7209 echo "$ac_t""no" 1>&6
7210 gt_cv_func_gettext_libintl=no
7215 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7216 else
7217 echo "$ac_t""no" 1>&6
7222 if test "$gt_cv_func_gettext_libc" = "yes" \
7223 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7224 cat >> confdefs.h <<\EOF
7225 #define HAVE_GETTEXT 1
7228 # Extract the first word of "msgfmt", so it can be a program name with args.
7229 set dummy msgfmt; ac_word=$2
7230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7231 echo "configure:7232: checking for $ac_word" >&5
7232 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7234 else
7235 case "$MSGFMT" in
7237 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7241 for ac_dir in $PATH; do
7242 test -z "$ac_dir" && ac_dir=.
7243 if test -f $ac_dir/$ac_word; then
7244 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7245 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7246 break
7249 done
7250 IFS="$ac_save_ifs"
7251 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7253 esac
7255 MSGFMT="$ac_cv_path_MSGFMT"
7256 if test -n "$MSGFMT"; then
7257 echo "$ac_t""$MSGFMT" 1>&6
7258 else
7259 echo "$ac_t""no" 1>&6
7261 if test "$MSGFMT" != "no"; then
7262 for ac_func in dcgettext
7264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7265 echo "configure:7266: checking for $ac_func" >&5
7266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7268 else
7269 cat > conftest.$ac_ext <<EOF
7270 #line 7271 "configure"
7271 #include "confdefs.h"
7272 /* System header to define __stub macros and hopefully few prototypes,
7273 which can conflict with char $ac_func(); below. */
7274 #include <assert.h>
7275 /* Override any gcc2 internal prototype to avoid an error. */
7276 /* We use char because int might match the return type of a gcc2
7277 builtin and then its argument prototype would still apply. */
7278 char $ac_func();
7280 int main() {
7282 /* The GNU C library defines this for functions which it implements
7283 to always fail with ENOSYS. Some functions are actually named
7284 something starting with __ and the normal name is an alias. */
7285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7286 choke me
7287 #else
7288 $ac_func();
7289 #endif
7291 ; return 0; }
7293 if { (eval echo configure:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7294 rm -rf conftest*
7295 eval "ac_cv_func_$ac_func=yes"
7296 else
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7299 rm -rf conftest*
7300 eval "ac_cv_func_$ac_func=no"
7302 rm -f conftest*
7305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7306 echo "$ac_t""yes" 1>&6
7307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7308 cat >> confdefs.h <<EOF
7309 #define $ac_tr_func 1
7312 else
7313 echo "$ac_t""no" 1>&6
7315 done
7317 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7318 set dummy gmsgfmt; ac_word=$2
7319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7320 echo "configure:7321: checking for $ac_word" >&5
7321 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6
7323 else
7324 case "$GMSGFMT" in
7326 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7328 ?:/*)
7329 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7333 ac_dummy="$PATH"
7334 for ac_dir in $ac_dummy; do
7335 test -z "$ac_dir" && ac_dir=.
7336 if test -f $ac_dir/$ac_word; then
7337 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7338 break
7340 done
7341 IFS="$ac_save_ifs"
7342 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7344 esac
7346 GMSGFMT="$ac_cv_path_GMSGFMT"
7347 if test -n "$GMSGFMT"; then
7348 echo "$ac_t""$GMSGFMT" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7353 # Extract the first word of "xgettext", so it can be a program name with args.
7354 set dummy xgettext; ac_word=$2
7355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7356 echo "configure:7357: checking for $ac_word" >&5
7357 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7359 else
7360 case "$XGETTEXT" in
7362 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7366 for ac_dir in $PATH; do
7367 test -z "$ac_dir" && ac_dir=.
7368 if test -f $ac_dir/$ac_word; then
7369 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7370 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7371 break
7374 done
7375 IFS="$ac_save_ifs"
7376 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7378 esac
7380 XGETTEXT="$ac_cv_path_XGETTEXT"
7381 if test -n "$XGETTEXT"; then
7382 echo "$ac_t""$XGETTEXT" 1>&6
7383 else
7384 echo "$ac_t""no" 1>&6
7387 cat > conftest.$ac_ext <<EOF
7388 #line 7389 "configure"
7389 #include "confdefs.h"
7391 int main() {
7392 extern int _nl_msg_cat_cntr;
7393 return _nl_msg_cat_cntr
7394 ; return 0; }
7396 if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7397 rm -rf conftest*
7398 CATOBJEXT=.gmo
7399 DATADIRNAME=share
7400 else
7401 echo "configure: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7403 rm -rf conftest*
7404 CATOBJEXT=.mo
7405 DATADIRNAME=lib
7407 rm -f conftest*
7408 INSTOBJEXT=.mo
7412 else
7413 echo "$ac_t""no" 1>&6
7417 if test "$CATOBJEXT" = "NONE"; then
7418 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7419 echo "configure:7420: checking whether catgets can be used" >&5
7420 # Check whether --with-catgets or --without-catgets was given.
7421 if test "${with_catgets+set}" = set; then
7422 withval="$with_catgets"
7423 nls_cv_use_catgets=$withval
7424 else
7425 nls_cv_use_catgets=no
7428 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7430 if test "$nls_cv_use_catgets" = "yes"; then
7431 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7432 echo "configure:7433: checking for main in -li" >&5
7433 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7436 else
7437 ac_save_LIBS="$LIBS"
7438 LIBS="-li $LIBS"
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7443 int main() {
7444 main()
7445 ; return 0; }
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 rm -rf conftest*
7449 eval "ac_cv_lib_$ac_lib_var=yes"
7450 else
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 rm -rf conftest*
7454 eval "ac_cv_lib_$ac_lib_var=no"
7456 rm -f conftest*
7457 LIBS="$ac_save_LIBS"
7460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7462 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7464 cat >> confdefs.h <<EOF
7465 #define $ac_tr_lib 1
7468 LIBS="-li $LIBS"
7470 else
7471 echo "$ac_t""no" 1>&6
7474 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7475 echo "configure:7476: checking for catgets" >&5
7476 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7478 else
7479 cat > conftest.$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7482 /* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char catgets(); below. */
7484 #include <assert.h>
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7488 char catgets();
7490 int main() {
7492 /* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495 #if defined (__stub_catgets) || defined (__stub___catgets)
7496 choke me
7497 #else
7498 catgets();
7499 #endif
7501 ; return 0; }
7503 if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7504 rm -rf conftest*
7505 eval "ac_cv_func_catgets=yes"
7506 else
7507 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7509 rm -rf conftest*
7510 eval "ac_cv_func_catgets=no"
7512 rm -f conftest*
7515 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 cat >> confdefs.h <<\EOF
7518 #define HAVE_CATGETS 1
7521 INTLOBJS="\$(CATOBJS)"
7522 # Extract the first word of "gencat", so it can be a program name with args.
7523 set dummy gencat; ac_word=$2
7524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_word" >&5
7526 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528 else
7529 case "$GENCAT" in
7531 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7533 ?:/*)
7534 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7538 ac_dummy="$PATH"
7539 for ac_dir in $ac_dummy; do
7540 test -z "$ac_dir" && ac_dir=.
7541 if test -f $ac_dir/$ac_word; then
7542 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7543 break
7545 done
7546 IFS="$ac_save_ifs"
7547 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7549 esac
7551 GENCAT="$ac_cv_path_GENCAT"
7552 if test -n "$GENCAT"; then
7553 echo "$ac_t""$GENCAT" 1>&6
7554 else
7555 echo "$ac_t""no" 1>&6
7557 if test "$GENCAT" != "no"; then
7558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7559 set dummy gmsgfmt; ac_word=$2
7560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_word" >&5
7562 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7564 else
7565 case "$GMSGFMT" in
7567 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7569 ?:/*)
7570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7574 ac_dummy="$PATH"
7575 for ac_dir in $ac_dummy; do
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/$ac_word; then
7578 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7579 break
7581 done
7582 IFS="$ac_save_ifs"
7583 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7585 esac
7587 GMSGFMT="$ac_cv_path_GMSGFMT"
7588 if test -n "$GMSGFMT"; then
7589 echo "$ac_t""$GMSGFMT" 1>&6
7590 else
7591 echo "$ac_t""no" 1>&6
7594 if test "$GMSGFMT" = "no"; then
7595 # Extract the first word of "msgfmt", so it can be a program name with args.
7596 set dummy msgfmt; ac_word=$2
7597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7598 echo "configure:7599: checking for $ac_word" >&5
7599 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7600 echo $ac_n "(cached) $ac_c" 1>&6
7601 else
7602 case "$GMSGFMT" in
7604 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7608 for ac_dir in $PATH; do
7609 test -z "$ac_dir" && ac_dir=.
7610 if test -f $ac_dir/$ac_word; then
7611 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7612 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7613 break
7616 done
7617 IFS="$ac_save_ifs"
7618 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7620 esac
7622 GMSGFMT="$ac_cv_path_GMSGFMT"
7623 if test -n "$GMSGFMT"; then
7624 echo "$ac_t""$GMSGFMT" 1>&6
7625 else
7626 echo "$ac_t""no" 1>&6
7630 # Extract the first word of "xgettext", so it can be a program name with args.
7631 set dummy xgettext; ac_word=$2
7632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7633 echo "configure:7634: checking for $ac_word" >&5
7634 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7636 else
7637 case "$XGETTEXT" in
7639 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7643 for ac_dir in $PATH; do
7644 test -z "$ac_dir" && ac_dir=.
7645 if test -f $ac_dir/$ac_word; then
7646 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7647 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7648 break
7651 done
7652 IFS="$ac_save_ifs"
7653 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7655 esac
7657 XGETTEXT="$ac_cv_path_XGETTEXT"
7658 if test -n "$XGETTEXT"; then
7659 echo "$ac_t""$XGETTEXT" 1>&6
7660 else
7661 echo "$ac_t""no" 1>&6
7664 USE_INCLUDED_LIBINTL=yes
7665 CATOBJEXT=.cat
7666 INSTOBJEXT=.cat
7667 DATADIRNAME=lib
7668 INTLDEPS='$(top_builddir)/intl/libintl.a'
7669 INTLLIBS=$INTLDEPS
7670 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7671 nls_cv_header_intl=intl/libintl.h
7672 nls_cv_header_libgt=intl/libgettext.h
7674 else
7675 echo "$ac_t""no" 1>&6
7681 if test "$CATOBJEXT" = "NONE"; then
7682 nls_cv_use_gnu_gettext=yes
7686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7687 INTLOBJS="\$(GETTOBJS)"
7688 # Extract the first word of "msgfmt", so it can be a program name with args.
7689 set dummy msgfmt; ac_word=$2
7690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_word" >&5
7692 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695 case "$MSGFMT" in
7697 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7701 for ac_dir in $PATH; do
7702 test -z "$ac_dir" && ac_dir=.
7703 if test -f $ac_dir/$ac_word; then
7704 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7705 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7706 break
7709 done
7710 IFS="$ac_save_ifs"
7711 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7713 esac
7715 MSGFMT="$ac_cv_path_MSGFMT"
7716 if test -n "$MSGFMT"; then
7717 echo "$ac_t""$MSGFMT" 1>&6
7718 else
7719 echo "$ac_t""no" 1>&6
7722 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7723 set dummy gmsgfmt; ac_word=$2
7724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7725 echo "configure:7726: checking for $ac_word" >&5
7726 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7728 else
7729 case "$GMSGFMT" in
7731 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7733 ?:/*)
7734 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7738 ac_dummy="$PATH"
7739 for ac_dir in $ac_dummy; do
7740 test -z "$ac_dir" && ac_dir=.
7741 if test -f $ac_dir/$ac_word; then
7742 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7743 break
7745 done
7746 IFS="$ac_save_ifs"
7747 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7749 esac
7751 GMSGFMT="$ac_cv_path_GMSGFMT"
7752 if test -n "$GMSGFMT"; then
7753 echo "$ac_t""$GMSGFMT" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7758 # Extract the first word of "xgettext", so it can be a program name with args.
7759 set dummy xgettext; ac_word=$2
7760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7761 echo "configure:7762: checking for $ac_word" >&5
7762 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7764 else
7765 case "$XGETTEXT" in
7767 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7771 for ac_dir in $PATH; do
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/$ac_word; then
7774 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7775 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7776 break
7779 done
7780 IFS="$ac_save_ifs"
7781 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7783 esac
7785 XGETTEXT="$ac_cv_path_XGETTEXT"
7786 if test -n "$XGETTEXT"; then
7787 echo "$ac_t""$XGETTEXT" 1>&6
7788 else
7789 echo "$ac_t""no" 1>&6
7793 USE_INCLUDED_LIBINTL=yes
7794 CATOBJEXT=.gmo
7795 INSTOBJEXT=.mo
7796 DATADIRNAME=share
7797 INTLDEPS='$(top_builddir)/intl/libintl.a'
7798 INTLLIBS=$INTLDEPS
7799 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7800 nls_cv_header_intl=intl/libintl.h
7801 nls_cv_header_libgt=intl/libgettext.h
7804 if test "$XGETTEXT" != ":"; then
7805 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7807 else
7808 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7809 XGETTEXT=":"
7813 # We need to process the po/ directory.
7814 POSUB=po
7815 else
7816 DATADIRNAME=share
7817 nls_cv_header_intl=intl/libintl.h
7818 nls_cv_header_libgt=intl/libgettext.h
7824 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7825 # because some of the sources are only built for this goal.
7826 if test "$PACKAGE" = gettext; then
7827 USE_NLS=yes
7828 USE_INCLUDED_LIBINTL=yes
7831 for lang in $ALL_LINGUAS; do
7832 GMOFILES="$GMOFILES $lang.gmo"
7833 POFILES="$POFILES $lang.po"
7834 done
7849 if test "x$CATOBJEXT" != "x"; then
7850 if test "x$ALL_LINGUAS" = "x"; then
7851 LINGUAS=
7852 else
7853 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7854 echo "configure:7855: checking for catalogs to be installed" >&5
7855 NEW_LINGUAS=
7856 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7857 case "$ALL_LINGUAS" in
7858 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7859 esac
7860 done
7861 LINGUAS=$NEW_LINGUAS
7862 echo "$ac_t""$LINGUAS" 1>&6
7865 if test -n "$LINGUAS"; then
7866 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7870 if test $ac_cv_header_locale_h = yes; then
7871 INCLUDE_LOCALE_H="#include <locale.h>"
7872 else
7873 INCLUDE_LOCALE_H="\
7874 /* The system does not provide the header <locale.h>. Take care yourself. */"
7878 test -d intl || mkdir intl
7879 if test "$CATOBJEXT" = ".cat"; then
7880 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7881 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7882 echo "configure:7883: checking for linux/version.h" >&5
7883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7884 echo $ac_n "(cached) $ac_c" 1>&6
7885 else
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7889 #include <linux/version.h>
7891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7892 { (eval echo configure:7893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7894 if test -z "$ac_err"; then
7895 rm -rf conftest*
7896 eval "ac_cv_header_$ac_safe=yes"
7897 else
7898 echo "$ac_err" >&5
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 rm -rf conftest*
7902 eval "ac_cv_header_$ac_safe=no"
7904 rm -f conftest*
7906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7907 echo "$ac_t""yes" 1>&6
7908 msgformat=linux
7909 else
7910 echo "$ac_t""no" 1>&6
7911 msgformat=xopen
7915 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7917 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7918 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7920 if test "$PACKAGE" = "gettext"; then
7921 GT_NO="#NO#"
7922 GT_YES=
7923 else
7924 GT_NO=
7925 GT_YES="#YES#"
7930 MKINSTALLDIRS=
7931 if test -n "$ac_aux_dir"; then
7932 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7934 if test -z "$MKINSTALLDIRS"; then
7935 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7942 test -d po || mkdir po
7943 if test "x$srcdir" != "x."; then
7944 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7945 posrcprefix="$srcdir/"
7946 else
7947 posrcprefix="../$srcdir/"
7949 else
7950 posrcprefix="../"
7952 rm -f po/POTFILES
7953 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7954 < $srcdir/po/POTFILES.in > po/POTFILES
7956 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7958 # Get an absolute path to the GCC top-level source directory
7959 holddir=`pwd`
7960 cd $srcdir
7961 topdir=`pwd`
7962 cd $holddir
7964 # Conditionalize the makefile for this host machine.
7965 # Make-host contains the concatenation of all host makefile fragments
7966 # [there can be more than one]. This file is built by configure.frag.
7967 host_overrides=Make-host
7968 dep_host_xmake_file=
7969 for f in .. ${host_xmake_file}
7971 if test -f ${srcdir}/config/$f
7972 then
7973 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7975 done
7977 # Conditionalize the makefile for this target machine.
7978 # Make-target contains the concatenation of all host makefile fragments
7979 # [there can be more than one]. This file is built by configure.frag.
7980 target_overrides=Make-target
7981 dep_tmake_file=
7982 for f in .. ${tmake_file}
7984 if test -f ${srcdir}/config/$f
7985 then
7986 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7988 done
7990 # If the host doesn't support symlinks, modify CC in
7991 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7992 # Otherwise, we can use "CC=$(CC)".
7993 rm -f symtest.tem
7994 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7995 then
7996 cc_set_by_configure="\$(CC)"
7997 quoted_cc_set_by_configure="\$(CC)"
7998 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7999 else
8000 rm -f symtest.tem
8001 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8002 then
8003 symbolic_link="cp -p"
8004 else
8005 symbolic_link="cp"
8007 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8008 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8009 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8011 rm -f symtest.tem
8013 out_object_file=`basename $out_file .c`.o
8015 tm_file_list=
8016 for f in $tm_file; do
8017 case $f in
8018 gansidecl.h )
8019 tm_file_list="${tm_file_list} $f" ;;
8020 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8021 esac
8022 done
8024 host_xm_file_list=
8025 for f in $host_xm_file; do
8026 case $f in
8027 auto-host.h | gansidecl.h | hwint.h )
8028 host_xm_file_list="${host_xm_file_list} $f" ;;
8029 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8030 esac
8031 done
8033 build_xm_file_list=
8034 for f in $build_xm_file; do
8035 case $f in
8036 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8037 build_xm_file_list="${build_xm_file_list} $f" ;;
8038 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8039 esac
8040 done
8042 # Define macro CROSS_COMPILE in compilation
8043 # if this is a cross-compiler.
8044 # Also use all.cross instead of all.internal
8045 # and add cross-make to Makefile.
8046 cross_overrides="/dev/null"
8047 if test x$host != x$target
8048 then
8049 cross_defines="CROSS=-DCROSS_COMPILE"
8050 cross_overrides="${topdir}/cross-make"
8053 # When building gcc with a cross-compiler, we need to fix a few things.
8054 # This must come after cross-make as we want all.build to override
8055 # all.cross.
8056 build_overrides="/dev/null"
8057 if test x$build != x$host
8058 then
8059 build_overrides="${topdir}/build-make"
8062 # Expand extra_headers to include complete path.
8063 # This substitutes for lots of t-* files.
8064 extra_headers_list=
8065 if test "x$extra_headers" = x
8066 then true
8067 else
8068 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8069 for file in $extra_headers;
8071 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8072 done
8075 if test x$use_collect2 = xno; then
8076 use_collect2=
8079 # Add a definition of USE_COLLECT2 if system wants one.
8080 # Also tell toplev.c what to do.
8081 # This substitutes for lots of t-* files.
8082 if test x$use_collect2 = x
8083 then
8084 will_use_collect2=
8085 maybe_use_collect2=
8086 else
8087 will_use_collect2="collect2"
8088 maybe_use_collect2="-DUSE_COLLECT2"
8091 # NEED TO CONVERT
8092 # Set MD_DEPS if the real md file is in md.pre-cpp.
8093 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8094 # for line oriented comments, so we must always use a GNU cpp. If
8095 # building gcc with a cross compiler, use the cross compiler just
8096 # built. Otherwise, we can use the cpp just built.
8097 md_file_sub=
8098 if test "x$md_cppflags" = x
8099 then
8100 md_file_sub=$srcdir/config/$md_file
8101 else
8102 md_file=md
8105 # If we have gas in the build tree, make a link to it.
8106 if test -f ../gas/Makefile; then
8107 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8110 # If we have nm in the build tree, make a link to it.
8111 if test -f ../binutils/Makefile; then
8112 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8115 # If we have ld in the build tree, make a link to it.
8116 if test -f ../ld/Makefile; then
8117 # if test x$use_collect2 = x; then
8118 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8119 # else
8120 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8121 # fi
8124 # Figure out what assembler alignment features are present.
8125 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8126 echo "configure:8127: checking assembler alignment features" >&5
8127 gcc_cv_as=
8128 gcc_cv_as_alignment_features=
8129 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8130 if test -x "$DEFAULT_ASSEMBLER"; then
8131 gcc_cv_as="$DEFAULT_ASSEMBLER"
8132 elif test -x "$AS"; then
8133 gcc_cv_as="$AS"
8134 elif test -x as$host_exeext; then
8135 # Build using assembler in the current directory.
8136 gcc_cv_as=./as$host_exeext
8137 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8138 # Single tree build which includes gas.
8139 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8141 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8142 if test x$gcc_cv_gas_version != x; then
8143 break
8145 done
8146 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8147 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8148 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8149 # Gas version 2.6 and later support for .balign and .p2align.
8150 # bytes to skip when using .p2align.
8151 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
8152 gcc_cv_as_alignment_features=".balign and .p2align"
8153 cat >> confdefs.h <<\EOF
8154 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8158 # Gas version 2.8 and later support specifying the maximum
8159 # bytes to skip when using .p2align.
8160 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
8161 gcc_cv_as_alignment_features=".p2align including maximum skip"
8162 cat >> confdefs.h <<\EOF
8163 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8168 elif test x$host = x$target; then
8169 # Native build.
8170 # Search the same directories that the installed compiler will
8171 # search. Else we may find the wrong assembler and lose. If we
8172 # do not find a suitable assembler binary, then try the user's
8173 # path.
8175 # Also note we have to check MD_EXEC_PREFIX before checking the
8176 # user's path. Unfortunately, there is no good way to get at the
8177 # value of MD_EXEC_PREFIX here. So we do a brute force search
8178 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8179 # to be fixed as part of the make/configure rewrite too.
8181 if test "x$exec_prefix" = xNONE; then
8182 if test "x$prefix" = xNONE; then
8183 test_prefix=/usr/local
8184 else
8185 test_prefix=$prefix
8187 else
8188 test_prefix=$exec_prefix
8191 # If the loop below does not find an assembler, then use whatever
8192 # one we can find in the users's path.
8193 # user's path.
8194 as=as$host_exeext
8196 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8197 $test_prefix/lib/gcc-lib/$target \
8198 /usr/lib/gcc/$target/$gcc_version \
8199 /usr/lib/gcc/$target \
8200 $test_prefix/$target/bin/$target/$gcc_version \
8201 $test_prefix/$target/bin \
8202 /usr/libexec \
8203 /usr/ccs/gcc \
8204 /usr/ccs/bin \
8205 /udk/usr/ccs/bin \
8206 /bsd43/usr/lib/cmplrs/cc \
8207 /usr/cross64/usr/bin \
8208 /usr/lib/cmplrs/cc \
8209 /sysv/usr/lib/cmplrs/cc \
8210 /svr4/usr/lib/cmplrs/cc \
8211 /usr/bin"
8213 for dir in $test_dirs; do
8214 if test -f $dir/as$host_exeext; then
8215 gcc_cv_as=$dir/as$host_exeext
8216 break;
8218 done
8220 if test x$gcc_cv_as != x; then
8221 # Check if we have .balign and .p2align
8222 echo ".balign 4" > conftest.s
8223 echo ".p2align 2" >> conftest.s
8224 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8225 gcc_cv_as_alignment_features=".balign and .p2align"
8226 cat >> confdefs.h <<\EOF
8227 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8231 rm -f conftest.s conftest.o
8232 # Check if specifying the maximum bytes to skip when
8233 # using .p2align is supported.
8234 echo ".p2align 4,,7" > conftest.s
8235 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8236 gcc_cv_as_alignment_features=".p2align including maximum skip"
8237 cat >> confdefs.h <<\EOF
8238 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8242 rm -f conftest.s conftest.o
8244 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8246 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8247 echo "configure:8248: checking assembler subsection support" >&5
8248 gcc_cv_as_subsections=
8249 if test x$gcc_cv_as != x; then
8250 # Check if we have .subsection
8251 echo ".subsection 1" > conftest.s
8252 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8253 gcc_cv_as_subsections=".subsection"
8254 if test -x nm$host_exeext; then
8255 gcc_cv_nm=./nm$host_exeext
8256 elif test x$host = x$target; then
8257 # Native build.
8258 gcc_cv_nm=nm$host_exeext
8260 if test x$gcc_cv_nm != x; then
8261 cat > conftest.s <<EOF
8262 conftest_label1: .word 0
8263 .subsection -1
8264 conftest_label2: .word 0
8265 .previous
8267 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8268 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8269 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8270 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8272 else
8273 gcc_cv_as_subsections="working .subsection -1"
8274 cat >> confdefs.h <<\EOF
8275 #define HAVE_GAS_SUBSECTION_ORDERING 1
8282 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8284 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8286 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8287 echo "configure:8288: checking assembler instructions" >&5
8288 gcc_cv_as_instructions=
8289 if test x$gcc_cv_as != x; then
8290 set "filds fists" "filds mem; fists mem"
8291 while test $# -gt 0
8293 echo "$2" > conftest.s
8294 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8295 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8296 cat >> confdefs.h <<EOF
8297 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8301 shift 2
8302 done
8303 rm -f conftest.s conftest.o
8305 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8307 # Figure out what language subdirectories are present.
8308 # Look if the user specified --enable-languages="..."; if not, use
8309 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8310 # go away some day.
8311 if test x"${enable_languages+set}" != xset; then
8312 if test x"${LANGUAGES+set}" = xset; then
8313 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8314 else
8315 enable_languages=all
8318 subdirs=
8319 for lang in ${srcdir}/*/config-lang.in ..
8321 case $lang in
8322 ..) ;;
8323 # The odd quoting in the next line works around
8324 # an apparent bug in bash 1.12 on linux.
8325 ${srcdir}/[*]/config-lang.in) ;;
8327 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8328 if test "x$lang_alias" = x
8329 then
8330 echo "$lang doesn't set \$language." 1>&2
8331 exit 1
8333 if test x"${enable_languages}" = xall; then
8334 add_this_lang=yes
8335 else
8336 case "${enable_languages}" in
8337 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8338 add_this_lang=yes
8341 add_this_lang=no
8343 esac
8345 if test x"${add_this_lang}" = xyes; then
8346 case $lang in
8347 ${srcdir}/ada/config-lang.in)
8348 if test x$gnat = xyes ; then
8349 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8353 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8355 esac
8358 esac
8359 done
8361 # Make gthr-default.h if we have a thread file.
8362 gthread_flags=
8363 if test $thread_file != single; then
8364 rm -f gthr-default.h
8365 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8366 gthread_flags=-DHAVE_GTHR_DEFAULT
8370 # Make empty files to contain the specs and options for each language.
8371 # Then add #include lines to for a compiler that has specs and/or options.
8373 lang_specs_files=
8374 lang_options_files=
8375 lang_tree_files=
8376 rm -f specs.h options.h gencheck.h
8377 touch specs.h options.h gencheck.h
8378 for subdir in . $subdirs
8380 if test -f $srcdir/$subdir/lang-specs.h; then
8381 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8382 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8384 if test -f $srcdir/$subdir/lang-options.h; then
8385 echo "#include \"$subdir/lang-options.h\"" >>options.h
8386 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8388 if test -f $srcdir/$subdir/$subdir-tree.def; then
8389 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8390 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8392 done
8394 # These (without "all_") are set in each config-lang.in.
8395 # `language' must be a single word so is spelled singularly.
8396 all_languages=
8397 all_boot_languages=
8398 all_compilers=
8399 all_stagestuff=
8400 all_diff_excludes=
8401 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8402 # List of language makefile fragments.
8403 all_lang_makefiles=
8404 all_headers=
8405 all_lib2funcs=
8407 # Add the language fragments.
8408 # Languages are added via two mechanisms. Some information must be
8409 # recorded in makefile variables, these are defined in config-lang.in.
8410 # We accumulate them and plug them into the main Makefile.
8411 # The other mechanism is a set of hooks for each of the main targets
8412 # like `clean', `install', etc.
8414 language_fragments="Make-lang"
8415 language_hooks="Make-hooks"
8416 oldstyle_subdirs=
8418 for s in .. $subdirs
8420 if test $s != ".."
8421 then
8422 language=
8423 boot_language=
8424 compilers=
8425 stagestuff=
8426 diff_excludes=
8427 headers=
8428 outputs=
8429 lib2funcs=
8430 . ${srcdir}/$s/config-lang.in
8431 if test "x$language" = x
8432 then
8433 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8434 exit 1
8436 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8437 all_languages="$all_languages $language"
8438 if test "x$boot_language" = xyes
8439 then
8440 all_boot_languages="$all_boot_languages $language"
8442 all_compilers="$all_compilers $compilers"
8443 all_stagestuff="$all_stagestuff $stagestuff"
8444 all_diff_excludes="$all_diff_excludes $diff_excludes"
8445 all_headers="$all_headers $headers"
8446 all_outputs="$all_outputs $outputs"
8447 if test x$outputs = x
8448 then
8449 oldstyle_subdirs="$oldstyle_subdirs $s"
8451 all_lib2funcs="$all_lib2funcs $lib2funcs"
8453 done
8455 # Since we can't use `::' targets, we link each language in
8456 # with a set of hooks, reached indirectly via lang.${target}.
8458 rm -f Make-hooks
8459 touch Make-hooks
8460 target_list="all.build all.cross start.encap rest.encap \
8461 info dvi \
8462 install-normal install-common install-info install-man \
8463 uninstall distdir \
8464 mostlyclean clean distclean extraclean maintainer-clean \
8465 stage1 stage2 stage3 stage4"
8466 for t in $target_list
8469 for lang in .. $all_languages
8471 if test $lang != ".."; then
8472 x="$x $lang.$t"
8474 done
8475 echo "lang.$t: $x" >> Make-hooks
8476 done
8478 # If we're not building in srcdir, create .gdbinit.
8480 if test ! -f Makefile.in; then
8481 echo "dir ." > .gdbinit
8482 echo "dir ${srcdir}" >> .gdbinit
8483 if test x$gdb_needs_out_file_path = xyes
8484 then
8485 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8487 if test "x$subdirs" != x; then
8488 for s in $subdirs
8490 echo "dir ${srcdir}/$s" >> .gdbinit
8491 done
8493 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8496 # Define variables host_canonical and build_canonical
8497 # because some Cygnus local changes in the Makefile depend on them.
8498 build_canonical=${build}
8499 host_canonical=${host}
8500 target_subdir=
8501 if test "${host}" != "${target}" ; then
8502 target_subdir=${target}/
8508 # If this is using newlib, then define inhibit_libc in
8509 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8510 # libgcc.a, but that's OK because newib should have its own version of
8511 # assert.h.
8512 inhibit_libc=
8513 if test x$with_newlib = xyes; then
8514 inhibit_libc=-Dinhibit_libc
8518 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8519 sched_prefix=
8520 sched_cflags=
8521 if test x$enable_haifa = xyes; then
8522 echo "Using the Haifa scheduler."
8523 sched_prefix=haifa-
8524 sched_cflags=-DHAIFA
8528 if test x$enable_haifa != x; then
8529 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8530 for x in genattrtab.o toplev.o *sched.o; do
8531 if test -f $x; then
8532 echo "Removing $x"
8533 rm -f $x
8535 done
8538 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8539 # absolute path for gcc_tooldir based on inserting the number of up-directory
8540 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8541 # $(libsubdir)/@(unlibsubdir) based path.
8542 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8543 # make and thus we'd get different behavior depending on where we built the
8544 # sources.
8545 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8546 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8547 else
8548 # An explanation of the sed strings:
8549 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8550 # -e 's|/$||' match a trailing forward slash and eliminates it
8551 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8552 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8554 # (*) Note this pattern overwrites the first character of the string
8555 # with a forward slash if one is not already present. This is not a
8556 # problem because the exact names of the sub-directories concerned is
8557 # unimportant, just the number of them matters.
8559 # The practical upshot of these patterns is like this:
8561 # prefix exec_prefix result
8562 # ------ ----------- ------
8563 # /foo /foo/bar ../
8564 # /foo/ /foo/bar ../
8565 # /foo /foo/bar/ ../
8566 # /foo/ /foo/bar/ ../
8567 # /foo /foo/bar/ugg ../../
8569 dollar='$$'
8570 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8575 # Nothing to do for FLOAT_H, float_format already handled.
8576 objdir=`pwd`
8579 # Process the language and host/target makefile fragments.
8580 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8582 # Substitute configuration variables
8644 # Echo that links are built
8645 if test x$host = x$target
8646 then
8647 str1="native "
8648 else
8649 str1="cross-"
8650 str2=" from $host"
8653 if test x$host != x$build
8654 then
8655 str3=" on a $build system"
8658 if test "x$str2" != x || test "x$str3" != x
8659 then
8660 str4=
8663 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8665 if test "x$str2" != x || test "x$str3" != x
8666 then
8667 echo " ${str2}${str3}." 1>&2
8670 # Truncate the target if necessary
8671 if test x$host_truncate_target != x; then
8672 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8675 # Configure the subdirectories
8676 # AC_CONFIG_SUBDIRS($subdirs)
8678 # Create the Makefile
8679 # and configure language subdirectories
8680 trap '' 1 2 15
8681 cat > confcache <<\EOF
8682 # This file is a shell script that caches the results of configure
8683 # tests run on this system so they can be shared between configure
8684 # scripts and configure runs. It is not useful on other systems.
8685 # If it contains results you don't want to keep, you may remove or edit it.
8687 # By default, configure uses ./config.cache as the cache file,
8688 # creating it if it does not exist already. You can give configure
8689 # the --cache-file=FILE option to use a different cache file; that is
8690 # what configure does when it calls configure scripts in
8691 # subdirectories, so they share the cache.
8692 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8693 # config.status only pays attention to the cache file if you give it the
8694 # --recheck option to rerun configure.
8697 # The following way of writing the cache mishandles newlines in values,
8698 # but we know of no workaround that is simple, portable, and efficient.
8699 # So, don't put newlines in cache variables' values.
8700 # Ultrix sh set writes to stderr and can't be redirected directly,
8701 # and sets the high bit in the cache file unless we assign to the vars.
8702 (set) 2>&1 |
8703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8704 *ac_space=\ *)
8705 # `set' does not quote correctly, so add quotes (double-quote substitution
8706 # turns \\\\ into \\, and sed turns \\ into \).
8707 sed -n \
8708 -e "s/'/'\\\\''/g" \
8709 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8712 # `set' quotes correctly as required by POSIX, so do not add quotes.
8713 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8715 esac >> confcache
8716 if cmp -s $cache_file confcache; then
8718 else
8719 if test -w $cache_file; then
8720 echo "updating cache $cache_file"
8721 cat confcache > $cache_file
8722 else
8723 echo "not updating unwritable cache $cache_file"
8726 rm -f confcache
8728 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8731 # Let make expand exec_prefix.
8732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8734 # Any assignment to VPATH causes Sun make to only execute
8735 # the first set of double-colon rules, so remove it if not needed.
8736 # If there is a colon in the path, we need to keep it.
8737 if test "x$srcdir" = x.; then
8738 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8741 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8743 DEFS=-DHAVE_CONFIG_H
8745 # Without the "./", some shells look in PATH for config.status.
8746 : ${CONFIG_STATUS=./config.status}
8748 echo creating $CONFIG_STATUS
8749 rm -f $CONFIG_STATUS
8750 cat > $CONFIG_STATUS <<EOF
8751 #! /bin/sh
8752 # Generated automatically by configure.
8753 # Run this file to recreate the current configuration.
8754 # This directory was configured as follows,
8755 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8757 # $0 $ac_configure_args
8759 # Compiler output produced by configure, useful for debugging
8760 # configure, is in ./config.log if it exists.
8762 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8763 for ac_option
8765 case "\$ac_option" in
8766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8770 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8771 exit 0 ;;
8772 -help | --help | --hel | --he | --h)
8773 echo "\$ac_cs_usage"; exit 0 ;;
8774 *) echo "\$ac_cs_usage"; exit 1 ;;
8775 esac
8776 done
8778 ac_given_srcdir=$srcdir
8780 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8782 cat >> $CONFIG_STATUS <<EOF
8784 # Protect against being on the right side of a sed subst in config.status.
8785 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8786 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8787 $ac_vpsub
8788 $extrasub
8789 s%@SHELL@%$SHELL%g
8790 s%@CFLAGS@%$CFLAGS%g
8791 s%@CPPFLAGS@%$CPPFLAGS%g
8792 s%@CXXFLAGS@%$CXXFLAGS%g
8793 s%@FFLAGS@%$FFLAGS%g
8794 s%@DEFS@%$DEFS%g
8795 s%@LDFLAGS@%$LDFLAGS%g
8796 s%@LIBS@%$LIBS%g
8797 s%@exec_prefix@%$exec_prefix%g
8798 s%@prefix@%$prefix%g
8799 s%@program_transform_name@%$program_transform_name%g
8800 s%@bindir@%$bindir%g
8801 s%@sbindir@%$sbindir%g
8802 s%@libexecdir@%$libexecdir%g
8803 s%@datadir@%$datadir%g
8804 s%@sysconfdir@%$sysconfdir%g
8805 s%@sharedstatedir@%$sharedstatedir%g
8806 s%@localstatedir@%$localstatedir%g
8807 s%@libdir@%$libdir%g
8808 s%@includedir@%$includedir%g
8809 s%@oldincludedir@%$oldincludedir%g
8810 s%@infodir@%$infodir%g
8811 s%@mandir@%$mandir%g
8812 s%@host@%$host%g
8813 s%@host_alias@%$host_alias%g
8814 s%@host_cpu@%$host_cpu%g
8815 s%@host_vendor@%$host_vendor%g
8816 s%@host_os@%$host_os%g
8817 s%@target@%$target%g
8818 s%@target_alias@%$target_alias%g
8819 s%@target_cpu@%$target_cpu%g
8820 s%@target_vendor@%$target_vendor%g
8821 s%@target_os@%$target_os%g
8822 s%@build@%$build%g
8823 s%@build_alias@%$build_alias%g
8824 s%@build_cpu@%$build_cpu%g
8825 s%@build_vendor@%$build_vendor%g
8826 s%@build_os@%$build_os%g
8827 s%@CC@%$CC%g
8828 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8829 s%@SET_MAKE@%$SET_MAKE%g
8830 s%@AWK@%$AWK%g
8831 s%@LEX@%$LEX%g
8832 s%@LEXLIB@%$LEXLIB%g
8833 s%@LN@%$LN%g
8834 s%@LN_S@%$LN_S%g
8835 s%@RANLIB@%$RANLIB%g
8836 s%@YACC@%$YACC%g
8837 s%@INSTALL@%$INSTALL%g
8838 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8839 s%@INSTALL_DATA@%$INSTALL_DATA%g
8840 s%@CPP@%$CPP%g
8841 s%@gnat@%$gnat%g
8842 s%@vfprintf@%$vfprintf%g
8843 s%@doprint@%$doprint%g
8844 s%@manext@%$manext%g
8845 s%@objext@%$objext%g
8846 s%@PACKAGE@%$PACKAGE%g
8847 s%@VERSION@%$VERSION%g
8848 s%@ALLOCA@%$ALLOCA%g
8849 s%@USE_NLS@%$USE_NLS%g
8850 s%@MSGFMT@%$MSGFMT%g
8851 s%@GMSGFMT@%$GMSGFMT%g
8852 s%@XGETTEXT@%$XGETTEXT%g
8853 s%@GENCAT@%$GENCAT%g
8854 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8855 s%@CATALOGS@%$CATALOGS%g
8856 s%@CATOBJEXT@%$CATOBJEXT%g
8857 s%@DATADIRNAME@%$DATADIRNAME%g
8858 s%@GMOFILES@%$GMOFILES%g
8859 s%@INSTOBJEXT@%$INSTOBJEXT%g
8860 s%@INTLDEPS@%$INTLDEPS%g
8861 s%@INTLLIBS@%$INTLLIBS%g
8862 s%@INTLOBJS@%$INTLOBJS%g
8863 s%@POFILES@%$POFILES%g
8864 s%@POSUB@%$POSUB%g
8865 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8866 s%@GT_NO@%$GT_NO%g
8867 s%@GT_YES@%$GT_YES%g
8868 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8869 s%@l@%$l%g
8870 s%@gthread_flags@%$gthread_flags%g
8871 s%@build_canonical@%$build_canonical%g
8872 s%@host_canonical@%$host_canonical%g
8873 s%@target_subdir@%$target_subdir%g
8874 s%@inhibit_libc@%$inhibit_libc%g
8875 s%@sched_prefix@%$sched_prefix%g
8876 s%@sched_cflags@%$sched_cflags%g
8877 s%@gcc_tooldir@%$gcc_tooldir%g
8878 s%@dollar@%$dollar%g
8879 s%@objdir@%$objdir%g
8880 s%@subdirs@%$subdirs%g
8881 s%@all_boot_languages@%$all_boot_languages%g
8882 s%@all_compilers@%$all_compilers%g
8883 s%@all_diff_excludes@%$all_diff_excludes%g
8884 s%@all_headers@%$all_headers%g
8885 s%@all_lang_makefiles@%$all_lang_makefiles%g
8886 s%@all_languages@%$all_languages%g
8887 s%@all_lib2funcs@%$all_lib2funcs%g
8888 s%@all_stagestuff@%$all_stagestuff%g
8889 s%@build_exeext@%$build_exeext%g
8890 s%@build_install_headers_dir@%$build_install_headers_dir%g
8891 s%@build_xm_file_list@%$build_xm_file_list%g
8892 s%@cc_set_by_configure@%$cc_set_by_configure%g
8893 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8894 s%@cpp_install_dir@%$cpp_install_dir%g
8895 s%@cpp_main@%$cpp_main%g
8896 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8897 s%@dep_tmake_file@%$dep_tmake_file%g
8898 s%@extra_c_flags@%$extra_c_flags%g
8899 s%@extra_c_objs@%$extra_c_objs%g
8900 s%@extra_cpp_objs@%$extra_cpp_objs%g
8901 s%@extra_cxx_objs@%$extra_cxx_objs%g
8902 s%@extra_headers_list@%$extra_headers_list%g
8903 s%@extra_objs@%$extra_objs%g
8904 s%@extra_parts@%$extra_parts%g
8905 s%@extra_passes@%$extra_passes%g
8906 s%@extra_programs@%$extra_programs%g
8907 s%@fixinc_defs@%$fixinc_defs%g
8908 s%@float_h_file@%$float_h_file%g
8909 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8910 s%@gcc_version@%$gcc_version%g
8911 s%@gcc_version_trigger@%$gcc_version_trigger%g
8912 s%@host_exeext@%$host_exeext%g
8913 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8914 s%@host_xm_file_list@%$host_xm_file_list%g
8915 s%@install@%$install%g
8916 s%@JAVAGC@%$JAVAGC%g
8917 s%@lang_options_files@%$lang_options_files%g
8918 s%@lang_specs_files@%$lang_specs_files%g
8919 s%@lang_tree_files@%$lang_tree_files%g
8920 s%@local_prefix@%$local_prefix%g
8921 s%@maybe_use_collect2@%$maybe_use_collect2%g
8922 s%@md_file@%$md_file%g
8923 s%@objc_boehm_gc@%$objc_boehm_gc%g
8924 s%@out_file@%$out_file%g
8925 s%@out_object_file@%$out_object_file%g
8926 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8927 s%@symbolic_link@%$symbolic_link%g
8928 s%@thread_file@%$thread_file%g
8929 s%@tm_file_list@%$tm_file_list%g
8930 s%@will_use_collect2@%$will_use_collect2%g
8931 /@target_overrides@/r $target_overrides
8932 s%@target_overrides@%%g
8933 /@host_overrides@/r $host_overrides
8934 s%@host_overrides@%%g
8935 s%@cross_defines@%$cross_defines%g
8936 /@cross_overrides@/r $cross_overrides
8937 s%@cross_overrides@%%g
8938 /@build_overrides@/r $build_overrides
8939 s%@build_overrides@%%g
8940 /@language_fragments@/r $language_fragments
8941 s%@language_fragments@%%g
8942 /@language_hooks@/r $language_hooks
8943 s%@language_hooks@%%g
8945 CEOF
8948 cat >> $CONFIG_STATUS <<\EOF
8950 # Split the substitutions into bite-sized pieces for seds with
8951 # small command number limits, like on Digital OSF/1 and HP-UX.
8952 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8953 ac_file=1 # Number of current file.
8954 ac_beg=1 # First line for current file.
8955 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8956 ac_more_lines=:
8957 ac_sed_cmds=""
8958 while $ac_more_lines; do
8959 if test $ac_beg -gt 1; then
8960 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8961 else
8962 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8964 if test ! -s conftest.s$ac_file; then
8965 ac_more_lines=false
8966 rm -f conftest.s$ac_file
8967 else
8968 if test -z "$ac_sed_cmds"; then
8969 ac_sed_cmds="sed -f conftest.s$ac_file"
8970 else
8971 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8973 ac_file=`expr $ac_file + 1`
8974 ac_beg=$ac_end
8975 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8977 done
8978 if test -z "$ac_sed_cmds"; then
8979 ac_sed_cmds=cat
8983 cat >> $CONFIG_STATUS <<EOF
8985 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8987 cat >> $CONFIG_STATUS <<\EOF
8988 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8990 case "$ac_file" in
8991 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8992 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8993 *) ac_file_in="${ac_file}.in" ;;
8994 esac
8996 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8998 # Remove last slash and all that follows it. Not all systems have dirname.
8999 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9000 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9001 # The file is in a subdirectory.
9002 test ! -d "$ac_dir" && mkdir "$ac_dir"
9003 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9004 # A "../" for each directory in $ac_dir_suffix.
9005 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9006 else
9007 ac_dir_suffix= ac_dots=
9010 case "$ac_given_srcdir" in
9011 .) srcdir=.
9012 if test -z "$ac_dots"; then top_srcdir=.
9013 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9014 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9015 *) # Relative path.
9016 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9017 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9018 esac
9021 echo creating "$ac_file"
9022 rm -f "$ac_file"
9023 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9024 case "$ac_file" in
9025 *Makefile*) ac_comsub="1i\\
9026 # $configure_input" ;;
9027 *) ac_comsub= ;;
9028 esac
9030 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9031 sed -e "$ac_comsub
9032 s%@configure_input@%$configure_input%g
9033 s%@srcdir@%$srcdir%g
9034 s%@top_srcdir@%$top_srcdir%g
9035 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9036 fi; done
9037 rm -f conftest.s*
9039 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9040 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9042 # ac_d sets the value in "#define NAME VALUE" lines.
9043 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9044 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9045 ac_dC='\3'
9046 ac_dD='%g'
9047 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9048 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9049 ac_uB='\([ ]\)%\1#\2define\3'
9050 ac_uC=' '
9051 ac_uD='\4%g'
9052 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9053 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9054 ac_eB='$%\1#\2define\3'
9055 ac_eC=' '
9056 ac_eD='%g'
9058 if test "${CONFIG_HEADERS+set}" != set; then
9060 cat >> $CONFIG_STATUS <<EOF
9061 CONFIG_HEADERS="auto-host.h:config.in"
9063 cat >> $CONFIG_STATUS <<\EOF
9065 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9067 case "$ac_file" in
9068 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9069 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9070 *) ac_file_in="${ac_file}.in" ;;
9071 esac
9073 echo creating $ac_file
9075 rm -f conftest.frag conftest.in conftest.out
9076 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9077 cat $ac_file_inputs > conftest.in
9081 # Transform confdefs.h into a sed script conftest.vals that substitutes
9082 # the proper values into config.h.in to produce config.h. And first:
9083 # Protect against being on the right side of a sed subst in config.status.
9084 # Protect against being in an unquoted here document in config.status.
9085 rm -f conftest.vals
9086 cat > conftest.hdr <<\EOF
9087 s/[\\&%]/\\&/g
9088 s%[\\$`]%\\&%g
9089 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9090 s%ac_d%ac_u%gp
9091 s%ac_u%ac_e%gp
9093 sed -n -f conftest.hdr confdefs.h > conftest.vals
9094 rm -f conftest.hdr
9096 # This sed command replaces #undef with comments. This is necessary, for
9097 # example, in the case of _POSIX_SOURCE, which is predefined and required
9098 # on some systems where configure will not decide to define it.
9099 cat >> conftest.vals <<\EOF
9100 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9103 # Break up conftest.vals because some shells have a limit on
9104 # the size of here documents, and old seds have small limits too.
9106 rm -f conftest.tail
9107 while :
9109 ac_lines=`grep -c . conftest.vals`
9110 # grep -c gives empty output for an empty file on some AIX systems.
9111 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9112 # Write a limited-size here document to conftest.frag.
9113 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9114 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9115 echo 'CEOF
9116 sed -f conftest.frag conftest.in > conftest.out
9117 rm -f conftest.in
9118 mv conftest.out conftest.in
9119 ' >> $CONFIG_STATUS
9120 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9121 rm -f conftest.vals
9122 mv conftest.tail conftest.vals
9123 done
9124 rm -f conftest.vals
9126 cat >> $CONFIG_STATUS <<\EOF
9127 rm -f conftest.frag conftest.h
9128 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9129 cat conftest.in >> conftest.h
9130 rm -f conftest.in
9131 if cmp -s $ac_file conftest.h 2>/dev/null; then
9132 echo "$ac_file is unchanged"
9133 rm -f conftest.h
9134 else
9135 # Remove last slash and all that follows it. Not all systems have dirname.
9136 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9137 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9138 # The file is in a subdirectory.
9139 test ! -d "$ac_dir" && mkdir "$ac_dir"
9141 rm -f $ac_file
9142 mv conftest.h $ac_file
9144 fi; done
9148 cat >> $CONFIG_STATUS <<EOF
9149 ac_sources="$nls_cv_header_libgt"
9150 ac_dests="$nls_cv_header_intl"
9153 cat >> $CONFIG_STATUS <<\EOF
9154 srcdir=$ac_given_srcdir
9155 while test -n "$ac_sources"; do
9156 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9157 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9159 echo "linking $srcdir/$ac_source to $ac_dest"
9161 if test ! -r $srcdir/$ac_source; then
9162 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9164 rm -f $ac_dest
9166 # Make relative symlinks.
9167 # Remove last slash and all that follows it. Not all systems have dirname.
9168 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9169 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9170 # The dest file is in a subdirectory.
9171 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9172 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9173 # A "../" for each directory in $ac_dest_dir_suffix.
9174 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9175 else
9176 ac_dest_dir_suffix= ac_dots=
9179 case "$srcdir" in
9180 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9181 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9182 esac
9184 # Make a symlink if possible; otherwise try a hard link.
9185 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9186 ln $srcdir/$ac_source $ac_dest; then :
9187 else
9188 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9190 done
9192 cat >> $CONFIG_STATUS <<EOF
9195 host='${host}'
9196 build='${build}'
9197 target='${target}'
9198 target_alias='${target_alias}'
9199 srcdir='${srcdir}'
9200 subdirs='${subdirs}'
9201 oldstyle_subdirs='${oldstyle_subdirs}'
9202 symbolic_link='${symbolic_link}'
9203 program_transform_set='${program_transform_set}'
9204 program_transform_name='${program_transform_name}'
9205 dep_host_xmake_file='${dep_host_xmake_file}'
9206 host_xmake_file='${host_xmake_file}'
9207 dep_tmake_file='${dep_tmake_file}'
9208 tmake_file='${tmake_file}'
9209 thread_file='${thread_file}'
9210 gcc_version='${gcc_version}'
9211 gcc_version_trigger='${gcc_version_trigger}'
9212 local_prefix='${local_prefix}'
9213 build_install_headers_dir='${build_install_headers_dir}'
9214 build_exeext='${build_exeext}'
9215 host_exeext='${host_exeext}'
9216 out_file='${out_file}'
9217 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9218 SET_MAKE='${SET_MAKE}'
9219 target_list='${target_list}'
9220 target_overrides='${target_overrides}'
9221 host_overrides='${host_overrides}'
9222 cross_defines='${cross_defines}'
9223 cross_overrides='${cross_overrides}'
9224 build_overrides='${build_overrides}'
9225 cpp_install_dir='${cpp_install_dir}'
9228 cat >> $CONFIG_STATUS <<\EOF
9229 case "$CONFIG_FILES" in *po/Makefile.in*)
9230 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9231 esac
9233 . $srcdir/configure.lang
9234 case x$CONFIG_HEADERS in
9235 xauto-host.h:config.in)
9236 echo > cstamp-h ;;
9237 esac
9238 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9239 # bootstrapping and the installation procedure can still use
9240 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9241 # FLAGS_TO_PASS has been modified to solve the problem there.
9242 # This is virtually a duplicate of what happens in configure.lang; we do
9243 # an extra check to make sure this only happens if ln -s can be used.
9244 if test "$symbolic_link" = "ln -s"; then
9245 for d in .. ${subdirs} ; do
9246 if test $d != ..; then
9247 STARTDIR=`pwd`
9248 cd $d
9249 for t in stage1 stage2 stage3 stage4 include
9251 rm -f $t
9252 $symbolic_link ../$t $t 2>/dev/null
9253 done
9254 cd $STARTDIR
9256 done
9257 else true ; fi
9258 # Avoid having to add intl to our include paths.
9259 if test -f intl/libintl.h; then
9260 echo creating libintl.h
9261 echo '#include "intl/libintl.h"' >libintl.h
9264 exit 0
9266 chmod +x $CONFIG_STATUS
9267 rm -fr confdefs* $ac_clean_files
9268 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1