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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --disable-cpplib use the old isolated C preprocessor."
46 --enable-c-cpplib link cpplib directly into C and C++ compilers
47 (EXPERIMENTAL) (implies --enable-cpplib)."
49 --enable-c-mbchar Enable multibyte characters for C and C++."
51 --enable-threads enable thread usage for target GCC.
52 --enable-threads=LIB use LIB thread package for target GCC."
54 --enable-objc-gc enable the use of Boehm's garbage collector with
55 the GNU Objective-C runtime."
57 --with-dwarf2 force the default debug format to be DWARF2."
59 --enable-nls use Native Language Support (disabled by default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
79 select the new abi for g++. You must select an ABI
80 at configuration time, so that the correct runtime
81 support is built. You cannot mix ABIs."
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file=./config.cache
96 program_transform_name=s,x,x,
105 bindir='${exec_prefix}/bin'
106 sbindir='${exec_prefix}/sbin'
107 libexecdir='${exec_prefix}/libexec'
108 datadir='${prefix}/share'
109 sysconfdir='${prefix}/etc'
110 sharedstatedir='${prefix}/com'
111 localstatedir='${prefix}/var'
112 libdir='${exec_prefix}/lib'
113 includedir='${prefix}/include'
114 oldincludedir='/usr/include'
115 infodir='${prefix}/info'
116 mandir='${prefix}/man'
118 # Initialize some other variables.
121 SHELL=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
148 bindir="$ac_optarg" ;;
150 -build | --build | --buil | --bui | --bu)
152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
153 build="$ac_optarg" ;;
155 -cache-file | --cache-file | --cache-fil | --cache-fi \
156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
157 ac_prev=cache_file ;;
158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
160 cache_file="$ac_optarg" ;;
162 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
164 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
166 datadir="$ac_optarg" ;;
168 -disable-* | --disable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* | --enable-*)
178 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
192 | --exec | --exe | --ex)
193 ac_prev=exec_prefix ;;
194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
196 | --exec=* | --exe=* | --ex=*)
197 exec_prefix="$ac_optarg" ;;
199 -gas | --gas | --ga | --g)
200 # Obsolete; use --with-gas.
203 -help | --help | --hel | --he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --site-file=FILE use FILE as the site file
215 --version print the version of autoconf that created configure
216 Directory and file names:
217 --prefix=PREFIX install architecture-independent files in PREFIX
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
221 --bindir=DIR user executables in DIR [EPREFIX/bin]
222 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
223 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
224 --datadir=DIR read-only architecture-independent data in DIR
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
229 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
230 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
231 --includedir=DIR C header files in DIR [PREFIX/include]
232 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
233 --infodir=DIR info documentation in DIR [PREFIX/info]
234 --mandir=DIR man documentation in DIR [PREFIX/man]
235 --srcdir=DIR find the sources in DIR [configure dir or ..]
236 --program-prefix=PREFIX prepend PREFIX to installed program names
237 --program-suffix=SUFFIX append SUFFIX to installed program names
238 --program-transform-name=PROGRAM
239 run sed PROGRAM on installed program names
243 --build=BUILD configure for building on BUILD [BUILD=HOST]
244 --host=HOST configure for HOST [guessed]
245 --target=TARGET configure for TARGET [TARGET=HOST]
246 Features and packages:
247 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
248 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
251 --x-includes=DIR X include files are in DIR
252 --x-libraries=DIR X library files are in DIR
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
259 -host | --host | --hos | --ho)
261 -host=* | --host=* | --hos=* | --ho=*)
264 -includedir | --includedir | --includedi | --included | --include \
265 | --includ | --inclu | --incl | --inc)
266 ac_prev=includedir ;;
267 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268 | --includ=* | --inclu=* | --incl=* | --inc=*)
269 includedir="$ac_optarg" ;;
271 -infodir | --infodir | --infodi | --infod | --info | --inf)
273 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
274 infodir="$ac_optarg" ;;
276 -libdir | --libdir | --libdi | --libd)
278 -libdir=* | --libdir=* | --libdi=* | --libd=*)
279 libdir="$ac_optarg" ;;
281 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282 | --libexe | --libex | --libe)
283 ac_prev=libexecdir ;;
284 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285 | --libexe=* | --libex=* | --libe=*)
286 libexecdir="$ac_optarg" ;;
288 -localstatedir | --localstatedir | --localstatedi | --localstated \
289 | --localstate | --localstat | --localsta | --localst \
290 | --locals | --local | --loca | --loc | --lo)
291 ac_prev=localstatedir ;;
292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
295 localstatedir="$ac_optarg" ;;
297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 mandir="$ac_optarg" ;;
303 # Obsolete; use --without-fp.
306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
316 | --oldin | --oldi | --old | --ol | --o)
317 ac_prev=oldincludedir ;;
318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
321 oldincludedir="$ac_optarg" ;;
323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
326 prefix="$ac_optarg" ;;
328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
329 | --program-pre | --program-pr | --program-p)
330 ac_prev=program_prefix ;;
331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
333 program_prefix="$ac_optarg" ;;
335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
336 | --program-suf | --program-su | --program-s)
337 ac_prev=program_suffix ;;
338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
340 program_suffix="$ac_optarg" ;;
342 -program-transform-name | --program-transform-name \
343 | --program-transform-nam | --program-transform-na \
344 | --program-transform-n | --program-transform- \
345 | --program-transform | --program-transfor \
346 | --program-transfo | --program-transf \
347 | --program-trans | --program-tran \
348 | --progr-tra | --program-tr | --program-t)
349 ac_prev=program_transform_name ;;
350 -program-transform-name=* | --program-transform-name=* \
351 | --program-transform-nam=* | --program-transform-na=* \
352 | --program-transform-n=* | --program-transform-=* \
353 | --program-transform=* | --program-transfor=* \
354 | --program-transfo=* | --program-transf=* \
355 | --program-trans=* | --program-tran=* \
356 | --progr-tra=* | --program-tr=* | --program-t=*)
357 program_transform_name="$ac_optarg" ;;
359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360 | -silent | --silent | --silen | --sile | --sil)
363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
367 sbindir="$ac_optarg" ;;
369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
371 | --sharedst | --shareds | --shared | --share | --shar \
373 ac_prev=sharedstatedir ;;
374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
378 sharedstatedir="$ac_optarg" ;;
380 -site | --site | --sit)
382 -site=* | --site=* | --sit=*)
385 -site-file | --site-file | --site-fil | --site-fi | --site-f)
387 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
388 sitefile="$ac_optarg" ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=tree.c
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$sitefile"; then
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE; then
558 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 CONFIG_SITE="$sitefile"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='\c' ac_t=
607 symbolic_link='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
622 library_path_setting="contains current directory"
625 library_path_setting="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
647 gcc_exec_prefix_setting="contains current directory"
650 gcc_exec_prefix_setting="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval="$with_gnu_ld"
667 gnu_ld_flag="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER="$with_ld"
680 if test x"${DEFAULT_LINKER+set}" = x"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
686 cat >> confdefs.h <<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval="$with_gnu_as"
696 gas_flag="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER="$with_as"
708 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
714 cat >> confdefs.h <<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x$local_prefix = x; then
755 local_prefix=/usr/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
774 if test x${gcc_gxx_include_dir} = x; then
775 if test x${enable_version_specific_runtime_libs} = xyes; then
776 gcc_gxx_include_dir='${libsubdir}/include/g++'
778 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
779 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
783 # Enable expensive internal checks
784 # Check whether --enable-checking or --disable-checking was given.
785 if test "${enable_checking+set}" = set; then
786 enableval="$enable_checking"
787 case "${enableval}" in
788 yes) cat >> confdefs.h <<\EOF
789 #define ENABLE_CHECKING 1
792 cat >> confdefs.h <<\EOF
793 #define ENABLE_TREE_CHECKING 1
796 cat >> confdefs.h <<\EOF
797 #define ENABLE_RTL_CHECKING 1
801 *) ac_save_IFS="$IFS" IFS="$IFS,"
802 set fnord $enableval; shift
807 misc) cat >> confdefs.h <<\EOF
808 #define ENABLE_CHECKING 1
811 tree) cat >> confdefs.h <<\EOF
812 #define ENABLE_TREE_CHECKING 1
815 rtl) cat >> confdefs.h <<\EOF
816 #define ENABLE_RTL_CHECKING 1
819 gc) cat >> confdefs.h <<\EOF
820 #define ENABLE_GC_CHECKING 1
823 gcac) cat >> confdefs.h <<\EOF
824 #define ENABLE_GC_ALWAYS_COLLECT 1
827 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
835 # Check whether --enable-cpp or --disable-cpp was given.
836 if test "${enable_cpp+set}" = set; then
837 enableval="$enable_cpp"
844 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
845 if test "${with_cpp_install_dir+set}" = set; then
846 withval="$with_cpp_install_dir"
847 if test x$withval = xyes; then
848 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
849 elif test x$withval != xno; then
850 cpp_install_dir=$withval
855 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
857 # Check whether --enable-cpplib or --disable-cpplib was given.
858 if test "${enable_cpplib+set}" = set; then
859 enableval="$enable_cpplib"
860 if test x$enable_cpplib = xno; then
866 # Link cpplib into the compiler proper, for C/C++/ObjC.
867 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
868 if test "${enable_c_cpplib+set}" = set; then
869 enableval="$enable_c_cpplib"
870 if test x$enable_c_cpplib != xno; then
871 extra_c_objs="${extra_c_objs} libcpp.a"
872 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
873 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
879 # Enable Multibyte Characters for C/C++
880 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
881 if test "${enable_c_mbchar+set}" = set; then
882 enableval="$enable_c_mbchar"
883 if test x$enable_c_mbchar != xno; then
884 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
890 # Pass with no value to take the default
891 # Pass with a value to specify a thread package
892 # Check whether --enable-threads or --disable-threads was given.
893 if test "${enable_threads+set}" = set; then
894 enableval="$enable_threads"
895 if test x$enable_threads = xno; then
903 enable_threads_flag=$enable_threads
904 # Check if a valid thread package
905 case x${enable_threads_flag} in
908 target_thread_file='single'
912 target_thread_file=''
914 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
915 xsolaris | xwin32 | xdce | xvxworks)
916 target_thread_file=$enable_threads_flag
919 echo "$enable_threads is an unknown thread package" 1>&2
924 # Check whether --enable-objc-gc or --disable-objc-gc was given.
925 if test "${enable_objc_gc+set}" = set; then
926 enableval="$enable_objc_gc"
927 if test x$enable_objc_gc = xno; then
937 # Check whether --with-dwarf2 or --without-dwarf2 was given.
938 if test "${with_dwarf2+set}" = set; then
939 withval="$with_dwarf2"
940 dwarf2="$with_dwarf2"
946 # Determine the host, build, and target systems
948 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
949 if test -f $ac_dir/install-sh; then
951 ac_install_sh="$ac_aux_dir/install-sh -c"
953 elif test -f $ac_dir/install.sh; then
955 ac_install_sh="$ac_aux_dir/install.sh -c"
959 if test -z "$ac_aux_dir"; then
960 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
962 ac_config_guess=$ac_aux_dir/config.guess
963 ac_config_sub=$ac_aux_dir/config.sub
964 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967 # Do some error checking and defaulting for the host and target type.
969 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
972 # 1. You are not allowed to specify --host, --target, and nonopt at the
974 # 2. Host defaults to nonopt.
975 # 3. If nonopt is not specified, then host defaults to the current host,
976 # as determined by config.guess.
977 # 4. Target and build default to nonopt.
978 # 5. If nonopt is not specified, then target and build default to host.
980 # The aliases save the names the user supplied, while $host etc.
981 # will get canonicalized.
982 case $host---$target---$nonopt in
983 NONE---*---* | *---NONE---* | *---*---NONE) ;;
984 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
988 # Make sure we can run config.sub.
989 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
990 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993 echo $ac_n "checking host system type""... $ac_c" 1>&6
994 echo "configure:995: checking host system type" >&5
997 case "$host_alias" in
1001 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1002 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1004 *) host_alias=$nonopt ;;
1008 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1009 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1012 echo "$ac_t""$host" 1>&6
1014 echo $ac_n "checking target system type""... $ac_c" 1>&6
1015 echo "configure:1016: checking target system type" >&5
1017 target_alias=$target
1018 case "$target_alias" in
1021 NONE) target_alias=$host_alias ;;
1022 *) target_alias=$nonopt ;;
1026 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1027 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1028 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1029 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1030 echo "$ac_t""$target" 1>&6
1032 echo $ac_n "checking build system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking build system type" >&5
1036 case "$build_alias" in
1039 NONE) build_alias=$host_alias ;;
1040 *) build_alias=$nonopt ;;
1044 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1045 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048 echo "$ac_t""$build" 1>&6
1050 test "$host_alias" != "$target_alias" &&
1051 test "$program_prefix$program_suffix$program_transform_name" = \
1053 program_prefix=${target_alias}-
1056 # Find the native compiler
1057 # Extract the first word of "gcc", so it can be a program name with args.
1058 set dummy gcc; 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
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069 for ac_dir in $ac_dummy; do
1070 test -z "$ac_dir" && ac_dir=.
1071 if test -f $ac_dir/$ac_word; then
1080 if test -n "$CC"; then
1081 echo "$ac_t""$CC" 1>&6
1083 echo "$ac_t""no" 1>&6
1086 if test -z "$CC"; then
1087 # Extract the first word of "cc", so it can be a program name with args.
1088 set dummy cc; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1104 ac_prog_rejected=yes
1112 if test $ac_prog_rejected = yes; then
1113 # We found a bogon in the path, so make sure we never use it.
1114 set dummy $ac_cv_prog_CC
1116 if test $# -gt 0; then
1117 # We chose a different compiler from the bogus one.
1118 # However, it has the same basename, so the bogon will be chosen
1119 # first if we set CC to just the basename; use the full file name.
1121 set dummy "$ac_dir/$ac_word" "$@"
1129 if test -n "$CC"; then
1130 echo "$ac_t""$CC" 1>&6
1132 echo "$ac_t""no" 1>&6
1135 if test -z "$CC"; then
1136 case "`uname -s`" in
1138 # Extract the first word of "cl", so it can be a program name with args.
1139 set dummy cl; ac_word=$2
1140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1141 echo "configure:1142: checking for $ac_word" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 if test -n "$CC"; then
1146 ac_cv_prog_CC="$CC" # Let the user override the test.
1148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1150 for ac_dir in $ac_dummy; do
1151 test -z "$ac_dir" && ac_dir=.
1152 if test -f $ac_dir/$ac_word; then
1161 if test -n "$CC"; then
1162 echo "$ac_t""$CC" 1>&6
1164 echo "$ac_t""no" 1>&6
1169 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1172 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1177 ac_cpp='$CPP $CPPFLAGS'
1178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1180 cross_compiling=$ac_cv_prog_cc_cross
1182 cat > conftest.$ac_ext << EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1189 if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1190 ac_cv_prog_cc_works=yes
1191 # If we can't run a trivial program, we are probably using a cross compiler.
1192 if (./conftest; exit) 2>/dev/null; then
1193 ac_cv_prog_cc_cross=no
1195 ac_cv_prog_cc_cross=yes
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1200 ac_cv_prog_cc_works=no
1204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1205 ac_cpp='$CPP $CPPFLAGS'
1206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1208 cross_compiling=$ac_cv_prog_cc_cross
1210 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1211 if test $ac_cv_prog_cc_works = no; then
1212 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1214 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1216 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1217 cross_compiling=$ac_cv_prog_cc_cross
1219 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether we are using GNU C" >&5
1221 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.c <<EOF
1229 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1236 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1238 if test $ac_cv_prog_gcc = yes; then
1244 ac_test_CFLAGS="${CFLAGS+set}"
1245 ac_save_CFLAGS="$CFLAGS"
1247 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ${CC-cc} accepts -g" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 echo 'void f(){}' > conftest.c
1253 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1262 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1263 if test "$ac_test_CFLAGS" = set; then
1264 CFLAGS="$ac_save_CFLAGS"
1265 elif test $ac_cv_prog_cc_g = yes; then
1266 if test "$GCC" = yes; then
1272 if test "$GCC" = yes; then
1279 echo $ac_n "checking for long double""... $ac_c" 1>&6
1280 echo "configure:1281: checking for long double" >&5
1281 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test "$GCC" = yes; then
1285 gcc_cv_c_long_double=yes
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1292 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1293 long double foo = 0.0;
1294 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1295 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1298 if { (eval echo configure:1299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1300 gcc_cv_c_long_double=yes
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1305 gcc_cv_c_long_double=no
1311 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1312 if test $gcc_cv_c_long_double = yes; then
1313 cat >> confdefs.h <<\EOF
1314 #define HAVE_LONG_DOUBLE 1
1320 # If the native compiler is GCC, we can enable warnings even in stage1.
1321 # That's useful for people building cross-compilers, or just running a
1323 if test "x$GCC" = "xyes"; then
1324 stage1_warn_cflags='$(WARN_CFLAGS)'
1326 stage1_warn_cflags=""
1330 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether ${MAKE-make} sets \${MAKE}" >&5
1332 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1333 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 cat > conftestmake <<\EOF
1338 @echo 'ac_maketemp="${MAKE}"'
1340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1341 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1342 if test -n "$ac_maketemp"; then
1343 eval ac_cv_prog_make_${ac_make}_set=yes
1345 eval ac_cv_prog_make_${ac_make}_set=no
1349 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1350 echo "$ac_t""yes" 1>&6
1353 echo "$ac_t""no" 1>&6
1354 SET_MAKE="MAKE=${MAKE-make}"
1358 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether a default assembler was specified" >&5
1360 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1361 if test x"$gas_flag" = x"no"; then
1362 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1364 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1367 echo "$ac_t""no" 1>&6
1370 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1371 echo "configure:1372: checking whether a default linker was specified" >&5
1372 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1373 if test x"$gnu_ld_flag" = x"no"; then
1374 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1376 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1379 echo "$ac_t""no" 1>&6
1382 # Find some useful tools
1383 for ac_prog in mawk gawk nawk awk
1385 # Extract the first word of "$ac_prog", so it can be a program name with args.
1386 set dummy $ac_prog; ac_word=$2
1387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1388 echo "configure:1389: checking for $ac_word" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 if test -n "$AWK"; then
1393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1397 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 if test -f $ac_dir/$ac_word; then
1400 ac_cv_prog_AWK="$ac_prog"
1407 AWK="$ac_cv_prog_AWK"
1408 if test -n "$AWK"; then
1409 echo "$ac_t""$AWK" 1>&6
1411 echo "$ac_t""no" 1>&6
1414 test -n "$AWK" && break
1417 # Extract the first word of "flex", so it can be a program name with args.
1418 set dummy flex; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 if test -n "$LEX"; then
1425 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1429 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 ac_cv_prog_LEX="flex"
1437 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1440 LEX="$ac_cv_prog_LEX"
1441 if test -n "$LEX"; then
1442 echo "$ac_t""$LEX" 1>&6
1444 echo "$ac_t""no" 1>&6
1447 if test -z "$LEXLIB"
1453 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1454 echo "configure:1455: checking for yywrap in -l$ac_lib" >&5
1455 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 ac_save_LIBS="$LIBS"
1460 LIBS="-l$ac_lib $LIBS"
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 /* Override any gcc2 internal prototype to avoid an error. */
1465 /* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1475 eval "ac_cv_lib_$ac_lib_var=yes"
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 eval "ac_cv_lib_$ac_lib_var=no"
1483 LIBS="$ac_save_LIBS"
1486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1487 echo "$ac_t""yes" 1>&6
1490 echo "$ac_t""no" 1>&6
1495 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1496 echo "configure:1497: checking whether ln works" >&5
1497 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 rm -f conftestdata_t
1501 echo >conftestdata_f
1502 if ln conftestdata_f conftestdata_t 2>/dev/null
1506 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1508 gcc_cv_prog_LN="ln -s"
1513 rm -f conftestdata_f conftestdata_t
1516 LN="$gcc_cv_prog_LN"
1517 if test "$gcc_cv_prog_LN" = "ln"; then
1518 echo "$ac_t""yes" 1>&6
1520 if test "$gcc_cv_prog_LN" = "ln -s"; then
1521 echo "$ac_t""no, using ln -s" 1>&6
1523 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1527 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1528 echo "configure:1529: checking whether ln -s works" >&5
1529 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 rm -f conftestdata_t
1533 echo >conftestdata_f
1534 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1536 gcc_cv_prog_LN_S="ln -s"
1538 if ln conftestdata_f conftestdata_t 2>/dev/null
1545 rm -f conftestdata_f conftestdata_t
1548 LN_S="$gcc_cv_prog_LN_S"
1549 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1550 echo "$ac_t""yes" 1>&6
1552 if test "$gcc_cv_prog_LN_S" = "ln"; then
1553 echo "$ac_t""no, using ln" 1>&6
1555 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1559 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1560 echo "configure:1561: checking for volatile" >&5
1561 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1572 if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 gcc_cv_c_volatile=yes
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1579 gcc_cv_c_volatile=no
1584 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1585 if test $gcc_cv_c_volatile = yes ; then
1586 cat >> confdefs.h <<\EOF
1587 #define HAVE_VOLATILE 1
1592 # Extract the first word of "ranlib", so it can be a program name with args.
1593 set dummy ranlib; ac_word=$2
1594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1595 echo "configure:1596: checking for $ac_word" >&5
1596 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 if test -n "$RANLIB"; then
1600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1604 for ac_dir in $ac_dummy; do
1605 test -z "$ac_dir" && ac_dir=.
1606 if test -f $ac_dir/$ac_word; then
1607 ac_cv_prog_RANLIB="ranlib"
1612 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1615 RANLIB="$ac_cv_prog_RANLIB"
1616 if test -n "$RANLIB"; then
1617 echo "$ac_t""$RANLIB" 1>&6
1619 echo "$ac_t""no" 1>&6
1622 for ac_prog in 'bison -y' byacc
1624 # Extract the first word of "$ac_prog", so it can be a program name with args.
1625 set dummy $ac_prog; ac_word=$2
1626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1627 echo "configure:1628: checking for $ac_word" >&5
1628 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 if test -n "$YACC"; then
1632 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1636 for ac_dir in $ac_dummy; do
1637 test -z "$ac_dir" && ac_dir=.
1638 if test -f $ac_dir/$ac_word; then
1639 ac_cv_prog_YACC="$ac_prog"
1646 YACC="$ac_cv_prog_YACC"
1647 if test -n "$YACC"; then
1648 echo "$ac_t""$YACC" 1>&6
1650 echo "$ac_t""no" 1>&6
1653 test -n "$YACC" && break
1655 test -n "$YACC" || YACC="yacc"
1657 # Find a good install program. We prefer a C program (faster),
1658 # so one script is as good as another. But avoid the broken or
1659 # incompatible versions:
1660 # SysV /etc/install, /usr/sbin/install
1661 # SunOS /usr/etc/install
1662 # IRIX /sbin/install
1664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1668 echo "configure:1669: checking for a BSD compatible install" >&5
1669 if test -z "$INSTALL"; then
1670 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1674 for ac_dir in $PATH; do
1675 # Account for people who put trailing slashes in PATH elements.
1677 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1679 # OSF1 and SCO ODT 3.0 have their own names for install.
1680 for ac_prog in ginstall scoinst install; do
1681 if test -f $ac_dir/$ac_prog; then
1682 if test $ac_prog = install &&
1683 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1684 # AIX install. It has an incompatible calling convention.
1685 # OSF/1 installbsd also uses dspmsg, but is usable.
1688 ac_cv_path_install="$ac_dir/$ac_prog -c"
1699 if test "${ac_cv_path_install+set}" = set; then
1700 INSTALL="$ac_cv_path_install"
1702 # As a last resort, use the slow shell script. We don't cache a
1703 # path for INSTALL within a source directory, because that will
1704 # break other packages using the cache if that directory is
1705 # removed, or if the path is relative.
1706 INSTALL="$ac_install_sh"
1709 echo "$ac_t""$INSTALL" 1>&6
1711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1712 # It thinks the first close brace ends the variable substitution.
1713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1718 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1719 echo "configure:1720: checking how to run the C preprocessor" >&5
1720 # On Suns, sometimes $CPP names a directory.
1721 if test -n "$CPP" && test -d "$CPP"; then
1724 if test -z "$CPP"; then
1725 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 # This must be in double quotes, not single quotes, because CPP may get
1729 # substituted into the Makefile and "${CC-cc}" will confuse make.
1731 # On the NeXT, cc -E runs the code through the compiler's parser,
1732 # not just through cpp.
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1740 { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1742 if test -z "$ac_err"; then
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1749 CPP="${CC-cc} -E -traditional-cpp"
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1757 { (eval echo configure:1758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1759 if test -z "$ac_err"; then
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1766 CPP="${CC-cc} -nologo -E"
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1774 { (eval echo configure:1775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1776 if test -z "$ac_err"; then
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1790 ac_cv_prog_CPP="$CPP"
1792 CPP="$ac_cv_prog_CPP"
1794 ac_cv_prog_CPP="$CPP"
1796 echo "$ac_t""$CPP" 1>&6
1798 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1799 echo "configure:1800: checking for ANSI C header files" >&5
1800 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1812 { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1814 if test -z "$ac_err"; then
1816 ac_cv_header_stdc=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 ac_cv_header_stdc=no
1826 if test $ac_cv_header_stdc = yes; then
1827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1834 egrep "memchr" >/dev/null 2>&1; then
1838 ac_cv_header_stdc=no
1844 if test $ac_cv_header_stdc = yes; then
1845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1852 egrep "free" >/dev/null 2>&1; then
1856 ac_cv_header_stdc=no
1862 if test $ac_cv_header_stdc = yes; then
1863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1864 if test "$cross_compiling" = yes; then
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1871 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1872 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1874 int main () { int i; for (i = 0; i < 256; i++)
1875 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1879 if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1886 ac_cv_header_stdc=no
1894 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1895 if test $ac_cv_header_stdc = yes; then
1896 cat >> confdefs.h <<\EOF
1897 #define STDC_HEADERS 1
1902 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether time.h and sys/time.h may both be included" >&5
1904 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1910 #include <sys/types.h>
1911 #include <sys/time.h>
1917 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919 ac_cv_header_time=yes
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1924 ac_cv_header_time=no
1929 echo "$ac_t""$ac_cv_header_time" 1>&6
1930 if test $ac_cv_header_time = yes; then
1931 cat >> confdefs.h <<\EOF
1932 #define TIME_WITH_SYS_TIME 1
1937 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1938 echo "configure:1939: checking whether string.h and strings.h may both be included" >&5
1939 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1946 #include <strings.h>
1951 if { (eval echo configure:1952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1953 gcc_cv_header_string=yes
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 gcc_cv_header_string=no
1963 echo "$ac_t""$gcc_cv_header_string" 1>&6
1964 if test $gcc_cv_header_string = yes; then
1965 cat >> confdefs.h <<\EOF
1966 #define STRING_WITH_STRINGS 1
1971 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1972 echo "configure:1973: checking for sys/wait.h that is POSIX.1 compatible" >&5
1973 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 #include <sys/types.h>
1980 #include <sys/wait.h>
1982 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1985 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1990 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1993 if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1995 ac_cv_header_sys_wait_h=yes
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
2000 ac_cv_header_sys_wait_h=no
2005 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2006 if test $ac_cv_header_sys_wait_h = yes; then
2007 cat >> confdefs.h <<\EOF
2008 #define HAVE_SYS_WAIT_H 1
2013 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2014 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2015 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_hdr" >&5
2021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2030 { (eval echo configure:2031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2032 if test -z "$ac_err"; then
2034 eval "ac_cv_header_$ac_safe=yes"
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2040 eval "ac_cv_header_$ac_safe=no"
2044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2047 cat >> confdefs.h <<EOF
2048 #define $ac_tr_hdr 1
2052 echo "$ac_t""no" 1>&6
2057 # Check for thread headers.
2058 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2059 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2060 echo "configure:2061: checking for thread.h" >&5
2061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2070 { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2072 if test -z "$ac_err"; then
2074 eval "ac_cv_header_$ac_safe=yes"
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 eval "ac_cv_header_$ac_safe=no"
2084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2085 echo "$ac_t""yes" 1>&6
2088 echo "$ac_t""no" 1>&6
2092 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2093 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2094 echo "configure:2095: checking for pthread.h" >&5
2095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2101 #include <pthread.h>
2103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2104 { (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2106 if test -z "$ac_err"; then
2108 eval "ac_cv_header_$ac_safe=yes"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 eval "ac_cv_header_$ac_safe=no"
2118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2119 echo "$ac_t""yes" 1>&6
2122 echo "$ac_t""no" 1>&6
2127 # See if GNAT has been installed
2128 # Extract the first word of "gnatbind", so it can be a program name with args.
2129 set dummy gnatbind; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5
2132 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 if test -n "$gnat"; then
2136 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2140 for ac_dir in $ac_dummy; do
2141 test -z "$ac_dir" && ac_dir=.
2142 if test -f $ac_dir/$ac_word; then
2143 ac_cv_prog_gnat="yes"
2148 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2151 gnat="$ac_cv_prog_gnat"
2152 if test -n "$gnat"; then
2153 echo "$ac_t""$gnat" 1>&6
2155 echo "$ac_t""no" 1>&6
2159 # See if the stage1 system preprocessor understands the ANSI C
2160 # preprocessor stringification operator.
2163 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2164 echo "configure:2165: checking for preprocessor stringizing operator" >&5
2165 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2174 char *s = x(teststring);
2177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2178 egrep "#teststring" >/dev/null 2>&1; then
2180 ac_cv_c_stringize=no
2183 ac_cv_c_stringize=yes
2189 if test "${ac_cv_c_stringize}" = yes
2191 cat >> confdefs.h <<\EOF
2192 #define HAVE_STRINGIZE 1
2196 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2199 # Use <inttypes.h> only if it exists,
2200 # doesn't clash with <sys/types.h>, and declares intmax_t.
2201 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2202 echo "configure:2203: checking for inttypes.h" >&5
2203 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <sys/types.h>
2210 #include <inttypes.h>
2215 if { (eval echo configure:2216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2217 gcc_cv_header_inttypes_h=yes
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 gcc_cv_header_inttypes_h=no
2227 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2228 if test $gcc_cv_header_inttypes_h = yes; then
2229 cat >> confdefs.h <<\EOF
2230 #define HAVE_INTTYPES_H 1
2235 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2236 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2237 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2238 fputs_unlocked getrusage valloc
2240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_func" >&5
2242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $ac_func(); below. */
2251 /* Override any gcc2 internal prototype to avoid an error. */
2252 /* We use char because int might match the return type of a gcc2
2253 builtin and then its argument prototype would still apply. */
2258 /* The GNU C library defines this for functions which it implements
2259 to always fail with ENOSYS. Some functions are actually named
2260 something starting with __ and the normal name is an alias. */
2261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2269 if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271 eval "ac_cv_func_$ac_func=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_func_$ac_func=no"
2281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2284 cat >> confdefs.h <<EOF
2285 #define $ac_tr_func 1
2289 echo "$ac_t""no" 1>&6
2294 # Make sure wchar_t is available
2295 #AC_CHECK_TYPE(wchar_t, unsigned int)
2297 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2298 echo "configure:2299: checking for vprintf" >&5
2299 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 /* System header to define __stub macros and hopefully few prototypes,
2306 which can conflict with char vprintf(); below. */
2308 /* Override any gcc2 internal prototype to avoid an error. */
2309 /* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2315 /* The GNU C library defines this for functions which it implements
2316 to always fail with ENOSYS. Some functions are actually named
2317 something starting with __ and the normal name is an alias. */
2318 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2328 eval "ac_cv_func_vprintf=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_func_vprintf=no"
2338 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 cat >> confdefs.h <<\EOF
2341 #define HAVE_VPRINTF 1
2345 echo "$ac_t""no" 1>&6
2348 if test "$ac_cv_func_vprintf" != yes; then
2349 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2350 echo "configure:2351: checking for _doprnt" >&5
2351 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char _doprnt(); below. */
2360 /* Override any gcc2 internal prototype to avoid an error. */
2361 /* We use char because int might match the return type of a gcc2
2362 builtin and then its argument prototype would still apply. */
2367 /* The GNU C library defines this for functions which it implements
2368 to always fail with ENOSYS. Some functions are actually named
2369 something starting with __ and the normal name is an alias. */
2370 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380 eval "ac_cv_func__doprnt=yes"
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2385 eval "ac_cv_func__doprnt=no"
2390 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2391 echo "$ac_t""yes" 1>&6
2392 cat >> confdefs.h <<\EOF
2393 #define HAVE_DOPRNT 1
2397 echo "$ac_t""no" 1>&6
2404 if test $ac_cv_func_vprintf != yes ; then
2406 if test $ac_cv_func__doprnt != yes ; then
2413 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2414 echo "configure:2415: checking whether the printf functions support %p" >&5
2415 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2418 if test "$cross_compiling" = yes; then
2419 gcc_cv_func_printf_ptr=no
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2429 char *p = buf, *q = NULL;
2430 sprintf(buf, "%p", p);
2431 sscanf(buf, "%p", &q);
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2437 gcc_cv_func_printf_ptr=yes
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 gcc_cv_func_printf_ptr=no
2447 rm -f core core.* *.core
2450 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2451 if test $gcc_cv_func_printf_ptr = yes ; then
2452 cat >> confdefs.h <<\EOF
2453 #define HAVE_PRINTF_PTR 1
2461 # Under some versions of uwin, vfork is notoriously buggy and the test
2462 # can hang configure; on other versions, vfork exists just as a stub.
2463 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2464 ac_cv_func_vfork_works=no
2467 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2468 echo "configure:2469: checking for pid_t" >&5
2469 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2484 ac_cv_type_pid_t=yes
2492 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2493 if test $ac_cv_type_pid_t = no; then
2494 cat >> confdefs.h <<\EOF
2500 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2502 echo "configure:2503: checking for vfork.h" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2516 eval "ac_cv_header_$ac_safe=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_header_$ac_safe=no"
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 cat >> confdefs.h <<\EOF
2529 #define HAVE_VFORK_H 1
2533 echo "$ac_t""no" 1>&6
2536 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2537 echo "configure:2538: checking for working vfork" >&5
2538 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 if test "$cross_compiling" = yes; then
2542 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2543 echo "configure:2544: checking for vfork" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char vfork(); below. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_vfork) || defined (__stub___vfork)
2571 if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2573 eval "ac_cv_func_vfork=yes"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2578 eval "ac_cv_func_vfork=no"
2583 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2587 echo "$ac_t""no" 1>&6
2590 ac_cv_func_vfork_works=$ac_cv_func_vfork
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 /* Thanks to Paul Eggert for this test. */
2597 #include <sys/types.h>
2598 #include <sys/stat.h>
2599 #ifdef HAVE_UNISTD_H
2605 /* On some sparc systems, changes by the child to local and incoming
2606 argument registers are propagated back to the parent.
2607 The compiler is told about this with #include <vfork.h>,
2608 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2609 Test for this by using a static variable whose address
2610 is put into a register that is clobbered by the vfork. */
2613 sparc_address_test (int arg)
2615 sparc_address_test (arg) int arg;
2633 pid_t parent = getpid ();
2636 sparc_address_test ();
2641 /* Here is another test for sparc vfork register problems.
2642 This test uses lots of local variables, at least
2643 as many local variables as main has allocated so far
2644 including compiler temporaries. 4 locals are enough for
2645 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2646 A buggy compiler should reuse the register of parent
2647 for one of the local variables, since it will think that
2648 parent can't possibly be used any more in this routine.
2649 Assigning to the local variable will thus munge parent
2650 in the parent process. */
2652 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2653 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2654 /* Convince the compiler that p..p7 are live; otherwise, it might
2655 use the same hardware register for all 8 local variables. */
2656 if (p != p1 || p != p2 || p != p3 || p != p4
2657 || p != p5 || p != p6 || p != p7)
2660 /* On some systems (e.g. IRIX 3.3),
2661 vfork doesn't separate parent from child file descriptors.
2662 If the child closes a descriptor before it execs or exits,
2663 this munges the parent's descriptor as well.
2664 Test for this by closing stdout in the child. */
2665 _exit(close(fileno(stdout)) != 0);
2670 while (wait(&status) != child)
2673 /* Was there some problem with vforking? */
2676 /* Did the child fail? (This shouldn't happen.) */
2679 /* Did the vfork/compiler bug occur? */
2680 || parent != getpid()
2682 /* Did the file descriptor bug occur? */
2683 || fstat(fileno(stdout), &st) != 0
2688 if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2690 ac_cv_func_vfork_works=yes
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 ac_cv_func_vfork_works=no
2702 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2703 if test $ac_cv_func_vfork_works = no; then
2704 cat >> confdefs.h <<\EOF
2710 for ac_hdr in unistd.h
2712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_hdr" >&5
2715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2728 eval "ac_cv_header_$ac_safe=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2734 eval "ac_cv_header_$ac_safe=no"
2738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2741 cat >> confdefs.h <<EOF
2742 #define $ac_tr_hdr 1
2746 echo "$ac_t""no" 1>&6
2750 for ac_func in getpagesize
2752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_func" >&5
2754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 /* System header to define __stub macros and hopefully few prototypes,
2761 which can conflict with char $ac_func(); below. */
2763 /* Override any gcc2 internal prototype to avoid an error. */
2764 /* We use char because int might match the return type of a gcc2
2765 builtin and then its argument prototype would still apply. */
2770 /* The GNU C library defines this for functions which it implements
2771 to always fail with ENOSYS. Some functions are actually named
2772 something starting with __ and the normal name is an alias. */
2773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2781 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2783 eval "ac_cv_func_$ac_func=yes"
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2788 eval "ac_cv_func_$ac_func=no"
2793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2794 echo "$ac_t""yes" 1>&6
2795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2796 cat >> confdefs.h <<EOF
2797 #define $ac_tr_func 1
2801 echo "$ac_t""no" 1>&6
2805 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2806 echo "configure:2807: checking for working mmap from /dev/zero" >&5
2807 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 if test "$cross_compiling" = yes; then
2811 ac_cv_func_mmap_anywhere=no
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2817 /* Test by Richard Henderson and Alexandre Oliva.
2818 Check whether mmap from /dev/zero works. */
2819 #include <sys/types.h>
2821 #include <sys/mman.h>
2823 /* This mess was copied from the GNU getpagesize.h. */
2824 #ifndef HAVE_GETPAGESIZE
2825 # ifdef HAVE_UNISTD_H
2826 # include <unistd.h>
2829 /* Assume that all systems that can run configure have sys/param.h. */
2830 # ifndef HAVE_SYS_PARAM_H
2831 # define HAVE_SYS_PARAM_H 1
2834 # ifdef _SC_PAGESIZE
2835 # define getpagesize() sysconf(_SC_PAGESIZE)
2836 # else /* no _SC_PAGESIZE */
2837 # ifdef HAVE_SYS_PARAM_H
2838 # include <sys/param.h>
2839 # ifdef EXEC_PAGESIZE
2840 # define getpagesize() EXEC_PAGESIZE
2841 # else /* no EXEC_PAGESIZE */
2843 # define getpagesize() NBPG * CLSIZE
2846 # endif /* no CLSIZE */
2847 # else /* no NBPG */
2849 # define getpagesize() NBPC
2850 # else /* no NBPC */
2852 # define getpagesize() PAGESIZE
2853 # endif /* PAGESIZE */
2854 # endif /* no NBPC */
2855 # endif /* no NBPG */
2856 # endif /* no EXEC_PAGESIZE */
2857 # else /* no HAVE_SYS_PARAM_H */
2858 # define getpagesize() 8192 /* punt totally */
2859 # endif /* no HAVE_SYS_PARAM_H */
2860 # endif /* no _SC_PAGESIZE */
2862 #endif /* no HAVE_GETPAGESIZE */
2869 fd = open("/dev/zero", O_RDWR);
2874 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2875 if (x == (char *) -1)
2880 if (munmap(x, pg) < 0)
2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2888 ac_cv_func_mmap_anywhere=yes
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 ac_cv_func_mmap_anywhere=no
2900 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2901 if test $ac_cv_func_mmap_anywhere = yes; then
2902 cat >> confdefs.h <<\EOF
2903 #define HAVE_MMAP_ANYWHERE 1
2909 for ac_func in bcopy bzero bcmp \
2910 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2911 strsignal putc_unlocked fputs_unlocked strstr environ
2913 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2914 echo "configure:2915: checking whether $ac_func must be declared" >&5
2915 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 #ifdef STRING_WITH_STRINGS
2924 # include <string.h>
2925 # include <strings.h>
2927 # ifdef HAVE_STRING_H
2928 # include <string.h>
2930 # ifdef HAVE_STRINGS_H
2931 # include <strings.h>
2935 #ifdef HAVE_STDLIB_H
2938 #ifdef HAVE_UNISTD_H
2943 #define rindex strrchr
2948 #define index strchr
2953 char *(*pfn) = (char *(*)) $ac_func
2956 if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2958 eval "gcc_cv_decl_needed_$ac_func=no"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 eval "gcc_cv_decl_needed_$ac_func=yes"
2968 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2970 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2971 cat >> confdefs.h <<EOF
2972 #define $gcc_tr_decl 1
2976 echo "$ac_t""no" 1>&6
2982 for ac_func in malloc realloc calloc free
2984 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2985 echo "configure:2986: checking whether $ac_func must be declared" >&5
2986 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2994 #ifdef STRING_WITH_STRINGS
2995 # include <string.h>
2996 # include <strings.h>
2998 # ifdef HAVE_STRING_H
2999 # include <string.h>
3001 # ifdef HAVE_STRINGS_H
3002 # include <strings.h>
3006 #ifdef HAVE_STDLIB_H
3009 #ifdef HAVE_UNISTD_H
3014 #define rindex strrchr
3019 #define index strchr
3022 #ifdef HAVE_MALLOC_H
3027 char *(*pfn) = (char *(*)) $ac_func
3030 if { (eval echo configure:3031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3032 eval "gcc_cv_decl_needed_$ac_func=no"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 eval "gcc_cv_decl_needed_$ac_func=yes"
3042 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3045 cat >> confdefs.h <<EOF
3046 #define $gcc_tr_decl 1
3050 echo "$ac_t""no" 1>&6
3056 for ac_func in getrlimit setrlimit getrusage
3058 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3059 echo "configure:3060: checking whether $ac_func must be declared" >&5
3060 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3068 #ifdef STRING_WITH_STRINGS
3069 # include <string.h>
3070 # include <strings.h>
3072 # ifdef HAVE_STRING_H
3073 # include <string.h>
3075 # ifdef HAVE_STRINGS_H
3076 # include <strings.h>
3080 #ifdef HAVE_STDLIB_H
3083 #ifdef HAVE_UNISTD_H
3088 #define rindex strrchr
3093 #define index strchr
3096 #include <sys/types.h>
3097 #ifdef HAVE_SYS_RESOURCE_H
3098 #include <sys/resource.h>
3102 char *(*pfn) = (char *(*)) $ac_func
3105 if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3107 eval "gcc_cv_decl_needed_$ac_func=no"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 eval "gcc_cv_decl_needed_$ac_func=yes"
3117 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3120 cat >> confdefs.h <<EOF
3121 #define $gcc_tr_decl 1
3125 echo "$ac_t""no" 1>&6
3131 # mkdir takes a single argument on some systems.
3132 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3133 echo "configure:3134: checking if mkdir takes one argument" >&5
3134 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3141 #include <sys/types.h>
3142 #ifdef HAVE_SYS_STAT_H
3143 # include <sys/stat.h>
3145 #ifdef HAVE_UNISTD_H
3146 # include <unistd.h>
3148 #ifdef HAVE_DIRECT_H
3149 # include <direct.h>
3155 if { (eval echo configure:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 gcc_cv_mkdir_takes_one_arg=no
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 gcc_cv_mkdir_takes_one_arg=yes
3167 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3168 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3169 cat >> confdefs.h <<\EOF
3170 #define MKDIR_TAKES_ONE_ARG 1
3184 build_install_headers_dir=install-headers-tar
3189 host_truncate_target=
3192 # Decode the host machine, then the target machine.
3193 # For the host machine, we save the xm_file variable as host_xm_file;
3194 # then we decode the target machine and forget everything else
3195 # that came from the host machine.
3196 for machine in $build $host $target; do
3210 # Set this to force installation and use of collect2.
3212 # Set this to override the default target model.
3214 # Set this to control how the header file directory is installed.
3215 install_headers_dir=install-headers-tar
3216 # Set this to a non-empty list of args to pass to cpp if the target
3217 # wants its .md file passed through cpp.
3219 # Set this if directory names should be truncated to 14 characters.
3221 # Set this if gdb needs a dir command with `dirname $out_file`
3222 gdb_needs_out_file_path=
3223 # Set this if the build machine requires executables to have a
3226 # Set this to control which thread package will be used.
3228 # Reinitialize these from the flag values every loop pass, since some
3229 # configure entries modify them.
3231 gnu_ld="$gnu_ld_flag"
3232 enable_threads=$enable_threads_flag
3234 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3235 # updated in each machine entry.
3237 cpu_type=`echo $machine | sed 's/-.*$//'`
3274 tm_file=${cpu_type}/${cpu_type}.h
3275 xm_file=${cpu_type}/xm-${cpu_type}.h
3276 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3278 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3280 # On a.out targets, we need to use collect2.
3287 # Common parts for linux-gnu and openbsd systems
3290 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3293 tm_file=${cpu_type}/openbsd.h
3294 tmake_file="t-libc-ok t-openbsd"
3295 # avoid surprises, always provide an xm-openbsd file
3296 xm_file=${cpu_type}/xm-openbsd.h
3297 # don't depend on processor x-fragments as well
3299 if test x$enable_threads = xyes; then
3301 tmake_file="${tmake_file} t-openbsd-thread"
3307 # Support site-specific machine types.
3309 cpu_type=`echo $machine | sed -e 's/-.*//'`
3310 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3311 xm_file=${cpu_type}/xm-$rest.h
3312 tm_file=${cpu_type}/$rest.h
3313 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3314 then xmake_file=${cpu_type}/x-$rest; \
3317 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3318 then tmake_file=${cpu_type}/t-$rest; \
3324 a29k-*-bsd* | a29k-*-sym1*)
3325 tm_file="${tm_file} a29k/unix.h"
3327 xmake_file=a29k/x-unix
3330 a29k-*-udi | a29k-*-coff)
3331 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3332 tmake_file=a29k/t-a29kbare
3335 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3336 tmake_file=a29k/t-vx29k
3337 extra_parts="crtbegin.o crtend.o"
3338 thread_file='vxworks'
3340 a29k-*-*) # Default a29k environment.
3344 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3346 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3347 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3349 # GAS + IEEE_CONFORMANT
3350 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3352 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3353 xmake_file="x-interix alpha/t-pe"
3354 tmake_file="alpha/t-interix alpha/t-ieee"
3355 if test x$enable_threads = xyes ; then
3358 if test x$stabs = xyes ; then
3359 tm_file="${tm_file} dbxcoff.h"
3361 #prefix='$$INTERIX_ROOT'/usr/contrib
3362 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3364 alpha*-*-linux-gnuecoff*)
3365 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3366 target_cpu_default="MASK_GAS"
3367 tmake_file="alpha/t-ieee"
3372 alpha*-*-linux-gnulibc1*)
3373 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3374 target_cpu_default="MASK_GAS"
3375 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3376 extra_parts="crtbegin.o crtend.o"
3379 if test x$enable_threads = xyes; then
3383 alpha*-*-linux-gnu*)
3384 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3385 target_cpu_default="MASK_GAS"
3386 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3387 extra_parts="crtbegin.o crtend.o"
3390 if test x$enable_threads = xyes; then
3395 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3396 target_cpu_default="MASK_GAS"
3397 tmake_file="alpha/t-crtbe alpha/t-ieee"
3398 extra_parts="crtbegin.o crtend.o"
3404 # default x-alpha is only appropriate for dec-osf.
3405 target_cpu_default="MASK_GAS"
3406 tmake_file="alpha/t-ieee"
3410 if test x$stabs = xyes
3412 tm_file="${tm_file} dbx.h"
3414 if test x$gas != xyes
3416 extra_passes="mips-tfile mips-tdump"
3419 tmake_file="alpha/t-ieee"
3422 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3425 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3428 tm_file="${tm_file} alpha/osf.h"
3429 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3430 # a broken tar, so we use cpio instead.
3431 install_headers_dir=install-headers-cpio
3434 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3438 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3439 target_cpu_default=MASK_SUPPORT_ARCH
3444 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3445 tmake_file="alpha/t-ieee"
3448 extra_passes="mips-tfile mips-tdump"
3451 thread_file='vxworks'
3454 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3455 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3456 tmake_file="t-libc-ok alpha/t-ieee"
3457 xmake_file=winnt/x-winnt
3458 extra_host_objs=oldnames.o
3459 extra_gcc_objs="spawnv.o oldnames.o"
3460 if test x$gnu_ld != xyes
3462 extra_programs=ld.exe
3464 if test x$enable_threads = xyes; then
3470 xm_file="${xm_file} alpha/xm-vms.h"
3471 tmake_file="alpha/t-vms alpha/t-ieee"
3474 extra_parts="crtinit.o crtfini.o"
3476 arm-*-coff* | armel-*-coff*)
3478 tmake_file=arm/t-bare
3482 tmake_file=arm/t-bare
3483 thread_file='vxworks'
3485 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3486 tm_file=arm/riscix1-1.h
3489 arm-*-riscix*) # Acorn RISC machine
3490 if test x$gas = xyes
3492 tm_file=arm/rix-gas.h
3494 tm_file=arm/riscix.h
3496 xmake_file=arm/x-riscix
3497 tmake_file=arm/t-riscix
3500 arm-semi-aout | armel-semi-aout)
3502 tmake_file=arm/t-semi
3504 arm-semi-aof | armel-semi-aof)
3505 tm_file=arm/semiaof.h
3506 tmake_file=arm/t-semiaof
3509 tm_file=arm/netbsd.h
3510 tmake_file="t-netbsd arm/t-netbsd"
3513 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3516 tm_file=arm/linux-aout.h
3517 tmake_file=arm/t-linux
3520 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3521 xm_file=arm/xm-linux.h
3523 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3526 tm_file="arm/linux-elf26.h $tm_file"
3529 tmake_file="t-linux arm/t-linux"
3530 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3532 case x${enable_threads} in
3533 x | xyes | xpthreads | xposix)
3538 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3539 xm_file=arm/xm-linux.h
3541 tm_file="arm/linux-elf.h"
3544 tm_file="arm/linux-elf26.h $tm_file"
3547 tmake_file="t-linux arm/t-linux"
3548 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3550 case x${enable_threads} in
3551 x | xyes | xpthreads | xposix)
3556 arm*-*-uclinux*) # ARM ucLinux
3557 tm_file=arm/uclinux-elf.h
3558 tmake_file=arm/t-arm-elf
3562 tmake_file=arm/t-bare
3565 tm_file=arm/ecos-elf.h
3566 tmake_file=arm/t-elf
3569 tm_file=arm/unknown-elf.h
3570 tmake_file=arm/t-arm-elf
3571 # tm_file=arm2/unknown-elf.h
3572 # tmake_file=arm2/t-arm-elf
3573 # out_file=arm2/arm.c
3574 # xm_file=arm2/xm-arm.h
3575 # md_file=arm2/arm.md
3576 # tm_p_file=arm2/arm-protos.h
3579 tm_file=arm/unknown-elf-oabi.h
3580 tmake_file=arm/t-arm-elf
3589 c1-convex-*) # Convex C1
3590 target_cpu_default=1
3593 c2-convex-*) # Convex C2
3594 target_cpu_default=2
3598 target_cpu_default=4
3602 target_cpu_default=8
3606 target_cpu_default=16
3611 tmake_file=c4x/t-c4x
3613 clipper-intergraph-clix*)
3614 tm_file="${tm_file} svr3.h clipper/clix.h"
3615 xm_file=clipper/xm-clix.h
3616 xmake_file=clipper/x-clix
3617 extra_headers=va-clipper.h
3618 extra_parts="crtbegin.o crtend.o"
3619 install_headers_dir=install-headers-cpio
3627 tm_file="fr30/fr30.h"
3628 tmake_file=fr30/t-fr30
3629 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3631 # This hasn't been upgraded to GCC 2.
3632 # fx80-alliant-*) # Alliant FX/80
3638 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3639 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3640 tmake_file="t-linux pa/t-linux"
3641 extra_parts="crtbegin.o crtend.o"
3644 if test x$enable_threads = xyes; then
3649 target_cpu_default="MASK_PA_11"
3650 tmake_file=pa/t-openbsd
3653 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3654 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3655 xm_file=pa/xm-papro.h
3659 target_cpu_default="MASK_PA_11"
3660 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3664 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3665 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3666 xm_file=pa/xm-papro.h
3670 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3674 tm_file="${tm_file} pa/som.h"
3675 target_cpu_default="MASK_PA_11"
3679 tm_file="${tm_file} pa/som.h"
3683 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3684 xm_file=pa/xm-pahpux.h
3685 xmake_file=pa/x-pa-hpux
3686 if test x$gas = xyes
3688 tm_file="${tm_file} pa/gas.h"
3690 install_headers_dir=install-headers-cpio
3693 hppa1.0-*-hpux8.0[0-2]*)
3694 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3695 xm_file=pa/xm-pahpux.h
3696 xmake_file=pa/x-pa-hpux
3697 if test x$gas = xyes
3699 tm_file="${tm_file} pa/pa-gas.h"
3701 tm_file="pa/pa-oldas.h ${tm_file}"
3703 install_headers_dir=install-headers-cpio
3706 hppa1.1-*-hpux8.0[0-2]*)
3707 target_cpu_default="MASK_PA_11"
3708 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3709 xm_file=pa/xm-pahpux.h
3710 xmake_file=pa/x-pa-hpux
3711 if test x$gas = xyes
3713 tm_file="${tm_file} pa/pa-gas.h"
3715 tm_file="pa/pa-oldas.h ${tm_file}"
3717 install_headers_dir=install-headers-cpio
3721 target_cpu_default="MASK_PA_11"
3722 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3723 xm_file=pa/xm-pahpux.h
3724 xmake_file=pa/x-pa-hpux
3725 if test x$gas = xyes
3727 tm_file="${tm_file} pa/pa-gas.h"
3729 install_headers_dir=install-headers-cpio
3733 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3734 xm_file=pa/xm-pahpux.h
3735 xmake_file=pa/x-pa-hpux
3736 if test x$gas = xyes
3738 tm_file="${tm_file} pa/pa-gas.h"
3740 install_headers_dir=install-headers-cpio
3743 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3744 target_cpu_default="MASK_PA_11"
3745 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3746 xm_file=pa/xm-pahpux.h
3747 xmake_file=pa/x-pa-hpux
3749 if test x$gas = xyes
3751 tm_file="${tm_file} pa/pa-gas.h"
3753 if test x$enable_threads = x; then
3754 enable_threads=$have_pthread_h
3756 if test x$enable_threads = xyes; then
3758 tmake_file="${tmake_file} pa/t-dce-thr"
3760 install_headers_dir=install-headers-cpio
3764 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3765 xm_file=pa/xm-pahpux.h
3766 xmake_file=pa/x-pa-hpux
3768 if test x$gas = xyes
3770 tm_file="${tm_file} pa/pa-gas.h"
3772 if test x$enable_threads = x; then
3773 enable_threads=$have_pthread_h
3775 if test x$enable_threads = xyes; then
3777 tmake_file="${tmake_file} pa/t-dce-thr"
3779 install_headers_dir=install-headers-cpio
3782 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3783 target_cpu_default="MASK_PA_11"
3784 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3785 xm_file=pa/xm-pahpux.h
3786 xmake_file=pa/x-pa-hpux
3788 if test x$gas = xyes
3790 tm_file="${tm_file} pa/pa-gas.h"
3792 # if test x$enable_threads = x; then
3793 # enable_threads=$have_pthread_h
3795 # if test x$enable_threads = xyes; then
3797 # tmake_file="${tmake_file} pa/t-dce-thr"
3799 install_headers_dir=install-headers-cpio
3803 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3804 xm_file=pa/xm-pahpux.h
3805 xmake_file=pa/x-pa-hpux
3806 if test x$gas = xyes
3808 tm_file="${tm_file} pa/pa-gas.h"
3810 # if test x$enable_threads = x; then
3811 # enable_threads=$have_pthread_h
3813 # if test x$enable_threads = xyes; then
3815 # tmake_file="${tmake_file} pa/t-dce-thr"
3817 install_headers_dir=install-headers-cpio
3820 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3821 target_cpu_default="MASK_PA_11"
3822 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3823 xm_file=pa/xm-pahpux.h
3824 xmake_file=pa/x-pa-hpux
3825 if test x$gas = xyes
3827 tm_file="${tm_file} pa/pa-gas.h"
3829 install_headers_dir=install-headers-cpio
3833 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3834 xm_file=pa/xm-pahpux.h
3835 xmake_file=pa/x-pa-hpux
3836 if test x$gas = xyes
3838 tm_file="${tm_file} pa/pa-gas.h"
3840 install_headers_dir=install-headers-cpio
3843 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3844 target_cpu_default="MASK_PA_11"
3845 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3846 xm_file=pa/xm-pahpux.h
3847 xmake_file=pa/x-pa-hpux
3848 if test x$gas = xyes
3850 tm_file="${tm_file} pa/pa-gas.h"
3852 install_headers_dir=install-headers-cpio
3856 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3857 xm_file=pa/xm-pahpux.h
3858 xmake_file=pa/x-pa-hpux
3859 if test x$gas = xyes
3861 tm_file="${tm_file} pa/pa-gas.h"
3863 install_headers_dir=install-headers-cpio
3867 tm_file="${tm_file} elfos.h pa/elf.h"
3868 target_cpu_default="MASK_PA_11"
3872 tm_file="${tm_file} pa/pa-mpeix.h"
3873 xm_file=pa/xm-pampeix.h
3874 xmake_file=pa/x-pa-mpeix
3875 echo "You must use gas. Assuming it is already installed."
3876 install_headers_dir=install-headers-tar
3879 i370-*-opened*) # IBM 360/370/390 Architecture
3880 xm_file=i370/xm-oe.h
3882 xmake_file=i370/x-oe
3883 tmake_file=i370/t-oe
3886 xm_file=i370/xm-mvs.h
3888 tmake_file=i370/t-mvs
3891 xm_file="xm-linux.h i370/xm-linux.h"
3893 tm_file="i370/linux.h ${tm_file}"
3894 tmake_file="t-linux i370/t-linux"
3895 # broken_install=yes
3896 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3897 # extra_parts="crtbegin.o crtend.o"
3901 if test x$enable_threads = xyes; then
3906 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3907 tm_file=i386/i386elf.h
3908 tmake_file=i386/t-i386elf
3911 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3912 if test x$gas = xyes
3914 tm_file=i386/aix386.h
3915 extra_parts="crtbegin.o crtend.o"
3916 tmake_file=i386/t-crtstuff
3918 tm_file=i386/aix386ng.h
3921 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3923 xmake_file=i386/x-aix
3925 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3926 xm_file="xm-alloca.h ${xm_file}"
3927 xm_defines="USG POSIX SMALL_ARG_MAX"
3928 xmake_file=i386/x-ncr3000
3929 if test x$stabs = xyes -a x$gas = xyes
3931 tm_file=i386/sysv4gdb.h
3933 tm_file=i386/sysv4.h
3935 extra_parts="crtbegin.o crtend.o"
3936 tmake_file=i386/t-crtpic
3940 xm_file=i386/xm-next.h
3941 tmake_file=i386/t-next
3942 xmake_file=i386/x-next
3943 extra_objs=nextstep.o
3944 extra_parts="crtbegin.o crtend.o"
3945 if test x$enable_threads = xyes; then
3949 i[34567]86-sequent-bsd*) # 80386 from Sequent
3951 if test x$gas = xyes
3953 tm_file=i386/seq-gas.h
3955 tm_file=i386/sequent.h
3958 i[34567]86-sequent-ptx1*)
3959 xm_defines="USG SVR3"
3960 xmake_file=i386/x-sysv3
3961 tm_file=i386/seq-sysv3.h
3962 tmake_file=i386/t-crtstuff
3963 extra_parts="crtbegin.o crtend.o"
3964 install_headers_dir=install-headers-cpio
3966 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3967 xm_defines="USG SVR3"
3968 xmake_file=i386/x-sysv3
3969 tm_file=i386/seq2-sysv3.h
3970 tmake_file=i386/t-crtstuff
3971 extra_parts="crtbegin.o crtend.o"
3972 install_headers_dir=install-headers-cpio
3974 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3975 xm_file="xm-alloca.h ${xm_file}"
3976 xm_defines="USG POSIX SMALL_ARG_MAX"
3978 tm_file=i386/ptx4-i.h
3980 extra_parts="crtbegin.o crtend.o"
3981 install_headers_dir=install-headers-cpio
3983 i386-sun-sunos*) # Sun i386 roadrunner
3988 i[34567]86-wrs-vxworks*)
3989 tm_file=i386/vxi386.h
3990 tmake_file=i386/t-i386bare
3991 thread_file='vxworks'
3994 tm_file=i386/i386-aout.h
3995 tmake_file=i386/t-i386bare
3997 i[34567]86-*-beospe*)
3998 xm_file=i386/xm-beos.h
3999 xm_defines="USE_C_ALLOCA"
4000 tmake_file=i386/t-beos
4001 tm_file=i386/beos-pe.h
4002 xmake_file=i386/x-beos
4005 i[34567]86-*-beoself* | i[34567]86-*-beos*)
4006 xm_file=i386/xm-beos.h
4007 tmake_file='i386/t-beos i386/t-crtpic'
4008 tm_file=i386/beos-elf.h
4009 xmake_file=i386/x-beos
4011 extra_parts='crtbegin.o crtend.o'
4013 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4014 tm_file=i386/bsd386.h
4015 # tmake_file=t-libc-ok
4018 tm_file=i386/386bsd.h
4019 # tmake_file=t-libc-ok
4020 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4023 i[34567]86-*-freebsdelf*)
4024 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4025 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4026 tmake_file=t-freebsd
4030 case x${enable_threads} in
4031 xyes | xpthreads | xposix)
4033 tmake_file="${tmake_file} t-freebsd-thread"
4037 i[34567]86-*-freebsd*)
4038 tm_file="i386/freebsd.h i386/perform.h"
4039 tmake_file=t-freebsd
4041 i[34567]86-*-netbsd*)
4042 tm_file=i386/netbsd.h
4046 i[34567]86-*-openbsd*)
4047 # we need collect2 until our bug is fixed...
4051 tm_file=i386/i386-coff.h
4052 tmake_file=i386/t-i386bare
4054 i[34567]86-*-isc*) # 80386 running ISC system
4055 xm_file="${xm_file} i386/xm-isc.h"
4056 xm_defines="USG SVR3"
4058 i[34567]86-*-isc[34]*)
4059 xmake_file=i386/x-isc3
4062 xmake_file=i386/x-isc
4065 if test x$gas = xyes -a x$stabs = xyes
4067 tm_file=i386/iscdbx.h
4068 tmake_file=i386/t-svr3dbx
4069 extra_parts="svr3.ifile svr3z.ifile"
4071 tm_file=i386/isccoff.h
4072 tmake_file=i386/t-crtstuff
4073 extra_parts="crtbegin.o crtend.o"
4075 install_headers_dir=install-headers-cpio
4077 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4079 xmake_file=x-linux-aout
4080 tmake_file="t-linux-aout i386/t-crtstuff"
4081 tm_file=i386/linux-oldld.h
4085 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4086 xmake_file=x-linux-aout
4087 tmake_file="t-linux-aout i386/t-crtstuff"
4088 tm_file=i386/linux-aout.h
4092 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4093 # GNU/Linux C library 5
4095 tm_file=i386/linux.h
4096 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4097 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4100 if test x$enable_threads = xyes; then
4101 thread_file='single'
4104 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4105 # aka GNU/Linux C library 6
4107 tm_file=i386/linux.h
4108 tmake_file="t-linux i386/t-crtstuff"
4109 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4112 if test x$enable_threads = xyes; then
4119 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4120 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4123 i[34567]86-pc-msdosdjgpp*)
4124 xm_file=i386/xm-djgpp.h
4125 tm_file=i386/djgpp.h
4126 tmake_file=i386/t-djgpp
4127 xmake_file=i386/x-djgpp
4131 case $host in *pc-msdosdjgpp*)
4136 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4138 tmake_file=t-libc-ok
4142 i[34567]86-*-lynxos*)
4143 if test x$gas = xyes
4147 tm_file=i386/lynx-ng.h
4149 xm_file=i386/xm-lynx.h
4150 tmake_file=i386/t-i386bare
4155 # tmake_file=t-libc-ok
4158 i[34567]86-*-osfrose*) # 386 using OSF/rose
4159 if test x$elf = xyes
4161 tm_file=i386/osfelf.h
4164 tm_file=i386/osfrose.h
4167 xm_file="i386/xm-osf.h ${xm_file}"
4168 xmake_file=i386/x-osfrose
4169 tmake_file=i386/t-osf
4170 extra_objs=halfpic.o
4172 i[34567]86-go32-rtems*)
4174 xm_file=i386/xm-go32.h
4175 tm_file=i386/go32-rtems.h
4176 tmake_file="i386/t-go32 t-rtems"
4178 i[34567]86-*-rtemscoff*)
4180 tm_file=i386/rtems.h
4181 tmake_file="i386/t-i386bare t-rtems"
4183 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4185 tm_file=i386/rtemself.h
4186 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4187 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4189 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4190 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4191 xm_defines="USG SVR3"
4192 xmake_file=i386/x-sco5
4193 install_headers_dir=install-headers-cpio
4195 if test x$gas = xyes
4197 tm_file="i386/sco5gas.h ${tm_file}"
4198 tmake_file=i386/t-sco5gas
4200 tmake_file=i386/t-sco5
4202 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4204 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4205 xm_file="${xm_file} i386/xm-sco.h"
4206 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4207 xmake_file=i386/x-sco4
4208 install_headers_dir=install-headers-cpio
4209 if test x$stabs = xyes
4211 tm_file=i386/sco4dbx.h
4212 tmake_file=i386/t-svr3dbx
4213 extra_parts="svr3.ifile svr3z.rfile"
4216 tmake_file=i386/t-crtstuff
4217 extra_parts="crtbegin.o crtend.o"
4219 # The default EAFS filesystem supports long file names.
4220 # Truncating the target makes $host != $target which
4221 # makes gcc think it is doing a cross-compile.
4222 # truncate_target=yes
4224 i[34567]86-*-sco*) # 80386 running SCO system
4225 xm_file=i386/xm-sco.h
4226 xmake_file=i386/x-sco
4227 install_headers_dir=install-headers-cpio
4228 if test x$stabs = xyes
4230 tm_file=i386/scodbx.h
4231 tmake_file=i386/t-svr3dbx
4232 extra_parts="svr3.ifile svr3z.rfile"
4235 extra_parts="crtbegin.o crtend.o"
4236 tmake_file=i386/t-crtstuff
4240 i[34567]86-*-solaris2*)
4241 xm_file="xm-alloca.h ${xm_file}"
4242 xm_defines="USG POSIX SMALL_ARG_MAX"
4244 if test x$gas = xyes; then
4245 # Only needed if gas does not support -s
4246 tm_file="i386/sol2gas.h ${tm_file}"
4248 tmake_file=i386/t-sol2
4249 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4251 if test x${enable_threads} = x; then
4252 enable_threads=$have_pthread_h
4253 if test x${enable_threads} = x; then
4254 enable_threads=$have_thread_h
4257 if test x${enable_threads} = xyes; then
4258 if test x${have_pthread_h} = xyes; then
4261 thread_file='solaris'
4265 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4266 xm_file="xm-alloca.h ${xm_file}"
4267 xm_defines="USG POSIX"
4268 tm_file=i386/sysv5.h
4269 if test x$stabs = xyes
4271 tm_file="${tm_file} dbx.h"
4273 tmake_file=i386/t-crtpic
4275 extra_parts="crtbegin.o crtend.o"
4276 if test x$enable_threads = xyes; then
4280 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4281 xm_file="xm-alloca.h ${xm_file}"
4282 xm_defines="USG POSIX SMALL_ARG_MAX"
4283 tm_file=i386/sysv4.h
4284 if test x$stabs = xyes
4286 tm_file="${tm_file} dbx.h"
4288 tmake_file=i386/t-crtpic
4290 extra_parts="crtbegin.o crtend.o"
4292 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4293 xm_file="xm-alloca.h ${xm_file}"
4294 xm_defines="USG POSIX"
4296 tmake_file="i386/t-crtpic i386/t-udk"
4298 extra_parts="crtbegin.o crtend.o"
4299 install_headers_dir=install-headers-cpio
4301 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4303 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4304 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4305 if test x$stabs = xyes
4307 tm_file=i386/osf1elfgdb.h
4309 tm_file=i386/osf1elf.h
4311 tmake_file=i386/t-osf1elf
4312 xmake_file=i386/x-osf1elf
4313 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4315 i[34567]86-*-sysv*) # Intel 80386's running system V
4316 xm_defines="USG SVR3"
4317 xmake_file=i386/x-sysv3
4318 if test x$gas = xyes
4320 if test x$stabs = xyes
4322 tm_file=i386/svr3dbx.h
4323 tmake_file=i386/t-svr3dbx
4324 extra_parts="svr3.ifile svr3z.rfile"
4326 tm_file=i386/svr3gas.h
4327 extra_parts="crtbegin.o crtend.o"
4328 tmake_file=i386/t-crtstuff
4331 tm_file=i386/sysv3.h
4332 extra_parts="crtbegin.o crtend.o"
4333 tmake_file=i386/t-crtstuff
4336 i386-*-vsta) # Intel 80386's running VSTa kernel
4337 xm_file="${xm_file} i386/xm-vsta.h"
4339 tmake_file=i386/t-vsta
4340 xmake_file=i386/x-vsta
4343 xm_file="${xm_file} i386/xm-cygwin.h"
4344 tmake_file=i386/t-cygwin
4345 tm_file=i386/win32.h
4346 xmake_file=i386/x-cygwin
4348 if test x$enable_threads = xyes; then
4353 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4354 xm_file="${xm_file} i386/xm-cygwin.h"
4355 tmake_file=i386/t-cygwin
4356 tm_file=i386/cygwin.h
4357 xmake_file=i386/x-cygwin
4359 if test x$enable_threads = xyes; then
4364 i[34567]86-*-mingw32*)
4365 tm_file=i386/mingw32.h
4366 xm_file="${xm_file} i386/xm-mingw32.h"
4367 tmake_file="i386/t-cygwin i386/t-mingw32"
4369 xmake_file=i386/x-cygwin
4370 if test x$enable_threads = xyes; then
4377 *minwg32crt* | *mingw32*)
4378 tm_file="${tm_file} i386/crtdll.h"
4384 xm_file="${xm_file} i386/xm-uwin.h"
4385 xm_defines="USG NO_STAB_H"
4386 tmake_file="i386/t-cygwin i386/t-uwin"
4388 xmake_file=i386/x-cygwin
4389 if test x$enable_threads = xyes; then
4394 i[34567]86-*-interix*)
4395 tm_file="i386/i386-interix.h interix.h"
4396 xm_file="i386/xm-i386-interix.h xm-interix.h"
4398 tmake_file="i386/t-interix"
4399 extra_objs=interix.o
4400 xmake_file=x-interix
4401 if test x$enable_threads = xyes ; then
4404 if test x$stabs = xyes ; then
4405 tm_file="${tm_file} dbxcoff.h"
4408 i[34567]86-*-winnt3*)
4409 tm_file=i386/win-nt.h
4410 out_file=i386/i386.c
4411 xm_file="xm-winnt.h ${xm_file}"
4412 xmake_file=winnt/x-winnt
4413 tmake_file=i386/t-winnt
4414 extra_host_objs="winnt.o oldnames.o"
4415 extra_gcc_objs="spawnv.o oldnames.o"
4416 if test x$gnu_ld != xyes
4418 extra_programs=ld.exe
4420 if test x$enable_threads = xyes; then
4424 i[34567]86-dg-dgux*)
4425 xm_file="xm-alloca.h ${xm_file}"
4426 xm_defines="USG POSIX"
4427 out_file=i386/dgux.c
4429 tmake_file=i386/t-dgux
4430 xmake_file=i386/x-dgux
4431 install_headers_dir=install-headers-cpio
4433 i860-alliant-*) # Alliant FX/2800
4434 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4435 xm_file="${xm_file}"
4436 xmake_file=i860/x-fx2800
4437 tmake_file=i860/t-fx2800
4438 extra_parts="crtbegin.o crtend.o"
4441 tm_file="${tm_file} i860/bsd.h"
4442 if test x$gas = xyes
4444 tm_file="${tm_file} i860/bsd-gas.h"
4449 tm_file="${tm_file} i860/mach.h"
4450 tmake_file=t-libc-ok
4452 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4453 tm_file="${tm_file} svr3.h i860/paragon.h"
4454 xm_defines="USG SVR3"
4458 tm_file="${tm_file} svr3.h i860/sysv3.h"
4459 xm_defines="USG SVR3"
4460 xmake_file=i860/x-sysv3
4461 extra_parts="crtbegin.o crtend.o"
4464 tm_file="${tm_file} svr4.h i860/sysv4.h"
4465 xm_defines="USG SVR3"
4466 xmake_file=i860/x-sysv4
4468 extra_parts="crtbegin.o crtend.o"
4470 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4471 tm_file="${tm_file} i960/vx960.h"
4472 tmake_file=i960/t-vxworks960
4474 thread_file='vxworks'
4476 i960-wrs-vxworks5* | i960-wrs-vxworks)
4477 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4478 tmake_file=i960/t-vxworks960
4480 thread_file='vxworks'
4483 tm_file="${tm_file} i960/vx960.h"
4484 tmake_file=i960/t-vxworks960
4486 thread_file='vxworks'
4489 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4490 tmake_file=i960/t-960bare
4494 tmake_file="i960/t-960bare t-rtems"
4495 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4498 i960-*-*) # Default i960 environment.
4502 extra_parts="crtinit.o crtfini.o"
4504 m68000-convergent-sysv*)
4506 xm_file="m68k/xm-3b1.h ${xm_file}"
4509 extra_headers=math-68881.h
4511 m68000-hp-bsd*) # HP 9000/200 running BSD
4512 tm_file=m68k/hp2bsd.h
4513 xmake_file=m68k/x-hp2bsd
4515 extra_headers=math-68881.h
4517 m68000-hp-hpux*) # HP 9000 series 300
4518 xm_file="xm-alloca.h ${xm_file}"
4520 if test x$gas = xyes
4522 xmake_file=m68k/x-hp320g
4523 tm_file=m68k/hp310g.h
4525 xmake_file=m68k/x-hp320
4526 tm_file=m68k/hp310.h
4528 install_headers_dir=install-headers-cpio
4530 extra_headers=math-68881.h
4535 extra_headers=math-68881.h
4538 tm_file=m68k/sun2o4.h
4540 extra_headers=math-68881.h
4543 xm_file="m68k/xm-3b1.h ${xm_file}"
4545 if test x$gas = xyes
4552 extra_headers=math-68881.h
4554 m68k-apple-aux*) # Apple Macintosh running A/UX
4555 xm_defines="USG AUX"
4556 tmake_file=m68k/t-aux
4557 install_headers_dir=install-headers-cpio
4558 extra_headers=math-68881.h
4559 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4561 if test "$gnu_ld" = yes
4563 tm_file="${tm_file} m68k/auxgld.h"
4565 tm_file="${tm_file} m68k/auxld.h"
4567 if test "$gas" = yes
4569 tm_file="${tm_file} m68k/auxgas.h"
4571 tm_file="${tm_file} m68k/auxas.h"
4573 tm_file="${tm_file} m68k/a-ux.h"
4577 tm_file=m68k/apollo68.h
4578 xmake_file=m68k/x-apollo68
4580 extra_headers=math-68881.h
4583 m68k-altos-sysv*) # Altos 3068
4584 if test x$gas = xyes
4586 tm_file=m68k/altos3068.h
4589 echo "The Altos is supported only with the GNU assembler" 1>&2
4592 extra_headers=math-68881.h
4594 m68k-bull-sysv*) # Bull DPX/2
4595 if test x$gas = xyes
4597 if test x$stabs = xyes
4599 tm_file=m68k/dpx2cdbx.h
4601 tm_file=m68k/dpx2g.h
4606 xm_file="xm-alloca.h ${xm_file}"
4608 xmake_file=m68k/x-dpx2
4610 extra_headers=math-68881.h
4612 m68k-atari-sysv4*) # Atari variant of V.4.
4613 tm_file=m68k/atari.h
4614 xm_file="xm-alloca.h ${xm_file}"
4615 xm_defines="USG FULL_PROTOTYPES"
4617 extra_parts="crtbegin.o crtend.o"
4618 extra_headers=math-68881.h
4621 m68k-motorola-sysv*)
4622 tm_file=m68k/mot3300.h
4623 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4624 if test x$gas = xyes
4626 xmake_file=m68k/x-mot3300-gas
4627 if test x$gnu_ld = xyes
4629 tmake_file=m68k/t-mot3300-gald
4631 tmake_file=m68k/t-mot3300-gas
4635 xmake_file=m68k/x-mot3300
4636 if test x$gnu_ld = xyes
4638 tmake_file=m68k/t-mot3300-gld
4640 tmake_file=m68k/t-mot3300
4644 gdb_needs_out_file_path=yes
4645 extra_parts="crt0.o mcrt0.o"
4646 extra_headers=math-68881.h
4649 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4650 tm_file=m68k/tower-as.h
4651 xm_defines="USG SVR3"
4652 xmake_file=m68k/x-tower
4653 extra_parts="crtbegin.o crtend.o"
4654 extra_headers=math-68881.h
4657 tm_file=m68k/plexus.h
4658 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4661 extra_headers=math-68881.h
4665 xm_file="xm-alloca.h ${xm_file}"
4667 extra_headers=math-68881.h
4670 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4671 xm_defines="USG unos"
4672 xmake_file=m68k/x-crds
4675 extra_headers=math-68881.h
4677 m68k-cbm-sysv4*) # Commodore variant of V.4.
4679 xm_file="xm-alloca.h ${xm_file}"
4680 xm_defines="USG FULL_PROTOTYPES"
4681 xmake_file=m68k/x-amix
4683 extra_parts="crtbegin.o crtend.o"
4684 extra_headers=math-68881.h
4688 tm_file=m68k/ccur-GAS.h
4689 xmake_file=m68k/x-ccur
4690 extra_headers=math-68881.h
4694 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4695 tm_file=m68k/hp3bsd44.h
4696 xmake_file=m68k/x-hp3bsd44
4698 extra_headers=math-68881.h
4701 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4702 tm_file=m68k/hp3bsd.h
4704 extra_headers=math-68881.h
4708 if test x$with_fp = xno
4710 tm_file=m68k/isi-nfp.h
4716 extra_headers=math-68881.h
4718 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4719 xm_file="xm-alloca.h ${xm_file}"
4721 if test x$gas = xyes
4723 xmake_file=m68k/x-hp320g
4724 tm_file=m68k/hp320g.h
4726 xmake_file=m68k/x-hp320
4727 tm_file=m68k/hpux7.h
4729 install_headers_dir=install-headers-cpio
4731 extra_headers=math-68881.h
4734 m68k-hp-hpux*) # HP 9000 series 300
4735 xm_file="xm-alloca.h ${xm_file}"
4737 if test x$gas = xyes
4739 xmake_file=m68k/x-hp320g
4740 tm_file=m68k/hp320g.h
4742 xmake_file=m68k/x-hp320
4743 tm_file=m68k/hp320.h
4745 install_headers_dir=install-headers-cpio
4747 extra_headers=math-68881.h
4751 tm_file=m68k/sun3mach.h
4753 extra_headers=math-68881.h
4757 if test x$gas = xyes
4759 tm_file=m68k/news3gas.h
4761 tm_file=m68k/news3.h
4764 extra_headers=math-68881.h
4767 m68k-sony-bsd* | m68k-sony-newsos*)
4768 if test x$gas = xyes
4770 tm_file=m68k/newsgas.h
4775 extra_headers=math-68881.h
4778 m68k-next-nextstep2*)
4779 tm_file=m68k/next21.h
4780 xm_file="m68k/xm-next.h ${xm_file}"
4781 tmake_file=m68k/t-next
4782 xmake_file=m68k/x-next
4783 extra_objs=nextstep.o
4784 extra_headers=math-68881.h
4788 m68k-next-nextstep[34]*)
4790 xm_file="m68k/xm-next.h ${xm_file}"
4791 tmake_file=m68k/t-next
4792 xmake_file=m68k/x-next
4793 extra_objs=nextstep.o
4794 extra_parts="crtbegin.o crtend.o"
4795 extra_headers=math-68881.h
4797 if test x$enable_threads = xyes; then
4802 if test x$with_fp = xno
4804 tm_file=m68k/sun3n3.h
4806 tm_file=m68k/sun3o3.h
4810 extra_headers=math-68881.h
4812 m68k-sun-sunos*) # For SunOS 4 (the default).
4813 if test x$with_fp = xno
4815 tm_file=m68k/sun3n.h
4821 extra_headers=math-68881.h
4824 tm_file=m68k/vxm68k.h
4825 tmake_file=m68k/t-vxworks68
4826 extra_headers=math-68881.h
4827 thread_file='vxworks'
4831 tmake_file=m68k/t-m68kbare
4832 tm_file="m68k/m68k-aout.h libgloss.h"
4833 extra_headers=math-68881.h
4837 tmake_file=m68k/t-m68kbare
4838 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4839 extra_headers=math-68881.h
4842 m68020-*-elf* | m68k-*-elf*)
4843 tm_file="m68k/m68020-elf.h"
4844 xm_file=m68k/xm-m68kv.h
4845 tmake_file=m68k/t-m68kelf
4846 header_files=math-68881.h
4849 if test x$gas = xyes
4853 tm_file=m68k/lynx-ng.h
4855 xm_file=m68k/xm-lynx.h
4857 tmake_file=m68k/t-lynx
4858 extra_headers=math-68881.h
4862 tm_file=m68k/netbsd.h
4869 # we need collect2 until our bug is fixed...
4872 m68k-*-sysv3*) # Motorola m68k's running system V.3
4873 xm_file="xm-alloca.h ${xm_file}"
4875 xmake_file=m68k/x-m68kv
4876 extra_parts="crtbegin.o crtend.o"
4877 extra_headers=math-68881.h
4880 m68k-*-sysv4*) # Motorola m68k's running system V.4
4881 tm_file=m68k/m68kv4.h
4882 xm_file="xm-alloca.h ${xm_file}"
4885 extra_parts="crtbegin.o crtend.o"
4886 extra_headers=math-68881.h
4889 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4892 tm_file=m68k/linux-aout.h
4893 tmake_file="t-linux-aout m68k/t-linux-aout"
4894 extra_headers=math-68881.h
4898 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4899 # with ELF format using the
4900 # GNU/Linux C library 5
4902 tm_file=m68k/linux.h
4903 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4904 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4905 extra_headers=math-68881.h
4909 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4910 # with ELF format using glibc 2
4911 # aka the GNU/Linux C library 6.
4913 tm_file=m68k/linux.h
4914 tmake_file="t-linux m68k/t-linux"
4915 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4916 extra_headers=math-68881.h
4919 if test x$enable_threads = xyes; then
4924 tmake_file=m68k/t-m68kbare
4925 tm_file=m68k/m68k-psos.h
4926 extra_headers=math-68881.h
4930 tmake_file="m68k/t-m68kbare t-rtems"
4931 tm_file=m68k/rtems.h
4932 extra_headers=math-68881.h
4935 m68k-*-rtemself*|m68k-*-rtems*)
4936 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4937 tm_file=m68k/rtemself.h
4938 extra_headers=math-68881.h
4944 tm_file=m88k/dguxbcs.h
4945 tmake_file=m88k/t-dguxbcs
4949 tmake_file=m88k/t-dgux
4952 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4953 xmake_file=m88k/x-dgux
4954 if test x$gas = xyes
4956 tmake_file=m88k/t-dgux-gas
4959 m88k-dolphin-sysv3*)
4960 tm_file=m88k/dolph.h
4961 extra_parts="crtbegin.o crtend.o"
4962 xm_file="m88k/xm-sysv3.h ${xm_file}"
4963 xmake_file=m88k/x-dolph
4964 if test x$gas = xyes
4966 tmake_file=m88k/t-m88k-gas
4969 m88k-tektronix-sysv3)
4970 tm_file=m88k/tekXD88.h
4971 extra_parts="crtbegin.o crtend.o"
4972 xm_file="m88k/xm-sysv3.h ${xm_file}"
4973 xmake_file=m88k/x-tekXD88
4974 if test x$gas = xyes
4976 tmake_file=m88k/t-m88k-gas
4980 tm_file=m88k/m88k-aout.h
4983 tm_file=m88k/m88k-coff.h
4984 tmake_file=m88k/t-bug
4988 extra_parts="crtbegin.o crtend.o"
4989 if test x$gas = xyes
4991 tmake_file=m88k/t-luna-gas
4993 tmake_file=m88k/t-luna
4997 tmake_file="${tmake_file} m88k/t-luna-gas"
5000 tm_file=m88k/sysv3.h
5001 extra_parts="crtbegin.o crtend.o"
5002 xm_file="m88k/xm-sysv3.h ${xm_file}"
5003 xmake_file=m88k/x-sysv3
5004 if test x$gas = xyes
5006 tmake_file=m88k/t-m88k-gas
5010 tm_file=m88k/sysv4.h
5011 extra_parts="crtbegin.o crtend.o"
5012 xmake_file=m88k/x-sysv4
5013 tmake_file=m88k/t-sysv4
5016 tm_file=mcore/mcore-elf.h
5017 tmake_file=mcore/t-mcore
5020 tm_file=mcore/mcore-pe.h
5021 tmake_file=mcore/t-mcore-pe
5023 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5024 if test "x$gnu_ld" = xyes
5026 tm_file="mips/iris6.h mips/iris6gld.h"
5028 tm_file=mips/iris6.h
5030 tmake_file=mips/t-iris6
5031 xm_file=mips/xm-iris6.h
5032 xmake_file=mips/x-iris6
5033 # if test x$enable_threads = xyes; then
5034 # thread_file='irix'
5038 tm_file="mips/elf.h mips/vxworks.h"
5039 tmake_file=mips/t-ecoff
5042 extra_parts="crtbegin.o crtend.o"
5043 thread_file='vxworks'
5045 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5046 tm_file="mips/iris6.h mips/cross64.h"
5048 xm_file="mips/xm-iris5.h"
5049 xmake_file=mips/x-iris
5050 tmake_file=mips/t-cross64
5051 # See comment in mips/iris[56].h files.
5053 # if test x$enable_threads = xyes; then
5054 # thread_file='irix'
5058 if test x$gas = xyes
5060 if test x$stabs = xyes
5062 tm_file=mips/iris5gdb.h
5064 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5067 tm_file=mips/sni-svr4.h
5070 xmake_file=mips/x-sni-svr4
5071 tmake_file=mips/t-mips-gas
5072 if test x$gnu_ld != xyes
5077 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5078 if test x$gas = xyes
5080 tm_file="mips/iris5.h mips/iris5gas.h"
5081 if test x$stabs = xyes
5083 tm_file="${tm_file} dbx.h"
5086 tm_file=mips/iris5.h
5089 xm_file="mips/xm-iris5.h"
5090 xmake_file=mips/x-iris
5091 # mips-tfile doesn't work yet
5092 tmake_file=mips/t-mips-gas
5093 # See comment in mips/iris5.h file.
5095 # if test x$enable_threads = xyes; then
5096 # thread_file='irix'
5099 mips-sgi-irix4loser*) # Mostly like a MIPS.
5100 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5101 if test x$stabs = xyes; then
5102 tm_file="${tm_file} dbx.h"
5105 xmake_file=mips/x-iris
5106 if test x$gas = xyes
5108 tmake_file=mips/t-mips-gas
5110 extra_passes="mips-tfile mips-tdump"
5112 if test x$gnu_ld != xyes
5116 # if test x$enable_threads = xyes; then
5117 # thread_file='irix'
5120 mips-sgi-irix4*) # Mostly like a MIPS.
5121 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5122 if test x$stabs = xyes; then
5123 tm_file="${tm_file} dbx.h"
5126 xmake_file=mips/x-iris
5127 if test x$gas = xyes
5129 tmake_file=mips/t-mips-gas
5131 extra_passes="mips-tfile mips-tdump"
5133 if test x$gnu_ld != xyes
5137 # if test x$enable_threads = xyes; then
5138 # thread_file='irix'
5141 mips-sgi-*) # Mostly like a MIPS.
5142 tm_file="mips/iris3.h ${tm_file}"
5143 if test x$stabs = xyes; then
5144 tm_file="${tm_file} dbx.h"
5147 xmake_file=mips/x-iris3
5148 if test x$gas = xyes
5150 tmake_file=mips/t-mips-gas
5152 extra_passes="mips-tfile mips-tdump"
5154 if test x$gnu_ld != xyes
5159 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5160 tm_file="mips/osfrose.h ${tm_file}"
5161 xmake_file=mips/x-osfrose
5162 tmake_file=mips/t-osfrose
5163 extra_objs=halfpic.o
5166 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5167 tm_file=mips/dec-osf1.h
5168 if test x$stabs = xyes; then
5169 tm_file="${tm_file} dbx.h"
5171 xmake_file=mips/x-dec-osf1
5172 if test x$gas = xyes
5174 tmake_file=mips/t-mips-gas
5176 tmake_file=mips/t-ultrix
5177 extra_passes="mips-tfile mips-tdump"
5179 if test x$gnu_ld != xyes
5184 mips-dec-bsd*) # Decstation running 4.4 BSD
5185 tm_file=mips/dec-bsd.h
5186 if test x$gas = xyes
5188 tmake_file=mips/t-mips-gas
5190 tmake_file=mips/t-ultrix
5191 extra_passes="mips-tfile mips-tdump"
5193 if test x$gnu_ld != xyes
5198 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5199 tm_file=mips/netbsd.h
5200 # On NetBSD, the headers are already okay, except for math.h.
5203 mips*-*-linux*) # Linux MIPS, either endian.
5206 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
5207 *) tm_file="mips/elf.h mips/linux.h" ;;
5209 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5212 if test x$enable_threads = xyes; then
5216 mips*el-*-openbsd*) # mips little endian
5217 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5219 mips*-*-openbsd*) # mips big endian
5220 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5221 tm_file="mips/openbsd-be.h ${tm_file}"
5223 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5224 tm_file="mips/news4.h ${tm_file}"
5225 if test x$stabs = xyes; then
5226 tm_file="${tm_file} dbx.h"
5228 if test x$gas = xyes
5230 tmake_file=mips/t-mips-gas
5232 extra_passes="mips-tfile mips-tdump"
5234 if test x$gnu_ld != xyes
5238 xmake_file=mips/x-sony
5240 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5241 # That is based on svr4.
5242 # t-svr4 is not right because this system doesn't use ELF.
5243 tm_file="mips/news5.h ${tm_file}"
5244 if test x$stabs = xyes; then
5245 tm_file="${tm_file} dbx.h"
5248 if test x$gas = xyes
5250 tmake_file=mips/t-mips-gas
5252 extra_passes="mips-tfile mips-tdump"
5254 if test x$gnu_ld != xyes
5259 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5260 tm_file="mips/svr4-5.h mips/svr4-t.h"
5261 if test x$stabs = xyes; then
5262 tm_file="${tm_file} dbx.h"
5265 xmake_file=mips/x-sysv
5266 if test x$gas = xyes
5268 tmake_file=mips/t-mips-gas
5269 extra_parts="crtbegin.o crtend.o"
5271 tmake_file=mips/t-mips
5272 extra_passes="mips-tfile mips-tdump"
5274 if test x$gnu_ld != xyes
5279 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5280 tm_file="mips/ultrix.h ${tm_file}"
5281 if test x$stabs = xyes; then
5282 tm_file="${tm_file} dbx.h"
5284 xmake_file=mips/x-ultrix
5285 if test x$gas = xyes
5287 tmake_file=mips/t-mips-gas
5289 tmake_file=mips/t-ultrix
5290 extra_passes="mips-tfile mips-tdump"
5292 if test x$gnu_ld != xyes
5297 mips-*-riscos[56789]bsd*)
5298 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5299 if test x$stabs = xyes; then
5300 tm_file="${tm_file} dbx.h"
5302 if test x$gas = xyes
5304 tmake_file=mips/t-bsd-gas
5306 tmake_file=mips/t-bsd
5307 extra_passes="mips-tfile mips-tdump"
5309 if test x$gnu_ld != xyes
5314 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5315 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5316 if test x$stabs = xyes; then
5317 tm_file="${tm_file} dbx.h"
5319 if test x$gas = xyes
5321 tmake_file=mips/t-bsd-gas
5323 tmake_file=mips/t-bsd
5324 extra_passes="mips-tfile mips-tdump"
5326 if test x$gnu_ld != xyes
5331 mips-*-riscos[56789]sysv4*)
5332 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5333 if test x$stabs = xyes; then
5334 tm_file="${tm_file} dbx.h"
5336 xmake_file=mips/x-sysv
5337 if test x$gas = xyes
5339 tmake_file=mips/t-svr4-gas
5341 tmake_file=mips/t-svr4
5342 extra_passes="mips-tfile mips-tdump"
5344 if test x$gnu_ld != xyes
5349 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5350 tm_file="mips/svr4-4.h ${tm_file}"
5351 if test x$stabs = xyes; then
5352 tm_file="${tm_file} dbx.h"
5355 xmake_file=mips/x-sysv
5356 if test x$gas = xyes
5358 tmake_file=mips/t-svr4-gas
5360 tmake_file=mips/t-svr4
5361 extra_passes="mips-tfile mips-tdump"
5363 if test x$gnu_ld != xyes
5368 mips-*-riscos[56789]sysv*)
5369 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5370 if test x$stabs = xyes; then
5371 tm_file="${tm_file} dbx.h"
5374 xmake_file=mips/x-sysv
5375 if test x$gas = xyes
5377 tmake_file=mips/t-svr3-gas
5379 tmake_file=mips/t-svr3
5380 extra_passes="mips-tfile mips-tdump"
5382 if test x$gnu_ld != xyes
5387 mips-*-sysv* | mips-*-riscos*sysv*)
5388 tm_file="mips/svr3-4.h ${tm_file}"
5389 if test x$stabs = xyes; then
5390 tm_file="${tm_file} dbx.h"
5393 xmake_file=mips/x-sysv
5394 if test x$gas = xyes
5396 tmake_file=mips/t-svr3-gas
5398 tmake_file=mips/t-svr3
5399 extra_passes="mips-tfile mips-tdump"
5401 if test x$gnu_ld != xyes
5406 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5407 tm_file=mips/mips-5.h
5408 if test x$stabs = xyes; then
5409 tm_file="${tm_file} dbx.h"
5411 if test x$gas = xyes
5413 tmake_file=mips/t-mips-gas
5415 extra_passes="mips-tfile mips-tdump"
5417 if test x$gnu_ld != xyes
5425 tm_file=mips/ecoffl.h
5426 if test x$stabs = xyes; then
5427 tm_file="${tm_file} dbx.h"
5429 tmake_file=mips/t-ecoff
5432 tm_file="gofast.h mips/ecoff.h"
5433 if test x$stabs = xyes; then
5434 tm_file="${tm_file} dbx.h"
5436 tmake_file=mips/t-ecoff
5439 tm_file="mips/elfl.h"
5440 tmake_file=mips/t-elf
5443 tm_file="mips/elf.h"
5444 tmake_file=mips/t-elf
5447 tm_file="mips/elfl64.h"
5448 tmake_file=mips/t-elf
5450 mips64orionel-*-elf*)
5451 tm_file="mips/elforion.h mips/elfl64.h"
5452 tmake_file=mips/t-elf
5455 tm_file="mips/elf64.h"
5456 tmake_file=mips/t-elf
5459 tm_file="mips/elforion.h mips/elf64.h"
5460 tmake_file=mips/t-elf
5462 mips64orion-*-rtems*)
5463 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5464 tmake_file="mips/t-elf t-rtems"
5467 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5468 tmake_file=mips/t-r3900
5471 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5472 tmake_file=mips/t-r3900
5474 mips-*-*) # Default MIPS RISC-OS 4.0.
5475 if test x$stabs = xyes; then
5476 tm_file="${tm_file} dbx.h"
5478 if test x$gas = xyes
5480 tmake_file=mips/t-mips-gas
5482 extra_passes="mips-tfile mips-tdump"
5484 if test x$gnu_ld != xyes
5492 tm_file="mn10200/mn10200.h"
5493 if test x$stabs = xyes
5495 tm_file="${tm_file} dbx.h"
5501 tm_file="mn10300/mn10300.h"
5502 if test x$stabs = xyes
5504 tm_file="${tm_file} dbx.h"
5509 tm_file=ns32k/encore.h
5513 tm_file=ns32k/sequent.h
5517 tm_file=ns32k/tek6100.h
5521 tm_file=ns32k/tek6200.h
5524 # This has not been updated to GCC 2.
5527 # xmake_file=ns32k/x-genix
5528 # tm_file=ns32k/genix.h
5532 tm_file=ns32k/merlin.h
5536 tm_file=ns32k/pc532-mach.h
5540 tm_file=ns32k/pc532-min.h
5541 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5546 tm_file=ns32k/netbsd.h
5547 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5548 # On NetBSD, the headers are already okay, except for math.h.
5553 tm_file="${tm_file} pdp11/2bsd.h"
5560 # This has not been updated to GCC 2.
5563 # xmake_file=pyr/x-pyr
5568 tm_file="svr4.h pj/linux.h ${tm_file}"
5573 tm_file="svr4.h pj/pjl.h ${tm_file}"
5580 xmake_file=romp/x-mach
5587 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5591 tm_file=rs6000/beos.h
5592 xm_file=rs6000/xm-beos.h
5593 tmake_file=rs6000/t-beos
5594 xmake_file=rs6000/x-beos
5596 powerpc-*-sysv* | powerpc-*-elf*)
5597 tm_file=rs6000/sysv4.h
5598 xm_file="rs6000/xm-sysv4.h"
5599 xm_defines="USG POSIX"
5600 extra_headers=ppc-asm.h
5601 if test x$gas = xyes
5603 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5605 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5607 xmake_file=rs6000/x-sysv4
5610 tm_file=rs6000/eabiaix.h
5611 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5612 extra_headers=ppc-asm.h
5615 tm_file=rs6000/eabisim.h
5616 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5617 extra_headers=ppc-asm.h
5620 tm_file=rs6000/eabi.h
5621 if test x$gas = xyes
5623 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5625 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5627 extra_headers=ppc-asm.h
5630 tm_file=rs6000/rtems.h
5631 if test x$gas = xyes
5633 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5635 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5637 extra_headers=ppc-asm.h
5639 powerpc-*-linux-gnulibc1)
5640 tm_file=rs6000/linux.h
5641 xm_file=rs6000/xm-sysv4.h
5642 out_file=rs6000/rs6000.c
5643 if test x$gas = xyes
5645 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5647 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5650 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5651 extra_headers=ppc-asm.h
5652 if test x$enable_threads = xyes; then
5656 powerpc-*-linux-gnu*)
5657 tm_file=rs6000/linux.h
5658 xm_file="rs6000/xm-sysv4.h"
5659 xm_defines="USG ${xm_defines}"
5660 out_file=rs6000/rs6000.c
5661 if test x$gas = xyes
5663 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5665 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5668 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5669 extra_headers=ppc-asm.h
5670 if test x$enable_threads = xyes; then
5674 powerpc-wrs-vxworks*)
5676 xm_file="rs6000/xm-sysv4.h"
5677 xm_defines="USG POSIX"
5678 tm_file=rs6000/vxppc.h
5679 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5680 extra_headers=ppc-asm.h
5681 thread_file='vxworks'
5683 powerpcle-*-sysv* | powerpcle-*-elf*)
5684 tm_file=rs6000/sysv4le.h
5685 xm_file="rs6000/xm-sysv4.h"
5686 xm_defines="USG POSIX"
5687 if test x$gas = xyes
5689 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5691 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5693 xmake_file=rs6000/x-sysv4
5694 extra_headers=ppc-asm.h
5696 powerpcle-*-eabisim*)
5697 tm_file=rs6000/eabilesim.h
5698 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5699 extra_headers=ppc-asm.h
5702 tm_file=rs6000/eabile.h
5703 if test x$gas = xyes
5705 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5707 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5709 extra_headers=ppc-asm.h
5711 powerpcle-*-winnt* )
5712 tm_file=rs6000/win-nt.h
5713 tmake_file=rs6000/t-winnt
5715 if test x$enable_threads = xyes; then
5718 extra_headers=ppc-asm.h
5720 powerpcle-*-pe | powerpcle-*-cygwin*)
5721 tm_file=rs6000/cygwin.h
5722 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5723 tmake_file=rs6000/t-winnt
5724 xmake_file=rs6000/x-cygwin
5726 if test x$enable_threads = xyes; then
5730 extra_headers=ppc-asm.h
5732 powerpcle-*-solaris2*)
5733 tm_file=rs6000/sol2.h
5734 xm_file="rs6000/xm-sysv4.h"
5735 xm_defines="USG POSIX"
5736 if test x$gas = xyes
5738 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5740 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5742 xmake_file=rs6000/x-sysv4
5743 extra_headers=ppc-asm.h
5745 rs6000-ibm-aix3.[01]*)
5746 tm_file=rs6000/aix31.h
5747 xmake_file=rs6000/x-aix31
5751 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5752 tm_file=rs6000/aix3newas.h
5753 if test x$host != x$target
5755 tmake_file=rs6000/t-xnewas
5757 tmake_file=rs6000/t-newas
5762 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5763 tm_file=rs6000/aix41.h
5764 if test x$host != x$target
5766 tmake_file=rs6000/t-xnewas
5768 tmake_file=rs6000/t-newas
5770 if test "$gnu_ld" = yes
5772 xmake_file=rs6000/x-aix41-gld
5774 xmake_file=rs6000/x-aix41
5779 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5780 tm_file=rs6000/aix43.h
5781 if test x$host != x$target
5783 tmake_file=rs6000/t-xaix43
5785 tmake_file=rs6000/t-aix43
5787 xmake_file=rs6000/x-aix43
5791 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5792 tm_file=rs6000/aix43.h
5793 if test x$host != x$target
5795 tmake_file=rs6000/t-xaix43
5797 tmake_file=rs6000/t-aix43
5799 xmake_file=rs6000/x-aix43
5812 tm_file=rs6000/mach.h
5813 xm_file="${xm_file} rs6000/xm-mach.h"
5814 xmake_file=rs6000/x-mach
5818 tm_file=rs6000/lynx.h
5819 xm_file=rs6000/xm-lynx.h
5820 tmake_file=rs6000/t-rs6000
5821 xmake_file=rs6000/x-lynx
5829 tmake_file="sh/t-sh t-rtems"
5830 tm_file=sh/rtemself.h
5834 tmake_file="sh/t-sh t-rtems"
5843 xm_file="xm-alloca.h ${xm_file}"
5846 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5847 tm_file=sparc/vxsparc.h
5848 tmake_file=sparc/t-vxsparc
5850 thread_file='vxworks'
5853 tmake_file=sparc/t-sparcbare
5854 tm_file="sparc/aout.h libgloss.h"
5857 tm_file=sparc/netbsd.h
5862 # we need collect2 until our bug is fixed...
5870 tmake_file=sparc/t-elf
5871 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5875 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5876 xm_file="${xm_file} sparc/xm-linux.h"
5877 tm_file=sparc/linux-aout.h
5881 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5882 xm_file="${xm_file} sparc/xm-linux.h"
5884 tm_file=sparc/linux.h
5885 tmake_file="t-linux t-linux-gnulibc1"
5886 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5890 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5891 xm_file="${xm_file} sparc/xm-linux.h"
5893 tm_file=sparc/linux.h
5894 tmake_file="t-linux"
5895 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5897 if test x$enable_threads = xyes; then
5903 if test x$gas = xyes
5905 tm_file=sparc/lynx.h
5907 tm_file=sparc/lynx-ng.h
5909 xm_file=sparc/xm-lynx.h
5910 tmake_file=sparc/t-sunos41
5914 tmake_file="sparc/t-sparcbare t-rtems"
5915 tm_file=sparc/rtems.h
5917 sparc-*-rtems*|sparc-*-rtemself*)
5918 tm_file="sparc/rtemself.h"
5919 tmake_file="sparc/t-elf t-rtems"
5920 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5924 sparcv9-*-solaris2*)
5925 if test x$gnu_ld = xyes
5927 tm_file=sparc/sol2-64.h
5929 tm_file=sparc/sol2-sld-64.h
5931 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5932 xm_defines="USG POSIX"
5933 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5934 xmake_file=sparc/x-sysv4
5935 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5937 if test x${enable_threads} = x ; then
5938 enable_threads=$have_pthread_h
5939 if test x${enable_threads} = x ; then
5940 enable_threads=$have_thread_h
5943 if test x${enable_threads} = xyes ; then
5944 if test x${have_pthread_h} = xyes ; then
5947 thread_file='solaris'
5951 sparc-hal-solaris2*)
5952 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
5953 xm_defines="USG POSIX"
5954 tm_file="sparc/sol2.h sparc/hal.h"
5955 tmake_file="sparc/t-halos sparc/t-sol2"
5956 xmake_file=sparc/x-sysv4
5957 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5966 thread_file='solaris'
5969 if test x$gnu_ld = xyes
5971 tm_file=sparc/sol2.h
5973 tm_file=sparc/sol2-sld.h
5975 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
5976 xm_defines="USG POSIX"
5977 tmake_file=sparc/t-sol2
5978 xmake_file=sparc/x-sysv4
5979 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5981 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
5983 if test x$gnu_ld = xyes
5985 tm_file=sparc/sol2-64.h
5987 tm_file=sparc/sol2-sld-64.h
5989 tmake_file="$tmake_file sparc/t-sol2-64"
6000 if test x${enable_threads} = x; then
6001 enable_threads=$have_pthread_h
6002 if test x${enable_threads} = x; then
6003 enable_threads=$have_thread_h
6006 if test x${enable_threads} = xyes; then
6007 if test x${have_pthread_h} = xyes; then
6010 thread_file='solaris'
6015 tm_file=sparc/sunos4.h
6016 tmake_file=sparc/t-sunos40
6020 tm_file=sparc/sunos4.h
6021 tmake_file=sparc/t-sunos41
6023 if test x$gas = xyes; then
6024 tm_file="${tm_file} sparc/sun4gas.h"
6028 tm_file=sparc/sun4o3.h
6032 tm_file=sparc/sysv4.h
6033 xm_file="sparc/xm-sysv4.h"
6034 xm_defines="USG POSIX"
6036 xmake_file=sparc/x-sysv4
6037 extra_parts="crtbegin.o crtend.o"
6040 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6041 xm_defines="USG POSIX"
6042 tm_file=sparc/vxsim.h
6043 tmake_file=sparc/t-vxsparc
6044 xmake_file=sparc/x-sysv4
6047 tm_file="sparc/splet.h libgloss.h"
6048 tmake_file=sparc/t-splet
6051 tm_file="sparc/litecoff.h libgloss.h"
6052 tmake_file=sparc/t-sparclite
6055 tm_file="sparc/lite.h aoutos.h libgloss.h"
6056 tmake_file=sparc/t-sparclite
6059 tm_file="sparc/liteelf.h"
6060 tmake_file=sparc/t-sparclite
6061 extra_parts="crtbegin.o crtend.o"
6064 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6065 tmake_file=sparc/t-sp86x
6068 tm_file="sparc/sp86x-elf.h"
6069 tmake_file=sparc/t-sp86x
6070 extra_parts="crtbegin.o crtend.o"
6073 tmake_file=sparc/t-sp64
6074 tm_file=sparc/sp64-aout.h
6077 tmake_file=sparc/t-sp64
6078 tm_file=sparc/sp64-elf.h
6079 extra_parts="crtbegin.o crtend.o"
6081 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6082 tmake_file="t-linux sparc/t-linux64"
6083 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6084 tm_file=sparc/linux64.h
6086 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6088 if test x$enable_threads = xyes; then
6093 # This hasn't been upgraded to GCC 2.
6094 # tahoe-harris-*) # Harris tahoe, using COFF.
6095 # tm_file=tahoe/harris.h
6097 # tahoe-*-bsd*) # tahoe running BSD
6099 thumb-*-coff* | thumbel-*-coff*)
6101 out_file=arm/thumb.c
6102 xm_file=arm/xm-thumb.h
6103 md_file=arm/thumb.md
6104 tmake_file=arm/t-thumb
6105 tm_p_file=arm/thumb-protos.h
6107 thumb-*-elf* | thumbel-*-elf*)
6109 out_file=arm/thumb.c
6110 xm_file=arm/xm-thumb.h
6111 md_file=arm/thumb.md
6112 tmake_file=arm/t-thumb-elf
6113 tm_p_file=arm/thumb-protos.h
6116 tm_file=arm/linux-telf.h
6117 out_file=arm/thumb.c
6118 xm_file=arm/xm-thumb.h
6119 md_file=arm/thumb.md
6120 tmake_file=arm/t-thumb-linux
6121 tm_p_file=arm/thumb-protos.h
6124 tm_file=arm/uclinux-telf.h
6125 out_file=arm/thumb.c
6126 md_file=arm/thumb.md
6127 tmake_file=arm/t-thumb-linux
6128 xm_file=arm/xm-thumb.h
6129 tm_p_file=arm/thumb-protos.h
6133 out_file=arm/thumb.c
6134 xm_file=arm/xm-thumb.h
6135 md_file=arm/thumb.md
6136 tmake_file=arm/t-thumb
6137 thread_file='vxworks'
6138 tm_p_file=arm/thumb-protos.h
6142 out_file=arm/thumb.c
6143 xm_file=arm/xm-thumb.h
6144 md_file=arm/thumb.md
6145 tmake_file=arm/t-pe-thumb
6147 tm_p_file=arm/thumb-protos.h
6149 # This hasn't been upgraded to GCC 2.
6156 tm_file="v850/rtems.h"
6157 xm_file="v850/xm-v850.h"
6158 tmake_file="v850/t-v850 t-rtems"
6159 if test x$stabs = xyes
6161 tm_file="${tm_file} dbx.h"
6166 target_cpu_default="TARGET_CPU_generic"
6168 tm_file="v850/v850.h"
6169 xm_file="v850/xm-v850.h"
6170 tmake_file=v850/t-v850
6171 if test x$stabs = xyes
6173 tm_file="${tm_file} dbx.h"
6177 vax-*-bsd*) # vaxen running BSD
6181 vax-*-sysv*) # vaxen running system V
6182 tm_file="${tm_file} vax/vaxv.h"
6187 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6193 tmake_file="${tmake_file} vax/t-openbsd"
6195 vax-*-ultrix*) # vaxen running ultrix
6196 tm_file="${tm_file} vax/ultrix.h"
6200 vax-*-vms*) # vaxen running VMS
6201 xm_file=vax/xm-vms.h
6205 vax-*-*) # vax default entry
6209 xm_file="${xm_file} xm-svr3"
6213 echo "Configuration $machine not supported" 1>&2
6220 ;; # Existing GNU/Linux systems do not use the GNU setup.
6222 # On the GNU system, the setup is just about the same on
6223 # each different CPU. The specific machines that GNU
6224 # supports are matched above and just set $cpu_type.
6225 xm_file="xm-gnu.h ${xm_file}"
6226 tm_file=${cpu_type}/gnu.h
6227 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6228 # GNU always uses ELF.
6230 # GNU tools are the only tools.
6233 xmake_file=x-linux # These details are the same as Linux.
6234 tmake_file=t-gnu # These are not.
6237 xmake_try_sysv=x-sysv
6238 install_headers_dir=install-headers-cpio
6241 install_headers_dir=install-headers-cpio
6245 # Distinguish i[34567]86
6246 # Also, do not run mips-tfile on MIPS if using gas.
6247 # Process --with-cpu= for PowerPC/rs6000
6248 target_cpu_default2=
6251 target_cpu_default2=1
6254 case $target_alias in
6256 target_cpu_default2=4
6259 target_cpu_default2=2
6263 i686-*-* | i786-*-*)
6264 target_cpu_default2=3
6269 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6272 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6275 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6278 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6281 target_cpu_default2="MASK_CPU_EV5"
6285 if test x$gas = xyes
6287 if test "$target_cpu_default2" = ""
6289 target_cpu_default2="MASK_GAS"
6291 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6296 case "x$with_cpu" in
6299 target_cpu_default2="TARGET_CPU_generic"
6302 # Distinguish cores, and major variants
6303 # arm7m doesn't exist, but D & I don't affect code
6304 xarm[23678] | xarm250 | xarm[67][01]0 \
6305 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6306 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6307 | xstrongarm | xstrongarm110 | xstrongarm1100)
6308 target_cpu_default2="TARGET_CPU_$with_cpu"
6312 echo "--with-cpu must be passed a value" 1>&2
6317 if test x$pass2done = xyes
6319 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6326 mips*-*-ecoff* | mips*-*-elf*)
6327 if test x$gas = xyes
6329 if test x$gnu_ld = xyes
6331 target_cpu_default2=20
6333 target_cpu_default2=16
6338 if test x$gas = xyes
6340 target_cpu_default2=16
6343 powerpc*-*-* | rs6000-*-*)
6344 case "x$with_cpu" in
6348 xcommon | xpower | xpower2 | xpowerpc | xrios \
6349 | xrios1 | xrios2 | xrsc | xrsc1 \
6350 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6351 | xec603e | x740 | x750 | x401 \
6352 | x403 | x505 | x801 | x821 | x823 | x860)
6353 target_cpu_default2="\"$with_cpu\""
6357 echo "--with-cpu must be passed a value" 1>&2
6362 if test x$pass2done = xyes
6364 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6371 case ".$with_cpu" in
6373 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6375 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6376 target_cpu_default2="TARGET_CPU_$with_cpu"
6379 if test x$pass2done = xyes
6381 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6389 if test "$target_cpu_default2" != ""
6391 if test "$target_cpu_default" != ""
6393 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6395 target_cpu_default=$target_cpu_default2
6399 # No need for collect2 if we have the GNU linker.
6400 # Actually, there is now; GNU ld doesn't handle the EH info or
6401 # collecting for shared libraries.
6408 # Save data on machine being used to compile GCC in build_xm_file.
6409 # Save data on host machine in vars host_xm_file and host_xmake_file.
6410 if test x$pass1done = x
6412 if test x"$xm_file" = x
6413 then build_xm_file=$cpu_type/xm-$cpu_type.h
6414 else build_xm_file=$xm_file
6416 build_xm_defines=$xm_defines
6417 build_install_headers_dir=$install_headers_dir
6418 build_exeext=$exeext
6421 if test x$pass2done = x
6423 if test x"$xm_file" = x
6424 then host_xm_file=$cpu_type/xm-$cpu_type.h
6425 else host_xm_file=$xm_file
6427 host_xm_defines=$xm_defines
6428 if test x"$xmake_file" = x
6429 then xmake_file=$cpu_type/x-$cpu_type
6431 host_xmake_file="$xmake_file"
6432 host_truncate_target=$truncate_target
6433 host_extra_gcc_objs=$extra_gcc_objs
6434 host_extra_objs=$extra_host_objs
6441 extra_objs="${host_extra_objs} ${extra_objs}"
6443 # Default the target-machine variables that were not explicitly set.
6444 if test x"$tm_file" = x
6445 then tm_file=$cpu_type/$cpu_type.h; fi
6447 if test x$extra_headers = x
6448 then extra_headers=; fi
6450 if test x"$xm_file" = x
6451 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6453 if test x$md_file = x
6454 then md_file=$cpu_type/$cpu_type.md; fi
6456 if test x$out_file = x
6457 then out_file=$cpu_type/$cpu_type.c; fi
6459 if test x"$tmake_file" = x
6460 then tmake_file=$cpu_type/t-$cpu_type
6463 if test x"$dwarf2" = xyes
6464 then tm_file="$tm_file tm-dwarf2.h"
6467 if test x$float_format = x
6468 then float_format=i64
6471 if test $float_format = none
6472 then float_h_file=Makefile.in
6473 else float_h_file=float-$float_format.h
6476 # Handle cpp installation.
6477 if test x$enable_cpp != xno
6479 tmake_file="$tmake_file t-install-cpp"
6482 # Say what files are being used for the output code and MD file.
6483 echo "Using \`$srcdir/config/$out_file' to output insns."
6484 echo "Using \`$srcdir/config/$md_file' as machine description file."
6487 for f in $tm_file; do
6490 if test $count = ax; then
6491 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6493 echo "Using the following target machine macro files:"
6494 for f in $tm_file; do
6495 echo " $srcdir/config/$f"
6500 for f in $host_xm_file; do
6503 if test $count = ax; then
6504 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6506 echo "Using the following host machine macro files:"
6507 for f in $host_xm_file; do
6508 echo " $srcdir/config/$f"
6512 if test "$host_xm_file" != "$build_xm_file"; then
6514 for f in $build_xm_file; do
6517 if test $count = ax; then
6518 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6520 echo "Using the following build machine macro files:"
6521 for f in $build_xm_file; do
6522 echo " $srcdir/config/$f"
6527 if test x$thread_file = x; then
6528 if test x$target_thread_file != x; then
6529 thread_file=$target_thread_file
6531 thread_file='single'
6535 # Set up the header files.
6536 # $links is the list of header files to create.
6537 # $vars is the list of shell variables with file names to include.
6538 # auto-host.h is the file containing items generated by autoconf and is
6539 # the first file included by config.h.
6541 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6543 # If host=build, it is correct to have hconfig include auto-host.h
6544 # as well. If host!=build, we are in error and need to do more
6545 # work to find out the build config parameters.
6546 if test x$host = x$build
6548 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6550 # We create a subdir, then run autoconf in the subdir.
6551 # To prevent recursion we set host and build for the new
6552 # invocation of configure to the build for this invocation
6559 /*) realsrcdir=${srcdir};;
6560 *) realsrcdir=../${srcdir};;
6562 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6563 --target=$target --host=$build --build=$build
6565 # We just finished tests for the build machine, so rename
6566 # the file auto-build.h in the gcc directory.
6567 mv auto-host.h ../auto-build.h
6570 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6573 xm_file="gansidecl.h ${xm_file}"
6574 tm_file="gansidecl.h ${tm_file}"
6576 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6577 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6578 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6581 if test -f config.status; then mv -f config.status config.bak; fi
6584 while test -n "$vars"
6586 set $vars; var=$1; shift; vars=$*
6587 set $links; link=$1; shift; links=$*
6588 set $defines; define=$1; shift; defines=$*
6591 # Make sure the file is created, even if it is empty.
6594 # Define TARGET_CPU_DEFAULT if the system wants one.
6595 # This substitutes for lots of *.h files.
6596 if test "$target_cpu_default" != "" -a $link = tm.h
6598 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6601 for file in `eval echo '$'$var`; do
6606 echo '#ifdef IN_GCC' >>$link
6609 echo "#include \"$file\"" >>$link
6614 echo '#endif' >>$link
6619 for def in `eval echo '$'$define`; do
6620 echo "#ifndef $def" >>$link
6621 echo "#define $def" >>$link
6622 echo "#endif" >>$link
6626 # Truncate the target if necessary
6627 if test x$host_truncate_target != x; then
6628 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6631 # Get the version trigger filename from the toplevel
6632 if test "${with_gcc_version_trigger+set}" = set; then
6633 gcc_version_trigger=$with_gcc_version_trigger
6635 gcc_version_trigger=${srcdir}/version.c
6637 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6639 # Internationalization
6641 VERSION="$gcc_version"
6642 cat >> confdefs.h <<EOF
6643 #define PACKAGE "$PACKAGE"
6646 cat >> confdefs.h <<EOF
6647 #define VERSION "$VERSION"
6655 # NLS support is still experimental, so disable it by default for now.
6656 # Check whether --enable-nls or --disable-nls was given.
6657 if test "${enable_nls+set}" = set; then
6658 enableval="$enable_nls"
6666 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6667 echo "configure:6668: checking for strerror in -lcposix" >&5
6668 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 ac_save_LIBS="$LIBS"
6673 LIBS="-lcposix $LIBS"
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6688 eval "ac_cv_lib_$ac_lib_var=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 eval "ac_cv_lib_$ac_lib_var=no"
6696 LIBS="$ac_save_LIBS"
6699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 LIBS="$LIBS -lcposix"
6703 echo "$ac_t""no" 1>&6
6708 echo $ac_n "checking for working const""... $ac_c" 1>&6
6709 echo "configure:6710: checking for working const" >&5
6710 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6719 /* Ultrix mips cc rejects this. */
6720 typedef int charset[2]; const charset x;
6721 /* SunOS 4.1.1 cc rejects this. */
6722 char const *const *ccp;
6724 /* NEC SVR4.0.2 mips cc rejects this. */
6725 struct point {int x, y;};
6726 static struct point const zero = {0,0};
6727 /* AIX XL C 1.02.0.0 rejects this.
6728 It does not let you subtract one const X* pointer from another in an arm
6729 of an if-expression whose if-part is not a constant expression */
6730 const char *g = "string";
6731 ccp = &g + (g ? g-g : 0);
6732 /* HPUX 7.0 cc rejects these. */
6735 ccp = (char const *const *) p;
6736 { /* SCO 3.2v4 cc rejects this. */
6738 char const *s = 0 ? (char *) 0 : (char const *) 0;
6742 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6744 const int *foo = &x[0];
6747 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6748 typedef const int *iptr;
6752 { /* AIX XL C 1.02.0.0 rejects this saying
6753 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6754 struct s { int j; const int *ap[3]; };
6755 struct s *b; b->j = 5;
6757 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6763 if { (eval echo configure:6764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6767 echo "configure: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6775 echo "$ac_t""$ac_cv_c_const" 1>&6
6776 if test $ac_cv_c_const = no; then
6777 cat >> confdefs.h <<\EOF
6783 echo $ac_n "checking for inline""... $ac_c" 1>&6
6784 echo "configure:6785: checking for inline" >&5
6785 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6789 for ac_kw in inline __inline__ __inline; do
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6798 if { (eval echo configure:6799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6800 ac_cv_c_inline=$ac_kw; break
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6810 echo "$ac_t""$ac_cv_c_inline" 1>&6
6811 case "$ac_cv_c_inline" in
6813 no) cat >> confdefs.h <<\EOF
6817 *) cat >> confdefs.h <<EOF
6818 #define inline $ac_cv_c_inline
6823 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6824 echo "configure:6825: checking for off_t" >&5
6825 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 #include <sys/types.h>
6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6840 ac_cv_type_off_t=yes
6848 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6849 if test $ac_cv_type_off_t = no; then
6850 cat >> confdefs.h <<\EOF
6856 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6857 echo "configure:6858: checking for size_t" >&5
6858 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <sys/types.h>
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6873 ac_cv_type_size_t=yes
6876 ac_cv_type_size_t=no
6881 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6882 if test $ac_cv_type_size_t = no; then
6883 cat >> confdefs.h <<\EOF
6884 #define size_t unsigned
6889 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6890 # for constant arguments. Useless!
6891 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6892 echo "configure:6893: checking for working alloca.h" >&5
6893 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6896 cat > conftest.$ac_ext <<EOF
6897 #line 6898 "configure"
6898 #include "confdefs.h"
6901 char *p = alloca(2 * sizeof(int));
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6906 ac_cv_header_alloca_h=yes
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 ac_cv_header_alloca_h=no
6916 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6917 if test $ac_cv_header_alloca_h = yes; then
6918 cat >> confdefs.h <<\EOF
6919 #define HAVE_ALLOCA_H 1
6924 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6925 echo "configure:6926: checking for alloca" >&5
6926 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6934 # define alloca __builtin_alloca
6937 # include <malloc.h>
6938 # define alloca _alloca
6941 # include <alloca.h>
6946 # ifndef alloca /* predefined by HP cc +Olibcalls */
6955 char *p = (char *) alloca(1);
6958 if { (eval echo configure:6959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6960 ac_cv_func_alloca_works=yes
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6965 ac_cv_func_alloca_works=no
6970 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6971 if test $ac_cv_func_alloca_works = yes; then
6972 cat >> confdefs.h <<\EOF
6973 #define HAVE_ALLOCA 1
6978 if test $ac_cv_func_alloca_works = no; then
6979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6980 # that cause trouble. Some versions do not even contain alloca or
6981 # contain a buggy version. If you still want to use their alloca,
6982 # use ar to extract alloca.o from them instead of compiling alloca.c.
6983 ALLOCA=alloca.${ac_objext}
6984 cat >> confdefs.h <<\EOF
6989 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6990 echo "configure:6991: checking whether alloca needs Cray hooks" >&5
6991 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 #if defined(CRAY) && ! defined(CRAY2)
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 egrep "webecray" >/dev/null 2>&1; then
7016 echo "$ac_t""$ac_cv_os_cray" 1>&6
7017 if test $ac_cv_os_cray = yes; then
7018 for ac_func in _getb67 GETB67 getb67; do
7019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7020 echo "configure:7021: checking for $ac_func" >&5
7021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes,
7028 which can conflict with char $ac_func(); below. */
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7037 /* The GNU C library defines this for functions which it implements
7038 to always fail with ENOSYS. Some functions are actually named
7039 something starting with __ and the normal name is an alias. */
7040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7050 eval "ac_cv_func_$ac_func=yes"
7052 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7055 eval "ac_cv_func_$ac_func=no"
7060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 cat >> confdefs.h <<EOF
7063 #define CRAY_STACKSEG_END $ac_func
7068 echo "$ac_t""no" 1>&6
7074 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7075 echo "configure:7076: checking stack direction for C alloca" >&5
7076 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 if test "$cross_compiling" = yes; then
7080 ac_cv_c_stack_direction=0
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 find_stack_direction ()
7087 static char *addr = 0;
7092 return find_stack_direction ();
7095 return (&dummy > addr) ? 1 : -1;
7099 exit (find_stack_direction() < 0);
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7104 ac_cv_c_stack_direction=1
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 ac_cv_c_stack_direction=-1
7116 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7117 cat >> confdefs.h <<EOF
7118 #define STACK_DIRECTION $ac_cv_c_stack_direction
7123 for ac_hdr in unistd.h
7125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7127 echo "configure:7128: checking for $ac_hdr" >&5
7128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7137 { (eval echo configure:7138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7139 if test -z "$ac_err"; then
7141 eval "ac_cv_header_$ac_safe=yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 eval "ac_cv_header_$ac_safe=no"
7151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7152 echo "$ac_t""yes" 1>&6
7153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7154 cat >> confdefs.h <<EOF
7155 #define $ac_tr_hdr 1
7159 echo "$ac_t""no" 1>&6
7163 for ac_func in getpagesize
7165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7166 echo "configure:7167: checking for $ac_func" >&5
7167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7168 echo $ac_n "(cached) $ac_c" 1>&6
7170 cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 /* System header to define __stub macros and hopefully few prototypes,
7174 which can conflict with char $ac_func(); below. */
7176 /* Override any gcc2 internal prototype to avoid an error. */
7177 /* We use char because int might match the return type of a gcc2
7178 builtin and then its argument prototype would still apply. */
7183 /* The GNU C library defines this for functions which it implements
7184 to always fail with ENOSYS. Some functions are actually named
7185 something starting with __ and the normal name is an alias. */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 eval "ac_cv_func_$ac_func=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 eval "ac_cv_func_$ac_func=no"
7206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7207 echo "$ac_t""yes" 1>&6
7208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7209 cat >> confdefs.h <<EOF
7210 #define $ac_tr_func 1
7214 echo "$ac_t""no" 1>&6
7218 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7219 echo "configure:7220: checking for working mmap" >&5
7220 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7221 echo $ac_n "(cached) $ac_c" 1>&6
7223 if test "$cross_compiling" = yes; then
7224 ac_cv_func_mmap_fixed_mapped=no
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7230 /* Thanks to Mike Haertel and Jim Avera for this test.
7231 Here is a matrix of mmap possibilities:
7232 mmap private not fixed
7233 mmap private fixed at somewhere currently unmapped
7234 mmap private fixed at somewhere already mapped
7235 mmap shared not fixed
7236 mmap shared fixed at somewhere currently unmapped
7237 mmap shared fixed at somewhere already mapped
7238 For private mappings, we should verify that changes cannot be read()
7239 back from the file, nor mmap's back from the file at a different
7240 address. (There have been systems where private was not correctly
7241 implemented like the infamous i386 svr4.0, and systems where the
7242 VM page cache was not coherent with the filesystem buffer cache
7243 like early versions of FreeBSD and possibly contemporary NetBSD.)
7244 For shared mappings, we should conversely verify that changes get
7245 propogated back to all the places they're supposed to be.
7247 Grep wants private fixed already mapped.
7248 The main things grep needs to know about mmap are:
7249 * does it exist and is it safe to write into the mmap'd area
7250 * how to use it (BSD variants) */
7251 #include <sys/types.h>
7253 #include <sys/mman.h>
7255 /* This mess was copied from the GNU getpagesize.h. */
7256 #ifndef HAVE_GETPAGESIZE
7257 # ifdef HAVE_UNISTD_H
7258 # include <unistd.h>
7261 /* Assume that all systems that can run configure have sys/param.h. */
7262 # ifndef HAVE_SYS_PARAM_H
7263 # define HAVE_SYS_PARAM_H 1
7266 # ifdef _SC_PAGESIZE
7267 # define getpagesize() sysconf(_SC_PAGESIZE)
7268 # else /* no _SC_PAGESIZE */
7269 # ifdef HAVE_SYS_PARAM_H
7270 # include <sys/param.h>
7271 # ifdef EXEC_PAGESIZE
7272 # define getpagesize() EXEC_PAGESIZE
7273 # else /* no EXEC_PAGESIZE */
7275 # define getpagesize() NBPG * CLSIZE
7278 # endif /* no CLSIZE */
7279 # else /* no NBPG */
7281 # define getpagesize() NBPC
7282 # else /* no NBPC */
7284 # define getpagesize() PAGESIZE
7285 # endif /* PAGESIZE */
7286 # endif /* no NBPC */
7287 # endif /* no NBPG */
7288 # endif /* no EXEC_PAGESIZE */
7289 # else /* no HAVE_SYS_PARAM_H */
7290 # define getpagesize() 8192 /* punt totally */
7291 # endif /* no HAVE_SYS_PARAM_H */
7292 # endif /* no _SC_PAGESIZE */
7294 #endif /* no HAVE_GETPAGESIZE */
7297 extern "C" { void *malloc(unsigned); }
7305 char *data, *data2, *data3;
7309 pagesize = getpagesize();
7312 * First, make a file with some known garbage in it.
7314 data = malloc(pagesize);
7317 for (i = 0; i < pagesize; ++i)
7318 *(data + i) = rand();
7320 fd = creat("conftestmmap", 0600);
7323 if (write(fd, data, pagesize) != pagesize)
7328 * Next, try to mmap the file at a fixed address which
7329 * already has something else allocated at it. If we can,
7330 * also make sure that we see the same garbage.
7332 fd = open("conftestmmap", O_RDWR);
7335 data2 = malloc(2 * pagesize);
7338 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7339 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7340 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7342 for (i = 0; i < pagesize; ++i)
7343 if (*(data + i) != *(data2 + i))
7347 * Finally, make sure that changes to the mapped area
7348 * do not percolate back to the file as seen by read().
7349 * (This is a bug on some variants of i386 svr4.0.)
7351 for (i = 0; i < pagesize; ++i)
7352 *(data2 + i) = *(data2 + i) + 1;
7353 data3 = malloc(pagesize);
7356 if (read(fd, data3, pagesize) != pagesize)
7358 for (i = 0; i < pagesize; ++i)
7359 if (*(data + i) != *(data3 + i))
7362 unlink("conftestmmap");
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7369 ac_cv_func_mmap_fixed_mapped=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 ac_cv_func_mmap_fixed_mapped=no
7381 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7382 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7383 cat >> confdefs.h <<\EOF
7390 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7391 unistd.h sys/param.h
7393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7395 echo "configure:7396: checking for $ac_hdr" >&5
7396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7405 { (eval echo configure:7406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7407 if test -z "$ac_err"; then
7409 eval "ac_cv_header_$ac_safe=yes"
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7415 eval "ac_cv_header_$ac_safe=no"
7419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7420 echo "$ac_t""yes" 1>&6
7421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7422 cat >> confdefs.h <<EOF
7423 #define $ac_tr_hdr 1
7427 echo "$ac_t""no" 1>&6
7431 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7432 strdup __argz_count __argz_stringify __argz_next
7434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7435 echo "configure:7436: checking for $ac_func" >&5
7436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7437 echo $ac_n "(cached) $ac_c" 1>&6
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 /* System header to define __stub macros and hopefully few prototypes,
7443 which can conflict with char $ac_func(); below. */
7445 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7452 /* The GNU C library defines this for functions which it implements
7453 to always fail with ENOSYS. Some functions are actually named
7454 something starting with __ and the normal name is an alias. */
7455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7463 if { (eval echo configure:7464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7465 eval "ac_cv_func_$ac_func=yes"
7467 echo "configure: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7470 eval "ac_cv_func_$ac_func=no"
7475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7476 echo "$ac_t""yes" 1>&6
7477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7478 cat >> confdefs.h <<EOF
7479 #define $ac_tr_func 1
7483 echo "$ac_t""no" 1>&6
7488 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7489 for ac_func in stpcpy
7491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7492 echo "configure:7493: checking for $ac_func" >&5
7493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* System header to define __stub macros and hopefully few prototypes,
7500 which can conflict with char $ac_func(); below. */
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7509 /* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520 if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7522 eval "ac_cv_func_$ac_func=yes"
7524 echo "configure: failed program was:" >&5
7525 cat conftest.$ac_ext >&5
7527 eval "ac_cv_func_$ac_func=no"
7532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7535 cat >> confdefs.h <<EOF
7536 #define $ac_tr_func 1
7540 echo "$ac_t""no" 1>&6
7545 if test "${ac_cv_func_stpcpy}" = "yes"; then
7546 cat >> confdefs.h <<\EOF
7547 #define HAVE_STPCPY 1
7552 if test $ac_cv_header_locale_h = yes; then
7553 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7554 echo "configure:7555: checking for LC_MESSAGES" >&5
7555 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7566 if { (eval echo configure:7567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7568 am_cv_val_LC_MESSAGES=yes
7570 echo "configure: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7573 am_cv_val_LC_MESSAGES=no
7578 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7579 if test $am_cv_val_LC_MESSAGES = yes; then
7580 cat >> confdefs.h <<\EOF
7581 #define HAVE_LC_MESSAGES 1
7586 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7587 echo "configure:7588: checking whether NLS is requested" >&5
7588 # Check whether --enable-nls or --disable-nls was given.
7589 if test "${enable_nls+set}" = set; then
7590 enableval="$enable_nls"
7596 echo "$ac_t""$USE_NLS" 1>&6
7599 USE_INCLUDED_LIBINTL=no
7601 if test "$USE_NLS" = "yes"; then
7602 cat >> confdefs.h <<\EOF
7603 #define ENABLE_NLS 1
7606 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7607 echo "configure:7608: checking whether included gettext is requested" >&5
7608 # Check whether --with-included-gettext or --without-included-gettext was given.
7609 if test "${with_included_gettext+set}" = set; then
7610 withval="$with_included_gettext"
7611 nls_cv_force_use_gnu_gettext=$withval
7613 nls_cv_force_use_gnu_gettext=no
7616 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7618 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7619 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7621 nls_cv_header_libgt=
7624 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7625 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7626 echo "configure:7627: checking for libintl.h" >&5
7627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 #include <libintl.h>
7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7638 if test -z "$ac_err"; then
7640 eval "ac_cv_header_$ac_safe=yes"
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7646 eval "ac_cv_header_$ac_safe=no"
7650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7651 echo "$ac_t""yes" 1>&6
7652 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7653 echo "configure:7654: checking for gettext in libc" >&5
7654 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7655 echo $ac_n "(cached) $ac_c" 1>&6
7657 cat > conftest.$ac_ext <<EOF
7658 #line 7659 "configure"
7659 #include "confdefs.h"
7660 #include <libintl.h>
7662 return (int) gettext ("")
7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7667 gt_cv_func_gettext_libc=yes
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7672 gt_cv_func_gettext_libc=no
7677 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7679 if test "$gt_cv_func_gettext_libc" != "yes"; then
7680 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7681 echo "configure:7682: checking for bindtextdomain in -lintl" >&5
7682 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7686 ac_save_LIBS="$LIBS"
7688 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 /* Override any gcc2 internal prototype to avoid an error. */
7692 /* We use char because int might match the return type of a gcc2
7693 builtin and then its argument prototype would still apply. */
7694 char bindtextdomain();
7700 if { (eval echo configure:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7702 eval "ac_cv_lib_$ac_lib_var=yes"
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7707 eval "ac_cv_lib_$ac_lib_var=no"
7710 LIBS="$ac_save_LIBS"
7713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7714 echo "$ac_t""yes" 1>&6
7715 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7716 echo "configure:7717: checking for gettext in libintl" >&5
7717 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7721 echo "configure:7722: checking for gettext in -lintl" >&5
7722 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 ac_save_LIBS="$LIBS"
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731 /* Override any gcc2 internal prototype to avoid an error. */
7732 /* We use char because int might match the return type of a gcc2
7733 builtin and then its argument prototype would still apply. */
7740 if { (eval echo configure:7741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7742 eval "ac_cv_lib_$ac_lib_var=yes"
7744 echo "configure: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7747 eval "ac_cv_lib_$ac_lib_var=no"
7750 LIBS="$ac_save_LIBS"
7753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7754 echo "$ac_t""yes" 1>&6
7755 gt_cv_func_gettext_libintl=yes
7757 echo "$ac_t""no" 1>&6
7758 gt_cv_func_gettext_libintl=no
7763 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7765 echo "$ac_t""no" 1>&6
7770 if test "$gt_cv_func_gettext_libc" = "yes" \
7771 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7772 cat >> confdefs.h <<\EOF
7773 #define HAVE_GETTEXT 1
7776 # Extract the first word of "msgfmt", so it can be a program name with args.
7777 set dummy msgfmt; ac_word=$2
7778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7779 echo "configure:7780: checking for $ac_word" >&5
7780 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7785 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7789 for ac_dir in $PATH; do
7790 test -z "$ac_dir" && ac_dir=.
7791 if test -f $ac_dir/$ac_word; then
7792 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7793 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7799 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7803 MSGFMT="$ac_cv_path_MSGFMT"
7804 if test -n "$MSGFMT"; then
7805 echo "$ac_t""$MSGFMT" 1>&6
7807 echo "$ac_t""no" 1>&6
7809 if test "$MSGFMT" != "no"; then
7810 for ac_func in dcgettext
7812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_func" >&5
7814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* System header to define __stub macros and hopefully few prototypes,
7821 which can conflict with char $ac_func(); below. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 /* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7830 /* The GNU C library defines this for functions which it implements
7831 to always fail with ENOSYS. Some functions are actually named
7832 something starting with __ and the normal name is an alias. */
7833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 eval "ac_cv_func_$ac_func=yes"
7845 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7848 eval "ac_cv_func_$ac_func=no"
7853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7856 cat >> confdefs.h <<EOF
7857 #define $ac_tr_func 1
7861 echo "$ac_t""no" 1>&6
7865 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7866 set dummy gmsgfmt; ac_word=$2
7867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7868 echo "configure:7869: checking for $ac_word" >&5
7869 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7874 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7877 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7882 for ac_dir in $ac_dummy; do
7883 test -z "$ac_dir" && ac_dir=.
7884 if test -f $ac_dir/$ac_word; then
7885 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7890 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7894 GMSGFMT="$ac_cv_path_GMSGFMT"
7895 if test -n "$GMSGFMT"; then
7896 echo "$ac_t""$GMSGFMT" 1>&6
7898 echo "$ac_t""no" 1>&6
7901 # Extract the first word of "xgettext", so it can be a program name with args.
7902 set dummy xgettext; ac_word=$2
7903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7904 echo "configure:7905: checking for $ac_word" >&5
7905 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7910 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7914 for ac_dir in $PATH; do
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/$ac_word; then
7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7928 XGETTEXT="$ac_cv_path_XGETTEXT"
7929 if test -n "$XGETTEXT"; then
7930 echo "$ac_t""$XGETTEXT" 1>&6
7932 echo "$ac_t""no" 1>&6
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7940 extern int _nl_msg_cat_cntr;
7941 return _nl_msg_cat_cntr
7944 if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 echo "configure: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7961 echo "$ac_t""no" 1>&6
7965 if test "$CATOBJEXT" = "NONE"; then
7966 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7967 echo "configure:7968: checking whether catgets can be used" >&5
7968 # Check whether --with-catgets or --without-catgets was given.
7969 if test "${with_catgets+set}" = set; then
7970 withval="$with_catgets"
7971 nls_cv_use_catgets=$withval
7973 nls_cv_use_catgets=no
7976 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7978 if test "$nls_cv_use_catgets" = "yes"; then
7979 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7980 echo "configure:7981: checking for main in -li" >&5
7981 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7985 ac_save_LIBS="$LIBS"
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7997 eval "ac_cv_lib_$ac_lib_var=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 eval "ac_cv_lib_$ac_lib_var=no"
8005 LIBS="$ac_save_LIBS"
8008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8012 cat >> confdefs.h <<EOF
8013 #define $ac_tr_lib 1
8019 echo "$ac_t""no" 1>&6
8022 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8023 echo "configure:8024: checking for catgets" >&5
8024 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 /* System header to define __stub macros and hopefully few prototypes,
8031 which can conflict with char catgets(); below. */
8033 /* Override any gcc2 internal prototype to avoid an error. */
8034 /* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8040 /* The GNU C library defines this for functions which it implements
8041 to always fail with ENOSYS. Some functions are actually named
8042 something starting with __ and the normal name is an alias. */
8043 #if defined (__stub_catgets) || defined (__stub___catgets)
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8053 eval "ac_cv_func_catgets=yes"
8055 echo "configure: failed program was:" >&5
8056 cat conftest.$ac_ext >&5
8058 eval "ac_cv_func_catgets=no"
8063 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8064 echo "$ac_t""yes" 1>&6
8065 cat >> confdefs.h <<\EOF
8066 #define HAVE_CATGETS 1
8069 INTLOBJS="\$(CATOBJS)"
8070 # Extract the first word of "gencat", so it can be a program name with args.
8071 set dummy gencat; ac_word=$2
8072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8073 echo "configure:8074: checking for $ac_word" >&5
8074 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8079 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
8082 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
8085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8087 for ac_dir in $ac_dummy; do
8088 test -z "$ac_dir" && ac_dir=.
8089 if test -f $ac_dir/$ac_word; then
8090 ac_cv_path_GENCAT="$ac_dir/$ac_word"
8095 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
8099 GENCAT="$ac_cv_path_GENCAT"
8100 if test -n "$GENCAT"; then
8101 echo "$ac_t""$GENCAT" 1>&6
8103 echo "$ac_t""no" 1>&6
8105 if test "$GENCAT" != "no"; then
8106 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8107 set dummy gmsgfmt; ac_word=$2
8108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_word" >&5
8110 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8115 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8118 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8123 for ac_dir in $ac_dummy; do
8124 test -z "$ac_dir" && ac_dir=.
8125 if test -f $ac_dir/$ac_word; then
8126 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8135 GMSGFMT="$ac_cv_path_GMSGFMT"
8136 if test -n "$GMSGFMT"; then
8137 echo "$ac_t""$GMSGFMT" 1>&6
8139 echo "$ac_t""no" 1>&6
8142 if test "$GMSGFMT" = "no"; then
8143 # Extract the first word of "msgfmt", so it can be a program name with args.
8144 set dummy msgfmt; ac_word=$2
8145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8146 echo "configure:8147: checking for $ac_word" >&5
8147 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6
8152 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8156 for ac_dir in $PATH; do
8157 test -z "$ac_dir" && ac_dir=.
8158 if test -f $ac_dir/$ac_word; then
8159 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8160 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8166 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8170 GMSGFMT="$ac_cv_path_GMSGFMT"
8171 if test -n "$GMSGFMT"; then
8172 echo "$ac_t""$GMSGFMT" 1>&6
8174 echo "$ac_t""no" 1>&6
8178 # Extract the first word of "xgettext", so it can be a program name with args.
8179 set dummy xgettext; ac_word=$2
8180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8181 echo "configure:8182: checking for $ac_word" >&5
8182 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8187 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8191 for ac_dir in $PATH; do
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/$ac_word; then
8194 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8195 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8201 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8205 XGETTEXT="$ac_cv_path_XGETTEXT"
8206 if test -n "$XGETTEXT"; then
8207 echo "$ac_t""$XGETTEXT" 1>&6
8209 echo "$ac_t""no" 1>&6
8212 USE_INCLUDED_LIBINTL=yes
8216 INTLDEPS='$(top_builddir)/intl/libintl.a'
8218 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8219 nls_cv_header_intl=intl/libintl.h
8220 nls_cv_header_libgt=intl/libgettext.h
8223 echo "$ac_t""no" 1>&6
8229 if test "$CATOBJEXT" = "NONE"; then
8230 nls_cv_use_gnu_gettext=yes
8234 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8235 INTLOBJS="\$(GETTOBJS)"
8236 # Extract the first word of "msgfmt", so it can be a program name with args.
8237 set dummy msgfmt; ac_word=$2
8238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8239 echo "configure:8240: checking for $ac_word" >&5
8240 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8241 echo $ac_n "(cached) $ac_c" 1>&6
8245 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8249 for ac_dir in $PATH; do
8250 test -z "$ac_dir" && ac_dir=.
8251 if test -f $ac_dir/$ac_word; then
8252 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8253 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8259 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8263 MSGFMT="$ac_cv_path_MSGFMT"
8264 if test -n "$MSGFMT"; then
8265 echo "$ac_t""$MSGFMT" 1>&6
8267 echo "$ac_t""no" 1>&6
8270 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8271 set dummy gmsgfmt; ac_word=$2
8272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8273 echo "configure:8274: checking for $ac_word" >&5
8274 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8279 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8282 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8287 for ac_dir in $ac_dummy; do
8288 test -z "$ac_dir" && ac_dir=.
8289 if test -f $ac_dir/$ac_word; then
8290 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8295 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8299 GMSGFMT="$ac_cv_path_GMSGFMT"
8300 if test -n "$GMSGFMT"; then
8301 echo "$ac_t""$GMSGFMT" 1>&6
8303 echo "$ac_t""no" 1>&6
8306 # Extract the first word of "xgettext", so it can be a program name with args.
8307 set dummy xgettext; ac_word=$2
8308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_word" >&5
8310 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8315 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8319 for ac_dir in $PATH; do
8320 test -z "$ac_dir" && ac_dir=.
8321 if test -f $ac_dir/$ac_word; then
8322 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8323 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8329 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8333 XGETTEXT="$ac_cv_path_XGETTEXT"
8334 if test -n "$XGETTEXT"; then
8335 echo "$ac_t""$XGETTEXT" 1>&6
8337 echo "$ac_t""no" 1>&6
8341 USE_INCLUDED_LIBINTL=yes
8345 INTLDEPS='$(top_builddir)/intl/libintl.a'
8347 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8348 nls_cv_header_intl=intl/libintl.h
8349 nls_cv_header_libgt=intl/libgettext.h
8352 if test "$XGETTEXT" != ":"; then
8353 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8356 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8361 # We need to process the po/ directory.
8365 nls_cv_header_intl=intl/libintl.h
8366 nls_cv_header_libgt=intl/libgettext.h
8372 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8373 # because some of the sources are only built for this goal.
8374 if test "$PACKAGE" = gettext; then
8376 USE_INCLUDED_LIBINTL=yes
8379 for lang in $ALL_LINGUAS; do
8380 GMOFILES="$GMOFILES $lang.gmo"
8381 POFILES="$POFILES $lang.po"
8397 if test "x$CATOBJEXT" != "x"; then
8398 if test "x$ALL_LINGUAS" = "x"; then
8401 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8402 echo "configure:8403: checking for catalogs to be installed" >&5
8404 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8405 case "$ALL_LINGUAS" in
8406 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8409 LINGUAS=$NEW_LINGUAS
8410 echo "$ac_t""$LINGUAS" 1>&6
8413 if test -n "$LINGUAS"; then
8414 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8418 if test $ac_cv_header_locale_h = yes; then
8419 INCLUDE_LOCALE_H="#include <locale.h>"
8422 /* The system does not provide the header <locale.h>. Take care yourself. */"
8426 test -d intl || mkdir intl
8427 if test "$CATOBJEXT" = ".cat"; then
8428 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8429 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8430 echo "configure:8431: checking for linux/version.h" >&5
8431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8434 cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8437 #include <linux/version.h>
8439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8440 { (eval echo configure:8441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8442 if test -z "$ac_err"; then
8444 eval "ac_cv_header_$ac_safe=yes"
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8450 eval "ac_cv_header_$ac_safe=no"
8454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8455 echo "$ac_t""yes" 1>&6
8458 echo "$ac_t""no" 1>&6
8463 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8465 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8466 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8468 if test "$PACKAGE" = "gettext"; then
8479 if test -n "$ac_aux_dir"; then
8480 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8482 if test -z "$MKINSTALLDIRS"; then
8483 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8490 test -d po || mkdir po
8491 if test "x$srcdir" != "x."; then
8492 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8493 posrcprefix="$srcdir/"
8495 posrcprefix="../$srcdir/"
8501 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8502 < $srcdir/po/POTFILES.in > po/POTFILES
8504 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8506 # Windows32 Registry support for specifying GCC installation paths.
8507 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8508 if test "${enable_win32_registry+set}" = set; then
8509 enableval="$enable_win32_registry"
8514 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8515 echo "configure:8516: checking whether windows registry support is requested" >&5
8516 if test x$enable_win32_registry != xno; then
8517 cat >> confdefs.h <<\EOF
8518 #define ENABLE_WIN32_REGISTRY 1
8521 echo "$ac_t""yes" 1>&6
8523 echo "$ac_t""no" 1>&6
8526 # Check if user specified a different registry key.
8527 case x${enable_win32_registry} in
8530 gcc_cv_win32_registry_key="$VERSION"
8533 # no registry lookup.
8534 gcc_cv_win32_registry_key=''
8537 # user-specified key.
8538 gcc_cv_win32_registry_key="$enable_win32_registry"
8542 if test x$enable_win32_registry != xno; then
8543 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8544 echo "configure:8545: checking registry key on windows hosts" >&5
8545 cat >> confdefs.h <<EOF
8546 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8549 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8552 # Get an absolute path to the GCC top-level source directory
8558 # Conditionalize the makefile for this host machine.
8559 # Make-host contains the concatenation of all host makefile fragments
8560 # [there can be more than one]. This file is built by configure.frag.
8561 host_overrides=Make-host
8562 dep_host_xmake_file=
8563 for f in .. ${host_xmake_file}
8565 if test -f ${srcdir}/config/$f
8567 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8571 # Conditionalize the makefile for this target machine.
8572 # Make-target contains the concatenation of all host makefile fragments
8573 # [there can be more than one]. This file is built by configure.frag.
8574 target_overrides=Make-target
8576 for f in .. ${tmake_file}
8578 if test -f ${srcdir}/config/$f
8580 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8584 # If the host doesn't support symlinks, modify CC in
8585 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8586 # Otherwise, we can use "CC=$(CC)".
8588 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8590 cc_set_by_configure="\$(CC)"
8591 quoted_cc_set_by_configure="\$(CC)"
8592 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8595 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8597 symbolic_link="cp -p"
8601 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8602 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8603 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8607 out_object_file=`basename $out_file .c`.o
8610 for f in $tm_file; do
8613 tm_file_list="${tm_file_list} $f" ;;
8614 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8619 for f in $host_xm_file; do
8621 auto-host.h | gansidecl.h | hwint.h )
8622 host_xm_file_list="${host_xm_file_list} $f" ;;
8623 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8628 for f in $build_xm_file; do
8630 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8631 build_xm_file_list="${build_xm_file_list} $f" ;;
8632 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8636 # Define macro CROSS_COMPILE in compilation
8637 # if this is a cross-compiler.
8638 # Also use all.cross instead of all.internal
8639 # and add cross-make to Makefile.
8640 cross_overrides="/dev/null"
8641 if test x$host != x$target
8643 cross_defines="CROSS=-DCROSS_COMPILE"
8644 cross_overrides="${topdir}/cross-make"
8647 # When building gcc with a cross-compiler, we need to fix a few things.
8648 # This must come after cross-make as we want all.build to override
8650 build_overrides="/dev/null"
8651 if test x$build != x$host
8653 build_overrides="${topdir}/build-make"
8656 # Expand extra_headers to include complete path.
8657 # This substitutes for lots of t-* files.
8659 if test "x$extra_headers" = x
8662 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8663 for file in $extra_headers;
8665 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8669 if test x$use_collect2 = xno; then
8673 # Add a definition of USE_COLLECT2 if system wants one.
8674 # Also tell toplev.c what to do.
8675 # This substitutes for lots of t-* files.
8676 if test x$use_collect2 = x
8681 will_use_collect2="collect2"
8682 maybe_use_collect2="-DUSE_COLLECT2"
8686 # Set MD_DEPS if the real md file is in md.pre-cpp.
8687 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8688 # for line oriented comments, so we must always use a GNU cpp. If
8689 # building gcc with a cross compiler, use the cross compiler just
8690 # built. Otherwise, we can use the cpp just built.
8692 if test "x$md_cppflags" = x
8694 md_file_sub=$srcdir/config/$md_file
8699 # If we have gas in the build tree, make a link to it.
8700 if test -f ../gas/Makefile; then
8701 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8704 # If we have nm in the build tree, make a link to it.
8705 if test -f ../binutils/Makefile; then
8706 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8709 # If we have ld in the build tree, make a link to it.
8710 if test -f ../ld/Makefile; then
8711 # if test x$use_collect2 = x; then
8712 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8714 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8718 # Figure out what assembler alignment features are present.
8719 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8720 echo "configure:8721: checking assembler alignment features" >&5
8722 gcc_cv_as_alignment_features=
8723 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8724 if test -x "$DEFAULT_ASSEMBLER"; then
8725 gcc_cv_as="$DEFAULT_ASSEMBLER"
8726 elif test -x "$AS"; then
8728 elif test -x as$host_exeext; then
8729 # Build using assembler in the current directory.
8730 gcc_cv_as=./as$host_exeext
8731 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8732 # Single tree build which includes gas.
8733 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8735 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8736 if test x$gcc_cv_gas_version != x; then
8740 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8741 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8742 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8743 # Gas version 2.6 and later support for .balign and .p2align.
8744 # bytes to skip when using .p2align.
8745 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
8746 gcc_cv_as_alignment_features=".balign and .p2align"
8747 cat >> confdefs.h <<\EOF
8748 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8752 # Gas version 2.8 and later support specifying the maximum
8753 # bytes to skip when using .p2align.
8754 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
8755 gcc_cv_as_alignment_features=".p2align including maximum skip"
8756 cat >> confdefs.h <<\EOF
8757 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8762 elif test x$host = x$target; then
8764 # Search the same directories that the installed compiler will
8765 # search. Else we may find the wrong assembler and lose. If we
8766 # do not find a suitable assembler binary, then try the user's
8769 # Also note we have to check MD_EXEC_PREFIX before checking the
8770 # user's path. Unfortunately, there is no good way to get at the
8771 # value of MD_EXEC_PREFIX here. So we do a brute force search
8772 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8773 # to be fixed as part of the make/configure rewrite too.
8775 if test "x$exec_prefix" = xNONE; then
8776 if test "x$prefix" = xNONE; then
8777 test_prefix=/usr/local
8782 test_prefix=$exec_prefix
8785 # If the loop below does not find an assembler, then use whatever
8786 # one we can find in the users's path.
8790 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8791 $test_prefix/lib/gcc-lib/$target \
8792 /usr/lib/gcc/$target/$gcc_version \
8793 /usr/lib/gcc/$target \
8794 $test_prefix/$target/bin/$target/$gcc_version \
8795 $test_prefix/$target/bin \
8800 /bsd43/usr/lib/cmplrs/cc \
8801 /usr/cross64/usr/bin \
8802 /usr/lib/cmplrs/cc \
8803 /sysv/usr/lib/cmplrs/cc \
8804 /svr4/usr/lib/cmplrs/cc \
8807 for dir in $test_dirs; do
8808 if test -f $dir/as$host_exeext; then
8809 gcc_cv_as=$dir/as$host_exeext
8814 if test x$gcc_cv_as != x; then
8815 # Check if we have .balign and .p2align
8816 echo ".balign 4" > conftest.s
8817 echo ".p2align 2" >> conftest.s
8818 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8819 gcc_cv_as_alignment_features=".balign and .p2align"
8820 cat >> confdefs.h <<\EOF
8821 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8825 rm -f conftest.s conftest.o
8826 # Check if specifying the maximum bytes to skip when
8827 # using .p2align is supported.
8828 echo ".p2align 4,,7" > conftest.s
8829 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8830 gcc_cv_as_alignment_features=".p2align including maximum skip"
8831 cat >> confdefs.h <<\EOF
8832 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8836 rm -f conftest.s conftest.o
8838 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8840 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8841 echo "configure:8842: checking assembler subsection support" >&5
8842 gcc_cv_as_subsections=
8843 if test x$gcc_cv_as != x; then
8844 # Check if we have .subsection
8845 echo ".subsection 1" > conftest.s
8846 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8847 gcc_cv_as_subsections=".subsection"
8848 if test -x nm$host_exeext; then
8849 gcc_cv_nm=./nm$host_exeext
8850 elif test x$host = x$target; then
8852 gcc_cv_nm=nm$host_exeext
8854 if test x$gcc_cv_nm != x; then
8855 cat > conftest.s <<EOF
8856 conftest_label1: .word 0
8858 conftest_label2: .word 0
8861 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8862 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8863 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8864 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8867 gcc_cv_as_subsections="working .subsection -1"
8868 cat >> confdefs.h <<\EOF
8869 #define HAVE_GAS_SUBSECTION_ORDERING 1
8876 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8878 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8882 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8883 echo "configure:8884: checking assembler .register pseudo-op support" >&5
8884 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8888 gcc_cv_as_register_pseudo_op=unknown
8889 if test x$gcc_cv_as != x; then
8890 # Check if we have .register
8891 echo ".register %g2, #scratch" > conftest.s
8892 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8893 gcc_cv_as_register_pseudo_op=yes
8895 gcc_cv_as_register_pseudo_op=no
8897 rm -f conftest.s conftest.o
8902 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8903 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8904 cat >> confdefs.h <<\EOF
8905 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8912 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8913 echo "configure:8914: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8914 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8918 if test -n "$gcc_cv_as"; then
8919 echo ".xword foo" > conftest.s
8920 gcc_cv_as_flags64=no
8921 for flag in "-xarch=v9" "-64 -Av9"; do
8922 if $gcc_cv_as $flag -o conftest.o conftest.s \
8923 > /dev/null 2>&1; then
8924 gcc_cv_as_flags64=$flag
8928 rm -f conftest.s conftest.o
8930 if test "$gas" = yes; then
8931 gcc_cv_as_flags64="-64 -Av9"
8933 gcc_cv_as_flags64="-xarch=v9"
8939 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8940 if test "x$gcc_cv_as_flags64" = xno; then
8942 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8943 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8946 cat >> confdefs.h <<EOF
8947 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8952 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8956 if test "x$gcc_cv_as_flags64" != xno; then
8957 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8958 echo "configure:8959: checking for assembler offsetable %lo() support" >&5
8959 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8963 gcc_cv_as_offsetable_lo10=unknown
8964 if test "x$gcc_cv_as" != x; then
8965 # Check if assembler has offsetable %lo()
8966 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8967 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8968 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8970 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8971 > /dev/null 2>&1; then
8972 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8973 gcc_cv_as_offsetable_lo10=no
8975 gcc_cv_as_offsetable_lo10=yes
8978 gcc_cv_as_offsetable_lo10=no
8980 rm -f conftest.s conftest.o conftest1.s conftest1.o
8985 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8986 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8987 cat >> confdefs.h <<\EOF
8988 #define HAVE_AS_OFFSETABLE_LO10 1
8996 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8997 echo "configure:8998: checking assembler instructions" >&5
8998 gcc_cv_as_instructions=
8999 if test x$gcc_cv_as != x; then
9000 set "filds fists" "filds mem; fists mem"
9003 echo "$2" > conftest.s
9004 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9005 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
9006 cat >> confdefs.h <<EOF
9007 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9013 rm -f conftest.s conftest.o
9015 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9019 # Figure out what language subdirectories are present.
9020 # Look if the user specified --enable-languages="..."; if not, use
9021 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9023 if test x"${enable_languages+set}" != xset; then
9024 if test x"${LANGUAGES+set}" = xset; then
9025 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
9027 enable_languages=all
9031 for lang in ${srcdir}/*/config-lang.in ..
9035 # The odd quoting in the next line works around
9036 # an apparent bug in bash 1.12 on linux.
9037 ${srcdir}/[*]/config-lang.in) ;;
9039 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9040 if test "x$lang_alias" = x
9042 echo "$lang doesn't set \$language." 1>&2
9045 if test x"${enable_languages}" = xall; then
9048 case "${enable_languages}" in
9049 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9057 if test x"${add_this_lang}" = xyes; then
9059 ${srcdir}/ada/config-lang.in)
9060 if test x$gnat = xyes ; then
9061 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9065 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9073 # Make gthr-default.h if we have a thread file.
9075 if test $thread_file != single; then
9076 rm -f gthr-default.h
9077 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9078 gthread_flags=-DHAVE_GTHR_DEFAULT
9082 # Find out what GC implementation we want, or may, use.
9083 # Check whether --with-gc or --without-gc was given.
9084 if test "${with_gc+set}" = set; then
9091 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9095 if test $ac_cv_func_mmap_anywhere = yes \
9096 || test $ac_cv_func_valloc = yes; then
9104 echo "Using $GGC for garbage collection."
9106 # Build a new-abi (c++) system
9107 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9108 if test "${enable_new_gxx_abi+set}" = set; then
9109 enableval="$enable_new_gxx_abi"
9110 cat >> confdefs.h <<\EOF
9111 #define ENABLE_NEW_GXX_ABI 1
9114 GXX_ABI_FLAG='-fnew-abi'
9115 echo "Building a new-abi g++ compiler."
9121 # Make empty files to contain the specs and options for each language.
9122 # Then add #include lines to for a compiler that has specs and/or options.
9127 rm -f specs.h options.h gencheck.h
9128 touch specs.h options.h gencheck.h
9129 for subdir in . $subdirs
9131 if test -f $srcdir/$subdir/lang-specs.h; then
9132 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9133 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9135 if test -f $srcdir/$subdir/lang-options.h; then
9136 echo "#include \"$subdir/lang-options.h\"" >>options.h
9137 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9139 if test -f $srcdir/$subdir/$subdir-tree.def; then
9140 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9141 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9145 # These (without "all_") are set in each config-lang.in.
9146 # `language' must be a single word so is spelled singularly.
9152 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
9153 # List of language makefile fragments.
9158 # Add the language fragments.
9159 # Languages are added via two mechanisms. Some information must be
9160 # recorded in makefile variables, these are defined in config-lang.in.
9161 # We accumulate them and plug them into the main Makefile.
9162 # The other mechanism is a set of hooks for each of the main targets
9163 # like `clean', `install', etc.
9165 language_fragments="Make-lang"
9166 language_hooks="Make-hooks"
9169 for s in .. $subdirs
9181 . ${srcdir}/$s/config-lang.in
9182 if test "x$language" = x
9184 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9187 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9188 all_languages="$all_languages $language"
9189 if test "x$boot_language" = xyes
9191 all_boot_languages="$all_boot_languages $language"
9193 all_compilers="$all_compilers $compilers"
9194 all_stagestuff="$all_stagestuff $stagestuff"
9195 all_diff_excludes="$all_diff_excludes $diff_excludes"
9196 all_headers="$all_headers $headers"
9197 all_outputs="$all_outputs $outputs"
9198 if test x$outputs = x
9200 oldstyle_subdirs="$oldstyle_subdirs $s"
9202 all_lib2funcs="$all_lib2funcs $lib2funcs"
9206 # Since we can't use `::' targets, we link each language in
9207 # with a set of hooks, reached indirectly via lang.${target}.
9211 target_list="all.build all.cross start.encap rest.encap \
9213 install-normal install-common install-info install-man \
9215 mostlyclean clean distclean extraclean maintainer-clean \
9216 stage1 stage2 stage3 stage4"
9217 for t in $target_list
9220 for lang in .. $all_languages
9222 if test $lang != ".."; then
9226 echo "lang.$t: $x" >> Make-hooks
9229 # If we're not building in srcdir, create .gdbinit.
9231 if test ! -f Makefile.in; then
9232 echo "dir ." > .gdbinit
9233 echo "dir ${srcdir}" >> .gdbinit
9234 if test x$gdb_needs_out_file_path = xyes
9236 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9238 if test "x$subdirs" != x; then
9241 echo "dir ${srcdir}/$s" >> .gdbinit
9244 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9247 # Define variables host_canonical and build_canonical
9248 # because some Cygnus local changes in the Makefile depend on them.
9249 build_canonical=${build}
9250 host_canonical=${host}
9252 if test "${host}" != "${target}" ; then
9253 target_subdir=${target}/
9259 # If this is using newlib, then define inhibit_libc in
9260 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9261 # libgcc.a, but that's OK because newib should have its own version of
9264 if test x$with_newlib = xyes; then
9265 inhibit_libc=-Dinhibit_libc
9269 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9270 # absolute path for gcc_tooldir based on inserting the number of up-directory
9271 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9272 # $(libsubdir)/@(unlibsubdir) based path.
9273 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9274 # make and thus we'd get different behavior depending on where we built the
9276 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9277 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9279 # An explanation of the sed strings:
9280 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9281 # -e 's|/$||' match a trailing forward slash and eliminates it
9282 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9283 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9285 # (*) Note this pattern overwrites the first character of the string
9286 # with a forward slash if one is not already present. This is not a
9287 # problem because the exact names of the sub-directories concerned is
9288 # unimportant, just the number of them matters.
9290 # The practical upshot of these patterns is like this:
9292 # prefix exec_prefix result
9293 # ------ ----------- ------
9295 # /foo/ /foo/bar ../
9296 # /foo /foo/bar/ ../
9297 # /foo/ /foo/bar/ ../
9298 # /foo /foo/bar/ugg ../../
9301 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9306 # Nothing to do for FLOAT_H, float_format already handled.
9310 # Process the language and host/target makefile fragments.
9311 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9313 # Substitute configuration variables
9373 # Echo that links are built
9374 if test x$host = x$target
9382 if test x$host != x$build
9384 str3=" on a $build system"
9387 if test "x$str2" != x || test "x$str3" != x
9392 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9394 if test "x$str2" != x || test "x$str3" != x
9396 echo " ${str2}${str3}." 1>&2
9399 # Truncate the target if necessary
9400 if test x$host_truncate_target != x; then
9401 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9404 # Configure the subdirectories
9405 # AC_CONFIG_SUBDIRS($subdirs)
9407 # Create the Makefile
9408 # and configure language subdirectories
9410 cat > confcache <<\EOF
9411 # This file is a shell script that caches the results of configure
9412 # tests run on this system so they can be shared between configure
9413 # scripts and configure runs. It is not useful on other systems.
9414 # If it contains results you don't want to keep, you may remove or edit it.
9416 # By default, configure uses ./config.cache as the cache file,
9417 # creating it if it does not exist already. You can give configure
9418 # the --cache-file=FILE option to use a different cache file; that is
9419 # what configure does when it calls configure scripts in
9420 # subdirectories, so they share the cache.
9421 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9422 # config.status only pays attention to the cache file if you give it the
9423 # --recheck option to rerun configure.
9426 # The following way of writing the cache mishandles newlines in values,
9427 # but we know of no workaround that is simple, portable, and efficient.
9428 # So, don't put newlines in cache variables' values.
9429 # Ultrix sh set writes to stderr and can't be redirected directly,
9430 # and sets the high bit in the cache file unless we assign to the vars.
9432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9434 # `set' does not quote correctly, so add quotes (double-quote substitution
9435 # turns \\\\ into \\, and sed turns \\ into \).
9437 -e "s/'/'\\\\''/g" \
9438 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9441 # `set' quotes correctly as required by POSIX, so do not add quotes.
9442 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9445 if cmp -s $cache_file confcache; then
9448 if test -w $cache_file; then
9449 echo "updating cache $cache_file"
9450 cat confcache > $cache_file
9452 echo "not updating unwritable cache $cache_file"
9457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9460 # Let make expand exec_prefix.
9461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9463 # Any assignment to VPATH causes Sun make to only execute
9464 # the first set of double-colon rules, so remove it if not needed.
9465 # If there is a colon in the path, we need to keep it.
9466 if test "x$srcdir" = x.; then
9467 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9470 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9472 DEFS=-DHAVE_CONFIG_H
9474 # Without the "./", some shells look in PATH for config.status.
9475 : ${CONFIG_STATUS=./config.status}
9477 echo creating $CONFIG_STATUS
9478 rm -f $CONFIG_STATUS
9479 cat > $CONFIG_STATUS <<EOF
9481 # Generated automatically by configure.
9482 # Run this file to recreate the current configuration.
9483 # This directory was configured as follows,
9484 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9486 # $0 $ac_configure_args
9488 # Compiler output produced by configure, useful for debugging
9489 # configure, is in ./config.log if it exists.
9491 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9494 case "\$ac_option" in
9495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9496 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9497 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9498 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9499 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9501 -help | --help | --hel | --he | --h)
9502 echo "\$ac_cs_usage"; exit 0 ;;
9503 *) echo "\$ac_cs_usage"; exit 1 ;;
9507 ac_given_srcdir=$srcdir
9509 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9511 cat >> $CONFIG_STATUS <<EOF
9513 # Protect against being on the right side of a sed subst in config.status.
9514 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9515 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9519 s%@CFLAGS@%$CFLAGS%g
9520 s%@CPPFLAGS@%$CPPFLAGS%g
9521 s%@CXXFLAGS@%$CXXFLAGS%g
9522 s%@FFLAGS@%$FFLAGS%g
9524 s%@LDFLAGS@%$LDFLAGS%g
9526 s%@exec_prefix@%$exec_prefix%g
9527 s%@prefix@%$prefix%g
9528 s%@program_transform_name@%$program_transform_name%g
9529 s%@bindir@%$bindir%g
9530 s%@sbindir@%$sbindir%g
9531 s%@libexecdir@%$libexecdir%g
9532 s%@datadir@%$datadir%g
9533 s%@sysconfdir@%$sysconfdir%g
9534 s%@sharedstatedir@%$sharedstatedir%g
9535 s%@localstatedir@%$localstatedir%g
9536 s%@libdir@%$libdir%g
9537 s%@includedir@%$includedir%g
9538 s%@oldincludedir@%$oldincludedir%g
9539 s%@infodir@%$infodir%g
9540 s%@mandir@%$mandir%g
9542 s%@host_alias@%$host_alias%g
9543 s%@host_cpu@%$host_cpu%g
9544 s%@host_vendor@%$host_vendor%g
9545 s%@host_os@%$host_os%g
9546 s%@target@%$target%g
9547 s%@target_alias@%$target_alias%g
9548 s%@target_cpu@%$target_cpu%g
9549 s%@target_vendor@%$target_vendor%g
9550 s%@target_os@%$target_os%g
9552 s%@build_alias@%$build_alias%g
9553 s%@build_cpu@%$build_cpu%g
9554 s%@build_vendor@%$build_vendor%g
9555 s%@build_os@%$build_os%g
9557 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9558 s%@SET_MAKE@%$SET_MAKE%g
9561 s%@LEXLIB@%$LEXLIB%g
9564 s%@RANLIB@%$RANLIB%g
9566 s%@INSTALL@%$INSTALL%g
9567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9568 s%@INSTALL_DATA@%$INSTALL_DATA%g
9571 s%@vfprintf@%$vfprintf%g
9572 s%@doprint@%$doprint%g
9573 s%@manext@%$manext%g
9574 s%@objext@%$objext%g
9575 s%@PACKAGE@%$PACKAGE%g
9576 s%@VERSION@%$VERSION%g
9577 s%@ALLOCA@%$ALLOCA%g
9578 s%@USE_NLS@%$USE_NLS%g
9579 s%@MSGFMT@%$MSGFMT%g
9580 s%@GMSGFMT@%$GMSGFMT%g
9581 s%@XGETTEXT@%$XGETTEXT%g
9582 s%@GENCAT@%$GENCAT%g
9583 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9584 s%@CATALOGS@%$CATALOGS%g
9585 s%@CATOBJEXT@%$CATOBJEXT%g
9586 s%@DATADIRNAME@%$DATADIRNAME%g
9587 s%@GMOFILES@%$GMOFILES%g
9588 s%@INSTOBJEXT@%$INSTOBJEXT%g
9589 s%@INTLDEPS@%$INTLDEPS%g
9590 s%@INTLLIBS@%$INTLLIBS%g
9591 s%@INTLOBJS@%$INTLOBJS%g
9592 s%@POFILES@%$POFILES%g
9594 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9596 s%@GT_YES@%$GT_YES%g
9597 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9599 s%@gthread_flags@%$gthread_flags%g
9601 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9602 s%@build_canonical@%$build_canonical%g
9603 s%@host_canonical@%$host_canonical%g
9604 s%@target_subdir@%$target_subdir%g
9605 s%@inhibit_libc@%$inhibit_libc%g
9606 s%@gcc_tooldir@%$gcc_tooldir%g
9607 s%@dollar@%$dollar%g
9608 s%@objdir@%$objdir%g
9609 s%@subdirs@%$subdirs%g
9610 s%@all_boot_languages@%$all_boot_languages%g
9611 s%@all_compilers@%$all_compilers%g
9612 s%@all_diff_excludes@%$all_diff_excludes%g
9613 s%@all_headers@%$all_headers%g
9614 s%@all_lang_makefiles@%$all_lang_makefiles%g
9615 s%@all_languages@%$all_languages%g
9616 s%@all_lib2funcs@%$all_lib2funcs%g
9617 s%@all_stagestuff@%$all_stagestuff%g
9618 s%@build_exeext@%$build_exeext%g
9619 s%@build_install_headers_dir@%$build_install_headers_dir%g
9620 s%@build_xm_file_list@%$build_xm_file_list%g
9621 s%@cc_set_by_configure@%$cc_set_by_configure%g
9622 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9623 s%@cpp_install_dir@%$cpp_install_dir%g
9624 s%@cpp_main@%$cpp_main%g
9625 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9626 s%@dep_tmake_file@%$dep_tmake_file%g
9627 s%@extra_c_flags@%$extra_c_flags%g
9628 s%@extra_c_objs@%$extra_c_objs%g
9629 s%@extra_cpp_objs@%$extra_cpp_objs%g
9630 s%@extra_cxx_objs@%$extra_cxx_objs%g
9631 s%@extra_headers_list@%$extra_headers_list%g
9632 s%@extra_objs@%$extra_objs%g
9633 s%@extra_parts@%$extra_parts%g
9634 s%@extra_passes@%$extra_passes%g
9635 s%@extra_programs@%$extra_programs%g
9636 s%@float_h_file@%$float_h_file%g
9637 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9638 s%@gcc_version@%$gcc_version%g
9639 s%@gcc_version_trigger@%$gcc_version_trigger%g
9640 s%@host_exeext@%$host_exeext%g
9641 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9642 s%@host_xm_file_list@%$host_xm_file_list%g
9643 s%@install@%$install%g
9644 s%@lang_options_files@%$lang_options_files%g
9645 s%@lang_specs_files@%$lang_specs_files%g
9646 s%@lang_tree_files@%$lang_tree_files%g
9647 s%@local_prefix@%$local_prefix%g
9648 s%@maybe_use_collect2@%$maybe_use_collect2%g
9649 s%@md_file@%$md_file%g
9650 s%@objc_boehm_gc@%$objc_boehm_gc%g
9651 s%@out_file@%$out_file%g
9652 s%@out_object_file@%$out_object_file%g
9653 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9654 s%@symbolic_link@%$symbolic_link%g
9655 s%@thread_file@%$thread_file%g
9656 s%@tm_file_list@%$tm_file_list%g
9657 s%@will_use_collect2@%$will_use_collect2%g
9658 /@target_overrides@/r $target_overrides
9659 s%@target_overrides@%%g
9660 /@host_overrides@/r $host_overrides
9661 s%@host_overrides@%%g
9662 s%@cross_defines@%$cross_defines%g
9663 /@cross_overrides@/r $cross_overrides
9664 s%@cross_overrides@%%g
9665 /@build_overrides@/r $build_overrides
9666 s%@build_overrides@%%g
9667 /@language_fragments@/r $language_fragments
9668 s%@language_fragments@%%g
9669 /@language_hooks@/r $language_hooks
9670 s%@language_hooks@%%g
9675 cat >> $CONFIG_STATUS <<\EOF
9677 # Split the substitutions into bite-sized pieces for seds with
9678 # small command number limits, like on Digital OSF/1 and HP-UX.
9679 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9680 ac_file=1 # Number of current file.
9681 ac_beg=1 # First line for current file.
9682 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9685 while $ac_more_lines; do
9686 if test $ac_beg -gt 1; then
9687 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9689 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9691 if test ! -s conftest.s$ac_file; then
9693 rm -f conftest.s$ac_file
9695 if test -z "$ac_sed_cmds"; then
9696 ac_sed_cmds="sed -f conftest.s$ac_file"
9698 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9700 ac_file=`expr $ac_file + 1`
9702 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9705 if test -z "$ac_sed_cmds"; then
9710 cat >> $CONFIG_STATUS <<EOF
9712 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9714 cat >> $CONFIG_STATUS <<\EOF
9715 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9720 *) ac_file_in="${ac_file}.in" ;;
9723 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9725 # Remove last slash and all that follows it. Not all systems have dirname.
9726 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9727 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9728 # The file is in a subdirectory.
9729 test ! -d "$ac_dir" && mkdir "$ac_dir"
9730 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9731 # A "../" for each directory in $ac_dir_suffix.
9732 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9734 ac_dir_suffix= ac_dots=
9737 case "$ac_given_srcdir" in
9739 if test -z "$ac_dots"; then top_srcdir=.
9740 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9741 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9743 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9744 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9748 echo creating "$ac_file"
9750 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9752 *Makefile*) ac_comsub="1i\\
9753 # $configure_input" ;;
9757 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9759 s%@configure_input@%$configure_input%g
9760 s%@srcdir@%$srcdir%g
9761 s%@top_srcdir@%$top_srcdir%g
9762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9769 # ac_d sets the value in "#define NAME VALUE" lines.
9770 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9771 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9775 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9776 ac_uB='\([ ]\)%\1#\2define\3'
9779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9780 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9781 ac_eB='$%\1#\2define\3'
9785 if test "${CONFIG_HEADERS+set}" != set; then
9787 cat >> $CONFIG_STATUS <<EOF
9788 CONFIG_HEADERS="auto-host.h:config.in"
9790 cat >> $CONFIG_STATUS <<\EOF
9792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9795 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9796 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9797 *) ac_file_in="${ac_file}.in" ;;
9800 echo creating $ac_file
9802 rm -f conftest.frag conftest.in conftest.out
9803 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9804 cat $ac_file_inputs > conftest.in
9808 # Transform confdefs.h into a sed script conftest.vals that substitutes
9809 # the proper values into config.h.in to produce config.h. And first:
9810 # Protect against being on the right side of a sed subst in config.status.
9811 # Protect against being in an unquoted here document in config.status.
9813 cat > conftest.hdr <<\EOF
9816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9820 sed -n -f conftest.hdr confdefs.h > conftest.vals
9823 # This sed command replaces #undef with comments. This is necessary, for
9824 # example, in the case of _POSIX_SOURCE, which is predefined and required
9825 # on some systems where configure will not decide to define it.
9826 cat >> conftest.vals <<\EOF
9827 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9830 # Break up conftest.vals because some shells have a limit on
9831 # the size of here documents, and old seds have small limits too.
9836 ac_lines=`grep -c . conftest.vals`
9837 # grep -c gives empty output for an empty file on some AIX systems.
9838 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9839 # Write a limited-size here document to conftest.frag.
9840 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9841 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9843 sed -f conftest.frag conftest.in > conftest.out
9845 mv conftest.out conftest.in
9847 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9849 mv conftest.tail conftest.vals
9853 cat >> $CONFIG_STATUS <<\EOF
9854 rm -f conftest.frag conftest.h
9855 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9856 cat conftest.in >> conftest.h
9858 if cmp -s $ac_file conftest.h 2>/dev/null; then
9859 echo "$ac_file is unchanged"
9862 # Remove last slash and all that follows it. Not all systems have dirname.
9863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9865 # The file is in a subdirectory.
9866 test ! -d "$ac_dir" && mkdir "$ac_dir"
9869 mv conftest.h $ac_file
9875 cat >> $CONFIG_STATUS <<EOF
9876 ac_sources="$nls_cv_header_libgt"
9877 ac_dests="$nls_cv_header_intl"
9880 cat >> $CONFIG_STATUS <<\EOF
9881 srcdir=$ac_given_srcdir
9882 while test -n "$ac_sources"; do
9883 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9884 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9886 echo "linking $srcdir/$ac_source to $ac_dest"
9888 if test ! -r $srcdir/$ac_source; then
9889 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9893 # Make relative symlinks.
9894 # Remove last slash and all that follows it. Not all systems have dirname.
9895 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9896 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9897 # The dest file is in a subdirectory.
9898 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9899 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9900 # A "../" for each directory in $ac_dest_dir_suffix.
9901 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9903 ac_dest_dir_suffix= ac_dots=
9907 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9908 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9911 # Make a symlink if possible; otherwise try a hard link.
9912 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9913 ln $srcdir/$ac_source $ac_dest; then :
9915 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9919 cat >> $CONFIG_STATUS <<EOF
9925 target_alias='${target_alias}'
9927 subdirs='${subdirs}'
9928 oldstyle_subdirs='${oldstyle_subdirs}'
9929 symbolic_link='${symbolic_link}'
9930 program_transform_set='${program_transform_set}'
9931 program_transform_name='${program_transform_name}'
9932 dep_host_xmake_file='${dep_host_xmake_file}'
9933 host_xmake_file='${host_xmake_file}'
9934 dep_tmake_file='${dep_tmake_file}'
9935 tmake_file='${tmake_file}'
9936 thread_file='${thread_file}'
9937 gcc_version='${gcc_version}'
9938 gcc_version_trigger='${gcc_version_trigger}'
9939 local_prefix='${local_prefix}'
9940 build_install_headers_dir='${build_install_headers_dir}'
9941 build_exeext='${build_exeext}'
9942 host_exeext='${host_exeext}'
9943 out_file='${out_file}'
9944 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9945 SET_MAKE='${SET_MAKE}'
9946 target_list='${target_list}'
9947 target_overrides='${target_overrides}'
9948 host_overrides='${host_overrides}'
9949 cross_defines='${cross_defines}'
9950 cross_overrides='${cross_overrides}'
9951 build_overrides='${build_overrides}'
9952 cpp_install_dir='${cpp_install_dir}'
9955 cat >> $CONFIG_STATUS <<\EOF
9956 case "$CONFIG_FILES" in *po/Makefile.in*)
9957 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9960 . $srcdir/configure.lang
9961 case x$CONFIG_HEADERS in
9962 xauto-host.h:config.in)
9965 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9966 # bootstrapping and the installation procedure can still use
9967 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9968 # FLAGS_TO_PASS has been modified to solve the problem there.
9969 # This is virtually a duplicate of what happens in configure.lang; we do
9970 # an extra check to make sure this only happens if ln -s can be used.
9971 if test "$symbolic_link" = "ln -s"; then
9972 for d in .. ${subdirs} ; do
9973 if test $d != ..; then
9976 for t in stage1 stage2 stage3 stage4 include
9979 $symbolic_link ../$t $t 2>/dev/null
9985 # Avoid having to add intl to our include paths.
9986 if test -f intl/libintl.h; then
9987 echo creating libintl.h
9988 echo '#include "intl/libintl.h"' >libintl.h
9993 chmod +x $CONFIG_STATUS
9994 rm -fr confdefs* $ac_clean_files
9995 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1