3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-c-cpplib Use cpplib for C."
30 --enable-threads enable thread usage for target GCC.
31 --enable-threads=LIB use LIB thread package for target GCC."
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.12.1"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=tree.c
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
544 symbolic_link='ln -s'
547 # Check for additional parameters
550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
551 if test "${with_gnu_ld+set}" = set; then
552 withval="$with_gnu_ld"
560 # Check whether --with-gnu-as or --without-gnu-as was given.
561 if test "${with_gnu_as+set}" = set; then
562 withval="$with_gnu_as"
570 # Check whether --with-stabs or --without-stabs was given.
571 if test "${with_stabs+set}" = set; then
572 withval="$with_stabs"
580 # Check whether --with-elf or --without-elf was given.
581 if test "${with_elf+set}" = set; then
589 # Specify the local prefix
590 # Check whether --with-local-prefix or --without-local-prefix was given.
591 if test "${with_local_prefix+set}" = set; then
592 withval="$with_local_prefix"
593 local_prefix=$with_local_prefix
595 local_prefix=/usr/local
599 # Default local prefix if it is empty
600 if [ x$local_prefix = x ]; then
601 local_prefix=/usr/local
604 # Specify the g++ header file directory
605 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
606 if test "${with_gxx_include_dir+set}" = set; then
607 withval="$with_gxx_include_dir"
608 gxx_include_dir=$with_gxx_include_dir
610 gxx_include_dir='${prefix}/include/g++'
614 # Default g++ header file directory if it is empty
615 if [ x$gxx_include_dir = x ]; then
616 gxx_include_dir='${prefix}/include/g++'
619 # Enable use of cpplib for C.
620 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
621 if test "${enable_c_cpplib+set}" = set; then
622 enableval="$enable_c_cpplib"
623 if [ x$enable_c_cpplib != xno ]; then
624 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
625 extra_c_flags=-DUSE_CPPLIB=1
631 # Pass with no value to take the default
632 # Pass with a value to specify a thread package
633 # Check whether --enable-threads or --disable-threads was given.
634 if test "${enable_threads+set}" = set; then
635 enableval="$enable_threads"
636 if [ x$enable_threads = xno ]; then
644 # Check if a valid thread package
645 case x${enable_threads} in
654 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
656 thread_file=$enable_threads
659 echo "$enable_threads is an unknown thread package" 1>&2
664 # Determine the host, build, and target systems
666 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
667 if test -f $ac_dir/install-sh; then
669 ac_install_sh="$ac_aux_dir/install-sh -c"
671 elif test -f $ac_dir/install.sh; then
673 ac_install_sh="$ac_aux_dir/install.sh -c"
677 if test -z "$ac_aux_dir"; then
678 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
680 ac_config_guess=$ac_aux_dir/config.guess
681 ac_config_sub=$ac_aux_dir/config.sub
682 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
685 # Do some error checking and defaulting for the host and target type.
687 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
690 # 1. You are not allowed to specify --host, --target, and nonopt at the
692 # 2. Host defaults to nonopt.
693 # 3. If nonopt is not specified, then host defaults to the current host,
694 # as determined by config.guess.
695 # 4. Target and build default to nonopt.
696 # 5. If nonopt is not specified, then target and build default to host.
698 # The aliases save the names the user supplied, while $host etc.
699 # will get canonicalized.
700 case $host---$target---$nonopt in
701 NONE---*---* | *---NONE---* | *---*---NONE) ;;
702 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
706 # Make sure we can run config.sub.
707 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
708 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
711 echo $ac_n "checking host system type""... $ac_c" 1>&6
712 echo "configure:713: checking host system type" >&5
715 case "$host_alias" in
719 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
720 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
722 *) host_alias=$nonopt ;;
726 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
727 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$host" 1>&6
732 echo $ac_n "checking target system type""... $ac_c" 1>&6
733 echo "configure:734: checking target system type" >&5
736 case "$target_alias" in
739 NONE) target_alias=$host_alias ;;
740 *) target_alias=$nonopt ;;
744 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
745 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$target" 1>&6
750 echo $ac_n "checking build system type""... $ac_c" 1>&6
751 echo "configure:752: checking build system type" >&5
754 case "$build_alias" in
757 NONE) build_alias=$host_alias ;;
758 *) build_alias=$nonopt ;;
762 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
763 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766 echo "$ac_t""$build" 1>&6
768 test "$host_alias" != "$target_alias" &&
769 test "$program_prefix$program_suffix$program_transform_name" = \
771 program_prefix=${target_alias}-
774 # Find some useful tools
775 for ac_prog in mawk gawk nawk awk
777 # Extract the first word of "$ac_prog", so it can be a program name with args.
778 set dummy $ac_prog; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$AWK"; then
785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
788 for ac_dir in $PATH; do
789 test -z "$ac_dir" && ac_dir=.
790 if test -f $ac_dir/$ac_word; then
791 ac_cv_prog_AWK="$ac_prog"
798 AWK="$ac_cv_prog_AWK"
799 if test -n "$AWK"; then
800 echo "$ac_t""$AWK" 1>&6
802 echo "$ac_t""no" 1>&6
805 test -n "$AWK" && break
808 # Extract the first word of "flex", so it can be a program name with args.
809 set dummy flex; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$LEX"; then
816 ac_cv_prog_LEX="$LEX" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
819 for ac_dir in $PATH; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
822 ac_cv_prog_LEX="flex"
827 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
830 LEX="$ac_cv_prog_LEX"
831 if test -n "$LEX"; then
832 echo "$ac_t""$LEX" 1>&6
834 echo "$ac_t""no" 1>&6
843 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
844 echo "configure:845: checking for yywrap in -l$ac_lib" >&5
845 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
850 LIBS="-l$ac_lib $LIBS"
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
854 /* Override any gcc2 internal prototype to avoid an error. */
855 /* We use char because int might match the return type of a gcc2
856 builtin and then its argument prototype would still apply. */
863 if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
865 eval "ac_cv_lib_$ac_lib_var=yes"
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
870 eval "ac_cv_lib_$ac_lib_var=no"
876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
877 echo "$ac_t""yes" 1>&6
880 echo "$ac_t""no" 1>&6
885 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
886 echo "configure:887: checking whether ln works" >&5
887 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 rm -f conftestdata_to
891 echo >conftestdata_from
892 if ln conftestdata_from conftestdata_to 2>/dev/null
896 if ln -s conftestdata_from conftestdata_to 2>/dev/null
898 gcc_cv_prog_LN="ln -s"
903 rm -f conftestdata_from conftestdata_to
907 if test "$gcc_cv_prog_LN" = "ln"; then
908 echo "$ac_t""yes" 1>&6
910 if test "$gcc_cv_prog_LN" = "ln -s"; then
911 echo "$ac_t""no, using ln -s" 1>&6
913 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
917 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
918 echo "configure:919: checking whether ln -s works" >&5
919 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 rm -f conftestdata_to
923 echo >conftestdata_from
924 if ln -s conftestdata_from conftestdata_to 2>/dev/null
926 gcc_cv_prog_LN_S="ln -s"
928 if ln conftestdata_from conftestdata_to 2>/dev/null
935 rm -f conftestdata_from conftestdata_to
938 LN_S="$gcc_cv_prog_LN_S"
939 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
940 echo "$ac_t""yes" 1>&6
942 if test "$gcc_cv_prog_LN_S" = "ln"; then
943 echo "$ac_t""no, using ln" 1>&6
945 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
949 # Extract the first word of "ranlib", so it can be a program name with args.
950 set dummy ranlib; ac_word=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 if test -n "$RANLIB"; then
957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
960 for ac_dir in $PATH; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_prog_RANLIB="ranlib"
968 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
971 RANLIB="$ac_cv_prog_RANLIB"
972 if test -n "$RANLIB"; then
973 echo "$ac_t""$RANLIB" 1>&6
975 echo "$ac_t""no" 1>&6
978 for ac_prog in 'bison -y' byacc
980 # Extract the first word of "$ac_prog", so it can be a program name with args.
981 set dummy $ac_prog; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 if test -n "$YACC"; then
988 ac_cv_prog_YACC="$YACC" # Let the user override the test.
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
991 for ac_dir in $PATH; do
992 test -z "$ac_dir" && ac_dir=.
993 if test -f $ac_dir/$ac_word; then
994 ac_cv_prog_YACC="$ac_prog"
1001 YACC="$ac_cv_prog_YACC"
1002 if test -n "$YACC"; then
1003 echo "$ac_t""$YACC" 1>&6
1005 echo "$ac_t""no" 1>&6
1008 test -n "$YACC" && break
1010 test -n "$YACC" || YACC="yacc"
1012 # Find a good install program. We prefer a C program (faster),
1013 # so one script is as good as another. But avoid the broken or
1014 # incompatible versions:
1015 # SysV /etc/install, /usr/sbin/install
1016 # SunOS /usr/etc/install
1017 # IRIX /sbin/install
1019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1021 # ./install, which can be erroneously created by make from ./install.sh.
1022 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1023 echo "configure:1024: checking for a BSD compatible install" >&5
1024 if test -z "$INSTALL"; then
1025 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1029 for ac_dir in $PATH; do
1030 # Account for people who put trailing slashes in PATH elements.
1032 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1034 # OSF1 and SCO ODT 3.0 have their own names for install.
1035 for ac_prog in ginstall scoinst install; do
1036 if test -f $ac_dir/$ac_prog; then
1037 if test $ac_prog = install &&
1038 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1039 # AIX install. It has an incompatible calling convention.
1040 # OSF/1 installbsd also uses dspmsg, but is usable.
1043 ac_cv_path_install="$ac_dir/$ac_prog -c"
1054 if test "${ac_cv_path_install+set}" = set; then
1055 INSTALL="$ac_cv_path_install"
1057 # As a last resort, use the slow shell script. We don't cache a
1058 # path for INSTALL within a source directory, because that will
1059 # break other packages using the cache if that directory is
1060 # removed, or if the path is relative.
1061 INSTALL="$ac_install_sh"
1064 echo "$ac_t""$INSTALL" 1>&6
1066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1067 # It thinks the first close brace ends the variable substitution.
1068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1073 # Find the native compiler
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 if test -n "$CC"; then
1082 ac_cv_prog_CC="$CC" # Let the user override the test.
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1085 for ac_dir in $PATH; do
1086 test -z "$ac_dir" && ac_dir=.
1087 if test -f $ac_dir/$ac_word; then
1096 if test -n "$CC"; then
1097 echo "$ac_t""$CC" 1>&6
1099 echo "$ac_t""no" 1>&6
1102 if test -z "$CC"; then
1103 # Extract the first word of "cc", so it can be a program name with args.
1104 set dummy cc; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CC"; then
1111 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1115 for ac_dir in $PATH; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1118 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1119 ac_prog_rejected=yes
1127 if test $ac_prog_rejected = yes; then
1128 # We found a bogon in the path, so make sure we never use it.
1129 set dummy $ac_cv_prog_CC
1131 if test $# -gt 0; then
1132 # We chose a different compiler from the bogus one.
1133 # However, it has the same basename, so the bogon will be chosen
1134 # first if we set CC to just the basename; use the full file name.
1136 set dummy "$ac_dir/$ac_word" "$@"
1144 if test -n "$CC"; then
1145 echo "$ac_t""$CC" 1>&6
1147 echo "$ac_t""no" 1>&6
1150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158 ac_cpp='$CPP $CPPFLAGS'
1159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161 cross_compiling=$ac_cv_prog_cc_cross
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1168 if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1169 ac_cv_prog_cc_works=yes
1170 # If we can't run a trivial program, we are probably using a cross compiler.
1171 if (./conftest; exit) 2>/dev/null; then
1172 ac_cv_prog_cc_cross=no
1174 ac_cv_prog_cc_cross=yes
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1179 ac_cv_prog_cc_works=no
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:1189: 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:1194: 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:1203: \"$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
1213 ac_test_CFLAGS="${CFLAGS+set}"
1214 ac_save_CFLAGS="$CFLAGS"
1216 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ${CC-cc} accepts -g" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 echo 'void f(){}' > conftest.c
1222 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1231 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1232 if test "$ac_test_CFLAGS" = set; then
1233 CFLAGS="$ac_save_CFLAGS"
1234 elif test $ac_cv_prog_cc_g = yes; then
1241 test "${CFLAGS+set}" = set || CFLAGS="-g"
1244 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether ${MAKE-make} sets \${MAKE}" >&5
1246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1247 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftestmake <<\EOF
1252 @echo 'ac_maketemp="${MAKE}"'
1254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1255 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1256 if test -n "$ac_maketemp"; then
1257 eval ac_cv_prog_make_${ac_make}_set=yes
1259 eval ac_cv_prog_make_${ac_make}_set=no
1263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1264 echo "$ac_t""yes" 1>&6
1267 echo "$ac_t""no" 1>&6
1268 SET_MAKE="MAKE=${MAKE-make}"
1272 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1273 echo "configure:1274: checking how to run the C preprocessor" >&5
1274 # On Suns, sometimes $CPP names a directory.
1275 if test -n "$CPP" && test -d "$CPP"; then
1278 if test -z "$CPP"; then
1279 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 # This must be in double quotes, not single quotes, because CPP may get
1283 # substituted into the Makefile and "${CC-cc}" will confuse make.
1285 # On the NeXT, cc -E runs the code through the compiler's parser,
1286 # not just through cpp.
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1294 { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1295 ac_err=`grep -v '^ *+' conftest.out`
1296 if test -z "$ac_err"; then
1300 echo "configure: failed program was:" >&5
1301 cat conftest.$ac_ext >&5
1303 CPP="${CC-cc} -E -traditional-cpp"
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1311 { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1312 ac_err=`grep -v '^ *+' conftest.out`
1313 if test -z "$ac_err"; then
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1325 ac_cv_prog_CPP="$CPP"
1327 CPP="$ac_cv_prog_CPP"
1329 ac_cv_prog_CPP="$CPP"
1331 echo "$ac_t""$CPP" 1>&6
1333 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h
1335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_hdr" >&5
1338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1347 { (eval echo configure:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1348 ac_err=`grep -v '^ *+' conftest.out`
1349 if test -z "$ac_err"; then
1351 eval "ac_cv_header_$ac_safe=yes"
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1357 eval "ac_cv_header_$ac_safe=no"
1361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1362 echo "$ac_t""yes" 1>&6
1363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1364 cat >> confdefs.h <<EOF
1365 #define $ac_tr_hdr 1
1369 echo "$ac_t""no" 1>&6
1374 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1375 echo "configure:1376: checking whether malloc must be declared" >&5
1376 if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1384 #ifdef HAVE_STRING_H
1387 #ifdef HAVE_STRINGS_H
1388 #include <strings.h>
1391 #ifdef HAVE_STDLIB_H
1394 #ifdef HAVE_UNISTD_H
1398 char *(*pfn) = (char *(*)) malloc
1401 if { (eval echo configure:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 gcc_cv_decl_needed_malloc=no
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 gcc_cv_decl_needed_malloc=yes
1413 echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6
1414 if test $gcc_cv_decl_needed_malloc = yes; then
1415 gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1416 cat >> confdefs.h <<EOF
1417 #define $gcc_tr_decl 1
1422 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1423 echo "configure:1424: checking whether realloc must be declared" >&5
1424 if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1432 #ifdef HAVE_STRING_H
1435 #ifdef HAVE_STRINGS_H
1436 #include <strings.h>
1439 #ifdef HAVE_STDLIB_H
1442 #ifdef HAVE_UNISTD_H
1446 char *(*pfn) = (char *(*)) realloc
1449 if { (eval echo configure:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 gcc_cv_decl_needed_realloc=no
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1456 gcc_cv_decl_needed_realloc=yes
1461 echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6
1462 if test $gcc_cv_decl_needed_realloc = yes; then
1463 gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1464 cat >> confdefs.h <<EOF
1465 #define $gcc_tr_decl 1
1470 echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6
1471 echo "configure:1472: checking whether calloc must be declared" >&5
1472 if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1480 #ifdef HAVE_STRING_H
1483 #ifdef HAVE_STRINGS_H
1484 #include <strings.h>
1487 #ifdef HAVE_STDLIB_H
1490 #ifdef HAVE_UNISTD_H
1494 char *(*pfn) = (char *(*)) calloc
1497 if { (eval echo configure:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 gcc_cv_decl_needed_calloc=no
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 gcc_cv_decl_needed_calloc=yes
1509 echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6
1510 if test $gcc_cv_decl_needed_calloc = yes; then
1511 gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1512 cat >> confdefs.h <<EOF
1513 #define $gcc_tr_decl 1
1518 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether free must be declared" >&5
1520 if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1528 #ifdef HAVE_STRING_H
1531 #ifdef HAVE_STRINGS_H
1532 #include <strings.h>
1535 #ifdef HAVE_STDLIB_H
1538 #ifdef HAVE_UNISTD_H
1542 char *(*pfn) = (char *(*)) free
1545 if { (eval echo configure:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 gcc_cv_decl_needed_free=no
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 gcc_cv_decl_needed_free=yes
1557 echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6
1558 if test $gcc_cv_decl_needed_free = yes; then
1559 gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1560 cat >> confdefs.h <<EOF
1561 #define $gcc_tr_decl 1
1567 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1568 echo "configure:1569: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1569 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #include <sys/types.h>
1577 /* NetBSD declares sys_siglist in unistd.h. */
1578 #ifdef HAVE_UNISTD_H
1582 char *msg = *(sys_siglist + 1);
1585 if { (eval echo configure:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1587 ac_cv_decl_sys_siglist=yes
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1592 ac_cv_decl_sys_siglist=no
1597 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1598 if test $ac_cv_decl_sys_siglist = yes; then
1599 cat >> confdefs.h <<\EOF
1600 #define SYS_SIGLIST_DECLARED 1
1606 for ac_func in strerror strtoul bsearch
1608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1609 echo "configure:1610: checking for $ac_func" >&5
1610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 /* System header to define __stub macros and hopefully few prototypes,
1617 which can conflict with char $ac_func(); below. */
1619 /* Override any gcc2 internal prototype to avoid an error. */
1620 /* We use char because int might match the return type of a gcc2
1621 builtin and then its argument prototype would still apply. */
1626 /* The GNU C library defines this for functions which it implements
1627 to always fail with ENOSYS. Some functions are actually named
1628 something starting with __ and the normal name is an alias. */
1629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1639 eval "ac_cv_func_$ac_func=yes"
1641 echo "configure: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1644 eval "ac_cv_func_$ac_func=no"
1649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1652 cat >> confdefs.h <<EOF
1653 #define $ac_tr_func 1
1657 echo "$ac_t""no" 1>&6
1669 build_install_headers_dir=install-headers-tar
1673 host_truncate_target=
1675 # Decode the host machine, then the target machine.
1676 # For the host machine, we save the xm_file variable as host_xm_file;
1677 # then we decode the target machine and forget everything else
1678 # that came from the host machine.
1679 for machine in $build $host $target; do
1692 # Set this to force installation and use of collect2.
1694 # Set this to override the default target model.
1696 # Set this to control which fixincludes program to use.
1697 fixincludes=fixincludes
1698 # Set this to control how the header file directory is installed.
1699 install_headers_dir=install-headers-tar
1700 # Set this to a non-empty list of args to pass to cpp if the target
1701 # wants its .md file passed through cpp.
1703 # Set this if directory names should be truncated to 14 characters.
1705 # Set this if gdb needs a dir command with `dirname $out_file`
1706 gdb_needs_out_file_path=
1707 # Set this if the build machine requires executables to have a
1711 # Set default cpu_type, tm_file and xm_file so it can be updated in
1712 # each machine entry.
1713 cpu_type=`echo $machine | sed 's/-.*$//'`
1747 tm_file=${cpu_type}/${cpu_type}.h
1748 xm_file=${cpu_type}/xm-${cpu_type}.h
1751 # Support site-specific machine types.
1753 cpu_type=`echo $machine | sed -e 's/-.*//'`
1754 rest=`echo $machine | sed -e "s/$cpu_type-//"`
1755 xm_file=${cpu_type}/xm-$rest.h
1756 tm_file=${cpu_type}/$rest.h
1757 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
1758 then xmake_file=${cpu_type}/x-$rest; \
1761 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
1762 then tmake_file=${cpu_type}/t-$rest; \
1768 a29k-*-bsd* | a29k-*-sym1*)
1769 tm_file="${tm_file} a29k/unix.h"
1770 xm_file=a29k/xm-unix.h
1771 xmake_file=a29k/x-unix
1774 a29k-*-udi | a29k-*-coff)
1775 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
1776 tmake_file=a29k/t-a29kbare
1779 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
1780 tmake_file=a29k/t-vx29k
1781 extra_parts="crtbegin.o crtend.o"
1783 a29k-*-*) # Default a29k environment.
1786 alpha*-*-linux-gnuecoff*)
1787 tm_file="${tm_file} alpha/linux.h"
1788 xm_file="${xm_file} alpha/xm-linux.h"
1789 target_cpu_default="MASK_GAS"
1792 fixincludes=Makefile.in
1795 alpha*-*-linux-gnulibc1*)
1796 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1797 xm_file="${xm_file} alpha/xm-linux.h"
1798 target_cpu_default="MASK_GAS"
1799 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
1801 fixincludes=Makefile.in
1803 if [ x$enable_threads = xyes ]; then
1807 alpha*-*-linux-gnu*)
1808 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1809 xm_file="${xm_file} alpha/xm-linux.h"
1810 target_cpu_default="MASK_GAS"
1811 tmake_file="t-linux alpha/t-linux"
1813 fixincludes=Makefile.in
1815 if [ x$enable_threads = xyes ]; then
1819 alpha*-dec-osf[456789]*)
1820 if [ x$stabs = xyes ]
1822 tm_file="${tm_file} dbx.h"
1824 if [ x$gas != xyes ]
1826 extra_passes="mips-tfile mips-tdump"
1829 # Some versions of OSF4 (specifically X4.0-9 296.7) have
1830 # a broken tar, so we use cpio instead.
1833 install_headers_dir=install-headers-cpio
1837 alpha*-dec-osf[23]*)
1838 tm_file="${tm_file} alpha/osf2or3.h"
1839 if [ x$stabs = xyes ]
1841 tm_file="${tm_file} dbx.h"
1843 if [ x$gas != xyes ]
1845 extra_passes="mips-tfile mips-tdump"
1850 tm_file="${tm_file} alpha/osf12.h"
1851 if [ x$stabs = xyes ]
1853 tm_file="${tm_file} dbx.h"
1855 if [ x$gas != xyes ]
1857 extra_passes="mips-tfile mips-tdump"
1862 if [ x$stabs = xyes ]
1864 tm_file="${tm_file} dbx.h"
1866 if [ x$gas != xyes ]
1868 extra_passes="mips-tfile mips-tdump"
1873 tm_file="${tm_file} alpha/win-nt.h"
1874 target_cpu_default=MASK_WINDOWS_NT
1875 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
1876 tmake_file=t-libc-ok
1877 xmake_file=winnt/x-winnt
1878 extra_host_objs=oldnames.o
1879 extra_gcc_objs="spawnv.o oldnames.o"
1880 fixincludes=fixinc.winnt
1881 if [ x$gnu_ld != xyes ]
1883 extra_programs=ld.exe
1885 if [ x$enable_threads = xyes ]; then
1891 xm_file="${xm_file} alpha/xm-vms.h"
1892 tmake_file=alpha/t-vms
1893 fixincludes=Makefile.in
1896 extra_parts="crtinit.o crtfini.o"
1898 arm-*-coff* | armel-*-coff*)
1900 tmake_file=arm/t-bare
1902 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
1903 tm_file=arm/riscix1-1.h
1906 arm-*-riscix*) # Acorn RISC machine
1909 tm_file=arm/rix-gas.h
1911 tm_file=arm/riscix.h
1913 xmake_file=arm/x-riscix
1914 tmake_file=arm/t-riscix
1917 arm-semi-aout | armel-semi-aout)
1919 tmake_file=arm/t-semi
1920 fixincludes=Makefile.in # There is nothing to fix
1922 arm-semi-aof | armel-semi-aof)
1923 tm_file=arm/semiaof.h
1924 tmake_file=arm/t-semiaof
1925 fixincludes=Makefile.in # There is nothing to fix
1928 tm_file=arm/netbsd.h
1929 xm_file=arm/xm-netbsd.h
1930 tmake_file=arm/t-netbsd
1931 # On NetBSD, the headers are already okay, except for math.h.
1932 fixincludes=fixinc.math
1935 arm-*-linux-gnuaout*) # ARM Linux
1937 xm_file=arm/xm-linux.h
1939 tm_file=arm/linux-gas.h
1940 tmake_file=arm/t-linux
1941 fixincludes=Makefile.in
1947 c1-convex-*) # Convex C1
1948 target_cpu_default=1
1950 fixincludes=Makefile.in
1952 c2-convex-*) # Convex C2
1953 target_cpu_default=2
1955 fixincludes=Makefile.in
1958 target_cpu_default=4
1960 fixincludes=Makefile.in
1963 target_cpu_default=8
1965 fixincludes=Makefile.in
1968 target_cpu_default=16
1970 fixincludes=Makefile.in
1972 clipper-intergraph-clix*)
1973 tm_file="${tm_file} svr3.h clipper/clix.h"
1974 xm_file=clipper/xm-clix.h
1975 xmake_file=clipper/x-clix
1976 extra_headers=va-clipper.h
1977 extra_parts="crtbegin.o crtend.o"
1978 install_headers_dir=install-headers-cpio
1985 # This hasn't been upgraded to GCC 2.
1986 # fx80-alliant-*) # Alliant FX/80
1992 if [ x$enable_haifa != xno ]; then
1995 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
1996 xm_file=pa/xm-papro.h
2000 if [ x$enable_haifa != xno ]; then
2003 target_cpu_default=1
2004 tm_file="${tm_file} pa/pa-osf.h"
2006 fixincludes=Makefile.in
2009 if [ x$enable_haifa != xno ]; then
2012 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2013 xm_file=pa/xm-papro.h
2017 if [ x$enable_haifa != xno ]; then
2020 tm_file="${tm_file} pa/pa-osf.h"
2022 fixincludes=Makefile.in
2025 if [ x$enable_haifa != xno ]; then
2028 target_cpu_default=1
2030 fixincludes=Makefile.in
2033 if [ x$enable_haifa != xno ]; then
2037 fixincludes=Makefile.in
2040 if [ x$enable_haifa != xno ]; then
2043 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2044 xm_file=pa/xm-pahpux.h
2045 xmake_file=pa/x-pa-hpux
2048 tm_file="${tm_file} pa/gas.h"
2050 install_headers_dir=install-headers-cpio
2053 hppa1.0-*-hpux8.0[0-2]*)
2054 if [ x$enable_haifa != xno ]; then
2057 tm_file="${tm_file} pa/pa-hpux.h"
2058 xm_file=pa/xm-pahpux.h
2059 xmake_file=pa/x-pa-hpux
2062 tm_file="${tm_file} pa/pa-gas.h"
2064 tm_file="pa/pa-oldas.h ${tm_file}"
2066 install_headers_dir=install-headers-cpio
2069 hppa1.1-*-hpux8.0[0-2]*)
2070 if [ x$enable_haifa != xno ]; then
2073 target_cpu_default=1
2074 tm_file="${tm_file} pa/pa-hpux.h"
2075 xm_file=pa/xm-pahpux.h
2076 xmake_file=pa/x-pa-hpux
2079 tm_file="${tm_file} pa/pa-gas.h"
2081 tm_file="pa/pa-oldas.h ${tm_file}"
2083 install_headers_dir=install-headers-cpio
2087 if [ x$enable_haifa != xno ]; then
2090 target_cpu_default=1
2091 tm_file="${tm_file} pa/pa-hpux.h"
2092 xm_file=pa/xm-pahpux.h
2093 xmake_file=pa/x-pa-hpux
2096 tm_file="${tm_file} pa/pa-gas.h"
2098 install_headers_dir=install-headers-cpio
2102 if [ x$enable_haifa != xno ]; then
2105 tm_file="${tm_file} pa/pa-hpux.h"
2106 xm_file=pa/xm-pahpux.h
2107 xmake_file=pa/x-pa-hpux
2110 tm_file="${tm_file} pa/pa-gas.h"
2112 install_headers_dir=install-headers-cpio
2116 if [ x$enable_haifa != xno ]; then
2119 target_cpu_default=1
2120 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2121 xm_file=pa/xm-pahpux.h
2122 xmake_file=pa/x-pa-hpux
2125 tm_file="${tm_file} pa/pa-gas.h"
2127 install_headers_dir=install-headers-cpio
2131 if [ x$enable_haifa != xno ]; then
2134 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2135 xm_file=pa/xm-pahpux.h
2136 xmake_file=pa/x-pa-hpux
2139 tm_file="${tm_file} pa/pa-gas.h"
2141 install_headers_dir=install-headers-cpio
2145 if [ x$enable_haifa != xno ]; then
2148 target_cpu_default=1
2149 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2150 xm_file=pa/xm-pahpux.h
2151 xmake_file=pa/x-pa-hpux
2154 tm_file="${tm_file} pa/pa-gas.h"
2156 install_headers_dir=install-headers-cpio
2160 if [ x$enable_haifa != xno ]; then
2163 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2164 xm_file=pa/xm-pahpux.h
2165 xmake_file=pa/x-pa-hpux
2168 tm_file="${tm_file} pa/pa-gas.h"
2170 install_headers_dir=install-headers-cpio
2174 if [ x$enable_haifa != xno ]; then
2177 target_cpu_default=1
2178 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2179 xm_file=pa/xm-pahpux.h
2180 xmake_file=pa/x-pa-hpux
2183 tm_file="${tm_file} pa/pa-gas.h"
2185 install_headers_dir=install-headers-cpio
2189 if [ x$enable_haifa != xno ]; then
2192 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2193 xm_file=pa/xm-pahpux.h
2194 xmake_file=pa/x-pa-hpux
2197 tm_file="${tm_file} pa/pa-gas.h"
2199 install_headers_dir=install-headers-cpio
2203 if [ x$enable_haifa != xno ]; then
2206 target_cpu_default=1
2208 fixincludes=Makefile.in
2212 i[3456]86-ibm-aix*) # IBM PS/2 running AIX
2215 tm_file=i386/aix386.h
2216 extra_parts="crtbegin.o crtend.o"
2217 tmake_file=i386/t-crtstuff
2219 tm_file=i386/aix386ng.h
2222 xm_file=i386/xm-aix.h
2223 xmake_file=i386/x-aix
2225 i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
2226 xm_file=i386/xm-sysv4.h
2227 xmake_file=i386/x-ncr3000
2228 if [ x$stabs = xyes -a x$gas = xyes ]
2230 tm_file=i386/sysv4gdb.h
2232 tm_file=i386/sysv4.h
2234 extra_parts="crtbegin.o crtend.o"
2235 tmake_file=i386/t-crtpic
2239 xm_file=i386/xm-next.h
2240 tmake_file=i386/t-next
2241 xmake_file=i386/x-next
2242 extra_objs=nextstep.o
2243 if [ x$enable_threads = xyes ]; then
2247 i[3456]86-sequent-bsd*) # 80386 from Sequent
2251 tm_file=i386/seq-gas.h
2253 tm_file=i386/sequent.h
2256 i[3456]86-sequent-ptx1*)
2257 xm_file=i386/xm-sysv3.h
2258 xmake_file=i386/x-sysv3
2259 tm_file=i386/seq-sysv3.h
2260 tmake_file=i386/t-crtstuff
2261 fixincludes=fixinc.ptx
2262 extra_parts="crtbegin.o crtend.o"
2263 install_headers_dir=install-headers-cpio
2265 i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*)
2266 xm_file=i386/xm-sysv3.h
2267 xmake_file=i386/x-sysv3
2268 tm_file=i386/seq2-sysv3.h
2269 tmake_file=i386/t-crtstuff
2270 extra_parts="crtbegin.o crtend.o"
2271 fixincludes=fixinc.ptx
2272 install_headers_dir=install-headers-cpio
2274 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*)
2275 xm_file=i386/xm-sysv4.h
2277 tm_file=i386/ptx4-i.h
2279 extra_parts="crtbegin.o crtend.o"
2280 fixincludes=fixinc.ptx
2281 install_headers_dir=install-headers-cpio
2283 i386-sun-sunos*) # Sun i386 roadrunner
2284 xm_file=i386/xm-sun.h
2289 tm_file=i386/i386-aout.h
2290 tmake_file=i386/t-i386bare
2292 i[3456]86-*-bsdi* | i[345]86-*-bsd386*)
2293 tm_file=i386/bsd386.h
2294 xm_file=i386/xm-bsd386.h
2295 # tmake_file=t-libc-ok
2298 tm_file=i386/386bsd.h
2299 xm_file=i386/xm-bsd386.h
2300 # tmake_file=t-libc-ok
2301 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2304 i[3456]86-*-freebsdelf*)
2305 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2306 xm_file=i386/xm-freebsd.h
2307 # On FreeBSD, the headers are already ok, except for math.h.
2308 fixincludes=fixinc.math
2309 tmake_file=i386/t-freebsd
2314 i[3456]86-*-freebsd*)
2315 tm_file=i386/freebsd.h
2316 xm_file=i386/xm-freebsd.h
2317 # On FreeBSD, the headers are already ok, except for math.h.
2318 fixincludes=fixinc.math
2319 tmake_file=i386/t-freebsd
2321 i[3456]86-*-netbsd*)
2322 tm_file=i386/netbsd.h
2323 xm_file=i386/xm-netbsd.h
2324 # On NetBSD, the headers are already okay, except for math.h.
2325 fixincludes=fixinc.math
2329 tm_file=i386/i386-coff.h
2330 tmake_file=i386/t-i386bare
2332 i[3456]86-*-isc*) # 80386 running ISC system
2333 xm_file=i386/xm-isc.h
2335 i[345]86-*-isc[34]*)
2336 xmake_file=i386/x-isc3
2339 xmake_file=i386/x-isc
2342 if [ x$gas = xyes -a x$stabs = xyes ]
2344 tm_file=i386/iscdbx.h
2345 tmake_file=i386/t-svr3dbx
2346 extra_parts="svr3.ifile svr3z.ifile"
2348 tm_file=i386/isccoff.h
2349 tmake_file=i386/t-crtstuff
2350 extra_parts="crtbegin.o crtend.o"
2352 install_headers_dir=install-headers-cpio
2354 i[3456]86-*-linux-gnuoldld*) # Intel 80386's running Linux
2355 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
2356 xmake_file=x-linux-aout
2357 tmake_file="t-linux-aout i386/t-crtstuff"
2358 tm_file=i386/linux-oldld.h
2359 fixincludes=Makefile.in #On Linux, the headers are ok already.
2362 i[3456]86-*-linux-gnuaout*) # Intel 80386's running Linux
2363 xm_file=i386/xm-linux.h # with a.out format
2364 xmake_file=x-linux-aout
2365 tmake_file="t-linux-aout i386/t-crtstuff"
2366 tm_file=i386/linux-aout.h
2367 fixincludes=Makefile.in #On Linux, the headers are ok already.
2370 i[3456]86-*-linux-gnulibc1)
2371 xm_file=i386/xm-linux.h # Intel 80386's running Linux
2372 xmake_file=x-linux # with ELF format using the
2373 tm_file=i386/linux.h # Linux C library 5
2374 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2375 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2376 fixincludes=Makefile.in #On Linux, the headers are ok already.
2378 if [ x$enable_threads = xyes ]; then
2379 thread_file='single'
2382 i[3456]86-*-linux-gnu*) # Intel 80386's running Linux
2383 xm_file=i386/xm-linux.h # with ELF format using glibc 2
2384 xmake_file=x-linux # aka Linux C library 6
2385 tm_file=i386/linux.h
2386 tmake_file="t-linux i386/t-crtstuff"
2387 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2388 fixincludes=Makefile.in #On Linux, the headers are ok already.
2390 if [ x$enable_threads = xyes ]; then
2396 i[3456]86-go32-msdos | i[3456]86-*-go32*)
2397 xm_file=i386/xm-go32.h
2399 tmake_file=i386/t-go32
2401 i[3456]86-moss-msdos* | i[3456]86-*-moss*)
2403 tmake_file=t-libc-ok
2404 fixincludes=Makefile.in
2408 i[3456]86-*-lynxos*)
2413 tm_file=i386/lynx-ng.h
2415 xm_file=i386/xm-lynx.h
2416 tmake_file=i386/t-i386bare
2421 # tmake_file=t-libc-ok
2424 i[3456]86-*-osfrose*) # 386 using OSF/rose
2427 tm_file=i386/osfelf.h
2430 tm_file=i386/osfrose.h
2433 xm_file=i386/xm-osf.h
2434 xmake_file=i386/x-osfrose
2435 tmake_file=i386/t-osf
2436 extra_objs=halfpic.o
2438 i[345]86-go32-rtems*)
2440 xm_file=i386/xm-go32.h
2441 tm_file=i386/go32-rtems.h
2442 tmake_file="i386/t-go32 t-rtems"
2446 tm_file=i386/rtems.h
2447 tmake_file="i386/t-i386bare t-rtems"
2449 i[3456]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2450 xm_file=i386/xm-sco5.h
2451 xmake_file=i386/x-sco5
2452 fixincludes=fixinc.sco
2454 tmake_file=i386/t-sco5
2455 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2457 i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
2458 xm_file=i386/xm-sco.h
2459 xmake_file=i386/x-sco4
2460 fixincludes=fixinc.sco
2461 install_headers_dir=install-headers-cpio
2462 if [ x$stabs = xyes ]
2464 tm_file=i386/sco4dbx.h
2465 tmake_file=i386/t-svr3dbx
2466 extra_parts="svr3.ifile svr3z.rfile"
2469 tmake_file=i386/t-crtstuff
2470 extra_parts="crtbegin.o crtend.o"
2474 i[3456]86-*-sco*) # 80386 running SCO system
2475 xm_file=i386/xm-sco.h
2476 xmake_file=i386/x-sco
2477 install_headers_dir=install-headers-cpio
2478 if [ x$stabs = xyes ]
2480 tm_file=i386/scodbx.h
2481 tmake_file=i386/t-svr3dbx
2482 extra_parts="svr3.ifile svr3z.rfile"
2485 extra_parts="crtbegin.o crtend.o"
2486 tmake_file=i386/t-crtstuff
2490 i[3456]86-*-solaris2*)
2491 xm_file=i386/xm-sysv4.h
2492 if [ x$stabs = xyes ]
2494 tm_file=i386/sol2dbg.h
2498 tmake_file=i386/t-sol2
2499 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
2501 fixincludes=fixinc.svr4
2502 if [ x$enable_threads = xyes ]; then
2503 thread_file='solaris'
2506 i[3456]86-*-sysv4*) # Intel 80386's running system V.4
2507 xm_file=i386/xm-sysv4.h
2508 tm_file=i386/sysv4.h
2509 if [ x$stabs = xyes ]
2511 tm_file="${tm_file} dbx.h"
2513 tmake_file=i386/t-crtpic
2515 extra_parts="crtbegin.o crtend.o"
2517 i[3456]86-*-sysv*) # Intel 80386's running system V
2518 xm_file=i386/xm-sysv3.h
2519 xmake_file=i386/x-sysv3
2522 if [ x$stabs = xyes ]
2524 tm_file=i386/svr3dbx.h
2525 tmake_file=i386/t-svr3dbx
2526 extra_parts="svr3.ifile svr3z.rfile"
2528 tm_file=i386/svr3gas.h
2529 extra_parts="crtbegin.o crtend.o"
2530 tmake_file=i386/t-crtstuff
2533 tm_file=i386/sysv3.h
2534 extra_parts="crtbegin.o crtend.o"
2535 tmake_file=i386/t-crtstuff
2538 i386-*-vsta) # Intel 80386's running VSTa kernel
2539 xm_file=i386/xm-vsta.h
2541 tmake_file=i386/t-vsta
2542 xmake_file=i386/x-vsta
2544 i[3456]86-*-pe | i[3456]86-*-cygwin32)
2545 xm_file="${xm_file} i386/xm-cygwin32.h"
2546 tmake_file=i386/t-cygwin32
2547 tm_file=i386/cygwin32.h
2548 xmake_file=i386/x-cygwin32
2550 fixincludes=Makefile.in
2551 if [ x$enable_threads = xyes ]; then
2556 i[3456]86-*-mingw32)
2557 tm_file=i386/mingw32.h
2558 xm_file="${xm_file} i386/xm-mingw32.h"
2559 tmake_file=i386/t-cygwin32
2561 xmake_file=i386/x-cygwin32
2562 fixincludes=Makefile.in
2563 if [ x$enable_threads = xyes ]; then
2568 i[3456]86-*-winnt3*)
2569 tm_file=i386/win-nt.h
2570 out_file=i386/i386.c
2571 xm_file=i386/xm-winnt.h
2572 xmake_file=winnt/x-winnt
2573 tmake_file=i386/t-winnt
2574 extra_host_objs="winnt.o oldnames.o"
2575 extra_gcc_objs="spawnv.o oldnames.o"
2576 fixincludes=fixinc.winnt
2577 if [ x$gnu_ld != xyes ]
2579 extra_programs=ld.exe
2581 if [ x$enable_threads = xyes ]; then
2586 xm_file=i386/xm-dgux.h
2587 out_file=i386/dgux.c
2589 tmake_file=i386/t-dgux
2590 xmake_file=i386/x-dgux
2591 fixincludes=fixinc.dgux
2592 install_headers_dir=install-headers-cpio
2594 i860-alliant-*) # Alliant FX/2800
2595 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2596 xm_file="${xm_file} i860/xm-fx2800.h"
2597 xmake_file=i860/x-fx2800
2598 tmake_file=i860/t-fx2800
2599 extra_parts="crtbegin.o crtend.o"
2602 tm_file="${tm_file} i860/bsd.h"
2605 tm_file="${tm_file} i860/bsd-gas.h"
2610 tm_file="${tm_file} i860/mach.h"
2611 tmake_file=t-libc-ok
2613 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2614 tm_file="${tm_file} svr3.h i860/paragon.h"
2615 xm_file="${xm_file} xm-svr3.h"
2619 tm_file="${tm_file} svr3.h i860/sysv3.h"
2620 xm_file="${tm_file} xm-svr3.h"
2621 xmake_file=i860/x-sysv3
2622 extra_parts="crtbegin.o crtend.o"
2625 tm_file="${tm_file} svr4.h i860/sysv4.h"
2626 xm_file="${xm_file} xm-svr3.h"
2627 xmake_file=i860/x-sysv4
2629 extra_parts="crtbegin.o crtend.o"
2631 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2632 tm_file="${tm_file} i960/vx960.h"
2633 tmake_file=i960/t-vxworks960
2637 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2638 tmake_file=i960/t-vxworks960
2642 tm_file="${tm_file} i960/vx960.h"
2643 tmake_file=i960/t-vxworks960
2647 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2648 tmake_file=i960/t-960bare
2652 tmake_file="i960/t-960bare t-rtems"
2653 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2656 i960-*-*) # Default i960 environment.
2660 extra_parts="crtinit.o crtfini.o"
2662 m68000-convergent-sysv*)
2664 xm_file=m68k/xm-3b1.h
2666 extra_headers=math-68881.h
2668 m68000-hp-bsd*) # HP 9000/200 running BSD
2669 tm_file=m68k/hp2bsd.h
2670 xmake_file=m68k/x-hp2bsd
2672 extra_headers=math-68881.h
2674 m68000-hp-hpux*) # HP 9000 series 300
2675 xm_file=m68k/xm-hp320.h
2678 xmake_file=m68k/x-hp320g
2679 tm_file=m68k/hp310g.h
2681 xmake_file=m68k/x-hp320
2682 tm_file=m68k/hp310.h
2684 install_headers_dir=install-headers-cpio
2686 extra_headers=math-68881.h
2691 extra_headers=math-68881.h
2694 tm_file=m68k/sun2o4.h
2696 extra_headers=math-68881.h
2699 xm_file=m68k/xm-3b1.h
2707 extra_headers=math-68881.h
2709 m68k-apple-aux*) # Apple Macintosh running A/UX
2710 xm_file=m68k/xm-aux.h
2711 tmake_file=m68k/t-aux
2712 install_headers_dir=install-headers-cpio
2713 extra_headers=math-68881.h
2714 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2716 if [ "$gnu_ld" = yes ]
2718 tm_file="${tm_file} m68k/auxgld.h"
2720 tm_file="${tm_file} m68k/auxld.h"
2724 tm_file="${tm_file} m68k/auxgas.h"
2726 tm_file="${tm_file} m68k/auxas.h"
2728 tm_file="${tm_file} m68k/a-ux.h"
2731 tm_file=m68k/apollo68.h
2732 xmake_file=m68k/x-apollo68
2734 extra_headers=math-68881.h
2736 m68k-altos-sysv*) # Altos 3068
2739 tm_file=m68k/altos3068.h
2740 xm_file=m68k/xm-altos3068.h
2742 echo "The Altos is supported only with the GNU assembler" 1>&2
2745 extra_headers=math-68881.h
2747 m68k-bull-sysv*) # Bull DPX/2
2750 if [ x$stabs = xyes ]
2752 tm_file=m68k/dpx2cdbx.h
2754 tm_file=m68k/dpx2g.h
2759 xm_file=m68k/xm-m68kv.h
2760 xmake_file=m68k/x-dpx2
2762 extra_headers=math-68881.h
2764 m68k-atari-sysv4*) # Atari variant of V.4.
2765 tm_file=m68k/atari.h
2766 xm_file=m68k/xm-atari.h
2768 extra_parts="crtbegin.o crtend.o"
2769 extra_headers=math-68881.h
2771 m68k-motorola-sysv*)
2772 tm_file=m68k/mot3300.h
2773 xm_file=m68k/xm-mot3300.h
2776 xmake_file=m68k/x-mot3300-gas
2777 if [ x$gnu_ld = xyes ]
2779 tmake_file=m68k/t-mot3300-gald
2781 tmake_file=m68k/t-mot3300-gas
2785 xmake_file=m68k/x-mot3300
2786 if [ x$gnu_ld = xyes ]
2788 tmake_file=m68k/t-mot3300-gld
2790 tmake_file=m68k/t-mot3300
2794 gdb_needs_out_file_path=yes
2795 extra_parts="crt0.o mcrt0.o"
2796 extra_headers=math-68881.h
2798 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2799 tm_file=m68k/tower-as.h
2800 xm_file=m68k/xm-tower.h
2801 xmake_file=m68k/x-tower
2802 extra_parts="crtbegin.o crtend.o"
2803 extra_headers=math-68881.h
2806 tm_file=m68k/plexus.h
2807 xm_file=m68k/xm-plexus.h
2809 extra_headers=math-68881.h
2813 xm_file=m68k/xm-m68kv.h
2814 extra_headers=math-68881.h
2817 xm_file=m68k/xm-crds.h
2818 xmake_file=m68k/x-crds
2821 extra_headers=math-68881.h
2823 m68k-cbm-sysv4*) # Commodore variant of V.4.
2825 xm_file=m68k/xm-amix.h
2826 xmake_file=m68k/x-amix
2828 extra_parts="crtbegin.o crtend.o"
2829 extra_headers=math-68881.h
2832 tm_file=m68k/ccur-GAS.h
2833 xmake_file=m68k/x-ccur
2834 extra_headers=math-68881.h
2837 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2838 tm_file=m68k/hp3bsd44.h
2839 xmake_file=m68k/x-hp3bsd44
2841 extra_headers=math-68881.h
2843 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2844 tm_file=m68k/hp3bsd.h
2846 extra_headers=math-68881.h
2849 if [ x$with_fp = xno ]
2851 tm_file=m68k/isi-nfp.h
2856 extra_headers=math-68881.h
2858 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2859 xm_file=m68k/xm-hp320.h
2862 xmake_file=m68k/x-hp320g
2863 tm_file=m68k/hp320g.h
2865 xmake_file=m68k/x-hp320
2866 tm_file=m68k/hpux7.h
2868 install_headers_dir=install-headers-cpio
2870 extra_headers=math-68881.h
2872 m68k-hp-hpux*) # HP 9000 series 300
2873 xm_file=m68k/xm-hp320.h
2876 xmake_file=m68k/x-hp320g
2877 tm_file=m68k/hp320g.h
2879 xmake_file=m68k/x-hp320
2880 tm_file=m68k/hp320.h
2882 install_headers_dir=install-headers-cpio
2884 extra_headers=math-68881.h
2887 tm_file=m68k/sun3mach.h
2889 extra_headers=math-68881.h
2894 tm_file=m68k/news3gas.h
2896 tm_file=m68k/news3.h
2899 extra_headers=math-68881.h
2901 m68k-sony-bsd* | m68k-sony-newsos*)
2904 tm_file=m68k/newsgas.h
2909 extra_headers=math-68881.h
2911 m68k-next-nextstep2*)
2912 tm_file=m68k/next21.h
2913 xm_file=m68k/xm-next.h
2914 tmake_file=m68k/t-next
2915 xmake_file=m68k/x-next
2916 extra_objs=nextstep.o
2917 extra_headers=math-68881.h
2920 m68k-next-nextstep3*)
2922 xm_file=m68k/xm-next.h
2923 tmake_file=m68k/t-next
2924 xmake_file=m68k/x-next
2925 extra_objs=nextstep.o
2926 extra_headers=math-68881.h
2927 if [ x$enable_threads = xyes ]; then
2932 if [ x$with_fp = xno ]
2934 tm_file=m68k/sun3n3.h
2936 tm_file=m68k/sun3o3.h
2939 extra_headers=math-68881.h
2941 m68k-sun-sunos*) # For SunOS 4 (the default).
2942 if [ x$with_fp = xno ]
2944 tm_file=m68k/sun3n.h
2948 xm_file=m68k/xm-sun3.h
2950 extra_headers=math-68881.h
2953 tm_file=m68k/vxm68k.h
2954 tmake_file=m68k/t-vxworks68
2955 extra_headers=math-68881.h
2958 tmake_file=m68k/t-m68kbare
2959 tm_file="m68k/m68k-aout.h libgloss.h"
2960 extra_headers=math-68881.h
2963 tmake_file=m68k/t-m68kbare
2964 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2965 extra_headers=math-68881.h
2972 tm_file=m68k/lynx-ng.h
2974 xm_file=m68k/xm-lynx.h
2976 tmake_file=m68k/t-lynx
2977 extra_headers=math-68881.h
2980 tm_file=m68k/netbsd.h
2981 xm_file=m68k/xm-netbsd.h
2982 # On NetBSD, the headers are already okay, except for math.h.
2983 fixincludes=fixinc.math
2986 m68k-*-sysv3*) # Motorola m68k's running system V.3
2987 xm_file=m68k/xm-m68kv.h
2988 xmake_file=m68k/x-m68kv
2989 extra_parts="crtbegin.o crtend.o"
2990 extra_headers=math-68881.h
2992 m68k-*-sysv4*) # Motorola m68k's running system V.4
2993 tm_file=m68k/m68kv4.h
2994 xm_file=m68k/xm-m68kv.h
2996 extra_parts="crtbegin.o crtend.o"
2997 extra_headers=math-68881.h
2999 m68k-*-linux-gnuaout*) # Motorola m68k's running Linux
3000 xm_file=m68k/xm-linux.h # with a.out format
3002 tm_file=m68k/linux-aout.h
3003 tmake_file="t-linux-aout m68k/t-linux-aout"
3004 fixincludes=Makefile.in #On Linux, the headers are ok already.
3005 extra_headers=math-68881.h
3008 m68k-*-linux-gnulibc1) # Motorola m68k's running Linux
3009 xm_file=m68k/xm-linux.h # with ELF format using the
3010 xmake_file=x-linux # Linux C library 5
3011 tm_file=m68k/linux.h
3012 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3013 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3014 fixincludes=Makefile.in #On Linux, the headers are ok already.
3015 extra_headers=math-68881.h
3018 m68k-*-linux-gnu*) # Motorola m68k's running Linux
3019 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
3020 xmake_file=x-linux # aka the Linux C library 6.
3021 tm_file=m68k/linux.h
3022 tmake_file="t-linux m68k/t-linux"
3023 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3024 fixincludes=Makefile.in #On Linux, the headers are ok already.
3025 extra_headers=math-68881.h
3027 if [ x$enable_threads = xyes ]; then
3032 tmake_file=m68k/t-m68kbare
3033 tm_file=m68k/m68k-psos.h
3034 extra_headers=math-68881.h
3037 tmake_file="m68k/t-m68kbare t-rtems"
3038 tm_file=m68k/rtems.h
3039 extra_headers=math-68881.h
3045 tm_file=m88k/dguxbcs.h
3046 tmake_file=m88k/t-dguxbcs
3050 tmake_file=m88k/t-dgux
3053 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3054 xmake_file=m88k/x-dgux
3057 tmake_file=m88k/t-dgux-gas
3059 fixincludes=fixinc.dgux
3061 m88k-dolphin-sysv3*)
3062 tm_file=m88k/dolph.h
3063 extra_parts="crtbegin.o crtend.o"
3064 xm_file=m88k/xm-sysv3.h
3065 xmake_file=m88k/x-dolph
3068 tmake_file=m88k/t-m88k-gas
3071 m88k-tektronix-sysv3)
3072 tm_file=m88k/tekXD88.h
3073 extra_parts="crtbegin.o crtend.o"
3074 xm_file=m88k/xm-sysv3.h
3075 xmake_file=m88k/x-tekXD88
3078 tmake_file=m88k/t-m88k-gas
3082 tm_file=m88k/m88k-aout.h
3085 tm_file=m88k/m88k-coff.h
3086 tmake_file=m88k/t-bug
3090 extra_parts="crtbegin.o crtend.o"
3093 tmake_file=m88k/t-luna-gas
3095 tmake_file=m88k/t-luna
3099 tm_file=m88k/sysv3.h
3100 extra_parts="crtbegin.o crtend.o"
3101 xm_file=m88k/xm-sysv3.h
3102 xmake_file=m88k/x-sysv3
3105 tmake_file=m88k/t-m88k-gas
3109 tm_file=m88k/sysv4.h
3110 extra_parts="crtbegin.o crtend.o"
3111 xmake_file=m88k/x-sysv4
3112 tmake_file=m88k/t-sysv4
3114 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3115 tm_file=mips/iris6.h
3116 xm_file=mips/xm-iris6.h
3117 fixincludes=fixinc.irix
3118 xmake_file=mips/x-iris6
3119 tmake_file=mips/t-iris6
3120 if [ x$enable_threads = xyes ]; then
3124 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
3125 tm_file=mips/cross64.h
3126 xm_file=mips/xm-iris5.h
3127 fixincludes=Makefile.in
3128 xmake_file=mips/x-iris
3129 tmake_file=mips/t-cross64
3130 # See comment in mips/iris[56].h files.
3132 if [ x$enable_threads = xyes ]; then
3139 if [ x$stabs = xyes ]
3141 tm_file=mips/iris5gdb.h
3143 tm_file=mips/sni-gas.h
3146 tm_file=mips/sni-svr4.h
3148 xm_file=mips/xm-sysv.h
3149 xmake_file=mips/x-sni-svr4
3150 tmake_file=mips/t-mips-gas
3151 if [ x$gnu_ld != xyes ]
3156 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3159 tm_file=mips/iris5gas.h
3160 if [ x$stabs = xyes ]
3162 tm_file="${tm_file} dbx.h"
3165 tm_file=mips/iris5.h
3167 xm_file=mips/xm-iris5.h
3168 fixincludes=fixinc.irix
3169 xmake_file=mips/x-iris
3170 # mips-tfile doesn't work yet
3171 tmake_file=mips/t-mips-gas
3172 # See comment in mips/iris5.h file.
3174 if [ x$enable_threads = xyes ]; then
3178 mips-sgi-irix4loser*) # Mostly like a MIPS.
3179 tm_file=mips/iris4loser.h
3180 if [ x$stabs = xyes ]; then
3181 tm_file="${tm_file} dbx.h"
3183 xm_file=mips/xm-iris4.h
3184 xmake_file=mips/x-iris
3187 tmake_file=mips/t-mips-gas
3189 extra_passes="mips-tfile mips-tdump"
3191 if [ x$gnu_ld != xyes ]
3195 if [ x$enable_threads = xyes ]; then
3199 mips-sgi-irix4*) # Mostly like a MIPS.
3200 tm_file=mips/iris4.h
3201 if [ x$stabs = xyes ]; then
3202 tm_file="${tm_file} dbx.h"
3204 xm_file=mips/xm-iris4.h
3205 xmake_file=mips/x-iris
3208 tmake_file=mips/t-mips-gas
3210 extra_passes="mips-tfile mips-tdump"
3212 if [ x$gnu_ld != xyes ]
3216 if [ x$enable_threads = xyes ]; then
3220 mips-sgi-*) # Mostly like a MIPS.
3221 tm_file=mips/iris3.h
3222 if [ x$stabs = xyes ]; then
3223 tm_file="${tm_file} dbx.h"
3225 xm_file=mips/xm-iris3.h
3226 xmake_file=mips/x-iris3
3229 tmake_file=mips/t-mips-gas
3231 extra_passes="mips-tfile mips-tdump"
3233 if [ x$gnu_ld != xyes ]
3238 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
3239 tm_file=mips/osfrose.h
3240 xmake_file=mips/x-osfrose
3241 tmake_file=mips/t-osfrose
3242 extra_objs=halfpic.o
3245 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
3246 tm_file=mips/dec-osf1.h
3247 if [ x$stabs = xyes ]; then
3248 tm_file="${tm_file} dbx.h"
3250 xmake_file=mips/x-dec-osf1
3253 tmake_file=mips/t-mips-gas
3255 tmake_file=mips/t-ultrix
3256 extra_passes="mips-tfile mips-tdump"
3258 if [ x$gnu_ld != xyes ]
3263 mips-dec-bsd*) # Decstation running 4.4 BSD
3264 tm_file=mips/dec-bsd.h
3268 tmake_file=mips/t-mips-gas
3270 tmake_file=mips/t-ultrix
3271 extra_passes="mips-tfile mips-tdump"
3273 if [ x$gnu_ld != xyes ]
3278 mips-dec-netbsd*) # Decstation running NetBSD
3279 tm_file=mips/netbsd.h
3280 xm_file=mips/xm-netbsd.h
3281 # On NetBSD, the headers are already okay, except for math.h.
3282 fixincludes=fixinc.math
3285 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
3286 tm_file=mips/news4.h
3287 if [ x$stabs = xyes ]; then
3288 tm_file="${tm_file} dbx.h"
3292 tmake_file=mips/t-mips-gas
3294 extra_passes="mips-tfile mips-tdump"
3296 if [ x$gnu_ld != xyes ]
3300 xmake_file=mips/x-sony
3302 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
3303 # That is based on svr4.
3304 # t-svr4 is not right because this system doesn't use ELF.
3305 tm_file=mips/news5.h
3306 if [ x$stabs = xyes ]; then
3307 tm_file="${tm_file} dbx.h"
3309 xm_file=mips/xm-news.h
3312 tmake_file=mips/t-mips-gas
3314 extra_passes="mips-tfile mips-tdump"
3316 if [ x$gnu_ld != xyes ]
3321 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
3322 tm_file=mips/svr4-t.h
3323 if [ x$stabs = xyes ]; then
3324 tm_file="${tm_file} dbx.h"
3326 xm_file=mips/xm-sysv4.h
3327 xmake_file=mips/x-sysv
3330 tmake_file=mips/t-mips-gas
3331 extra_parts="crtbegin.o crtend.o"
3333 tmake_file=mips/t-mips
3334 extra_passes="mips-tfile mips-tdump"
3336 if [ x$gnu_ld != xyes ]
3341 mips-*-ultrix* | mips-dec-mach3) # Decstation.
3342 tm_file=mips/ultrix.h
3343 if [ x$stabs = xyes ]; then
3344 tm_file="${tm_file} dbx.h"
3346 xmake_file=mips/x-ultrix
3349 tmake_file=mips/t-mips-gas
3351 tmake_file=mips/t-ultrix
3352 extra_passes="mips-tfile mips-tdump"
3354 if [ x$gnu_ld != xyes ]
3359 mips-*-riscos[56789]bsd*)
3360 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
3361 if [ x$stabs = xyes ]; then
3362 tm_file="${tm_file} dbx.h"
3366 tmake_file=mips/t-bsd-gas
3368 tmake_file=mips/t-bsd
3369 extra_passes="mips-tfile mips-tdump"
3371 if [ x$gnu_ld != xyes ]
3376 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
3377 tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
3378 if [ x$stabs = xyes ]; then
3379 tm_file="${tm_file} dbx.h"
3383 tmake_file=mips/t-bsd-gas
3385 tmake_file=mips/t-bsd
3386 extra_passes="mips-tfile mips-tdump"
3388 if [ x$gnu_ld != xyes ]
3393 mips-*-riscos[56789]sysv4*)
3394 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
3395 if [ x$stabs = xyes ]; then
3396 tm_file="${tm_file} dbx.h"
3398 xm_file=mips/xm-sysv4.h
3399 xmake_file=mips/x-sysv
3402 tmake_file=mips/t-svr4-gas
3404 tmake_file=mips/t-svr4
3405 extra_passes="mips-tfile mips-tdump"
3407 if [ x$gnu_ld != xyes ]
3412 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
3413 tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
3414 if [ x$stabs = xyes ]; then
3415 tm_file="${tm_file} dbx.h"
3417 xm_file=mips/xm-sysv.h
3418 xmake_file=mips/x-sysv
3421 tmake_file=mips/t-svr4-gas
3423 tmake_file=mips/t-svr4
3424 extra_passes="mips-tfile mips-tdump"
3426 if [ x$gnu_ld != xyes ]
3431 mips-*-riscos[56789]sysv*)
3432 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
3433 if [ x$stabs = xyes ]; then
3434 tm_file="${tm_file} dbx.h"
3436 xm_file=mips/xm-sysv.h
3437 xmake_file=mips/x-sysv
3440 tmake_file=mips/t-svr3-gas
3442 tmake_file=mips/t-svr3
3443 extra_passes="mips-tfile mips-tdump"
3445 if [ x$gnu_ld != xyes ]
3450 mips-*-sysv* | mips-*-riscos*sysv*)
3451 tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
3452 if [ x$stabs = xyes ]; then
3453 tm_file="${tm_file} dbx.h"
3455 xm_file=mips/xm-sysv.h
3456 xmake_file=mips/x-sysv
3459 tmake_file=mips/t-svr3-gas
3461 tmake_file=mips/t-svr3
3462 extra_passes="mips-tfile mips-tdump"
3464 if [ x$gnu_ld != xyes ]
3469 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3470 tm_file=mips/mips-5.h
3471 if [ x$stabs = xyes ]; then
3472 tm_file="${tm_file} dbx.h"
3476 tmake_file=mips/t-mips-gas
3478 extra_passes="mips-tfile mips-tdump"
3480 if [ x$gnu_ld != xyes ]
3488 tm_file=mips/ecoffl.h
3489 if [ x$stabs = xyes ]; then
3490 tm_file="${tm_file} dbx.h"
3492 tmake_file=mips/t-ecoff
3495 tm_file=mips/ecoff.h
3496 if [ x$stabs = xyes ]; then
3497 tm_file="${tm_file} dbx.h"
3499 tmake_file=mips/t-ecoff
3502 tm_file="mips/elfl.h libgloss.h"
3503 tmake_file=mips/t-ecoff
3506 tm_file="mips/elf.h libgloss.h"
3507 tmake_file=mips/t-ecoff
3510 tm_file="mips/elfl64.h libgloss.h"
3511 tmake_file=mips/t-ecoff
3513 mips64orionel-*-elf*)
3514 tm_file="mips/elflorion.h libgloss.h"
3515 tmake_file=mips/t-ecoff
3518 tm_file="mips/elf64.h libgloss.h"
3519 tmake_file=mips/t-ecoff
3522 tm_file="mips/elforion.h libgloss.h"
3523 tmake_file=mips/t-ecoff
3525 mips64orion-*-rtems*)
3526 tm_file=mips/rtems64.h
3527 tmake_file="mips/t-ecoff t-rtems"
3529 mips-*-*) # Default MIPS RISC-OS 4.0.
3530 if [ x$stabs = xyes ]; then
3531 tm_file="${tm_file} dbx.h"
3535 tmake_file=mips/t-mips-gas
3537 extra_passes="mips-tfile mips-tdump"
3539 if [ x$gnu_ld != xyes ]
3546 tm_file="mn10200/mn10200.h"
3547 if [ x$stabs = xyes ]
3549 tm_file="${tm_file} dbx.h"
3555 tm_file="mn10300/mn10300.h"
3556 if [ x$stabs = xyes ]
3558 tm_file="${tm_file} dbx.h"
3563 tm_file=ns32k/encore.h
3567 tm_file=ns32k/sequent.h
3571 tm_file=ns32k/tek6100.h
3575 tm_file=ns32k/tek6200.h
3578 # This has not been updated to GCC 2.
3580 # xm_file=ns32k/xm-genix.h
3581 # xmake_file=ns32k/x-genix
3582 # tm_file=ns32k/genix.h
3586 tm_file=ns32k/merlin.h
3590 tm_file=ns32k/pc532-mach.h
3594 tm_file=ns32k/pc532-min.h
3595 xm_file=ns32k/xm-pc532-min.h
3598 ns32k-pc532-netbsd*)
3599 tm_file=ns32k/netbsd.h
3600 xm_file=ns32k/xm-netbsd.h
3601 # On NetBSD, the headers are already okay, except for math.h.
3602 fixincludes=fixinc.math
3606 tm_file="${tm_file} pdp11/2bsd.h"
3612 xmake_file=pyr/x-pyr
3619 xmake_file=romp/x-mach
3622 powerpc-*-sysv* | powerpc-*-elf*)
3623 tm_file=rs6000/sysv4.h
3624 xm_file=rs6000/xm-sysv4.h
3625 extra_headers=ppc-asm.h
3628 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3630 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3632 xmake_file=rs6000/x-sysv4
3635 tm_file=rs6000/eabiaix.h
3636 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3637 fixincludes=Makefile.in
3638 extra_headers=ppc-asm.h
3641 tm_file=rs6000/eabisim.h
3642 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3643 fixincludes=Makefile.in
3644 extra_headers=ppc-asm.h
3647 tm_file=rs6000/eabi.h
3650 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3652 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3654 fixincludes=Makefile.in
3655 extra_headers=ppc-asm.h
3658 tm_file=rs6000/rtems.h
3661 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3663 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
3665 fixincludes=Makefile.in
3666 extra_headers=ppc-asm.h
3668 powerpc-*-linux-gnu*)
3669 tm_file=rs6000/linux.h
3670 xm_file=rs6000/xm-sysv4.h
3671 out_file=rs6000/rs6000.c
3674 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3676 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3679 fixincludes=Makefile.in
3680 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3681 extra_headers=ppc-asm.h
3682 if [ x$enable_threads = xyes ]; then
3688 xm_file=rs6000/xm-sysv4.h
3689 tm_file=rs6000/vxppc.h
3690 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3691 extra_headers=ppc-asm.h
3693 powerpcle-*-sysv* | powerpcle-*-elf*)
3694 tm_file=rs6000/sysv4le.h
3695 xm_file=rs6000/xm-sysv4.h
3698 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3700 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3702 xmake_file=rs6000/x-sysv4
3703 extra_headers=ppc-asm.h
3705 powerpcle-*-eabisim*)
3706 tm_file=rs6000/eabilesim.h
3707 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3708 fixincludes=Makefile.in
3709 extra_headers=ppc-asm.h
3712 tm_file=rs6000/eabile.h
3715 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3717 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3719 fixincludes=Makefile.in
3720 extra_headers=ppc-asm.h
3722 powerpcle-*-winnt* )
3723 tm_file=rs6000/win-nt.h
3724 tmake_file=rs6000/t-winnt
3726 fixincludes=Makefile.in
3727 if [ x$enable_threads = xyes ]; then
3730 extra_headers=ppc-asm.h
3732 powerpcle-*-pe | powerpcle-*-cygwin32)
3733 tm_file=rs6000/cygwin32.h
3734 xm_file=rs6000/xm-cygwin32.h
3735 tmake_file=rs6000/t-winnt
3736 xmake_file=rs6000/x-cygwin32
3738 fixincludes=Makefile.in
3739 if [ x$enable_threads = xyes ]; then
3743 extra_headers=ppc-asm.h
3745 powerpcle-*-solaris2*)
3746 tm_file=rs6000/sol2.h
3747 xm_file=rs6000/xm-sysv4.h
3750 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3752 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3754 xmake_file=rs6000/x-sysv4
3755 fixincludes=fixinc.svr4
3756 extra_headers=ppc-asm.h
3758 rs6000-ibm-aix3.[01]*)
3759 tm_file=rs6000/aix31.h
3760 xmake_file=rs6000/x-aix31
3763 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3764 tm_file=rs6000/aix3newas.h
3765 if [ x$host != x$target ]
3767 tmake_file=rs6000/t-xnewas
3769 tmake_file=rs6000/t-newas
3773 rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
3774 tm_file=rs6000/aix41.h
3775 if [ x$host != x$target ]
3777 tmake_file=rs6000/t-xnewas
3779 tmake_file=rs6000/t-newas
3781 xmake_file=rs6000/x-aix31
3791 tm_file=rs6000/mach.h
3792 xm_file=rs6000/xm-mach.h
3793 xmake_file=rs6000/x-mach
3797 tm_file=rs6000/lynx.h
3798 xm_file=rs6000/xm-lynx.h
3799 tmake_file=rs6000/t-rs6000
3800 xmake_file=rs6000/x-lynx
3808 tmake_file="sh/t-sh t-rtems"
3817 xm_file=sparc/xm-pbd.h
3819 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3820 tm_file=sparc/vxsparc.h
3821 tmake_file=sparc/t-vxsparc
3825 tmake_file=sparc/t-sparcbare
3826 tm_file="sparc/aout.h libgloss.h"
3829 tm_file=sparc/netbsd.h
3830 xm_file=sparc/xm-netbsd.h
3831 # On NetBSD, the headers are already okay, except for math.h.
3832 fixincludes=fixinc.math
3838 sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out
3839 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
3840 tm_file=sparc/linux-aout.h
3842 fixincludes=Makefile.in #On Linux, the headers are ok already.
3845 sparc-*-linux-gnulibc1*) # Sparc's running Linux, libc5
3846 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
3848 tm_file=sparc/linux.h
3849 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
3850 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3851 fixincludes=Makefile.in #On Linux, the headers are ok already.
3854 sparc-*-linux-gnu*) # Sparc's running Linux, libc6
3855 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
3857 tm_file=sparc/linux.h
3858 tmake_file="t-linux sparc/t-linux"
3859 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3860 fixincludes=Makefile.in #On Linux, the headers are ok already.
3862 if [ x$enable_threads = xyes ]; then
3869 tm_file=sparc/lynx.h
3871 tm_file=sparc/lynx-ng.h
3873 xm_file=sparc/xm-lynx.h
3874 tmake_file=sparc/t-sunos41
3878 tmake_file="sparc/t-sparcbare t-rtems"
3879 tm_file=sparc/rtems.h
3882 tm_file=sparc/sol2.h
3883 xm_file=sparc/xm-sol2.h
3884 tmake_file=sparc/t-sol2
3885 xmake_file=sparc/x-sysv4
3886 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3887 fixincludes=fixinc.svr4
3888 if [ x$enable_threads = xyes ]; then
3889 thread_file='solaris'
3893 tm_file=sparc/sunos4.h
3894 tmake_file=sparc/t-sunos40
3898 tm_file=sparc/sunos4.h
3899 tmake_file=sparc/t-sunos41
3901 if [ x$gas = xyes ]; then
3902 tm_file="${tm_file} sparc/sun4gas.h"
3906 tm_file=sparc/sun4o3.h
3910 tm_file=sparc/sysv4.h
3911 xm_file=sparc/xm-sysv4.h
3913 xmake_file=sparc/x-sysv4
3914 extra_parts="crtbegin.o crtend.o"
3917 xm_file=sparc/xm-sol2.h
3918 tm_file=sparc/vxsim.h
3919 tmake_file=sparc/t-vxsparc
3920 xmake_file=sparc/x-sysv4
3923 tm_file="sparc/splet.h libgloss.h"
3924 tmake_file=sparc/t-splet
3927 tm_file="sparc/litecoff.h libgloss.h"
3928 tmake_file=sparc/t-sparclite
3931 tm_file="sparc/lite.h aoutos.h libgloss.h"
3932 tmake_file=sparc/t-sparclite
3935 tmake_file=sparc/t-sp64
3936 tm_file=sparc/sp64-aout.h
3939 tmake_file=sparc/t-sp64
3940 tm_file=sparc/sp64-elf.h
3941 extra_parts="crtbegin.o crtend.o"
3943 sparc64-*-linux*) # 64-bit Sparc's running Linux
3944 tmake_file=sparc/t-sp64
3945 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3946 tm_file=sparc/linux64.h
3948 fixincludes=Makefile.in # On Linux, the headers are ok already.
3951 # This hasn't been upgraded to GCC 2.
3952 # tahoe-harris-*) # Harris tahoe, using COFF.
3953 # tm_file=tahoe/harris.h
3955 # tahoe-*-bsd*) # tahoe running BSD
3957 # This hasn't been upgraded to GCC 2.
3964 tm_file="v850/v850.h"
3965 xm_file="v850/xm-v850.h"
3966 if [ x$stabs = xyes ]
3968 tm_file="${tm_file} dbx.h"
3972 vax-*-bsd*) # vaxen running BSD
3976 vax-*-sysv*) # vaxen running system V
3977 tm_file="${tm_file} vax/vaxv.h"
3978 xm_file="${tm_file} vax/xm-vaxv.h"
3982 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3983 xm_file="${xm_file} xm-netbsd.h"
3984 # On NetBSD, the headers are already okay, except for math.h.
3985 fixincludes=fixinc.math
3989 vax-*-ultrix*) # vaxen running ultrix
3990 tm_file="${tm_file} vax/ultrix.h"
3994 vax-*-vms*) # vaxen running VMS
3995 xm_file=vax/xm-vms.h
3999 vax-*-*) # vax default entry
4003 xm_file="${xm_file} xm-svr3"
4007 echo "Configuration $machine not supported" 1>&2
4014 ;; # Existing Linux/GNU systems do not use the GNU setup.
4016 # On the GNU system, the setup is just about the same on
4017 # each different CPU. The specific machines that GNU
4018 # supports are matched above and just set $cpu_type.
4019 xm_file=${cpu_type}/xm-gnu.h
4020 tm_file=${cpu_type}/gnu.h
4021 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4022 # GNU always uses ELF.
4024 # GNU tools are the only tools.
4027 # On GNU, the headers are already okay.
4028 fixincludes=Makefile.in
4029 xmake_file=x-linux # These details are the same as Linux.
4030 tmake_file=t-gnu # These are not.
4033 fixincludes=fixinc.svr4
4034 xmake_try_sysv=x-sysv
4035 install_headers_dir=install-headers-cpio
4038 install_headers_dir=install-headers-cpio
4042 # Distinguish i[3456]86
4043 # Also, do not run mips-tfile on MIPS if using gas.
4044 # Process --with-cpu= for PowerPC/rs6000
4045 target_cpu_default2=
4048 target_cpu_default2=1
4051 target_cpu_default2=2
4054 target_cpu_default2=3
4059 target_cpu_default2="MASK_CPU_EV5|MASK_BYTE_OPS"
4062 target_cpu_default2="MASK_CPU_EV5"
4068 if [ x$target_cpu_default2 = x ]
4070 target_cpu_default2="MASK_GAS"
4072 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4076 mips*-*-ecoff* | mips*-*-elf*)
4079 if [ x$gnu_ld = xyes ]
4081 target_cpu_default2=20
4083 target_cpu_default2=16
4090 target_cpu_default2=16
4093 powerpc*-*-* | rs6000-*-*)
4094 case "x$with_cpu" in
4098 xcommon | xpower | xpower2 | xpowerpc | xrios \
4099 | xrios1 | xrios2 | xrsc | xrsc1 \
4100 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4101 | x403 | x505 | x801 | x821 | x823 | x860)
4102 target_cpu_default2="\"$with_cpu\""
4106 echo "--with-cpu must be passed a value" 1>&2
4111 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4117 case ".$with_cpu" in
4119 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4121 .supersparc | .ultrasparc | .v7 | .v8)
4122 target_cpu_default2="TARGET_CPU_$with_cpu"
4125 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4132 if [ x$target_cpu_default2 != x ]
4134 if [ x$target_cpu_default != x ]
4136 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4138 target_cpu_default=$target_cpu_default2
4142 # No need for collect2 if we have the GNU linker.
4149 # Save data on machine being used to compile GCC in build_xm_file.
4150 # Save data on host machine in vars host_xm_file and host_xmake_file.
4151 if [ x$pass1done = x ]
4153 if [ x"$xm_file" = x ]
4154 then build_xm_file=$cpu_type/xm-$cpu_type.h
4155 else build_xm_file=$xm_file
4157 build_install_headers_dir=$install_headers_dir
4158 build_exeext=$exeext
4161 if [ x$pass2done = x ]
4163 if [ x"$xm_file" = x ]
4164 then host_xm_file=$cpu_type/xm-$cpu_type.h
4165 else host_xm_file=$xm_file
4167 if [ x"$xmake_file" = x ]
4168 then xmake_file=$cpu_type/x-$cpu_type
4170 host_xmake_file="$xmake_file"
4171 host_truncate_target=$truncate_target
4172 host_extra_gcc_objs=$extra_gcc_objs
4173 host_extra_objs=$extra_host_objs
4179 extra_objs="${host_extra_objs} ${extra_objs}"
4181 # Default the target-machine variables that were not explicitly set.
4182 if [ x"$tm_file" = x ]
4183 then tm_file=$cpu_type/$cpu_type.h; fi
4185 if [ x$extra_headers = x ]
4186 then extra_headers=; fi
4188 if [ x"$xm_file" = x ]
4189 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4191 md_file=$cpu_type/$cpu_type.md
4193 if [ x$out_file = x ]
4194 then out_file=$cpu_type/$cpu_type.c; fi
4196 if [ x"$tmake_file" = x ]
4197 then tmake_file=$cpu_type/t-$cpu_type
4200 if [ x$float_format = x ]
4201 then float_format=i64
4204 # Say what files are being used for the output code and MD file.
4205 echo "Using \`$srcdir/config/$out_file' to output insns."
4206 echo "Using \`$srcdir/config/$md_file' as machine description file."
4209 for f in $tm_file; do
4212 if [ $count = ax ]; then
4213 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4215 echo "Using the following target machine macro files:"
4216 for f in $tm_file; do
4217 echo " $srcdir/config/$f"
4222 for f in $host_xm_file; do
4225 if [ $count = ax ]; then
4226 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4228 echo "Using the following host machine macro files:"
4229 for f in $host_xm_file; do
4230 echo " $srcdir/config/$f"
4234 if [ "$host_xm_file" != "$build_xm_file" ]; then
4236 for f in $build_xm_file; do
4239 if [ $count = ax ]; then
4240 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4242 echo "Using the following build machine macro files:"
4243 for f in $build_xm_file; do
4244 echo " $srcdir/config/$f"
4249 if [ x$thread_file = x ]
4250 then thread_file='single'
4253 # Set up the header files.
4254 # $links is the list of header files to create.
4255 # $vars is the list of shell variables with file names to include.
4256 # config2.h is the old config.h. It is included by the new config.h which
4257 # created from config.in. The goal is to simplify the transition to autoconf.
4258 vars="host_xm_file tm_file xm_file build_xm_file"
4259 links="config2.h tm.h tconfig.h hconfig.h"
4262 if [ -f config.status ]; then mv -f config.status config.bak; fi
4265 while [ -n "$vars" ]
4267 # set file to car of files, files to cdr of files
4268 set $vars; var=$1; shift; vars=$*
4269 set $links; link=$1; shift; links=$*
4273 # Define TARGET_CPU_DEFAULT if the system wants one.
4274 # This substitutes for lots of *.h files.
4275 if [ x$target_cpu_default != x -a $link = tm.h ]
4277 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
4280 for file in `eval echo '$'$var`; do
4281 echo "#include \"$file\"" >>$link
4285 # Truncate the target if necessary
4286 if [ x$host_truncate_target != x ]; then
4287 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4290 # Get the version number from the toplevel
4291 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4293 # Get an absolute path to the GCC top-level source directory
4299 # Conditionalize the makefile for this host machine.
4300 # Make-host contains the concatenation of all host makefile fragments
4301 # [there can be more than one]. This file is built by configure.frag.
4302 host_overrides=Make-host
4303 dep_host_xmake_file=
4304 for f in .. ${host_xmake_file}
4306 if [ -f ${srcdir}/config/$f ]
4308 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4312 # Conditionalize the makefile for this target machine.
4313 # Make-target contains the concatenation of all host makefile fragments
4314 # [there can be more than one]. This file is built by configure.frag.
4315 target_overrides=Make-target
4317 for f in .. ${tmake_file}
4319 if [ -f ${srcdir}/config/$f ]
4321 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4325 # If the host doesn't support symlinks, modify CC in
4326 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4327 # Otherwise, we can use "CC=$(CC)".
4329 if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
4331 cc_set_by_configure="\$(CC)"
4332 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4334 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4335 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4339 out_object_file=`basename $out_file .c`.o
4342 for f in $tm_file; do
4343 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
4347 for f in $host_xm_file; do
4348 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
4352 for f in $build_xm_file; do
4353 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
4356 # Define macro CROSS_COMPILE in compilation
4357 # if this is a cross-compiler.
4358 # Also use all.cross instead of all.internal
4359 # and add cross-make to Makefile.
4360 cross_overrides="/dev/null"
4361 if [ x$host != x$target ]
4363 cross_defines="CROSS=-DCROSS_COMPILE"
4364 cross_overrides="${topdir}/cross-make"
4367 # When building gcc with a cross-compiler, we need to fix a few things.
4368 # This must come after cross-make as we want all.build to override
4370 build_overrides="/dev/null"
4371 if [ x$build != x$host ]
4373 build_overrides="${topdir}/build-make"
4376 # Expand extra_headers to include complete path.
4377 # This substitutes for lots of t-* files.
4379 if [ "x$extra_headers" = x ]
4382 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4383 for file in $extra_headers;
4385 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4389 # Add a definition of USE_COLLECT2 if system wants one.
4390 # Also tell toplev.c what to do.
4391 # This substitutes for lots of t-* files.
4392 if [ x$use_collect2 = x ]
4397 will_use_collect2="ld"
4398 maybe_use_collect2="-DUSE_COLLECT2"
4402 # Set MD_DEPS if the real md file is in md.pre-cpp.
4403 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4404 # for line oriented comments, so we must always use a GNU cpp. If
4405 # building gcc with a cross compiler, use the cross compiler just
4406 # built. Otherwise, we can use the cpp just built.
4408 if [ "x$md_cppflags" = x ]
4410 md_file_sub=$srcdir/config/$md_file
4415 # If we have gas in the build tree, make a link to it.
4416 if [ -f ../gas/Makefile ]; then
4417 rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
4420 # If we have ld in the build tree, make a link to it.
4421 if [ -f ../ld/Makefile ]; then
4422 # if [[ x$use_collect2 = x ]]; then
4423 # rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
4425 rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
4429 # Figure out what language subdirectories are present.
4431 for lang in ${srcdir}/*/config-lang.in ..
4435 # The odd quoting in the next line works around
4436 # an apparent bug in bash 1.12 on linux.
4437 ${srcdir}/[*]/config-lang.in) ;;
4438 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4442 # Make empty files to contain the specs and options for each language.
4443 # Then add #include lines to for a compiler that has specs and/or options.
4447 rm -f specs.h options.h
4448 touch specs.h options.h
4449 for subdir in . $subdirs
4451 if [ -f $srcdir/$subdir/lang-specs.h ]; then
4452 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4453 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4455 if [ -f $srcdir/$subdir/lang-options.h ]; then
4456 echo "#include \"$subdir/lang-options.h\"" >>options.h
4457 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4461 # These (without "all_") are set in each config-lang.in.
4462 # `language' must be a single word so is spelled singularly.
4468 all_outputs=Makefile
4469 # List of language makefile fragments.
4474 # Add the language fragments.
4475 # Languages are added via two mechanisms. Some information must be
4476 # recorded in makefile variables, these are defined in config-lang.in.
4477 # We accumulate them and plug them into the main Makefile.
4478 # The other mechanism is a set of hooks for each of the main targets
4479 # like `clean', `install', etc.
4481 language_fragments="Make-lang"
4482 language_hooks="Make-hooks"
4485 for s in .. $subdirs
4497 . ${srcdir}/$s/config-lang.in
4498 if [ "x$language" = x ]
4500 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4503 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4504 all_languages="$all_languages $language"
4505 if [ "x$boot_language" = xyes ]
4507 all_boot_languages="$all_boot_languages $language"
4509 all_compilers="$all_compilers $compilers"
4510 all_stagestuff="$all_stagestuff $stagestuff"
4511 all_diff_excludes="$all_diff_excludes $diff_excludes"
4512 all_headers="$all_headers $headers"
4513 all_outputs="$all_outputs $outputs"
4514 if [ x$outputs = x ]
4516 oldstyle_subdirs="$oldstyle_subdirs $s"
4518 all_lib2funcs="$all_lib2funcs $lib2funcs"
4522 # Since we can't use `::' targets, we link each language in
4523 # with a set of hooks, reached indirectly via lang.${target}.
4527 target_list="all.build all.cross start.encap rest.encap \
4529 install-normal install-common install-info install-man \
4531 mostlyclean clean distclean extraclean maintainer-clean \
4532 stage1 stage2 stage3 stage4"
4533 for t in $target_list
4536 for l in .. $all_languages
4538 if [ $l != ".." ]; then
4542 echo "lang.$t: $x" >> Make-hooks
4545 # If we're not building in srcdir, create .gdbinit.
4547 if [ ! -f Makefile.in ]; then
4548 echo "dir ." > .gdbinit
4549 echo "dir ${srcdir}" >> .gdbinit
4550 if [ x$gdb_needs_out_file_path = xyes ]
4552 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4554 if [ "x$subdirs" != x ]; then
4557 echo "dir ${srcdir}/$s" >> .gdbinit
4560 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4563 # If this is using newlib, then define inhibit_libc in
4564 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4565 # libgcc.a, but that's OK because newib should have its own version of
4568 if [ x$with_newlib = xyes ]; then
4569 inhibit_libc=-Dinhibit_libc
4573 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4576 if [ x$enable_haifa = xyes ]; then
4577 echo "Using the Haifa scheduler."
4579 sched_cflags=-DHAIFA
4583 if [ x$enable_haifa != x ]; then
4584 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4585 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4593 # Process the language and host/target makefile fragments.
4594 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4596 # Substitute configuration variables
4646 # Echo that links are built
4647 if [ x$host = x$target ]
4655 if [ x$host != x$build ]
4657 str3=" on a $build system"
4660 if [ "x$str2" != x ] || [ "x$str3" != x ]
4665 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4667 if [ "x$str2" != x ] || [ "x$str3" != x ]
4669 echo " ${str2}${str3}." 1>&2
4672 # Configure the subdirectories
4673 # AC_CONFIG_SUBDIRS($subdirs)
4675 # Create the Makefile
4676 # and configure language subdirectories
4678 cat > confcache <<\EOF
4679 # This file is a shell script that caches the results of configure
4680 # tests run on this system so they can be shared between configure
4681 # scripts and configure runs. It is not useful on other systems.
4682 # If it contains results you don't want to keep, you may remove or edit it.
4684 # By default, configure uses ./config.cache as the cache file,
4685 # creating it if it does not exist already. You can give configure
4686 # the --cache-file=FILE option to use a different cache file; that is
4687 # what configure does when it calls configure scripts in
4688 # subdirectories, so they share the cache.
4689 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4690 # config.status only pays attention to the cache file if you give it the
4691 # --recheck option to rerun configure.
4694 # The following way of writing the cache mishandles newlines in values,
4695 # but we know of no workaround that is simple, portable, and efficient.
4696 # So, don't put newlines in cache variables' values.
4697 # Ultrix sh set writes to stderr and can't be redirected directly,
4698 # and sets the high bit in the cache file unless we assign to the vars.
4700 case `(ac_space=' '; set) 2>&1` in
4702 # `set' does not quote correctly, so add quotes (double-quote substitution
4703 # turns \\\\ into \\, and sed turns \\ into \).
4705 -e "s/'/'\\\\''/g" \
4706 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4709 # `set' quotes correctly as required by POSIX, so do not add quotes.
4710 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4713 if cmp -s $cache_file confcache; then
4716 if test -w $cache_file; then
4717 echo "updating cache $cache_file"
4718 cat confcache > $cache_file
4720 echo "not updating unwritable cache $cache_file"
4725 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4728 # Let make expand exec_prefix.
4729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4731 # Any assignment to VPATH causes Sun make to only execute
4732 # the first set of double-colon rules, so remove it if not needed.
4733 # If there is a colon in the path, we need to keep it.
4734 if test "x$srcdir" = x.; then
4735 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4738 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4740 DEFS=-DHAVE_CONFIG_H
4742 # Without the "./", some shells look in PATH for config.status.
4743 : ${CONFIG_STATUS=./config.status}
4745 echo creating $CONFIG_STATUS
4746 rm -f $CONFIG_STATUS
4747 cat > $CONFIG_STATUS <<EOF
4749 # Generated automatically by configure.
4750 # Run this file to recreate the current configuration.
4751 # This directory was configured as follows,
4752 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4754 # $0 $ac_configure_args
4756 # Compiler output produced by configure, useful for debugging
4757 # configure, is in ./config.log if it exists.
4759 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4762 case "\$ac_option" in
4763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4764 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4765 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4766 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4767 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
4769 -help | --help | --hel | --he | --h)
4770 echo "\$ac_cs_usage"; exit 0 ;;
4771 *) echo "\$ac_cs_usage"; exit 1 ;;
4775 ac_given_srcdir=$srcdir
4777 trap 'rm -fr `echo "$all_outputs config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4779 cat >> $CONFIG_STATUS <<EOF
4781 # Protect against being on the right side of a sed subst in config.status.
4782 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4783 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4787 s%@CFLAGS@%$CFLAGS%g
4788 s%@CPPFLAGS@%$CPPFLAGS%g
4789 s%@CXXFLAGS@%$CXXFLAGS%g
4791 s%@LDFLAGS@%$LDFLAGS%g
4793 s%@exec_prefix@%$exec_prefix%g
4794 s%@prefix@%$prefix%g
4795 s%@program_transform_name@%$program_transform_name%g
4796 s%@bindir@%$bindir%g
4797 s%@sbindir@%$sbindir%g
4798 s%@libexecdir@%$libexecdir%g
4799 s%@datadir@%$datadir%g
4800 s%@sysconfdir@%$sysconfdir%g
4801 s%@sharedstatedir@%$sharedstatedir%g
4802 s%@localstatedir@%$localstatedir%g
4803 s%@libdir@%$libdir%g
4804 s%@includedir@%$includedir%g
4805 s%@oldincludedir@%$oldincludedir%g
4806 s%@infodir@%$infodir%g
4807 s%@mandir@%$mandir%g
4809 s%@host_alias@%$host_alias%g
4810 s%@host_cpu@%$host_cpu%g
4811 s%@host_vendor@%$host_vendor%g
4812 s%@host_os@%$host_os%g
4813 s%@target@%$target%g
4814 s%@target_alias@%$target_alias%g
4815 s%@target_cpu@%$target_cpu%g
4816 s%@target_vendor@%$target_vendor%g
4817 s%@target_os@%$target_os%g
4819 s%@build_alias@%$build_alias%g
4820 s%@build_cpu@%$build_cpu%g
4821 s%@build_vendor@%$build_vendor%g
4822 s%@build_os@%$build_os%g
4825 s%@LEXLIB@%$LEXLIB%g
4828 s%@RANLIB@%$RANLIB%g
4830 s%@INSTALL@%$INSTALL%g
4831 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4832 s%@INSTALL_DATA@%$INSTALL_DATA%g
4834 s%@SET_MAKE@%$SET_MAKE%g
4836 s%@manext@%$manext%g
4837 s%@objext@%$objext%g
4838 s%@inhibit_libc@%$inhibit_libc%g
4839 s%@sched_prefix@%$sched_prefix%g
4840 s%@sched_cflags@%$sched_cflags%g
4841 s%@subdirs@%$subdirs%g
4842 s%@all_languages@%$all_languages%g
4843 s%@all_boot_languages@%$all_boot_languages%g
4844 s%@all_compilers@%$all_compilers%g
4845 s%@all_lang_makefiles@%$all_lang_makefiles%g
4846 s%@all_stagestuff@%$all_stagestuff%g
4847 s%@all_diff_excludes@%$all_diff_excludes%g
4848 s%@all_lib2funcs@%$all_lib2funcs%g
4849 s%@all_headers@%$all_headers%g
4850 s%@extra_passes@%$extra_passes%g
4851 s%@extra_programs@%$extra_programs%g
4852 s%@extra_parts@%$extra_parts%g
4853 s%@extra_c_objs@%$extra_c_objs%g
4854 s%@extra_c_flags@%$extra_c_flags%g
4855 s%@extra_objs@%$extra_objs%g
4856 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
4857 s%@extra_headers_list@%$extra_headers_list%g
4858 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
4859 s%@dep_tmake_file@%$dep_tmake_file%g
4860 s%@out_file@%$out_file%g
4861 s%@out_object_file@%$out_object_file%g
4862 s%@md_file@%$md_file%g
4863 s%@tm_file_list@%$tm_file_list%g
4864 s%@build_xm_file_list@%$build_xm_file_list%g
4865 s%@host_xm_file_list@%$host_xm_file_list%g
4866 s%@lang_specs_files@%$lang_specs_files%g
4867 s%@lang_options_files@%$lang_options_files%g
4868 s%@thread_file@%$thread_file%g
4869 s%@version@%$version%g
4870 s%@local_prefix@%$local_prefix%g
4871 s%@gxx_include_dir@%$gxx_include_dir%g
4872 s%@fixincludes@%$fixincludes%g
4873 s%@build_install_headers_dir@%$build_install_headers_dir%g
4874 s%@build_exeext@%$build_exeext%g
4875 s%@float_format@%$float_format%g
4876 s%@will_use_collect2@%$will_use_collect2%g
4877 s%@maybe_use_collect2@%$maybe_use_collect2%g
4878 s%@cc_set_by_configure@%$cc_set_by_configure%g
4879 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
4880 s%@install@%$install%g
4881 /@target_overrides@/r $target_overrides
4882 s%@target_overrides@%%g
4883 /@host_overrides@/r $host_overrides
4884 s%@host_overrides@%%g
4885 s%@cross_defines@%$cross_defines%g
4886 /@cross_overrides@/r $cross_overrides
4887 s%@cross_overrides@%%g
4888 /@build_overrides@/r $build_overrides
4889 s%@build_overrides@%%g
4890 /@language_fragments@/r $language_fragments
4891 s%@language_fragments@%%g
4892 /@language_hooks@/r $language_hooks
4893 s%@language_hooks@%%g
4898 cat >> $CONFIG_STATUS <<\EOF
4900 # Split the substitutions into bite-sized pieces for seds with
4901 # small command number limits, like on Digital OSF/1 and HP-UX.
4902 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4903 ac_file=1 # Number of current file.
4904 ac_beg=1 # First line for current file.
4905 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4908 while $ac_more_lines; do
4909 if test $ac_beg -gt 1; then
4910 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4912 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4914 if test ! -s conftest.s$ac_file; then
4916 rm -f conftest.s$ac_file
4918 if test -z "$ac_sed_cmds"; then
4919 ac_sed_cmds="sed -f conftest.s$ac_file"
4921 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4923 ac_file=`expr $ac_file + 1`
4925 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4928 if test -z "$ac_sed_cmds"; then
4933 cat >> $CONFIG_STATUS <<EOF
4935 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
4937 cat >> $CONFIG_STATUS <<\EOF
4938 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4941 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4942 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4943 *) ac_file_in="${ac_file}.in" ;;
4946 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4948 # Remove last slash and all that follows it. Not all systems have dirname.
4949 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4950 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4951 # The file is in a subdirectory.
4952 test ! -d "$ac_dir" && mkdir "$ac_dir"
4953 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4954 # A "../" for each directory in $ac_dir_suffix.
4955 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4957 ac_dir_suffix= ac_dots=
4960 case "$ac_given_srcdir" in
4962 if test -z "$ac_dots"; then top_srcdir=.
4963 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4964 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4966 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4967 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4971 echo creating "$ac_file"
4973 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4975 *Makefile*) ac_comsub="1i\\
4976 # $configure_input" ;;
4980 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4982 s%@configure_input@%$configure_input%g
4983 s%@srcdir@%$srcdir%g
4984 s%@top_srcdir@%$top_srcdir%g
4985 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4989 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4990 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4992 # ac_d sets the value in "#define NAME VALUE" lines.
4993 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4994 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4997 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4998 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4999 ac_uB='\([ ]\)%\1#\2define\3'
5002 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5003 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5004 ac_eB='$%\1#\2define\3'
5008 if test "${CONFIG_HEADERS+set}" != set; then
5010 cat >> $CONFIG_STATUS <<EOF
5011 CONFIG_HEADERS="config.h:config.in"
5013 cat >> $CONFIG_STATUS <<\EOF
5015 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5018 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5019 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5020 *) ac_file_in="${ac_file}.in" ;;
5023 echo creating $ac_file
5025 rm -f conftest.frag conftest.in conftest.out
5026 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5027 cat $ac_file_inputs > conftest.in
5031 # Transform confdefs.h into a sed script conftest.vals that substitutes
5032 # the proper values into config.h.in to produce config.h. And first:
5033 # Protect against being on the right side of a sed subst in config.status.
5034 # Protect against being in an unquoted here document in config.status.
5036 cat > conftest.hdr <<\EOF
5039 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5043 sed -n -f conftest.hdr confdefs.h > conftest.vals
5046 # This sed command replaces #undef with comments. This is necessary, for
5047 # example, in the case of _POSIX_SOURCE, which is predefined and required
5048 # on some systems where configure will not decide to define it.
5049 cat >> conftest.vals <<\EOF
5050 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5053 # Break up conftest.vals because some shells have a limit on
5054 # the size of here documents, and old seds have small limits too.
5059 ac_lines=`grep -c . conftest.vals`
5060 # grep -c gives empty output for an empty file on some AIX systems.
5061 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5062 # Write a limited-size here document to conftest.frag.
5063 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5064 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5066 sed -f conftest.frag conftest.in > conftest.out
5068 mv conftest.out conftest.in
5070 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5072 mv conftest.tail conftest.vals
5076 cat >> $CONFIG_STATUS <<\EOF
5077 rm -f conftest.frag conftest.h
5078 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5079 cat conftest.in >> conftest.h
5081 if cmp -s $ac_file conftest.h 2>/dev/null; then
5082 echo "$ac_file is unchanged"
5085 # Remove last slash and all that follows it. Not all systems have dirname.
5086 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5087 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5088 # The file is in a subdirectory.
5089 test ! -d "$ac_dir" && mkdir "$ac_dir"
5092 mv conftest.h $ac_file
5097 cat >> $CONFIG_STATUS <<EOF
5102 target_alias='${target_alias}'
5104 subdirs='${subdirs}'
5105 oldstyle_subdirs='${oldstyle_subdirs}'
5106 symbolic_link='${symbolic_link}'
5107 program_transform_set='${program_transform_set}'
5108 program_transform_name='${program_transform_name}'
5109 dep_host_xmake_file='${dep_host_xmake_file}'
5110 host_xmake_file='${host_xmake_file}'
5111 dep_tmake_file='${dep_tmake_file}'
5112 tmake_file='${tmake_file}'
5113 thread_file='${thread_file}'
5114 version='${version}'
5115 local_prefix='${local_prefix}'
5116 build_install_headers_dir='${build_install_headers_dir}'
5117 build_exeext='${build_exeext}'
5118 out_file='${out_file}'
5119 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5120 SET_MAKE='${SET_MAKE}'
5121 target_list='${target_list}'
5122 target_overrides='${target_overrides}'
5123 host_overrides='${host_overrides}'
5124 cross_defines='${cross_defines}'
5125 cross_overrides='${cross_overrides}'
5126 build_overrides='${build_overrides}'
5129 cat >> $CONFIG_STATUS <<\EOF
5131 . $srcdir/configure.lang
5132 case x$CONFIG_HEADERS in
5133 xconfig.h:config.in)
5136 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5137 # bootstrapping and the installation procedure can still use
5138 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5139 # FLAGS_TO_PASS has been modified to solve the problem there.
5140 # This is virtually a duplicate of what happens in configure.lang; we do
5141 # an extra check to make sure this only happens if ln -s can be used.
5142 if [ "$symbolic_link" = "ln -s" ]; then
5143 for d in .. ${subdirs} ; do
5144 if [ $d != .. ]; then
5147 for t in stage1 stage2 stage3 stage4 include
5150 $symbolic_link ../$t $t 2>/dev/null
5159 chmod +x $CONFIG_STATUS
5160 rm -fr confdefs* $ac_clean_files
5161 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1