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 the native compiler
775 # Extract the first word of "gcc", so it can be a program name with args.
776 set dummy gcc; ac_word=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 if test -n "$CC"; then
783 ac_cv_prog_CC="$CC" # Let the user override the test.
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
786 for ac_dir in $PATH; do
787 test -z "$ac_dir" && ac_dir=.
788 if test -f $ac_dir/$ac_word; then
797 if test -n "$CC"; then
798 echo "$ac_t""$CC" 1>&6
800 echo "$ac_t""no" 1>&6
803 if test -z "$CC"; then
804 # Extract the first word of "cc", so it can be a program name with args.
805 set dummy cc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816 for ac_dir in $PATH; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
828 if test $ac_prog_rejected = yes; then
829 # We found a bogon in the path, so make sure we never use it.
830 set dummy $ac_cv_prog_CC
832 if test $# -gt 0; then
833 # We chose a different compiler from the bogus one.
834 # However, it has the same basename, so the bogon will be chosen
835 # first if we set CC to just the basename; use the full file name.
837 set dummy "$ac_dir/$ac_word" "$@"
845 if test -n "$CC"; then
846 echo "$ac_t""$CC" 1>&6
848 echo "$ac_t""no" 1>&6
851 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
855 echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
859 ac_cpp='$CPP $CPPFLAGS'
860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
861 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
862 cross_compiling=$ac_cv_prog_cc_cross
864 cat > conftest.$ac_ext <<EOF
865 #line 866 "configure"
866 #include "confdefs.h"
869 if { (eval echo configure:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
870 ac_cv_prog_cc_works=yes
871 # If we can't run a trivial program, we are probably using a cross compiler.
872 if (./conftest; exit) 2>/dev/null; then
873 ac_cv_prog_cc_cross=no
875 ac_cv_prog_cc_cross=yes
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 ac_cv_prog_cc_works=no
884 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
885 if test $ac_cv_prog_cc_works = no; then
886 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
889 echo "configure:890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
890 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
891 cross_compiling=$ac_cv_prog_cc_cross
893 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
894 echo "configure:895: checking whether we are using GNU C" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 cat > conftest.c <<EOF
903 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
910 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
912 if test $ac_cv_prog_gcc = yes; then
914 ac_test_CFLAGS="${CFLAGS+set}"
915 ac_save_CFLAGS="$CFLAGS"
917 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
918 echo "configure:919: checking whether ${CC-cc} accepts -g" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 echo 'void f(){}' > conftest.c
923 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
932 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
933 if test "$ac_test_CFLAGS" = set; then
934 CFLAGS="$ac_save_CFLAGS"
935 elif test $ac_cv_prog_cc_g = yes; then
942 test "${CFLAGS+set}" = set || CFLAGS="-g"
945 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
946 echo "configure:947: checking whether ${MAKE-make} sets \${MAKE}" >&5
947 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
948 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
951 cat > conftestmake <<\EOF
953 @echo 'ac_maketemp="${MAKE}"'
955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
956 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
957 if test -n "$ac_maketemp"; then
958 eval ac_cv_prog_make_${ac_make}_set=yes
960 eval ac_cv_prog_make_${ac_make}_set=no
964 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
965 echo "$ac_t""yes" 1>&6
968 echo "$ac_t""no" 1>&6
969 SET_MAKE="MAKE=${MAKE-make}"
973 # Find some useful tools
974 for ac_prog in mawk gawk nawk awk
976 # Extract the first word of "$ac_prog", so it can be a program name with args.
977 set dummy $ac_prog; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$AWK"; then
984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
987 for ac_dir in $PATH; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_AWK="$ac_prog"
997 AWK="$ac_cv_prog_AWK"
998 if test -n "$AWK"; then
999 echo "$ac_t""$AWK" 1>&6
1001 echo "$ac_t""no" 1>&6
1004 test -n "$AWK" && break
1007 # Extract the first word of "flex", so it can be a program name with args.
1008 set dummy flex; ac_word=$2
1009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1010 echo "configure:1011: checking for $ac_word" >&5
1011 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 if test -n "$LEX"; then
1015 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1018 for ac_dir in $PATH; do
1019 test -z "$ac_dir" && ac_dir=.
1020 if test -f $ac_dir/$ac_word; then
1021 ac_cv_prog_LEX="flex"
1026 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1029 LEX="$ac_cv_prog_LEX"
1030 if test -n "$LEX"; then
1031 echo "$ac_t""$LEX" 1>&6
1033 echo "$ac_t""no" 1>&6
1036 if test -z "$LEXLIB"
1042 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1043 echo "configure:1044: checking for yywrap in -l$ac_lib" >&5
1044 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 ac_save_LIBS="$LIBS"
1049 LIBS="-l$ac_lib $LIBS"
1050 cat > conftest.$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1053 /* Override any gcc2 internal prototype to avoid an error. */
1054 /* We use char because int might match the return type of a gcc2
1055 builtin and then its argument prototype would still apply. */
1062 if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1064 eval "ac_cv_lib_$ac_lib_var=yes"
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1069 eval "ac_cv_lib_$ac_lib_var=no"
1072 LIBS="$ac_save_LIBS"
1075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1076 echo "$ac_t""yes" 1>&6
1079 echo "$ac_t""no" 1>&6
1084 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether ln works" >&5
1086 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 rm -f conftestdata_to
1090 echo >conftestdata_from
1091 if ln conftestdata_from conftestdata_to 2>/dev/null
1095 if ln -s conftestdata_from conftestdata_to 2>/dev/null
1097 gcc_cv_prog_LN="ln -s"
1102 rm -f conftestdata_from conftestdata_to
1105 LN="$gcc_cv_prog_LN"
1106 if test "$gcc_cv_prog_LN" = "ln"; then
1107 echo "$ac_t""yes" 1>&6
1109 if test "$gcc_cv_prog_LN" = "ln -s"; then
1110 echo "$ac_t""no, using ln -s" 1>&6
1112 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1116 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether ln -s works" >&5
1118 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 rm -f conftestdata_to
1122 echo >conftestdata_from
1123 if ln -s conftestdata_from conftestdata_to 2>/dev/null
1125 gcc_cv_prog_LN_S="ln -s"
1127 if ln conftestdata_from conftestdata_to 2>/dev/null
1134 rm -f conftestdata_from conftestdata_to
1137 LN_S="$gcc_cv_prog_LN_S"
1138 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1139 echo "$ac_t""yes" 1>&6
1141 if test "$gcc_cv_prog_LN_S" = "ln"; then
1142 echo "$ac_t""no, using ln" 1>&6
1144 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1148 # Extract the first word of "ranlib", so it can be a program name with args.
1149 set dummy ranlib; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$RANLIB"; then
1156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1159 for ac_dir in $PATH; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1162 ac_cv_prog_RANLIB="ranlib"
1167 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1170 RANLIB="$ac_cv_prog_RANLIB"
1171 if test -n "$RANLIB"; then
1172 echo "$ac_t""$RANLIB" 1>&6
1174 echo "$ac_t""no" 1>&6
1177 for ac_prog in 'bison -y' byacc
1179 # Extract the first word of "$ac_prog", so it can be a program name with args.
1180 set dummy $ac_prog; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 if test -n "$YACC"; then
1187 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1190 for ac_dir in $PATH; do
1191 test -z "$ac_dir" && ac_dir=.
1192 if test -f $ac_dir/$ac_word; then
1193 ac_cv_prog_YACC="$ac_prog"
1200 YACC="$ac_cv_prog_YACC"
1201 if test -n "$YACC"; then
1202 echo "$ac_t""$YACC" 1>&6
1204 echo "$ac_t""no" 1>&6
1207 test -n "$YACC" && break
1209 test -n "$YACC" || YACC="yacc"
1211 # Find a good install program. We prefer a C program (faster),
1212 # so one script is as good as another. But avoid the broken or
1213 # incompatible versions:
1214 # SysV /etc/install, /usr/sbin/install
1215 # SunOS /usr/etc/install
1216 # IRIX /sbin/install
1218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1220 # ./install, which can be erroneously created by make from ./install.sh.
1221 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1222 echo "configure:1223: checking for a BSD compatible install" >&5
1223 if test -z "$INSTALL"; then
1224 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1228 for ac_dir in $PATH; do
1229 # Account for people who put trailing slashes in PATH elements.
1231 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1233 # OSF1 and SCO ODT 3.0 have their own names for install.
1234 for ac_prog in ginstall scoinst install; do
1235 if test -f $ac_dir/$ac_prog; then
1236 if test $ac_prog = install &&
1237 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1238 # AIX install. It has an incompatible calling convention.
1239 # OSF/1 installbsd also uses dspmsg, but is usable.
1242 ac_cv_path_install="$ac_dir/$ac_prog -c"
1253 if test "${ac_cv_path_install+set}" = set; then
1254 INSTALL="$ac_cv_path_install"
1256 # As a last resort, use the slow shell script. We don't cache a
1257 # path for INSTALL within a source directory, because that will
1258 # break other packages using the cache if that directory is
1259 # removed, or if the path is relative.
1260 INSTALL="$ac_install_sh"
1263 echo "$ac_t""$INSTALL" 1>&6
1265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1266 # It thinks the first close brace ends the variable substitution.
1267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1272 # Find the native compiler
1273 # Extract the first word of "gcc", so it can be a program name with args.
1274 set dummy gcc; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1284 for ac_dir in $PATH; do
1285 test -z "$ac_dir" && ac_dir=.
1286 if test -f $ac_dir/$ac_word; then
1295 if test -n "$CC"; then
1296 echo "$ac_t""$CC" 1>&6
1298 echo "$ac_t""no" 1>&6
1301 if test -z "$CC"; then
1302 # Extract the first word of "cc", so it can be a program name with args.
1303 set dummy cc; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$CC"; then
1310 ac_cv_prog_CC="$CC" # Let the user override the test.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1314 for ac_dir in $PATH; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1318 ac_prog_rejected=yes
1326 if test $ac_prog_rejected = yes; then
1327 # We found a bogon in the path, so make sure we never use it.
1328 set dummy $ac_cv_prog_CC
1330 if test $# -gt 0; then
1331 # We chose a different compiler from the bogus one.
1332 # However, it has the same basename, so the bogon will be chosen
1333 # first if we set CC to just the basename; use the full file name.
1335 set dummy "$ac_dir/$ac_word" "$@"
1343 if test -n "$CC"; then
1344 echo "$ac_t""$CC" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1352 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1353 echo "configure:1354: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1359 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1360 cross_compiling=$ac_cv_prog_cc_cross
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1368 ac_cv_prog_cc_works=yes
1369 # If we can't run a trivial program, we are probably using a cross compiler.
1370 if (./conftest; exit) 2>/dev/null; then
1371 ac_cv_prog_cc_cross=no
1373 ac_cv_prog_cc_cross=yes
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1378 ac_cv_prog_cc_works=no
1382 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1383 if test $ac_cv_prog_cc_works = no; then
1384 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1388 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1389 cross_compiling=$ac_cv_prog_cc_cross
1391 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether we are using GNU C" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.c <<EOF
1401 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1408 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1410 if test $ac_cv_prog_gcc = yes; then
1412 ac_test_CFLAGS="${CFLAGS+set}"
1413 ac_save_CFLAGS="$CFLAGS"
1415 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1416 echo "configure:1417: checking whether ${CC-cc} accepts -g" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 echo 'void f(){}' > conftest.c
1421 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1430 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1431 if test "$ac_test_CFLAGS" = set; then
1432 CFLAGS="$ac_save_CFLAGS"
1433 elif test $ac_cv_prog_cc_g = yes; then
1440 test "${CFLAGS+set}" = set || CFLAGS="-g"
1443 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether ${MAKE-make} sets \${MAKE}" >&5
1445 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1446 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 cat > conftestmake <<\EOF
1451 @echo 'ac_maketemp="${MAKE}"'
1453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1454 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1455 if test -n "$ac_maketemp"; then
1456 eval ac_cv_prog_make_${ac_make}_set=yes
1458 eval ac_cv_prog_make_${ac_make}_set=no
1462 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1463 echo "$ac_t""yes" 1>&6
1466 echo "$ac_t""no" 1>&6
1467 SET_MAKE="MAKE=${MAKE-make}"
1471 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1472 echo "configure:1473: checking how to run the C preprocessor" >&5
1473 # On Suns, sometimes $CPP names a directory.
1474 if test -n "$CPP" && test -d "$CPP"; then
1477 if test -z "$CPP"; then
1478 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 # This must be in double quotes, not single quotes, because CPP may get
1482 # substituted into the Makefile and "${CC-cc}" will confuse make.
1484 # On the NeXT, cc -E runs the code through the compiler's parser,
1485 # not just through cpp.
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1494 ac_err=`grep -v '^ *+' conftest.out`
1495 if test -z "$ac_err"; then
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 CPP="${CC-cc} -E -traditional-cpp"
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out`
1512 if test -z "$ac_err"; then
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1524 ac_cv_prog_CPP="$CPP"
1526 CPP="$ac_cv_prog_CPP"
1528 ac_cv_prog_CPP="$CPP"
1530 echo "$ac_t""$CPP" 1>&6
1532 for ac_hdr in inttypes.h limits.h stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h
1534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_hdr" >&5
1537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out`
1548 if test -z "$ac_err"; then
1550 eval "ac_cv_header_$ac_safe=yes"
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1556 eval "ac_cv_header_$ac_safe=no"
1560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1561 echo "$ac_t""yes" 1>&6
1562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1563 cat >> confdefs.h <<EOF
1564 #define $ac_tr_hdr 1
1568 echo "$ac_t""no" 1>&6
1573 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1574 echo "configure:1575: checking whether malloc must be declared" >&5
1575 if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1583 #ifdef HAVE_STRING_H
1586 #ifdef HAVE_STRINGS_H
1587 #include <strings.h>
1590 #ifdef HAVE_STDLIB_H
1593 #ifdef HAVE_UNISTD_H
1597 char *(*pfn) = (char *(*)) malloc
1600 if { (eval echo configure:1601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1602 gcc_cv_decl_needed_malloc=no
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1607 gcc_cv_decl_needed_malloc=yes
1612 echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6
1613 if test $gcc_cv_decl_needed_malloc = yes; then
1614 gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1615 cat >> confdefs.h <<EOF
1616 #define $gcc_tr_decl 1
1621 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1622 echo "configure:1623: checking whether realloc must be declared" >&5
1623 if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1631 #ifdef HAVE_STRING_H
1634 #ifdef HAVE_STRINGS_H
1635 #include <strings.h>
1638 #ifdef HAVE_STDLIB_H
1641 #ifdef HAVE_UNISTD_H
1645 char *(*pfn) = (char *(*)) realloc
1648 if { (eval echo configure:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 gcc_cv_decl_needed_realloc=no
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 gcc_cv_decl_needed_realloc=yes
1660 echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6
1661 if test $gcc_cv_decl_needed_realloc = yes; then
1662 gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1663 cat >> confdefs.h <<EOF
1664 #define $gcc_tr_decl 1
1669 echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether calloc must be declared" >&5
1671 if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1679 #ifdef HAVE_STRING_H
1682 #ifdef HAVE_STRINGS_H
1683 #include <strings.h>
1686 #ifdef HAVE_STDLIB_H
1689 #ifdef HAVE_UNISTD_H
1693 char *(*pfn) = (char *(*)) calloc
1696 if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 gcc_cv_decl_needed_calloc=no
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 gcc_cv_decl_needed_calloc=yes
1708 echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6
1709 if test $gcc_cv_decl_needed_calloc = yes; then
1710 gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1711 cat >> confdefs.h <<EOF
1712 #define $gcc_tr_decl 1
1717 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1718 echo "configure:1719: checking whether free must be declared" >&5
1719 if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1727 #ifdef HAVE_STRING_H
1730 #ifdef HAVE_STRINGS_H
1731 #include <strings.h>
1734 #ifdef HAVE_STDLIB_H
1737 #ifdef HAVE_UNISTD_H
1741 char *(*pfn) = (char *(*)) free
1744 if { (eval echo configure:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1746 gcc_cv_decl_needed_free=no
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 gcc_cv_decl_needed_free=yes
1756 echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6
1757 if test $gcc_cv_decl_needed_free = yes; then
1758 gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1759 cat >> confdefs.h <<EOF
1760 #define $gcc_tr_decl 1
1766 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1767 echo "configure:1768: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1768 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <sys/types.h>
1776 /* NetBSD declares sys_siglist in unistd.h. */
1777 #ifdef HAVE_UNISTD_H
1781 char *msg = *(sys_siglist + 1);
1784 if { (eval echo configure:1785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1786 ac_cv_decl_sys_siglist=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 ac_cv_decl_sys_siglist=no
1796 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1797 if test $ac_cv_decl_sys_siglist = yes; then
1798 cat >> confdefs.h <<\EOF
1799 #define SYS_SIGLIST_DECLARED 1
1805 for ac_func in strerror strtoul bsearch
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1851 cat >> confdefs.h <<EOF
1852 #define $ac_tr_func 1
1856 echo "$ac_t""no" 1>&6
1868 build_install_headers_dir=install-headers-tar
1872 host_truncate_target=
1874 # Decode the host machine, then the target machine.
1875 # For the host machine, we save the xm_file variable as host_xm_file;
1876 # then we decode the target machine and forget everything else
1877 # that came from the host machine.
1878 for machine in $build $host $target; do
1891 # Set this to force installation and use of collect2.
1893 # Set this to override the default target model.
1895 # Set this to control which fixincludes program to use.
1896 fixincludes=fixincludes
1897 # Set this to control how the header file directory is installed.
1898 install_headers_dir=install-headers-tar
1899 # Set this to a non-empty list of args to pass to cpp if the target
1900 # wants its .md file passed through cpp.
1902 # Set this if directory names should be truncated to 14 characters.
1904 # Set this if gdb needs a dir command with `dirname $out_file`
1905 gdb_needs_out_file_path=
1906 # Set this if the build machine requires executables to have a
1910 # Set default cpu_type, tm_file and xm_file so it can be updated in
1911 # each machine entry.
1912 cpu_type=`echo $machine | sed 's/-.*$//'`
1946 tm_file=${cpu_type}/${cpu_type}.h
1947 xm_file=${cpu_type}/xm-${cpu_type}.h
1950 # Support site-specific machine types.
1952 cpu_type=`echo $machine | sed -e 's/-.*//'`
1953 rest=`echo $machine | sed -e "s/$cpu_type-//"`
1954 xm_file=${cpu_type}/xm-$rest.h
1955 tm_file=${cpu_type}/$rest.h
1956 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
1957 then xmake_file=${cpu_type}/x-$rest; \
1960 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
1961 then tmake_file=${cpu_type}/t-$rest; \
1967 a29k-*-bsd* | a29k-*-sym1*)
1968 tm_file="${tm_file} a29k/unix.h"
1969 xm_file=a29k/xm-unix.h
1970 xmake_file=a29k/x-unix
1973 a29k-*-udi | a29k-*-coff)
1974 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
1975 tmake_file=a29k/t-a29kbare
1978 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
1979 tmake_file=a29k/t-vx29k
1980 extra_parts="crtbegin.o crtend.o"
1982 a29k-*-*) # Default a29k environment.
1985 alpha*-*-linux-gnuecoff*)
1986 tm_file="${tm_file} alpha/linux.h"
1987 xm_file="${xm_file} alpha/xm-linux.h"
1988 target_cpu_default="MASK_GAS"
1991 fixincludes=Makefile.in
1994 alpha*-*-linux-gnulibc1*)
1995 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1996 xm_file="${xm_file} alpha/xm-linux.h"
1997 target_cpu_default="MASK_GAS"
1998 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
2000 fixincludes=Makefile.in
2002 if [ x$enable_threads = xyes ]; then
2006 alpha*-*-linux-gnu*)
2007 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
2008 xm_file="${xm_file} alpha/xm-linux.h"
2009 target_cpu_default="MASK_GAS"
2010 tmake_file="t-linux alpha/t-linux"
2012 fixincludes=Makefile.in
2014 if [ x$enable_threads = xyes ]; then
2019 if [ x$stabs = xyes ]
2021 tm_file="${tm_file} dbx.h"
2023 if [ x$gas != xyes ]
2025 extra_passes="mips-tfile mips-tdump"
2030 tm_file="${tm_file} alpha/osf12.h alpha/osf2or3.h"
2033 tm_file="${tm_file} alpha/osf2or3.h"
2036 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2037 # a broken tar, so we use cpio instead.
2038 install_headers_dir=install-headers-cpio
2042 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2043 target_cpu_default=MASK_SUPPORT_ARCH
2048 tm_file="${tm_file} alpha/win-nt.h"
2049 target_cpu_default=MASK_WINDOWS_NT
2050 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2051 tmake_file=t-libc-ok
2052 xmake_file=winnt/x-winnt
2053 extra_host_objs=oldnames.o
2054 extra_gcc_objs="spawnv.o oldnames.o"
2055 fixincludes=fixinc.winnt
2056 if [ x$gnu_ld != xyes ]
2058 extra_programs=ld.exe
2060 if [ x$enable_threads = xyes ]; then
2066 xm_file="${xm_file} alpha/xm-vms.h"
2067 tmake_file=alpha/t-vms
2068 fixincludes=Makefile.in
2071 extra_parts="crtinit.o crtfini.o"
2073 arm-*-coff* | armel-*-coff*)
2075 tmake_file=arm/t-bare
2077 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2078 tm_file=arm/riscix1-1.h
2081 arm-*-riscix*) # Acorn RISC machine
2084 tm_file=arm/rix-gas.h
2086 tm_file=arm/riscix.h
2088 xmake_file=arm/x-riscix
2089 tmake_file=arm/t-riscix
2092 arm-semi-aout | armel-semi-aout)
2094 tmake_file=arm/t-semi
2095 fixincludes=Makefile.in # There is nothing to fix
2097 arm-semi-aof | armel-semi-aof)
2098 tm_file=arm/semiaof.h
2099 tmake_file=arm/t-semiaof
2100 fixincludes=Makefile.in # There is nothing to fix
2103 tm_file=arm/netbsd.h
2104 xm_file=arm/xm-netbsd.h
2105 tmake_file="t-netbsd arm/t-netbsd"
2106 # On NetBSD, the headers are already okay, except for math.h.
2107 fixincludes=fixinc.math
2110 arm-*-linux-gnuaout*) # ARM Linux
2112 xm_file=arm/xm-linux.h
2114 tm_file=arm/linux-gas.h
2115 tmake_file=arm/t-linux
2116 fixincludes=Makefile.in
2121 tmake_file=arm/t-bare
2123 c1-convex-*) # Convex C1
2124 target_cpu_default=1
2126 fixincludes=Makefile.in
2128 c2-convex-*) # Convex C2
2129 target_cpu_default=2
2131 fixincludes=Makefile.in
2134 target_cpu_default=4
2136 fixincludes=Makefile.in
2139 target_cpu_default=8
2141 fixincludes=Makefile.in
2144 target_cpu_default=16
2146 fixincludes=Makefile.in
2148 clipper-intergraph-clix*)
2149 tm_file="${tm_file} svr3.h clipper/clix.h"
2150 xm_file=clipper/xm-clix.h
2151 xmake_file=clipper/x-clix
2152 extra_headers=va-clipper.h
2153 extra_parts="crtbegin.o crtend.o"
2154 install_headers_dir=install-headers-cpio
2161 # This hasn't been upgraded to GCC 2.
2162 # fx80-alliant-*) # Alliant FX/80
2168 if [ x$enable_haifa != xno ]; then
2171 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2172 xm_file=pa/xm-papro.h
2176 if [ x$enable_haifa != xno ]; then
2179 target_cpu_default=1
2180 tm_file="${tm_file} pa/pa-osf.h"
2182 fixincludes=Makefile.in
2185 if [ x$enable_haifa != xno ]; then
2188 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2189 xm_file=pa/xm-papro.h
2193 if [ x$enable_haifa != xno ]; then
2196 tm_file="${tm_file} pa/pa-osf.h"
2198 fixincludes=Makefile.in
2201 if [ x$enable_haifa != xno ]; then
2204 target_cpu_default=1
2206 fixincludes=Makefile.in
2209 if [ x$enable_haifa != xno ]; then
2213 fixincludes=Makefile.in
2216 if [ x$enable_haifa != xno ]; then
2219 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2220 xm_file=pa/xm-pahpux.h
2221 xmake_file=pa/x-pa-hpux
2224 tm_file="${tm_file} pa/gas.h"
2226 install_headers_dir=install-headers-cpio
2229 hppa1.0-*-hpux8.0[0-2]*)
2230 if [ x$enable_haifa != xno ]; then
2233 tm_file="${tm_file} pa/pa-hpux.h"
2234 xm_file=pa/xm-pahpux.h
2235 xmake_file=pa/x-pa-hpux
2238 tm_file="${tm_file} pa/pa-gas.h"
2240 tm_file="pa/pa-oldas.h ${tm_file}"
2242 install_headers_dir=install-headers-cpio
2245 hppa1.1-*-hpux8.0[0-2]*)
2246 if [ x$enable_haifa != xno ]; then
2249 target_cpu_default=1
2250 tm_file="${tm_file} pa/pa-hpux.h"
2251 xm_file=pa/xm-pahpux.h
2252 xmake_file=pa/x-pa-hpux
2255 tm_file="${tm_file} pa/pa-gas.h"
2257 tm_file="pa/pa-oldas.h ${tm_file}"
2259 install_headers_dir=install-headers-cpio
2263 if [ x$enable_haifa != xno ]; then
2266 target_cpu_default=1
2267 tm_file="${tm_file} pa/pa-hpux.h"
2268 xm_file=pa/xm-pahpux.h
2269 xmake_file=pa/x-pa-hpux
2272 tm_file="${tm_file} pa/pa-gas.h"
2274 install_headers_dir=install-headers-cpio
2278 if [ x$enable_haifa != xno ]; then
2281 tm_file="${tm_file} pa/pa-hpux.h"
2282 xm_file=pa/xm-pahpux.h
2283 xmake_file=pa/x-pa-hpux
2286 tm_file="${tm_file} pa/pa-gas.h"
2288 install_headers_dir=install-headers-cpio
2292 if [ x$enable_haifa != xno ]; then
2295 target_cpu_default=1
2296 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2297 xm_file=pa/xm-pahpux.h
2298 xmake_file=pa/x-pa-hpux
2301 tm_file="${tm_file} pa/pa-gas.h"
2303 install_headers_dir=install-headers-cpio
2307 if [ x$enable_haifa != xno ]; then
2310 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2311 xm_file=pa/xm-pahpux.h
2312 xmake_file=pa/x-pa-hpux
2315 tm_file="${tm_file} pa/pa-gas.h"
2317 install_headers_dir=install-headers-cpio
2321 if [ x$enable_haifa != xno ]; then
2324 target_cpu_default=1
2325 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2326 xm_file=pa/xm-pahpux.h
2327 xmake_file=pa/x-pa-hpux
2330 tm_file="${tm_file} pa/pa-gas.h"
2332 install_headers_dir=install-headers-cpio
2336 if [ x$enable_haifa != xno ]; then
2339 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2340 xm_file=pa/xm-pahpux.h
2341 xmake_file=pa/x-pa-hpux
2344 tm_file="${tm_file} pa/pa-gas.h"
2346 install_headers_dir=install-headers-cpio
2350 if [ x$enable_haifa != xno ]; then
2353 target_cpu_default=1
2354 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2355 xm_file=pa/xm-pahpux.h
2356 xmake_file=pa/x-pa-hpux
2359 tm_file="${tm_file} pa/pa-gas.h"
2361 install_headers_dir=install-headers-cpio
2365 if [ x$enable_haifa != xno ]; then
2368 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2369 xm_file=pa/xm-pahpux.h
2370 xmake_file=pa/x-pa-hpux
2373 tm_file="${tm_file} pa/pa-gas.h"
2375 install_headers_dir=install-headers-cpio
2379 if [ x$enable_haifa != xno ]; then
2382 target_cpu_default=1
2384 fixincludes=Makefile.in
2388 i[3456]86-ibm-aix*) # IBM PS/2 running AIX
2391 tm_file=i386/aix386.h
2392 extra_parts="crtbegin.o crtend.o"
2393 tmake_file=i386/t-crtstuff
2395 tm_file=i386/aix386ng.h
2398 xm_file=i386/xm-aix.h
2399 xmake_file=i386/x-aix
2401 i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
2402 xm_file=i386/xm-sysv4.h
2403 xmake_file=i386/x-ncr3000
2404 if [ x$stabs = xyes -a x$gas = xyes ]
2406 tm_file=i386/sysv4gdb.h
2408 tm_file=i386/sysv4.h
2410 extra_parts="crtbegin.o crtend.o"
2411 tmake_file=i386/t-crtpic
2415 xm_file=i386/xm-next.h
2416 tmake_file=i386/t-next
2417 xmake_file=i386/x-next
2418 extra_objs=nextstep.o
2419 if [ x$enable_threads = xyes ]; then
2423 i[3456]86-sequent-bsd*) # 80386 from Sequent
2427 tm_file=i386/seq-gas.h
2429 tm_file=i386/sequent.h
2432 i[3456]86-sequent-ptx1*)
2433 xm_file=i386/xm-sysv3.h
2434 xmake_file=i386/x-sysv3
2435 tm_file=i386/seq-sysv3.h
2436 tmake_file=i386/t-crtstuff
2437 fixincludes=fixinc.ptx
2438 extra_parts="crtbegin.o crtend.o"
2439 install_headers_dir=install-headers-cpio
2441 i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*)
2442 xm_file=i386/xm-sysv3.h
2443 xmake_file=i386/x-sysv3
2444 tm_file=i386/seq2-sysv3.h
2445 tmake_file=i386/t-crtstuff
2446 extra_parts="crtbegin.o crtend.o"
2447 fixincludes=fixinc.ptx
2448 install_headers_dir=install-headers-cpio
2450 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*)
2451 xm_file=i386/xm-sysv4.h
2453 tm_file=i386/ptx4-i.h
2455 extra_parts="crtbegin.o crtend.o"
2456 fixincludes=fixinc.ptx
2457 install_headers_dir=install-headers-cpio
2459 i386-sun-sunos*) # Sun i386 roadrunner
2460 xm_file=i386/xm-sun.h
2465 tm_file=i386/i386-aout.h
2466 tmake_file=i386/t-i386bare
2468 i[3456]86-*-bsdi* | i[345]86-*-bsd386*)
2469 tm_file=i386/bsd386.h
2470 xm_file=i386/xm-bsd386.h
2471 # tmake_file=t-libc-ok
2474 tm_file=i386/386bsd.h
2475 xm_file=i386/xm-bsd386.h
2476 # tmake_file=t-libc-ok
2477 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2480 i[3456]86-*-freebsdelf*)
2481 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2482 xm_file=i386/xm-freebsd.h
2483 # On FreeBSD, the headers are already ok, except for math.h.
2484 fixincludes=fixinc.math
2485 tmake_file=i386/t-freebsd
2490 i[3456]86-*-freebsd*)
2491 tm_file=i386/freebsd.h
2492 xm_file=i386/xm-freebsd.h
2493 # On FreeBSD, the headers are already ok, except for math.h.
2494 fixincludes=fixinc.math
2495 tmake_file=i386/t-freebsd
2497 i[3456]86-*-netbsd*)
2498 tm_file=i386/netbsd.h
2499 xm_file=i386/xm-netbsd.h
2500 # On NetBSD, the headers are already okay, except for math.h.
2501 fixincludes=fixinc.math
2505 tm_file=i386/i386-coff.h
2506 tmake_file=i386/t-i386bare
2508 i[3456]86-*-isc*) # 80386 running ISC system
2509 xm_file=i386/xm-isc.h
2511 i[345]86-*-isc[34]*)
2512 xmake_file=i386/x-isc3
2515 xmake_file=i386/x-isc
2518 if [ x$gas = xyes -a x$stabs = xyes ]
2520 tm_file=i386/iscdbx.h
2521 tmake_file=i386/t-svr3dbx
2522 extra_parts="svr3.ifile svr3z.ifile"
2524 tm_file=i386/isccoff.h
2525 tmake_file=i386/t-crtstuff
2526 extra_parts="crtbegin.o crtend.o"
2528 install_headers_dir=install-headers-cpio
2530 i[3456]86-*-linux-gnuoldld*) # Intel 80386's running Linux
2531 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
2532 xmake_file=x-linux-aout
2533 tmake_file="t-linux-aout i386/t-crtstuff"
2534 tm_file=i386/linux-oldld.h
2535 fixincludes=Makefile.in #On Linux, the headers are ok already.
2538 i[3456]86-*-linux-gnuaout*) # Intel 80386's running Linux
2539 xm_file=i386/xm-linux.h # with a.out format
2540 xmake_file=x-linux-aout
2541 tmake_file="t-linux-aout i386/t-crtstuff"
2542 tm_file=i386/linux-aout.h
2543 fixincludes=Makefile.in #On Linux, the headers are ok already.
2546 i[3456]86-*-linux-gnulibc1)
2547 xm_file=i386/xm-linux.h # Intel 80386's running Linux
2548 xmake_file=x-linux # with ELF format using the
2549 tm_file=i386/linux.h # Linux C library 5
2550 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2551 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2552 fixincludes=Makefile.in #On Linux, the headers are ok already.
2554 if [ x$enable_threads = xyes ]; then
2555 thread_file='single'
2558 i[3456]86-*-linux-gnu*) # Intel 80386's running Linux
2559 xm_file=i386/xm-linux.h # with ELF format using glibc 2
2560 xmake_file=x-linux # aka Linux C library 6
2561 tm_file=i386/linux.h
2562 tmake_file="t-linux i386/t-crtstuff"
2563 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2564 fixincludes=Makefile.in #On Linux, the headers are ok already.
2566 if [ x$enable_threads = xyes ]; then
2572 i[3456]86-go32-msdos | i[3456]86-*-go32*)
2573 xm_file=i386/xm-go32.h
2575 tmake_file=i386/t-go32
2577 i[3456]86-moss-msdos* | i[3456]86-*-moss*)
2579 tmake_file=t-libc-ok
2580 fixincludes=Makefile.in
2584 i[3456]86-*-lynxos*)
2589 tm_file=i386/lynx-ng.h
2591 xm_file=i386/xm-lynx.h
2592 tmake_file=i386/t-i386bare
2597 # tmake_file=t-libc-ok
2600 i[3456]86-*-osfrose*) # 386 using OSF/rose
2603 tm_file=i386/osfelf.h
2606 tm_file=i386/osfrose.h
2609 xm_file=i386/xm-osf.h
2610 xmake_file=i386/x-osfrose
2611 tmake_file=i386/t-osf
2612 extra_objs=halfpic.o
2614 i[345]86-go32-rtems*)
2616 xm_file=i386/xm-go32.h
2617 tm_file=i386/go32-rtems.h
2618 tmake_file="i386/t-go32 t-rtems"
2622 tm_file=i386/rtems.h
2623 tmake_file="i386/t-i386bare t-rtems"
2625 i[3456]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2626 xm_file=i386/xm-sco5.h
2627 xmake_file=i386/x-sco5
2628 fixincludes=fixinc.sco
2630 tmake_file=i386/t-sco5
2631 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2633 i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
2634 xm_file=i386/xm-sco.h
2635 xmake_file=i386/x-sco4
2636 fixincludes=fixinc.sco
2637 install_headers_dir=install-headers-cpio
2638 if [ x$stabs = xyes ]
2640 tm_file=i386/sco4dbx.h
2641 tmake_file=i386/t-svr3dbx
2642 extra_parts="svr3.ifile svr3z.rfile"
2645 tmake_file=i386/t-crtstuff
2646 extra_parts="crtbegin.o crtend.o"
2650 i[3456]86-*-sco*) # 80386 running SCO system
2651 xm_file=i386/xm-sco.h
2652 xmake_file=i386/x-sco
2653 install_headers_dir=install-headers-cpio
2654 if [ x$stabs = xyes ]
2656 tm_file=i386/scodbx.h
2657 tmake_file=i386/t-svr3dbx
2658 extra_parts="svr3.ifile svr3z.rfile"
2661 extra_parts="crtbegin.o crtend.o"
2662 tmake_file=i386/t-crtstuff
2666 i[3456]86-*-solaris2*)
2667 xm_file=i386/xm-sysv4.h
2668 if [ x$stabs = xyes ]
2670 tm_file=i386/sol2dbg.h
2674 tmake_file=i386/t-sol2
2675 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
2677 fixincludes=fixinc.svr4
2679 if [ x$enable_threads = xyes ]; then
2680 thread_file='solaris'
2683 i[3456]86-*-sysv4*) # Intel 80386's running system V.4
2684 xm_file=i386/xm-sysv4.h
2685 tm_file=i386/sysv4.h
2686 if [ x$stabs = xyes ]
2688 tm_file="${tm_file} dbx.h"
2690 tmake_file=i386/t-crtpic
2692 extra_parts="crtbegin.o crtend.o"
2694 i[3456]86-*-sysv*) # Intel 80386's running system V
2695 xm_file=i386/xm-sysv3.h
2696 xmake_file=i386/x-sysv3
2699 if [ x$stabs = xyes ]
2701 tm_file=i386/svr3dbx.h
2702 tmake_file=i386/t-svr3dbx
2703 extra_parts="svr3.ifile svr3z.rfile"
2705 tm_file=i386/svr3gas.h
2706 extra_parts="crtbegin.o crtend.o"
2707 tmake_file=i386/t-crtstuff
2710 tm_file=i386/sysv3.h
2711 extra_parts="crtbegin.o crtend.o"
2712 tmake_file=i386/t-crtstuff
2715 i386-*-vsta) # Intel 80386's running VSTa kernel
2716 xm_file=i386/xm-vsta.h
2718 tmake_file=i386/t-vsta
2719 xmake_file=i386/x-vsta
2721 i[3456]86-*-pe | i[3456]86-*-cygwin32)
2722 xm_file="${xm_file} i386/xm-cygwin32.h"
2723 tmake_file=i386/t-cygwin32
2724 tm_file=i386/cygwin32.h
2725 xmake_file=i386/x-cygwin32
2727 fixincludes=Makefile.in
2728 if [ x$enable_threads = xyes ]; then
2733 i[3456]86-*-mingw32)
2734 tm_file=i386/mingw32.h
2735 xm_file="${xm_file} i386/xm-mingw32.h"
2736 tmake_file=i386/t-cygwin32
2738 xmake_file=i386/x-cygwin32
2739 fixincludes=Makefile.in
2740 if [ x$enable_threads = xyes ]; then
2745 i[3456]86-*-winnt3*)
2746 tm_file=i386/win-nt.h
2747 out_file=i386/i386.c
2748 xm_file=i386/xm-winnt.h
2749 xmake_file=winnt/x-winnt
2750 tmake_file=i386/t-winnt
2751 extra_host_objs="winnt.o oldnames.o"
2752 extra_gcc_objs="spawnv.o oldnames.o"
2753 fixincludes=fixinc.winnt
2754 if [ x$gnu_ld != xyes ]
2756 extra_programs=ld.exe
2758 if [ x$enable_threads = xyes ]; then
2763 xm_file=i386/xm-dgux.h
2764 out_file=i386/dgux.c
2766 tmake_file=i386/t-dgux
2767 xmake_file=i386/x-dgux
2768 fixincludes=fixinc.dgux
2769 install_headers_dir=install-headers-cpio
2771 i860-alliant-*) # Alliant FX/2800
2772 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2773 xm_file="${xm_file} i860/xm-fx2800.h"
2774 xmake_file=i860/x-fx2800
2775 tmake_file=i860/t-fx2800
2776 extra_parts="crtbegin.o crtend.o"
2779 tm_file="${tm_file} i860/bsd.h"
2782 tm_file="${tm_file} i860/bsd-gas.h"
2787 tm_file="${tm_file} i860/mach.h"
2788 tmake_file=t-libc-ok
2790 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2791 tm_file="${tm_file} svr3.h i860/paragon.h"
2792 xm_file="${xm_file} xm-svr3.h"
2796 tm_file="${tm_file} svr3.h i860/sysv3.h"
2797 xm_file="${tm_file} xm-svr3.h"
2798 xmake_file=i860/x-sysv3
2799 extra_parts="crtbegin.o crtend.o"
2802 tm_file="${tm_file} svr4.h i860/sysv4.h"
2803 xm_file="${xm_file} xm-svr3.h"
2804 xmake_file=i860/x-sysv4
2806 extra_parts="crtbegin.o crtend.o"
2808 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2809 tm_file="${tm_file} i960/vx960.h"
2810 tmake_file=i960/t-vxworks960
2814 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2815 tmake_file=i960/t-vxworks960
2819 tm_file="${tm_file} i960/vx960.h"
2820 tmake_file=i960/t-vxworks960
2824 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2825 tmake_file=i960/t-960bare
2829 tmake_file="i960/t-960bare t-rtems"
2830 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2833 i960-*-*) # Default i960 environment.
2837 extra_parts="crtinit.o crtfini.o"
2839 m68000-convergent-sysv*)
2841 xm_file=m68k/xm-3b1.h
2843 extra_headers=math-68881.h
2845 m68000-hp-bsd*) # HP 9000/200 running BSD
2846 tm_file=m68k/hp2bsd.h
2847 xmake_file=m68k/x-hp2bsd
2849 extra_headers=math-68881.h
2851 m68000-hp-hpux*) # HP 9000 series 300
2852 xm_file=m68k/xm-hp320.h
2855 xmake_file=m68k/x-hp320g
2856 tm_file=m68k/hp310g.h
2858 xmake_file=m68k/x-hp320
2859 tm_file=m68k/hp310.h
2861 install_headers_dir=install-headers-cpio
2863 extra_headers=math-68881.h
2868 extra_headers=math-68881.h
2871 tm_file=m68k/sun2o4.h
2873 extra_headers=math-68881.h
2876 xm_file=m68k/xm-3b1.h
2884 extra_headers=math-68881.h
2886 m68k-apple-aux*) # Apple Macintosh running A/UX
2887 xm_file=m68k/xm-aux.h
2888 tmake_file=m68k/t-aux
2889 install_headers_dir=install-headers-cpio
2890 extra_headers=math-68881.h
2891 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2893 if [ "$gnu_ld" = yes ]
2895 tm_file="${tm_file} m68k/auxgld.h"
2897 tm_file="${tm_file} m68k/auxld.h"
2901 tm_file="${tm_file} m68k/auxgas.h"
2903 tm_file="${tm_file} m68k/auxas.h"
2905 tm_file="${tm_file} m68k/a-ux.h"
2908 tm_file=m68k/apollo68.h
2909 xmake_file=m68k/x-apollo68
2911 extra_headers=math-68881.h
2913 m68k-altos-sysv*) # Altos 3068
2916 tm_file=m68k/altos3068.h
2917 xm_file=m68k/xm-altos3068.h
2919 echo "The Altos is supported only with the GNU assembler" 1>&2
2922 extra_headers=math-68881.h
2924 m68k-bull-sysv*) # Bull DPX/2
2927 if [ x$stabs = xyes ]
2929 tm_file=m68k/dpx2cdbx.h
2931 tm_file=m68k/dpx2g.h
2936 xm_file=m68k/xm-m68kv.h
2937 xmake_file=m68k/x-dpx2
2939 extra_headers=math-68881.h
2941 m68k-atari-sysv4*) # Atari variant of V.4.
2942 tm_file=m68k/atari.h
2943 xm_file=m68k/xm-atari.h
2945 extra_parts="crtbegin.o crtend.o"
2946 extra_headers=math-68881.h
2948 m68k-motorola-sysv*)
2949 tm_file=m68k/mot3300.h
2950 xm_file=m68k/xm-mot3300.h
2953 xmake_file=m68k/x-mot3300-gas
2954 if [ x$gnu_ld = xyes ]
2956 tmake_file=m68k/t-mot3300-gald
2958 tmake_file=m68k/t-mot3300-gas
2962 xmake_file=m68k/x-mot3300
2963 if [ x$gnu_ld = xyes ]
2965 tmake_file=m68k/t-mot3300-gld
2967 tmake_file=m68k/t-mot3300
2971 gdb_needs_out_file_path=yes
2972 extra_parts="crt0.o mcrt0.o"
2973 extra_headers=math-68881.h
2975 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2976 tm_file=m68k/tower-as.h
2977 xm_file=m68k/xm-tower.h
2978 xmake_file=m68k/x-tower
2979 extra_parts="crtbegin.o crtend.o"
2980 extra_headers=math-68881.h
2983 tm_file=m68k/plexus.h
2984 xm_file=m68k/xm-plexus.h
2986 extra_headers=math-68881.h
2990 xm_file=m68k/xm-m68kv.h
2991 extra_headers=math-68881.h
2994 xm_file=m68k/xm-crds.h
2995 xmake_file=m68k/x-crds
2998 extra_headers=math-68881.h
3000 m68k-cbm-sysv4*) # Commodore variant of V.4.
3002 xm_file=m68k/xm-amix.h
3003 xmake_file=m68k/x-amix
3005 extra_parts="crtbegin.o crtend.o"
3006 extra_headers=math-68881.h
3009 tm_file=m68k/ccur-GAS.h
3010 xmake_file=m68k/x-ccur
3011 extra_headers=math-68881.h
3014 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
3015 tm_file=m68k/hp3bsd44.h
3016 xmake_file=m68k/x-hp3bsd44
3018 extra_headers=math-68881.h
3020 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
3021 tm_file=m68k/hp3bsd.h
3023 extra_headers=math-68881.h
3026 if [ x$with_fp = xno ]
3028 tm_file=m68k/isi-nfp.h
3033 extra_headers=math-68881.h
3035 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
3036 xm_file=m68k/xm-hp320.h
3039 xmake_file=m68k/x-hp320g
3040 tm_file=m68k/hp320g.h
3042 xmake_file=m68k/x-hp320
3043 tm_file=m68k/hpux7.h
3045 install_headers_dir=install-headers-cpio
3047 extra_headers=math-68881.h
3049 m68k-hp-hpux*) # HP 9000 series 300
3050 xm_file=m68k/xm-hp320.h
3053 xmake_file=m68k/x-hp320g
3054 tm_file=m68k/hp320g.h
3056 xmake_file=m68k/x-hp320
3057 tm_file=m68k/hp320.h
3059 install_headers_dir=install-headers-cpio
3061 extra_headers=math-68881.h
3064 tm_file=m68k/sun3mach.h
3066 extra_headers=math-68881.h
3071 tm_file=m68k/news3gas.h
3073 tm_file=m68k/news3.h
3076 extra_headers=math-68881.h
3078 m68k-sony-bsd* | m68k-sony-newsos*)
3081 tm_file=m68k/newsgas.h
3086 extra_headers=math-68881.h
3088 m68k-next-nextstep2*)
3089 tm_file=m68k/next21.h
3090 xm_file=m68k/xm-next.h
3091 tmake_file=m68k/t-next
3092 xmake_file=m68k/x-next
3093 extra_objs=nextstep.o
3094 extra_headers=math-68881.h
3097 m68k-next-nextstep3*)
3099 xm_file=m68k/xm-next.h
3100 tmake_file=m68k/t-next
3101 xmake_file=m68k/x-next
3102 extra_objs=nextstep.o
3103 extra_headers=math-68881.h
3104 if [ x$enable_threads = xyes ]; then
3109 if [ x$with_fp = xno ]
3111 tm_file=m68k/sun3n3.h
3113 tm_file=m68k/sun3o3.h
3116 extra_headers=math-68881.h
3118 m68k-sun-sunos*) # For SunOS 4 (the default).
3119 if [ x$with_fp = xno ]
3121 tm_file=m68k/sun3n.h
3125 xm_file=m68k/xm-sun3.h
3127 extra_headers=math-68881.h
3130 tm_file=m68k/vxm68k.h
3131 tmake_file=m68k/t-vxworks68
3132 extra_headers=math-68881.h
3135 tmake_file=m68k/t-m68kbare
3136 tm_file="m68k/m68k-aout.h libgloss.h"
3137 extra_headers=math-68881.h
3140 tmake_file=m68k/t-m68kbare
3141 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
3142 extra_headers=math-68881.h
3149 tm_file=m68k/lynx-ng.h
3151 xm_file=m68k/xm-lynx.h
3153 tmake_file=m68k/t-lynx
3154 extra_headers=math-68881.h
3157 tm_file=m68k/netbsd.h
3158 xm_file=m68k/xm-netbsd.h
3159 # On NetBSD, the headers are already okay, except for math.h.
3160 fixincludes=fixinc.math
3163 m68k-*-sysv3*) # Motorola m68k's running system V.3
3164 xm_file=m68k/xm-m68kv.h
3165 xmake_file=m68k/x-m68kv
3166 extra_parts="crtbegin.o crtend.o"
3167 extra_headers=math-68881.h
3169 m68k-*-sysv4*) # Motorola m68k's running system V.4
3170 tm_file=m68k/m68kv4.h
3171 xm_file=m68k/xm-m68kv.h
3173 extra_parts="crtbegin.o crtend.o"
3174 extra_headers=math-68881.h
3176 m68k-*-linux-gnuaout*) # Motorola m68k's running Linux
3177 xm_file=m68k/xm-linux.h # with a.out format
3179 tm_file=m68k/linux-aout.h
3180 tmake_file="t-linux-aout m68k/t-linux-aout"
3181 fixincludes=Makefile.in #On Linux, the headers are ok already.
3182 extra_headers=math-68881.h
3185 m68k-*-linux-gnulibc1) # Motorola m68k's running Linux
3186 xm_file=m68k/xm-linux.h # with ELF format using the
3187 xmake_file=x-linux # Linux C library 5
3188 tm_file=m68k/linux.h
3189 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3190 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3191 fixincludes=Makefile.in #On Linux, the headers are ok already.
3192 extra_headers=math-68881.h
3195 m68k-*-linux-gnu*) # Motorola m68k's running Linux
3196 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
3197 xmake_file=x-linux # aka the Linux C library 6.
3198 tm_file=m68k/linux.h
3199 tmake_file="t-linux m68k/t-linux"
3200 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3201 fixincludes=Makefile.in #On Linux, the headers are ok already.
3202 extra_headers=math-68881.h
3204 if [ x$enable_threads = xyes ]; then
3209 tmake_file=m68k/t-m68kbare
3210 tm_file=m68k/m68k-psos.h
3211 extra_headers=math-68881.h
3214 tmake_file="m68k/t-m68kbare t-rtems"
3215 tm_file=m68k/rtems.h
3216 extra_headers=math-68881.h
3222 tm_file=m88k/dguxbcs.h
3223 tmake_file=m88k/t-dguxbcs
3227 tmake_file=m88k/t-dgux
3230 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3231 xmake_file=m88k/x-dgux
3234 tmake_file=m88k/t-dgux-gas
3236 fixincludes=fixinc.dgux
3238 m88k-dolphin-sysv3*)
3239 tm_file=m88k/dolph.h
3240 extra_parts="crtbegin.o crtend.o"
3241 xm_file=m88k/xm-sysv3.h
3242 xmake_file=m88k/x-dolph
3245 tmake_file=m88k/t-m88k-gas
3248 m88k-tektronix-sysv3)
3249 tm_file=m88k/tekXD88.h
3250 extra_parts="crtbegin.o crtend.o"
3251 xm_file=m88k/xm-sysv3.h
3252 xmake_file=m88k/x-tekXD88
3255 tmake_file=m88k/t-m88k-gas
3259 tm_file=m88k/m88k-aout.h
3262 tm_file=m88k/m88k-coff.h
3263 tmake_file=m88k/t-bug
3267 extra_parts="crtbegin.o crtend.o"
3270 tmake_file=m88k/t-luna-gas
3272 tmake_file=m88k/t-luna
3276 tm_file=m88k/sysv3.h
3277 extra_parts="crtbegin.o crtend.o"
3278 xm_file=m88k/xm-sysv3.h
3279 xmake_file=m88k/x-sysv3
3282 tmake_file=m88k/t-m88k-gas
3286 tm_file=m88k/sysv4.h
3287 extra_parts="crtbegin.o crtend.o"
3288 xmake_file=m88k/x-sysv4
3289 tmake_file=m88k/t-sysv4
3291 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3292 tm_file=mips/iris6.h
3293 xm_file=mips/xm-iris6.h
3294 fixincludes=fixinc.irix
3295 xmake_file=mips/x-iris6
3296 tmake_file=mips/t-iris6
3297 if [ x$enable_threads = xyes ]; then
3301 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
3302 tm_file=mips/cross64.h
3303 xm_file=mips/xm-iris5.h
3304 fixincludes=Makefile.in
3305 xmake_file=mips/x-iris
3306 tmake_file=mips/t-cross64
3307 # See comment in mips/iris[56].h files.
3309 if [ x$enable_threads = xyes ]; then
3316 if [ x$stabs = xyes ]
3318 tm_file=mips/iris5gdb.h
3320 tm_file=mips/sni-gas.h
3323 tm_file=mips/sni-svr4.h
3325 xm_file=mips/xm-sysv.h
3326 xmake_file=mips/x-sni-svr4
3327 tmake_file=mips/t-mips-gas
3328 if [ x$gnu_ld != xyes ]
3333 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3336 tm_file=mips/iris5gas.h
3337 if [ x$stabs = xyes ]
3339 tm_file="${tm_file} dbx.h"
3342 tm_file=mips/iris5.h
3344 xm_file=mips/xm-iris5.h
3345 fixincludes=fixinc.irix
3346 xmake_file=mips/x-iris
3347 # mips-tfile doesn't work yet
3348 tmake_file=mips/t-mips-gas
3349 # See comment in mips/iris5.h file.
3351 if [ x$enable_threads = xyes ]; then
3355 mips-sgi-irix4loser*) # Mostly like a MIPS.
3356 tm_file=mips/iris4loser.h
3357 if [ x$stabs = xyes ]; then
3358 tm_file="${tm_file} dbx.h"
3360 xm_file=mips/xm-iris4.h
3361 xmake_file=mips/x-iris
3364 tmake_file=mips/t-mips-gas
3366 extra_passes="mips-tfile mips-tdump"
3368 if [ x$gnu_ld != xyes ]
3372 if [ x$enable_threads = xyes ]; then
3376 mips-sgi-irix4*) # Mostly like a MIPS.
3377 tm_file=mips/iris4.h
3378 if [ x$stabs = xyes ]; then
3379 tm_file="${tm_file} dbx.h"
3381 xm_file=mips/xm-iris4.h
3382 xmake_file=mips/x-iris
3385 tmake_file=mips/t-mips-gas
3387 extra_passes="mips-tfile mips-tdump"
3389 if [ x$gnu_ld != xyes ]
3393 if [ x$enable_threads = xyes ]; then
3397 mips-sgi-*) # Mostly like a MIPS.
3398 tm_file=mips/iris3.h
3399 if [ x$stabs = xyes ]; then
3400 tm_file="${tm_file} dbx.h"
3402 xm_file=mips/xm-iris3.h
3403 xmake_file=mips/x-iris3
3406 tmake_file=mips/t-mips-gas
3408 extra_passes="mips-tfile mips-tdump"
3410 if [ x$gnu_ld != xyes ]
3415 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
3416 tm_file=mips/osfrose.h
3417 xmake_file=mips/x-osfrose
3418 tmake_file=mips/t-osfrose
3419 extra_objs=halfpic.o
3422 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
3423 tm_file=mips/dec-osf1.h
3424 if [ x$stabs = xyes ]; then
3425 tm_file="${tm_file} dbx.h"
3427 xmake_file=mips/x-dec-osf1
3430 tmake_file=mips/t-mips-gas
3432 tmake_file=mips/t-ultrix
3433 extra_passes="mips-tfile mips-tdump"
3435 if [ x$gnu_ld != xyes ]
3440 mips-dec-bsd*) # Decstation running 4.4 BSD
3441 tm_file=mips/dec-bsd.h
3445 tmake_file=mips/t-mips-gas
3447 tmake_file=mips/t-ultrix
3448 extra_passes="mips-tfile mips-tdump"
3450 if [ x$gnu_ld != xyes ]
3455 mips-dec-netbsd*) # Decstation running NetBSD
3456 tm_file=mips/netbsd.h
3457 xm_file=mips/xm-netbsd.h
3458 # On NetBSD, the headers are already okay, except for math.h.
3459 fixincludes=fixinc.math
3462 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
3463 tm_file=mips/news4.h
3464 if [ x$stabs = xyes ]; then
3465 tm_file="${tm_file} dbx.h"
3469 tmake_file=mips/t-mips-gas
3471 extra_passes="mips-tfile mips-tdump"
3473 if [ x$gnu_ld != xyes ]
3477 xmake_file=mips/x-sony
3479 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
3480 # That is based on svr4.
3481 # t-svr4 is not right because this system doesn't use ELF.
3482 tm_file=mips/news5.h
3483 if [ x$stabs = xyes ]; then
3484 tm_file="${tm_file} dbx.h"
3486 xm_file=mips/xm-news.h
3489 tmake_file=mips/t-mips-gas
3491 extra_passes="mips-tfile mips-tdump"
3493 if [ x$gnu_ld != xyes ]
3498 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
3499 tm_file=mips/svr4-t.h
3500 if [ x$stabs = xyes ]; then
3501 tm_file="${tm_file} dbx.h"
3503 xm_file=mips/xm-sysv4.h
3504 xmake_file=mips/x-sysv
3507 tmake_file=mips/t-mips-gas
3508 extra_parts="crtbegin.o crtend.o"
3510 tmake_file=mips/t-mips
3511 extra_passes="mips-tfile mips-tdump"
3513 if [ x$gnu_ld != xyes ]
3518 mips-*-ultrix* | mips-dec-mach3) # Decstation.
3519 tm_file=mips/ultrix.h
3520 if [ x$stabs = xyes ]; then
3521 tm_file="${tm_file} dbx.h"
3523 xmake_file=mips/x-ultrix
3526 tmake_file=mips/t-mips-gas
3528 tmake_file=mips/t-ultrix
3529 extra_passes="mips-tfile mips-tdump"
3531 if [ x$gnu_ld != xyes ]
3536 mips-*-riscos[56789]bsd*)
3537 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
3538 if [ x$stabs = xyes ]; then
3539 tm_file="${tm_file} dbx.h"
3543 tmake_file=mips/t-bsd-gas
3545 tmake_file=mips/t-bsd
3546 extra_passes="mips-tfile mips-tdump"
3548 if [ x$gnu_ld != xyes ]
3553 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
3554 tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
3555 if [ x$stabs = xyes ]; then
3556 tm_file="${tm_file} dbx.h"
3560 tmake_file=mips/t-bsd-gas
3562 tmake_file=mips/t-bsd
3563 extra_passes="mips-tfile mips-tdump"
3565 if [ x$gnu_ld != xyes ]
3570 mips-*-riscos[56789]sysv4*)
3571 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
3572 if [ x$stabs = xyes ]; then
3573 tm_file="${tm_file} dbx.h"
3575 xm_file=mips/xm-sysv4.h
3576 xmake_file=mips/x-sysv
3579 tmake_file=mips/t-svr4-gas
3581 tmake_file=mips/t-svr4
3582 extra_passes="mips-tfile mips-tdump"
3584 if [ x$gnu_ld != xyes ]
3589 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
3590 tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
3591 if [ x$stabs = xyes ]; then
3592 tm_file="${tm_file} dbx.h"
3594 xm_file=mips/xm-sysv.h
3595 xmake_file=mips/x-sysv
3598 tmake_file=mips/t-svr4-gas
3600 tmake_file=mips/t-svr4
3601 extra_passes="mips-tfile mips-tdump"
3603 if [ x$gnu_ld != xyes ]
3608 mips-*-riscos[56789]sysv*)
3609 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
3610 if [ x$stabs = xyes ]; then
3611 tm_file="${tm_file} dbx.h"
3613 xm_file=mips/xm-sysv.h
3614 xmake_file=mips/x-sysv
3617 tmake_file=mips/t-svr3-gas
3619 tmake_file=mips/t-svr3
3620 extra_passes="mips-tfile mips-tdump"
3622 if [ x$gnu_ld != xyes ]
3627 mips-*-sysv* | mips-*-riscos*sysv*)
3628 tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
3629 if [ x$stabs = xyes ]; then
3630 tm_file="${tm_file} dbx.h"
3632 xm_file=mips/xm-sysv.h
3633 xmake_file=mips/x-sysv
3636 tmake_file=mips/t-svr3-gas
3638 tmake_file=mips/t-svr3
3639 extra_passes="mips-tfile mips-tdump"
3641 if [ x$gnu_ld != xyes ]
3646 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3647 tm_file=mips/mips-5.h
3648 if [ x$stabs = xyes ]; then
3649 tm_file="${tm_file} dbx.h"
3653 tmake_file=mips/t-mips-gas
3655 extra_passes="mips-tfile mips-tdump"
3657 if [ x$gnu_ld != xyes ]
3665 tm_file=mips/ecoffl.h
3666 if [ x$stabs = xyes ]; then
3667 tm_file="${tm_file} dbx.h"
3669 tmake_file=mips/t-ecoff
3672 tm_file=mips/ecoff.h
3673 if [ x$stabs = xyes ]; then
3674 tm_file="${tm_file} dbx.h"
3676 tmake_file=mips/t-ecoff
3679 tm_file="mips/elfl.h libgloss.h"
3680 tmake_file=mips/t-ecoff
3683 tm_file="mips/elf.h libgloss.h"
3684 tmake_file=mips/t-ecoff
3687 tm_file="mips/elfl64.h libgloss.h"
3688 tmake_file=mips/t-ecoff
3690 mips64orionel-*-elf*)
3691 tm_file="mips/elflorion.h libgloss.h"
3692 tmake_file=mips/t-ecoff
3695 tm_file="mips/elf64.h libgloss.h"
3696 tmake_file=mips/t-ecoff
3699 tm_file="mips/elforion.h libgloss.h"
3700 tmake_file=mips/t-ecoff
3702 mips64orion-*-rtems*)
3703 tm_file=mips/rtems64.h
3704 tmake_file="mips/t-ecoff t-rtems"
3707 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
3708 tmake_file=mips/t-ecoff
3711 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
3712 tmake_file=mips/t-ecoff
3714 mips-*-*) # Default MIPS RISC-OS 4.0.
3715 if [ x$stabs = xyes ]; then
3716 tm_file="${tm_file} dbx.h"
3720 tmake_file=mips/t-mips-gas
3722 extra_passes="mips-tfile mips-tdump"
3724 if [ x$gnu_ld != xyes ]
3731 tm_file="mn10200/mn10200.h"
3732 if [ x$stabs = xyes ]
3734 tm_file="${tm_file} dbx.h"
3740 tm_file="mn10300/mn10300.h"
3741 if [ x$stabs = xyes ]
3743 tm_file="${tm_file} dbx.h"
3748 tm_file=ns32k/encore.h
3752 tm_file=ns32k/sequent.h
3756 tm_file=ns32k/tek6100.h
3760 tm_file=ns32k/tek6200.h
3763 # This has not been updated to GCC 2.
3765 # xm_file=ns32k/xm-genix.h
3766 # xmake_file=ns32k/x-genix
3767 # tm_file=ns32k/genix.h
3771 tm_file=ns32k/merlin.h
3775 tm_file=ns32k/pc532-mach.h
3779 tm_file=ns32k/pc532-min.h
3780 xm_file=ns32k/xm-pc532-min.h
3783 ns32k-pc532-netbsd*)
3784 tm_file=ns32k/netbsd.h
3785 xm_file=ns32k/xm-netbsd.h
3786 # On NetBSD, the headers are already okay, except for math.h.
3787 fixincludes=fixinc.math
3791 tm_file="${tm_file} pdp11/2bsd.h"
3797 xmake_file=pyr/x-pyr
3804 xmake_file=romp/x-mach
3807 powerpc-*-sysv* | powerpc-*-elf*)
3808 tm_file=rs6000/sysv4.h
3809 xm_file=rs6000/xm-sysv4.h
3810 extra_headers=ppc-asm.h
3813 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3815 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3817 xmake_file=rs6000/x-sysv4
3820 tm_file=rs6000/eabiaix.h
3821 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3822 fixincludes=Makefile.in
3823 extra_headers=ppc-asm.h
3826 tm_file=rs6000/eabisim.h
3827 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3828 fixincludes=Makefile.in
3829 extra_headers=ppc-asm.h
3832 tm_file=rs6000/eabi.h
3835 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3837 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3839 fixincludes=Makefile.in
3840 extra_headers=ppc-asm.h
3843 tm_file=rs6000/rtems.h
3846 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3848 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
3850 fixincludes=Makefile.in
3851 extra_headers=ppc-asm.h
3853 powerpc-*-linux-gnu*)
3854 tm_file=rs6000/linux.h
3855 xm_file=rs6000/xm-sysv4.h
3856 out_file=rs6000/rs6000.c
3859 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3861 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3864 fixincludes=Makefile.in
3865 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3866 extra_headers=ppc-asm.h
3867 if [ x$enable_threads = xyes ]; then
3873 xm_file=rs6000/xm-sysv4.h
3874 tm_file=rs6000/vxppc.h
3875 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3876 extra_headers=ppc-asm.h
3878 powerpcle-*-sysv* | powerpcle-*-elf*)
3879 tm_file=rs6000/sysv4le.h
3880 xm_file=rs6000/xm-sysv4.h
3883 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3885 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3887 xmake_file=rs6000/x-sysv4
3888 extra_headers=ppc-asm.h
3890 powerpcle-*-eabisim*)
3891 tm_file=rs6000/eabilesim.h
3892 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3893 fixincludes=Makefile.in
3894 extra_headers=ppc-asm.h
3897 tm_file=rs6000/eabile.h
3900 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3902 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3904 fixincludes=Makefile.in
3905 extra_headers=ppc-asm.h
3907 powerpcle-*-winnt* )
3908 tm_file=rs6000/win-nt.h
3909 tmake_file=rs6000/t-winnt
3911 fixincludes=Makefile.in
3912 if [ x$enable_threads = xyes ]; then
3915 extra_headers=ppc-asm.h
3917 powerpcle-*-pe | powerpcle-*-cygwin32)
3918 tm_file=rs6000/cygwin32.h
3919 xm_file=rs6000/xm-cygwin32.h
3920 tmake_file=rs6000/t-winnt
3921 xmake_file=rs6000/x-cygwin32
3923 fixincludes=Makefile.in
3924 if [ x$enable_threads = xyes ]; then
3928 extra_headers=ppc-asm.h
3930 powerpcle-*-solaris2*)
3931 tm_file=rs6000/sol2.h
3932 xm_file=rs6000/xm-sysv4.h
3935 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3937 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3939 xmake_file=rs6000/x-sysv4
3940 fixincludes=fixinc.math
3941 extra_headers=ppc-asm.h
3943 rs6000-ibm-aix3.[01]*)
3944 tm_file=rs6000/aix31.h
3945 xmake_file=rs6000/x-aix31
3948 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3949 tm_file=rs6000/aix3newas.h
3950 if [ x$host != x$target ]
3952 tmake_file=rs6000/t-xnewas
3954 tmake_file=rs6000/t-newas
3958 rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
3959 tm_file=rs6000/aix41.h
3960 if [ x$host != x$target ]
3962 tmake_file=rs6000/t-xnewas
3964 tmake_file=rs6000/t-newas
3966 xmake_file=rs6000/x-aix31
3976 tm_file=rs6000/mach.h
3977 xm_file=rs6000/xm-mach.h
3978 xmake_file=rs6000/x-mach
3982 tm_file=rs6000/lynx.h
3983 xm_file=rs6000/xm-lynx.h
3984 tmake_file=rs6000/t-rs6000
3985 xmake_file=rs6000/x-lynx
3993 tmake_file="sh/t-sh t-rtems"
4002 xm_file=sparc/xm-pbd.h
4004 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
4005 tm_file=sparc/vxsparc.h
4006 tmake_file=sparc/t-vxsparc
4010 tmake_file=sparc/t-sparcbare
4011 tm_file="sparc/aout.h libgloss.h"
4014 tm_file=sparc/netbsd.h
4015 xm_file=sparc/xm-netbsd.h
4016 # On NetBSD, the headers are already okay, except for math.h.
4017 fixincludes=fixinc.math
4025 tmake_file=sparc/t-elf
4026 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4030 sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out
4031 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
4032 tm_file=sparc/linux-aout.h
4034 fixincludes=Makefile.in #On Linux, the headers are ok already.
4037 sparc-*-linux-gnulibc1*) # Sparc's running Linux, libc5
4038 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
4040 tm_file=sparc/linux.h
4041 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
4042 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4043 fixincludes=Makefile.in #On Linux, the headers are ok already.
4046 sparc-*-linux-gnu*) # Sparc's running Linux, libc6
4047 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
4049 tm_file=sparc/linux.h
4050 tmake_file="t-linux sparc/t-linux"
4051 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4052 fixincludes=Makefile.in #On Linux, the headers are ok already.
4054 if [ x$enable_threads = xyes ]; then
4061 tm_file=sparc/lynx.h
4063 tm_file=sparc/lynx-ng.h
4065 xm_file=sparc/xm-lynx.h
4066 tmake_file=sparc/t-sunos41
4070 tmake_file="sparc/t-sparcbare t-rtems"
4071 tm_file=sparc/rtems.h
4074 tm_file=sparc/sol2.h
4075 xm_file=sparc/xm-sol2.h
4076 tmake_file=sparc/t-sol2
4077 xmake_file=sparc/x-sysv4
4078 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4079 fixincludes=fixinc.svr4
4082 if [ x$enable_threads = xyes ]; then
4083 thread_file='solaris'
4087 tm_file=sparc/sunos4.h
4088 tmake_file=sparc/t-sunos40
4092 tm_file=sparc/sunos4.h
4093 tmake_file=sparc/t-sunos41
4095 if [ x$gas = xyes ]; then
4096 tm_file="${tm_file} sparc/sun4gas.h"
4100 tm_file=sparc/sun4o3.h
4104 tm_file=sparc/sysv4.h
4105 xm_file=sparc/xm-sysv4.h
4107 xmake_file=sparc/x-sysv4
4108 extra_parts="crtbegin.o crtend.o"
4111 xm_file=sparc/xm-sol2.h
4112 tm_file=sparc/vxsim.h
4113 tmake_file=sparc/t-vxsparc
4114 xmake_file=sparc/x-sysv4
4117 tm_file="sparc/splet.h libgloss.h"
4118 tmake_file=sparc/t-splet
4121 tm_file="sparc/litecoff.h libgloss.h"
4122 tmake_file=sparc/t-sparclite
4125 tm_file="sparc/lite.h aoutos.h libgloss.h"
4126 tmake_file=sparc/t-sparclite
4129 tmake_file=sparc/t-sp64
4130 tm_file=sparc/sp64-aout.h
4133 tmake_file=sparc/t-sp64
4134 tm_file=sparc/sp64-elf.h
4135 extra_parts="crtbegin.o crtend.o"
4137 sparc64-*-linux*) # 64-bit Sparc's running Linux
4138 tmake_file=sparc/t-sp64
4139 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
4140 tm_file=sparc/linux64.h
4142 fixincludes=Makefile.in # On Linux, the headers are ok already.
4145 # This hasn't been upgraded to GCC 2.
4146 # tahoe-harris-*) # Harris tahoe, using COFF.
4147 # tm_file=tahoe/harris.h
4149 # tahoe-*-bsd*) # tahoe running BSD
4151 # This hasn't been upgraded to GCC 2.
4158 tm_file="v850/v850.h"
4159 xm_file="v850/xm-v850.h"
4160 if [ x$stabs = xyes ]
4162 tm_file="${tm_file} dbx.h"
4166 vax-*-bsd*) # vaxen running BSD
4170 vax-*-sysv*) # vaxen running system V
4171 tm_file="${tm_file} vax/vaxv.h"
4172 xm_file="${tm_file} vax/xm-vaxv.h"
4176 tm_file="${tm_file} netbsd.h vax/netbsd.h"
4177 xm_file="${xm_file} xm-netbsd.h"
4178 # On NetBSD, the headers are already okay, except for math.h.
4179 fixincludes=fixinc.math
4183 vax-*-ultrix*) # vaxen running ultrix
4184 tm_file="${tm_file} vax/ultrix.h"
4188 vax-*-vms*) # vaxen running VMS
4189 xm_file=vax/xm-vms.h
4193 vax-*-*) # vax default entry
4197 xm_file="${xm_file} xm-svr3"
4201 echo "Configuration $machine not supported" 1>&2
4208 ;; # Existing Linux/GNU systems do not use the GNU setup.
4210 # On the GNU system, the setup is just about the same on
4211 # each different CPU. The specific machines that GNU
4212 # supports are matched above and just set $cpu_type.
4213 xm_file=${cpu_type}/xm-gnu.h
4214 tm_file=${cpu_type}/gnu.h
4215 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4216 # GNU always uses ELF.
4218 # GNU tools are the only tools.
4221 # On GNU, the headers are already okay.
4222 fixincludes=Makefile.in
4223 xmake_file=x-linux # These details are the same as Linux.
4224 tmake_file=t-gnu # These are not.
4227 fixincludes=fixinc.svr4
4228 xmake_try_sysv=x-sysv
4229 install_headers_dir=install-headers-cpio
4232 install_headers_dir=install-headers-cpio
4236 # Distinguish i[3456]86
4237 # Also, do not run mips-tfile on MIPS if using gas.
4238 # Process --with-cpu= for PowerPC/rs6000
4239 target_cpu_default2=
4242 target_cpu_default2=1
4245 target_cpu_default2=2
4248 target_cpu_default2=3
4253 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4256 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|TASK_MAX"
4259 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
4262 target_cpu_default2="MASK_CPU_EV5"
4268 if [ x$target_cpu_default2 = x ]
4270 target_cpu_default2="MASK_GAS"
4272 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4276 mips*-*-ecoff* | mips*-*-elf*)
4279 if [ x$gnu_ld = xyes ]
4281 target_cpu_default2=20
4283 target_cpu_default2=16
4290 target_cpu_default2=16
4293 powerpc*-*-* | rs6000-*-*)
4294 case "x$with_cpu" in
4298 xcommon | xpower | xpower2 | xpowerpc | xrios \
4299 | xrios1 | xrios2 | xrsc | xrsc1 \
4300 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4301 | x403 | x505 | x801 | x821 | x823 | x860)
4302 target_cpu_default2="\"$with_cpu\""
4306 echo "--with-cpu must be passed a value" 1>&2
4311 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4317 case ".$with_cpu" in
4319 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4321 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
4322 target_cpu_default2="TARGET_CPU_$with_cpu"
4325 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4332 if [ x$target_cpu_default2 != x ]
4334 if [ x$target_cpu_default != x ]
4336 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4338 target_cpu_default=$target_cpu_default2
4342 # No need for collect2 if we have the GNU linker.
4349 # Save data on machine being used to compile GCC in build_xm_file.
4350 # Save data on host machine in vars host_xm_file and host_xmake_file.
4351 if [ x$pass1done = x ]
4353 if [ x"$xm_file" = x ]
4354 then build_xm_file=$cpu_type/xm-$cpu_type.h
4355 else build_xm_file=$xm_file
4357 build_install_headers_dir=$install_headers_dir
4358 build_exeext=$exeext
4361 if [ x$pass2done = x ]
4363 if [ x"$xm_file" = x ]
4364 then host_xm_file=$cpu_type/xm-$cpu_type.h
4365 else host_xm_file=$xm_file
4367 if [ x"$xmake_file" = x ]
4368 then xmake_file=$cpu_type/x-$cpu_type
4370 host_xmake_file="$xmake_file"
4371 host_truncate_target=$truncate_target
4372 host_extra_gcc_objs=$extra_gcc_objs
4373 host_extra_objs=$extra_host_objs
4379 extra_objs="${host_extra_objs} ${extra_objs}"
4381 # Default the target-machine variables that were not explicitly set.
4382 if [ x"$tm_file" = x ]
4383 then tm_file=$cpu_type/$cpu_type.h; fi
4385 if [ x$extra_headers = x ]
4386 then extra_headers=; fi
4388 if [ x"$xm_file" = x ]
4389 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4391 md_file=$cpu_type/$cpu_type.md
4393 if [ x$out_file = x ]
4394 then out_file=$cpu_type/$cpu_type.c; fi
4396 if [ x"$tmake_file" = x ]
4397 then tmake_file=$cpu_type/t-$cpu_type
4400 if [ x$float_format = x ]
4401 then float_format=i64
4404 # Say what files are being used for the output code and MD file.
4405 echo "Using \`$srcdir/config/$out_file' to output insns."
4406 echo "Using \`$srcdir/config/$md_file' as machine description file."
4409 for f in $tm_file; do
4412 if [ $count = ax ]; then
4413 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4415 echo "Using the following target machine macro files:"
4416 for f in $tm_file; do
4417 echo " $srcdir/config/$f"
4422 for f in $host_xm_file; do
4425 if [ $count = ax ]; then
4426 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4428 echo "Using the following host machine macro files:"
4429 for f in $host_xm_file; do
4430 echo " $srcdir/config/$f"
4434 if [ "$host_xm_file" != "$build_xm_file" ]; then
4436 for f in $build_xm_file; do
4439 if [ $count = ax ]; then
4440 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4442 echo "Using the following build machine macro files:"
4443 for f in $build_xm_file; do
4444 echo " $srcdir/config/$f"
4449 if [ x$thread_file = x ]
4450 then thread_file='single'
4453 # Set up the header files.
4454 # $links is the list of header files to create.
4455 # $vars is the list of shell variables with file names to include.
4456 # auto-conf.h is the file containing items generated by autoconf and is
4457 # the first file included by config.h.
4458 host_xm_file="auto-config.h ${host_xm_file}"
4459 vars="host_xm_file tm_file xm_file build_xm_file"
4460 links="config.h tm.h tconfig.h hconfig.h"
4463 if [ -f config.status ]; then mv -f config.status config.bak; fi
4466 while [ -n "$vars" ]
4468 # set file to car of files, files to cdr of files
4469 set $vars; var=$1; shift; vars=$*
4470 set $links; link=$1; shift; links=$*
4474 # Define TARGET_CPU_DEFAULT if the system wants one.
4475 # This substitutes for lots of *.h files.
4476 if [ x$target_cpu_default != x -a $link = tm.h ]
4478 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
4481 for file in `eval echo '$'$var`; do
4482 echo "#include \"$file\"" >>$link
4486 # Truncate the target if necessary
4487 if [ x$host_truncate_target != x ]; then
4488 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4491 # Get the version number from the toplevel
4492 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4494 # Get an absolute path to the GCC top-level source directory
4500 # Conditionalize the makefile for this host machine.
4501 # Make-host contains the concatenation of all host makefile fragments
4502 # [there can be more than one]. This file is built by configure.frag.
4503 host_overrides=Make-host
4504 dep_host_xmake_file=
4505 for f in .. ${host_xmake_file}
4507 if [ -f ${srcdir}/config/$f ]
4509 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4513 # Conditionalize the makefile for this target machine.
4514 # Make-target contains the concatenation of all host makefile fragments
4515 # [there can be more than one]. This file is built by configure.frag.
4516 target_overrides=Make-target
4518 for f in .. ${tmake_file}
4520 if [ -f ${srcdir}/config/$f ]
4522 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4526 # If the host doesn't support symlinks, modify CC in
4527 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4528 # Otherwise, we can use "CC=$(CC)".
4530 if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
4532 cc_set_by_configure="\$(CC)"
4533 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4535 symbolic_link="cp -p"
4536 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4537 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4541 out_object_file=`basename $out_file .c`.o
4544 for f in $tm_file; do
4545 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
4549 for f in $host_xm_file; do
4550 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
4554 for f in $build_xm_file; do
4555 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
4558 # Define macro CROSS_COMPILE in compilation
4559 # if this is a cross-compiler.
4560 # Also use all.cross instead of all.internal
4561 # and add cross-make to Makefile.
4562 cross_overrides="/dev/null"
4563 if [ x$host != x$target ]
4565 cross_defines="CROSS=-DCROSS_COMPILE"
4566 cross_overrides="${topdir}/cross-make"
4569 # When building gcc with a cross-compiler, we need to fix a few things.
4570 # This must come after cross-make as we want all.build to override
4572 build_overrides="/dev/null"
4573 if [ x$build != x$host ]
4575 build_overrides="${topdir}/build-make"
4578 # Expand extra_headers to include complete path.
4579 # This substitutes for lots of t-* files.
4581 if [ "x$extra_headers" = x ]
4584 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4585 for file in $extra_headers;
4587 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4591 # Add a definition of USE_COLLECT2 if system wants one.
4592 # Also tell toplev.c what to do.
4593 # This substitutes for lots of t-* files.
4594 if [ x$use_collect2 = x ]
4599 will_use_collect2="ld"
4600 maybe_use_collect2="-DUSE_COLLECT2"
4604 # Set MD_DEPS if the real md file is in md.pre-cpp.
4605 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4606 # for line oriented comments, so we must always use a GNU cpp. If
4607 # building gcc with a cross compiler, use the cross compiler just
4608 # built. Otherwise, we can use the cpp just built.
4610 if [ "x$md_cppflags" = x ]
4612 md_file_sub=$srcdir/config/$md_file
4617 # If we have gas in the build tree, make a link to it.
4618 if [ -f ../gas/Makefile ]; then
4619 rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
4622 # If we have ld in the build tree, make a link to it.
4623 if [ -f ../ld/Makefile ]; then
4624 # if [[ x$use_collect2 = x ]]; then
4625 # rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
4627 rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
4631 # Figure out what language subdirectories are present.
4633 for lang in ${srcdir}/*/config-lang.in ..
4637 # The odd quoting in the next line works around
4638 # an apparent bug in bash 1.12 on linux.
4639 ${srcdir}/[*]/config-lang.in) ;;
4640 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4644 # Make empty files to contain the specs and options for each language.
4645 # Then add #include lines to for a compiler that has specs and/or options.
4649 rm -f specs.h options.h
4650 touch specs.h options.h
4651 for subdir in . $subdirs
4653 if [ -f $srcdir/$subdir/lang-specs.h ]; then
4654 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4655 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4657 if [ -f $srcdir/$subdir/lang-options.h ]; then
4658 echo "#include \"$subdir/lang-options.h\"" >>options.h
4659 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4663 # These (without "all_") are set in each config-lang.in.
4664 # `language' must be a single word so is spelled singularly.
4670 all_outputs=Makefile
4671 # List of language makefile fragments.
4676 # Add the language fragments.
4677 # Languages are added via two mechanisms. Some information must be
4678 # recorded in makefile variables, these are defined in config-lang.in.
4679 # We accumulate them and plug them into the main Makefile.
4680 # The other mechanism is a set of hooks for each of the main targets
4681 # like `clean', `install', etc.
4683 language_fragments="Make-lang"
4684 language_hooks="Make-hooks"
4687 for s in .. $subdirs
4699 . ${srcdir}/$s/config-lang.in
4700 if [ "x$language" = x ]
4702 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4705 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4706 all_languages="$all_languages $language"
4707 if [ "x$boot_language" = xyes ]
4709 all_boot_languages="$all_boot_languages $language"
4711 all_compilers="$all_compilers $compilers"
4712 all_stagestuff="$all_stagestuff $stagestuff"
4713 all_diff_excludes="$all_diff_excludes $diff_excludes"
4714 all_headers="$all_headers $headers"
4715 all_outputs="$all_outputs $outputs"
4716 if [ x$outputs = x ]
4718 oldstyle_subdirs="$oldstyle_subdirs $s"
4720 all_lib2funcs="$all_lib2funcs $lib2funcs"
4724 # Since we can't use `::' targets, we link each language in
4725 # with a set of hooks, reached indirectly via lang.${target}.
4729 target_list="all.build all.cross start.encap rest.encap \
4731 install-normal install-common install-info install-man \
4733 mostlyclean clean distclean extraclean maintainer-clean \
4734 stage1 stage2 stage3 stage4"
4735 for t in $target_list
4738 for l in .. $all_languages
4740 if [ $l != ".." ]; then
4744 echo "lang.$t: $x" >> Make-hooks
4747 # If we're not building in srcdir, create .gdbinit.
4749 if [ ! -f Makefile.in ]; then
4750 echo "dir ." > .gdbinit
4751 echo "dir ${srcdir}" >> .gdbinit
4752 if [ x$gdb_needs_out_file_path = xyes ]
4754 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4756 if [ "x$subdirs" != x ]; then
4759 echo "dir ${srcdir}/$s" >> .gdbinit
4762 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4765 # If this is using newlib, then define inhibit_libc in
4766 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4767 # libgcc.a, but that's OK because newib should have its own version of
4770 if [ x$with_newlib = xyes ]; then
4771 inhibit_libc=-Dinhibit_libc
4775 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4778 if [ x$enable_haifa = xyes ]; then
4779 echo "Using the Haifa scheduler."
4781 sched_cflags=-DHAIFA
4785 if [ x$enable_haifa != x ]; then
4786 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4787 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4795 # Process the language and host/target makefile fragments.
4796 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4798 # Substitute configuration variables
4849 # Echo that links are built
4850 if [ x$host = x$target ]
4858 if [ x$host != x$build ]
4860 str3=" on a $build system"
4863 if [ "x$str2" != x ] || [ "x$str3" != x ]
4868 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4870 if [ "x$str2" != x ] || [ "x$str3" != x ]
4872 echo " ${str2}${str3}." 1>&2
4875 # Configure the subdirectories
4876 # AC_CONFIG_SUBDIRS($subdirs)
4878 # Create the Makefile
4879 # and configure language subdirectories
4881 cat > confcache <<\EOF
4882 # This file is a shell script that caches the results of configure
4883 # tests run on this system so they can be shared between configure
4884 # scripts and configure runs. It is not useful on other systems.
4885 # If it contains results you don't want to keep, you may remove or edit it.
4887 # By default, configure uses ./config.cache as the cache file,
4888 # creating it if it does not exist already. You can give configure
4889 # the --cache-file=FILE option to use a different cache file; that is
4890 # what configure does when it calls configure scripts in
4891 # subdirectories, so they share the cache.
4892 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4893 # config.status only pays attention to the cache file if you give it the
4894 # --recheck option to rerun configure.
4897 # The following way of writing the cache mishandles newlines in values,
4898 # but we know of no workaround that is simple, portable, and efficient.
4899 # So, don't put newlines in cache variables' values.
4900 # Ultrix sh set writes to stderr and can't be redirected directly,
4901 # and sets the high bit in the cache file unless we assign to the vars.
4903 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4905 # `set' does not quote correctly, so add quotes (double-quote substitution
4906 # turns \\\\ into \\, and sed turns \\ into \).
4908 -e "s/'/'\\\\''/g" \
4909 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4912 # `set' quotes correctly as required by POSIX, so do not add quotes.
4913 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4916 if cmp -s $cache_file confcache; then
4919 if test -w $cache_file; then
4920 echo "updating cache $cache_file"
4921 cat confcache > $cache_file
4923 echo "not updating unwritable cache $cache_file"
4928 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4931 # Let make expand exec_prefix.
4932 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4934 # Any assignment to VPATH causes Sun make to only execute
4935 # the first set of double-colon rules, so remove it if not needed.
4936 # If there is a colon in the path, we need to keep it.
4937 if test "x$srcdir" = x.; then
4938 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4941 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4943 DEFS=-DHAVE_CONFIG_H
4945 # Without the "./", some shells look in PATH for config.status.
4946 : ${CONFIG_STATUS=./config.status}
4948 echo creating $CONFIG_STATUS
4949 rm -f $CONFIG_STATUS
4950 cat > $CONFIG_STATUS <<EOF
4952 # Generated automatically by configure.
4953 # Run this file to recreate the current configuration.
4954 # This directory was configured as follows,
4955 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4957 # $0 $ac_configure_args
4959 # Compiler output produced by configure, useful for debugging
4960 # configure, is in ./config.log if it exists.
4962 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4965 case "\$ac_option" in
4966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4967 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4968 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4969 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4970 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
4972 -help | --help | --hel | --he | --h)
4973 echo "\$ac_cs_usage"; exit 0 ;;
4974 *) echo "\$ac_cs_usage"; exit 1 ;;
4978 ac_given_srcdir=$srcdir
4980 trap 'rm -fr `echo "$all_outputs auto-config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4982 cat >> $CONFIG_STATUS <<EOF
4984 # Protect against being on the right side of a sed subst in config.status.
4985 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4986 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4990 s%@CFLAGS@%$CFLAGS%g
4991 s%@CPPFLAGS@%$CPPFLAGS%g
4992 s%@CXXFLAGS@%$CXXFLAGS%g
4994 s%@LDFLAGS@%$LDFLAGS%g
4996 s%@exec_prefix@%$exec_prefix%g
4997 s%@prefix@%$prefix%g
4998 s%@program_transform_name@%$program_transform_name%g
4999 s%@bindir@%$bindir%g
5000 s%@sbindir@%$sbindir%g
5001 s%@libexecdir@%$libexecdir%g
5002 s%@datadir@%$datadir%g
5003 s%@sysconfdir@%$sysconfdir%g
5004 s%@sharedstatedir@%$sharedstatedir%g
5005 s%@localstatedir@%$localstatedir%g
5006 s%@libdir@%$libdir%g
5007 s%@includedir@%$includedir%g
5008 s%@oldincludedir@%$oldincludedir%g
5009 s%@infodir@%$infodir%g
5010 s%@mandir@%$mandir%g
5012 s%@host_alias@%$host_alias%g
5013 s%@host_cpu@%$host_cpu%g
5014 s%@host_vendor@%$host_vendor%g
5015 s%@host_os@%$host_os%g
5016 s%@target@%$target%g
5017 s%@target_alias@%$target_alias%g
5018 s%@target_cpu@%$target_cpu%g
5019 s%@target_vendor@%$target_vendor%g
5020 s%@target_os@%$target_os%g
5022 s%@build_alias@%$build_alias%g
5023 s%@build_cpu@%$build_cpu%g
5024 s%@build_vendor@%$build_vendor%g
5025 s%@build_os@%$build_os%g
5027 s%@SET_MAKE@%$SET_MAKE%g
5030 s%@LEXLIB@%$LEXLIB%g
5033 s%@RANLIB@%$RANLIB%g
5035 s%@INSTALL@%$INSTALL%g
5036 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5037 s%@INSTALL_DATA@%$INSTALL_DATA%g
5039 s%@manext@%$manext%g
5040 s%@objext@%$objext%g
5041 s%@inhibit_libc@%$inhibit_libc%g
5042 s%@sched_prefix@%$sched_prefix%g
5043 s%@sched_cflags@%$sched_cflags%g
5044 s%@subdirs@%$subdirs%g
5045 s%@all_languages@%$all_languages%g
5046 s%@all_boot_languages@%$all_boot_languages%g
5047 s%@all_compilers@%$all_compilers%g
5048 s%@all_lang_makefiles@%$all_lang_makefiles%g
5049 s%@all_stagestuff@%$all_stagestuff%g
5050 s%@all_diff_excludes@%$all_diff_excludes%g
5051 s%@all_lib2funcs@%$all_lib2funcs%g
5052 s%@all_headers@%$all_headers%g
5053 s%@extra_passes@%$extra_passes%g
5054 s%@extra_programs@%$extra_programs%g
5055 s%@extra_parts@%$extra_parts%g
5056 s%@extra_c_objs@%$extra_c_objs%g
5057 s%@extra_c_flags@%$extra_c_flags%g
5058 s%@extra_objs@%$extra_objs%g
5059 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5060 s%@extra_headers_list@%$extra_headers_list%g
5061 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5062 s%@dep_tmake_file@%$dep_tmake_file%g
5063 s%@out_file@%$out_file%g
5064 s%@out_object_file@%$out_object_file%g
5065 s%@md_file@%$md_file%g
5066 s%@tm_file_list@%$tm_file_list%g
5067 s%@build_xm_file_list@%$build_xm_file_list%g
5068 s%@host_xm_file_list@%$host_xm_file_list%g
5069 s%@lang_specs_files@%$lang_specs_files%g
5070 s%@lang_options_files@%$lang_options_files%g
5071 s%@thread_file@%$thread_file%g
5072 s%@version@%$version%g
5073 s%@local_prefix@%$local_prefix%g
5074 s%@gxx_include_dir@%$gxx_include_dir%g
5075 s%@fixincludes@%$fixincludes%g
5076 s%@build_install_headers_dir@%$build_install_headers_dir%g
5077 s%@build_exeext@%$build_exeext%g
5078 s%@float_format@%$float_format%g
5079 s%@will_use_collect2@%$will_use_collect2%g
5080 s%@maybe_use_collect2@%$maybe_use_collect2%g
5081 s%@cc_set_by_configure@%$cc_set_by_configure%g
5082 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5083 s%@install@%$install%g
5084 s%@symbolic_link@%$symbolic_link%g
5085 /@target_overrides@/r $target_overrides
5086 s%@target_overrides@%%g
5087 /@host_overrides@/r $host_overrides
5088 s%@host_overrides@%%g
5089 s%@cross_defines@%$cross_defines%g
5090 /@cross_overrides@/r $cross_overrides
5091 s%@cross_overrides@%%g
5092 /@build_overrides@/r $build_overrides
5093 s%@build_overrides@%%g
5094 /@language_fragments@/r $language_fragments
5095 s%@language_fragments@%%g
5096 /@language_hooks@/r $language_hooks
5097 s%@language_hooks@%%g
5102 cat >> $CONFIG_STATUS <<\EOF
5104 # Split the substitutions into bite-sized pieces for seds with
5105 # small command number limits, like on Digital OSF/1 and HP-UX.
5106 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5107 ac_file=1 # Number of current file.
5108 ac_beg=1 # First line for current file.
5109 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5112 while $ac_more_lines; do
5113 if test $ac_beg -gt 1; then
5114 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5116 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5118 if test ! -s conftest.s$ac_file; then
5120 rm -f conftest.s$ac_file
5122 if test -z "$ac_sed_cmds"; then
5123 ac_sed_cmds="sed -f conftest.s$ac_file"
5125 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5127 ac_file=`expr $ac_file + 1`
5129 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5132 if test -z "$ac_sed_cmds"; then
5137 cat >> $CONFIG_STATUS <<EOF
5139 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5141 cat >> $CONFIG_STATUS <<\EOF
5142 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5145 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5146 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5147 *) ac_file_in="${ac_file}.in" ;;
5150 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5152 # Remove last slash and all that follows it. Not all systems have dirname.
5153 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5155 # The file is in a subdirectory.
5156 test ! -d "$ac_dir" && mkdir "$ac_dir"
5157 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5158 # A "../" for each directory in $ac_dir_suffix.
5159 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5161 ac_dir_suffix= ac_dots=
5164 case "$ac_given_srcdir" in
5166 if test -z "$ac_dots"; then top_srcdir=.
5167 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5168 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5170 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5171 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5175 echo creating "$ac_file"
5177 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5179 *Makefile*) ac_comsub="1i\\
5180 # $configure_input" ;;
5184 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5186 s%@configure_input@%$configure_input%g
5187 s%@srcdir@%$srcdir%g
5188 s%@top_srcdir@%$top_srcdir%g
5189 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5193 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5194 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5196 # ac_d sets the value in "#define NAME VALUE" lines.
5197 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5198 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5201 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5202 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5203 ac_uB='\([ ]\)%\1#\2define\3'
5206 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5207 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5208 ac_eB='$%\1#\2define\3'
5212 if test "${CONFIG_HEADERS+set}" != set; then
5214 cat >> $CONFIG_STATUS <<EOF
5215 CONFIG_HEADERS="auto-config.h:config.in"
5217 cat >> $CONFIG_STATUS <<\EOF
5219 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5220 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5222 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5223 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5224 *) ac_file_in="${ac_file}.in" ;;
5227 echo creating $ac_file
5229 rm -f conftest.frag conftest.in conftest.out
5230 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5231 cat $ac_file_inputs > conftest.in
5235 # Transform confdefs.h into a sed script conftest.vals that substitutes
5236 # the proper values into config.h.in to produce config.h. And first:
5237 # Protect against being on the right side of a sed subst in config.status.
5238 # Protect against being in an unquoted here document in config.status.
5240 cat > conftest.hdr <<\EOF
5243 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5247 sed -n -f conftest.hdr confdefs.h > conftest.vals
5250 # This sed command replaces #undef with comments. This is necessary, for
5251 # example, in the case of _POSIX_SOURCE, which is predefined and required
5252 # on some systems where configure will not decide to define it.
5253 cat >> conftest.vals <<\EOF
5254 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5257 # Break up conftest.vals because some shells have a limit on
5258 # the size of here documents, and old seds have small limits too.
5263 ac_lines=`grep -c . conftest.vals`
5264 # grep -c gives empty output for an empty file on some AIX systems.
5265 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5266 # Write a limited-size here document to conftest.frag.
5267 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5268 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5270 sed -f conftest.frag conftest.in > conftest.out
5272 mv conftest.out conftest.in
5274 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5276 mv conftest.tail conftest.vals
5280 cat >> $CONFIG_STATUS <<\EOF
5281 rm -f conftest.frag conftest.h
5282 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5283 cat conftest.in >> conftest.h
5285 if cmp -s $ac_file conftest.h 2>/dev/null; then
5286 echo "$ac_file is unchanged"
5289 # Remove last slash and all that follows it. Not all systems have dirname.
5290 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5291 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5292 # The file is in a subdirectory.
5293 test ! -d "$ac_dir" && mkdir "$ac_dir"
5296 mv conftest.h $ac_file
5301 cat >> $CONFIG_STATUS <<EOF
5306 target_alias='${target_alias}'
5308 subdirs='${subdirs}'
5309 oldstyle_subdirs='${oldstyle_subdirs}'
5310 symbolic_link='${symbolic_link}'
5311 program_transform_set='${program_transform_set}'
5312 program_transform_name='${program_transform_name}'
5313 dep_host_xmake_file='${dep_host_xmake_file}'
5314 host_xmake_file='${host_xmake_file}'
5315 dep_tmake_file='${dep_tmake_file}'
5316 tmake_file='${tmake_file}'
5317 thread_file='${thread_file}'
5318 version='${version}'
5319 local_prefix='${local_prefix}'
5320 build_install_headers_dir='${build_install_headers_dir}'
5321 build_exeext='${build_exeext}'
5322 out_file='${out_file}'
5323 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5324 SET_MAKE='${SET_MAKE}'
5325 target_list='${target_list}'
5326 target_overrides='${target_overrides}'
5327 host_overrides='${host_overrides}'
5328 cross_defines='${cross_defines}'
5329 cross_overrides='${cross_overrides}'
5330 build_overrides='${build_overrides}'
5333 cat >> $CONFIG_STATUS <<\EOF
5335 . $srcdir/configure.lang
5336 case x$CONFIG_HEADERS in
5337 xauto-config.h:config.in)
5340 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5341 # bootstrapping and the installation procedure can still use
5342 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5343 # FLAGS_TO_PASS has been modified to solve the problem there.
5344 # This is virtually a duplicate of what happens in configure.lang; we do
5345 # an extra check to make sure this only happens if ln -s can be used.
5346 if [ "$symbolic_link" = "ln -s" ]; then
5347 for d in .. ${subdirs} ; do
5348 if [ $d != .. ]; then
5351 for t in stage1 stage2 stage3 stage4 include
5354 $symbolic_link ../$t $t 2>/dev/null
5363 chmod +x $CONFIG_STATUS
5364 rm -fr confdefs* $ac_clean_files
5365 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1