3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --disable-cpplib use the old isolated C preprocessor."
46 --enable-c-cpplib link cpplib directly into C and C++ compilers
47 (EXPERIMENTAL) (implies --enable-cpplib)."
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 --with-dwarf2 force the default debug format to be DWARF2."
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 --with-gc={simple,page} Choose the garbage collection mechanism to use
79 select the new abi for g++. You must select an ABI
80 at configuration time, so that the correct runtime
81 support is built. You cannot mix ABIs."
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
120 SHELL
=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
146 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
147 bindir
="$ac_optarg" ;;
149 -build |
--build |
--buil |
--bui |
--bu)
151 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
152 build
="$ac_optarg" ;;
154 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
155 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
156 ac_prev
=cache_file
;;
157 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
158 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
159 cache_file
="$ac_optarg" ;;
161 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
165 datadir
="$ac_optarg" ;;
167 -disable-* |
--disable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* |
--enable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
191 |
--exec |
--exe |
--ex)
192 ac_prev
=exec_prefix
;;
193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
195 |
--exec=* |
--exe=* |
--ex=*)
196 exec_prefix
="$ac_optarg" ;;
198 -gas |
--gas |
--ga |
--g)
199 # Obsolete; use --with-gas.
202 -help |
--help |
--hel |
--he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host |
--host |
--hos |
--ho)
259 -host=* |
--host=* |
--hos=* |
--ho=*)
262 -includedir |
--includedir |
--includedi |
--included |
--include \
263 |
--includ |
--inclu |
--incl |
--inc)
264 ac_prev
=includedir
;;
265 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
266 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
267 includedir
="$ac_optarg" ;;
269 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
271 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
272 infodir
="$ac_optarg" ;;
274 -libdir |
--libdir |
--libdi |
--libd)
276 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
277 libdir
="$ac_optarg" ;;
279 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
280 |
--libexe |
--libex |
--libe)
281 ac_prev
=libexecdir
;;
282 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
283 |
--libexe=* |
--libex=* |
--libe=*)
284 libexecdir
="$ac_optarg" ;;
286 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
287 |
--localstate |
--localstat |
--localsta |
--localst \
288 |
--locals |
--local |
--loca |
--loc |
--lo)
289 ac_prev
=localstatedir
;;
290 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
291 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
292 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
293 localstatedir
="$ac_optarg" ;;
295 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
297 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
298 mandir
="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
308 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
309 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
312 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
313 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
314 |
--oldin |
--oldi |
--old |
--ol |
--o)
315 ac_prev
=oldincludedir
;;
316 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
317 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
318 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
319 oldincludedir
="$ac_optarg" ;;
321 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
323 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
324 prefix
="$ac_optarg" ;;
326 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
327 |
--program-pre |
--program-pr |
--program-p)
328 ac_prev
=program_prefix
;;
329 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
330 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
331 program_prefix
="$ac_optarg" ;;
333 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
334 |
--program-suf |
--program-su |
--program-s)
335 ac_prev
=program_suffix
;;
336 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
337 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
338 program_suffix
="$ac_optarg" ;;
340 -program-transform-name |
--program-transform-name \
341 |
--program-transform-nam |
--program-transform-na \
342 |
--program-transform-n |
--program-transform- \
343 |
--program-transform |
--program-transfor \
344 |
--program-transfo |
--program-transf \
345 |
--program-trans |
--program-tran \
346 |
--progr-tra |
--program-tr |
--program-t)
347 ac_prev
=program_transform_name
;;
348 -program-transform-name=* |
--program-transform-name=* \
349 |
--program-transform-nam=* |
--program-transform-na=* \
350 |
--program-transform-n=* |
--program-transform-=* \
351 |
--program-transform=* |
--program-transfor=* \
352 |
--program-transfo=* |
--program-transf=* \
353 |
--program-trans=* |
--program-tran=* \
354 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
355 program_transform_name
="$ac_optarg" ;;
357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
358 |
-silent |
--silent |
--silen |
--sile |
--sil)
361 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
363 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
365 sbindir
="$ac_optarg" ;;
367 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
368 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
369 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
371 ac_prev
=sharedstatedir
;;
372 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
373 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
374 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
376 sharedstatedir
="$ac_optarg" ;;
378 -site |
--site |
--sit)
380 -site=* |
--site=* |
--sit=*)
383 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
385 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
386 srcdir
="$ac_optarg" ;;
388 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
389 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
390 ac_prev
=sysconfdir
;;
391 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
392 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
393 sysconfdir
="$ac_optarg" ;;
395 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
397 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
398 target
="$ac_optarg" ;;
400 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
403 -version |
--version |
--versio |
--versi |
--vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* |
--without-*)
421 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
434 |
--x-incl |
--x-inc |
--x-in |
--x-i)
435 ac_prev
=x_includes
;;
436 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
437 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
438 x_includes
="$ac_optarg" ;;
440 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
441 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
442 ac_prev
=x_libraries
;;
443 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
444 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
445 x_libraries
="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE
; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
496 |
--no-cr |
--no-c) ;;
497 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
498 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
499 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest
* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file
=tree.c
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted
=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted
=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE
; then
550 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file
in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp
='$CPP $CPPFLAGS'
573 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling
=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
588 ac_n
= ac_c
='\c' ac_t
=
596 symbolic_link
='ln -s'
599 # Check for bogus environment variables.
600 # Test if LIBRARY_PATH contains the notation for the current directory
601 # since this would lead to problems installing/building glibc.
602 # LIBRARY_PATH contains the current directory if one of the following
604 # - one of the terminals (":" and ";") is the first or last sign
605 # - two terminals occur directly after each other
606 # - the path contains an element with a dot in it
607 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
608 echo "configure:609: checking LIBRARY_PATH variable" >&5
609 case ${LIBRARY_PATH} in
610 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
611 library_path_setting
="contains current directory"
614 library_path_setting
="ok"
617 echo "$ac_t""$library_path_setting" 1>&6
618 if test "$library_path_setting" != "ok"; then
619 { echo "configure: error:
620 *** LIBRARY_PATH shouldn't contain the current directory when
621 *** building gcc. Please change the environment variable
622 *** and run configure again." 1>&2; exit 1; }
625 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
626 # since this would lead to problems installing/building glibc.
627 # GCC_EXEC_PREFIX contains the current directory if one of the following
629 # - one of the terminals (":" and ";") is the first or last sign
630 # - two terminals occur directly after each other
631 # - the path contains an element with a dot in it
632 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
633 echo "configure:634: checking GCC_EXEC_PREFIX variable" >&5
634 case ${GCC_EXEC_PREFIX} in
635 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
636 gcc_exec_prefix_setting
="contains current directory"
639 gcc_exec_prefix_setting
="ok"
642 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
643 if test "$gcc_exec_prefix_setting" != "ok"; then
644 { echo "configure: error:
645 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
646 *** building gcc. Please change the environment variable
647 *** and run configure again." 1>&2; exit 1; }
650 # Check for additional parameters
653 # Check whether --with-gnu-ld or --without-gnu-ld was given.
654 if test "${with_gnu_ld+set}" = set; then
655 withval
="$with_gnu_ld"
656 gnu_ld_flag
="$with_gnu_ld"
662 # With pre-defined ld
663 # Check whether --with-ld or --without-ld was given.
664 if test "${with_ld+set}" = set; then
666 DEFAULT_LINKER
="$with_ld"
669 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
670 if test ! -x "$DEFAULT_LINKER"; then
671 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
672 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
675 cat >> confdefs.h
<<EOF
676 #define DEFAULT_LINKER "$DEFAULT_LINKER"
682 # Check whether --with-gnu-as or --without-gnu-as was given.
683 if test "${with_gnu_as+set}" = set; then
684 withval
="$with_gnu_as"
685 gas_flag
="$with_gnu_as"
691 # Check whether --with-as or --without-as was given.
692 if test "${with_as+set}" = set; then
694 DEFAULT_ASSEMBLER
="$with_as"
697 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
698 if test ! -x "$DEFAULT_ASSEMBLER"; then
699 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
700 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
703 cat >> confdefs.h
<<EOF
704 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
710 # Check whether --with-stabs or --without-stabs was given.
711 if test "${with_stabs+set}" = set; then
712 withval
="$with_stabs"
720 # Check whether --with-elf or --without-elf was given.
721 if test "${with_elf+set}" = set; then
729 # Specify the local prefix
731 # Check whether --with-local-prefix or --without-local-prefix was given.
732 if test "${with_local_prefix+set}" = set; then
733 withval
="$with_local_prefix"
735 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
737 *) local_prefix
=$with_local_prefix ;;
742 # Default local prefix if it is empty
743 if test x
$local_prefix = x
; then
744 local_prefix
=/usr
/local
747 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
748 # passed in by the toplevel make and thus we'd get different behavior
749 # depending on where we built the sources.
751 # Specify the g++ header file directory
752 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
753 if test "${with_gxx_include_dir+set}" = set; then
754 withval
="$with_gxx_include_dir"
756 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
758 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
763 if test x
${gcc_gxx_include_dir} = x
; then
764 if test x
${enable_version_specific_runtime_libs} = xyes
; then
765 gcc_gxx_include_dir
='${libsubdir}/include/g++'
767 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
768 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
772 # Enable expensive internal checks
773 # Check whether --enable-checking or --disable-checking was given.
774 if test "${enable_checking+set}" = set; then
775 enableval
="$enable_checking"
776 case "${enableval}" in
777 yes) cat >> confdefs.h
<<\EOF
778 #define ENABLE_CHECKING 1
781 cat >> confdefs.h
<<\EOF
782 #define ENABLE_TREE_CHECKING 1
785 cat >> confdefs.h
<<\EOF
786 #define ENABLE_RTL_CHECKING 1
790 *) ac_save_IFS
="$IFS" IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) cat >> confdefs.h
<<\EOF
797 #define ENABLE_CHECKING 1
800 tree
) cat >> confdefs.h
<<\EOF
801 #define ENABLE_TREE_CHECKING 1
804 rtl
) cat >> confdefs.h
<<\EOF
805 #define ENABLE_RTL_CHECKING 1
808 gc
) cat >> confdefs.h
<<\EOF
809 #define ENABLE_GC_CHECKING 1
812 gcac
) cat >> confdefs.h
<<\EOF
813 #define ENABLE_GC_ALWAYS_COLLECT 1
816 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Check whether --enable-cpp or --disable-cpp was given.
825 if test "${enable_cpp+set}" = set; then
826 enableval
="$enable_cpp"
833 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
834 if test "${with_cpp_install_dir+set}" = set; then
835 withval
="$with_cpp_install_dir"
836 if test x
$withval = xyes
; then
837 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
838 elif test x
$withval != xno
; then
839 cpp_install_dir
=$withval
844 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
846 # Check whether --enable-cpplib or --disable-cpplib was given.
847 if test "${enable_cpplib+set}" = set; then
848 enableval
="$enable_cpplib"
849 if test x
$enable_cpplib = xno
; then
855 # Link cpplib into the compiler proper, for C/C++/ObjC.
856 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
857 if test "${enable_c_cpplib+set}" = set; then
858 enableval
="$enable_c_cpplib"
859 if test x
$enable_c_cpplib != xno
; then
860 extra_c_objs
="${extra_c_objs} libcpp.a"
861 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
862 extra_c_flags
="${extra_c_flags} -DUSE_CPPLIB=1"
868 # Enable Multibyte Characters for C/C++
869 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
870 if test "${enable_c_mbchar+set}" = set; then
871 enableval
="$enable_c_mbchar"
872 if test x
$enable_c_mbchar != xno
; then
873 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
879 # Pass with no value to take the default
880 # Pass with a value to specify a thread package
881 # Check whether --enable-threads or --disable-threads was given.
882 if test "${enable_threads+set}" = set; then
883 enableval
="$enable_threads"
884 if test x
$enable_threads = xno
; then
892 enable_threads_flag
=$enable_threads
893 # Check if a valid thread package
894 case x
${enable_threads_flag} in
897 target_thread_file
='single'
901 target_thread_file
=''
903 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
904 xsolaris | xwin32 | xdce | xvxworks
)
905 target_thread_file
=$enable_threads_flag
908 echo "$enable_threads is an unknown thread package" 1>&2
913 # Check whether --enable-objc-gc or --disable-objc-gc was given.
914 if test "${enable_objc_gc+set}" = set; then
915 enableval
="$enable_objc_gc"
916 if test x
$enable_objc_gc = xno
; then
926 # Check whether --with-dwarf2 or --without-dwarf2 was given.
927 if test "${with_dwarf2+set}" = set; then
928 withval
="$with_dwarf2"
929 dwarf2
="$with_dwarf2"
935 # Determine the host, build, and target systems
937 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
938 if test -f $ac_dir/install-sh
; then
940 ac_install_sh
="$ac_aux_dir/install-sh -c"
942 elif test -f $ac_dir/install.sh
; then
944 ac_install_sh
="$ac_aux_dir/install.sh -c"
948 if test -z "$ac_aux_dir"; then
949 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
951 ac_config_guess
=$ac_aux_dir/config.guess
952 ac_config_sub
=$ac_aux_dir/config.sub
953 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
956 # Do some error checking and defaulting for the host and target type.
958 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
961 # 1. You are not allowed to specify --host, --target, and nonopt at the
963 # 2. Host defaults to nonopt.
964 # 3. If nonopt is not specified, then host defaults to the current host,
965 # as determined by config.guess.
966 # 4. Target and build default to nonopt.
967 # 5. If nonopt is not specified, then target and build default to host.
969 # The aliases save the names the user supplied, while $host etc.
970 # will get canonicalized.
971 case $host---$target---$nonopt in
972 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
973 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
977 # Make sure we can run config.sub.
978 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
979 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
982 echo $ac_n "checking host system type""... $ac_c" 1>&6
983 echo "configure:984: checking host system type" >&5
986 case "$host_alias" in
990 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
991 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
993 *) host_alias
=$nonopt ;;
997 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
998 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$host" 1>&6
1003 echo $ac_n "checking target system type""... $ac_c" 1>&6
1004 echo "configure:1005: checking target system type" >&5
1006 target_alias
=$target
1007 case "$target_alias" in
1010 NONE
) target_alias
=$host_alias ;;
1011 *) target_alias
=$nonopt ;;
1015 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1016 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$target" 1>&6
1021 echo $ac_n "checking build system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking build system type" >&5
1025 case "$build_alias" in
1028 NONE
) build_alias
=$host_alias ;;
1029 *) build_alias
=$nonopt ;;
1033 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1034 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$build" 1>&6
1039 test "$host_alias" != "$target_alias" &&
1040 test "$program_prefix$program_suffix$program_transform_name" = \
1042 program_prefix
=${target_alias}-
1045 # Find the native compiler
1046 # Extract the first word of "gcc", so it can be a program name with args.
1047 set dummy gcc
; ac_word
=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 if test -n "$CC"; then
1054 ac_cv_prog_CC
="$CC" # Let the user override the test.
1056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1058 for ac_dir
in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir
=.
1060 if test -f $ac_dir/$ac_word; then
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1072 echo "$ac_t""no" 1>&6
1075 if test -z "$CC"; then
1076 # Extract the first word of "cc", so it can be a program name with args.
1077 set dummy cc
; ac_word
=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC
="$CC" # Let the user override the test.
1086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1089 for ac_dir
in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir
=.
1091 if test -f $ac_dir/$ac_word; then
1092 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1093 ac_prog_rejected
=yes
1101 if test $ac_prog_rejected = yes; then
1102 # We found a bogon in the path, so make sure we never use it.
1103 set dummy
$ac_cv_prog_CC
1105 if test $# -gt 0; then
1106 # We chose a different compiler from the bogus one.
1107 # However, it has the same basename, so the bogon will be chosen
1108 # first if we set CC to just the basename; use the full file name.
1110 set dummy
"$ac_dir/$ac_word" "$@"
1118 if test -n "$CC"; then
1119 echo "$ac_t""$CC" 1>&6
1121 echo "$ac_t""no" 1>&6
1124 if test -z "$CC"; then
1125 case "`uname -s`" in
1127 # Extract the first word of "cl", so it can be a program name with args.
1128 set dummy cl
; ac_word
=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$CC"; then
1135 ac_cv_prog_CC
="$CC" # Let the user override the test.
1137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1139 for ac_dir
in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir
=.
1141 if test -f $ac_dir/$ac_word; then
1150 if test -n "$CC"; then
1151 echo "$ac_t""$CC" 1>&6
1153 echo "$ac_t""no" 1>&6
1158 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1161 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1166 ac_cpp
='$CPP $CPPFLAGS'
1167 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1168 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1169 cross_compiling
=$ac_cv_prog_cc_cross
1171 cat > conftest.
$ac_ext << EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1178 if { (eval echo configure
:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1179 ac_cv_prog_cc_works
=yes
1180 # If we can't run a trivial program, we are probably using a cross compiler.
1181 if (.
/conftest
; exit) 2>/dev
/null
; then
1182 ac_cv_prog_cc_cross
=no
1184 ac_cv_prog_cc_cross
=yes
1187 echo "configure: failed program was:" >&5
1188 cat conftest.
$ac_ext >&5
1189 ac_cv_prog_cc_works
=no
1193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1194 ac_cpp
='$CPP $CPPFLAGS'
1195 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1196 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1197 cross_compiling
=$ac_cv_prog_cc_cross
1199 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1200 if test $ac_cv_prog_cc_works = no
; then
1201 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1203 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1205 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1206 cross_compiling
=$ac_cv_prog_cc_cross
1208 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether we are using GNU C" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 cat > conftest.c
<<EOF
1218 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1225 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1227 if test $ac_cv_prog_gcc = yes; then
1233 ac_test_CFLAGS
="${CFLAGS+set}"
1234 ac_save_CFLAGS
="$CFLAGS"
1236 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether ${CC-cc} accepts -g" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 echo 'void f(){}' > conftest.c
1242 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1251 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1252 if test "$ac_test_CFLAGS" = set; then
1253 CFLAGS
="$ac_save_CFLAGS"
1254 elif test $ac_cv_prog_cc_g = yes; then
1255 if test "$GCC" = yes; then
1261 if test "$GCC" = yes; then
1268 echo $ac_n "checking for long double""... $ac_c" 1>&6
1269 echo "configure:1270: checking for long double" >&5
1270 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 if test "$GCC" = yes; then
1274 gcc_cv_c_long_double
=yes
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1281 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1282 long double foo = 0.0;
1283 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1284 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1287 if { (eval echo configure
:1288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1289 gcc_cv_c_long_double
=yes
1291 echo "configure: failed program was:" >&5
1292 cat conftest.
$ac_ext >&5
1294 gcc_cv_c_long_double
=no
1300 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1301 if test $gcc_cv_c_long_double = yes; then
1302 cat >> confdefs.h
<<\EOF
1303 #define HAVE_LONG_DOUBLE 1
1309 # If the native compiler is GCC, we can enable warnings even in stage1.
1310 # That's useful for people building cross-compilers, or just running a
1312 if test "x$GCC" = "xyes"; then
1313 stage1_warn_cflags
='$(WARN_CFLAGS)'
1315 stage1_warn_cflags
=""
1319 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether ${MAKE-make} sets \${MAKE}" >&5
1321 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1322 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 cat > conftestmake
<<\EOF
1327 @
echo 'ac_maketemp="${MAKE}"'
1329 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1330 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1331 if test -n "$ac_maketemp"; then
1332 eval ac_cv_prog_make_
${ac_make}_set
=yes
1334 eval ac_cv_prog_make_
${ac_make}_set
=no
1338 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1339 echo "$ac_t""yes" 1>&6
1342 echo "$ac_t""no" 1>&6
1343 SET_MAKE
="MAKE=${MAKE-make}"
1347 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether a default assembler was specified" >&5
1349 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1350 if test x
"$gas_flag" = x
"no"; then
1351 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1353 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1356 echo "$ac_t""no" 1>&6
1359 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether a default linker was specified" >&5
1361 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1362 if test x
"$gnu_ld_flag" = x
"no"; then
1363 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1365 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1368 echo "$ac_t""no" 1>&6
1371 # Find some useful tools
1372 for ac_prog
in mawk gawk nawk
awk
1374 # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy
$ac_prog; ac_word
=$2
1376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_word" >&5
1378 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 if test -n "$AWK"; then
1382 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1384 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1386 for ac_dir
in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir
=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_AWK
="$ac_prog"
1396 AWK
="$ac_cv_prog_AWK"
1397 if test -n "$AWK"; then
1398 echo "$ac_t""$AWK" 1>&6
1400 echo "$ac_t""no" 1>&6
1403 test -n "$AWK" && break
1406 # Extract the first word of "flex", so it can be a program name with args.
1407 set dummy flex
; ac_word
=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 if test -n "$LEX"; then
1414 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1416 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1418 for ac_dir
in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir
=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_LEX
="flex"
1426 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1429 LEX
="$ac_cv_prog_LEX"
1430 if test -n "$LEX"; then
1431 echo "$ac_t""$LEX" 1>&6
1433 echo "$ac_t""no" 1>&6
1436 if test -z "$LEXLIB"
1442 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1443 echo "configure:1444: checking for yywrap in -l$ac_lib" >&5
1444 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 ac_save_LIBS
="$LIBS"
1449 LIBS
="-l$ac_lib $LIBS"
1450 cat > conftest.
$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* Override any gcc2 internal prototype to avoid an error. */
1454 /* We use char because int might match the return type of a gcc2
1455 builtin and then its argument prototype would still apply. */
1462 if { (eval echo configure
:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.
$ac_ext >&5
1469 eval "ac_cv_lib_$ac_lib_var=no"
1472 LIBS
="$ac_save_LIBS"
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1479 echo "$ac_t""no" 1>&6
1484 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether ln works" >&5
1486 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 rm -f conftestdata_t
1490 echo >conftestdata_f
1491 if ln conftestdata_f conftestdata_t
2>/dev
/null
1495 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1497 gcc_cv_prog_LN
="ln -s"
1502 rm -f conftestdata_f conftestdata_t
1505 LN
="$gcc_cv_prog_LN"
1506 if test "$gcc_cv_prog_LN" = "ln"; then
1507 echo "$ac_t""yes" 1>&6
1509 if test "$gcc_cv_prog_LN" = "ln -s"; then
1510 echo "$ac_t""no, using ln -s" 1>&6
1512 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1516 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1517 echo "configure:1518: checking whether ln -s works" >&5
1518 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 rm -f conftestdata_t
1522 echo >conftestdata_f
1523 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1525 gcc_cv_prog_LN_S
="ln -s"
1527 if ln conftestdata_f conftestdata_t
2>/dev
/null
1534 rm -f conftestdata_f conftestdata_t
1537 LN_S
="$gcc_cv_prog_LN_S"
1538 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1539 echo "$ac_t""yes" 1>&6
1541 if test "$gcc_cv_prog_LN_S" = "ln"; then
1542 echo "$ac_t""no, using ln" 1>&6
1544 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1548 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1549 echo "configure:1550: checking for volatile" >&5
1550 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 cat > conftest.
$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1561 if { (eval echo configure
:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 gcc_cv_c_volatile
=yes
1565 echo "configure: failed program was:" >&5
1566 cat conftest.
$ac_ext >&5
1568 gcc_cv_c_volatile
=no
1573 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1574 if test $gcc_cv_c_volatile = yes ; then
1575 cat >> confdefs.h
<<\EOF
1576 #define HAVE_VOLATILE 1
1581 # Extract the first word of "ranlib", so it can be a program name with args.
1582 set dummy ranlib
; ac_word
=$2
1583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_word" >&5
1585 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 if test -n "$RANLIB"; then
1589 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1593 for ac_dir
in $ac_dummy; do
1594 test -z "$ac_dir" && ac_dir
=.
1595 if test -f $ac_dir/$ac_word; then
1596 ac_cv_prog_RANLIB
="ranlib"
1601 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1604 RANLIB
="$ac_cv_prog_RANLIB"
1605 if test -n "$RANLIB"; then
1606 echo "$ac_t""$RANLIB" 1>&6
1608 echo "$ac_t""no" 1>&6
1611 for ac_prog
in 'bison -y' byacc
1613 # Extract the first word of "$ac_prog", so it can be a program name with args.
1614 set dummy
$ac_prog; ac_word
=$2
1615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1616 echo "configure:1617: checking for $ac_word" >&5
1617 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 if test -n "$YACC"; then
1621 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1625 for ac_dir
in $ac_dummy; do
1626 test -z "$ac_dir" && ac_dir
=.
1627 if test -f $ac_dir/$ac_word; then
1628 ac_cv_prog_YACC
="$ac_prog"
1635 YACC
="$ac_cv_prog_YACC"
1636 if test -n "$YACC"; then
1637 echo "$ac_t""$YACC" 1>&6
1639 echo "$ac_t""no" 1>&6
1642 test -n "$YACC" && break
1644 test -n "$YACC" || YACC
="yacc"
1646 # Find a good install program. We prefer a C program (faster),
1647 # so one script is as good as another. But avoid the broken or
1648 # incompatible versions:
1649 # SysV /etc/install, /usr/sbin/install
1650 # SunOS /usr/etc/install
1651 # IRIX /sbin/install
1653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1655 # ./install, which can be erroneously created by make from ./install.sh.
1656 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1657 echo "configure:1658: checking for a BSD compatible install" >&5
1658 if test -z "$INSTALL"; then
1659 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1663 for ac_dir
in $PATH; do
1664 # Account for people who put trailing slashes in PATH elements.
1666 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1668 # OSF1 and SCO ODT 3.0 have their own names for install.
1669 for ac_prog
in ginstall scoinst
install; do
1670 if test -f $ac_dir/$ac_prog; then
1671 if test $ac_prog = install &&
1672 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1673 # AIX install. It has an incompatible calling convention.
1674 # OSF/1 installbsd also uses dspmsg, but is usable.
1677 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1688 if test "${ac_cv_path_install+set}" = set; then
1689 INSTALL
="$ac_cv_path_install"
1691 # As a last resort, use the slow shell script. We don't cache a
1692 # path for INSTALL within a source directory, because that will
1693 # break other packages using the cache if that directory is
1694 # removed, or if the path is relative.
1695 INSTALL
="$ac_install_sh"
1698 echo "$ac_t""$INSTALL" 1>&6
1700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1701 # It thinks the first close brace ends the variable substitution.
1702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1704 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1707 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1708 echo "configure:1709: checking how to run the C preprocessor" >&5
1709 # On Suns, sometimes $CPP names a directory.
1710 if test -n "$CPP" && test -d "$CPP"; then
1713 if test -z "$CPP"; then
1714 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 # This must be in double quotes, not single quotes, because CPP may get
1718 # substituted into the Makefile and "${CC-cc}" will confuse make.
1720 # On the NeXT, cc -E runs the code through the compiler's parser,
1721 # not just through cpp.
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1729 { (eval echo configure
:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1731 if test -z "$ac_err"; then
1735 echo "configure: failed program was:" >&5
1736 cat conftest.
$ac_ext >&5
1738 CPP
="${CC-cc} -E -traditional-cpp"
1739 cat > conftest.
$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1746 { (eval echo configure
:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1747 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1748 if test -z "$ac_err"; then
1752 echo "configure: failed program was:" >&5
1753 cat conftest.
$ac_ext >&5
1755 CPP
="${CC-cc} -nologo -E"
1756 cat > conftest.
$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1763 { (eval echo configure
:1764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1764 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1765 if test -z "$ac_err"; then
1769 echo "configure: failed program was:" >&5
1770 cat conftest.
$ac_ext >&5
1779 ac_cv_prog_CPP
="$CPP"
1781 CPP
="$ac_cv_prog_CPP"
1783 ac_cv_prog_CPP
="$CPP"
1785 echo "$ac_t""$CPP" 1>&6
1787 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1788 echo "configure:1789: checking for ANSI C header files" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1800 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1801 { (eval echo configure
:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1802 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1803 if test -z "$ac_err"; then
1805 ac_cv_header_stdc
=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 ac_cv_header_stdc
=no
1815 if test $ac_cv_header_stdc = yes; then
1816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1823 egrep "memchr" >/dev
/null
2>&1; then
1827 ac_cv_header_stdc
=no
1833 if test $ac_cv_header_stdc = yes; then
1834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1835 cat > conftest.
$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1841 egrep "free" >/dev
/null
2>&1; then
1845 ac_cv_header_stdc
=no
1851 if test $ac_cv_header_stdc = yes; then
1852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1853 if test "$cross_compiling" = yes; then
1856 cat > conftest.
$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1860 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1861 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1863 int main () { int i; for (i = 0; i < 256; i++)
1864 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1868 if { (eval echo configure
:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1872 echo "configure: failed program was:" >&5
1873 cat conftest.
$ac_ext >&5
1875 ac_cv_header_stdc
=no
1883 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1884 if test $ac_cv_header_stdc = yes; then
1885 cat >> confdefs.h
<<\EOF
1886 #define STDC_HEADERS 1
1891 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1892 echo "configure:1893: checking whether time.h and sys/time.h may both be included" >&5
1893 if eval "test \"`echo '$''{'ac_cv_header_time'+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"
1899 #include <sys/types.h>
1900 #include <sys/time.h>
1906 if { (eval echo configure
:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1908 ac_cv_header_time
=yes
1910 echo "configure: failed program was:" >&5
1911 cat conftest.
$ac_ext >&5
1913 ac_cv_header_time
=no
1918 echo "$ac_t""$ac_cv_header_time" 1>&6
1919 if test $ac_cv_header_time = yes; then
1920 cat >> confdefs.h
<<\EOF
1921 #define TIME_WITH_SYS_TIME 1
1926 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether string.h and strings.h may both be included" >&5
1928 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1935 #include <strings.h>
1940 if { (eval echo configure
:1941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1942 gcc_cv_header_string
=yes
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 gcc_cv_header_string
=no
1952 echo "$ac_t""$gcc_cv_header_string" 1>&6
1953 if test $gcc_cv_header_string = yes; then
1954 cat >> confdefs.h
<<\EOF
1955 #define STRING_WITH_STRINGS 1
1960 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1961 echo "configure:1962: checking for sys/wait.h that is POSIX.1 compatible" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.
$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1968 #include <sys/types.h>
1969 #include <sys/wait.h>
1971 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1974 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1979 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1982 if { (eval echo configure
:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1984 ac_cv_header_sys_wait_h
=yes
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 ac_cv_header_sys_wait_h
=no
1994 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1995 if test $ac_cv_header_sys_wait_h = yes; then
1996 cat >> confdefs.h
<<\EOF
1997 #define HAVE_SYS_WAIT_H 1
2002 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2003 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2004 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2007 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_hdr" >&5
2010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2018 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2019 { (eval echo configure
:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2020 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2021 if test -z "$ac_err"; then
2023 eval "ac_cv_header_$ac_safe=yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.
$ac_ext >&5
2029 eval "ac_cv_header_$ac_safe=no"
2033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2035 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2036 cat >> confdefs.h
<<EOF
2037 #define $ac_tr_hdr 1
2041 echo "$ac_t""no" 1>&6
2046 # Check for thread headers.
2047 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2048 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2049 echo "configure:2050: checking for thread.h" >&5
2050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.
$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2058 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2059 { (eval echo configure
:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2060 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2061 if test -z "$ac_err"; then
2063 eval "ac_cv_header_$ac_safe=yes"
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 eval "ac_cv_header_$ac_safe=no"
2073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2077 echo "$ac_t""no" 1>&6
2081 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2083 echo "configure:2084: checking for pthread.h" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 #include <pthread.h>
2092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure
:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2111 echo "$ac_t""no" 1>&6
2116 # See if GNAT has been installed
2117 # Extract the first word of "gnatbind", so it can be a program name with args.
2118 set dummy gnatbind
; ac_word
=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test -n "$gnat"; then
2125 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2129 for ac_dir
in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir
=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_gnat
="yes"
2137 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2140 gnat
="$ac_cv_prog_gnat"
2141 if test -n "$gnat"; then
2142 echo "$ac_t""$gnat" 1>&6
2144 echo "$ac_t""no" 1>&6
2148 # See if the stage1 system preprocessor understands the ANSI C
2149 # preprocessor stringification operator.
2152 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2153 echo "configure:2154: checking for preprocessor stringizing operator" >&5
2154 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 cat > conftest.
$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2163 char *s = x(teststring);
2166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2167 egrep "#teststring" >/dev
/null
2>&1; then
2169 ac_cv_c_stringize
=no
2172 ac_cv_c_stringize
=yes
2178 if test "${ac_cv_c_stringize}" = yes
2180 cat >> confdefs.h
<<\EOF
2181 #define HAVE_STRINGIZE 1
2185 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2188 # Use <inttypes.h> only if it exists,
2189 # doesn't clash with <sys/types.h>, and declares intmax_t.
2190 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2191 echo "configure:2192: checking for inttypes.h" >&5
2192 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.
$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <inttypes.h>
2204 if { (eval echo configure
:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 gcc_cv_header_inttypes_h
=yes
2208 echo "configure: failed program was:" >&5
2209 cat conftest.
$ac_ext >&5
2211 gcc_cv_header_inttypes_h
=no
2216 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2217 if test $gcc_cv_header_inttypes_h = yes; then
2218 cat >> confdefs.h
<<\EOF
2219 #define HAVE_INTTYPES_H 1
2224 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2225 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2226 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2227 fputs_unlocked getrusage valloc
2229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_func" >&5
2231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* System header to define __stub macros and hopefully few prototypes,
2238 which can conflict with char $ac_func(); below. */
2240 /* Override any gcc2 internal prototype to avoid an error. */
2241 /* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2247 /* The GNU C library defines this for functions which it implements
2248 to always fail with ENOSYS. Some functions are actually named
2249 something starting with __ and the normal name is an alias. */
2250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2258 if { (eval echo configure
:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2260 eval "ac_cv_func_$ac_func=yes"
2262 echo "configure: failed program was:" >&5
2263 cat conftest.
$ac_ext >&5
2265 eval "ac_cv_func_$ac_func=no"
2270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2273 cat >> confdefs.h
<<EOF
2274 #define $ac_tr_func 1
2278 echo "$ac_t""no" 1>&6
2283 # Make sure wchar_t is available
2284 #AC_CHECK_TYPE(wchar_t, unsigned int)
2286 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2287 echo "configure:2288: checking for vprintf" >&5
2288 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 cat > conftest.
$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char vprintf(); below. */
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2304 /* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2315 if { (eval echo configure
:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2317 eval "ac_cv_func_vprintf=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 eval "ac_cv_func_vprintf=no"
2327 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 cat >> confdefs.h
<<\EOF
2330 #define HAVE_VPRINTF 1
2334 echo "$ac_t""no" 1>&6
2337 if test "$ac_cv_func_vprintf" != yes; then
2338 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2339 echo "configure:2340: checking for _doprnt" >&5
2340 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.
$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 /* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char _doprnt(); below. */
2349 /* Override any gcc2 internal prototype to avoid an error. */
2350 /* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2367 if { (eval echo configure
:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2369 eval "ac_cv_func__doprnt=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.
$ac_ext >&5
2374 eval "ac_cv_func__doprnt=no"
2379 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 cat >> confdefs.h
<<\EOF
2382 #define HAVE_DOPRNT 1
2386 echo "$ac_t""no" 1>&6
2393 if test $ac_cv_func_vprintf != yes ; then
2395 if test $ac_cv_func__doprnt != yes ; then
2402 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2403 echo "configure:2404: checking whether the printf functions support %p" >&5
2404 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 if test "$cross_compiling" = yes; then
2408 gcc_cv_func_printf_ptr
=no
2410 cat > conftest.
$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2418 char *p = buf, *q = NULL;
2419 sprintf(buf, "%p", p);
2420 sscanf(buf, "%p", &q);
2424 if { (eval echo configure
:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2426 gcc_cv_func_printf_ptr
=yes
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2431 gcc_cv_func_printf_ptr
=no
2436 rm -f core core.
* *.core
2439 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2440 if test $gcc_cv_func_printf_ptr = yes ; then
2441 cat >> confdefs.h
<<\EOF
2442 #define HAVE_PRINTF_PTR 1
2450 # Under some versions of uwin, vfork is notoriously buggy and the test
2451 # can hang configure; on other versions, vfork exists just as a stub.
2452 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2453 ac_cv_func_vfork_works
=no
2456 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2457 echo "configure:2458: checking for pid_t" >&5
2458 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2461 cat > conftest.
$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <sys/types.h>
2470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2471 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2473 ac_cv_type_pid_t
=yes
2481 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2482 if test $ac_cv_type_pid_t = no
; then
2483 cat >> confdefs.h
<<\EOF
2489 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2490 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2491 echo "configure:2492: checking for vfork.h" >&5
2492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 cat > conftest.
$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2500 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2501 { (eval echo configure
:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2502 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2503 if test -z "$ac_err"; then
2505 eval "ac_cv_header_$ac_safe=yes"
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2511 eval "ac_cv_header_$ac_safe=no"
2515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 cat >> confdefs.h
<<\EOF
2518 #define HAVE_VFORK_H 1
2522 echo "$ac_t""no" 1>&6
2525 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2526 echo "configure:2527: checking for working vfork" >&5
2527 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 if test "$cross_compiling" = yes; then
2531 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2532 echo "configure:2533: checking for vfork" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char vfork(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_vfork) || defined (__stub___vfork)
2560 if { (eval echo configure
:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2562 eval "ac_cv_func_vfork=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.
$ac_ext >&5
2567 eval "ac_cv_func_vfork=no"
2572 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2576 echo "$ac_t""no" 1>&6
2579 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2584 /* Thanks to Paul Eggert for this test. */
2586 #include <sys/types.h>
2587 #include <sys/stat.h>
2588 #ifdef HAVE_UNISTD_H
2594 /* On some sparc systems, changes by the child to local and incoming
2595 argument registers are propagated back to the parent.
2596 The compiler is told about this with #include <vfork.h>,
2597 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2598 Test for this by using a static variable whose address
2599 is put into a register that is clobbered by the vfork. */
2602 sparc_address_test (int arg)
2604 sparc_address_test (arg) int arg;
2622 pid_t parent = getpid ();
2625 sparc_address_test ();
2630 /* Here is another test for sparc vfork register problems.
2631 This test uses lots of local variables, at least
2632 as many local variables as main has allocated so far
2633 including compiler temporaries. 4 locals are enough for
2634 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2635 A buggy compiler should reuse the register of parent
2636 for one of the local variables, since it will think that
2637 parent can't possibly be used any more in this routine.
2638 Assigning to the local variable will thus munge parent
2639 in the parent process. */
2641 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2642 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2643 /* Convince the compiler that p..p7 are live; otherwise, it might
2644 use the same hardware register for all 8 local variables. */
2645 if (p != p1 || p != p2 || p != p3 || p != p4
2646 || p != p5 || p != p6 || p != p7)
2649 /* On some systems (e.g. IRIX 3.3),
2650 vfork doesn't separate parent from child file descriptors.
2651 If the child closes a descriptor before it execs or exits,
2652 this munges the parent's descriptor as well.
2653 Test for this by closing stdout in the child. */
2654 _exit(close(fileno(stdout)) != 0);
2659 while (wait(&status) != child)
2662 /* Was there some problem with vforking? */
2665 /* Did the child fail? (This shouldn't happen.) */
2668 /* Did the vfork/compiler bug occur? */
2669 || parent != getpid()
2671 /* Did the file descriptor bug occur? */
2672 || fstat(fileno(stdout), &st) != 0
2677 if { (eval echo configure
:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2679 ac_cv_func_vfork_works
=yes
2681 echo "configure: failed program was:" >&5
2682 cat conftest.
$ac_ext >&5
2684 ac_cv_func_vfork_works
=no
2691 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2692 if test $ac_cv_func_vfork_works = no
; then
2693 cat >> confdefs.h
<<\EOF
2699 for ac_hdr
in unistd.h
2701 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_hdr" >&5
2704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 cat > conftest.
$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2713 { (eval echo configure
:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2715 if test -z "$ac_err"; then
2717 eval "ac_cv_header_$ac_safe=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2723 eval "ac_cv_header_$ac_safe=no"
2727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2730 cat >> confdefs.h
<<EOF
2731 #define $ac_tr_hdr 1
2735 echo "$ac_t""no" 1>&6
2739 for ac_func
in getpagesize
2741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_func" >&5
2743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 /* System header to define __stub macros and hopefully few prototypes,
2750 which can conflict with char $ac_func(); below. */
2752 /* Override any gcc2 internal prototype to avoid an error. */
2753 /* We use char because int might match the return type of a gcc2
2754 builtin and then its argument prototype would still apply. */
2759 /* The GNU C library defines this for functions which it implements
2760 to always fail with ENOSYS. Some functions are actually named
2761 something starting with __ and the normal name is an alias. */
2762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2770 if { (eval echo configure
:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2772 eval "ac_cv_func_$ac_func=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.
$ac_ext >&5
2777 eval "ac_cv_func_$ac_func=no"
2782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2785 cat >> confdefs.h
<<EOF
2786 #define $ac_tr_func 1
2790 echo "$ac_t""no" 1>&6
2794 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2795 echo "configure:2796: checking for working mmap from /dev/zero" >&5
2796 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 if test "$cross_compiling" = yes; then
2800 ac_cv_func_mmap_anywhere
=no
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2806 /* Test by Richard Henderson and Alexandre Oliva.
2807 Check whether mmap from /dev/zero works. */
2808 #include <sys/types.h>
2810 #include <sys/mman.h>
2812 /* This mess was copied from the GNU getpagesize.h. */
2813 #ifndef HAVE_GETPAGESIZE
2814 # ifdef HAVE_UNISTD_H
2815 # include <unistd.h>
2818 /* Assume that all systems that can run configure have sys/param.h. */
2819 # ifndef HAVE_SYS_PARAM_H
2820 # define HAVE_SYS_PARAM_H 1
2823 # ifdef _SC_PAGESIZE
2824 # define getpagesize() sysconf(_SC_PAGESIZE)
2825 # else /* no _SC_PAGESIZE */
2826 # ifdef HAVE_SYS_PARAM_H
2827 # include <sys/param.h>
2828 # ifdef EXEC_PAGESIZE
2829 # define getpagesize() EXEC_PAGESIZE
2830 # else /* no EXEC_PAGESIZE */
2832 # define getpagesize() NBPG * CLSIZE
2835 # endif /* no CLSIZE */
2836 # else /* no NBPG */
2838 # define getpagesize() NBPC
2839 # else /* no NBPC */
2841 # define getpagesize() PAGESIZE
2842 # endif /* PAGESIZE */
2843 # endif /* no NBPC */
2844 # endif /* no NBPG */
2845 # endif /* no EXEC_PAGESIZE */
2846 # else /* no HAVE_SYS_PARAM_H */
2847 # define getpagesize() 8192 /* punt totally */
2848 # endif /* no HAVE_SYS_PARAM_H */
2849 # endif /* no _SC_PAGESIZE */
2851 #endif /* no HAVE_GETPAGESIZE */
2858 fd = open("/dev/zero", O_RDWR);
2863 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2864 if (x == (char *) -1)
2869 if (munmap(x, pg) < 0)
2875 if { (eval echo configure
:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2877 ac_cv_func_mmap_anywhere
=yes
2879 echo "configure: failed program was:" >&5
2880 cat conftest.
$ac_ext >&5
2882 ac_cv_func_mmap_anywhere
=no
2889 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2890 if test $ac_cv_func_mmap_anywhere = yes; then
2891 cat >> confdefs.h
<<\EOF
2892 #define HAVE_MMAP_ANYWHERE 1
2898 for ac_func
in bcopy bzero bcmp \
2899 index rindex getenv atol sbrk abort atof getcwd getwd \
2900 strsignal putc_unlocked fputs_unlocked strstr environ
2902 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2903 echo "configure:2904: checking whether $ac_func must be declared" >&5
2904 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2912 #ifdef STRING_WITH_STRINGS
2913 # include <string.h>
2914 # include <strings.h>
2916 # ifdef HAVE_STRING_H
2917 # include <string.h>
2919 # ifdef HAVE_STRINGS_H
2920 # include <strings.h>
2924 #ifdef HAVE_STDLIB_H
2927 #ifdef HAVE_UNISTD_H
2932 #define rindex strrchr
2937 #define index strchr
2942 char *(*pfn) = (char *(*)) $ac_func
2945 if { (eval echo configure
:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 eval "gcc_cv_decl_needed_$ac_func=no"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 eval "gcc_cv_decl_needed_$ac_func=yes"
2957 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2960 cat >> confdefs.h
<<EOF
2961 #define $gcc_tr_decl 1
2965 echo "$ac_t""no" 1>&6
2971 for ac_func
in malloc realloc calloc free
2973 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2974 echo "configure:2975: checking whether $ac_func must be declared" >&5
2975 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 cat > conftest.
$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2983 #ifdef STRING_WITH_STRINGS
2984 # include <string.h>
2985 # include <strings.h>
2987 # ifdef HAVE_STRING_H
2988 # include <string.h>
2990 # ifdef HAVE_STRINGS_H
2991 # include <strings.h>
2995 #ifdef HAVE_STDLIB_H
2998 #ifdef HAVE_UNISTD_H
3003 #define rindex strrchr
3008 #define index strchr
3011 #ifdef HAVE_MALLOC_H
3016 char *(*pfn) = (char *(*)) $ac_func
3019 if { (eval echo configure
:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3021 eval "gcc_cv_decl_needed_$ac_func=no"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.
$ac_ext >&5
3026 eval "gcc_cv_decl_needed_$ac_func=yes"
3031 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3034 cat >> confdefs.h
<<EOF
3035 #define $gcc_tr_decl 1
3039 echo "$ac_t""no" 1>&6
3045 for ac_func
in getrlimit setrlimit getrusage
3047 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3048 echo "configure:3049: checking whether $ac_func must be declared" >&5
3049 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.
$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3057 #ifdef STRING_WITH_STRINGS
3058 # include <string.h>
3059 # include <strings.h>
3061 # ifdef HAVE_STRING_H
3062 # include <string.h>
3064 # ifdef HAVE_STRINGS_H
3065 # include <strings.h>
3069 #ifdef HAVE_STDLIB_H
3072 #ifdef HAVE_UNISTD_H
3077 #define rindex strrchr
3082 #define index strchr
3085 #include <sys/types.h>
3086 #ifdef HAVE_SYS_RESOURCE_H
3087 #include <sys/resource.h>
3091 char *(*pfn) = (char *(*)) $ac_func
3094 if { (eval echo configure
:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096 eval "gcc_cv_decl_needed_$ac_func=no"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3101 eval "gcc_cv_decl_needed_$ac_func=yes"
3106 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3109 cat >> confdefs.h
<<EOF
3110 #define $gcc_tr_decl 1
3114 echo "$ac_t""no" 1>&6
3120 # mkdir takes a single argument on some systems.
3121 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3122 echo "configure:3123: checking if mkdir takes one argument" >&5
3123 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3130 #include <sys/types.h>
3131 #ifdef HAVE_SYS_STAT_H
3132 # include <sys/stat.h>
3134 #ifdef HAVE_UNISTD_H
3135 # include <unistd.h>
3137 #ifdef HAVE_DIRECT_H
3138 # include <direct.h>
3144 if { (eval echo configure
:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3146 gcc_cv_mkdir_takes_one_arg
=no
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3151 gcc_cv_mkdir_takes_one_arg
=yes
3156 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3157 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3158 cat >> confdefs.h
<<\EOF
3159 #define MKDIR_TAKES_ONE_ARG 1
3173 build_install_headers_dir
=install-headers-tar
3178 host_truncate_target
=
3181 # Decode the host machine, then the target machine.
3182 # For the host machine, we save the xm_file variable as host_xm_file;
3183 # then we decode the target machine and forget everything else
3184 # that came from the host machine.
3185 for machine
in $build $host $target; do
3199 # Set this to force installation and use of collect2.
3201 # Set this to override the default target model.
3203 # Set this to control how the header file directory is installed.
3204 install_headers_dir
=install-headers-tar
3205 # Set this to a non-empty list of args to pass to cpp if the target
3206 # wants its .md file passed through cpp.
3208 # Set this if directory names should be truncated to 14 characters.
3210 # Set this if gdb needs a dir command with `dirname $out_file`
3211 gdb_needs_out_file_path
=
3212 # Set this if the build machine requires executables to have a
3215 # Set this to control which thread package will be used.
3217 # Reinitialize these from the flag values every loop pass, since some
3218 # configure entries modify them.
3220 gnu_ld
="$gnu_ld_flag"
3221 enable_threads
=$enable_threads_flag
3223 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3224 # updated in each machine entry.
3226 cpu_type
=`echo $machine | sed 's/-.*$//'`
3263 tm_file
=${cpu_type}/${cpu_type}.h
3264 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3265 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3267 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3269 # On a.out targets, we need to use collect2.
3276 # Common parts for linux-gnu and openbsd systems
3279 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3282 tm_file
=${cpu_type}/openbsd.h
3283 tmake_file
="t-libc-ok t-openbsd"
3284 # avoid surprises, always provide an xm-openbsd file
3285 xm_file
=${cpu_type}/xm-openbsd.h
3286 # don't depend on processor x-fragments as well
3288 if test x
$enable_threads = xyes
; then
3290 tmake_file
="${tmake_file} t-openbsd-thread"
3296 # Support site-specific machine types.
3298 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3299 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3300 xm_file
=${cpu_type}/xm-
$rest.h
3301 tm_file
=${cpu_type}/$rest.h
3302 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3303 then xmake_file
=${cpu_type}/x-
$rest; \
3306 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3307 then tmake_file
=${cpu_type}/t-
$rest; \
3313 a29k-
*-bsd* | a29k-
*-sym1*)
3314 tm_file
="${tm_file} a29k/unix.h"
3316 xmake_file
=a29k
/x-unix
3319 a29k-
*-udi | a29k-
*-coff)
3320 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3321 tmake_file
=a29k
/t-a29kbare
3324 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3325 tmake_file
=a29k
/t-vx29k
3326 extra_parts
="crtbegin.o crtend.o"
3327 thread_file
='vxworks'
3329 a29k-
*-*) # Default a29k environment.
3333 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3335 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3336 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3338 # GAS + IEEE_CONFORMANT
3339 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3341 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3342 xmake_file
="x-interix alpha/t-pe"
3343 tmake_file
="alpha/t-interix alpha/t-ieee"
3344 if test x
$enable_threads = xyes
; then
3347 if test x
$stabs = xyes
; then
3348 tm_file
="${tm_file} dbxcoff.h"
3350 #prefix='$$INTERIX_ROOT'/usr/contrib
3351 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3353 alpha
*-*-linux-gnuecoff*)
3354 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3355 target_cpu_default
="MASK_GAS"
3356 tmake_file
="alpha/t-ieee"
3361 alpha
*-*-linux-gnulibc1*)
3362 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3363 target_cpu_default
="MASK_GAS"
3364 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3365 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3368 if test x
$enable_threads = xyes
; then
3372 alpha
*-*-linux-gnu*)
3373 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3374 target_cpu_default
="MASK_GAS"
3375 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3376 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3379 if test x
$enable_threads = xyes
; then
3384 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3385 target_cpu_default
="MASK_GAS"
3386 tmake_file
="alpha/t-crtbe alpha/t-ieee"
3387 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3393 # default x-alpha is only appropriate for dec-osf.
3394 target_cpu_default
="MASK_GAS"
3395 tmake_file
="alpha/t-ieee"
3399 if test x
$stabs = xyes
3401 tm_file
="${tm_file} dbx.h"
3403 if test x
$gas != xyes
3405 extra_passes
="mips-tfile mips-tdump"
3408 tmake_file
="alpha/t-ieee"
3411 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3414 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3417 tm_file
="${tm_file} alpha/osf.h"
3418 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3419 # a broken tar, so we use cpio instead.
3420 install_headers_dir
=install-headers-cpio
3423 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3427 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3428 target_cpu_default
=MASK_SUPPORT_ARCH
3433 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3434 tmake_file
="alpha/t-ieee"
3437 extra_passes
="mips-tfile mips-tdump"
3440 thread_file
='vxworks'
3443 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3444 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3445 tmake_file
="t-libc-ok alpha/t-ieee"
3446 xmake_file
=winnt
/x-winnt
3447 extra_host_objs
=oldnames.o
3448 extra_gcc_objs
="spawnv.o oldnames.o"
3449 if test x
$gnu_ld != xyes
3451 extra_programs
=ld.exe
3453 if test x
$enable_threads = xyes
; then
3459 xm_file
="${xm_file} alpha/xm-vms.h"
3460 tmake_file
="alpha/t-vms alpha/t-ieee"
3463 extra_parts
="crtinit.o crtfini.o"
3465 arm-
*-coff* | armel-
*-coff*)
3467 tmake_file
=arm
/t-bare
3471 tmake_file
=arm
/t-bare
3472 thread_file
='vxworks'
3474 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3475 tm_file
=arm
/riscix1-1.h
3478 arm-
*-riscix*) # Acorn RISC machine
3479 if test x
$gas = xyes
3481 tm_file
=arm
/rix-gas.h
3483 tm_file
=arm
/riscix.h
3485 xmake_file
=arm
/x-riscix
3486 tmake_file
=arm
/t-riscix
3489 arm-semi-aout | armel-semi-aout
)
3491 tmake_file
=arm
/t-semi
3493 arm-semi-aof | armel-semi-aof
)
3494 tm_file
=arm
/semiaof.h
3495 tmake_file
=arm
/t-semiaof
3498 tm_file
=arm
/netbsd.h
3499 tmake_file
="t-netbsd arm/t-netbsd"
3502 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3505 tm_file
=arm
/linux-aout.h
3506 tmake_file
=arm
/t-linux
3509 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3510 xm_file
=arm
/xm-linux.h
3512 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3515 tm_file
="arm/linux-elf26.h $tm_file"
3518 tmake_file
="t-linux arm/t-linux"
3519 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3521 case x
${enable_threads} in
3522 x | xyes | xpthreads | xposix
)
3527 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3528 xm_file
=arm
/xm-linux.h
3530 tm_file
="arm/linux-elf.h"
3533 tm_file
="arm/linux-elf26.h $tm_file"
3536 tmake_file
="t-linux arm/t-linux"
3537 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3539 case x
${enable_threads} in
3540 x | xyes | xpthreads | xposix
)
3545 arm
*-*-uclinux*) # ARM ucLinux
3546 tm_file
=arm
/uclinux-elf.h
3547 tmake_file
=arm
/t-arm-elf
3551 tmake_file
=arm
/t-bare
3554 tm_file
=arm
/ecos-elf.h
3555 tmake_file
=arm
/t-elf
3558 tm_file
=arm
/unknown-elf.h
3559 tmake_file
=arm
/t-arm-elf
3562 tm_file
=arm
/conix-elf.h
3563 tmake_file
=arm
/t-arm-elf
3566 tm_file
=arm
/unknown-elf-oabi.h
3567 tmake_file
=arm
/t-arm-elf
3576 c1-convex-
*) # Convex C1
3577 target_cpu_default
=1
3580 c2-convex-
*) # Convex C2
3581 target_cpu_default
=2
3585 target_cpu_default
=4
3589 target_cpu_default
=8
3593 target_cpu_default
=16
3598 tmake_file
=c4x
/t-c4x
3600 clipper-intergraph-clix
*)
3601 tm_file
="${tm_file} svr3.h clipper/clix.h"
3602 xm_file
=clipper
/xm-clix.h
3603 xmake_file
=clipper
/x-clix
3604 extra_headers
=va-clipper.h
3605 extra_parts
="crtbegin.o crtend.o"
3606 install_headers_dir
=install-headers-cpio
3614 tm_file
="fr30/fr30.h"
3615 tmake_file
=fr30
/t-fr30
3616 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3618 # This hasn't been upgraded to GCC 2.
3619 # fx80-alliant-*) # Alliant FX/80
3625 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3626 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3627 tmake_file
="t-linux pa/t-linux"
3628 extra_parts
="crtbegin.o crtend.o"
3631 if test x
$enable_threads = xyes
; then
3636 target_cpu_default
="MASK_PA_11"
3637 tmake_file
=pa
/t-openbsd
3640 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3641 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3642 xm_file
=pa
/xm-papro.h
3646 target_cpu_default
="MASK_PA_11"
3647 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3651 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3652 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3653 xm_file
=pa
/xm-papro.h
3657 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3661 tm_file
="${tm_file} pa/som.h"
3662 target_cpu_default
="MASK_PA_11"
3666 tm_file
="${tm_file} pa/som.h"
3670 tm_file
="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3671 xm_file
=pa
/xm-pahpux.h
3672 xmake_file
=pa
/x-pa-hpux
3673 if test x
$gas = xyes
3675 tm_file
="${tm_file} pa/gas.h"
3677 install_headers_dir
=install-headers-cpio
3680 hppa1.0
-*-hpux8.0
[0-2]*)
3681 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3682 xm_file
=pa
/xm-pahpux.h
3683 xmake_file
=pa
/x-pa-hpux
3684 if test x
$gas = xyes
3686 tm_file
="${tm_file} pa/pa-gas.h"
3688 tm_file
="pa/pa-oldas.h ${tm_file}"
3690 install_headers_dir
=install-headers-cpio
3693 hppa1.1
-*-hpux8.0
[0-2]*)
3694 target_cpu_default
="MASK_PA_11"
3695 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3696 xm_file
=pa
/xm-pahpux.h
3697 xmake_file
=pa
/x-pa-hpux
3698 if test x
$gas = xyes
3700 tm_file
="${tm_file} pa/pa-gas.h"
3702 tm_file
="pa/pa-oldas.h ${tm_file}"
3704 install_headers_dir
=install-headers-cpio
3708 target_cpu_default
="MASK_PA_11"
3709 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3710 xm_file
=pa
/xm-pahpux.h
3711 xmake_file
=pa
/x-pa-hpux
3712 if test x
$gas = xyes
3714 tm_file
="${tm_file} pa/pa-gas.h"
3716 install_headers_dir
=install-headers-cpio
3720 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3721 xm_file
=pa
/xm-pahpux.h
3722 xmake_file
=pa
/x-pa-hpux
3723 if test x
$gas = xyes
3725 tm_file
="${tm_file} pa/pa-gas.h"
3727 install_headers_dir
=install-headers-cpio
3730 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3731 target_cpu_default
="MASK_PA_11"
3732 tm_file
="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3734 xm_file
=pa
/xm-pahpux.h
3735 xmake_file
=pa
/x-pa-hpux
3737 if test x
$gas = xyes
3739 tm_file
="${tm_file} pa/pa-gas.h"
3741 if test x
$enable_threads = x
; then
3742 enable_threads
=$have_pthread_h
3744 if test x
$enable_threads = xyes
; then
3746 tmake_file
="${tmake_file} pa/t-dce-thr"
3748 install_headers_dir
=install-headers-cpio
3752 tm_file
="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3754 xm_file
=pa
/xm-pahpux.h
3755 xmake_file
=pa
/x-pa-hpux
3757 if test x
$gas = xyes
3759 tm_file
="${tm_file} pa/pa-gas.h"
3761 if test x
$enable_threads = x
; then
3762 enable_threads
=$have_pthread_h
3764 if test x
$enable_threads = xyes
; then
3766 tmake_file
="${tmake_file} pa/t-dce-thr"
3768 install_headers_dir
=install-headers-cpio
3771 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3772 target_cpu_default
="MASK_PA_11"
3773 tm_file
="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3775 xm_file
=pa
/xm-pahpux.h
3776 xmake_file
=pa
/x-pa-hpux
3778 if test x
$gas = xyes
3780 tm_file
="${tm_file} pa/pa-gas.h"
3782 # if test x$enable_threads = x; then
3783 # enable_threads=$have_pthread_h
3785 # if test x$enable_threads = xyes; then
3787 # tmake_file="${tmake_file} pa/t-dce-thr"
3789 install_headers_dir
=install-headers-cpio
3793 tm_file
="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3795 xm_file
=pa
/xm-pahpux.h
3796 xmake_file
=pa
/x-pa-hpux
3797 if test x
$gas = xyes
3799 tm_file
="${tm_file} pa/pa-gas.h"
3801 # if test x$enable_threads = x; then
3802 # enable_threads=$have_pthread_h
3804 # if test x$enable_threads = xyes; then
3806 # tmake_file="${tmake_file} pa/t-dce-thr"
3808 install_headers_dir
=install-headers-cpio
3811 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3812 target_cpu_default
="MASK_PA_11"
3813 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3814 xm_file
=pa
/xm-pahpux.h
3815 xmake_file
=pa
/x-pa-hpux
3816 if test x
$gas = xyes
3818 tm_file
="${tm_file} pa/pa-gas.h"
3820 install_headers_dir
=install-headers-cpio
3824 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3825 xm_file
=pa
/xm-pahpux.h
3826 xmake_file
=pa
/x-pa-hpux
3827 if test x
$gas = xyes
3829 tm_file
="${tm_file} pa/pa-gas.h"
3831 install_headers_dir
=install-headers-cpio
3834 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3835 target_cpu_default
="MASK_PA_11"
3836 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3837 xm_file
=pa
/xm-pahpux.h
3838 xmake_file
=pa
/x-pa-hpux
3839 if test x
$gas = xyes
3841 tm_file
="${tm_file} pa/pa-gas.h"
3843 install_headers_dir
=install-headers-cpio
3847 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3848 xm_file
=pa
/xm-pahpux.h
3849 xmake_file
=pa
/x-pa-hpux
3850 if test x
$gas = xyes
3852 tm_file
="${tm_file} pa/pa-gas.h"
3854 install_headers_dir
=install-headers-cpio
3858 tm_file
="${tm_file} elfos.h pa/elf.h"
3859 target_cpu_default
="MASK_PA_11"
3863 tm_file
="${tm_file} pa/pa-mpeix.h"
3864 xm_file
=pa
/xm-pampeix.h
3865 xmake_file
=pa
/x-pa-mpeix
3866 echo "You must use gas. Assuming it is already installed."
3867 install_headers_dir
=install-headers-tar
3870 i370-
*-opened*) # IBM 360/370/390 Architecture
3871 xm_file
=i370
/xm-oe.h
3873 xmake_file
=i370
/x-oe
3874 tmake_file
=i370
/t-oe
3877 xm_file
=i370
/xm-mvs.h
3879 tmake_file
=i370
/t-mvs
3882 xm_file
="xm-linux.h i370/xm-linux.h"
3884 tm_file
="i370/linux.h ${tm_file}"
3885 tmake_file
="t-linux i370/t-linux"
3886 # broken_install=yes
3887 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3888 # extra_parts="crtbegin.o crtend.o"
3892 if test x
$enable_threads = xyes
; then
3897 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3898 tm_file
=i386
/i386elf.h
3899 tmake_file
=i386
/t-i386elf
3902 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3903 if test x
$gas = xyes
3905 tm_file
=i386
/aix386.h
3906 extra_parts
="crtbegin.o crtend.o"
3907 tmake_file
=i386
/t-crtstuff
3909 tm_file
=i386
/aix386ng.h
3912 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3914 xmake_file
=i386
/x-aix
3916 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3917 xm_file
="xm-alloca.h ${xm_file}"
3918 xm_defines
="USG POSIX SMALL_ARG_MAX"
3919 xmake_file
=i386
/x-ncr3000
3920 if test x
$stabs = xyes
-a x
$gas = xyes
3922 tm_file
=i386
/sysv4gdb.h
3924 tm_file
=i386
/sysv4.h
3926 extra_parts
="crtbegin.o crtend.o"
3927 tmake_file
=i386
/t-crtpic
3931 xm_file
=i386
/xm-next.h
3932 tmake_file
=i386
/t-next
3933 xmake_file
=i386
/x-next
3934 extra_objs
=nextstep.o
3935 extra_parts
="crtbegin.o crtend.o"
3936 if test x
$enable_threads = xyes
; then
3940 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3942 if test x
$gas = xyes
3944 tm_file
=i386
/seq-gas.h
3946 tm_file
=i386
/sequent.h
3949 i
[34567]86-sequent-ptx1*)
3950 xm_defines
="USG SVR3"
3951 xmake_file
=i386
/x-sysv3
3952 tm_file
=i386
/seq-sysv3.h
3953 tmake_file
=i386
/t-crtstuff
3954 extra_parts
="crtbegin.o crtend.o"
3955 install_headers_dir
=install-headers-cpio
3957 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3958 xm_defines
="USG SVR3"
3959 xmake_file
=i386
/x-sysv3
3960 tm_file
=i386
/seq2-sysv3.h
3961 tmake_file
=i386
/t-crtstuff
3962 extra_parts
="crtbegin.o crtend.o"
3963 install_headers_dir
=install-headers-cpio
3965 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3966 xm_file
="xm-alloca.h ${xm_file}"
3967 xm_defines
="USG POSIX SMALL_ARG_MAX"
3969 tm_file
=i386
/ptx4-i.h
3971 extra_parts
="crtbegin.o crtend.o"
3972 install_headers_dir
=install-headers-cpio
3974 i386-sun-sunos
*) # Sun i386 roadrunner
3979 i
[34567]86-wrs-vxworks*)
3980 tm_file
=i386
/vxi386.h
3981 tmake_file
=i386
/t-i386bare
3982 thread_file
='vxworks'
3985 tm_file
=i386
/i386-aout.h
3986 tmake_file
=i386
/t-i386bare
3988 i
[34567]86-*-beospe*)
3989 xm_file
=i386
/xm-beos.h
3990 xm_defines
="USE_C_ALLOCA"
3991 tmake_file
=i386
/t-beos
3992 tm_file
=i386
/beos-pe.h
3993 xmake_file
=i386
/x-beos
3996 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
3997 xm_file
=i386
/xm-beos.h
3998 tmake_file
='i386/t-beos i386/t-crtpic'
3999 tm_file
=i386
/beos-elf.h
4000 xmake_file
=i386
/x-beos
4002 extra_parts
='crtbegin.o crtend.o'
4004 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4005 tm_file
=i386
/bsd386.h
4006 # tmake_file=t-libc-ok
4009 tm_file
=i386
/386bsd.h
4010 # tmake_file=t-libc-ok
4011 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4014 i
[34567]86-*-freebsdelf*)
4015 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4016 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4017 tmake_file
=t-freebsd
4021 case x
${enable_threads} in
4022 xyes | xpthreads | xposix
)
4024 tmake_file
="${tmake_file} t-freebsd-thread"
4028 i
[34567]86-*-freebsd*)
4029 tm_file
="i386/freebsd.h i386/perform.h"
4030 tmake_file
=t-freebsd
4032 i
[34567]86-*-netbsd*)
4033 tm_file
=i386
/netbsd.h
4037 i
[34567]86-*-openbsd*)
4038 # we need collect2 until our bug is fixed...
4042 tm_file
=i386
/i386-coff.h
4043 tmake_file
=i386
/t-i386bare
4045 i
[34567]86-*-isc*) # 80386 running ISC system
4046 xm_file
="${xm_file} i386/xm-isc.h"
4047 xm_defines
="USG SVR3"
4049 i
[34567]86-*-isc[34]*)
4050 xmake_file
=i386
/x-isc3
4053 xmake_file
=i386
/x-isc
4056 if test x
$gas = xyes
-a x
$stabs = xyes
4058 tm_file
=i386
/iscdbx.h
4059 tmake_file
=i386
/t-svr3dbx
4060 extra_parts
="svr3.ifile svr3z.ifile"
4062 tm_file
=i386
/isccoff.h
4063 tmake_file
=i386
/t-crtstuff
4064 extra_parts
="crtbegin.o crtend.o"
4066 install_headers_dir
=install-headers-cpio
4068 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4070 xmake_file
=x-linux-aout
4071 tmake_file
="t-linux-aout i386/t-crtstuff"
4072 tm_file
=i386
/linux-oldld.h
4076 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4077 xmake_file
=x-linux-aout
4078 tmake_file
="t-linux-aout i386/t-crtstuff"
4079 tm_file
=i386
/linux-aout.h
4083 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4084 # GNU/Linux C library 5
4086 tm_file
=i386
/linux.h
4087 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4088 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4091 if test x
$enable_threads = xyes
; then
4092 thread_file
='single'
4095 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4096 # aka GNU/Linux C library 6
4098 tm_file
=i386
/linux.h
4099 tmake_file
="t-linux i386/t-crtstuff"
4100 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4103 if test x
$enable_threads = xyes
; then
4110 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4111 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4114 i
[34567]86-pc-msdosdjgpp*)
4115 xm_file
=i386
/xm-djgpp.h
4116 tm_file
=i386
/djgpp.h
4117 tmake_file
=i386
/t-djgpp
4118 xmake_file
=i386
/x-djgpp
4122 case $host in *pc-msdosdjgpp
*)
4127 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4129 tmake_file
=t-libc-ok
4133 i
[34567]86-*-lynxos*)
4134 if test x
$gas = xyes
4138 tm_file
=i386
/lynx-ng.h
4140 xm_file
=i386
/xm-lynx.h
4141 tmake_file
=i386
/t-i386bare
4146 # tmake_file=t-libc-ok
4149 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4150 if test x
$elf = xyes
4152 tm_file
=i386
/osfelf.h
4155 tm_file
=i386
/osfrose.h
4158 xm_file
="i386/xm-osf.h ${xm_file}"
4159 xmake_file
=i386
/x-osfrose
4160 tmake_file
=i386
/t-osf
4161 extra_objs
=halfpic.o
4163 i
[34567]86-go32-rtems*)
4165 xm_file
=i386
/xm-go32.h
4166 tm_file
=i386
/go32-rtems.h
4167 tmake_file
="i386/t-go32 t-rtems"
4169 i
[34567]86-*-rtemscoff*)
4171 tm_file
=i386
/rtems.h
4172 tmake_file
="i386/t-i386bare t-rtems"
4174 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4176 tm_file
=i386
/rtemself.h
4177 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4178 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4180 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4181 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4182 xm_defines
="USG SVR3"
4183 xmake_file
=i386
/x-sco5
4184 install_headers_dir
=install-headers-cpio
4186 if test x
$gas = xyes
4188 tm_file
="i386/sco5gas.h ${tm_file}"
4189 tmake_file
=i386
/t-sco5gas
4191 tmake_file
=i386
/t-sco5
4193 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4195 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4196 xm_file
="${xm_file} i386/xm-sco.h"
4197 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4198 xmake_file
=i386
/x-sco4
4199 install_headers_dir
=install-headers-cpio
4200 if test x
$stabs = xyes
4202 tm_file
=i386
/sco4dbx.h
4203 tmake_file
=i386
/t-svr3dbx
4204 extra_parts
="svr3.ifile svr3z.rfile"
4207 tmake_file
=i386
/t-crtstuff
4208 extra_parts
="crtbegin.o crtend.o"
4210 # The default EAFS filesystem supports long file names.
4211 # Truncating the target makes $host != $target which
4212 # makes gcc think it is doing a cross-compile.
4213 # truncate_target=yes
4215 i
[34567]86-*-sco*) # 80386 running SCO system
4216 xm_file
=i386
/xm-sco.h
4217 xmake_file
=i386
/x-sco
4218 install_headers_dir
=install-headers-cpio
4219 if test x
$stabs = xyes
4221 tm_file
=i386
/scodbx.h
4222 tmake_file
=i386
/t-svr3dbx
4223 extra_parts
="svr3.ifile svr3z.rfile"
4226 extra_parts
="crtbegin.o crtend.o"
4227 tmake_file
=i386
/t-crtstuff
4231 i
[34567]86-*-solaris2*)
4232 xm_file
="xm-alloca.h ${xm_file}"
4233 xm_defines
="USG POSIX SMALL_ARG_MAX"
4235 if test x
$gas = xyes
; then
4236 # Only needed if gas does not support -s
4237 tm_file
="i386/sol2gas.h ${tm_file}"
4239 tmake_file
=i386
/t-sol2
4240 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4242 if test x
${enable_threads} = x
; then
4243 enable_threads
=$have_pthread_h
4244 if test x
${enable_threads} = x
; then
4245 enable_threads
=$have_thread_h
4248 if test x
${enable_threads} = xyes
; then
4249 if test x
${have_pthread_h} = xyes
; then
4252 thread_file
='solaris'
4256 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4257 xm_file
="xm-alloca.h ${xm_file}"
4258 xm_defines
="USG POSIX"
4259 tm_file
=i386
/sysv5.h
4260 if test x
$stabs = xyes
4262 tm_file
="${tm_file} dbx.h"
4264 tmake_file
=i386
/t-crtpic
4266 extra_parts
="crtbegin.o crtend.o"
4267 if test x
$enable_threads = xyes
; then
4271 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4272 xm_file
="xm-alloca.h ${xm_file}"
4273 xm_defines
="USG POSIX SMALL_ARG_MAX"
4274 tm_file
=i386
/sysv4.h
4275 if test x
$stabs = xyes
4277 tm_file
="${tm_file} dbx.h"
4279 tmake_file
=i386
/t-crtpic
4281 extra_parts
="crtbegin.o crtend.o"
4283 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4284 xm_file
="xm-alloca.h ${xm_file}"
4285 xm_defines
="USG POSIX"
4287 tmake_file
="i386/t-crtpic i386/t-udk"
4289 extra_parts
="crtbegin.o crtend.o"
4290 install_headers_dir
=install-headers-cpio
4292 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4294 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4295 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4296 if test x
$stabs = xyes
4298 tm_file
=i386
/osf1elfgdb.h
4300 tm_file
=i386
/osf1elf.h
4302 tmake_file
=i386
/t-osf1elf
4303 xmake_file
=i386
/x-osf1elf
4304 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4306 i
[34567]86-*-sysv*) # Intel 80386's running system V
4307 xm_defines
="USG SVR3"
4308 xmake_file
=i386
/x-sysv3
4309 if test x
$gas = xyes
4311 if test x
$stabs = xyes
4313 tm_file
=i386
/svr3dbx.h
4314 tmake_file
=i386
/t-svr3dbx
4315 extra_parts
="svr3.ifile svr3z.rfile"
4317 tm_file
=i386
/svr3gas.h
4318 extra_parts
="crtbegin.o crtend.o"
4319 tmake_file
=i386
/t-crtstuff
4322 tm_file
=i386
/sysv3.h
4323 extra_parts
="crtbegin.o crtend.o"
4324 tmake_file
=i386
/t-crtstuff
4327 i386-
*-vsta) # Intel 80386's running VSTa kernel
4328 xm_file
="${xm_file} i386/xm-vsta.h"
4330 tmake_file
=i386
/t-vsta
4331 xmake_file
=i386
/x-vsta
4334 xm_file
="${xm_file} i386/xm-cygwin.h"
4335 tmake_file
=i386
/t-cygwin
4336 tm_file
=i386
/win32.h
4337 xmake_file
=i386
/x-cygwin
4339 if test x
$enable_threads = xyes
; then
4344 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4345 xm_file
="${xm_file} i386/xm-cygwin.h"
4346 tmake_file
=i386
/t-cygwin
4347 tm_file
=i386
/cygwin.h
4348 xmake_file
=i386
/x-cygwin
4350 if test x
$enable_threads = xyes
; then
4355 i
[34567]86-*-mingw32*)
4356 tm_file
=i386
/mingw32.h
4357 xm_file
="${xm_file} i386/xm-mingw32.h"
4358 tmake_file
="i386/t-cygwin i386/t-mingw32"
4360 xmake_file
=i386
/x-cygwin
4361 if test x
$enable_threads = xyes
; then
4368 *minwg32crt
* |
*mingw32
*)
4369 tm_file
="${tm_file} i386/crtdll.h"
4375 xm_file
="${xm_file} i386/xm-uwin.h"
4376 xm_defines
="USG NO_STAB_H"
4377 tmake_file
="i386/t-cygwin i386/t-uwin"
4379 xmake_file
=i386
/x-cygwin
4380 if test x
$enable_threads = xyes
; then
4385 i
[34567]86-*-interix*)
4386 tm_file
="i386/i386-interix.h interix.h"
4387 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4389 tmake_file
="i386/t-interix"
4390 extra_objs
=interix.o
4391 xmake_file
=x-interix
4392 if test x
$enable_threads = xyes
; then
4395 if test x
$stabs = xyes
; then
4396 tm_file
="${tm_file} dbxcoff.h"
4399 i
[34567]86-*-winnt3*)
4400 tm_file
=i386
/win-nt.h
4401 out_file
=i386
/i386.c
4402 xm_file
="xm-winnt.h ${xm_file}"
4403 xmake_file
=winnt
/x-winnt
4404 tmake_file
=i386
/t-winnt
4405 extra_host_objs
="winnt.o oldnames.o"
4406 extra_gcc_objs
="spawnv.o oldnames.o"
4407 if test x
$gnu_ld != xyes
4409 extra_programs
=ld.exe
4411 if test x
$enable_threads = xyes
; then
4415 i
[34567]86-dg-dgux*)
4416 xm_file
="xm-alloca.h ${xm_file}"
4417 xm_defines
="USG POSIX"
4418 out_file
=i386
/dgux.c
4420 tmake_file
=i386
/t-dgux
4421 xmake_file
=i386
/x-dgux
4422 install_headers_dir
=install-headers-cpio
4424 i860-alliant-
*) # Alliant FX/2800
4425 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4426 xm_file
="${xm_file}"
4427 xmake_file
=i860
/x-fx2800
4428 tmake_file
=i860
/t-fx2800
4429 extra_parts
="crtbegin.o crtend.o"
4432 tm_file
="${tm_file} i860/bsd.h"
4433 if test x
$gas = xyes
4435 tm_file
="${tm_file} i860/bsd-gas.h"
4440 tm_file
="${tm_file} i860/mach.h"
4441 tmake_file
=t-libc-ok
4443 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4444 tm_file
="${tm_file} svr3.h i860/paragon.h"
4445 xm_defines
="USG SVR3"
4449 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4450 xm_defines
="USG SVR3"
4451 xmake_file
=i860
/x-sysv3
4452 extra_parts
="crtbegin.o crtend.o"
4455 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4456 xm_defines
="USG SVR3"
4457 xmake_file
=i860
/x-sysv4
4459 extra_parts
="crtbegin.o crtend.o"
4461 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4462 tm_file
="${tm_file} i960/vx960.h"
4463 tmake_file
=i960
/t-vxworks960
4465 thread_file
='vxworks'
4467 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4468 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4469 tmake_file
=i960
/t-vxworks960
4471 thread_file
='vxworks'
4474 tm_file
="${tm_file} i960/vx960.h"
4475 tmake_file
=i960
/t-vxworks960
4477 thread_file
='vxworks'
4480 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4481 tmake_file
=i960
/t-960bare
4485 tmake_file
="i960/t-960bare t-rtems"
4486 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4489 i960-
*-*) # Default i960 environment.
4493 extra_parts
="crtinit.o crtfini.o"
4495 m68000-convergent-sysv
*)
4497 xm_file
="m68k/xm-3b1.h ${xm_file}"
4500 extra_headers
=math-68881.h
4502 m68000-hp-bsd
*) # HP 9000/200 running BSD
4503 tm_file
=m68k
/hp2bsd.h
4504 xmake_file
=m68k
/x-hp2bsd
4506 extra_headers
=math-68881.h
4508 m68000-hp-hpux
*) # HP 9000 series 300
4509 xm_file
="xm-alloca.h ${xm_file}"
4511 if test x
$gas = xyes
4513 xmake_file
=m68k
/x-hp320g
4514 tm_file
=m68k
/hp310g.h
4516 xmake_file
=m68k
/x-hp320
4517 tm_file
=m68k
/hp310.h
4519 install_headers_dir
=install-headers-cpio
4521 extra_headers
=math-68881.h
4526 extra_headers
=math-68881.h
4529 tm_file
=m68k
/sun2o4.h
4531 extra_headers
=math-68881.h
4534 xm_file
="m68k/xm-3b1.h ${xm_file}"
4536 if test x
$gas = xyes
4543 extra_headers
=math-68881.h
4545 m68k-apple-aux
*) # Apple Macintosh running A/UX
4546 xm_defines
="USG AUX"
4547 tmake_file
=m68k
/t-aux
4548 install_headers_dir
=install-headers-cpio
4549 extra_headers
=math-68881.h
4550 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4552 if test "$gnu_ld" = yes
4554 tm_file
="${tm_file} m68k/auxgld.h"
4556 tm_file
="${tm_file} m68k/auxld.h"
4558 if test "$gas" = yes
4560 tm_file
="${tm_file} m68k/auxgas.h"
4562 tm_file
="${tm_file} m68k/auxas.h"
4564 tm_file
="${tm_file} m68k/a-ux.h"
4568 tm_file
=m68k
/apollo68.h
4569 xmake_file
=m68k
/x-apollo68
4571 extra_headers
=math-68881.h
4574 m68k-altos-sysv
*) # Altos 3068
4575 if test x
$gas = xyes
4577 tm_file
=m68k
/altos3068.h
4580 echo "The Altos is supported only with the GNU assembler" 1>&2
4583 extra_headers
=math-68881.h
4585 m68k-bull-sysv
*) # Bull DPX/2
4586 if test x
$gas = xyes
4588 if test x
$stabs = xyes
4590 tm_file
=m68k
/dpx2cdbx.h
4592 tm_file
=m68k
/dpx2g.h
4597 xm_file
="xm-alloca.h ${xm_file}"
4599 xmake_file
=m68k
/x-dpx2
4601 extra_headers
=math-68881.h
4603 m68k-atari-sysv4
*) # Atari variant of V.4.
4604 tm_file
=m68k
/atari.h
4605 xm_file
="xm-alloca.h ${xm_file}"
4606 xm_defines
="USG FULL_PROTOTYPES"
4608 extra_parts
="crtbegin.o crtend.o"
4609 extra_headers
=math-68881.h
4612 m68k-motorola-sysv
*)
4613 tm_file
=m68k
/mot3300.h
4614 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4615 if test x
$gas = xyes
4617 xmake_file
=m68k
/x-mot3300-gas
4618 if test x
$gnu_ld = xyes
4620 tmake_file
=m68k
/t-mot3300-gald
4622 tmake_file
=m68k
/t-mot3300-gas
4626 xmake_file
=m68k
/x-mot3300
4627 if test x
$gnu_ld = xyes
4629 tmake_file
=m68k
/t-mot3300-gld
4631 tmake_file
=m68k
/t-mot3300
4635 gdb_needs_out_file_path
=yes
4636 extra_parts
="crt0.o mcrt0.o"
4637 extra_headers
=math-68881.h
4640 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4641 tm_file
=m68k
/tower-as.h
4642 xm_defines
="USG SVR3"
4643 xmake_file
=m68k
/x-tower
4644 extra_parts
="crtbegin.o crtend.o"
4645 extra_headers
=math-68881.h
4648 tm_file
=m68k
/plexus.h
4649 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4652 extra_headers
=math-68881.h
4656 xm_file
="xm-alloca.h ${xm_file}"
4658 extra_headers
=math-68881.h
4661 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4662 xm_defines
="USG unos"
4663 xmake_file
=m68k
/x-crds
4666 extra_headers
=math-68881.h
4668 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4670 xm_file
="xm-alloca.h ${xm_file}"
4671 xm_defines
="USG FULL_PROTOTYPES"
4672 xmake_file
=m68k
/x-amix
4674 extra_parts
="crtbegin.o crtend.o"
4675 extra_headers
=math-68881.h
4679 tm_file
=m68k
/ccur-GAS.h
4680 xmake_file
=m68k
/x-ccur
4681 extra_headers
=math-68881.h
4685 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4686 tm_file
=m68k
/hp3bsd44.h
4687 xmake_file
=m68k
/x-hp3bsd44
4689 extra_headers
=math-68881.h
4692 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4693 tm_file
=m68k
/hp3bsd.h
4695 extra_headers
=math-68881.h
4699 if test x
$with_fp = xno
4701 tm_file
=m68k
/isi-nfp.h
4707 extra_headers
=math-68881.h
4709 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4710 xm_file
="xm-alloca.h ${xm_file}"
4712 if test x
$gas = xyes
4714 xmake_file
=m68k
/x-hp320g
4715 tm_file
=m68k
/hp320g.h
4717 xmake_file
=m68k
/x-hp320
4718 tm_file
=m68k
/hpux7.h
4720 install_headers_dir
=install-headers-cpio
4722 extra_headers
=math-68881.h
4725 m68k-hp-hpux
*) # HP 9000 series 300
4726 xm_file
="xm-alloca.h ${xm_file}"
4728 if test x
$gas = xyes
4730 xmake_file
=m68k
/x-hp320g
4731 tm_file
=m68k
/hp320g.h
4733 xmake_file
=m68k
/x-hp320
4734 tm_file
=m68k
/hp320.h
4736 install_headers_dir
=install-headers-cpio
4738 extra_headers
=math-68881.h
4742 tm_file
=m68k
/sun3mach.h
4744 extra_headers
=math-68881.h
4748 if test x
$gas = xyes
4750 tm_file
=m68k
/news3gas.h
4752 tm_file
=m68k
/news3.h
4755 extra_headers
=math-68881.h
4758 m68k-sony-bsd
* | m68k-sony-newsos
*)
4759 if test x
$gas = xyes
4761 tm_file
=m68k
/newsgas.h
4766 extra_headers
=math-68881.h
4769 m68k-next-nextstep2
*)
4770 tm_file
=m68k
/next21.h
4771 xm_file
="m68k/xm-next.h ${xm_file}"
4772 tmake_file
=m68k
/t-next
4773 xmake_file
=m68k
/x-next
4774 extra_objs
=nextstep.o
4775 extra_headers
=math-68881.h
4779 m68k-next-nextstep
[34]*)
4781 xm_file
="m68k/xm-next.h ${xm_file}"
4782 tmake_file
=m68k
/t-next
4783 xmake_file
=m68k
/x-next
4784 extra_objs
=nextstep.o
4785 extra_parts
="crtbegin.o crtend.o"
4786 extra_headers
=math-68881.h
4788 if test x
$enable_threads = xyes
; then
4793 if test x
$with_fp = xno
4795 tm_file
=m68k
/sun3n3.h
4797 tm_file
=m68k
/sun3o3.h
4801 extra_headers
=math-68881.h
4803 m68k-sun-sunos
*) # For SunOS 4 (the default).
4804 if test x
$with_fp = xno
4806 tm_file
=m68k
/sun3n.h
4812 extra_headers
=math-68881.h
4815 tm_file
=m68k
/vxm68k.h
4816 tmake_file
=m68k
/t-vxworks68
4817 extra_headers
=math-68881.h
4818 thread_file
='vxworks'
4822 tmake_file
=m68k
/t-m68kbare
4823 tm_file
="m68k/m68k-aout.h libgloss.h"
4824 extra_headers
=math-68881.h
4828 tmake_file
=m68k
/t-m68kbare
4829 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4830 extra_headers
=math-68881.h
4833 m68020-
*-elf* | m68k-
*-elf*)
4834 tm_file
="m68k/m68020-elf.h"
4835 xm_file
=m68k
/xm-m68kv.h
4836 tmake_file
=m68k
/t-m68kelf
4837 header_files
=math-68881.h
4840 if test x
$gas = xyes
4844 tm_file
=m68k
/lynx-ng.h
4846 xm_file
=m68k
/xm-lynx.h
4848 tmake_file
=m68k
/t-lynx
4849 extra_headers
=math-68881.h
4853 tm_file
=m68k
/netbsd.h
4860 # we need collect2 until our bug is fixed...
4863 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4864 xm_file
="xm-alloca.h ${xm_file}"
4866 xmake_file
=m68k
/x-m68kv
4867 extra_parts
="crtbegin.o crtend.o"
4868 extra_headers
=math-68881.h
4871 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4872 tm_file
=m68k
/m68kv4.h
4873 xm_file
="xm-alloca.h ${xm_file}"
4876 extra_parts
="crtbegin.o crtend.o"
4877 extra_headers
=math-68881.h
4880 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4883 tm_file
=m68k
/linux-aout.h
4884 tmake_file
="t-linux-aout m68k/t-linux-aout"
4885 extra_headers
=math-68881.h
4889 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4890 # with ELF format using the
4891 # GNU/Linux C library 5
4893 tm_file
=m68k
/linux.h
4894 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4895 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4896 extra_headers
=math-68881.h
4900 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4901 # with ELF format using glibc 2
4902 # aka the GNU/Linux C library 6.
4904 tm_file
=m68k
/linux.h
4905 tmake_file
="t-linux m68k/t-linux"
4906 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4907 extra_headers
=math-68881.h
4910 if test x
$enable_threads = xyes
; then
4915 tmake_file
=m68k
/t-m68kbare
4916 tm_file
=m68k
/m68k-psos.h
4917 extra_headers
=math-68881.h
4921 tmake_file
="m68k/t-m68kbare t-rtems"
4922 tm_file
=m68k
/rtems.h
4923 extra_headers
=math-68881.h
4926 m68k-
*-rtemself*|m68k-
*-rtems*)
4927 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4928 tm_file
=m68k
/rtemself.h
4929 extra_headers
=math-68881.h
4935 tm_file
=m88k
/dguxbcs.h
4936 tmake_file
=m88k
/t-dguxbcs
4940 tmake_file
=m88k
/t-dgux
4943 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4944 xmake_file
=m88k
/x-dgux
4945 if test x
$gas = xyes
4947 tmake_file
=m88k
/t-dgux-gas
4950 m88k-dolphin-sysv3
*)
4951 tm_file
=m88k
/dolph.h
4952 extra_parts
="crtbegin.o crtend.o"
4953 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4954 xmake_file
=m88k
/x-dolph
4955 if test x
$gas = xyes
4957 tmake_file
=m88k
/t-m88k-gas
4960 m88k-tektronix-sysv3
)
4961 tm_file
=m88k
/tekXD88.h
4962 extra_parts
="crtbegin.o crtend.o"
4963 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4964 xmake_file
=m88k
/x-tekXD88
4965 if test x
$gas = xyes
4967 tmake_file
=m88k
/t-m88k-gas
4971 tm_file
=m88k
/m88k-aout.h
4974 tm_file
=m88k
/m88k-coff.h
4975 tmake_file
=m88k
/t-bug
4979 extra_parts
="crtbegin.o crtend.o"
4980 if test x
$gas = xyes
4982 tmake_file
=m88k
/t-luna-gas
4984 tmake_file
=m88k
/t-luna
4988 tmake_file
="${tmake_file} m88k/t-luna-gas"
4991 tm_file
=m88k
/sysv3.h
4992 extra_parts
="crtbegin.o crtend.o"
4993 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4994 xmake_file
=m88k
/x-sysv3
4995 if test x
$gas = xyes
4997 tmake_file
=m88k
/t-m88k-gas
5001 tm_file
=m88k
/sysv4.h
5002 extra_parts
="crtbegin.o crtend.o"
5003 xmake_file
=m88k
/x-sysv4
5004 tmake_file
=m88k
/t-sysv4
5007 tm_file
=mcore
/mcore-elf.h
5008 tmake_file
=mcore
/t-mcore
5011 tm_file
=mcore
/mcore-pe.h
5012 tmake_file
=mcore
/t-mcore-pe
5014 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5015 if test "x$gnu_ld" = xyes
5017 tm_file
="mips/iris6.h mips/iris6gld.h"
5019 tm_file
=mips
/iris6.h
5021 tmake_file
=mips
/t-iris6
5022 xm_file
=mips
/xm-iris6.h
5023 xmake_file
=mips
/x-iris6
5024 # if test x$enable_threads = xyes; then
5025 # thread_file='irix'
5029 tm_file
="mips/elf.h mips/vxworks.h"
5030 tmake_file
=mips
/t-ecoff
5033 extra_parts
="crtbegin.o crtend.o"
5034 thread_file
='vxworks'
5036 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5037 tm_file
="mips/iris6.h mips/cross64.h"
5039 xm_file
="mips/xm-iris5.h"
5040 xmake_file
=mips
/x-iris
5041 tmake_file
=mips
/t-cross64
5042 # See comment in mips/iris[56].h files.
5044 # if test x$enable_threads = xyes; then
5045 # thread_file='irix'
5049 if test x
$gas = xyes
5051 if test x
$stabs = xyes
5053 tm_file
=mips
/iris5gdb.h
5055 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5058 tm_file
=mips
/sni-svr4.h
5061 xmake_file
=mips
/x-sni-svr4
5062 tmake_file
=mips
/t-mips-gas
5063 if test x
$gnu_ld != xyes
5068 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5069 if test x
$gas = xyes
5071 tm_file
="mips/iris5.h mips/iris5gas.h"
5072 if test x
$stabs = xyes
5074 tm_file
="${tm_file} dbx.h"
5077 tm_file
=mips
/iris5.h
5080 xm_file
="mips/xm-iris5.h"
5081 xmake_file
=mips
/x-iris
5082 # mips-tfile doesn't work yet
5083 tmake_file
=mips
/t-mips-gas
5084 # See comment in mips/iris5.h file.
5086 # if test x$enable_threads = xyes; then
5087 # thread_file='irix'
5090 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5091 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5092 if test x
$stabs = xyes
; then
5093 tm_file
="${tm_file} dbx.h"
5096 xmake_file
=mips
/x-iris
5097 if test x
$gas = xyes
5099 tmake_file
=mips
/t-mips-gas
5101 extra_passes
="mips-tfile mips-tdump"
5103 if test x
$gnu_ld != xyes
5107 # if test x$enable_threads = xyes; then
5108 # thread_file='irix'
5111 mips-sgi-irix4
*) # Mostly like a MIPS.
5112 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5113 if test x
$stabs = xyes
; then
5114 tm_file
="${tm_file} dbx.h"
5117 xmake_file
=mips
/x-iris
5118 if test x
$gas = xyes
5120 tmake_file
=mips
/t-mips-gas
5122 extra_passes
="mips-tfile mips-tdump"
5124 if test x
$gnu_ld != xyes
5128 # if test x$enable_threads = xyes; then
5129 # thread_file='irix'
5132 mips-sgi-
*) # Mostly like a MIPS.
5133 tm_file
="mips/iris3.h ${tm_file}"
5134 if test x
$stabs = xyes
; then
5135 tm_file
="${tm_file} dbx.h"
5138 xmake_file
=mips
/x-iris3
5139 if test x
$gas = xyes
5141 tmake_file
=mips
/t-mips-gas
5143 extra_passes
="mips-tfile mips-tdump"
5145 if test x
$gnu_ld != xyes
5150 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5151 tm_file
="mips/osfrose.h ${tm_file}"
5152 xmake_file
=mips
/x-osfrose
5153 tmake_file
=mips
/t-osfrose
5154 extra_objs
=halfpic.o
5157 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5158 tm_file
=mips
/dec-osf1.h
5159 if test x
$stabs = xyes
; then
5160 tm_file
="${tm_file} dbx.h"
5162 xmake_file
=mips
/x-dec-osf1
5163 if test x
$gas = xyes
5165 tmake_file
=mips
/t-mips-gas
5167 tmake_file
=mips
/t-ultrix
5168 extra_passes
="mips-tfile mips-tdump"
5170 if test x
$gnu_ld != xyes
5175 mips-dec-bsd
*) # Decstation running 4.4 BSD
5176 tm_file
=mips
/dec-bsd.h
5177 if test x
$gas = xyes
5179 tmake_file
=mips
/t-mips-gas
5181 tmake_file
=mips
/t-ultrix
5182 extra_passes
="mips-tfile mips-tdump"
5184 if test x
$gnu_ld != xyes
5189 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5190 tm_file
=mips
/netbsd.h
5191 # On NetBSD, the headers are already okay, except for math.h.
5194 mips
*-*-linux*) # Linux MIPS, either endian.
5197 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5198 *) tm_file
="mips/elf.h mips/linux.h" ;;
5200 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5203 if test x
$enable_threads = xyes
; then
5207 mips
*el-
*-openbsd*) # mips little endian
5208 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5210 mips
*-*-openbsd*) # mips big endian
5211 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5212 tm_file
="mips/openbsd-be.h ${tm_file}"
5214 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5215 tm_file
="mips/news4.h ${tm_file}"
5216 if test x
$stabs = xyes
; then
5217 tm_file
="${tm_file} dbx.h"
5219 if test x
$gas = xyes
5221 tmake_file
=mips
/t-mips-gas
5223 extra_passes
="mips-tfile mips-tdump"
5225 if test x
$gnu_ld != xyes
5229 xmake_file
=mips
/x-sony
5231 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5232 # That is based on svr4.
5233 # t-svr4 is not right because this system doesn't use ELF.
5234 tm_file
="mips/news5.h ${tm_file}"
5235 if test x
$stabs = xyes
; then
5236 tm_file
="${tm_file} dbx.h"
5239 if test x
$gas = xyes
5241 tmake_file
=mips
/t-mips-gas
5243 extra_passes
="mips-tfile mips-tdump"
5245 if test x
$gnu_ld != xyes
5250 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5251 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5252 if test x
$stabs = xyes
; then
5253 tm_file
="${tm_file} dbx.h"
5256 xmake_file
=mips
/x-sysv
5257 if test x
$gas = xyes
5259 tmake_file
=mips
/t-mips-gas
5260 extra_parts
="crtbegin.o crtend.o"
5262 tmake_file
=mips
/t-mips
5263 extra_passes
="mips-tfile mips-tdump"
5265 if test x
$gnu_ld != xyes
5270 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5271 tm_file
="mips/ultrix.h ${tm_file}"
5272 if test x
$stabs = xyes
; then
5273 tm_file
="${tm_file} dbx.h"
5275 xmake_file
=mips
/x-ultrix
5276 if test x
$gas = xyes
5278 tmake_file
=mips
/t-mips-gas
5280 tmake_file
=mips
/t-ultrix
5281 extra_passes
="mips-tfile mips-tdump"
5283 if test x
$gnu_ld != xyes
5288 mips-
*-riscos[56789]bsd
*)
5289 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5290 if test x
$stabs = xyes
; then
5291 tm_file
="${tm_file} dbx.h"
5293 if test x
$gas = xyes
5295 tmake_file
=mips
/t-bsd-gas
5297 tmake_file
=mips
/t-bsd
5298 extra_passes
="mips-tfile mips-tdump"
5300 if test x
$gnu_ld != xyes
5305 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5306 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5307 if test x
$stabs = xyes
; then
5308 tm_file
="${tm_file} dbx.h"
5310 if test x
$gas = xyes
5312 tmake_file
=mips
/t-bsd-gas
5314 tmake_file
=mips
/t-bsd
5315 extra_passes
="mips-tfile mips-tdump"
5317 if test x
$gnu_ld != xyes
5322 mips-
*-riscos[56789]sysv4
*)
5323 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5324 if test x
$stabs = xyes
; then
5325 tm_file
="${tm_file} dbx.h"
5327 xmake_file
=mips
/x-sysv
5328 if test x
$gas = xyes
5330 tmake_file
=mips
/t-svr4-gas
5332 tmake_file
=mips
/t-svr4
5333 extra_passes
="mips-tfile mips-tdump"
5335 if test x
$gnu_ld != xyes
5340 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5341 tm_file
="mips/svr4-4.h ${tm_file}"
5342 if test x
$stabs = xyes
; then
5343 tm_file
="${tm_file} dbx.h"
5346 xmake_file
=mips
/x-sysv
5347 if test x
$gas = xyes
5349 tmake_file
=mips
/t-svr4-gas
5351 tmake_file
=mips
/t-svr4
5352 extra_passes
="mips-tfile mips-tdump"
5354 if test x
$gnu_ld != xyes
5359 mips-
*-riscos[56789]sysv
*)
5360 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5361 if test x
$stabs = xyes
; then
5362 tm_file
="${tm_file} dbx.h"
5365 xmake_file
=mips
/x-sysv
5366 if test x
$gas = xyes
5368 tmake_file
=mips
/t-svr3-gas
5370 tmake_file
=mips
/t-svr3
5371 extra_passes
="mips-tfile mips-tdump"
5373 if test x
$gnu_ld != xyes
5378 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5379 tm_file
="mips/svr3-4.h ${tm_file}"
5380 if test x
$stabs = xyes
; then
5381 tm_file
="${tm_file} dbx.h"
5384 xmake_file
=mips
/x-sysv
5385 if test x
$gas = xyes
5387 tmake_file
=mips
/t-svr3-gas
5389 tmake_file
=mips
/t-svr3
5390 extra_passes
="mips-tfile mips-tdump"
5392 if test x
$gnu_ld != xyes
5397 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5398 tm_file
=mips
/mips-5.h
5399 if test x
$stabs = xyes
; then
5400 tm_file
="${tm_file} dbx.h"
5402 if test x
$gas = xyes
5404 tmake_file
=mips
/t-mips-gas
5406 extra_passes
="mips-tfile mips-tdump"
5408 if test x
$gnu_ld != xyes
5416 tm_file
=mips
/ecoffl.h
5417 if test x
$stabs = xyes
; then
5418 tm_file
="${tm_file} dbx.h"
5420 tmake_file
=mips
/t-ecoff
5423 tm_file
="gofast.h mips/ecoff.h"
5424 if test x
$stabs = xyes
; then
5425 tm_file
="${tm_file} dbx.h"
5427 tmake_file
=mips
/t-ecoff
5430 tm_file
="mips/elfl.h"
5431 tmake_file
=mips
/t-elf
5434 tm_file
="mips/elf.h"
5435 tmake_file
=mips
/t-elf
5438 tm_file
="mips/elfl64.h"
5439 tmake_file
=mips
/t-elf
5441 mips64orionel-
*-elf*)
5442 tm_file
="mips/elforion.h mips/elfl64.h"
5443 tmake_file
=mips
/t-elf
5446 tm_file
="mips/elf64.h"
5447 tmake_file
=mips
/t-elf
5450 tm_file
="mips/elforion.h mips/elf64.h"
5451 tmake_file
=mips
/t-elf
5453 mips64orion-
*-rtems*)
5454 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5455 tmake_file
="mips/t-elf t-rtems"
5458 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5459 tmake_file
=mips
/t-r3900
5462 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5463 tmake_file
=mips
/t-r3900
5465 mips-
*-*) # Default MIPS RISC-OS 4.0.
5466 if test x
$stabs = xyes
; then
5467 tm_file
="${tm_file} dbx.h"
5469 if test x
$gas = xyes
5471 tmake_file
=mips
/t-mips-gas
5473 extra_passes
="mips-tfile mips-tdump"
5475 if test x
$gnu_ld != xyes
5483 tm_file
="mn10200/mn10200.h"
5484 if test x
$stabs = xyes
5486 tm_file
="${tm_file} dbx.h"
5492 tm_file
="mn10300/mn10300.h"
5493 if test x
$stabs = xyes
5495 tm_file
="${tm_file} dbx.h"
5500 tm_file
=ns32k
/encore.h
5504 tm_file
=ns32k
/sequent.h
5508 tm_file
=ns32k
/tek6100.h
5512 tm_file
=ns32k
/tek6200.h
5515 # This has not been updated to GCC 2.
5518 # xmake_file=ns32k/x-genix
5519 # tm_file=ns32k/genix.h
5523 tm_file
=ns32k
/merlin.h
5527 tm_file
=ns32k
/pc532-mach.h
5531 tm_file
=ns32k
/pc532-min.h
5532 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5537 tm_file
=ns32k
/netbsd.h
5538 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5539 # On NetBSD, the headers are already okay, except for math.h.
5544 tm_file
="${tm_file} pdp11/2bsd.h"
5553 # This has not been updated to GCC 2.
5556 # xmake_file=pyr/x-pyr
5561 tm_file
="svr4.h pj/linux.h ${tm_file}"
5566 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5573 xmake_file
=romp
/x-mach
5580 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5584 tm_file
=rs6000
/beos.h
5585 xm_file
=rs6000
/xm-beos.h
5586 tmake_file
=rs6000
/t-beos
5587 xmake_file
=rs6000
/x-beos
5589 powerpc-
*-sysv* | powerpc-
*-elf*)
5590 tm_file
=rs6000
/sysv4.h
5591 xm_file
="rs6000/xm-sysv4.h"
5592 xm_defines
="USG POSIX"
5593 extra_headers
=ppc-asm.h
5594 if test x
$gas = xyes
5596 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5598 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5600 xmake_file
=rs6000
/x-sysv4
5603 tm_file
=rs6000
/eabiaix.h
5604 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5605 extra_headers
=ppc-asm.h
5608 tm_file
=rs6000
/eabisim.h
5609 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5610 extra_headers
=ppc-asm.h
5613 tm_file
=rs6000
/eabi.h
5614 if test x
$gas = xyes
5616 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5618 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5620 extra_headers
=ppc-asm.h
5623 tm_file
=rs6000
/rtems.h
5624 if test x
$gas = xyes
5626 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5628 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5630 extra_headers
=ppc-asm.h
5632 powerpc-
*-linux-gnulibc1)
5633 tm_file
=rs6000
/linux.h
5634 xm_file
=rs6000
/xm-sysv4.h
5635 out_file
=rs6000
/rs6000.c
5636 if test x
$gas = xyes
5638 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5640 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5643 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5644 extra_headers
=ppc-asm.h
5645 if test x
$enable_threads = xyes
; then
5649 powerpc-
*-linux-gnu*)
5650 tm_file
=rs6000
/linux.h
5651 xm_file
="rs6000/xm-sysv4.h"
5652 xm_defines
="USG ${xm_defines}"
5653 out_file
=rs6000
/rs6000.c
5654 if test x
$gas = xyes
5656 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5658 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5661 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5662 extra_headers
=ppc-asm.h
5663 if test x
$enable_threads = xyes
; then
5667 powerpc-wrs-vxworks
*)
5669 xm_file
="rs6000/xm-sysv4.h"
5670 xm_defines
="USG POSIX"
5671 tm_file
=rs6000
/vxppc.h
5672 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5673 extra_headers
=ppc-asm.h
5674 thread_file
='vxworks'
5676 powerpcle-
*-sysv* | powerpcle-
*-elf*)
5677 tm_file
=rs6000
/sysv4le.h
5678 xm_file
="rs6000/xm-sysv4.h"
5679 xm_defines
="USG POSIX"
5680 if test x
$gas = xyes
5682 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5684 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5686 xmake_file
=rs6000
/x-sysv4
5687 extra_headers
=ppc-asm.h
5689 powerpcle-
*-eabisim*)
5690 tm_file
=rs6000
/eabilesim.h
5691 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5692 extra_headers
=ppc-asm.h
5695 tm_file
=rs6000
/eabile.h
5696 if test x
$gas = xyes
5698 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5700 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5702 extra_headers
=ppc-asm.h
5704 powerpcle-
*-winnt* )
5705 tm_file
=rs6000
/win-nt.h
5706 tmake_file
=rs6000
/t-winnt
5708 if test x
$enable_threads = xyes
; then
5711 extra_headers
=ppc-asm.h
5713 powerpcle-
*-pe | powerpcle-
*-cygwin*)
5714 tm_file
=rs6000
/cygwin.h
5715 xm_file
="rs6000/xm-cygwin.h ${xm_file}"
5716 tmake_file
=rs6000
/t-winnt
5717 xmake_file
=rs6000
/x-cygwin
5719 if test x
$enable_threads = xyes
; then
5723 extra_headers
=ppc-asm.h
5725 powerpcle-
*-solaris2*)
5726 tm_file
=rs6000
/sol2.h
5727 xm_file
="rs6000/xm-sysv4.h"
5728 xm_defines
="USG POSIX"
5729 if test x
$gas = xyes
5731 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5733 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5735 xmake_file
=rs6000
/x-sysv4
5736 extra_headers
=ppc-asm.h
5738 rs6000-ibm-aix3.
[01]*)
5739 tm_file
=rs6000
/aix31.h
5740 xmake_file
=rs6000
/x-aix31
5744 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5745 tm_file
=rs6000
/aix3newas.h
5746 if test x
$host != x
$target
5748 tmake_file
=rs6000
/t-xnewas
5750 tmake_file
=rs6000
/t-newas
5755 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5756 tm_file
=rs6000
/aix41.h
5757 if test x
$host != x
$target
5759 tmake_file
=rs6000
/t-xnewas
5761 tmake_file
=rs6000
/t-newas
5763 if test "$gnu_ld" = yes
5765 xmake_file
=rs6000
/x-aix41-gld
5767 xmake_file
=rs6000
/x-aix41
5772 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5773 tm_file
=rs6000
/aix43.h
5774 if test x
$host != x
$target
5776 tmake_file
=rs6000
/t-xaix43
5778 tmake_file
=rs6000
/t-aix43
5780 xmake_file
=rs6000
/x-aix43
5784 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5785 tm_file
=rs6000
/aix43.h
5786 if test x
$host != x
$target
5788 tmake_file
=rs6000
/t-xaix43
5790 tmake_file
=rs6000
/t-aix43
5792 xmake_file
=rs6000
/x-aix43
5805 tm_file
=rs6000
/mach.h
5806 xm_file
="${xm_file} rs6000/xm-mach.h"
5807 xmake_file
=rs6000
/x-mach
5811 tm_file
=rs6000
/lynx.h
5812 xm_file
=rs6000
/xm-lynx.h
5813 tmake_file
=rs6000
/t-rs6000
5814 xmake_file
=rs6000
/x-lynx
5822 tmake_file
="sh/t-sh t-rtems"
5823 tm_file
=sh
/rtemself.h
5827 tmake_file
="sh/t-sh t-rtems"
5836 xm_file
="xm-alloca.h ${xm_file}"
5839 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5840 tm_file
=sparc
/vxsparc.h
5841 tmake_file
=sparc
/t-vxsparc
5843 thread_file
='vxworks'
5846 tmake_file
=sparc
/t-sparcbare
5847 tm_file
="sparc/aout.h libgloss.h"
5850 tm_file
=sparc
/netbsd.h
5855 # we need collect2 until our bug is fixed...
5863 tmake_file
=sparc
/t-elf
5864 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5868 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5869 xm_file
="${xm_file} sparc/xm-linux.h"
5870 tm_file
=sparc
/linux-aout.h
5874 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5875 xm_file
="${xm_file} sparc/xm-linux.h"
5877 tm_file
=sparc
/linux.h
5878 tmake_file
="t-linux t-linux-gnulibc1"
5879 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5883 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5884 xm_file
="${xm_file} sparc/xm-linux.h"
5886 tm_file
=sparc
/linux.h
5887 tmake_file
="t-linux"
5888 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5890 if test x
$enable_threads = xyes
; then
5896 if test x
$gas = xyes
5898 tm_file
=sparc
/lynx.h
5900 tm_file
=sparc
/lynx-ng.h
5902 xm_file
=sparc
/xm-lynx.h
5903 tmake_file
=sparc
/t-sunos41
5907 tmake_file
="sparc/t-sparcbare t-rtems"
5908 tm_file
=sparc
/rtems.h
5910 sparc-
*-rtems*|sparc-
*-rtemself*)
5911 tm_file
="sparc/rtemself.h"
5912 tmake_file
="sparc/t-elf t-rtems"
5913 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5917 sparcv9-
*-solaris2*)
5918 if test x
$gnu_ld = xyes
5920 tm_file
=sparc
/sol2-64.h
5922 tm_file
=sparc
/sol2-sld-64.h
5924 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5925 xm_defines
="USG POSIX"
5926 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5927 xmake_file
=sparc
/x-sysv4
5928 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5930 if test x
${enable_threads} = x
; then
5931 enable_threads
=$have_pthread_h
5932 if test x
${enable_threads} = x
; then
5933 enable_threads
=$have_thread_h
5936 if test x
${enable_threads} = xyes
; then
5937 if test x
${have_pthread_h} = xyes
; then
5940 thread_file
='solaris'
5944 sparc-hal-solaris2
*)
5945 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5946 xm_defines
="USG POSIX"
5947 tm_file
="sparc/sol2.h sparc/hal.h"
5948 tmake_file
="sparc/t-halos sparc/t-sol2"
5949 xmake_file
=sparc
/x-sysv4
5950 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5959 thread_file
='solaris'
5962 if test x
$gnu_ld = xyes
5964 tm_file
=sparc
/sol2.h
5966 tm_file
=sparc
/sol2-sld.h
5968 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5969 xm_defines
="USG POSIX"
5970 tmake_file
=sparc
/t-sol2
5971 xmake_file
=sparc
/x-sysv4
5972 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5974 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
5976 if test x
$gnu_ld = xyes
5978 tm_file
=sparc
/sol2-64.h
5980 tm_file
=sparc
/sol2-sld-64.h
5982 tmake_file
="$tmake_file sparc/t-sol2-64"
5993 if test x
${enable_threads} = x
; then
5994 enable_threads
=$have_pthread_h
5995 if test x
${enable_threads} = x
; then
5996 enable_threads
=$have_thread_h
5999 if test x
${enable_threads} = xyes
; then
6000 if test x
${have_pthread_h} = xyes
; then
6003 thread_file
='solaris'
6008 tm_file
=sparc
/sunos4.h
6009 tmake_file
=sparc
/t-sunos40
6013 tm_file
=sparc
/sunos4.h
6014 tmake_file
=sparc
/t-sunos41
6016 if test x
$gas = xyes
; then
6017 tm_file
="${tm_file} sparc/sun4gas.h"
6021 tm_file
=sparc
/sun4o3.h
6025 tm_file
=sparc
/sysv4.h
6026 xm_file
="sparc/xm-sysv4.h"
6027 xm_defines
="USG POSIX"
6029 xmake_file
=sparc
/x-sysv4
6030 extra_parts
="crtbegin.o crtend.o"
6033 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6034 xm_defines
="USG POSIX"
6035 tm_file
=sparc
/vxsim.h
6036 tmake_file
=sparc
/t-vxsparc
6037 xmake_file
=sparc
/x-sysv4
6040 tm_file
="sparc/splet.h libgloss.h"
6041 tmake_file
=sparc
/t-splet
6044 tm_file
="sparc/litecoff.h libgloss.h"
6045 tmake_file
=sparc
/t-sparclite
6048 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6049 tmake_file
=sparc
/t-sparclite
6052 tm_file
="sparc/liteelf.h"
6053 tmake_file
=sparc
/t-sparclite
6054 extra_parts
="crtbegin.o crtend.o"
6057 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6058 tmake_file
=sparc
/t-sp86x
6061 tm_file
="sparc/sp86x-elf.h"
6062 tmake_file
=sparc
/t-sp86x
6063 extra_parts
="crtbegin.o crtend.o"
6066 tmake_file
=sparc
/t-sp64
6067 tm_file
=sparc
/sp64-aout.h
6070 tmake_file
=sparc
/t-sp64
6071 tm_file
=sparc
/sp64-elf.h
6072 extra_parts
="crtbegin.o crtend.o"
6074 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6075 tmake_file
="t-linux sparc/t-linux64"
6076 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6077 tm_file
=sparc
/linux64.h
6079 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6081 if test x
$enable_threads = xyes
; then
6086 # This hasn't been upgraded to GCC 2.
6087 # tahoe-harris-*) # Harris tahoe, using COFF.
6088 # tm_file=tahoe/harris.h
6090 # tahoe-*-bsd*) # tahoe running BSD
6092 thumb-
*-coff* | thumbel-
*-coff*)
6094 out_file
=arm
/thumb.c
6095 xm_file
=arm
/xm-thumb.h
6096 md_file
=arm
/thumb.md
6097 tmake_file
=arm
/t-thumb
6098 tm_p_file
=arm
/thumb-protos.h
6100 thumb-
*-elf* | thumbel-
*-elf*)
6102 out_file
=arm
/thumb.c
6103 xm_file
=arm
/xm-thumb.h
6104 md_file
=arm
/thumb.md
6105 tmake_file
=arm
/t-thumb-elf
6106 tm_p_file
=arm
/thumb-protos.h
6109 tm_file
=arm
/linux-telf.h
6110 out_file
=arm
/thumb.c
6111 xm_file
=arm
/xm-thumb.h
6112 md_file
=arm
/thumb.md
6113 tmake_file
=arm
/t-thumb-linux
6114 tm_p_file
=arm
/thumb-protos.h
6117 tm_file
=arm
/uclinux-telf.h
6118 out_file
=arm
/thumb.c
6119 md_file
=arm
/thumb.md
6120 tmake_file
=arm
/t-thumb-linux
6121 xm_file
=arm
/xm-thumb.h
6122 tm_p_file
=arm
/thumb-protos.h
6126 out_file
=arm
/thumb.c
6127 xm_file
=arm
/xm-thumb.h
6128 md_file
=arm
/thumb.md
6129 tmake_file
=arm
/t-thumb
6130 thread_file
='vxworks'
6131 tm_p_file
=arm
/thumb-protos.h
6135 out_file
=arm
/thumb.c
6136 xm_file
=arm
/xm-thumb.h
6137 md_file
=arm
/thumb.md
6138 tmake_file
=arm
/t-pe-thumb
6140 tm_p_file
=arm
/thumb-protos.h
6142 # This hasn't been upgraded to GCC 2.
6149 tm_file
="v850/rtems.h"
6150 xm_file
="v850/xm-v850.h"
6151 tmake_file
="v850/t-v850 t-rtems"
6152 if test x
$stabs = xyes
6154 tm_file
="${tm_file} dbx.h"
6159 target_cpu_default
="TARGET_CPU_generic"
6161 tm_file
="v850/v850.h"
6162 xm_file
="v850/xm-v850.h"
6163 tmake_file
=v850
/t-v850
6164 if test x
$stabs = xyes
6166 tm_file
="${tm_file} dbx.h"
6170 vax-
*-bsd*) # vaxen running BSD
6174 vax-
*-sysv*) # vaxen running system V
6175 tm_file
="${tm_file} vax/vaxv.h"
6180 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6186 tmake_file
="${tmake_file} vax/t-openbsd"
6188 vax-
*-ultrix*) # vaxen running ultrix
6189 tm_file
="${tm_file} vax/ultrix.h"
6193 vax-
*-vms*) # vaxen running VMS
6194 xm_file
=vax
/xm-vms.h
6198 vax-
*-*) # vax default entry
6202 xm_file
="${xm_file} xm-svr3"
6206 echo "Configuration $machine not supported" 1>&2
6213 ;; # Existing GNU/Linux systems do not use the GNU setup.
6215 # On the GNU system, the setup is just about the same on
6216 # each different CPU. The specific machines that GNU
6217 # supports are matched above and just set $cpu_type.
6218 xm_file
="xm-gnu.h ${xm_file}"
6219 tm_file
=${cpu_type}/gnu.h
6220 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6221 # GNU always uses ELF.
6223 # GNU tools are the only tools.
6226 xmake_file
=x-linux
# These details are the same as Linux.
6227 tmake_file
=t-gnu
# These are not.
6230 xmake_try_sysv
=x-sysv
6231 install_headers_dir
=install-headers-cpio
6234 install_headers_dir
=install-headers-cpio
6238 # Distinguish i[34567]86
6239 # Also, do not run mips-tfile on MIPS if using gas.
6240 # Process --with-cpu= for PowerPC/rs6000
6241 target_cpu_default2
=
6244 target_cpu_default2
=1
6247 case $target_alias in
6249 target_cpu_default2
=4
6252 target_cpu_default2
=2
6256 i686-
*-* | i786-
*-*)
6257 target_cpu_default2
=3
6262 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6265 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6268 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6271 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6274 target_cpu_default2
="MASK_CPU_EV5"
6278 if test x
$gas = xyes
6280 if test "$target_cpu_default2" = ""
6282 target_cpu_default2
="MASK_GAS"
6284 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6289 case "x$with_cpu" in
6292 target_cpu_default2
="TARGET_CPU_generic"
6295 # Distinguish cores, and major variants
6296 # arm7m doesn't exist, but D & I don't affect code
6297 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6298 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6299 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6300 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6301 target_cpu_default2
="TARGET_CPU_$with_cpu"
6305 echo "--with-cpu must be passed a value" 1>&2
6310 if test x
$pass2done = xyes
6312 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6319 mips
*-*-ecoff* | mips
*-*-elf*)
6320 if test x
$gas = xyes
6322 if test x
$gnu_ld = xyes
6324 target_cpu_default2
=20
6326 target_cpu_default2
=16
6331 if test x
$gas = xyes
6333 target_cpu_default2
=16
6336 powerpc
*-*-* | rs6000-
*-*)
6337 case "x$with_cpu" in
6341 xcommon | xpower | xpower2 | xpowerpc | xrios \
6342 | xrios1 | xrios2 | xrsc | xrsc1 \
6343 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6344 | xec603e | x740 | x750 | x401 \
6345 | x403 | x505 | x801 | x821 | x823 | x860
)
6346 target_cpu_default2
="\"$with_cpu\""
6350 echo "--with-cpu must be passed a value" 1>&2
6355 if test x
$pass2done = xyes
6357 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6364 case ".$with_cpu" in
6366 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6368 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6369 target_cpu_default2
="TARGET_CPU_$with_cpu"
6372 if test x
$pass2done = xyes
6374 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6382 if test "$target_cpu_default2" != ""
6384 if test "$target_cpu_default" != ""
6386 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6388 target_cpu_default
=$target_cpu_default2
6392 # No need for collect2 if we have the GNU linker.
6393 # Actually, there is now; GNU ld doesn't handle the EH info or
6394 # collecting for shared libraries.
6401 # Save data on machine being used to compile GCC in build_xm_file.
6402 # Save data on host machine in vars host_xm_file and host_xmake_file.
6403 if test x
$pass1done = x
6405 if test x
"$xm_file" = x
6406 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6407 else build_xm_file
=$xm_file
6409 build_xm_defines
=$xm_defines
6410 build_install_headers_dir
=$install_headers_dir
6411 build_exeext
=$exeext
6414 if test x
$pass2done = x
6416 if test x
"$xm_file" = x
6417 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6418 else host_xm_file
=$xm_file
6420 host_xm_defines
=$xm_defines
6421 if test x
"$xmake_file" = x
6422 then xmake_file
=$cpu_type/x-
$cpu_type
6424 host_xmake_file
="$xmake_file"
6425 host_truncate_target
=$truncate_target
6426 host_extra_gcc_objs
=$extra_gcc_objs
6427 host_extra_objs
=$extra_host_objs
6434 extra_objs
="${host_extra_objs} ${extra_objs}"
6436 # Default the target-machine variables that were not explicitly set.
6437 if test x
"$tm_file" = x
6438 then tm_file
=$cpu_type/$cpu_type.h
; fi
6440 if test x
$extra_headers = x
6441 then extra_headers
=; fi
6443 if test x
"$xm_file" = x
6444 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6446 if test x
$md_file = x
6447 then md_file
=$cpu_type/$cpu_type.md
; fi
6449 if test x
$out_file = x
6450 then out_file
=$cpu_type/$cpu_type.c
; fi
6452 if test x
"$tmake_file" = x
6453 then tmake_file
=$cpu_type/t-
$cpu_type
6456 if test x
"$dwarf2" = xyes
6457 then tm_file
="$tm_file tm-dwarf2.h"
6460 if test x
$float_format = x
6461 then float_format
=i64
6464 if test $float_format = none
6465 then float_h_file
=Makefile.
in
6466 else float_h_file
=float-
$float_format.h
6469 # Handle cpp installation.
6470 if test x
$enable_cpp != xno
6472 tmake_file
="$tmake_file t-install-cpp"
6475 # Say what files are being used for the output code and MD file.
6476 echo "Using \`$srcdir/config/$out_file' to output insns."
6477 echo "Using \`$srcdir/config/$md_file' as machine description file."
6480 for f
in $tm_file; do
6483 if test $count = ax
; then
6484 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6486 echo "Using the following target machine macro files:"
6487 for f
in $tm_file; do
6488 echo " $srcdir/config/$f"
6493 for f
in $host_xm_file; do
6496 if test $count = ax
; then
6497 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6499 echo "Using the following host machine macro files:"
6500 for f
in $host_xm_file; do
6501 echo " $srcdir/config/$f"
6505 if test "$host_xm_file" != "$build_xm_file"; then
6507 for f
in $build_xm_file; do
6510 if test $count = ax
; then
6511 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6513 echo "Using the following build machine macro files:"
6514 for f
in $build_xm_file; do
6515 echo " $srcdir/config/$f"
6520 if test x
$thread_file = x
; then
6521 if test x
$target_thread_file != x
; then
6522 thread_file
=$target_thread_file
6524 thread_file
='single'
6528 # Set up the header files.
6529 # $links is the list of header files to create.
6530 # $vars is the list of shell variables with file names to include.
6531 # auto-host.h is the file containing items generated by autoconf and is
6532 # the first file included by config.h.
6534 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6536 # If host=build, it is correct to have hconfig include auto-host.h
6537 # as well. If host!=build, we are in error and need to do more
6538 # work to find out the build config parameters.
6539 if test x
$host = x
$build
6541 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6543 # We create a subdir, then run autoconf in the subdir.
6544 # To prevent recursion we set host and build for the new
6545 # invocation of configure to the build for this invocation
6552 /*) realsrcdir
=${srcdir};;
6553 *) realsrcdir
=..
/${srcdir};;
6555 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6556 --target=$target --host=$build --build=$build
6558 # We just finished tests for the build machine, so rename
6559 # the file auto-build.h in the gcc directory.
6560 mv auto-host.h ..
/auto-build.h
6563 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6566 xm_file
="gansidecl.h ${xm_file}"
6567 tm_file
="gansidecl.h ${tm_file}"
6569 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6570 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6571 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6574 if test -f config.status
; then mv -f config.status config.bak
; fi
6577 while test -n "$vars"
6579 set $vars; var
=$1; shift; vars
=$
*
6580 set $links; link
=$1; shift; links
=$
*
6581 set $defines; define
=$1; shift; defines
=$
*
6584 # Make sure the file is created, even if it is empty.
6587 # Define TARGET_CPU_DEFAULT if the system wants one.
6588 # This substitutes for lots of *.h files.
6589 if test "$target_cpu_default" != "" -a $link = tm.h
6591 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6594 for file in `eval echo '$'$var`; do
6599 echo '#ifdef IN_GCC' >>$link
6602 echo "#include \"$file\"" >>$link
6607 echo '#endif' >>$link
6612 for def
in `eval echo '$'$define`; do
6613 echo "#ifndef $def" >>$link
6614 echo "#define $def" >>$link
6615 echo "#endif" >>$link
6619 # Truncate the target if necessary
6620 if test x
$host_truncate_target != x
; then
6621 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6624 # Get the version trigger filename from the toplevel
6625 if test "${with_gcc_version_trigger+set}" = set; then
6626 gcc_version_trigger
=$with_gcc_version_trigger
6628 gcc_version_trigger
=${srcdir}/version.c
6630 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6632 # Internationalization
6634 VERSION
="$gcc_version"
6635 cat >> confdefs.h
<<EOF
6636 #define PACKAGE "$PACKAGE"
6639 cat >> confdefs.h
<<EOF
6640 #define VERSION "$VERSION"
6648 # NLS support is still experimental, so disable it by default for now.
6649 # Check whether --enable-nls or --disable-nls was given.
6650 if test "${enable_nls+set}" = set; then
6651 enableval
="$enable_nls"
6659 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6660 echo "configure:6661: checking for strerror in -lcposix" >&5
6661 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 ac_save_LIBS
="$LIBS"
6666 LIBS
="-lcposix $LIBS"
6667 cat > conftest.
$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6679 if { (eval echo configure
:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6681 eval "ac_cv_lib_$ac_lib_var=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.
$ac_ext >&5
6686 eval "ac_cv_lib_$ac_lib_var=no"
6689 LIBS
="$ac_save_LIBS"
6692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 LIBS
="$LIBS -lcposix"
6696 echo "$ac_t""no" 1>&6
6701 echo $ac_n "checking for working const""... $ac_c" 1>&6
6702 echo "configure:6703: checking for working const" >&5
6703 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.
$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6712 /* Ultrix mips cc rejects this. */
6713 typedef int charset[2]; const charset x;
6714 /* SunOS 4.1.1 cc rejects this. */
6715 char const *const *ccp;
6717 /* NEC SVR4.0.2 mips cc rejects this. */
6718 struct point {int x, y;};
6719 static struct point const zero = {0,0};
6720 /* AIX XL C 1.02.0.0 rejects this.
6721 It does not let you subtract one const X* pointer from another in an arm
6722 of an if-expression whose if-part is not a constant expression */
6723 const char *g = "string";
6724 ccp = &g + (g ? g-g : 0);
6725 /* HPUX 7.0 cc rejects these. */
6728 ccp = (char const *const *) p;
6729 { /* SCO 3.2v4 cc rejects this. */
6731 char const *s = 0 ? (char *) 0 : (char const *) 0;
6735 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6737 const int *foo = &x[0];
6740 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6741 typedef const int *iptr;
6745 { /* AIX XL C 1.02.0.0 rejects this saying
6746 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6747 struct s { int j; const int *ap[3]; };
6748 struct s *b; b->j = 5;
6750 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6756 if { (eval echo configure
:6757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6760 echo "configure: failed program was:" >&5
6761 cat conftest.
$ac_ext >&5
6768 echo "$ac_t""$ac_cv_c_const" 1>&6
6769 if test $ac_cv_c_const = no
; then
6770 cat >> confdefs.h
<<\EOF
6776 echo $ac_n "checking for inline""... $ac_c" 1>&6
6777 echo "configure:6778: checking for inline" >&5
6778 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6782 for ac_kw
in inline __inline__ __inline
; do
6783 cat > conftest.
$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6791 if { (eval echo configure
:6792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6793 ac_cv_c_inline
=$ac_kw; break
6795 echo "configure: failed program was:" >&5
6796 cat conftest.
$ac_ext >&5
6803 echo "$ac_t""$ac_cv_c_inline" 1>&6
6804 case "$ac_cv_c_inline" in
6806 no
) cat >> confdefs.h
<<\EOF
6810 *) cat >> confdefs.h
<<EOF
6811 #define inline $ac_cv_c_inline
6816 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6817 echo "configure:6818: checking for off_t" >&5
6818 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 cat > conftest.
$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 #include <sys/types.h>
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6833 ac_cv_type_off_t
=yes
6841 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6842 if test $ac_cv_type_off_t = no
; then
6843 cat >> confdefs.h
<<\EOF
6849 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6850 echo "configure:6851: checking for size_t" >&5
6851 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 cat > conftest.
$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 #include <sys/types.h>
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6866 ac_cv_type_size_t
=yes
6869 ac_cv_type_size_t
=no
6874 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6875 if test $ac_cv_type_size_t = no
; then
6876 cat >> confdefs.h
<<\EOF
6877 #define size_t unsigned
6882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6883 # for constant arguments. Useless!
6884 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6885 echo "configure:6886: checking for working alloca.h" >&5
6886 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 cat > conftest.
$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6894 char *p = alloca(2 * sizeof(int));
6897 if { (eval echo configure
:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6899 ac_cv_header_alloca_h
=yes
6901 echo "configure: failed program was:" >&5
6902 cat conftest.
$ac_ext >&5
6904 ac_cv_header_alloca_h
=no
6909 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6910 if test $ac_cv_header_alloca_h = yes; then
6911 cat >> confdefs.h
<<\EOF
6912 #define HAVE_ALLOCA_H 1
6917 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6918 echo "configure:6919: checking for alloca" >&5
6919 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 cat > conftest.
$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6927 # define alloca __builtin_alloca
6930 # include <malloc.h>
6931 # define alloca _alloca
6934 # include <alloca.h>
6939 # ifndef alloca /* predefined by HP cc +Olibcalls */
6948 char *p = (char *) alloca(1);
6951 if { (eval echo configure
:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6953 ac_cv_func_alloca_works
=yes
6955 echo "configure: failed program was:" >&5
6956 cat conftest.
$ac_ext >&5
6958 ac_cv_func_alloca_works
=no
6963 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6964 if test $ac_cv_func_alloca_works = yes; then
6965 cat >> confdefs.h
<<\EOF
6966 #define HAVE_ALLOCA 1
6971 if test $ac_cv_func_alloca_works = no
; then
6972 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6973 # that cause trouble. Some versions do not even contain alloca or
6974 # contain a buggy version. If you still want to use their alloca,
6975 # use ar to extract alloca.o from them instead of compiling alloca.c.
6976 ALLOCA
=alloca.
${ac_objext}
6977 cat >> confdefs.h
<<\EOF
6982 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6983 echo "configure:6984: checking whether alloca needs Cray hooks" >&5
6984 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6985 echo $ac_n "(cached) $ac_c" 1>&6
6987 cat > conftest.
$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 #if defined(CRAY) && ! defined(CRAY2)
6997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6998 egrep "webecray" >/dev
/null
2>&1; then
7009 echo "$ac_t""$ac_cv_os_cray" 1>&6
7010 if test $ac_cv_os_cray = yes; then
7011 for ac_func
in _getb67 GETB67 getb67
; do
7012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7013 echo "configure:7014: checking for $ac_func" >&5
7014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 cat > conftest.
$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* System header to define __stub macros and hopefully few prototypes,
7021 which can conflict with char $ac_func(); below. */
7023 /* Override any gcc2 internal prototype to avoid an error. */
7024 /* We use char because int might match the return type of a gcc2
7025 builtin and then its argument prototype would still apply. */
7030 /* The GNU C library defines this for functions which it implements
7031 to always fail with ENOSYS. Some functions are actually named
7032 something starting with __ and the normal name is an alias. */
7033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7041 if { (eval echo configure
:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7043 eval "ac_cv_func_$ac_func=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.
$ac_ext >&5
7048 eval "ac_cv_func_$ac_func=no"
7053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 cat >> confdefs.h
<<EOF
7056 #define CRAY_STACKSEG_END $ac_func
7061 echo "$ac_t""no" 1>&6
7067 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7068 echo "configure:7069: checking stack direction for C alloca" >&5
7069 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6
7072 if test "$cross_compiling" = yes; then
7073 ac_cv_c_stack_direction
=0
7075 cat > conftest.
$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 find_stack_direction ()
7080 static char *addr = 0;
7085 return find_stack_direction ();
7088 return (&dummy > addr) ? 1 : -1;
7092 exit (find_stack_direction() < 0);
7095 if { (eval echo configure
:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7097 ac_cv_c_stack_direction
=1
7099 echo "configure: failed program was:" >&5
7100 cat conftest.
$ac_ext >&5
7102 ac_cv_c_stack_direction
=-1
7109 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7110 cat >> confdefs.h
<<EOF
7111 #define STACK_DIRECTION $ac_cv_c_stack_direction
7116 for ac_hdr
in unistd.h
7118 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7120 echo "configure:7121: checking for $ac_hdr" >&5
7121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 cat > conftest.
$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7129 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7130 { (eval echo configure
:7131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7131 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7132 if test -z "$ac_err"; then
7134 eval "ac_cv_header_$ac_safe=yes"
7137 echo "configure: failed program was:" >&5
7138 cat conftest.
$ac_ext >&5
7140 eval "ac_cv_header_$ac_safe=no"
7144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7145 echo "$ac_t""yes" 1>&6
7146 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7147 cat >> confdefs.h
<<EOF
7148 #define $ac_tr_hdr 1
7152 echo "$ac_t""no" 1>&6
7156 for ac_func
in getpagesize
7158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7159 echo "configure:7160: checking for $ac_func" >&5
7160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7163 cat > conftest.
$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* System header to define __stub macros and hopefully few prototypes,
7167 which can conflict with char $ac_func(); below. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7176 /* The GNU C library defines this for functions which it implements
7177 to always fail with ENOSYS. Some functions are actually named
7178 something starting with __ and the normal name is an alias. */
7179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7187 if { (eval echo configure
:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7189 eval "ac_cv_func_$ac_func=yes"
7191 echo "configure: failed program was:" >&5
7192 cat conftest.
$ac_ext >&5
7194 eval "ac_cv_func_$ac_func=no"
7199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7200 echo "$ac_t""yes" 1>&6
7201 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7202 cat >> confdefs.h
<<EOF
7203 #define $ac_tr_func 1
7207 echo "$ac_t""no" 1>&6
7211 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7212 echo "configure:7213: checking for working mmap" >&5
7213 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7216 if test "$cross_compiling" = yes; then
7217 ac_cv_func_mmap_fixed_mapped
=no
7219 cat > conftest.
$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7223 /* Thanks to Mike Haertel and Jim Avera for this test.
7224 Here is a matrix of mmap possibilities:
7225 mmap private not fixed
7226 mmap private fixed at somewhere currently unmapped
7227 mmap private fixed at somewhere already mapped
7228 mmap shared not fixed
7229 mmap shared fixed at somewhere currently unmapped
7230 mmap shared fixed at somewhere already mapped
7231 For private mappings, we should verify that changes cannot be read()
7232 back from the file, nor mmap's back from the file at a different
7233 address. (There have been systems where private was not correctly
7234 implemented like the infamous i386 svr4.0, and systems where the
7235 VM page cache was not coherent with the filesystem buffer cache
7236 like early versions of FreeBSD and possibly contemporary NetBSD.)
7237 For shared mappings, we should conversely verify that changes get
7238 propogated back to all the places they're supposed to be.
7240 Grep wants private fixed already mapped.
7241 The main things grep needs to know about mmap are:
7242 * does it exist and is it safe to write into the mmap'd area
7243 * how to use it (BSD variants) */
7244 #include <sys/types.h>
7246 #include <sys/mman.h>
7248 /* This mess was copied from the GNU getpagesize.h. */
7249 #ifndef HAVE_GETPAGESIZE
7250 # ifdef HAVE_UNISTD_H
7251 # include <unistd.h>
7254 /* Assume that all systems that can run configure have sys/param.h. */
7255 # ifndef HAVE_SYS_PARAM_H
7256 # define HAVE_SYS_PARAM_H 1
7259 # ifdef _SC_PAGESIZE
7260 # define getpagesize() sysconf(_SC_PAGESIZE)
7261 # else /* no _SC_PAGESIZE */
7262 # ifdef HAVE_SYS_PARAM_H
7263 # include <sys/param.h>
7264 # ifdef EXEC_PAGESIZE
7265 # define getpagesize() EXEC_PAGESIZE
7266 # else /* no EXEC_PAGESIZE */
7268 # define getpagesize() NBPG * CLSIZE
7271 # endif /* no CLSIZE */
7272 # else /* no NBPG */
7274 # define getpagesize() NBPC
7275 # else /* no NBPC */
7277 # define getpagesize() PAGESIZE
7278 # endif /* PAGESIZE */
7279 # endif /* no NBPC */
7280 # endif /* no NBPG */
7281 # endif /* no EXEC_PAGESIZE */
7282 # else /* no HAVE_SYS_PARAM_H */
7283 # define getpagesize() 8192 /* punt totally */
7284 # endif /* no HAVE_SYS_PARAM_H */
7285 # endif /* no _SC_PAGESIZE */
7287 #endif /* no HAVE_GETPAGESIZE */
7290 extern "C" { void *malloc(unsigned); }
7298 char *data, *data2, *data3;
7302 pagesize = getpagesize();
7305 * First, make a file with some known garbage in it.
7307 data = malloc(pagesize);
7310 for (i = 0; i < pagesize; ++i)
7311 *(data + i) = rand();
7313 fd = creat("conftestmmap", 0600);
7316 if (write(fd, data, pagesize) != pagesize)
7321 * Next, try to mmap the file at a fixed address which
7322 * already has something else allocated at it. If we can,
7323 * also make sure that we see the same garbage.
7325 fd = open("conftestmmap", O_RDWR);
7328 data2 = malloc(2 * pagesize);
7331 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7332 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7333 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7335 for (i = 0; i < pagesize; ++i)
7336 if (*(data + i) != *(data2 + i))
7340 * Finally, make sure that changes to the mapped area
7341 * do not percolate back to the file as seen by read().
7342 * (This is a bug on some variants of i386 svr4.0.)
7344 for (i = 0; i < pagesize; ++i)
7345 *(data2 + i) = *(data2 + i) + 1;
7346 data3 = malloc(pagesize);
7349 if (read(fd, data3, pagesize) != pagesize)
7351 for (i = 0; i < pagesize; ++i)
7352 if (*(data + i) != *(data3 + i))
7355 unlink("conftestmmap");
7360 if { (eval echo configure
:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7362 ac_cv_func_mmap_fixed_mapped
=yes
7364 echo "configure: failed program was:" >&5
7365 cat conftest.
$ac_ext >&5
7367 ac_cv_func_mmap_fixed_mapped
=no
7374 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7375 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7376 cat >> confdefs.h
<<\EOF
7383 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7384 unistd.h sys
/param.h
7386 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7388 echo "configure:7389: checking for $ac_hdr" >&5
7389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7392 cat > conftest.
$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7398 { (eval echo configure
:7399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7400 if test -z "$ac_err"; then
7402 eval "ac_cv_header_$ac_safe=yes"
7405 echo "configure: failed program was:" >&5
7406 cat conftest.
$ac_ext >&5
7408 eval "ac_cv_header_$ac_safe=no"
7412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7413 echo "$ac_t""yes" 1>&6
7414 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7415 cat >> confdefs.h
<<EOF
7416 #define $ac_tr_hdr 1
7420 echo "$ac_t""no" 1>&6
7424 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7425 strdup __argz_count __argz_stringify __argz_next
7427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_func" >&5
7429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 cat > conftest.
$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 /* System header to define __stub macros and hopefully few prototypes,
7436 which can conflict with char $ac_func(); below. */
7438 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7445 /* The GNU C library defines this for functions which it implements
7446 to always fail with ENOSYS. Some functions are actually named
7447 something starting with __ and the normal name is an alias. */
7448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7456 if { (eval echo configure
:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7458 eval "ac_cv_func_$ac_func=yes"
7460 echo "configure: failed program was:" >&5
7461 cat conftest.
$ac_ext >&5
7463 eval "ac_cv_func_$ac_func=no"
7468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7469 echo "$ac_t""yes" 1>&6
7470 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7471 cat >> confdefs.h
<<EOF
7472 #define $ac_tr_func 1
7476 echo "$ac_t""no" 1>&6
7481 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7482 for ac_func
in stpcpy
7484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_func" >&5
7486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 cat > conftest.
$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7492 /* System header to define __stub macros and hopefully few prototypes,
7493 which can conflict with char $ac_func(); below. */
7495 /* Override any gcc2 internal prototype to avoid an error. */
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7502 /* The GNU C library defines this for functions which it implements
7503 to always fail with ENOSYS. Some functions are actually named
7504 something starting with __ and the normal name is an alias. */
7505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7513 if { (eval echo configure
:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7515 eval "ac_cv_func_$ac_func=yes"
7517 echo "configure: failed program was:" >&5
7518 cat conftest.
$ac_ext >&5
7520 eval "ac_cv_func_$ac_func=no"
7525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7527 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7528 cat >> confdefs.h
<<EOF
7529 #define $ac_tr_func 1
7533 echo "$ac_t""no" 1>&6
7538 if test "${ac_cv_func_stpcpy}" = "yes"; then
7539 cat >> confdefs.h
<<\EOF
7540 #define HAVE_STPCPY 1
7545 if test $ac_cv_header_locale_h = yes; then
7546 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7547 echo "configure:7548: checking for LC_MESSAGES" >&5
7548 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 cat > conftest.
$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7559 if { (eval echo configure
:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7561 am_cv_val_LC_MESSAGES
=yes
7563 echo "configure: failed program was:" >&5
7564 cat conftest.
$ac_ext >&5
7566 am_cv_val_LC_MESSAGES
=no
7571 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7572 if test $am_cv_val_LC_MESSAGES = yes; then
7573 cat >> confdefs.h
<<\EOF
7574 #define HAVE_LC_MESSAGES 1
7579 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7580 echo "configure:7581: checking whether NLS is requested" >&5
7581 # Check whether --enable-nls or --disable-nls was given.
7582 if test "${enable_nls+set}" = set; then
7583 enableval
="$enable_nls"
7589 echo "$ac_t""$USE_NLS" 1>&6
7592 USE_INCLUDED_LIBINTL
=no
7594 if test "$USE_NLS" = "yes"; then
7595 cat >> confdefs.h
<<\EOF
7596 #define ENABLE_NLS 1
7599 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7600 echo "configure:7601: checking whether included gettext is requested" >&5
7601 # Check whether --with-included-gettext or --without-included-gettext was given.
7602 if test "${with_included_gettext+set}" = set; then
7603 withval
="$with_included_gettext"
7604 nls_cv_force_use_gnu_gettext
=$withval
7606 nls_cv_force_use_gnu_gettext
=no
7609 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7611 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7612 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7614 nls_cv_header_libgt
=
7617 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7618 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7619 echo "configure:7620: checking for libintl.h" >&5
7620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7623 cat > conftest.
$ac_ext <<EOF
7624 #line 7625 "configure"
7625 #include "confdefs.h"
7626 #include <libintl.h>
7628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7629 { (eval echo configure
:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7630 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7631 if test -z "$ac_err"; then
7633 eval "ac_cv_header_$ac_safe=yes"
7636 echo "configure: failed program was:" >&5
7637 cat conftest.
$ac_ext >&5
7639 eval "ac_cv_header_$ac_safe=no"
7643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7644 echo "$ac_t""yes" 1>&6
7645 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7646 echo "configure:7647: checking for gettext in libc" >&5
7647 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7650 cat > conftest.
$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 #include <libintl.h>
7655 return (int) gettext ("")
7658 if { (eval echo configure
:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7660 gt_cv_func_gettext_libc
=yes
7662 echo "configure: failed program was:" >&5
7663 cat conftest.
$ac_ext >&5
7665 gt_cv_func_gettext_libc
=no
7670 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7672 if test "$gt_cv_func_gettext_libc" != "yes"; then
7673 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7674 echo "configure:7675: checking for bindtextdomain in -lintl" >&5
7675 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 ac_save_LIBS
="$LIBS"
7681 cat > conftest.
$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7687 char bindtextdomain();
7693 if { (eval echo configure
:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7695 eval "ac_cv_lib_$ac_lib_var=yes"
7697 echo "configure: failed program was:" >&5
7698 cat conftest.
$ac_ext >&5
7700 eval "ac_cv_lib_$ac_lib_var=no"
7703 LIBS
="$ac_save_LIBS"
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7709 echo "configure:7710: checking for gettext in libintl" >&5
7710 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7713 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7714 echo "configure:7715: checking for gettext in -lintl" >&5
7715 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 ac_save_LIBS
="$LIBS"
7721 cat > conftest.
$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7733 if { (eval echo configure
:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7735 eval "ac_cv_lib_$ac_lib_var=yes"
7737 echo "configure: failed program was:" >&5
7738 cat conftest.
$ac_ext >&5
7740 eval "ac_cv_lib_$ac_lib_var=no"
7743 LIBS
="$ac_save_LIBS"
7746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7747 echo "$ac_t""yes" 1>&6
7748 gt_cv_func_gettext_libintl
=yes
7750 echo "$ac_t""no" 1>&6
7751 gt_cv_func_gettext_libintl
=no
7756 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7758 echo "$ac_t""no" 1>&6
7763 if test "$gt_cv_func_gettext_libc" = "yes" \
7764 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7765 cat >> confdefs.h
<<\EOF
7766 #define HAVE_GETTEXT 1
7769 # Extract the first word of "msgfmt", so it can be a program name with args.
7770 set dummy msgfmt
; ac_word
=$2
7771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7772 echo "configure:7773: checking for $ac_word" >&5
7773 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7778 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7781 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7782 for ac_dir
in $PATH; do
7783 test -z "$ac_dir" && ac_dir
=.
7784 if test -f $ac_dir/$ac_word; then
7785 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7786 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7792 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7796 MSGFMT
="$ac_cv_path_MSGFMT"
7797 if test -n "$MSGFMT"; then
7798 echo "$ac_t""$MSGFMT" 1>&6
7800 echo "$ac_t""no" 1>&6
7802 if test "$MSGFMT" != "no"; then
7803 for ac_func
in dcgettext
7805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7806 echo "configure:7807: checking for $ac_func" >&5
7807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7810 cat > conftest.
$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* System header to define __stub macros and hopefully few prototypes,
7814 which can conflict with char $ac_func(); below. */
7816 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7823 /* The GNU C library defines this for functions which it implements
7824 to always fail with ENOSYS. Some functions are actually named
7825 something starting with __ and the normal name is an alias. */
7826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7834 if { (eval echo configure
:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7836 eval "ac_cv_func_$ac_func=yes"
7838 echo "configure: failed program was:" >&5
7839 cat conftest.
$ac_ext >&5
7841 eval "ac_cv_func_$ac_func=no"
7846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7847 echo "$ac_t""yes" 1>&6
7848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7849 cat >> confdefs.h
<<EOF
7850 #define $ac_tr_func 1
7854 echo "$ac_t""no" 1>&6
7858 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7859 set dummy gmsgfmt
; ac_word
=$2
7860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7861 echo "configure:7862: checking for $ac_word" >&5
7862 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7863 echo $ac_n "(cached) $ac_c" 1>&6
7867 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7870 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7875 for ac_dir
in $ac_dummy; do
7876 test -z "$ac_dir" && ac_dir
=.
7877 if test -f $ac_dir/$ac_word; then
7878 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7883 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7887 GMSGFMT
="$ac_cv_path_GMSGFMT"
7888 if test -n "$GMSGFMT"; then
7889 echo "$ac_t""$GMSGFMT" 1>&6
7891 echo "$ac_t""no" 1>&6
7894 # Extract the first word of "xgettext", so it can be a program name with args.
7895 set dummy xgettext
; ac_word
=$2
7896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_word" >&5
7898 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7903 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7906 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7907 for ac_dir
in $PATH; do
7908 test -z "$ac_dir" && ac_dir
=.
7909 if test -f $ac_dir/$ac_word; then
7910 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7911 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7917 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7921 XGETTEXT
="$ac_cv_path_XGETTEXT"
7922 if test -n "$XGETTEXT"; then
7923 echo "$ac_t""$XGETTEXT" 1>&6
7925 echo "$ac_t""no" 1>&6
7928 cat > conftest.
$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7933 extern int _nl_msg_cat_cntr;
7934 return _nl_msg_cat_cntr
7937 if { (eval echo configure
:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7942 echo "configure: failed program was:" >&5
7943 cat conftest.
$ac_ext >&5
7954 echo "$ac_t""no" 1>&6
7958 if test "$CATOBJEXT" = "NONE"; then
7959 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7960 echo "configure:7961: checking whether catgets can be used" >&5
7961 # Check whether --with-catgets or --without-catgets was given.
7962 if test "${with_catgets+set}" = set; then
7963 withval
="$with_catgets"
7964 nls_cv_use_catgets
=$withval
7966 nls_cv_use_catgets
=no
7969 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7971 if test "$nls_cv_use_catgets" = "yes"; then
7972 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7973 echo "configure:7974: checking for main in -li" >&5
7974 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
7978 ac_save_LIBS
="$LIBS"
7980 cat > conftest.
$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7988 if { (eval echo configure
:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7990 eval "ac_cv_lib_$ac_lib_var=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.
$ac_ext >&5
7995 eval "ac_cv_lib_$ac_lib_var=no"
7998 LIBS
="$ac_save_LIBS"
8001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8004 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8005 cat >> confdefs.h
<<EOF
8006 #define $ac_tr_lib 1
8012 echo "$ac_t""no" 1>&6
8015 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8016 echo "configure:8017: checking for catgets" >&5
8017 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8020 cat > conftest.
$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 /* System header to define __stub macros and hopefully few prototypes,
8024 which can conflict with char catgets(); below. */
8026 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8033 /* The GNU C library defines this for functions which it implements
8034 to always fail with ENOSYS. Some functions are actually named
8035 something starting with __ and the normal name is an alias. */
8036 #if defined (__stub_catgets) || defined (__stub___catgets)
8044 if { (eval echo configure
:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8046 eval "ac_cv_func_catgets=yes"
8048 echo "configure: failed program was:" >&5
8049 cat conftest.
$ac_ext >&5
8051 eval "ac_cv_func_catgets=no"
8056 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8057 echo "$ac_t""yes" 1>&6
8058 cat >> confdefs.h
<<\EOF
8059 #define HAVE_CATGETS 1
8062 INTLOBJS
="\$(CATOBJS)"
8063 # Extract the first word of "gencat", so it can be a program name with args.
8064 set dummy gencat
; ac_word
=$2
8065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8066 echo "configure:8067: checking for $ac_word" >&5
8067 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8072 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8075 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8080 for ac_dir
in $ac_dummy; do
8081 test -z "$ac_dir" && ac_dir
=.
8082 if test -f $ac_dir/$ac_word; then
8083 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8088 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8092 GENCAT
="$ac_cv_path_GENCAT"
8093 if test -n "$GENCAT"; then
8094 echo "$ac_t""$GENCAT" 1>&6
8096 echo "$ac_t""no" 1>&6
8098 if test "$GENCAT" != "no"; then
8099 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8100 set dummy gmsgfmt
; ac_word
=$2
8101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_word" >&5
8103 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8108 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8111 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8116 for ac_dir
in $ac_dummy; do
8117 test -z "$ac_dir" && ac_dir
=.
8118 if test -f $ac_dir/$ac_word; then
8119 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8124 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8128 GMSGFMT
="$ac_cv_path_GMSGFMT"
8129 if test -n "$GMSGFMT"; then
8130 echo "$ac_t""$GMSGFMT" 1>&6
8132 echo "$ac_t""no" 1>&6
8135 if test "$GMSGFMT" = "no"; then
8136 # Extract the first word of "msgfmt", so it can be a program name with args.
8137 set dummy msgfmt
; ac_word
=$2
8138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8139 echo "configure:8140: checking for $ac_word" >&5
8140 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8145 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8148 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8149 for ac_dir
in $PATH; do
8150 test -z "$ac_dir" && ac_dir
=.
8151 if test -f $ac_dir/$ac_word; then
8152 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8153 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8159 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8163 GMSGFMT
="$ac_cv_path_GMSGFMT"
8164 if test -n "$GMSGFMT"; then
8165 echo "$ac_t""$GMSGFMT" 1>&6
8167 echo "$ac_t""no" 1>&6
8171 # Extract the first word of "xgettext", so it can be a program name with args.
8172 set dummy xgettext
; ac_word
=$2
8173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8174 echo "configure:8175: checking for $ac_word" >&5
8175 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8180 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8183 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8184 for ac_dir
in $PATH; do
8185 test -z "$ac_dir" && ac_dir
=.
8186 if test -f $ac_dir/$ac_word; then
8187 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8188 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8194 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8198 XGETTEXT
="$ac_cv_path_XGETTEXT"
8199 if test -n "$XGETTEXT"; then
8200 echo "$ac_t""$XGETTEXT" 1>&6
8202 echo "$ac_t""no" 1>&6
8205 USE_INCLUDED_LIBINTL
=yes
8209 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8211 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8212 nls_cv_header_intl
=intl
/libintl.h
8213 nls_cv_header_libgt
=intl
/libgettext.h
8216 echo "$ac_t""no" 1>&6
8222 if test "$CATOBJEXT" = "NONE"; then
8223 nls_cv_use_gnu_gettext
=yes
8227 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8228 INTLOBJS
="\$(GETTOBJS)"
8229 # Extract the first word of "msgfmt", so it can be a program name with args.
8230 set dummy msgfmt
; ac_word
=$2
8231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8232 echo "configure:8233: checking for $ac_word" >&5
8233 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8238 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8242 for ac_dir
in $PATH; do
8243 test -z "$ac_dir" && ac_dir
=.
8244 if test -f $ac_dir/$ac_word; then
8245 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8246 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8252 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8256 MSGFMT
="$ac_cv_path_MSGFMT"
8257 if test -n "$MSGFMT"; then
8258 echo "$ac_t""$MSGFMT" 1>&6
8260 echo "$ac_t""no" 1>&6
8263 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8264 set dummy gmsgfmt
; ac_word
=$2
8265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8266 echo "configure:8267: checking for $ac_word" >&5
8267 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8272 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8275 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8278 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8280 for ac_dir
in $ac_dummy; do
8281 test -z "$ac_dir" && ac_dir
=.
8282 if test -f $ac_dir/$ac_word; then
8283 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8288 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8292 GMSGFMT
="$ac_cv_path_GMSGFMT"
8293 if test -n "$GMSGFMT"; then
8294 echo "$ac_t""$GMSGFMT" 1>&6
8296 echo "$ac_t""no" 1>&6
8299 # Extract the first word of "xgettext", so it can be a program name with args.
8300 set dummy xgettext
; ac_word
=$2
8301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8302 echo "configure:8303: checking for $ac_word" >&5
8303 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8308 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8311 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8312 for ac_dir
in $PATH; do
8313 test -z "$ac_dir" && ac_dir
=.
8314 if test -f $ac_dir/$ac_word; then
8315 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8316 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8322 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8326 XGETTEXT
="$ac_cv_path_XGETTEXT"
8327 if test -n "$XGETTEXT"; then
8328 echo "$ac_t""$XGETTEXT" 1>&6
8330 echo "$ac_t""no" 1>&6
8334 USE_INCLUDED_LIBINTL
=yes
8338 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8340 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8341 nls_cv_header_intl
=intl
/libintl.h
8342 nls_cv_header_libgt
=intl
/libgettext.h
8345 if test "$XGETTEXT" != ":"; then
8346 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8349 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8354 # We need to process the po/ directory.
8358 nls_cv_header_intl
=intl
/libintl.h
8359 nls_cv_header_libgt
=intl
/libgettext.h
8365 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8366 # because some of the sources are only built for this goal.
8367 if test "$PACKAGE" = gettext; then
8369 USE_INCLUDED_LIBINTL
=yes
8372 for lang
in $ALL_LINGUAS; do
8373 GMOFILES
="$GMOFILES $lang.gmo"
8374 POFILES
="$POFILES $lang.po"
8390 if test "x$CATOBJEXT" != "x"; then
8391 if test "x$ALL_LINGUAS" = "x"; then
8394 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8395 echo "configure:8396: checking for catalogs to be installed" >&5
8397 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8398 case "$ALL_LINGUAS" in
8399 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8402 LINGUAS
=$NEW_LINGUAS
8403 echo "$ac_t""$LINGUAS" 1>&6
8406 if test -n "$LINGUAS"; then
8407 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8411 if test $ac_cv_header_locale_h = yes; then
8412 INCLUDE_LOCALE_H
="#include <locale.h>"
8415 /* The system does not provide the header <locale.h>. Take care yourself. */"
8419 test -d intl || mkdir intl
8420 if test "$CATOBJEXT" = ".cat"; then
8421 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8422 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8423 echo "configure:8424: checking for linux/version.h" >&5
8424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8427 cat > conftest.
$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 #include <linux/version.h>
8432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8433 { (eval echo configure
:8434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8435 if test -z "$ac_err"; then
8437 eval "ac_cv_header_$ac_safe=yes"
8440 echo "configure: failed program was:" >&5
8441 cat conftest.
$ac_ext >&5
8443 eval "ac_cv_header_$ac_safe=no"
8447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8448 echo "$ac_t""yes" 1>&6
8451 echo "$ac_t""no" 1>&6
8456 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8458 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8459 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8461 if test "$PACKAGE" = "gettext"; then
8472 if test -n "$ac_aux_dir"; then
8473 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8475 if test -z "$MKINSTALLDIRS"; then
8476 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8483 test -d po || mkdir po
8484 if test "x$srcdir" != "x."; then
8485 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8486 posrcprefix
="$srcdir/"
8488 posrcprefix
="../$srcdir/"
8494 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8495 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8497 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8499 # Windows32 Registry support for specifying GCC installation paths.
8500 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8501 if test "${enable_win32_registry+set}" = set; then
8502 enableval
="$enable_win32_registry"
8507 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8508 echo "configure:8509: checking whether windows registry support is requested" >&5
8509 if test x
$enable_win32_registry != xno
; then
8510 cat >> confdefs.h
<<\EOF
8511 #define ENABLE_WIN32_REGISTRY 1
8514 echo "$ac_t""yes" 1>&6
8516 echo "$ac_t""no" 1>&6
8519 # Check if user specified a different registry key.
8520 case x
${enable_win32_registry} in
8523 gcc_cv_win32_registry_key
="$VERSION"
8526 # no registry lookup.
8527 gcc_cv_win32_registry_key
=''
8530 # user-specified key.
8531 gcc_cv_win32_registry_key
="$enable_win32_registry"
8535 if test x
$enable_win32_registry != xno
; then
8536 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8537 echo "configure:8538: checking registry key on windows hosts" >&5
8538 cat >> confdefs.h
<<EOF
8539 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8542 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8545 # Get an absolute path to the GCC top-level source directory
8551 # Conditionalize the makefile for this host machine.
8552 # Make-host contains the concatenation of all host makefile fragments
8553 # [there can be more than one]. This file is built by configure.frag.
8554 host_overrides
=Make-host
8555 dep_host_xmake_file
=
8556 for f
in ..
${host_xmake_file}
8558 if test -f ${srcdir}/config
/$f
8560 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8564 # Conditionalize the makefile for this target machine.
8565 # Make-target contains the concatenation of all host makefile fragments
8566 # [there can be more than one]. This file is built by configure.frag.
8567 target_overrides
=Make-target
8569 for f
in ..
${tmake_file}
8571 if test -f ${srcdir}/config
/$f
8573 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8577 # If the host doesn't support symlinks, modify CC in
8578 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8579 # Otherwise, we can use "CC=$(CC)".
8581 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8583 cc_set_by_configure
="\$(CC)"
8584 quoted_cc_set_by_configure
="\$(CC)"
8585 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8588 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8590 symbolic_link
="cp -p"
8594 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8595 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8596 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8600 out_object_file
=`basename $out_file .c`.o
8603 for f
in $tm_file; do
8606 tm_file_list
="${tm_file_list} $f" ;;
8607 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8612 for f
in $host_xm_file; do
8614 auto-host.h | gansidecl.h | hwint.h
)
8615 host_xm_file_list
="${host_xm_file_list} $f" ;;
8616 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8621 for f
in $build_xm_file; do
8623 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8624 build_xm_file_list
="${build_xm_file_list} $f" ;;
8625 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8629 # Define macro CROSS_COMPILE in compilation
8630 # if this is a cross-compiler.
8631 # Also use all.cross instead of all.internal
8632 # and add cross-make to Makefile.
8633 cross_overrides
="/dev/null"
8634 if test x
$host != x
$target
8636 cross_defines
="CROSS=-DCROSS_COMPILE"
8637 cross_overrides
="${topdir}/cross-make"
8640 # When building gcc with a cross-compiler, we need to fix a few things.
8641 # This must come after cross-make as we want all.build to override
8643 build_overrides
="/dev/null"
8644 if test x
$build != x
$host
8646 build_overrides
="${topdir}/build-make"
8649 # Expand extra_headers to include complete path.
8650 # This substitutes for lots of t-* files.
8652 if test "x$extra_headers" = x
8655 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8656 for file in $extra_headers;
8658 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8662 if test x
$use_collect2 = xno
; then
8666 # Add a definition of USE_COLLECT2 if system wants one.
8667 # Also tell toplev.c what to do.
8668 # This substitutes for lots of t-* files.
8669 if test x
$use_collect2 = x
8674 will_use_collect2
="collect2"
8675 maybe_use_collect2
="-DUSE_COLLECT2"
8679 # Set MD_DEPS if the real md file is in md.pre-cpp.
8680 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8681 # for line oriented comments, so we must always use a GNU cpp. If
8682 # building gcc with a cross compiler, use the cross compiler just
8683 # built. Otherwise, we can use the cpp just built.
8685 if test "x$md_cppflags" = x
8687 md_file_sub
=$srcdir/config
/$md_file
8692 # If we have gas in the build tree, make a link to it.
8693 if test -f ..
/gas
/Makefile
; then
8694 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8697 # If we have nm in the build tree, make a link to it.
8698 if test -f ..
/binutils
/Makefile
; then
8699 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8702 # If we have ld in the build tree, make a link to it.
8703 if test -f ..
/ld
/Makefile
; then
8704 # if test x$use_collect2 = x; then
8705 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8707 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8711 # Figure out what assembler alignment features are present.
8712 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8713 echo "configure:8714: checking assembler alignment features" >&5
8715 gcc_cv_as_alignment_features
=
8716 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8717 if test -x "$DEFAULT_ASSEMBLER"; then
8718 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8719 elif test -x "$AS"; then
8721 elif test -x as
$host_exeext; then
8722 # Build using assembler in the current directory.
8723 gcc_cv_as
=.
/as
$host_exeext
8724 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8725 # Single tree build which includes gas.
8726 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8728 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8729 if test x
$gcc_cv_gas_version != x
; then
8733 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8734 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8735 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8736 # Gas version 2.6 and later support for .balign and .p2align.
8737 # bytes to skip when using .p2align.
8738 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
8739 gcc_cv_as_alignment_features
=".balign and .p2align"
8740 cat >> confdefs.h
<<\EOF
8741 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8745 # Gas version 2.8 and later support specifying the maximum
8746 # bytes to skip when using .p2align.
8747 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
8748 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8749 cat >> confdefs.h
<<\EOF
8750 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8755 elif test x
$host = x
$target; then
8757 # Search the same directories that the installed compiler will
8758 # search. Else we may find the wrong assembler and lose. If we
8759 # do not find a suitable assembler binary, then try the user's
8762 # Also note we have to check MD_EXEC_PREFIX before checking the
8763 # user's path. Unfortunately, there is no good way to get at the
8764 # value of MD_EXEC_PREFIX here. So we do a brute force search
8765 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8766 # to be fixed as part of the make/configure rewrite too.
8768 if test "x$exec_prefix" = xNONE
; then
8769 if test "x$prefix" = xNONE
; then
8770 test_prefix
=/usr
/local
8775 test_prefix
=$exec_prefix
8778 # If the loop below does not find an assembler, then use whatever
8779 # one we can find in the users's path.
8783 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8784 $test_prefix/lib/gcc-lib/$target \
8785 /usr/lib/gcc/$target/$gcc_version \
8786 /usr/lib/gcc/$target \
8787 $test_prefix/$target/bin/$target/$gcc_version \
8788 $test_prefix/$target/bin \
8793 /bsd43/usr/lib/cmplrs/cc \
8794 /usr/cross64/usr/bin \
8795 /usr/lib/cmplrs/cc \
8796 /sysv/usr/lib/cmplrs/cc \
8797 /svr4/usr/lib/cmplrs/cc \
8800 for dir
in $test_dirs; do
8801 if test -f $dir/as
$host_exeext; then
8802 gcc_cv_as
=$dir/as
$host_exeext
8807 if test x
$gcc_cv_as != x
; then
8808 # Check if we have .balign and .p2align
8809 echo ".balign 4" > conftest.s
8810 echo ".p2align 2" >> conftest.s
8811 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8812 gcc_cv_as_alignment_features
=".balign and .p2align"
8813 cat >> confdefs.h
<<\EOF
8814 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8818 rm -f conftest.s conftest.o
8819 # Check if specifying the maximum bytes to skip when
8820 # using .p2align is supported.
8821 echo ".p2align 4,,7" > conftest.s
8822 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8823 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8824 cat >> confdefs.h
<<\EOF
8825 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8829 rm -f conftest.s conftest.o
8831 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8833 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8834 echo "configure:8835: checking assembler subsection support" >&5
8835 gcc_cv_as_subsections
=
8836 if test x
$gcc_cv_as != x
; then
8837 # Check if we have .subsection
8838 echo ".subsection 1" > conftest.s
8839 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8840 gcc_cv_as_subsections
=".subsection"
8841 if test -x nm
$host_exeext; then
8842 gcc_cv_nm
=.
/nm
$host_exeext
8843 elif test x
$host = x
$target; then
8845 gcc_cv_nm
=nm
$host_exeext
8847 if test x
$gcc_cv_nm != x
; then
8848 cat > conftest.s
<<EOF
8849 conftest_label1: .word 0
8851 conftest_label2: .word 0
8854 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8855 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8856 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8857 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8860 gcc_cv_as_subsections
="working .subsection -1"
8861 cat >> confdefs.h
<<\EOF
8862 #define HAVE_GAS_SUBSECTION_ORDERING 1
8869 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8871 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8875 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8876 echo "configure:8877: checking assembler .register pseudo-op support" >&5
8877 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8881 gcc_cv_as_register_pseudo_op
=unknown
8882 if test x
$gcc_cv_as != x
; then
8883 # Check if we have .register
8884 echo ".register %g2, #scratch" > conftest.s
8885 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8886 gcc_cv_as_register_pseudo_op
=yes
8888 gcc_cv_as_register_pseudo_op
=no
8890 rm -f conftest.s conftest.o
8895 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8896 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8897 cat >> confdefs.h
<<\EOF
8898 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8905 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8906 echo "configure:8907: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8907 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8911 if test -n "$gcc_cv_as"; then
8912 echo ".xword foo" > conftest.s
8913 gcc_cv_as_flags64
=no
8914 for flag
in "-xarch=v9" "-64 -Av9"; do
8915 if $gcc_cv_as $flag -o conftest.o conftest.s \
8916 > /dev
/null
2>&1; then
8917 gcc_cv_as_flags64
=$flag
8921 rm -f conftest.s conftest.o
8923 if test "$gas" = yes; then
8924 gcc_cv_as_flags64
="-64 -Av9"
8926 gcc_cv_as_flags64
="-xarch=v9"
8932 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8933 if test "x$gcc_cv_as_flags64" = xno
; then
8935 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8936 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8939 cat >> confdefs.h
<<EOF
8940 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8945 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8949 if test "x$gcc_cv_as_flags64" != xno
; then
8950 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8951 echo "configure:8952: checking for assembler offsetable %lo() support" >&5
8952 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8953 echo $ac_n "(cached) $ac_c" 1>&6
8956 gcc_cv_as_offsetable_lo10
=unknown
8957 if test "x$gcc_cv_as" != x
; then
8958 # Check if assembler has offsetable %lo()
8959 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8960 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8961 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8963 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8964 > /dev
/null
2>&1; then
8965 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8966 gcc_cv_as_offsetable_lo10
=no
8968 gcc_cv_as_offsetable_lo10
=yes
8971 gcc_cv_as_offsetable_lo10
=no
8973 rm -f conftest.s conftest.o conftest1.s conftest1.o
8978 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8979 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8980 cat >> confdefs.h
<<\EOF
8981 #define HAVE_AS_OFFSETABLE_LO10 1
8989 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8990 echo "configure:8991: checking assembler instructions" >&5
8991 gcc_cv_as_instructions
=
8992 if test x
$gcc_cv_as != x
; then
8993 set "filds fists" "filds mem; fists mem"
8996 echo "$2" > conftest.s
8997 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8998 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8999 cat >> confdefs.h
<<EOF
9000 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9006 rm -f conftest.s conftest.o
9008 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9012 # Figure out what language subdirectories are present.
9013 # Look if the user specified --enable-languages="..."; if not, use
9014 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9016 if test x
"${enable_languages+set}" != xset
; then
9017 if test x
"${LANGUAGES+set}" = xset
; then
9018 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9020 enable_languages
=all
9024 for lang
in ${srcdir}/*/config-lang.
in ..
9028 # The odd quoting in the next line works around
9029 # an apparent bug in bash 1.12 on linux.
9030 ${srcdir}/[*]/config-lang.
in) ;;
9032 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9033 if test "x$lang_alias" = x
9035 echo "$lang doesn't set \$language." 1>&2
9038 if test x
"${enable_languages}" = xall
; then
9041 case "${enable_languages}" in
9042 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9050 if test x"${add_this_lang}" = xyes; then
9052 ${srcdir}/ada/config-lang.in)
9053 if test x$gnat = xyes ; then
9054 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9058 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9066 # Make gthr-default.h if we have a thread file.
9068 if test $thread_file != single; then
9069 rm -f gthr-default.h
9070 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9071 gthread_flags
=-DHAVE_GTHR_DEFAULT
9075 # Find out what GC implementation we want, or may, use.
9076 # Check whether --with-gc or --without-gc was given.
9077 if test "${with_gc+set}" = set; then
9084 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9088 if test $ac_cv_func_mmap_anywhere = yes \
9089 ||
test $ac_cv_func_valloc = yes; then
9097 echo "Using $GGC for garbage collection."
9099 # Build a new-abi (c++) system
9100 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9101 if test "${enable_new_gxx_abi+set}" = set; then
9102 enableval
="$enable_new_gxx_abi"
9103 cat >> confdefs.h
<<\EOF
9104 #define ENABLE_NEW_GXX_ABI 1
9107 GXX_ABI_FLAG
='-fnew-abi'
9108 echo "Building a new-abi g++ compiler."
9114 # Make empty files to contain the specs and options for each language.
9115 # Then add #include lines to for a compiler that has specs and/or options.
9120 rm -f specs.h options.h gencheck.h
9121 touch specs.h options.h gencheck.h
9122 for subdir
in .
$subdirs
9124 if test -f $srcdir/$subdir/lang-specs.h
; then
9125 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9126 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9128 if test -f $srcdir/$subdir/lang-options.h
; then
9129 echo "#include \"$subdir/lang-options.h\"" >>options.h
9130 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9132 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9133 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9134 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9138 # These (without "all_") are set in each config-lang.in.
9139 # `language' must be a single word so is spelled singularly.
9145 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
9146 # List of language makefile fragments.
9151 # Add the language fragments.
9152 # Languages are added via two mechanisms. Some information must be
9153 # recorded in makefile variables, these are defined in config-lang.in.
9154 # We accumulate them and plug them into the main Makefile.
9155 # The other mechanism is a set of hooks for each of the main targets
9156 # like `clean', `install', etc.
9158 language_fragments
="Make-lang"
9159 language_hooks
="Make-hooks"
9162 for s
in ..
$subdirs
9174 .
${srcdir}/$s/config-lang.
in
9175 if test "x$language" = x
9177 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9180 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9181 all_languages
="$all_languages $language"
9182 if test "x$boot_language" = xyes
9184 all_boot_languages
="$all_boot_languages $language"
9186 all_compilers
="$all_compilers $compilers"
9187 all_stagestuff
="$all_stagestuff $stagestuff"
9188 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9189 all_headers
="$all_headers $headers"
9190 all_outputs
="$all_outputs $outputs"
9191 if test x
$outputs = x
9193 oldstyle_subdirs
="$oldstyle_subdirs $s"
9195 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9199 # Since we can't use `::' targets, we link each language in
9200 # with a set of hooks, reached indirectly via lang.${target}.
9204 target_list
="all.build all.cross start.encap rest.encap \
9206 install-normal install-common install-info install-man \
9208 mostlyclean clean distclean extraclean maintainer-clean \
9209 stage1 stage2 stage3 stage4"
9210 for t
in $target_list
9213 for lang
in ..
$all_languages
9215 if test $lang != ".."; then
9219 echo "lang.$t: $x" >> Make-hooks
9222 # If we're not building in srcdir, create .gdbinit.
9224 if test ! -f Makefile.
in; then
9225 echo "dir ." > .gdbinit
9226 echo "dir ${srcdir}" >> .gdbinit
9227 if test x
$gdb_needs_out_file_path = xyes
9229 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9231 if test "x$subdirs" != x
; then
9234 echo "dir ${srcdir}/$s" >> .gdbinit
9237 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9240 # Define variables host_canonical and build_canonical
9241 # because some Cygnus local changes in the Makefile depend on them.
9242 build_canonical
=${build}
9243 host_canonical
=${host}
9245 if test "${host}" != "${target}" ; then
9246 target_subdir
=${target}/
9252 # If this is using newlib, then define inhibit_libc in
9253 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9254 # libgcc.a, but that's OK because newib should have its own version of
9257 if test x
$with_newlib = xyes
; then
9258 inhibit_libc
=-Dinhibit_libc
9262 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9263 # absolute path for gcc_tooldir based on inserting the number of up-directory
9264 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9265 # $(libsubdir)/@(unlibsubdir) based path.
9266 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9267 # make and thus we'd get different behavior depending on where we built the
9269 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9270 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9272 # An explanation of the sed strings:
9273 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9274 # -e 's|/$||' match a trailing forward slash and eliminates it
9275 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9276 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9278 # (*) Note this pattern overwrites the first character of the string
9279 # with a forward slash if one is not already present. This is not a
9280 # problem because the exact names of the sub-directories concerned is
9281 # unimportant, just the number of them matters.
9283 # The practical upshot of these patterns is like this:
9285 # prefix exec_prefix result
9286 # ------ ----------- ------
9288 # /foo/ /foo/bar ../
9289 # /foo /foo/bar/ ../
9290 # /foo/ /foo/bar/ ../
9291 # /foo /foo/bar/ugg ../../
9294 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9299 # Nothing to do for FLOAT_H, float_format already handled.
9303 # Process the language and host/target makefile fragments.
9304 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9306 # Substitute configuration variables
9366 # Echo that links are built
9367 if test x
$host = x
$target
9375 if test x
$host != x
$build
9377 str3
=" on a $build system"
9380 if test "x$str2" != x ||
test "x$str3" != x
9385 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9387 if test "x$str2" != x ||
test "x$str3" != x
9389 echo " ${str2}${str3}." 1>&2
9392 # Truncate the target if necessary
9393 if test x
$host_truncate_target != x
; then
9394 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9397 # Configure the subdirectories
9398 # AC_CONFIG_SUBDIRS($subdirs)
9400 # Create the Makefile
9401 # and configure language subdirectories
9403 cat > confcache
<<\EOF
9404 # This file is a shell script that caches the results of configure
9405 # tests run on this system so they can be shared between configure
9406 # scripts and configure runs. It is not useful on other systems.
9407 # If it contains results you don't want to keep, you may remove or edit it.
9409 # By default, configure uses ./config.cache as the cache file,
9410 # creating it if it does not exist already. You can give configure
9411 # the --cache-file=FILE option to use a different cache file; that is
9412 # what configure does when it calls configure scripts in
9413 # subdirectories, so they share the cache.
9414 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9415 # config.status only pays attention to the cache file if you give it the
9416 # --recheck option to rerun configure.
9419 # The following way of writing the cache mishandles newlines in values,
9420 # but we know of no workaround that is simple, portable, and efficient.
9421 # So, don't put newlines in cache variables' values.
9422 # Ultrix sh set writes to stderr and can't be redirected directly,
9423 # and sets the high bit in the cache file unless we assign to the vars.
9425 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9427 # `set' does not quote correctly, so add quotes (double-quote substitution
9428 # turns \\\\ into \\, and sed turns \\ into \).
9430 -e "s/'/'\\\\''/g" \
9431 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9434 # `set' quotes correctly as required by POSIX, so do not add quotes.
9435 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9438 if cmp -s $cache_file confcache
; then
9441 if test -w $cache_file; then
9442 echo "updating cache $cache_file"
9443 cat confcache
> $cache_file
9445 echo "not updating unwritable cache $cache_file"
9450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9452 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9453 # Let make expand exec_prefix.
9454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9456 # Any assignment to VPATH causes Sun make to only execute
9457 # the first set of double-colon rules, so remove it if not needed.
9458 # If there is a colon in the path, we need to keep it.
9459 if test "x$srcdir" = x.
; then
9460 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9463 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9465 DEFS
=-DHAVE_CONFIG_H
9467 # Without the "./", some shells look in PATH for config.status.
9468 : ${CONFIG_STATUS=./config.status}
9470 echo creating
$CONFIG_STATUS
9471 rm -f $CONFIG_STATUS
9472 cat > $CONFIG_STATUS <<EOF
9474 # Generated automatically by configure.
9475 # Run this file to recreate the current configuration.
9476 # This directory was configured as follows,
9477 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9479 # $0 $ac_configure_args
9481 # Compiler output produced by configure, useful for debugging
9482 # configure, is in ./config.log if it exists.
9484 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9487 case "\$ac_option" in
9488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9489 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9490 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9491 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9492 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9494 -help | --help | --hel | --he | --h)
9495 echo "\$ac_cs_usage"; exit 0 ;;
9496 *) echo "\$ac_cs_usage"; exit 1 ;;
9500 ac_given_srcdir=$srcdir
9502 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9504 cat >> $CONFIG_STATUS <<EOF
9506 # Protect against being on the right side of a sed subst in config.status.
9507 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9508 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9512 s%@CFLAGS@%$CFLAGS%g
9513 s%@CPPFLAGS@%$CPPFLAGS%g
9514 s%@CXXFLAGS@%$CXXFLAGS%g
9515 s%@FFLAGS@%$FFLAGS%g
9517 s%@LDFLAGS@%$LDFLAGS%g
9519 s%@exec_prefix@%$exec_prefix%g
9520 s%@prefix@%$prefix%g
9521 s%@program_transform_name@%$program_transform_name%g
9522 s%@bindir@%$bindir%g
9523 s%@sbindir@%$sbindir%g
9524 s%@libexecdir@%$libexecdir%g
9525 s%@datadir@%$datadir%g
9526 s%@sysconfdir@%$sysconfdir%g
9527 s%@sharedstatedir@%$sharedstatedir%g
9528 s%@localstatedir@%$localstatedir%g
9529 s%@libdir@%$libdir%g
9530 s%@includedir@%$includedir%g
9531 s%@oldincludedir@%$oldincludedir%g
9532 s%@infodir@%$infodir%g
9533 s%@mandir@%$mandir%g
9535 s%@host_alias@%$host_alias%g
9536 s%@host_cpu@%$host_cpu%g
9537 s%@host_vendor@%$host_vendor%g
9538 s%@host_os@%$host_os%g
9539 s%@target@%$target%g
9540 s%@target_alias@%$target_alias%g
9541 s%@target_cpu@%$target_cpu%g
9542 s%@target_vendor@%$target_vendor%g
9543 s%@target_os@%$target_os%g
9545 s%@build_alias@%$build_alias%g
9546 s%@build_cpu@%$build_cpu%g
9547 s%@build_vendor@%$build_vendor%g
9548 s%@build_os@%$build_os%g
9550 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9551 s%@SET_MAKE@%$SET_MAKE%g
9554 s%@LEXLIB@%$LEXLIB%g
9557 s%@RANLIB@%$RANLIB%g
9559 s%@INSTALL@%$INSTALL%g
9560 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9561 s%@INSTALL_DATA@%$INSTALL_DATA%g
9564 s%@vfprintf@%$vfprintf%g
9565 s%@doprint@%$doprint%g
9566 s%@manext@%$manext%g
9567 s%@objext@%$objext%g
9568 s%@PACKAGE@%$PACKAGE%g
9569 s%@VERSION@%$VERSION%g
9570 s%@ALLOCA@%$ALLOCA%g
9571 s%@USE_NLS@%$USE_NLS%g
9572 s%@MSGFMT@%$MSGFMT%g
9573 s%@GMSGFMT@%$GMSGFMT%g
9574 s%@XGETTEXT@%$XGETTEXT%g
9575 s%@GENCAT@%$GENCAT%g
9576 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9577 s%@CATALOGS@%$CATALOGS%g
9578 s%@CATOBJEXT@%$CATOBJEXT%g
9579 s%@DATADIRNAME@%$DATADIRNAME%g
9580 s%@GMOFILES@%$GMOFILES%g
9581 s%@INSTOBJEXT@%$INSTOBJEXT%g
9582 s%@INTLDEPS@%$INTLDEPS%g
9583 s%@INTLLIBS@%$INTLLIBS%g
9584 s%@INTLOBJS@%$INTLOBJS%g
9585 s%@POFILES@%$POFILES%g
9587 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9589 s%@GT_YES@%$GT_YES%g
9590 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9592 s%@gthread_flags@%$gthread_flags%g
9594 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9595 s%@build_canonical@%$build_canonical%g
9596 s%@host_canonical@%$host_canonical%g
9597 s%@target_subdir@%$target_subdir%g
9598 s%@inhibit_libc@%$inhibit_libc%g
9599 s%@gcc_tooldir@%$gcc_tooldir%g
9600 s%@dollar@%$dollar%g
9601 s%@objdir@%$objdir%g
9602 s%@subdirs@%$subdirs%g
9603 s%@all_boot_languages@%$all_boot_languages%g
9604 s%@all_compilers@%$all_compilers%g
9605 s%@all_diff_excludes@%$all_diff_excludes%g
9606 s%@all_headers@%$all_headers%g
9607 s%@all_lang_makefiles@%$all_lang_makefiles%g
9608 s%@all_languages@%$all_languages%g
9609 s%@all_lib2funcs@%$all_lib2funcs%g
9610 s%@all_stagestuff@%$all_stagestuff%g
9611 s%@build_exeext@%$build_exeext%g
9612 s%@build_install_headers_dir@%$build_install_headers_dir%g
9613 s%@build_xm_file_list@%$build_xm_file_list%g
9614 s%@cc_set_by_configure@%$cc_set_by_configure%g
9615 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9616 s%@cpp_install_dir@%$cpp_install_dir%g
9617 s%@cpp_main@%$cpp_main%g
9618 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9619 s%@dep_tmake_file@%$dep_tmake_file%g
9620 s%@extra_c_flags@%$extra_c_flags%g
9621 s%@extra_c_objs@%$extra_c_objs%g
9622 s%@extra_cpp_objs@%$extra_cpp_objs%g
9623 s%@extra_cxx_objs@%$extra_cxx_objs%g
9624 s%@extra_headers_list@%$extra_headers_list%g
9625 s%@extra_objs@%$extra_objs%g
9626 s%@extra_parts@%$extra_parts%g
9627 s%@extra_passes@%$extra_passes%g
9628 s%@extra_programs@%$extra_programs%g
9629 s%@float_h_file@%$float_h_file%g
9630 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9631 s%@gcc_version@%$gcc_version%g
9632 s%@gcc_version_trigger@%$gcc_version_trigger%g
9633 s%@host_exeext@%$host_exeext%g
9634 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9635 s%@host_xm_file_list@%$host_xm_file_list%g
9636 s%@install@%$install%g
9637 s%@lang_options_files@%$lang_options_files%g
9638 s%@lang_specs_files@%$lang_specs_files%g
9639 s%@lang_tree_files@%$lang_tree_files%g
9640 s%@local_prefix@%$local_prefix%g
9641 s%@maybe_use_collect2@%$maybe_use_collect2%g
9642 s%@md_file@%$md_file%g
9643 s%@objc_boehm_gc@%$objc_boehm_gc%g
9644 s%@out_file@%$out_file%g
9645 s%@out_object_file@%$out_object_file%g
9646 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9647 s%@symbolic_link@%$symbolic_link%g
9648 s%@thread_file@%$thread_file%g
9649 s%@tm_file_list@%$tm_file_list%g
9650 s%@will_use_collect2@%$will_use_collect2%g
9651 /@target_overrides@/r $target_overrides
9652 s%@target_overrides@%%g
9653 /@host_overrides@/r $host_overrides
9654 s%@host_overrides@%%g
9655 s%@cross_defines@%$cross_defines%g
9656 /@cross_overrides@/r $cross_overrides
9657 s%@cross_overrides@%%g
9658 /@build_overrides@/r $build_overrides
9659 s%@build_overrides@%%g
9660 /@language_fragments@/r $language_fragments
9661 s%@language_fragments@%%g
9662 /@language_hooks@/r $language_hooks
9663 s%@language_hooks@%%g
9668 cat >> $CONFIG_STATUS <<\EOF
9670 # Split the substitutions into bite-sized pieces for seds with
9671 # small command number limits, like on Digital OSF/1 and HP-UX.
9672 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9673 ac_file
=1 # Number of current file.
9674 ac_beg
=1 # First line for current file.
9675 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9678 while $ac_more_lines; do
9679 if test $ac_beg -gt 1; then
9680 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9682 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9684 if test ! -s conftest.s
$ac_file; then
9686 rm -f conftest.s
$ac_file
9688 if test -z "$ac_sed_cmds"; then
9689 ac_sed_cmds
="sed -f conftest.s$ac_file"
9691 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9693 ac_file
=`expr $ac_file + 1`
9695 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9698 if test -z "$ac_sed_cmds"; then
9703 cat >> $CONFIG_STATUS <<EOF
9705 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9707 cat >> $CONFIG_STATUS <<\EOF
9708 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9711 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9712 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9713 *) ac_file_in
="${ac_file}.in" ;;
9716 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9718 # Remove last slash and all that follows it. Not all systems have dirname.
9719 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9720 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9721 # The file is in a subdirectory.
9722 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9723 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9724 # A "../" for each directory in $ac_dir_suffix.
9725 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9727 ac_dir_suffix
= ac_dots
=
9730 case "$ac_given_srcdir" in
9732 if test -z "$ac_dots"; then top_srcdir
=.
9733 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9734 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9736 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9737 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9741 echo creating
"$ac_file"
9743 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9745 *Makefile
*) ac_comsub
="1i\\
9746 # $configure_input" ;;
9750 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9752 s%@configure_input@%$configure_input%g
9753 s%@srcdir@%$srcdir%g
9754 s%@top_srcdir@%$top_srcdir%g
9755 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9762 # ac_d sets the value in "#define NAME VALUE" lines.
9763 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9764 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9767 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9768 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9769 ac_uB
='\([ ]\)%\1#\2define\3'
9772 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9773 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9774 ac_eB
='$%\1#\2define\3'
9778 if test "${CONFIG_HEADERS+set}" != set; then
9780 cat >> $CONFIG_STATUS <<EOF
9781 CONFIG_HEADERS="auto-host.h:config.in"
9783 cat >> $CONFIG_STATUS <<\EOF
9785 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9788 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9789 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9790 *) ac_file_in
="${ac_file}.in" ;;
9793 echo creating
$ac_file
9795 rm -f conftest.frag conftest.
in conftest.out
9796 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9797 cat $ac_file_inputs > conftest.
in
9801 # Transform confdefs.h into a sed script conftest.vals that substitutes
9802 # the proper values into config.h.in to produce config.h. And first:
9803 # Protect against being on the right side of a sed subst in config.status.
9804 # Protect against being in an unquoted here document in config.status.
9806 cat > conftest.hdr
<<\EOF
9809 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9813 sed -n -f conftest.hdr confdefs.h > conftest.vals
9816 # This sed command replaces #undef with comments. This is necessary, for
9817 # example, in the case of _POSIX_SOURCE, which is predefined and required
9818 # on some systems where configure will not decide to define it.
9819 cat >> conftest.vals <<\EOF
9820 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9823 # Break up conftest.vals because some shells have a limit on
9824 # the size of here documents, and old seds have small limits too.
9829 ac_lines=`grep -c . conftest.vals
`
9830 # grep -c gives empty output for an empty file on some AIX systems.
9831 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9832 # Write a limited-size here document to conftest.frag.
9833 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9834 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9836 sed -f conftest.frag conftest.in > conftest.out
9838 mv conftest.out conftest.in
9840 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9842 mv conftest.tail conftest.vals
9846 cat >> $CONFIG_STATUS <<\EOF
9847 rm -f conftest.frag conftest.h
9848 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9849 cat conftest.in >> conftest.h
9851 if cmp -s $ac_file conftest.h 2>/dev/null; then
9852 echo "$ac_file is unchanged"
9855 # Remove last slash and all that follows it. Not all systems have dirname.
9856 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9857 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9858 # The file is in a subdirectory.
9859 test ! -d "$ac_dir" && mkdir "$ac_dir"
9862 mv conftest.h $ac_file
9868 cat >> $CONFIG_STATUS <<EOF
9869 ac_sources="$nls_cv_header_libgt"
9870 ac_dests="$nls_cv_header_intl"
9873 cat >> $CONFIG_STATUS <<\EOF
9874 srcdir=$ac_given_srcdir
9875 while test -n "$ac_sources"; do
9876 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9877 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9879 echo "linking $srcdir/$ac_source to $ac_dest"
9881 if test ! -r $srcdir/$ac_source; then
9882 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9886 # Make relative symlinks.
9887 # Remove last slash and all that follows it. Not all systems have dirname.
9888 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9889 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9890 # The dest file is in a subdirectory.
9891 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9892 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9893 # A "../" for each directory in $ac_dest_dir_suffix.
9894 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9896 ac_dest_dir_suffix= ac_dots=
9900 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9901 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9904 # Make a symlink if possible; otherwise try a hard link.
9905 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9906 ln $srcdir/$ac_source $ac_dest; then :
9908 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9912 cat >> $CONFIG_STATUS <<EOF
9918 target_alias='${target_alias}'
9920 subdirs='${subdirs}'
9921 oldstyle_subdirs='${oldstyle_subdirs}'
9922 symbolic_link='${symbolic_link}'
9923 program_transform_set='${program_transform_set}'
9924 program_transform_name='${program_transform_name}'
9925 dep_host_xmake_file='${dep_host_xmake_file}'
9926 host_xmake_file='${host_xmake_file}'
9927 dep_tmake_file='${dep_tmake_file}'
9928 tmake_file='${tmake_file}'
9929 thread_file='${thread_file}'
9930 gcc_version='${gcc_version}'
9931 gcc_version_trigger='${gcc_version_trigger}'
9932 local_prefix='${local_prefix}'
9933 build_install_headers_dir='${build_install_headers_dir}'
9934 build_exeext='${build_exeext}'
9935 host_exeext='${host_exeext}'
9936 out_file='${out_file}'
9937 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9938 SET_MAKE='${SET_MAKE}'
9939 target_list='${target_list}'
9940 target_overrides='${target_overrides}'
9941 host_overrides='${host_overrides}'
9942 cross_defines='${cross_defines}'
9943 cross_overrides='${cross_overrides}'
9944 build_overrides='${build_overrides}'
9945 cpp_install_dir='${cpp_install_dir}'
9948 cat >> $CONFIG_STATUS <<\EOF
9949 case "$CONFIG_FILES" in *po/Makefile.in*)
9950 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9953 . $srcdir/configure.lang
9954 case x$CONFIG_HEADERS in
9955 xauto-host.h:config.in)
9958 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9959 # bootstrapping and the installation procedure can still use
9960 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9961 # FLAGS_TO_PASS has been modified to solve the problem there.
9962 # This is virtually a duplicate of what happens in configure.lang; we do
9963 # an extra check to make sure this only happens if ln -s can be used.
9964 if test "$symbolic_link" = "ln -s"; then
9965 for d in .. ${subdirs} ; do
9966 if test $d != ..; then
9969 for t in stage1 stage2 stage3 stage4 include
9972 $symbolic_link ../$t $t 2>/dev/null
9978 # Avoid having to add intl to our include paths.
9979 if test -f intl/libintl.h; then
9980 echo creating libintl.h
9981 echo '#include "intl/libintl.h"' >libintl.h
9986 chmod +x $CONFIG_STATUS
9987 rm -fr confdefs* $ac_clean_files
9988 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1