3 # $FreeBSD: src/contrib/gcc/configure,v 1.8.2.1 2001/04/10 19:23:03 obrien Exp $
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.13
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
14 ac_default_prefix=/usr/local
15 # Any additions from configure.in:
17 --with-gnu-ld arrange to work with GNU ld."
19 --with-ld arrange to use the specified ld (full pathname)."
21 --with-gnu-as arrange to work with GNU as."
23 --with-as arrange to use the specified as (full pathname)."
25 --with-stabs arrange to use stabs instead of host debug format."
27 --with-elf arrange to use ELF instead of host debug format."
29 --with-local-prefix=DIR specifies directory to put local include."
31 --with-gxx-include-dir=DIR
32 specifies directory to put g++ header files."
34 --enable-checking enable expensive run-time checks."
36 --disable-cpp don't provide a user-visible C preprocessor."
38 --with-cpp-install-dir=DIR
39 install the user visible C preprocessor in DIR
40 (relative to PREFIX) as well as PREFIX/bin."
42 --enable-cpplib use cpplib for the C preprocessor."
44 --enable-c-cpplib link cpplib directly into C and C++ compilers
45 (EXPERIMENTAL) (implies --enable-cpplib)."
47 --enable-c-mbchar enable multibyte characters for C and C++."
49 --disable-fast-fixincludes
50 Disable the new fast fixincludes.
51 Run the old fixincludes script unconditionally"
53 --enable-haifa use the experimental scheduler.
54 --disable-haifa don't use the experimental scheduler for the
55 targets which normally enable it."
57 --enable-threads enable thread usage for target GCC.
58 --enable-threads=LIB use LIB thread package for target GCC."
60 --enable-objc-gc enable the use of Boehm's garbage collector with
61 the GNU Objective-C runtime."
63 --enable-java-gc=TYPE choose garbage collector [boehm]"
65 --enable-dwarf2 enable DWARF2 debugging as default."
67 --enable-nls use Native Language Support (disabled by default).
68 EXPERIMENTAL, see ABOUT-GCC-NLS."
70 --disable-nls do not use Native Language Support"
72 --with-included-gettext use the GNU gettext library included here"
74 --with-catgets use catgets functions if available"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=tree.c
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
589 symbolic_link='ln -s'
592 # Check for bogus environment variables.
593 # Test if LIBRARY_PATH contains the notation for the current directory
594 # since this would lead to problems installing/building glibc.
595 # LIBRARY_PATH contains the current directory if one of the following
597 # - one of the terminals (":" and ";") is the first or last sign
598 # - two terminals occur directly after each other
599 # - the path contains an element with a dot in it
600 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
601 echo "configure:600: checking LIBRARY_PATH variable" >&5
602 case ${LIBRARY_PATH} in
603 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
604 library_path_setting="contains current directory"
607 library_path_setting="ok"
610 echo "$ac_t""$library_path_setting" 1>&6
611 if test "$library_path_setting" != "ok"; then
612 { echo "configure: error:
613 *** LIBRARY_PATH shouldn't contain the current directory when
614 *** building gcc. Please change the environment variable
615 *** and run configure again." 1>&2; exit 1; }
618 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
619 # since this would lead to problems installing/building glibc.
620 # GCC_EXEC_PREFIX contains the current directory if one of the following
622 # - one of the terminals (":" and ";") is the first or last sign
623 # - two terminals occur directly after each other
624 # - the path contains an element with a dot in it
625 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
626 echo "configure:625: checking GCC_EXEC_PREFIX variable" >&5
627 case ${GCC_EXEC_PREFIX} in
628 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
629 gcc_exec_prefix_setting="contains current directory"
632 gcc_exec_prefix_setting="ok"
635 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
636 if test "$gcc_exec_prefix_setting" != "ok"; then
637 { echo "configure: error:
638 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
639 *** building gcc. Please change the environment variable
640 *** and run configure again." 1>&2; exit 1; }
643 # Check for additional parameters
646 # Check whether --with-gnu-ld or --without-gnu-ld was given.
647 if test "${with_gnu_ld+set}" = set; then
648 withval="$with_gnu_ld"
649 gnu_ld_flag="$with_gnu_ld"
655 # With pre-defined ld
656 # Check whether --with-ld or --without-ld was given.
657 if test "${with_ld+set}" = set; then
659 DEFAULT_LINKER="$with_ld"
662 if test x"${DEFAULT_LINKER+set}" = x"set"; then
663 if test ! -x "$DEFAULT_LINKER"; then
664 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
665 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
668 cat >> confdefs.h <<EOF
669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
675 # Check whether --with-gnu-as or --without-gnu-as was given.
676 if test "${with_gnu_as+set}" = set; then
677 withval="$with_gnu_as"
678 gas_flag="$with_gnu_as"
684 # Check whether --with-as or --without-as was given.
685 if test "${with_as+set}" = set; then
687 DEFAULT_ASSEMBLER="$with_as"
690 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
691 if test ! -x "$DEFAULT_ASSEMBLER"; then
692 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
693 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
696 cat >> confdefs.h <<EOF
697 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
703 # Check whether --with-stabs or --without-stabs was given.
704 if test "${with_stabs+set}" = set; then
705 withval="$with_stabs"
713 # Check whether --with-elf or --without-elf was given.
714 if test "${with_elf+set}" = set; then
722 # Specify the local prefix
724 # Check whether --with-local-prefix or --without-local-prefix was given.
725 if test "${with_local_prefix+set}" = set; then
726 withval="$with_local_prefix"
728 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
730 *) local_prefix=$with_local_prefix ;;
735 # Default local prefix if it is empty
736 if test x$local_prefix = x; then
737 local_prefix=/usr/local
740 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
741 # passed in by the toplevel make and thus we'd get different behavior
742 # depending on where we built the sources.
744 # Specify the g++ header file directory
745 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
746 if test "${with_gxx_include_dir+set}" = set; then
747 withval="$with_gxx_include_dir"
749 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
751 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
756 if test x${gcc_gxx_include_dir} = x; then
757 if test x${enable_version_specific_runtime_libs} = xyes; then
758 gcc_gxx_include_dir='${libsubdir}/include/g++'
760 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
761 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
765 # Enable expensive internal checks
766 # Check whether --enable-checking or --disable-checking was given.
767 if test "${enable_checking+set}" = set; then
768 enableval="$enable_checking"
769 case "${enableval}" in
770 yes) cat >> confdefs.h <<\EOF
771 #define ENABLE_CHECKING 1
775 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
780 # Check whether --enable-cpp or --disable-cpp was given.
781 if test "${enable_cpp+set}" = set; then
782 enableval="$enable_cpp"
789 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
790 if test "${with_cpp_install_dir+set}" = set; then
791 withval="$with_cpp_install_dir"
792 if test x$withval = xyes; then
793 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
794 elif test x$withval != xno; then
795 cpp_install_dir=$withval
800 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
802 # Check whether --enable-cpplib or --disable-cpplib was given.
803 if test "${enable_cpplib+set}" = set; then
804 enableval="$enable_cpplib"
805 if test x$enable_cpplib != xno; then
811 # Link cpplib into the compiler proper, for C/C++/ObjC.
812 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
813 if test "${enable_c_cpplib+set}" = set; then
814 enableval="$enable_c_cpplib"
815 if test x$enable_c_cpplib != xno; then
816 extra_c_objs="${extra_c_objs} libcpp.a"
817 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
818 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
824 # Enable Multibyte Characters for C/C++
825 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
826 if test "${enable_c_mbchar+set}" = set; then
827 enableval="$enable_c_mbchar"
828 if test x$enable_c_mbchar != xno; then
829 extra_c_flags=-DMULTIBYTE_CHARS=1
834 # Disable fast fixincludes
835 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
836 if test "${enable_fast_fixincludes+set}" = set; then
837 enableval="$enable_fast_fixincludes"
838 if test x$enable_fast_fixincludes = xno ; then
839 cp $srcdir/fixincludes ./fixinc.sh
844 # Enable Haifa scheduler.
845 # Check whether --enable-haifa or --disable-haifa was given.
846 if test "${enable_haifa+set}" = set; then
847 enableval="$enable_haifa"
853 # Pass with no value to take the default
854 # Pass with a value to specify a thread package
855 # Check whether --enable-threads or --disable-threads was given.
856 if test "${enable_threads+set}" = set; then
857 enableval="$enable_threads"
858 if test x$enable_threads = xno; then
866 enable_threads_flag=$enable_threads
867 # Check if a valid thread package
868 case x${enable_threads_flag} in
871 target_thread_file='single'
875 target_thread_file=''
877 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
878 xsolaris | xwin32 | xdce | xvxworks)
879 target_thread_file=$enable_threads_flag
882 echo "$enable_threads is an unknown thread package" 1>&2
887 # Check whether --enable-objc-gc or --disable-objc-gc was given.
888 if test "${enable_objc_gc+set}" = set; then
889 enableval="$enable_objc_gc"
890 if [ x$enable_objc_gc = xno ]; then
900 # Check whether --enable-java-gc or --disable-java-gc was given.
901 if test "${enable_java_gc+set}" = set; then
902 enableval="$enable_java_gc"
910 # Check whether --with-dwarf2 or --without-dwarf2 was given.
911 if test "${with_dwarf2+set}" = set; then
912 withval="$with_dwarf2"
913 dwarf2="$with_dwarf2"
919 # Determine the host, build, and target systems
921 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
922 if test -f $ac_dir/install-sh; then
924 ac_install_sh="$ac_aux_dir/install-sh -c"
926 elif test -f $ac_dir/install.sh; then
928 ac_install_sh="$ac_aux_dir/install.sh -c"
932 if test -z "$ac_aux_dir"; then
933 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
935 ac_config_guess=$ac_aux_dir/config.guess
936 ac_config_sub=$ac_aux_dir/config.sub
937 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
940 # Do some error checking and defaulting for the host and target type.
942 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
945 # 1. You are not allowed to specify --host, --target, and nonopt at the
947 # 2. Host defaults to nonopt.
948 # 3. If nonopt is not specified, then host defaults to the current host,
949 # as determined by config.guess.
950 # 4. Target and build default to nonopt.
951 # 5. If nonopt is not specified, then target and build default to host.
953 # The aliases save the names the user supplied, while $host etc.
954 # will get canonicalized.
955 case $host---$target---$nonopt in
956 NONE---*---* | *---NONE---* | *---*---NONE) ;;
957 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
961 # Make sure we can run config.sub.
962 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
963 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
966 echo $ac_n "checking host system type""... $ac_c" 1>&6
967 echo "configure:966: checking host system type" >&5
970 case "$host_alias" in
974 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
975 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
977 *) host_alias=$nonopt ;;
981 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
982 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
983 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
984 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo "$ac_t""$host" 1>&6
987 echo $ac_n "checking target system type""... $ac_c" 1>&6
988 echo "configure:987: checking target system type" >&5
991 case "$target_alias" in
994 NONE) target_alias=$host_alias ;;
995 *) target_alias=$nonopt ;;
999 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1000 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1001 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1002 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1003 echo "$ac_t""$target" 1>&6
1005 echo $ac_n "checking build system type""... $ac_c" 1>&6
1006 echo "configure:1005: checking build system type" >&5
1009 case "$build_alias" in
1012 NONE) build_alias=$host_alias ;;
1013 *) build_alias=$nonopt ;;
1017 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1018 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021 echo "$ac_t""$build" 1>&6
1023 test "$host_alias" != "$target_alias" &&
1024 test "$program_prefix$program_suffix$program_transform_name" = \
1026 program_prefix=${target_alias}-
1029 # Find the native compiler
1030 # Extract the first word of "gcc", so it can be a program name with args.
1031 set dummy gcc; ac_word=$2
1032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033 echo "configure:1032: checking for $ac_word" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1053 if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1056 echo "$ac_t""no" 1>&6
1059 if test -z "$CC"; then
1060 # Extract the first word of "cc", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1062: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1077 ac_prog_rejected=yes
1085 if test $ac_prog_rejected = yes; then
1086 # We found a bogon in the path, so make sure we never use it.
1087 set dummy $ac_cv_prog_CC
1089 if test $# -gt 0; then
1090 # We chose a different compiler from the bogus one.
1091 # However, it has the same basename, so the bogon will be chosen
1092 # first if we set CC to just the basename; use the full file name.
1094 set dummy "$ac_dir/$ac_word" "$@"
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 if test -z "$CC"; then
1109 case "`uname -s`" in
1111 # Extract the first word of "cl", so it can be a program name with args.
1112 set dummy cl; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1113: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$CC"; then
1119 ac_cv_prog_CC="$CC" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1134 if test -n "$CC"; then
1135 echo "$ac_t""$CC" 1>&6
1137 echo "$ac_t""no" 1>&6
1142 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1145 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1146 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1150 ac_cpp='$CPP $CPPFLAGS'
1151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1153 cross_compiling=$ac_cv_prog_cc_cross
1155 cat > conftest.$ac_ext << EOF
1157 #line 1156 "configure"
1158 #include "confdefs.h"
1162 if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1163 ac_cv_prog_cc_works=yes
1164 # If we can't run a trivial program, we are probably using a cross compiler.
1165 if (./conftest; exit) 2>/dev/null; then
1166 ac_cv_prog_cc_cross=no
1168 ac_cv_prog_cc_cross=yes
1171 echo "configure: failed program was:" >&5
1172 cat conftest.$ac_ext >&5
1173 ac_cv_prog_cc_works=no
1177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1178 ac_cpp='$CPP $CPPFLAGS'
1179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1181 cross_compiling=$ac_cv_prog_cc_cross
1183 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1184 if test $ac_cv_prog_cc_works = no; then
1185 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1187 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1188 echo "configure:1187: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1189 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1190 cross_compiling=$ac_cv_prog_cc_cross
1192 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1193 echo "configure:1192: checking whether we are using GNU C" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 cat > conftest.c <<EOF
1202 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1209 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1211 if test $ac_cv_prog_gcc = yes; then
1217 ac_test_CFLAGS="${CFLAGS+set}"
1218 ac_save_CFLAGS="$CFLAGS"
1220 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1221 echo "configure:1220: checking whether ${CC-cc} accepts -g" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 echo 'void f(){}' > conftest.c
1226 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1235 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1236 if test "$ac_test_CFLAGS" = set; then
1237 CFLAGS="$ac_save_CFLAGS"
1238 elif test $ac_cv_prog_cc_g = yes; then
1239 if test "$GCC" = yes; then
1245 if test "$GCC" = yes; then
1253 # If the native compiler is GCC, we can enable warnings even in stage1.
1254 # That's useful for people building cross-compilers, or just running a
1256 if test "x$GCC" = "xyes"; then
1257 stage1_warn_cflags='$(WARN_CFLAGS)'
1259 stage1_warn_cflags=""
1263 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1264 echo "configure:1263: checking whether ${MAKE-make} sets \${MAKE}" >&5
1265 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1266 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftestmake <<\EOF
1271 @echo 'ac_maketemp="${MAKE}"'
1273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1274 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1275 if test -n "$ac_maketemp"; then
1276 eval ac_cv_prog_make_${ac_make}_set=yes
1278 eval ac_cv_prog_make_${ac_make}_set=no
1282 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1283 echo "$ac_t""yes" 1>&6
1286 echo "$ac_t""no" 1>&6
1287 SET_MAKE="MAKE=${MAKE-make}"
1291 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1292 echo "configure:1291: checking whether a default assembler was specified" >&5
1293 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1294 if test x"$gas_flag" = x"no"; then
1295 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1297 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1300 echo "$ac_t""no" 1>&6
1303 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1304 echo "configure:1303: checking whether a default linker was specified" >&5
1305 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1306 if test x"$gnu_ld_flag" = x"no"; then
1307 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1309 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1312 echo "$ac_t""no" 1>&6
1315 # Find some useful tools
1316 for ac_prog in gawk mawk nawk awk
1318 # Extract the first word of "$ac_prog", so it can be a program name with args.
1319 set dummy $ac_prog; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1320: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 if test -n "$AWK"; then
1326 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 for ac_dir in $ac_dummy; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_AWK="$ac_prog"
1340 AWK="$ac_cv_prog_AWK"
1341 if test -n "$AWK"; then
1342 echo "$ac_t""$AWK" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 test -n "$AWK" && break
1350 # Extract the first word of "flex", so it can be a program name with args.
1351 set dummy flex; ac_word=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1352: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 if test -n "$LEX"; then
1358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1362 for ac_dir in $ac_dummy; do
1363 test -z "$ac_dir" && ac_dir=.
1364 if test -f $ac_dir/$ac_word; then
1365 ac_cv_prog_LEX="flex"
1370 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1373 LEX="$ac_cv_prog_LEX"
1374 if test -n "$LEX"; then
1375 echo "$ac_t""$LEX" 1>&6
1377 echo "$ac_t""no" 1>&6
1380 if test -z "$LEXLIB"
1386 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1387 echo "configure:1386: checking for yywrap in -l$ac_lib" >&5
1388 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_save_LIBS="$LIBS"
1393 LIBS="-l$ac_lib $LIBS"
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1394 "configure"
1396 #include "confdefs.h"
1397 /* Override any gcc2 internal prototype to avoid an error. */
1398 /* We use char because int might match the return type of a gcc2
1399 builtin and then its argument prototype would still apply. */
1406 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 eval "ac_cv_lib_$ac_lib_var=yes"
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 eval "ac_cv_lib_$ac_lib_var=no"
1416 LIBS="$ac_save_LIBS"
1419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1420 echo "$ac_t""yes" 1>&6
1423 echo "$ac_t""no" 1>&6
1428 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1429 echo "configure:1428: checking whether ln works" >&5
1430 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 rm -f conftestdata_t
1434 echo >conftestdata_f
1435 if ln conftestdata_f conftestdata_t 2>/dev/null
1439 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1441 gcc_cv_prog_LN="ln -s"
1446 rm -f conftestdata_f conftestdata_t
1449 LN="$gcc_cv_prog_LN"
1450 if test "$gcc_cv_prog_LN" = "ln"; then
1451 echo "$ac_t""yes" 1>&6
1453 if test "$gcc_cv_prog_LN" = "ln -s"; then
1454 echo "$ac_t""no, using ln -s" 1>&6
1456 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1460 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1461 echo "configure:1460: checking whether ln -s works" >&5
1462 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 rm -f conftestdata_t
1466 echo >conftestdata_f
1467 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1469 gcc_cv_prog_LN_S="ln -s"
1471 if ln conftestdata_f conftestdata_t 2>/dev/null
1478 rm -f conftestdata_f conftestdata_t
1481 LN_S="$gcc_cv_prog_LN_S"
1482 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1483 echo "$ac_t""yes" 1>&6
1485 if test "$gcc_cv_prog_LN_S" = "ln"; then
1486 echo "$ac_t""no, using ln" 1>&6
1488 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1492 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1493 echo "configure:1492: checking for volatile" >&5
1494 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1497 "configure"
1499 #include "confdefs.h"
1505 if { (eval echo configure:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507 gcc_cv_c_volatile=yes
1509 echo "configure: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1512 gcc_cv_c_volatile=no
1517 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1518 if test $gcc_cv_c_volatile = yes ; then
1519 cat >> confdefs.h <<\EOF
1520 #define HAVE_VOLATILE 1
1525 # Extract the first word of "ranlib", so it can be a program name with args.
1526 set dummy ranlib; ac_word=$2
1527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1528 echo "configure:1527: checking for $ac_word" >&5
1529 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 if test -n "$RANLIB"; then
1533 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1537 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/$ac_word; then
1540 ac_cv_prog_RANLIB="ranlib"
1545 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1548 RANLIB="$ac_cv_prog_RANLIB"
1549 if test -n "$RANLIB"; then
1550 echo "$ac_t""$RANLIB" 1>&6
1552 echo "$ac_t""no" 1>&6
1555 for ac_prog in 'bison -y' byacc
1557 # Extract the first word of "$ac_prog", so it can be a program name with args.
1558 set dummy $ac_prog; ac_word=$2
1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560 echo "configure:1559: checking for $ac_word" >&5
1561 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 if test -n "$YACC"; then
1565 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1569 for ac_dir in $ac_dummy; do
1570 test -z "$ac_dir" && ac_dir=.
1571 if test -f $ac_dir/$ac_word; then
1572 ac_cv_prog_YACC="$ac_prog"
1579 YACC="$ac_cv_prog_YACC"
1580 if test -n "$YACC"; then
1581 echo "$ac_t""$YACC" 1>&6
1583 echo "$ac_t""no" 1>&6
1586 test -n "$YACC" && break
1588 test -n "$YACC" || YACC="yacc"
1590 # Find a good install program. We prefer a C program (faster),
1591 # so one script is as good as another. But avoid the broken or
1592 # incompatible versions:
1593 # SysV /etc/install, /usr/sbin/install
1594 # SunOS /usr/etc/install
1595 # IRIX /sbin/install
1597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599 # ./install, which can be erroneously created by make from ./install.sh.
1600 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1601 echo "configure:1600: checking for a BSD compatible install" >&5
1602 if test -z "$INSTALL"; then
1603 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1607 for ac_dir in $PATH; do
1608 # Account for people who put trailing slashes in PATH elements.
1610 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1612 # OSF1 and SCO ODT 3.0 have their own names for install.
1613 for ac_prog in ginstall scoinst install; do
1614 if test -f $ac_dir/$ac_prog; then
1615 if test $ac_prog = install &&
1616 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1617 # AIX install. It has an incompatible calling convention.
1618 # OSF/1 installbsd also uses dspmsg, but is usable.
1621 ac_cv_path_install="$ac_dir/$ac_prog -c"
1632 if test "${ac_cv_path_install+set}" = set; then
1633 INSTALL="$ac_cv_path_install"
1635 # As a last resort, use the slow shell script. We don't cache a
1636 # path for INSTALL within a source directory, because that will
1637 # break other packages using the cache if that directory is
1638 # removed, or if the path is relative.
1639 INSTALL="$ac_install_sh"
1642 echo "$ac_t""$INSTALL" 1>&6
1644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1645 # It thinks the first close brace ends the variable substitution.
1646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1651 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1652 echo "configure:1651: checking how to run the C preprocessor" >&5
1653 # On Suns, sometimes $CPP names a directory.
1654 if test -n "$CPP" && test -d "$CPP"; then
1657 if test -z "$CPP"; then
1658 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 # This must be in double quotes, not single quotes, because CPP may get
1662 # substituted into the Makefile and "${CC-cc}" will confuse make.
1664 # On the NeXT, cc -E runs the code through the compiler's parser,
1665 # not just through cpp.
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1666 "configure"
1668 #include "confdefs.h"
1672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1673 { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1675 if test -z "$ac_err"; then
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1682 CPP="${CC-cc} -E -traditional-cpp"
1683 cat > conftest.$ac_ext <<EOF
1684 #line 1683 "configure"
1685 #include "confdefs.h"
1689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1690 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1692 if test -z "$ac_err"; then
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 CPP="${CC-cc} -nologo -E"
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1700 "configure"
1702 #include "confdefs.h"
1706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1707 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1709 if test -z "$ac_err"; then
1713 echo "configure: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1723 ac_cv_prog_CPP="$CPP"
1725 CPP="$ac_cv_prog_CPP"
1727 ac_cv_prog_CPP="$CPP"
1729 echo "$ac_t""$CPP" 1>&6
1731 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1732 echo "configure:1731: checking for ANSI C header files" >&5
1733 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1736 "configure"
1738 #include "confdefs.h"
1744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1745 { (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1747 if test -z "$ac_err"; then
1749 ac_cv_header_stdc=yes
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 ac_cv_header_stdc=no
1759 if test $ac_cv_header_stdc = yes; then
1760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1761 "configure"
1763 #include "confdefs.h"
1766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1767 egrep "memchr" >/dev/null 2>&1; then
1771 ac_cv_header_stdc=no
1777 if test $ac_cv_header_stdc = yes; then
1778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1779 "configure"
1781 #include "confdefs.h"
1784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1785 egrep "free" >/dev/null 2>&1; then
1789 ac_cv_header_stdc=no
1795 if test $ac_cv_header_stdc = yes; then
1796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1797 if test "$cross_compiling" = yes; then
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1800 "configure"
1802 #include "confdefs.h"
1804 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1805 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1807 int main () { int i; for (i = 0; i < 256; i++)
1808 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1812 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1819 ac_cv_header_stdc=no
1827 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1828 if test $ac_cv_header_stdc = yes; then
1829 cat >> confdefs.h <<\EOF
1830 #define STDC_HEADERS 1
1835 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1836 echo "configure:1835: checking whether time.h and sys/time.h may both be included" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1840 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 #include <sys/time.h>
1850 if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1852 ac_cv_header_time=yes
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1857 ac_cv_header_time=no
1862 echo "$ac_t""$ac_cv_header_time" 1>&6
1863 if test $ac_cv_header_time = yes; then
1864 cat >> confdefs.h <<\EOF
1865 #define TIME_WITH_SYS_TIME 1
1870 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1871 echo "configure:1870: checking whether string.h and strings.h may both be included" >&5
1872 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1875 "configure"
1877 #include "confdefs.h"
1879 #include <strings.h>
1884 if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1886 gcc_cv_header_string=yes
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1891 gcc_cv_header_string=no
1896 echo "$ac_t""$gcc_cv_header_string" 1>&6
1897 if test $gcc_cv_header_string = yes; then
1898 cat >> confdefs.h <<\EOF
1899 #define STRING_WITH_STRINGS 1
1904 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1905 echo "configure:1904: checking for sys/wait.h that is POSIX.1 compatible" >&5
1906 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1909 "configure"
1911 #include "confdefs.h"
1912 #include <sys/types.h>
1913 #include <sys/wait.h>
1915 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1918 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1923 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1926 if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1928 ac_cv_header_sys_wait_h=yes
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 ac_cv_header_sys_wait_h=no
1938 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1939 if test $ac_cv_header_sys_wait_h = yes; then
1940 cat >> confdefs.h <<\EOF
1941 #define HAVE_SYS_WAIT_H 1
1946 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h
1948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1950 echo "configure:1949: checking for $ac_hdr" >&5
1951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1954 "configure"
1956 #include "confdefs.h"
1959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1960 { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1962 if test -z "$ac_err"; then
1964 eval "ac_cv_header_$ac_safe=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1970 eval "ac_cv_header_$ac_safe=no"
1974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1977 cat >> confdefs.h <<EOF
1978 #define $ac_tr_hdr 1
1982 echo "$ac_t""no" 1>&6
1987 # Check for thread headers.
1988 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1989 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1990 echo "configure:1989: checking for thread.h" >&5
1991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1994 "configure"
1996 #include "confdefs.h"
1999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2000 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2002 if test -z "$ac_err"; then
2004 eval "ac_cv_header_$ac_safe=yes"
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2010 eval "ac_cv_header_$ac_safe=no"
2014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2018 echo "$ac_t""no" 1>&6
2022 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2023 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2024 echo "configure:2023: checking for pthread.h" >&5
2025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2028 "configure"
2030 #include "confdefs.h"
2031 #include <pthread.h>
2033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then
2038 eval "ac_cv_header_$ac_safe=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 eval "ac_cv_header_$ac_safe=no"
2048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2049 echo "$ac_t""yes" 1>&6
2052 echo "$ac_t""no" 1>&6
2057 # See if GNAT has been installed
2058 # Extract the first word of "gnatbind", so it can be a program name with args.
2059 set dummy gnatbind; ac_word=$2
2060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2061 echo "configure:2060: checking for $ac_word" >&5
2062 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 if test -n "$gnat"; then
2066 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/$ac_word; then
2073 ac_cv_prog_gnat="yes"
2078 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2081 gnat="$ac_cv_prog_gnat"
2082 if test -n "$gnat"; then
2083 echo "$ac_t""$gnat" 1>&6
2085 echo "$ac_t""no" 1>&6
2089 # See if the system preprocessor understands the ANSI C preprocessor
2090 # stringification operator.
2091 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2092 echo "configure:2091: checking whether cpp understands the stringify operator" >&5
2093 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2096 "configure"
2098 #include "confdefs.h"
2102 char *test = S(foo);
2105 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2107 gcc_cv_c_have_stringify=yes
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 gcc_cv_c_have_stringify=no
2117 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2118 if test $gcc_cv_c_have_stringify = yes; then
2119 cat >> confdefs.h <<\EOF
2120 #define HAVE_CPP_STRINGIFY 1
2125 # Use <inttypes.h> only if it exists,
2126 # doesn't clash with <sys/types.h>, and declares intmax_t.
2127 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2128 echo "configure:2127: checking for inttypes.h" >&5
2129 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2132 "configure"
2134 #include "confdefs.h"
2135 #include <sys/types.h>
2136 #include <inttypes.h>
2141 if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143 gcc_cv_header_inttypes_h=yes
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 gcc_cv_header_inttypes_h=no
2153 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2154 if test $gcc_cv_header_inttypes_h = yes; then
2155 cat >> confdefs.h <<\EOF
2156 #define HAVE_INTTYPES_H 1
2161 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2162 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2163 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2167 echo "configure:2166: checking for $ac_func" >&5
2168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2171 "configure"
2173 #include "confdefs.h"
2174 /* System header to define __stub macros and hopefully few prototypes,
2175 which can conflict with char $ac_func(); below. */
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2195 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2197 eval "ac_cv_func_$ac_func=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 eval "ac_cv_func_$ac_func=no"
2207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2210 cat >> confdefs.h <<EOF
2211 #define $ac_tr_func 1
2215 echo "$ac_t""no" 1>&6
2220 # Make sure wchar_t is available
2221 #AC_CHECK_TYPE(wchar_t, unsigned int)
2223 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2224 echo "configure:2223: checking for vprintf" >&5
2225 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2228 "configure"
2230 #include "confdefs.h"
2231 /* System header to define __stub macros and hopefully few prototypes,
2232 which can conflict with char vprintf(); below. */
2234 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2241 /* The GNU C library defines this for functions which it implements
2242 to always fail with ENOSYS. Some functions are actually named
2243 something starting with __ and the normal name is an alias. */
2244 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2252 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 eval "ac_cv_func_vprintf=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 eval "ac_cv_func_vprintf=no"
2264 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 cat >> confdefs.h <<\EOF
2267 #define HAVE_VPRINTF 1
2271 echo "$ac_t""no" 1>&6
2274 if test "$ac_cv_func_vprintf" != yes; then
2275 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2276 echo "configure:2275: checking for _doprnt" >&5
2277 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2280 "configure"
2282 #include "confdefs.h"
2283 /* System header to define __stub macros and hopefully few prototypes,
2284 which can conflict with char _doprnt(); below. */
2286 /* Override any gcc2 internal prototype to avoid an error. */
2287 /* We use char because int might match the return type of a gcc2
2288 builtin and then its argument prototype would still apply. */
2293 /* The GNU C library defines this for functions which it implements
2294 to always fail with ENOSYS. Some functions are actually named
2295 something starting with __ and the normal name is an alias. */
2296 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2304 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 eval "ac_cv_func__doprnt=yes"
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2311 eval "ac_cv_func__doprnt=no"
2316 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2318 cat >> confdefs.h <<\EOF
2319 #define HAVE_DOPRNT 1
2323 echo "$ac_t""no" 1>&6
2330 if test $ac_cv_func_vprintf != yes ; then
2332 if test $ac_cv_func__doprnt != yes ; then
2339 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2340 echo "configure:2339: checking whether the printf functions support %p" >&5
2341 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 if test "$cross_compiling" = yes; then
2345 gcc_cv_func_printf_ptr=no
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2347 "configure"
2349 #include "confdefs.h"
2355 char *p = buf, *q = NULL;
2356 sprintf(buf, "%p", p);
2357 sscanf(buf, "%p", &q);
2361 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2363 gcc_cv_func_printf_ptr=yes
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 gcc_cv_func_printf_ptr=no
2373 rm -f core core.* *.core
2376 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2377 if test $gcc_cv_func_printf_ptr = yes ; then
2378 cat >> confdefs.h <<\EOF
2379 #define HAVE_PRINTF_PTR 1
2387 { echo "configure: error:
2388 *** UWIN may not be used as a host platform because
2389 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
2392 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2393 echo "configure:2392: checking for pid_t" >&5
2394 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2397 "configure"
2399 #include "confdefs.h"
2400 #include <sys/types.h>
2406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2407 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2409 ac_cv_type_pid_t=yes
2417 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2418 if test $ac_cv_type_pid_t = no; then
2419 cat >> confdefs.h <<\EOF
2425 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2426 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2427 echo "configure:2426: checking for vfork.h" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2431 "configure"
2433 #include "confdefs.h"
2436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2437 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2439 if test -z "$ac_err"; then
2441 eval "ac_cv_header_$ac_safe=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_header_$ac_safe=no"
2451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 cat >> confdefs.h <<\EOF
2454 #define HAVE_VFORK_H 1
2458 echo "$ac_t""no" 1>&6
2461 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2462 echo "configure:2461: checking for working vfork" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 if test "$cross_compiling" = yes; then
2467 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2468 echo "configure:2467: checking for vfork" >&5
2469 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2472 "configure"
2474 #include "confdefs.h"
2475 /* System header to define __stub macros and hopefully few prototypes,
2476 which can conflict with char vfork(); below. */
2478 /* Override any gcc2 internal prototype to avoid an error. */
2479 /* We use char because int might match the return type of a gcc2
2480 builtin and then its argument prototype would still apply. */
2485 /* The GNU C library defines this for functions which it implements
2486 to always fail with ENOSYS. Some functions are actually named
2487 something starting with __ and the normal name is an alias. */
2488 #if defined (__stub_vfork) || defined (__stub___vfork)
2496 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 eval "ac_cv_func_vfork=yes"
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 eval "ac_cv_func_vfork=no"
2508 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 ac_cv_func_vfork_works=$ac_cv_func_vfork
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2517 "configure"
2519 #include "confdefs.h"
2520 /* Thanks to Paul Eggert for this test. */
2522 #include <sys/types.h>
2523 #include <sys/stat.h>
2524 #ifdef HAVE_UNISTD_H
2530 /* On some sparc systems, changes by the child to local and incoming
2531 argument registers are propagated back to the parent.
2532 The compiler is told about this with #include <vfork.h>,
2533 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2534 Test for this by using a static variable whose address
2535 is put into a register that is clobbered by the vfork. */
2538 sparc_address_test (int arg)
2540 sparc_address_test (arg) int arg;
2558 pid_t parent = getpid ();
2561 sparc_address_test ();
2566 /* Here is another test for sparc vfork register problems.
2567 This test uses lots of local variables, at least
2568 as many local variables as main has allocated so far
2569 including compiler temporaries. 4 locals are enough for
2570 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2571 A buggy compiler should reuse the register of parent
2572 for one of the local variables, since it will think that
2573 parent can't possibly be used any more in this routine.
2574 Assigning to the local variable will thus munge parent
2575 in the parent process. */
2577 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2578 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2579 /* Convince the compiler that p..p7 are live; otherwise, it might
2580 use the same hardware register for all 8 local variables. */
2581 if (p != p1 || p != p2 || p != p3 || p != p4
2582 || p != p5 || p != p6 || p != p7)
2585 /* On some systems (e.g. IRIX 3.3),
2586 vfork doesn't separate parent from child file descriptors.
2587 If the child closes a descriptor before it execs or exits,
2588 this munges the parent's descriptor as well.
2589 Test for this by closing stdout in the child. */
2590 _exit(close(fileno(stdout)) != 0);
2595 while (wait(&status) != child)
2598 /* Was there some problem with vforking? */
2601 /* Did the child fail? (This shouldn't happen.) */
2604 /* Did the vfork/compiler bug occur? */
2605 || parent != getpid()
2607 /* Did the file descriptor bug occur? */
2608 || fstat(fileno(stdout), &st) != 0
2613 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2615 ac_cv_func_vfork_works=yes
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 ac_cv_func_vfork_works=no
2627 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2628 if test $ac_cv_func_vfork_works = no; then
2629 cat >> confdefs.h <<\EOF
2636 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2637 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2638 strsignal putc_unlocked fputs_unlocked strstr
2640 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2641 echo "configure:2640: checking whether $ac_func must be declared" >&5
2642 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2645 "configure"
2647 #include "confdefs.h"
2650 #ifdef STRING_WITH_STRINGS
2651 # include <string.h>
2652 # include <strings.h>
2654 # ifdef HAVE_STRING_H
2655 # include <string.h>
2657 # ifdef HAVE_STRINGS_H
2658 # include <strings.h>
2662 #ifdef HAVE_STDLIB_H
2665 #ifdef HAVE_UNISTD_H
2669 #define rindex strrchr
2672 #define index strchr
2676 char *(*pfn) = (char *(*)) $ac_func
2679 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2681 eval "gcc_cv_decl_needed_$ac_func=no"
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2686 eval "gcc_cv_decl_needed_$ac_func=yes"
2691 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2694 cat >> confdefs.h <<EOF
2695 #define $gcc_tr_decl 1
2699 echo "$ac_t""no" 1>&6
2705 for ac_func in getrlimit setrlimit
2707 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2708 echo "configure:2707: checking whether $ac_func must be declared" >&5
2709 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2712 "configure"
2714 #include "confdefs.h"
2717 #ifdef STRING_WITH_STRINGS
2718 # include <string.h>
2719 # include <strings.h>
2721 # ifdef HAVE_STRING_H
2722 # include <string.h>
2724 # ifdef HAVE_STRINGS_H
2725 # include <strings.h>
2729 #ifdef HAVE_STDLIB_H
2732 #ifdef HAVE_UNISTD_H
2736 #define rindex strrchr
2739 #define index strchr
2741 #include <sys/types.h>
2742 #ifdef HAVE_SYS_RESOURCE_H
2743 #include <sys/resource.h>
2747 char *(*pfn) = (char *(*)) $ac_func
2750 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2752 eval "gcc_cv_decl_needed_$ac_func=no"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "gcc_cv_decl_needed_$ac_func=yes"
2762 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2765 cat >> confdefs.h <<EOF
2766 #define $gcc_tr_decl 1
2770 echo "$ac_t""no" 1>&6
2776 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2777 echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2778 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2781 "configure"
2783 #include "confdefs.h"
2784 #include <sys/types.h>
2786 /* NetBSD declares sys_siglist in unistd.h. */
2787 #ifdef HAVE_UNISTD_H
2791 char *msg = *(sys_siglist + 1);
2794 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2796 ac_cv_decl_sys_siglist=yes
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2801 ac_cv_decl_sys_siglist=no
2806 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2807 if test $ac_cv_decl_sys_siglist = yes; then
2808 cat >> confdefs.h <<\EOF
2809 #define SYS_SIGLIST_DECLARED 1
2815 # mkdir takes a single argument on some systems.
2816 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2817 echo "configure:2816: checking if mkdir takes one argument" >&5
2818 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2821 "configure"
2823 #include "confdefs.h"
2825 #include <sys/types.h>
2826 #ifdef HAVE_SYS_STAT_H
2827 # include <sys/stat.h>
2829 #ifdef HAVE_UNISTD_H
2830 # include <unistd.h>
2832 #ifdef HAVE_DIRECT_H
2833 # include <direct.h>
2839 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2841 gcc_cv_mkdir_takes_one_arg=no
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 gcc_cv_mkdir_takes_one_arg=yes
2851 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2852 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2853 cat >> confdefs.h <<\EOF
2854 #define MKDIR_TAKES_ONE_ARG 1
2868 build_install_headers_dir=install-headers-tar
2873 host_truncate_target=
2876 # Decode the host machine, then the target machine.
2877 # For the host machine, we save the xm_file variable as host_xm_file;
2878 # then we decode the target machine and forget everything else
2879 # that came from the host machine.
2880 for machine in $build $host $target; do
2894 # Set this to force installation and use of collect2.
2896 # Set this to override the default target model.
2898 # Set this to control how the header file directory is installed.
2899 install_headers_dir=install-headers-tar
2900 # Set this to a non-empty list of args to pass to cpp if the target
2901 # wants its .md file passed through cpp.
2903 # Set this if directory names should be truncated to 14 characters.
2905 # Set this if gdb needs a dir command with `dirname $out_file`
2906 gdb_needs_out_file_path=
2907 # Set this if the build machine requires executables to have a
2910 # Set this to control which thread package will be used.
2912 # Reinitialize these from the flag values every loop pass, since some
2913 # configure entries modify them.
2915 gnu_ld="$gnu_ld_flag"
2916 enable_threads=$enable_threads_flag
2918 # Set default cpu_type, tm_file and xm_file so it can be updated in
2919 # each machine entry.
2920 cpu_type=`echo $machine | sed 's/-.*$//'`
2954 tm_file=${cpu_type}/${cpu_type}.h
2955 xm_file=${cpu_type}/xm-${cpu_type}.h
2957 # Common parts for linux-gnu and openbsd systems
2960 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2963 tm_file=${cpu_type}/openbsd.h
2964 tmake_file="t-libc-ok t-openbsd"
2965 # avoid surprises, always provide an xm-openbsd file
2966 xm_file=${cpu_type}/xm-openbsd.h
2967 # don't depend on processor x-fragments as well
2969 if test x$enable_threads = xyes; then
2971 tmake_file="${tmake_file} t-openbsd-thread"
2977 # Support site-specific machine types.
2979 cpu_type=`echo $machine | sed -e 's/-.*//'`
2980 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2981 xm_file=${cpu_type}/xm-$rest.h
2982 tm_file=${cpu_type}/$rest.h
2983 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2984 then xmake_file=${cpu_type}/x-$rest; \
2987 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2988 then tmake_file=${cpu_type}/t-$rest; \
2994 a29k-*-bsd* | a29k-*-sym1*)
2995 tm_file="${tm_file} a29k/unix.h"
2997 xmake_file=a29k/x-unix
3000 a29k-*-udi | a29k-*-coff)
3001 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3002 tmake_file=a29k/t-a29kbare
3005 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3006 tmake_file=a29k/t-vx29k
3007 extra_parts="crtbegin.o crtend.o"
3008 thread_file='vxworks'
3010 a29k-*-*) # Default a29k environment.
3014 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3016 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3017 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3019 # GAS + IEEE_CONFORMANT
3020 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3022 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3023 xmake_file="x-interix alpha/t-pe"
3024 tmake_file="alpha/t-interix alpha/t-ieee"
3025 if test x$enable_threads = xyes ; then
3028 if test x$stabs = xyes ; then
3029 tm_file="${tm_file} dbxcoff.h"
3031 #prefix='$$INTERIX_ROOT'/usr/contrib
3032 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3034 alpha*-*-linux-gnuecoff*)
3035 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3036 target_cpu_default="MASK_GAS"
3037 tmake_file="alpha/t-ieee"
3042 alpha*-*-linux-gnulibc1*)
3043 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3044 target_cpu_default="MASK_GAS"
3045 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3046 extra_parts="crtbegin.o crtend.o"
3049 if test x$enable_threads = xyes; then
3053 alpha*-*-linux-gnu*)
3054 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3055 target_cpu_default="MASK_GAS"
3056 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3057 extra_parts="crtbegin.o crtend.o"
3060 if test x$enable_threads = xyes; then
3065 tm_file="${tm_file} freebsd.h alpha/freebsd.h"
3066 xm_file="${xm_file} xm-freebsd.h"
3067 target_cpu_default="MASK_GAS"
3068 tmake_file="t-freebsd alpha/t-crtbe"
3070 fixincludes=fixinc.wrap
3074 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3075 target_cpu_default="MASK_GAS"
3076 tmake_file="alpha/t-crtbe alpha/t-ieee"
3077 extra_parts="crtbegin.o crtend.o"
3083 # default x-alpha is only appropriate for dec-osf.
3084 target_cpu_default="MASK_GAS"
3085 tmake_file="alpha/t-ieee"
3089 if test x$stabs = xyes
3091 tm_file="${tm_file} dbx.h"
3093 if test x$gas != xyes
3095 extra_passes="mips-tfile mips-tdump"
3098 tmake_file="alpha/t-ieee"
3101 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3104 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3107 tm_file="${tm_file} alpha/osf.h"
3108 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3109 # a broken tar, so we use cpio instead.
3110 install_headers_dir=install-headers-cpio
3114 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3115 target_cpu_default=MASK_SUPPORT_ARCH
3120 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3121 tmake_file="alpha/t-ieee"
3124 extra_passes="mips-tfile mips-tdump"
3127 thread_file='vxworks'
3130 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3131 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3132 tmake_file="t-libc-ok alpha/t-ieee"
3133 xmake_file=winnt/x-winnt
3134 extra_host_objs=oldnames.o
3135 extra_gcc_objs="spawnv.o oldnames.o"
3136 if test x$gnu_ld != xyes
3138 extra_programs=ld.exe
3140 if test x$enable_threads = xyes; then
3146 xm_file="${xm_file} alpha/xm-vms.h"
3147 tmake_file="alpha/t-vms alpha/t-ieee"
3150 extra_parts="crtinit.o crtfini.o"
3152 arm-*-coff* | armel-*-coff*)
3154 tmake_file=arm/t-bare
3158 tmake_file=arm/t-bare
3159 thread_file='vxworks'
3161 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3162 tm_file=arm/riscix1-1.h
3165 arm-*-riscix*) # Acorn RISC machine
3166 if test x$gas = xyes
3168 tm_file=arm/rix-gas.h
3170 tm_file=arm/riscix.h
3172 xmake_file=arm/x-riscix
3173 tmake_file=arm/t-riscix
3176 arm-semi-aout | armel-semi-aout)
3178 tmake_file=arm/t-semi
3180 arm-semi-aof | armel-semi-aof)
3181 tm_file=arm/semiaof.h
3182 tmake_file=arm/t-semiaof
3185 tm_file=arm/netbsd.h
3186 xm_file="arm/xm-netbsd.h ${xm_file}"
3187 tmake_file="t-netbsd arm/t-netbsd"
3190 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3193 tm_file=arm/linux-aout.h
3194 tmake_file=arm/t-linux
3197 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3198 xm_file=arm/xm-linux.h
3200 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3203 tm_file="arm/linux-elf26.h $tm_file"
3206 tmake_file="t-linux arm/t-linux"
3207 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3209 case x${enable_threads} in
3210 x | xyes | xpthreads | xposix)
3215 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3216 xm_file=arm/xm-linux.h
3218 tm_file="arm/linux-elf.h"
3221 tm_file="arm/linux-elf26.h $tm_file"
3224 tmake_file="t-linux arm/t-linux"
3225 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3227 case x${enable_threads} in
3228 x | xyes | xpthreads | xposix)
3235 tmake_file=arm/t-bare
3238 tm_file=arm/ecos-elf.h
3239 tmake_file=arm/t-elf
3242 tm_file=arm/unknown-elf.h
3243 tmake_file=arm/t-arm-elf
3246 tm_file=arm/unknown-elf-oabi.h
3247 tmake_file=arm/t-arm-elf
3249 c1-convex-*) # Convex C1
3250 target_cpu_default=1
3253 c2-convex-*) # Convex C2
3254 target_cpu_default=2
3258 target_cpu_default=4
3262 target_cpu_default=8
3266 target_cpu_default=16
3271 tmake_file=c4x/t-c4x
3273 clipper-intergraph-clix*)
3274 tm_file="${tm_file} svr3.h clipper/clix.h"
3275 xm_file=clipper/xm-clix.h
3276 xmake_file=clipper/x-clix
3277 extra_headers=va-clipper.h
3278 extra_parts="crtbegin.o crtend.o"
3279 install_headers_dir=install-headers-cpio
3286 # This hasn't been upgraded to GCC 2.
3287 # fx80-alliant-*) # Alliant FX/80
3293 target_cpu_default="MASK_PA_11"
3294 tmake_file=pa/t-openbsd
3297 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3298 xm_file=pa/xm-papro.h
3302 target_cpu_default="MASK_PA_11"
3303 tm_file="${tm_file} pa/pa-osf.h"
3307 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3308 xm_file=pa/xm-papro.h
3312 tm_file="${tm_file} pa/pa-osf.h"
3316 target_cpu_default="MASK_PA_11"
3323 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3324 xm_file=pa/xm-pahpux.h
3325 xmake_file=pa/x-pa-hpux
3326 if test x$gas = xyes
3328 tm_file="${tm_file} pa/gas.h"
3330 install_headers_dir=install-headers-cpio
3333 hppa1.0-*-hpux8.0[0-2]*)
3334 tm_file="${tm_file} pa/pa-hpux.h"
3335 xm_file=pa/xm-pahpux.h
3336 xmake_file=pa/x-pa-hpux
3337 if test x$gas = xyes
3339 tm_file="${tm_file} pa/pa-gas.h"
3341 tm_file="pa/pa-oldas.h ${tm_file}"
3343 install_headers_dir=install-headers-cpio
3346 hppa1.1-*-hpux8.0[0-2]*)
3347 target_cpu_default="MASK_PA_11"
3348 tm_file="${tm_file} pa/pa-hpux.h"
3349 xm_file=pa/xm-pahpux.h
3350 xmake_file=pa/x-pa-hpux
3351 if test x$gas = xyes
3353 tm_file="${tm_file} pa/pa-gas.h"
3355 tm_file="pa/pa-oldas.h ${tm_file}"
3357 install_headers_dir=install-headers-cpio
3361 target_cpu_default="MASK_PA_11"
3362 tm_file="${tm_file} pa/pa-hpux.h"
3363 xm_file=pa/xm-pahpux.h
3364 xmake_file=pa/x-pa-hpux
3365 if test x$gas = xyes
3367 tm_file="${tm_file} pa/pa-gas.h"
3369 install_headers_dir=install-headers-cpio
3373 tm_file="${tm_file} pa/pa-hpux.h"
3374 xm_file=pa/xm-pahpux.h
3375 xmake_file=pa/x-pa-hpux
3376 if test x$gas = xyes
3378 tm_file="${tm_file} pa/pa-gas.h"
3380 install_headers_dir=install-headers-cpio
3383 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3384 target_cpu_default="MASK_PA_11"
3385 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3386 xm_file=pa/xm-pahpux.h
3387 xmake_file=pa/x-pa-hpux
3389 if test x$gas = xyes
3391 tm_file="${tm_file} pa/pa-gas.h"
3393 if test x$enable_threads = x; then
3394 enable_threads=$have_pthread_h
3396 if test x$enable_threads = xyes; then
3398 tmake_file="${tmake_file} pa/t-dce-thr"
3400 install_headers_dir=install-headers-cpio
3404 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3405 xm_file=pa/xm-pahpux.h
3406 xmake_file=pa/x-pa-hpux
3408 if test x$gas = xyes
3410 tm_file="${tm_file} pa/pa-gas.h"
3412 if test x$enable_threads = x; then
3413 enable_threads=$have_pthread_h
3415 if test x$enable_threads = xyes; then
3417 tmake_file="${tmake_file} pa/t-dce-thr"
3419 install_headers_dir=install-headers-cpio
3422 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3423 target_cpu_default="MASK_PA_11"
3424 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3425 xm_file=pa/xm-pahpux.h
3426 xmake_file=pa/x-pa-hpux
3427 if test x$gas = xyes
3429 tm_file="${tm_file} pa/pa-gas.h"
3431 install_headers_dir=install-headers-cpio
3435 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3436 xm_file=pa/xm-pahpux.h
3437 xmake_file=pa/x-pa-hpux
3438 if test x$gas = xyes
3440 tm_file="${tm_file} pa/pa-gas.h"
3442 install_headers_dir=install-headers-cpio
3445 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3446 target_cpu_default="MASK_PA_11"
3447 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3448 xm_file=pa/xm-pahpux.h
3449 xmake_file=pa/x-pa-hpux
3450 if test x$gas = xyes
3452 tm_file="${tm_file} pa/pa-gas.h"
3454 install_headers_dir=install-headers-cpio
3458 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3459 xm_file=pa/xm-pahpux.h
3460 xmake_file=pa/x-pa-hpux
3461 if test x$gas = xyes
3463 tm_file="${tm_file} pa/pa-gas.h"
3465 install_headers_dir=install-headers-cpio
3469 target_cpu_default="MASK_PA_11"
3474 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3475 if test x$gas = xyes
3477 tm_file=i386/aix386.h
3478 extra_parts="crtbegin.o crtend.o"
3479 tmake_file=i386/t-crtstuff
3481 tm_file=i386/aix386ng.h
3484 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3486 xmake_file=i386/x-aix
3488 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3489 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3490 xm_defines="USG POSIX SMALL_ARG_MAX"
3491 xmake_file=i386/x-ncr3000
3492 if test x$stabs = xyes -a x$gas = xyes
3494 tm_file=i386/sysv4gdb.h
3496 tm_file=i386/sysv4.h
3498 extra_parts="crtbegin.o crtend.o"
3499 tmake_file=i386/t-crtpic
3503 xm_file=i386/xm-next.h
3504 tmake_file=i386/t-next
3505 xmake_file=i386/x-next
3506 extra_objs=nextstep.o
3507 extra_parts="crtbegin.o crtend.o"
3508 if test x$enable_threads = xyes; then
3512 i[34567]86-sequent-bsd*) # 80386 from Sequent
3514 if test x$gas = xyes
3516 tm_file=i386/seq-gas.h
3518 tm_file=i386/sequent.h
3521 i[34567]86-sequent-ptx1*)
3522 xm_defines="USG SVR3"
3523 xmake_file=i386/x-sysv3
3524 tm_file=i386/seq-sysv3.h
3525 tmake_file=i386/t-crtstuff
3526 extra_parts="crtbegin.o crtend.o"
3527 install_headers_dir=install-headers-cpio
3529 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3530 xm_defines="USG SVR3"
3531 xmake_file=i386/x-sysv3
3532 tm_file=i386/seq2-sysv3.h
3533 tmake_file=i386/t-crtstuff
3534 extra_parts="crtbegin.o crtend.o"
3535 install_headers_dir=install-headers-cpio
3537 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3538 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3539 xm_defines="USG POSIX SMALL_ARG_MAX"
3541 tm_file=i386/ptx4-i.h
3543 extra_parts="crtbegin.o crtend.o"
3544 install_headers_dir=install-headers-cpio
3546 i386-sun-sunos*) # Sun i386 roadrunner
3551 i[34567]86-wrs-vxworks*)
3552 tm_file=i386/vxi386.h
3553 tmake_file=i386/t-i386bare
3554 thread_file='vxworks'
3557 tm_file=i386/i386-aout.h
3558 tmake_file=i386/t-i386bare
3560 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3561 tm_file=i386/bsd386.h
3562 # tmake_file=t-libc-ok
3565 tm_file=i386/386bsd.h
3566 # tmake_file=t-libc-ok
3567 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3570 i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*)
3571 tm_file=i386/freebsd-aout.h
3572 # On FreeBSD, the headers are already ok, except for math.h.
3573 fixincludes=fixinc.wrap
3574 tmake_file=t-freebsd
3576 i[34567]86-*-freebsd* | i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsdelf*)
3577 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd.h i386/perform.h"
3578 # On FreeBSD, the headers are already ok, except for math.h.
3579 fixincludes=fixinc.wrap
3580 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3581 tmake_file=t-freebsd
3586 i[34567]86-*-netbsd*)
3587 tm_file=i386/netbsd.h
3591 i[34567]86-*-openbsd*)
3592 # we need collect2 until our bug is fixed...
3596 tm_file=i386/i386-coff.h
3597 tmake_file=i386/t-i386bare
3599 i[34567]86-*-isc*) # 80386 running ISC system
3600 xm_file="${xm_file} i386/xm-isc.h"
3601 xm_defines="USG SVR3"
3603 i[34567]86-*-isc[34]*)
3604 xmake_file=i386/x-isc3
3607 xmake_file=i386/x-isc
3610 if test x$gas = xyes -a x$stabs = xyes
3612 tm_file=i386/iscdbx.h
3613 tmake_file=i386/t-svr3dbx
3614 extra_parts="svr3.ifile svr3z.ifile"
3616 tm_file=i386/isccoff.h
3617 tmake_file=i386/t-crtstuff
3618 extra_parts="crtbegin.o crtend.o"
3620 install_headers_dir=install-headers-cpio
3622 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3624 xmake_file=x-linux-aout
3625 tmake_file="t-linux-aout i386/t-crtstuff"
3626 tm_file=i386/linux-oldld.h
3630 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3631 xmake_file=x-linux-aout
3632 tmake_file="t-linux-aout i386/t-crtstuff"
3633 tm_file=i386/linux-aout.h
3637 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3638 # GNU/Linux C library 5
3640 tm_file=i386/linux.h
3641 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3642 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3645 if test x$enable_threads = xyes; then
3646 thread_file='single'
3649 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3650 # aka GNU/Linux C library 6
3652 tm_file=i386/linux.h
3653 tmake_file="t-linux i386/t-crtstuff"
3654 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3657 if test x$enable_threads = xyes; then
3664 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3665 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3668 i[34567]86-pc-msdosdjgpp*)
3669 xm_file=i386/xm-djgpp.h
3670 tm_file=i386/djgpp.h
3671 tmake_file=i386/t-djgpp
3672 xmake_file=i386/x-djgpp
3676 case $host in *pc-msdosdjgpp*)
3681 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3683 tmake_file=t-libc-ok
3687 i[34567]86-*-lynxos*)
3688 if test x$gas = xyes
3692 tm_file=i386/lynx-ng.h
3694 xm_file=i386/xm-lynx.h
3695 tmake_file=i386/t-i386bare
3700 # tmake_file=t-libc-ok
3703 i[34567]86-*-osfrose*) # 386 using OSF/rose
3704 if test x$elf = xyes
3706 tm_file=i386/osfelf.h
3709 tm_file=i386/osfrose.h
3712 xm_file="i386/xm-osf.h ${xm_file}"
3713 xmake_file=i386/x-osfrose
3714 tmake_file=i386/t-osf
3715 extra_objs=halfpic.o
3717 i[34567]86-go32-rtems*)
3719 xm_file=i386/xm-go32.h
3720 tm_file=i386/go32-rtems.h
3721 tmake_file="i386/t-go32 t-rtems"
3723 i[34567]86-*-rtemself*)
3725 tm_file=i386/rtemself.h
3726 tmake_file="i386/t-i386bare t-rtems"
3728 i[34567]86-*-rtems*)
3730 tm_file=i386/rtems.h
3731 tmake_file="i386/t-i386bare t-rtems"
3733 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3734 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3735 xm_defines="USG SVR3"
3736 xmake_file=i386/x-sco5
3737 install_headers_dir=install-headers-cpio
3739 if test x$gas = xyes
3741 tm_file="i386/sco5gas.h ${tm_file}"
3742 tmake_file=i386/t-sco5gas
3744 tmake_file=i386/t-sco5
3746 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3748 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3749 xm_file="${xm_file} i386/xm-sco.h"
3750 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3751 xmake_file=i386/x-sco4
3752 install_headers_dir=install-headers-cpio
3753 if test x$stabs = xyes
3755 tm_file=i386/sco4dbx.h
3756 tmake_file=i386/t-svr3dbx
3757 extra_parts="svr3.ifile svr3z.rfile"
3760 tmake_file=i386/t-crtstuff
3761 extra_parts="crtbegin.o crtend.o"
3765 i[34567]86-*-sco*) # 80386 running SCO system
3766 xm_file=i386/xm-sco.h
3767 xmake_file=i386/x-sco
3768 install_headers_dir=install-headers-cpio
3769 if test x$stabs = xyes
3771 tm_file=i386/scodbx.h
3772 tmake_file=i386/t-svr3dbx
3773 extra_parts="svr3.ifile svr3z.rfile"
3776 extra_parts="crtbegin.o crtend.o"
3777 tmake_file=i386/t-crtstuff
3781 i[34567]86-*-solaris2*)
3782 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3783 xm_defines="USG POSIX SMALL_ARG_MAX"
3785 if test x$gas = xyes; then
3786 # Only needed if gas does not support -s
3787 tm_file="i386/sol2gas.h ${tm_file}"
3789 tmake_file=i386/t-sol2
3790 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3792 if test x$enable_threads = xyes; then
3793 thread_file='solaris'
3796 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3797 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3798 xm_defines="USG POSIX"
3799 tm_file=i386/sysv5.h
3800 if test x$stabs = xyes
3802 tm_file="${tm_file} dbx.h"
3804 tmake_file=i386/t-crtpic
3806 extra_parts="crtbegin.o crtend.o"
3807 if test x$enable_threads = xyes; then
3811 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3812 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3813 xm_defines="USG POSIX SMALL_ARG_MAX"
3814 tm_file=i386/sysv4.h
3815 if test x$stabs = xyes
3817 tm_file="${tm_file} dbx.h"
3819 tmake_file=i386/t-crtpic
3821 extra_parts="crtbegin.o crtend.o"
3823 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3824 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3825 xm_defines="USG POSIX"
3827 tmake_file="i386/t-crtpic i386/t-udk"
3829 extra_parts="crtbegin.o crtend.o"
3830 install_headers_dir=install-headers-cpio
3832 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3834 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3835 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3836 if test x$stabs = xyes
3838 tm_file=i386/osf1elfgdb.h
3840 tm_file=i386/osf1elf.h
3842 tmake_file=i386/t-osf1elf
3843 xmake_file=i386/x-osf1elf
3844 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3846 i[34567]86-*-sysv*) # Intel 80386's running system V
3847 xm_defines="USG SVR3"
3848 xmake_file=i386/x-sysv3
3849 if test x$gas = xyes
3851 if test x$stabs = xyes
3853 tm_file=i386/svr3dbx.h
3854 tmake_file=i386/t-svr3dbx
3855 extra_parts="svr3.ifile svr3z.rfile"
3857 tm_file=i386/svr3gas.h
3858 extra_parts="crtbegin.o crtend.o"
3859 tmake_file=i386/t-crtstuff
3862 tm_file=i386/sysv3.h
3863 extra_parts="crtbegin.o crtend.o"
3864 tmake_file=i386/t-crtstuff
3867 i386-*-vsta) # Intel 80386's running VSTa kernel
3868 xm_file="${xm_file} i386/xm-vsta.h"
3870 tmake_file=i386/t-vsta
3871 xmake_file=i386/x-vsta
3874 xm_file="${xm_file} i386/xm-cygwin.h"
3875 tmake_file=i386/t-cygwin
3876 tm_file=i386/win32.h
3877 xmake_file=i386/x-cygwin
3879 if test x$enable_threads = xyes; then
3884 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3885 xm_file="${xm_file} i386/xm-cygwin.h"
3886 tmake_file=i386/t-cygwin
3887 tm_file=i386/cygwin.h
3888 xmake_file=i386/x-cygwin
3890 if test x$enable_threads = xyes; then
3895 i[34567]86-*-mingw32*)
3896 tm_file=i386/mingw32.h
3897 xm_file="${xm_file} i386/xm-mingw32.h"
3898 tmake_file="i386/t-cygwin i386/t-mingw32"
3900 xmake_file=i386/x-cygwin
3901 if test x$enable_threads = xyes; then
3908 *minwg32crt* | *mingw32*)
3909 tm_file="${tm_file} i386/crtdll.h"
3915 tmake_file="i386/t-cygwin i386/t-uwin"
3917 xmake_file=i386/x-cygwin
3918 if test x$enable_threads = xyes; then
3923 i[34567]86-*-interix*)
3924 tm_file="i386/i386-interix.h interix.h"
3925 xm_file="i386/xm-i386-interix.h xm-interix.h"
3926 xm_defines="USG NO_SYS_SIGLIST"
3927 tmake_file="i386/t-interix"
3928 extra_objs=interix.o
3929 xmake_file=x-interix
3930 if test x$enable_threads = xyes ; then
3933 if test x$stabs = xyes ; then
3934 tm_file="${tm_file} dbxcoff.h"
3937 i[34567]86-*-winnt3*)
3938 tm_file=i386/win-nt.h
3939 out_file=i386/i386.c
3940 xm_file="xm-winnt.h ${xm_file}"
3941 xmake_file=winnt/x-winnt
3942 tmake_file=i386/t-winnt
3943 extra_host_objs="winnt.o oldnames.o"
3944 extra_gcc_objs="spawnv.o oldnames.o"
3945 if test x$gnu_ld != xyes
3947 extra_programs=ld.exe
3949 if test x$enable_threads = xyes; then
3953 i[34567]86-dg-dgux*)
3954 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3955 xm_defines="USG POSIX"
3956 out_file=i386/dgux.c
3958 tmake_file=i386/t-dgux
3959 xmake_file=i386/x-dgux
3960 install_headers_dir=install-headers-cpio
3962 i860-alliant-*) # Alliant FX/2800
3963 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3964 xm_file="${xm_file}"
3965 xmake_file=i860/x-fx2800
3966 tmake_file=i860/t-fx2800
3967 extra_parts="crtbegin.o crtend.o"
3970 tm_file="${tm_file} i860/bsd.h"
3971 if test x$gas = xyes
3973 tm_file="${tm_file} i860/bsd-gas.h"
3978 tm_file="${tm_file} i860/mach.h"
3979 tmake_file=t-libc-ok
3981 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3982 tm_file="${tm_file} svr3.h i860/paragon.h"
3983 xm_defines="USG SVR3"
3987 tm_file="${tm_file} svr3.h i860/sysv3.h"
3988 xm_defines="USG SVR3"
3989 xmake_file=i860/x-sysv3
3990 extra_parts="crtbegin.o crtend.o"
3993 tm_file="${tm_file} svr4.h i860/sysv4.h"
3994 xm_defines="USG SVR3"
3995 xmake_file=i860/x-sysv4
3997 extra_parts="crtbegin.o crtend.o"
3999 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4000 tm_file="${tm_file} i960/vx960.h"
4001 tmake_file=i960/t-vxworks960
4003 thread_file='vxworks'
4005 i960-wrs-vxworks5* | i960-wrs-vxworks)
4006 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4007 tmake_file=i960/t-vxworks960
4009 thread_file='vxworks'
4012 tm_file="${tm_file} i960/vx960.h"
4013 tmake_file=i960/t-vxworks960
4015 thread_file='vxworks'
4018 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4019 tmake_file=i960/t-960bare
4023 tmake_file="i960/t-960bare t-rtems"
4024 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4027 i960-*-*) # Default i960 environment.
4031 extra_parts="crtinit.o crtfini.o"
4033 m68000-convergent-sysv*)
4035 xm_file="m68k/xm-3b1.h ${xm_file}"
4038 extra_headers=math-68881.h
4040 m68000-hp-bsd*) # HP 9000/200 running BSD
4041 tm_file=m68k/hp2bsd.h
4042 xmake_file=m68k/x-hp2bsd
4044 extra_headers=math-68881.h
4046 m68000-hp-hpux*) # HP 9000 series 300
4047 xm_file="xm-alloca.h ${xm_file}"
4048 xm_defines="USG NO_SYS_SIGLIST"
4049 if test x$gas = xyes
4051 xmake_file=m68k/x-hp320g
4052 tm_file=m68k/hp310g.h
4054 xmake_file=m68k/x-hp320
4055 tm_file=m68k/hp310.h
4057 install_headers_dir=install-headers-cpio
4059 extra_headers=math-68881.h
4064 extra_headers=math-68881.h
4067 tm_file=m68k/sun2o4.h
4069 extra_headers=math-68881.h
4072 xm_file="m68k/xm-3b1.h ${xm_file}"
4074 if test x$gas = xyes
4081 extra_headers=math-68881.h
4083 m68k-apple-aux*) # Apple Macintosh running A/UX
4084 xm_defines="USG AUX"
4085 tmake_file=m68k/t-aux
4086 install_headers_dir=install-headers-cpio
4087 extra_headers=math-68881.h
4088 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4090 if test "$gnu_ld" = yes
4092 tm_file="${tm_file} m68k/auxgld.h"
4094 tm_file="${tm_file} m68k/auxld.h"
4096 if test "$gas" = yes
4098 tm_file="${tm_file} m68k/auxgas.h"
4100 tm_file="${tm_file} m68k/auxas.h"
4102 tm_file="${tm_file} m68k/a-ux.h"
4106 tm_file=m68k/apollo68.h
4107 xmake_file=m68k/x-apollo68
4109 extra_headers=math-68881.h
4112 m68k-altos-sysv*) # Altos 3068
4113 if test x$gas = xyes
4115 tm_file=m68k/altos3068.h
4118 echo "The Altos is supported only with the GNU assembler" 1>&2
4121 extra_headers=math-68881.h
4123 m68k-bull-sysv*) # Bull DPX/2
4124 if test x$gas = xyes
4126 if test x$stabs = xyes
4128 tm_file=m68k/dpx2cdbx.h
4130 tm_file=m68k/dpx2g.h
4135 xm_file="xm-alloca.h ${xm_file}"
4137 xmake_file=m68k/x-dpx2
4139 extra_headers=math-68881.h
4141 m68k-atari-sysv4*) # Atari variant of V.4.
4142 tm_file=m68k/atari.h
4143 xm_file="xm-alloca.h ${xm_file}"
4144 xm_defines="USG FULL_PROTOTYPES"
4146 extra_parts="crtbegin.o crtend.o"
4147 extra_headers=math-68881.h
4150 m68k-motorola-sysv*)
4151 tm_file=m68k/mot3300.h
4152 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4153 xm_defines=NO_SYS_SIGLIST
4154 if test x$gas = xyes
4156 xmake_file=m68k/x-mot3300-gas
4157 if test x$gnu_ld = xyes
4159 tmake_file=m68k/t-mot3300-gald
4161 tmake_file=m68k/t-mot3300-gas
4165 xmake_file=m68k/x-mot3300
4166 if test x$gnu_ld = xyes
4168 tmake_file=m68k/t-mot3300-gld
4170 tmake_file=m68k/t-mot3300
4174 gdb_needs_out_file_path=yes
4175 extra_parts="crt0.o mcrt0.o"
4176 extra_headers=math-68881.h
4179 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4180 tm_file=m68k/tower-as.h
4181 xm_defines="USG SVR3"
4182 xmake_file=m68k/x-tower
4183 extra_parts="crtbegin.o crtend.o"
4184 extra_headers=math-68881.h
4187 tm_file=m68k/plexus.h
4188 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4191 extra_headers=math-68881.h
4195 xm_file="xm-alloca.h ${xm_file}"
4197 extra_headers=math-68881.h
4200 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4201 xm_defines="USG unos"
4202 xmake_file=m68k/x-crds
4205 extra_headers=math-68881.h
4207 m68k-cbm-sysv4*) # Commodore variant of V.4.
4209 xm_file="xm-alloca.h ${xm_file}"
4210 xm_defines="USG FULL_PROTOTYPES"
4211 xmake_file=m68k/x-amix
4213 extra_parts="crtbegin.o crtend.o"
4214 extra_headers=math-68881.h
4218 tm_file=m68k/ccur-GAS.h
4219 xmake_file=m68k/x-ccur
4220 extra_headers=math-68881.h
4224 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4225 tm_file=m68k/hp3bsd44.h
4227 extra_headers=math-68881.h
4230 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4231 tm_file=m68k/hp3bsd.h
4233 extra_headers=math-68881.h
4237 if test x$with_fp = xno
4239 tm_file=m68k/isi-nfp.h
4245 extra_headers=math-68881.h
4247 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4248 xm_file="xm-alloca.h ${xm_file}"
4249 xm_defines="USG NO_SYS_SIGLIST"
4250 if test x$gas = xyes
4252 xmake_file=m68k/x-hp320g
4253 tm_file=m68k/hp320g.h
4255 xmake_file=m68k/x-hp320
4256 tm_file=m68k/hpux7.h
4258 install_headers_dir=install-headers-cpio
4260 extra_headers=math-68881.h
4263 m68k-hp-hpux*) # HP 9000 series 300
4264 xm_file="xm-alloca.h ${xm_file}"
4265 xm_defines="USG NO_SYS_SIGLIST"
4266 if test x$gas = xyes
4268 xmake_file=m68k/x-hp320g
4269 tm_file=m68k/hp320g.h
4271 xmake_file=m68k/x-hp320
4272 tm_file=m68k/hp320.h
4274 install_headers_dir=install-headers-cpio
4276 extra_headers=math-68881.h
4280 tm_file=m68k/sun3mach.h
4282 extra_headers=math-68881.h
4286 if test x$gas = xyes
4288 tm_file=m68k/news3gas.h
4290 tm_file=m68k/news3.h
4293 extra_headers=math-68881.h
4296 m68k-sony-bsd* | m68k-sony-newsos*)
4297 if test x$gas = xyes
4299 tm_file=m68k/newsgas.h
4304 extra_headers=math-68881.h
4307 m68k-next-nextstep2*)
4308 tm_file=m68k/next21.h
4309 xm_file="m68k/xm-next.h ${xm_file}"
4310 tmake_file=m68k/t-next
4311 xmake_file=m68k/x-next
4312 extra_objs=nextstep.o
4313 extra_headers=math-68881.h
4317 m68k-next-nextstep3*)
4319 xm_file="m68k/xm-next.h ${xm_file}"
4320 tmake_file=m68k/t-next
4321 xmake_file=m68k/x-next
4322 extra_objs=nextstep.o
4323 extra_parts="crtbegin.o crtend.o"
4324 extra_headers=math-68881.h
4326 if test x$enable_threads = xyes; then
4331 if test x$with_fp = xno
4333 tm_file=m68k/sun3n3.h
4335 tm_file=m68k/sun3o3.h
4339 extra_headers=math-68881.h
4341 m68k-sun-sunos*) # For SunOS 4 (the default).
4342 if test x$with_fp = xno
4344 tm_file=m68k/sun3n.h
4350 extra_headers=math-68881.h
4353 tm_file=m68k/vxm68k.h
4354 tmake_file=m68k/t-vxworks68
4355 extra_headers=math-68881.h
4356 thread_file='vxworks'
4360 tmake_file=m68k/t-m68kbare
4361 tm_file="m68k/m68k-aout.h libgloss.h"
4362 extra_headers=math-68881.h
4366 tmake_file=m68k/t-m68kbare
4367 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4368 extra_headers=math-68881.h
4371 m68020-*-elf* | m68k-*-elf*)
4372 tm_file="m68k/m68020-elf.h libgloss.h"
4373 xm_file=m68k/xm-m68kv.h
4374 tmake_file=m68k/t-m68kelf
4375 header_files=math-68881.h
4378 if test x$gas = xyes
4382 tm_file=m68k/lynx-ng.h
4384 xm_file=m68k/xm-lynx.h
4386 tmake_file=m68k/t-lynx
4387 extra_headers=math-68881.h
4391 tm_file=m68k/netbsd.h
4398 # we need collect2 until our bug is fixed...
4401 m68k-*-sysv3*) # Motorola m68k's running system V.3
4402 xm_file="xm-alloca.h ${xm_file}"
4404 xmake_file=m68k/x-m68kv
4405 extra_parts="crtbegin.o crtend.o"
4406 extra_headers=math-68881.h
4409 m68k-*-sysv4*) # Motorola m68k's running system V.4
4410 tm_file=m68k/m68kv4.h
4411 xm_file="xm-alloca.h ${xm_file}"
4414 extra_parts="crtbegin.o crtend.o"
4415 extra_headers=math-68881.h
4418 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4421 tm_file=m68k/linux-aout.h
4422 tmake_file="t-linux-aout m68k/t-linux-aout"
4423 extra_headers=math-68881.h
4427 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4428 # with ELF format using the
4429 # GNU/Linux C library 5
4431 tm_file=m68k/linux.h
4432 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4433 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4434 extra_headers=math-68881.h
4438 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4439 # with ELF format using glibc 2
4440 # aka the GNU/Linux C library 6.
4442 tm_file=m68k/linux.h
4443 tmake_file="t-linux m68k/t-linux"
4444 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4445 extra_headers=math-68881.h
4448 if test x$enable_threads = xyes; then
4453 tmake_file=m68k/t-m68kbare
4454 tm_file=m68k/m68k-psos.h
4455 extra_headers=math-68881.h
4459 tmake_file="m68k/t-m68kbare t-rtems"
4460 tm_file=m68k/rtems.h
4461 extra_headers=math-68881.h
4468 tm_file=m88k/dguxbcs.h
4469 tmake_file=m88k/t-dguxbcs
4473 tmake_file=m88k/t-dgux
4476 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4477 xmake_file=m88k/x-dgux
4478 if test x$gas = xyes
4480 tmake_file=m88k/t-dgux-gas
4483 m88k-dolphin-sysv3*)
4484 tm_file=m88k/dolph.h
4485 extra_parts="crtbegin.o crtend.o"
4486 xm_file="m88k/xm-sysv3.h ${xm_file}"
4487 xmake_file=m88k/x-dolph
4488 if test x$gas = xyes
4490 tmake_file=m88k/t-m88k-gas
4493 m88k-tektronix-sysv3)
4494 tm_file=m88k/tekXD88.h
4495 extra_parts="crtbegin.o crtend.o"
4496 xm_file="m88k/xm-sysv3.h ${xm_file}"
4497 xmake_file=m88k/x-tekXD88
4498 if test x$gas = xyes
4500 tmake_file=m88k/t-m88k-gas
4504 tm_file=m88k/m88k-aout.h
4507 tm_file=m88k/m88k-coff.h
4508 tmake_file=m88k/t-bug
4512 extra_parts="crtbegin.o crtend.o"
4513 if test x$gas = xyes
4515 tmake_file=m88k/t-luna-gas
4517 tmake_file=m88k/t-luna
4521 tmake_file="${tmake_file} m88k/t-luna-gas"
4524 tm_file=m88k/sysv3.h
4525 extra_parts="crtbegin.o crtend.o"
4526 xm_file="m88k/xm-sysv3.h ${xm_file}"
4527 xmake_file=m88k/x-sysv3
4528 if test x$gas = xyes
4530 tmake_file=m88k/t-m88k-gas
4534 tm_file=m88k/sysv4.h
4535 extra_parts="crtbegin.o crtend.o"
4536 xmake_file=m88k/x-sysv4
4537 tmake_file=m88k/t-sysv4
4539 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4540 tm_file=mips/iris6.h
4541 xm_file=mips/xm-iris6.h
4542 xmake_file=mips/x-iris6
4543 tmake_file=mips/t-iris6
4544 # if test x$enable_threads = xyes; then
4545 # thread_file='irix'
4549 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4550 tmake_file=mips/t-ecoff
4553 extra_parts="crtbegin.o crtend.o"
4554 thread_file='vxworks'
4556 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4557 tm_file="mips/iris6.h mips/cross64.h"
4559 xm_file="mips/xm-iris5.h"
4560 xmake_file=mips/x-iris
4561 tmake_file=mips/t-cross64
4562 # See comment in mips/iris[56].h files.
4564 # if test x$enable_threads = xyes; then
4565 # thread_file='irix'
4569 if test x$gas = xyes
4571 if test x$stabs = xyes
4573 tm_file=mips/iris5gdb.h
4575 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4578 tm_file=mips/sni-svr4.h
4581 xmake_file=mips/x-sni-svr4
4582 tmake_file=mips/t-mips-gas
4583 if test x$gnu_ld != xyes
4588 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4589 if test x$gas = xyes
4591 tm_file="mips/iris5.h mips/iris5gas.h"
4592 if test x$stabs = xyes
4594 tm_file="${tm_file} dbx.h"
4597 tm_file=mips/iris5.h
4600 xm_file="mips/xm-iris5.h"
4601 xmake_file=mips/x-iris
4602 # mips-tfile doesn't work yet
4603 tmake_file=mips/t-mips-gas
4604 # See comment in mips/iris5.h file.
4606 # if test x$enable_threads = xyes; then
4607 # thread_file='irix'
4610 mips-sgi-irix4loser*) # Mostly like a MIPS.
4611 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4612 if test x$stabs = xyes; then
4613 tm_file="${tm_file} dbx.h"
4616 xmake_file=mips/x-iris
4617 if test x$gas = xyes
4619 tmake_file=mips/t-mips-gas
4621 extra_passes="mips-tfile mips-tdump"
4623 if test x$gnu_ld != xyes
4627 # if test x$enable_threads = xyes; then
4628 # thread_file='irix'
4631 mips-sgi-irix4*) # Mostly like a MIPS.
4632 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4633 if test x$stabs = xyes; then
4634 tm_file="${tm_file} dbx.h"
4637 xmake_file=mips/x-iris
4638 if test x$gas = xyes
4640 tmake_file=mips/t-mips-gas
4642 extra_passes="mips-tfile mips-tdump"
4644 if test x$gnu_ld != xyes
4648 # if test x$enable_threads = xyes; then
4649 # thread_file='irix'
4652 mips-sgi-*) # Mostly like a MIPS.
4653 tm_file="mips/iris3.h ${tm_file}"
4654 if test x$stabs = xyes; then
4655 tm_file="${tm_file} dbx.h"
4658 xmake_file=mips/x-iris3
4659 if test x$gas = xyes
4661 tmake_file=mips/t-mips-gas
4663 extra_passes="mips-tfile mips-tdump"
4665 if test x$gnu_ld != xyes
4670 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4671 tm_file="mips/osfrose.h ${tm_file}"
4672 xmake_file=mips/x-osfrose
4673 tmake_file=mips/t-osfrose
4674 extra_objs=halfpic.o
4677 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4678 tm_file=mips/dec-osf1.h
4679 if test x$stabs = xyes; then
4680 tm_file="${tm_file} dbx.h"
4682 xmake_file=mips/x-dec-osf1
4683 if test x$gas = xyes
4685 tmake_file=mips/t-mips-gas
4687 tmake_file=mips/t-ultrix
4688 extra_passes="mips-tfile mips-tdump"
4690 if test x$gnu_ld != xyes
4695 mips-dec-bsd*) # Decstation running 4.4 BSD
4696 tm_file=mips/dec-bsd.h
4697 if test x$gas = xyes
4699 tmake_file=mips/t-mips-gas
4701 tmake_file=mips/t-ultrix
4702 extra_passes="mips-tfile mips-tdump"
4704 if test x$gnu_ld != xyes
4709 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4710 tm_file=mips/netbsd.h
4711 # On NetBSD, the headers are already okay, except for math.h.
4714 mips*-*-linux*) # Linux MIPS, either endian.
4716 xm_file="xm-siglist.h ${xm_file}"
4718 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4719 *) tm_file="mips/elf.h mips/linux.h" ;;
4721 extra_parts="crtbegin.o crtend.o"
4725 mips*el-*-openbsd*) # mips little endian
4726 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4727 tm_file=mips/openbsd.h
4729 mips*-*-openbsd*) # mips big endian
4730 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4731 tm_file=mips/openbsd-be.h
4733 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4734 tm_file="mips/news4.h ${tm_file}"
4735 if test x$stabs = xyes; then
4736 tm_file="${tm_file} dbx.h"
4738 if test x$gas = xyes
4740 tmake_file=mips/t-mips-gas
4742 extra_passes="mips-tfile mips-tdump"
4744 if test x$gnu_ld != xyes
4748 xmake_file=mips/x-sony
4750 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4751 # That is based on svr4.
4752 # t-svr4 is not right because this system doesn't use ELF.
4753 tm_file="mips/news5.h ${tm_file}"
4754 if test x$stabs = xyes; then
4755 tm_file="${tm_file} dbx.h"
4757 xm_file="xm-siglist.h ${xm_file}"
4759 if test x$gas = xyes
4761 tmake_file=mips/t-mips-gas
4763 extra_passes="mips-tfile mips-tdump"
4765 if test x$gnu_ld != xyes
4770 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4771 tm_file="mips/svr4-5.h mips/svr4-t.h"
4772 if test x$stabs = xyes; then
4773 tm_file="${tm_file} dbx.h"
4775 xm_file="xm-siglist.h ${xm_file}"
4777 xmake_file=mips/x-sysv
4778 if test x$gas = xyes
4780 tmake_file=mips/t-mips-gas
4781 extra_parts="crtbegin.o crtend.o"
4783 tmake_file=mips/t-mips
4784 extra_passes="mips-tfile mips-tdump"
4786 if test x$gnu_ld != xyes
4791 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4792 tm_file="mips/ultrix.h ${tm_file}"
4793 if test x$stabs = xyes; then
4794 tm_file="${tm_file} dbx.h"
4796 xmake_file=mips/x-ultrix
4797 if test x$gas = xyes
4799 tmake_file=mips/t-mips-gas
4801 tmake_file=mips/t-ultrix
4802 extra_passes="mips-tfile mips-tdump"
4804 if test x$gnu_ld != xyes
4809 mips-*-riscos[56789]bsd*)
4810 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4811 if test x$stabs = xyes; then
4812 tm_file="${tm_file} dbx.h"
4814 if test x$gas = xyes
4816 tmake_file=mips/t-bsd-gas
4818 tmake_file=mips/t-bsd
4819 extra_passes="mips-tfile mips-tdump"
4821 if test x$gnu_ld != xyes
4826 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4827 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4828 if test x$stabs = xyes; then
4829 tm_file="${tm_file} dbx.h"
4831 if test x$gas = xyes
4833 tmake_file=mips/t-bsd-gas
4835 tmake_file=mips/t-bsd
4836 extra_passes="mips-tfile mips-tdump"
4838 if test x$gnu_ld != xyes
4843 mips-*-riscos[56789]sysv4*)
4844 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4845 if test x$stabs = xyes; then
4846 tm_file="${tm_file} dbx.h"
4848 xm_file="xm-siglist.h ${xm_file}"
4849 xmake_file=mips/x-sysv
4850 if test x$gas = xyes
4852 tmake_file=mips/t-svr4-gas
4854 tmake_file=mips/t-svr4
4855 extra_passes="mips-tfile mips-tdump"
4857 if test x$gnu_ld != xyes
4862 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4863 tm_file="mips/svr4-4.h ${tm_file}"
4864 if test x$stabs = xyes; then
4865 tm_file="${tm_file} dbx.h"
4868 xmake_file=mips/x-sysv
4869 if test x$gas = xyes
4871 tmake_file=mips/t-svr4-gas
4873 tmake_file=mips/t-svr4
4874 extra_passes="mips-tfile mips-tdump"
4876 if test x$gnu_ld != xyes
4881 mips-*-riscos[56789]sysv*)
4882 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4883 if test x$stabs = xyes; then
4884 tm_file="${tm_file} dbx.h"
4887 xmake_file=mips/x-sysv
4888 if test x$gas = xyes
4890 tmake_file=mips/t-svr3-gas
4892 tmake_file=mips/t-svr3
4893 extra_passes="mips-tfile mips-tdump"
4895 if test x$gnu_ld != xyes
4900 mips-*-sysv* | mips-*-riscos*sysv*)
4901 tm_file="mips/svr3-4.h ${tm_file}"
4902 if test x$stabs = xyes; then
4903 tm_file="${tm_file} dbx.h"
4906 xmake_file=mips/x-sysv
4907 if test x$gas = xyes
4909 tmake_file=mips/t-svr3-gas
4911 tmake_file=mips/t-svr3
4912 extra_passes="mips-tfile mips-tdump"
4914 if test x$gnu_ld != xyes
4919 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4920 tm_file=mips/mips-5.h
4921 if test x$stabs = xyes; then
4922 tm_file="${tm_file} dbx.h"
4924 if test x$gas = xyes
4926 tmake_file=mips/t-mips-gas
4928 extra_passes="mips-tfile mips-tdump"
4930 if test x$gnu_ld != xyes
4938 tm_file=mips/ecoffl.h
4939 if test x$stabs = xyes; then
4940 tm_file="${tm_file} dbx.h"
4942 tmake_file=mips/t-ecoff
4945 tm_file="gofast.h mips/ecoff.h"
4946 if test x$stabs = xyes; then
4947 tm_file="${tm_file} dbx.h"
4949 tmake_file=mips/t-ecoff
4952 tm_file="mips/elfl.h libgloss.h"
4953 tmake_file=mips/t-elf
4956 tm_file="mips/elf.h"
4957 tmake_file=mips/t-elf
4960 tm_file="mips/elfl64.h"
4961 tmake_file=mips/t-elf
4963 mips64orionel-*-elf*)
4964 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4965 tmake_file=mips/t-elf
4968 tm_file="mips/elf64.h"
4969 tmake_file=mips/t-elf
4972 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4973 tmake_file=mips/t-elf
4975 mips64orion-*-rtems*)
4976 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4977 tmake_file="mips/t-ecoff t-rtems"
4980 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
4981 tmake_file=mips/t-r3900
4984 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
4985 tmake_file=mips/t-r3900
4987 mips-*-*) # Default MIPS RISC-OS 4.0.
4988 if test x$stabs = xyes; then
4989 tm_file="${tm_file} dbx.h"
4991 if test x$gas = xyes
4993 tmake_file=mips/t-mips-gas
4995 extra_passes="mips-tfile mips-tdump"
4997 if test x$gnu_ld != xyes
5004 tm_file="mn10200/mn10200.h"
5005 if test x$stabs = xyes
5007 tm_file="${tm_file} dbx.h"
5013 tm_file="mn10300/mn10300.h"
5014 if test x$stabs = xyes
5016 tm_file="${tm_file} dbx.h"
5021 tm_file=ns32k/encore.h
5025 tm_file=ns32k/sequent.h
5029 tm_file=ns32k/tek6100.h
5033 tm_file=ns32k/tek6200.h
5036 # This has not been updated to GCC 2.
5039 # xmake_file=ns32k/x-genix
5040 # tm_file=ns32k/genix.h
5044 tm_file=ns32k/merlin.h
5048 tm_file=ns32k/pc532-mach.h
5052 tm_file=ns32k/pc532-min.h
5053 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5058 tm_file=ns32k/netbsd.h
5059 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5060 # On NetBSD, the headers are already okay, except for math.h.
5065 tm_file="${tm_file} pdp11/2bsd.h"
5074 xmake_file=pyr/x-pyr
5081 xmake_file=romp/x-mach
5088 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5092 tm_file=rs6000/beos.h
5093 xm_file=rs6000/xm-beos.h
5094 tmake_file=rs6000/t-beos
5095 xmake_file=rs6000/x-beos
5097 powerpc-*-sysv* | powerpc-*-elf*)
5098 tm_file=rs6000/sysv4.h
5099 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5100 xm_defines="USG POSIX"
5101 extra_headers=ppc-asm.h
5102 if test x$gas = xyes
5104 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5106 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5108 xmake_file=rs6000/x-sysv4
5111 tm_file=rs6000/eabiaix.h
5112 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5113 extra_headers=ppc-asm.h
5116 tm_file=rs6000/eabisim.h
5117 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5118 extra_headers=ppc-asm.h
5121 tm_file=rs6000/eabi.h
5122 if test x$gas = xyes
5124 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5126 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5128 extra_headers=ppc-asm.h
5131 tm_file=rs6000/rtems.h
5132 if test x$gas = xyes
5134 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5136 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5138 extra_headers=ppc-asm.h
5140 powerpc-*-linux-gnulibc1)
5141 tm_file=rs6000/linux.h
5142 xm_file=rs6000/xm-sysv4.h
5143 out_file=rs6000/rs6000.c
5144 if test x$gas = xyes
5146 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5148 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5151 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5152 extra_headers=ppc-asm.h
5153 if test x$enable_threads = xyes; then
5157 powerpc-*-linux-gnu*)
5158 tm_file=rs6000/linux.h
5159 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5160 xm_defines="USG ${xm_defines}"
5161 out_file=rs6000/rs6000.c
5162 if test x$gas = xyes
5164 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5166 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5169 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5170 extra_headers=ppc-asm.h
5171 if test x$enable_threads = xyes; then
5175 powerpc-wrs-vxworks*)
5177 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5178 xm_defines="USG POSIX"
5179 tm_file=rs6000/vxppc.h
5180 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5181 extra_headers=ppc-asm.h
5182 thread_file='vxworks'
5184 powerpcle-*-sysv* | powerpcle-*-elf*)
5185 tm_file=rs6000/sysv4le.h
5186 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5187 xm_defines="USG POSIX"
5188 if test x$gas = xyes
5190 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5192 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5194 xmake_file=rs6000/x-sysv4
5195 extra_headers=ppc-asm.h
5197 powerpcle-*-eabisim*)
5198 tm_file=rs6000/eabilesim.h
5199 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5200 extra_headers=ppc-asm.h
5203 tm_file=rs6000/eabile.h
5204 if test x$gas = xyes
5206 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5208 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5210 extra_headers=ppc-asm.h
5212 powerpcle-*-winnt* )
5213 tm_file=rs6000/win-nt.h
5214 tmake_file=rs6000/t-winnt
5216 if test x$enable_threads = xyes; then
5219 extra_headers=ppc-asm.h
5221 powerpcle-*-pe | powerpcle-*-cygwin*)
5222 tm_file=rs6000/cygwin.h
5223 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5224 tmake_file=rs6000/t-winnt
5225 xmake_file=rs6000/x-cygwin
5227 if test x$enable_threads = xyes; then
5231 extra_headers=ppc-asm.h
5233 powerpcle-*-solaris2*)
5234 tm_file=rs6000/sol2.h
5235 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5236 xm_defines="USG POSIX"
5237 if test x$gas = xyes
5239 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5241 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5243 xmake_file=rs6000/x-sysv4
5244 extra_headers=ppc-asm.h
5246 rs6000-ibm-aix3.[01]*)
5247 tm_file=rs6000/aix31.h
5248 xmake_file=rs6000/x-aix31
5252 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5253 tm_file=rs6000/aix3newas.h
5254 if test x$host != x$target
5256 tmake_file=rs6000/t-xnewas
5258 tmake_file=rs6000/t-newas
5263 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5264 tm_file=rs6000/aix41.h
5265 if test x$host != x$target
5267 tmake_file=rs6000/t-xnewas
5269 tmake_file=rs6000/t-newas
5271 if test "$gnu_ld" = yes
5273 xmake_file=rs6000/x-aix41-gld
5275 xmake_file=rs6000/x-aix41
5280 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5281 tm_file=rs6000/aix43.h
5282 if test x$host != x$target
5284 tmake_file=rs6000/t-xaix43
5286 tmake_file=rs6000/t-aix43
5288 xmake_file=rs6000/x-aix43
5292 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5293 tm_file=rs6000/aix43.h
5294 if test x$host != x$target
5296 tmake_file=rs6000/t-xaix43
5298 tmake_file=rs6000/t-aix43
5300 xmake_file=rs6000/x-aix43
5313 tm_file=rs6000/mach.h
5314 xm_file="${xm_file} rs6000/xm-mach.h"
5315 xmake_file=rs6000/x-mach
5319 tm_file=rs6000/lynx.h
5320 xm_file=rs6000/xm-lynx.h
5321 tmake_file=rs6000/t-rs6000
5322 xmake_file=rs6000/x-lynx
5330 tmake_file="sh/t-sh t-rtems"
5331 tm_file=sh/rtemself.h
5335 tmake_file="sh/t-sh t-rtems"
5344 xm_file="xm-alloca.h ${xm_file}"
5347 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5348 tm_file=sparc/vxsparc.h
5349 tmake_file=sparc/t-vxsparc
5351 thread_file='vxworks'
5354 tmake_file=sparc/t-sparcbare
5355 tm_file="sparc/aout.h libgloss.h"
5358 tm_file=sparc/netbsd.h
5363 # we need collect2 until our bug is fixed...
5371 tmake_file=sparc/t-elf
5372 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5376 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5377 xm_file="${xm_file} sparc/xm-linux.h"
5378 tm_file=sparc/linux-aout.h
5382 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5383 xm_file="${xm_file} sparc/xm-linux.h"
5385 tm_file=sparc/linux.h
5386 tmake_file="t-linux t-linux-gnulibc1"
5387 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5390 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5391 xm_file="${xm_file} sparc/xm-linux.h"
5393 tm_file=sparc/linux.h
5394 tmake_file="t-linux"
5395 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5397 if test x$enable_threads = xyes; then
5402 if test x$gas = xyes
5404 tm_file=sparc/lynx.h
5406 tm_file=sparc/lynx-ng.h
5408 xm_file=sparc/xm-lynx.h
5409 tmake_file=sparc/t-sunos41
5413 tmake_file="sparc/t-sparcbare t-rtems"
5414 tm_file=sparc/rtems.h
5416 sparcv9-*-solaris2*)
5417 tm_file=sparc/sol2-sld-64.h
5418 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5419 xm_defines="USG POSIX"
5420 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5421 xmake_file=sparc/x-sysv4
5422 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5424 if test x${enable_threads} = x ; then
5425 enable_threads=$have_pthread_h
5426 if test x${enable_threads} = x ; then
5427 enable_threads=$have_thread_h
5430 if test x${enable_threads} = xyes ; then
5431 if test x${have_pthread_h} = xyes ; then
5434 thread_file='solaris'
5438 sparc-hal-solaris2*)
5439 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5440 xm_defines="USG POSIX"
5441 tm_file="sparc/sol2.h sparc/hal.h"
5442 tmake_file="sparc/t-halos sparc/t-sol2"
5443 xmake_file=sparc/x-sysv4
5444 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5453 thread_file='solaris'
5456 if test x$gnu_ld = xyes
5458 tm_file=sparc/sol2.h
5460 tm_file=sparc/sol2-sld.h
5462 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5463 xm_defines="USG POSIX"
5464 tmake_file=sparc/t-sol2
5465 xmake_file=sparc/x-sysv4
5466 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5475 if test x${enable_threads} = x; then
5476 enable_threads=$have_pthread_h
5477 if test x${enable_threads} = x; then
5478 enable_threads=$have_thread_h
5481 if test x${enable_threads} = xyes; then
5482 if test x${have_pthread_h} = xyes; then
5485 thread_file='solaris'
5490 tm_file=sparc/sunos4.h
5491 tmake_file=sparc/t-sunos40
5495 tm_file=sparc/sunos4.h
5496 tmake_file=sparc/t-sunos41
5498 if test x$gas = xyes; then
5499 tm_file="${tm_file} sparc/sun4gas.h"
5503 tm_file=sparc/sun4o3.h
5507 tm_file=sparc/sysv4.h
5508 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5509 xm_defines="USG POSIX"
5511 xmake_file=sparc/x-sysv4
5512 extra_parts="crtbegin.o crtend.o"
5515 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5516 xm_defines="USG POSIX"
5517 tm_file=sparc/vxsim.h
5518 tmake_file=sparc/t-vxsparc
5519 xmake_file=sparc/x-sysv4
5522 tm_file="sparc/splet.h libgloss.h"
5523 tmake_file=sparc/t-splet
5526 tm_file="sparc/litecoff.h libgloss.h"
5527 tmake_file=sparc/t-sparclite
5530 tm_file="sparc/lite.h aoutos.h libgloss.h"
5531 tmake_file=sparc/t-sparclite
5534 tmake_file=sparc/t-sp64
5535 tm_file=sparc/sp64-aout.h
5538 tmake_file=sparc/t-sp64
5539 tm_file=sparc/sp64-elf.h
5540 extra_parts="crtbegin.o crtend.o"
5542 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5543 tmake_file="t-linux sparc/t-linux64"
5544 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5545 tm_file=sparc/linux64.h
5547 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5551 tmake_file=sparc/t-sp64
5552 tm_file=sparc/sp64-elf.h
5553 xm_file="sparc/xm-sp64.h sparc/xm-freebsd.h"
5554 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5558 # This hasn't been upgraded to GCC 2.
5559 # tahoe-harris-*) # Harris tahoe, using COFF.
5560 # tm_file=tahoe/harris.h
5562 # tahoe-*-bsd*) # tahoe running BSD
5564 thumb-*-coff* | thumbel-*-coff*)
5566 out_file=arm/thumb.c
5567 xm_file=arm/xm-thumb.h
5568 md_file=arm/thumb.md
5569 tmake_file=arm/t-thumb
5573 out_file=arm/thumb.c
5574 xm_file=arm/xm-thumb.h
5575 md_file=arm/thumb.md
5576 tmake_file=arm/t-thumb
5577 thread_file='vxworks'
5579 # This hasn't been upgraded to GCC 2.
5586 tm_file="v850/v850.h"
5587 xm_file="v850/xm-v850.h"
5588 tmake_file=v850/t-v850
5589 if test x$stabs = xyes
5591 tm_file="${tm_file} dbx.h"
5595 vax-*-bsd*) # vaxen running BSD
5599 vax-*-sysv*) # vaxen running system V
5600 tm_file="${tm_file} vax/vaxv.h"
5605 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5611 tmake_file="${tmake_file} vax/t-openbsd"
5613 vax-*-ultrix*) # vaxen running ultrix
5614 tm_file="${tm_file} vax/ultrix.h"
5618 vax-*-vms*) # vaxen running VMS
5619 xm_file=vax/xm-vms.h
5623 vax-*-*) # vax default entry
5627 xm_file="${xm_file} xm-svr3"
5631 echo "Configuration $machine not supported" 1>&2
5638 ;; # Existing GNU/Linux systems do not use the GNU setup.
5640 # On the GNU system, the setup is just about the same on
5641 # each different CPU. The specific machines that GNU
5642 # supports are matched above and just set $cpu_type.
5643 xm_file="xm-gnu.h ${xm_file}"
5644 tm_file=${cpu_type}/gnu.h
5645 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5646 # GNU always uses ELF.
5648 # GNU tools are the only tools.
5651 xmake_file=x-linux # These details are the same as Linux.
5652 tmake_file=t-gnu # These are not.
5655 xmake_try_sysv=x-sysv
5656 install_headers_dir=install-headers-cpio
5659 install_headers_dir=install-headers-cpio
5663 # Distinguish i[34567]86
5664 # Also, do not run mips-tfile on MIPS if using gas.
5665 # Process --with-cpu= for PowerPC/rs6000
5666 target_cpu_default2=
5669 target_cpu_default2=1
5672 case $target_alias in
5674 target_cpu_default2=4
5677 target_cpu_default2=2
5681 i686-*-* | i786-*-*)
5682 target_cpu_default2=3
5687 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5690 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5693 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5696 target_cpu_default2="MASK_CPU_EV5"
5700 if test x$gas = xyes
5702 if test "$target_cpu_default2" = ""
5704 target_cpu_default2="MASK_GAS"
5706 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5711 case "x$with_cpu" in
5714 target_cpu_default2="TARGET_CPU_generic"
5717 # Distinguish cores, and major variants
5718 # arm7m doesn't exist, but D & I don't affect code
5719 xarm23678 | xarm250 | xarm67010 \
5720 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5721 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5722 | xstrongarm | xstrongarm110 | xstrongarm1100)
5723 target_cpu_default2="TARGET_CPU_$with_cpu"
5727 echo "--with-cpu must be passed a value" 1>&2
5732 if test x$pass2done = xyes
5734 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5741 mips*-*-ecoff* | mips*-*-elf*)
5742 if test x$gas = xyes
5744 if test x$gnu_ld = xyes
5746 target_cpu_default2=20
5748 target_cpu_default2=16
5753 if test x$gas = xyes
5755 target_cpu_default2=16
5758 powerpc*-*-* | rs6000-*-*)
5759 case "x$with_cpu" in
5763 xcommon | xpower | xpower2 | xpowerpc | xrios \
5764 | xrios1 | xrios2 | xrsc | xrsc1 \
5765 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5766 | xec603e | x740 | x750 | x401 \
5767 | x403 | x505 | x801 | x821 | x823 | x860)
5768 target_cpu_default2="\"$with_cpu\""
5772 echo "--with-cpu must be passed a value" 1>&2
5777 if test x$pass2done = xyes
5779 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5786 case ".$with_cpu" in
5788 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5790 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5791 target_cpu_default2="TARGET_CPU_$with_cpu"
5794 if test x$pass2done = xyes
5796 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5804 if test "$target_cpu_default2" != ""
5806 if test "$target_cpu_default" != ""
5808 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5810 target_cpu_default=$target_cpu_default2
5814 # No need for collect2 if we have the GNU linker.
5815 # Actually, there is now; GNU ld doesn't handle the EH info or
5816 # collecting for shared libraries.
5823 # Save data on machine being used to compile GCC in build_xm_file.
5824 # Save data on host machine in vars host_xm_file and host_xmake_file.
5825 if test x$pass1done = x
5827 if test x"$xm_file" = x
5828 then build_xm_file=$cpu_type/xm-$cpu_type.h
5829 else build_xm_file=$xm_file
5831 build_xm_defines=$xm_defines
5832 build_install_headers_dir=$install_headers_dir
5833 build_exeext=$exeext
5836 if test x$pass2done = x
5838 if test x"$xm_file" = x
5839 then host_xm_file=$cpu_type/xm-$cpu_type.h
5840 else host_xm_file=$xm_file
5842 host_xm_defines=$xm_defines
5843 if test x"$xmake_file" = x
5844 then xmake_file=$cpu_type/x-$cpu_type
5846 host_xmake_file="$xmake_file"
5847 host_truncate_target=$truncate_target
5848 host_extra_gcc_objs=$extra_gcc_objs
5849 host_extra_objs=$extra_host_objs
5856 extra_objs="${host_extra_objs} ${extra_objs}"
5858 # Default the target-machine variables that were not explicitly set.
5859 if test x"$tm_file" = x
5860 then tm_file=$cpu_type/$cpu_type.h; fi
5862 if test x$extra_headers = x
5863 then extra_headers=; fi
5865 if test x"$xm_file" = x
5866 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5868 if test x$md_file = x
5869 then md_file=$cpu_type/$cpu_type.md; fi
5871 if test x$out_file = x
5872 then out_file=$cpu_type/$cpu_type.c; fi
5874 if test x"$tmake_file" = x
5875 then tmake_file=$cpu_type/t-$cpu_type
5878 if test x"$dwarf2" = xyes
5879 then tm_file="tm-dwarf2.h $tm_file"
5882 if test x$float_format = x
5883 then float_format=i64
5886 if test $float_format = none
5887 then float_h_file=Makefile.in
5888 else float_h_file=float-$float_format.h
5891 if test x$enable_haifa = x
5894 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5899 # Handle cpp installation.
5900 if test x$enable_cpp != xno
5902 tmake_file="$tmake_file t-install-cpp"
5905 # Say what files are being used for the output code and MD file.
5906 echo "Using \`$srcdir/config/$out_file' to output insns."
5907 echo "Using \`$srcdir/config/$md_file' as machine description file."
5910 for f in $tm_file; do
5913 if test $count = ax; then
5914 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5916 echo "Using the following target machine macro files:"
5917 for f in $tm_file; do
5918 echo " $srcdir/config/$f"
5923 for f in $host_xm_file; do
5926 if test $count = ax; then
5927 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5929 echo "Using the following host machine macro files:"
5930 for f in $host_xm_file; do
5931 echo " $srcdir/config/$f"
5935 if test "$host_xm_file" != "$build_xm_file"; then
5937 for f in $build_xm_file; do
5940 if test $count = ax; then
5941 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5943 echo "Using the following build machine macro files:"
5944 for f in $build_xm_file; do
5945 echo " $srcdir/config/$f"
5950 if test x$thread_file = x; then
5951 if test x$target_thread_file != x; then
5952 thread_file=$target_thread_file
5954 thread_file='single'
5958 # Set up the header files.
5959 # $links is the list of header files to create.
5960 # $vars is the list of shell variables with file names to include.
5961 # auto-host.h is the file containing items generated by autoconf and is
5962 # the first file included by config.h.
5964 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5966 # If host=build, it is correct to have hconfig include auto-host.h
5967 # as well. If host!=build, we are in error and need to do more
5968 # work to find out the build config parameters.
5969 if test x$host = x$build
5971 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5973 # We create a subdir, then run autoconf in the subdir.
5974 # To prevent recursion we set host and build for the new
5975 # invocation of configure to the build for this invocation
5982 /*) realsrcdir=${srcdir};;
5983 *) realsrcdir=../${srcdir};;
5985 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5986 --target=$target --host=$build --build=$build
5988 # We just finished tests for the build machine, so rename
5989 # the file auto-build.h in the gcc directory.
5990 mv auto-host.h ../auto-build.h
5993 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
5996 xm_file="gansidecl.h ${xm_file}"
5997 tm_file="gansidecl.h ${tm_file}"
5999 vars="host_xm_file tm_file xm_file build_xm_file"
6000 links="config.h tm.h tconfig.h hconfig.h"
6001 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6004 if test -f config.status; then mv -f config.status config.bak; fi
6007 while test -n "$vars"
6009 set $vars; var=$1; shift; vars=$*
6010 set $links; link=$1; shift; links=$*
6011 set $defines; define=$1; shift; defines=$*
6015 # Define TARGET_CPU_DEFAULT if the system wants one.
6016 # This substitutes for lots of *.h files.
6017 if test "$target_cpu_default" != "" -a $link = tm.h
6019 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6022 for file in `eval echo '$'$var`; do
6027 echo '#ifdef IN_GCC' >>$link
6030 echo "#include \"$file\"" >>$link
6035 echo '#endif' >>$link
6040 for def in `eval echo '$'$define`; do
6041 echo "#ifndef $def" >>$link
6042 echo "#define $def" >>$link
6043 echo "#endif" >>$link
6047 # Truncate the target if necessary
6048 if test x$host_truncate_target != x; then
6049 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6052 # Get the version trigger filename from the toplevel
6053 if test "${with_gcc_version_trigger+set}" = set; then
6054 gcc_version_trigger=$with_gcc_version_trigger
6056 gcc_version_trigger=${srcdir}/version.c
6058 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6060 # Internationalization
6062 VERSION="$gcc_version"
6063 cat >> confdefs.h <<EOF
6064 #define PACKAGE "$PACKAGE"
6067 cat >> confdefs.h <<EOF
6068 #define VERSION "$VERSION"
6076 # NLS support is still experimental, so disable it by default for now.
6077 # Check whether --enable-nls or --disable-nls was given.
6078 if test "${enable_nls+set}" = set; then
6079 enableval="$enable_nls"
6087 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6088 echo "configure:6066: checking for strerror in -lcposix" >&5
6089 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 ac_save_LIBS="$LIBS"
6094 LIBS="-lcposix $LIBS"
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6074 "configure"
6097 #include "confdefs.h"
6098 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6107 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_lib_$ac_lib_var=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_lib_$ac_lib_var=no"
6117 LIBS="$ac_save_LIBS"
6120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6121 echo "$ac_t""yes" 1>&6
6122 LIBS="$LIBS -lcposix"
6124 echo "$ac_t""no" 1>&6
6129 echo $ac_n "checking for working const""... $ac_c" 1>&6
6130 echo "configure:6108: checking for working const" >&5
6131 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6113 "configure"
6136 #include "confdefs.h"
6140 /* Ultrix mips cc rejects this. */
6141 typedef int charset[2]; const charset x;
6142 /* SunOS 4.1.1 cc rejects this. */
6143 char const *const *ccp;
6145 /* NEC SVR4.0.2 mips cc rejects this. */
6146 struct point {int x, y;};
6147 static struct point const zero = {0,0};
6148 /* AIX XL C 1.02.0.0 rejects this.
6149 It does not let you subtract one const X* pointer from another in an arm
6150 of an if-expression whose if-part is not a constant expression */
6151 const char *g = "string";
6152 ccp = &g + (g ? g-g : 0);
6153 /* HPUX 7.0 cc rejects these. */
6156 ccp = (char const *const *) p;
6157 { /* SCO 3.2v4 cc rejects this. */
6159 char const *s = 0 ? (char *) 0 : (char const *) 0;
6163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6165 const int *foo = &x[0];
6168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6169 typedef const int *iptr;
6173 { /* AIX XL C 1.02.0.0 rejects this saying
6174 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6175 struct s { int j; const int *ap[3]; };
6176 struct s *b; b->j = 5;
6178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6184 if { (eval echo configure:6162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6196 echo "$ac_t""$ac_cv_c_const" 1>&6
6197 if test $ac_cv_c_const = no; then
6198 cat >> confdefs.h <<\EOF
6204 echo $ac_n "checking for inline""... $ac_c" 1>&6
6205 echo "configure:6183: checking for inline" >&5
6206 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6210 for ac_kw in inline __inline__ __inline; do
6211 cat > conftest.$ac_ext <<EOF
6212 #line 6190 "configure"
6213 #include "confdefs.h"
6219 if { (eval echo configure:6197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6221 ac_cv_c_inline=$ac_kw; break
6223 echo "configure: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6231 echo "$ac_t""$ac_cv_c_inline" 1>&6
6232 case "$ac_cv_c_inline" in
6234 no) cat >> confdefs.h <<\EOF
6238 *) cat >> confdefs.h <<EOF
6239 #define inline $ac_cv_c_inline
6244 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6245 echo "configure:6223: checking for off_t" >&5
6246 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6228 "configure"
6251 #include "confdefs.h"
6252 #include <sys/types.h>
6258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6261 ac_cv_type_off_t=yes
6269 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6270 if test $ac_cv_type_off_t = no; then
6271 cat >> confdefs.h <<\EOF
6277 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6278 echo "configure:6256: checking for size_t" >&5
6279 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6261 "configure"
6284 #include "confdefs.h"
6285 #include <sys/types.h>
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6294 ac_cv_type_size_t=yes
6297 ac_cv_type_size_t=no
6302 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6303 if test $ac_cv_type_size_t = no; then
6304 cat >> confdefs.h <<\EOF
6305 #define size_t unsigned
6310 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6311 # for constant arguments. Useless!
6312 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6313 echo "configure:6291: checking for working alloca.h" >&5
6314 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6296 "configure"
6319 #include "confdefs.h"
6322 char *p = alloca(2 * sizeof(int));
6325 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327 ac_cv_header_alloca_h=yes
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 ac_cv_header_alloca_h=no
6337 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6338 if test $ac_cv_header_alloca_h = yes; then
6339 cat >> confdefs.h <<\EOF
6340 #define HAVE_ALLOCA_H 1
6345 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6346 echo "configure:6324: checking for alloca" >&5
6347 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6329 "configure"
6352 #include "confdefs.h"
6355 # define alloca __builtin_alloca
6358 # include <malloc.h>
6359 # define alloca _alloca
6362 # include <alloca.h>
6367 # ifndef alloca /* predefined by HP cc +Olibcalls */
6376 char *p = (char *) alloca(1);
6379 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 ac_cv_func_alloca_works=yes
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6386 ac_cv_func_alloca_works=no
6391 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6392 if test $ac_cv_func_alloca_works = yes; then
6393 cat >> confdefs.h <<\EOF
6394 #define HAVE_ALLOCA 1
6399 if test $ac_cv_func_alloca_works = no; then
6400 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6401 # that cause trouble. Some versions do not even contain alloca or
6402 # contain a buggy version. If you still want to use their alloca,
6403 # use ar to extract alloca.o from them instead of compiling alloca.c.
6404 ALLOCA=alloca.${ac_objext}
6405 cat >> confdefs.h <<\EOF
6410 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6411 echo "configure:6389: checking whether alloca needs Cray hooks" >&5
6412 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 cat > conftest.$ac_ext <<EOF
6416 #line 6394 "configure"
6417 #include "confdefs.h"
6418 #if defined(CRAY) && ! defined(CRAY2)
6425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 egrep "webecray" >/dev/null 2>&1; then
6437 echo "$ac_t""$ac_cv_os_cray" 1>&6
6438 if test $ac_cv_os_cray = yes; then
6439 for ac_func in _getb67 GETB67 getb67; do
6440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6441 echo "configure:6419: checking for $ac_func" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6424 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func(); below. */
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6469 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471 eval "ac_cv_func_$ac_func=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 eval "ac_cv_func_$ac_func=no"
6481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 cat >> confdefs.h <<EOF
6484 #define CRAY_STACKSEG_END $ac_func
6489 echo "$ac_t""no" 1>&6
6495 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6496 echo "configure:6474: checking stack direction for C alloca" >&5
6497 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6500 if test "$cross_compiling" = yes; then
6501 ac_cv_c_stack_direction=0
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6482 "configure"
6505 #include "confdefs.h"
6506 find_stack_direction ()
6508 static char *addr = 0;
6513 return find_stack_direction ();
6516 return (&dummy > addr) ? 1 : -1;
6520 exit (find_stack_direction() < 0);
6523 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6525 ac_cv_c_stack_direction=1
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 ac_cv_c_stack_direction=-1
6537 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6538 cat >> confdefs.h <<EOF
6539 #define STACK_DIRECTION $ac_cv_c_stack_direction
6544 for ac_hdr in unistd.h
6546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6548 echo "configure:6526: checking for $ac_hdr" >&5
6549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6531 "configure"
6554 #include "confdefs.h"
6557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6558 { (eval echo configure:6536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6560 if test -z "$ac_err"; then
6562 eval "ac_cv_header_$ac_safe=yes"
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6568 eval "ac_cv_header_$ac_safe=no"
6572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6573 echo "$ac_t""yes" 1>&6
6574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6575 cat >> confdefs.h <<EOF
6576 #define $ac_tr_hdr 1
6580 echo "$ac_t""no" 1>&6
6584 for ac_func in getpagesize
6586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6587 echo "configure:6565: checking for $ac_func" >&5
6588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6570 "configure"
6593 #include "confdefs.h"
6594 /* System header to define __stub macros and hopefully few prototypes,
6595 which can conflict with char $ac_func(); below. */
6597 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6615 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 eval "ac_cv_func_$ac_func=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 eval "ac_cv_func_$ac_func=no"
6627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6630 cat >> confdefs.h <<EOF
6631 #define $ac_tr_func 1
6635 echo "$ac_t""no" 1>&6
6639 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6640 echo "configure:6618: checking for working mmap" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 if test "$cross_compiling" = yes; then
6645 ac_cv_func_mmap_fixed_mapped=no
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6626 "configure"
6649 #include "confdefs.h"
6651 /* Thanks to Mike Haertel and Jim Avera for this test.
6652 Here is a matrix of mmap possibilities:
6653 mmap private not fixed
6654 mmap private fixed at somewhere currently unmapped
6655 mmap private fixed at somewhere already mapped
6656 mmap shared not fixed
6657 mmap shared fixed at somewhere currently unmapped
6658 mmap shared fixed at somewhere already mapped
6659 For private mappings, we should verify that changes cannot be read()
6660 back from the file, nor mmap's back from the file at a different
6661 address. (There have been systems where private was not correctly
6662 implemented like the infamous i386 svr4.0, and systems where the
6663 VM page cache was not coherent with the filesystem buffer cache
6664 like early versions of FreeBSD and possibly contemporary NetBSD.)
6665 For shared mappings, we should conversely verify that changes get
6666 propogated back to all the places they're supposed to be.
6668 Grep wants private fixed already mapped.
6669 The main things grep needs to know about mmap are:
6670 * does it exist and is it safe to write into the mmap'd area
6671 * how to use it (BSD variants) */
6672 #include <sys/types.h>
6674 #include <sys/mman.h>
6676 /* This mess was copied from the GNU getpagesize.h. */
6677 #ifndef HAVE_GETPAGESIZE
6678 # ifdef HAVE_UNISTD_H
6679 # include <unistd.h>
6682 /* Assume that all systems that can run configure have sys/param.h. */
6683 # ifndef HAVE_SYS_PARAM_H
6684 # define HAVE_SYS_PARAM_H 1
6687 # ifdef _SC_PAGESIZE
6688 # define getpagesize() sysconf(_SC_PAGESIZE)
6689 # else /* no _SC_PAGESIZE */
6690 # ifdef HAVE_SYS_PARAM_H
6691 # include <sys/param.h>
6692 # ifdef EXEC_PAGESIZE
6693 # define getpagesize() EXEC_PAGESIZE
6694 # else /* no EXEC_PAGESIZE */
6696 # define getpagesize() NBPG * CLSIZE
6699 # endif /* no CLSIZE */
6700 # else /* no NBPG */
6702 # define getpagesize() NBPC
6703 # else /* no NBPC */
6705 # define getpagesize() PAGESIZE
6706 # endif /* PAGESIZE */
6707 # endif /* no NBPC */
6708 # endif /* no NBPG */
6709 # endif /* no EXEC_PAGESIZE */
6710 # else /* no HAVE_SYS_PARAM_H */
6711 # define getpagesize() 8192 /* punt totally */
6712 # endif /* no HAVE_SYS_PARAM_H */
6713 # endif /* no _SC_PAGESIZE */
6715 #endif /* no HAVE_GETPAGESIZE */
6718 extern "C" { void *malloc(unsigned); }
6726 char *data, *data2, *data3;
6730 pagesize = getpagesize();
6733 * First, make a file with some known garbage in it.
6735 data = malloc(pagesize);
6738 for (i = 0; i < pagesize; ++i)
6739 *(data + i) = rand();
6741 fd = creat("conftestmmap", 0600);
6744 if (write(fd, data, pagesize) != pagesize)
6749 * Next, try to mmap the file at a fixed address which
6750 * already has something else allocated at it. If we can,
6751 * also make sure that we see the same garbage.
6753 fd = open("conftestmmap", O_RDWR);
6756 data2 = malloc(2 * pagesize);
6759 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6760 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6761 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6763 for (i = 0; i < pagesize; ++i)
6764 if (*(data + i) != *(data2 + i))
6768 * Finally, make sure that changes to the mapped area
6769 * do not percolate back to the file as seen by read().
6770 * (This is a bug on some variants of i386 svr4.0.)
6772 for (i = 0; i < pagesize; ++i)
6773 *(data2 + i) = *(data2 + i) + 1;
6774 data3 = malloc(pagesize);
6777 if (read(fd, data3, pagesize) != pagesize)
6779 for (i = 0; i < pagesize; ++i)
6780 if (*(data + i) != *(data3 + i))
6783 unlink("conftestmmap");
6788 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6790 ac_cv_func_mmap_fixed_mapped=yes
6792 echo "configure: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6795 ac_cv_func_mmap_fixed_mapped=no
6802 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6804 cat >> confdefs.h <<\EOF
6811 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6812 unistd.h sys/param.h
6814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6816 echo "configure:6794: checking for $ac_hdr" >&5
6817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6799 "configure"
6822 #include "confdefs.h"
6825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6826 { (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6828 if test -z "$ac_err"; then
6830 eval "ac_cv_header_$ac_safe=yes"
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6836 eval "ac_cv_header_$ac_safe=no"
6840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6843 cat >> confdefs.h <<EOF
6844 #define $ac_tr_hdr 1
6848 echo "$ac_t""no" 1>&6
6852 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6853 strdup __argz_count __argz_stringify __argz_next
6855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6856 echo "configure:6834: checking for $ac_func" >&5
6857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6839 "configure"
6862 #include "confdefs.h"
6863 /* System header to define __stub macros and hopefully few prototypes,
6864 which can conflict with char $ac_func(); below. */
6866 /* Override any gcc2 internal prototype to avoid an error. */
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6873 /* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
6876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6884 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 eval "ac_cv_func_$ac_func=yes"
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 eval "ac_cv_func_$ac_func=no"
6896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6897 echo "$ac_t""yes" 1>&6
6898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6899 cat >> confdefs.h <<EOF
6900 #define $ac_tr_func 1
6904 echo "$ac_t""no" 1>&6
6909 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6910 for ac_func in stpcpy
6912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6913 echo "configure:6891: checking for $ac_func" >&5
6914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6896 "configure"
6919 #include "confdefs.h"
6920 /* System header to define __stub macros and hopefully few prototypes,
6921 which can conflict with char $ac_func(); below. */
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6930 /* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6941 if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 eval "ac_cv_func_$ac_func=yes"
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 eval "ac_cv_func_$ac_func=no"
6953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6956 cat >> confdefs.h <<EOF
6957 #define $ac_tr_func 1
6961 echo "$ac_t""no" 1>&6
6966 if test "${ac_cv_func_stpcpy}" = "yes"; then
6967 cat >> confdefs.h <<\EOF
6968 #define HAVE_STPCPY 1
6973 if test $ac_cv_header_locale_h = yes; then
6974 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6975 echo "configure:6953: checking for LC_MESSAGES" >&5
6976 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6958 "configure"
6981 #include "confdefs.h"
6987 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 am_cv_val_LC_MESSAGES=yes
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6994 am_cv_val_LC_MESSAGES=no
6999 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7000 if test $am_cv_val_LC_MESSAGES = yes; then
7001 cat >> confdefs.h <<\EOF
7002 #define HAVE_LC_MESSAGES 1
7007 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7008 echo "configure:6986: checking whether NLS is requested" >&5
7009 # Check whether --enable-nls or --disable-nls was given.
7010 if test "${enable_nls+set}" = set; then
7011 enableval="$enable_nls"
7017 echo "$ac_t""$USE_NLS" 1>&6
7020 USE_INCLUDED_LIBINTL=no
7022 if test "$USE_NLS" = "yes"; then
7023 cat >> confdefs.h <<\EOF
7024 #define ENABLE_NLS 1
7027 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7028 echo "configure:7006: checking whether included gettext is requested" >&5
7029 # Check whether --with-included-gettext or --without-included-gettext was given.
7030 if test "${with_included_gettext+set}" = set; then
7031 withval="$with_included_gettext"
7032 nls_cv_force_use_gnu_gettext=$withval
7034 nls_cv_force_use_gnu_gettext=no
7037 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7039 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7040 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7042 nls_cv_header_libgt=
7045 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7046 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7047 echo "configure:7025: checking for libintl.h" >&5
7048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7030 "configure"
7053 #include "confdefs.h"
7054 #include <libintl.h>
7056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7057 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7059 if test -z "$ac_err"; then
7061 eval "ac_cv_header_$ac_safe=yes"
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 eval "ac_cv_header_$ac_safe=no"
7071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7072 echo "$ac_t""yes" 1>&6
7073 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7074 echo "configure:7052: checking for gettext in libc" >&5
7075 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 cat > conftest.$ac_ext <<EOF
7079 #line 7057 "configure"
7080 #include "confdefs.h"
7081 #include <libintl.h>
7083 return (int) gettext ("")
7086 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7088 gt_cv_func_gettext_libc=yes
7090 echo "configure: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7093 gt_cv_func_gettext_libc=no
7098 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7100 if test "$gt_cv_func_gettext_libc" != "yes"; then
7101 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7102 echo "configure:7080: checking for bindtextdomain in -lintl" >&5
7103 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7107 ac_save_LIBS="$LIBS"
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7088 "configure"
7111 #include "confdefs.h"
7112 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7115 char bindtextdomain();
7121 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 eval "ac_cv_lib_$ac_lib_var=yes"
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 eval "ac_cv_lib_$ac_lib_var=no"
7131 LIBS="$ac_save_LIBS"
7134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7135 echo "$ac_t""yes" 1>&6
7136 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7137 echo "configure:7115: checking for gettext in libintl" >&5
7138 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7141 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7142 echo "configure:7120: checking for gettext in -lintl" >&5
7143 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 ac_save_LIBS="$LIBS"
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7128 "configure"
7151 #include "confdefs.h"
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 /* We use char because int might match the return type of a gcc2
7154 builtin and then its argument prototype would still apply. */
7161 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7163 eval "ac_cv_lib_$ac_lib_var=yes"
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7168 eval "ac_cv_lib_$ac_lib_var=no"
7171 LIBS="$ac_save_LIBS"
7174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7175 echo "$ac_t""yes" 1>&6
7176 gt_cv_func_gettext_libintl=yes
7178 echo "$ac_t""no" 1>&6
7179 gt_cv_func_gettext_libintl=no
7184 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7186 echo "$ac_t""no" 1>&6
7191 if test "$gt_cv_func_gettext_libc" = "yes" \
7192 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7193 cat >> confdefs.h <<\EOF
7194 #define HAVE_GETTEXT 1
7197 # Extract the first word of "msgfmt", so it can be a program name with args.
7198 set dummy msgfmt; ac_word=$2
7199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7200 echo "configure:7178: checking for $ac_word" >&5
7201 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7206 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7210 for ac_dir in $PATH; do
7211 test -z "$ac_dir" && ac_dir=.
7212 if test -f $ac_dir/$ac_word; then
7213 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7214 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7220 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7224 MSGFMT="$ac_cv_path_MSGFMT"
7225 if test -n "$MSGFMT"; then
7226 echo "$ac_t""$MSGFMT" 1>&6
7228 echo "$ac_t""no" 1>&6
7230 if test "$MSGFMT" != "no"; then
7231 for ac_func in dcgettext
7233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7234 echo "configure:7212: checking for $ac_func" >&5
7235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7217 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func(); below. */
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7264 eval "ac_cv_func_$ac_func=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_func_$ac_func=no"
7274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7277 cat >> confdefs.h <<EOF
7278 #define $ac_tr_func 1
7282 echo "$ac_t""no" 1>&6
7286 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7287 set dummy gmsgfmt; ac_word=$2
7288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7289 echo "configure:7267: checking for $ac_word" >&5
7290 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7295 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7298 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7303 for ac_dir in $ac_dummy; do
7304 test -z "$ac_dir" && ac_dir=.
7305 if test -f $ac_dir/$ac_word; then
7306 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7311 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7315 GMSGFMT="$ac_cv_path_GMSGFMT"
7316 if test -n "$GMSGFMT"; then
7317 echo "$ac_t""$GMSGFMT" 1>&6
7319 echo "$ac_t""no" 1>&6
7322 # Extract the first word of "xgettext", so it can be a program name with args.
7323 set dummy xgettext; ac_word=$2
7324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7325 echo "configure:7303: checking for $ac_word" >&5
7326 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7331 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7335 for ac_dir in $PATH; do
7336 test -z "$ac_dir" && ac_dir=.
7337 if test -f $ac_dir/$ac_word; then
7338 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7339 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7345 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7349 XGETTEXT="$ac_cv_path_XGETTEXT"
7350 if test -n "$XGETTEXT"; then
7351 echo "$ac_t""$XGETTEXT" 1>&6
7353 echo "$ac_t""no" 1>&6
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7335 "configure"
7358 #include "confdefs.h"
7361 extern int _nl_msg_cat_cntr;
7362 return _nl_msg_cat_cntr
7365 if { (eval echo configure:7343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370 echo "configure: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7382 echo "$ac_t""no" 1>&6
7386 if test "$CATOBJEXT" = "NONE"; then
7387 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7388 echo "configure:7366: checking whether catgets can be used" >&5
7389 # Check whether --with-catgets or --without-catgets was given.
7390 if test "${with_catgets+set}" = set; then
7391 withval="$with_catgets"
7392 nls_cv_use_catgets=$withval
7394 nls_cv_use_catgets=no
7397 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7399 if test "$nls_cv_use_catgets" = "yes"; then
7400 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7401 echo "configure:7379: checking for main in -li" >&5
7402 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 ac_save_LIBS="$LIBS"
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7387 "configure"
7410 #include "confdefs.h"
7416 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7418 eval "ac_cv_lib_$ac_lib_var=yes"
7420 echo "configure: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7423 eval "ac_cv_lib_$ac_lib_var=no"
7426 LIBS="$ac_save_LIBS"
7429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7430 echo "$ac_t""yes" 1>&6
7431 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7433 cat >> confdefs.h <<EOF
7434 #define $ac_tr_lib 1
7440 echo "$ac_t""no" 1>&6
7443 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7444 echo "configure:7422: checking for catgets" >&5
7445 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7446 echo $ac_n "(cached) $ac_c" 1>&6
7448 cat > conftest.$ac_ext <<EOF
7449 #line 7427 "configure"
7450 #include "confdefs.h"
7451 /* System header to define __stub macros and hopefully few prototypes,
7452 which can conflict with char catgets(); below. */
7454 /* Override any gcc2 internal prototype to avoid an error. */
7455 /* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7461 /* The GNU C library defines this for functions which it implements
7462 to always fail with ENOSYS. Some functions are actually named
7463 something starting with __ and the normal name is an alias. */
7464 #if defined (__stub_catgets) || defined (__stub___catgets)
7472 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7474 eval "ac_cv_func_catgets=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 eval "ac_cv_func_catgets=no"
7484 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 cat >> confdefs.h <<\EOF
7487 #define HAVE_CATGETS 1
7490 INTLOBJS="\$(CATOBJS)"
7491 # Extract the first word of "gencat", so it can be a program name with args.
7492 set dummy gencat; ac_word=$2
7493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7494 echo "configure:7472: checking for $ac_word" >&5
7495 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7500 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7503 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7508 for ac_dir in $ac_dummy; do
7509 test -z "$ac_dir" && ac_dir=.
7510 if test -f $ac_dir/$ac_word; then
7511 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7516 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7520 GENCAT="$ac_cv_path_GENCAT"
7521 if test -n "$GENCAT"; then
7522 echo "$ac_t""$GENCAT" 1>&6
7524 echo "$ac_t""no" 1>&6
7526 if test "$GENCAT" != "no"; then
7527 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7528 set dummy gmsgfmt; ac_word=$2
7529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7530 echo "configure:7508: checking for $ac_word" >&5
7531 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7536 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7539 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7544 for ac_dir in $ac_dummy; do
7545 test -z "$ac_dir" && ac_dir=.
7546 if test -f $ac_dir/$ac_word; then
7547 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7552 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7556 GMSGFMT="$ac_cv_path_GMSGFMT"
7557 if test -n "$GMSGFMT"; then
7558 echo "$ac_t""$GMSGFMT" 1>&6
7560 echo "$ac_t""no" 1>&6
7563 if test "$GMSGFMT" = "no"; then
7564 # Extract the first word of "msgfmt", so it can be a program name with args.
7565 set dummy msgfmt; ac_word=$2
7566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7567 echo "configure:7545: checking for $ac_word" >&5
7568 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7573 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7577 for ac_dir in $PATH; do
7578 test -z "$ac_dir" && ac_dir=.
7579 if test -f $ac_dir/$ac_word; then
7580 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7581 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7587 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7591 GMSGFMT="$ac_cv_path_GMSGFMT"
7592 if test -n "$GMSGFMT"; then
7593 echo "$ac_t""$GMSGFMT" 1>&6
7595 echo "$ac_t""no" 1>&6
7599 # Extract the first word of "xgettext", so it can be a program name with args.
7600 set dummy xgettext; ac_word=$2
7601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7602 echo "configure:7580: checking for $ac_word" >&5
7603 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7608 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7612 for ac_dir in $PATH; do
7613 test -z "$ac_dir" && ac_dir=.
7614 if test -f $ac_dir/$ac_word; then
7615 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7616 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7622 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7626 XGETTEXT="$ac_cv_path_XGETTEXT"
7627 if test -n "$XGETTEXT"; then
7628 echo "$ac_t""$XGETTEXT" 1>&6
7630 echo "$ac_t""no" 1>&6
7633 USE_INCLUDED_LIBINTL=yes
7637 INTLDEPS='$(top_builddir)/intl/libintl.a'
7639 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7640 nls_cv_header_intl=intl/libintl.h
7641 nls_cv_header_libgt=intl/libgettext.h
7644 echo "$ac_t""no" 1>&6
7650 if test "$CATOBJEXT" = "NONE"; then
7651 nls_cv_use_gnu_gettext=yes
7655 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7656 INTLOBJS="\$(GETTOBJS)"
7657 # Extract the first word of "msgfmt", so it can be a program name with args.
7658 set dummy msgfmt; ac_word=$2
7659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7660 echo "configure:7638: checking for $ac_word" >&5
7661 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7666 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7670 for ac_dir in $PATH; do
7671 test -z "$ac_dir" && ac_dir=.
7672 if test -f $ac_dir/$ac_word; then
7673 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7674 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7680 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7684 MSGFMT="$ac_cv_path_MSGFMT"
7685 if test -n "$MSGFMT"; then
7686 echo "$ac_t""$MSGFMT" 1>&6
7688 echo "$ac_t""no" 1>&6
7691 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7692 set dummy gmsgfmt; ac_word=$2
7693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7694 echo "configure:7672: checking for $ac_word" >&5
7695 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7696 echo $ac_n "(cached) $ac_c" 1>&6
7700 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7703 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7708 for ac_dir in $ac_dummy; do
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f $ac_dir/$ac_word; then
7711 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7716 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7720 GMSGFMT="$ac_cv_path_GMSGFMT"
7721 if test -n "$GMSGFMT"; then
7722 echo "$ac_t""$GMSGFMT" 1>&6
7724 echo "$ac_t""no" 1>&6
7727 # Extract the first word of "xgettext", so it can be a program name with args.
7728 set dummy xgettext; ac_word=$2
7729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7730 echo "configure:7708: checking for $ac_word" >&5
7731 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7736 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7740 for ac_dir in $PATH; do
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/$ac_word; then
7743 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7744 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7750 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7754 XGETTEXT="$ac_cv_path_XGETTEXT"
7755 if test -n "$XGETTEXT"; then
7756 echo "$ac_t""$XGETTEXT" 1>&6
7758 echo "$ac_t""no" 1>&6
7762 USE_INCLUDED_LIBINTL=yes
7766 INTLDEPS='$(top_builddir)/intl/libintl.a'
7768 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7769 nls_cv_header_intl=intl/libintl.h
7770 nls_cv_header_libgt=intl/libgettext.h
7773 if test "$XGETTEXT" != ":"; then
7774 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7777 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7782 # We need to process the po/ directory.
7786 nls_cv_header_intl=intl/libintl.h
7787 nls_cv_header_libgt=intl/libgettext.h
7793 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7794 # because some of the sources are only built for this goal.
7795 if test "$PACKAGE" = gettext; then
7797 USE_INCLUDED_LIBINTL=yes
7800 for lang in $ALL_LINGUAS; do
7801 GMOFILES="$GMOFILES $lang.gmo"
7802 POFILES="$POFILES $lang.po"
7818 if test "x$CATOBJEXT" != "x"; then
7819 if test "x$ALL_LINGUAS" = "x"; then
7822 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7823 echo "configure:7801: checking for catalogs to be installed" >&5
7825 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7826 case "$ALL_LINGUAS" in
7827 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7830 LINGUAS=$NEW_LINGUAS
7831 echo "$ac_t""$LINGUAS" 1>&6
7834 if test -n "$LINGUAS"; then
7835 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7839 if test $ac_cv_header_locale_h = yes; then
7840 INCLUDE_LOCALE_H="#include <locale.h>"
7843 /* The system does not provide the header <locale.h>. Take care yourself. */"
7847 test -d intl || mkdir intl
7848 if test "$CATOBJEXT" = ".cat"; then
7849 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7850 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7851 echo "configure:7829: checking for linux/version.h" >&5
7852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7834 "configure"
7857 #include "confdefs.h"
7858 #include <linux/version.h>
7860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7861 { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7863 if test -z "$ac_err"; then
7865 eval "ac_cv_header_$ac_safe=yes"
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7871 eval "ac_cv_header_$ac_safe=no"
7875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7879 echo "$ac_t""no" 1>&6
7884 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7886 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7887 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7889 if test "$PACKAGE" = "gettext"; then
7900 if test -n "$ac_aux_dir"; then
7901 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7903 if test -z "$MKINSTALLDIRS"; then
7904 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7911 test -d po || mkdir po
7912 if test "x$srcdir" != "x."; then
7913 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7914 posrcprefix="$srcdir/"
7916 posrcprefix="../$srcdir/"
7922 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7923 < $srcdir/po/POTFILES.in > po/POTFILES
7925 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7927 # Get an absolute path to the GCC top-level source directory
7933 # Conditionalize the makefile for this host machine.
7934 # Make-host contains the concatenation of all host makefile fragments
7935 # [there can be more than one]. This file is built by configure.frag.
7936 host_overrides=Make-host
7937 dep_host_xmake_file=
7938 for f in .. ${host_xmake_file}
7940 if test -f ${srcdir}/config/$f
7942 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7946 # Conditionalize the makefile for this target machine.
7947 # Make-target contains the concatenation of all host makefile fragments
7948 # [there can be more than one]. This file is built by configure.frag.
7949 target_overrides=Make-target
7951 for f in .. ${tmake_file}
7953 if test -f ${srcdir}/config/$f
7955 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7959 # If the host doesn't support symlinks, modify CC in
7960 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7961 # Otherwise, we can use "CC=$(CC)".
7963 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7965 cc_set_by_configure="\$(CC)"
7966 quoted_cc_set_by_configure="\$(CC)"
7967 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7970 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7972 symbolic_link="cp -p"
7976 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7977 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7978 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7982 out_object_file=`basename $out_file .c`.o
7985 for f in $tm_file; do
7988 tm_file_list="${tm_file_list} $f" ;;
7989 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
7994 for f in $host_xm_file; do
7996 auto-host.h | gansidecl.h | hwint.h )
7997 host_xm_file_list="${host_xm_file_list} $f" ;;
7998 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8003 for f in $build_xm_file; do
8005 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8006 build_xm_file_list="${build_xm_file_list} $f" ;;
8007 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8011 # Define macro CROSS_COMPILE in compilation
8012 # if this is a cross-compiler.
8013 # Also use all.cross instead of all.internal
8014 # and add cross-make to Makefile.
8015 cross_overrides="/dev/null"
8016 if test x$host != x$target
8018 cross_defines="CROSS=-DCROSS_COMPILE"
8019 cross_overrides="${topdir}/cross-make"
8022 # When building gcc with a cross-compiler, we need to fix a few things.
8023 # This must come after cross-make as we want all.build to override
8025 build_overrides="/dev/null"
8026 if test x$build != x$host
8028 build_overrides="${topdir}/build-make"
8031 # Expand extra_headers to include complete path.
8032 # This substitutes for lots of t-* files.
8034 if test "x$extra_headers" = x
8037 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8038 for file in $extra_headers;
8040 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8044 if test x$use_collect2 = xno; then
8048 # Add a definition of USE_COLLECT2 if system wants one.
8049 # Also tell toplev.c what to do.
8050 # This substitutes for lots of t-* files.
8051 if test x$use_collect2 = x
8056 will_use_collect2="collect2"
8057 maybe_use_collect2="-DUSE_COLLECT2"
8061 # Set MD_DEPS if the real md file is in md.pre-cpp.
8062 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8063 # for line oriented comments, so we must always use a GNU cpp. If
8064 # building gcc with a cross compiler, use the cross compiler just
8065 # built. Otherwise, we can use the cpp just built.
8067 if test "x$md_cppflags" = x
8069 md_file_sub=$srcdir/config/$md_file
8074 # If we have gas in the build tree, make a link to it.
8075 if test -f ../gas/Makefile; then
8076 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8079 # If we have nm in the build tree, make a link to it.
8080 if test -f ../binutils/Makefile; then
8081 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8084 # If we have ld in the build tree, make a link to it.
8085 if test -f ../ld/Makefile; then
8086 # if test x$use_collect2 = x; then
8087 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8089 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8093 # Figure out what assembler alignment features are present.
8094 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8095 echo "configure:8073: checking assembler alignment features" >&5
8097 gcc_cv_as_alignment_features=
8098 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8099 if test -x "$DEFAULT_ASSEMBLER"; then
8100 gcc_cv_as="$DEFAULT_ASSEMBLER"
8101 elif test -x "$AS"; then
8103 elif test -x as$host_exeext; then
8104 # Build using assembler in the current directory.
8105 gcc_cv_as=./as$host_exeext
8106 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8107 # Single tree build which includes gas.
8108 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8110 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8111 if test x$gcc_cv_gas_version != x; then
8115 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8116 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8117 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8118 # Gas version 2.6 and later support for .balign and .p2align.
8119 # bytes to skip when using .p2align.
8120 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
8121 gcc_cv_as_alignment_features=".balign and .p2align"
8122 cat >> confdefs.h <<\EOF
8123 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8127 # Gas version 2.8 and later support specifying the maximum
8128 # bytes to skip when using .p2align.
8129 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
8130 gcc_cv_as_alignment_features=".p2align including maximum skip"
8131 cat >> confdefs.h <<\EOF
8132 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8137 elif test x$host = x$target; then
8139 # Search the same directories that the installed compiler will
8140 # search. Else we may find the wrong assembler and lose. If we
8141 # do not find a suitable assembler binary, then try the user's
8144 # Also note we have to check MD_EXEC_PREFIX before checking the
8145 # user's path. Unfortunately, there is no good way to get at the
8146 # value of MD_EXEC_PREFIX here. So we do a brute force search
8147 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8148 # to be fixed as part of the make/configure rewrite too.
8150 if test "x$exec_prefix" = xNONE; then
8151 if test "x$prefix" = xNONE; then
8152 test_prefix=/usr/local
8157 test_prefix=$exec_prefix
8160 # If the loop below does not find an assembler, then use whatever
8161 # one we can find in the users's path.
8165 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8166 $test_prefix/lib/gcc-lib/$target \
8167 /usr/lib/gcc/$target/$gcc_version \
8168 /usr/lib/gcc/$target \
8169 $test_prefix/$target/bin/$target/$gcc_version \
8170 $test_prefix/$target/bin \
8175 /bsd43/usr/lib/cmplrs/cc \
8176 /usr/cross64/usr/bin \
8177 /usr/lib/cmplrs/cc \
8178 /sysv/usr/lib/cmplrs/cc \
8179 /svr4/usr/lib/cmplrs/cc \
8182 for dir in $test_dirs; do
8183 if test -f $dir/as$host_exeext; then
8184 gcc_cv_as=$dir/as$host_exeext
8189 if test x$gcc_cv_as != x; then
8190 # Check if we have .balign and .p2align
8191 echo ".balign 4" > conftest.s
8192 echo ".p2align 2" >> conftest.s
8193 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8194 gcc_cv_as_alignment_features=".balign and .p2align"
8195 cat >> confdefs.h <<\EOF
8196 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8200 rm -f conftest.s conftest.o
8201 # Check if specifying the maximum bytes to skip when
8202 # using .p2align is supported.
8203 echo ".p2align 4,,7" > conftest.s
8204 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8205 gcc_cv_as_alignment_features=".p2align including maximum skip"
8206 cat >> confdefs.h <<\EOF
8207 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8211 rm -f conftest.s conftest.o
8213 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8215 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8216 echo "configure:8194: checking assembler subsection support" >&5
8217 gcc_cv_as_subsections=
8218 if test x$gcc_cv_as != x; then
8219 # Check if we have .subsection
8220 echo ".subsection 1" > conftest.s
8221 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8222 gcc_cv_as_subsections=".subsection"
8223 if test -x nm$host_exeext; then
8224 gcc_cv_nm=./nm$host_exeext
8225 elif test x$host = x$target; then
8227 gcc_cv_nm=nm$host_exeext
8229 if test x$gcc_cv_nm != x; then
8230 cat > conftest.s <<EOF
8231 conftest_label1: .word 0
8233 conftest_label2: .word 0
8236 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8237 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8238 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8239 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8242 gcc_cv_as_subsections="working .subsection -1"
8243 cat >> confdefs.h <<\EOF
8244 #define HAVE_GAS_SUBSECTION_ORDERING 1
8251 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8253 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8255 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8256 echo "configure:8234: checking assembler instructions" >&5
8257 gcc_cv_as_instructions=
8258 if test x$gcc_cv_as != x; then
8259 set "filds fists" "filds mem; fists mem"
8262 echo "$2" > conftest.s
8263 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8264 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8265 cat >> confdefs.h <<EOF
8266 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8272 rm -f conftest.s conftest.o
8274 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8276 # Figure out what language subdirectories are present.
8277 # Look if the user specified --enable-languages="..."; if not, use
8278 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8280 if test x"${enable_languages+set}" != xset; then
8281 if test x"${LANGUAGES+set}" = xset; then
8282 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8284 enable_languages=all
8288 for lang in ${srcdir}/*/config-lang.in ..
8292 # The odd quoting in the next line works around
8293 # an apparent bug in bash 1.12 on linux.
8294 ${srcdir}/[*]/config-lang.in) ;;
8296 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8297 if test "x$lang_alias" = x
8299 echo "$lang doesn't set \$language." 1>&2
8302 if test x"${enable_languages}" = xall; then
8305 case "${enable_languages}" in
8306 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8314 if test x"${add_this_lang}" = xyes; then
8316 ${srcdir}/ada/config-lang.in)
8317 if test x$gnat = xyes ; then
8318 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8322 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8330 # Make gthr-default.h if we have a thread file.
8332 if test $thread_file != single; then
8333 rm -f gthr-default.h
8334 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8335 gthread_flags=-DHAVE_GTHR_DEFAULT
8339 # Make empty files to contain the specs and options for each language.
8340 # Then add #include lines to for a compiler that has specs and/or options.
8345 rm -f specs.h options.h gencheck.h
8346 touch specs.h options.h gencheck.h
8347 for subdir in . $subdirs
8349 if test -f $srcdir/$subdir/lang-specs.h; then
8350 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8351 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8353 if test -f $srcdir/$subdir/lang-options.h; then
8354 echo "#include \"$subdir/lang-options.h\"" >>options.h
8355 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8357 if test -f $srcdir/$subdir/$subdir-tree.def; then
8358 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8359 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8363 # These (without "all_") are set in each config-lang.in.
8364 # `language' must be a single word so is spelled singularly.
8370 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8371 # List of language makefile fragments.
8376 # Add the language fragments.
8377 # Languages are added via two mechanisms. Some information must be
8378 # recorded in makefile variables, these are defined in config-lang.in.
8379 # We accumulate them and plug them into the main Makefile.
8380 # The other mechanism is a set of hooks for each of the main targets
8381 # like `clean', `install', etc.
8383 language_fragments="Make-lang"
8384 language_hooks="Make-hooks"
8387 for s in .. $subdirs
8399 . ${srcdir}/$s/config-lang.in
8400 if test "x$language" = x
8402 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8405 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8406 all_languages="$all_languages $language"
8407 if test "x$boot_language" = xyes
8409 all_boot_languages="$all_boot_languages $language"
8411 all_compilers="$all_compilers $compilers"
8412 all_stagestuff="$all_stagestuff $stagestuff"
8413 all_diff_excludes="$all_diff_excludes $diff_excludes"
8414 all_headers="$all_headers $headers"
8415 all_outputs="$all_outputs $outputs"
8416 if test x$outputs = x
8418 oldstyle_subdirs="$oldstyle_subdirs $s"
8420 all_lib2funcs="$all_lib2funcs $lib2funcs"
8424 # Since we can't use `::' targets, we link each language in
8425 # with a set of hooks, reached indirectly via lang.${target}.
8429 target_list="all.build all.cross start.encap rest.encap \
8431 install-normal install-common install-info install-man \
8433 mostlyclean clean distclean extraclean maintainer-clean \
8434 stage1 stage2 stage3 stage4"
8435 for t in $target_list
8438 for lang in .. $all_languages
8440 if test $lang != ".."; then
8444 echo "lang.$t: $x" >> Make-hooks
8447 # If we're not building in srcdir, create .gdbinit.
8449 if test ! -f Makefile.in; then
8450 echo "dir ." > .gdbinit
8451 echo "dir ${srcdir}" >> .gdbinit
8452 if test x$gdb_needs_out_file_path = xyes
8454 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8456 if test "x$subdirs" != x; then
8459 echo "dir ${srcdir}/$s" >> .gdbinit
8462 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8465 # Define variables host_canonical and build_canonical
8466 # because some Cygnus local changes in the Makefile depend on them.
8467 build_canonical=${build}
8468 host_canonical=${host}
8470 if test "${host}" != "${target}" ; then
8471 target_subdir=${target}/
8477 # If this is using newlib, then define inhibit_libc in
8478 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8479 # libgcc.a, but that's OK because newib should have its own version of
8482 if test x$with_newlib = xyes; then
8483 inhibit_libc=-Dinhibit_libc
8487 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8490 if test x$enable_haifa = xyes; then
8491 echo "Using the Haifa scheduler."
8493 sched_cflags=-DHAIFA
8497 if test x$enable_haifa != x; then
8498 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8499 for x in genattrtab.o toplev.o *sched.o; do
8507 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8508 # absolute path for gcc_tooldir based on inserting the number of up-directory
8509 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8510 # $(libsubdir)/@(unlibsubdir) based path.
8511 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8512 # make and thus we'd get different behavior depending on where we built the
8514 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8515 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8517 # An explanation of the sed strings:
8518 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8519 # -e 's|/$||' match a trailing forward slash and eliminates it
8520 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8521 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8523 # (*) Note this pattern overwrites the first character of the string
8524 # with a forward slash if one is not already present. This is not a
8525 # problem because the exact names of the sub-directories concerned is
8526 # unimportant, just the number of them matters.
8528 # The practical upshot of these patterns is like this:
8530 # prefix exec_prefix result
8531 # ------ ----------- ------
8533 # /foo/ /foo/bar ../
8534 # /foo /foo/bar/ ../
8535 # /foo/ /foo/bar/ ../
8536 # /foo /foo/bar/ugg ../../
8539 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8544 # Nothing to do for FLOAT_H, float_format already handled.
8548 # Process the language and host/target makefile fragments.
8549 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8551 # Substitute configuration variables
8613 # Echo that links are built
8614 if test x$host = x$target
8622 if test x$host != x$build
8624 str3=" on a $build system"
8627 if test "x$str2" != x || test "x$str3" != x
8632 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8634 if test "x$str2" != x || test "x$str3" != x
8636 echo " ${str2}${str3}." 1>&2
8639 # Truncate the target if necessary
8640 if test x$host_truncate_target != x; then
8641 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8644 # Configure the subdirectories
8645 # AC_CONFIG_SUBDIRS($subdirs)
8647 # Create the Makefile
8648 # and configure language subdirectories
8650 cat > confcache <<\EOF
8651 # This file is a shell script that caches the results of configure
8652 # tests run on this system so they can be shared between configure
8653 # scripts and configure runs. It is not useful on other systems.
8654 # If it contains results you don't want to keep, you may remove or edit it.
8656 # By default, configure uses ./config.cache as the cache file,
8657 # creating it if it does not exist already. You can give configure
8658 # the --cache-file=FILE option to use a different cache file; that is
8659 # what configure does when it calls configure scripts in
8660 # subdirectories, so they share the cache.
8661 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8662 # config.status only pays attention to the cache file if you give it the
8663 # --recheck option to rerun configure.
8666 # The following way of writing the cache mishandles newlines in values,
8667 # but we know of no workaround that is simple, portable, and efficient.
8668 # So, don't put newlines in cache variables' values.
8669 # Ultrix sh set writes to stderr and can't be redirected directly,
8670 # and sets the high bit in the cache file unless we assign to the vars.
8672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8674 # `set' does not quote correctly, so add quotes (double-quote substitution
8675 # turns \\\\ into \\, and sed turns \\ into \).
8677 -e "s/'/'\\\\''/g" \
8678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8681 # `set' quotes correctly as required by POSIX, so do not add quotes.
8682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8685 if cmp -s $cache_file confcache; then
8688 if test -w $cache_file; then
8689 echo "updating cache $cache_file"
8690 cat confcache > $cache_file
8692 echo "not updating unwritable cache $cache_file"
8697 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8700 # Let make expand exec_prefix.
8701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8703 # Any assignment to VPATH causes Sun make to only execute
8704 # the first set of double-colon rules, so remove it if not needed.
8705 # If there is a colon in the path, we need to keep it.
8706 if test "x$srcdir" = x.; then
8707 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8710 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8712 DEFS=-DHAVE_CONFIG_H
8714 # Without the "./", some shells look in PATH for config.status.
8715 : ${CONFIG_STATUS=./config.status}
8717 echo creating $CONFIG_STATUS
8718 rm -f $CONFIG_STATUS
8719 cat > $CONFIG_STATUS <<EOF
8721 # Generated automatically by configure.
8722 # Run this file to recreate the current configuration.
8723 # This directory was configured as follows,
8724 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8726 # $0 $ac_configure_args
8728 # Compiler output produced by configure, useful for debugging
8729 # configure, is in ./config.log if it exists.
8731 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8734 case "\$ac_option" in
8735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8736 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8737 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8738 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8739 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8741 -help | --help | --hel | --he | --h)
8742 echo "\$ac_cs_usage"; exit 0 ;;
8743 *) echo "\$ac_cs_usage"; exit 1 ;;
8747 ac_given_srcdir=$srcdir
8749 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8751 cat >> $CONFIG_STATUS <<EOF
8753 # Protect against being on the right side of a sed subst in config.status.
8754 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8755 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8759 s%@CFLAGS@%$CFLAGS%g
8760 s%@CPPFLAGS@%$CPPFLAGS%g
8761 s%@CXXFLAGS@%$CXXFLAGS%g
8762 s%@FFLAGS@%$FFLAGS%g
8764 s%@LDFLAGS@%$LDFLAGS%g
8766 s%@exec_prefix@%$exec_prefix%g
8767 s%@prefix@%$prefix%g
8768 s%@program_transform_name@%$program_transform_name%g
8769 s%@bindir@%$bindir%g
8770 s%@sbindir@%$sbindir%g
8771 s%@libexecdir@%$libexecdir%g
8772 s%@datadir@%$datadir%g
8773 s%@sysconfdir@%$sysconfdir%g
8774 s%@sharedstatedir@%$sharedstatedir%g
8775 s%@localstatedir@%$localstatedir%g
8776 s%@libdir@%$libdir%g
8777 s%@includedir@%$includedir%g
8778 s%@oldincludedir@%$oldincludedir%g
8779 s%@infodir@%$infodir%g
8780 s%@mandir@%$mandir%g
8782 s%@host_alias@%$host_alias%g
8783 s%@host_cpu@%$host_cpu%g
8784 s%@host_vendor@%$host_vendor%g
8785 s%@host_os@%$host_os%g
8786 s%@target@%$target%g
8787 s%@target_alias@%$target_alias%g
8788 s%@target_cpu@%$target_cpu%g
8789 s%@target_vendor@%$target_vendor%g
8790 s%@target_os@%$target_os%g
8792 s%@build_alias@%$build_alias%g
8793 s%@build_cpu@%$build_cpu%g
8794 s%@build_vendor@%$build_vendor%g
8795 s%@build_os@%$build_os%g
8797 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8798 s%@SET_MAKE@%$SET_MAKE%g
8801 s%@LEXLIB@%$LEXLIB%g
8804 s%@RANLIB@%$RANLIB%g
8806 s%@INSTALL@%$INSTALL%g
8807 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8808 s%@INSTALL_DATA@%$INSTALL_DATA%g
8811 s%@vfprintf@%$vfprintf%g
8812 s%@doprint@%$doprint%g
8813 s%@manext@%$manext%g
8814 s%@objext@%$objext%g
8815 s%@PACKAGE@%$PACKAGE%g
8816 s%@VERSION@%$VERSION%g
8817 s%@ALLOCA@%$ALLOCA%g
8818 s%@USE_NLS@%$USE_NLS%g
8819 s%@MSGFMT@%$MSGFMT%g
8820 s%@GMSGFMT@%$GMSGFMT%g
8821 s%@XGETTEXT@%$XGETTEXT%g
8822 s%@GENCAT@%$GENCAT%g
8823 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8824 s%@CATALOGS@%$CATALOGS%g
8825 s%@CATOBJEXT@%$CATOBJEXT%g
8826 s%@DATADIRNAME@%$DATADIRNAME%g
8827 s%@GMOFILES@%$GMOFILES%g
8828 s%@INSTOBJEXT@%$INSTOBJEXT%g
8829 s%@INTLDEPS@%$INTLDEPS%g
8830 s%@INTLLIBS@%$INTLLIBS%g
8831 s%@INTLOBJS@%$INTLOBJS%g
8832 s%@POFILES@%$POFILES%g
8834 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8836 s%@GT_YES@%$GT_YES%g
8837 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8839 s%@gthread_flags@%$gthread_flags%g
8840 s%@build_canonical@%$build_canonical%g
8841 s%@host_canonical@%$host_canonical%g
8842 s%@target_subdir@%$target_subdir%g
8843 s%@inhibit_libc@%$inhibit_libc%g
8844 s%@sched_prefix@%$sched_prefix%g
8845 s%@sched_cflags@%$sched_cflags%g
8846 s%@gcc_tooldir@%$gcc_tooldir%g
8847 s%@dollar@%$dollar%g
8848 s%@objdir@%$objdir%g
8849 s%@subdirs@%$subdirs%g
8850 s%@all_boot_languages@%$all_boot_languages%g
8851 s%@all_compilers@%$all_compilers%g
8852 s%@all_diff_excludes@%$all_diff_excludes%g
8853 s%@all_headers@%$all_headers%g
8854 s%@all_lang_makefiles@%$all_lang_makefiles%g
8855 s%@all_languages@%$all_languages%g
8856 s%@all_lib2funcs@%$all_lib2funcs%g
8857 s%@all_stagestuff@%$all_stagestuff%g
8858 s%@build_exeext@%$build_exeext%g
8859 s%@build_install_headers_dir@%$build_install_headers_dir%g
8860 s%@build_xm_file_list@%$build_xm_file_list%g
8861 s%@cc_set_by_configure@%$cc_set_by_configure%g
8862 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8863 s%@cpp_install_dir@%$cpp_install_dir%g
8864 s%@cpp_main@%$cpp_main%g
8865 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8866 s%@dep_tmake_file@%$dep_tmake_file%g
8867 s%@extra_c_flags@%$extra_c_flags%g
8868 s%@extra_c_objs@%$extra_c_objs%g
8869 s%@extra_cpp_objs@%$extra_cpp_objs%g
8870 s%@extra_cxx_objs@%$extra_cxx_objs%g
8871 s%@extra_headers_list@%$extra_headers_list%g
8872 s%@extra_objs@%$extra_objs%g
8873 s%@extra_parts@%$extra_parts%g
8874 s%@extra_passes@%$extra_passes%g
8875 s%@extra_programs@%$extra_programs%g
8876 s%@fixinc_defs@%$fixinc_defs%g
8877 s%@float_h_file@%$float_h_file%g
8878 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8879 s%@gcc_version@%$gcc_version%g
8880 s%@gcc_version_trigger@%$gcc_version_trigger%g
8881 s%@host_exeext@%$host_exeext%g
8882 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8883 s%@host_xm_file_list@%$host_xm_file_list%g
8884 s%@install@%$install%g
8885 s%@JAVAGC@%$JAVAGC%g
8886 s%@lang_options_files@%$lang_options_files%g
8887 s%@lang_specs_files@%$lang_specs_files%g
8888 s%@lang_tree_files@%$lang_tree_files%g
8889 s%@local_prefix@%$local_prefix%g
8890 s%@maybe_use_collect2@%$maybe_use_collect2%g
8891 s%@md_file@%$md_file%g
8892 s%@objc_boehm_gc@%$objc_boehm_gc%g
8893 s%@out_file@%$out_file%g
8894 s%@out_object_file@%$out_object_file%g
8895 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8896 s%@symbolic_link@%$symbolic_link%g
8897 s%@thread_file@%$thread_file%g
8898 s%@tm_file_list@%$tm_file_list%g
8899 s%@will_use_collect2@%$will_use_collect2%g
8900 /@target_overrides@/r $target_overrides
8901 s%@target_overrides@%%g
8902 /@host_overrides@/r $host_overrides
8903 s%@host_overrides@%%g
8904 s%@cross_defines@%$cross_defines%g
8905 /@cross_overrides@/r $cross_overrides
8906 s%@cross_overrides@%%g
8907 /@build_overrides@/r $build_overrides
8908 s%@build_overrides@%%g
8909 /@language_fragments@/r $language_fragments
8910 s%@language_fragments@%%g
8911 /@language_hooks@/r $language_hooks
8912 s%@language_hooks@%%g
8917 cat >> $CONFIG_STATUS <<\EOF
8919 # Split the substitutions into bite-sized pieces for seds with
8920 # small command number limits, like on Digital OSF/1 and HP-UX.
8921 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8922 ac_file=1 # Number of current file.
8923 ac_beg=1 # First line for current file.
8924 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8927 while $ac_more_lines; do
8928 if test $ac_beg -gt 1; then
8929 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8931 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8933 if test ! -s conftest.s$ac_file; then
8935 rm -f conftest.s$ac_file
8937 if test -z "$ac_sed_cmds"; then
8938 ac_sed_cmds="sed -f conftest.s$ac_file"
8940 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8942 ac_file=`expr $ac_file + 1`
8944 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8947 if test -z "$ac_sed_cmds"; then
8952 cat >> $CONFIG_STATUS <<EOF
8954 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8956 cat >> $CONFIG_STATUS <<\EOF
8957 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8960 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8961 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8962 *) ac_file_in="${ac_file}.in" ;;
8965 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8967 # Remove last slash and all that follows it. Not all systems have dirname.
8968 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8970 # The file is in a subdirectory.
8971 test ! -d "$ac_dir" && mkdir "$ac_dir"
8972 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8973 # A "../" for each directory in $ac_dir_suffix.
8974 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8976 ac_dir_suffix= ac_dots=
8979 case "$ac_given_srcdir" in
8981 if test -z "$ac_dots"; then top_srcdir=.
8982 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8983 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8985 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8986 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8990 echo creating "$ac_file"
8992 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8994 *Makefile*) ac_comsub="1i\\
8995 # $configure_input" ;;
8999 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9001 s%@configure_input@%$configure_input%g
9002 s%@srcdir@%$srcdir%g
9003 s%@top_srcdir@%$top_srcdir%g
9004 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9008 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9009 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9011 # ac_d sets the value in "#define NAME VALUE" lines.
9012 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9013 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9016 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9017 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9018 ac_uB='\([ ]\)%\1#\2define\3'
9021 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9022 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9023 ac_eB='$%\1#\2define\3'
9027 if test "${CONFIG_HEADERS+set}" != set; then
9029 cat >> $CONFIG_STATUS <<EOF
9030 CONFIG_HEADERS="auto-host.h:config.in"
9032 cat >> $CONFIG_STATUS <<\EOF
9034 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9035 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9037 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9038 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9039 *) ac_file_in="${ac_file}.in" ;;
9042 echo creating $ac_file
9044 rm -f conftest.frag conftest.in conftest.out
9045 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9046 cat $ac_file_inputs > conftest.in
9050 # Transform confdefs.h into a sed script conftest.vals that substitutes
9051 # the proper values into config.h.in to produce config.h. And first:
9052 # Protect against being on the right side of a sed subst in config.status.
9053 # Protect against being in an unquoted here document in config.status.
9055 cat > conftest.hdr <<\EOF
9058 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9062 sed -n -f conftest.hdr confdefs.h > conftest.vals
9065 # This sed command replaces #undef with comments. This is necessary, for
9066 # example, in the case of _POSIX_SOURCE, which is predefined and required
9067 # on some systems where configure will not decide to define it.
9068 cat >> conftest.vals <<\EOF
9069 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9072 # Break up conftest.vals because some shells have a limit on
9073 # the size of here documents, and old seds have small limits too.
9078 ac_lines=`grep -c . conftest.vals`
9079 # grep -c gives empty output for an empty file on some AIX systems.
9080 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9081 # Write a limited-size here document to conftest.frag.
9082 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9083 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9085 sed -f conftest.frag conftest.in > conftest.out
9087 mv conftest.out conftest.in
9089 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9091 mv conftest.tail conftest.vals
9095 cat >> $CONFIG_STATUS <<\EOF
9096 rm -f conftest.frag conftest.h
9097 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9098 cat conftest.in >> conftest.h
9100 if cmp -s $ac_file conftest.h 2>/dev/null; then
9101 echo "$ac_file is unchanged"
9104 # Remove last slash and all that follows it. Not all systems have dirname.
9105 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9106 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9107 # The file is in a subdirectory.
9108 test ! -d "$ac_dir" && mkdir "$ac_dir"
9111 mv conftest.h $ac_file
9117 cat >> $CONFIG_STATUS <<EOF
9118 ac_sources="$nls_cv_header_libgt"
9119 ac_dests="$nls_cv_header_intl"
9122 cat >> $CONFIG_STATUS <<\EOF
9123 srcdir=$ac_given_srcdir
9124 while test -n "$ac_sources"; do
9125 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9126 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9128 echo "linking $srcdir/$ac_source to $ac_dest"
9130 if test ! -r $srcdir/$ac_source; then
9131 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9135 # Make relative symlinks.
9136 # Remove last slash and all that follows it. Not all systems have dirname.
9137 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9138 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9139 # The dest file is in a subdirectory.
9140 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9141 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9142 # A "../" for each directory in $ac_dest_dir_suffix.
9143 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9145 ac_dest_dir_suffix= ac_dots=
9149 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9150 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9153 # Make a symlink if possible; otherwise try a hard link.
9154 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9155 ln $srcdir/$ac_source $ac_dest; then :
9157 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9161 cat >> $CONFIG_STATUS <<EOF
9167 target_alias='${target_alias}'
9169 subdirs='${subdirs}'
9170 oldstyle_subdirs='${oldstyle_subdirs}'
9171 symbolic_link='${symbolic_link}'
9172 program_transform_set='${program_transform_set}'
9173 program_transform_name='${program_transform_name}'
9174 dep_host_xmake_file='${dep_host_xmake_file}'
9175 host_xmake_file='${host_xmake_file}'
9176 dep_tmake_file='${dep_tmake_file}'
9177 tmake_file='${tmake_file}'
9178 thread_file='${thread_file}'
9179 gcc_version='${gcc_version}'
9180 gcc_version_trigger='${gcc_version_trigger}'
9181 local_prefix='${local_prefix}'
9182 build_install_headers_dir='${build_install_headers_dir}'
9183 build_exeext='${build_exeext}'
9184 host_exeext='${host_exeext}'
9185 out_file='${out_file}'
9186 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9187 SET_MAKE='${SET_MAKE}'
9188 target_list='${target_list}'
9189 target_overrides='${target_overrides}'
9190 host_overrides='${host_overrides}'
9191 cross_defines='${cross_defines}'
9192 cross_overrides='${cross_overrides}'
9193 build_overrides='${build_overrides}'
9194 cpp_install_dir='${cpp_install_dir}'
9197 cat >> $CONFIG_STATUS <<\EOF
9198 case "$CONFIG_FILES" in *po/Makefile.in*)
9199 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9202 . $srcdir/configure.lang
9203 case x$CONFIG_HEADERS in
9204 xauto-host.h:config.in)
9207 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9208 # bootstrapping and the installation procedure can still use
9209 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9210 # FLAGS_TO_PASS has been modified to solve the problem there.
9211 # This is virtually a duplicate of what happens in configure.lang; we do
9212 # an extra check to make sure this only happens if ln -s can be used.
9213 if test "$symbolic_link" = "ln -s"; then
9214 for d in .. ${subdirs} ; do
9215 if test $d != ..; then
9218 for t in stage1 stage2 stage3 stage4 include
9221 $symbolic_link ../$t $t 2>/dev/null
9227 # Avoid having to add intl to our include paths.
9228 if test -f intl/libintl.h; then
9229 echo creating libintl.h
9230 echo '#include "intl/libintl.h"' >libintl.h
9235 chmod +x $CONFIG_STATUS
9236 rm -fr confdefs* $ac_clean_files
9237 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1