3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --disable-cpplib use the old isolated C preprocessor."
46 --enable-c-mbchar Enable multibyte characters for C and C++."
48 --enable-threads enable thread usage for target GCC.
49 --enable-threads=LIB use LIB thread package for target GCC."
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime."
54 --with-dwarf2 force the default debug format to be DWARF2."
56 --enable-nls use Native Language Support (disabled by default)"
58 --disable-nls do not use Native Language Support"
60 --with-included-gettext use the GNU gettext library included here"
62 --with-catgets use catgets functions if available"
64 --disable-win32-registry
65 Disable lookup of installation paths in the
66 Registry on Windows hosts.
67 --enable-win32-registry Enable registry lookup (default).
68 --enable-win32-registry=KEY
69 Use KEY instead of GCC version as the last portion
72 --with-gc={simple,page} Choose the garbage collection mechanism to use
76 select the new abi for g++. You must select an ABI
77 at configuration time, so that the correct runtime
78 support is built. You cannot mix ABIs."
81 enable libstdc++-v3 for building and installation"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
120 SHELL
=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
146 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
147 bindir
="$ac_optarg" ;;
149 -build |
--build |
--buil |
--bui |
--bu)
151 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
152 build
="$ac_optarg" ;;
154 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
155 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
156 ac_prev
=cache_file
;;
157 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
158 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
159 cache_file
="$ac_optarg" ;;
161 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
165 datadir
="$ac_optarg" ;;
167 -disable-* |
--disable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* |
--enable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
191 |
--exec |
--exe |
--ex)
192 ac_prev
=exec_prefix
;;
193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
195 |
--exec=* |
--exe=* |
--ex=*)
196 exec_prefix
="$ac_optarg" ;;
198 -gas |
--gas |
--ga |
--g)
199 # Obsolete; use --with-gas.
202 -help |
--help |
--hel |
--he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host |
--host |
--hos |
--ho)
259 -host=* |
--host=* |
--hos=* |
--ho=*)
262 -includedir |
--includedir |
--includedi |
--included |
--include \
263 |
--includ |
--inclu |
--incl |
--inc)
264 ac_prev
=includedir
;;
265 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
266 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
267 includedir
="$ac_optarg" ;;
269 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
271 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
272 infodir
="$ac_optarg" ;;
274 -libdir |
--libdir |
--libdi |
--libd)
276 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
277 libdir
="$ac_optarg" ;;
279 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
280 |
--libexe |
--libex |
--libe)
281 ac_prev
=libexecdir
;;
282 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
283 |
--libexe=* |
--libex=* |
--libe=*)
284 libexecdir
="$ac_optarg" ;;
286 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
287 |
--localstate |
--localstat |
--localsta |
--localst \
288 |
--locals |
--local |
--loca |
--loc |
--lo)
289 ac_prev
=localstatedir
;;
290 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
291 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
292 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
293 localstatedir
="$ac_optarg" ;;
295 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
297 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
298 mandir
="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
308 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
309 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
312 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
313 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
314 |
--oldin |
--oldi |
--old |
--ol |
--o)
315 ac_prev
=oldincludedir
;;
316 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
317 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
318 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
319 oldincludedir
="$ac_optarg" ;;
321 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
323 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
324 prefix
="$ac_optarg" ;;
326 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
327 |
--program-pre |
--program-pr |
--program-p)
328 ac_prev
=program_prefix
;;
329 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
330 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
331 program_prefix
="$ac_optarg" ;;
333 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
334 |
--program-suf |
--program-su |
--program-s)
335 ac_prev
=program_suffix
;;
336 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
337 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
338 program_suffix
="$ac_optarg" ;;
340 -program-transform-name |
--program-transform-name \
341 |
--program-transform-nam |
--program-transform-na \
342 |
--program-transform-n |
--program-transform- \
343 |
--program-transform |
--program-transfor \
344 |
--program-transfo |
--program-transf \
345 |
--program-trans |
--program-tran \
346 |
--progr-tra |
--program-tr |
--program-t)
347 ac_prev
=program_transform_name
;;
348 -program-transform-name=* |
--program-transform-name=* \
349 |
--program-transform-nam=* |
--program-transform-na=* \
350 |
--program-transform-n=* |
--program-transform-=* \
351 |
--program-transform=* |
--program-transfor=* \
352 |
--program-transfo=* |
--program-transf=* \
353 |
--program-trans=* |
--program-tran=* \
354 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
355 program_transform_name
="$ac_optarg" ;;
357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
358 |
-silent |
--silent |
--silen |
--sile |
--sil)
361 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
363 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
365 sbindir
="$ac_optarg" ;;
367 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
368 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
369 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
371 ac_prev
=sharedstatedir
;;
372 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
373 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
374 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
376 sharedstatedir
="$ac_optarg" ;;
378 -site |
--site |
--sit)
380 -site=* |
--site=* |
--sit=*)
383 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
385 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
386 srcdir
="$ac_optarg" ;;
388 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
389 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
390 ac_prev
=sysconfdir
;;
391 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
392 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
393 sysconfdir
="$ac_optarg" ;;
395 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
397 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
398 target
="$ac_optarg" ;;
400 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
403 -version |
--version |
--versio |
--versi |
--vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* |
--without-*)
421 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
434 |
--x-incl |
--x-inc |
--x-in |
--x-i)
435 ac_prev
=x_includes
;;
436 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
437 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
438 x_includes
="$ac_optarg" ;;
440 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
441 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
442 ac_prev
=x_libraries
;;
443 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
444 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
445 x_libraries
="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE
; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
496 |
--no-cr |
--no-c) ;;
497 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
498 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
499 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest
* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file
=tree.c
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted
=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted
=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE
; then
550 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file
in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp
='$CPP $CPPFLAGS'
573 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling
=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
588 ac_n
= ac_c
='\c' ac_t
=
596 symbolic_link
='ln -s'
599 # Check for bogus environment variables.
600 # Test if LIBRARY_PATH contains the notation for the current directory
601 # since this would lead to problems installing/building glibc.
602 # LIBRARY_PATH contains the current directory if one of the following
604 # - one of the terminals (":" and ";") is the first or last sign
605 # - two terminals occur directly after each other
606 # - the path contains an element with a dot in it
607 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
608 echo "configure:609: checking LIBRARY_PATH variable" >&5
609 case ${LIBRARY_PATH} in
610 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
611 library_path_setting
="contains current directory"
614 library_path_setting
="ok"
617 echo "$ac_t""$library_path_setting" 1>&6
618 if test "$library_path_setting" != "ok"; then
619 { echo "configure: error:
620 *** LIBRARY_PATH shouldn't contain the current directory when
621 *** building gcc. Please change the environment variable
622 *** and run configure again." 1>&2; exit 1; }
625 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
626 # since this would lead to problems installing/building glibc.
627 # GCC_EXEC_PREFIX contains the current directory if one of the following
629 # - one of the terminals (":" and ";") is the first or last sign
630 # - two terminals occur directly after each other
631 # - the path contains an element with a dot in it
632 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
633 echo "configure:634: checking GCC_EXEC_PREFIX variable" >&5
634 case ${GCC_EXEC_PREFIX} in
635 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
636 gcc_exec_prefix_setting
="contains current directory"
639 gcc_exec_prefix_setting
="ok"
642 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
643 if test "$gcc_exec_prefix_setting" != "ok"; then
644 { echo "configure: error:
645 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
646 *** building gcc. Please change the environment variable
647 *** and run configure again." 1>&2; exit 1; }
650 # Check for additional parameters
653 # Check whether --with-gnu-ld or --without-gnu-ld was given.
654 if test "${with_gnu_ld+set}" = set; then
655 withval
="$with_gnu_ld"
656 gnu_ld_flag
="$with_gnu_ld"
662 # With pre-defined ld
663 # Check whether --with-ld or --without-ld was given.
664 if test "${with_ld+set}" = set; then
666 DEFAULT_LINKER
="$with_ld"
669 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
670 if test ! -x "$DEFAULT_LINKER"; then
671 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
672 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
675 cat >> confdefs.h
<<EOF
676 #define DEFAULT_LINKER "$DEFAULT_LINKER"
682 # Check whether --with-gnu-as or --without-gnu-as was given.
683 if test "${with_gnu_as+set}" = set; then
684 withval
="$with_gnu_as"
685 gas_flag
="$with_gnu_as"
691 # Check whether --with-as or --without-as was given.
692 if test "${with_as+set}" = set; then
694 DEFAULT_ASSEMBLER
="$with_as"
697 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
698 if test ! -x "$DEFAULT_ASSEMBLER"; then
699 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
700 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
703 cat >> confdefs.h
<<EOF
704 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
710 # Check whether --with-stabs or --without-stabs was given.
711 if test "${with_stabs+set}" = set; then
712 withval
="$with_stabs"
720 # Check whether --with-elf or --without-elf was given.
721 if test "${with_elf+set}" = set; then
729 # Specify the local prefix
731 # Check whether --with-local-prefix or --without-local-prefix was given.
732 if test "${with_local_prefix+set}" = set; then
733 withval
="$with_local_prefix"
735 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
737 *) local_prefix
=$with_local_prefix ;;
742 # Default local prefix if it is empty
743 if test x
$local_prefix = x
; then
744 local_prefix
=/usr
/local
747 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
748 # passed in by the toplevel make and thus we'd get different behavior
749 # depending on where we built the sources.
751 # Specify the g++ header file directory
752 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
753 if test "${with_gxx_include_dir+set}" = set; then
754 withval
="$with_gxx_include_dir"
756 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
758 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
763 if test x
${gcc_gxx_include_dir} = x
; then
764 if test x
${enable_version_specific_runtime_libs} = xyes
; then
765 gcc_gxx_include_dir
='${libsubdir}/include/g++'
767 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
768 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
772 # Enable expensive internal checks
773 # Check whether --enable-checking or --disable-checking was given.
774 if test "${enable_checking+set}" = set; then
775 enableval
="$enable_checking"
776 case "${enableval}" in
777 yes) cat >> confdefs.h
<<\EOF
778 #define ENABLE_CHECKING 1
781 cat >> confdefs.h
<<\EOF
782 #define ENABLE_TREE_CHECKING 1
785 cat >> confdefs.h
<<\EOF
786 #define ENABLE_RTL_CHECKING 1
790 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) cat >> confdefs.h
<<\EOF
797 #define ENABLE_CHECKING 1
800 tree
) cat >> confdefs.h
<<\EOF
801 #define ENABLE_TREE_CHECKING 1
804 rtl
) cat >> confdefs.h
<<\EOF
805 #define ENABLE_RTL_CHECKING 1
808 gc
) cat >> confdefs.h
<<\EOF
809 #define ENABLE_GC_CHECKING 1
812 gcac
) cat >> confdefs.h
<<\EOF
813 #define ENABLE_GC_ALWAYS_COLLECT 1
816 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Check whether --enable-cpp or --disable-cpp was given.
825 if test "${enable_cpp+set}" = set; then
826 enableval
="$enable_cpp"
833 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
834 if test "${with_cpp_install_dir+set}" = set; then
835 withval
="$with_cpp_install_dir"
836 if test x
$withval = xyes
; then
837 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
838 elif test x
$withval != xno
; then
839 cpp_install_dir
=$withval
844 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
846 # Check whether --enable-cpplib or --disable-cpplib was given.
847 if test "${enable_cpplib+set}" = set; then
848 enableval
="$enable_cpplib"
849 if test x
$enable_cpplib = xno
; then
856 # Enable Multibyte Characters for C/C++
857 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
858 if test "${enable_c_mbchar+set}" = set; then
859 enableval
="$enable_c_mbchar"
860 if test x
$enable_c_mbchar != xno
; then
861 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
867 # Pass with no value to take the default
868 # Pass with a value to specify a thread package
869 # Check whether --enable-threads or --disable-threads was given.
870 if test "${enable_threads+set}" = set; then
871 enableval
="$enable_threads"
872 if test x
$enable_threads = xno
; then
880 enable_threads_flag
=$enable_threads
881 # Check if a valid thread package
882 case x
${enable_threads_flag} in
885 target_thread_file
='single'
889 target_thread_file
=''
891 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
892 xsolaris | xwin32 | xdce | xvxworks
)
893 target_thread_file
=$enable_threads_flag
896 echo "$enable_threads is an unknown thread package" 1>&2
901 # Check whether --enable-objc-gc or --disable-objc-gc was given.
902 if test "${enable_objc_gc+set}" = set; then
903 enableval
="$enable_objc_gc"
904 if test x
$enable_objc_gc = xno
; then
914 # Check whether --with-dwarf2 or --without-dwarf2 was given.
915 if test "${with_dwarf2+set}" = set; then
916 withval
="$with_dwarf2"
917 dwarf2
="$with_dwarf2"
923 # Determine the host, build, and target systems
925 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
926 if test -f $ac_dir/install-sh
; then
928 ac_install_sh
="$ac_aux_dir/install-sh -c"
930 elif test -f $ac_dir/install.sh
; then
932 ac_install_sh
="$ac_aux_dir/install.sh -c"
936 if test -z "$ac_aux_dir"; then
937 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
939 ac_config_guess
=$ac_aux_dir/config.guess
940 ac_config_sub
=$ac_aux_dir/config.sub
941 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
944 # Do some error checking and defaulting for the host and target type.
946 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
949 # 1. You are not allowed to specify --host, --target, and nonopt at the
951 # 2. Host defaults to nonopt.
952 # 3. If nonopt is not specified, then host defaults to the current host,
953 # as determined by config.guess.
954 # 4. Target and build default to nonopt.
955 # 5. If nonopt is not specified, then target and build default to host.
957 # The aliases save the names the user supplied, while $host etc.
958 # will get canonicalized.
959 case $host---$target---$nonopt in
960 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
961 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
965 # Make sure we can run config.sub.
966 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
967 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
970 echo $ac_n "checking host system type""... $ac_c" 1>&6
971 echo "configure:972: checking host system type" >&5
974 case "$host_alias" in
978 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
979 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
981 *) host_alias
=$nonopt ;;
985 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
986 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$host" 1>&6
991 echo $ac_n "checking target system type""... $ac_c" 1>&6
992 echo "configure:993: checking target system type" >&5
995 case "$target_alias" in
998 NONE
) target_alias
=$host_alias ;;
999 *) target_alias
=$nonopt ;;
1003 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1004 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$target" 1>&6
1009 echo $ac_n "checking build system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking build system type" >&5
1013 case "$build_alias" in
1016 NONE
) build_alias
=$host_alias ;;
1017 *) build_alias
=$nonopt ;;
1021 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1022 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$build" 1>&6
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix
=${target_alias}-
1033 # Find the native compiler
1034 # Extract the first word of "gcc", so it can be a program name with args.
1035 set dummy gcc
; ac_word
=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC
="$CC" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1046 for ac_dir
in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1060 echo "$ac_t""no" 1>&6
1063 if test -z "$CC"; then
1064 # Extract the first word of "cc", so it can be a program name with args.
1065 set dummy cc
; ac_word
=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$CC"; then
1072 ac_cv_prog_CC
="$CC" # Let the user override the test.
1074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1080 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1081 ac_prog_rejected
=yes
1089 if test $ac_prog_rejected = yes; then
1090 # We found a bogon in the path, so make sure we never use it.
1091 set dummy
$ac_cv_prog_CC
1093 if test $# -gt 0; then
1094 # We chose a different compiler from the bogus one.
1095 # However, it has the same basename, so the bogon will be chosen
1096 # first if we set CC to just the basename; use the full file name.
1098 set dummy
"$ac_dir/$ac_word" "$@"
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 case "`uname -s`" in
1115 # Extract the first word of "cl", so it can be a program name with args.
1116 set dummy cl
; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$CC"; then
1123 ac_cv_prog_CC
="$CC" # Let the user override the test.
1125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1127 for ac_dir
in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir
=.
1129 if test -f $ac_dir/$ac_word; then
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1146 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1149 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154 ac_cpp
='$CPP $CPPFLAGS'
1155 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157 cross_compiling
=$ac_cv_prog_cc_cross
1159 cat > conftest.
$ac_ext << EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1166 if { (eval echo configure
:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1167 ac_cv_prog_cc_works
=yes
1168 # If we can't run a trivial program, we are probably using a cross compiler.
1169 if (.
/conftest
; exit) 2>/dev
/null
; then
1170 ac_cv_prog_cc_cross
=no
1172 ac_cv_prog_cc_cross
=yes
1175 echo "configure: failed program was:" >&5
1176 cat conftest.
$ac_ext >&5
1177 ac_cv_prog_cc_works
=no
1181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1182 ac_cpp
='$CPP $CPPFLAGS'
1183 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1184 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1185 cross_compiling
=$ac_cv_prog_cc_cross
1187 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1188 if test $ac_cv_prog_cc_works = no
; then
1189 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1191 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1193 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1194 cross_compiling
=$ac_cv_prog_cc_cross
1196 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.c
<<EOF
1206 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1221 ac_test_CFLAGS
="${CFLAGS+set}"
1222 ac_save_CFLAGS
="$CFLAGS"
1224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240 if test "$ac_test_CFLAGS" = set; then
1241 CFLAGS
="$ac_save_CFLAGS"
1242 elif test $ac_cv_prog_cc_g = yes; then
1243 if test "$GCC" = yes; then
1249 if test "$GCC" = yes; then
1256 echo $ac_n "checking for long double""... $ac_c" 1>&6
1257 echo "configure:1258: checking for long double" >&5
1258 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test "$GCC" = yes; then
1262 gcc_cv_c_long_double
=yes
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1269 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1270 long double foo = 0.0;
1271 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1272 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1275 if { (eval echo configure
:1276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277 gcc_cv_c_long_double
=yes
1279 echo "configure: failed program was:" >&5
1280 cat conftest.
$ac_ext >&5
1282 gcc_cv_c_long_double
=no
1288 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1289 if test $gcc_cv_c_long_double = yes; then
1290 cat >> confdefs.h
<<\EOF
1291 #define HAVE_LONG_DOUBLE 1
1297 # If the native compiler is GCC, we can enable warnings even in stage1.
1298 # That's useful for people building cross-compilers, or just running a
1300 if test "x$GCC" = "xyes"; then
1301 stage1_warn_cflags
='$(WARN_CFLAGS)'
1303 stage1_warn_cflags
=""
1307 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ${MAKE-make} sets \${MAKE}" >&5
1309 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftestmake
<<\EOF
1315 @
echo 'ac_maketemp="${MAKE}"'
1317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1318 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1319 if test -n "$ac_maketemp"; then
1320 eval ac_cv_prog_make_
${ac_make}_set
=yes
1322 eval ac_cv_prog_make_
${ac_make}_set
=no
1326 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 SET_MAKE
="MAKE=${MAKE-make}"
1335 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether a default assembler was specified" >&5
1337 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1338 if test x
"$gas_flag" = x
"no"; then
1339 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1341 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether a default linker was specified" >&5
1349 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1350 if test x
"$gnu_ld_flag" = x
"no"; then
1351 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1353 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1356 echo "$ac_t""no" 1>&6
1359 # Find some useful tools
1360 for ac_prog
in mawk gawk nawk
awk
1362 # Extract the first word of "$ac_prog", so it can be a program name with args.
1363 set dummy
$ac_prog; ac_word
=$2
1364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_word" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 if test -n "$AWK"; then
1370 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1374 for ac_dir
in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir
=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_prog_AWK
="$ac_prog"
1384 AWK
="$ac_cv_prog_AWK"
1385 if test -n "$AWK"; then
1386 echo "$ac_t""$AWK" 1>&6
1388 echo "$ac_t""no" 1>&6
1391 test -n "$AWK" && break
1394 # Extract the first word of "flex", so it can be a program name with args.
1395 set dummy flex
; ac_word
=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 if test -n "$LEX"; then
1402 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1404 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1406 for ac_dir
in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir
=.
1408 if test -f $ac_dir/$ac_word; then
1409 ac_cv_prog_LEX
="flex"
1414 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1417 LEX
="$ac_cv_prog_LEX"
1418 if test -n "$LEX"; then
1419 echo "$ac_t""$LEX" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 if test -z "$LEXLIB"
1430 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1431 echo "configure:1432: checking for yywrap in -l$ac_lib" >&5
1432 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 ac_save_LIBS
="$LIBS"
1437 LIBS
="-l$ac_lib $LIBS"
1438 cat > conftest.
$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* Override any gcc2 internal prototype to avoid an error. */
1442 /* We use char because int might match the return type of a gcc2
1443 builtin and then its argument prototype would still apply. */
1450 if { (eval echo configure
:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1452 eval "ac_cv_lib_$ac_lib_var=yes"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.
$ac_ext >&5
1457 eval "ac_cv_lib_$ac_lib_var=no"
1460 LIBS
="$ac_save_LIBS"
1463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1472 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1473 echo "configure:1474: checking whether ln works" >&5
1474 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 rm -f conftestdata_t
1478 echo >conftestdata_f
1479 if ln conftestdata_f conftestdata_t
2>/dev
/null
1483 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1485 gcc_cv_prog_LN
="ln -s"
1490 rm -f conftestdata_f conftestdata_t
1493 LN
="$gcc_cv_prog_LN"
1494 if test "$gcc_cv_prog_LN" = "ln"; then
1495 echo "$ac_t""yes" 1>&6
1497 if test "$gcc_cv_prog_LN" = "ln -s"; then
1498 echo "$ac_t""no, using ln -s" 1>&6
1500 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1504 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether ln -s works" >&5
1506 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 rm -f conftestdata_t
1510 echo >conftestdata_f
1511 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1513 gcc_cv_prog_LN_S
="ln -s"
1515 if ln conftestdata_f conftestdata_t
2>/dev
/null
1522 rm -f conftestdata_f conftestdata_t
1525 LN_S
="$gcc_cv_prog_LN_S"
1526 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1527 echo "$ac_t""yes" 1>&6
1529 if test "$gcc_cv_prog_LN_S" = "ln"; then
1530 echo "$ac_t""no, using ln" 1>&6
1532 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1536 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1537 echo "configure:1538: checking for volatile" >&5
1538 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1549 if { (eval echo configure
:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1551 gcc_cv_c_volatile
=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 gcc_cv_c_volatile
=no
1561 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1562 if test $gcc_cv_c_volatile = yes ; then
1563 cat >> confdefs.h
<<\EOF
1564 #define HAVE_VOLATILE 1
1569 # Extract the first word of "ranlib", so it can be a program name with args.
1570 set dummy ranlib
; ac_word
=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$RANLIB"; then
1577 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1579 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1581 for ac_dir
in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir
=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_prog_RANLIB
="ranlib"
1589 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1592 RANLIB
="$ac_cv_prog_RANLIB"
1593 if test -n "$RANLIB"; then
1594 echo "$ac_t""$RANLIB" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 for ac_prog
in 'bison -y' byacc
1601 # Extract the first word of "$ac_prog", so it can be a program name with args.
1602 set dummy
$ac_prog; ac_word
=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 if test -n "$YACC"; then
1609 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1613 for ac_dir
in $ac_dummy; do
1614 test -z "$ac_dir" && ac_dir
=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_prog_YACC
="$ac_prog"
1623 YACC
="$ac_cv_prog_YACC"
1624 if test -n "$YACC"; then
1625 echo "$ac_t""$YACC" 1>&6
1627 echo "$ac_t""no" 1>&6
1630 test -n "$YACC" && break
1632 test -n "$YACC" || YACC
="yacc"
1634 # Find a good install program. We prefer a C program (faster),
1635 # so one script is as good as another. But avoid the broken or
1636 # incompatible versions:
1637 # SysV /etc/install, /usr/sbin/install
1638 # SunOS /usr/etc/install
1639 # IRIX /sbin/install
1641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1643 # ./install, which can be erroneously created by make from ./install.sh.
1644 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1645 echo "configure:1646: checking for a BSD compatible install" >&5
1646 if test -z "$INSTALL"; then
1647 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1651 for ac_dir
in $PATH; do
1652 # Account for people who put trailing slashes in PATH elements.
1654 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 for ac_prog
in ginstall scoinst
install; do
1658 if test -f $ac_dir/$ac_prog; then
1659 if test $ac_prog = install &&
1660 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1662 # OSF/1 installbsd also uses dspmsg, but is usable.
1665 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1676 if test "${ac_cv_path_install+set}" = set; then
1677 INSTALL
="$ac_cv_path_install"
1679 # As a last resort, use the slow shell script. We don't cache a
1680 # path for INSTALL within a source directory, because that will
1681 # break other packages using the cache if that directory is
1682 # removed, or if the path is relative.
1683 INSTALL
="$ac_install_sh"
1686 echo "$ac_t""$INSTALL" 1>&6
1688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1689 # It thinks the first close brace ends the variable substitution.
1690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1692 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1695 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1696 echo "configure:1697: checking how to run the C preprocessor" >&5
1697 # On Suns, sometimes $CPP names a directory.
1698 if test -n "$CPP" && test -d "$CPP"; then
1701 if test -z "$CPP"; then
1702 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 # This must be in double quotes, not single quotes, because CPP may get
1706 # substituted into the Makefile and "${CC-cc}" will confuse make.
1708 # On the NeXT, cc -E runs the code through the compiler's parser,
1709 # not just through cpp.
1710 cat > conftest.
$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure
:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 CPP
="${CC-cc} -E -traditional-cpp"
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734 { (eval echo configure
:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1736 if test -z "$ac_err"; then
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 CPP
="${CC-cc} -nologo -E"
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1751 { (eval echo configure
:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1753 if test -z "$ac_err"; then
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1767 ac_cv_prog_CPP
="$CPP"
1769 CPP
="$ac_cv_prog_CPP"
1771 ac_cv_prog_CPP
="$CPP"
1773 echo "$ac_t""$CPP" 1>&6
1775 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1776 echo "configure:1777: checking for ANSI C header files" >&5
1777 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789 { (eval echo configure
:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1791 if test -z "$ac_err"; then
1793 ac_cv_header_stdc
=yes
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1799 ac_cv_header_stdc
=no
1803 if test $ac_cv_header_stdc = yes; then
1804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1811 egrep "memchr" >/dev
/null
2>&1; then
1815 ac_cv_header_stdc
=no
1821 if test $ac_cv_header_stdc = yes; then
1822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "free" >/dev
/null
2>&1; then
1833 ac_cv_header_stdc
=no
1839 if test $ac_cv_header_stdc = yes; then
1840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1841 if test "$cross_compiling" = yes; then
1844 cat > conftest.
$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1848 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1849 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1851 int main () { int i; for (i = 0; i < 256; i++)
1852 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1856 if { (eval echo configure
:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 ac_cv_header_stdc
=no
1871 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1872 if test $ac_cv_header_stdc = yes; then
1873 cat >> confdefs.h
<<\EOF
1874 #define STDC_HEADERS 1
1879 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1880 echo "configure:1881: checking whether time.h and sys/time.h may both be included" >&5
1881 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <sys/types.h>
1888 #include <sys/time.h>
1894 if { (eval echo configure
:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1896 ac_cv_header_time
=yes
1898 echo "configure: failed program was:" >&5
1899 cat conftest.
$ac_ext >&5
1901 ac_cv_header_time
=no
1906 echo "$ac_t""$ac_cv_header_time" 1>&6
1907 if test $ac_cv_header_time = yes; then
1908 cat >> confdefs.h
<<\EOF
1909 #define TIME_WITH_SYS_TIME 1
1914 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether string.h and strings.h may both be included" >&5
1916 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 #include <strings.h>
1928 if { (eval echo configure
:1929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1930 gcc_cv_header_string
=yes
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1935 gcc_cv_header_string
=no
1940 echo "$ac_t""$gcc_cv_header_string" 1>&6
1941 if test $gcc_cv_header_string = yes; then
1942 cat >> confdefs.h
<<\EOF
1943 #define STRING_WITH_STRINGS 1
1948 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1949 echo "configure:1950: checking for sys/wait.h that is POSIX.1 compatible" >&5
1950 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.
$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <sys/types.h>
1957 #include <sys/wait.h>
1959 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1962 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1967 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1970 if { (eval echo configure
:1971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1972 ac_cv_header_sys_wait_h
=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 ac_cv_header_sys_wait_h
=no
1982 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1983 if test $ac_cv_header_sys_wait_h = yes; then
1984 cat >> confdefs.h
<<\EOF
1985 #define HAVE_SYS_WAIT_H 1
1990 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1991 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1992 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_hdr" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2011 eval "ac_cv_header_$ac_safe=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 eval "ac_cv_header_$ac_safe=no"
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_hdr 1
2029 echo "$ac_t""no" 1>&6
2034 # Check for thread headers.
2035 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2037 echo "configure:2038: checking for thread.h" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 eval "ac_cv_header_$ac_safe=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "ac_cv_header_$ac_safe=no"
2061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2065 echo "$ac_t""no" 1>&6
2069 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2070 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2071 echo "configure:2072: checking for pthread.h" >&5
2072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #include <pthread.h>
2080 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2081 { (eval echo configure
:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2082 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2083 if test -z "$ac_err"; then
2085 eval "ac_cv_header_$ac_safe=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.
$ac_ext >&5
2091 eval "ac_cv_header_$ac_safe=no"
2095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2099 echo "$ac_t""no" 1>&6
2104 # See if GNAT has been installed
2105 # Extract the first word of "gnatbind", so it can be a program name with args.
2106 set dummy gnatbind
; ac_word
=$2
2107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 if test -n "$gnat"; then
2113 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2115 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2117 for ac_dir
in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir
=.
2119 if test -f $ac_dir/$ac_word; then
2120 ac_cv_prog_gnat
="yes"
2125 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2128 gnat
="$ac_cv_prog_gnat"
2129 if test -n "$gnat"; then
2130 echo "$ac_t""$gnat" 1>&6
2132 echo "$ac_t""no" 1>&6
2136 # See if the stage1 system preprocessor understands the ANSI C
2137 # preprocessor stringification operator.
2140 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2141 echo "configure:2142: checking for preprocessor stringizing operator" >&5
2142 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2151 char *s = x(teststring);
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "#teststring" >/dev
/null
2>&1; then
2157 ac_cv_c_stringize
=no
2160 ac_cv_c_stringize
=yes
2166 if test "${ac_cv_c_stringize}" = yes
2168 cat >> confdefs.h
<<\EOF
2169 #define HAVE_STRINGIZE 1
2173 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2176 # Use <inttypes.h> only if it exists,
2177 # doesn't clash with <sys/types.h>, and declares intmax_t.
2178 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2179 echo "configure:2180: checking for inttypes.h" >&5
2180 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <sys/types.h>
2187 #include <inttypes.h>
2192 if { (eval echo configure
:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2194 gcc_cv_header_inttypes_h
=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 gcc_cv_header_inttypes_h
=no
2204 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2205 if test $gcc_cv_header_inttypes_h = yes; then
2206 cat >> confdefs.h
<<\EOF
2207 #define HAVE_INTTYPES_H 1
2212 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2213 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2214 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2215 fputs_unlocked getrusage valloc
2217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_func" >&5
2219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* System header to define __stub macros and hopefully few prototypes,
2226 which can conflict with char $ac_func(); below. */
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2235 /* The GNU C library defines this for functions which it implements
2236 to always fail with ENOSYS. Some functions are actually named
2237 something starting with __ and the normal name is an alias. */
2238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2246 if { (eval echo configure
:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2248 eval "ac_cv_func_$ac_func=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.
$ac_ext >&5
2253 eval "ac_cv_func_$ac_func=no"
2258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2261 cat >> confdefs.h
<<EOF
2262 #define $ac_tr_func 1
2266 echo "$ac_t""no" 1>&6
2271 # Make sure wchar_t is available
2272 #AC_CHECK_TYPE(wchar_t, unsigned int)
2274 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2275 echo "configure:2276: checking for vprintf" >&5
2276 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 /* System header to define __stub macros and hopefully few prototypes,
2283 which can conflict with char vprintf(); below. */
2285 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2292 /* The GNU C library defines this for functions which it implements
2293 to always fail with ENOSYS. Some functions are actually named
2294 something starting with __ and the normal name is an alias. */
2295 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2305 eval "ac_cv_func_vprintf=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_func_vprintf=no"
2315 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 cat >> confdefs.h
<<\EOF
2318 #define HAVE_VPRINTF 1
2322 echo "$ac_t""no" 1>&6
2325 if test "$ac_cv_func_vprintf" != yes; then
2326 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2327 echo "configure:2328: checking for _doprnt" >&5
2328 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 /* System header to define __stub macros and hopefully few prototypes,
2335 which can conflict with char _doprnt(); below. */
2337 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2355 if { (eval echo configure
:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2357 eval "ac_cv_func__doprnt=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_func__doprnt=no"
2367 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 cat >> confdefs.h
<<\EOF
2370 #define HAVE_DOPRNT 1
2374 echo "$ac_t""no" 1>&6
2381 if test $ac_cv_func_vprintf != yes ; then
2383 if test $ac_cv_func__doprnt != yes ; then
2390 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2391 echo "configure:2392: checking whether the printf functions support %p" >&5
2392 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 if test "$cross_compiling" = yes; then
2396 gcc_cv_func_printf_ptr
=no
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2406 char *p = buf, *q = NULL;
2407 sprintf(buf, "%p", p);
2408 sscanf(buf, "%p", &q);
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2414 gcc_cv_func_printf_ptr
=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 gcc_cv_func_printf_ptr
=no
2424 rm -f core core.
* *.core
2427 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2428 if test $gcc_cv_func_printf_ptr = yes ; then
2429 cat >> confdefs.h
<<\EOF
2430 #define HAVE_PRINTF_PTR 1
2438 # Under some versions of uwin, vfork is notoriously buggy and the test
2439 # can hang configure; on other versions, vfork exists just as a stub.
2440 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2441 ac_cv_func_vfork_works
=no
2444 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2445 echo "configure:2446: checking for pid_t" >&5
2446 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.
$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 #include <sys/types.h>
2458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2459 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2461 ac_cv_type_pid_t
=yes
2469 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2470 if test $ac_cv_type_pid_t = no
; then
2471 cat >> confdefs.h
<<\EOF
2477 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2478 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2479 echo "configure:2480: checking for vfork.h" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2488 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure
:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2493 eval "ac_cv_header_$ac_safe=yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 eval "ac_cv_header_$ac_safe=no"
2503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 cat >> confdefs.h
<<\EOF
2506 #define HAVE_VFORK_H 1
2510 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2514 echo "configure:2515: checking for working vfork" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 if test "$cross_compiling" = yes; then
2519 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2520 echo "configure:2521: checking for vfork" >&5
2521 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 cat > conftest.
$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2527 /* System header to define __stub macros and hopefully few prototypes,
2528 which can conflict with char vfork(); below. */
2530 /* Override any gcc2 internal prototype to avoid an error. */
2531 /* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2537 /* The GNU C library defines this for functions which it implements
2538 to always fail with ENOSYS. Some functions are actually named
2539 something starting with __ and the normal name is an alias. */
2540 #if defined (__stub_vfork) || defined (__stub___vfork)
2548 if { (eval echo configure
:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2550 eval "ac_cv_func_vfork=yes"
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 eval "ac_cv_func_vfork=no"
2560 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2564 echo "$ac_t""no" 1>&6
2567 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2569 cat > conftest.
$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* Thanks to Paul Eggert for this test. */
2574 #include <sys/types.h>
2575 #include <sys/stat.h>
2576 #ifdef HAVE_UNISTD_H
2582 /* On some sparc systems, changes by the child to local and incoming
2583 argument registers are propagated back to the parent.
2584 The compiler is told about this with #include <vfork.h>,
2585 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2586 Test for this by using a static variable whose address
2587 is put into a register that is clobbered by the vfork. */
2590 sparc_address_test (int arg)
2592 sparc_address_test (arg) int arg;
2610 pid_t parent = getpid ();
2613 sparc_address_test ();
2618 /* Here is another test for sparc vfork register problems.
2619 This test uses lots of local variables, at least
2620 as many local variables as main has allocated so far
2621 including compiler temporaries. 4 locals are enough for
2622 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2623 A buggy compiler should reuse the register of parent
2624 for one of the local variables, since it will think that
2625 parent can't possibly be used any more in this routine.
2626 Assigning to the local variable will thus munge parent
2627 in the parent process. */
2629 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2630 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2631 /* Convince the compiler that p..p7 are live; otherwise, it might
2632 use the same hardware register for all 8 local variables. */
2633 if (p != p1 || p != p2 || p != p3 || p != p4
2634 || p != p5 || p != p6 || p != p7)
2637 /* On some systems (e.g. IRIX 3.3),
2638 vfork doesn't separate parent from child file descriptors.
2639 If the child closes a descriptor before it execs or exits,
2640 this munges the parent's descriptor as well.
2641 Test for this by closing stdout in the child. */
2642 _exit(close(fileno(stdout)) != 0);
2647 while (wait(&status) != child)
2650 /* Was there some problem with vforking? */
2653 /* Did the child fail? (This shouldn't happen.) */
2656 /* Did the vfork/compiler bug occur? */
2657 || parent != getpid()
2659 /* Did the file descriptor bug occur? */
2660 || fstat(fileno(stdout), &st) != 0
2665 if { (eval echo configure
:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2667 ac_cv_func_vfork_works
=yes
2669 echo "configure: failed program was:" >&5
2670 cat conftest.
$ac_ext >&5
2672 ac_cv_func_vfork_works
=no
2679 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2680 if test $ac_cv_func_vfork_works = no
; then
2681 cat >> confdefs.h
<<\EOF
2687 for ac_hdr
in unistd.h
2689 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_hdr" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2700 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure
:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 eval "ac_cv_header_$ac_safe=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.
$ac_ext >&5
2711 eval "ac_cv_header_$ac_safe=no"
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2718 cat >> confdefs.h
<<EOF
2719 #define $ac_tr_hdr 1
2723 echo "$ac_t""no" 1>&6
2727 for ac_func
in getpagesize
2729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_func" >&5
2731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.
$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* System header to define __stub macros and hopefully few prototypes,
2738 which can conflict with char $ac_func(); below. */
2740 /* Override any gcc2 internal prototype to avoid an error. */
2741 /* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2747 /* The GNU C library defines this for functions which it implements
2748 to always fail with ENOSYS. Some functions are actually named
2749 something starting with __ and the normal name is an alias. */
2750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2758 if { (eval echo configure
:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2760 eval "ac_cv_func_$ac_func=yes"
2762 echo "configure: failed program was:" >&5
2763 cat conftest.
$ac_ext >&5
2765 eval "ac_cv_func_$ac_func=no"
2770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2773 cat >> confdefs.h
<<EOF
2774 #define $ac_tr_func 1
2778 echo "$ac_t""no" 1>&6
2782 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2783 echo "configure:2784: checking for working mmap from /dev/zero" >&5
2784 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 if test "$cross_compiling" = yes; then
2788 ac_cv_func_mmap_anywhere
=no
2790 cat > conftest.
$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2794 /* Test by Richard Henderson and Alexandre Oliva.
2795 Check whether mmap from /dev/zero works. */
2796 #include <sys/types.h>
2798 #include <sys/mman.h>
2800 /* This mess was copied from the GNU getpagesize.h. */
2801 #ifndef HAVE_GETPAGESIZE
2802 # ifdef HAVE_UNISTD_H
2803 # include <unistd.h>
2806 /* Assume that all systems that can run configure have sys/param.h. */
2807 # ifndef HAVE_SYS_PARAM_H
2808 # define HAVE_SYS_PARAM_H 1
2811 # ifdef _SC_PAGESIZE
2812 # define getpagesize() sysconf(_SC_PAGESIZE)
2813 # else /* no _SC_PAGESIZE */
2814 # ifdef HAVE_SYS_PARAM_H
2815 # include <sys/param.h>
2816 # ifdef EXEC_PAGESIZE
2817 # define getpagesize() EXEC_PAGESIZE
2818 # else /* no EXEC_PAGESIZE */
2820 # define getpagesize() NBPG * CLSIZE
2823 # endif /* no CLSIZE */
2824 # else /* no NBPG */
2826 # define getpagesize() NBPC
2827 # else /* no NBPC */
2829 # define getpagesize() PAGESIZE
2830 # endif /* PAGESIZE */
2831 # endif /* no NBPC */
2832 # endif /* no NBPG */
2833 # endif /* no EXEC_PAGESIZE */
2834 # else /* no HAVE_SYS_PARAM_H */
2835 # define getpagesize() 8192 /* punt totally */
2836 # endif /* no HAVE_SYS_PARAM_H */
2837 # endif /* no _SC_PAGESIZE */
2839 #endif /* no HAVE_GETPAGESIZE */
2846 fd = open("/dev/zero", O_RDWR);
2851 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2852 if (x == (char *) -1)
2857 if (munmap(x, pg) < 0)
2863 if { (eval echo configure
:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2865 ac_cv_func_mmap_anywhere
=yes
2867 echo "configure: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2870 ac_cv_func_mmap_anywhere
=no
2877 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2878 if test $ac_cv_func_mmap_anywhere = yes; then
2879 cat >> confdefs.h
<<\EOF
2880 #define HAVE_MMAP_ANYWHERE 1
2885 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
2886 echo "configure:2887: checking for working mmap of a file" >&5
2887 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 # Create a file one thousand bytes long.
2891 for i
in 1 2 3 4 5 6 7 8 9 0
2892 do for j
in 1 2 3 4 5 6 7 8 9 0
2895 done > conftestdata$$
2897 if test "$cross_compiling" = yes; then
2898 ac_cv_func_mmap_file
=no
2900 cat > conftest.
$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2904 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
2905 Richard Henderson and Alexandre Oliva.
2906 Check whether read-only mmap of a plain file works. */
2907 #include <sys/types.h>
2908 #include <sys/stat.h>
2910 #include <sys/mman.h>
2918 fd = open("conftestdata$$", O_RDONLY);
2922 if (fstat (fd, &st))
2925 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
2926 if (x == (char *) -1)
2929 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
2932 if (munmap(x, st.st_size) < 0)
2938 if { (eval echo configure
:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2940 ac_cv_func_mmap_file
=yes
2942 echo "configure: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2945 ac_cv_func_mmap_file
=no
2952 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
2953 if test $ac_cv_func_mmap_file = yes; then
2954 cat >> confdefs.h
<<\EOF
2955 #define HAVE_MMAP_FILE 1
2961 for ac_func
in bcopy bzero bcmp \
2962 index rindex getenv atol sbrk abort atof getcwd getwd \
2963 strsignal putc_unlocked fputs_unlocked strstr environ
2965 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2966 echo "configure:2967: checking whether $ac_func must be declared" >&5
2967 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 cat > conftest.
$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2975 #ifdef STRING_WITH_STRINGS
2976 # include <string.h>
2977 # include <strings.h>
2979 # ifdef HAVE_STRING_H
2980 # include <string.h>
2982 # ifdef HAVE_STRINGS_H
2983 # include <strings.h>
2987 #ifdef HAVE_STDLIB_H
2990 #ifdef HAVE_UNISTD_H
2995 #define rindex strrchr
3000 #define index strchr
3005 char *(*pfn) = (char *(*)) $ac_func
3008 if { (eval echo configure
:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 eval "gcc_cv_decl_needed_$ac_func=no"
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3015 eval "gcc_cv_decl_needed_$ac_func=yes"
3020 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3021 echo "$ac_t""yes" 1>&6
3022 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3023 cat >> confdefs.h
<<EOF
3024 #define $gcc_tr_decl 1
3028 echo "$ac_t""no" 1>&6
3034 for ac_func
in malloc realloc calloc free
3036 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3037 echo "configure:3038: checking whether $ac_func must be declared" >&5
3038 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.
$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3046 #ifdef STRING_WITH_STRINGS
3047 # include <string.h>
3048 # include <strings.h>
3050 # ifdef HAVE_STRING_H
3051 # include <string.h>
3053 # ifdef HAVE_STRINGS_H
3054 # include <strings.h>
3058 #ifdef HAVE_STDLIB_H
3061 #ifdef HAVE_UNISTD_H
3066 #define rindex strrchr
3071 #define index strchr
3074 #ifdef HAVE_MALLOC_H
3079 char *(*pfn) = (char *(*)) $ac_func
3082 if { (eval echo configure
:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 eval "gcc_cv_decl_needed_$ac_func=no"
3086 echo "configure: failed program was:" >&5
3087 cat conftest.
$ac_ext >&5
3089 eval "gcc_cv_decl_needed_$ac_func=yes"
3094 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3097 cat >> confdefs.h
<<EOF
3098 #define $gcc_tr_decl 1
3102 echo "$ac_t""no" 1>&6
3108 for ac_func
in getrlimit setrlimit getrusage
3110 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether $ac_func must be declared" >&5
3112 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3120 #ifdef STRING_WITH_STRINGS
3121 # include <string.h>
3122 # include <strings.h>
3124 # ifdef HAVE_STRING_H
3125 # include <string.h>
3127 # ifdef HAVE_STRINGS_H
3128 # include <strings.h>
3132 #ifdef HAVE_STDLIB_H
3135 #ifdef HAVE_UNISTD_H
3140 #define rindex strrchr
3145 #define index strchr
3148 #include <sys/types.h>
3149 #ifdef HAVE_SYS_RESOURCE_H
3150 #include <sys/resource.h>
3154 char *(*pfn) = (char *(*)) $ac_func
3157 if { (eval echo configure
:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 eval "gcc_cv_decl_needed_$ac_func=no"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 eval "gcc_cv_decl_needed_$ac_func=yes"
3169 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3170 echo "$ac_t""yes" 1>&6
3171 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3172 cat >> confdefs.h
<<EOF
3173 #define $gcc_tr_decl 1
3177 echo "$ac_t""no" 1>&6
3183 # mkdir takes a single argument on some systems.
3184 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3185 echo "configure:3186: checking if mkdir takes one argument" >&5
3186 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3193 #include <sys/types.h>
3194 #ifdef HAVE_SYS_STAT_H
3195 # include <sys/stat.h>
3197 #ifdef HAVE_UNISTD_H
3198 # include <unistd.h>
3200 #ifdef HAVE_DIRECT_H
3201 # include <direct.h>
3207 if { (eval echo configure
:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3209 gcc_cv_mkdir_takes_one_arg
=no
3211 echo "configure: failed program was:" >&5
3212 cat conftest.
$ac_ext >&5
3214 gcc_cv_mkdir_takes_one_arg
=yes
3219 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3220 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3221 cat >> confdefs.h
<<\EOF
3222 #define MKDIR_TAKES_ONE_ARG 1
3236 build_install_headers_dir
=install-headers-tar
3241 host_truncate_target
=
3244 # Decode the host machine, then the target machine.
3245 # For the host machine, we save the xm_file variable as host_xm_file;
3246 # then we decode the target machine and forget everything else
3247 # that came from the host machine.
3248 for machine
in $build $host $target; do
3262 # Set this to force installation and use of collect2.
3264 # Set this to override the default target model.
3266 # Set this to control how the header file directory is installed.
3267 install_headers_dir
=install-headers-tar
3268 # Set this to a non-empty list of args to pass to cpp if the target
3269 # wants its .md file passed through cpp.
3271 # Set this if directory names should be truncated to 14 characters.
3273 # Set this if gdb needs a dir command with `dirname $out_file`
3274 gdb_needs_out_file_path
=
3275 # Set this if the build machine requires executables to have a
3278 # Set this to control which thread package will be used.
3280 # Reinitialize these from the flag values every loop pass, since some
3281 # configure entries modify them.
3283 gnu_ld
="$gnu_ld_flag"
3284 enable_threads
=$enable_threads_flag
3286 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3287 # updated in each machine entry.
3289 cpu_type
=`echo $machine | sed 's/-.*$//'`
3326 tm_file
=${cpu_type}/${cpu_type}.h
3327 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3328 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3330 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3332 # On a.out targets, we need to use collect2.
3339 # Common parts for linux-gnu and openbsd systems
3342 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3345 tm_file
=${cpu_type}/openbsd.h
3346 tmake_file
="t-libc-ok t-openbsd"
3347 # avoid surprises, always provide an xm-openbsd file
3348 xm_file
=${cpu_type}/xm-openbsd.h
3349 # don't depend on processor x-fragments as well
3351 if test x
$enable_threads = xyes
; then
3353 tmake_file
="${tmake_file} t-openbsd-thread"
3359 # Support site-specific machine types.
3361 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3362 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3363 xm_file
=${cpu_type}/xm-
$rest.h
3364 tm_file
=${cpu_type}/$rest.h
3365 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3366 then xmake_file
=${cpu_type}/x-
$rest; \
3369 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3370 then tmake_file
=${cpu_type}/t-
$rest; \
3376 a29k-
*-bsd* | a29k-
*-sym1*)
3377 tm_file
="${tm_file} a29k/unix.h"
3379 xmake_file
=a29k
/x-unix
3382 a29k-
*-udi | a29k-
*-coff)
3383 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3384 tmake_file
=a29k
/t-a29kbare
3387 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3388 tmake_file
=a29k
/t-vx29k
3389 extra_parts
="crtbegin.o crtend.o"
3390 thread_file
='vxworks'
3392 a29k-
*-*) # Default a29k environment.
3396 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3398 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3399 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3401 # GAS + IEEE_CONFORMANT
3402 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3404 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3405 xmake_file
="x-interix alpha/t-pe"
3406 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3407 if test x
$enable_threads = xyes
; then
3410 if test x
$stabs = xyes
; then
3411 tm_file
="${tm_file} dbxcoff.h"
3413 #prefix='$$INTERIX_ROOT'/usr/contrib
3414 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3416 alpha
*-*-linux-gnuecoff*)
3417 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3418 target_cpu_default
="MASK_GAS"
3419 tmake_file
="alpha/t-alpha alpha/t-ieee"
3424 alpha
*-*-linux-gnulibc1*)
3425 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3426 target_cpu_default
="MASK_GAS"
3427 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3428 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3431 if test x
$enable_threads = xyes
; then
3435 alpha
*-*-linux-gnu*)
3436 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3437 target_cpu_default
="MASK_GAS"
3438 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3439 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3442 if test x
$enable_threads = xyes
; then
3447 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3448 target_cpu_default
="MASK_GAS"
3449 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3450 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3456 # default x-alpha is only appropriate for dec-osf.
3457 target_cpu_default
="MASK_GAS"
3458 tmake_file
="alpha/t-alpha alpha/t-ieee"
3462 if test x
$stabs = xyes
3464 tm_file
="${tm_file} dbx.h"
3466 if test x
$gas != xyes
3468 extra_passes
="mips-tfile mips-tdump"
3471 tmake_file
="alpha/t-alpha alpha/t-ieee"
3474 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3477 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3480 tm_file
="${tm_file} alpha/osf.h"
3481 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3482 # a broken tar, so we use cpio instead.
3483 install_headers_dir
=install-headers-cpio
3486 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3490 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3491 target_cpu_default
=MASK_SUPPORT_ARCH
3496 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3497 tmake_file
="alpha/t-alpha alpha/t-ieee"
3500 extra_passes
="mips-tfile mips-tdump"
3503 thread_file
='vxworks'
3506 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3507 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3508 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3509 xmake_file
=winnt
/x-winnt
3510 extra_host_objs
=oldnames.o
3511 extra_gcc_objs
="spawnv.o oldnames.o"
3512 if test x
$gnu_ld != xyes
3514 extra_programs
=ld.exe
3516 if test x
$enable_threads = xyes
; then
3522 xm_file
="${xm_file} alpha/xm-vms.h"
3523 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3526 extra_parts
="crtinit.o crtfini.o"
3528 arm-
*-coff* | armel-
*-coff*)
3530 tmake_file
=arm
/t-arm-coff
3534 tmake_file
=arm
/t-arm-coff
3535 thread_file
='vxworks'
3537 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3538 tm_file
=arm
/riscix1-1.h
3541 arm-
*-riscix*) # Acorn RISC machine
3542 if test x
$gas = xyes
3544 tm_file
=arm
/rix-gas.h
3546 tm_file
=arm
/riscix.h
3548 xmake_file
=arm
/x-riscix
3549 tmake_file
=arm
/t-riscix
3552 arm-semi-aout | armel-semi-aout
)
3554 tmake_file
=arm
/t-semi
3556 arm-semi-aof | armel-semi-aof
)
3557 tm_file
=arm
/semiaof.h
3558 tmake_file
=arm
/t-semiaof
3561 tm_file
=arm
/netbsd.h
3562 tmake_file
="t-netbsd arm/t-netbsd"
3565 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3568 tm_file
=arm
/linux-aout.h
3569 tmake_file
=arm
/t-linux
3572 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3573 xm_file
=arm
/xm-linux.h
3575 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3578 tm_file
="arm/linux-elf26.h $tm_file"
3581 tmake_file
="t-linux arm/t-linux"
3582 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3584 case x
${enable_threads} in
3585 x | xyes | xpthreads | xposix
)
3590 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3591 xm_file
=arm
/xm-linux.h
3593 tm_file
="arm/linux-elf.h"
3596 tm_file
="arm/linux-elf26.h $tm_file"
3599 tmake_file
="t-linux arm/t-linux"
3600 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3602 case x
${enable_threads} in
3603 x | xyes | xpthreads | xposix
)
3608 arm
*-*-uclinux*) # ARM ucLinux
3609 tm_file
=arm
/uclinux-elf.h
3610 tmake_file
=arm
/t-arm-elf
3614 tmake_file
=arm
/t-arm-aout
3617 tm_file
=arm
/ecos-elf.h
3618 tmake_file
=arm
/t-arm-elf
3621 tm_file
=arm
/unknown-elf.h
3622 tmake_file
=arm
/t-arm-elf
3625 tm_file
=arm
/conix-elf.h
3626 tmake_file
=arm
/t-arm-elf
3629 tm_file
=arm
/unknown-elf-oabi.h
3630 tmake_file
=arm
/t-arm-elf
3639 c1-convex-
*) # Convex C1
3640 target_cpu_default
=1
3643 c2-convex-
*) # Convex C2
3644 target_cpu_default
=2
3648 target_cpu_default
=4
3652 target_cpu_default
=8
3656 target_cpu_default
=16
3661 tmake_file
=c4x
/t-c4x
3663 clipper-intergraph-clix
*)
3664 tm_file
="${tm_file} svr3.h clipper/clix.h"
3665 xm_file
=clipper
/xm-clix.h
3666 xmake_file
=clipper
/x-clix
3667 extra_headers
=va-clipper.h
3668 extra_parts
="crtbegin.o crtend.o"
3669 install_headers_dir
=install-headers-cpio
3677 tm_file
="fr30/fr30.h"
3678 tmake_file
=fr30
/t-fr30
3679 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3681 # This hasn't been upgraded to GCC 2.
3682 # fx80-alliant-*) # Alliant FX/80
3688 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3689 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3690 tmake_file
="t-linux pa/t-linux"
3691 extra_parts
="crtbegin.o crtend.o"
3694 if test x
$enable_threads = xyes
; then
3699 target_cpu_default
="MASK_PA_11"
3700 tmake_file
=pa
/t-openbsd
3703 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3704 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3705 xm_file
=pa
/xm-papro.h
3709 target_cpu_default
="MASK_PA_11"
3710 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3714 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3715 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3716 xm_file
=pa
/xm-papro.h
3720 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3724 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3725 target_cpu_default
="MASK_PA_11"
3729 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3733 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3734 xm_file
=pa
/xm-pahpux.h
3735 xmake_file
=pa
/x-pa-hpux
3736 if test x
$gas = xyes
3738 tm_file
="${tm_file} pa/gas.h"
3740 install_headers_dir
=install-headers-cpio
3743 hppa1.0
-*-hpux8.0
[0-2]*)
3744 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3745 xm_file
=pa
/xm-pahpux.h
3746 xmake_file
=pa
/x-pa-hpux
3747 if test x
$gas = xyes
3749 tm_file
="${tm_file} pa/pa-gas.h"
3751 tm_file
="pa/pa-oldas.h ${tm_file}"
3753 install_headers_dir
=install-headers-cpio
3756 hppa1.1
-*-hpux8.0
[0-2]*)
3757 target_cpu_default
="MASK_PA_11"
3758 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3759 xm_file
=pa
/xm-pahpux.h
3760 xmake_file
=pa
/x-pa-hpux
3761 if test x
$gas = xyes
3763 tm_file
="${tm_file} pa/pa-gas.h"
3765 tm_file
="pa/pa-oldas.h ${tm_file}"
3767 install_headers_dir
=install-headers-cpio
3771 target_cpu_default
="MASK_PA_11"
3772 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3773 xm_file
=pa
/xm-pahpux.h
3774 xmake_file
=pa
/x-pa-hpux
3775 if test x
$gas = xyes
3777 tm_file
="${tm_file} pa/pa-gas.h"
3779 install_headers_dir
=install-headers-cpio
3783 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3784 xm_file
=pa
/xm-pahpux.h
3785 xmake_file
=pa
/x-pa-hpux
3786 if test x
$gas = xyes
3788 tm_file
="${tm_file} pa/pa-gas.h"
3790 install_headers_dir
=install-headers-cpio
3793 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3794 target_cpu_default
="MASK_PA_11"
3795 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3797 xm_file
=pa
/xm-pahpux.h
3798 xmake_file
=pa
/x-pa-hpux
3800 if test x
$gas = xyes
3802 tm_file
="${tm_file} pa/pa-gas.h"
3804 if test x
$enable_threads = x
; then
3805 enable_threads
=$have_pthread_h
3807 if test x
$enable_threads = xyes
; then
3809 tmake_file
="${tmake_file} pa/t-dce-thr"
3811 install_headers_dir
=install-headers-cpio
3815 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3817 xm_file
=pa
/xm-pahpux.h
3818 xmake_file
=pa
/x-pa-hpux
3820 if test x
$gas = xyes
3822 tm_file
="${tm_file} pa/pa-gas.h"
3824 if test x
$enable_threads = x
; then
3825 enable_threads
=$have_pthread_h
3827 if test x
$enable_threads = xyes
; then
3829 tmake_file
="${tmake_file} pa/t-dce-thr"
3831 install_headers_dir
=install-headers-cpio
3834 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3835 target_cpu_default
="MASK_PA_11"
3836 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3838 xm_file
=pa
/xm-pahpux.h
3839 xmake_file
=pa
/x-pa-hpux
3841 if test x
$gas = xyes
3843 tm_file
="${tm_file} pa/pa-gas.h"
3845 # if test x$enable_threads = x; then
3846 # enable_threads=$have_pthread_h
3848 # if test x$enable_threads = xyes; then
3850 # tmake_file="${tmake_file} pa/t-dce-thr"
3852 install_headers_dir
=install-headers-cpio
3856 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3858 xm_file
=pa
/xm-pahpux.h
3859 xmake_file
=pa
/x-pa-hpux
3860 if test x
$gas = xyes
3862 tm_file
="${tm_file} pa/pa-gas.h"
3864 # if test x$enable_threads = x; then
3865 # enable_threads=$have_pthread_h
3867 # if test x$enable_threads = xyes; then
3869 # tmake_file="${tmake_file} pa/t-dce-thr"
3871 install_headers_dir
=install-headers-cpio
3874 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3875 target_cpu_default
="MASK_PA_11"
3876 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3877 xm_file
=pa
/xm-pahpux.h
3878 xmake_file
=pa
/x-pa-hpux
3879 if test x
$gas = xyes
3881 tm_file
="${tm_file} pa/pa-gas.h"
3883 install_headers_dir
=install-headers-cpio
3887 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3888 xm_file
=pa
/xm-pahpux.h
3889 xmake_file
=pa
/x-pa-hpux
3890 if test x
$gas = xyes
3892 tm_file
="${tm_file} pa/pa-gas.h"
3894 install_headers_dir
=install-headers-cpio
3897 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3898 target_cpu_default
="MASK_PA_11"
3899 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3900 xm_file
=pa
/xm-pahpux.h
3901 xmake_file
=pa
/x-pa-hpux
3902 if test x
$gas = xyes
3904 tm_file
="${tm_file} pa/pa-gas.h"
3906 install_headers_dir
=install-headers-cpio
3910 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3911 xm_file
=pa
/xm-pahpux.h
3912 xmake_file
=pa
/x-pa-hpux
3913 if test x
$gas = xyes
3915 tm_file
="${tm_file} pa/pa-gas.h"
3917 install_headers_dir
=install-headers-cpio
3921 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
3922 target_cpu_default
="MASK_PA_11"
3926 tm_file
="${tm_file} pa/pa-mpeix.h"
3927 xm_file
=pa
/xm-pampeix.h
3928 xmake_file
=pa
/x-pa-mpeix
3929 echo "You must use gas. Assuming it is already installed."
3930 install_headers_dir
=install-headers-tar
3933 i370-
*-opened*) # IBM 360/370/390 Architecture
3934 xm_file
=i370
/xm-oe.h
3936 xmake_file
=i370
/x-oe
3937 tmake_file
=i370
/t-oe
3940 xm_file
=i370
/xm-mvs.h
3942 tmake_file
=i370
/t-mvs
3945 xm_file
="xm-linux.h i370/xm-linux.h"
3947 tm_file
="i370/linux.h ${tm_file}"
3948 tmake_file
="t-linux i370/t-linux"
3949 # broken_install=yes
3950 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3951 # extra_parts="crtbegin.o crtend.o"
3955 if test x
$enable_threads = xyes
; then
3960 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3961 tm_file
=i386
/i386elf.h
3962 tmake_file
=i386
/t-i386elf
3965 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3966 if test x
$gas = xyes
3968 tm_file
=i386
/aix386.h
3969 extra_parts
="crtbegin.o crtend.o"
3970 tmake_file
=i386
/t-crtstuff
3972 tm_file
=i386
/aix386ng.h
3975 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3977 xmake_file
=i386
/x-aix
3979 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3980 xm_file
="xm-alloca.h ${xm_file}"
3981 xm_defines
="USG POSIX SMALL_ARG_MAX"
3982 xmake_file
=i386
/x-ncr3000
3983 if test x
$stabs = xyes
-a x
$gas = xyes
3985 tm_file
=i386
/sysv4gdb.h
3987 tm_file
=i386
/sysv4.h
3989 extra_parts
="crtbegin.o crtend.o"
3990 tmake_file
=i386
/t-crtpic
3994 xm_file
=i386
/xm-next.h
3995 tmake_file
=i386
/t-next
3996 xmake_file
=i386
/x-next
3997 extra_objs
=nextstep.o
3998 extra_parts
="crtbegin.o crtend.o"
3999 if test x
$enable_threads = xyes
; then
4003 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4005 if test x
$gas = xyes
4007 tm_file
=i386
/seq-gas.h
4009 tm_file
=i386
/sequent.h
4012 i
[34567]86-sequent-ptx1*)
4013 xm_defines
="USG SVR3"
4014 xmake_file
=i386
/x-sysv3
4015 tm_file
=i386
/seq-sysv3.h
4016 tmake_file
=i386
/t-crtstuff
4017 extra_parts
="crtbegin.o crtend.o"
4018 install_headers_dir
=install-headers-cpio
4020 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4021 xm_defines
="USG SVR3"
4022 xmake_file
=i386
/x-sysv3
4023 tm_file
=i386
/seq2-sysv3.h
4024 tmake_file
=i386
/t-crtstuff
4025 extra_parts
="crtbegin.o crtend.o"
4026 install_headers_dir
=install-headers-cpio
4028 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4029 xm_file
="xm-alloca.h ${xm_file}"
4030 xm_defines
="USG POSIX SMALL_ARG_MAX"
4032 tm_file
=i386
/ptx4-i.h
4034 extra_parts
="crtbegin.o crtend.o"
4035 install_headers_dir
=install-headers-cpio
4037 i386-sun-sunos
*) # Sun i386 roadrunner
4042 i
[34567]86-wrs-vxworks*)
4043 tm_file
=i386
/vxi386.h
4044 tmake_file
=i386
/t-i386bare
4045 thread_file
='vxworks'
4048 tm_file
=i386
/i386-aout.h
4049 tmake_file
=i386
/t-i386bare
4051 i
[34567]86-*-beospe*)
4052 xm_file
=i386
/xm-beos.h
4053 xm_defines
="USE_C_ALLOCA"
4054 tmake_file
=i386
/t-beos
4055 tm_file
=i386
/beos-pe.h
4056 xmake_file
=i386
/x-beos
4059 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4060 xm_file
=i386
/xm-beos.h
4061 tmake_file
='i386/t-beos i386/t-crtpic'
4062 tm_file
=i386
/beos-elf.h
4063 xmake_file
=i386
/x-beos
4065 extra_parts
='crtbegin.o crtend.o'
4067 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4068 tm_file
=i386
/bsd386.h
4069 # tmake_file=t-libc-ok
4072 tm_file
=i386
/386bsd.h
4073 # tmake_file=t-libc-ok
4074 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4077 i
[34567]86-*-freebsdelf*)
4078 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4079 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4080 tmake_file
=t-freebsd
4084 case x
${enable_threads} in
4085 xyes | xpthreads | xposix
)
4087 tmake_file
="${tmake_file} t-freebsd-thread"
4091 i
[34567]86-*-freebsd*)
4092 tm_file
="i386/freebsd.h i386/perform.h"
4093 tmake_file
=t-freebsd
4095 i
[34567]86-*-netbsd*)
4096 tm_file
=i386
/netbsd.h
4100 i
[34567]86-*-openbsd*)
4101 # we need collect2 until our bug is fixed...
4105 tm_file
=i386
/i386-coff.h
4106 tmake_file
=i386
/t-i386bare
4108 i
[34567]86-*-isc*) # 80386 running ISC system
4109 xm_file
="${xm_file} i386/xm-isc.h"
4110 xm_defines
="USG SVR3"
4112 i
[34567]86-*-isc[34]*)
4113 xmake_file
=i386
/x-isc3
4116 xmake_file
=i386
/x-isc
4119 if test x
$gas = xyes
-a x
$stabs = xyes
4121 tm_file
=i386
/iscdbx.h
4122 tmake_file
=i386
/t-svr3dbx
4123 extra_parts
="svr3.ifile svr3z.ifile"
4125 tm_file
=i386
/isccoff.h
4126 tmake_file
=i386
/t-crtstuff
4127 extra_parts
="crtbegin.o crtend.o"
4129 install_headers_dir
=install-headers-cpio
4131 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4133 xmake_file
=x-linux-aout
4134 tmake_file
="t-linux-aout i386/t-crtstuff"
4135 tm_file
=i386
/linux-oldld.h
4139 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4140 xmake_file
=x-linux-aout
4141 tmake_file
="t-linux-aout i386/t-crtstuff"
4142 tm_file
=i386
/linux-aout.h
4146 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4147 # GNU/Linux C library 5
4149 tm_file
=i386
/linux.h
4150 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4151 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4154 if test x
$enable_threads = xyes
; then
4155 thread_file
='single'
4158 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4159 # aka GNU/Linux C library 6
4161 tm_file
=i386
/linux.h
4162 tmake_file
="t-linux i386/t-crtstuff"
4163 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4166 if test x
$enable_threads = xyes
; then
4173 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4174 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4177 i
[34567]86-pc-msdosdjgpp*)
4178 xm_file
=i386
/xm-djgpp.h
4179 tm_file
=i386
/djgpp.h
4180 tmake_file
=i386
/t-djgpp
4181 xmake_file
=i386
/x-djgpp
4185 case $host in *pc-msdosdjgpp
*)
4190 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4192 tmake_file
=t-libc-ok
4196 i
[34567]86-*-lynxos*)
4197 if test x
$gas = xyes
4201 tm_file
=i386
/lynx-ng.h
4203 xm_file
=i386
/xm-lynx.h
4204 tmake_file
=i386
/t-i386bare
4209 # tmake_file=t-libc-ok
4212 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4213 if test x
$elf = xyes
4215 tm_file
=i386
/osfelf.h
4218 tm_file
=i386
/osfrose.h
4221 xm_file
="i386/xm-osf.h ${xm_file}"
4222 xmake_file
=i386
/x-osfrose
4223 tmake_file
=i386
/t-osf
4224 extra_objs
=halfpic.o
4226 i
[34567]86-go32-rtems*)
4228 xm_file
=i386
/xm-go32.h
4229 tm_file
=i386
/go32-rtems.h
4230 tmake_file
="i386/t-go32 t-rtems"
4232 i
[34567]86-*-rtemscoff*)
4234 tm_file
=i386
/rtems.h
4235 tmake_file
="i386/t-i386bare t-rtems"
4237 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4239 tm_file
=i386
/rtemself.h
4240 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4241 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4243 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4244 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4245 xm_defines
="USG SVR3"
4246 xmake_file
=i386
/x-sco5
4247 install_headers_dir
=install-headers-cpio
4249 if test x
$gas = xyes
4251 tm_file
="i386/sco5gas.h ${tm_file}"
4252 tmake_file
=i386
/t-sco5gas
4254 tmake_file
=i386
/t-sco5
4256 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4258 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4259 xm_file
="${xm_file} i386/xm-sco.h"
4260 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4261 xmake_file
=i386
/x-sco4
4262 install_headers_dir
=install-headers-cpio
4263 if test x
$stabs = xyes
4265 tm_file
=i386
/sco4dbx.h
4266 tmake_file
=i386
/t-svr3dbx
4267 extra_parts
="svr3.ifile svr3z.rfile"
4270 tmake_file
=i386
/t-crtstuff
4271 extra_parts
="crtbegin.o crtend.o"
4273 # The default EAFS filesystem supports long file names.
4274 # Truncating the target makes $host != $target which
4275 # makes gcc think it is doing a cross-compile.
4276 # truncate_target=yes
4278 i
[34567]86-*-sco*) # 80386 running SCO system
4279 xm_file
=i386
/xm-sco.h
4280 xmake_file
=i386
/x-sco
4281 install_headers_dir
=install-headers-cpio
4282 if test x
$stabs = xyes
4284 tm_file
=i386
/scodbx.h
4285 tmake_file
=i386
/t-svr3dbx
4286 extra_parts
="svr3.ifile svr3z.rfile"
4289 extra_parts
="crtbegin.o crtend.o"
4290 tmake_file
=i386
/t-crtstuff
4294 i
[34567]86-*-solaris2*)
4295 xm_file
="xm-alloca.h ${xm_file}"
4296 xm_defines
="USG POSIX SMALL_ARG_MAX"
4298 if test x
$gas = xyes
; then
4299 # Only needed if gas does not support -s
4300 tm_file
="i386/sol2gas.h ${tm_file}"
4302 tmake_file
=i386
/t-sol2
4303 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4305 if test x
${enable_threads} = x
; then
4306 enable_threads
=$have_pthread_h
4307 if test x
${enable_threads} = x
; then
4308 enable_threads
=$have_thread_h
4311 if test x
${enable_threads} = xyes
; then
4312 if test x
${have_pthread_h} = xyes
; then
4315 thread_file
='solaris'
4319 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4320 xm_file
="xm-alloca.h ${xm_file}"
4321 xm_defines
="USG POSIX"
4322 tm_file
=i386
/sysv5.h
4323 if test x
$stabs = xyes
4325 tm_file
="${tm_file} dbx.h"
4327 tmake_file
=i386
/t-crtpic
4329 extra_parts
="crtbegin.o crtend.o"
4330 if test x
$enable_threads = xyes
; then
4334 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4335 xm_file
="xm-alloca.h ${xm_file}"
4336 xm_defines
="USG POSIX SMALL_ARG_MAX"
4337 tm_file
=i386
/sysv4.h
4338 if test x
$stabs = xyes
4340 tm_file
="${tm_file} dbx.h"
4342 tmake_file
=i386
/t-crtpic
4344 extra_parts
="crtbegin.o crtend.o"
4346 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4347 xm_file
="xm-alloca.h ${xm_file}"
4348 xm_defines
="USG POSIX"
4350 tmake_file
="i386/t-crtpic i386/t-udk"
4352 extra_parts
="crtbegin.o crtend.o"
4353 install_headers_dir
=install-headers-cpio
4355 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4357 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4358 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4359 if test x
$stabs = xyes
4361 tm_file
=i386
/osf1elfgdb.h
4363 tm_file
=i386
/osf1elf.h
4365 tmake_file
=i386
/t-osf1elf
4366 xmake_file
=i386
/x-osf1elf
4367 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4369 i
[34567]86-*-sysv*) # Intel 80386's running system V
4370 xm_defines
="USG SVR3"
4371 xmake_file
=i386
/x-sysv3
4372 if test x
$gas = xyes
4374 if test x
$stabs = xyes
4376 tm_file
=i386
/svr3dbx.h
4377 tmake_file
=i386
/t-svr3dbx
4378 extra_parts
="svr3.ifile svr3z.rfile"
4380 tm_file
=i386
/svr3gas.h
4381 extra_parts
="crtbegin.o crtend.o"
4382 tmake_file
=i386
/t-crtstuff
4385 tm_file
=i386
/sysv3.h
4386 extra_parts
="crtbegin.o crtend.o"
4387 tmake_file
=i386
/t-crtstuff
4390 i386-
*-vsta) # Intel 80386's running VSTa kernel
4391 xm_file
="${xm_file} i386/xm-vsta.h"
4393 tmake_file
=i386
/t-vsta
4394 xmake_file
=i386
/x-vsta
4397 xm_file
="${xm_file} i386/xm-cygwin.h"
4398 tmake_file
=i386
/t-cygwin
4399 tm_file
=i386
/win32.h
4400 xmake_file
=i386
/x-cygwin
4402 if test x
$enable_threads = xyes
; then
4407 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4408 xm_file
="${xm_file} i386/xm-cygwin.h"
4409 tmake_file
=i386
/t-cygwin
4410 tm_file
=i386
/cygwin.h
4411 xmake_file
=i386
/x-cygwin
4413 if test x
$enable_threads = xyes
; then
4418 i
[34567]86-*-mingw32*)
4419 tm_file
=i386
/mingw32.h
4420 xm_file
="${xm_file} i386/xm-mingw32.h"
4421 tmake_file
="i386/t-cygwin i386/t-mingw32"
4423 xmake_file
=i386
/x-cygwin
4424 if test x
$enable_threads = xyes
; then
4431 *minwg32crt
* |
*mingw32
*)
4432 tm_file
="${tm_file} i386/crtdll.h"
4438 xm_file
="${xm_file} i386/xm-uwin.h"
4439 xm_defines
="USG NO_STAB_H"
4440 tmake_file
="i386/t-cygwin i386/t-uwin"
4442 xmake_file
=i386
/x-cygwin
4443 if test x
$enable_threads = xyes
; then
4448 i
[34567]86-*-interix*)
4449 tm_file
="i386/i386-interix.h interix.h"
4450 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4452 tmake_file
="i386/t-interix"
4453 extra_objs
=interix.o
4454 xmake_file
=x-interix
4455 if test x
$enable_threads = xyes
; then
4458 if test x
$stabs = xyes
; then
4459 tm_file
="${tm_file} dbxcoff.h"
4462 i
[34567]86-*-winnt3*)
4463 tm_file
=i386
/win-nt.h
4464 out_file
=i386
/i386.c
4465 xm_file
="xm-winnt.h ${xm_file}"
4466 xmake_file
=winnt
/x-winnt
4467 tmake_file
=i386
/t-winnt
4468 extra_host_objs
="winnt.o oldnames.o"
4469 extra_gcc_objs
="spawnv.o oldnames.o"
4470 if test x
$gnu_ld != xyes
4472 extra_programs
=ld.exe
4474 if test x
$enable_threads = xyes
; then
4478 i
[34567]86-dg-dgux*)
4479 xm_file
="xm-alloca.h ${xm_file}"
4480 xm_defines
="USG POSIX"
4481 out_file
=i386
/dgux.c
4483 tmake_file
=i386
/t-dgux
4484 xmake_file
=i386
/x-dgux
4485 install_headers_dir
=install-headers-cpio
4487 i860-alliant-
*) # Alliant FX/2800
4488 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4489 xm_file
="${xm_file}"
4490 xmake_file
=i860
/x-fx2800
4491 tmake_file
=i860
/t-fx2800
4492 extra_parts
="crtbegin.o crtend.o"
4495 tm_file
="${tm_file} i860/bsd.h"
4496 if test x
$gas = xyes
4498 tm_file
="${tm_file} i860/bsd-gas.h"
4503 tm_file
="${tm_file} i860/mach.h"
4504 tmake_file
=t-libc-ok
4506 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4507 tm_file
="${tm_file} svr3.h i860/paragon.h"
4508 xm_defines
="USG SVR3"
4512 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4513 xm_defines
="USG SVR3"
4514 xmake_file
=i860
/x-sysv3
4515 extra_parts
="crtbegin.o crtend.o"
4518 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4519 xm_defines
="USG SVR3"
4520 xmake_file
=i860
/x-sysv4
4522 extra_parts
="crtbegin.o crtend.o"
4524 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4525 tm_file
="${tm_file} i960/vx960.h"
4526 tmake_file
=i960
/t-vxworks960
4528 thread_file
='vxworks'
4530 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4531 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4532 tmake_file
=i960
/t-vxworks960
4534 thread_file
='vxworks'
4537 tm_file
="${tm_file} i960/vx960.h"
4538 tmake_file
=i960
/t-vxworks960
4540 thread_file
='vxworks'
4543 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4544 tmake_file
=i960
/t-960bare
4548 tmake_file
="i960/t-960bare t-rtems"
4549 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4552 i960-
*-*) # Default i960 environment.
4557 tmake_file
="ia64/t-ia64"
4558 target_cpu_default
="0"
4559 if test x
$gas = xyes
4561 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4563 if test x
$gnu_ld = xyes
4565 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4569 tm_file
=ia64
/linux.h
4570 tmake_file
="t-linux ia64/t-ia64"
4571 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4572 if test x
$enable_threads = xyes
; then
4577 extra_parts
="crtinit.o crtfini.o"
4579 m68000-convergent-sysv
*)
4581 xm_file
="m68k/xm-3b1.h ${xm_file}"
4584 extra_headers
=math-68881.h
4586 m68000-hp-bsd
*) # HP 9000/200 running BSD
4587 tm_file
=m68k
/hp2bsd.h
4588 xmake_file
=m68k
/x-hp2bsd
4590 extra_headers
=math-68881.h
4592 m68000-hp-hpux
*) # HP 9000 series 300
4593 xm_file
="xm-alloca.h ${xm_file}"
4595 if test x
$gas = xyes
4597 xmake_file
=m68k
/x-hp320g
4598 tm_file
=m68k
/hp310g.h
4600 xmake_file
=m68k
/x-hp320
4601 tm_file
=m68k
/hp310.h
4603 install_headers_dir
=install-headers-cpio
4605 extra_headers
=math-68881.h
4610 extra_headers
=math-68881.h
4613 tm_file
=m68k
/sun2o4.h
4615 extra_headers
=math-68881.h
4618 xm_file
="m68k/xm-3b1.h ${xm_file}"
4620 if test x
$gas = xyes
4627 extra_headers
=math-68881.h
4629 m68k-apple-aux
*) # Apple Macintosh running A/UX
4630 xm_defines
="USG AUX"
4631 tmake_file
=m68k
/t-aux
4632 install_headers_dir
=install-headers-cpio
4633 extra_headers
=math-68881.h
4634 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4636 if test "$gnu_ld" = yes
4638 tm_file
="${tm_file} m68k/auxgld.h"
4640 tm_file
="${tm_file} m68k/auxld.h"
4642 if test "$gas" = yes
4644 tm_file
="${tm_file} m68k/auxgas.h"
4646 tm_file
="${tm_file} m68k/auxas.h"
4648 tm_file
="${tm_file} m68k/a-ux.h"
4652 tm_file
=m68k
/apollo68.h
4653 xmake_file
=m68k
/x-apollo68
4655 extra_headers
=math-68881.h
4658 m68k-altos-sysv
*) # Altos 3068
4659 if test x
$gas = xyes
4661 tm_file
=m68k
/altos3068.h
4664 echo "The Altos is supported only with the GNU assembler" 1>&2
4667 extra_headers
=math-68881.h
4669 m68k-bull-sysv
*) # Bull DPX/2
4670 if test x
$gas = xyes
4672 if test x
$stabs = xyes
4674 tm_file
=m68k
/dpx2cdbx.h
4676 tm_file
=m68k
/dpx2g.h
4681 xm_file
="xm-alloca.h ${xm_file}"
4683 xmake_file
=m68k
/x-dpx2
4685 extra_headers
=math-68881.h
4687 m68k-atari-sysv4
*) # Atari variant of V.4.
4688 tm_file
=m68k
/atari.h
4689 xm_file
="xm-alloca.h ${xm_file}"
4690 xm_defines
="USG FULL_PROTOTYPES"
4692 extra_parts
="crtbegin.o crtend.o"
4693 extra_headers
=math-68881.h
4696 m68k-motorola-sysv
*)
4697 tm_file
=m68k
/mot3300.h
4698 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4699 if test x
$gas = xyes
4701 xmake_file
=m68k
/x-mot3300-gas
4702 if test x
$gnu_ld = xyes
4704 tmake_file
=m68k
/t-mot3300-gald
4706 tmake_file
=m68k
/t-mot3300-gas
4710 xmake_file
=m68k
/x-mot3300
4711 if test x
$gnu_ld = xyes
4713 tmake_file
=m68k
/t-mot3300-gld
4715 tmake_file
=m68k
/t-mot3300
4719 gdb_needs_out_file_path
=yes
4720 extra_parts
="crt0.o mcrt0.o"
4721 extra_headers
=math-68881.h
4724 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4725 tm_file
=m68k
/tower-as.h
4726 xm_defines
="USG SVR3"
4727 xmake_file
=m68k
/x-tower
4728 extra_parts
="crtbegin.o crtend.o"
4729 extra_headers
=math-68881.h
4732 tm_file
=m68k
/plexus.h
4733 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4736 extra_headers
=math-68881.h
4740 xm_file
="xm-alloca.h ${xm_file}"
4742 extra_headers
=math-68881.h
4745 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4746 xm_defines
="USG unos"
4747 xmake_file
=m68k
/x-crds
4750 extra_headers
=math-68881.h
4752 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4754 xm_file
="xm-alloca.h ${xm_file}"
4755 xm_defines
="USG FULL_PROTOTYPES"
4756 xmake_file
=m68k
/x-amix
4758 extra_parts
="crtbegin.o crtend.o"
4759 extra_headers
=math-68881.h
4763 tm_file
=m68k
/ccur-GAS.h
4764 xmake_file
=m68k
/x-ccur
4765 extra_headers
=math-68881.h
4769 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4770 tm_file
=m68k
/hp3bsd44.h
4771 xmake_file
=m68k
/x-hp3bsd44
4773 extra_headers
=math-68881.h
4776 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4777 tm_file
=m68k
/hp3bsd.h
4779 extra_headers
=math-68881.h
4783 if test x
$with_fp = xno
4785 tm_file
=m68k
/isi-nfp.h
4791 extra_headers
=math-68881.h
4793 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4794 xm_file
="xm-alloca.h ${xm_file}"
4796 if test x
$gas = xyes
4798 xmake_file
=m68k
/x-hp320g
4799 tm_file
=m68k
/hp320g.h
4801 xmake_file
=m68k
/x-hp320
4802 tm_file
=m68k
/hpux7.h
4804 install_headers_dir
=install-headers-cpio
4806 extra_headers
=math-68881.h
4809 m68k-hp-hpux
*) # HP 9000 series 300
4810 xm_file
="xm-alloca.h ${xm_file}"
4812 if test x
$gas = xyes
4814 xmake_file
=m68k
/x-hp320g
4815 tm_file
=m68k
/hp320g.h
4817 xmake_file
=m68k
/x-hp320
4818 tm_file
=m68k
/hp320.h
4820 install_headers_dir
=install-headers-cpio
4822 extra_headers
=math-68881.h
4826 tm_file
=m68k
/sun3mach.h
4828 extra_headers
=math-68881.h
4832 if test x
$gas = xyes
4834 tm_file
=m68k
/news3gas.h
4836 tm_file
=m68k
/news3.h
4839 extra_headers
=math-68881.h
4842 m68k-sony-bsd
* | m68k-sony-newsos
*)
4843 if test x
$gas = xyes
4845 tm_file
=m68k
/newsgas.h
4850 extra_headers
=math-68881.h
4853 m68k-next-nextstep2
*)
4854 tm_file
=m68k
/next21.h
4855 xm_file
="m68k/xm-next.h ${xm_file}"
4856 tmake_file
=m68k
/t-next
4857 xmake_file
=m68k
/x-next
4858 extra_objs
=nextstep.o
4859 extra_headers
=math-68881.h
4863 m68k-next-nextstep
[34]*)
4865 xm_file
="m68k/xm-next.h ${xm_file}"
4866 tmake_file
=m68k
/t-next
4867 xmake_file
=m68k
/x-next
4868 extra_objs
=nextstep.o
4869 extra_parts
="crtbegin.o crtend.o"
4870 extra_headers
=math-68881.h
4872 if test x
$enable_threads = xyes
; then
4877 if test x
$with_fp = xno
4879 tm_file
=m68k
/sun3n3.h
4881 tm_file
=m68k
/sun3o3.h
4885 extra_headers
=math-68881.h
4887 m68k-sun-sunos
*) # For SunOS 4 (the default).
4888 if test x
$with_fp = xno
4890 tm_file
=m68k
/sun3n.h
4896 extra_headers
=math-68881.h
4899 tm_file
=m68k
/vxm68k.h
4900 tmake_file
=m68k
/t-vxworks68
4901 extra_headers
=math-68881.h
4902 thread_file
='vxworks'
4906 tmake_file
=m68k
/t-m68kbare
4907 tm_file
="m68k/m68k-aout.h libgloss.h"
4908 extra_headers
=math-68881.h
4912 tmake_file
=m68k
/t-m68kbare
4913 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4914 extra_headers
=math-68881.h
4917 m68020-
*-elf* | m68k-
*-elf*)
4918 tm_file
="m68k/m68020-elf.h"
4919 xm_file
=m68k
/xm-m68kv.h
4920 tmake_file
=m68k
/t-m68kelf
4921 header_files
=math-68881.h
4924 if test x
$gas = xyes
4928 tm_file
=m68k
/lynx-ng.h
4930 xm_file
=m68k
/xm-lynx.h
4932 tmake_file
=m68k
/t-lynx
4933 extra_headers
=math-68881.h
4937 tm_file
=m68k
/netbsd.h
4944 # we need collect2 until our bug is fixed...
4947 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4948 xm_file
="xm-alloca.h ${xm_file}"
4950 xmake_file
=m68k
/x-m68kv
4951 extra_parts
="crtbegin.o crtend.o"
4952 extra_headers
=math-68881.h
4955 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4956 tm_file
=m68k
/m68kv4.h
4957 xm_file
="xm-alloca.h ${xm_file}"
4960 extra_parts
="crtbegin.o crtend.o"
4961 extra_headers
=math-68881.h
4964 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4967 tm_file
=m68k
/linux-aout.h
4968 tmake_file
="t-linux-aout m68k/t-linux-aout"
4969 extra_headers
=math-68881.h
4973 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4974 # with ELF format using the
4975 # GNU/Linux C library 5
4977 tm_file
=m68k
/linux.h
4978 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4979 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4980 extra_headers
=math-68881.h
4984 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4985 # with ELF format using glibc 2
4986 # aka the GNU/Linux C library 6.
4988 tm_file
=m68k
/linux.h
4989 tmake_file
="t-linux m68k/t-linux"
4990 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4991 extra_headers
=math-68881.h
4994 if test x
$enable_threads = xyes
; then
4999 tmake_file
=m68k
/t-m68kbare
5000 tm_file
=m68k
/m68k-psos.h
5001 extra_headers
=math-68881.h
5005 tmake_file
="m68k/t-m68kbare t-rtems"
5006 tm_file
=m68k
/rtems.h
5007 extra_headers
=math-68881.h
5010 m68k-
*-rtemself*|m68k-
*-rtems*)
5011 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5012 tm_file
=m68k
/rtemself.h
5013 extra_headers
=math-68881.h
5019 tm_file
=m88k
/dguxbcs.h
5020 tmake_file
=m88k
/t-dguxbcs
5024 tmake_file
=m88k
/t-dgux
5027 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5028 xmake_file
=m88k
/x-dgux
5029 if test x
$gas = xyes
5031 tmake_file
=m88k
/t-dgux-gas
5034 m88k-dolphin-sysv3
*)
5035 tm_file
=m88k
/dolph.h
5036 extra_parts
="crtbegin.o crtend.o"
5037 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5038 xmake_file
=m88k
/x-dolph
5039 if test x
$gas = xyes
5041 tmake_file
=m88k
/t-m88k-gas
5044 m88k-tektronix-sysv3
)
5045 tm_file
=m88k
/tekXD88.h
5046 extra_parts
="crtbegin.o crtend.o"
5047 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5048 xmake_file
=m88k
/x-tekXD88
5049 if test x
$gas = xyes
5051 tmake_file
=m88k
/t-m88k-gas
5055 tm_file
=m88k
/m88k-aout.h
5058 tm_file
=m88k
/m88k-coff.h
5059 tmake_file
=m88k
/t-bug
5063 extra_parts
="crtbegin.o crtend.o"
5064 if test x
$gas = xyes
5066 tmake_file
=m88k
/t-luna-gas
5068 tmake_file
=m88k
/t-luna
5072 tmake_file
="${tmake_file} m88k/t-luna-gas"
5075 tm_file
=m88k
/sysv3.h
5076 extra_parts
="crtbegin.o crtend.o"
5077 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5078 xmake_file
=m88k
/x-sysv3
5079 if test x
$gas = xyes
5081 tmake_file
=m88k
/t-m88k-gas
5085 tm_file
=m88k
/sysv4.h
5086 extra_parts
="crtbegin.o crtend.o"
5087 xmake_file
=m88k
/x-sysv4
5088 tmake_file
=m88k
/t-sysv4
5091 tm_file
=mcore
/mcore-elf.h
5092 tmake_file
=mcore
/t-mcore
5095 tm_file
=mcore
/mcore-pe.h
5096 tmake_file
=mcore
/t-mcore-pe
5098 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5099 if test "x$gnu_ld" = xyes
5101 tm_file
="mips/iris6.h mips/iris6gld.h"
5103 tm_file
=mips
/iris6.h
5105 tmake_file
=mips
/t-iris6
5106 xm_file
=mips
/xm-iris6.h
5107 xmake_file
=mips
/x-iris6
5108 # if test x$enable_threads = xyes; then
5109 # thread_file='irix'
5113 tm_file
="mips/elf.h mips/vxworks.h"
5114 tmake_file
=mips
/t-ecoff
5117 extra_parts
="crtbegin.o crtend.o"
5118 thread_file
='vxworks'
5120 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5121 tm_file
="mips/iris6.h mips/cross64.h"
5123 xm_file
="mips/xm-iris5.h"
5124 xmake_file
=mips
/x-iris
5125 tmake_file
=mips
/t-cross64
5126 # See comment in mips/iris[56].h files.
5128 # if test x$enable_threads = xyes; then
5129 # thread_file='irix'
5133 if test x
$gas = xyes
5135 if test x
$stabs = xyes
5137 tm_file
=mips
/iris5gdb.h
5139 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5142 tm_file
=mips
/sni-svr4.h
5145 xmake_file
=mips
/x-sni-svr4
5146 tmake_file
=mips
/t-mips-gas
5147 if test x
$gnu_ld != xyes
5152 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5153 if test x
$gas = xyes
5155 tm_file
="mips/iris5.h mips/iris5gas.h"
5156 if test x
$stabs = xyes
5158 tm_file
="${tm_file} dbx.h"
5161 tm_file
=mips
/iris5.h
5164 xm_file
="mips/xm-iris5.h"
5165 xmake_file
=mips
/x-iris
5166 # mips-tfile doesn't work yet
5167 tmake_file
=mips
/t-mips-gas
5168 # See comment in mips/iris5.h file.
5170 # if test x$enable_threads = xyes; then
5171 # thread_file='irix'
5174 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5175 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5176 if test x
$stabs = xyes
; then
5177 tm_file
="${tm_file} dbx.h"
5180 xmake_file
=mips
/x-iris
5181 if test x
$gas = xyes
5183 tmake_file
=mips
/t-mips-gas
5185 extra_passes
="mips-tfile mips-tdump"
5187 if test x
$gnu_ld != xyes
5191 # if test x$enable_threads = xyes; then
5192 # thread_file='irix'
5195 mips-sgi-irix4
*) # Mostly like a MIPS.
5196 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5197 if test x
$stabs = xyes
; then
5198 tm_file
="${tm_file} dbx.h"
5201 xmake_file
=mips
/x-iris
5202 if test x
$gas = xyes
5204 tmake_file
=mips
/t-mips-gas
5206 extra_passes
="mips-tfile mips-tdump"
5208 if test x
$gnu_ld != xyes
5212 # if test x$enable_threads = xyes; then
5213 # thread_file='irix'
5216 mips-sgi-
*) # Mostly like a MIPS.
5217 tm_file
="mips/iris3.h ${tm_file}"
5218 if test x
$stabs = xyes
; then
5219 tm_file
="${tm_file} dbx.h"
5222 xmake_file
=mips
/x-iris3
5223 if test x
$gas = xyes
5225 tmake_file
=mips
/t-mips-gas
5227 extra_passes
="mips-tfile mips-tdump"
5229 if test x
$gnu_ld != xyes
5234 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5235 tm_file
="mips/osfrose.h ${tm_file}"
5236 xmake_file
=mips
/x-osfrose
5237 tmake_file
=mips
/t-osfrose
5238 extra_objs
=halfpic.o
5241 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5242 tm_file
=mips
/dec-osf1.h
5243 if test x
$stabs = xyes
; then
5244 tm_file
="${tm_file} dbx.h"
5246 xmake_file
=mips
/x-dec-osf1
5247 if test x
$gas = xyes
5249 tmake_file
=mips
/t-mips-gas
5251 tmake_file
=mips
/t-ultrix
5252 extra_passes
="mips-tfile mips-tdump"
5254 if test x
$gnu_ld != xyes
5259 mips-dec-bsd
*) # Decstation running 4.4 BSD
5260 tm_file
=mips
/dec-bsd.h
5261 if test x
$gas = xyes
5263 tmake_file
=mips
/t-mips-gas
5265 tmake_file
=mips
/t-ultrix
5266 extra_passes
="mips-tfile mips-tdump"
5268 if test x
$gnu_ld != xyes
5273 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5274 tm_file
=mips
/netbsd.h
5275 # On NetBSD, the headers are already okay, except for math.h.
5278 mips
*-*-linux*) # Linux MIPS, either endian.
5281 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5282 *) tm_file
="mips/elf.h mips/linux.h" ;;
5284 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5287 if test x
$enable_threads = xyes
; then
5291 mips
*el-
*-openbsd*) # mips little endian
5292 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5294 mips
*-*-openbsd*) # mips big endian
5295 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5296 tm_file
="mips/openbsd-be.h ${tm_file}"
5298 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5299 tm_file
="mips/news4.h ${tm_file}"
5300 if test x
$stabs = xyes
; then
5301 tm_file
="${tm_file} dbx.h"
5303 if test x
$gas = xyes
5305 tmake_file
=mips
/t-mips-gas
5307 extra_passes
="mips-tfile mips-tdump"
5309 if test x
$gnu_ld != xyes
5313 xmake_file
=mips
/x-sony
5315 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5316 # That is based on svr4.
5317 # t-svr4 is not right because this system doesn't use ELF.
5318 tm_file
="mips/news5.h ${tm_file}"
5319 if test x
$stabs = xyes
; then
5320 tm_file
="${tm_file} dbx.h"
5323 if test x
$gas = xyes
5325 tmake_file
=mips
/t-mips-gas
5327 extra_passes
="mips-tfile mips-tdump"
5329 if test x
$gnu_ld != xyes
5334 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5335 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5336 if test x
$stabs = xyes
; then
5337 tm_file
="${tm_file} dbx.h"
5340 xmake_file
=mips
/x-sysv
5341 if test x
$gas = xyes
5343 tmake_file
=mips
/t-mips-gas
5344 extra_parts
="crtbegin.o crtend.o"
5346 tmake_file
=mips
/t-mips
5347 extra_passes
="mips-tfile mips-tdump"
5349 if test x
$gnu_ld != xyes
5354 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5355 tm_file
="mips/ultrix.h ${tm_file}"
5356 if test x
$stabs = xyes
; then
5357 tm_file
="${tm_file} dbx.h"
5359 xmake_file
=mips
/x-ultrix
5360 if test x
$gas = xyes
5362 tmake_file
=mips
/t-mips-gas
5364 tmake_file
=mips
/t-ultrix
5365 extra_passes
="mips-tfile mips-tdump"
5367 if test x
$gnu_ld != xyes
5372 mips-
*-riscos[56789]bsd
*)
5373 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5374 if test x
$stabs = xyes
; then
5375 tm_file
="${tm_file} dbx.h"
5377 if test x
$gas = xyes
5379 tmake_file
=mips
/t-bsd-gas
5381 tmake_file
=mips
/t-bsd
5382 extra_passes
="mips-tfile mips-tdump"
5384 if test x
$gnu_ld != xyes
5389 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5390 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5391 if test x
$stabs = xyes
; then
5392 tm_file
="${tm_file} dbx.h"
5394 if test x
$gas = xyes
5396 tmake_file
=mips
/t-bsd-gas
5398 tmake_file
=mips
/t-bsd
5399 extra_passes
="mips-tfile mips-tdump"
5401 if test x
$gnu_ld != xyes
5406 mips-
*-riscos[56789]sysv4
*)
5407 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5408 if test x
$stabs = xyes
; then
5409 tm_file
="${tm_file} dbx.h"
5411 xmake_file
=mips
/x-sysv
5412 if test x
$gas = xyes
5414 tmake_file
=mips
/t-svr4-gas
5416 tmake_file
=mips
/t-svr4
5417 extra_passes
="mips-tfile mips-tdump"
5419 if test x
$gnu_ld != xyes
5424 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5425 tm_file
="mips/svr4-4.h ${tm_file}"
5426 if test x
$stabs = xyes
; then
5427 tm_file
="${tm_file} dbx.h"
5430 xmake_file
=mips
/x-sysv
5431 if test x
$gas = xyes
5433 tmake_file
=mips
/t-svr4-gas
5435 tmake_file
=mips
/t-svr4
5436 extra_passes
="mips-tfile mips-tdump"
5438 if test x
$gnu_ld != xyes
5443 mips-
*-riscos[56789]sysv
*)
5444 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5445 if test x
$stabs = xyes
; then
5446 tm_file
="${tm_file} dbx.h"
5449 xmake_file
=mips
/x-sysv
5450 if test x
$gas = xyes
5452 tmake_file
=mips
/t-svr3-gas
5454 tmake_file
=mips
/t-svr3
5455 extra_passes
="mips-tfile mips-tdump"
5457 if test x
$gnu_ld != xyes
5462 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5463 tm_file
="mips/svr3-4.h ${tm_file}"
5464 if test x
$stabs = xyes
; then
5465 tm_file
="${tm_file} dbx.h"
5468 xmake_file
=mips
/x-sysv
5469 if test x
$gas = xyes
5471 tmake_file
=mips
/t-svr3-gas
5473 tmake_file
=mips
/t-svr3
5474 extra_passes
="mips-tfile mips-tdump"
5476 if test x
$gnu_ld != xyes
5481 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5482 tm_file
=mips
/mips-5.h
5483 if test x
$stabs = xyes
; then
5484 tm_file
="${tm_file} dbx.h"
5486 if test x
$gas = xyes
5488 tmake_file
=mips
/t-mips-gas
5490 extra_passes
="mips-tfile mips-tdump"
5492 if test x
$gnu_ld != xyes
5500 tm_file
=mips
/ecoffl.h
5501 if test x
$stabs = xyes
; then
5502 tm_file
="${tm_file} dbx.h"
5504 tmake_file
=mips
/t-ecoff
5507 tm_file
="gofast.h mips/ecoff.h"
5508 if test x
$stabs = xyes
; then
5509 tm_file
="${tm_file} dbx.h"
5511 tmake_file
=mips
/t-ecoff
5514 tm_file
="mips/elfl.h"
5515 tmake_file
=mips
/t-elf
5518 tm_file
="mips/elf.h"
5519 tmake_file
=mips
/t-elf
5522 tm_file
="mips/elfl64.h"
5523 tmake_file
=mips
/t-elf
5525 mips64orionel-
*-elf*)
5526 tm_file
="mips/elforion.h mips/elfl64.h"
5527 tmake_file
=mips
/t-elf
5530 tm_file
="mips/elf64.h"
5531 tmake_file
=mips
/t-elf
5534 tm_file
="mips/elforion.h mips/elf64.h"
5535 tmake_file
=mips
/t-elf
5537 mips64orion-
*-rtems*)
5538 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5539 tmake_file
="mips/t-elf t-rtems"
5542 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5543 tmake_file
=mips
/t-r3900
5546 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5547 tmake_file
=mips
/t-r3900
5549 mips-
*-*) # Default MIPS RISC-OS 4.0.
5550 if test x
$stabs = xyes
; then
5551 tm_file
="${tm_file} dbx.h"
5553 if test x
$gas = xyes
5555 tmake_file
=mips
/t-mips-gas
5557 extra_passes
="mips-tfile mips-tdump"
5559 if test x
$gnu_ld != xyes
5567 tm_file
="mn10200/mn10200.h"
5568 if test x
$stabs = xyes
5570 tm_file
="${tm_file} dbx.h"
5576 tm_file
="mn10300/mn10300.h"
5577 if test x
$stabs = xyes
5579 tm_file
="${tm_file} dbx.h"
5584 tm_file
=ns32k
/encore.h
5588 tm_file
=ns32k
/sequent.h
5592 tm_file
=ns32k
/tek6100.h
5596 tm_file
=ns32k
/tek6200.h
5599 # This has not been updated to GCC 2.
5602 # xmake_file=ns32k/x-genix
5603 # tm_file=ns32k/genix.h
5607 tm_file
=ns32k
/merlin.h
5611 tm_file
=ns32k
/pc532-mach.h
5615 tm_file
=ns32k
/pc532-min.h
5616 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5621 tm_file
=ns32k
/netbsd.h
5622 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5623 # On NetBSD, the headers are already okay, except for math.h.
5628 tm_file
="${tm_file} pdp11/2bsd.h"
5637 # This has not been updated to GCC 2.
5640 # xmake_file=pyr/x-pyr
5645 tm_file
="svr4.h pj/linux.h ${tm_file}"
5650 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5657 xmake_file
=romp
/x-mach
5664 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5668 tm_file
=rs6000
/beos.h
5669 xm_file
=rs6000
/xm-beos.h
5670 tmake_file
=rs6000
/t-beos
5671 xmake_file
=rs6000
/x-beos
5674 tm_file
=rs6000
/sysv4.h
5675 xm_file
="rs6000/xm-sysv4.h"
5676 xm_defines
="USG POSIX"
5677 extra_headers
=ppc-asm.h
5678 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5679 xmake_file
=rs6000
/x-sysv4
5682 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5683 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5684 extra_headers
=ppc-asm.h
5687 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5688 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5689 extra_headers
=ppc-asm.h
5692 tm_file
="rs6000/sysv4.h"
5693 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5694 extra_headers
=ppc-asm.h
5697 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5698 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5699 extra_headers
=ppc-asm.h
5702 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5703 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5704 extra_headers
=ppc-asm.h
5706 powerpc-
*-linux-gnulibc1)
5707 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5708 xm_file
=rs6000
/xm-sysv4.h
5709 out_file
=rs6000
/rs6000.c
5710 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5712 extra_headers
=ppc-asm.h
5713 if test x
$enable_threads = xyes
; then
5717 powerpc-
*-linux-gnu*)
5718 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5719 xm_file
="rs6000/xm-sysv4.h"
5720 xm_defines
="USG ${xm_defines}"
5721 out_file
=rs6000
/rs6000.c
5722 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5724 extra_headers
=ppc-asm.h
5725 if test x
$enable_threads = xyes
; then
5729 powerpc-wrs-vxworks
*)
5731 xm_file
="rs6000/xm-sysv4.h"
5732 xm_defines
="USG POSIX"
5733 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5734 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5735 extra_headers
=ppc-asm.h
5736 thread_file
='vxworks'
5738 powerpcle-wrs-vxworks
*)
5740 xm_file
="rs6000/xm-sysv4.h"
5741 xm_defines
="USG POSIX"
5742 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5743 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5744 extra_headers
=ppc-asm.h
5745 thread_file
='vxworks'
5748 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5749 xm_file
="rs6000/xm-sysv4.h"
5750 xm_defines
="USG POSIX"
5751 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5752 xmake_file
=rs6000
/x-sysv4
5753 extra_headers
=ppc-asm.h
5756 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5757 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5758 extra_headers
=ppc-asm.h
5760 powerpcle-
*-eabisim*)
5761 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5762 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5763 extra_headers
=ppc-asm.h
5766 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5767 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5768 extra_headers
=ppc-asm.h
5770 powerpcle-
*-solaris2*)
5771 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5772 xm_file
="rs6000/xm-sysv4.h"
5773 xm_defines
="USG POSIX"
5774 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5775 xmake_file
=rs6000
/x-sysv4
5776 extra_headers
=ppc-asm.h
5778 rs6000-ibm-aix3.
[01]*)
5779 tm_file
=rs6000
/aix31.h
5780 xmake_file
=rs6000
/x-aix31
5784 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5785 tm_file
=rs6000
/aix3newas.h
5786 if test x
$host != x
$target
5788 tmake_file
=rs6000
/t-xnewas
5790 tmake_file
=rs6000
/t-newas
5795 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5796 tm_file
=rs6000
/aix41.h
5797 if test x
$host != x
$target
5799 tmake_file
=rs6000
/t-xnewas
5801 tmake_file
=rs6000
/t-newas
5803 if test "$gnu_ld" = yes
5805 xmake_file
=rs6000
/x-aix41-gld
5807 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5809 xmake_file
=rs6000
/x-aix41
5813 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5814 tm_file
=rs6000
/aix43.h
5815 tmake_file
=rs6000
/t-aix43
5816 xmake_file
=rs6000
/x-aix41
5820 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5821 tm_file
=rs6000
/aix43.h
5822 tmake_file
=rs6000
/t-aix43
5823 xmake_file
=rs6000
/x-aix41
5836 tm_file
=rs6000
/mach.h
5837 xm_file
="${xm_file} rs6000/xm-mach.h"
5838 xmake_file
=rs6000
/x-mach
5842 tm_file
=rs6000
/lynx.h
5843 xm_file
=rs6000
/xm-lynx.h
5844 tmake_file
=rs6000
/t-rs6000
5845 xmake_file
=rs6000
/x-lynx
5853 tmake_file
="sh/t-sh t-rtems"
5854 tm_file
=sh
/rtemself.h
5858 tmake_file
="sh/t-sh t-rtems"
5867 xm_file
="xm-alloca.h ${xm_file}"
5870 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5871 tm_file
=sparc
/vxsparc.h
5872 tmake_file
=sparc
/t-vxsparc
5874 thread_file
='vxworks'
5877 tmake_file
=sparc
/t-sparcbare
5878 tm_file
="sparc/aout.h libgloss.h"
5881 tm_file
=sparc
/netbsd.h
5886 # we need collect2 until our bug is fixed...
5894 tmake_file
=sparc
/t-elf
5895 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5899 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5900 xm_file
="${xm_file} sparc/xm-linux.h"
5901 tm_file
=sparc
/linux-aout.h
5905 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5906 xm_file
="${xm_file} sparc/xm-linux.h"
5908 tm_file
=sparc
/linux.h
5909 tmake_file
="t-linux t-linux-gnulibc1"
5910 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5914 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5915 xm_file
="${xm_file} sparc/xm-linux.h"
5917 tm_file
=sparc
/linux.h
5918 tmake_file
="t-linux"
5919 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5921 if test x
$enable_threads = xyes
; then
5927 if test x
$gas = xyes
5929 tm_file
=sparc
/lynx.h
5931 tm_file
=sparc
/lynx-ng.h
5933 xm_file
=sparc
/xm-lynx.h
5934 tmake_file
=sparc
/t-sunos41
5938 tmake_file
="sparc/t-sparcbare t-rtems"
5939 tm_file
=sparc
/rtems.h
5941 sparc-
*-rtems*|sparc-
*-rtemself*)
5942 tm_file
="sparc/rtemself.h"
5943 tmake_file
="sparc/t-elf t-rtems"
5944 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5948 sparcv9-
*-solaris2*)
5949 if test x
$gnu_ld = xyes
5951 tm_file
=sparc
/sol2-64.h
5953 tm_file
=sparc
/sol2-sld-64.h
5955 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5956 xm_defines
="USG POSIX"
5957 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5958 xmake_file
=sparc
/x-sysv4
5959 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5961 if test x
${enable_threads} = x
; then
5962 enable_threads
=$have_pthread_h
5963 if test x
${enable_threads} = x
; then
5964 enable_threads
=$have_thread_h
5967 if test x
${enable_threads} = xyes
; then
5968 if test x
${have_pthread_h} = xyes
; then
5971 thread_file
='solaris'
5975 sparc-hal-solaris2
*)
5976 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5977 xm_defines
="USG POSIX"
5978 tm_file
="sparc/sol2.h sparc/hal.h"
5979 tmake_file
="sparc/t-halos sparc/t-sol2"
5980 xmake_file
=sparc
/x-sysv4
5981 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5990 thread_file
='solaris'
5993 if test x
$gnu_ld = xyes
5995 tm_file
=sparc
/sol2.h
5997 tm_file
=sparc
/sol2-sld.h
5999 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6000 xm_defines
="USG POSIX"
6001 tmake_file
=sparc
/t-sol2
6002 xmake_file
=sparc
/x-sysv4
6003 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6005 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6007 if test x
$gnu_ld = xyes
6009 tm_file
=sparc
/sol2-64.h
6011 tm_file
=sparc
/sol2-sld-64.h
6013 tmake_file
="$tmake_file sparc/t-sol2-64"
6024 if test x
${enable_threads} = x
; then
6025 enable_threads
=$have_pthread_h
6026 if test x
${enable_threads} = x
; then
6027 enable_threads
=$have_thread_h
6030 if test x
${enable_threads} = xyes
; then
6031 if test x
${have_pthread_h} = xyes
; then
6034 thread_file
='solaris'
6039 tm_file
=sparc
/sunos4.h
6040 tmake_file
=sparc
/t-sunos40
6044 tm_file
=sparc
/sunos4.h
6045 tmake_file
=sparc
/t-sunos41
6047 if test x
$gas = xyes
; then
6048 tm_file
="${tm_file} sparc/sun4gas.h"
6052 tm_file
=sparc
/sun4o3.h
6056 tm_file
=sparc
/sysv4.h
6057 xm_file
="sparc/xm-sysv4.h"
6058 xm_defines
="USG POSIX"
6060 xmake_file
=sparc
/x-sysv4
6061 extra_parts
="crtbegin.o crtend.o"
6064 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6065 xm_defines
="USG POSIX"
6066 tm_file
=sparc
/vxsim.h
6067 tmake_file
=sparc
/t-vxsparc
6068 xmake_file
=sparc
/x-sysv4
6071 tm_file
="sparc/splet.h libgloss.h"
6072 tmake_file
=sparc
/t-splet
6075 tm_file
="sparc/litecoff.h libgloss.h"
6076 tmake_file
=sparc
/t-sparclite
6079 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6080 tmake_file
=sparc
/t-sparclite
6083 tm_file
="sparc/liteelf.h"
6084 tmake_file
=sparc
/t-sparclite
6085 extra_parts
="crtbegin.o crtend.o"
6088 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6089 tmake_file
=sparc
/t-sp86x
6092 tm_file
="sparc/sp86x-elf.h"
6093 tmake_file
=sparc
/t-sp86x
6094 extra_parts
="crtbegin.o crtend.o"
6097 tmake_file
=sparc
/t-sp64
6098 tm_file
=sparc
/sp64-aout.h
6101 tmake_file
=sparc
/t-sp64
6102 tm_file
=sparc
/sp64-elf.h
6103 extra_parts
="crtbegin.o crtend.o"
6105 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6106 tmake_file
="t-linux sparc/t-linux64"
6107 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6108 tm_file
=sparc
/linux64.h
6110 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6112 if test x
$enable_threads = xyes
; then
6117 # This hasn't been upgraded to GCC 2.
6118 # tahoe-harris-*) # Harris tahoe, using COFF.
6119 # tm_file=tahoe/harris.h
6121 # tahoe-*-bsd*) # tahoe running BSD
6125 { echo "configure: error:
6126 *** The Thumb targets have been depreciated. The equivalent
6127 *** ARM based toolchain can now generated Thumb instructions
6128 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6130 # This hasn't been upgraded to GCC 2.
6137 tm_file
="v850/rtems.h"
6138 xm_file
="v850/xm-v850.h"
6139 tmake_file
="v850/t-v850 t-rtems"
6140 if test x
$stabs = xyes
6142 tm_file
="${tm_file} dbx.h"
6147 target_cpu_default
="TARGET_CPU_generic"
6149 tm_file
="v850/v850.h"
6150 xm_file
="v850/xm-v850.h"
6151 tmake_file
=v850
/t-v850
6152 if test x
$stabs = xyes
6154 tm_file
="${tm_file} dbx.h"
6158 vax-
*-bsd*) # vaxen running BSD
6162 vax-
*-sysv*) # vaxen running system V
6163 tm_file
="${tm_file} vax/vaxv.h"
6168 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6174 tmake_file
="${tmake_file} vax/t-openbsd"
6176 vax-
*-ultrix*) # vaxen running ultrix
6177 tm_file
="${tm_file} vax/ultrix.h"
6181 vax-
*-vms*) # vaxen running VMS
6182 xm_file
=vax
/xm-vms.h
6186 vax-
*-*) # vax default entry
6190 xm_file
="${xm_file} xm-svr3"
6194 echo "Configuration $machine not supported" 1>&2
6201 ;; # Existing GNU/Linux systems do not use the GNU setup.
6203 # On the GNU system, the setup is just about the same on
6204 # each different CPU. The specific machines that GNU
6205 # supports are matched above and just set $cpu_type.
6206 xm_file
="xm-gnu.h ${xm_file}"
6207 tm_file
=${cpu_type}/gnu.h
6208 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6209 # GNU always uses ELF.
6211 # GNU tools are the only tools.
6214 xmake_file
=x-linux
# These details are the same as Linux.
6215 tmake_file
=t-gnu
# These are not.
6218 xmake_try_sysv
=x-sysv
6219 install_headers_dir
=install-headers-cpio
6222 install_headers_dir
=install-headers-cpio
6226 # Distinguish i[34567]86
6227 # Also, do not run mips-tfile on MIPS if using gas.
6228 # Process --with-cpu= for PowerPC/rs6000
6229 target_cpu_default2
=
6232 target_cpu_default2
=1
6235 case $target_alias in
6237 target_cpu_default2
=4
6240 target_cpu_default2
=2
6244 i686-
*-* | i786-
*-*)
6245 target_cpu_default2
=3
6250 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6253 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6256 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6259 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6262 target_cpu_default2
="MASK_CPU_EV5"
6266 if test x
$gas = xyes
6268 if test "$target_cpu_default2" = ""
6270 target_cpu_default2
="MASK_GAS"
6272 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6277 case "x$with_cpu" in
6280 target_cpu_default2
="TARGET_CPU_generic"
6283 # Distinguish cores, and major variants
6284 # arm7m doesn't exist, but D & I don't affect code
6285 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6286 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6287 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6288 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6289 target_cpu_default2
="TARGET_CPU_$with_cpu"
6293 echo "--with-cpu must be passed a value" 1>&2
6298 if test x
$pass2done = xyes
6300 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6307 mips
*-*-ecoff* | mips
*-*-elf*)
6308 if test x
$gas = xyes
6310 if test x
$gnu_ld = xyes
6312 target_cpu_default2
=20
6314 target_cpu_default2
=16
6319 if test x
$gas = xyes
6321 target_cpu_default2
=16
6324 powerpc
*-*-* | rs6000-
*-*)
6325 case "x$with_cpu" in
6329 xcommon | xpower | xpower2 | xpowerpc | xrios \
6330 | xrios1 | xrios2 | xrsc | xrsc1 \
6331 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6332 | xec603e | x740 | x750 | x401 \
6333 | x403 | x505 | x801 | x821 | x823 | x860
)
6334 target_cpu_default2
="\"$with_cpu\""
6338 echo "--with-cpu must be passed a value" 1>&2
6343 if test x
$pass2done = xyes
6345 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6352 case ".$with_cpu" in
6354 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6356 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6357 target_cpu_default2
="TARGET_CPU_$with_cpu"
6360 if test x
$pass2done = xyes
6362 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6370 if test "$target_cpu_default2" != ""
6372 if test "$target_cpu_default" != ""
6374 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6376 target_cpu_default
=$target_cpu_default2
6380 # No need for collect2 if we have the GNU linker.
6381 # Actually, there is now; GNU ld doesn't handle the EH info or
6382 # collecting for shared libraries.
6389 # Save data on machine being used to compile GCC in build_xm_file.
6390 # Save data on host machine in vars host_xm_file and host_xmake_file.
6391 if test x
$pass1done = x
6393 if test x
"$xm_file" = x
6394 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6395 else build_xm_file
=$xm_file
6397 build_xm_defines
=$xm_defines
6398 build_install_headers_dir
=$install_headers_dir
6399 build_exeext
=$exeext
6402 if test x
$pass2done = x
6404 if test x
"$xm_file" = x
6405 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6406 else host_xm_file
=$xm_file
6408 host_xm_defines
=$xm_defines
6409 if test x
"$xmake_file" = x
6410 then xmake_file
=$cpu_type/x-
$cpu_type
6412 host_xmake_file
="$xmake_file"
6413 host_truncate_target
=$truncate_target
6414 host_extra_gcc_objs
=$extra_gcc_objs
6415 host_extra_objs
=$extra_host_objs
6422 extra_objs
="${host_extra_objs} ${extra_objs}"
6424 # Default the target-machine variables that were not explicitly set.
6425 if test x
"$tm_file" = x
6426 then tm_file
=$cpu_type/$cpu_type.h
; fi
6428 if test x
$extra_headers = x
6429 then extra_headers
=; fi
6431 if test x
"$xm_file" = x
6432 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6434 if test x
$md_file = x
6435 then md_file
=$cpu_type/$cpu_type.md
; fi
6437 if test x
$out_file = x
6438 then out_file
=$cpu_type/$cpu_type.c
; fi
6440 if test x
"$tmake_file" = x
6441 then tmake_file
=$cpu_type/t-
$cpu_type
6444 if test x
"$dwarf2" = xyes
6445 then tm_file
="$tm_file tm-dwarf2.h"
6448 if test x
$float_format = x
6449 then float_format
=i64
6452 if test $float_format = none
6453 then float_h_file
=Makefile.
in
6454 else float_h_file
=float-
$float_format.h
6457 # Handle cpp installation.
6458 if test x
$enable_cpp != xno
6460 tmake_file
="$tmake_file t-install-cpp"
6463 # Say what files are being used for the output code and MD file.
6464 echo "Using \`$srcdir/config/$out_file' to output insns."
6465 echo "Using \`$srcdir/config/$md_file' as machine description file."
6468 for f
in $tm_file; do
6471 if test $count = ax
; then
6472 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6474 echo "Using the following target machine macro files:"
6475 for f
in $tm_file; do
6476 echo " $srcdir/config/$f"
6481 for f
in $host_xm_file; do
6484 if test $count = ax
; then
6485 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6487 echo "Using the following host machine macro files:"
6488 for f
in $host_xm_file; do
6489 echo " $srcdir/config/$f"
6493 if test "$host_xm_file" != "$build_xm_file"; then
6495 for f
in $build_xm_file; do
6498 if test $count = ax
; then
6499 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6501 echo "Using the following build machine macro files:"
6502 for f
in $build_xm_file; do
6503 echo " $srcdir/config/$f"
6508 if test x
$thread_file = x
; then
6509 if test x
$target_thread_file != x
; then
6510 thread_file
=$target_thread_file
6512 thread_file
='single'
6516 # Set up the header files.
6517 # $links is the list of header files to create.
6518 # $vars is the list of shell variables with file names to include.
6519 # auto-host.h is the file containing items generated by autoconf and is
6520 # the first file included by config.h.
6522 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6524 # If host=build, it is correct to have hconfig include auto-host.h
6525 # as well. If host!=build, we are in error and need to do more
6526 # work to find out the build config parameters.
6527 if test x
$host = x
$build
6529 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6531 # We create a subdir, then run autoconf in the subdir.
6532 # To prevent recursion we set host and build for the new
6533 # invocation of configure to the build for this invocation
6540 /*) realsrcdir
=${srcdir};;
6541 *) realsrcdir
=..
/${srcdir};;
6543 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6544 --target=$target --host=$build --build=$build
6546 # We just finished tests for the build machine, so rename
6547 # the file auto-build.h in the gcc directory.
6548 mv auto-host.h ..
/auto-build.h
6551 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6554 xm_file
="gansidecl.h ${xm_file}"
6555 tm_file
="gansidecl.h ${tm_file}"
6557 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6558 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6559 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6562 if test -f config.status
; then mv -f config.status config.bak
; fi
6565 while test -n "$vars"
6567 set $vars; var
=$1; shift; vars
=$
*
6568 set $links; link
=$1; shift; links
=$
*
6569 set $defines; define
=$1; shift; defines
=$
*
6572 # Make sure the file is created, even if it is empty.
6575 # Define TARGET_CPU_DEFAULT if the system wants one.
6576 # This substitutes for lots of *.h files.
6577 if test "$target_cpu_default" != "" -a $link = tm.h
6579 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6582 for file in `eval echo '$'$var`; do
6587 echo '#ifdef IN_GCC' >>$link
6590 echo "#include \"$file\"" >>$link
6595 echo '#endif' >>$link
6600 for def
in `eval echo '$'$define`; do
6601 echo "#ifndef $def" >>$link
6602 echo "#define $def" >>$link
6603 echo "#endif" >>$link
6607 # Truncate the target if necessary
6608 if test x
$host_truncate_target != x
; then
6609 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6612 # Get the version trigger filename from the toplevel
6613 if test "${with_gcc_version_trigger+set}" = set; then
6614 gcc_version_trigger
=$with_gcc_version_trigger
6616 gcc_version_trigger
=${srcdir}/version.c
6618 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6620 # Internationalization
6622 VERSION
="$gcc_version"
6623 cat >> confdefs.h
<<EOF
6624 #define PACKAGE "$PACKAGE"
6627 cat >> confdefs.h
<<EOF
6628 #define VERSION "$VERSION"
6636 # NLS support is still experimental, so disable it by default for now.
6637 # Check whether --enable-nls or --disable-nls was given.
6638 if test "${enable_nls+set}" = set; then
6639 enableval
="$enable_nls"
6647 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6648 echo "configure:6649: checking for strerror in -lcposix" >&5
6649 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 ac_save_LIBS
="$LIBS"
6654 LIBS
="-lcposix $LIBS"
6655 cat > conftest.
$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6667 if { (eval echo configure
:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.
$ac_ext >&5
6674 eval "ac_cv_lib_$ac_lib_var=no"
6677 LIBS
="$ac_save_LIBS"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 LIBS
="$LIBS -lcposix"
6684 echo "$ac_t""no" 1>&6
6689 echo $ac_n "checking for working const""... $ac_c" 1>&6
6690 echo "configure:6691: checking for working const" >&5
6691 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.
$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6700 /* Ultrix mips cc rejects this. */
6701 typedef int charset[2]; const charset x = {0,0};
6702 /* SunOS 4.1.1 cc rejects this. */
6703 char const *const *ccp;
6705 /* NEC SVR4.0.2 mips cc rejects this. */
6706 struct point {int x, y;};
6707 static struct point const zero = {0,0};
6708 /* AIX XL C 1.02.0.0 rejects this.
6709 It does not let you subtract one const X* pointer from another in an arm
6710 of an if-expression whose if-part is not a constant expression */
6711 const char *g = "string";
6712 ccp = &g + (g ? g-g : 0);
6713 /* HPUX 7.0 cc rejects these. */
6716 ccp = (char const *const *) p;
6717 { /* SCO 3.2v4 cc rejects this. */
6719 char const *s = 0 ? (char *) 0 : (char const *) 0;
6723 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6725 const int *foo = &x[0];
6728 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6729 typedef const int *iptr;
6733 { /* AIX XL C 1.02.0.0 rejects this saying
6734 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6735 struct s { int j; const int *ap[3]; };
6736 struct s *b; b->j = 5;
6738 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6744 if { (eval echo configure
:6745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6748 echo "configure: failed program was:" >&5
6749 cat conftest.
$ac_ext >&5
6756 echo "$ac_t""$ac_cv_c_const" 1>&6
6757 if test $ac_cv_c_const = no
; then
6758 cat >> confdefs.h
<<\EOF
6764 echo $ac_n "checking for inline""... $ac_c" 1>&6
6765 echo "configure:6766: checking for inline" >&5
6766 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6770 for ac_kw
in inline __inline__ __inline
; do
6771 cat > conftest.
$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6776 } int $ac_kw foo() {
6779 if { (eval echo configure
:6780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6781 ac_cv_c_inline
=$ac_kw; break
6783 echo "configure: failed program was:" >&5
6784 cat conftest.
$ac_ext >&5
6791 echo "$ac_t""$ac_cv_c_inline" 1>&6
6792 case "$ac_cv_c_inline" in
6794 no
) cat >> confdefs.h
<<\EOF
6798 *) cat >> confdefs.h
<<EOF
6799 #define inline $ac_cv_c_inline
6804 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6805 echo "configure:6806: checking for off_t" >&5
6806 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.
$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 #include <sys/types.h>
6818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6819 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6821 ac_cv_type_off_t
=yes
6829 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6830 if test $ac_cv_type_off_t = no
; then
6831 cat >> confdefs.h
<<\EOF
6837 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6838 echo "configure:6839: checking for size_t" >&5
6839 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 cat > conftest.
$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 #include <sys/types.h>
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6854 ac_cv_type_size_t
=yes
6857 ac_cv_type_size_t
=no
6862 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6863 if test $ac_cv_type_size_t = no
; then
6864 cat >> confdefs.h
<<\EOF
6865 #define size_t unsigned
6870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6871 # for constant arguments. Useless!
6872 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6873 echo "configure:6874: checking for working alloca.h" >&5
6874 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6877 cat > conftest.
$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6882 void *p = alloca(2 * sizeof(int));
6885 if { (eval echo configure
:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6887 ac_cv_header_alloca_h
=yes
6889 echo "configure: failed program was:" >&5
6890 cat conftest.
$ac_ext >&5
6892 ac_cv_header_alloca_h
=no
6897 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6898 if test $ac_cv_header_alloca_h = yes; then
6899 cat >> confdefs.h
<<\EOF
6900 #define HAVE_ALLOCA_H 1
6905 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6906 echo "configure:6907: checking for alloca" >&5
6907 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 cat > conftest.
$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6915 # define alloca __builtin_alloca
6918 # include <malloc.h>
6919 # define alloca _alloca
6922 # include <alloca.h>
6927 # ifndef alloca /* predefined by HP cc +Olibcalls */
6936 char *p = (char *) alloca(1);
6939 if { (eval echo configure
:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6941 ac_cv_func_alloca_works
=yes
6943 echo "configure: failed program was:" >&5
6944 cat conftest.
$ac_ext >&5
6946 ac_cv_func_alloca_works
=no
6951 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6952 if test $ac_cv_func_alloca_works = yes; then
6953 cat >> confdefs.h
<<\EOF
6954 #define HAVE_ALLOCA 1
6959 if test $ac_cv_func_alloca_works = no
; then
6960 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6961 # that cause trouble. Some versions do not even contain alloca or
6962 # contain a buggy version. If you still want to use their alloca,
6963 # use ar to extract alloca.o from them instead of compiling alloca.c.
6964 ALLOCA
=alloca.
${ac_objext}
6965 cat >> confdefs.h
<<\EOF
6970 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6971 echo "configure:6972: checking whether alloca needs Cray hooks" >&5
6972 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.
$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 #if defined(CRAY) && ! defined(CRAY2)
6985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986 egrep "webecray" >/dev
/null
2>&1; then
6997 echo "$ac_t""$ac_cv_os_cray" 1>&6
6998 if test $ac_cv_os_cray = yes; then
6999 for ac_func
in _getb67 GETB67 getb67
; do
7000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7001 echo "configure:7002: checking for $ac_func" >&5
7002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 cat > conftest.
$ac_ext <<EOF
7006 #line 7007 "configure"
7007 #include "confdefs.h"
7008 /* System header to define __stub macros and hopefully few prototypes,
7009 which can conflict with char $ac_func(); below. */
7011 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7018 /* The GNU C library defines this for functions which it implements
7019 to always fail with ENOSYS. Some functions are actually named
7020 something starting with __ and the normal name is an alias. */
7021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7029 if { (eval echo configure
:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7031 eval "ac_cv_func_$ac_func=yes"
7033 echo "configure: failed program was:" >&5
7034 cat conftest.
$ac_ext >&5
7036 eval "ac_cv_func_$ac_func=no"
7041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7042 echo "$ac_t""yes" 1>&6
7043 cat >> confdefs.h
<<EOF
7044 #define CRAY_STACKSEG_END $ac_func
7049 echo "$ac_t""no" 1>&6
7055 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7056 echo "configure:7057: checking stack direction for C alloca" >&5
7057 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7058 echo $ac_n "(cached) $ac_c" 1>&6
7060 if test "$cross_compiling" = yes; then
7061 ac_cv_c_stack_direction
=0
7063 cat > conftest.
$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7066 find_stack_direction ()
7068 static char *addr = 0;
7073 return find_stack_direction ();
7076 return (&dummy > addr) ? 1 : -1;
7080 exit (find_stack_direction() < 0);
7083 if { (eval echo configure
:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7085 ac_cv_c_stack_direction
=1
7087 echo "configure: failed program was:" >&5
7088 cat conftest.
$ac_ext >&5
7090 ac_cv_c_stack_direction
=-1
7097 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7098 cat >> confdefs.h
<<EOF
7099 #define STACK_DIRECTION $ac_cv_c_stack_direction
7105 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7106 unistd.h sys
/param.h
7108 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7110 echo "configure:7111: checking for $ac_hdr" >&5
7111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7112 echo $ac_n "(cached) $ac_c" 1>&6
7114 cat > conftest.
$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7119 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7120 { (eval echo configure
:7121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7121 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7122 if test -z "$ac_err"; then
7124 eval "ac_cv_header_$ac_safe=yes"
7127 echo "configure: failed program was:" >&5
7128 cat conftest.
$ac_ext >&5
7130 eval "ac_cv_header_$ac_safe=no"
7134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7135 echo "$ac_t""yes" 1>&6
7136 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7137 cat >> confdefs.h
<<EOF
7138 #define $ac_tr_hdr 1
7142 echo "$ac_t""no" 1>&6
7146 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7147 strdup __argz_count __argz_stringify __argz_next
7149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7150 echo "configure:7151: checking for $ac_func" >&5
7151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7152 echo $ac_n "(cached) $ac_c" 1>&6
7154 cat > conftest.
$ac_ext <<EOF
7155 #line 7156 "configure"
7156 #include "confdefs.h"
7157 /* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char $ac_func(); below. */
7160 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7167 /* The GNU C library defines this for functions which it implements
7168 to always fail with ENOSYS. Some functions are actually named
7169 something starting with __ and the normal name is an alias. */
7170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7178 if { (eval echo configure
:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7180 eval "ac_cv_func_$ac_func=yes"
7182 echo "configure: failed program was:" >&5
7183 cat conftest.
$ac_ext >&5
7185 eval "ac_cv_func_$ac_func=no"
7190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7191 echo "$ac_t""yes" 1>&6
7192 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7193 cat >> confdefs.h
<<EOF
7194 #define $ac_tr_func 1
7198 echo "$ac_t""no" 1>&6
7203 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7204 for ac_func
in stpcpy
7206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7207 echo "configure:7208: checking for $ac_func" >&5
7208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6
7211 cat > conftest.
$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 /* System header to define __stub macros and hopefully few prototypes,
7215 which can conflict with char $ac_func(); below. */
7217 /* Override any gcc2 internal prototype to avoid an error. */
7218 /* We use char because int might match the return type of a gcc2
7219 builtin and then its argument prototype would still apply. */
7224 /* The GNU C library defines this for functions which it implements
7225 to always fail with ENOSYS. Some functions are actually named
7226 something starting with __ and the normal name is an alias. */
7227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7235 if { (eval echo configure
:7236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7237 eval "ac_cv_func_$ac_func=yes"
7239 echo "configure: failed program was:" >&5
7240 cat conftest.
$ac_ext >&5
7242 eval "ac_cv_func_$ac_func=no"
7247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7248 echo "$ac_t""yes" 1>&6
7249 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7250 cat >> confdefs.h
<<EOF
7251 #define $ac_tr_func 1
7255 echo "$ac_t""no" 1>&6
7260 if test "${ac_cv_func_stpcpy}" = "yes"; then
7261 cat >> confdefs.h
<<\EOF
7262 #define HAVE_STPCPY 1
7267 if test $ac_cv_header_locale_h = yes; then
7268 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7269 echo "configure:7270: checking for LC_MESSAGES" >&5
7270 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.
$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7281 if { (eval echo configure
:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7283 am_cv_val_LC_MESSAGES
=yes
7285 echo "configure: failed program was:" >&5
7286 cat conftest.
$ac_ext >&5
7288 am_cv_val_LC_MESSAGES
=no
7293 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7294 if test $am_cv_val_LC_MESSAGES = yes; then
7295 cat >> confdefs.h
<<\EOF
7296 #define HAVE_LC_MESSAGES 1
7301 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7302 echo "configure:7303: checking whether NLS is requested" >&5
7303 # Check whether --enable-nls or --disable-nls was given.
7304 if test "${enable_nls+set}" = set; then
7305 enableval
="$enable_nls"
7311 echo "$ac_t""$USE_NLS" 1>&6
7314 USE_INCLUDED_LIBINTL
=no
7316 if test "$USE_NLS" = "yes"; then
7317 cat >> confdefs.h
<<\EOF
7318 #define ENABLE_NLS 1
7321 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7322 echo "configure:7323: checking whether included gettext is requested" >&5
7323 # Check whether --with-included-gettext or --without-included-gettext was given.
7324 if test "${with_included_gettext+set}" = set; then
7325 withval
="$with_included_gettext"
7326 nls_cv_force_use_gnu_gettext
=$withval
7328 nls_cv_force_use_gnu_gettext
=no
7331 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7333 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7334 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7336 nls_cv_header_libgt
=
7339 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7340 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7341 echo "configure:7342: checking for libintl.h" >&5
7342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7345 cat > conftest.
$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7348 #include <libintl.h>
7350 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7351 { (eval echo configure
:7352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7352 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7353 if test -z "$ac_err"; then
7355 eval "ac_cv_header_$ac_safe=yes"
7358 echo "configure: failed program was:" >&5
7359 cat conftest.
$ac_ext >&5
7361 eval "ac_cv_header_$ac_safe=no"
7365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7366 echo "$ac_t""yes" 1>&6
7367 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7368 echo "configure:7369: checking for gettext in libc" >&5
7369 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.
$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #include <libintl.h>
7377 return (int) gettext ("")
7380 if { (eval echo configure
:7381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7382 gt_cv_func_gettext_libc
=yes
7384 echo "configure: failed program was:" >&5
7385 cat conftest.
$ac_ext >&5
7387 gt_cv_func_gettext_libc
=no
7392 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7394 if test "$gt_cv_func_gettext_libc" != "yes"; then
7395 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7396 echo "configure:7397: checking for bindtextdomain in -lintl" >&5
7397 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7401 ac_save_LIBS
="$LIBS"
7403 cat > conftest.
$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* Override any gcc2 internal prototype to avoid an error. */
7407 /* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */
7409 char bindtextdomain();
7415 if { (eval echo configure
:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7417 eval "ac_cv_lib_$ac_lib_var=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.
$ac_ext >&5
7422 eval "ac_cv_lib_$ac_lib_var=no"
7425 LIBS
="$ac_save_LIBS"
7428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7431 echo "configure:7432: checking for gettext in libintl" >&5
7432 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7435 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7436 echo "configure:7437: checking for gettext in -lintl" >&5
7437 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7439 echo $ac_n "(cached) $ac_c" 1>&6
7441 ac_save_LIBS
="$LIBS"
7443 cat > conftest.
$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 /* Override any gcc2 internal prototype to avoid an error. */
7447 /* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7455 if { (eval echo configure
:7456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7457 eval "ac_cv_lib_$ac_lib_var=yes"
7459 echo "configure: failed program was:" >&5
7460 cat conftest.
$ac_ext >&5
7462 eval "ac_cv_lib_$ac_lib_var=no"
7465 LIBS
="$ac_save_LIBS"
7468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7469 echo "$ac_t""yes" 1>&6
7470 gt_cv_func_gettext_libintl
=yes
7472 echo "$ac_t""no" 1>&6
7473 gt_cv_func_gettext_libintl
=no
7478 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7480 echo "$ac_t""no" 1>&6
7485 if test "$gt_cv_func_gettext_libc" = "yes" \
7486 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7487 cat >> confdefs.h
<<\EOF
7488 #define HAVE_GETTEXT 1
7491 # Extract the first word of "msgfmt", so it can be a program name with args.
7492 set dummy msgfmt
; ac_word
=$2
7493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7494 echo "configure:7495: checking for $ac_word" >&5
7495 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7500 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7504 for ac_dir
in $PATH; do
7505 test -z "$ac_dir" && ac_dir
=.
7506 if test -f $ac_dir/$ac_word; then
7507 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7508 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7514 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7518 MSGFMT
="$ac_cv_path_MSGFMT"
7519 if test -n "$MSGFMT"; then
7520 echo "$ac_t""$MSGFMT" 1>&6
7522 echo "$ac_t""no" 1>&6
7524 if test "$MSGFMT" != "no"; then
7525 for ac_func
in dcgettext
7527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7528 echo "configure:7529: checking for $ac_func" >&5
7529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.
$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7535 /* System header to define __stub macros and hopefully few prototypes,
7536 which can conflict with char $ac_func(); below. */
7538 /* Override any gcc2 internal prototype to avoid an error. */
7539 /* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7545 /* The GNU C library defines this for functions which it implements
7546 to always fail with ENOSYS. Some functions are actually named
7547 something starting with __ and the normal name is an alias. */
7548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7556 if { (eval echo configure
:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7558 eval "ac_cv_func_$ac_func=yes"
7560 echo "configure: failed program was:" >&5
7561 cat conftest.
$ac_ext >&5
7563 eval "ac_cv_func_$ac_func=no"
7568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7569 echo "$ac_t""yes" 1>&6
7570 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7571 cat >> confdefs.h
<<EOF
7572 #define $ac_tr_func 1
7576 echo "$ac_t""no" 1>&6
7580 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7581 set dummy gmsgfmt
; ac_word
=$2
7582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7583 echo "configure:7584: checking for $ac_word" >&5
7584 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7589 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7592 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7597 for ac_dir
in $ac_dummy; do
7598 test -z "$ac_dir" && ac_dir
=.
7599 if test -f $ac_dir/$ac_word; then
7600 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7605 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7609 GMSGFMT
="$ac_cv_path_GMSGFMT"
7610 if test -n "$GMSGFMT"; then
7611 echo "$ac_t""$GMSGFMT" 1>&6
7613 echo "$ac_t""no" 1>&6
7616 # Extract the first word of "xgettext", so it can be a program name with args.
7617 set dummy xgettext
; ac_word
=$2
7618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7619 echo "configure:7620: checking for $ac_word" >&5
7620 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7625 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7628 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7629 for ac_dir
in $PATH; do
7630 test -z "$ac_dir" && ac_dir
=.
7631 if test -f $ac_dir/$ac_word; then
7632 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7633 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7639 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7643 XGETTEXT
="$ac_cv_path_XGETTEXT"
7644 if test -n "$XGETTEXT"; then
7645 echo "$ac_t""$XGETTEXT" 1>&6
7647 echo "$ac_t""no" 1>&6
7650 cat > conftest.
$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7655 extern int _nl_msg_cat_cntr;
7656 return _nl_msg_cat_cntr
7659 if { (eval echo configure
:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7664 echo "configure: failed program was:" >&5
7665 cat conftest.
$ac_ext >&5
7676 echo "$ac_t""no" 1>&6
7680 if test "$CATOBJEXT" = "NONE"; then
7681 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7682 echo "configure:7683: checking whether catgets can be used" >&5
7683 # Check whether --with-catgets or --without-catgets was given.
7684 if test "${with_catgets+set}" = set; then
7685 withval
="$with_catgets"
7686 nls_cv_use_catgets
=$withval
7688 nls_cv_use_catgets
=no
7691 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7693 if test "$nls_cv_use_catgets" = "yes"; then
7694 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7695 echo "configure:7696: checking for main in -li" >&5
7696 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7700 ac_save_LIBS
="$LIBS"
7702 cat > conftest.
$ac_ext <<EOF
7703 #line 7704 "configure"
7704 #include "confdefs.h"
7710 if { (eval echo configure
:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7712 eval "ac_cv_lib_$ac_lib_var=yes"
7714 echo "configure: failed program was:" >&5
7715 cat conftest.
$ac_ext >&5
7717 eval "ac_cv_lib_$ac_lib_var=no"
7720 LIBS
="$ac_save_LIBS"
7723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7725 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7727 cat >> confdefs.h
<<EOF
7728 #define $ac_tr_lib 1
7734 echo "$ac_t""no" 1>&6
7737 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7738 echo "configure:7739: checking for catgets" >&5
7739 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.
$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char catgets(); below. */
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7755 /* The GNU C library defines this for functions which it implements
7756 to always fail with ENOSYS. Some functions are actually named
7757 something starting with __ and the normal name is an alias. */
7758 #if defined (__stub_catgets) || defined (__stub___catgets)
7766 if { (eval echo configure
:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7768 eval "ac_cv_func_catgets=yes"
7770 echo "configure: failed program was:" >&5
7771 cat conftest.
$ac_ext >&5
7773 eval "ac_cv_func_catgets=no"
7778 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 cat >> confdefs.h
<<\EOF
7781 #define HAVE_CATGETS 1
7784 INTLOBJS
="\$(CATOBJS)"
7785 # Extract the first word of "gencat", so it can be a program name with args.
7786 set dummy gencat
; ac_word
=$2
7787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7788 echo "configure:7789: checking for $ac_word" >&5
7789 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7790 echo $ac_n "(cached) $ac_c" 1>&6
7794 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7797 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7802 for ac_dir
in $ac_dummy; do
7803 test -z "$ac_dir" && ac_dir
=.
7804 if test -f $ac_dir/$ac_word; then
7805 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7810 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7814 GENCAT
="$ac_cv_path_GENCAT"
7815 if test -n "$GENCAT"; then
7816 echo "$ac_t""$GENCAT" 1>&6
7818 echo "$ac_t""no" 1>&6
7820 if test "$GENCAT" != "no"; then
7821 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7822 set dummy gmsgfmt
; ac_word
=$2
7823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_word" >&5
7825 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7830 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7833 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7838 for ac_dir
in $ac_dummy; do
7839 test -z "$ac_dir" && ac_dir
=.
7840 if test -f $ac_dir/$ac_word; then
7841 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7850 GMSGFMT
="$ac_cv_path_GMSGFMT"
7851 if test -n "$GMSGFMT"; then
7852 echo "$ac_t""$GMSGFMT" 1>&6
7854 echo "$ac_t""no" 1>&6
7857 if test "$GMSGFMT" = "no"; then
7858 # Extract the first word of "msgfmt", so it can be a program name with args.
7859 set dummy msgfmt
; ac_word
=$2
7860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7861 echo "configure:7862: checking for $ac_word" >&5
7862 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7863 echo $ac_n "(cached) $ac_c" 1>&6
7867 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7870 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7871 for ac_dir
in $PATH; do
7872 test -z "$ac_dir" && ac_dir
=.
7873 if test -f $ac_dir/$ac_word; then
7874 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7875 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7881 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7885 GMSGFMT
="$ac_cv_path_GMSGFMT"
7886 if test -n "$GMSGFMT"; then
7887 echo "$ac_t""$GMSGFMT" 1>&6
7889 echo "$ac_t""no" 1>&6
7893 # Extract the first word of "xgettext", so it can be a program name with args.
7894 set dummy xgettext
; ac_word
=$2
7895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7896 echo "configure:7897: checking for $ac_word" >&5
7897 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7902 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7906 for ac_dir
in $PATH; do
7907 test -z "$ac_dir" && ac_dir
=.
7908 if test -f $ac_dir/$ac_word; then
7909 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7910 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7916 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7920 XGETTEXT
="$ac_cv_path_XGETTEXT"
7921 if test -n "$XGETTEXT"; then
7922 echo "$ac_t""$XGETTEXT" 1>&6
7924 echo "$ac_t""no" 1>&6
7927 USE_INCLUDED_LIBINTL
=yes
7931 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7933 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7934 nls_cv_header_intl
=intl
/libintl.h
7935 nls_cv_header_libgt
=intl
/libgettext.h
7938 echo "$ac_t""no" 1>&6
7944 if test "$CATOBJEXT" = "NONE"; then
7945 nls_cv_use_gnu_gettext
=yes
7949 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7950 INTLOBJS
="\$(GETTOBJS)"
7951 # Extract the first word of "msgfmt", so it can be a program name with args.
7952 set dummy msgfmt
; ac_word
=$2
7953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7954 echo "configure:7955: checking for $ac_word" >&5
7955 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7960 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7964 for ac_dir
in $PATH; do
7965 test -z "$ac_dir" && ac_dir
=.
7966 if test -f $ac_dir/$ac_word; then
7967 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7968 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7974 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7978 MSGFMT
="$ac_cv_path_MSGFMT"
7979 if test -n "$MSGFMT"; then
7980 echo "$ac_t""$MSGFMT" 1>&6
7982 echo "$ac_t""no" 1>&6
7985 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7986 set dummy gmsgfmt
; ac_word
=$2
7987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7988 echo "configure:7989: checking for $ac_word" >&5
7989 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7994 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7997 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8002 for ac_dir
in $ac_dummy; do
8003 test -z "$ac_dir" && ac_dir
=.
8004 if test -f $ac_dir/$ac_word; then
8005 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8010 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8014 GMSGFMT
="$ac_cv_path_GMSGFMT"
8015 if test -n "$GMSGFMT"; then
8016 echo "$ac_t""$GMSGFMT" 1>&6
8018 echo "$ac_t""no" 1>&6
8021 # Extract the first word of "xgettext", so it can be a program name with args.
8022 set dummy xgettext
; ac_word
=$2
8023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8024 echo "configure:8025: checking for $ac_word" >&5
8025 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8030 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8034 for ac_dir
in $PATH; do
8035 test -z "$ac_dir" && ac_dir
=.
8036 if test -f $ac_dir/$ac_word; then
8037 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8038 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8044 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8048 XGETTEXT
="$ac_cv_path_XGETTEXT"
8049 if test -n "$XGETTEXT"; then
8050 echo "$ac_t""$XGETTEXT" 1>&6
8052 echo "$ac_t""no" 1>&6
8056 USE_INCLUDED_LIBINTL
=yes
8060 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8062 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8063 nls_cv_header_intl
=intl
/libintl.h
8064 nls_cv_header_libgt
=intl
/libgettext.h
8067 if test "$XGETTEXT" != ":"; then
8068 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8071 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8076 # We need to process the po/ directory.
8080 nls_cv_header_intl
=intl
/libintl.h
8081 nls_cv_header_libgt
=intl
/libgettext.h
8087 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8088 # because some of the sources are only built for this goal.
8089 if test "$PACKAGE" = gettext; then
8091 USE_INCLUDED_LIBINTL
=yes
8094 for lang
in $ALL_LINGUAS; do
8095 GMOFILES
="$GMOFILES $lang.gmo"
8096 POFILES
="$POFILES $lang.po"
8112 if test "x$CATOBJEXT" != "x"; then
8113 if test "x$ALL_LINGUAS" = "x"; then
8116 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8117 echo "configure:8118: checking for catalogs to be installed" >&5
8119 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8120 case "$ALL_LINGUAS" in
8121 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8124 LINGUAS
=$NEW_LINGUAS
8125 echo "$ac_t""$LINGUAS" 1>&6
8128 if test -n "$LINGUAS"; then
8129 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8133 if test $ac_cv_header_locale_h = yes; then
8134 INCLUDE_LOCALE_H
="#include <locale.h>"
8137 /* The system does not provide the header <locale.h>. Take care yourself. */"
8141 test -d intl || mkdir intl
8142 if test "$CATOBJEXT" = ".cat"; then
8143 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8144 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8145 echo "configure:8146: checking for linux/version.h" >&5
8146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8147 echo $ac_n "(cached) $ac_c" 1>&6
8149 cat > conftest.
$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 #include <linux/version.h>
8154 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8155 { (eval echo configure
:8156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8156 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8157 if test -z "$ac_err"; then
8159 eval "ac_cv_header_$ac_safe=yes"
8162 echo "configure: failed program was:" >&5
8163 cat conftest.
$ac_ext >&5
8165 eval "ac_cv_header_$ac_safe=no"
8169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8170 echo "$ac_t""yes" 1>&6
8173 echo "$ac_t""no" 1>&6
8178 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8180 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8181 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8183 if test "$PACKAGE" = "gettext"; then
8194 if test -n "$ac_aux_dir"; then
8195 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8197 if test -z "$MKINSTALLDIRS"; then
8198 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8205 test -d po || mkdir po
8206 if test "x$srcdir" != "x."; then
8207 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8208 posrcprefix
="$srcdir/"
8210 posrcprefix
="../$srcdir/"
8216 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8217 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8219 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8221 # Windows32 Registry support for specifying GCC installation paths.
8222 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8223 if test "${enable_win32_registry+set}" = set; then
8224 enableval
="$enable_win32_registry"
8229 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8230 echo "configure:8231: checking whether windows registry support is requested" >&5
8231 if test x
$enable_win32_registry != xno
; then
8232 cat >> confdefs.h
<<\EOF
8233 #define ENABLE_WIN32_REGISTRY 1
8236 echo "$ac_t""yes" 1>&6
8238 echo "$ac_t""no" 1>&6
8241 # Check if user specified a different registry key.
8242 case x
${enable_win32_registry} in
8245 gcc_cv_win32_registry_key
="$VERSION"
8248 # no registry lookup.
8249 gcc_cv_win32_registry_key
=''
8252 # user-specified key.
8253 gcc_cv_win32_registry_key
="$enable_win32_registry"
8257 if test x
$enable_win32_registry != xno
; then
8258 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8259 echo "configure:8260: checking registry key on windows hosts" >&5
8260 cat >> confdefs.h
<<EOF
8261 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8264 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8267 # Get an absolute path to the GCC top-level source directory
8273 # Conditionalize the makefile for this host machine.
8274 # Make-host contains the concatenation of all host makefile fragments
8275 # [there can be more than one]. This file is built by configure.frag.
8276 host_overrides
=Make-host
8277 dep_host_xmake_file
=
8278 for f
in ..
${host_xmake_file}
8280 if test -f ${srcdir}/config
/$f
8282 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8286 # Conditionalize the makefile for this target machine.
8287 # Make-target contains the concatenation of all host makefile fragments
8288 # [there can be more than one]. This file is built by configure.frag.
8289 target_overrides
=Make-target
8291 for f
in ..
${tmake_file}
8293 if test -f ${srcdir}/config
/$f
8295 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8299 # If the host doesn't support symlinks, modify CC in
8300 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8301 # Otherwise, we can use "CC=$(CC)".
8303 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8305 cc_set_by_configure
="\$(CC)"
8306 quoted_cc_set_by_configure
="\$(CC)"
8307 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8310 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8312 symbolic_link
="cp -p"
8316 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8317 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8318 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8322 out_object_file
=`basename $out_file .c`.o
8325 for f
in $tm_file; do
8328 tm_file_list
="${tm_file_list} $f" ;;
8329 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8334 for f
in $host_xm_file; do
8336 auto-host.h | gansidecl.h | hwint.h
)
8337 host_xm_file_list
="${host_xm_file_list} $f" ;;
8338 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8343 for f
in $build_xm_file; do
8345 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8346 build_xm_file_list
="${build_xm_file_list} $f" ;;
8347 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8351 # Define macro CROSS_COMPILE in compilation
8352 # if this is a cross-compiler.
8353 # Also use all.cross instead of all.internal
8354 # and add cross-make to Makefile.
8355 cross_overrides
="/dev/null"
8356 if test x
$host != x
$target
8358 cross_defines
="CROSS=-DCROSS_COMPILE"
8359 cross_overrides
="${topdir}/cross-make"
8362 # When building gcc with a cross-compiler, we need to fix a few things.
8363 # This must come after cross-make as we want all.build to override
8365 build_overrides
="/dev/null"
8366 if test x
$build != x
$host
8368 build_overrides
="${topdir}/build-make"
8371 # Expand extra_headers to include complete path.
8372 # This substitutes for lots of t-* files.
8374 if test "x$extra_headers" = x
8377 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8378 for file in $extra_headers;
8380 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8384 if test x
$use_collect2 = xno
; then
8388 # Add a definition of USE_COLLECT2 if system wants one.
8389 # Also tell toplev.c what to do.
8390 # This substitutes for lots of t-* files.
8391 if test x
$use_collect2 = x
8396 will_use_collect2
="collect2"
8397 maybe_use_collect2
="-DUSE_COLLECT2"
8401 # Set MD_DEPS if the real md file is in md.pre-cpp.
8402 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8403 # for line oriented comments, so we must always use a GNU cpp. If
8404 # building gcc with a cross compiler, use the cross compiler just
8405 # built. Otherwise, we can use the cpp just built.
8407 if test "x$md_cppflags" = x
8409 md_file_sub
=$srcdir/config
/$md_file
8414 # If we have gas in the build tree, make a link to it.
8415 if test -f ..
/gas
/Makefile
; then
8416 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8419 # If we have nm in the build tree, make a link to it.
8420 if test -f ..
/binutils
/Makefile
; then
8421 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8424 # If we have ld in the build tree, make a link to it.
8425 if test -f ..
/ld
/Makefile
; then
8426 # if test x$use_collect2 = x; then
8427 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8429 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8433 # Figure out what assembler alignment features are present.
8434 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8435 echo "configure:8436: checking assembler alignment features" >&5
8437 gcc_cv_as_alignment_features
=
8438 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8439 if test -x "$DEFAULT_ASSEMBLER"; then
8440 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8441 elif test -x "$AS"; then
8443 elif test -x as
$host_exeext; then
8444 # Build using assembler in the current directory.
8445 gcc_cv_as
=.
/as
$host_exeext
8446 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8447 # Single tree build which includes gas.
8448 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8450 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8451 if test x
$gcc_cv_gas_version != x
; then
8455 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8456 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8457 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8458 # Gas version 2.6 and later support for .balign and .p2align.
8459 # bytes to skip when using .p2align.
8460 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
8461 gcc_cv_as_alignment_features
=".balign and .p2align"
8462 cat >> confdefs.h
<<\EOF
8463 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8467 # Gas version 2.8 and later support specifying the maximum
8468 # bytes to skip when using .p2align.
8469 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
8470 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8471 cat >> confdefs.h
<<\EOF
8472 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8477 elif test x
$host = x
$target; then
8479 # Search the same directories that the installed compiler will
8480 # search. Else we may find the wrong assembler and lose. If we
8481 # do not find a suitable assembler binary, then try the user's
8484 # Also note we have to check MD_EXEC_PREFIX before checking the
8485 # user's path. Unfortunately, there is no good way to get at the
8486 # value of MD_EXEC_PREFIX here. So we do a brute force search
8487 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8488 # to be fixed as part of the make/configure rewrite too.
8490 if test "x$exec_prefix" = xNONE
; then
8491 if test "x$prefix" = xNONE
; then
8492 test_prefix
=/usr
/local
8497 test_prefix
=$exec_prefix
8500 # If the loop below does not find an assembler, then use whatever
8501 # one we can find in the users's path.
8505 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8506 $test_prefix/lib/gcc-lib/$target \
8507 /usr/lib/gcc/$target/$gcc_version \
8508 /usr/lib/gcc/$target \
8509 $test_prefix/$target/bin/$target/$gcc_version \
8510 $test_prefix/$target/bin \
8515 /bsd43/usr/lib/cmplrs/cc \
8516 /usr/cross64/usr/bin \
8517 /usr/lib/cmplrs/cc \
8518 /sysv/usr/lib/cmplrs/cc \
8519 /svr4/usr/lib/cmplrs/cc \
8522 for dir
in $test_dirs; do
8523 if test -f $dir/as
$host_exeext; then
8524 gcc_cv_as
=$dir/as
$host_exeext
8529 if test x
$gcc_cv_as != x
; then
8530 # Check if we have .balign and .p2align
8531 echo ".balign 4" > conftest.s
8532 echo ".p2align 2" >> conftest.s
8533 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8534 gcc_cv_as_alignment_features
=".balign and .p2align"
8535 cat >> confdefs.h
<<\EOF
8536 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8540 rm -f conftest.s conftest.o
8541 # Check if specifying the maximum bytes to skip when
8542 # using .p2align is supported.
8543 echo ".p2align 4,,7" > conftest.s
8544 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8545 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8546 cat >> confdefs.h
<<\EOF
8547 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8551 rm -f conftest.s conftest.o
8553 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8555 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8556 echo "configure:8557: checking assembler subsection support" >&5
8557 gcc_cv_as_subsections
=
8558 if test x
$gcc_cv_as != x
; then
8559 # Check if we have .subsection
8560 echo ".subsection 1" > conftest.s
8561 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8562 gcc_cv_as_subsections
=".subsection"
8563 if test -x nm
$host_exeext; then
8564 gcc_cv_nm
=.
/nm
$host_exeext
8565 elif test x
$host = x
$target; then
8567 gcc_cv_nm
=nm
$host_exeext
8569 if test x
$gcc_cv_nm != x
; then
8570 cat > conftest.s
<<EOF
8571 conftest_label1: .word 0
8573 conftest_label2: .word 0
8576 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8577 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8578 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8579 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8582 gcc_cv_as_subsections
="working .subsection -1"
8583 cat >> confdefs.h
<<\EOF
8584 #define HAVE_GAS_SUBSECTION_ORDERING 1
8591 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8593 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8595 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8596 echo "configure:8597: checking assembler weak support" >&5
8598 if test x
$gcc_cv_as != x
; then
8599 # Check if we have .weak
8600 echo " .weak foobar" > conftest.s
8601 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8602 cat >> confdefs.h
<<\EOF
8603 #define HAVE_GAS_WEAK 1
8606 gcc_cv_as_weak
="yes"
8608 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8610 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8612 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8613 echo "configure:8614: checking assembler hidden support" >&5
8615 if test x
$gcc_cv_as != x
; then
8616 # Check if we have .hidden
8617 echo " .hidden foobar" > conftest.s
8618 echo "foobar:" >> conftest.s
8619 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8620 cat >> confdefs.h
<<\EOF
8621 #define HAVE_GAS_HIDDEN 1
8624 gcc_cv_as_hidden
="yes"
8626 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8628 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8632 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8633 echo "configure:8634: checking assembler .register pseudo-op support" >&5
8634 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8638 gcc_cv_as_register_pseudo_op
=unknown
8639 if test x
$gcc_cv_as != x
; then
8640 # Check if we have .register
8641 echo ".register %g2, #scratch" > conftest.s
8642 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8643 gcc_cv_as_register_pseudo_op
=yes
8645 gcc_cv_as_register_pseudo_op
=no
8647 rm -f conftest.s conftest.o
8652 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8653 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8654 cat >> confdefs.h
<<\EOF
8655 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8662 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8663 echo "configure:8664: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8664 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8668 if test -n "$gcc_cv_as"; then
8669 echo ".xword foo" > conftest.s
8670 gcc_cv_as_flags64
=no
8671 for flag
in "-xarch=v9" "-64 -Av9"; do
8672 if $gcc_cv_as $flag -o conftest.o conftest.s \
8673 > /dev
/null
2>&1; then
8674 gcc_cv_as_flags64
=$flag
8678 rm -f conftest.s conftest.o
8680 if test "$gas" = yes; then
8681 gcc_cv_as_flags64
="-64 -Av9"
8683 gcc_cv_as_flags64
="-xarch=v9"
8689 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8690 if test "x$gcc_cv_as_flags64" = xno
; then
8692 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8693 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8696 cat >> confdefs.h
<<EOF
8697 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8702 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8706 if test "x$gcc_cv_as_flags64" != xno
; then
8707 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8708 echo "configure:8709: checking for assembler offsetable %lo() support" >&5
8709 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8713 gcc_cv_as_offsetable_lo10
=unknown
8714 if test "x$gcc_cv_as" != x
; then
8715 # Check if assembler has offsetable %lo()
8716 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8717 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8718 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8720 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8721 > /dev
/null
2>&1; then
8722 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8723 gcc_cv_as_offsetable_lo10
=no
8725 gcc_cv_as_offsetable_lo10
=yes
8728 gcc_cv_as_offsetable_lo10
=no
8730 rm -f conftest.s conftest.o conftest1.s conftest1.o
8735 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8736 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8737 cat >> confdefs.h
<<\EOF
8738 #define HAVE_AS_OFFSETABLE_LO10 1
8746 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8747 echo "configure:8748: checking assembler instructions" >&5
8748 gcc_cv_as_instructions
=
8749 if test x
$gcc_cv_as != x
; then
8750 set "filds fists" "filds mem; fists mem"
8753 echo "$2" > conftest.s
8754 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8755 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8756 cat >> confdefs.h
<<EOF
8757 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8763 rm -f conftest.s conftest.o
8765 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8769 # Figure out what language subdirectories are present.
8770 # Look if the user specified --enable-languages="..."; if not, use
8771 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8773 if test x
"${enable_languages+set}" != xset
; then
8774 if test x
"${LANGUAGES+set}" = xset
; then
8775 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8777 enable_languages
=all
8781 for lang
in ${srcdir}/*/config-lang.
in ..
8785 # The odd quoting in the next line works around
8786 # an apparent bug in bash 1.12 on linux.
8787 ${srcdir}/[*]/config-lang.
in) ;;
8789 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8790 if test "x$lang_alias" = x
8792 echo "$lang doesn't set \$language." 1>&2
8795 if test x
"${enable_languages}" = xall
; then
8798 case "${enable_languages}" in
8799 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8807 if test x"${add_this_lang}" = xyes; then
8809 ${srcdir}/ada/config-lang.in)
8810 if test x$gnat = xyes ; then
8811 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8815 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8823 # Make gthr-default.h if we have a thread file.
8825 if test $thread_file != single; then
8826 rm -f gthr-default.h
8827 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8828 gthread_flags
=-DHAVE_GTHR_DEFAULT
8832 # Find out what GC implementation we want, or may, use.
8833 # Check whether --with-gc or --without-gc was given.
8834 if test "${with_gc+set}" = set; then
8841 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8845 if test $ac_cv_func_mmap_anywhere = yes \
8846 ||
test $ac_cv_func_valloc = yes; then
8854 echo "Using $GGC for garbage collection."
8856 # Build a new-abi (c++) system
8857 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
8858 if test "${enable_new_gxx_abi+set}" = set; then
8859 enableval
="$enable_new_gxx_abi"
8860 cat >> confdefs.h
<<\EOF
8861 #define ENABLE_NEW_GXX_ABI 1
8864 GXX_ABI_FLAG
='-fnew-abi'
8865 echo "Building a new-abi g++ compiler."
8871 # Build a new-libstdc++ system (ie libstdc++-v3)
8872 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
8873 echo "configure:8874: checking for libstdc++ to install" >&5
8874 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
8875 if test "${enable_libstdcxx_v3+set}" = set; then
8876 enableval
="$enable_libstdcxx_v3"
8877 enable_libstdcxx_v3
=yes
8879 enable_libstdcxx_v3
=no
8883 if test x
$enable_libstdcxx_v3 = xyes
; then
8884 echo "$ac_t""v3" 1>&6
8885 cat >> confdefs.h
<<\EOF
8886 #define ENABLE_STD_NAMESPACE 1
8890 echo "$ac_t""v2" 1>&6
8894 # Make empty files to contain the specs and options for each language.
8895 # Then add #include lines to for a compiler that has specs and/or options.
8900 rm -f specs.h options.h gencheck.h
8901 touch specs.h options.h gencheck.h
8902 for subdir
in .
$subdirs
8904 if test -f $srcdir/$subdir/lang-specs.h
; then
8905 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8906 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8908 if test -f $srcdir/$subdir/lang-options.h
; then
8909 echo "#include \"$subdir/lang-options.h\"" >>options.h
8910 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8912 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8913 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8914 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8918 # These (without "all_") are set in each config-lang.in.
8919 # `language' must be a single word so is spelled singularly.
8925 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
8926 # List of language makefile fragments.
8931 # Add the language fragments.
8932 # Languages are added via two mechanisms. Some information must be
8933 # recorded in makefile variables, these are defined in config-lang.in.
8934 # We accumulate them and plug them into the main Makefile.
8935 # The other mechanism is a set of hooks for each of the main targets
8936 # like `clean', `install', etc.
8938 language_fragments
="Make-lang"
8939 language_hooks
="Make-hooks"
8942 for s
in ..
$subdirs
8954 .
${srcdir}/$s/config-lang.
in
8955 if test "x$language" = x
8957 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8960 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8961 all_languages
="$all_languages $language"
8962 if test "x$boot_language" = xyes
8964 all_boot_languages
="$all_boot_languages $language"
8966 all_compilers
="$all_compilers $compilers"
8967 all_stagestuff
="$all_stagestuff $stagestuff"
8968 all_diff_excludes
="$all_diff_excludes $diff_excludes"
8969 all_headers
="$all_headers $headers"
8970 all_outputs
="$all_outputs $outputs"
8971 if test x
$outputs = x
8973 oldstyle_subdirs
="$oldstyle_subdirs $s"
8975 all_lib2funcs
="$all_lib2funcs $lib2funcs"
8979 # Since we can't use `::' targets, we link each language in
8980 # with a set of hooks, reached indirectly via lang.${target}.
8984 target_list
="all.build all.cross start.encap rest.encap \
8986 install-normal install-common install-info install-man \
8988 mostlyclean clean distclean extraclean maintainer-clean \
8989 stage1 stage2 stage3 stage4"
8990 for t
in $target_list
8993 for lang
in ..
$all_languages
8995 if test $lang != ".."; then
8999 echo "lang.$t: $x" >> Make-hooks
9002 # If we're not building in srcdir, create .gdbinit.
9004 if test ! -f Makefile.
in; then
9005 echo "dir ." > .gdbinit
9006 echo "dir ${srcdir}" >> .gdbinit
9007 if test x
$gdb_needs_out_file_path = xyes
9009 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9011 if test "x$subdirs" != x
; then
9014 echo "dir ${srcdir}/$s" >> .gdbinit
9017 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9020 # Define variables host_canonical and build_canonical
9021 # because some Cygnus local changes in the Makefile depend on them.
9022 build_canonical
=${build}
9023 host_canonical
=${host}
9025 if test "${host}" != "${target}" ; then
9026 target_subdir
=${target}/
9032 # If this is using newlib, then define inhibit_libc in
9033 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9034 # libgcc.a, but that's OK because newib should have its own version of
9037 if test x
$with_newlib = xyes
; then
9038 inhibit_libc
=-Dinhibit_libc
9042 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9043 # absolute path for gcc_tooldir based on inserting the number of up-directory
9044 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9045 # $(libsubdir)/@(unlibsubdir) based path.
9046 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9047 # make and thus we'd get different behavior depending on where we built the
9049 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9050 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9052 # An explanation of the sed strings:
9053 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9054 # -e 's|/$||' match a trailing forward slash and eliminates it
9055 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9056 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9058 # (*) Note this pattern overwrites the first character of the string
9059 # with a forward slash if one is not already present. This is not a
9060 # problem because the exact names of the sub-directories concerned is
9061 # unimportant, just the number of them matters.
9063 # The practical upshot of these patterns is like this:
9065 # prefix exec_prefix result
9066 # ------ ----------- ------
9068 # /foo/ /foo/bar ../
9069 # /foo /foo/bar/ ../
9070 # /foo/ /foo/bar/ ../
9071 # /foo /foo/bar/ugg ../../
9074 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9079 # Nothing to do for FLOAT_H, float_format already handled.
9083 # Process the language and host/target makefile fragments.
9084 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9086 # Substitute configuration variables
9146 # Echo that links are built
9147 if test x
$host = x
$target
9155 if test x
$host != x
$build
9157 str3
=" on a $build system"
9160 if test "x$str2" != x ||
test "x$str3" != x
9165 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9167 if test "x$str2" != x ||
test "x$str3" != x
9169 echo " ${str2}${str3}." 1>&2
9172 # Truncate the target if necessary
9173 if test x
$host_truncate_target != x
; then
9174 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9177 # Configure the subdirectories
9178 # AC_CONFIG_SUBDIRS($subdirs)
9180 # Create the Makefile
9181 # and configure language subdirectories
9183 cat > confcache
<<\EOF
9184 # This file is a shell script that caches the results of configure
9185 # tests run on this system so they can be shared between configure
9186 # scripts and configure runs. It is not useful on other systems.
9187 # If it contains results you don't want to keep, you may remove or edit it.
9189 # By default, configure uses ./config.cache as the cache file,
9190 # creating it if it does not exist already. You can give configure
9191 # the --cache-file=FILE option to use a different cache file; that is
9192 # what configure does when it calls configure scripts in
9193 # subdirectories, so they share the cache.
9194 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9195 # config.status only pays attention to the cache file if you give it the
9196 # --recheck option to rerun configure.
9199 # The following way of writing the cache mishandles newlines in values,
9200 # but we know of no workaround that is simple, portable, and efficient.
9201 # So, don't put newlines in cache variables' values.
9202 # Ultrix sh set writes to stderr and can't be redirected directly,
9203 # and sets the high bit in the cache file unless we assign to the vars.
9205 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9207 # `set' does not quote correctly, so add quotes (double-quote substitution
9208 # turns \\\\ into \\, and sed turns \\ into \).
9210 -e "s/'/'\\\\''/g" \
9211 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9214 # `set' quotes correctly as required by POSIX, so do not add quotes.
9215 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9218 if cmp -s $cache_file confcache
; then
9221 if test -w $cache_file; then
9222 echo "updating cache $cache_file"
9223 cat confcache
> $cache_file
9225 echo "not updating unwritable cache $cache_file"
9230 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9232 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9233 # Let make expand exec_prefix.
9234 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9236 # Any assignment to VPATH causes Sun make to only execute
9237 # the first set of double-colon rules, so remove it if not needed.
9238 # If there is a colon in the path, we need to keep it.
9239 if test "x$srcdir" = x.
; then
9240 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9243 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9245 DEFS
=-DHAVE_CONFIG_H
9247 # Without the "./", some shells look in PATH for config.status.
9248 : ${CONFIG_STATUS=./config.status}
9250 echo creating
$CONFIG_STATUS
9251 rm -f $CONFIG_STATUS
9252 cat > $CONFIG_STATUS <<EOF
9254 # Generated automatically by configure.
9255 # Run this file to recreate the current configuration.
9256 # This directory was configured as follows,
9257 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9259 # $0 $ac_configure_args
9261 # Compiler output produced by configure, useful for debugging
9262 # configure, is in ./config.log if it exists.
9264 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9267 case "\$ac_option" in
9268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9269 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9270 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9271 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9272 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9274 -help | --help | --hel | --he | --h)
9275 echo "\$ac_cs_usage"; exit 0 ;;
9276 *) echo "\$ac_cs_usage"; exit 1 ;;
9280 ac_given_srcdir=$srcdir
9282 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9284 cat >> $CONFIG_STATUS <<EOF
9286 # Protect against being on the right side of a sed subst in config.status.
9287 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9288 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9292 s%@CFLAGS@%$CFLAGS%g
9293 s%@CPPFLAGS@%$CPPFLAGS%g
9294 s%@CXXFLAGS@%$CXXFLAGS%g
9295 s%@FFLAGS@%$FFLAGS%g
9297 s%@LDFLAGS@%$LDFLAGS%g
9299 s%@exec_prefix@%$exec_prefix%g
9300 s%@prefix@%$prefix%g
9301 s%@program_transform_name@%$program_transform_name%g
9302 s%@bindir@%$bindir%g
9303 s%@sbindir@%$sbindir%g
9304 s%@libexecdir@%$libexecdir%g
9305 s%@datadir@%$datadir%g
9306 s%@sysconfdir@%$sysconfdir%g
9307 s%@sharedstatedir@%$sharedstatedir%g
9308 s%@localstatedir@%$localstatedir%g
9309 s%@libdir@%$libdir%g
9310 s%@includedir@%$includedir%g
9311 s%@oldincludedir@%$oldincludedir%g
9312 s%@infodir@%$infodir%g
9313 s%@mandir@%$mandir%g
9315 s%@host_alias@%$host_alias%g
9316 s%@host_cpu@%$host_cpu%g
9317 s%@host_vendor@%$host_vendor%g
9318 s%@host_os@%$host_os%g
9319 s%@target@%$target%g
9320 s%@target_alias@%$target_alias%g
9321 s%@target_cpu@%$target_cpu%g
9322 s%@target_vendor@%$target_vendor%g
9323 s%@target_os@%$target_os%g
9325 s%@build_alias@%$build_alias%g
9326 s%@build_cpu@%$build_cpu%g
9327 s%@build_vendor@%$build_vendor%g
9328 s%@build_os@%$build_os%g
9330 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9331 s%@SET_MAKE@%$SET_MAKE%g
9334 s%@LEXLIB@%$LEXLIB%g
9337 s%@RANLIB@%$RANLIB%g
9339 s%@INSTALL@%$INSTALL%g
9340 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9341 s%@INSTALL_DATA@%$INSTALL_DATA%g
9344 s%@vfprintf@%$vfprintf%g
9345 s%@doprint@%$doprint%g
9346 s%@manext@%$manext%g
9347 s%@objext@%$objext%g
9348 s%@PACKAGE@%$PACKAGE%g
9349 s%@VERSION@%$VERSION%g
9350 s%@ALLOCA@%$ALLOCA%g
9351 s%@USE_NLS@%$USE_NLS%g
9352 s%@MSGFMT@%$MSGFMT%g
9353 s%@GMSGFMT@%$GMSGFMT%g
9354 s%@XGETTEXT@%$XGETTEXT%g
9355 s%@GENCAT@%$GENCAT%g
9356 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9357 s%@CATALOGS@%$CATALOGS%g
9358 s%@CATOBJEXT@%$CATOBJEXT%g
9359 s%@DATADIRNAME@%$DATADIRNAME%g
9360 s%@GMOFILES@%$GMOFILES%g
9361 s%@INSTOBJEXT@%$INSTOBJEXT%g
9362 s%@INTLDEPS@%$INTLDEPS%g
9363 s%@INTLLIBS@%$INTLLIBS%g
9364 s%@INTLOBJS@%$INTLOBJS%g
9365 s%@POFILES@%$POFILES%g
9367 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9369 s%@GT_YES@%$GT_YES%g
9370 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9372 s%@gthread_flags@%$gthread_flags%g
9374 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9375 s%@build_canonical@%$build_canonical%g
9376 s%@host_canonical@%$host_canonical%g
9377 s%@target_subdir@%$target_subdir%g
9378 s%@inhibit_libc@%$inhibit_libc%g
9379 s%@gcc_tooldir@%$gcc_tooldir%g
9380 s%@dollar@%$dollar%g
9381 s%@objdir@%$objdir%g
9382 s%@subdirs@%$subdirs%g
9383 s%@all_boot_languages@%$all_boot_languages%g
9384 s%@all_compilers@%$all_compilers%g
9385 s%@all_diff_excludes@%$all_diff_excludes%g
9386 s%@all_headers@%$all_headers%g
9387 s%@all_lang_makefiles@%$all_lang_makefiles%g
9388 s%@all_languages@%$all_languages%g
9389 s%@all_lib2funcs@%$all_lib2funcs%g
9390 s%@all_stagestuff@%$all_stagestuff%g
9391 s%@build_exeext@%$build_exeext%g
9392 s%@build_install_headers_dir@%$build_install_headers_dir%g
9393 s%@build_xm_file_list@%$build_xm_file_list%g
9394 s%@cc_set_by_configure@%$cc_set_by_configure%g
9395 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9396 s%@cpp_install_dir@%$cpp_install_dir%g
9397 s%@cpp_main@%$cpp_main%g
9398 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9399 s%@dep_tmake_file@%$dep_tmake_file%g
9400 s%@extra_c_flags@%$extra_c_flags%g
9401 s%@extra_c_objs@%$extra_c_objs%g
9402 s%@extra_cpp_objs@%$extra_cpp_objs%g
9403 s%@extra_cxx_objs@%$extra_cxx_objs%g
9404 s%@extra_headers_list@%$extra_headers_list%g
9405 s%@extra_objs@%$extra_objs%g
9406 s%@extra_parts@%$extra_parts%g
9407 s%@extra_passes@%$extra_passes%g
9408 s%@extra_programs@%$extra_programs%g
9409 s%@float_h_file@%$float_h_file%g
9410 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9411 s%@gcc_version@%$gcc_version%g
9412 s%@gcc_version_trigger@%$gcc_version_trigger%g
9413 s%@host_exeext@%$host_exeext%g
9414 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9415 s%@host_xm_file_list@%$host_xm_file_list%g
9416 s%@install@%$install%g
9417 s%@lang_options_files@%$lang_options_files%g
9418 s%@lang_specs_files@%$lang_specs_files%g
9419 s%@lang_tree_files@%$lang_tree_files%g
9420 s%@local_prefix@%$local_prefix%g
9421 s%@maybe_use_collect2@%$maybe_use_collect2%g
9422 s%@md_file@%$md_file%g
9423 s%@objc_boehm_gc@%$objc_boehm_gc%g
9424 s%@out_file@%$out_file%g
9425 s%@out_object_file@%$out_object_file%g
9426 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9427 s%@symbolic_link@%$symbolic_link%g
9428 s%@thread_file@%$thread_file%g
9429 s%@tm_file_list@%$tm_file_list%g
9430 s%@will_use_collect2@%$will_use_collect2%g
9431 /@target_overrides@/r $target_overrides
9432 s%@target_overrides@%%g
9433 /@host_overrides@/r $host_overrides
9434 s%@host_overrides@%%g
9435 s%@cross_defines@%$cross_defines%g
9436 /@cross_overrides@/r $cross_overrides
9437 s%@cross_overrides@%%g
9438 /@build_overrides@/r $build_overrides
9439 s%@build_overrides@%%g
9440 /@language_fragments@/r $language_fragments
9441 s%@language_fragments@%%g
9442 /@language_hooks@/r $language_hooks
9443 s%@language_hooks@%%g
9448 cat >> $CONFIG_STATUS <<\EOF
9450 # Split the substitutions into bite-sized pieces for seds with
9451 # small command number limits, like on Digital OSF/1 and HP-UX.
9452 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9453 ac_file
=1 # Number of current file.
9454 ac_beg
=1 # First line for current file.
9455 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9458 while $ac_more_lines; do
9459 if test $ac_beg -gt 1; then
9460 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9462 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9464 if test ! -s conftest.s
$ac_file; then
9466 rm -f conftest.s
$ac_file
9468 if test -z "$ac_sed_cmds"; then
9469 ac_sed_cmds
="sed -f conftest.s$ac_file"
9471 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9473 ac_file
=`expr $ac_file + 1`
9475 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9478 if test -z "$ac_sed_cmds"; then
9483 cat >> $CONFIG_STATUS <<EOF
9485 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9487 cat >> $CONFIG_STATUS <<\EOF
9488 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9491 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9492 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9493 *) ac_file_in
="${ac_file}.in" ;;
9496 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9498 # Remove last slash and all that follows it. Not all systems have dirname.
9499 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9500 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9501 # The file is in a subdirectory.
9502 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9503 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9504 # A "../" for each directory in $ac_dir_suffix.
9505 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9507 ac_dir_suffix
= ac_dots
=
9510 case "$ac_given_srcdir" in
9512 if test -z "$ac_dots"; then top_srcdir
=.
9513 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9514 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9516 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9517 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9521 echo creating
"$ac_file"
9523 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9525 *Makefile
*) ac_comsub
="1i\\
9526 # $configure_input" ;;
9530 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9532 s%@configure_input@%$configure_input%g
9533 s%@srcdir@%$srcdir%g
9534 s%@top_srcdir@%$top_srcdir%g
9535 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9539 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9540 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9542 # ac_d sets the value in "#define NAME VALUE" lines.
9543 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9544 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9547 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9548 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9549 ac_uB
='\([ ]\)%\1#\2define\3'
9552 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9553 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9554 ac_eB
='$%\1#\2define\3'
9558 if test "${CONFIG_HEADERS+set}" != set; then
9560 cat >> $CONFIG_STATUS <<EOF
9561 CONFIG_HEADERS="auto-host.h:config.in"
9563 cat >> $CONFIG_STATUS <<\EOF
9565 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9568 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9569 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9570 *) ac_file_in
="${ac_file}.in" ;;
9573 echo creating
$ac_file
9575 rm -f conftest.frag conftest.
in conftest.out
9576 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9577 cat $ac_file_inputs > conftest.
in
9581 # Transform confdefs.h into a sed script conftest.vals that substitutes
9582 # the proper values into config.h.in to produce config.h. And first:
9583 # Protect against being on the right side of a sed subst in config.status.
9584 # Protect against being in an unquoted here document in config.status.
9586 cat > conftest.hdr
<<\EOF
9589 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9593 sed -n -f conftest.hdr confdefs.h > conftest.vals
9596 # This sed command replaces #undef with comments. This is necessary, for
9597 # example, in the case of _POSIX_SOURCE, which is predefined and required
9598 # on some systems where configure will not decide to define it.
9599 cat >> conftest.vals <<\EOF
9600 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9603 # Break up conftest.vals because some shells have a limit on
9604 # the size of here documents, and old seds have small limits too.
9609 ac_lines=`grep -c . conftest.vals
`
9610 # grep -c gives empty output for an empty file on some AIX systems.
9611 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9612 # Write a limited-size here document to conftest.frag.
9613 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9614 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9616 sed -f conftest.frag conftest.in > conftest.out
9618 mv conftest.out conftest.in
9620 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9622 mv conftest.tail conftest.vals
9626 cat >> $CONFIG_STATUS <<\EOF
9627 rm -f conftest.frag conftest.h
9628 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9629 cat conftest.in >> conftest.h
9631 if cmp -s $ac_file conftest.h 2>/dev/null; then
9632 echo "$ac_file is unchanged"
9635 # Remove last slash and all that follows it. Not all systems have dirname.
9636 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9637 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9638 # The file is in a subdirectory.
9639 test ! -d "$ac_dir" && mkdir "$ac_dir"
9642 mv conftest.h $ac_file
9648 cat >> $CONFIG_STATUS <<EOF
9649 ac_sources="$nls_cv_header_libgt"
9650 ac_dests="$nls_cv_header_intl"
9653 cat >> $CONFIG_STATUS <<\EOF
9654 srcdir=$ac_given_srcdir
9655 while test -n "$ac_sources"; do
9656 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9657 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9659 echo "linking $srcdir/$ac_source to $ac_dest"
9661 if test ! -r $srcdir/$ac_source; then
9662 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9666 # Make relative symlinks.
9667 # Remove last slash and all that follows it. Not all systems have dirname.
9668 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9669 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9670 # The dest file is in a subdirectory.
9671 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9672 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9673 # A "../" for each directory in $ac_dest_dir_suffix.
9674 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9676 ac_dest_dir_suffix= ac_dots=
9680 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9681 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9684 # Make a symlink if possible; otherwise try a hard link.
9685 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9686 ln $srcdir/$ac_source $ac_dest; then :
9688 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9692 cat >> $CONFIG_STATUS <<EOF
9698 target_alias='${target_alias}'
9700 subdirs='${subdirs}'
9701 oldstyle_subdirs='${oldstyle_subdirs}'
9702 symbolic_link='${symbolic_link}'
9703 program_transform_set='${program_transform_set}'
9704 program_transform_name='${program_transform_name}'
9705 dep_host_xmake_file='${dep_host_xmake_file}'
9706 host_xmake_file='${host_xmake_file}'
9707 dep_tmake_file='${dep_tmake_file}'
9708 tmake_file='${tmake_file}'
9709 thread_file='${thread_file}'
9710 gcc_version='${gcc_version}'
9711 gcc_version_trigger='${gcc_version_trigger}'
9712 local_prefix='${local_prefix}'
9713 build_install_headers_dir='${build_install_headers_dir}'
9714 build_exeext='${build_exeext}'
9715 host_exeext='${host_exeext}'
9716 out_file='${out_file}'
9717 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9718 SET_MAKE='${SET_MAKE}'
9719 target_list='${target_list}'
9720 target_overrides='${target_overrides}'
9721 host_overrides='${host_overrides}'
9722 cross_defines='${cross_defines}'
9723 cross_overrides='${cross_overrides}'
9724 build_overrides='${build_overrides}'
9725 cpp_install_dir='${cpp_install_dir}'
9728 cat >> $CONFIG_STATUS <<\EOF
9729 case "$CONFIG_FILES" in *po/Makefile.in*)
9730 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9733 . $srcdir/configure.lang
9734 case x$CONFIG_HEADERS in
9735 xauto-host.h:config.in)
9738 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9739 # bootstrapping and the installation procedure can still use
9740 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9741 # FLAGS_TO_PASS has been modified to solve the problem there.
9742 # This is virtually a duplicate of what happens in configure.lang; we do
9743 # an extra check to make sure this only happens if ln -s can be used.
9744 if test "$symbolic_link" = "ln -s"; then
9745 for d in .. ${subdirs} ; do
9746 if test $d != ..; then
9749 for t in stage1 stage2 stage3 stage4 include
9752 $symbolic_link ../$t $t 2>/dev/null
9758 # Avoid having to add intl to our include paths.
9759 if test -f intl/libintl.h; then
9760 echo creating libintl.h
9761 echo '#include "intl/libintl.h"' >libintl.h
9766 chmod +x $CONFIG_STATUS
9767 rm -fr confdefs* $ac_clean_files
9768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1