3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-haifa Use the experimental scheduler.
31 --disable-haifa Don't use the experimental scheduler for the
32 targets which normally enable it."
34 --enable-threads enable thread usage for target GCC.
35 --enable-threads=LIB use LIB thread package for target GCC."
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file
=.
/config.cache
50 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.12"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=tree.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
547 symbolic_link
='ln -s'
550 # Check for additional parameters
553 # Check whether --with-gnu-ld or --without-gnu-ld was given.
554 if test "${with_gnu_ld+set}" = set; then
555 withval
="$with_gnu_ld"
563 # Check whether --with-gnu-as or --without-gnu-as was given.
564 if test "${with_gnu_as+set}" = set; then
565 withval
="$with_gnu_as"
573 # Check whether --with-stabs or --without-stabs was given.
574 if test "${with_stabs+set}" = set; then
575 withval
="$with_stabs"
583 # Check whether --with-elf or --without-elf was given.
584 if test "${with_elf+set}" = set; then
592 # Specify the local prefix
593 # Check whether --with-local-prefix or --without-local-prefix was given.
594 if test "${with_local_prefix+set}" = set; then
595 withval
="$with_local_prefix"
596 local_prefix
=$with_local_prefix
598 local_prefix
=/usr
/local
602 # Default local prefix if it is empty
603 if [ x
$local_prefix = x
]; then
604 local_prefix
=/usr
/local
607 # Specify the g++ header file directory
608 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
609 if test "${with_gxx_include_dir+set}" = set; then
610 withval
="$with_gxx_include_dir"
611 gxx_include_dir
=$with_gxx_include_dir
613 gxx_include_dir
='${prefix}/include/g++'
617 # Default g++ header file directory if it is empty
618 if [ x
$gxx_include_dir = x
]; then
619 gxx_include_dir
='${prefix}/include/g++'
622 # Enable use of cpplib for C.
623 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
624 if test "${enable_c_cpplib+set}" = set; then
625 enableval
="$enable_c_cpplib"
626 if [ x
$enable_c_cpplib != xno
]; then
627 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
628 extra_c_flags
=-DUSE_CPPLIB=1
633 # Enable Haifa scheduler.
634 # Check whether --enable-haifa or --disable-haifa was given.
635 if test "${enable_haifa+set}" = set; then
636 enableval
="$enable_haifa"
642 # Pass with no value to take the default
643 # Pass with a value to specify a thread package
644 # Check whether --enable-threads or --disable-threads was given.
645 if test "${enable_threads+set}" = set; then
646 enableval
="$enable_threads"
647 if [ x
$enable_threads = xno
]; then
655 # Check if a valid thread package
656 case x
${enable_threads} in
659 target_thread_file
='single'
663 target_thread_file
=''
665 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
666 xsolaris | xwin32 | xdce
)
667 target_thread_file
=$enable_threads
670 echo "$enable_threads is an unknown thread package" 1>&2
675 # Determine the host, build, and target systems
677 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
678 if test -f $ac_dir/install-sh
; then
680 ac_install_sh
="$ac_aux_dir/install-sh -c"
682 elif test -f $ac_dir/install.sh
; then
684 ac_install_sh
="$ac_aux_dir/install.sh -c"
688 if test -z "$ac_aux_dir"; then
689 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
691 ac_config_guess
=$ac_aux_dir/config.guess
692 ac_config_sub
=$ac_aux_dir/config.sub
693 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
696 # Do some error checking and defaulting for the host and target type.
698 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
701 # 1. You are not allowed to specify --host, --target, and nonopt at the
703 # 2. Host defaults to nonopt.
704 # 3. If nonopt is not specified, then host defaults to the current host,
705 # as determined by config.guess.
706 # 4. Target and build default to nonopt.
707 # 5. If nonopt is not specified, then target and build default to host.
709 # The aliases save the names the user supplied, while $host etc.
710 # will get canonicalized.
711 case $host---$target---$nonopt in
712 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
713 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
717 # Make sure we can run config.sub.
718 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 echo $ac_n "checking host system type""... $ac_c" 1>&6
723 echo "configure:724: checking host system type" >&5
726 case "$host_alias" in
730 if host_alias
=`$ac_config_guess`; then :
731 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
733 *) host_alias
=$nonopt ;;
737 host=`$ac_config_sub $host_alias`
738 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
739 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
740 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
741 echo "$ac_t""$host" 1>&6
743 echo $ac_n "checking target system type""... $ac_c" 1>&6
744 echo "configure:745: checking target system type" >&5
747 case "$target_alias" in
750 NONE
) target_alias
=$host_alias ;;
751 *) target_alias
=$nonopt ;;
755 target
=`$ac_config_sub $target_alias`
756 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
757 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
758 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
759 echo "$ac_t""$target" 1>&6
761 echo $ac_n "checking build system type""... $ac_c" 1>&6
762 echo "configure:763: checking build system type" >&5
765 case "$build_alias" in
768 NONE
) build_alias
=$host_alias ;;
769 *) build_alias
=$nonopt ;;
773 build
=`$ac_config_sub $build_alias`
774 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$build" 1>&6
779 test "$host_alias" != "$target_alias" &&
780 test "$program_prefix$program_suffix$program_transform_name" = \
782 program_prefix
=${target_alias}-
785 # Find the native compiler
786 # Extract the first word of "gcc", so it can be a program name with args.
787 set dummy gcc
; ac_word
=$2
788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
789 echo "configure:790: checking for $ac_word" >&5
790 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 if test -n "$CC"; then
794 ac_cv_prog_CC
="$CC" # Let the user override the test.
796 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
797 for ac_dir
in $PATH; do
798 test -z "$ac_dir" && ac_dir
=.
799 if test -f $ac_dir/$ac_word; then
808 if test -n "$CC"; then
809 echo "$ac_t""$CC" 1>&6
811 echo "$ac_t""no" 1>&6
814 if test -z "$CC"; then
815 # Extract the first word of "cc", so it can be a program name with args.
816 set dummy cc
; ac_word
=$2
817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
818 echo "configure:819: checking for $ac_word" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$CC"; then
823 ac_cv_prog_CC
="$CC" # Let the user override the test.
825 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
827 for ac_dir
in $PATH; do
828 test -z "$ac_dir" && ac_dir
=.
829 if test -f $ac_dir/$ac_word; then
830 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
839 if test $ac_prog_rejected = yes; then
840 # We found a bogon in the path, so make sure we never use it.
841 set dummy
$ac_cv_prog_CC
843 if test $# -gt 0; then
844 # We chose a different compiler from the bogus one.
845 # However, it has the same basename, so the bogon will be chosen
846 # first if we set CC to just the basename; use the full file name.
848 set dummy
"$ac_dir/$ac_word" "$@"
856 if test -n "$CC"; then
857 echo "$ac_t""$CC" 1>&6
859 echo "$ac_t""no" 1>&6
862 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
865 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
866 echo "configure:867: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp
='$CPP $CPPFLAGS'
871 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling
=$ac_cv_prog_cc_cross
875 cat > conftest.
$ac_ext <<EOF
876 #line 877 "configure"
877 #include "confdefs.h"
880 if { (eval echo configure
:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
881 ac_cv_prog_cc_works
=yes
882 # If we can't run a trivial program, we are probably using a cross compiler.
883 if (.
/conftest
; exit) 2>/dev
/null
; then
884 ac_cv_prog_cc_cross
=no
886 ac_cv_prog_cc_cross
=yes
889 echo "configure: failed program was:" >&5
890 cat conftest.
$ac_ext >&5
891 ac_cv_prog_cc_works
=no
895 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
896 if test $ac_cv_prog_cc_works = no
; then
897 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
900 echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
901 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
902 cross_compiling
=$ac_cv_prog_cc_cross
904 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
905 echo "configure:906: checking whether we are using GNU C" >&5
906 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftest.c
<<EOF
914 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
921 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
923 if test $ac_cv_prog_gcc = yes; then
925 ac_test_CFLAGS
="${CFLAGS+set}"
926 ac_save_CFLAGS
="$CFLAGS"
928 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
929 echo "configure:930: checking whether ${CC-cc} accepts -g" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 echo 'void f(){}' > conftest.c
934 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
943 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
944 if test "$ac_test_CFLAGS" = set; then
945 CFLAGS
="$ac_save_CFLAGS"
946 elif test $ac_cv_prog_cc_g = yes; then
953 test "${CFLAGS+set}" = set || CFLAGS
="-g"
956 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
957 echo "configure:958: checking whether ${MAKE-make} sets \${MAKE}" >&5
958 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
959 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 cat > conftestmake
<<\EOF
964 @
echo 'ac_maketemp="${MAKE}"'
966 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
967 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
968 if test -n "$ac_maketemp"; then
969 eval ac_cv_prog_make_
${ac_make}_set
=yes
971 eval ac_cv_prog_make_
${ac_make}_set
=no
975 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
976 echo "$ac_t""yes" 1>&6
979 echo "$ac_t""no" 1>&6
980 SET_MAKE
="MAKE=${MAKE-make}"
984 # Find some useful tools
985 for ac_prog
in mawk gawk nawk
awk
987 # Extract the first word of "$ac_prog", so it can be a program name with args.
988 set dummy
$ac_prog; ac_word
=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 if test -n "$AWK"; then
995 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
998 for ac_dir
in $PATH; do
999 test -z "$ac_dir" && ac_dir
=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_prog_AWK
="$ac_prog"
1008 AWK
="$ac_cv_prog_AWK"
1009 if test -n "$AWK"; then
1010 echo "$ac_t""$AWK" 1>&6
1012 echo "$ac_t""no" 1>&6
1015 test -n "$AWK" && break
1018 # Extract the first word of "flex", so it can be a program name with args.
1019 set dummy flex
; ac_word
=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 if test -n "$LEX"; then
1026 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1029 for ac_dir
in $PATH; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_LEX
="flex"
1037 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1040 LEX
="$ac_cv_prog_LEX"
1041 if test -n "$LEX"; then
1042 echo "$ac_t""$LEX" 1>&6
1044 echo "$ac_t""no" 1>&6
1047 if test -z "$LEXLIB"
1053 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1054 echo "configure:1055: checking for yywrap in -l$ac_lib" >&5
1055 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 ac_save_LIBS
="$LIBS"
1060 LIBS
="-l$ac_lib $LIBS"
1061 cat > conftest.
$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1064 /* Override any gcc2 internal prototype to avoid an error. */
1065 /* We use char because int might match the return type of a gcc2
1066 builtin and then its argument prototype would still apply. */
1073 if { (eval echo configure
:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1075 eval "ac_cv_lib_$ac_lib_var=yes"
1077 echo "configure: failed program was:" >&5
1078 cat conftest.
$ac_ext >&5
1080 eval "ac_cv_lib_$ac_lib_var=no"
1083 LIBS
="$ac_save_LIBS"
1086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1087 echo "$ac_t""yes" 1>&6
1090 echo "$ac_t""no" 1>&6
1095 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether ln works" >&5
1097 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 rm -f conftestdata_t
1101 echo >conftestdata_f
1102 if ln conftestdata_f conftestdata_t
2>/dev
/null
1106 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1108 gcc_cv_prog_LN
="ln -s"
1113 rm -f conftestdata_f conftestdata_t
1116 LN
="$gcc_cv_prog_LN"
1117 if test "$gcc_cv_prog_LN" = "ln"; then
1118 echo "$ac_t""yes" 1>&6
1120 if test "$gcc_cv_prog_LN" = "ln -s"; then
1121 echo "$ac_t""no, using ln -s" 1>&6
1123 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1127 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether ln -s works" >&5
1129 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 rm -f conftestdata_t
1133 echo >conftestdata_f
1134 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1136 gcc_cv_prog_LN_S
="ln -s"
1138 if ln conftestdata_f conftestdata_t
2>/dev
/null
1145 rm -f conftestdata_f conftestdata_t
1148 LN_S
="$gcc_cv_prog_LN_S"
1149 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1150 echo "$ac_t""yes" 1>&6
1152 if test "$gcc_cv_prog_LN_S" = "ln"; then
1153 echo "$ac_t""no, using ln" 1>&6
1155 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1159 # Extract the first word of "ranlib", so it can be a program name with args.
1160 set dummy ranlib
; ac_word
=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$RANLIB"; then
1167 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1170 for ac_dir
in $PATH; do
1171 test -z "$ac_dir" && ac_dir
=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_RANLIB
="ranlib"
1178 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1181 RANLIB
="$ac_cv_prog_RANLIB"
1182 if test -n "$RANLIB"; then
1183 echo "$ac_t""$RANLIB" 1>&6
1185 echo "$ac_t""no" 1>&6
1188 for ac_prog
in 'bison -y' byacc
1190 # Extract the first word of "$ac_prog", so it can be a program name with args.
1191 set dummy
$ac_prog; ac_word
=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$YACC"; then
1198 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1201 for ac_dir
in $PATH; do
1202 test -z "$ac_dir" && ac_dir
=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_YACC
="$ac_prog"
1211 YACC
="$ac_cv_prog_YACC"
1212 if test -n "$YACC"; then
1213 echo "$ac_t""$YACC" 1>&6
1215 echo "$ac_t""no" 1>&6
1218 test -n "$YACC" && break
1220 test -n "$YACC" || YACC
="yacc"
1222 # Find a good install program. We prefer a C program (faster),
1223 # so one script is as good as another. But avoid the broken or
1224 # incompatible versions:
1225 # SysV /etc/install, /usr/sbin/install
1226 # SunOS /usr/etc/install
1227 # IRIX /sbin/install
1229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1231 # ./install, which can be erroneously created by make from ./install.sh.
1232 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1233 echo "configure:1234: checking for a BSD compatible install" >&5
1234 if test -z "$INSTALL"; then
1235 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1239 for ac_dir
in $PATH; do
1240 # Account for people who put trailing slashes in PATH elements.
1242 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1244 # OSF1 and SCO ODT 3.0 have their own names for install.
1245 for ac_prog
in ginstall scoinst
install; do
1246 if test -f $ac_dir/$ac_prog; then
1247 if test $ac_prog = install &&
1248 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1249 # AIX install. It has an incompatible calling convention.
1250 # OSF/1 installbsd also uses dspmsg, but is usable.
1253 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1264 if test "${ac_cv_path_install+set}" = set; then
1265 INSTALL
="$ac_cv_path_install"
1267 # As a last resort, use the slow shell script. We don't cache a
1268 # path for INSTALL within a source directory, because that will
1269 # break other packages using the cache if that directory is
1270 # removed, or if the path is relative.
1271 INSTALL
="$ac_install_sh"
1274 echo "$ac_t""$INSTALL" 1>&6
1276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1277 # It thinks the first close brace ends the variable substitution.
1278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1280 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1283 # Find the native compiler
1284 # Extract the first word of "gcc", so it can be a program name with args.
1285 set dummy gcc
; ac_word
=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC
="$CC" # Let the user override the test.
1294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1295 for ac_dir
in $PATH; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1306 if test -n "$CC"; then
1307 echo "$ac_t""$CC" 1>&6
1309 echo "$ac_t""no" 1>&6
1312 if test -z "$CC"; then
1313 # Extract the first word of "cc", so it can be a program name with args.
1314 set dummy cc
; ac_word
=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC
="$CC" # Let the user override the test.
1323 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1325 for ac_dir
in $PATH; do
1326 test -z "$ac_dir" && ac_dir
=.
1327 if test -f $ac_dir/$ac_word; then
1328 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1329 ac_prog_rejected
=yes
1337 if test $ac_prog_rejected = yes; then
1338 # We found a bogon in the path, so make sure we never use it.
1339 set dummy
$ac_cv_prog_CC
1341 if test $# -gt 0; then
1342 # We chose a different compiler from the bogus one.
1343 # However, it has the same basename, so the bogon will be chosen
1344 # first if we set CC to just the basename; use the full file name.
1346 set dummy
"$ac_dir/$ac_word" "$@"
1354 if test -n "$CC"; then
1355 echo "$ac_t""$CC" 1>&6
1357 echo "$ac_t""no" 1>&6
1360 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1363 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1364 echo "configure:1365: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1368 ac_cpp
='$CPP $CPPFLAGS'
1369 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1370 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1371 cross_compiling
=$ac_cv_prog_cc_cross
1373 cat > conftest.
$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1378 if { (eval echo configure
:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1379 ac_cv_prog_cc_works
=yes
1380 # If we can't run a trivial program, we are probably using a cross compiler.
1381 if (.
/conftest
; exit) 2>/dev
/null
; then
1382 ac_cv_prog_cc_cross
=no
1384 ac_cv_prog_cc_cross
=yes
1387 echo "configure: failed program was:" >&5
1388 cat conftest.
$ac_ext >&5
1389 ac_cv_prog_cc_works
=no
1393 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1394 if test $ac_cv_prog_cc_works = no
; then
1395 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1397 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1399 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1400 cross_compiling
=$ac_cv_prog_cc_cross
1402 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1403 echo "configure:1404: checking whether we are using GNU C" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 cat > conftest.c
<<EOF
1412 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1419 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1421 if test $ac_cv_prog_gcc = yes; then
1423 ac_test_CFLAGS
="${CFLAGS+set}"
1424 ac_save_CFLAGS
="$CFLAGS"
1426 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether ${CC-cc} accepts -g" >&5
1428 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 echo 'void f(){}' > conftest.c
1432 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1441 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1442 if test "$ac_test_CFLAGS" = set; then
1443 CFLAGS
="$ac_save_CFLAGS"
1444 elif test $ac_cv_prog_cc_g = yes; then
1451 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1454 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1455 echo "configure:1456: checking whether ${MAKE-make} sets \${MAKE}" >&5
1456 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1457 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 cat > conftestmake
<<\EOF
1462 @
echo 'ac_maketemp="${MAKE}"'
1464 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1465 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1466 if test -n "$ac_maketemp"; then
1467 eval ac_cv_prog_make_
${ac_make}_set
=yes
1469 eval ac_cv_prog_make_
${ac_make}_set
=no
1473 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1477 echo "$ac_t""no" 1>&6
1478 SET_MAKE
="MAKE=${MAKE-make}"
1482 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1483 echo "configure:1484: checking how to run the C preprocessor" >&5
1484 # On Suns, sometimes $CPP names a directory.
1485 if test -n "$CPP" && test -d "$CPP"; then
1488 if test -z "$CPP"; then
1489 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 # This must be in double quotes, not single quotes, because CPP may get
1493 # substituted into the Makefile and "${CC-cc}" will confuse make.
1495 # On the NeXT, cc -E runs the code through the compiler's parser,
1496 # not just through cpp.
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 { (eval echo configure
:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1505 ac_err
=`grep -v '^ *+' conftest.out`
1506 if test -z "$ac_err"; then
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1513 CPP
="${CC-cc} -E -traditional-cpp"
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1521 { (eval echo configure
:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1522 ac_err
=`grep -v '^ *+' conftest.out`
1523 if test -z "$ac_err"; then
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1535 ac_cv_prog_CPP
="$CPP"
1537 CPP
="$ac_cv_prog_CPP"
1539 ac_cv_prog_CPP
="$CPP"
1541 echo "$ac_t""$CPP" 1>&6
1543 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1544 echo "configure:1545: checking for ANSI C header files" >&5
1545 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1556 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure
:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err
=`grep -v '^ *+' conftest.out`
1559 if test -z "$ac_err"; then
1561 ac_cv_header_stdc
=yes
1564 echo "configure: failed program was:" >&5
1565 cat conftest.
$ac_ext >&5
1567 ac_cv_header_stdc
=no
1571 if test $ac_cv_header_stdc = yes; then
1572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1573 cat > conftest.
$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1579 egrep "memchr" >/dev
/null
2>&1; then
1583 ac_cv_header_stdc
=no
1589 if test $ac_cv_header_stdc = yes; then
1590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1591 cat > conftest.
$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "free" >/dev
/null
2>&1; then
1601 ac_cv_header_stdc
=no
1607 if test $ac_cv_header_stdc = yes; then
1608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1609 if test "$cross_compiling" = yes; then
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1616 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1617 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1619 int main () { int i; for (i = 0; i < 256; i++)
1620 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1624 if { (eval echo configure
:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1628 echo "configure: failed program was:" >&5
1629 cat conftest.
$ac_ext >&5
1631 ac_cv_header_stdc
=no
1639 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1640 if test $ac_cv_header_stdc = yes; then
1641 cat >> confdefs.h
<<\EOF
1642 #define STDC_HEADERS 1
1647 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether time.h and sys/time.h may both be included" >&5
1649 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.
$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <sys/types.h>
1656 #include <sys/time.h>
1662 if { (eval echo configure
:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1664 ac_cv_header_time
=yes
1666 echo "configure: failed program was:" >&5
1667 cat conftest.
$ac_ext >&5
1669 ac_cv_header_time
=no
1674 echo "$ac_t""$ac_cv_header_time" 1>&6
1675 if test $ac_cv_header_time = yes; then
1676 cat >> confdefs.h
<<\EOF
1677 #define TIME_WITH_SYS_TIME 1
1682 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h varargs.h sys
/varargs.h
1684 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_hdr" >&5
1687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure
:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err
=`grep -v '^ *+' conftest.out`
1698 if test -z "$ac_err"; then
1700 eval "ac_cv_header_$ac_safe=yes"
1703 echo "configure: failed program was:" >&5
1704 cat conftest.
$ac_ext >&5
1706 eval "ac_cv_header_$ac_safe=no"
1710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1712 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1713 cat >> confdefs.h
<<EOF
1714 #define $ac_tr_hdr 1
1718 echo "$ac_t""no" 1>&6
1723 # Check for thread headers.
1724 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1725 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1726 echo "configure:1727: checking for thread.h" >&5
1727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.
$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1735 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1736 { (eval echo configure
:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1737 ac_err
=`grep -v '^ *+' conftest.out`
1738 if test -z "$ac_err"; then
1740 eval "ac_cv_header_$ac_safe=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1746 eval "ac_cv_header_$ac_safe=no"
1750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1754 echo "$ac_t""no" 1>&6
1758 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1759 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1760 echo "configure:1761: checking for pthread.h" >&5
1761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 cat > conftest.
$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <pthread.h>
1769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1770 { (eval echo configure
:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1771 ac_err
=`grep -v '^ *+' conftest.out`
1772 if test -z "$ac_err"; then
1774 eval "ac_cv_header_$ac_safe=yes"
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1780 eval "ac_cv_header_$ac_safe=no"
1784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1788 echo "$ac_t""no" 1>&6
1793 # See if the system preprocessor understands the ANSI C preprocessor
1794 # stringification operator.
1795 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1796 echo "configure:1797: checking whether cpp understands the stringify operator" >&5
1797 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 cat > conftest.
$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1806 char *test = S(foo);
1809 if { (eval echo configure
:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1811 gcc_cv_c_have_stringify
=yes
1813 echo "configure: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1816 gcc_cv_c_have_stringify
=no
1821 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1822 if test $gcc_cv_c_have_stringify = yes; then
1823 cat >> confdefs.h
<<\EOF
1824 #define HAVE_CPP_STRINGIFY 1
1829 # Use <inttypes.h> only if it exists,
1830 # doesn't clash with <sys/types.h>, and declares intmax_t.
1831 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1832 echo "configure:1833: checking for inttypes.h" >&5
1833 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 cat > conftest.
$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 #include <sys/types.h>
1840 #include <inttypes.h>
1845 if { (eval echo configure
:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1847 cat >> confdefs.h
<<EOF
1848 #define HAVE_INTTYPES_H 1
1851 gcc_cv_header_inttypes_h
=yes
1853 echo "configure: failed program was:" >&5
1854 cat conftest.
$ac_ext >&5
1856 gcc_cv_header_inttypes_h
=no
1861 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1863 for ac_func
in strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \
1864 index rindex
kill getrlimit setrlimit atoll atoq
1866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_func" >&5
1868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.
$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 /* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $ac_func(); below. */
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1895 if { (eval echo configure
:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1897 eval "ac_cv_func_$ac_func=yes"
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 eval "ac_cv_func_$ac_func=no"
1907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1910 cat >> confdefs.h
<<EOF
1911 #define $ac_tr_func 1
1915 echo "$ac_t""no" 1>&6
1920 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1921 echo "configure:1922: checking whether the printf functions support %p" >&5
1922 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 if test "$cross_compiling" = yes; then
1926 gcc_cv_func_printf_ptr
=no
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1936 char *p = buf, *q = NULL;
1937 sprintf(buf, "%p", p);
1938 sscanf(buf, "%p", &q);
1942 if { (eval echo configure
:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1944 gcc_cv_func_printf_ptr
=yes
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1949 gcc_cv_func_printf_ptr
=no
1954 rm -f core core.
* *.core
1957 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1958 if test $gcc_cv_func_printf_ptr = yes ; then
1959 cat >> confdefs.h
<<\EOF
1960 #define HOST_PTR_PRINTF "%p"
1966 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1967 index rindex getenv atol sbrk abort
1969 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1970 echo "configure:1971: checking whether $ac_func must be declared" >&5
1971 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.
$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1979 #ifdef HAVE_STRING_H
1982 #ifdef HAVE_STRINGS_H
1983 #include <strings.h>
1986 #ifdef HAVE_STDLIB_H
1989 #ifdef HAVE_UNISTD_H
1993 #define rindex strrchr
1996 #define index strchr
1999 char *(*pfn) = (char *(*)) $ac_func
2002 if { (eval echo configure
:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 eval "gcc_cv_decl_needed_$ac_func=no"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "gcc_cv_decl_needed_$ac_func=yes"
2014 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2017 cat >> confdefs.h
<<EOF
2018 #define $gcc_tr_decl 1
2022 echo "$ac_t""no" 1>&6
2028 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2029 echo "configure:2030: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2030 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.
$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 #include <sys/types.h>
2038 /* NetBSD declares sys_siglist in unistd.h. */
2039 #ifdef HAVE_UNISTD_H
2043 char *msg = *(sys_siglist + 1);
2046 if { (eval echo configure
:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2048 ac_cv_decl_sys_siglist
=yes
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 ac_cv_decl_sys_siglist
=no
2058 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2059 if test $ac_cv_decl_sys_siglist = yes; then
2060 cat >> confdefs.h
<<\EOF
2061 #define SYS_SIGLIST_DECLARED 1
2074 build_install_headers_dir
=install-headers-tar
2078 host_truncate_target
=
2081 # Decode the host machine, then the target machine.
2082 # For the host machine, we save the xm_file variable as host_xm_file;
2083 # then we decode the target machine and forget everything else
2084 # that came from the host machine.
2085 for machine
in $build $host $target; do
2098 # Set this to force installation and use of collect2.
2100 # Set this to override the default target model.
2102 # Set this to control which fixincludes program to use.
2103 fixincludes
=fixincludes
2104 # Set this to control how the header file directory is installed.
2105 install_headers_dir
=install-headers-tar
2106 # Set this to a non-empty list of args to pass to cpp if the target
2107 # wants its .md file passed through cpp.
2109 # Set this if directory names should be truncated to 14 characters.
2111 # Set this if gdb needs a dir command with `dirname $out_file`
2112 gdb_needs_out_file_path
=
2113 # Set this if the build machine requires executables to have a
2116 # Set this to control which thread package will be used.
2119 # Set default cpu_type, tm_file and xm_file so it can be updated in
2120 # each machine entry.
2121 cpu_type
=`echo $machine | sed 's/-.*$//'`
2155 tm_file
=${cpu_type}/${cpu_type}.h
2156 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2159 # Support site-specific machine types.
2161 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2162 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2163 xm_file
=${cpu_type}/xm-
$rest.h
2164 tm_file
=${cpu_type}/$rest.h
2165 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2166 then xmake_file
=${cpu_type}/x-
$rest; \
2169 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2170 then tmake_file
=${cpu_type}/t-
$rest; \
2176 a29k-
*-bsd* | a29k-
*-sym1*)
2177 tm_file
="${tm_file} a29k/unix.h"
2178 xm_file
=a29k
/xm-unix.h
2179 xmake_file
=a29k
/x-unix
2182 a29k-
*-udi | a29k-
*-coff)
2183 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2184 tmake_file
=a29k
/t-a29kbare
2187 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2188 tmake_file
=a29k
/t-vx29k
2189 extra_parts
="crtbegin.o crtend.o"
2191 a29k-
*-*) # Default a29k environment.
2194 alpha
*-*-linux-gnuecoff*)
2195 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2196 xm_file
="${xm_file} alpha/xm-linux.h"
2199 fixincludes
=Makefile.
in
2202 alpha
*-*-linux-gnulibc1*)
2203 tm_file
="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
2204 xm_file
="${xm_file} alpha/xm-linux.h"
2205 tmake_file
="t-linux t-linux-gnulibc1"
2207 fixincludes
=Makefile.
in
2209 if [ x
$enable_threads = xyes
]; then
2213 alpha
*-*-linux-gnu*)
2214 tm_file
="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
2215 xm_file
="${xm_file} alpha/xm-linux.h"
2216 tmake_file
="t-linux"
2218 fixincludes
=Makefile.
in
2220 if [ x
$enable_threads = xyes
]; then
2225 if [ x
$stabs = xyes
]
2227 tm_file
="${tm_file} dbx.h"
2229 if [ x
$gas != xyes
]
2231 extra_passes
="mips-tfile mips-tdump"
2236 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2239 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2242 tm_file
="${tm_file} alpha/osf.h"
2243 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2244 # a broken tar, so we use cpio instead.
2245 install_headers_dir
=install-headers-cpio
2249 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2250 target_cpu_default
=MASK_SUPPORT_ARCH
2255 tm_file
="${tm_file} alpha/win-nt.h"
2256 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2257 tmake_file
=t-libc-ok
2258 xmake_file
=winnt
/x-winnt
2259 extra_host_objs
=oldnames.o
2260 extra_gcc_objs
="spawnv.o oldnames.o"
2261 fixincludes
=fixinc.winnt
2262 if [ x
$gnu_ld != xyes
]
2264 extra_programs
=ld.exe
2266 if [ x
$enable_threads = xyes
]; then
2272 xm_file
="${xm_file} alpha/xm-vms.h"
2273 tmake_file
=alpha
/t-vms
2274 fixincludes
=Makefile.
in
2277 extra_parts
="crtinit.o crtfini.o"
2279 arm-
*-coff* | armel-
*-coff*)
2281 tmake_file
=arm
/t-bare
2283 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2284 tm_file
=arm
/riscix1-1.h
2287 arm-
*-riscix*) # Acorn RISC machine
2290 tm_file
=arm
/rix-gas.h
2292 tm_file
=arm
/riscix.h
2294 xmake_file
=arm
/x-riscix
2295 tmake_file
=arm
/t-riscix
2298 arm-semi-aout | armel-semi-aout
)
2300 tmake_file
=arm
/t-semi
2301 fixincludes
=Makefile.
in # There is nothing to fix
2303 arm-semi-aof | armel-semi-aof
)
2304 tm_file
=arm
/semiaof.h
2305 tmake_file
=arm
/t-semiaof
2306 fixincludes
=Makefile.
in # There is nothing to fix
2309 tm_file
=arm
/netbsd.h
2310 xm_file
=arm
/xm-netbsd.h
2311 tmake_file
="t-netbsd arm/t-netbsd"
2312 # On NetBSD, the headers are already okay, except for math.h.
2313 fixincludes
=fixinc.math
2315 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2317 xm_file
=arm
/xm-linux.h
2319 tm_file
=arm
/linux-gas.h
2320 tmake_file
=arm
/t-linux
2321 fixincludes
=Makefile.
in
2326 tmake_file
=arm
/t-bare
2328 c1-convex-
*) # Convex C1
2329 target_cpu_default
=1
2331 fixincludes
=Makefile.
in
2333 c2-convex-
*) # Convex C2
2334 target_cpu_default
=2
2336 fixincludes
=Makefile.
in
2339 target_cpu_default
=4
2341 fixincludes
=Makefile.
in
2344 target_cpu_default
=8
2346 fixincludes
=Makefile.
in
2349 target_cpu_default
=16
2351 fixincludes
=Makefile.
in
2353 clipper-intergraph-clix
*)
2354 tm_file
="${tm_file} svr3.h clipper/clix.h"
2355 xm_file
=clipper
/xm-clix.h
2356 xmake_file
=clipper
/x-clix
2357 extra_headers
=va-clipper.h
2358 extra_parts
="crtbegin.o crtend.o"
2359 install_headers_dir
=install-headers-cpio
2366 # This hasn't been upgraded to GCC 2.
2367 # fx80-alliant-*) # Alliant FX/80
2373 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2374 xm_file
=pa
/xm-papro.h
2378 target_cpu_default
=1
2379 tm_file
="${tm_file} pa/pa-osf.h"
2381 fixincludes
=Makefile.
in
2384 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2385 xm_file
=pa
/xm-papro.h
2389 tm_file
="${tm_file} pa/pa-osf.h"
2391 fixincludes
=Makefile.
in
2394 target_cpu_default
=1
2396 fixincludes
=Makefile.
in
2400 fixincludes
=Makefile.
in
2403 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2404 xm_file
=pa
/xm-pahpux.h
2405 xmake_file
=pa
/x-pa-hpux
2408 tm_file
="${tm_file} pa/gas.h"
2410 install_headers_dir
=install-headers-cpio
2413 hppa1.0
-*-hpux8.0
[0-2]*)
2414 tm_file
="${tm_file} pa/pa-hpux.h"
2415 xm_file
=pa
/xm-pahpux.h
2416 xmake_file
=pa
/x-pa-hpux
2419 tm_file
="${tm_file} pa/pa-gas.h"
2421 tm_file
="pa/pa-oldas.h ${tm_file}"
2423 install_headers_dir
=install-headers-cpio
2426 hppa1.1
-*-hpux8.0
[0-2]*)
2427 target_cpu_default
=1
2428 tm_file
="${tm_file} pa/pa-hpux.h"
2429 xm_file
=pa
/xm-pahpux.h
2430 xmake_file
=pa
/x-pa-hpux
2433 tm_file
="${tm_file} pa/pa-gas.h"
2435 tm_file
="pa/pa-oldas.h ${tm_file}"
2437 install_headers_dir
=install-headers-cpio
2441 target_cpu_default
=1
2442 tm_file
="${tm_file} pa/pa-hpux.h"
2443 xm_file
=pa
/xm-pahpux.h
2444 xmake_file
=pa
/x-pa-hpux
2447 tm_file
="${tm_file} pa/pa-gas.h"
2449 install_headers_dir
=install-headers-cpio
2453 tm_file
="${tm_file} pa/pa-hpux.h"
2454 xm_file
=pa
/xm-pahpux.h
2455 xmake_file
=pa
/x-pa-hpux
2458 tm_file
="${tm_file} pa/pa-gas.h"
2460 install_headers_dir
=install-headers-cpio
2464 target_cpu_default
=1
2465 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2466 xm_file
=pa
/xm-pahpux.h
2467 xmake_file
=pa
/x-pa-hpux
2471 tm_file
="${tm_file} pa/pa-gas.h"
2473 if [ x
$enable_threads = x
]; then
2474 enable_threads
=$have_pthread_h
2476 if [ x
$enable_threads = xyes
]; then
2478 tmake_file
="${tmake_file} pa/t-dce-thr"
2480 install_headers_dir
=install-headers-cpio
2484 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2485 xm_file
=pa
/xm-pahpux.h
2486 xmake_file
=pa
/x-pa-hpux
2489 tm_file
="${tm_file} pa/pa-gas.h"
2491 install_headers_dir
=install-headers-cpio
2495 target_cpu_default
=1
2496 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2497 xm_file
=pa
/xm-pahpux.h
2498 xmake_file
=pa
/x-pa-hpux
2501 tm_file
="${tm_file} pa/pa-gas.h"
2503 install_headers_dir
=install-headers-cpio
2507 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2508 xm_file
=pa
/xm-pahpux.h
2509 xmake_file
=pa
/x-pa-hpux
2512 tm_file
="${tm_file} pa/pa-gas.h"
2514 install_headers_dir
=install-headers-cpio
2518 target_cpu_default
=1
2519 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2520 xm_file
=pa
/xm-pahpux.h
2521 xmake_file
=pa
/x-pa-hpux
2524 tm_file
="${tm_file} pa/pa-gas.h"
2526 install_headers_dir
=install-headers-cpio
2530 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2531 xm_file
=pa
/xm-pahpux.h
2532 xmake_file
=pa
/x-pa-hpux
2535 tm_file
="${tm_file} pa/pa-gas.h"
2537 install_headers_dir
=install-headers-cpio
2541 target_cpu_default
=1
2543 fixincludes
=Makefile.
in
2547 i
[3456]86-ibm-aix*) # IBM PS/2 running AIX
2550 tm_file
=i386
/aix386.h
2551 extra_parts
="crtbegin.o crtend.o"
2552 tmake_file
=i386
/t-crtstuff
2554 tm_file
=i386
/aix386ng.h
2557 xm_file
=i386
/xm-aix.h
2558 xmake_file
=i386
/x-aix
2560 i
[456]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2561 xm_file
=i386
/xm-sysv4.h
2562 xmake_file
=i386
/x-ncr3000
2563 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2565 tm_file
=i386
/sysv4gdb.h
2567 tm_file
=i386
/sysv4.h
2569 extra_parts
="crtbegin.o crtend.o"
2570 tmake_file
=i386
/t-crtpic
2574 xm_file
=i386
/xm-next.h
2575 tmake_file
=i386
/t-next
2576 xmake_file
=i386
/x-next
2577 extra_objs
=nextstep.o
2578 if [ x
$enable_threads = xyes
]; then
2582 i
[3456]86-sequent-bsd*) # 80386 from Sequent
2586 tm_file
=i386
/seq-gas.h
2588 tm_file
=i386
/sequent.h
2591 i
[3456]86-sequent-ptx1*)
2592 xm_file
=i386
/xm-sysv3.h
2593 xmake_file
=i386
/x-sysv3
2594 tm_file
=i386
/seq-sysv3.h
2595 tmake_file
=i386
/t-crtstuff
2596 fixincludes
=fixinc.
ptx
2597 extra_parts
="crtbegin.o crtend.o"
2598 install_headers_dir
=install-headers-cpio
2600 i
[3456]86-sequent-ptx2* | i
[3456]86-sequent-sysv3*)
2601 xm_file
=i386
/xm-sysv3.h
2602 xmake_file
=i386
/x-sysv3
2603 tm_file
=i386
/seq2-sysv3.h
2604 tmake_file
=i386
/t-crtstuff
2605 extra_parts
="crtbegin.o crtend.o"
2606 fixincludes
=fixinc.
ptx
2607 install_headers_dir
=install-headers-cpio
2609 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4*)
2610 xm_file
=i386
/xm-sysv4.h
2612 tm_file
=i386
/ptx4-i.h
2614 extra_parts
="crtbegin.o crtend.o"
2615 fixincludes
=fixinc.
ptx
2616 install_headers_dir
=install-headers-cpio
2618 i386-sun-sunos
*) # Sun i386 roadrunner
2619 xm_file
=i386
/xm-sun.h
2623 i
[3456]86-wrs-vxworks*)
2624 tm_file
=i386
/vxi386.h
2625 tmake_file
=i386
/t-i386bare
2628 tm_file
=i386
/i386-aout.h
2629 tmake_file
=i386
/t-i386bare
2631 i
[3456]86-*-bsdi* | i
[345]86-*-bsd386*)
2632 tm_file
=i386
/bsd386.h
2633 xm_file
=i386
/xm-bsd386.h
2634 # tmake_file=t-libc-ok
2637 tm_file
=i386
/386bsd.h
2638 xm_file
=i386
/xm-bsd386.h
2639 # tmake_file=t-libc-ok
2640 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2643 i
[3456]86-*-freebsdelf*)
2644 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2645 # On FreeBSD, the headers are already ok, except for math.h.
2646 fixincludes
=fixinc.math
2647 tmake_file
=i386
/t-freebsd
2652 i
[3456]86-*-freebsd*)
2653 tm_file
=i386
/freebsd.h
2654 # On FreeBSD, the headers are already ok, except for math.h.
2655 fixincludes
=fixinc.math
2656 tmake_file
=i386
/t-freebsd
2658 i
[3456]86-*-netbsd*)
2659 tm_file
=i386
/netbsd.h
2660 # On NetBSD, the headers are already okay, except for math.h.
2661 fixincludes
=fixinc.math
2665 tm_file
=i386
/i386-coff.h
2666 tmake_file
=i386
/t-i386bare
2668 i
[3456]86-*-isc*) # 80386 running ISC system
2669 xm_file
=i386
/xm-isc.h
2671 i
[345]86-*-isc[34]*)
2672 xmake_file
=i386
/x-isc3
2675 xmake_file
=i386
/x-isc
2678 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2680 tm_file
=i386
/iscdbx.h
2681 tmake_file
=i386
/t-svr3dbx
2682 extra_parts
="svr3.ifile svr3z.ifile"
2684 tm_file
=i386
/isccoff.h
2685 tmake_file
=i386
/t-crtstuff
2686 extra_parts
="crtbegin.o crtend.o"
2688 install_headers_dir
=install-headers-cpio
2690 i
[3456]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2691 xm_file
=i386
/xm-linux.h
# with a.out format using pre BFD linkers
2692 xmake_file
=x-linux-aout
2693 tmake_file
="t-linux-aout i386/t-crtstuff"
2694 tm_file
=i386
/linux-oldld.h
2695 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2698 i
[3456]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2699 xm_file
=i386
/xm-linux.h
# with a.out format
2700 xmake_file
=x-linux-aout
2701 tmake_file
="t-linux-aout i386/t-crtstuff"
2702 tm_file
=i386
/linux-aout.h
2703 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2706 i
[3456]86-*-linux-gnulibc1)
2707 xm_file
=i386
/xm-linux.h
# Intel 80386's running GNU/Linux
2708 xmake_file
=x-linux
# with ELF format using the
2709 tm_file
=i386
/linux.h
# GNU/Linux C library 5
2710 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2711 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2712 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2714 if [ x
$enable_threads = xyes
]; then
2715 thread_file
='single'
2718 i
[3456]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2719 xm_file
=i386
/xm-linux.h
# with ELF format using glibc 2
2720 xmake_file
=x-linux
# aka GNU/Linux C library 6
2721 tm_file
=i386
/linux.h
2722 tmake_file
="t-linux i386/t-crtstuff"
2723 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2724 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2726 if [ x
$enable_threads = xyes
]; then
2732 i
[3456]86-go32-msdos | i
[3456]86-*-go32* | i
[3456]86-*-msdosdjgpp*)
2733 xm_file
=i386
/xm-go32.h
2735 tmake_file
=i386
/t-go32
2737 i
[3456]86-moss-msdos* | i
[3456]86-*-moss*)
2739 tmake_file
=t-libc-ok
2740 fixincludes
=Makefile.
in
2744 i
[3456]86-*-lynxos*)
2749 tm_file
=i386
/lynx-ng.h
2751 xm_file
=i386
/xm-lynx.h
2752 tmake_file
=i386
/t-i386bare
2757 # tmake_file=t-libc-ok
2760 i
[3456]86-*-osfrose*) # 386 using OSF/rose
2763 tm_file
=i386
/osfelf.h
2766 tm_file
=i386
/osfrose.h
2769 xm_file
=i386
/xm-osf.h
2770 xmake_file
=i386
/x-osfrose
2771 tmake_file
=i386
/t-osf
2772 extra_objs
=halfpic.o
2774 i
[345]86-go32-rtems*)
2776 xm_file
=i386
/xm-go32.h
2777 tm_file
=i386
/go32-rtems.h
2778 tmake_file
="i386/t-go32 t-rtems"
2782 tm_file
=i386
/rtems.h
2783 tmake_file
="i386/t-i386bare t-rtems"
2785 i
[3456]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2786 xm_file
=i386
/xm-sco5.h
2787 xmake_file
=i386
/x-sco5
2788 fixincludes
=fixinc.sco
2789 install_headers_dir
=install-headers-cpio
2791 tmake_file
=i386
/t-sco5
2792 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2794 i
[3456]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2795 xm_file
=i386
/xm-sco.h
2796 xmake_file
=i386
/x-sco4
2797 fixincludes
=fixinc.sco
2798 install_headers_dir
=install-headers-cpio
2799 if [ x
$stabs = xyes
]
2801 tm_file
=i386
/sco4dbx.h
2802 tmake_file
=i386
/t-svr3dbx
2803 extra_parts
="svr3.ifile svr3z.rfile"
2806 tmake_file
=i386
/t-crtstuff
2807 extra_parts
="crtbegin.o crtend.o"
2811 i
[3456]86-*-sco*) # 80386 running SCO system
2812 xm_file
=i386
/xm-sco.h
2813 xmake_file
=i386
/x-sco
2814 install_headers_dir
=install-headers-cpio
2815 if [ x
$stabs = xyes
]
2817 tm_file
=i386
/scodbx.h
2818 tmake_file
=i386
/t-svr3dbx
2819 extra_parts
="svr3.ifile svr3z.rfile"
2822 extra_parts
="crtbegin.o crtend.o"
2823 tmake_file
=i386
/t-crtstuff
2827 i
[3456]86-*-solaris2*)
2828 xm_file
=i386
/xm-sysv4.h
2829 if [ x
$stabs = xyes
]
2831 tm_file
=i386
/sol2dbg.h
2835 tmake_file
=i386
/t-sol2
2836 extra_parts
="crt1.o crti.o crtn.o crtbegin.o crtend.o"
2838 fixincludes
=fixinc.svr4
2840 if [ x
$enable_threads = xyes
]; then
2841 thread_file
='solaris'
2844 i
[3456]86-*-sysv5*) # Intel x86 on System V Release 5
2845 xm_file
=i386
/xm-sysv4.h
2846 tm_file
=i386
/sysv4.h
2847 if [ x
$stabs = xyes
]
2849 tm_file
="${tm_file} dbx.h"
2851 tmake_file
=i386
/t-crtpic
2853 extra_parts
="crtbegin.o crtend.o"
2854 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2856 i
[3456]86-*-sysv4*) # Intel 80386's running system V.4
2857 xm_file
=i386
/xm-sysv4.h
2858 tm_file
=i386
/sysv4.h
2859 if [ x
$stabs = xyes
]
2861 tm_file
="${tm_file} dbx.h"
2863 tmake_file
=i386
/t-crtpic
2865 extra_parts
="crtbegin.o crtend.o"
2867 i
[3456]86-*-sysv*) # Intel 80386's running system V
2868 xm_file
=i386
/xm-sysv3.h
2869 xmake_file
=i386
/x-sysv3
2872 if [ x
$stabs = xyes
]
2874 tm_file
=i386
/svr3dbx.h
2875 tmake_file
=i386
/t-svr3dbx
2876 extra_parts
="svr3.ifile svr3z.rfile"
2878 tm_file
=i386
/svr3gas.h
2879 extra_parts
="crtbegin.o crtend.o"
2880 tmake_file
=i386
/t-crtstuff
2883 tm_file
=i386
/sysv3.h
2884 extra_parts
="crtbegin.o crtend.o"
2885 tmake_file
=i386
/t-crtstuff
2888 i386-
*-vsta) # Intel 80386's running VSTa kernel
2889 xm_file
=i386
/xm-vsta.h
2891 tmake_file
=i386
/t-vsta
2892 xmake_file
=i386
/x-vsta
2894 i
[3456]86-*-pe | i
[3456]86-*-cygwin32)
2895 xm_file
="${xm_file} i386/xm-cygwin32.h"
2896 tmake_file
=i386
/t-cygwin32
2897 tm_file
=i386
/cygwin32.h
2898 xmake_file
=i386
/x-cygwin32
2900 fixincludes
=Makefile.
in
2901 if [ x
$enable_threads = xyes
]; then
2906 i
[3456]86-*-mingw32)
2907 tm_file
=i386
/mingw32.h
2908 xm_file
="${xm_file} i386/xm-mingw32.h"
2909 tmake_file
=i386
/t-cygwin32
2911 xmake_file
=i386
/x-cygwin32
2912 fixincludes
=Makefile.
in
2913 if [ x
$enable_threads = xyes
]; then
2919 tm_file
=i386
/win-nt.h
2920 out_file
=i386
/i386.c
2921 xm_file
=i386
/xm-winnt.h
2922 xmake_file
=winnt
/x-winnt
2923 tmake_file
=i386
/t-winnt
2924 extra_host_objs
="winnt.o oldnames.o"
2925 extra_gcc_objs
="spawnv.o oldnames.o"
2926 fixincludes
=fixinc.winnt
2927 if [ x
$gnu_ld != xyes
]
2929 extra_programs
=ld.exe
2931 if [ x
$enable_threads = xyes
]; then
2936 xm_file
=i386
/xm-dgux.h
2937 out_file
=i386
/dgux.c
2939 tmake_file
=i386
/t-dgux
2940 xmake_file
=i386
/x-dgux
2941 fixincludes
=fixinc.dgux
2942 install_headers_dir
=install-headers-cpio
2944 i860-alliant-
*) # Alliant FX/2800
2945 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2946 xm_file
="${xm_file}"
2947 xmake_file
=i860
/x-fx2800
2948 tmake_file
=i860
/t-fx2800
2949 extra_parts
="crtbegin.o crtend.o"
2952 tm_file
="${tm_file} i860/bsd.h"
2955 tm_file
="${tm_file} i860/bsd-gas.h"
2960 tm_file
="${tm_file} i860/mach.h"
2961 tmake_file
=t-libc-ok
2963 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
2964 tm_file
="${tm_file} svr3.h i860/paragon.h"
2965 xm_file
="${xm_file} xm-svr3.h"
2969 tm_file
="${tm_file} svr3.h i860/sysv3.h"
2970 xm_file
="${tm_file} xm-svr3.h"
2971 xmake_file
=i860
/x-sysv3
2972 extra_parts
="crtbegin.o crtend.o"
2975 tm_file
="${tm_file} svr4.h i860/sysv4.h"
2976 xm_file
="${xm_file} xm-svr3.h"
2977 xmake_file
=i860
/x-sysv4
2979 extra_parts
="crtbegin.o crtend.o"
2981 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
2982 tm_file
="${tm_file} i960/vx960.h"
2983 tmake_file
=i960
/t-vxworks960
2986 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
2987 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2988 tmake_file
=i960
/t-vxworks960
2992 tm_file
="${tm_file} i960/vx960.h"
2993 tmake_file
=i960
/t-vxworks960
2997 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2998 tmake_file
=i960
/t-960bare
3002 tmake_file
="i960/t-960bare t-rtems"
3003 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3006 i960-
*-*) # Default i960 environment.
3010 extra_parts
="crtinit.o crtfini.o"
3012 m68000-convergent-sysv
*)
3014 xm_file
=m68k
/xm-3b1.h
3016 extra_headers
=math-68881.h
3018 m68000-hp-bsd
*) # HP 9000/200 running BSD
3019 tm_file
=m68k
/hp2bsd.h
3020 xmake_file
=m68k
/x-hp2bsd
3022 extra_headers
=math-68881.h
3024 m68000-hp-hpux
*) # HP 9000 series 300
3025 xm_file
=m68k
/xm-hp320.h
3028 xmake_file
=m68k
/x-hp320g
3029 tm_file
=m68k
/hp310g.h
3031 xmake_file
=m68k
/x-hp320
3032 tm_file
=m68k
/hp310.h
3034 install_headers_dir
=install-headers-cpio
3036 extra_headers
=math-68881.h
3041 extra_headers
=math-68881.h
3044 tm_file
=m68k
/sun2o4.h
3046 extra_headers
=math-68881.h
3049 xm_file
=m68k
/xm-3b1.h
3057 extra_headers
=math-68881.h
3059 m68k-apple-aux
*) # Apple Macintosh running A/UX
3060 xm_file
=m68k
/xm-aux.h
3061 tmake_file
=m68k
/t-aux
3062 install_headers_dir
=install-headers-cpio
3063 extra_headers
=math-68881.h
3064 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3066 if [ "$gnu_ld" = yes ]
3068 tm_file
="${tm_file} m68k/auxgld.h"
3070 tm_file
="${tm_file} m68k/auxld.h"
3074 tm_file
="${tm_file} m68k/auxgas.h"
3076 tm_file
="${tm_file} m68k/auxas.h"
3078 tm_file
="${tm_file} m68k/a-ux.h"
3081 tm_file
=m68k
/apollo68.h
3082 xmake_file
=m68k
/x-apollo68
3084 extra_headers
=math-68881.h
3086 m68k-altos-sysv
*) # Altos 3068
3089 tm_file
=m68k
/altos3068.h
3090 xm_file
=m68k
/xm-altos3068.h
3092 echo "The Altos is supported only with the GNU assembler" 1>&2
3095 extra_headers
=math-68881.h
3097 m68k-bull-sysv
*) # Bull DPX/2
3100 if [ x
$stabs = xyes
]
3102 tm_file
=m68k
/dpx2cdbx.h
3104 tm_file
=m68k
/dpx2g.h
3109 xm_file
=m68k
/xm-m68kv.h
3110 xmake_file
=m68k
/x-dpx2
3112 extra_headers
=math-68881.h
3114 m68k-atari-sysv4
*) # Atari variant of V.4.
3115 tm_file
=m68k
/atari.h
3116 xm_file
=m68k
/xm-atari.h
3118 extra_parts
="crtbegin.o crtend.o"
3119 extra_headers
=math-68881.h
3121 m68k-motorola-sysv
*)
3122 tm_file
=m68k
/mot3300.h
3123 xm_file
=m68k
/xm-mot3300.h
3126 xmake_file
=m68k
/x-mot3300-gas
3127 if [ x
$gnu_ld = xyes
]
3129 tmake_file
=m68k
/t-mot3300-gald
3131 tmake_file
=m68k
/t-mot3300-gas
3135 xmake_file
=m68k
/x-mot3300
3136 if [ x
$gnu_ld = xyes
]
3138 tmake_file
=m68k
/t-mot3300-gld
3140 tmake_file
=m68k
/t-mot3300
3144 gdb_needs_out_file_path
=yes
3145 extra_parts
="crt0.o mcrt0.o"
3146 extra_headers
=math-68881.h
3148 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3149 tm_file
=m68k
/tower-as.h
3150 xm_file
="${xm_file} xm-svr3.h"
3151 xmake_file
=m68k
/x-tower
3152 extra_parts
="crtbegin.o crtend.o"
3153 extra_headers
=math-68881.h
3156 tm_file
=m68k
/plexus.h
3157 xm_file
=m68k
/xm-plexus.h
3159 extra_headers
=math-68881.h
3163 xm_file
=m68k
/xm-m68kv.h
3164 extra_headers
=math-68881.h
3167 xm_file
=m68k
/xm-crds.h
3168 xmake_file
=m68k
/x-crds
3171 extra_headers
=math-68881.h
3173 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3175 xm_file
=m68k
/xm-amix.h
3176 xmake_file
=m68k
/x-amix
3178 extra_parts
="crtbegin.o crtend.o"
3179 extra_headers
=math-68881.h
3182 tm_file
=m68k
/ccur-GAS.h
3183 xmake_file
=m68k
/x-ccur
3184 extra_headers
=math-68881.h
3187 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3188 tm_file
=m68k
/hp3bsd44.h
3189 xmake_file
=m68k
/x-hp3bsd44
3191 extra_headers
=math-68881.h
3193 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3194 tm_file
=m68k
/hp3bsd.h
3196 extra_headers
=math-68881.h
3199 if [ x
$with_fp = xno
]
3201 tm_file
=m68k
/isi-nfp.h
3206 extra_headers
=math-68881.h
3208 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3209 xm_file
=m68k
/xm-hp320.h
3212 xmake_file
=m68k
/x-hp320g
3213 tm_file
=m68k
/hp320g.h
3215 xmake_file
=m68k
/x-hp320
3216 tm_file
=m68k
/hpux7.h
3218 install_headers_dir
=install-headers-cpio
3220 extra_headers
=math-68881.h
3222 m68k-hp-hpux
*) # HP 9000 series 300
3223 xm_file
=m68k
/xm-hp320.h
3226 xmake_file
=m68k
/x-hp320g
3227 tm_file
=m68k
/hp320g.h
3229 xmake_file
=m68k
/x-hp320
3230 tm_file
=m68k
/hp320.h
3232 install_headers_dir
=install-headers-cpio
3234 extra_headers
=math-68881.h
3237 tm_file
=m68k
/sun3mach.h
3239 extra_headers
=math-68881.h
3244 tm_file
=m68k
/news3gas.h
3246 tm_file
=m68k
/news3.h
3249 extra_headers
=math-68881.h
3251 m68k-sony-bsd
* | m68k-sony-newsos
*)
3254 tm_file
=m68k
/newsgas.h
3259 extra_headers
=math-68881.h
3261 m68k-next-nextstep2
*)
3262 tm_file
=m68k
/next21.h
3263 xm_file
=m68k
/xm-next.h
3264 tmake_file
=m68k
/t-next
3265 xmake_file
=m68k
/x-next
3266 extra_objs
=nextstep.o
3267 extra_headers
=math-68881.h
3270 m68k-next-nextstep3
*)
3272 xm_file
=m68k
/xm-next.h
3273 tmake_file
=m68k
/t-next
3274 xmake_file
=m68k
/x-next
3275 extra_objs
=nextstep.o
3276 extra_headers
=math-68881.h
3277 if [ x
$enable_threads = xyes
]; then
3282 if [ x
$with_fp = xno
]
3284 tm_file
=m68k
/sun3n3.h
3286 tm_file
=m68k
/sun3o3.h
3289 extra_headers
=math-68881.h
3291 m68k-sun-sunos
*) # For SunOS 4 (the default).
3292 if [ x
$with_fp = xno
]
3294 tm_file
=m68k
/sun3n.h
3299 extra_headers
=math-68881.h
3302 tm_file
=m68k
/vxm68k.h
3303 tmake_file
=m68k
/t-vxworks68
3304 extra_headers
=math-68881.h
3307 tmake_file
=m68k
/t-m68kbare
3308 tm_file
="m68k/m68k-aout.h libgloss.h"
3309 extra_headers
=math-68881.h
3312 tmake_file
=m68k
/t-m68kbare
3313 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3314 extra_headers
=math-68881.h
3321 tm_file
=m68k
/lynx-ng.h
3323 xm_file
=m68k
/xm-lynx.h
3325 tmake_file
=m68k
/t-lynx
3326 extra_headers
=math-68881.h
3329 tm_file
=m68k
/netbsd.h
3330 # On NetBSD, the headers are already okay, except for math.h.
3331 fixincludes
=fixinc.math
3334 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3335 xm_file
=m68k
/xm-m68kv.h
3336 xmake_file
=m68k
/x-m68kv
3337 extra_parts
="crtbegin.o crtend.o"
3338 extra_headers
=math-68881.h
3340 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3341 tm_file
=m68k
/m68kv4.h
3342 xm_file
=m68k
/xm-m68kv.h
3344 extra_parts
="crtbegin.o crtend.o"
3345 extra_headers
=math-68881.h
3347 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3348 xm_file
=m68k
/xm-linux.h
# with a.out format
3350 tm_file
=m68k
/linux-aout.h
3351 tmake_file
="t-linux-aout m68k/t-linux-aout"
3352 fixincludes
=Makefile.
in # The headers are ok already.
3353 extra_headers
=math-68881.h
3356 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3357 xm_file
=m68k
/xm-linux.h
# with ELF format using the
3358 xmake_file
=x-linux
# GNU/Linux C library 5
3359 tm_file
=m68k
/linux.h
3360 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3361 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3362 fixincludes
=Makefile.
in # The headers are ok already.
3363 extra_headers
=math-68881.h
3366 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3367 xm_file
=m68k
/xm-linux.h
# with ELF format using glibc 2
3368 xmake_file
=x-linux
# aka the GNU/Linux C library 6.
3369 tm_file
=m68k
/linux.h
3370 tmake_file
="t-linux m68k/t-linux"
3371 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3372 fixincludes
=Makefile.
in # The headers are ok already.
3373 extra_headers
=math-68881.h
3375 if [ x
$enable_threads = xyes
]; then
3380 tmake_file
=m68k
/t-m68kbare
3381 tm_file
=m68k
/m68k-psos.h
3382 extra_headers
=math-68881.h
3385 tmake_file
="m68k/t-m68kbare t-rtems"
3386 tm_file
=m68k
/rtems.h
3387 extra_headers
=math-68881.h
3393 tm_file
=m88k
/dguxbcs.h
3394 tmake_file
=m88k
/t-dguxbcs
3398 tmake_file
=m88k
/t-dgux
3401 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3402 xmake_file
=m88k
/x-dgux
3405 tmake_file
=m88k
/t-dgux-gas
3407 fixincludes
=fixinc.dgux
3409 m88k-dolphin-sysv3
*)
3410 tm_file
=m88k
/dolph.h
3411 extra_parts
="crtbegin.o crtend.o"
3412 xm_file
=m88k
/xm-sysv3.h
3413 xmake_file
=m88k
/x-dolph
3416 tmake_file
=m88k
/t-m88k-gas
3419 m88k-tektronix-sysv3
)
3420 tm_file
=m88k
/tekXD88.h
3421 extra_parts
="crtbegin.o crtend.o"
3422 xm_file
=m88k
/xm-sysv3.h
3423 xmake_file
=m88k
/x-tekXD88
3426 tmake_file
=m88k
/t-m88k-gas
3430 tm_file
=m88k
/m88k-aout.h
3433 tm_file
=m88k
/m88k-coff.h
3434 tmake_file
=m88k
/t-bug
3438 extra_parts
="crtbegin.o crtend.o"
3441 tmake_file
=m88k
/t-luna-gas
3443 tmake_file
=m88k
/t-luna
3447 tm_file
=m88k
/sysv3.h
3448 extra_parts
="crtbegin.o crtend.o"
3449 xm_file
=m88k
/xm-sysv3.h
3450 xmake_file
=m88k
/x-sysv3
3453 tmake_file
=m88k
/t-m88k-gas
3457 tm_file
=m88k
/sysv4.h
3458 extra_parts
="crtbegin.o crtend.o"
3459 xmake_file
=m88k
/x-sysv4
3460 tmake_file
=m88k
/t-sysv4
3462 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3463 tm_file
=mips
/iris6.h
3464 xm_file
=mips
/xm-iris6.h
3465 fixincludes
=fixinc.irix
3466 xmake_file
=mips
/x-iris6
3467 tmake_file
=mips
/t-iris6
3468 if [ x
$enable_threads = xyes
]; then
3472 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3473 tm_file
=mips
/cross64.h
3474 xm_file
=mips
/xm-iris5.h
3475 fixincludes
=Makefile.
in
3476 xmake_file
=mips
/x-iris
3477 tmake_file
=mips
/t-cross64
3478 # See comment in mips/iris[56].h files.
3480 if [ x
$enable_threads = xyes
]; then
3487 if [ x
$stabs = xyes
]
3489 tm_file
=mips
/iris5gdb.h
3491 tm_file
=mips
/sni-gas.h
3494 tm_file
=mips
/sni-svr4.h
3496 xm_file
=mips
/xm-sysv.h
3497 xmake_file
=mips
/x-sni-svr4
3498 tmake_file
=mips
/t-mips-gas
3499 if [ x
$gnu_ld != xyes
]
3504 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3507 tm_file
=mips
/iris5gas.h
3508 if [ x
$stabs = xyes
]
3510 tm_file
="${tm_file} dbx.h"
3513 tm_file
=mips
/iris5.h
3515 xm_file
=mips
/xm-iris5.h
3516 fixincludes
=fixinc.irix
3517 xmake_file
=mips
/x-iris
3518 # mips-tfile doesn't work yet
3519 tmake_file
=mips
/t-mips-gas
3520 # See comment in mips/iris5.h file.
3522 if [ x
$enable_threads = xyes
]; then
3526 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3527 tm_file
=mips
/iris4loser.h
3528 if [ x
$stabs = xyes
]; then
3529 tm_file
="${tm_file} dbx.h"
3531 xm_file
=mips
/xm-iris4.h
3532 xmake_file
=mips
/x-iris
3535 tmake_file
=mips
/t-mips-gas
3537 extra_passes
="mips-tfile mips-tdump"
3539 if [ x
$gnu_ld != xyes
]
3543 if [ x
$enable_threads = xyes
]; then
3547 mips-sgi-irix4
*) # Mostly like a MIPS.
3548 tm_file
=mips
/iris4.h
3549 if [ x
$stabs = xyes
]; then
3550 tm_file
="${tm_file} dbx.h"
3552 xm_file
=mips
/xm-iris4.h
3553 xmake_file
=mips
/x-iris
3556 tmake_file
=mips
/t-mips-gas
3558 extra_passes
="mips-tfile mips-tdump"
3560 if [ x
$gnu_ld != xyes
]
3564 if [ x
$enable_threads = xyes
]; then
3568 mips-sgi-
*) # Mostly like a MIPS.
3569 tm_file
=mips
/iris3.h
3570 if [ x
$stabs = xyes
]; then
3571 tm_file
="${tm_file} dbx.h"
3573 xm_file
=mips
/xm-iris3.h
3574 xmake_file
=mips
/x-iris3
3577 tmake_file
=mips
/t-mips-gas
3579 extra_passes
="mips-tfile mips-tdump"
3581 if [ x
$gnu_ld != xyes
]
3586 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3587 tm_file
=mips
/osfrose.h
3588 xmake_file
=mips
/x-osfrose
3589 tmake_file
=mips
/t-osfrose
3590 extra_objs
=halfpic.o
3593 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3594 tm_file
=mips
/dec-osf1.h
3595 if [ x
$stabs = xyes
]; then
3596 tm_file
="${tm_file} dbx.h"
3598 xmake_file
=mips
/x-dec-osf1
3601 tmake_file
=mips
/t-mips-gas
3603 tmake_file
=mips
/t-ultrix
3604 extra_passes
="mips-tfile mips-tdump"
3606 if [ x
$gnu_ld != xyes
]
3611 mips-dec-bsd
*) # Decstation running 4.4 BSD
3612 tm_file
=mips
/dec-bsd.h
3616 tmake_file
=mips
/t-mips-gas
3618 tmake_file
=mips
/t-ultrix
3619 extra_passes
="mips-tfile mips-tdump"
3621 if [ x
$gnu_ld != xyes
]
3626 mips-dec-netbsd
*) # Decstation running NetBSD
3627 tm_file
=mips
/netbsd.h
3628 # On NetBSD, the headers are already okay, except for math.h.
3629 fixincludes
=fixinc.math
3632 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3633 tm_file
=mips
/news4.h
3634 if [ x
$stabs = xyes
]; then
3635 tm_file
="${tm_file} dbx.h"
3639 tmake_file
=mips
/t-mips-gas
3641 extra_passes
="mips-tfile mips-tdump"
3643 if [ x
$gnu_ld != xyes
]
3647 xmake_file
=mips
/x-sony
3649 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3650 # That is based on svr4.
3651 # t-svr4 is not right because this system doesn't use ELF.
3652 tm_file
=mips
/news5.h
3653 if [ x
$stabs = xyes
]; then
3654 tm_file
="${tm_file} dbx.h"
3656 xm_file
=mips
/xm-news.h
3659 tmake_file
=mips
/t-mips-gas
3661 extra_passes
="mips-tfile mips-tdump"
3663 if [ x
$gnu_ld != xyes
]
3668 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3669 tm_file
=mips
/svr4-t.h
3670 if [ x
$stabs = xyes
]; then
3671 tm_file
="${tm_file} dbx.h"
3673 xm_file
=mips
/xm-sysv4.h
3674 xmake_file
=mips
/x-sysv
3677 tmake_file
=mips
/t-mips-gas
3678 extra_parts
="crtbegin.o crtend.o"
3680 tmake_file
=mips
/t-mips
3681 extra_passes
="mips-tfile mips-tdump"
3683 if [ x
$gnu_ld != xyes
]
3688 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3689 tm_file
=mips
/ultrix.h
3690 if [ x
$stabs = xyes
]; then
3691 tm_file
="${tm_file} dbx.h"
3693 xmake_file
=mips
/x-ultrix
3696 tmake_file
=mips
/t-mips-gas
3698 tmake_file
=mips
/t-ultrix
3699 extra_passes
="mips-tfile mips-tdump"
3701 if [ x
$gnu_ld != xyes
]
3706 mips-
*-riscos[56789]bsd
*)
3707 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3708 if [ x
$stabs = xyes
]; then
3709 tm_file
="${tm_file} dbx.h"
3713 tmake_file
=mips
/t-bsd-gas
3715 tmake_file
=mips
/t-bsd
3716 extra_passes
="mips-tfile mips-tdump"
3718 if [ x
$gnu_ld != xyes
]
3723 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3724 tm_file
=mips
/bsd-4.h
# MIPS BSD 4.3, RISC-OS 4.0
3725 if [ x
$stabs = xyes
]; then
3726 tm_file
="${tm_file} dbx.h"
3730 tmake_file
=mips
/t-bsd-gas
3732 tmake_file
=mips
/t-bsd
3733 extra_passes
="mips-tfile mips-tdump"
3735 if [ x
$gnu_ld != xyes
]
3740 mips-
*-riscos[56789]sysv4
*)
3741 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3742 if [ x
$stabs = xyes
]; then
3743 tm_file
="${tm_file} dbx.h"
3745 xm_file
=mips
/xm-sysv4.h
3746 xmake_file
=mips
/x-sysv
3749 tmake_file
=mips
/t-svr4-gas
3751 tmake_file
=mips
/t-svr4
3752 extra_passes
="mips-tfile mips-tdump"
3754 if [ x
$gnu_ld != xyes
]
3759 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3760 tm_file
=mips
/svr4-4.h
# MIPS System V.4. RISC-OS 4.0
3761 if [ x
$stabs = xyes
]; then
3762 tm_file
="${tm_file} dbx.h"
3764 xm_file
=mips
/xm-sysv.h
3765 xmake_file
=mips
/x-sysv
3768 tmake_file
=mips
/t-svr4-gas
3770 tmake_file
=mips
/t-svr4
3771 extra_passes
="mips-tfile mips-tdump"
3773 if [ x
$gnu_ld != xyes
]
3778 mips-
*-riscos[56789]sysv
*)
3779 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3780 if [ x
$stabs = xyes
]; then
3781 tm_file
="${tm_file} dbx.h"
3783 xm_file
=mips
/xm-sysv.h
3784 xmake_file
=mips
/x-sysv
3787 tmake_file
=mips
/t-svr3-gas
3789 tmake_file
=mips
/t-svr3
3790 extra_passes
="mips-tfile mips-tdump"
3792 if [ x
$gnu_ld != xyes
]
3797 mips-
*-sysv* | mips-
*-riscos*sysv
*)
3798 tm_file
=mips
/svr3-4.h
# MIPS System V.3, RISC-OS 4.0
3799 if [ x
$stabs = xyes
]; then
3800 tm_file
="${tm_file} dbx.h"
3802 xm_file
=mips
/xm-sysv.h
3803 xmake_file
=mips
/x-sysv
3806 tmake_file
=mips
/t-svr3-gas
3808 tmake_file
=mips
/t-svr3
3809 extra_passes
="mips-tfile mips-tdump"
3811 if [ x
$gnu_ld != xyes
]
3816 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3817 tm_file
=mips
/mips-5.h
3818 if [ x
$stabs = xyes
]; then
3819 tm_file
="${tm_file} dbx.h"
3823 tmake_file
=mips
/t-mips-gas
3825 extra_passes
="mips-tfile mips-tdump"
3827 if [ x
$gnu_ld != xyes
]
3835 tm_file
=mips
/ecoffl.h
3836 if [ x
$stabs = xyes
]; then
3837 tm_file
="${tm_file} dbx.h"
3839 tmake_file
=mips
/t-ecoff
3842 tm_file
=mips
/ecoff.h
3843 if [ x
$stabs = xyes
]; then
3844 tm_file
="${tm_file} dbx.h"
3846 tmake_file
=mips
/t-ecoff
3849 tm_file
="mips/elfl.h libgloss.h"
3850 tmake_file
=mips
/t-ecoff
3853 tm_file
="mips/elf.h libgloss.h"
3854 tmake_file
=mips
/t-ecoff
3857 tm_file
="mips/elfl64.h libgloss.h"
3858 tmake_file
=mips
/t-ecoff
3860 mips64orionel-
*-elf*)
3861 tm_file
="mips/elflorion.h libgloss.h"
3862 tmake_file
=mips
/t-ecoff
3865 tm_file
="mips/elf64.h libgloss.h"
3866 tmake_file
=mips
/t-ecoff
3869 tm_file
="mips/elforion.h libgloss.h"
3870 tmake_file
=mips
/t-ecoff
3872 mips64orion-
*-rtems*)
3873 tm_file
=mips
/rtems64.h
3874 tmake_file
="mips/t-ecoff t-rtems"
3877 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
3878 tmake_file
=mips
/t-r3900
3881 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
3882 tmake_file
=mips
/t-r3900
3884 mips-
*-*) # Default MIPS RISC-OS 4.0.
3885 if [ x
$stabs = xyes
]; then
3886 tm_file
="${tm_file} dbx.h"
3890 tmake_file
=mips
/t-mips-gas
3892 extra_passes
="mips-tfile mips-tdump"
3894 if [ x
$gnu_ld != xyes
]
3901 tm_file
="mn10200/mn10200.h"
3902 if [ x
$stabs = xyes
]
3904 tm_file
="${tm_file} dbx.h"
3910 tm_file
="mn10300/mn10300.h"
3911 if [ x
$stabs = xyes
]
3913 tm_file
="${tm_file} dbx.h"
3918 tm_file
=ns32k
/encore.h
3922 tm_file
=ns32k
/sequent.h
3926 tm_file
=ns32k
/tek6100.h
3930 tm_file
=ns32k
/tek6200.h
3933 # This has not been updated to GCC 2.
3935 # xm_file=ns32k/xm-genix.h
3936 # xmake_file=ns32k/x-genix
3937 # tm_file=ns32k/genix.h
3941 tm_file
=ns32k
/merlin.h
3945 tm_file
=ns32k
/pc532-mach.h
3949 tm_file
=ns32k
/pc532-min.h
3950 xm_file
=ns32k
/xm-pc532-min.h
3953 ns32k-pc532-netbsd
*)
3954 tm_file
=ns32k
/netbsd.h
3955 # On NetBSD, the headers are already okay, except for math.h.
3956 fixincludes
=fixinc.math
3960 tm_file
="${tm_file} pdp11/2bsd.h"
3966 xmake_file
=pyr
/x-pyr
3973 xmake_file
=romp
/x-mach
3978 tm_file
=rs6000
/beos.h
3979 xm_file
=rs6000
/xm-beos.h
3980 tmake_file
=rs6000
/t-beos
3981 xmake_file
=rs6000
/x-beos
3983 powerpc-
*-sysv* | powerpc-
*-elf*)
3984 tm_file
=rs6000
/sysv4.h
3985 xm_file
=rs6000
/xm-sysv4.h
3986 extra_headers
=ppc-asm.h
3989 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
3991 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3993 xmake_file
=rs6000
/x-sysv4
3996 tm_file
=rs6000
/eabiaix.h
3997 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3998 fixincludes
=Makefile.
in
3999 extra_headers
=ppc-asm.h
4002 tm_file
=rs6000
/eabisim.h
4003 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4004 fixincludes
=Makefile.
in
4005 extra_headers
=ppc-asm.h
4008 tm_file
=rs6000
/eabi.h
4011 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4013 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4015 fixincludes
=Makefile.
in
4016 extra_headers
=ppc-asm.h
4019 tm_file
=rs6000
/rtems.h
4022 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4024 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4026 fixincludes
=Makefile.
in
4027 extra_headers
=ppc-asm.h
4029 powerpc-
*-linux-gnulibc1)
4030 tm_file
=rs6000
/linux.h
4031 xm_file
=rs6000
/xm-sysv4.h
4032 out_file
=rs6000
/rs6000.c
4035 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4037 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4040 fixincludes
=Makefile.
in
4041 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4042 extra_headers
=ppc-asm.h
4043 if [ x
$enable_threads = xyes
]; then
4047 powerpc-
*-linux-gnu*)
4048 tm_file
=rs6000
/linux.h
4049 xm_file
=rs6000
/xm-sysv4.h
4050 out_file
=rs6000
/rs6000.c
4053 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4055 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4058 fixincludes
=Makefile.
in
4059 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4060 extra_headers
=ppc-asm.h
4061 if [ x
$enable_threads = xyes
]; then
4067 xm_file
=rs6000
/xm-sysv4.h
4068 tm_file
=rs6000
/vxppc.h
4069 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4070 extra_headers
=ppc-asm.h
4072 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4073 tm_file
=rs6000
/sysv4le.h
4074 xm_file
=rs6000
/xm-sysv4.h
4077 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4079 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4081 xmake_file
=rs6000
/x-sysv4
4082 extra_headers
=ppc-asm.h
4084 powerpcle-
*-eabisim*)
4085 tm_file
=rs6000
/eabilesim.h
4086 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4087 fixincludes
=Makefile.
in
4088 extra_headers
=ppc-asm.h
4091 tm_file
=rs6000
/eabile.h
4094 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4096 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4098 fixincludes
=Makefile.
in
4099 extra_headers
=ppc-asm.h
4101 powerpcle-
*-winnt* )
4102 tm_file
=rs6000
/win-nt.h
4103 tmake_file
=rs6000
/t-winnt
4105 fixincludes
=Makefile.
in
4106 if [ x
$enable_threads = xyes
]; then
4109 extra_headers
=ppc-asm.h
4111 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4112 tm_file
=rs6000
/cygwin32.h
4113 xm_file
=rs6000
/xm-cygwin32.h
4114 tmake_file
=rs6000
/t-winnt
4115 xmake_file
=rs6000
/x-cygwin32
4117 fixincludes
=Makefile.
in
4118 if [ x
$enable_threads = xyes
]; then
4122 extra_headers
=ppc-asm.h
4124 powerpcle-
*-solaris2*)
4125 tm_file
=rs6000
/sol2.h
4126 xm_file
=rs6000
/xm-sysv4.h
4129 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4131 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4133 xmake_file
=rs6000
/x-sysv4
4134 fixincludes
=fixinc.math
4135 extra_headers
=ppc-asm.h
4137 rs6000-ibm-aix3.
[01]*)
4138 tm_file
=rs6000
/aix31.h
4139 xmake_file
=rs6000
/x-aix31
4142 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4143 tm_file
=rs6000
/aix3newas.h
4144 if [ x
$host != x
$target ]
4146 tmake_file
=rs6000
/t-xnewas
4148 tmake_file
=rs6000
/t-newas
4152 rs6000-ibm-aix
[456789].
* | powerpc-ibm-aix
[456789].
*)
4153 tm_file
=rs6000
/aix41.h
4154 if [ x
$host != x
$target ]
4156 tmake_file
=rs6000
/t-xnewas
4158 tmake_file
=rs6000
/t-newas
4160 xmake_file
=rs6000
/x-aix31
4170 tm_file
=rs6000
/mach.h
4171 xm_file
=rs6000
/xm-mach.h
4172 xmake_file
=rs6000
/x-mach
4176 tm_file
=rs6000
/lynx.h
4177 xm_file
=rs6000
/xm-lynx.h
4178 tmake_file
=rs6000
/t-rs6000
4179 xmake_file
=rs6000
/x-lynx
4187 tmake_file
="sh/t-sh t-rtems"
4196 xm_file
=sparc
/xm-pbd.h
4198 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4199 tm_file
=sparc
/vxsparc.h
4200 tmake_file
=sparc
/t-vxsparc
4204 tmake_file
=sparc
/t-sparcbare
4205 tm_file
="sparc/aout.h libgloss.h"
4208 tm_file
=sparc
/netbsd.h
4209 # On NetBSD, the headers are already okay, except for math.h.
4210 fixincludes
=fixinc.math
4218 tmake_file
=sparc
/t-elf
4219 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4223 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4224 xm_file
="sparc/xm-sparc.h sparc/xm-linux.h"
4225 tm_file
=sparc
/linux-aout.h
4227 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4230 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4231 xm_file
="sparc/xm-sparc.h sparc/xm-linux.h"
4233 tm_file
=sparc
/linux.h
4234 tmake_file
="t-linux t-linux-gnulibc1"
4235 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4236 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4239 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4240 xm_file
="sparc/xm-sparc.h sparc/xm-linux.h"
4242 tm_file
=sparc
/linux.h
4243 tmake_file
="t-linux"
4244 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4245 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4247 if [ x
$enable_threads = xyes
]; then
4254 tm_file
=sparc
/lynx.h
4256 tm_file
=sparc
/lynx-ng.h
4258 xm_file
=sparc
/xm-lynx.h
4259 tmake_file
=sparc
/t-sunos41
4263 tmake_file
="sparc/t-sparcbare t-rtems"
4264 tm_file
=sparc
/rtems.h
4267 if [ x
$gnu_ld = xyes
]
4269 tm_file
=sparc
/sol2.h
4271 tm_file
=sparc
/sol2-sld.h
4273 xm_file
=sparc
/xm-sol2.h
4274 tmake_file
=sparc
/t-sol2
4275 xmake_file
=sparc
/x-sysv4
4276 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4277 fixincludes
=fixinc.svr4
4280 if [ x
${enable_threads} = x
]; then
4281 enable_threads
=$have_pthread_h
4282 if [ x
${enable_threads} = x
]; then
4283 enable_threads
=$have_thread_h
4286 if [ x
${enable_threads} = xyes
]; then
4287 if [ x
${have_pthread_h} = xyes
]; then
4290 thread_file
='solaris'
4295 tm_file
=sparc
/sunos4.h
4296 tmake_file
=sparc
/t-sunos40
4300 tm_file
=sparc
/sunos4.h
4301 tmake_file
=sparc
/t-sunos41
4303 if [ x
$gas = xyes
]; then
4304 tm_file
="${tm_file} sparc/sun4gas.h"
4308 tm_file
=sparc
/sun4o3.h
4312 tm_file
=sparc
/sysv4.h
4313 xm_file
=sparc
/xm-sysv4.h
4315 xmake_file
=sparc
/x-sysv4
4316 extra_parts
="crtbegin.o crtend.o"
4319 xm_file
=sparc
/xm-sol2.h
4320 tm_file
=sparc
/vxsim.h
4321 tmake_file
=sparc
/t-vxsparc
4322 xmake_file
=sparc
/x-sysv4
4325 tm_file
="sparc/splet.h libgloss.h"
4326 tmake_file
=sparc
/t-splet
4329 tm_file
="sparc/litecoff.h libgloss.h"
4330 tmake_file
=sparc
/t-sparclite
4333 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4334 tmake_file
=sparc
/t-sparclite
4337 tmake_file
=sparc
/t-sp64
4338 tm_file
=sparc
/sp64-aout.h
4341 tmake_file
=sparc
/t-sp64
4342 tm_file
=sparc
/sp64-elf.h
4343 extra_parts
="crtbegin.o crtend.o"
4345 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4346 tmake_file
=sparc
/t-sp64
4347 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4348 tm_file
=sparc
/linux64.h
4350 fixincludes
=Makefile.
in # The headers are ok already.
4353 # This hasn't been upgraded to GCC 2.
4354 # tahoe-harris-*) # Harris tahoe, using COFF.
4355 # tm_file=tahoe/harris.h
4357 # tahoe-*-bsd*) # tahoe running BSD
4359 # This hasn't been upgraded to GCC 2.
4366 tm_file
="v850/v850.h"
4367 xm_file
="v850/xm-v850.h"
4368 if [ x
$stabs = xyes
]
4370 tm_file
="${tm_file} dbx.h"
4374 vax-
*-bsd*) # vaxen running BSD
4378 vax-
*-sysv*) # vaxen running system V
4379 tm_file
="${tm_file} vax/vaxv.h"
4380 xm_file
="${xm_file} vax/xm-vaxv.h"
4384 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4385 # On NetBSD, the headers are already okay, except for math.h.
4386 fixincludes
=fixinc.math
4390 vax-
*-ultrix*) # vaxen running ultrix
4391 tm_file
="${tm_file} vax/ultrix.h"
4395 vax-
*-vms*) # vaxen running VMS
4396 xm_file
=vax
/xm-vms.h
4400 vax-
*-*) # vax default entry
4404 xm_file
="${xm_file} xm-svr3"
4408 echo "Configuration $machine not supported" 1>&2
4415 ;; # Existing Linux/GNU systems do not use the GNU setup.
4417 # On the GNU system, the setup is just about the same on
4418 # each different CPU. The specific machines that GNU
4419 # supports are matched above and just set $cpu_type.
4420 xm_file
=${cpu_type}/xm-gnu.h
4421 tm_file
=${cpu_type}/gnu.h
4422 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4423 # GNU always uses ELF.
4425 # GNU tools are the only tools.
4428 # On GNU, the headers are already okay.
4429 fixincludes
=Makefile.
in
4430 xmake_file
=x-linux
# These details are the same as Linux.
4431 tmake_file
=t-gnu
# These are not.
4434 fixincludes
=fixinc.svr4
4435 xmake_try_sysv
=x-sysv
4436 install_headers_dir
=install-headers-cpio
4439 install_headers_dir
=install-headers-cpio
4443 # Distinguish i[3456]86
4444 # Also, do not run mips-tfile on MIPS if using gas.
4445 # Process --with-cpu= for PowerPC/rs6000
4446 target_cpu_default2
=
4449 target_cpu_default2
=1
4452 target_cpu_default2
=2
4455 target_cpu_default2
=3
4460 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4463 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4466 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4469 target_cpu_default2
="MASK_CPU_EV5"
4475 if [ "$target_cpu_default2" = "" ]
4477 target_cpu_default2
="MASK_GAS"
4479 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4484 case "x$with_cpu" in
4487 target_cpu_default2
="TARGET_CPU_generic"
4490 # Distinguish cores, and major variants
4491 # arm7m doesn't exist, but D & I don't affect code
4492 xarm23678 | xarm250 | xarm67010 \
4493 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4494 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4495 | xstrongarm | xstrongarm110
)
4496 target_cpu_default2
="TARGET_CPU_$with_cpu"
4500 echo "--with-cpu must be passed a value" 1>&2
4505 if [ x
$pass2done = xyes
]
4507 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4514 mips
*-*-ecoff* | mips
*-*-elf*)
4517 if [ x
$gnu_ld = xyes
]
4519 target_cpu_default2
=20
4521 target_cpu_default2
=16
4528 target_cpu_default2
=16
4531 powerpc
*-*-* | rs6000-
*-*)
4532 case "x$with_cpu" in
4536 xcommon | xpower | xpower2 | xpowerpc | xrios \
4537 | xrios1 | xrios2 | xrsc | xrsc1 \
4538 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4539 | x403 | x505 | x801 | x821 | x823 | x860
)
4540 target_cpu_default2
="\"$with_cpu\""
4544 echo "--with-cpu must be passed a value" 1>&2
4549 if [ x
$pass2done = xyes
]
4551 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4558 case ".$with_cpu" in
4560 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4562 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4563 target_cpu_default2
="TARGET_CPU_$with_cpu"
4566 if [ x
$pass2done = xyes
]
4568 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4576 if [ "$target_cpu_default2" != "" ]
4578 if [ "$target_cpu_default" != "" ]
4580 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4582 target_cpu_default
=$target_cpu_default2
4586 # No need for collect2 if we have the GNU linker.
4593 # Save data on machine being used to compile GCC in build_xm_file.
4594 # Save data on host machine in vars host_xm_file and host_xmake_file.
4595 if [ x
$pass1done = x
]
4597 if [ x
"$xm_file" = x
]
4598 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4599 else build_xm_file
=$xm_file
4601 build_install_headers_dir
=$install_headers_dir
4602 build_exeext
=$exeext
4605 if [ x
$pass2done = x
]
4607 if [ x
"$xm_file" = x
]
4608 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4609 else host_xm_file
=$xm_file
4611 if [ x
"$xmake_file" = x
]
4612 then xmake_file
=$cpu_type/x-
$cpu_type
4614 host_xmake_file
="$xmake_file"
4615 host_truncate_target
=$truncate_target
4616 host_extra_gcc_objs
=$extra_gcc_objs
4617 host_extra_objs
=$extra_host_objs
4624 extra_objs
="${host_extra_objs} ${extra_objs}"
4626 # Default the target-machine variables that were not explicitly set.
4627 if [ x
"$tm_file" = x
]
4628 then tm_file
=$cpu_type/$cpu_type.h
; fi
4630 if [ x
$extra_headers = x
]
4631 then extra_headers
=; fi
4633 if [ x
"$xm_file" = x
]
4634 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4636 md_file
=$cpu_type/$cpu_type.md
4638 if [ x
$out_file = x
]
4639 then out_file
=$cpu_type/$cpu_type.c
; fi
4641 if [ x
"$tmake_file" = x
]
4642 then tmake_file
=$cpu_type/t-
$cpu_type
4645 if [ x
$float_format = x
]
4646 then float_format
=i64
4649 if [ x
$enable_haifa = x
]
4652 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
*)
4657 # Say what files are being used for the output code and MD file.
4658 echo "Using \`$srcdir/config/$out_file' to output insns."
4659 echo "Using \`$srcdir/config/$md_file' as machine description file."
4662 for f
in $tm_file; do
4665 if [ $count = ax
]; then
4666 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4668 echo "Using the following target machine macro files:"
4669 for f
in $tm_file; do
4670 echo " $srcdir/config/$f"
4675 for f
in $host_xm_file; do
4678 if [ $count = ax
]; then
4679 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4681 echo "Using the following host machine macro files:"
4682 for f
in $host_xm_file; do
4683 echo " $srcdir/config/$f"
4687 if [ "$host_xm_file" != "$build_xm_file" ]; then
4689 for f
in $build_xm_file; do
4692 if [ $count = ax
]; then
4693 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4695 echo "Using the following build machine macro files:"
4696 for f
in $build_xm_file; do
4697 echo " $srcdir/config/$f"
4702 if [ x
$thread_file = x
]; then
4703 if [ x
$target_thread_file != x
]; then
4704 thread_file
=$target_thread_file
4706 thread_file
='single'
4710 # Set up the header files.
4711 # $links is the list of header files to create.
4712 # $vars is the list of shell variables with file names to include.
4713 # auto-conf.h is the file containing items generated by autoconf and is
4714 # the first file included by config.h.
4715 host_xm_file
="auto-config.h ${host_xm_file}"
4717 # If host=build, it is correct to have hconfig include auto-conf.h
4718 # as well. If host!=build, we are in error and need to do more
4719 # work to find out the build config parameters.
4720 if [ x
$host = x
$build ]
4722 build_xm_file
="auto-config.h ${build_xm_file}"
4725 vars
="host_xm_file tm_file xm_file build_xm_file"
4726 links
="config.h tm.h tconfig.h hconfig.h"
4729 if [ -f config.status
]; then mv -f config.status config.bak
; fi
4732 while [ -n "$vars" ]
4734 # set file to car of files, files to cdr of files
4735 set $vars; var
=$1; shift; vars
=$
*
4736 set $links; link
=$1; shift; links
=$
*
4740 # Define TARGET_CPU_DEFAULT if the system wants one.
4741 # This substitutes for lots of *.h files.
4742 if [ "$target_cpu_default" != "" -a $link = tm.h
]
4744 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4747 for file in `eval echo '$'$var`; do
4748 echo "#include \"$file\"" >>$link
4752 # Truncate the target if necessary
4753 if [ x
$host_truncate_target != x
]; then
4754 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
4757 # Get the version number from the toplevel
4758 version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4760 # Get an absolute path to the GCC top-level source directory
4766 # Conditionalize the makefile for this host machine.
4767 # Make-host contains the concatenation of all host makefile fragments
4768 # [there can be more than one]. This file is built by configure.frag.
4769 host_overrides
=Make-host
4770 dep_host_xmake_file
=
4771 for f
in ..
${host_xmake_file}
4773 if [ -f ${srcdir}/config
/$f ]
4775 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
4779 # Conditionalize the makefile for this target machine.
4780 # Make-target contains the concatenation of all host makefile fragments
4781 # [there can be more than one]. This file is built by configure.frag.
4782 target_overrides
=Make-target
4784 for f
in ..
${tmake_file}
4786 if [ -f ${srcdir}/config
/$f ]
4788 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
4792 # If the host doesn't support symlinks, modify CC in
4793 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4794 # Otherwise, we can use "CC=$(CC)".
4796 if $symbolic_link symtest1.tem symtest.tem
2>/dev
/null
4798 cc_set_by_configure
="\$(CC)"
4799 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
4801 symbolic_link
="cp -p"
4802 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4803 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4807 out_object_file
=`basename $out_file .c`.o
4810 for f
in $tm_file; do
4811 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
4815 for f
in $host_xm_file; do
4816 if test $f != "auto-config.h"; then
4817 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
4819 host_xm_file_list
="${host_xm_file_list} auto-config.h"
4824 for f
in $build_xm_file; do
4825 if test $f != "auto-config.h"; then
4826 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
4828 build_xm_file_list
="${build_xm_file_list} auto-config.h"
4832 # Define macro CROSS_COMPILE in compilation
4833 # if this is a cross-compiler.
4834 # Also use all.cross instead of all.internal
4835 # and add cross-make to Makefile.
4836 cross_overrides
="/dev/null"
4837 if [ x
$host != x
$target ]
4839 cross_defines
="CROSS=-DCROSS_COMPILE"
4840 cross_overrides
="${topdir}/cross-make"
4843 # When building gcc with a cross-compiler, we need to fix a few things.
4844 # This must come after cross-make as we want all.build to override
4846 build_overrides
="/dev/null"
4847 if [ x
$build != x
$host ]
4849 build_overrides
="${topdir}/build-make"
4852 # Expand extra_headers to include complete path.
4853 # This substitutes for lots of t-* files.
4855 if [ "x$extra_headers" = x
]
4858 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4859 for file in $extra_headers;
4861 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4865 # Add a definition of USE_COLLECT2 if system wants one.
4866 # Also tell toplev.c what to do.
4867 # This substitutes for lots of t-* files.
4868 if [ x
$use_collect2 = x
]
4873 will_use_collect2
="ld"
4874 maybe_use_collect2
="-DUSE_COLLECT2"
4878 # Set MD_DEPS if the real md file is in md.pre-cpp.
4879 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4880 # for line oriented comments, so we must always use a GNU cpp. If
4881 # building gcc with a cross compiler, use the cross compiler just
4882 # built. Otherwise, we can use the cpp just built.
4884 if [ "x$md_cppflags" = x
]
4886 md_file_sub
=$srcdir/config
/$md_file
4891 # If we have gas in the build tree, make a link to it.
4892 if [ -f ..
/gas
/Makefile
]; then
4893 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
4896 # If we have ld in the build tree, make a link to it.
4897 if [ -f ..
/ld
/Makefile
]; then
4898 # if [[ x$use_collect2 = x ]]; then
4899 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4901 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
4905 # Figure out what language subdirectories are present.
4907 for lang
in ${srcdir}/*/config-lang.
in ..
4911 # The odd quoting in the next line works around
4912 # an apparent bug in bash 1.12 on linux.
4913 ${srcdir}/[*]/config-lang.
in) ;;
4914 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4918 # Make gthr-default.h if we have a thread file.
4920 if [ $thread_file != single
]; then
4921 rm -f gthr-default.h
4922 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4923 gthread_flags
=-DHAVE_GTHR_DEFAULT
4927 # Make empty files to contain the specs and options for each language.
4928 # Then add #include lines to for a compiler that has specs and/or options.
4932 rm -f specs.h options.h
4933 touch specs.h options.h
4934 for subdir
in .
$subdirs
4936 if [ -f $srcdir/$subdir/lang-specs.h
]; then
4937 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4938 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4940 if [ -f $srcdir/$subdir/lang-options.h
]; then
4941 echo "#include \"$subdir/lang-options.h\"" >>options.h
4942 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
4946 # These (without "all_") are set in each config-lang.in.
4947 # `language' must be a single word so is spelled singularly.
4953 all_outputs
=Makefile
4954 # List of language makefile fragments.
4959 # Add the language fragments.
4960 # Languages are added via two mechanisms. Some information must be
4961 # recorded in makefile variables, these are defined in config-lang.in.
4962 # We accumulate them and plug them into the main Makefile.
4963 # The other mechanism is a set of hooks for each of the main targets
4964 # like `clean', `install', etc.
4966 language_fragments
="Make-lang"
4967 language_hooks
="Make-hooks"
4970 for s
in ..
$subdirs
4982 .
${srcdir}/$s/config-lang.
in
4983 if [ "x$language" = x
]
4985 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4988 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4989 all_languages
="$all_languages $language"
4990 if [ "x$boot_language" = xyes
]
4992 all_boot_languages
="$all_boot_languages $language"
4994 all_compilers
="$all_compilers $compilers"
4995 all_stagestuff
="$all_stagestuff $stagestuff"
4996 all_diff_excludes
="$all_diff_excludes $diff_excludes"
4997 all_headers
="$all_headers $headers"
4998 all_outputs
="$all_outputs $outputs"
4999 if [ x
$outputs = x
]
5001 oldstyle_subdirs
="$oldstyle_subdirs $s"
5003 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5007 # Since we can't use `::' targets, we link each language in
5008 # with a set of hooks, reached indirectly via lang.${target}.
5012 target_list
="all.build all.cross start.encap rest.encap \
5014 install-normal install-common install-info install-man \
5016 mostlyclean clean distclean extraclean maintainer-clean \
5017 stage1 stage2 stage3 stage4"
5018 for t
in $target_list
5021 for l
in ..
$all_languages
5023 if [ $l != ".." ]; then
5027 echo "lang.$t: $x" >> Make-hooks
5030 # If we're not building in srcdir, create .gdbinit.
5032 if [ ! -f Makefile.
in ]; then
5033 echo "dir ." > .gdbinit
5034 echo "dir ${srcdir}" >> .gdbinit
5035 if [ x
$gdb_needs_out_file_path = xyes
]
5037 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5039 if [ "x$subdirs" != x
]; then
5042 echo "dir ${srcdir}/$s" >> .gdbinit
5045 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5048 # If this is using newlib, then define inhibit_libc in
5049 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5050 # libgcc.a, but that's OK because newib should have its own version of
5053 if [ x
$with_newlib = xyes
]; then
5054 inhibit_libc
=-Dinhibit_libc
5058 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5061 if [ x
$enable_haifa = xyes
]; then
5062 echo "Using the Haifa scheduler."
5064 sched_cflags
=-DHAIFA
5068 if [ x
$enable_haifa != x
]; then
5069 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5070 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5078 # Process the language and host/target makefile fragments.
5079 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5081 # Substitute configuration variables
5133 # Echo that links are built
5134 if [ x
$host = x
$target ]
5142 if [ x
$host != x
$build ]
5144 str3
=" on a $build system"
5147 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5152 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5154 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5156 echo " ${str2}${str3}." 1>&2
5159 # Configure the subdirectories
5160 # AC_CONFIG_SUBDIRS($subdirs)
5162 # Create the Makefile
5163 # and configure language subdirectories
5165 cat > confcache
<<\EOF
5166 # This file is a shell script that caches the results of configure
5167 # tests run on this system so they can be shared between configure
5168 # scripts and configure runs. It is not useful on other systems.
5169 # If it contains results you don't want to keep, you may remove or edit it.
5171 # By default, configure uses ./config.cache as the cache file,
5172 # creating it if it does not exist already. You can give configure
5173 # the --cache-file=FILE option to use a different cache file; that is
5174 # what configure does when it calls configure scripts in
5175 # subdirectories, so they share the cache.
5176 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5177 # config.status only pays attention to the cache file if you give it the
5178 # --recheck option to rerun configure.
5181 # The following way of writing the cache mishandles newlines in values,
5182 # but we know of no workaround that is simple, portable, and efficient.
5183 # So, don't put newlines in cache variables' values.
5184 # Ultrix sh set writes to stderr and can't be redirected directly,
5185 # and sets the high bit in the cache file unless we assign to the vars.
5187 case `(ac_space=' '; set) 2>&1` in
5189 # `set' does not quote correctly, so add quotes (double-quote substitution
5190 # turns \\\\ into \\, and sed turns \\ into \).
5192 -e "s/'/'\\\\''/g" \
5193 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5196 # `set' quotes correctly as required by POSIX, so do not add quotes.
5197 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5200 if cmp -s $cache_file confcache
; then
5203 if test -w $cache_file; then
5204 echo "updating cache $cache_file"
5205 cat confcache
> $cache_file
5207 echo "not updating unwritable cache $cache_file"
5212 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5214 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5215 # Let make expand exec_prefix.
5216 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5218 # Any assignment to VPATH causes Sun make to only execute
5219 # the first set of double-colon rules, so remove it if not needed.
5220 # If there is a colon in the path, we need to keep it.
5221 if test "x$srcdir" = x.
; then
5222 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5225 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5227 DEFS
=-DHAVE_CONFIG_H
5229 # Without the "./", some shells look in PATH for config.status.
5230 : ${CONFIG_STATUS=./config.status}
5232 echo creating
$CONFIG_STATUS
5233 rm -f $CONFIG_STATUS
5234 cat > $CONFIG_STATUS <<EOF
5236 # Generated automatically by configure.
5237 # Run this file to recreate the current configuration.
5238 # This directory was configured as follows,
5239 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5241 # $0 $ac_configure_args
5243 # Compiler output produced by configure, useful for debugging
5244 # configure, is in ./config.log if it exists.
5246 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5249 case "\$ac_option" in
5250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5251 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5252 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5253 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5254 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5256 -help | --help | --hel | --he | --h)
5257 echo "\$ac_cs_usage"; exit 0 ;;
5258 *) echo "\$ac_cs_usage"; exit 1 ;;
5262 ac_given_srcdir=$srcdir
5264 trap 'rm -fr `echo "$all_outputs auto-config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5266 cat >> $CONFIG_STATUS <<EOF
5268 # Protect against being on the right side of a sed subst in config.status.
5269 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5270 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5273 s%@CFLAGS@%$CFLAGS%g
5274 s%@CPPFLAGS@%$CPPFLAGS%g
5275 s%@CXXFLAGS@%$CXXFLAGS%g
5277 s%@LDFLAGS@%$LDFLAGS%g
5279 s%@exec_prefix@%$exec_prefix%g
5280 s%@prefix@%$prefix%g
5281 s%@program_transform_name@%$program_transform_name%g
5282 s%@bindir@%$bindir%g
5283 s%@sbindir@%$sbindir%g
5284 s%@libexecdir@%$libexecdir%g
5285 s%@datadir@%$datadir%g
5286 s%@sysconfdir@%$sysconfdir%g
5287 s%@sharedstatedir@%$sharedstatedir%g
5288 s%@localstatedir@%$localstatedir%g
5289 s%@libdir@%$libdir%g
5290 s%@includedir@%$includedir%g
5291 s%@oldincludedir@%$oldincludedir%g
5292 s%@infodir@%$infodir%g
5293 s%@mandir@%$mandir%g
5295 s%@host_alias@%$host_alias%g
5296 s%@host_cpu@%$host_cpu%g
5297 s%@host_vendor@%$host_vendor%g
5298 s%@host_os@%$host_os%g
5299 s%@target@%$target%g
5300 s%@target_alias@%$target_alias%g
5301 s%@target_cpu@%$target_cpu%g
5302 s%@target_vendor@%$target_vendor%g
5303 s%@target_os@%$target_os%g
5305 s%@build_alias@%$build_alias%g
5306 s%@build_cpu@%$build_cpu%g
5307 s%@build_vendor@%$build_vendor%g
5308 s%@build_os@%$build_os%g
5310 s%@SET_MAKE@%$SET_MAKE%g
5313 s%@LEXLIB@%$LEXLIB%g
5316 s%@RANLIB@%$RANLIB%g
5318 s%@INSTALL@%$INSTALL%g
5319 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5320 s%@INSTALL_DATA@%$INSTALL_DATA%g
5322 s%@manext@%$manext%g
5323 s%@objext@%$objext%g
5324 s%@gthread_flags@%$gthread_flags%g
5325 s%@inhibit_libc@%$inhibit_libc%g
5326 s%@sched_prefix@%$sched_prefix%g
5327 s%@sched_cflags@%$sched_cflags%g
5328 s%@subdirs@%$subdirs%g
5329 s%@all_languages@%$all_languages%g
5330 s%@all_boot_languages@%$all_boot_languages%g
5331 s%@all_compilers@%$all_compilers%g
5332 s%@all_lang_makefiles@%$all_lang_makefiles%g
5333 s%@all_stagestuff@%$all_stagestuff%g
5334 s%@all_diff_excludes@%$all_diff_excludes%g
5335 s%@all_lib2funcs@%$all_lib2funcs%g
5336 s%@all_headers@%$all_headers%g
5337 s%@extra_passes@%$extra_passes%g
5338 s%@extra_programs@%$extra_programs%g
5339 s%@extra_parts@%$extra_parts%g
5340 s%@extra_c_objs@%$extra_c_objs%g
5341 s%@extra_c_flags@%$extra_c_flags%g
5342 s%@extra_objs@%$extra_objs%g
5343 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5344 s%@extra_headers_list@%$extra_headers_list%g
5345 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5346 s%@dep_tmake_file@%$dep_tmake_file%g
5347 s%@out_file@%$out_file%g
5348 s%@out_object_file@%$out_object_file%g
5349 s%@md_file@%$md_file%g
5350 s%@tm_file_list@%$tm_file_list%g
5351 s%@build_xm_file_list@%$build_xm_file_list%g
5352 s%@host_xm_file_list@%$host_xm_file_list%g
5353 s%@lang_specs_files@%$lang_specs_files%g
5354 s%@lang_options_files@%$lang_options_files%g
5355 s%@thread_file@%$thread_file%g
5356 s%@version@%$version%g
5357 s%@local_prefix@%$local_prefix%g
5358 s%@gxx_include_dir@%$gxx_include_dir%g
5359 s%@fixincludes@%$fixincludes%g
5360 s%@build_install_headers_dir@%$build_install_headers_dir%g
5361 s%@build_exeext@%$build_exeext%g
5362 s%@host_exeext@%$host_exeext%g
5363 s%@float_format@%$float_format%g
5364 s%@will_use_collect2@%$will_use_collect2%g
5365 s%@maybe_use_collect2@%$maybe_use_collect2%g
5366 s%@cc_set_by_configure@%$cc_set_by_configure%g
5367 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5368 s%@install@%$install%g
5369 s%@symbolic_link@%$symbolic_link%g
5370 /@target_overrides@/r $target_overrides
5371 s%@target_overrides@%%g
5372 /@host_overrides@/r $host_overrides
5373 s%@host_overrides@%%g
5374 s%@cross_defines@%$cross_defines%g
5375 /@cross_overrides@/r $cross_overrides
5376 s%@cross_overrides@%%g
5377 /@build_overrides@/r $build_overrides
5378 s%@build_overrides@%%g
5379 /@language_fragments@/r $language_fragments
5380 s%@language_fragments@%%g
5381 /@language_hooks@/r $language_hooks
5382 s%@language_hooks@%%g
5387 cat >> $CONFIG_STATUS <<\EOF
5389 # Split the substitutions into bite-sized pieces for seds with
5390 # small command number limits, like on Digital OSF/1 and HP-UX.
5391 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5392 ac_file
=1 # Number of current file.
5393 ac_beg
=1 # First line for current file.
5394 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5397 while $ac_more_lines; do
5398 if test $ac_beg -gt 1; then
5399 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5401 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5403 if test ! -s conftest.s
$ac_file; then
5405 rm -f conftest.s
$ac_file
5407 if test -z "$ac_sed_cmds"; then
5408 ac_sed_cmds
="sed -f conftest.s$ac_file"
5410 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5412 ac_file
=`expr $ac_file + 1`
5414 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5417 if test -z "$ac_sed_cmds"; then
5422 cat >> $CONFIG_STATUS <<EOF
5424 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5426 cat >> $CONFIG_STATUS <<\EOF
5427 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5428 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5430 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5431 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5432 *) ac_file_in
="${ac_file}.in" ;;
5435 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5437 # Remove last slash and all that follows it. Not all systems have dirname.
5438 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5439 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5440 # The file is in a subdirectory.
5441 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5442 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5443 # A "../" for each directory in $ac_dir_suffix.
5444 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5446 ac_dir_suffix
= ac_dots
=
5449 case "$ac_given_srcdir" in
5451 if test -z "$ac_dots"; then top_srcdir
=.
5452 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5453 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5455 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5456 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5460 echo creating
"$ac_file"
5462 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5464 *Makefile
*) ac_comsub
="1i\\
5465 # $configure_input" ;;
5469 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5471 s%@configure_input@%$configure_input%g
5472 s%@srcdir@%$srcdir%g
5473 s%@top_srcdir@%$top_srcdir%g
5474 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5478 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5479 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5481 # ac_d sets the value in "#define NAME VALUE" lines.
5482 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5483 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5486 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5487 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5488 ac_uB
='\([ ]\)%\1#\2define\3'
5491 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5492 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5493 ac_eB
='$%\1#\2define\3'
5497 if test "${CONFIG_HEADERS+set}" != set; then
5499 cat >> $CONFIG_STATUS <<EOF
5500 CONFIG_HEADERS="auto-config.h:config.in"
5502 cat >> $CONFIG_STATUS <<\EOF
5504 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5507 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5508 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5509 *) ac_file_in
="${ac_file}.in" ;;
5512 echo creating
$ac_file
5514 rm -f conftest.frag conftest.
in conftest.out
5515 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5516 cat $ac_file_inputs > conftest.
in
5520 # Transform confdefs.h into a sed script conftest.vals that substitutes
5521 # the proper values into config.h.in to produce config.h. And first:
5522 # Protect against being on the right side of a sed subst in config.status.
5523 # Protect against being in an unquoted here document in config.status.
5525 cat > conftest.hdr
<<\EOF
5528 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5532 sed -n -f conftest.hdr confdefs.h > conftest.vals
5535 # This sed command replaces #undef with comments. This is necessary, for
5536 # example, in the case of _POSIX_SOURCE, which is predefined and required
5537 # on some systems where configure will not decide to define it.
5538 cat >> conftest.vals <<\EOF
5539 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5542 # Break up conftest.vals because some shells have a limit on
5543 # the size of here documents, and old seds have small limits too.
5548 ac_lines=`grep -c . conftest.vals
`
5549 # grep -c gives empty output for an empty file on some AIX systems.
5550 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5551 # Write a limited-size here document to conftest.frag.
5552 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5553 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5555 sed -f conftest.frag conftest.in > conftest.out
5557 mv conftest.out conftest.in
5559 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5561 mv conftest.tail conftest.vals
5565 cat >> $CONFIG_STATUS <<\EOF
5566 rm -f conftest.frag conftest.h
5567 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5568 cat conftest.in >> conftest.h
5570 if cmp -s $ac_file conftest.h 2>/dev/null; then
5571 echo "$ac_file is unchanged"
5574 # Remove last slash and all that follows it. Not all systems have dirname.
5575 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5576 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5577 # The file is in a subdirectory.
5578 test ! -d "$ac_dir" && mkdir "$ac_dir"
5581 mv conftest.h $ac_file
5586 cat >> $CONFIG_STATUS <<EOF
5591 target_alias='${target_alias}'
5593 subdirs='${subdirs}'
5594 oldstyle_subdirs='${oldstyle_subdirs}'
5595 symbolic_link='${symbolic_link}'
5596 program_transform_set='${program_transform_set}'
5597 program_transform_name='${program_transform_name}'
5598 dep_host_xmake_file='${dep_host_xmake_file}'
5599 host_xmake_file='${host_xmake_file}'
5600 dep_tmake_file='${dep_tmake_file}'
5601 tmake_file='${tmake_file}'
5602 thread_file='${thread_file}'
5603 version='${version}'
5604 local_prefix='${local_prefix}'
5605 build_install_headers_dir='${build_install_headers_dir}'
5606 build_exeext='${build_exeext}'
5607 host_exeext='${host_exeext}'
5608 out_file='${out_file}'
5609 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5610 SET_MAKE='${SET_MAKE}'
5611 target_list='${target_list}'
5612 target_overrides='${target_overrides}'
5613 host_overrides='${host_overrides}'
5614 cross_defines='${cross_defines}'
5615 cross_overrides='${cross_overrides}'
5616 build_overrides='${build_overrides}'
5619 cat >> $CONFIG_STATUS <<\EOF
5621 . $srcdir/configure.lang
5622 case x$CONFIG_HEADERS in
5623 xauto-config.h:config.in)
5626 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5627 # bootstrapping and the installation procedure can still use
5628 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5629 # FLAGS_TO_PASS has been modified to solve the problem there.
5630 # This is virtually a duplicate of what happens in configure.lang; we do
5631 # an extra check to make sure this only happens if ln -s can be used.
5632 if [ "$symbolic_link" = "ln -s" ]; then
5633 for d in .. ${subdirs} ; do
5634 if [ $d != .. ]; then
5637 for t in stage1 stage2 stage3 stage4 include
5640 $symbolic_link ../$t $t 2>/dev/null
5649 chmod +x $CONFIG_STATUS
5650 rm -fr confdefs* $ac_clean_files
5651 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1