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-checking enable expensive run-time checks."
30 --enable-c-cpplib Use cpplib for C."
32 --enable-haifa Use the experimental scheduler.
33 --disable-haifa Don't use the experimental scheduler for the
34 targets which normally enable it."
36 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
38 --enable-threads enable thread usage for target GCC.
39 --enable-threads=LIB use LIB thread package for target GCC."
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file
=.
/config.cache
54 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.12"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=tree.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
551 symbolic_link
='ln -s'
554 # Check for additional parameters
557 # Check whether --with-gnu-ld or --without-gnu-ld was given.
558 if test "${with_gnu_ld+set}" = set; then
559 withval
="$with_gnu_ld"
560 gnu_ld_flag
="$with_gnu_ld"
567 # Check whether --with-gnu-as or --without-gnu-as was given.
568 if test "${with_gnu_as+set}" = set; then
569 withval
="$with_gnu_as"
570 gas_flag
="$with_gnu_as"
577 # Check whether --with-stabs or --without-stabs was given.
578 if test "${with_stabs+set}" = set; then
579 withval
="$with_stabs"
587 # Check whether --with-elf or --without-elf was given.
588 if test "${with_elf+set}" = set; then
596 # Specify the local prefix
597 # Check whether --with-local-prefix or --without-local-prefix was given.
598 if test "${with_local_prefix+set}" = set; then
599 withval
="$with_local_prefix"
600 local_prefix
=$with_local_prefix
602 local_prefix
=/usr
/local
606 # Default local prefix if it is empty
607 if [ x
$local_prefix = x
]; then
608 local_prefix
=/usr
/local
611 # Specify the g++ header file directory
612 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
613 if test "${with_gxx_include_dir+set}" = set; then
614 withval
="$with_gxx_include_dir"
615 gxx_include_dir
=$with_gxx_include_dir
617 if test x
${enable_version_specific_runtime_libs} = xyes
; then
618 gxx_include_dir
='${libsubdir}/include/g++'
619 else gxx_include_dir
='${prefix}/include/g++'; fi
623 # Enable expensive internal checks
624 # Check whether --enable-checking or --disable-checking was given.
625 if test "${enable_checking+set}" = set; then
626 enableval
="$enable_checking"
627 cat >> confdefs.h
<<\EOF
628 #define ENABLE_CHECKING 1
635 # Enable use of cpplib for C.
637 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
638 if test "${enable_c_cpplib+set}" = set; then
639 enableval
="$enable_c_cpplib"
640 if [ x
$enable_c_cpplib != xno
]; then
641 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
642 extra_c_objs
="${extra_c_objs} prefix.o"
643 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
644 extra_c_flags
=-DUSE_CPPLIB=1
650 # Enable Haifa scheduler.
651 # Check whether --enable-haifa or --disable-haifa was given.
652 if test "${enable_haifa+set}" = set; then
653 enableval
="$enable_haifa"
659 # This is a work in progress...
660 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
661 if test "${with_fast_fixincludes+set}" = set; then
662 withval
="$with_fast_fixincludes"
663 fast_fixinc
="$with_fast_fixincludes"
670 # Pass with no value to take the default
671 # Pass with a value to specify a thread package
672 # Check whether --enable-threads or --disable-threads was given.
673 if test "${enable_threads+set}" = set; then
674 enableval
="$enable_threads"
675 if [ x
$enable_threads = xno
]; then
683 enable_threads_flag
=$enable_threads
684 # Check if a valid thread package
685 case x
${enable_threads_flag} in
688 target_thread_file
='single'
692 target_thread_file
=''
694 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
695 xsolaris | xwin32 | xdce | xvxworks
)
696 target_thread_file
=$enable_threads_flag
699 echo "$enable_threads is an unknown thread package" 1>&2
704 # Determine the host, build, and target systems
706 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
707 if test -f $ac_dir/install-sh
; then
709 ac_install_sh
="$ac_aux_dir/install-sh -c"
711 elif test -f $ac_dir/install.sh
; then
713 ac_install_sh
="$ac_aux_dir/install.sh -c"
717 if test -z "$ac_aux_dir"; then
718 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
720 ac_config_guess
=$ac_aux_dir/config.guess
721 ac_config_sub
=$ac_aux_dir/config.sub
722 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
725 # Do some error checking and defaulting for the host and target type.
727 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
730 # 1. You are not allowed to specify --host, --target, and nonopt at the
732 # 2. Host defaults to nonopt.
733 # 3. If nonopt is not specified, then host defaults to the current host,
734 # as determined by config.guess.
735 # 4. Target and build default to nonopt.
736 # 5. If nonopt is not specified, then target and build default to host.
738 # The aliases save the names the user supplied, while $host etc.
739 # will get canonicalized.
740 case $host---$target---$nonopt in
741 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
742 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
746 # Make sure we can run config.sub.
747 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
748 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
751 echo $ac_n "checking host system type""... $ac_c" 1>&6
752 echo "configure:753: checking host system type" >&5
755 case "$host_alias" in
759 if host_alias
=`$ac_config_guess`; then :
760 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
762 *) host_alias
=$nonopt ;;
766 host=`$ac_config_sub $host_alias`
767 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
768 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
769 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
770 echo "$ac_t""$host" 1>&6
772 echo $ac_n "checking target system type""... $ac_c" 1>&6
773 echo "configure:774: checking target system type" >&5
776 case "$target_alias" in
779 NONE
) target_alias
=$host_alias ;;
780 *) target_alias
=$nonopt ;;
784 target
=`$ac_config_sub $target_alias`
785 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788 echo "$ac_t""$target" 1>&6
790 echo $ac_n "checking build system type""... $ac_c" 1>&6
791 echo "configure:792: checking build system type" >&5
794 case "$build_alias" in
797 NONE
) build_alias
=$host_alias ;;
798 *) build_alias
=$nonopt ;;
802 build
=`$ac_config_sub $build_alias`
803 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
804 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
805 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
806 echo "$ac_t""$build" 1>&6
808 test "$host_alias" != "$target_alias" &&
809 test "$program_prefix$program_suffix$program_transform_name" = \
811 program_prefix
=${target_alias}-
814 # Find the native compiler
815 # Extract the first word of "gcc", so it can be a program name with args.
816 set dummy gcc
; 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}:"
826 for ac_dir
in $PATH; do
827 test -z "$ac_dir" && ac_dir
=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
843 if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845 set dummy cc
; ac_word
=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC
="$CC" # Let the user override the test.
854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
856 for ac_dir
in $PATH; do
857 test -z "$ac_dir" && ac_dir
=.
858 if test -f $ac_dir/$ac_word; then
859 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
868 if test $ac_prog_rejected = yes; then
869 # We found a bogon in the path, so make sure we never use it.
870 set dummy
$ac_cv_prog_CC
872 if test $# -gt 0; then
873 # We chose a different compiler from the bogus one.
874 # However, it has the same basename, so the bogon will be chosen
875 # first if we set CC to just the basename; use the full file name.
877 set dummy
"$ac_dir/$ac_word" "$@"
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
888 echo "$ac_t""no" 1>&6
891 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
894 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
895 echo "configure:896: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
899 ac_cpp
='$CPP $CPPFLAGS'
900 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
901 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
902 cross_compiling
=$ac_cv_prog_cc_cross
904 cat > conftest.
$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
909 if { (eval echo configure
:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
910 ac_cv_prog_cc_works
=yes
911 # If we can't run a trivial program, we are probably using a cross compiler.
912 if (.
/conftest
; exit) 2>/dev
/null
; then
913 ac_cv_prog_cc_cross
=no
915 ac_cv_prog_cc_cross
=yes
918 echo "configure: failed program was:" >&5
919 cat conftest.
$ac_ext >&5
920 ac_cv_prog_cc_works
=no
924 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
925 if test $ac_cv_prog_cc_works = no
; then
926 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
928 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
929 echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
930 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
931 cross_compiling
=$ac_cv_prog_cc_cross
933 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
934 echo "configure:935: checking whether we are using GNU C" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 cat > conftest.c
<<EOF
943 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
950 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
952 if test $ac_cv_prog_gcc = yes; then
954 ac_test_CFLAGS
="${CFLAGS+set}"
955 ac_save_CFLAGS
="$CFLAGS"
957 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
958 echo "configure:959: checking whether ${CC-cc} accepts -g" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 echo 'void f(){}' > conftest.c
963 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
972 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
973 if test "$ac_test_CFLAGS" = set; then
974 CFLAGS
="$ac_save_CFLAGS"
975 elif test $ac_cv_prog_cc_g = yes; then
982 test "${CFLAGS+set}" = set || CFLAGS
="-g"
985 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
986 echo "configure:987: checking whether ${MAKE-make} sets \${MAKE}" >&5
987 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
988 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 cat > conftestmake
<<\EOF
993 @
echo 'ac_maketemp="${MAKE}"'
995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
996 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
997 if test -n "$ac_maketemp"; then
998 eval ac_cv_prog_make_
${ac_make}_set
=yes
1000 eval ac_cv_prog_make_
${ac_make}_set
=no
1004 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1005 echo "$ac_t""yes" 1>&6
1008 echo "$ac_t""no" 1>&6
1009 SET_MAKE
="MAKE=${MAKE-make}"
1013 # Find some useful tools
1014 for ac_prog
in mawk gawk nawk
awk
1016 # Extract the first word of "$ac_prog", so it can be a program name with args.
1017 set dummy
$ac_prog; ac_word
=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 if test -n "$AWK"; then
1024 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1027 for ac_dir
in $PATH; do
1028 test -z "$ac_dir" && ac_dir
=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_prog_AWK
="$ac_prog"
1037 AWK
="$ac_cv_prog_AWK"
1038 if test -n "$AWK"; then
1039 echo "$ac_t""$AWK" 1>&6
1041 echo "$ac_t""no" 1>&6
1044 test -n "$AWK" && break
1047 # Extract the first word of "flex", so it can be a program name with args.
1048 set dummy flex
; ac_word
=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 if test -n "$LEX"; then
1055 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1057 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1058 for ac_dir
in $PATH; do
1059 test -z "$ac_dir" && ac_dir
=.
1060 if test -f $ac_dir/$ac_word; then
1061 ac_cv_prog_LEX
="flex"
1066 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1069 LEX
="$ac_cv_prog_LEX"
1070 if test -n "$LEX"; then
1071 echo "$ac_t""$LEX" 1>&6
1073 echo "$ac_t""no" 1>&6
1076 if test -z "$LEXLIB"
1082 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1083 echo "configure:1084: checking for yywrap in -l$ac_lib" >&5
1084 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 ac_save_LIBS
="$LIBS"
1089 LIBS
="-l$ac_lib $LIBS"
1090 cat > conftest.
$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1093 /* Override any gcc2 internal prototype to avoid an error. */
1094 /* We use char because int might match the return type of a gcc2
1095 builtin and then its argument prototype would still apply. */
1102 if { (eval echo configure
:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1104 eval "ac_cv_lib_$ac_lib_var=yes"
1106 echo "configure: failed program was:" >&5
1107 cat conftest.
$ac_ext >&5
1109 eval "ac_cv_lib_$ac_lib_var=no"
1112 LIBS
="$ac_save_LIBS"
1115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1116 echo "$ac_t""yes" 1>&6
1119 echo "$ac_t""no" 1>&6
1124 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether ln works" >&5
1126 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 rm -f conftestdata_t
1130 echo >conftestdata_f
1131 if ln conftestdata_f conftestdata_t
2>/dev
/null
1135 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1137 gcc_cv_prog_LN
="ln -s"
1142 rm -f conftestdata_f conftestdata_t
1145 LN
="$gcc_cv_prog_LN"
1146 if test "$gcc_cv_prog_LN" = "ln"; then
1147 echo "$ac_t""yes" 1>&6
1149 if test "$gcc_cv_prog_LN" = "ln -s"; then
1150 echo "$ac_t""no, using ln -s" 1>&6
1152 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1156 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether ln -s works" >&5
1158 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 rm -f conftestdata_t
1162 echo >conftestdata_f
1163 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1165 gcc_cv_prog_LN_S
="ln -s"
1167 if ln conftestdata_f conftestdata_t
2>/dev
/null
1174 rm -f conftestdata_f conftestdata_t
1177 LN_S
="$gcc_cv_prog_LN_S"
1178 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1179 echo "$ac_t""yes" 1>&6
1181 if test "$gcc_cv_prog_LN_S" = "ln"; then
1182 echo "$ac_t""no, using ln" 1>&6
1184 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1188 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1189 echo "configure:1190: checking for volatile" >&5
1190 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftest.
$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1201 if { (eval echo configure
:1202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1203 gcc_cv_c_volatile
=yes
1205 echo "configure: failed program was:" >&5
1206 cat conftest.
$ac_ext >&5
1208 gcc_cv_c_volatile
=no
1213 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1214 if test $gcc_cv_c_volatile = yes ; then
1215 cat >> confdefs.h
<<\EOF
1216 #define HAVE_VOLATILE 1
1221 # Extract the first word of "ranlib", so it can be a program name with args.
1222 set dummy ranlib
; ac_word
=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$RANLIB"; then
1229 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1231 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1232 for ac_dir
in $PATH; do
1233 test -z "$ac_dir" && ac_dir
=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_RANLIB
="ranlib"
1240 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1243 RANLIB
="$ac_cv_prog_RANLIB"
1244 if test -n "$RANLIB"; then
1245 echo "$ac_t""$RANLIB" 1>&6
1247 echo "$ac_t""no" 1>&6
1250 for ac_prog
in 'bison -y' byacc
1252 # Extract the first word of "$ac_prog", so it can be a program name with args.
1253 set dummy
$ac_prog; ac_word
=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 if test -n "$YACC"; then
1260 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1263 for ac_dir
in $PATH; do
1264 test -z "$ac_dir" && ac_dir
=.
1265 if test -f $ac_dir/$ac_word; then
1266 ac_cv_prog_YACC
="$ac_prog"
1273 YACC
="$ac_cv_prog_YACC"
1274 if test -n "$YACC"; then
1275 echo "$ac_t""$YACC" 1>&6
1277 echo "$ac_t""no" 1>&6
1280 test -n "$YACC" && break
1282 test -n "$YACC" || YACC
="yacc"
1284 # Find a good install program. We prefer a C program (faster),
1285 # so one script is as good as another. But avoid the broken or
1286 # incompatible versions:
1287 # SysV /etc/install, /usr/sbin/install
1288 # SunOS /usr/etc/install
1289 # IRIX /sbin/install
1291 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1292 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1293 # ./install, which can be erroneously created by make from ./install.sh.
1294 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1295 echo "configure:1296: checking for a BSD compatible install" >&5
1296 if test -z "$INSTALL"; then
1297 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1301 for ac_dir
in $PATH; do
1302 # Account for people who put trailing slashes in PATH elements.
1304 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1306 # OSF1 and SCO ODT 3.0 have their own names for install.
1307 for ac_prog
in ginstall scoinst
install; do
1308 if test -f $ac_dir/$ac_prog; then
1309 if test $ac_prog = install &&
1310 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1311 # AIX install. It has an incompatible calling convention.
1312 # OSF/1 installbsd also uses dspmsg, but is usable.
1315 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1326 if test "${ac_cv_path_install+set}" = set; then
1327 INSTALL
="$ac_cv_path_install"
1329 # As a last resort, use the slow shell script. We don't cache a
1330 # path for INSTALL within a source directory, because that will
1331 # break other packages using the cache if that directory is
1332 # removed, or if the path is relative.
1333 INSTALL
="$ac_install_sh"
1336 echo "$ac_t""$INSTALL" 1>&6
1338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1339 # It thinks the first close brace ends the variable substitution.
1340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1342 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1345 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1346 echo "configure:1347: checking how to run the C preprocessor" >&5
1347 # On Suns, sometimes $CPP names a directory.
1348 if test -n "$CPP" && test -d "$CPP"; then
1351 if test -z "$CPP"; then
1352 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 # This must be in double quotes, not single quotes, because CPP may get
1356 # substituted into the Makefile and "${CC-cc}" will confuse make.
1358 # On the NeXT, cc -E runs the code through the compiler's parser,
1359 # not just through cpp.
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1367 { (eval echo configure
:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1368 ac_err
=`grep -v '^ *+' conftest.out`
1369 if test -z "$ac_err"; then
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1376 CPP
="${CC-cc} -E -traditional-cpp"
1377 cat > conftest.
$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1383 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1384 { (eval echo configure
:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1385 ac_err
=`grep -v '^ *+' conftest.out`
1386 if test -z "$ac_err"; then
1390 echo "configure: failed program was:" >&5
1391 cat conftest.
$ac_ext >&5
1398 ac_cv_prog_CPP
="$CPP"
1400 CPP
="$ac_cv_prog_CPP"
1402 ac_cv_prog_CPP
="$CPP"
1404 echo "$ac_t""$CPP" 1>&6
1406 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1407 echo "configure:1408: checking for ANSI C header files" >&5
1408 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1419 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420 { (eval echo configure
:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421 ac_err
=`grep -v '^ *+' conftest.out`
1422 if test -z "$ac_err"; then
1424 ac_cv_header_stdc
=yes
1427 echo "configure: failed program was:" >&5
1428 cat conftest.
$ac_ext >&5
1430 ac_cv_header_stdc
=no
1434 if test $ac_cv_header_stdc = yes; then
1435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1436 cat > conftest.
$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "memchr" >/dev
/null
2>&1; then
1446 ac_cv_header_stdc
=no
1452 if test $ac_cv_header_stdc = yes; then
1453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1454 cat > conftest.
$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1460 egrep "free" >/dev
/null
2>&1; then
1464 ac_cv_header_stdc
=no
1470 if test $ac_cv_header_stdc = yes; then
1471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1472 if test "$cross_compiling" = yes; then
1475 cat > conftest.
$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1479 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1480 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1482 int main () { int i; for (i = 0; i < 256; i++)
1483 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1487 if { (eval echo configure
:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1491 echo "configure: failed program was:" >&5
1492 cat conftest.
$ac_ext >&5
1494 ac_cv_header_stdc
=no
1502 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1503 if test $ac_cv_header_stdc = yes; then
1504 cat >> confdefs.h
<<\EOF
1505 #define STDC_HEADERS 1
1510 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1511 echo "configure:1512: checking whether time.h and sys/time.h may both be included" >&5
1512 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 cat > conftest.
$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1518 #include <sys/types.h>
1519 #include <sys/time.h>
1525 if { (eval echo configure
:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1527 ac_cv_header_time
=yes
1529 echo "configure: failed program was:" >&5
1530 cat conftest.
$ac_ext >&5
1532 ac_cv_header_time
=no
1537 echo "$ac_t""$ac_cv_header_time" 1>&6
1538 if test $ac_cv_header_time = yes; then
1539 cat >> confdefs.h
<<\EOF
1540 #define TIME_WITH_SYS_TIME 1
1545 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h stab.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h
wait.h sys
/wait.h
1547 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_hdr" >&5
1550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 cat > conftest.
$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1558 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1559 { (eval echo configure
:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1560 ac_err
=`grep -v '^ *+' conftest.out`
1561 if test -z "$ac_err"; then
1563 eval "ac_cv_header_$ac_safe=yes"
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1569 eval "ac_cv_header_$ac_safe=no"
1573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1576 cat >> confdefs.h
<<EOF
1577 #define $ac_tr_hdr 1
1581 echo "$ac_t""no" 1>&6
1586 # Check for thread headers.
1587 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1588 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1589 echo "configure:1590: checking for thread.h" >&5
1590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 cat > conftest.
$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1598 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1599 { (eval echo configure
:1600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1600 ac_err
=`grep -v '^ *+' conftest.out`
1601 if test -z "$ac_err"; then
1603 eval "ac_cv_header_$ac_safe=yes"
1606 echo "configure: failed program was:" >&5
1607 cat conftest.
$ac_ext >&5
1609 eval "ac_cv_header_$ac_safe=no"
1613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1617 echo "$ac_t""no" 1>&6
1621 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1622 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1623 echo "configure:1624: checking for pthread.h" >&5
1624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 #include <pthread.h>
1632 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1633 { (eval echo configure
:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1634 ac_err
=`grep -v '^ *+' conftest.out`
1635 if test -z "$ac_err"; then
1637 eval "ac_cv_header_$ac_safe=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.
$ac_ext >&5
1643 eval "ac_cv_header_$ac_safe=no"
1647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1651 echo "$ac_t""no" 1>&6
1656 # See if the system preprocessor understands the ANSI C preprocessor
1657 # stringification operator.
1658 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1659 echo "configure:1660: checking whether cpp understands the stringify operator" >&5
1660 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1669 char *test = S(foo);
1672 if { (eval echo configure
:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1674 gcc_cv_c_have_stringify
=yes
1676 echo "configure: failed program was:" >&5
1677 cat conftest.
$ac_ext >&5
1679 gcc_cv_c_have_stringify
=no
1684 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1685 if test $gcc_cv_c_have_stringify = yes; then
1686 cat >> confdefs.h
<<\EOF
1687 #define HAVE_CPP_STRINGIFY 1
1692 # Use <inttypes.h> only if it exists,
1693 # doesn't clash with <sys/types.h>, and declares intmax_t.
1694 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1695 echo "configure:1696: checking for inttypes.h" >&5
1696 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 cat > conftest.
$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1702 #include <sys/types.h>
1703 #include <inttypes.h>
1708 if { (eval echo configure
:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1710 cat >> confdefs.h
<<EOF
1711 #define HAVE_INTTYPES_H 1
1714 gcc_cv_header_inttypes_h
=yes
1716 echo "configure: failed program was:" >&5
1717 cat conftest.
$ac_ext >&5
1719 gcc_cv_header_inttypes_h
=no
1724 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1726 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1727 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1728 sysconf isascii gettimeofday
1730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_func" >&5
1732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.
$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $ac_func(); below. */
1741 /* Override any gcc2 internal prototype to avoid an error. */
1742 /* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1759 if { (eval echo configure
:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1761 eval "ac_cv_func_$ac_func=yes"
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1766 eval "ac_cv_func_$ac_func=no"
1771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1774 cat >> confdefs.h
<<EOF
1775 #define $ac_tr_func 1
1779 echo "$ac_t""no" 1>&6
1784 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1785 echo "configure:1786: checking for vprintf" >&5
1786 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char vprintf(); below. */
1795 /* Override any gcc2 internal prototype to avoid an error. */
1796 /* We use char because int might match the return type of a gcc2
1797 builtin and then its argument prototype would still apply. */
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1813 if { (eval echo configure
:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1815 eval "ac_cv_func_vprintf=yes"
1817 echo "configure: failed program was:" >&5
1818 cat conftest.
$ac_ext >&5
1820 eval "ac_cv_func_vprintf=no"
1825 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1826 echo "$ac_t""yes" 1>&6
1827 cat >> confdefs.h
<<\EOF
1828 #define HAVE_VPRINTF 1
1832 echo "$ac_t""no" 1>&6
1835 if test "$ac_cv_func_vprintf" != yes; then
1836 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1837 echo "configure:1838: checking for _doprnt" >&5
1838 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char _doprnt(); below. */
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1865 if { (eval echo configure
:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1867 eval "ac_cv_func__doprnt=yes"
1869 echo "configure: failed program was:" >&5
1870 cat conftest.
$ac_ext >&5
1872 eval "ac_cv_func__doprnt=no"
1877 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 cat >> confdefs.h
<<\EOF
1880 #define HAVE_DOPRNT 1
1884 echo "$ac_t""no" 1>&6
1891 if test $ac_cv_func_vprintf != yes ; then
1893 if test $ac_cv_func__doprnt != yes ; then
1900 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether the printf functions support %p" >&5
1902 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test "$cross_compiling" = yes; then
1906 gcc_cv_func_printf_ptr
=no
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1916 char *p = buf, *q = NULL;
1917 sprintf(buf, "%p", p);
1918 sscanf(buf, "%p", &q);
1922 if { (eval echo configure
:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1924 gcc_cv_func_printf_ptr
=yes
1926 echo "configure: failed program was:" >&5
1927 cat conftest.
$ac_ext >&5
1929 gcc_cv_func_printf_ptr
=no
1934 rm -f core core.
* *.core
1937 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1938 if test $gcc_cv_func_printf_ptr = yes ; then
1939 cat >> confdefs.h
<<\EOF
1940 #define HOST_PTR_PRINTF "%p"
1946 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1947 index rindex getenv atol sbrk abort atof strerror getcwd getwd
1949 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1950 echo "configure:1951: checking whether $ac_func must be declared" >&5
1951 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1959 #ifdef HAVE_STRING_H
1962 #ifdef HAVE_STRINGS_H
1963 #include <strings.h>
1966 #ifdef HAVE_STDLIB_H
1969 #ifdef HAVE_UNISTD_H
1973 #define rindex strrchr
1976 #define index strchr
1980 char *(*pfn) = (char *(*)) $ac_func
1983 if { (eval echo configure
:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1985 eval "gcc_cv_decl_needed_$ac_func=no"
1987 echo "configure: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1990 eval "gcc_cv_decl_needed_$ac_func=yes"
1995 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1998 cat >> confdefs.h
<<EOF
1999 #define $gcc_tr_decl 1
2003 echo "$ac_t""no" 1>&6
2009 for ac_func
in getrlimit setrlimit
2011 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether $ac_func must be declared" >&5
2013 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2021 #ifdef HAVE_STRING_H
2024 #ifdef HAVE_STRINGS_H
2025 #include <strings.h>
2028 #ifdef HAVE_STDLIB_H
2031 #ifdef HAVE_UNISTD_H
2035 #define rindex strrchr
2038 #define index strchr
2040 #include <sys/types.h>
2041 #ifdef HAVE_SYS_RESOURCE_H
2042 #include <sys/resource.h>
2046 char *(*pfn) = (char *(*)) $ac_func
2049 if { (eval echo configure
:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051 eval "gcc_cv_decl_needed_$ac_func=no"
2053 echo "configure: failed program was:" >&5
2054 cat conftest.
$ac_ext >&5
2056 eval "gcc_cv_decl_needed_$ac_func=yes"
2061 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2064 cat >> confdefs.h
<<EOF
2065 #define $gcc_tr_decl 1
2069 echo "$ac_t""no" 1>&6
2075 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2076 echo "configure:2077: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2077 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 cat > conftest.
$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2083 #include <sys/types.h>
2085 /* NetBSD declares sys_siglist in unistd.h. */
2086 #ifdef HAVE_UNISTD_H
2090 char *msg = *(sys_siglist + 1);
2093 if { (eval echo configure
:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2095 ac_cv_decl_sys_siglist
=yes
2097 echo "configure: failed program was:" >&5
2098 cat conftest.
$ac_ext >&5
2100 ac_cv_decl_sys_siglist
=no
2105 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2106 if test $ac_cv_decl_sys_siglist = yes; then
2107 cat >> confdefs.h
<<\EOF
2108 #define SYS_SIGLIST_DECLARED 1
2122 build_install_headers_dir
=install-headers-tar
2127 host_truncate_target
=
2130 # Decode the host machine, then the target machine.
2131 # For the host machine, we save the xm_file variable as host_xm_file;
2132 # then we decode the target machine and forget everything else
2133 # that came from the host machine.
2134 for machine
in $build $host $target; do
2148 # Set this to force installation and use of collect2.
2150 # Set this to override the default target model.
2152 # Set this to control which fixincludes program to use.
2153 if [ x
$fast_fixinc != xyes
] ; then
2154 fixincludes
=fixincludes
2155 else fixincludes
=fixinc.sh
; fi
2156 # Set this to control how the header file directory is installed.
2157 install_headers_dir
=install-headers-tar
2158 # Set this to a non-empty list of args to pass to cpp if the target
2159 # wants its .md file passed through cpp.
2161 # Set this if directory names should be truncated to 14 characters.
2163 # Set this if gdb needs a dir command with `dirname $out_file`
2164 gdb_needs_out_file_path
=
2165 # Set this if the build machine requires executables to have a
2168 # Set this to control which thread package will be used.
2170 # Reinitialize these from the flag values every loop pass, since some
2171 # configure entries modify them.
2173 gnu_ld
="$gnu_ld_flag"
2174 enable_threads
=$enable_threads_flag
2176 # Set default cpu_type, tm_file and xm_file so it can be updated in
2177 # each machine entry.
2178 cpu_type
=`echo $machine | sed 's/-.*$//'`
2212 tm_file
=${cpu_type}/${cpu_type}.h
2213 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2215 # Set the default macros to define for GNU/Linux systems.
2218 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2223 # Support site-specific machine types.
2225 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2226 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2227 xm_file
=${cpu_type}/xm-
$rest.h
2228 tm_file
=${cpu_type}/$rest.h
2229 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2230 then xmake_file
=${cpu_type}/x-
$rest; \
2233 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2234 then tmake_file
=${cpu_type}/t-
$rest; \
2240 a29k-
*-bsd* | a29k-
*-sym1*)
2241 tm_file
="${tm_file} a29k/unix.h"
2243 xmake_file
=a29k
/x-unix
2246 a29k-
*-udi | a29k-
*-coff)
2247 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2248 tmake_file
=a29k
/t-a29kbare
2251 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2252 tmake_file
=a29k
/t-vx29k
2253 extra_parts
="crtbegin.o crtend.o"
2254 thread_file
='vxworks'
2256 a29k-
*-*) # Default a29k environment.
2259 alpha
*-*-linux-gnuecoff*)
2260 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2261 target_cpu_default
="MASK_GAS"
2266 alpha
*-*-linux-gnulibc1*)
2267 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2268 target_cpu_default
="MASK_GAS"
2269 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2270 extra_parts
="crtbegin.o crtend.o"
2271 fixincludes
=fixinc.wrap
2274 if [ x
$enable_threads = xyes
]; then
2278 alpha
*-*-linux-gnu*)
2279 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2280 target_cpu_default
="MASK_GAS"
2281 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2282 extra_parts
="crtbegin.o crtend.o"
2284 fixincludes
=Makefile.
in
2286 if [ x
$enable_threads = xyes
]; then
2291 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2292 target_cpu_default
="MASK_GAS"
2293 tmake_file
="alpha/t-crtbe"
2294 extra_parts
="crtbegin.o crtend.o"
2296 fixincludes
=fixinc.wrap
2301 if [ x
$stabs = xyes
]
2303 tm_file
="${tm_file} dbx.h"
2305 if [ x
$gas != xyes
]
2307 extra_passes
="mips-tfile mips-tdump"
2312 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2315 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2318 tm_file
="${tm_file} alpha/osf.h"
2319 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2320 # a broken tar, so we use cpio instead.
2321 install_headers_dir
=install-headers-cpio
2325 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2326 target_cpu_default
=MASK_SUPPORT_ARCH
2331 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2334 extra_passes
="mips-tfile mips-tdump"
2339 tm_file
="${tm_file} alpha/win-nt.h"
2340 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2341 tmake_file
=t-libc-ok
2342 xmake_file
=winnt
/x-winnt
2343 extra_host_objs
=oldnames.o
2344 extra_gcc_objs
="spawnv.o oldnames.o"
2345 fixincludes
=fixinc.winnt
2346 if [ x
$gnu_ld != xyes
]
2348 extra_programs
=ld.exe
2350 if [ x
$enable_threads = xyes
]; then
2356 xm_file
="${xm_file} alpha/xm-vms.h"
2357 tmake_file
=alpha
/t-vms
2358 fixincludes
=Makefile.
in
2361 extra_parts
="crtinit.o crtfini.o"
2363 arm-
*-coff* | armel-
*-coff*)
2365 tmake_file
=arm
/t-bare
2367 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2368 tm_file
=arm
/riscix1-1.h
2371 arm-
*-riscix*) # Acorn RISC machine
2374 tm_file
=arm
/rix-gas.h
2376 tm_file
=arm
/riscix.h
2378 xmake_file
=arm
/x-riscix
2379 tmake_file
=arm
/t-riscix
2382 arm-semi-aout | armel-semi-aout
)
2384 tmake_file
=arm
/t-semi
2385 fixincludes
=Makefile.
in # There is nothing to fix
2387 arm-semi-aof | armel-semi-aof
)
2388 tm_file
=arm
/semiaof.h
2389 tmake_file
=arm
/t-semiaof
2390 fixincludes
=Makefile.
in # There is nothing to fix
2393 tm_file
=arm
/netbsd.h
2394 xm_file
="xm-siglist.h ${xm_file}"
2395 tmake_file
="t-netbsd arm/t-netbsd"
2396 # On NetBSD, the headers are already okay, except for math.h.
2397 fixincludes
=fixinc.wrap
2399 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2402 tm_file
=arm
/linux-gas.h
2403 tmake_file
=arm
/t-linux
2404 fixincludes
=Makefile.
in
2409 tmake_file
=arm
/t-bare
2411 c1-convex-
*) # Convex C1
2412 target_cpu_default
=1
2414 fixincludes
=Makefile.
in
2416 c2-convex-
*) # Convex C2
2417 target_cpu_default
=2
2419 fixincludes
=Makefile.
in
2422 target_cpu_default
=4
2424 fixincludes
=Makefile.
in
2427 target_cpu_default
=8
2429 fixincludes
=Makefile.
in
2432 target_cpu_default
=16
2434 fixincludes
=Makefile.
in
2436 clipper-intergraph-clix
*)
2437 tm_file
="${tm_file} svr3.h clipper/clix.h"
2438 xm_file
=clipper
/xm-clix.h
2439 xmake_file
=clipper
/x-clix
2440 extra_headers
=va-clipper.h
2441 extra_parts
="crtbegin.o crtend.o"
2442 install_headers_dir
=install-headers-cpio
2449 # This hasn't been upgraded to GCC 2.
2450 # fx80-alliant-*) # Alliant FX/80
2456 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2457 xm_file
=pa
/xm-papro.h
2461 target_cpu_default
=1
2462 tm_file
="${tm_file} pa/pa-osf.h"
2464 fixincludes
=Makefile.
in
2467 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2468 xm_file
=pa
/xm-papro.h
2472 tm_file
="${tm_file} pa/pa-osf.h"
2474 fixincludes
=Makefile.
in
2477 target_cpu_default
=1
2479 fixincludes
=Makefile.
in
2483 fixincludes
=Makefile.
in
2486 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2487 xm_file
=pa
/xm-pahpux.h
2488 xmake_file
=pa
/x-pa-hpux
2491 tm_file
="${tm_file} pa/gas.h"
2493 install_headers_dir
=install-headers-cpio
2496 hppa1.0
-*-hpux8.0
[0-2]*)
2497 tm_file
="${tm_file} pa/pa-hpux.h"
2498 xm_file
=pa
/xm-pahpux.h
2499 xmake_file
=pa
/x-pa-hpux
2502 tm_file
="${tm_file} pa/pa-gas.h"
2504 tm_file
="pa/pa-oldas.h ${tm_file}"
2506 install_headers_dir
=install-headers-cpio
2509 hppa1.1
-*-hpux8.0
[0-2]*)
2510 target_cpu_default
=1
2511 tm_file
="${tm_file} pa/pa-hpux.h"
2512 xm_file
=pa
/xm-pahpux.h
2513 xmake_file
=pa
/x-pa-hpux
2516 tm_file
="${tm_file} pa/pa-gas.h"
2518 tm_file
="pa/pa-oldas.h ${tm_file}"
2520 install_headers_dir
=install-headers-cpio
2524 target_cpu_default
=1
2525 tm_file
="${tm_file} pa/pa-hpux.h"
2526 xm_file
=pa
/xm-pahpux.h
2527 xmake_file
=pa
/x-pa-hpux
2530 tm_file
="${tm_file} pa/pa-gas.h"
2532 install_headers_dir
=install-headers-cpio
2536 tm_file
="${tm_file} pa/pa-hpux.h"
2537 xm_file
=pa
/xm-pahpux.h
2538 xmake_file
=pa
/x-pa-hpux
2541 tm_file
="${tm_file} pa/pa-gas.h"
2543 install_headers_dir
=install-headers-cpio
2547 target_cpu_default
=1
2548 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2549 xm_file
=pa
/xm-pahpux.h
2550 xmake_file
=pa
/x-pa-hpux
2554 tm_file
="${tm_file} pa/pa-gas.h"
2556 if [ x
$enable_threads = x
]; then
2557 enable_threads
=$have_pthread_h
2559 if [ x
$enable_threads = xyes
]; then
2561 tmake_file
="${tmake_file} pa/t-dce-thr"
2563 install_headers_dir
=install-headers-cpio
2567 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2568 xm_file
=pa
/xm-pahpux.h
2569 xmake_file
=pa
/x-pa-hpux
2572 tm_file
="${tm_file} pa/pa-gas.h"
2574 if [ x
$enable_threads = x
]; then
2575 enable_threads
=$have_pthread_h
2577 if [ x
$enable_threads = xyes
]; then
2579 tmake_file
="${tmake_file} pa/t-dce-thr"
2581 install_headers_dir
=install-headers-cpio
2585 target_cpu_default
=1
2586 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2587 xm_file
=pa
/xm-pahpux.h
2588 xmake_file
=pa
/x-pa-hpux
2591 tm_file
="${tm_file} pa/pa-gas.h"
2593 install_headers_dir
=install-headers-cpio
2597 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2598 xm_file
=pa
/xm-pahpux.h
2599 xmake_file
=pa
/x-pa-hpux
2602 tm_file
="${tm_file} pa/pa-gas.h"
2604 install_headers_dir
=install-headers-cpio
2608 target_cpu_default
=1
2609 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2610 xm_file
=pa
/xm-pahpux.h
2611 xmake_file
=pa
/x-pa-hpux
2614 tm_file
="${tm_file} pa/pa-gas.h"
2616 install_headers_dir
=install-headers-cpio
2620 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2621 xm_file
=pa
/xm-pahpux.h
2622 xmake_file
=pa
/x-pa-hpux
2625 tm_file
="${tm_file} pa/pa-gas.h"
2627 install_headers_dir
=install-headers-cpio
2631 target_cpu_default
=1
2633 fixincludes
=Makefile.
in
2637 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2640 tm_file
=i386
/aix386.h
2641 extra_parts
="crtbegin.o crtend.o"
2642 tmake_file
=i386
/t-crtstuff
2644 tm_file
=i386
/aix386ng.h
2647 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2649 xmake_file
=i386
/x-aix
2651 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2652 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2653 xm_defines
="USG POSIX SMALL_ARG_MAX"
2654 xmake_file
=i386
/x-ncr3000
2655 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2657 tm_file
=i386
/sysv4gdb.h
2659 tm_file
=i386
/sysv4.h
2661 extra_parts
="crtbegin.o crtend.o"
2662 tmake_file
=i386
/t-crtpic
2666 xm_file
=i386
/xm-next.h
2667 tmake_file
=i386
/t-next
2668 xmake_file
=i386
/x-next
2669 extra_objs
=nextstep.o
2670 if [ x
$enable_threads = xyes
]; then
2674 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2678 tm_file
=i386
/seq-gas.h
2680 tm_file
=i386
/sequent.h
2683 i
[34567]86-sequent-ptx1*)
2684 xm_defines
="USG SVR3"
2685 xmake_file
=i386
/x-sysv3
2686 tm_file
=i386
/seq-sysv3.h
2687 tmake_file
=i386
/t-crtstuff
2688 fixincludes
=fixinc.
ptx
2689 extra_parts
="crtbegin.o crtend.o"
2690 install_headers_dir
=install-headers-cpio
2692 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2693 xm_defines
="USG SVR3"
2694 xmake_file
=i386
/x-sysv3
2695 tm_file
=i386
/seq2-sysv3.h
2696 tmake_file
=i386
/t-crtstuff
2697 extra_parts
="crtbegin.o crtend.o"
2698 fixincludes
=fixinc.
ptx
2699 install_headers_dir
=install-headers-cpio
2701 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2702 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2703 xm_defines
="USG POSIX SMALL_ARG_MAX"
2705 tm_file
=i386
/ptx4-i.h
2707 extra_parts
="crtbegin.o crtend.o"
2708 fixincludes
=fixinc.
ptx
2709 install_headers_dir
=install-headers-cpio
2711 i386-sun-sunos
*) # Sun i386 roadrunner
2716 i
[34567]86-wrs-vxworks*)
2717 tm_file
=i386
/vxi386.h
2718 tmake_file
=i386
/t-i386bare
2721 tm_file
=i386
/i386-aout.h
2722 tmake_file
=i386
/t-i386bare
2724 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2725 tm_file
=i386
/bsd386.h
2726 # tmake_file=t-libc-ok
2729 tm_file
=i386
/386bsd.h
2730 # tmake_file=t-libc-ok
2731 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2734 i
[34567]86-*-freebsdelf*)
2735 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2736 # On FreeBSD, the headers are already ok, except for math.h.
2737 fixincludes
=fixinc.wrap
2738 tmake_file
=i386
/t-freebsd
2743 i
[34567]86-*-freebsd*)
2744 tm_file
=i386
/freebsd.h
2745 # On FreeBSD, the headers are already ok, except for math.h.
2746 fixincludes
=fixinc.wrap
2747 tmake_file
=i386
/t-freebsd
2749 i
[34567]86-*-netbsd*)
2750 tm_file
=i386
/netbsd.h
2751 # On NetBSD, the headers are already okay, except for math.h.
2752 fixincludes
=fixinc.wrap
2756 tm_file
=i386
/i386-coff.h
2757 tmake_file
=i386
/t-i386bare
2759 i
[34567]86-*-isc*) # 80386 running ISC system
2760 xm_file
="${xm_file} i386/xm-isc.h"
2761 xm_defines
="USG SVR3"
2763 i
[34567]86-*-isc[34]*)
2764 xmake_file
=i386
/x-isc3
2767 xmake_file
=i386
/x-isc
2770 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2772 tm_file
=i386
/iscdbx.h
2773 tmake_file
=i386
/t-svr3dbx
2774 extra_parts
="svr3.ifile svr3z.ifile"
2776 tm_file
=i386
/isccoff.h
2777 tmake_file
=i386
/t-crtstuff
2778 extra_parts
="crtbegin.o crtend.o"
2780 install_headers_dir
=install-headers-cpio
2782 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2783 # with a.out format using
2785 xmake_file
=x-linux-aout
2786 tmake_file
="t-linux-aout i386/t-crtstuff"
2787 tm_file
=i386
/linux-oldld.h
2788 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2792 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2794 xmake_file
=x-linux-aout
2795 tmake_file
="t-linux-aout i386/t-crtstuff"
2796 tm_file
=i386
/linux-aout.h
2797 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2801 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2802 # with ELF format using the
2803 # GNU/Linux C library 5
2805 tm_file
=i386
/linux.h
2806 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2807 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2808 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2811 if [ x
$enable_threads = xyes
]; then
2812 thread_file
='single'
2815 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2816 # with ELF format using glibc 2
2817 # aka GNU/Linux C library 6
2819 tm_file
=i386
/linux.h
2820 tmake_file
="t-linux i386/t-crtstuff"
2821 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2822 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2825 if [ x
$enable_threads = xyes
]; then
2831 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2832 xm_file
=i386
/xm-go32.h
2834 tmake_file
=i386
/t-go32
2836 i
[34567]86-pc-msdosdjgpp*)
2837 xm_file
=i386
/xm-go32.h
2839 tmake_file
=i386
/t-go32
2843 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2845 tmake_file
=t-libc-ok
2846 fixincludes
=Makefile.
in
2850 i
[34567]86-*-lynxos*)
2855 tm_file
=i386
/lynx-ng.h
2857 xm_file
=i386
/xm-lynx.h
2858 tmake_file
=i386
/t-i386bare
2863 # tmake_file=t-libc-ok
2866 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2869 tm_file
=i386
/osfelf.h
2872 tm_file
=i386
/osfrose.h
2875 xm_file
="i386/xm-osf.h ${xm_file}"
2876 xmake_file
=i386
/x-osfrose
2877 tmake_file
=i386
/t-osf
2878 extra_objs
=halfpic.o
2880 i
[34567]86-go32-rtems*)
2882 xm_file
=i386
/xm-go32.h
2883 tm_file
=i386
/go32-rtems.h
2884 tmake_file
="i386/t-go32 t-rtems"
2886 i
[34567]86-*-rtemself*)
2888 tm_file
=i386
/rtemself.h
2889 tmake_file
="i386/t-i386bare t-rtems"
2891 i
[34567]86-*-rtems*)
2893 tm_file
=i386
/rtems.h
2894 tmake_file
="i386/t-i386bare t-rtems"
2896 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2897 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2898 xm_defines
="USG SVR3"
2899 xmake_file
=i386
/x-sco5
2900 fixincludes
=fixinc.sco
2901 install_headers_dir
=install-headers-cpio
2905 tm_file
="i386/sco5gas.h ${tm_file}"
2906 tmake_file
=i386
/t-sco5gas
2908 tmake_file
=i386
/t-sco5
2910 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2912 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2913 xm_file
="${xm_file} i386/xm-sco.h"
2914 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2915 xmake_file
=i386
/x-sco4
2916 fixincludes
=fixinc.sco
2917 install_headers_dir
=install-headers-cpio
2918 if [ x
$stabs = xyes
]
2920 tm_file
=i386
/sco4dbx.h
2921 tmake_file
=i386
/t-svr3dbx
2922 extra_parts
="svr3.ifile svr3z.rfile"
2925 tmake_file
=i386
/t-crtstuff
2926 extra_parts
="crtbegin.o crtend.o"
2930 i
[34567]86-*-sco*) # 80386 running SCO system
2931 xm_file
=i386
/xm-sco.h
2932 xmake_file
=i386
/x-sco
2933 install_headers_dir
=install-headers-cpio
2934 if [ x
$stabs = xyes
]
2936 tm_file
=i386
/scodbx.h
2937 tmake_file
=i386
/t-svr3dbx
2938 extra_parts
="svr3.ifile svr3z.rfile"
2941 extra_parts
="crtbegin.o crtend.o"
2942 tmake_file
=i386
/t-crtstuff
2946 i
[34567]86-*-solaris2*)
2947 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2948 xm_defines
="USG POSIX SMALL_ARG_MAX"
2949 if [ x
$stabs = xyes
]
2951 tm_file
=i386
/sol2dbg.h
2955 tmake_file
=i386
/t-sol2
2956 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2960 fixincludes
=fixinc.svr4
;;
2962 fixincludes
=fixinc.wrap
;;
2964 if [ x
$enable_threads = xyes
]; then
2965 thread_file
='solaris'
2968 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2969 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2970 xm_defines
="USG POSIX"
2971 tm_file
=i386
/sysv4.h
2972 if [ x
$stabs = xyes
]
2974 tm_file
="${tm_file} dbx.h"
2976 tmake_file
=i386
/t-crtpic
2978 extra_parts
="crtbegin.o crtend.o"
2979 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2981 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2982 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2983 xm_defines
="USG POSIX SMALL_ARG_MAX"
2984 tm_file
=i386
/sysv4.h
2985 if [ x
$stabs = xyes
]
2987 tm_file
="${tm_file} dbx.h"
2989 tmake_file
=i386
/t-crtpic
2991 extra_parts
="crtbegin.o crtend.o"
2993 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2995 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2996 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
2997 fixincludes
=Makefile.
in #Don't do it on OSF/1
2998 if [ x
$stabs = xyes
]
3000 tm_file
=i386
/osf1elfgdb.h
3002 tm_file
=i386
/osf1elf.h
3004 tmake_file
=i386
/t-osf1elf
3005 xmake_file
=i386
/x-osf1elf
3006 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3008 i
[34567]86-*-sysv*) # Intel 80386's running system V
3009 xm_defines
="USG SVR3"
3010 xmake_file
=i386
/x-sysv3
3013 if [ x
$stabs = xyes
]
3015 tm_file
=i386
/svr3dbx.h
3016 tmake_file
=i386
/t-svr3dbx
3017 extra_parts
="svr3.ifile svr3z.rfile"
3019 tm_file
=i386
/svr3gas.h
3020 extra_parts
="crtbegin.o crtend.o"
3021 tmake_file
=i386
/t-crtstuff
3024 tm_file
=i386
/sysv3.h
3025 extra_parts
="crtbegin.o crtend.o"
3026 tmake_file
=i386
/t-crtstuff
3029 i386-
*-vsta) # Intel 80386's running VSTa kernel
3030 xm_file
="${xm_file} i386/xm-vsta.h"
3032 tmake_file
=i386
/t-vsta
3033 xmake_file
=i386
/x-vsta
3035 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
3036 xm_file
="${xm_file} i386/xm-cygwin32.h"
3037 tmake_file
=i386
/t-cygwin32
3038 tm_file
=i386
/cygwin32.h
3039 xmake_file
=i386
/x-cygwin32
3041 fixincludes
=Makefile.
in
3042 if [ x
$enable_threads = xyes
]; then
3047 i
[34567]86-*-mingw32*)
3048 tm_file
=i386
/mingw32.h
3049 xm_file
="${xm_file} i386/xm-mingw32.h"
3050 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
3052 xmake_file
=i386
/x-cygwin32
3053 fixincludes
=Makefile.
in
3054 if [ x
$enable_threads = xyes
]; then
3061 *minwg32crt
* |
*mingw32
*)
3062 tm_file
="${tm_file} i386/crtdll.h"
3066 i
[34567]86-*-winnt3*)
3067 tm_file
=i386
/win-nt.h
3068 out_file
=i386
/i386.c
3069 xm_file
="xm-winnt.h ${xm_file}"
3070 xmake_file
=winnt
/x-winnt
3071 tmake_file
=i386
/t-winnt
3072 extra_host_objs
="winnt.o oldnames.o"
3073 extra_gcc_objs
="spawnv.o oldnames.o"
3074 fixincludes
=fixinc.winnt
3075 if [ x
$gnu_ld != xyes
]
3077 extra_programs
=ld.exe
3079 if [ x
$enable_threads = xyes
]; then
3083 i
[34567]86-dg-dgux*)
3084 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3085 xm_defines
="USG POSIX"
3086 out_file
=i386
/dgux.c
3088 tmake_file
=i386
/t-dgux
3089 xmake_file
=i386
/x-dgux
3090 fixincludes
=fixinc.dgux
3091 install_headers_dir
=install-headers-cpio
3093 i860-alliant-
*) # Alliant FX/2800
3094 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3095 xm_file
="${xm_file}"
3096 xmake_file
=i860
/x-fx2800
3097 tmake_file
=i860
/t-fx2800
3098 extra_parts
="crtbegin.o crtend.o"
3101 tm_file
="${tm_file} i860/bsd.h"
3104 tm_file
="${tm_file} i860/bsd-gas.h"
3109 tm_file
="${tm_file} i860/mach.h"
3110 tmake_file
=t-libc-ok
3112 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3113 tm_file
="${tm_file} svr3.h i860/paragon.h"
3114 xm_defines
="USG SVR3"
3118 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3119 xm_defines
="USG SVR3"
3120 xmake_file
=i860
/x-sysv3
3121 extra_parts
="crtbegin.o crtend.o"
3124 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3125 xm_defines
="USG SVR3"
3126 xmake_file
=i860
/x-sysv4
3128 extra_parts
="crtbegin.o crtend.o"
3130 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3131 tm_file
="${tm_file} i960/vx960.h"
3132 tmake_file
=i960
/t-vxworks960
3134 thread_file
='vxworks'
3136 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3137 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3138 tmake_file
=i960
/t-vxworks960
3140 thread_file
='vxworks'
3143 tm_file
="${tm_file} i960/vx960.h"
3144 tmake_file
=i960
/t-vxworks960
3146 thread_file
='vxworks'
3149 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3150 tmake_file
=i960
/t-960bare
3154 tmake_file
="i960/t-960bare t-rtems"
3155 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3158 i960-
*-*) # Default i960 environment.
3162 extra_parts
="crtinit.o crtfini.o"
3164 m68000-convergent-sysv
*)
3166 xm_file
="m68k/xm-3b1.h ${xm_file}"
3169 extra_headers
=math-68881.h
3171 m68000-hp-bsd
*) # HP 9000/200 running BSD
3172 tm_file
=m68k
/hp2bsd.h
3173 xmake_file
=m68k
/x-hp2bsd
3175 extra_headers
=math-68881.h
3177 m68000-hp-hpux
*) # HP 9000 series 300
3178 xm_file
="xm_alloca.h ${xm_file}"
3179 xm_defines
="USG NO_SYS_SIGLIST"
3182 xmake_file
=m68k
/x-hp320g
3183 tm_file
=m68k
/hp310g.h
3185 xmake_file
=m68k
/x-hp320
3186 tm_file
=m68k
/hp310.h
3188 install_headers_dir
=install-headers-cpio
3190 extra_headers
=math-68881.h
3195 extra_headers
=math-68881.h
3198 tm_file
=m68k
/sun2o4.h
3200 extra_headers
=math-68881.h
3203 xm_file
="m68k/xm-3b1.h ${xm_file}"
3212 extra_headers
=math-68881.h
3214 m68k-apple-aux
*) # Apple Macintosh running A/UX
3215 xm_defines
="USG AUX"
3216 tmake_file
=m68k
/t-aux
3217 install_headers_dir
=install-headers-cpio
3218 extra_headers
=math-68881.h
3219 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3221 if [ "$gnu_ld" = yes ]
3223 tm_file
="${tm_file} m68k/auxgld.h"
3225 tm_file
="${tm_file} m68k/auxld.h"
3229 tm_file
="${tm_file} m68k/auxgas.h"
3231 tm_file
="${tm_file} m68k/auxas.h"
3233 tm_file
="${tm_file} m68k/a-ux.h"
3237 tm_file
=m68k
/apollo68.h
3238 xmake_file
=m68k
/x-apollo68
3240 extra_headers
=math-68881.h
3243 m68k-altos-sysv
*) # Altos 3068
3246 tm_file
=m68k
/altos3068.h
3249 echo "The Altos is supported only with the GNU assembler" 1>&2
3252 extra_headers
=math-68881.h
3254 m68k-bull-sysv
*) # Bull DPX/2
3257 if [ x
$stabs = xyes
]
3259 tm_file
=m68k
/dpx2cdbx.h
3261 tm_file
=m68k
/dpx2g.h
3266 xm_file
="xm-alloca.h ${xm_file}"
3268 xmake_file
=m68k
/x-dpx2
3270 extra_headers
=math-68881.h
3272 m68k-atari-sysv4
*) # Atari variant of V.4.
3273 tm_file
=m68k
/atari.h
3274 xm_file
="xm-alloca.h ${xm_file}"
3275 xm_defines
="USG FULL_PROTOTYPES"
3277 extra_parts
="crtbegin.o crtend.o"
3278 extra_headers
=math-68881.h
3281 m68k-motorola-sysv
*)
3282 tm_file
=m68k
/mot3300.h
3283 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3284 xm_defines
=NO_SYS_SIGLIST
3287 xmake_file
=m68k
/x-mot3300-gas
3288 if [ x
$gnu_ld = xyes
]
3290 tmake_file
=m68k
/t-mot3300-gald
3292 tmake_file
=m68k
/t-mot3300-gas
3296 xmake_file
=m68k
/x-mot3300
3297 if [ x
$gnu_ld = xyes
]
3299 tmake_file
=m68k
/t-mot3300-gld
3301 tmake_file
=m68k
/t-mot3300
3305 gdb_needs_out_file_path
=yes
3306 extra_parts
="crt0.o mcrt0.o"
3307 extra_headers
=math-68881.h
3310 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3311 tm_file
=m68k
/tower-as.h
3312 xm_defines
="USG SVR3"
3313 xmake_file
=m68k
/x-tower
3314 extra_parts
="crtbegin.o crtend.o"
3315 extra_headers
=math-68881.h
3318 tm_file
=m68k
/plexus.h
3319 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3322 extra_headers
=math-68881.h
3326 xm_file
="xm-alloca.h ${xm_file}"
3328 extra_headers
=math-68881.h
3331 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3332 xm_defines
="USG unos"
3333 xmake_file
=m68k
/x-crds
3336 extra_headers
=math-68881.h
3338 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3340 xm_file
="xm-alloca.h ${xm_file}"
3341 xm_defines
="USG FULL_PROTOTYPES"
3342 xmake_file
=m68k
/x-amix
3344 extra_parts
="crtbegin.o crtend.o"
3345 extra_headers
=math-68881.h
3349 tm_file
=m68k
/ccur-GAS.h
3350 xmake_file
=m68k
/x-ccur
3351 extra_headers
=math-68881.h
3355 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3356 tm_file
=m68k
/hp3bsd44.h
3357 xmake_file
=m68k
/x-hp3bsd44
3359 extra_headers
=math-68881.h
3362 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3363 tm_file
=m68k
/hp3bsd.h
3365 extra_headers
=math-68881.h
3369 if [ x
$with_fp = xno
]
3371 tm_file
=m68k
/isi-nfp.h
3377 extra_headers
=math-68881.h
3379 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3380 xm_file
="xm_alloca.h ${xm_file}"
3381 xm_defines
="USG NO_SYS_SIGLIST"
3384 xmake_file
=m68k
/x-hp320g
3385 tm_file
=m68k
/hp320g.h
3387 xmake_file
=m68k
/x-hp320
3388 tm_file
=m68k
/hpux7.h
3390 install_headers_dir
=install-headers-cpio
3392 extra_headers
=math-68881.h
3395 m68k-hp-hpux
*) # HP 9000 series 300
3396 xm_file
="xm_alloca.h ${xm_file}"
3397 xm_defines
="USG NO_SYS_SIGLIST"
3400 xmake_file
=m68k
/x-hp320g
3401 tm_file
=m68k
/hp320g.h
3403 xmake_file
=m68k
/x-hp320
3404 tm_file
=m68k
/hp320.h
3406 install_headers_dir
=install-headers-cpio
3408 extra_headers
=math-68881.h
3412 tm_file
=m68k
/sun3mach.h
3414 extra_headers
=math-68881.h
3420 tm_file
=m68k
/news3gas.h
3422 tm_file
=m68k
/news3.h
3425 extra_headers
=math-68881.h
3428 m68k-sony-bsd
* | m68k-sony-newsos
*)
3431 tm_file
=m68k
/newsgas.h
3436 extra_headers
=math-68881.h
3439 m68k-next-nextstep2
*)
3440 tm_file
=m68k
/next21.h
3441 xm_file
="m68k/xm-next.h ${xm_file}"
3442 tmake_file
=m68k
/t-next
3443 xmake_file
=m68k
/x-next
3444 extra_objs
=nextstep.o
3445 extra_headers
=math-68881.h
3449 m68k-next-nextstep3
*)
3451 xm_file
="m68k/xm-next.h ${xm_file}"
3452 tmake_file
=m68k
/t-next
3453 xmake_file
=m68k
/x-next
3454 extra_objs
=nextstep.o
3455 extra_headers
=math-68881.h
3457 if [ x
$enable_threads = xyes
]; then
3462 if [ x
$with_fp = xno
]
3464 tm_file
=m68k
/sun3n3.h
3466 tm_file
=m68k
/sun3o3.h
3470 extra_headers
=math-68881.h
3472 m68k-sun-sunos
*) # For SunOS 4 (the default).
3473 if [ x
$with_fp = xno
]
3475 tm_file
=m68k
/sun3n.h
3481 extra_headers
=math-68881.h
3484 tm_file
=m68k
/vxm68k.h
3485 tmake_file
=m68k
/t-vxworks68
3486 extra_headers
=math-68881.h
3487 thread_file
='vxworks'
3491 tmake_file
=m68k
/t-m68kbare
3492 tm_file
="m68k/m68k-aout.h libgloss.h"
3493 extra_headers
=math-68881.h
3497 tmake_file
=m68k
/t-m68kbare
3498 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3499 extra_headers
=math-68881.h
3507 tm_file
=m68k
/lynx-ng.h
3509 xm_file
=m68k
/xm-lynx.h
3511 tmake_file
=m68k
/t-lynx
3512 extra_headers
=math-68881.h
3516 tm_file
=m68k
/netbsd.h
3517 # On NetBSD, the headers are already okay, except for math.h.
3518 fixincludes
=fixinc.wrap
3522 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3523 xm_file
="xm-alloca.h ${xm_file}"
3525 xmake_file
=m68k
/x-m68kv
3526 extra_parts
="crtbegin.o crtend.o"
3527 extra_headers
=math-68881.h
3530 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3531 tm_file
=m68k
/m68kv4.h
3532 xm_file
="xm-alloca.h ${xm_file}"
3535 extra_parts
="crtbegin.o crtend.o"
3536 extra_headers
=math-68881.h
3539 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3542 tm_file
=m68k
/linux-aout.h
3543 tmake_file
="t-linux-aout m68k/t-linux-aout"
3544 fixincludes
=Makefile.
in # The headers are ok already.
3545 extra_headers
=math-68881.h
3549 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3550 # with ELF format using the
3551 # GNU/Linux C library 5
3553 tm_file
=m68k
/linux.h
3554 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3555 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3556 fixincludes
=Makefile.
in # The headers are ok already.
3557 extra_headers
=math-68881.h
3561 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3562 # with ELF format using glibc 2
3563 # aka the GNU/Linux C library 6.
3565 tm_file
=m68k
/linux.h
3566 tmake_file
="t-linux m68k/t-linux"
3567 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3568 fixincludes
=Makefile.
in # The headers are ok already.
3569 extra_headers
=math-68881.h
3572 if [ x
$enable_threads = xyes
]; then
3577 tmake_file
=m68k
/t-m68kbare
3578 tm_file
=m68k
/m68k-psos.h
3579 extra_headers
=math-68881.h
3583 tmake_file
="m68k/t-m68kbare t-rtems"
3584 tm_file
=m68k
/rtems.h
3585 extra_headers
=math-68881.h
3592 tm_file
=m88k
/dguxbcs.h
3593 tmake_file
=m88k
/t-dguxbcs
3597 tmake_file
=m88k
/t-dgux
3600 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3601 xmake_file
=m88k
/x-dgux
3604 tmake_file
=m88k
/t-dgux-gas
3606 fixincludes
=fixinc.dgux
3608 m88k-dolphin-sysv3
*)
3609 tm_file
=m88k
/dolph.h
3610 extra_parts
="crtbegin.o crtend.o"
3611 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3612 xmake_file
=m88k
/x-dolph
3615 tmake_file
=m88k
/t-m88k-gas
3618 m88k-tektronix-sysv3
)
3619 tm_file
=m88k
/tekXD88.h
3620 extra_parts
="crtbegin.o crtend.o"
3621 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3622 xmake_file
=m88k
/x-tekXD88
3625 tmake_file
=m88k
/t-m88k-gas
3629 tm_file
=m88k
/m88k-aout.h
3632 tm_file
=m88k
/m88k-coff.h
3633 tmake_file
=m88k
/t-bug
3637 extra_parts
="crtbegin.o crtend.o"
3640 tmake_file
=m88k
/t-luna-gas
3642 tmake_file
=m88k
/t-luna
3646 tm_file
=m88k
/sysv3.h
3647 extra_parts
="crtbegin.o crtend.o"
3648 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3649 xmake_file
=m88k
/x-sysv3
3652 tmake_file
=m88k
/t-m88k-gas
3656 tm_file
=m88k
/sysv4.h
3657 extra_parts
="crtbegin.o crtend.o"
3658 xmake_file
=m88k
/x-sysv4
3659 tmake_file
=m88k
/t-sysv4
3661 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3662 tm_file
=mips
/iris6.h
3663 xm_file
=mips
/xm-iris6.h
3664 fixincludes
=fixinc.irix
3665 xmake_file
=mips
/x-iris6
3666 tmake_file
=mips
/t-iris6
3667 if [ x
$enable_threads = xyes
]; then
3672 tm_file
="mips/elf.h libgloss.h"
3673 tmake_file
=mips
/t-ecoff
3676 extra_parts
="crtbegin.o crtend.o"
3677 # thread_file='vxworks'
3679 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3680 tm_file
="mips/iris6.h mips/cross64.h"
3681 xm_defines
="USG HAVE_INTTYPES_H"
3682 fixincludes
=Makefile.
in
3683 xmake_file
=mips
/x-iris
3684 tmake_file
=mips
/t-cross64
3685 # See comment in mips/iris[56].h files.
3687 if [ x
$enable_threads = xyes
]; then
3694 if [ x
$stabs = xyes
]
3696 tm_file
=mips
/iris5gdb.h
3698 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3701 tm_file
=mips
/sni-svr4.h
3704 xmake_file
=mips
/x-sni-svr4
3705 tmake_file
=mips
/t-mips-gas
3706 if [ x
$gnu_ld != xyes
]
3711 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3714 tm_file
="mips/iris5.h mips/iris5gas.h"
3715 if [ x
$stabs = xyes
]
3717 tm_file
="${tm_file} dbx.h"
3720 tm_file
=mips
/iris5.h
3722 xm_defines
="USG HAVE_INTTYPES_H"
3723 fixincludes
=fixinc.irix
3724 xmake_file
=mips
/x-iris
3725 # mips-tfile doesn't work yet
3726 tmake_file
=mips
/t-mips-gas
3727 # See comment in mips/iris5.h file.
3729 if [ x
$enable_threads = xyes
]; then
3733 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3734 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3735 if [ x
$stabs = xyes
]; then
3736 tm_file
="${tm_file} dbx.h"
3739 xmake_file
=mips
/x-iris
3742 tmake_file
=mips
/t-mips-gas
3744 extra_passes
="mips-tfile mips-tdump"
3746 if [ x
$gnu_ld != xyes
]
3750 if [ x
$enable_threads = xyes
]; then
3754 mips-sgi-irix4
*) # Mostly like a MIPS.
3755 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3756 if [ x
$stabs = xyes
]; then
3757 tm_file
="${tm_file} dbx.h"
3760 xmake_file
=mips
/x-iris
3763 tmake_file
=mips
/t-mips-gas
3765 extra_passes
="mips-tfile mips-tdump"
3767 if [ x
$gnu_ld != xyes
]
3771 if [ x
$enable_threads = xyes
]; then
3775 mips-sgi-
*) # Mostly like a MIPS.
3776 tm_file
="mips/iris3.h ${tm_file}"
3777 if [ x
$stabs = xyes
]; then
3778 tm_file
="${tm_file} dbx.h"
3781 xmake_file
=mips
/x-iris3
3784 tmake_file
=mips
/t-mips-gas
3786 extra_passes
="mips-tfile mips-tdump"
3788 if [ x
$gnu_ld != xyes
]
3793 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3794 tm_file
="mips/osfrose.h ${tm_file}"
3795 xmake_file
=mips
/x-osfrose
3796 tmake_file
=mips
/t-osfrose
3797 extra_objs
=halfpic.o
3800 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3801 tm_file
=mips
/dec-osf1.h
3802 if [ x
$stabs = xyes
]; then
3803 tm_file
="${tm_file} dbx.h"
3805 xmake_file
=mips
/x-dec-osf1
3808 tmake_file
=mips
/t-mips-gas
3810 tmake_file
=mips
/t-ultrix
3811 extra_passes
="mips-tfile mips-tdump"
3813 if [ x
$gnu_ld != xyes
]
3818 mips-dec-bsd
*) # Decstation running 4.4 BSD
3819 tm_file
=mips
/dec-bsd.h
3823 tmake_file
=mips
/t-mips-gas
3825 tmake_file
=mips
/t-ultrix
3826 extra_passes
="mips-tfile mips-tdump"
3828 if [ x
$gnu_ld != xyes
]
3833 mips-dec-netbsd
*) # Decstation running NetBSD
3834 tm_file
=mips
/netbsd.h
3835 # On NetBSD, the headers are already okay, except for math.h.
3836 fixincludes
=fixinc.wrap
3839 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3840 tm_file
="mips/news4.h ${tm_file}"
3841 if [ x
$stabs = xyes
]; then
3842 tm_file
="${tm_file} dbx.h"
3846 tmake_file
=mips
/t-mips-gas
3848 extra_passes
="mips-tfile mips-tdump"
3850 if [ x
$gnu_ld != xyes
]
3854 xmake_file
=mips
/x-sony
3856 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3857 # That is based on svr4.
3858 # t-svr4 is not right because this system doesn't use ELF.
3859 tm_file
="mips/news5.h ${tm_file}"
3860 if [ x
$stabs = xyes
]; then
3861 tm_file
="${tm_file} dbx.h"
3863 xm_file
="xm-siglist.h ${xm_file}"
3867 tmake_file
=mips
/t-mips-gas
3869 extra_passes
="mips-tfile mips-tdump"
3871 if [ x
$gnu_ld != xyes
]
3876 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3877 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3878 if [ x
$stabs = xyes
]; then
3879 tm_file
="${tm_file} dbx.h"
3881 xm_file
="xm-siglist.h ${xm_file}"
3883 xmake_file
=mips
/x-sysv
3886 tmake_file
=mips
/t-mips-gas
3887 extra_parts
="crtbegin.o crtend.o"
3889 tmake_file
=mips
/t-mips
3890 extra_passes
="mips-tfile mips-tdump"
3892 if [ x
$gnu_ld != xyes
]
3897 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3898 tm_file
="mips/ultrix.h ${tm_file}"
3899 if [ x
$stabs = xyes
]; then
3900 tm_file
="${tm_file} dbx.h"
3902 xmake_file
=mips
/x-ultrix
3905 tmake_file
=mips
/t-mips-gas
3907 tmake_file
=mips
/t-ultrix
3908 extra_passes
="mips-tfile mips-tdump"
3910 if [ x
$gnu_ld != xyes
]
3915 mips-
*-riscos[56789]bsd
*)
3916 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3917 if [ x
$stabs = xyes
]; then
3918 tm_file
="${tm_file} dbx.h"
3922 tmake_file
=mips
/t-bsd-gas
3924 tmake_file
=mips
/t-bsd
3925 extra_passes
="mips-tfile mips-tdump"
3927 if [ x
$gnu_ld != xyes
]
3932 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3933 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3934 if [ x
$stabs = xyes
]; then
3935 tm_file
="${tm_file} dbx.h"
3939 tmake_file
=mips
/t-bsd-gas
3941 tmake_file
=mips
/t-bsd
3942 extra_passes
="mips-tfile mips-tdump"
3944 if [ x
$gnu_ld != xyes
]
3949 mips-
*-riscos[56789]sysv4
*)
3950 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3951 if [ x
$stabs = xyes
]; then
3952 tm_file
="${tm_file} dbx.h"
3954 xm_file
="xm-siglist.h ${xm_file}"
3955 xmake_file
=mips
/x-sysv
3958 tmake_file
=mips
/t-svr4-gas
3960 tmake_file
=mips
/t-svr4
3961 extra_passes
="mips-tfile mips-tdump"
3963 if [ x
$gnu_ld != xyes
]
3968 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3969 tm_file
="mips/svr4-4.h ${tm_file}"
3970 if [ x
$stabs = xyes
]; then
3971 tm_file
="${tm_file} dbx.h"
3974 xmake_file
=mips
/x-sysv
3977 tmake_file
=mips
/t-svr4-gas
3979 tmake_file
=mips
/t-svr4
3980 extra_passes
="mips-tfile mips-tdump"
3982 if [ x
$gnu_ld != xyes
]
3987 mips-
*-riscos[56789]sysv
*)
3988 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3989 if [ x
$stabs = xyes
]; then
3990 tm_file
="${tm_file} dbx.h"
3993 xmake_file
=mips
/x-sysv
3996 tmake_file
=mips
/t-svr3-gas
3998 tmake_file
=mips
/t-svr3
3999 extra_passes
="mips-tfile mips-tdump"
4001 if [ x
$gnu_ld != xyes
]
4006 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4007 tm_file
="mips/svr3-4.h ${tm_file}"
4008 if [ x
$stabs = xyes
]; then
4009 tm_file
="${tm_file} dbx.h"
4012 xmake_file
=mips
/x-sysv
4015 tmake_file
=mips
/t-svr3-gas
4017 tmake_file
=mips
/t-svr3
4018 extra_passes
="mips-tfile mips-tdump"
4020 if [ x
$gnu_ld != xyes
]
4025 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4026 tm_file
=mips
/mips-5.h
4027 if [ x
$stabs = xyes
]; then
4028 tm_file
="${tm_file} dbx.h"
4032 tmake_file
=mips
/t-mips-gas
4034 extra_passes
="mips-tfile mips-tdump"
4036 if [ x
$gnu_ld != xyes
]
4044 tm_file
=mips
/ecoffl.h
4045 if [ x
$stabs = xyes
]; then
4046 tm_file
="${tm_file} dbx.h"
4048 tmake_file
=mips
/t-ecoff
4051 tm_file
="gofast.h mips/ecoff.h"
4052 if [ x
$stabs = xyes
]; then
4053 tm_file
="${tm_file} dbx.h"
4055 tmake_file
=mips
/t-ecoff
4058 tm_file
="mips/elfl.h libgloss.h"
4059 tmake_file
=mips
/t-ecoff
4062 tm_file
="mips/elf.h libgloss.h"
4063 tmake_file
=mips
/t-ecoff
4066 tm_file
="mips/elfl64.h libgloss.h"
4067 tmake_file
=mips
/t-ecoff
4069 mips64orionel-
*-elf*)
4070 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4071 tmake_file
=mips
/t-ecoff
4074 tm_file
="mips/elf64.h libgloss.h"
4075 tmake_file
=mips
/t-ecoff
4078 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4079 tmake_file
=mips
/t-ecoff
4081 mips64orion-
*-rtems*)
4082 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
4083 tmake_file
="mips/t-ecoff t-rtems"
4086 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4087 tmake_file
=mips
/t-r3900
4090 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4091 tmake_file
=mips
/t-r3900
4093 mips-
*-*) # Default MIPS RISC-OS 4.0.
4094 if [ x
$stabs = xyes
]; then
4095 tm_file
="${tm_file} dbx.h"
4099 tmake_file
=mips
/t-mips-gas
4101 extra_passes
="mips-tfile mips-tdump"
4103 if [ x
$gnu_ld != xyes
]
4110 tm_file
="mn10200/mn10200.h"
4111 if [ x
$stabs = xyes
]
4113 tm_file
="${tm_file} dbx.h"
4119 tm_file
="mn10300/mn10300.h"
4120 if [ x
$stabs = xyes
]
4122 tm_file
="${tm_file} dbx.h"
4127 tm_file
=ns32k
/encore.h
4131 tm_file
=ns32k
/sequent.h
4135 tm_file
=ns32k
/tek6100.h
4139 tm_file
=ns32k
/tek6200.h
4142 # This has not been updated to GCC 2.
4145 # xmake_file=ns32k/x-genix
4146 # tm_file=ns32k/genix.h
4150 tm_file
=ns32k
/merlin.h
4154 tm_file
=ns32k
/pc532-mach.h
4158 tm_file
=ns32k
/pc532-min.h
4159 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4163 ns32k-pc532-netbsd
*)
4164 tm_file
=ns32k
/netbsd.h
4165 # On NetBSD, the headers are already okay, except for math.h.
4166 fixincludes
=fixinc.wrap
4170 tm_file
="${tm_file} pdp11/2bsd.h"
4176 xmake_file
=pyr
/x-pyr
4183 xmake_file
=romp
/x-mach
4188 tm_file
=rs6000
/beos.h
4189 xm_file
=rs6000
/xm-beos.h
4190 tmake_file
=rs6000
/t-beos
4191 xmake_file
=rs6000
/x-beos
4193 powerpc-
*-sysv* | powerpc-
*-elf*)
4194 tm_file
=rs6000
/sysv4.h
4195 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4196 xm_defines
="USG POSIX"
4197 extra_headers
=ppc-asm.h
4200 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4202 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4204 xmake_file
=rs6000
/x-sysv4
4207 tm_file
=rs6000
/eabiaix.h
4208 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4209 fixincludes
=Makefile.
in
4210 extra_headers
=ppc-asm.h
4213 tm_file
=rs6000
/eabisim.h
4214 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4215 fixincludes
=Makefile.
in
4216 extra_headers
=ppc-asm.h
4219 tm_file
=rs6000
/eabi.h
4222 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4224 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4226 fixincludes
=Makefile.
in
4227 extra_headers
=ppc-asm.h
4230 tm_file
=rs6000
/rtems.h
4233 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4235 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4237 fixincludes
=Makefile.
in
4238 extra_headers
=ppc-asm.h
4240 powerpc-
*-linux-gnulibc1)
4241 tm_file
=rs6000
/linux.h
4242 xm_file
=rs6000
/xm-sysv4.h
4243 out_file
=rs6000
/rs6000.c
4246 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4248 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4251 fixincludes
=Makefile.
in
4252 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4253 extra_headers
=ppc-asm.h
4254 if [ x
$enable_threads = xyes
]; then
4258 powerpc-
*-linux-gnu*)
4259 tm_file
=rs6000
/linux.h
4260 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4261 xm_defines
="USG ${xm_defines}"
4262 out_file
=rs6000
/rs6000.c
4265 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4267 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4270 fixincludes
=Makefile.
in
4271 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4272 extra_headers
=ppc-asm.h
4273 if [ x
$enable_threads = xyes
]; then
4277 powerpc-wrs-vxworks
*)
4279 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4280 xm_defines
="USG POSIX"
4281 tm_file
=rs6000
/vxppc.h
4282 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4283 extra_headers
=ppc-asm.h
4284 thread_file
='vxworks'
4286 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4287 tm_file
=rs6000
/sysv4le.h
4288 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4289 xm_defines
="USG POSIX"
4292 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4294 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4296 xmake_file
=rs6000
/x-sysv4
4297 extra_headers
=ppc-asm.h
4299 powerpcle-
*-eabisim*)
4300 tm_file
=rs6000
/eabilesim.h
4301 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4302 fixincludes
=Makefile.
in
4303 extra_headers
=ppc-asm.h
4306 tm_file
=rs6000
/eabile.h
4309 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4311 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4313 fixincludes
=Makefile.
in
4314 extra_headers
=ppc-asm.h
4316 powerpcle-
*-winnt* )
4317 tm_file
=rs6000
/win-nt.h
4318 tmake_file
=rs6000
/t-winnt
4320 fixincludes
=Makefile.
in
4321 if [ x
$enable_threads = xyes
]; then
4324 extra_headers
=ppc-asm.h
4326 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4327 tm_file
=rs6000
/cygwin32.h
4328 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4329 tmake_file
=rs6000
/t-winnt
4330 xmake_file
=rs6000
/x-cygwin32
4332 fixincludes
=Makefile.
in
4333 if [ x
$enable_threads = xyes
]; then
4337 extra_headers
=ppc-asm.h
4339 powerpcle-
*-solaris2*)
4340 tm_file
=rs6000
/sol2.h
4341 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4342 xm_defines
="USG POSIX"
4345 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4347 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4349 xmake_file
=rs6000
/x-sysv4
4352 fixincludes
=fixinc.svr4
;;
4354 fixincludes
=fixinc.wrap
;;
4356 extra_headers
=ppc-asm.h
4358 rs6000-ibm-aix3.
[01]*)
4359 tm_file
=rs6000
/aix31.h
4360 xmake_file
=rs6000
/x-aix31
4363 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4364 tm_file
=rs6000
/aix3newas.h
4365 if [ x
$host != x
$target ]
4367 tmake_file
=rs6000
/t-xnewas
4369 tmake_file
=rs6000
/t-newas
4373 rs6000-ibm-aix4.
[12].
* | powerpc-ibm-aix4.
[12].
*)
4374 tm_file
=rs6000
/aix41.h
4375 if [ x
$host != x
$target ]
4377 tmake_file
=rs6000
/t-xnewas
4379 tmake_file
=rs6000
/t-newas
4381 xmake_file
=rs6000
/x-aix41
4384 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4385 tm_file
=rs6000
/aix43.h
4386 if [ x
$host != x
$target ]
4388 tmake_file
=rs6000
/t-xaix43
4390 tmake_file
=rs6000
/t-aix43
4392 xmake_file
=rs6000
/x-aix43
4395 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4396 tm_file
=rs6000
/aix43.h
4397 if [ x
$host != x
$target ]
4399 tmake_file
=rs6000
/t-xaix43
4401 tmake_file
=rs6000
/t-aix43
4403 xmake_file
=rs6000
/x-aix43
4413 tm_file
=rs6000
/mach.h
4414 xm_file
="${xm_file} rs6000/xm-mach.h"
4415 xmake_file
=rs6000
/x-mach
4419 tm_file
=rs6000
/lynx.h
4420 xm_file
=rs6000
/xm-lynx.h
4421 tmake_file
=rs6000
/t-rs6000
4422 xmake_file
=rs6000
/x-lynx
4430 tmake_file
="sh/t-sh t-rtems"
4439 xm_file
="xm-alloca.h ${xm_file}"
4442 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4443 tm_file
=sparc
/vxsparc.h
4444 tmake_file
=sparc
/t-vxsparc
4446 thread_file
='vxworks'
4449 tmake_file
=sparc
/t-sparcbare
4450 tm_file
="sparc/aout.h libgloss.h"
4453 tm_file
=sparc
/netbsd.h
4454 # On NetBSD, the headers are already okay, except for math.h.
4455 fixincludes
=fixinc.wrap
4463 tmake_file
=sparc
/t-elf
4464 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4468 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4469 xm_file
="${xm_file} sparc/xm-linux.h"
4470 tm_file
=sparc
/linux-aout.h
4472 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4475 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4476 xm_file
="${xm_file} sparc/xm-linux.h"
4478 tm_file
=sparc
/linux.h
4479 tmake_file
="t-linux t-linux-gnulibc1"
4480 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4481 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4484 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4485 xm_file
="${xm_file} sparc/xm-linux.h"
4487 tm_file
=sparc
/linux.h
4488 tmake_file
="t-linux"
4489 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4490 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4492 if [ x
$enable_threads = xyes
]; then
4499 tm_file
=sparc
/lynx.h
4501 tm_file
=sparc
/lynx-ng.h
4503 xm_file
=sparc
/xm-lynx.h
4504 tmake_file
=sparc
/t-sunos41
4508 tmake_file
="sparc/t-sparcbare t-rtems"
4509 tm_file
=sparc
/rtems.h
4512 if [ x
$gnu_ld = xyes
]
4514 tm_file
=sparc
/sol2.h
4516 tm_file
=sparc
/sol2-sld.h
4518 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4519 xm_defines
="USG POSIX"
4520 tmake_file
=sparc
/t-sol2
4521 xmake_file
=sparc
/x-sysv4
4522 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4525 fixincludes
=fixinc.svr4
;;
4527 fixincludes
=fixinc.wrap
;;
4530 if [ x
${enable_threads} = x
]; then
4531 enable_threads
=$have_pthread_h
4532 if [ x
${enable_threads} = x
]; then
4533 enable_threads
=$have_thread_h
4536 if [ x
${enable_threads} = xyes
]; then
4537 if [ x
${have_pthread_h} = xyes
]; then
4540 thread_file
='solaris'
4545 tm_file
=sparc
/sunos4.h
4546 tmake_file
=sparc
/t-sunos40
4550 tm_file
=sparc
/sunos4.h
4551 tmake_file
=sparc
/t-sunos41
4553 if [ x
$gas = xyes
]; then
4554 tm_file
="${tm_file} sparc/sun4gas.h"
4558 tm_file
=sparc
/sun4o3.h
4562 tm_file
=sparc
/sysv4.h
4563 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4564 xm_defines
="USG POSIX"
4566 xmake_file
=sparc
/x-sysv4
4567 extra_parts
="crtbegin.o crtend.o"
4570 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4571 xm_defines
="USG POSIX"
4572 tm_file
=sparc
/vxsim.h
4573 tmake_file
=sparc
/t-vxsparc
4574 xmake_file
=sparc
/x-sysv4
4577 tm_file
="sparc/splet.h libgloss.h"
4578 tmake_file
=sparc
/t-splet
4581 tm_file
="sparc/litecoff.h libgloss.h"
4582 tmake_file
=sparc
/t-sparclite
4585 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4586 tmake_file
=sparc
/t-sparclite
4589 tmake_file
=sparc
/t-sp64
4590 tm_file
=sparc
/sp64-aout.h
4593 tmake_file
=sparc
/t-sp64
4594 tm_file
=sparc
/sp64-elf.h
4595 extra_parts
="crtbegin.o crtend.o"
4597 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4598 tmake_file
=sparc
/t-sp64
4599 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4600 tm_file
=sparc
/linux64.h
4602 fixincludes
=Makefile.
in # The headers are ok already.
4605 # This hasn't been upgraded to GCC 2.
4606 # tahoe-harris-*) # Harris tahoe, using COFF.
4607 # tm_file=tahoe/harris.h
4609 # tahoe-*-bsd*) # tahoe running BSD
4611 thumb-
*-coff* | thumbel-
*-coff*)
4613 out_file
=arm
/thumb.c
4614 xm_file
=arm
/xm-thumb.h
4615 md_file
=arm
/thumb.md
4616 tmake_file
=arm
/t-thumb
4618 # This hasn't been upgraded to GCC 2.
4625 tm_file
="v850/v850.h"
4626 xm_file
="v850/xm-v850.h"
4627 tmake_file
=v850
/t-v850
4628 if [ x
$stabs = xyes
]
4630 tm_file
="${tm_file} dbx.h"
4634 vax-
*-bsd*) # vaxen running BSD
4638 vax-
*-sysv*) # vaxen running system V
4639 tm_file
="${tm_file} vax/vaxv.h"
4644 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4645 # On NetBSD, the headers are already okay, except for math.h.
4646 fixincludes
=fixinc.wrap
4650 vax-
*-ultrix*) # vaxen running ultrix
4651 tm_file
="${tm_file} vax/ultrix.h"
4655 vax-
*-vms*) # vaxen running VMS
4656 xm_file
=vax
/xm-vms.h
4660 vax-
*-*) # vax default entry
4664 xm_file
="${xm_file} xm-svr3"
4668 echo "Configuration $machine not supported" 1>&2
4675 ;; # Existing GNU/Linux systems do not use the GNU setup.
4677 # On the GNU system, the setup is just about the same on
4678 # each different CPU. The specific machines that GNU
4679 # supports are matched above and just set $cpu_type.
4680 xm_file
="xm-gnu.h ${xm_file}"
4681 tm_file
=${cpu_type}/gnu.h
4682 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4683 # GNU always uses ELF.
4685 # GNU tools are the only tools.
4688 # On GNU, the headers are already okay.
4689 fixincludes
=Makefile.
in
4690 xmake_file
=x-linux
# These details are the same as Linux.
4691 tmake_file
=t-gnu
# These are not.
4694 fixincludes
=fixinc.svr4
4695 xmake_try_sysv
=x-sysv
4696 install_headers_dir
=install-headers-cpio
4699 install_headers_dir
=install-headers-cpio
4703 # Distinguish i[34567]86
4704 # Also, do not run mips-tfile on MIPS if using gas.
4705 # Process --with-cpu= for PowerPC/rs6000
4706 target_cpu_default2
=
4709 target_cpu_default2
=1
4712 target_cpu_default2
=2
4714 i686-
*-* | i786-
*-*)
4715 target_cpu_default2
=3
4720 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4723 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4726 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4729 target_cpu_default2
="MASK_CPU_EV5"
4735 if [ "$target_cpu_default2" = "" ]
4737 target_cpu_default2
="MASK_GAS"
4739 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4744 case "x$with_cpu" in
4747 target_cpu_default2
="TARGET_CPU_generic"
4750 # Distinguish cores, and major variants
4751 # arm7m doesn't exist, but D & I don't affect code
4752 xarm23678 | xarm250 | xarm67010 \
4753 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4754 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4755 | xstrongarm | xstrongarm110
)
4756 target_cpu_default2
="TARGET_CPU_$with_cpu"
4760 echo "--with-cpu must be passed a value" 1>&2
4765 if [ x
$pass2done = xyes
]
4767 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4774 mips
*-*-ecoff* | mips
*-*-elf*)
4777 if [ x
$gnu_ld = xyes
]
4779 target_cpu_default2
=20
4781 target_cpu_default2
=16
4788 target_cpu_default2
=16
4791 powerpc
*-*-* | rs6000-
*-*)
4792 case "x$with_cpu" in
4796 xcommon | xpower | xpower2 | xpowerpc | xrios \
4797 | xrios1 | xrios2 | xrsc | xrsc1 \
4798 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4799 | x403 | x505 | x801 | x821 | x823 | x860
)
4800 target_cpu_default2
="\"$with_cpu\""
4804 echo "--with-cpu must be passed a value" 1>&2
4809 if [ x
$pass2done = xyes
]
4811 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4818 case ".$with_cpu" in
4820 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4822 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4823 target_cpu_default2
="TARGET_CPU_$with_cpu"
4826 if [ x
$pass2done = xyes
]
4828 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4836 if [ "$target_cpu_default2" != "" ]
4838 if [ "$target_cpu_default" != "" ]
4840 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4842 target_cpu_default
=$target_cpu_default2
4846 # No need for collect2 if we have the GNU linker.
4847 # Actually, there is now; GNU ld doesn't handle the EH info or
4848 # collecting for shared libraries.
4855 # Save data on machine being used to compile GCC in build_xm_file.
4856 # Save data on host machine in vars host_xm_file and host_xmake_file.
4857 if [ x
$pass1done = x
]
4859 if [ x
"$xm_file" = x
]
4860 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4861 else build_xm_file
=$xm_file
4863 build_xm_defines
=$xm_defines
4864 build_install_headers_dir
=$install_headers_dir
4865 build_exeext
=$exeext
4868 if [ x
$pass2done = x
]
4870 if [ x
"$xm_file" = x
]
4871 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4872 else host_xm_file
=$xm_file
4874 host_xm_defines
=$xm_defines
4875 if [ x
"$xmake_file" = x
]
4876 then xmake_file
=$cpu_type/x-
$cpu_type
4878 host_xmake_file
="$xmake_file"
4879 host_truncate_target
=$truncate_target
4880 host_extra_gcc_objs
=$extra_gcc_objs
4881 host_extra_objs
=$extra_host_objs
4888 extra_objs
="${host_extra_objs} ${extra_objs}"
4890 # Default the target-machine variables that were not explicitly set.
4891 if [ x
"$tm_file" = x
]
4892 then tm_file
=$cpu_type/$cpu_type.h
; fi
4894 if [ x
$extra_headers = x
]
4895 then extra_headers
=; fi
4897 if [ x
"$xm_file" = x
]
4898 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4900 if [ x
$md_file = x
]
4901 then md_file
=$cpu_type/$cpu_type.md
; fi
4903 if [ x
$out_file = x
]
4904 then out_file
=$cpu_type/$cpu_type.c
; fi
4906 if [ x
"$tmake_file" = x
]
4907 then tmake_file
=$cpu_type/t-
$cpu_type
4910 if [ x
$float_format = x
]
4911 then float_format
=i64
4914 if [ x
$enable_haifa = x
]
4917 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc-
* | m32r
*-*)
4922 # Say what files are being used for the output code and MD file.
4923 echo "Using \`$srcdir/config/$out_file' to output insns."
4924 echo "Using \`$srcdir/config/$md_file' as machine description file."
4927 for f
in $tm_file; do
4930 if [ $count = ax
]; then
4931 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4933 echo "Using the following target machine macro files:"
4934 for f
in $tm_file; do
4935 echo " $srcdir/config/$f"
4940 for f
in $host_xm_file; do
4943 if [ $count = ax
]; then
4944 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4946 echo "Using the following host machine macro files:"
4947 for f
in $host_xm_file; do
4948 echo " $srcdir/config/$f"
4952 if [ "$host_xm_file" != "$build_xm_file" ]; then
4954 for f
in $build_xm_file; do
4957 if [ $count = ax
]; then
4958 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4960 echo "Using the following build machine macro files:"
4961 for f
in $build_xm_file; do
4962 echo " $srcdir/config/$f"
4967 if [ x
$thread_file = x
]; then
4968 if [ x
$target_thread_file != x
]; then
4969 thread_file
=$target_thread_file
4971 thread_file
='single'
4975 # Set up the header files.
4976 # $links is the list of header files to create.
4977 # $vars is the list of shell variables with file names to include.
4978 # auto-host.h is the file containing items generated by autoconf and is
4979 # the first file included by config.h.
4981 host_xm_file
="auto-host.h ${host_xm_file}"
4983 # If host=build, it is correct to have hconfig include auto-host.h
4984 # as well. If host!=build, we are in error and need to do more
4985 # work to find out the build config parameters.
4986 if [ x
$host = x
$build ]
4988 build_xm_file
="auto-host.h ${build_xm_file}"
4990 # We create a subdir, then run autoconf in the subdir.
4991 # To prevent recursion we set host and build for the new
4992 # invocation of configure to the build for this invocation
4999 /*) realsrcdir
=${srcdir};;
5000 *) realsrcdir
=..
/${srcdir};;
5002 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5003 --target=$target --host=$build --build=$build
5005 # We just finished tests for the build machine, so rename
5006 # the file auto-build.h in the gcc directory.
5007 mv auto-host.h ..
/auto-build.h
5010 build_xm_file
="auto-build.h ${build_xm_file}"
5013 vars
="host_xm_file tm_file xm_file build_xm_file"
5014 links
="config.h tm.h tconfig.h hconfig.h"
5015 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5018 if [ -f config.status
]; then mv -f config.status config.bak
; fi
5021 while [ -n "$vars" ]
5023 set $vars; var
=$1; shift; vars
=$
*
5024 set $links; link
=$1; shift; links
=$
*
5025 set $defines; define
=$1; shift; defines
=$
*
5029 # Define TARGET_CPU_DEFAULT if the system wants one.
5030 # This substitutes for lots of *.h files.
5031 if [ "$target_cpu_default" != "" -a $link = tm.h
]
5033 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5036 for file in `eval echo '$'$var`; do
5037 echo "#include \"$file\"" >>$link
5040 for def
in `eval echo '$'$define`; do
5041 echo "#ifndef $def" >>$link
5042 echo "#define $def" >>$link
5043 echo "#endif" >>$link
5047 # Truncate the target if necessary
5048 if [ x
$host_truncate_target != x
]; then
5049 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5052 # Get the version trigger filename from the toplevel
5053 if [ "${with_gcc_version_trigger+set}" = set ]; then
5054 gcc_version_trigger
=$with_gcc_version_trigger
5056 gcc_version_trigger
=${srcdir}/version.c
5058 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5060 # Get an absolute path to the GCC top-level source directory
5066 # Conditionalize the makefile for this host machine.
5067 # Make-host contains the concatenation of all host makefile fragments
5068 # [there can be more than one]. This file is built by configure.frag.
5069 host_overrides
=Make-host
5070 dep_host_xmake_file
=
5071 for f
in ..
${host_xmake_file}
5073 if [ -f ${srcdir}/config
/$f ]
5075 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5079 # Conditionalize the makefile for this target machine.
5080 # Make-target contains the concatenation of all host makefile fragments
5081 # [there can be more than one]. This file is built by configure.frag.
5082 target_overrides
=Make-target
5084 for f
in ..
${tmake_file}
5086 if [ -f ${srcdir}/config
/$f ]
5088 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5092 # If the host doesn't support symlinks, modify CC in
5093 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5094 # Otherwise, we can use "CC=$(CC)".
5096 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5098 cc_set_by_configure
="\$(CC)"
5099 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5102 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5104 symbolic_link
="cp -p"
5108 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5109 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5113 out_object_file
=`basename $out_file .c`.o
5116 for f
in $tm_file; do
5117 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5121 for f
in $host_xm_file; do
5122 if test $f != "auto-host.h"; then
5123 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5125 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5130 for f
in $build_xm_file; do
5131 if test $f != "auto-build.h"; then
5132 if test $f != "auto-host.h"; then
5133 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5135 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5138 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5142 # Define macro CROSS_COMPILE in compilation
5143 # if this is a cross-compiler.
5144 # Also use all.cross instead of all.internal
5145 # and add cross-make to Makefile.
5146 cross_overrides
="/dev/null"
5147 if [ x
$host != x
$target ]
5149 cross_defines
="CROSS=-DCROSS_COMPILE"
5150 cross_overrides
="${topdir}/cross-make"
5153 # When building gcc with a cross-compiler, we need to fix a few things.
5154 # This must come after cross-make as we want all.build to override
5156 build_overrides
="/dev/null"
5157 if [ x
$build != x
$host ]
5159 build_overrides
="${topdir}/build-make"
5162 # Expand extra_headers to include complete path.
5163 # This substitutes for lots of t-* files.
5165 if [ "x$extra_headers" = x
]
5168 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5169 for file in $extra_headers;
5171 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5175 # Add a definition of USE_COLLECT2 if system wants one.
5176 # Also tell toplev.c what to do.
5177 # This substitutes for lots of t-* files.
5178 if [ x
$use_collect2 = x
]
5183 will_use_collect2
="collect2"
5184 maybe_use_collect2
="-DUSE_COLLECT2"
5188 # Set MD_DEPS if the real md file is in md.pre-cpp.
5189 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5190 # for line oriented comments, so we must always use a GNU cpp. If
5191 # building gcc with a cross compiler, use the cross compiler just
5192 # built. Otherwise, we can use the cpp just built.
5194 if [ "x$md_cppflags" = x
]
5196 md_file_sub
=$srcdir/config
/$md_file
5201 # If we have gas in the build tree, make a link to it.
5202 if [ -f ..
/gas
/Makefile
]; then
5203 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5206 # If we have nm in the build tree, make a link to it.
5207 if [ -f ..
/binutils
/Makefile
]; then
5208 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5211 # If we have ld in the build tree, make a link to it.
5212 if [ -f ..
/ld
/Makefile
]; then
5213 # if [[ x$use_collect2 = x ]]; then
5214 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5216 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5220 # Figure out what assembler alignment features are present.
5221 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5222 echo "configure:5223: checking assembler alignment features" >&5
5224 gcc_cv_as_alignment_features
=
5225 if [ -x as
$host_exeext ]; then
5226 # Build using assembler in the current directory.
5227 gcc_cv_as
=.
/as
$host_exeext
5228 elif [ -f $srcdir/..
/gas
/configure.
in ]; then
5229 # Single tree build which includes gas.
5230 for f
in $srcdir/..
/gas
/configure.
in $srcdir/..
/gas
/Makefile.
in
5232 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5233 if [ x
$gcc_cv_gas_version != x
]; then
5237 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5238 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5239 # Gas version 2.8 and later support specifying the maximum
5240 # bytes to skip when using .p2align.
5241 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5242 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5243 cat >> confdefs.h
<<\EOF
5244 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5248 elif [ x
$host = x
$target ]; then
5250 gcc_cv_as
=as
$host_exeext
5252 if [ x
$gcc_cv_as != x
]; then
5253 # Check if specifying the maximum bytes to skip when
5254 # using .p2align is supported.
5255 echo ".p2align 4,,7" > conftest.s
5256 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5257 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5258 cat >> confdefs.h
<<\EOF
5259 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5263 rm -f conftest.s conftest.o
5265 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5267 # Figure out what language subdirectories are present.
5269 for lang
in ${srcdir}/*/config-lang.
in ..
5273 # The odd quoting in the next line works around
5274 # an apparent bug in bash 1.12 on linux.
5275 ${srcdir}/[*]/config-lang.
in) ;;
5276 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5280 # Make gthr-default.h if we have a thread file.
5282 if [ $thread_file != single
]; then
5283 rm -f gthr-default.h
5284 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5285 gthread_flags
=-DHAVE_GTHR_DEFAULT
5289 # Make empty files to contain the specs and options for each language.
5290 # Then add #include lines to for a compiler that has specs and/or options.
5294 rm -f specs.h options.h
5295 touch specs.h options.h
5296 for subdir
in .
$subdirs
5298 if [ -f $srcdir/$subdir/lang-specs.h
]; then
5299 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5300 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5302 if [ -f $srcdir/$subdir/lang-options.h
]; then
5303 echo "#include \"$subdir/lang-options.h\"" >>options.h
5304 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5308 # These (without "all_") are set in each config-lang.in.
5309 # `language' must be a single word so is spelled singularly.
5315 all_outputs
=Makefile
5316 # List of language makefile fragments.
5321 # Add the language fragments.
5322 # Languages are added via two mechanisms. Some information must be
5323 # recorded in makefile variables, these are defined in config-lang.in.
5324 # We accumulate them and plug them into the main Makefile.
5325 # The other mechanism is a set of hooks for each of the main targets
5326 # like `clean', `install', etc.
5328 language_fragments
="Make-lang"
5329 language_hooks
="Make-hooks"
5332 for s
in ..
$subdirs
5344 .
${srcdir}/$s/config-lang.
in
5345 if [ "x$language" = x
]
5347 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5350 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5351 all_languages
="$all_languages $language"
5352 if [ "x$boot_language" = xyes
]
5354 all_boot_languages
="$all_boot_languages $language"
5356 all_compilers
="$all_compilers $compilers"
5357 all_stagestuff
="$all_stagestuff $stagestuff"
5358 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5359 all_headers
="$all_headers $headers"
5360 all_outputs
="$all_outputs $outputs"
5361 if [ x
$outputs = x
]
5363 oldstyle_subdirs
="$oldstyle_subdirs $s"
5365 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5369 # Since we can't use `::' targets, we link each language in
5370 # with a set of hooks, reached indirectly via lang.${target}.
5374 target_list
="all.build all.cross start.encap rest.encap \
5376 install-normal install-common install-info install-man \
5378 mostlyclean clean distclean extraclean maintainer-clean \
5379 stage1 stage2 stage3 stage4"
5380 for t
in $target_list
5383 for l
in ..
$all_languages
5385 if [ $l != ".." ]; then
5389 echo "lang.$t: $x" >> Make-hooks
5392 # If we're not building in srcdir, create .gdbinit.
5394 if [ ! -f Makefile.
in ]; then
5395 echo "dir ." > .gdbinit
5396 echo "dir ${srcdir}" >> .gdbinit
5397 if [ x
$gdb_needs_out_file_path = xyes
]
5399 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5401 if [ "x$subdirs" != x
]; then
5404 echo "dir ${srcdir}/$s" >> .gdbinit
5407 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5410 # Define variables host_canonical and build_canonical
5411 # because some Cygnus local changes in the Makefile depend on them.
5412 build_canonical
=${build}
5413 host_canonical
=${host}
5415 if [ "${host}" != "${target}" ] ; then
5416 target_subdir
=${target}/
5422 # If this is using newlib, then define inhibit_libc in
5423 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5424 # libgcc.a, but that's OK because newib should have its own version of
5427 if [ x
$with_newlib = xyes
]; then
5428 inhibit_libc
=-Dinhibit_libc
5432 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5435 if [ x
$enable_haifa = xyes
]; then
5436 echo "Using the Haifa scheduler."
5438 sched_cflags
=-DHAIFA
5442 if [ x
$enable_haifa != x
]; then
5443 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5444 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5452 # Nothing to do for FLOAT_H, float_format already handled.
5456 # Process the language and host/target makefile fragments.
5457 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5459 # Substitute configuration variables
5514 # Echo that links are built
5515 if [ x
$host = x
$target ]
5523 if [ x
$host != x
$build ]
5525 str3
=" on a $build system"
5528 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5533 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5535 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5537 echo " ${str2}${str3}." 1>&2
5540 # Truncate the target if necessary
5541 if [ x
$host_truncate_target != x
]; then
5542 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5545 # Configure the subdirectories
5546 # AC_CONFIG_SUBDIRS($subdirs)
5548 # Create the Makefile
5549 # and configure language subdirectories
5551 cat > confcache
<<\EOF
5552 # This file is a shell script that caches the results of configure
5553 # tests run on this system so they can be shared between configure
5554 # scripts and configure runs. It is not useful on other systems.
5555 # If it contains results you don't want to keep, you may remove or edit it.
5557 # By default, configure uses ./config.cache as the cache file,
5558 # creating it if it does not exist already. You can give configure
5559 # the --cache-file=FILE option to use a different cache file; that is
5560 # what configure does when it calls configure scripts in
5561 # subdirectories, so they share the cache.
5562 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5563 # config.status only pays attention to the cache file if you give it the
5564 # --recheck option to rerun configure.
5567 # The following way of writing the cache mishandles newlines in values,
5568 # but we know of no workaround that is simple, portable, and efficient.
5569 # So, don't put newlines in cache variables' values.
5570 # Ultrix sh set writes to stderr and can't be redirected directly,
5571 # and sets the high bit in the cache file unless we assign to the vars.
5573 case `(ac_space=' '; set) 2>&1` in
5575 # `set' does not quote correctly, so add quotes (double-quote substitution
5576 # turns \\\\ into \\, and sed turns \\ into \).
5578 -e "s/'/'\\\\''/g" \
5579 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5582 # `set' quotes correctly as required by POSIX, so do not add quotes.
5583 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5586 if cmp -s $cache_file confcache
; then
5589 if test -w $cache_file; then
5590 echo "updating cache $cache_file"
5591 cat confcache
> $cache_file
5593 echo "not updating unwritable cache $cache_file"
5598 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5600 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5601 # Let make expand exec_prefix.
5602 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5604 # Any assignment to VPATH causes Sun make to only execute
5605 # the first set of double-colon rules, so remove it if not needed.
5606 # If there is a colon in the path, we need to keep it.
5607 if test "x$srcdir" = x.
; then
5608 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5611 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5613 DEFS
=-DHAVE_CONFIG_H
5615 # Without the "./", some shells look in PATH for config.status.
5616 : ${CONFIG_STATUS=./config.status}
5618 echo creating
$CONFIG_STATUS
5619 rm -f $CONFIG_STATUS
5620 cat > $CONFIG_STATUS <<EOF
5622 # Generated automatically by configure.
5623 # Run this file to recreate the current configuration.
5624 # This directory was configured as follows,
5625 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5627 # $0 $ac_configure_args
5629 # Compiler output produced by configure, useful for debugging
5630 # configure, is in ./config.log if it exists.
5632 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5635 case "\$ac_option" in
5636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5637 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5638 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5639 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5640 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5642 -help | --help | --hel | --he | --h)
5643 echo "\$ac_cs_usage"; exit 0 ;;
5644 *) echo "\$ac_cs_usage"; exit 1 ;;
5648 ac_given_srcdir=$srcdir
5650 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5652 cat >> $CONFIG_STATUS <<EOF
5654 # Protect against being on the right side of a sed subst in config.status.
5655 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5656 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5659 s%@CFLAGS@%$CFLAGS%g
5660 s%@CPPFLAGS@%$CPPFLAGS%g
5661 s%@CXXFLAGS@%$CXXFLAGS%g
5663 s%@LDFLAGS@%$LDFLAGS%g
5665 s%@exec_prefix@%$exec_prefix%g
5666 s%@prefix@%$prefix%g
5667 s%@program_transform_name@%$program_transform_name%g
5668 s%@bindir@%$bindir%g
5669 s%@sbindir@%$sbindir%g
5670 s%@libexecdir@%$libexecdir%g
5671 s%@datadir@%$datadir%g
5672 s%@sysconfdir@%$sysconfdir%g
5673 s%@sharedstatedir@%$sharedstatedir%g
5674 s%@localstatedir@%$localstatedir%g
5675 s%@libdir@%$libdir%g
5676 s%@includedir@%$includedir%g
5677 s%@oldincludedir@%$oldincludedir%g
5678 s%@infodir@%$infodir%g
5679 s%@mandir@%$mandir%g
5681 s%@host_alias@%$host_alias%g
5682 s%@host_cpu@%$host_cpu%g
5683 s%@host_vendor@%$host_vendor%g
5684 s%@host_os@%$host_os%g
5685 s%@target@%$target%g
5686 s%@target_alias@%$target_alias%g
5687 s%@target_cpu@%$target_cpu%g
5688 s%@target_vendor@%$target_vendor%g
5689 s%@target_os@%$target_os%g
5691 s%@build_alias@%$build_alias%g
5692 s%@build_cpu@%$build_cpu%g
5693 s%@build_vendor@%$build_vendor%g
5694 s%@build_os@%$build_os%g
5696 s%@SET_MAKE@%$SET_MAKE%g
5699 s%@LEXLIB@%$LEXLIB%g
5702 s%@RANLIB@%$RANLIB%g
5704 s%@INSTALL@%$INSTALL%g
5705 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5706 s%@INSTALL_DATA@%$INSTALL_DATA%g
5708 s%@vfprintf@%$vfprintf%g
5709 s%@doprint@%$doprint%g
5710 s%@manext@%$manext%g
5711 s%@objext@%$objext%g
5712 s%@gthread_flags@%$gthread_flags%g
5713 s%@build_canonical@%$build_canonical%g
5714 s%@host_canonical@%$host_canonical%g
5715 s%@target_subdir@%$target_subdir%g
5716 s%@inhibit_libc@%$inhibit_libc%g
5717 s%@sched_prefix@%$sched_prefix%g
5718 s%@sched_cflags@%$sched_cflags%g
5719 s%@objdir@%$objdir%g
5720 s%@subdirs@%$subdirs%g
5721 s%@all_languages@%$all_languages%g
5722 s%@all_boot_languages@%$all_boot_languages%g
5723 s%@all_compilers@%$all_compilers%g
5724 s%@all_lang_makefiles@%$all_lang_makefiles%g
5725 s%@all_stagestuff@%$all_stagestuff%g
5726 s%@all_diff_excludes@%$all_diff_excludes%g
5727 s%@all_lib2funcs@%$all_lib2funcs%g
5728 s%@all_headers@%$all_headers%g
5729 s%@cpp_main@%$cpp_main%g
5730 s%@extra_passes@%$extra_passes%g
5731 s%@extra_programs@%$extra_programs%g
5732 s%@extra_parts@%$extra_parts%g
5733 s%@extra_c_objs@%$extra_c_objs%g
5734 s%@extra_cxx_objs@%$extra_cxx_objs%g
5735 s%@extra_c_flags@%$extra_c_flags%g
5736 s%@extra_objs@%$extra_objs%g
5737 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5738 s%@extra_headers_list@%$extra_headers_list%g
5739 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5740 s%@dep_tmake_file@%$dep_tmake_file%g
5741 s%@out_file@%$out_file%g
5742 s%@out_object_file@%$out_object_file%g
5743 s%@md_file@%$md_file%g
5744 s%@tm_file_list@%$tm_file_list%g
5745 s%@build_xm_file_list@%$build_xm_file_list%g
5746 s%@host_xm_file_list@%$host_xm_file_list%g
5747 s%@lang_specs_files@%$lang_specs_files%g
5748 s%@lang_options_files@%$lang_options_files%g
5749 s%@thread_file@%$thread_file%g
5750 s%@gcc_version@%$gcc_version%g
5751 s%@gcc_version_trigger@%$gcc_version_trigger%g
5752 s%@local_prefix@%$local_prefix%g
5753 s%@gxx_include_dir@%$gxx_include_dir%g
5754 s%@fixincludes@%$fixincludes%g
5755 s%@build_install_headers_dir@%$build_install_headers_dir%g
5756 s%@build_exeext@%$build_exeext%g
5757 s%@host_exeext@%$host_exeext%g
5758 s%@float_format@%$float_format%g
5759 s%@will_use_collect2@%$will_use_collect2%g
5760 s%@maybe_use_collect2@%$maybe_use_collect2%g
5761 s%@cc_set_by_configure@%$cc_set_by_configure%g
5762 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5763 s%@install@%$install%g
5764 s%@symbolic_link@%$symbolic_link%g
5765 /@target_overrides@/r $target_overrides
5766 s%@target_overrides@%%g
5767 /@host_overrides@/r $host_overrides
5768 s%@host_overrides@%%g
5769 s%@cross_defines@%$cross_defines%g
5770 /@cross_overrides@/r $cross_overrides
5771 s%@cross_overrides@%%g
5772 /@build_overrides@/r $build_overrides
5773 s%@build_overrides@%%g
5774 /@language_fragments@/r $language_fragments
5775 s%@language_fragments@%%g
5776 /@language_hooks@/r $language_hooks
5777 s%@language_hooks@%%g
5782 cat >> $CONFIG_STATUS <<\EOF
5784 # Split the substitutions into bite-sized pieces for seds with
5785 # small command number limits, like on Digital OSF/1 and HP-UX.
5786 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5787 ac_file
=1 # Number of current file.
5788 ac_beg
=1 # First line for current file.
5789 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5792 while $ac_more_lines; do
5793 if test $ac_beg -gt 1; then
5794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5796 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5798 if test ! -s conftest.s
$ac_file; then
5800 rm -f conftest.s
$ac_file
5802 if test -z "$ac_sed_cmds"; then
5803 ac_sed_cmds
="sed -f conftest.s$ac_file"
5805 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5807 ac_file
=`expr $ac_file + 1`
5809 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5812 if test -z "$ac_sed_cmds"; then
5817 cat >> $CONFIG_STATUS <<EOF
5819 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5821 cat >> $CONFIG_STATUS <<\EOF
5822 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5825 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5826 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5827 *) ac_file_in
="${ac_file}.in" ;;
5830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5832 # Remove last slash and all that follows it. Not all systems have dirname.
5833 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5834 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5835 # The file is in a subdirectory.
5836 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5837 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5838 # A "../" for each directory in $ac_dir_suffix.
5839 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5841 ac_dir_suffix
= ac_dots
=
5844 case "$ac_given_srcdir" in
5846 if test -z "$ac_dots"; then top_srcdir
=.
5847 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5848 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5850 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5851 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5855 echo creating
"$ac_file"
5857 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5859 *Makefile
*) ac_comsub
="1i\\
5860 # $configure_input" ;;
5864 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5866 s%@configure_input@%$configure_input%g
5867 s%@srcdir@%$srcdir%g
5868 s%@top_srcdir@%$top_srcdir%g
5869 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5876 # ac_d sets the value in "#define NAME VALUE" lines.
5877 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5878 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5881 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5882 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5883 ac_uB
='\([ ]\)%\1#\2define\3'
5886 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5887 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5888 ac_eB
='$%\1#\2define\3'
5892 if test "${CONFIG_HEADERS+set}" != set; then
5894 cat >> $CONFIG_STATUS <<EOF
5895 CONFIG_HEADERS="auto-host.h:config.in"
5897 cat >> $CONFIG_STATUS <<\EOF
5899 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5902 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5903 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5904 *) ac_file_in
="${ac_file}.in" ;;
5907 echo creating
$ac_file
5909 rm -f conftest.frag conftest.
in conftest.out
5910 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5911 cat $ac_file_inputs > conftest.
in
5915 # Transform confdefs.h into a sed script conftest.vals that substitutes
5916 # the proper values into config.h.in to produce config.h. And first:
5917 # Protect against being on the right side of a sed subst in config.status.
5918 # Protect against being in an unquoted here document in config.status.
5920 cat > conftest.hdr
<<\EOF
5923 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5927 sed -n -f conftest.hdr confdefs.h > conftest.vals
5930 # This sed command replaces #undef with comments. This is necessary, for
5931 # example, in the case of _POSIX_SOURCE, which is predefined and required
5932 # on some systems where configure will not decide to define it.
5933 cat >> conftest.vals <<\EOF
5934 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5937 # Break up conftest.vals because some shells have a limit on
5938 # the size of here documents, and old seds have small limits too.
5943 ac_lines=`grep -c . conftest.vals
`
5944 # grep -c gives empty output for an empty file on some AIX systems.
5945 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5946 # Write a limited-size here document to conftest.frag.
5947 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5948 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5950 sed -f conftest.frag conftest.in > conftest.out
5952 mv conftest.out conftest.in
5954 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5956 mv conftest.tail conftest.vals
5960 cat >> $CONFIG_STATUS <<\EOF
5961 rm -f conftest.frag conftest.h
5962 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5963 cat conftest.in >> conftest.h
5965 if cmp -s $ac_file conftest.h 2>/dev/null; then
5966 echo "$ac_file is unchanged"
5969 # Remove last slash and all that follows it. Not all systems have dirname.
5970 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5972 # The file is in a subdirectory.
5973 test ! -d "$ac_dir" && mkdir "$ac_dir"
5976 mv conftest.h $ac_file
5981 cat >> $CONFIG_STATUS <<EOF
5986 target_alias='${target_alias}'
5988 subdirs='${subdirs}'
5989 oldstyle_subdirs='${oldstyle_subdirs}'
5990 symbolic_link='${symbolic_link}'
5991 program_transform_set='${program_transform_set}'
5992 program_transform_name='${program_transform_name}'
5993 dep_host_xmake_file='${dep_host_xmake_file}'
5994 host_xmake_file='${host_xmake_file}'
5995 dep_tmake_file='${dep_tmake_file}'
5996 tmake_file='${tmake_file}'
5997 thread_file='${thread_file}'
5998 gcc_version='${gcc_version}'
5999 gcc_version_trigger='${gcc_version_trigger}'
6000 local_prefix='${local_prefix}'
6001 build_install_headers_dir='${build_install_headers_dir}'
6002 build_exeext='${build_exeext}'
6003 host_exeext='${host_exeext}'
6004 out_file='${out_file}'
6005 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6006 SET_MAKE='${SET_MAKE}'
6007 target_list='${target_list}'
6008 target_overrides='${target_overrides}'
6009 host_overrides='${host_overrides}'
6010 cross_defines='${cross_defines}'
6011 cross_overrides='${cross_overrides}'
6012 build_overrides='${build_overrides}'
6015 cat >> $CONFIG_STATUS <<\EOF
6017 . $srcdir/configure.lang
6018 case x$CONFIG_HEADERS in
6019 xauto-host.h:config.in)
6022 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6023 # bootstrapping and the installation procedure can still use
6024 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6025 # FLAGS_TO_PASS has been modified to solve the problem there.
6026 # This is virtually a duplicate of what happens in configure.lang; we do
6027 # an extra check to make sure this only happens if ln -s can be used.
6028 if [ "$symbolic_link" = "ln -s" ]; then
6029 for d in .. ${subdirs} ; do
6030 if [ $d != .. ]; then
6033 for t in stage1 stage2 stage3 stage4 include
6036 $symbolic_link ../$t $t 2>/dev/null
6045 chmod +x $CONFIG_STATUS
6046 rm -fr confdefs* $ac_clean_files
6047 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1