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 enable expensive run-time checks."
34 --disable-cpp don't provide a user-visible C preprocessor."
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
40 --enable-cpplib use cpplib for the C preprocessor."
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
45 --disable-fast-fixincludes
46 Disable the new fast fixincludes.
47 Run the old fixincludes script unconditionally"
49 --enable-c-mbchar Enable multibyte characters for C and C++."
51 --enable-threads enable thread usage for target GCC.
52 --enable-threads=LIB use LIB thread package for target GCC."
54 --enable-objc-gc enable the use of Boehm's garbage collector with
55 the GNU Objective-C runtime."
57 --enable-dwarf2 enable DWARF2 debugging as default."
59 --enable-nls use Native Language Support (disabled by default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
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 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=tree.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
588 symbolic_link
='ln -s'
591 # Check for bogus environment variables.
592 # Test if LIBRARY_PATH contains the notation for the current directory
593 # since this would lead to problems installing/building glibc.
594 # LIBRARY_PATH contains the current directory if one of the following
596 # - one of the terminals (":" and ";") is the first or last sign
597 # - two terminals occur directly after each other
598 # - the path contains an element with a dot in it
599 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
600 echo "configure:601: checking LIBRARY_PATH variable" >&5
601 case ${LIBRARY_PATH} in
602 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
603 library_path_setting
="contains current directory"
606 library_path_setting
="ok"
609 echo "$ac_t""$library_path_setting" 1>&6
610 if test "$library_path_setting" != "ok"; then
611 { echo "configure: error:
612 *** LIBRARY_PATH shouldn't contain the current directory when
613 *** building gcc. Please change the environment variable
614 *** and run configure again." 1>&2; exit 1; }
617 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
618 # since this would lead to problems installing/building glibc.
619 # GCC_EXEC_PREFIX contains the current directory if one of the following
621 # - one of the terminals (":" and ";") is the first or last sign
622 # - two terminals occur directly after each other
623 # - the path contains an element with a dot in it
624 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
625 echo "configure:626: checking GCC_EXEC_PREFIX variable" >&5
626 case ${GCC_EXEC_PREFIX} in
627 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
628 gcc_exec_prefix_setting
="contains current directory"
631 gcc_exec_prefix_setting
="ok"
634 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
635 if test "$gcc_exec_prefix_setting" != "ok"; then
636 { echo "configure: error:
637 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
638 *** building gcc. Please change the environment variable
639 *** and run configure again." 1>&2; exit 1; }
642 # Check for additional parameters
645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
646 if test "${with_gnu_ld+set}" = set; then
647 withval
="$with_gnu_ld"
648 gnu_ld_flag
="$with_gnu_ld"
654 # With pre-defined ld
655 # Check whether --with-ld or --without-ld was given.
656 if test "${with_ld+set}" = set; then
658 DEFAULT_LINKER
="$with_ld"
661 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
662 if test ! -x "$DEFAULT_LINKER"; then
663 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
664 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
667 cat >> confdefs.h
<<EOF
668 #define DEFAULT_LINKER "$DEFAULT_LINKER"
674 # Check whether --with-gnu-as or --without-gnu-as was given.
675 if test "${with_gnu_as+set}" = set; then
676 withval
="$with_gnu_as"
677 gas_flag
="$with_gnu_as"
683 # Check whether --with-as or --without-as was given.
684 if test "${with_as+set}" = set; then
686 DEFAULT_ASSEMBLER
="$with_as"
689 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
690 if test ! -x "$DEFAULT_ASSEMBLER"; then
691 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
692 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
695 cat >> confdefs.h
<<EOF
696 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
702 # Check whether --with-stabs or --without-stabs was given.
703 if test "${with_stabs+set}" = set; then
704 withval
="$with_stabs"
712 # Check whether --with-elf or --without-elf was given.
713 if test "${with_elf+set}" = set; then
721 # Specify the local prefix
723 # Check whether --with-local-prefix or --without-local-prefix was given.
724 if test "${with_local_prefix+set}" = set; then
725 withval
="$with_local_prefix"
727 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
729 *) local_prefix
=$with_local_prefix ;;
734 # Default local prefix if it is empty
735 if test x
$local_prefix = x
; then
736 local_prefix
=/usr
/local
739 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
740 # passed in by the toplevel make and thus we'd get different behavior
741 # depending on where we built the sources.
743 # Specify the g++ header file directory
744 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
745 if test "${with_gxx_include_dir+set}" = set; then
746 withval
="$with_gxx_include_dir"
748 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
750 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
755 if test x
${gcc_gxx_include_dir} = x
; then
756 if test x
${enable_version_specific_runtime_libs} = xyes
; then
757 gcc_gxx_include_dir
='${libsubdir}/include/g++'
759 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
760 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
764 # Enable expensive internal checks
765 # Check whether --enable-checking or --disable-checking was given.
766 if test "${enable_checking+set}" = set; then
767 enableval
="$enable_checking"
768 case "${enableval}" in
769 yes) cat >> confdefs.h
<<\EOF
770 #define ENABLE_CHECKING 1
774 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
779 # Check whether --enable-cpp or --disable-cpp was given.
780 if test "${enable_cpp+set}" = set; then
781 enableval
="$enable_cpp"
788 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
789 if test "${with_cpp_install_dir+set}" = set; then
790 withval
="$with_cpp_install_dir"
791 if test x
$withval = xyes
; then
792 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
793 elif test x
$withval != xno
; then
794 cpp_install_dir
=$withval
799 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
801 # Check whether --enable-cpplib or --disable-cpplib was given.
802 if test "${enable_cpplib+set}" = set; then
803 enableval
="$enable_cpplib"
804 if test x
$enable_cpplib != xno
; then
810 # Link cpplib into the compiler proper, for C/C++/ObjC.
811 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
812 if test "${enable_c_cpplib+set}" = set; then
813 enableval
="$enable_c_cpplib"
814 if test x
$enable_c_cpplib != xno
; then
815 extra_c_objs
="${extra_c_objs} libcpp.a"
816 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
817 extra_c_flags
="${extra_c_flags} -DUSE_CPPLIB=1"
823 # Disable fast fixincludes
824 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
825 if test "${enable_fast_fixincludes+set}" = set; then
826 enableval
="$enable_fast_fixincludes"
827 if test x
$enable_fast_fixincludes = xno
; then
828 cp $srcdir/fixincludes .
/fixinc.sh
833 # Enable Multibyte Characters for C/C++
834 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
835 if test "${enable_c_mbchar+set}" = set; then
836 enableval
="$enable_c_mbchar"
837 if [ x
$enable_c_mbchar != xno
]; then
838 extra_c_flags
=-DMULTIBYTE_CHARS=1
844 # Pass with no value to take the default
845 # Pass with a value to specify a thread package
846 # Check whether --enable-threads or --disable-threads was given.
847 if test "${enable_threads+set}" = set; then
848 enableval
="$enable_threads"
849 if test x
$enable_threads = xno
; then
857 enable_threads_flag
=$enable_threads
858 # Check if a valid thread package
859 case x
${enable_threads_flag} in
862 target_thread_file
='single'
866 target_thread_file
=''
868 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
869 xsolaris | xwin32 | xdce | xvxworks
)
870 target_thread_file
=$enable_threads_flag
873 echo "$enable_threads is an unknown thread package" 1>&2
878 # Check whether --enable-objc-gc or --disable-objc-gc was given.
879 if test "${enable_objc_gc+set}" = set; then
880 enableval
="$enable_objc_gc"
881 if [ x
$enable_objc_gc = xno
]; then
891 # Check whether --with-dwarf2 or --without-dwarf2 was given.
892 if test "${with_dwarf2+set}" = set; then
893 withval
="$with_dwarf2"
894 dwarf2
="$with_dwarf2"
900 # Determine the host, build, and target systems
902 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
903 if test -f $ac_dir/install-sh
; then
905 ac_install_sh
="$ac_aux_dir/install-sh -c"
907 elif test -f $ac_dir/install.sh
; then
909 ac_install_sh
="$ac_aux_dir/install.sh -c"
913 if test -z "$ac_aux_dir"; then
914 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
916 ac_config_guess
=$ac_aux_dir/config.guess
917 ac_config_sub
=$ac_aux_dir/config.sub
918 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
921 # Do some error checking and defaulting for the host and target type.
923 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
926 # 1. You are not allowed to specify --host, --target, and nonopt at the
928 # 2. Host defaults to nonopt.
929 # 3. If nonopt is not specified, then host defaults to the current host,
930 # as determined by config.guess.
931 # 4. Target and build default to nonopt.
932 # 5. If nonopt is not specified, then target and build default to host.
934 # The aliases save the names the user supplied, while $host etc.
935 # will get canonicalized.
936 case $host---$target---$nonopt in
937 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
938 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
942 # Make sure we can run config.sub.
943 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
944 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
947 echo $ac_n "checking host system type""... $ac_c" 1>&6
948 echo "configure:949: checking host system type" >&5
951 case "$host_alias" in
955 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
956 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
958 *) host_alias
=$nonopt ;;
962 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
963 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
964 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
965 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
966 echo "$ac_t""$host" 1>&6
968 echo $ac_n "checking target system type""... $ac_c" 1>&6
969 echo "configure:970: checking target system type" >&5
972 case "$target_alias" in
975 NONE
) target_alias
=$host_alias ;;
976 *) target_alias
=$nonopt ;;
980 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
981 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
984 echo "$ac_t""$target" 1>&6
986 echo $ac_n "checking build system type""... $ac_c" 1>&6
987 echo "configure:988: checking build system type" >&5
990 case "$build_alias" in
993 NONE
) build_alias
=$host_alias ;;
994 *) build_alias
=$nonopt ;;
998 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
999 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1000 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1001 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1002 echo "$ac_t""$build" 1>&6
1004 test "$host_alias" != "$target_alias" &&
1005 test "$program_prefix$program_suffix$program_transform_name" = \
1007 program_prefix
=${target_alias}-
1010 # Find the native compiler
1011 # Extract the first word of "gcc", so it can be a program name with args.
1012 set dummy gcc
; ac_word
=$2
1013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1014 echo "configure:1015: checking for $ac_word" >&5
1015 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 if test -n "$CC"; then
1019 ac_cv_prog_CC
="$CC" # Let the user override the test.
1021 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1023 for ac_dir
in $ac_dummy; do
1024 test -z "$ac_dir" && ac_dir
=.
1025 if test -f $ac_dir/$ac_word; then
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1037 echo "$ac_t""no" 1>&6
1040 if test -z "$CC"; then
1041 # Extract the first word of "cc", so it can be a program name with args.
1042 set dummy cc
; ac_word
=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 if test -n "$CC"; then
1049 ac_cv_prog_CC
="$CC" # Let the user override the test.
1051 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1054 for ac_dir
in $ac_dummy; do
1055 test -z "$ac_dir" && ac_dir
=.
1056 if test -f $ac_dir/$ac_word; then
1057 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1058 ac_prog_rejected
=yes
1066 if test $ac_prog_rejected = yes; then
1067 # We found a bogon in the path, so make sure we never use it.
1068 set dummy
$ac_cv_prog_CC
1070 if test $# -gt 0; then
1071 # We chose a different compiler from the bogus one.
1072 # However, it has the same basename, so the bogon will be chosen
1073 # first if we set CC to just the basename; use the full file name.
1075 set dummy
"$ac_dir/$ac_word" "$@"
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 case "`uname -s`" in
1092 # Extract the first word of "cl", so it can be a program name with args.
1093 set dummy cl
; ac_word
=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 if test -n "$CC"; then
1100 ac_cv_prog_CC
="$CC" # Let the user override the test.
1102 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1104 for ac_dir
in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir
=.
1106 if test -f $ac_dir/$ac_word; then
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1118 echo "$ac_t""no" 1>&6
1123 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1126 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1131 ac_cpp
='$CPP $CPPFLAGS'
1132 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1133 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1134 cross_compiling
=$ac_cv_prog_cc_cross
1136 cat > conftest.
$ac_ext << EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1143 if { (eval echo configure
:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1144 ac_cv_prog_cc_works
=yes
1145 # If we can't run a trivial program, we are probably using a cross compiler.
1146 if (.
/conftest
; exit) 2>/dev
/null
; then
1147 ac_cv_prog_cc_cross
=no
1149 ac_cv_prog_cc_cross
=yes
1152 echo "configure: failed program was:" >&5
1153 cat conftest.
$ac_ext >&5
1154 ac_cv_prog_cc_works
=no
1158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1159 ac_cpp
='$CPP $CPPFLAGS'
1160 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1161 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1162 cross_compiling
=$ac_cv_prog_cc_cross
1164 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1165 if test $ac_cv_prog_cc_works = no
; then
1166 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1168 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1170 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1171 cross_compiling
=$ac_cv_prog_cc_cross
1173 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether we are using GNU C" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 cat > conftest.c
<<EOF
1183 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1190 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1192 if test $ac_cv_prog_gcc = yes; then
1198 ac_test_CFLAGS
="${CFLAGS+set}"
1199 ac_save_CFLAGS
="$CFLAGS"
1201 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether ${CC-cc} accepts -g" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 echo 'void f(){}' > conftest.c
1207 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1216 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1217 if test "$ac_test_CFLAGS" = set; then
1218 CFLAGS
="$ac_save_CFLAGS"
1219 elif test $ac_cv_prog_cc_g = yes; then
1220 if test "$GCC" = yes; then
1226 if test "$GCC" = yes; then
1233 echo $ac_n "checking for long double""... $ac_c" 1>&6
1234 echo "configure:1235: checking for long double" >&5
1235 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 if test "$GCC" = yes; then
1239 gcc_cv_c_long_double
=yes
1241 cat > conftest.
$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1246 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1247 long double foo = 0.0;
1248 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1249 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1252 if { (eval echo configure
:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1254 gcc_cv_c_long_double
=yes
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 gcc_cv_c_long_double
=no
1265 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1266 if test $gcc_cv_c_long_double = yes; then
1267 cat >> confdefs.h
<<\EOF
1268 #define HAVE_LONG_DOUBLE 1
1274 # If the native compiler is GCC, we can enable warnings even in stage1.
1275 # That's useful for people building cross-compilers, or just running a
1277 if test "x$GCC" = "xyes"; then
1278 stage1_warn_cflags
='$(WARN_CFLAGS)'
1280 stage1_warn_cflags
=""
1284 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ${MAKE-make} sets \${MAKE}" >&5
1286 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1287 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 cat > conftestmake
<<\EOF
1292 @
echo 'ac_maketemp="${MAKE}"'
1294 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1295 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1296 if test -n "$ac_maketemp"; then
1297 eval ac_cv_prog_make_
${ac_make}_set
=yes
1299 eval ac_cv_prog_make_
${ac_make}_set
=no
1303 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1307 echo "$ac_t""no" 1>&6
1308 SET_MAKE
="MAKE=${MAKE-make}"
1312 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether a default assembler was specified" >&5
1314 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1315 if test x
"$gas_flag" = x
"no"; then
1316 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1318 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether a default linker was specified" >&5
1326 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1327 if test x
"$gnu_ld_flag" = x
"no"; then
1328 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1330 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1333 echo "$ac_t""no" 1>&6
1336 # Find some useful tools
1337 for ac_prog
in mawk gawk nawk
awk
1339 # Extract the first word of "$ac_prog", so it can be a program name with args.
1340 set dummy
$ac_prog; ac_word
=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 if test -n "$AWK"; then
1347 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1349 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1351 for ac_dir
in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir
=.
1353 if test -f $ac_dir/$ac_word; then
1354 ac_cv_prog_AWK
="$ac_prog"
1361 AWK
="$ac_cv_prog_AWK"
1362 if test -n "$AWK"; then
1363 echo "$ac_t""$AWK" 1>&6
1365 echo "$ac_t""no" 1>&6
1368 test -n "$AWK" && break
1371 # Extract the first word of "flex", so it can be a program name with args.
1372 set dummy flex
; ac_word
=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test -n "$LEX"; then
1379 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1381 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1383 for ac_dir
in $ac_dummy; do
1384 test -z "$ac_dir" && ac_dir
=.
1385 if test -f $ac_dir/$ac_word; then
1386 ac_cv_prog_LEX
="flex"
1391 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1394 LEX
="$ac_cv_prog_LEX"
1395 if test -n "$LEX"; then
1396 echo "$ac_t""$LEX" 1>&6
1398 echo "$ac_t""no" 1>&6
1401 if test -z "$LEXLIB"
1407 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1408 echo "configure:1409: checking for yywrap in -l$ac_lib" >&5
1409 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 ac_save_LIBS
="$LIBS"
1414 LIBS
="-l$ac_lib $LIBS"
1415 cat > conftest.
$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1418 /* Override any gcc2 internal prototype to avoid an error. */
1419 /* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1427 if { (eval echo configure
:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1429 eval "ac_cv_lib_$ac_lib_var=yes"
1431 echo "configure: failed program was:" >&5
1432 cat conftest.
$ac_ext >&5
1434 eval "ac_cv_lib_$ac_lib_var=no"
1437 LIBS
="$ac_save_LIBS"
1440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1449 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether ln works" >&5
1451 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 rm -f conftestdata_t
1455 echo >conftestdata_f
1456 if ln conftestdata_f conftestdata_t
2>/dev
/null
1460 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1462 gcc_cv_prog_LN
="ln -s"
1467 rm -f conftestdata_f conftestdata_t
1470 LN
="$gcc_cv_prog_LN"
1471 if test "$gcc_cv_prog_LN" = "ln"; then
1472 echo "$ac_t""yes" 1>&6
1474 if test "$gcc_cv_prog_LN" = "ln -s"; then
1475 echo "$ac_t""no, using ln -s" 1>&6
1477 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1481 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether ln -s works" >&5
1483 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 rm -f conftestdata_t
1487 echo >conftestdata_f
1488 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1490 gcc_cv_prog_LN_S
="ln -s"
1492 if ln conftestdata_f conftestdata_t
2>/dev
/null
1499 rm -f conftestdata_f conftestdata_t
1502 LN_S
="$gcc_cv_prog_LN_S"
1503 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1504 echo "$ac_t""yes" 1>&6
1506 if test "$gcc_cv_prog_LN_S" = "ln"; then
1507 echo "$ac_t""no, using ln" 1>&6
1509 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1513 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1514 echo "configure:1515: checking for volatile" >&5
1515 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 cat > conftest.
$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1526 if { (eval echo configure
:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1528 gcc_cv_c_volatile
=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 gcc_cv_c_volatile
=no
1538 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1539 if test $gcc_cv_c_volatile = yes ; then
1540 cat >> confdefs.h
<<\EOF
1541 #define HAVE_VOLATILE 1
1546 # Extract the first word of "ranlib", so it can be a program name with args.
1547 set dummy ranlib
; ac_word
=$2
1548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_word" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 if test -n "$RANLIB"; then
1554 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1556 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1558 for ac_dir
in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir
=.
1560 if test -f $ac_dir/$ac_word; then
1561 ac_cv_prog_RANLIB
="ranlib"
1566 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1569 RANLIB
="$ac_cv_prog_RANLIB"
1570 if test -n "$RANLIB"; then
1571 echo "$ac_t""$RANLIB" 1>&6
1573 echo "$ac_t""no" 1>&6
1576 for ac_prog
in 'bison -y' byacc
1578 # Extract the first word of "$ac_prog", so it can be a program name with args.
1579 set dummy
$ac_prog; ac_word
=$2
1580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1581 echo "configure:1582: checking for $ac_word" >&5
1582 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 if test -n "$YACC"; then
1586 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1588 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1590 for ac_dir
in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir
=.
1592 if test -f $ac_dir/$ac_word; then
1593 ac_cv_prog_YACC
="$ac_prog"
1600 YACC
="$ac_cv_prog_YACC"
1601 if test -n "$YACC"; then
1602 echo "$ac_t""$YACC" 1>&6
1604 echo "$ac_t""no" 1>&6
1607 test -n "$YACC" && break
1609 test -n "$YACC" || YACC
="yacc"
1611 # Find a good install program. We prefer a C program (faster),
1612 # so one script is as good as another. But avoid the broken or
1613 # incompatible versions:
1614 # SysV /etc/install, /usr/sbin/install
1615 # SunOS /usr/etc/install
1616 # IRIX /sbin/install
1618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1620 # ./install, which can be erroneously created by make from ./install.sh.
1621 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1622 echo "configure:1623: checking for a BSD compatible install" >&5
1623 if test -z "$INSTALL"; then
1624 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1628 for ac_dir
in $PATH; do
1629 # Account for people who put trailing slashes in PATH elements.
1631 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1633 # OSF1 and SCO ODT 3.0 have their own names for install.
1634 for ac_prog
in ginstall scoinst
install; do
1635 if test -f $ac_dir/$ac_prog; then
1636 if test $ac_prog = install &&
1637 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1638 # AIX install. It has an incompatible calling convention.
1639 # OSF/1 installbsd also uses dspmsg, but is usable.
1642 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1653 if test "${ac_cv_path_install+set}" = set; then
1654 INSTALL
="$ac_cv_path_install"
1656 # As a last resort, use the slow shell script. We don't cache a
1657 # path for INSTALL within a source directory, because that will
1658 # break other packages using the cache if that directory is
1659 # removed, or if the path is relative.
1660 INSTALL
="$ac_install_sh"
1663 echo "$ac_t""$INSTALL" 1>&6
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1669 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1672 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1673 echo "configure:1674: checking how to run the C preprocessor" >&5
1674 # On Suns, sometimes $CPP names a directory.
1675 if test -n "$CPP" && test -d "$CPP"; then
1678 if test -z "$CPP"; then
1679 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 # This must be in double quotes, not single quotes, because CPP may get
1683 # substituted into the Makefile and "${CC-cc}" will confuse make.
1685 # On the NeXT, cc -E runs the code through the compiler's parser,
1686 # not just through cpp.
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure
:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1696 if test -z "$ac_err"; then
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 CPP
="${CC-cc} -E -traditional-cpp"
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure
:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1713 if test -z "$ac_err"; then
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 CPP
="${CC-cc} -nologo -E"
1721 cat > conftest.
$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1728 { (eval echo configure
:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1730 if test -z "$ac_err"; then
1734 echo "configure: failed program was:" >&5
1735 cat conftest.
$ac_ext >&5
1744 ac_cv_prog_CPP
="$CPP"
1746 CPP
="$ac_cv_prog_CPP"
1748 ac_cv_prog_CPP
="$CPP"
1750 echo "$ac_t""$CPP" 1>&6
1752 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1753 echo "configure:1754: checking for ANSI C header files" >&5
1754 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 cat > conftest.
$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1765 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure
:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1768 if test -z "$ac_err"; then
1770 ac_cv_header_stdc
=yes
1773 echo "configure: failed program was:" >&5
1774 cat conftest.
$ac_ext >&5
1776 ac_cv_header_stdc
=no
1780 if test $ac_cv_header_stdc = yes; then
1781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1782 cat > conftest.
$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1788 egrep "memchr" >/dev
/null
2>&1; then
1792 ac_cv_header_stdc
=no
1798 if test $ac_cv_header_stdc = yes; then
1799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1800 cat > conftest.
$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1806 egrep "free" >/dev
/null
2>&1; then
1810 ac_cv_header_stdc
=no
1816 if test $ac_cv_header_stdc = yes; then
1817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1818 if test "$cross_compiling" = yes; then
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1825 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1826 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1828 int main () { int i; for (i = 0; i < 256; i++)
1829 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1833 if { (eval echo configure
:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 ac_cv_header_stdc
=no
1848 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1849 if test $ac_cv_header_stdc = yes; then
1850 cat >> confdefs.h
<<\EOF
1851 #define STDC_HEADERS 1
1856 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1857 echo "configure:1858: checking whether time.h and sys/time.h may both be included" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <sys/types.h>
1865 #include <sys/time.h>
1871 if { (eval echo configure
:1872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1873 ac_cv_header_time
=yes
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 ac_cv_header_time
=no
1883 echo "$ac_t""$ac_cv_header_time" 1>&6
1884 if test $ac_cv_header_time = yes; then
1885 cat >> confdefs.h
<<\EOF
1886 #define TIME_WITH_SYS_TIME 1
1891 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1892 echo "configure:1893: checking whether string.h and strings.h may both be included" >&5
1893 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 cat > conftest.
$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1900 #include <strings.h>
1905 if { (eval echo configure
:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1907 gcc_cv_header_string
=yes
1909 echo "configure: failed program was:" >&5
1910 cat conftest.
$ac_ext >&5
1912 gcc_cv_header_string
=no
1917 echo "$ac_t""$gcc_cv_header_string" 1>&6
1918 if test $gcc_cv_header_string = yes; then
1919 cat >> confdefs.h
<<\EOF
1920 #define STRING_WITH_STRINGS 1
1925 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1926 echo "configure:1927: checking for sys/wait.h that is POSIX.1 compatible" >&5
1927 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 cat > conftest.
$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 #include <sys/types.h>
1934 #include <sys/wait.h>
1936 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1939 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1944 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1947 if { (eval echo configure
:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1949 ac_cv_header_sys_wait_h
=yes
1951 echo "configure: failed program was:" >&5
1952 cat conftest.
$ac_ext >&5
1954 ac_cv_header_sys_wait_h
=no
1959 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1960 if test $ac_cv_header_sys_wait_h = yes; then
1961 cat >> confdefs.h
<<\EOF
1962 #define HAVE_SYS_WAIT_H 1
1967 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1968 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1969 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1972 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_hdr" >&5
1975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1983 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure
:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986 if test -z "$ac_err"; then
1988 eval "ac_cv_header_$ac_safe=yes"
1991 echo "configure: failed program was:" >&5
1992 cat conftest.
$ac_ext >&5
1994 eval "ac_cv_header_$ac_safe=no"
1998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2001 cat >> confdefs.h
<<EOF
2002 #define $ac_tr_hdr 1
2006 echo "$ac_t""no" 1>&6
2011 # Check for thread headers.
2012 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2013 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2014 echo "configure:2015: checking for thread.h" >&5
2015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 cat > conftest.
$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2023 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2024 { (eval echo configure
:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2025 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2026 if test -z "$ac_err"; then
2028 eval "ac_cv_header_$ac_safe=yes"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.
$ac_ext >&5
2034 eval "ac_cv_header_$ac_safe=no"
2038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2039 echo "$ac_t""yes" 1>&6
2042 echo "$ac_t""no" 1>&6
2046 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2047 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2048 echo "configure:2049: checking for pthread.h" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 #include <pthread.h>
2057 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2058 { (eval echo configure
:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2059 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2060 if test -z "$ac_err"; then
2062 eval "ac_cv_header_$ac_safe=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_header_$ac_safe=no"
2072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2076 echo "$ac_t""no" 1>&6
2081 # See if GNAT has been installed
2082 # Extract the first word of "gnatbind", so it can be a program name with args.
2083 set dummy gnatbind
; ac_word
=$2
2084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2085 echo "configure:2086: checking for $ac_word" >&5
2086 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 if test -n "$gnat"; then
2090 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2094 for ac_dir
in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir
=.
2096 if test -f $ac_dir/$ac_word; then
2097 ac_cv_prog_gnat
="yes"
2102 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2105 gnat
="$ac_cv_prog_gnat"
2106 if test -n "$gnat"; then
2107 echo "$ac_t""$gnat" 1>&6
2109 echo "$ac_t""no" 1>&6
2113 # See if the stage1 system preprocessor understands the ANSI C
2114 # preprocessor stringification operator.
2117 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2118 echo "configure:2119: checking for preprocessor stringizing operator" >&5
2119 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2128 char *s = x(teststring);
2131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2132 egrep "#teststring" >/dev
/null
2>&1; then
2134 ac_cv_c_stringize
=no
2137 ac_cv_c_stringize
=yes
2143 if test "${ac_cv_c_stringize}" = yes
2145 cat >> confdefs.h
<<\EOF
2146 #define HAVE_STRINGIZE 1
2150 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2153 # Use <inttypes.h> only if it exists,
2154 # doesn't clash with <sys/types.h>, and declares intmax_t.
2155 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2156 echo "configure:2157: checking for inttypes.h" >&5
2157 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.
$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #include <sys/types.h>
2164 #include <inttypes.h>
2169 if { (eval echo configure
:2170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 gcc_cv_header_inttypes_h
=yes
2173 echo "configure: failed program was:" >&5
2174 cat conftest.
$ac_ext >&5
2176 gcc_cv_header_inttypes_h
=no
2181 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2182 if test $gcc_cv_header_inttypes_h = yes; then
2183 cat >> confdefs.h
<<\EOF
2184 #define HAVE_INTTYPES_H 1
2189 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2190 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2191 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2192 fputs_unlocked getrusage
2194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_func" >&5
2196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.
$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $ac_func(); below. */
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2212 /* The GNU C library defines this for functions which it implements
2213 to always fail with ENOSYS. Some functions are actually named
2214 something starting with __ and the normal name is an alias. */
2215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2223 if { (eval echo configure
:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2225 eval "ac_cv_func_$ac_func=yes"
2227 echo "configure: failed program was:" >&5
2228 cat conftest.
$ac_ext >&5
2230 eval "ac_cv_func_$ac_func=no"
2235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2238 cat >> confdefs.h
<<EOF
2239 #define $ac_tr_func 1
2243 echo "$ac_t""no" 1>&6
2248 # Make sure wchar_t is available
2249 #AC_CHECK_TYPE(wchar_t, unsigned int)
2251 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2252 echo "configure:2253: checking for vprintf" >&5
2253 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.
$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 /* System header to define __stub macros and hopefully few prototypes,
2260 which can conflict with char vprintf(); below. */
2262 /* Override any gcc2 internal prototype to avoid an error. */
2263 /* We use char because int might match the return type of a gcc2
2264 builtin and then its argument prototype would still apply. */
2269 /* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2280 if { (eval echo configure
:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2282 eval "ac_cv_func_vprintf=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 eval "ac_cv_func_vprintf=no"
2292 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 cat >> confdefs.h
<<\EOF
2295 #define HAVE_VPRINTF 1
2299 echo "$ac_t""no" 1>&6
2302 if test "$ac_cv_func_vprintf" != yes; then
2303 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2304 echo "configure:2305: checking for _doprnt" >&5
2305 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 /* System header to define __stub macros and hopefully few prototypes,
2312 which can conflict with char _doprnt(); below. */
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2321 /* The GNU C library defines this for functions which it implements
2322 to always fail with ENOSYS. Some functions are actually named
2323 something starting with __ and the normal name is an alias. */
2324 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2332 if { (eval echo configure
:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2334 eval "ac_cv_func__doprnt=yes"
2336 echo "configure: failed program was:" >&5
2337 cat conftest.
$ac_ext >&5
2339 eval "ac_cv_func__doprnt=no"
2344 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2345 echo "$ac_t""yes" 1>&6
2346 cat >> confdefs.h
<<\EOF
2347 #define HAVE_DOPRNT 1
2351 echo "$ac_t""no" 1>&6
2358 if test $ac_cv_func_vprintf != yes ; then
2360 if test $ac_cv_func__doprnt != yes ; then
2367 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2368 echo "configure:2369: checking whether the printf functions support %p" >&5
2369 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 if test "$cross_compiling" = yes; then
2373 gcc_cv_func_printf_ptr
=no
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2383 char *p = buf, *q = NULL;
2384 sprintf(buf, "%p", p);
2385 sscanf(buf, "%p", &q);
2389 if { (eval echo configure
:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2391 gcc_cv_func_printf_ptr
=yes
2393 echo "configure: failed program was:" >&5
2394 cat conftest.
$ac_ext >&5
2396 gcc_cv_func_printf_ptr
=no
2401 rm -f core core.
* *.core
2404 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2405 if test $gcc_cv_func_printf_ptr = yes ; then
2406 cat >> confdefs.h
<<\EOF
2407 #define HAVE_PRINTF_PTR 1
2415 # Under some versions of uwin, vfork is notoriously buggy and the test
2416 # can hang configure; on other versions, vfork exists just as a stub.
2417 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2418 ac_cv_func_vfork_works
=no
2421 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2422 echo "configure:2423: checking for pid_t" >&5
2423 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 #include <sys/types.h>
2435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2436 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2438 ac_cv_type_pid_t
=yes
2446 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2447 if test $ac_cv_type_pid_t = no
; then
2448 cat >> confdefs.h
<<\EOF
2454 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2455 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2456 echo "configure:2457: checking for vfork.h" >&5
2457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2466 { (eval echo configure
:2467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2468 if test -z "$ac_err"; then
2470 eval "ac_cv_header_$ac_safe=yes"
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 eval "ac_cv_header_$ac_safe=no"
2480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 cat >> confdefs.h
<<\EOF
2483 #define HAVE_VFORK_H 1
2487 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2491 echo "configure:2492: checking for working vfork" >&5
2492 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 if test "$cross_compiling" = yes; then
2496 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2497 echo "configure:2498: checking for vfork" >&5
2498 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char vfork(); below. */
2507 /* Override any gcc2 internal prototype to avoid an error. */
2508 /* We use char because int might match the return type of a gcc2
2509 builtin and then its argument prototype would still apply. */
2514 /* The GNU C library defines this for functions which it implements
2515 to always fail with ENOSYS. Some functions are actually named
2516 something starting with __ and the normal name is an alias. */
2517 #if defined (__stub_vfork) || defined (__stub___vfork)
2525 if { (eval echo configure
:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2527 eval "ac_cv_func_vfork=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2532 eval "ac_cv_func_vfork=no"
2537 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 /* Thanks to Paul Eggert for this test. */
2551 #include <sys/types.h>
2552 #include <sys/stat.h>
2553 #ifdef HAVE_UNISTD_H
2559 /* On some sparc systems, changes by the child to local and incoming
2560 argument registers are propagated back to the parent.
2561 The compiler is told about this with #include <vfork.h>,
2562 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2563 Test for this by using a static variable whose address
2564 is put into a register that is clobbered by the vfork. */
2567 sparc_address_test (int arg)
2569 sparc_address_test (arg) int arg;
2587 pid_t parent = getpid ();
2590 sparc_address_test ();
2595 /* Here is another test for sparc vfork register problems.
2596 This test uses lots of local variables, at least
2597 as many local variables as main has allocated so far
2598 including compiler temporaries. 4 locals are enough for
2599 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2600 A buggy compiler should reuse the register of parent
2601 for one of the local variables, since it will think that
2602 parent can't possibly be used any more in this routine.
2603 Assigning to the local variable will thus munge parent
2604 in the parent process. */
2606 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2607 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2608 /* Convince the compiler that p..p7 are live; otherwise, it might
2609 use the same hardware register for all 8 local variables. */
2610 if (p != p1 || p != p2 || p != p3 || p != p4
2611 || p != p5 || p != p6 || p != p7)
2614 /* On some systems (e.g. IRIX 3.3),
2615 vfork doesn't separate parent from child file descriptors.
2616 If the child closes a descriptor before it execs or exits,
2617 this munges the parent's descriptor as well.
2618 Test for this by closing stdout in the child. */
2619 _exit(close(fileno(stdout)) != 0);
2624 while (wait(&status) != child)
2627 /* Was there some problem with vforking? */
2630 /* Did the child fail? (This shouldn't happen.) */
2633 /* Did the vfork/compiler bug occur? */
2634 || parent != getpid()
2636 /* Did the file descriptor bug occur? */
2637 || fstat(fileno(stdout), &st) != 0
2642 if { (eval echo configure
:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2644 ac_cv_func_vfork_works
=yes
2646 echo "configure: failed program was:" >&5
2647 cat conftest.
$ac_ext >&5
2649 ac_cv_func_vfork_works
=no
2656 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2657 if test $ac_cv_func_vfork_works = no
; then
2658 cat >> confdefs.h
<<\EOF
2665 for ac_func
in bcopy bzero bcmp \
2666 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2667 strsignal putc_unlocked fputs_unlocked strstr
2669 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2670 echo "configure:2671: checking whether $ac_func must be declared" >&5
2671 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.
$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2679 #ifdef STRING_WITH_STRINGS
2680 # include <string.h>
2681 # include <strings.h>
2683 # ifdef HAVE_STRING_H
2684 # include <string.h>
2686 # ifdef HAVE_STRINGS_H
2687 # include <strings.h>
2691 #ifdef HAVE_STDLIB_H
2694 #ifdef HAVE_UNISTD_H
2698 #define rindex strrchr
2701 #define index strchr
2705 char *(*pfn) = (char *(*)) $ac_func
2708 if { (eval echo configure
:2709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 eval "gcc_cv_decl_needed_$ac_func=no"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "gcc_cv_decl_needed_$ac_func=yes"
2720 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h
<<EOF
2724 #define $gcc_tr_decl 1
2728 echo "$ac_t""no" 1>&6
2734 for ac_func
in malloc realloc calloc free
2736 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2737 echo "configure:2738: checking whether $ac_func must be declared" >&5
2738 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 #ifdef STRING_WITH_STRINGS
2747 # include <string.h>
2748 # include <strings.h>
2750 # ifdef HAVE_STRING_H
2751 # include <string.h>
2753 # ifdef HAVE_STRINGS_H
2754 # include <strings.h>
2758 #ifdef HAVE_STDLIB_H
2761 #ifdef HAVE_UNISTD_H
2765 #define rindex strrchr
2768 #define index strchr
2770 #ifdef HAVE_MALLOC_H
2775 char *(*pfn) = (char *(*)) $ac_func
2778 if { (eval echo configure
:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 eval "gcc_cv_decl_needed_$ac_func=no"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2785 eval "gcc_cv_decl_needed_$ac_func=yes"
2790 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2791 echo "$ac_t""yes" 1>&6
2792 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2793 cat >> confdefs.h
<<EOF
2794 #define $gcc_tr_decl 1
2798 echo "$ac_t""no" 1>&6
2804 for ac_func
in getrlimit setrlimit getrusage
2806 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2807 echo "configure:2808: checking whether $ac_func must be declared" >&5
2808 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.
$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2816 #ifdef STRING_WITH_STRINGS
2817 # include <string.h>
2818 # include <strings.h>
2820 # ifdef HAVE_STRING_H
2821 # include <string.h>
2823 # ifdef HAVE_STRINGS_H
2824 # include <strings.h>
2828 #ifdef HAVE_STDLIB_H
2831 #ifdef HAVE_UNISTD_H
2835 #define rindex strrchr
2838 #define index strchr
2840 #include <sys/types.h>
2841 #ifdef HAVE_SYS_RESOURCE_H
2842 #include <sys/resource.h>
2846 char *(*pfn) = (char *(*)) $ac_func
2849 if { (eval echo configure
:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2851 eval "gcc_cv_decl_needed_$ac_func=no"
2853 echo "configure: failed program was:" >&5
2854 cat conftest.
$ac_ext >&5
2856 eval "gcc_cv_decl_needed_$ac_func=yes"
2861 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2864 cat >> confdefs.h
<<EOF
2865 #define $gcc_tr_decl 1
2869 echo "$ac_t""no" 1>&6
2875 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2876 echo "configure:2877: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2877 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 cat > conftest.
$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include <sys/types.h>
2885 /* NetBSD declares sys_siglist in unistd.h. */
2886 #ifdef HAVE_UNISTD_H
2890 char *msg = *(sys_siglist + 1);
2893 if { (eval echo configure
:2894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2895 ac_cv_decl_sys_siglist
=yes
2897 echo "configure: failed program was:" >&5
2898 cat conftest.
$ac_ext >&5
2900 ac_cv_decl_sys_siglist
=no
2905 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2906 if test $ac_cv_decl_sys_siglist = yes; then
2907 cat >> confdefs.h
<<\EOF
2908 #define SYS_SIGLIST_DECLARED 1
2914 # mkdir takes a single argument on some systems.
2915 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2916 echo "configure:2917: checking if mkdir takes one argument" >&5
2917 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.
$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2924 #include <sys/types.h>
2925 #ifdef HAVE_SYS_STAT_H
2926 # include <sys/stat.h>
2928 #ifdef HAVE_UNISTD_H
2929 # include <unistd.h>
2931 #ifdef HAVE_DIRECT_H
2932 # include <direct.h>
2938 if { (eval echo configure
:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2940 gcc_cv_mkdir_takes_one_arg
=no
2942 echo "configure: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2945 gcc_cv_mkdir_takes_one_arg
=yes
2950 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2951 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2952 cat >> confdefs.h
<<\EOF
2953 #define MKDIR_TAKES_ONE_ARG 1
2967 build_install_headers_dir
=install-headers-tar
2972 host_truncate_target
=
2975 # Decode the host machine, then the target machine.
2976 # For the host machine, we save the xm_file variable as host_xm_file;
2977 # then we decode the target machine and forget everything else
2978 # that came from the host machine.
2979 for machine
in $build $host $target; do
2993 # Set this to force installation and use of collect2.
2995 # Set this to override the default target model.
2997 # Set this to control how the header file directory is installed.
2998 install_headers_dir
=install-headers-tar
2999 # Set this to a non-empty list of args to pass to cpp if the target
3000 # wants its .md file passed through cpp.
3002 # Set this if directory names should be truncated to 14 characters.
3004 # Set this if gdb needs a dir command with `dirname $out_file`
3005 gdb_needs_out_file_path
=
3006 # Set this if the build machine requires executables to have a
3009 # Set this to control which thread package will be used.
3011 # Reinitialize these from the flag values every loop pass, since some
3012 # configure entries modify them.
3014 gnu_ld
="$gnu_ld_flag"
3015 enable_threads
=$enable_threads_flag
3017 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3018 # updated in each machine entry.
3020 cpu_type
=`echo $machine | sed 's/-.*$//'`
3054 tm_file
=${cpu_type}/${cpu_type}.h
3055 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3056 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3058 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3060 # On a.out targets, we need to use collect2.
3067 # Common parts for linux-gnu and openbsd systems
3070 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3073 tm_file
=${cpu_type}/openbsd.h
3074 tmake_file
="t-libc-ok t-openbsd"
3075 # avoid surprises, always provide an xm-openbsd file
3076 xm_file
=${cpu_type}/xm-openbsd.h
3077 # don't depend on processor x-fragments as well
3079 if test x
$enable_threads = xyes
; then
3081 tmake_file
="${tmake_file} t-openbsd-thread"
3087 # Support site-specific machine types.
3089 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3090 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3091 xm_file
=${cpu_type}/xm-
$rest.h
3092 tm_file
=${cpu_type}/$rest.h
3093 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3094 then xmake_file
=${cpu_type}/x-
$rest; \
3097 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3098 then tmake_file
=${cpu_type}/t-
$rest; \
3104 a29k-
*-bsd* | a29k-
*-sym1*)
3105 tm_file
="${tm_file} a29k/unix.h"
3107 xmake_file
=a29k
/x-unix
3110 a29k-
*-udi | a29k-
*-coff)
3111 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3112 tmake_file
=a29k
/t-a29kbare
3115 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3116 tmake_file
=a29k
/t-vx29k
3117 extra_parts
="crtbegin.o crtend.o"
3118 thread_file
='vxworks'
3120 a29k-
*-*) # Default a29k environment.
3124 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3126 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3127 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3129 # GAS + IEEE_CONFORMANT
3130 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3132 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3133 xmake_file
="x-interix alpha/t-pe"
3134 tmake_file
="alpha/t-interix alpha/t-ieee"
3135 if test x
$enable_threads = xyes
; then
3138 if test x
$stabs = xyes
; then
3139 tm_file
="${tm_file} dbxcoff.h"
3141 #prefix='$$INTERIX_ROOT'/usr/contrib
3142 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3144 alpha
*-*-linux-gnuecoff*)
3145 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3146 target_cpu_default
="MASK_GAS"
3147 tmake_file
="alpha/t-ieee"
3152 alpha
*-*-linux-gnulibc1*)
3153 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3154 target_cpu_default
="MASK_GAS"
3155 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3156 extra_parts
="crtbegin.o crtend.o"
3159 if test x
$enable_threads = xyes
; then
3163 alpha
*-*-linux-gnu*)
3164 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3165 target_cpu_default
="MASK_GAS"
3166 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3167 extra_parts
="crtbegin.o crtend.o"
3170 if test x
$enable_threads = xyes
; then
3175 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3176 target_cpu_default
="MASK_GAS"
3177 tmake_file
="alpha/t-crtbe alpha/t-ieee"
3178 extra_parts
="crtbegin.o crtend.o"
3184 # default x-alpha is only appropriate for dec-osf.
3185 target_cpu_default
="MASK_GAS"
3186 tmake_file
="alpha/t-ieee"
3190 if test x
$stabs = xyes
3192 tm_file
="${tm_file} dbx.h"
3194 if test x
$gas != xyes
3196 extra_passes
="mips-tfile mips-tdump"
3199 tmake_file
="alpha/t-ieee"
3202 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3205 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3208 tm_file
="${tm_file} alpha/osf.h"
3209 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3210 # a broken tar, so we use cpio instead.
3211 install_headers_dir
=install-headers-cpio
3214 tm_file
="${tm_file} alpha/osf.h"
3218 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
3219 target_cpu_default
=MASK_SUPPORT_ARCH
3224 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3225 tmake_file
="alpha/t-ieee"
3228 extra_passes
="mips-tfile mips-tdump"
3231 thread_file
='vxworks'
3234 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3235 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3236 tmake_file
="t-libc-ok alpha/t-ieee"
3237 xmake_file
=winnt
/x-winnt
3238 extra_host_objs
=oldnames.o
3239 extra_gcc_objs
="spawnv.o oldnames.o"
3240 if test x
$gnu_ld != xyes
3242 extra_programs
=ld.exe
3244 if test x
$enable_threads = xyes
; then
3250 xm_file
="${xm_file} alpha/xm-vms.h"
3251 tmake_file
="alpha/t-vms alpha/t-ieee"
3254 extra_parts
="crtinit.o crtfini.o"
3256 arm-
*-coff* | armel-
*-coff*)
3258 tmake_file
=arm
/t-bare
3262 tmake_file
=arm
/t-bare
3263 thread_file
='vxworks'
3265 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3266 tm_file
=arm
/riscix1-1.h
3269 arm-
*-riscix*) # Acorn RISC machine
3270 if test x
$gas = xyes
3272 tm_file
=arm
/rix-gas.h
3274 tm_file
=arm
/riscix.h
3276 xmake_file
=arm
/x-riscix
3277 tmake_file
=arm
/t-riscix
3280 arm-semi-aout | armel-semi-aout
)
3282 tmake_file
=arm
/t-semi
3284 arm-semi-aof | armel-semi-aof
)
3285 tm_file
=arm
/semiaof.h
3286 tmake_file
=arm
/t-semiaof
3289 tm_file
=arm
/netbsd.h
3290 xm_file
="arm/xm-netbsd.h ${xm_file}"
3291 tmake_file
="t-netbsd arm/t-netbsd"
3294 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3297 tm_file
=arm
/linux-aout.h
3298 tmake_file
=arm
/t-linux
3301 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3302 xm_file
=arm
/xm-linux.h
3304 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3307 tm_file
="arm/linux-elf26.h $tm_file"
3310 tmake_file
="t-linux arm/t-linux"
3311 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3313 case x
${enable_threads} in
3314 x | xyes | xpthreads | xposix
)
3319 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3320 xm_file
=arm
/xm-linux.h
3322 tm_file
="arm/linux-elf.h"
3325 tm_file
="arm/linux-elf26.h $tm_file"
3328 tmake_file
="t-linux arm/t-linux"
3329 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3331 case x
${enable_threads} in
3332 x | xyes | xpthreads | xposix
)
3337 arm
*-*-uclinux*) # ARM ucLinux
3338 tm_file
=arm
/uclinux-elf.h
3339 tmake_file
=arm
/t-arm-elf
3343 tmake_file
=arm
/t-bare
3346 tm_file
=arm
/ecos-elf.h
3347 tmake_file
=arm
/t-elf
3350 tm_file
=arm
/unknown-elf.h
3351 tmake_file
=arm
/t-arm-elf
3354 tm_file
=arm
/unknown-elf-oabi.h
3355 tmake_file
=arm
/t-arm-elf
3362 c1-convex-
*) # Convex C1
3363 target_cpu_default
=1
3366 c2-convex-
*) # Convex C2
3367 target_cpu_default
=2
3371 target_cpu_default
=4
3375 target_cpu_default
=8
3379 target_cpu_default
=16
3384 tmake_file
=c4x
/t-c4x
3386 clipper-intergraph-clix
*)
3387 tm_file
="${tm_file} svr3.h clipper/clix.h"
3388 xm_file
=clipper
/xm-clix.h
3389 xmake_file
=clipper
/x-clix
3390 extra_headers
=va-clipper.h
3391 extra_parts
="crtbegin.o crtend.o"
3392 install_headers_dir
=install-headers-cpio
3400 tm_file
="fr30/fr30.h"
3401 tmake_file
=fr30
/t-fr30
3402 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3404 # This hasn't been upgraded to GCC 2.
3405 # fx80-alliant-*) # Alliant FX/80
3411 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3412 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3413 tmake_file
="t-linux pa/t-linux"
3414 extra_parts
="crtbegin.o crtend.o"
3417 if test x
$enable_threads = xyes
; then
3422 target_cpu_default
="MASK_PA_11"
3423 tmake_file
=pa
/t-openbsd
3426 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3427 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3428 xm_file
=pa
/xm-papro.h
3432 target_cpu_default
="MASK_PA_11"
3433 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3437 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3438 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3439 xm_file
=pa
/xm-papro.h
3443 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3447 tm_file
="${tm_file} pa/som.h"
3448 target_cpu_default
="MASK_PA_11"
3452 tm_file
="${tm_file} pa/som.h"
3456 tm_file
="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3457 xm_file
=pa
/xm-pahpux.h
3458 xmake_file
=pa
/x-pa-hpux
3459 if test x
$gas = xyes
3461 tm_file
="${tm_file} pa/gas.h"
3463 install_headers_dir
=install-headers-cpio
3466 hppa1.0
-*-hpux8.0
[0-2]*)
3467 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3468 xm_file
=pa
/xm-pahpux.h
3469 xmake_file
=pa
/x-pa-hpux
3470 if test x
$gas = xyes
3472 tm_file
="${tm_file} pa/pa-gas.h"
3474 tm_file
="pa/pa-oldas.h ${tm_file}"
3476 install_headers_dir
=install-headers-cpio
3479 hppa1.1
-*-hpux8.0
[0-2]*)
3480 target_cpu_default
="MASK_PA_11"
3481 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3482 xm_file
=pa
/xm-pahpux.h
3483 xmake_file
=pa
/x-pa-hpux
3484 if test x
$gas = xyes
3486 tm_file
="${tm_file} pa/pa-gas.h"
3488 tm_file
="pa/pa-oldas.h ${tm_file}"
3490 install_headers_dir
=install-headers-cpio
3494 target_cpu_default
="MASK_PA_11"
3495 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3496 xm_file
=pa
/xm-pahpux.h
3497 xmake_file
=pa
/x-pa-hpux
3498 if test x
$gas = xyes
3500 tm_file
="${tm_file} pa/pa-gas.h"
3502 install_headers_dir
=install-headers-cpio
3506 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3507 xm_file
=pa
/xm-pahpux.h
3508 xmake_file
=pa
/x-pa-hpux
3509 if test x
$gas = xyes
3511 tm_file
="${tm_file} pa/pa-gas.h"
3513 install_headers_dir
=install-headers-cpio
3516 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3517 target_cpu_default
="MASK_PA_11"
3518 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3519 xm_file
=pa
/xm-pahpux.h
3520 xmake_file
=pa
/x-pa-hpux
3522 if test x
$gas = xyes
3524 tm_file
="${tm_file} pa/pa-gas.h"
3526 if test x
$enable_threads = x
; then
3527 enable_threads
=$have_pthread_h
3529 if test x
$enable_threads = xyes
; then
3531 tmake_file
="${tmake_file} pa/t-dce-thr"
3533 install_headers_dir
=install-headers-cpio
3537 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3538 xm_file
=pa
/xm-pahpux.h
3539 xmake_file
=pa
/x-pa-hpux
3541 if test x
$gas = xyes
3543 tm_file
="${tm_file} pa/pa-gas.h"
3545 if test x
$enable_threads = x
; then
3546 enable_threads
=$have_pthread_h
3548 if test x
$enable_threads = xyes
; then
3550 tmake_file
="${tmake_file} pa/t-dce-thr"
3552 install_headers_dir
=install-headers-cpio
3555 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3556 target_cpu_default
="MASK_PA_11"
3557 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3558 xm_file
=pa
/xm-pahpux.h
3559 xmake_file
=pa
/x-pa-hpux
3563 tm_file
="${tm_file} pa/pa-gas.h"
3565 # if [[ x$enable_threads = x ]]; then
3566 # enable_threads=$have_pthread_h
3568 # if [[ x$enable_threads = xyes ]]; then
3570 # tmake_file="${tmake_file} pa/t-dce-thr"
3572 install_headers_dir
=install-headers-cpio
3576 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3577 xm_file
=pa
/xm-pahpux.h
3578 xmake_file
=pa
/x-pa-hpux
3581 tm_file
="${tm_file} pa/pa-gas.h"
3583 # if [[ x$enable_threads = x ]]; then
3584 # enable_threads=$have_pthread_h
3586 # if [[ x$enable_threads = xyes ]]; then
3588 # tmake_file="${tmake_file} pa/t-dce-thr"
3590 install_headers_dir
=install-headers-cpio
3593 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3594 target_cpu_default
="MASK_PA_11"
3595 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3596 xm_file
=pa
/xm-pahpux.h
3597 xmake_file
=pa
/x-pa-hpux
3598 if test x
$gas = xyes
3600 tm_file
="${tm_file} pa/pa-gas.h"
3602 install_headers_dir
=install-headers-cpio
3606 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3607 xm_file
=pa
/xm-pahpux.h
3608 xmake_file
=pa
/x-pa-hpux
3609 if test x
$gas = xyes
3611 tm_file
="${tm_file} pa/pa-gas.h"
3613 install_headers_dir
=install-headers-cpio
3616 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3617 target_cpu_default
="MASK_PA_11"
3618 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3619 xm_file
=pa
/xm-pahpux.h
3620 xmake_file
=pa
/x-pa-hpux
3621 if test x
$gas = xyes
3623 tm_file
="${tm_file} pa/pa-gas.h"
3625 install_headers_dir
=install-headers-cpio
3629 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3630 xm_file
=pa
/xm-pahpux.h
3631 xmake_file
=pa
/x-pa-hpux
3632 if test x
$gas = xyes
3634 tm_file
="${tm_file} pa/pa-gas.h"
3636 install_headers_dir
=install-headers-cpio
3640 tm_file
="${tm_file} elfos.h pa/elf.h"
3641 target_cpu_default
="MASK_PA_11"
3645 tm_file
="${tm_file} pa/pa-mpeix.h"
3646 xm_file
=pa
/xm-pampeix.h
3647 xmake_file
=pa
/x-pa-mpeix
3648 echo "You must use gas. Assuming it is already installed."
3649 install_headers_dir
=install-headers-tar
3650 fixincludes
=Makefile.
in
3653 i370-
*-opened*) # IBM 360/370/390 Architecture
3654 xm_file
=i370
/xm-oe.h
3656 xmake_file
=i370
/x-oe
3657 tmake_file
=i370
/t-oe
3658 fixincludes
=Makefile.
in # Headers are wierd, don't mess with
3661 xm_file
=i370
/xm-mvs.h
3663 tmake_file
=i370
/t-mvs
3664 fixincludes
=Makefile.
in # Headers are wierd, don't mess with
3667 xm_file
="xm-linux.h i370/xm-linux.h"
3669 tm_file
="i370/linux.h ${tm_file}"
3670 tmake_file
="t-linux i370/t-linux"
3671 fixincludes
=Makefile.
in # The headers are ok already.
3672 # broken_install=yes
3673 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3674 # extra_parts="crtbegin.o crtend.o"
3678 if [ x
$enable_threads = xyes
]; then
3683 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3684 tm_file
=i386
/i386elf.h
3685 tmake_file
=i386
/t-i386elf
3688 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3689 if test x
$gas = xyes
3691 tm_file
=i386
/aix386.h
3692 extra_parts
="crtbegin.o crtend.o"
3693 tmake_file
=i386
/t-crtstuff
3695 tm_file
=i386
/aix386ng.h
3698 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3700 xmake_file
=i386
/x-aix
3702 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3703 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3704 xm_defines
="USG POSIX SMALL_ARG_MAX"
3705 xmake_file
=i386
/x-ncr3000
3706 if test x
$stabs = xyes
-a x
$gas = xyes
3708 tm_file
=i386
/sysv4gdb.h
3710 tm_file
=i386
/sysv4.h
3712 extra_parts
="crtbegin.o crtend.o"
3713 tmake_file
=i386
/t-crtpic
3717 xm_file
=i386
/xm-next.h
3718 tmake_file
=i386
/t-next
3719 xmake_file
=i386
/x-next
3720 extra_objs
=nextstep.o
3721 extra_parts
="crtbegin.o crtend.o"
3722 if test x
$enable_threads = xyes
; then
3726 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3728 if test x
$gas = xyes
3730 tm_file
=i386
/seq-gas.h
3732 tm_file
=i386
/sequent.h
3735 i
[34567]86-sequent-ptx1*)
3736 xm_defines
="USG SVR3"
3737 xmake_file
=i386
/x-sysv3
3738 tm_file
=i386
/seq-sysv3.h
3739 tmake_file
=i386
/t-crtstuff
3740 extra_parts
="crtbegin.o crtend.o"
3741 install_headers_dir
=install-headers-cpio
3743 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3744 xm_defines
="USG SVR3"
3745 xmake_file
=i386
/x-sysv3
3746 tm_file
=i386
/seq2-sysv3.h
3747 tmake_file
=i386
/t-crtstuff
3748 extra_parts
="crtbegin.o crtend.o"
3749 install_headers_dir
=install-headers-cpio
3751 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3752 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3753 xm_defines
="USG POSIX SMALL_ARG_MAX"
3755 tm_file
=i386
/ptx4-i.h
3757 extra_parts
="crtbegin.o crtend.o"
3758 install_headers_dir
=install-headers-cpio
3760 i386-sun-sunos
*) # Sun i386 roadrunner
3765 i
[34567]86-wrs-vxworks*)
3766 tm_file
=i386
/vxi386.h
3767 tmake_file
=i386
/t-i386bare
3768 thread_file
='vxworks'
3771 tm_file
=i386
/i386-aout.h
3772 tmake_file
=i386
/t-i386bare
3774 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
3775 tm_file
=i386
/bsd386.h
3776 # tmake_file=t-libc-ok
3779 tm_file
=i386
/386bsd.h
3780 # tmake_file=t-libc-ok
3781 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3784 i
[34567]86-*-freebsdelf*)
3785 tm_file
="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3786 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3787 tmake_file
=t-freebsd
3791 case x
${enable_threads} in
3792 xyes | xpthreads | xposix
)
3794 tmake_file
="${tmake_file} t-openbsd-thread"
3798 i
[34567]86-*-freebsd*)
3799 tm_file
=i386
/freebsd.h
3800 tmake_file
=t-freebsd
3802 i
[34567]86-*-netbsd*)
3803 tm_file
=i386
/netbsd.h
3807 i
[34567]86-*-openbsd*)
3808 # we need collect2 until our bug is fixed...
3812 tm_file
=i386
/i386-coff.h
3813 tmake_file
=i386
/t-i386bare
3815 i
[34567]86-*-isc*) # 80386 running ISC system
3816 xm_file
="${xm_file} i386/xm-isc.h"
3817 xm_defines
="USG SVR3"
3819 i
[34567]86-*-isc[34]*)
3820 xmake_file
=i386
/x-isc3
3823 xmake_file
=i386
/x-isc
3826 if test x
$gas = xyes
-a x
$stabs = xyes
3828 tm_file
=i386
/iscdbx.h
3829 tmake_file
=i386
/t-svr3dbx
3830 extra_parts
="svr3.ifile svr3z.ifile"
3832 tm_file
=i386
/isccoff.h
3833 tmake_file
=i386
/t-crtstuff
3834 extra_parts
="crtbegin.o crtend.o"
3836 install_headers_dir
=install-headers-cpio
3838 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3840 xmake_file
=x-linux-aout
3841 tmake_file
="t-linux-aout i386/t-crtstuff"
3842 tm_file
=i386
/linux-oldld.h
3846 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3847 xmake_file
=x-linux-aout
3848 tmake_file
="t-linux-aout i386/t-crtstuff"
3849 tm_file
=i386
/linux-aout.h
3853 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3854 # GNU/Linux C library 5
3856 tm_file
=i386
/linux.h
3857 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3858 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3861 if test x
$enable_threads = xyes
; then
3862 thread_file
='single'
3865 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3866 # aka GNU/Linux C library 6
3868 tm_file
=i386
/linux.h
3869 tmake_file
="t-linux i386/t-crtstuff"
3870 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3873 if test x
$enable_threads = xyes
; then
3880 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
3881 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3884 i
[34567]86-pc-msdosdjgpp*)
3885 xm_file
=i386
/xm-djgpp.h
3886 tm_file
=i386
/djgpp.h
3887 tmake_file
=i386
/t-djgpp
3888 xmake_file
=i386
/x-djgpp
3892 case $host in *pc-msdosdjgpp
*)
3897 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
3899 tmake_file
=t-libc-ok
3903 i
[34567]86-*-lynxos*)
3904 if test x
$gas = xyes
3908 tm_file
=i386
/lynx-ng.h
3910 xm_file
=i386
/xm-lynx.h
3911 tmake_file
=i386
/t-i386bare
3916 # tmake_file=t-libc-ok
3919 i
[34567]86-*-osfrose*) # 386 using OSF/rose
3920 if test x
$elf = xyes
3922 tm_file
=i386
/osfelf.h
3925 tm_file
=i386
/osfrose.h
3928 xm_file
="i386/xm-osf.h ${xm_file}"
3929 xmake_file
=i386
/x-osfrose
3930 tmake_file
=i386
/t-osf
3931 extra_objs
=halfpic.o
3933 i
[34567]86-go32-rtems*)
3935 xm_file
=i386
/xm-go32.h
3936 tm_file
=i386
/go32-rtems.h
3937 tmake_file
="i386/t-go32 t-rtems"
3939 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
3941 tm_file
=i386
/rtemself.h
3942 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
3943 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
3945 i
[34567]86-*-rtemscoff*)
3947 tm_file
=i386
/rtems.h
3948 tmake_file
="i386/t-i386bare t-rtems"
3950 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
3951 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3952 xm_defines
="USG SVR3"
3953 xmake_file
=i386
/x-sco5
3954 install_headers_dir
=install-headers-cpio
3956 if test x
$gas = xyes
3958 tm_file
="i386/sco5gas.h ${tm_file}"
3959 tmake_file
=i386
/t-sco5gas
3961 tmake_file
=i386
/t-sco5
3963 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3965 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
3966 xm_file
="${xm_file} i386/xm-sco.h"
3967 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3968 xmake_file
=i386
/x-sco4
3969 install_headers_dir
=install-headers-cpio
3970 if test x
$stabs = xyes
3972 tm_file
=i386
/sco4dbx.h
3973 tmake_file
=i386
/t-svr3dbx
3974 extra_parts
="svr3.ifile svr3z.rfile"
3977 tmake_file
=i386
/t-crtstuff
3978 extra_parts
="crtbegin.o crtend.o"
3980 # The default EAFS filesystem supports long file names.
3981 # Truncating the target makes $host != $target which
3982 # makes gcc think it is doing a cross-compile.
3983 # truncate_target=yes
3985 i
[34567]86-*-sco*) # 80386 running SCO system
3986 xm_file
=i386
/xm-sco.h
3987 xmake_file
=i386
/x-sco
3988 install_headers_dir
=install-headers-cpio
3989 if test x
$stabs = xyes
3991 tm_file
=i386
/scodbx.h
3992 tmake_file
=i386
/t-svr3dbx
3993 extra_parts
="svr3.ifile svr3z.rfile"
3996 extra_parts
="crtbegin.o crtend.o"
3997 tmake_file
=i386
/t-crtstuff
4001 i
[34567]86-*-solaris2*)
4002 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
4003 xm_defines
="USG POSIX SMALL_ARG_MAX"
4005 if test x
$gas = xyes
; then
4006 # Only needed if gas does not support -s
4007 tm_file
="i386/sol2gas.h ${tm_file}"
4009 tmake_file
=i386
/t-sol2
4010 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4012 if test x
${enable_threads} = x
; then
4013 enable_threads
=$have_pthread_h
4014 if test x
${enable_threads} = x
; then
4015 enable_threads
=$have_thread_h
4018 if test x
${enable_threads} = xyes
; then
4019 if test x
${have_pthread_h} = xyes
; then
4022 thread_file
='solaris'
4026 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4027 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
4028 xm_defines
="USG POSIX"
4029 tm_file
=i386
/sysv5.h
4030 if test x
$stabs = xyes
4032 tm_file
="${tm_file} dbx.h"
4034 tmake_file
=i386
/t-crtpic
4036 extra_parts
="crtbegin.o crtend.o"
4037 if test x
$enable_threads = xyes
; then
4041 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4042 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
4043 xm_defines
="USG POSIX SMALL_ARG_MAX"
4044 tm_file
=i386
/sysv4.h
4045 if test x
$stabs = xyes
4047 tm_file
="${tm_file} dbx.h"
4049 tmake_file
=i386
/t-crtpic
4051 extra_parts
="crtbegin.o crtend.o"
4053 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4054 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
4055 xm_defines
="USG POSIX"
4057 tmake_file
="i386/t-crtpic i386/t-udk"
4059 extra_parts
="crtbegin.o crtend.o"
4060 install_headers_dir
=install-headers-cpio
4062 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4064 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4065 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4066 if test x
$stabs = xyes
4068 tm_file
=i386
/osf1elfgdb.h
4070 tm_file
=i386
/osf1elf.h
4072 tmake_file
=i386
/t-osf1elf
4073 xmake_file
=i386
/x-osf1elf
4074 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4076 i
[34567]86-*-sysv*) # Intel 80386's running system V
4077 xm_defines
="USG SVR3"
4078 xmake_file
=i386
/x-sysv3
4079 if test x
$gas = xyes
4081 if test x
$stabs = xyes
4083 tm_file
=i386
/svr3dbx.h
4084 tmake_file
=i386
/t-svr3dbx
4085 extra_parts
="svr3.ifile svr3z.rfile"
4087 tm_file
=i386
/svr3gas.h
4088 extra_parts
="crtbegin.o crtend.o"
4089 tmake_file
=i386
/t-crtstuff
4092 tm_file
=i386
/sysv3.h
4093 extra_parts
="crtbegin.o crtend.o"
4094 tmake_file
=i386
/t-crtstuff
4097 i386-
*-vsta) # Intel 80386's running VSTa kernel
4098 xm_file
="${xm_file} i386/xm-vsta.h"
4100 tmake_file
=i386
/t-vsta
4101 xmake_file
=i386
/x-vsta
4104 xm_file
="${xm_file} i386/xm-cygwin.h"
4105 tmake_file
=i386
/t-cygwin
4106 tm_file
=i386
/win32.h
4107 xmake_file
=i386
/x-cygwin
4109 if test x
$enable_threads = xyes
; then
4114 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4115 xm_file
="${xm_file} i386/xm-cygwin.h"
4116 tmake_file
=i386
/t-cygwin
4117 tm_file
=i386
/cygwin.h
4118 xmake_file
=i386
/x-cygwin
4120 if test x
$enable_threads = xyes
; then
4125 i
[34567]86-*-mingw32*)
4126 tm_file
=i386
/mingw32.h
4127 xm_file
="${xm_file} i386/xm-mingw32.h"
4128 tmake_file
="i386/t-cygwin i386/t-mingw32"
4130 xmake_file
=i386
/x-cygwin
4131 if test x
$enable_threads = xyes
; then
4138 *minwg32crt
* |
*mingw32
*)
4139 tm_file
="${tm_file} i386/crtdll.h"
4145 xm_file
="${xm_file} i386/xm-uwin.h"
4146 xm_defines
="USG NO_STAB_H NO_SYS_SIGLIST"
4147 tmake_file
="i386/t-cygwin i386/t-uwin"
4149 xmake_file
=i386
/x-cygwin
4150 if test x
$enable_threads = xyes
; then
4155 i
[34567]86-*-interix*)
4156 tm_file
="i386/i386-interix.h interix.h"
4157 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4158 xm_defines
="USG NO_SYS_SIGLIST"
4159 tmake_file
="i386/t-interix"
4160 extra_objs
=interix.o
4161 xmake_file
=x-interix
4162 if test x
$enable_threads = xyes
; then
4165 if test x
$stabs = xyes
; then
4166 tm_file
="${tm_file} dbxcoff.h"
4169 i
[34567]86-*-winnt3*)
4170 tm_file
=i386
/win-nt.h
4171 out_file
=i386
/i386.c
4172 xm_file
="xm-winnt.h ${xm_file}"
4173 xmake_file
=winnt
/x-winnt
4174 tmake_file
=i386
/t-winnt
4175 extra_host_objs
="winnt.o oldnames.o"
4176 extra_gcc_objs
="spawnv.o oldnames.o"
4177 if test x
$gnu_ld != xyes
4179 extra_programs
=ld.exe
4181 if test x
$enable_threads = xyes
; then
4185 i
[34567]86-dg-dgux*)
4186 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
4187 xm_defines
="USG POSIX"
4188 out_file
=i386
/dgux.c
4190 tmake_file
=i386
/t-dgux
4191 xmake_file
=i386
/x-dgux
4192 install_headers_dir
=install-headers-cpio
4194 i860-alliant-
*) # Alliant FX/2800
4195 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4196 xm_file
="${xm_file}"
4197 xmake_file
=i860
/x-fx2800
4198 tmake_file
=i860
/t-fx2800
4199 extra_parts
="crtbegin.o crtend.o"
4202 tm_file
="${tm_file} i860/bsd.h"
4203 if test x
$gas = xyes
4205 tm_file
="${tm_file} i860/bsd-gas.h"
4210 tm_file
="${tm_file} i860/mach.h"
4211 tmake_file
=t-libc-ok
4213 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4214 tm_file
="${tm_file} svr3.h i860/paragon.h"
4215 xm_defines
="USG SVR3"
4219 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4220 xm_defines
="USG SVR3"
4221 xmake_file
=i860
/x-sysv3
4222 extra_parts
="crtbegin.o crtend.o"
4225 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4226 xm_defines
="USG SVR3"
4227 xmake_file
=i860
/x-sysv4
4229 extra_parts
="crtbegin.o crtend.o"
4231 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4232 tm_file
="${tm_file} i960/vx960.h"
4233 tmake_file
=i960
/t-vxworks960
4235 thread_file
='vxworks'
4237 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4238 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4239 tmake_file
=i960
/t-vxworks960
4241 thread_file
='vxworks'
4244 tm_file
="${tm_file} i960/vx960.h"
4245 tmake_file
=i960
/t-vxworks960
4247 thread_file
='vxworks'
4250 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4251 tmake_file
=i960
/t-960bare
4255 tmake_file
="i960/t-960bare t-rtems"
4256 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4259 i960-
*-*) # Default i960 environment.
4263 extra_parts
="crtinit.o crtfini.o"
4265 m68000-convergent-sysv
*)
4267 xm_file
="m68k/xm-3b1.h ${xm_file}"
4270 extra_headers
=math-68881.h
4272 m68000-hp-bsd
*) # HP 9000/200 running BSD
4273 tm_file
=m68k
/hp2bsd.h
4274 xmake_file
=m68k
/x-hp2bsd
4276 extra_headers
=math-68881.h
4278 m68000-hp-hpux
*) # HP 9000 series 300
4279 xm_file
="xm_alloca.h ${xm_file}"
4280 xm_defines
="USG NO_SYS_SIGLIST"
4281 if test x
$gas = xyes
4283 xmake_file
=m68k
/x-hp320g
4284 tm_file
=m68k
/hp310g.h
4286 xmake_file
=m68k
/x-hp320
4287 tm_file
=m68k
/hp310.h
4289 install_headers_dir
=install-headers-cpio
4291 extra_headers
=math-68881.h
4296 extra_headers
=math-68881.h
4299 tm_file
=m68k
/sun2o4.h
4301 extra_headers
=math-68881.h
4304 xm_file
="m68k/xm-3b1.h ${xm_file}"
4306 if test x
$gas = xyes
4313 extra_headers
=math-68881.h
4315 m68k-apple-aux
*) # Apple Macintosh running A/UX
4316 xm_defines
="USG AUX"
4317 tmake_file
=m68k
/t-aux
4318 install_headers_dir
=install-headers-cpio
4319 extra_headers
=math-68881.h
4320 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4322 if test "$gnu_ld" = yes
4324 tm_file
="${tm_file} m68k/auxgld.h"
4326 tm_file
="${tm_file} m68k/auxld.h"
4328 if test "$gas" = yes
4330 tm_file
="${tm_file} m68k/auxgas.h"
4332 tm_file
="${tm_file} m68k/auxas.h"
4334 tm_file
="${tm_file} m68k/a-ux.h"
4338 tm_file
=m68k
/apollo68.h
4339 xmake_file
=m68k
/x-apollo68
4341 extra_headers
=math-68881.h
4344 m68k-altos-sysv
*) # Altos 3068
4345 if test x
$gas = xyes
4347 tm_file
=m68k
/altos3068.h
4350 echo "The Altos is supported only with the GNU assembler" 1>&2
4353 extra_headers
=math-68881.h
4355 m68k-bull-sysv
*) # Bull DPX/2
4356 if test x
$gas = xyes
4358 if test x
$stabs = xyes
4360 tm_file
=m68k
/dpx2cdbx.h
4362 tm_file
=m68k
/dpx2g.h
4367 xm_file
="xm-alloca.h ${xm_file}"
4369 xmake_file
=m68k
/x-dpx2
4371 extra_headers
=math-68881.h
4373 m68k-atari-sysv4
*) # Atari variant of V.4.
4374 tm_file
=m68k
/atari.h
4375 xm_file
="xm-alloca.h ${xm_file}"
4376 xm_defines
="USG FULL_PROTOTYPES"
4378 extra_parts
="crtbegin.o crtend.o"
4379 extra_headers
=math-68881.h
4382 m68k-motorola-sysv
*)
4383 tm_file
=m68k
/mot3300.h
4384 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4385 xm_defines
=NO_SYS_SIGLIST
4386 if test x
$gas = xyes
4388 xmake_file
=m68k
/x-mot3300-gas
4389 if test x
$gnu_ld = xyes
4391 tmake_file
=m68k
/t-mot3300-gald
4393 tmake_file
=m68k
/t-mot3300-gas
4397 xmake_file
=m68k
/x-mot3300
4398 if test x
$gnu_ld = xyes
4400 tmake_file
=m68k
/t-mot3300-gld
4402 tmake_file
=m68k
/t-mot3300
4406 gdb_needs_out_file_path
=yes
4407 extra_parts
="crt0.o mcrt0.o"
4408 extra_headers
=math-68881.h
4411 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4412 tm_file
=m68k
/tower-as.h
4413 xm_defines
="USG SVR3"
4414 xmake_file
=m68k
/x-tower
4415 extra_parts
="crtbegin.o crtend.o"
4416 extra_headers
=math-68881.h
4419 tm_file
=m68k
/plexus.h
4420 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4423 extra_headers
=math-68881.h
4427 xm_file
="xm-alloca.h ${xm_file}"
4429 extra_headers
=math-68881.h
4432 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4433 xm_defines
="USG unos"
4434 xmake_file
=m68k
/x-crds
4437 extra_headers
=math-68881.h
4439 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4441 xm_file
="xm-alloca.h ${xm_file}"
4442 xm_defines
="USG FULL_PROTOTYPES"
4443 xmake_file
=m68k
/x-amix
4445 extra_parts
="crtbegin.o crtend.o"
4446 extra_headers
=math-68881.h
4450 tm_file
=m68k
/ccur-GAS.h
4451 xmake_file
=m68k
/x-ccur
4452 extra_headers
=math-68881.h
4456 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4457 tm_file
=m68k
/hp3bsd44.h
4458 xmake_file
=m68k
/x-hp3bsd44
4460 extra_headers
=math-68881.h
4463 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4464 tm_file
=m68k
/hp3bsd.h
4466 extra_headers
=math-68881.h
4470 if test x
$with_fp = xno
4472 tm_file
=m68k
/isi-nfp.h
4478 extra_headers
=math-68881.h
4480 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4481 xm_file
="xm_alloca.h ${xm_file}"
4482 xm_defines
="USG NO_SYS_SIGLIST"
4483 if test x
$gas = xyes
4485 xmake_file
=m68k
/x-hp320g
4486 tm_file
=m68k
/hp320g.h
4488 xmake_file
=m68k
/x-hp320
4489 tm_file
=m68k
/hpux7.h
4491 install_headers_dir
=install-headers-cpio
4493 extra_headers
=math-68881.h
4496 m68k-hp-hpux
*) # HP 9000 series 300
4497 xm_file
="xm_alloca.h ${xm_file}"
4498 xm_defines
="USG NO_SYS_SIGLIST"
4499 if test x
$gas = xyes
4501 xmake_file
=m68k
/x-hp320g
4502 tm_file
=m68k
/hp320g.h
4504 xmake_file
=m68k
/x-hp320
4505 tm_file
=m68k
/hp320.h
4507 install_headers_dir
=install-headers-cpio
4509 extra_headers
=math-68881.h
4513 tm_file
=m68k
/sun3mach.h
4515 extra_headers
=math-68881.h
4519 if test x
$gas = xyes
4521 tm_file
=m68k
/news3gas.h
4523 tm_file
=m68k
/news3.h
4526 extra_headers
=math-68881.h
4529 m68k-sony-bsd
* | m68k-sony-newsos
*)
4530 if test x
$gas = xyes
4532 tm_file
=m68k
/newsgas.h
4537 extra_headers
=math-68881.h
4540 m68k-next-nextstep2
*)
4541 tm_file
=m68k
/next21.h
4542 xm_file
="m68k/xm-next.h ${xm_file}"
4543 tmake_file
=m68k
/t-next
4544 xmake_file
=m68k
/x-next
4545 extra_objs
=nextstep.o
4546 extra_headers
=math-68881.h
4550 m68k-next-nextstep3
*)
4552 xm_file
="m68k/xm-next.h ${xm_file}"
4553 tmake_file
=m68k
/t-next
4554 xmake_file
=m68k
/x-next
4555 extra_objs
=nextstep.o
4556 extra_parts
="crtbegin.o crtend.o"
4557 extra_headers
=math-68881.h
4559 if test x
$enable_threads = xyes
; then
4564 if test x
$with_fp = xno
4566 tm_file
=m68k
/sun3n3.h
4568 tm_file
=m68k
/sun3o3.h
4572 extra_headers
=math-68881.h
4574 m68k-sun-sunos
*) # For SunOS 4 (the default).
4575 if test x
$with_fp = xno
4577 tm_file
=m68k
/sun3n.h
4583 extra_headers
=math-68881.h
4586 tm_file
=m68k
/vxm68k.h
4587 tmake_file
=m68k
/t-vxworks68
4588 extra_headers
=math-68881.h
4589 thread_file
='vxworks'
4593 tmake_file
=m68k
/t-m68kbare
4594 tm_file
="m68k/m68k-aout.h libgloss.h"
4595 extra_headers
=math-68881.h
4599 tmake_file
=m68k
/t-m68kbare
4600 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4601 extra_headers
=math-68881.h
4604 m68020-
*-elf* | m68k-
*-elf*)
4605 tm_file
="m68k/m68020-elf.h"
4606 xm_file
=m68k
/xm-m68kv.h
4607 tmake_file
=m68k
/t-m68kelf
4608 header_files
=math-68881.h
4611 if test x
$gas = xyes
4615 tm_file
=m68k
/lynx-ng.h
4617 xm_file
=m68k
/xm-lynx.h
4619 tmake_file
=m68k
/t-lynx
4620 extra_headers
=math-68881.h
4624 tm_file
=m68k
/netbsd.h
4631 # we need collect2 until our bug is fixed...
4634 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4635 xm_file
="xm-alloca.h ${xm_file}"
4637 xmake_file
=m68k
/x-m68kv
4638 extra_parts
="crtbegin.o crtend.o"
4639 extra_headers
=math-68881.h
4642 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4643 tm_file
=m68k
/m68kv4.h
4644 xm_file
="xm-alloca.h ${xm_file}"
4647 extra_parts
="crtbegin.o crtend.o"
4648 extra_headers
=math-68881.h
4651 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4654 tm_file
=m68k
/linux-aout.h
4655 tmake_file
="t-linux-aout m68k/t-linux-aout"
4656 extra_headers
=math-68881.h
4660 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4661 # with ELF format using the
4662 # GNU/Linux C library 5
4664 tm_file
=m68k
/linux.h
4665 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4666 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4667 extra_headers
=math-68881.h
4671 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4672 # with ELF format using glibc 2
4673 # aka the GNU/Linux C library 6.
4675 tm_file
=m68k
/linux.h
4676 tmake_file
="t-linux m68k/t-linux"
4677 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4678 extra_headers
=math-68881.h
4681 if test x
$enable_threads = xyes
; then
4686 tmake_file
=m68k
/t-m68kbare
4687 tm_file
=m68k
/m68k-psos.h
4688 extra_headers
=math-68881.h
4691 m68k-
*-rtemscoff*|m68k-
*-rtems*)
4692 tmake_file
="m68k/t-m68kbare t-rtems"
4693 tm_file
=m68k
/rtems.h
4694 extra_headers
=math-68881.h
4698 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4699 tm_file
=m68k
/rtemself.h
4700 extra_headers
=math-68881.h
4706 tm_file
=m88k
/dguxbcs.h
4707 tmake_file
=m88k
/t-dguxbcs
4711 tmake_file
=m88k
/t-dgux
4714 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4715 xmake_file
=m88k
/x-dgux
4716 if test x
$gas = xyes
4718 tmake_file
=m88k
/t-dgux-gas
4721 m88k-dolphin-sysv3
*)
4722 tm_file
=m88k
/dolph.h
4723 extra_parts
="crtbegin.o crtend.o"
4724 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4725 xmake_file
=m88k
/x-dolph
4726 if test x
$gas = xyes
4728 tmake_file
=m88k
/t-m88k-gas
4731 m88k-tektronix-sysv3
)
4732 tm_file
=m88k
/tekXD88.h
4733 extra_parts
="crtbegin.o crtend.o"
4734 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4735 xmake_file
=m88k
/x-tekXD88
4736 if test x
$gas = xyes
4738 tmake_file
=m88k
/t-m88k-gas
4742 tm_file
=m88k
/m88k-aout.h
4745 tm_file
=m88k
/m88k-coff.h
4746 tmake_file
=m88k
/t-bug
4750 extra_parts
="crtbegin.o crtend.o"
4751 if test x
$gas = xyes
4753 tmake_file
=m88k
/t-luna-gas
4755 tmake_file
=m88k
/t-luna
4759 tmake_file
="${tmake_file} m88k/t-luna-gas"
4762 tm_file
=m88k
/sysv3.h
4763 extra_parts
="crtbegin.o crtend.o"
4764 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4765 xmake_file
=m88k
/x-sysv3
4766 if test x
$gas = xyes
4768 tmake_file
=m88k
/t-m88k-gas
4772 tm_file
=m88k
/sysv4.h
4773 extra_parts
="crtbegin.o crtend.o"
4774 xmake_file
=m88k
/x-sysv4
4775 tmake_file
=m88k
/t-sysv4
4777 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
4778 if test "x$gnu_ld" = xyes
4780 tm_file
="mips/iris6.h mips/iris6gld.h"
4782 tm_file
=mips
/iris6.h
4784 tmake_file
=mips
/t-iris6
4785 xm_file
=mips
/xm-iris6.h
4786 xmake_file
=mips
/x-iris6
4787 # if test x$enable_threads = xyes; then
4788 # thread_file='irix'
4792 tm_file
="mips/elf.h mips/vxworks.h"
4793 tmake_file
=mips
/t-ecoff
4796 extra_parts
="crtbegin.o crtend.o"
4797 thread_file
='vxworks'
4799 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
4800 tm_file
="mips/iris6.h mips/cross64.h"
4802 xm_file
="mips/xm-iris5.h"
4803 xmake_file
=mips
/x-iris
4804 tmake_file
=mips
/t-cross64
4805 # See comment in mips/iris[56].h files.
4807 # if test x$enable_threads = xyes; then
4808 # thread_file='irix'
4812 if test x
$gas = xyes
4814 if test x
$stabs = xyes
4816 tm_file
=mips
/iris5gdb.h
4818 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
4821 tm_file
=mips
/sni-svr4.h
4824 xmake_file
=mips
/x-sni-svr4
4825 tmake_file
=mips
/t-mips-gas
4826 if test x
$gnu_ld != xyes
4831 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
4832 if test x
$gas = xyes
4834 tm_file
="mips/iris5.h mips/iris5gas.h"
4835 if test x
$stabs = xyes
4837 tm_file
="${tm_file} dbx.h"
4840 tm_file
=mips
/iris5.h
4843 xm_file
="mips/xm-iris5.h"
4844 xmake_file
=mips
/x-iris
4845 # mips-tfile doesn't work yet
4846 tmake_file
=mips
/t-mips-gas
4847 # See comment in mips/iris5.h file.
4849 # if test x$enable_threads = xyes; then
4850 # thread_file='irix'
4853 mips-sgi-irix4loser
*) # Mostly like a MIPS.
4854 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4855 if test x
$stabs = xyes
; then
4856 tm_file
="${tm_file} dbx.h"
4859 xmake_file
=mips
/x-iris
4860 if test x
$gas = xyes
4862 tmake_file
=mips
/t-mips-gas
4864 extra_passes
="mips-tfile mips-tdump"
4866 if test x
$gnu_ld != xyes
4870 # if test x$enable_threads = xyes; then
4871 # thread_file='irix'
4874 mips-sgi-irix4
*) # Mostly like a MIPS.
4875 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
4876 if test x
$stabs = xyes
; then
4877 tm_file
="${tm_file} dbx.h"
4880 xmake_file
=mips
/x-iris
4881 if test x
$gas = xyes
4883 tmake_file
=mips
/t-mips-gas
4885 extra_passes
="mips-tfile mips-tdump"
4887 if test x
$gnu_ld != xyes
4891 # if test x$enable_threads = xyes; then
4892 # thread_file='irix'
4895 mips-sgi-
*) # Mostly like a MIPS.
4896 tm_file
="mips/iris3.h ${tm_file}"
4897 if test x
$stabs = xyes
; then
4898 tm_file
="${tm_file} dbx.h"
4901 xmake_file
=mips
/x-iris3
4902 if test x
$gas = xyes
4904 tmake_file
=mips
/t-mips-gas
4906 extra_passes
="mips-tfile mips-tdump"
4908 if test x
$gnu_ld != xyes
4913 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
4914 tm_file
="mips/osfrose.h ${tm_file}"
4915 xmake_file
=mips
/x-osfrose
4916 tmake_file
=mips
/t-osfrose
4917 extra_objs
=halfpic.o
4920 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
4921 tm_file
=mips
/dec-osf1.h
4922 if test x
$stabs = xyes
; then
4923 tm_file
="${tm_file} dbx.h"
4925 xmake_file
=mips
/x-dec-osf1
4926 if test x
$gas = xyes
4928 tmake_file
=mips
/t-mips-gas
4930 tmake_file
=mips
/t-ultrix
4931 extra_passes
="mips-tfile mips-tdump"
4933 if test x
$gnu_ld != xyes
4938 mips-dec-bsd
*) # Decstation running 4.4 BSD
4939 tm_file
=mips
/dec-bsd.h
4940 if test x
$gas = xyes
4942 tmake_file
=mips
/t-mips-gas
4944 tmake_file
=mips
/t-ultrix
4945 extra_passes
="mips-tfile mips-tdump"
4947 if test x
$gnu_ld != xyes
4952 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
4953 tm_file
=mips
/netbsd.h
4954 # On NetBSD, the headers are already okay, except for math.h.
4957 mips
*-*-linux*) # Linux MIPS, either endian.
4959 xm_file
="xm-siglist.h ${xm_file}"
4961 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
4962 *) tm_file
="mips/elf.h mips/linux.h" ;;
4964 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4967 if test x
$enable_threads = xyes
; then
4971 mips
*el-
*-openbsd*) # mips little endian
4972 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
4973 tm_file
=mips
/openbsd.h
4975 mips
*-*-openbsd*) # mips big endian
4976 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
4977 tm_file
=mips
/openbsd-be.h
4979 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
4980 tm_file
="mips/news4.h ${tm_file}"
4981 if test x
$stabs = xyes
; then
4982 tm_file
="${tm_file} dbx.h"
4984 if test x
$gas = xyes
4986 tmake_file
=mips
/t-mips-gas
4988 extra_passes
="mips-tfile mips-tdump"
4990 if test x
$gnu_ld != xyes
4994 xmake_file
=mips
/x-sony
4996 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
4997 # That is based on svr4.
4998 # t-svr4 is not right because this system doesn't use ELF.
4999 tm_file
="mips/news5.h ${tm_file}"
5000 if test x
$stabs = xyes
; then
5001 tm_file
="${tm_file} dbx.h"
5003 xm_file
="xm-siglist.h ${xm_file}"
5005 if test x
$gas = xyes
5007 tmake_file
=mips
/t-mips-gas
5009 extra_passes
="mips-tfile mips-tdump"
5011 if test x
$gnu_ld != xyes
5016 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5017 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5018 if test x
$stabs = xyes
; then
5019 tm_file
="${tm_file} dbx.h"
5021 xm_file
="xm-siglist.h ${xm_file}"
5023 xmake_file
=mips
/x-sysv
5024 if test x
$gas = xyes
5026 tmake_file
=mips
/t-mips-gas
5027 extra_parts
="crtbegin.o crtend.o"
5029 tmake_file
=mips
/t-mips
5030 extra_passes
="mips-tfile mips-tdump"
5032 if test x
$gnu_ld != xyes
5037 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5038 tm_file
="mips/ultrix.h ${tm_file}"
5039 if test x
$stabs = xyes
; then
5040 tm_file
="${tm_file} dbx.h"
5042 xmake_file
=mips
/x-ultrix
5043 if test x
$gas = xyes
5045 tmake_file
=mips
/t-mips-gas
5047 tmake_file
=mips
/t-ultrix
5048 extra_passes
="mips-tfile mips-tdump"
5050 if test x
$gnu_ld != xyes
5055 mips-
*-riscos[56789]bsd
*)
5056 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5057 if test x
$stabs = xyes
; then
5058 tm_file
="${tm_file} dbx.h"
5060 if test x
$gas = xyes
5062 tmake_file
=mips
/t-bsd-gas
5064 tmake_file
=mips
/t-bsd
5065 extra_passes
="mips-tfile mips-tdump"
5067 if test x
$gnu_ld != xyes
5072 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5073 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5074 if test x
$stabs = xyes
; then
5075 tm_file
="${tm_file} dbx.h"
5077 if test x
$gas = xyes
5079 tmake_file
=mips
/t-bsd-gas
5081 tmake_file
=mips
/t-bsd
5082 extra_passes
="mips-tfile mips-tdump"
5084 if test x
$gnu_ld != xyes
5089 mips-
*-riscos[56789]sysv4
*)
5090 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5091 if test x
$stabs = xyes
; then
5092 tm_file
="${tm_file} dbx.h"
5094 xm_file
="xm-siglist.h ${xm_file}"
5095 xmake_file
=mips
/x-sysv
5096 if test x
$gas = xyes
5098 tmake_file
=mips
/t-svr4-gas
5100 tmake_file
=mips
/t-svr4
5101 extra_passes
="mips-tfile mips-tdump"
5103 if test x
$gnu_ld != xyes
5108 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5109 tm_file
="mips/svr4-4.h ${tm_file}"
5110 if test x
$stabs = xyes
; then
5111 tm_file
="${tm_file} dbx.h"
5114 xmake_file
=mips
/x-sysv
5115 if test x
$gas = xyes
5117 tmake_file
=mips
/t-svr4-gas
5119 tmake_file
=mips
/t-svr4
5120 extra_passes
="mips-tfile mips-tdump"
5122 if test x
$gnu_ld != xyes
5127 mips-
*-riscos[56789]sysv
*)
5128 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5129 if test x
$stabs = xyes
; then
5130 tm_file
="${tm_file} dbx.h"
5133 xmake_file
=mips
/x-sysv
5134 if test x
$gas = xyes
5136 tmake_file
=mips
/t-svr3-gas
5138 tmake_file
=mips
/t-svr3
5139 extra_passes
="mips-tfile mips-tdump"
5141 if test x
$gnu_ld != xyes
5146 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5147 tm_file
="mips/svr3-4.h ${tm_file}"
5148 if test x
$stabs = xyes
; then
5149 tm_file
="${tm_file} dbx.h"
5152 xmake_file
=mips
/x-sysv
5153 if test x
$gas = xyes
5155 tmake_file
=mips
/t-svr3-gas
5157 tmake_file
=mips
/t-svr3
5158 extra_passes
="mips-tfile mips-tdump"
5160 if test x
$gnu_ld != xyes
5165 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5166 tm_file
=mips
/mips-5.h
5167 if test x
$stabs = xyes
; then
5168 tm_file
="${tm_file} dbx.h"
5170 if test x
$gas = xyes
5172 tmake_file
=mips
/t-mips-gas
5174 extra_passes
="mips-tfile mips-tdump"
5176 if test x
$gnu_ld != xyes
5184 tm_file
=mips
/ecoffl.h
5185 if test x
$stabs = xyes
; then
5186 tm_file
="${tm_file} dbx.h"
5188 tmake_file
=mips
/t-ecoff
5191 tm_file
="gofast.h mips/ecoff.h"
5192 if test x
$stabs = xyes
; then
5193 tm_file
="${tm_file} dbx.h"
5195 tmake_file
=mips
/t-ecoff
5198 tm_file
="mips/elfl.h"
5199 tmake_file
=mips
/t-elf
5202 tm_file
="mips/elf.h"
5203 tmake_file
=mips
/t-elf
5206 tm_file
="mips/elfl64.h"
5207 tmake_file
=mips
/t-elf
5209 mips64orionel-
*-elf*)
5210 tm_file
="mips/elforion.h mips/elfl64.h"
5211 tmake_file
=mips
/t-elf
5214 tm_file
="mips/elf64.h"
5215 tmake_file
=mips
/t-elf
5218 tm_file
="mips/elforion.h mips/elf64.h"
5219 tmake_file
=mips
/t-elf
5221 mips64orion-
*-rtems*)
5222 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5223 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5224 tmake_file
="mips/t-elf t-rtems"
5227 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5228 tmake_file
=mips
/t-r3900
5231 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5232 tmake_file
=mips
/t-r3900
5234 mips-
*-*) # Default MIPS RISC-OS 4.0.
5235 if test x
$stabs = xyes
; then
5236 tm_file
="${tm_file} dbx.h"
5238 if test x
$gas = xyes
5240 tmake_file
=mips
/t-mips-gas
5242 extra_passes
="mips-tfile mips-tdump"
5244 if test x
$gnu_ld != xyes
5251 tm_file
="mn10200/mn10200.h"
5252 if test x
$stabs = xyes
5254 tm_file
="${tm_file} dbx.h"
5260 tm_file
="mn10300/mn10300.h"
5261 if test x
$stabs = xyes
5263 tm_file
="${tm_file} dbx.h"
5268 tm_file
=ns32k
/encore.h
5272 tm_file
=ns32k
/sequent.h
5276 tm_file
=ns32k
/tek6100.h
5280 tm_file
=ns32k
/tek6200.h
5283 # This has not been updated to GCC 2.
5286 # xmake_file=ns32k/x-genix
5287 # tm_file=ns32k/genix.h
5291 tm_file
=ns32k
/merlin.h
5295 tm_file
=ns32k
/pc532-mach.h
5299 tm_file
=ns32k
/pc532-min.h
5300 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5305 tm_file
=ns32k
/netbsd.h
5306 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5307 # On NetBSD, the headers are already okay, except for math.h.
5312 tm_file
="${tm_file} pdp11/2bsd.h"
5319 # This has not been updated to GCC 2.
5322 # xmake_file=pyr/x-pyr
5329 xmake_file
=romp
/x-mach
5336 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5340 tm_file
=rs6000
/beos.h
5341 xm_file
=rs6000
/xm-beos.h
5342 tmake_file
=rs6000
/t-beos
5343 xmake_file
=rs6000
/x-beos
5345 powerpc-
*-sysv* | powerpc-
*-elf*)
5346 tm_file
=rs6000
/sysv4.h
5347 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5348 xm_defines
="USG POSIX"
5349 extra_headers
=ppc-asm.h
5350 if test x
$gas = xyes
5352 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5354 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5356 xmake_file
=rs6000
/x-sysv4
5359 tm_file
=rs6000
/eabiaix.h
5360 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5361 extra_headers
=ppc-asm.h
5364 tm_file
=rs6000
/eabisim.h
5365 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5366 extra_headers
=ppc-asm.h
5369 tm_file
=rs6000
/eabi.h
5370 if test x
$gas = xyes
5372 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5374 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5376 extra_headers
=ppc-asm.h
5379 tm_file
=rs6000
/rtems.h
5380 if test x
$gas = xyes
5382 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5384 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5386 extra_headers
=ppc-asm.h
5388 powerpc-
*-linux-gnulibc1)
5389 tm_file
=rs6000
/linux.h
5390 xm_file
=rs6000
/xm-sysv4.h
5391 out_file
=rs6000
/rs6000.c
5392 if test x
$gas = xyes
5394 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5396 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5399 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5400 extra_headers
=ppc-asm.h
5401 if test x
$enable_threads = xyes
; then
5405 powerpc-
*-linux-gnu*)
5406 tm_file
=rs6000
/linux.h
5407 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5408 xm_defines
="USG ${xm_defines}"
5409 out_file
=rs6000
/rs6000.c
5410 if test x
$gas = xyes
5412 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5414 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5417 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5418 extra_headers
=ppc-asm.h
5419 if test x
$enable_threads = xyes
; then
5423 powerpc-wrs-vxworks
*)
5425 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5426 xm_defines
="USG POSIX"
5427 tm_file
=rs6000
/vxppc.h
5428 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5429 extra_headers
=ppc-asm.h
5430 thread_file
='vxworks'
5432 powerpcle-
*-sysv* | powerpcle-
*-elf*)
5433 tm_file
=rs6000
/sysv4le.h
5434 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5435 xm_defines
="USG POSIX"
5436 if test x
$gas = xyes
5438 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5440 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5442 xmake_file
=rs6000
/x-sysv4
5443 extra_headers
=ppc-asm.h
5445 powerpcle-
*-eabisim*)
5446 tm_file
=rs6000
/eabilesim.h
5447 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5448 extra_headers
=ppc-asm.h
5451 tm_file
=rs6000
/eabile.h
5452 if test x
$gas = xyes
5454 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5456 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5458 extra_headers
=ppc-asm.h
5460 powerpcle-
*-winnt* )
5461 tm_file
=rs6000
/win-nt.h
5462 tmake_file
=rs6000
/t-winnt
5464 if test x
$enable_threads = xyes
; then
5467 extra_headers
=ppc-asm.h
5469 powerpcle-
*-pe | powerpcle-
*-cygwin*)
5470 tm_file
=rs6000
/cygwin.h
5471 xm_file
="rs6000/xm-cygwin.h ${xm_file}"
5472 tmake_file
=rs6000
/t-winnt
5473 xmake_file
=rs6000
/x-cygwin
5475 if test x
$enable_threads = xyes
; then
5479 extra_headers
=ppc-asm.h
5481 powerpcle-
*-solaris2*)
5482 tm_file
=rs6000
/sol2.h
5483 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5484 xm_defines
="USG POSIX"
5485 if test x
$gas = xyes
5487 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5489 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5491 xmake_file
=rs6000
/x-sysv4
5492 extra_headers
=ppc-asm.h
5494 rs6000-ibm-aix3.
[01]*)
5495 tm_file
=rs6000
/aix31.h
5496 xmake_file
=rs6000
/x-aix31
5500 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5501 tm_file
=rs6000
/aix3newas.h
5502 if test x
$host != x
$target
5504 tmake_file
=rs6000
/t-xnewas
5506 tmake_file
=rs6000
/t-newas
5511 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5512 tm_file
=rs6000
/aix41.h
5513 if test x
$host != x
$target
5515 tmake_file
=rs6000
/t-xnewas
5517 tmake_file
=rs6000
/t-newas
5519 if test "$gnu_ld" = yes
5521 xmake_file
=rs6000
/x-aix41-gld
5523 xmake_file
=rs6000
/x-aix41
5528 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5529 tm_file
=rs6000
/aix43.h
5530 if test x
$host != x
$target
5532 tmake_file
=rs6000
/t-xaix43
5534 tmake_file
=rs6000
/t-aix43
5536 xmake_file
=rs6000
/x-aix43
5540 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5541 tm_file
=rs6000
/aix43.h
5542 if test x
$host != x
$target
5544 tmake_file
=rs6000
/t-xaix43
5546 tmake_file
=rs6000
/t-aix43
5548 xmake_file
=rs6000
/x-aix43
5561 tm_file
=rs6000
/mach.h
5562 xm_file
="${xm_file} rs6000/xm-mach.h"
5563 xmake_file
=rs6000
/x-mach
5567 tm_file
=rs6000
/lynx.h
5568 xm_file
=rs6000
/xm-lynx.h
5569 tmake_file
=rs6000
/t-rs6000
5570 xmake_file
=rs6000
/x-lynx
5578 tmake_file
="sh/t-sh t-rtems"
5579 tm_file
=sh
/rtemself.h
5583 tmake_file
="sh/t-sh t-rtems"
5592 xm_file
="xm-alloca.h ${xm_file}"
5595 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5596 tm_file
=sparc
/vxsparc.h
5597 tmake_file
=sparc
/t-vxsparc
5599 thread_file
='vxworks'
5602 tmake_file
=sparc
/t-sparcbare
5603 tm_file
="sparc/aout.h libgloss.h"
5606 tm_file
=sparc
/netbsd.h
5611 # we need collect2 until our bug is fixed...
5619 tmake_file
=sparc
/t-elf
5620 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5624 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5625 xm_file
="${xm_file} sparc/xm-linux.h"
5626 tm_file
=sparc
/linux-aout.h
5630 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5631 xm_file
="${xm_file} sparc/xm-linux.h"
5633 tm_file
=sparc
/linux.h
5634 tmake_file
="t-linux t-linux-gnulibc1"
5635 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5639 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5640 xm_file
="${xm_file} sparc/xm-linux.h"
5642 tm_file
=sparc
/linux.h
5643 tmake_file
="t-linux"
5644 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5646 if test x
$enable_threads = xyes
; then
5652 if test x
$gas = xyes
5654 tm_file
=sparc
/lynx.h
5656 tm_file
=sparc
/lynx-ng.h
5658 xm_file
=sparc
/xm-lynx.h
5659 tmake_file
=sparc
/t-sunos41
5662 sparc-
*-rtems*|sparc-
*-rtemself*)
5663 tm_file
="sparc/rtemself.h"
5664 tmake_file
="sparc/t-elf t-rtems"
5665 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5670 tmake_file
="sparc/t-sparcbare t-rtems"
5671 tm_file
=sparc
/rtems.h
5673 sparcv9-
*-solaris2*)
5674 tm_file
=sparc
/sol2-sld-64.h
5675 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5676 xm_defines
="USG POSIX"
5677 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5678 xmake_file
=sparc
/x-sysv4
5679 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5681 if test x
${enable_threads} = x
; then
5682 enable_threads
=$have_pthread_h
5683 if test x
${enable_threads} = x
; then
5684 enable_threads
=$have_thread_h
5687 if test x
${enable_threads} = xyes
; then
5688 if test x
${have_pthread_h} = xyes
; then
5691 thread_file
='solaris'
5695 sparc-hal-solaris2
*)
5696 xm_file
=sparc
/xm-sol2.h
5697 tm_file
="sparc/sol2.h sparc/hal.h"
5698 tmake_file
="sparc/t-halos sparc/t-sol2"
5699 xmake_file
=sparc
/x-sysv4
5700 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5704 if test x
$gnu_ld = xyes
5706 tm_file
=sparc
/sol2.h
5708 tm_file
=sparc
/sol2-sld.h
5710 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5711 xm_defines
="USG POSIX"
5712 tmake_file
=sparc
/t-sol2
5713 xmake_file
=sparc
/x-sysv4
5714 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5723 if test x
${enable_threads} = x
; then
5724 enable_threads
=$have_pthread_h
5725 if test x
${enable_threads} = x
; then
5726 enable_threads
=$have_thread_h
5729 if test x
${enable_threads} = xyes
; then
5730 if test x
${have_pthread_h} = xyes
; then
5733 thread_file
='solaris'
5738 tm_file
=sparc
/sunos4.h
5739 tmake_file
=sparc
/t-sunos40
5743 tm_file
=sparc
/sunos4.h
5744 tmake_file
=sparc
/t-sunos41
5746 if test x
$gas = xyes
; then
5747 tm_file
="${tm_file} sparc/sun4gas.h"
5751 tm_file
=sparc
/sun4o3.h
5755 tm_file
=sparc
/sysv4.h
5756 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
5757 xm_defines
="USG POSIX"
5759 xmake_file
=sparc
/x-sysv4
5760 extra_parts
="crtbegin.o crtend.o"
5763 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5764 xm_defines
="USG POSIX"
5765 tm_file
=sparc
/vxsim.h
5766 tmake_file
=sparc
/t-vxsparc
5767 xmake_file
=sparc
/x-sysv4
5770 tm_file
="sparc/splet.h libgloss.h"
5771 tmake_file
=sparc
/t-splet
5774 tm_file
="sparc/litecoff.h libgloss.h"
5775 tmake_file
=sparc
/t-sparclite
5778 tm_file
="sparc/lite.h aoutos.h libgloss.h"
5779 tmake_file
=sparc
/t-sparclite
5782 tm_file
="sparc/liteelf.h libgloss.h"
5783 tmake_file
=sparc
/t-sparclite
5784 extra_parts
="crtbegin.o crtend.o"
5787 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
5788 tmake_file
=sparc
/t-sp86x
5791 tm_file
="sparc/sp86x-elf.h libgloss.h"
5792 tmake_file
=sparc
/t-sp86x
5793 extra_parts
="crtbegin.o crtend.o"
5796 tmake_file
=sparc
/t-sp64
5797 tm_file
=sparc
/sp64-aout.h
5800 tmake_file
=sparc
/t-sp64
5801 tm_file
=sparc
/sp64-elf.h
5802 extra_parts
="crtbegin.o crtend.o"
5804 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
5805 tmake_file
="t-linux sparc/t-linux64"
5806 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
5807 tm_file
=sparc
/linux64.h
5809 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5813 # This hasn't been upgraded to GCC 2.
5814 # tahoe-harris-*) # Harris tahoe, using COFF.
5815 # tm_file=tahoe/harris.h
5817 # tahoe-*-bsd*) # tahoe running BSD
5819 thumb-
*-coff* | thumbel-
*-coff*)
5821 out_file
=arm
/thumb.c
5822 xm_file
=arm
/xm-thumb.h
5823 md_file
=arm
/thumb.md
5824 tmake_file
=arm
/t-thumb
5826 thumb-
*-elf* | thumbel-
*-elf*)
5828 out_file
=arm
/thumb.c
5829 xm_file
=arm
/xm-thumb.h
5830 md_file
=arm
/thumb.md
5831 tmake_file
=arm
/t-thumb-elf
5834 tm_file
=arm
/linux-telf.h
5835 out_file
=arm
/thumb.c
5836 xm_file
=arm
/xm-thumb.h
5837 md_file
=arm
/thumb.md
5838 tmake_file
=arm
/t-thumb-linux
5841 tm_file
=arm
/uclinux-telf.h
5842 out_file
=arm
/thumb.c
5843 md_file
=arm
/thumb.md
5844 tmake_file
=arm
/t-thumb-linux
5845 xm_file
=arm
/xm-thumb.h
5849 out_file
=arm
/thumb.c
5850 xm_file
=arm
/xm-thumb.h
5851 md_file
=arm
/thumb.md
5852 tmake_file
=arm
/t-thumb
5853 thread_file
='vxworks'
5857 out_file
=arm
/thumb.c
5858 xm_file
=arm
/xm-thumb.h
5859 md_file
=arm
/thumb.md
5860 tmake_file
=arm
/t-pe-thumb
5863 # This hasn't been upgraded to GCC 2.
5869 target_cpu_default
="TARGET_CPU_generic"
5871 tm_file
="v850/v850.h"
5872 xm_file
="v850/xm-v850.h"
5873 tmake_file
=v850
/t-v850
5874 if test x
$stabs = xyes
5876 tm_file
="${tm_file} dbx.h"
5880 vax-
*-bsd*) # vaxen running BSD
5884 vax-
*-sysv*) # vaxen running system V
5885 tm_file
="${tm_file} vax/vaxv.h"
5890 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
5896 tmake_file
="${tmake_file} vax/t-openbsd"
5898 vax-
*-ultrix*) # vaxen running ultrix
5899 tm_file
="${tm_file} vax/ultrix.h"
5903 vax-
*-vms*) # vaxen running VMS
5904 xm_file
=vax
/xm-vms.h
5908 vax-
*-*) # vax default entry
5912 xm_file
="${xm_file} xm-svr3"
5916 echo "Configuration $machine not supported" 1>&2
5923 ;; # Existing GNU/Linux systems do not use the GNU setup.
5925 # On the GNU system, the setup is just about the same on
5926 # each different CPU. The specific machines that GNU
5927 # supports are matched above and just set $cpu_type.
5928 xm_file
="xm-gnu.h ${xm_file}"
5929 tm_file
=${cpu_type}/gnu.h
5930 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5931 # GNU always uses ELF.
5933 # GNU tools are the only tools.
5936 xmake_file
=x-linux
# These details are the same as Linux.
5937 tmake_file
=t-gnu
# These are not.
5940 xmake_try_sysv
=x-sysv
5941 install_headers_dir
=install-headers-cpio
5944 install_headers_dir
=install-headers-cpio
5948 # Distinguish i[34567]86
5949 # Also, do not run mips-tfile on MIPS if using gas.
5950 # Process --with-cpu= for PowerPC/rs6000
5951 target_cpu_default2
=
5954 target_cpu_default2
=1
5957 case $target_alias in
5959 target_cpu_default2
=4
5962 target_cpu_default2
=2
5966 i686-
*-* | i786-
*-*)
5967 target_cpu_default2
=3
5972 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5975 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5978 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
5981 target_cpu_default2
="MASK_CPU_EV5"
5985 if test x
$gas = xyes
5987 if test "$target_cpu_default2" = ""
5989 target_cpu_default2
="MASK_GAS"
5991 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
5996 case "x$with_cpu" in
5999 target_cpu_default2
="TARGET_CPU_generic"
6002 # Distinguish cores, and major variants
6003 # arm7m doesn't exist, but D & I don't affect code
6004 xarm23678 | xarm250 | xarm67010 \
6005 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6006 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6007 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6008 target_cpu_default2
="TARGET_CPU_$with_cpu"
6012 echo "--with-cpu must be passed a value" 1>&2
6017 if test x
$pass2done = xyes
6019 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6026 mips
*-*-ecoff* | mips
*-*-elf*)
6027 if test x
$gas = xyes
6029 if test x
$gnu_ld = xyes
6031 target_cpu_default2
=20
6033 target_cpu_default2
=16
6038 if test x
$gas = xyes
6040 target_cpu_default2
=16
6043 powerpc
*-*-* | rs6000-
*-*)
6044 case "x$with_cpu" in
6048 xcommon | xpower | xpower2 | xpowerpc | xrios \
6049 | xrios1 | xrios2 | xrsc | xrsc1 \
6050 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6051 | xec603e | x740 | x750 | x401 \
6052 | x403 | x505 | x801 | x821 | x823 | x860
)
6053 target_cpu_default2
="\"$with_cpu\""
6057 echo "--with-cpu must be passed a value" 1>&2
6062 if test x
$pass2done = xyes
6064 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6071 case ".$with_cpu" in
6073 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6075 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6076 target_cpu_default2
="TARGET_CPU_$with_cpu"
6079 if test x
$pass2done = xyes
6081 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6089 if test "$target_cpu_default2" != ""
6091 if test "$target_cpu_default" != ""
6093 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6095 target_cpu_default
=$target_cpu_default2
6099 # No need for collect2 if we have the GNU linker.
6100 # Actually, there is now; GNU ld doesn't handle the EH info or
6101 # collecting for shared libraries.
6108 # Save data on machine being used to compile GCC in build_xm_file.
6109 # Save data on host machine in vars host_xm_file and host_xmake_file.
6110 if test x
$pass1done = x
6112 if test x
"$xm_file" = x
6113 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6114 else build_xm_file
=$xm_file
6116 build_xm_defines
=$xm_defines
6117 build_install_headers_dir
=$install_headers_dir
6118 build_exeext
=$exeext
6121 if test x
$pass2done = x
6123 if test x
"$xm_file" = x
6124 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6125 else host_xm_file
=$xm_file
6127 host_xm_defines
=$xm_defines
6128 if test x
"$xmake_file" = x
6129 then xmake_file
=$cpu_type/x-
$cpu_type
6131 host_xmake_file
="$xmake_file"
6132 host_truncate_target
=$truncate_target
6133 host_extra_gcc_objs
=$extra_gcc_objs
6134 host_extra_objs
=$extra_host_objs
6141 extra_objs
="${host_extra_objs} ${extra_objs}"
6143 # Default the target-machine variables that were not explicitly set.
6144 if test x
"$tm_file" = x
6145 then tm_file
=$cpu_type/$cpu_type.h
; fi
6147 if test x
$extra_headers = x
6148 then extra_headers
=; fi
6150 if test x
"$xm_file" = x
6151 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6153 if test x
$md_file = x
6154 then md_file
=$cpu_type/$cpu_type.md
; fi
6156 if test x
$out_file = x
6157 then out_file
=$cpu_type/$cpu_type.c
; fi
6159 if test x
"$tmake_file" = x
6160 then tmake_file
=$cpu_type/t-
$cpu_type
6163 if test x
"$dwarf2" = xyes
6164 then tm_file
="tm-dwarf2.h $tm_file"
6167 if test x
$float_format = x
6168 then float_format
=i64
6171 if test $float_format = none
6172 then float_h_file
=Makefile.
in
6173 else float_h_file
=float-
$float_format.h
6176 # Handle cpp installation.
6177 if test x
$enable_cpp != xno
6179 tmake_file
="$tmake_file t-install-cpp"
6182 # Say what files are being used for the output code and MD file.
6183 echo "Using \`$srcdir/config/$out_file' to output insns."
6184 echo "Using \`$srcdir/config/$md_file' as machine description file."
6187 for f
in $tm_file; do
6190 if test $count = ax
; then
6191 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6193 echo "Using the following target machine macro files:"
6194 for f
in $tm_file; do
6195 echo " $srcdir/config/$f"
6200 for f
in $host_xm_file; do
6203 if test $count = ax
; then
6204 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6206 echo "Using the following host machine macro files:"
6207 for f
in $host_xm_file; do
6208 echo " $srcdir/config/$f"
6212 if test "$host_xm_file" != "$build_xm_file"; then
6214 for f
in $build_xm_file; do
6217 if test $count = ax
; then
6218 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6220 echo "Using the following build machine macro files:"
6221 for f
in $build_xm_file; do
6222 echo " $srcdir/config/$f"
6227 if test x
$thread_file = x
; then
6228 if test x
$target_thread_file != x
; then
6229 thread_file
=$target_thread_file
6231 thread_file
='single'
6235 # Set up the header files.
6236 # $links is the list of header files to create.
6237 # $vars is the list of shell variables with file names to include.
6238 # auto-host.h is the file containing items generated by autoconf and is
6239 # the first file included by config.h.
6241 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6243 # If host=build, it is correct to have hconfig include auto-host.h
6244 # as well. If host!=build, we are in error and need to do more
6245 # work to find out the build config parameters.
6246 if test x
$host = x
$build
6248 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6250 # We create a subdir, then run autoconf in the subdir.
6251 # To prevent recursion we set host and build for the new
6252 # invocation of configure to the build for this invocation
6259 /*) realsrcdir
=${srcdir};;
6260 *) realsrcdir
=..
/${srcdir};;
6262 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6263 --target=$target --host=$build --build=$build
6265 # We just finished tests for the build machine, so rename
6266 # the file auto-build.h in the gcc directory.
6267 mv auto-host.h ..
/auto-build.h
6270 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6273 xm_file
="gansidecl.h ${xm_file}"
6274 tm_file
="gansidecl.h ${tm_file}"
6276 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6277 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6278 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6281 if test -f config.status
; then mv -f config.status config.bak
; fi
6284 while test -n "$vars"
6286 set $vars; var
=$1; shift; vars
=$
*
6287 set $links; link
=$1; shift; links
=$
*
6288 set $defines; define
=$1; shift; defines
=$
*
6291 # Make sure the file is created, even if it is empty.
6294 # Define TARGET_CPU_DEFAULT if the system wants one.
6295 # This substitutes for lots of *.h files.
6296 if test "$target_cpu_default" != "" -a $link = tm.h
6298 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6301 for file in `eval echo '$'$var`; do
6306 echo '#ifdef IN_GCC' >>$link
6309 echo "#include \"$file\"" >>$link
6314 echo '#endif' >>$link
6319 for def
in `eval echo '$'$define`; do
6320 echo "#ifndef $def" >>$link
6321 echo "#define $def" >>$link
6322 echo "#endif" >>$link
6326 # Truncate the target if necessary
6327 if test x
$host_truncate_target != x
; then
6328 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6331 # Get the version trigger filename from the toplevel
6332 if test "${with_gcc_version_trigger+set}" = set; then
6333 gcc_version_trigger
=$with_gcc_version_trigger
6335 gcc_version_trigger
=${srcdir}/version.c
6337 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6339 # Internationalization
6341 VERSION
="$gcc_version"
6342 cat >> confdefs.h
<<EOF
6343 #define PACKAGE "$PACKAGE"
6346 cat >> confdefs.h
<<EOF
6347 #define VERSION "$VERSION"
6355 # NLS support is still experimental, so disable it by default for now.
6356 # Check whether --enable-nls or --disable-nls was given.
6357 if test "${enable_nls+set}" = set; then
6358 enableval
="$enable_nls"
6366 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6367 echo "configure:6368: checking for strerror in -lcposix" >&5
6368 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6372 ac_save_LIBS
="$LIBS"
6373 LIBS
="-lcposix $LIBS"
6374 cat > conftest.
$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6386 if { (eval echo configure
:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.
$ac_ext >&5
6393 eval "ac_cv_lib_$ac_lib_var=no"
6396 LIBS
="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 LIBS
="$LIBS -lcposix"
6403 echo "$ac_t""no" 1>&6
6408 echo $ac_n "checking for working const""... $ac_c" 1>&6
6409 echo "configure:6410: checking for working const" >&5
6410 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6413 cat > conftest.
$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6419 /* Ultrix mips cc rejects this. */
6420 typedef int charset[2]; const charset x;
6421 /* SunOS 4.1.1 cc rejects this. */
6422 char const *const *ccp;
6424 /* NEC SVR4.0.2 mips cc rejects this. */
6425 struct point {int x, y;};
6426 static struct point const zero = {0,0};
6427 /* AIX XL C 1.02.0.0 rejects this.
6428 It does not let you subtract one const X* pointer from another in an arm
6429 of an if-expression whose if-part is not a constant expression */
6430 const char *g = "string";
6431 ccp = &g + (g ? g-g : 0);
6432 /* HPUX 7.0 cc rejects these. */
6435 ccp = (char const *const *) p;
6436 { /* SCO 3.2v4 cc rejects this. */
6438 char const *s = 0 ? (char *) 0 : (char const *) 0;
6442 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6444 const int *foo = &x[0];
6447 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6448 typedef const int *iptr;
6452 { /* AIX XL C 1.02.0.0 rejects this saying
6453 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6454 struct s { int j; const int *ap[3]; };
6455 struct s *b; b->j = 5;
6457 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6463 if { (eval echo configure
:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6467 echo "configure: failed program was:" >&5
6468 cat conftest.
$ac_ext >&5
6475 echo "$ac_t""$ac_cv_c_const" 1>&6
6476 if test $ac_cv_c_const = no
; then
6477 cat >> confdefs.h
<<\EOF
6483 echo $ac_n "checking for inline""... $ac_c" 1>&6
6484 echo "configure:6485: checking for inline" >&5
6485 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6489 for ac_kw
in inline __inline__ __inline
; do
6490 cat > conftest.
$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6498 if { (eval echo configure
:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6500 ac_cv_c_inline
=$ac_kw; break
6502 echo "configure: failed program was:" >&5
6503 cat conftest.
$ac_ext >&5
6510 echo "$ac_t""$ac_cv_c_inline" 1>&6
6511 case "$ac_cv_c_inline" in
6513 no
) cat >> confdefs.h
<<\EOF
6517 *) cat >> confdefs.h
<<EOF
6518 #define inline $ac_cv_c_inline
6523 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6524 echo "configure:6525: checking for off_t" >&5
6525 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 cat > conftest.
$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 #include <sys/types.h>
6537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6538 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6540 ac_cv_type_off_t
=yes
6548 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6549 if test $ac_cv_type_off_t = no
; then
6550 cat >> confdefs.h
<<\EOF
6556 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6557 echo "configure:6558: checking for size_t" >&5
6558 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 cat > conftest.
$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 #include <sys/types.h>
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6573 ac_cv_type_size_t
=yes
6576 ac_cv_type_size_t
=no
6581 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6582 if test $ac_cv_type_size_t = no
; then
6583 cat >> confdefs.h
<<\EOF
6584 #define size_t unsigned
6589 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6590 # for constant arguments. Useless!
6591 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6592 echo "configure:6593: checking for working alloca.h" >&5
6593 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6596 cat > conftest.
$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6601 char *p = alloca(2 * sizeof(int));
6604 if { (eval echo configure
:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6606 ac_cv_header_alloca_h
=yes
6608 echo "configure: failed program was:" >&5
6609 cat conftest.
$ac_ext >&5
6611 ac_cv_header_alloca_h
=no
6616 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6617 if test $ac_cv_header_alloca_h = yes; then
6618 cat >> confdefs.h
<<\EOF
6619 #define HAVE_ALLOCA_H 1
6624 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6625 echo "configure:6626: checking for alloca" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 cat > conftest.
$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6634 # define alloca __builtin_alloca
6637 # include <malloc.h>
6638 # define alloca _alloca
6641 # include <alloca.h>
6646 # ifndef alloca /* predefined by HP cc +Olibcalls */
6655 char *p = (char *) alloca(1);
6658 if { (eval echo configure
:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6660 ac_cv_func_alloca_works
=yes
6662 echo "configure: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6665 ac_cv_func_alloca_works
=no
6670 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6671 if test $ac_cv_func_alloca_works = yes; then
6672 cat >> confdefs.h
<<\EOF
6673 #define HAVE_ALLOCA 1
6678 if test $ac_cv_func_alloca_works = no
; then
6679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6680 # that cause trouble. Some versions do not even contain alloca or
6681 # contain a buggy version. If you still want to use their alloca,
6682 # use ar to extract alloca.o from them instead of compiling alloca.c.
6683 ALLOCA
=alloca.
${ac_objext}
6684 cat >> confdefs.h
<<\EOF
6689 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6690 echo "configure:6691: checking whether alloca needs Cray hooks" >&5
6691 if eval "test \"`echo '$''{'ac_cv_os_cray'+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"
6697 #if defined(CRAY) && ! defined(CRAY2)
6704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6705 egrep "webecray" >/dev
/null
2>&1; then
6716 echo "$ac_t""$ac_cv_os_cray" 1>&6
6717 if test $ac_cv_os_cray = yes; then
6718 for ac_func
in _getb67 GETB67 getb67
; do
6719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6720 echo "configure:6721: checking for $ac_func" >&5
6721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 cat > conftest.
$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* System header to define __stub macros and hopefully few prototypes,
6728 which can conflict with char $ac_func(); below. */
6730 /* Override any gcc2 internal prototype to avoid an error. */
6731 /* We use char because int might match the return type of a gcc2
6732 builtin and then its argument prototype would still apply. */
6737 /* The GNU C library defines this for functions which it implements
6738 to always fail with ENOSYS. Some functions are actually named
6739 something starting with __ and the normal name is an alias. */
6740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6748 if { (eval echo configure
:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6750 eval "ac_cv_func_$ac_func=yes"
6752 echo "configure: failed program was:" >&5
6753 cat conftest.
$ac_ext >&5
6755 eval "ac_cv_func_$ac_func=no"
6760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 cat >> confdefs.h
<<EOF
6763 #define CRAY_STACKSEG_END $ac_func
6768 echo "$ac_t""no" 1>&6
6774 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6775 echo "configure:6776: checking stack direction for C alloca" >&5
6776 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 if test "$cross_compiling" = yes; then
6780 ac_cv_c_stack_direction
=0
6782 cat > conftest.
$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 find_stack_direction ()
6787 static char *addr = 0;
6792 return find_stack_direction ();
6795 return (&dummy > addr) ? 1 : -1;
6799 exit (find_stack_direction() < 0);
6802 if { (eval echo configure
:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6804 ac_cv_c_stack_direction
=1
6806 echo "configure: failed program was:" >&5
6807 cat conftest.
$ac_ext >&5
6809 ac_cv_c_stack_direction
=-1
6816 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6817 cat >> confdefs.h
<<EOF
6818 #define STACK_DIRECTION $ac_cv_c_stack_direction
6823 for ac_hdr
in unistd.h
6825 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_hdr" >&5
6828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.
$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6837 { (eval echo configure
:6838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6839 if test -z "$ac_err"; then
6841 eval "ac_cv_header_$ac_safe=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.
$ac_ext >&5
6847 eval "ac_cv_header_$ac_safe=no"
6851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6854 cat >> confdefs.h
<<EOF
6855 #define $ac_tr_hdr 1
6859 echo "$ac_t""no" 1>&6
6863 for ac_func
in getpagesize
6865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6866 echo "configure:6867: checking for $ac_func" >&5
6867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 cat > conftest.
$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* System header to define __stub macros and hopefully few prototypes,
6874 which can conflict with char $ac_func(); below. */
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6894 if { (eval echo configure
:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6896 eval "ac_cv_func_$ac_func=yes"
6898 echo "configure: failed program was:" >&5
6899 cat conftest.
$ac_ext >&5
6901 eval "ac_cv_func_$ac_func=no"
6906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6907 echo "$ac_t""yes" 1>&6
6908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6909 cat >> confdefs.h
<<EOF
6910 #define $ac_tr_func 1
6914 echo "$ac_t""no" 1>&6
6918 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6919 echo "configure:6920: checking for working mmap" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 if test "$cross_compiling" = yes; then
6924 ac_cv_func_mmap_fixed_mapped
=no
6926 cat > conftest.
$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6930 /* Thanks to Mike Haertel and Jim Avera for this test.
6931 Here is a matrix of mmap possibilities:
6932 mmap private not fixed
6933 mmap private fixed at somewhere currently unmapped
6934 mmap private fixed at somewhere already mapped
6935 mmap shared not fixed
6936 mmap shared fixed at somewhere currently unmapped
6937 mmap shared fixed at somewhere already mapped
6938 For private mappings, we should verify that changes cannot be read()
6939 back from the file, nor mmap's back from the file at a different
6940 address. (There have been systems where private was not correctly
6941 implemented like the infamous i386 svr4.0, and systems where the
6942 VM page cache was not coherent with the filesystem buffer cache
6943 like early versions of FreeBSD and possibly contemporary NetBSD.)
6944 For shared mappings, we should conversely verify that changes get
6945 propogated back to all the places they're supposed to be.
6947 Grep wants private fixed already mapped.
6948 The main things grep needs to know about mmap are:
6949 * does it exist and is it safe to write into the mmap'd area
6950 * how to use it (BSD variants) */
6951 #include <sys/types.h>
6953 #include <sys/mman.h>
6955 /* This mess was copied from the GNU getpagesize.h. */
6956 #ifndef HAVE_GETPAGESIZE
6957 # ifdef HAVE_UNISTD_H
6958 # include <unistd.h>
6961 /* Assume that all systems that can run configure have sys/param.h. */
6962 # ifndef HAVE_SYS_PARAM_H
6963 # define HAVE_SYS_PARAM_H 1
6966 # ifdef _SC_PAGESIZE
6967 # define getpagesize() sysconf(_SC_PAGESIZE)
6968 # else /* no _SC_PAGESIZE */
6969 # ifdef HAVE_SYS_PARAM_H
6970 # include <sys/param.h>
6971 # ifdef EXEC_PAGESIZE
6972 # define getpagesize() EXEC_PAGESIZE
6973 # else /* no EXEC_PAGESIZE */
6975 # define getpagesize() NBPG * CLSIZE
6978 # endif /* no CLSIZE */
6979 # else /* no NBPG */
6981 # define getpagesize() NBPC
6982 # else /* no NBPC */
6984 # define getpagesize() PAGESIZE
6985 # endif /* PAGESIZE */
6986 # endif /* no NBPC */
6987 # endif /* no NBPG */
6988 # endif /* no EXEC_PAGESIZE */
6989 # else /* no HAVE_SYS_PARAM_H */
6990 # define getpagesize() 8192 /* punt totally */
6991 # endif /* no HAVE_SYS_PARAM_H */
6992 # endif /* no _SC_PAGESIZE */
6994 #endif /* no HAVE_GETPAGESIZE */
6997 extern "C" { void *malloc(unsigned); }
7005 char *data, *data2, *data3;
7009 pagesize = getpagesize();
7012 * First, make a file with some known garbage in it.
7014 data = malloc(pagesize);
7017 for (i = 0; i < pagesize; ++i)
7018 *(data + i) = rand();
7020 fd = creat("conftestmmap", 0600);
7023 if (write(fd, data, pagesize) != pagesize)
7028 * Next, try to mmap the file at a fixed address which
7029 * already has something else allocated at it. If we can,
7030 * also make sure that we see the same garbage.
7032 fd = open("conftestmmap", O_RDWR);
7035 data2 = malloc(2 * pagesize);
7038 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7039 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7040 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7042 for (i = 0; i < pagesize; ++i)
7043 if (*(data + i) != *(data2 + i))
7047 * Finally, make sure that changes to the mapped area
7048 * do not percolate back to the file as seen by read().
7049 * (This is a bug on some variants of i386 svr4.0.)
7051 for (i = 0; i < pagesize; ++i)
7052 *(data2 + i) = *(data2 + i) + 1;
7053 data3 = malloc(pagesize);
7056 if (read(fd, data3, pagesize) != pagesize)
7058 for (i = 0; i < pagesize; ++i)
7059 if (*(data + i) != *(data3 + i))
7062 unlink("conftestmmap");
7067 if { (eval echo configure
:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7069 ac_cv_func_mmap_fixed_mapped
=yes
7071 echo "configure: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7074 ac_cv_func_mmap_fixed_mapped
=no
7081 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7082 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7083 cat >> confdefs.h
<<\EOF
7090 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7091 unistd.h sys
/param.h
7093 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7095 echo "configure:7096: checking for $ac_hdr" >&5
7096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7099 cat > conftest.
$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7105 { (eval echo configure
:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7106 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7107 if test -z "$ac_err"; then
7109 eval "ac_cv_header_$ac_safe=yes"
7112 echo "configure: failed program was:" >&5
7113 cat conftest.
$ac_ext >&5
7115 eval "ac_cv_header_$ac_safe=no"
7119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7120 echo "$ac_t""yes" 1>&6
7121 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7122 cat >> confdefs.h
<<EOF
7123 #define $ac_tr_hdr 1
7127 echo "$ac_t""no" 1>&6
7131 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7132 strdup __argz_count __argz_stringify __argz_next
7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.
$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7163 if { (eval echo configure
:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7165 eval "ac_cv_func_$ac_func=yes"
7167 echo "configure: failed program was:" >&5
7168 cat conftest.
$ac_ext >&5
7170 eval "ac_cv_func_$ac_func=no"
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h
<<EOF
7179 #define $ac_tr_func 1
7183 echo "$ac_t""no" 1>&6
7188 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7189 for ac_func
in stpcpy
7191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7192 echo "configure:7193: checking for $ac_func" >&5
7193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7196 cat > conftest.
$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* System header to define __stub macros and hopefully few prototypes,
7200 which can conflict with char $ac_func(); below. */
7202 /* Override any gcc2 internal prototype to avoid an error. */
7203 /* We use char because int might match the return type of a gcc2
7204 builtin and then its argument prototype would still apply. */
7209 /* The GNU C library defines this for functions which it implements
7210 to always fail with ENOSYS. Some functions are actually named
7211 something starting with __ and the normal name is an alias. */
7212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7220 if { (eval echo configure
:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7222 eval "ac_cv_func_$ac_func=yes"
7224 echo "configure: failed program was:" >&5
7225 cat conftest.
$ac_ext >&5
7227 eval "ac_cv_func_$ac_func=no"
7232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7235 cat >> confdefs.h
<<EOF
7236 #define $ac_tr_func 1
7240 echo "$ac_t""no" 1>&6
7245 if test "${ac_cv_func_stpcpy}" = "yes"; then
7246 cat >> confdefs.h
<<\EOF
7247 #define HAVE_STPCPY 1
7252 if test $ac_cv_header_locale_h = yes; then
7253 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7254 echo "configure:7255: checking for LC_MESSAGES" >&5
7255 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7258 cat > conftest.
$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7266 if { (eval echo configure
:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7268 am_cv_val_LC_MESSAGES
=yes
7270 echo "configure: failed program was:" >&5
7271 cat conftest.
$ac_ext >&5
7273 am_cv_val_LC_MESSAGES
=no
7278 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7279 if test $am_cv_val_LC_MESSAGES = yes; then
7280 cat >> confdefs.h
<<\EOF
7281 #define HAVE_LC_MESSAGES 1
7286 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7287 echo "configure:7288: checking whether NLS is requested" >&5
7288 # Check whether --enable-nls or --disable-nls was given.
7289 if test "${enable_nls+set}" = set; then
7290 enableval
="$enable_nls"
7296 echo "$ac_t""$USE_NLS" 1>&6
7299 USE_INCLUDED_LIBINTL
=no
7301 if test "$USE_NLS" = "yes"; then
7302 cat >> confdefs.h
<<\EOF
7303 #define ENABLE_NLS 1
7306 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7307 echo "configure:7308: checking whether included gettext is requested" >&5
7308 # Check whether --with-included-gettext or --without-included-gettext was given.
7309 if test "${with_included_gettext+set}" = set; then
7310 withval
="$with_included_gettext"
7311 nls_cv_force_use_gnu_gettext
=$withval
7313 nls_cv_force_use_gnu_gettext
=no
7316 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7318 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7319 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7321 nls_cv_header_libgt
=
7324 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7325 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7326 echo "configure:7327: checking for libintl.h" >&5
7327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 cat > conftest.
$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 #include <libintl.h>
7335 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7336 { (eval echo configure
:7337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7337 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7338 if test -z "$ac_err"; then
7340 eval "ac_cv_header_$ac_safe=yes"
7343 echo "configure: failed program was:" >&5
7344 cat conftest.
$ac_ext >&5
7346 eval "ac_cv_header_$ac_safe=no"
7350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7351 echo "$ac_t""yes" 1>&6
7352 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7353 echo "configure:7354: checking for gettext in libc" >&5
7354 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7357 cat > conftest.
$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 #include <libintl.h>
7362 return (int) gettext ("")
7365 if { (eval echo configure
:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7367 gt_cv_func_gettext_libc
=yes
7369 echo "configure: failed program was:" >&5
7370 cat conftest.
$ac_ext >&5
7372 gt_cv_func_gettext_libc
=no
7377 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7379 if test "$gt_cv_func_gettext_libc" != "yes"; then
7380 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7381 echo "configure:7382: checking for bindtextdomain in -lintl" >&5
7382 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7386 ac_save_LIBS
="$LIBS"
7388 cat > conftest.
$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7391 /* Override any gcc2 internal prototype to avoid an error. */
7392 /* We use char because int might match the return type of a gcc2
7393 builtin and then its argument prototype would still apply. */
7394 char bindtextdomain();
7400 if { (eval echo configure
:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7402 eval "ac_cv_lib_$ac_lib_var=yes"
7404 echo "configure: failed program was:" >&5
7405 cat conftest.
$ac_ext >&5
7407 eval "ac_cv_lib_$ac_lib_var=no"
7410 LIBS
="$ac_save_LIBS"
7413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7414 echo "$ac_t""yes" 1>&6
7415 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7416 echo "configure:7417: checking for gettext in libintl" >&5
7417 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7420 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7421 echo "configure:7422: checking for gettext in -lintl" >&5
7422 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7424 echo $ac_n "(cached) $ac_c" 1>&6
7426 ac_save_LIBS
="$LIBS"
7428 cat > conftest.
$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7431 /* Override any gcc2 internal prototype to avoid an error. */
7432 /* We use char because int might match the return type of a gcc2
7433 builtin and then its argument prototype would still apply. */
7440 if { (eval echo configure
:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7442 eval "ac_cv_lib_$ac_lib_var=yes"
7444 echo "configure: failed program was:" >&5
7445 cat conftest.
$ac_ext >&5
7447 eval "ac_cv_lib_$ac_lib_var=no"
7450 LIBS
="$ac_save_LIBS"
7453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 gt_cv_func_gettext_libintl
=yes
7457 echo "$ac_t""no" 1>&6
7458 gt_cv_func_gettext_libintl
=no
7463 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7465 echo "$ac_t""no" 1>&6
7470 if test "$gt_cv_func_gettext_libc" = "yes" \
7471 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7472 cat >> confdefs.h
<<\EOF
7473 #define HAVE_GETTEXT 1
7476 # Extract the first word of "msgfmt", so it can be a program name with args.
7477 set dummy msgfmt
; ac_word
=$2
7478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7479 echo "configure:7480: checking for $ac_word" >&5
7480 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7485 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7488 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7489 for ac_dir
in $PATH; do
7490 test -z "$ac_dir" && ac_dir
=.
7491 if test -f $ac_dir/$ac_word; then
7492 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7493 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7499 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7503 MSGFMT
="$ac_cv_path_MSGFMT"
7504 if test -n "$MSGFMT"; then
7505 echo "$ac_t""$MSGFMT" 1>&6
7507 echo "$ac_t""no" 1>&6
7509 if test "$MSGFMT" != "no"; then
7510 for ac_func
in dcgettext
7512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7513 echo "configure:7514: checking for $ac_func" >&5
7514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7517 cat > conftest.
$ac_ext <<EOF
7518 #line 7519 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func(); below. */
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7530 /* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
7533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7541 if { (eval echo configure
:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7543 eval "ac_cv_func_$ac_func=yes"
7545 echo "configure: failed program was:" >&5
7546 cat conftest.
$ac_ext >&5
7548 eval "ac_cv_func_$ac_func=no"
7553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7556 cat >> confdefs.h
<<EOF
7557 #define $ac_tr_func 1
7561 echo "$ac_t""no" 1>&6
7565 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7566 set dummy gmsgfmt
; ac_word
=$2
7567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_word" >&5
7569 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7574 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7577 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7580 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7582 for ac_dir
in $ac_dummy; do
7583 test -z "$ac_dir" && ac_dir
=.
7584 if test -f $ac_dir/$ac_word; then
7585 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7590 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7594 GMSGFMT
="$ac_cv_path_GMSGFMT"
7595 if test -n "$GMSGFMT"; then
7596 echo "$ac_t""$GMSGFMT" 1>&6
7598 echo "$ac_t""no" 1>&6
7601 # Extract the first word of "xgettext", so it can be a program name with args.
7602 set dummy xgettext
; ac_word
=$2
7603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_word" >&5
7605 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7610 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7613 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7614 for ac_dir
in $PATH; do
7615 test -z "$ac_dir" && ac_dir
=.
7616 if test -f $ac_dir/$ac_word; then
7617 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7618 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7624 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7628 XGETTEXT
="$ac_cv_path_XGETTEXT"
7629 if test -n "$XGETTEXT"; then
7630 echo "$ac_t""$XGETTEXT" 1>&6
7632 echo "$ac_t""no" 1>&6
7635 cat > conftest.
$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7640 extern int _nl_msg_cat_cntr;
7641 return _nl_msg_cat_cntr
7644 if { (eval echo configure
:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7649 echo "configure: failed program was:" >&5
7650 cat conftest.
$ac_ext >&5
7661 echo "$ac_t""no" 1>&6
7665 if test "$CATOBJEXT" = "NONE"; then
7666 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7667 echo "configure:7668: checking whether catgets can be used" >&5
7668 # Check whether --with-catgets or --without-catgets was given.
7669 if test "${with_catgets+set}" = set; then
7670 withval
="$with_catgets"
7671 nls_cv_use_catgets
=$withval
7673 nls_cv_use_catgets
=no
7676 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7678 if test "$nls_cv_use_catgets" = "yes"; then
7679 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7680 echo "configure:7681: checking for main in -li" >&5
7681 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7685 ac_save_LIBS
="$LIBS"
7687 cat > conftest.
$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7695 if { (eval echo configure
:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7697 eval "ac_cv_lib_$ac_lib_var=yes"
7699 echo "configure: failed program was:" >&5
7700 cat conftest.
$ac_ext >&5
7702 eval "ac_cv_lib_$ac_lib_var=no"
7705 LIBS
="$ac_save_LIBS"
7708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7709 echo "$ac_t""yes" 1>&6
7710 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7711 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7712 cat >> confdefs.h
<<EOF
7713 #define $ac_tr_lib 1
7719 echo "$ac_t""no" 1>&6
7722 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7723 echo "configure:7724: checking for catgets" >&5
7724 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 cat > conftest.
$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char catgets(); below. */
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_catgets) || defined (__stub___catgets)
7751 if { (eval echo configure
:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7753 eval "ac_cv_func_catgets=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 eval "ac_cv_func_catgets=no"
7763 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 cat >> confdefs.h
<<\EOF
7766 #define HAVE_CATGETS 1
7769 INTLOBJS
="\$(CATOBJS)"
7770 # Extract the first word of "gencat", so it can be a program name with args.
7771 set dummy gencat
; ac_word
=$2
7772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_word" >&5
7774 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7779 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7782 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7787 for ac_dir
in $ac_dummy; do
7788 test -z "$ac_dir" && ac_dir
=.
7789 if test -f $ac_dir/$ac_word; then
7790 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7795 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7799 GENCAT
="$ac_cv_path_GENCAT"
7800 if test -n "$GENCAT"; then
7801 echo "$ac_t""$GENCAT" 1>&6
7803 echo "$ac_t""no" 1>&6
7805 if test "$GENCAT" != "no"; then
7806 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7807 set dummy gmsgfmt
; ac_word
=$2
7808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7809 echo "configure:7810: checking for $ac_word" >&5
7810 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7815 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7818 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7821 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7823 for ac_dir
in $ac_dummy; do
7824 test -z "$ac_dir" && ac_dir
=.
7825 if test -f $ac_dir/$ac_word; then
7826 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7831 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7835 GMSGFMT
="$ac_cv_path_GMSGFMT"
7836 if test -n "$GMSGFMT"; then
7837 echo "$ac_t""$GMSGFMT" 1>&6
7839 echo "$ac_t""no" 1>&6
7842 if test "$GMSGFMT" = "no"; then
7843 # Extract the first word of "msgfmt", so it can be a program name with args.
7844 set dummy msgfmt
; ac_word
=$2
7845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7846 echo "configure:7847: checking for $ac_word" >&5
7847 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7848 echo $ac_n "(cached) $ac_c" 1>&6
7852 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7856 for ac_dir
in $PATH; do
7857 test -z "$ac_dir" && ac_dir
=.
7858 if test -f $ac_dir/$ac_word; then
7859 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7860 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7866 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7870 GMSGFMT
="$ac_cv_path_GMSGFMT"
7871 if test -n "$GMSGFMT"; then
7872 echo "$ac_t""$GMSGFMT" 1>&6
7874 echo "$ac_t""no" 1>&6
7878 # Extract the first word of "xgettext", so it can be a program name with args.
7879 set dummy xgettext
; ac_word
=$2
7880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7881 echo "configure:7882: checking for $ac_word" >&5
7882 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7887 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7891 for ac_dir
in $PATH; do
7892 test -z "$ac_dir" && ac_dir
=.
7893 if test -f $ac_dir/$ac_word; then
7894 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7895 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7901 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7905 XGETTEXT
="$ac_cv_path_XGETTEXT"
7906 if test -n "$XGETTEXT"; then
7907 echo "$ac_t""$XGETTEXT" 1>&6
7909 echo "$ac_t""no" 1>&6
7912 USE_INCLUDED_LIBINTL
=yes
7916 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7918 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7919 nls_cv_header_intl
=intl
/libintl.h
7920 nls_cv_header_libgt
=intl
/libgettext.h
7923 echo "$ac_t""no" 1>&6
7929 if test "$CATOBJEXT" = "NONE"; then
7930 nls_cv_use_gnu_gettext
=yes
7934 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7935 INTLOBJS
="\$(GETTOBJS)"
7936 # Extract the first word of "msgfmt", so it can be a program name with args.
7937 set dummy msgfmt
; ac_word
=$2
7938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7939 echo "configure:7940: checking for $ac_word" >&5
7940 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7945 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7949 for ac_dir
in $PATH; do
7950 test -z "$ac_dir" && ac_dir
=.
7951 if test -f $ac_dir/$ac_word; then
7952 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7953 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7963 MSGFMT
="$ac_cv_path_MSGFMT"
7964 if test -n "$MSGFMT"; then
7965 echo "$ac_t""$MSGFMT" 1>&6
7967 echo "$ac_t""no" 1>&6
7970 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7971 set dummy gmsgfmt
; ac_word
=$2
7972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7973 echo "configure:7974: checking for $ac_word" >&5
7974 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7979 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7982 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7987 for ac_dir
in $ac_dummy; do
7988 test -z "$ac_dir" && ac_dir
=.
7989 if test -f $ac_dir/$ac_word; then
7990 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7995 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7999 GMSGFMT
="$ac_cv_path_GMSGFMT"
8000 if test -n "$GMSGFMT"; then
8001 echo "$ac_t""$GMSGFMT" 1>&6
8003 echo "$ac_t""no" 1>&6
8006 # Extract the first word of "xgettext", so it can be a program name with args.
8007 set dummy xgettext
; ac_word
=$2
8008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8009 echo "configure:8010: checking for $ac_word" >&5
8010 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8015 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8019 for ac_dir
in $PATH; do
8020 test -z "$ac_dir" && ac_dir
=.
8021 if test -f $ac_dir/$ac_word; then
8022 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8023 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8029 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8033 XGETTEXT
="$ac_cv_path_XGETTEXT"
8034 if test -n "$XGETTEXT"; then
8035 echo "$ac_t""$XGETTEXT" 1>&6
8037 echo "$ac_t""no" 1>&6
8041 USE_INCLUDED_LIBINTL
=yes
8045 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8047 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8048 nls_cv_header_intl
=intl
/libintl.h
8049 nls_cv_header_libgt
=intl
/libgettext.h
8052 if test "$XGETTEXT" != ":"; then
8053 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8056 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8061 # We need to process the po/ directory.
8065 nls_cv_header_intl
=intl
/libintl.h
8066 nls_cv_header_libgt
=intl
/libgettext.h
8072 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8073 # because some of the sources are only built for this goal.
8074 if test "$PACKAGE" = gettext; then
8076 USE_INCLUDED_LIBINTL
=yes
8079 for lang
in $ALL_LINGUAS; do
8080 GMOFILES
="$GMOFILES $lang.gmo"
8081 POFILES
="$POFILES $lang.po"
8097 if test "x$CATOBJEXT" != "x"; then
8098 if test "x$ALL_LINGUAS" = "x"; then
8101 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8102 echo "configure:8103: checking for catalogs to be installed" >&5
8104 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8105 case "$ALL_LINGUAS" in
8106 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8109 LINGUAS
=$NEW_LINGUAS
8110 echo "$ac_t""$LINGUAS" 1>&6
8113 if test -n "$LINGUAS"; then
8114 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8118 if test $ac_cv_header_locale_h = yes; then
8119 INCLUDE_LOCALE_H
="#include <locale.h>"
8122 /* The system does not provide the header <locale.h>. Take care yourself. */"
8126 test -d intl || mkdir intl
8127 if test "$CATOBJEXT" = ".cat"; then
8128 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8129 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8130 echo "configure:8131: checking for linux/version.h" >&5
8131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8132 echo $ac_n "(cached) $ac_c" 1>&6
8134 cat > conftest.
$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8137 #include <linux/version.h>
8139 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8140 { (eval echo configure
:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8141 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8142 if test -z "$ac_err"; then
8144 eval "ac_cv_header_$ac_safe=yes"
8147 echo "configure: failed program was:" >&5
8148 cat conftest.
$ac_ext >&5
8150 eval "ac_cv_header_$ac_safe=no"
8154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8158 echo "$ac_t""no" 1>&6
8163 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8165 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8166 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8168 if test "$PACKAGE" = "gettext"; then
8179 if test -n "$ac_aux_dir"; then
8180 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8182 if test -z "$MKINSTALLDIRS"; then
8183 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8190 test -d po || mkdir po
8191 if test "x$srcdir" != "x."; then
8192 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8193 posrcprefix
="$srcdir/"
8195 posrcprefix
="../$srcdir/"
8201 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8202 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8204 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8206 # Windows32 Registry support for specifying GCC installation paths.
8207 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8208 if test "${enable_win32_registry+set}" = set; then
8209 enableval
="$enable_win32_registry"
8214 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8215 echo "configure:8216: checking whether windows registry support is requested" >&5
8216 if test x
$enable_win32_registry != xno
; then
8217 cat >> confdefs.h
<<\EOF
8218 #define ENABLE_WIN32_REGISTRY 1
8221 echo "$ac_t""yes" 1>&6
8223 echo "$ac_t""no" 1>&6
8226 # Check if user specified a different registry key.
8227 case x
${enable_win32_registry} in
8230 gcc_cv_win32_registry_key
="$VERSION"
8233 # no registry lookup.
8234 gcc_cv_win32_registry_key
=''
8237 # user-specified key.
8238 gcc_cv_win32_registry_key
="$enable_win32_registry"
8242 if test x
$enable_win32_registry != xno
; then
8243 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8244 echo "configure:8245: checking registry key on windows hosts" >&5
8245 cat >> confdefs.h
<<EOF
8246 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8249 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8252 # Get an absolute path to the GCC top-level source directory
8258 # Conditionalize the makefile for this host machine.
8259 # Make-host contains the concatenation of all host makefile fragments
8260 # [there can be more than one]. This file is built by configure.frag.
8261 host_overrides
=Make-host
8262 dep_host_xmake_file
=
8263 for f
in ..
${host_xmake_file}
8265 if test -f ${srcdir}/config
/$f
8267 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8271 # Conditionalize the makefile for this target machine.
8272 # Make-target contains the concatenation of all host makefile fragments
8273 # [there can be more than one]. This file is built by configure.frag.
8274 target_overrides
=Make-target
8276 for f
in ..
${tmake_file}
8278 if test -f ${srcdir}/config
/$f
8280 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8284 # If the host doesn't support symlinks, modify CC in
8285 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8286 # Otherwise, we can use "CC=$(CC)".
8288 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8290 cc_set_by_configure
="\$(CC)"
8291 quoted_cc_set_by_configure
="\$(CC)"
8292 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8295 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8297 symbolic_link
="cp -p"
8301 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8302 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8303 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8307 out_object_file
=`basename $out_file .c`.o
8310 for f
in $tm_file; do
8313 tm_file_list
="${tm_file_list} $f" ;;
8314 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8319 for f
in $host_xm_file; do
8321 auto-host.h | gansidecl.h | hwint.h
)
8322 host_xm_file_list
="${host_xm_file_list} $f" ;;
8323 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8328 for f
in $build_xm_file; do
8330 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8331 build_xm_file_list
="${build_xm_file_list} $f" ;;
8332 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8336 # Define macro CROSS_COMPILE in compilation
8337 # if this is a cross-compiler.
8338 # Also use all.cross instead of all.internal
8339 # and add cross-make to Makefile.
8340 cross_overrides
="/dev/null"
8341 if test x
$host != x
$target
8343 cross_defines
="CROSS=-DCROSS_COMPILE"
8344 cross_overrides
="${topdir}/cross-make"
8347 # When building gcc with a cross-compiler, we need to fix a few things.
8348 # This must come after cross-make as we want all.build to override
8350 build_overrides
="/dev/null"
8351 if test x
$build != x
$host
8353 build_overrides
="${topdir}/build-make"
8356 # Expand extra_headers to include complete path.
8357 # This substitutes for lots of t-* files.
8359 if test "x$extra_headers" = x
8362 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8363 for file in $extra_headers;
8365 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8369 if test x
$use_collect2 = xno
; then
8373 # Add a definition of USE_COLLECT2 if system wants one.
8374 # Also tell toplev.c what to do.
8375 # This substitutes for lots of t-* files.
8376 if test x
$use_collect2 = x
8381 will_use_collect2
="collect2"
8382 maybe_use_collect2
="-DUSE_COLLECT2"
8386 # Set MD_DEPS if the real md file is in md.pre-cpp.
8387 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8388 # for line oriented comments, so we must always use a GNU cpp. If
8389 # building gcc with a cross compiler, use the cross compiler just
8390 # built. Otherwise, we can use the cpp just built.
8392 if test "x$md_cppflags" = x
8394 md_file_sub
=$srcdir/config
/$md_file
8399 # If we have gas in the build tree, make a link to it.
8400 if test -f ..
/gas
/Makefile
; then
8401 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8404 # If we have nm in the build tree, make a link to it.
8405 if test -f ..
/binutils
/Makefile
; then
8406 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8409 # If we have ld in the build tree, make a link to it.
8410 if test -f ..
/ld
/Makefile
; then
8411 # if test x$use_collect2 = x; then
8412 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8414 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8418 # Figure out what assembler alignment features are present.
8419 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8420 echo "configure:8421: checking assembler alignment features" >&5
8422 gcc_cv_as_alignment_features
=
8423 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8424 if test -x "$DEFAULT_ASSEMBLER"; then
8425 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8426 elif test -x "$AS"; then
8428 elif test -x as
$host_exeext; then
8429 # Build using assembler in the current directory.
8430 gcc_cv_as
=.
/as
$host_exeext
8431 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8432 # Single tree build which includes gas.
8433 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8435 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8436 if test x
$gcc_cv_gas_version != x
; then
8440 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8441 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8442 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8443 # Gas version 2.6 and later support for .balign and .p2align.
8444 # bytes to skip when using .p2align.
8445 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
8446 gcc_cv_as_alignment_features
=".balign and .p2align"
8447 cat >> confdefs.h
<<\EOF
8448 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8452 # Gas version 2.8 and later support specifying the maximum
8453 # bytes to skip when using .p2align.
8454 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
8455 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8456 cat >> confdefs.h
<<\EOF
8457 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8462 elif test x
$host = x
$target; then
8464 # Search the same directories that the installed compiler will
8465 # search. Else we may find the wrong assembler and lose. If we
8466 # do not find a suitable assembler binary, then try the user's
8469 # Also note we have to check MD_EXEC_PREFIX before checking the
8470 # user's path. Unfortunately, there is no good way to get at the
8471 # value of MD_EXEC_PREFIX here. So we do a brute force search
8472 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8473 # to be fixed as part of the make/configure rewrite too.
8475 if test "x$exec_prefix" = xNONE
; then
8476 if test "x$prefix" = xNONE
; then
8477 test_prefix
=/usr
/local
8482 test_prefix
=$exec_prefix
8485 # If the loop below does not find an assembler, then use whatever
8486 # one we can find in the users's path.
8490 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8491 $test_prefix/lib/gcc-lib/$target \
8492 /usr/lib/gcc/$target/$gcc_version \
8493 /usr/lib/gcc/$target \
8494 $test_prefix/$target/bin/$target/$gcc_version \
8495 $test_prefix/$target/bin \
8500 /bsd43/usr/lib/cmplrs/cc \
8501 /usr/cross64/usr/bin \
8502 /usr/lib/cmplrs/cc \
8503 /sysv/usr/lib/cmplrs/cc \
8504 /svr4/usr/lib/cmplrs/cc \
8507 for dir
in $test_dirs; do
8508 if test -f $dir/as
$host_exeext; then
8509 gcc_cv_as
=$dir/as
$host_exeext
8514 if test x
$gcc_cv_as != x
; then
8515 # Check if we have .balign and .p2align
8516 echo ".balign 4" > conftest.s
8517 echo ".p2align 2" >> conftest.s
8518 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8519 gcc_cv_as_alignment_features
=".balign and .p2align"
8520 cat >> confdefs.h
<<\EOF
8521 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8525 rm -f conftest.s conftest.o
8526 # Check if specifying the maximum bytes to skip when
8527 # using .p2align is supported.
8528 echo ".p2align 4,,7" > conftest.s
8529 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8530 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8531 cat >> confdefs.h
<<\EOF
8532 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8536 rm -f conftest.s conftest.o
8538 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8540 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8541 echo "configure:8542: checking assembler subsection support" >&5
8542 gcc_cv_as_subsections
=
8543 if test x
$gcc_cv_as != x
; then
8544 # Check if we have .subsection
8545 echo ".subsection 1" > conftest.s
8546 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8547 gcc_cv_as_subsections
=".subsection"
8548 if test -x nm
$host_exeext; then
8549 gcc_cv_nm
=.
/nm
$host_exeext
8550 elif test x
$host = x
$target; then
8552 gcc_cv_nm
=nm
$host_exeext
8554 if test x
$gcc_cv_nm != x
; then
8555 cat > conftest.s
<<EOF
8556 conftest_label1: .word 0
8558 conftest_label2: .word 0
8561 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8562 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8563 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8564 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8567 gcc_cv_as_subsections
="working .subsection -1"
8568 cat >> confdefs.h
<<\EOF
8569 #define HAVE_GAS_SUBSECTION_ORDERING 1
8576 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8578 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8582 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8583 echo "configure:8584: checking assembler .register pseudo-op support" >&5
8584 gcc_cv_as_register_pseudo_op
=
8585 if test x
$gcc_cv_as != x
; then
8586 # Check if we have .register
8587 echo ".register %g2, #scratch" > conftest.s
8588 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8589 gcc_cv_as_register_pseudo_op
=yes
8590 cat >> confdefs.h
<<\EOF
8591 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8595 rm -f conftest.s conftest.o
8597 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8599 echo $ac_n "checking assembler offsetable %lo() support""... $ac_c" 1>&6
8600 echo "configure:8601: checking assembler offsetable %lo() support" >&5
8601 gcc_cv_as_offsetable_lo10
=
8602 if test x
$gcc_cv_as != x
; then
8603 # Check if assembler has offsetable %lo()
8604 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8605 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8606 gcc_cv_as_flags64
="-xarch=v9"
8607 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
8610 gcc_cv_as_flags64
="-64"
8611 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
8614 gcc_cv_as_flags64
=""
8617 if test -n "$gcc_cv_as_flags64" ; then
8618 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s
> /dev
/null
2>&1; then
8619 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8622 gcc_cv_as_offsetable_lo10
=yes
8623 cat >> confdefs.h
<<\EOF
8624 #define HAVE_AS_OFFSETABLE_LO10 1
8630 rm -f conftest.s conftest.o conftest1.s conftest1.o
8632 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8636 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8637 echo "configure:8638: checking assembler instructions" >&5
8638 gcc_cv_as_instructions
=
8639 if test x
$gcc_cv_as != x
; then
8640 set "filds fists" "filds mem; fists mem"
8643 echo "$2" > conftest.s
8644 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8645 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8646 cat >> confdefs.h
<<EOF
8647 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8653 rm -f conftest.s conftest.o
8655 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8659 # Figure out what language subdirectories are present.
8660 # Look if the user specified --enable-languages="..."; if not, use
8661 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8663 if test x
"${enable_languages+set}" != xset
; then
8664 if test x
"${LANGUAGES+set}" = xset
; then
8665 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8667 enable_languages
=all
8671 for lang
in ${srcdir}/*/config-lang.
in ..
8675 # The odd quoting in the next line works around
8676 # an apparent bug in bash 1.12 on linux.
8677 ${srcdir}/[*]/config-lang.
in) ;;
8679 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8680 if test "x$lang_alias" = x
8682 echo "$lang doesn't set \$language." 1>&2
8685 if test x
"${enable_languages}" = xall
; then
8688 case "${enable_languages}" in
8689 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8697 if test x"${add_this_lang}" = xyes; then
8699 ${srcdir}/ada/config-lang.in)
8700 if test x$gnat = xyes ; then
8701 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8705 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8713 # Make gthr-default.h if we have a thread file.
8715 if test $thread_file != single; then
8716 rm -f gthr-default.h
8717 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8718 gthread_flags
=-DHAVE_GTHR_DEFAULT
8722 # Make empty files to contain the specs and options for each language.
8723 # Then add #include lines to for a compiler that has specs and/or options.
8728 rm -f specs.h options.h gencheck.h
8729 touch specs.h options.h gencheck.h
8730 for subdir
in .
$subdirs
8732 if test -f $srcdir/$subdir/lang-specs.h
; then
8733 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8734 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8736 if test -f $srcdir/$subdir/lang-options.h
; then
8737 echo "#include \"$subdir/lang-options.h\"" >>options.h
8738 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8740 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8741 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8742 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8746 # These (without "all_") are set in each config-lang.in.
8747 # `language' must be a single word so is spelled singularly.
8753 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8754 # List of language makefile fragments.
8759 # Add the language fragments.
8760 # Languages are added via two mechanisms. Some information must be
8761 # recorded in makefile variables, these are defined in config-lang.in.
8762 # We accumulate them and plug them into the main Makefile.
8763 # The other mechanism is a set of hooks for each of the main targets
8764 # like `clean', `install', etc.
8766 language_fragments
="Make-lang"
8767 language_hooks
="Make-hooks"
8770 for s
in ..
$subdirs
8782 .
${srcdir}/$s/config-lang.
in
8783 if test "x$language" = x
8785 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8788 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8789 all_languages
="$all_languages $language"
8790 if test "x$boot_language" = xyes
8792 all_boot_languages
="$all_boot_languages $language"
8794 all_compilers
="$all_compilers $compilers"
8795 all_stagestuff
="$all_stagestuff $stagestuff"
8796 all_diff_excludes
="$all_diff_excludes $diff_excludes"
8797 all_headers
="$all_headers $headers"
8798 all_outputs
="$all_outputs $outputs"
8799 if test x
$outputs = x
8801 oldstyle_subdirs
="$oldstyle_subdirs $s"
8803 all_lib2funcs
="$all_lib2funcs $lib2funcs"
8807 # Since we can't use `::' targets, we link each language in
8808 # with a set of hooks, reached indirectly via lang.${target}.
8812 target_list
="all.build all.cross start.encap rest.encap \
8814 install-normal install-common install-info install-man \
8816 mostlyclean clean distclean extraclean maintainer-clean \
8817 stage1 stage2 stage3 stage4"
8818 for t
in $target_list
8821 for lang
in ..
$all_languages
8823 if test $lang != ".."; then
8827 echo "lang.$t: $x" >> Make-hooks
8830 # If we're not building in srcdir, create .gdbinit.
8832 if test ! -f Makefile.
in; then
8833 echo "dir ." > .gdbinit
8834 echo "dir ${srcdir}" >> .gdbinit
8835 if test x
$gdb_needs_out_file_path = xyes
8837 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8839 if test "x$subdirs" != x
; then
8842 echo "dir ${srcdir}/$s" >> .gdbinit
8845 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8848 # Define variables host_canonical and build_canonical
8849 # because some Cygnus local changes in the Makefile depend on them.
8850 build_canonical
=${build}
8851 host_canonical
=${host}
8853 if test "${host}" != "${target}" ; then
8854 target_subdir
=${target}/
8860 # If this is using newlib, then define inhibit_libc in
8861 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8862 # libgcc.a, but that's OK because newib should have its own version of
8865 if test x
$with_newlib = xyes
; then
8866 inhibit_libc
=-Dinhibit_libc
8870 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8871 # absolute path for gcc_tooldir based on inserting the number of up-directory
8872 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8873 # $(libsubdir)/@(unlibsubdir) based path.
8874 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8875 # make and thus we'd get different behavior depending on where we built the
8877 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8878 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8880 # An explanation of the sed strings:
8881 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8882 # -e 's|/$||' match a trailing forward slash and eliminates it
8883 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8884 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8886 # (*) Note this pattern overwrites the first character of the string
8887 # with a forward slash if one is not already present. This is not a
8888 # problem because the exact names of the sub-directories concerned is
8889 # unimportant, just the number of them matters.
8891 # The practical upshot of these patterns is like this:
8893 # prefix exec_prefix result
8894 # ------ ----------- ------
8896 # /foo/ /foo/bar ../
8897 # /foo /foo/bar/ ../
8898 # /foo/ /foo/bar/ ../
8899 # /foo /foo/bar/ugg ../../
8902 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8907 # Nothing to do for FLOAT_H, float_format already handled.
8911 # Process the language and host/target makefile fragments.
8912 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8914 # Substitute configuration variables
8975 # Echo that links are built
8976 if test x
$host = x
$target
8984 if test x
$host != x
$build
8986 str3
=" on a $build system"
8989 if test "x$str2" != x ||
test "x$str3" != x
8994 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8996 if test "x$str2" != x ||
test "x$str3" != x
8998 echo " ${str2}${str3}." 1>&2
9001 # Truncate the target if necessary
9002 if test x
$host_truncate_target != x
; then
9003 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9006 # Configure the subdirectories
9007 # AC_CONFIG_SUBDIRS($subdirs)
9009 # Create the Makefile
9010 # and configure language subdirectories
9012 cat > confcache
<<\EOF
9013 # This file is a shell script that caches the results of configure
9014 # tests run on this system so they can be shared between configure
9015 # scripts and configure runs. It is not useful on other systems.
9016 # If it contains results you don't want to keep, you may remove or edit it.
9018 # By default, configure uses ./config.cache as the cache file,
9019 # creating it if it does not exist already. You can give configure
9020 # the --cache-file=FILE option to use a different cache file; that is
9021 # what configure does when it calls configure scripts in
9022 # subdirectories, so they share the cache.
9023 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9024 # config.status only pays attention to the cache file if you give it the
9025 # --recheck option to rerun configure.
9028 # The following way of writing the cache mishandles newlines in values,
9029 # but we know of no workaround that is simple, portable, and efficient.
9030 # So, don't put newlines in cache variables' values.
9031 # Ultrix sh set writes to stderr and can't be redirected directly,
9032 # and sets the high bit in the cache file unless we assign to the vars.
9034 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9036 # `set' does not quote correctly, so add quotes (double-quote substitution
9037 # turns \\\\ into \\, and sed turns \\ into \).
9039 -e "s/'/'\\\\''/g" \
9040 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9043 # `set' quotes correctly as required by POSIX, so do not add quotes.
9044 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9047 if cmp -s $cache_file confcache
; then
9050 if test -w $cache_file; then
9051 echo "updating cache $cache_file"
9052 cat confcache
> $cache_file
9054 echo "not updating unwritable cache $cache_file"
9059 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9061 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9062 # Let make expand exec_prefix.
9063 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9065 # Any assignment to VPATH causes Sun make to only execute
9066 # the first set of double-colon rules, so remove it if not needed.
9067 # If there is a colon in the path, we need to keep it.
9068 if test "x$srcdir" = x.
; then
9069 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9072 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9074 DEFS
=-DHAVE_CONFIG_H
9076 # Without the "./", some shells look in PATH for config.status.
9077 : ${CONFIG_STATUS=./config.status}
9079 echo creating
$CONFIG_STATUS
9080 rm -f $CONFIG_STATUS
9081 cat > $CONFIG_STATUS <<EOF
9083 # Generated automatically by configure.
9084 # Run this file to recreate the current configuration.
9085 # This directory was configured as follows,
9086 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9088 # $0 $ac_configure_args
9090 # Compiler output produced by configure, useful for debugging
9091 # configure, is in ./config.log if it exists.
9093 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9096 case "\$ac_option" in
9097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9098 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9099 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9100 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9101 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9103 -help | --help | --hel | --he | --h)
9104 echo "\$ac_cs_usage"; exit 0 ;;
9105 *) echo "\$ac_cs_usage"; exit 1 ;;
9109 ac_given_srcdir=$srcdir
9111 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9113 cat >> $CONFIG_STATUS <<EOF
9115 # Protect against being on the right side of a sed subst in config.status.
9116 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9117 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9121 s%@CFLAGS@%$CFLAGS%g
9122 s%@CPPFLAGS@%$CPPFLAGS%g
9123 s%@CXXFLAGS@%$CXXFLAGS%g
9124 s%@FFLAGS@%$FFLAGS%g
9126 s%@LDFLAGS@%$LDFLAGS%g
9128 s%@exec_prefix@%$exec_prefix%g
9129 s%@prefix@%$prefix%g
9130 s%@program_transform_name@%$program_transform_name%g
9131 s%@bindir@%$bindir%g
9132 s%@sbindir@%$sbindir%g
9133 s%@libexecdir@%$libexecdir%g
9134 s%@datadir@%$datadir%g
9135 s%@sysconfdir@%$sysconfdir%g
9136 s%@sharedstatedir@%$sharedstatedir%g
9137 s%@localstatedir@%$localstatedir%g
9138 s%@libdir@%$libdir%g
9139 s%@includedir@%$includedir%g
9140 s%@oldincludedir@%$oldincludedir%g
9141 s%@infodir@%$infodir%g
9142 s%@mandir@%$mandir%g
9144 s%@host_alias@%$host_alias%g
9145 s%@host_cpu@%$host_cpu%g
9146 s%@host_vendor@%$host_vendor%g
9147 s%@host_os@%$host_os%g
9148 s%@target@%$target%g
9149 s%@target_alias@%$target_alias%g
9150 s%@target_cpu@%$target_cpu%g
9151 s%@target_vendor@%$target_vendor%g
9152 s%@target_os@%$target_os%g
9154 s%@build_alias@%$build_alias%g
9155 s%@build_cpu@%$build_cpu%g
9156 s%@build_vendor@%$build_vendor%g
9157 s%@build_os@%$build_os%g
9159 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9160 s%@SET_MAKE@%$SET_MAKE%g
9163 s%@LEXLIB@%$LEXLIB%g
9166 s%@RANLIB@%$RANLIB%g
9168 s%@INSTALL@%$INSTALL%g
9169 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9170 s%@INSTALL_DATA@%$INSTALL_DATA%g
9173 s%@vfprintf@%$vfprintf%g
9174 s%@doprint@%$doprint%g
9175 s%@manext@%$manext%g
9176 s%@objext@%$objext%g
9177 s%@PACKAGE@%$PACKAGE%g
9178 s%@VERSION@%$VERSION%g
9179 s%@ALLOCA@%$ALLOCA%g
9180 s%@USE_NLS@%$USE_NLS%g
9181 s%@MSGFMT@%$MSGFMT%g
9182 s%@GMSGFMT@%$GMSGFMT%g
9183 s%@XGETTEXT@%$XGETTEXT%g
9184 s%@GENCAT@%$GENCAT%g
9185 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9186 s%@CATALOGS@%$CATALOGS%g
9187 s%@CATOBJEXT@%$CATOBJEXT%g
9188 s%@DATADIRNAME@%$DATADIRNAME%g
9189 s%@GMOFILES@%$GMOFILES%g
9190 s%@INSTOBJEXT@%$INSTOBJEXT%g
9191 s%@INTLDEPS@%$INTLDEPS%g
9192 s%@INTLLIBS@%$INTLLIBS%g
9193 s%@INTLOBJS@%$INTLOBJS%g
9194 s%@POFILES@%$POFILES%g
9196 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9198 s%@GT_YES@%$GT_YES%g
9199 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9201 s%@gthread_flags@%$gthread_flags%g
9202 s%@build_canonical@%$build_canonical%g
9203 s%@host_canonical@%$host_canonical%g
9204 s%@target_subdir@%$target_subdir%g
9205 s%@inhibit_libc@%$inhibit_libc%g
9206 s%@gcc_tooldir@%$gcc_tooldir%g
9207 s%@dollar@%$dollar%g
9208 s%@objdir@%$objdir%g
9209 s%@subdirs@%$subdirs%g
9210 s%@all_boot_languages@%$all_boot_languages%g
9211 s%@all_compilers@%$all_compilers%g
9212 s%@all_diff_excludes@%$all_diff_excludes%g
9213 s%@all_headers@%$all_headers%g
9214 s%@all_lang_makefiles@%$all_lang_makefiles%g
9215 s%@all_languages@%$all_languages%g
9216 s%@all_lib2funcs@%$all_lib2funcs%g
9217 s%@all_stagestuff@%$all_stagestuff%g
9218 s%@build_exeext@%$build_exeext%g
9219 s%@build_install_headers_dir@%$build_install_headers_dir%g
9220 s%@build_xm_file_list@%$build_xm_file_list%g
9221 s%@cc_set_by_configure@%$cc_set_by_configure%g
9222 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9223 s%@cpp_install_dir@%$cpp_install_dir%g
9224 s%@cpp_main@%$cpp_main%g
9225 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9226 s%@dep_tmake_file@%$dep_tmake_file%g
9227 s%@extra_c_flags@%$extra_c_flags%g
9228 s%@extra_c_objs@%$extra_c_objs%g
9229 s%@extra_cpp_objs@%$extra_cpp_objs%g
9230 s%@extra_cxx_objs@%$extra_cxx_objs%g
9231 s%@extra_headers_list@%$extra_headers_list%g
9232 s%@extra_objs@%$extra_objs%g
9233 s%@extra_parts@%$extra_parts%g
9234 s%@extra_passes@%$extra_passes%g
9235 s%@extra_programs@%$extra_programs%g
9236 s%@fixinc_defs@%$fixinc_defs%g
9237 s%@float_h_file@%$float_h_file%g
9238 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9239 s%@gcc_version@%$gcc_version%g
9240 s%@gcc_version_trigger@%$gcc_version_trigger%g
9241 s%@host_exeext@%$host_exeext%g
9242 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9243 s%@host_xm_file_list@%$host_xm_file_list%g
9244 s%@install@%$install%g
9245 s%@lang_options_files@%$lang_options_files%g
9246 s%@lang_specs_files@%$lang_specs_files%g
9247 s%@lang_tree_files@%$lang_tree_files%g
9248 s%@local_prefix@%$local_prefix%g
9249 s%@maybe_use_collect2@%$maybe_use_collect2%g
9250 s%@md_file@%$md_file%g
9251 s%@objc_boehm_gc@%$objc_boehm_gc%g
9252 s%@out_file@%$out_file%g
9253 s%@out_object_file@%$out_object_file%g
9254 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9255 s%@symbolic_link@%$symbolic_link%g
9256 s%@thread_file@%$thread_file%g
9257 s%@tm_file_list@%$tm_file_list%g
9258 s%@will_use_collect2@%$will_use_collect2%g
9259 /@target_overrides@/r $target_overrides
9260 s%@target_overrides@%%g
9261 /@host_overrides@/r $host_overrides
9262 s%@host_overrides@%%g
9263 s%@cross_defines@%$cross_defines%g
9264 /@cross_overrides@/r $cross_overrides
9265 s%@cross_overrides@%%g
9266 /@build_overrides@/r $build_overrides
9267 s%@build_overrides@%%g
9268 /@language_fragments@/r $language_fragments
9269 s%@language_fragments@%%g
9270 /@language_hooks@/r $language_hooks
9271 s%@language_hooks@%%g
9276 cat >> $CONFIG_STATUS <<\EOF
9278 # Split the substitutions into bite-sized pieces for seds with
9279 # small command number limits, like on Digital OSF/1 and HP-UX.
9280 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9281 ac_file
=1 # Number of current file.
9282 ac_beg
=1 # First line for current file.
9283 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9286 while $ac_more_lines; do
9287 if test $ac_beg -gt 1; then
9288 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9290 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9292 if test ! -s conftest.s
$ac_file; then
9294 rm -f conftest.s
$ac_file
9296 if test -z "$ac_sed_cmds"; then
9297 ac_sed_cmds
="sed -f conftest.s$ac_file"
9299 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9301 ac_file
=`expr $ac_file + 1`
9303 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9306 if test -z "$ac_sed_cmds"; then
9311 cat >> $CONFIG_STATUS <<EOF
9313 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9315 cat >> $CONFIG_STATUS <<\EOF
9316 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9317 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9319 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9320 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9321 *) ac_file_in
="${ac_file}.in" ;;
9324 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9326 # Remove last slash and all that follows it. Not all systems have dirname.
9327 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9328 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9329 # The file is in a subdirectory.
9330 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9331 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9332 # A "../" for each directory in $ac_dir_suffix.
9333 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9335 ac_dir_suffix
= ac_dots
=
9338 case "$ac_given_srcdir" in
9340 if test -z "$ac_dots"; then top_srcdir
=.
9341 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9342 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9344 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9345 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9349 echo creating
"$ac_file"
9351 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9353 *Makefile
*) ac_comsub
="1i\\
9354 # $configure_input" ;;
9358 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9360 s%@configure_input@%$configure_input%g
9361 s%@srcdir@%$srcdir%g
9362 s%@top_srcdir@%$top_srcdir%g
9363 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9367 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9368 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9370 # ac_d sets the value in "#define NAME VALUE" lines.
9371 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9372 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9375 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9376 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9377 ac_uB
='\([ ]\)%\1#\2define\3'
9380 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9381 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9382 ac_eB
='$%\1#\2define\3'
9386 if test "${CONFIG_HEADERS+set}" != set; then
9388 cat >> $CONFIG_STATUS <<EOF
9389 CONFIG_HEADERS="auto-host.h:config.in"
9391 cat >> $CONFIG_STATUS <<\EOF
9393 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9396 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9397 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9398 *) ac_file_in
="${ac_file}.in" ;;
9401 echo creating
$ac_file
9403 rm -f conftest.frag conftest.
in conftest.out
9404 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9405 cat $ac_file_inputs > conftest.
in
9409 # Transform confdefs.h into a sed script conftest.vals that substitutes
9410 # the proper values into config.h.in to produce config.h. And first:
9411 # Protect against being on the right side of a sed subst in config.status.
9412 # Protect against being in an unquoted here document in config.status.
9414 cat > conftest.hdr
<<\EOF
9417 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9421 sed -n -f conftest.hdr confdefs.h > conftest.vals
9424 # This sed command replaces #undef with comments. This is necessary, for
9425 # example, in the case of _POSIX_SOURCE, which is predefined and required
9426 # on some systems where configure will not decide to define it.
9427 cat >> conftest.vals <<\EOF
9428 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9431 # Break up conftest.vals because some shells have a limit on
9432 # the size of here documents, and old seds have small limits too.
9437 ac_lines=`grep -c . conftest.vals
`
9438 # grep -c gives empty output for an empty file on some AIX systems.
9439 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9440 # Write a limited-size here document to conftest.frag.
9441 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9442 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9444 sed -f conftest.frag conftest.in > conftest.out
9446 mv conftest.out conftest.in
9448 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9450 mv conftest.tail conftest.vals
9454 cat >> $CONFIG_STATUS <<\EOF
9455 rm -f conftest.frag conftest.h
9456 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9457 cat conftest.in >> conftest.h
9459 if cmp -s $ac_file conftest.h 2>/dev/null; then
9460 echo "$ac_file is unchanged"
9463 # Remove last slash and all that follows it. Not all systems have dirname.
9464 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9465 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9466 # The file is in a subdirectory.
9467 test ! -d "$ac_dir" && mkdir "$ac_dir"
9470 mv conftest.h $ac_file
9476 cat >> $CONFIG_STATUS <<EOF
9477 ac_sources="$nls_cv_header_libgt"
9478 ac_dests="$nls_cv_header_intl"
9481 cat >> $CONFIG_STATUS <<\EOF
9482 srcdir=$ac_given_srcdir
9483 while test -n "$ac_sources"; do
9484 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9485 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9487 echo "linking $srcdir/$ac_source to $ac_dest"
9489 if test ! -r $srcdir/$ac_source; then
9490 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9494 # Make relative symlinks.
9495 # Remove last slash and all that follows it. Not all systems have dirname.
9496 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9497 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9498 # The dest file is in a subdirectory.
9499 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9500 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9501 # A "../" for each directory in $ac_dest_dir_suffix.
9502 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9504 ac_dest_dir_suffix= ac_dots=
9508 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9509 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9512 # Make a symlink if possible; otherwise try a hard link.
9513 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9514 ln $srcdir/$ac_source $ac_dest; then :
9516 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9520 cat >> $CONFIG_STATUS <<EOF
9526 target_alias='${target_alias}'
9528 subdirs='${subdirs}'
9529 oldstyle_subdirs='${oldstyle_subdirs}'
9530 symbolic_link='${symbolic_link}'
9531 program_transform_set='${program_transform_set}'
9532 program_transform_name='${program_transform_name}'
9533 dep_host_xmake_file='${dep_host_xmake_file}'
9534 host_xmake_file='${host_xmake_file}'
9535 dep_tmake_file='${dep_tmake_file}'
9536 tmake_file='${tmake_file}'
9537 thread_file='${thread_file}'
9538 gcc_version='${gcc_version}'
9539 gcc_version_trigger='${gcc_version_trigger}'
9540 local_prefix='${local_prefix}'
9541 build_install_headers_dir='${build_install_headers_dir}'
9542 build_exeext='${build_exeext}'
9543 host_exeext='${host_exeext}'
9544 out_file='${out_file}'
9545 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9546 SET_MAKE='${SET_MAKE}'
9547 target_list='${target_list}'
9548 target_overrides='${target_overrides}'
9549 host_overrides='${host_overrides}'
9550 cross_defines='${cross_defines}'
9551 cross_overrides='${cross_overrides}'
9552 build_overrides='${build_overrides}'
9553 cpp_install_dir='${cpp_install_dir}'
9556 cat >> $CONFIG_STATUS <<\EOF
9557 case "$CONFIG_FILES" in *po/Makefile.in*)
9558 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9561 . $srcdir/configure.lang
9562 case x$CONFIG_HEADERS in
9563 xauto-host.h:config.in)
9566 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9567 # bootstrapping and the installation procedure can still use
9568 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9569 # FLAGS_TO_PASS has been modified to solve the problem there.
9570 # This is virtually a duplicate of what happens in configure.lang; we do
9571 # an extra check to make sure this only happens if ln -s can be used.
9572 if test "$symbolic_link" = "ln -s"; then
9573 for d in .. ${subdirs} ; do
9574 if test $d != ..; then
9577 for t in stage1 stage2 stage3 stage4 include
9580 $symbolic_link ../$t $t 2>/dev/null
9586 # Avoid having to add intl to our include paths.
9587 if test -f intl/libintl.h; then
9588 echo creating libintl.h
9589 echo '#include "intl/libintl.h"' >libintl.h
9594 chmod +x $CONFIG_STATUS
9595 rm -fr confdefs* $ac_clean_files
9596 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1