3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --disable-cpplib use the old isolated C preprocessor."
46 --enable-c-mbchar Enable multibyte characters for C and C++."
48 --enable-threads enable thread usage for target GCC.
49 --enable-threads=LIB use LIB thread package for target GCC."
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime."
54 --with-dwarf2 force the default debug format to be DWARF2."
56 --enable-nls use Native Language Support (disabled by default)"
58 --disable-nls do not use Native Language Support"
60 --with-included-gettext use the GNU gettext library included here"
62 --with-catgets use catgets functions if available"
64 --disable-win32-registry
65 Disable lookup of installation paths in the
66 Registry on Windows hosts.
67 --enable-win32-registry Enable registry lookup (default).
68 --enable-win32-registry=KEY
69 Use KEY instead of GCC version as the last portion
72 --with-gc={simple,page} Choose the garbage collection mechanism to use
76 select the new abi for g++. You must select an ABI
77 at configuration time, so that the correct runtime
78 support is built. You cannot mix ABIs."
81 enable libstdc++-v3 for building and installation"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
120 SHELL
=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
146 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
147 bindir
="$ac_optarg" ;;
149 -build |
--build |
--buil |
--bui |
--bu)
151 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
152 build
="$ac_optarg" ;;
154 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
155 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
156 ac_prev
=cache_file
;;
157 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
158 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
159 cache_file
="$ac_optarg" ;;
161 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
165 datadir
="$ac_optarg" ;;
167 -disable-* |
--disable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* |
--enable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
191 |
--exec |
--exe |
--ex)
192 ac_prev
=exec_prefix
;;
193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
195 |
--exec=* |
--exe=* |
--ex=*)
196 exec_prefix
="$ac_optarg" ;;
198 -gas |
--gas |
--ga |
--g)
199 # Obsolete; use --with-gas.
202 -help |
--help |
--hel |
--he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host |
--host |
--hos |
--ho)
259 -host=* |
--host=* |
--hos=* |
--ho=*)
262 -includedir |
--includedir |
--includedi |
--included |
--include \
263 |
--includ |
--inclu |
--incl |
--inc)
264 ac_prev
=includedir
;;
265 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
266 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
267 includedir
="$ac_optarg" ;;
269 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
271 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
272 infodir
="$ac_optarg" ;;
274 -libdir |
--libdir |
--libdi |
--libd)
276 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
277 libdir
="$ac_optarg" ;;
279 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
280 |
--libexe |
--libex |
--libe)
281 ac_prev
=libexecdir
;;
282 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
283 |
--libexe=* |
--libex=* |
--libe=*)
284 libexecdir
="$ac_optarg" ;;
286 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
287 |
--localstate |
--localstat |
--localsta |
--localst \
288 |
--locals |
--local |
--loca |
--loc |
--lo)
289 ac_prev
=localstatedir
;;
290 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
291 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
292 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
293 localstatedir
="$ac_optarg" ;;
295 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
297 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
298 mandir
="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
308 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
309 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
312 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
313 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
314 |
--oldin |
--oldi |
--old |
--ol |
--o)
315 ac_prev
=oldincludedir
;;
316 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
317 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
318 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
319 oldincludedir
="$ac_optarg" ;;
321 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
323 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
324 prefix
="$ac_optarg" ;;
326 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
327 |
--program-pre |
--program-pr |
--program-p)
328 ac_prev
=program_prefix
;;
329 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
330 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
331 program_prefix
="$ac_optarg" ;;
333 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
334 |
--program-suf |
--program-su |
--program-s)
335 ac_prev
=program_suffix
;;
336 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
337 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
338 program_suffix
="$ac_optarg" ;;
340 -program-transform-name |
--program-transform-name \
341 |
--program-transform-nam |
--program-transform-na \
342 |
--program-transform-n |
--program-transform- \
343 |
--program-transform |
--program-transfor \
344 |
--program-transfo |
--program-transf \
345 |
--program-trans |
--program-tran \
346 |
--progr-tra |
--program-tr |
--program-t)
347 ac_prev
=program_transform_name
;;
348 -program-transform-name=* |
--program-transform-name=* \
349 |
--program-transform-nam=* |
--program-transform-na=* \
350 |
--program-transform-n=* |
--program-transform-=* \
351 |
--program-transform=* |
--program-transfor=* \
352 |
--program-transfo=* |
--program-transf=* \
353 |
--program-trans=* |
--program-tran=* \
354 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
355 program_transform_name
="$ac_optarg" ;;
357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
358 |
-silent |
--silent |
--silen |
--sile |
--sil)
361 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
363 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
365 sbindir
="$ac_optarg" ;;
367 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
368 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
369 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
371 ac_prev
=sharedstatedir
;;
372 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
373 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
374 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
376 sharedstatedir
="$ac_optarg" ;;
378 -site |
--site |
--sit)
380 -site=* |
--site=* |
--sit=*)
383 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
385 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
386 srcdir
="$ac_optarg" ;;
388 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
389 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
390 ac_prev
=sysconfdir
;;
391 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
392 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
393 sysconfdir
="$ac_optarg" ;;
395 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
397 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
398 target
="$ac_optarg" ;;
400 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
403 -version |
--version |
--versio |
--versi |
--vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* |
--without-*)
421 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
434 |
--x-incl |
--x-inc |
--x-in |
--x-i)
435 ac_prev
=x_includes
;;
436 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
437 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
438 x_includes
="$ac_optarg" ;;
440 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
441 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
442 ac_prev
=x_libraries
;;
443 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
444 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
445 x_libraries
="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE
; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
496 |
--no-cr |
--no-c) ;;
497 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
498 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
499 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest
* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file
=tree.c
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted
=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted
=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE
; then
550 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file
in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp
='$CPP $CPPFLAGS'
573 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling
=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
588 ac_n
= ac_c
='\c' ac_t
=
596 symbolic_link
='ln -s'
599 # Check for bogus environment variables.
600 # Test if LIBRARY_PATH contains the notation for the current directory
601 # since this would lead to problems installing/building glibc.
602 # LIBRARY_PATH contains the current directory if one of the following
604 # - one of the terminals (":" and ";") is the first or last sign
605 # - two terminals occur directly after each other
606 # - the path contains an element with a dot in it
607 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
608 echo "configure:609: checking LIBRARY_PATH variable" >&5
609 case ${LIBRARY_PATH} in
610 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
611 library_path_setting
="contains current directory"
614 library_path_setting
="ok"
617 echo "$ac_t""$library_path_setting" 1>&6
618 if test "$library_path_setting" != "ok"; then
619 { echo "configure: error:
620 *** LIBRARY_PATH shouldn't contain the current directory when
621 *** building gcc. Please change the environment variable
622 *** and run configure again." 1>&2; exit 1; }
625 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
626 # since this would lead to problems installing/building glibc.
627 # GCC_EXEC_PREFIX contains the current directory if one of the following
629 # - one of the terminals (":" and ";") is the first or last sign
630 # - two terminals occur directly after each other
631 # - the path contains an element with a dot in it
632 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
633 echo "configure:634: checking GCC_EXEC_PREFIX variable" >&5
634 case ${GCC_EXEC_PREFIX} in
635 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
636 gcc_exec_prefix_setting
="contains current directory"
639 gcc_exec_prefix_setting
="ok"
642 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
643 if test "$gcc_exec_prefix_setting" != "ok"; then
644 { echo "configure: error:
645 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
646 *** building gcc. Please change the environment variable
647 *** and run configure again." 1>&2; exit 1; }
650 # Check for additional parameters
653 # Check whether --with-gnu-ld or --without-gnu-ld was given.
654 if test "${with_gnu_ld+set}" = set; then
655 withval
="$with_gnu_ld"
656 gnu_ld_flag
="$with_gnu_ld"
662 # With pre-defined ld
663 # Check whether --with-ld or --without-ld was given.
664 if test "${with_ld+set}" = set; then
666 DEFAULT_LINKER
="$with_ld"
669 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
670 if test ! -x "$DEFAULT_LINKER"; then
671 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
672 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
675 cat >> confdefs.h
<<EOF
676 #define DEFAULT_LINKER "$DEFAULT_LINKER"
682 # Check whether --with-gnu-as or --without-gnu-as was given.
683 if test "${with_gnu_as+set}" = set; then
684 withval
="$with_gnu_as"
685 gas_flag
="$with_gnu_as"
691 # Check whether --with-as or --without-as was given.
692 if test "${with_as+set}" = set; then
694 DEFAULT_ASSEMBLER
="$with_as"
697 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
698 if test ! -x "$DEFAULT_ASSEMBLER"; then
699 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
700 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
703 cat >> confdefs.h
<<EOF
704 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
710 # Check whether --with-stabs or --without-stabs was given.
711 if test "${with_stabs+set}" = set; then
712 withval
="$with_stabs"
720 # Check whether --with-elf or --without-elf was given.
721 if test "${with_elf+set}" = set; then
729 # Specify the local prefix
731 # Check whether --with-local-prefix or --without-local-prefix was given.
732 if test "${with_local_prefix+set}" = set; then
733 withval
="$with_local_prefix"
735 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
737 *) local_prefix
=$with_local_prefix ;;
742 # Default local prefix if it is empty
743 if test x
$local_prefix = x
; then
744 local_prefix
=/usr
/local
747 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
748 # passed in by the toplevel make and thus we'd get different behavior
749 # depending on where we built the sources.
751 # Specify the g++ header file directory
752 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
753 if test "${with_gxx_include_dir+set}" = set; then
754 withval
="$with_gxx_include_dir"
756 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
758 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
763 if test x
${gcc_gxx_include_dir} = x
; then
764 if test x
${enable_version_specific_runtime_libs} = xyes
; then
765 gcc_gxx_include_dir
='${libsubdir}/include/g++'
767 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
768 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
772 # Enable expensive internal checks
773 # Check whether --enable-checking or --disable-checking was given.
774 if test "${enable_checking+set}" = set; then
775 enableval
="$enable_checking"
776 case "${enableval}" in
777 yes) cat >> confdefs.h
<<\EOF
778 #define ENABLE_CHECKING 1
781 cat >> confdefs.h
<<\EOF
782 #define ENABLE_TREE_CHECKING 1
785 cat >> confdefs.h
<<\EOF
786 #define ENABLE_RTL_CHECKING 1
790 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) cat >> confdefs.h
<<\EOF
797 #define ENABLE_CHECKING 1
800 tree
) cat >> confdefs.h
<<\EOF
801 #define ENABLE_TREE_CHECKING 1
804 rtl
) cat >> confdefs.h
<<\EOF
805 #define ENABLE_RTL_CHECKING 1
808 gc
) cat >> confdefs.h
<<\EOF
809 #define ENABLE_GC_CHECKING 1
812 gcac
) cat >> confdefs.h
<<\EOF
813 #define ENABLE_GC_ALWAYS_COLLECT 1
816 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Check whether --enable-cpp or --disable-cpp was given.
825 if test "${enable_cpp+set}" = set; then
826 enableval
="$enable_cpp"
833 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
834 if test "${with_cpp_install_dir+set}" = set; then
835 withval
="$with_cpp_install_dir"
836 if test x
$withval = xyes
; then
837 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
838 elif test x
$withval != xno
; then
839 cpp_install_dir
=$withval
844 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
846 # Check whether --enable-cpplib or --disable-cpplib was given.
847 if test "${enable_cpplib+set}" = set; then
848 enableval
="$enable_cpplib"
849 if test x
$enable_cpplib = xno
; then
856 # Enable Multibyte Characters for C/C++
857 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
858 if test "${enable_c_mbchar+set}" = set; then
859 enableval
="$enable_c_mbchar"
860 if test x
$enable_c_mbchar != xno
; then
861 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
867 # Pass with no value to take the default
868 # Pass with a value to specify a thread package
869 # Check whether --enable-threads or --disable-threads was given.
870 if test "${enable_threads+set}" = set; then
871 enableval
="$enable_threads"
872 if test x
$enable_threads = xno
; then
880 enable_threads_flag
=$enable_threads
881 # Check if a valid thread package
882 case x
${enable_threads_flag} in
885 target_thread_file
='single'
889 target_thread_file
=''
891 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
892 xsolaris | xwin32 | xdce | xvxworks
)
893 target_thread_file
=$enable_threads_flag
896 echo "$enable_threads is an unknown thread package" 1>&2
901 # Check whether --enable-objc-gc or --disable-objc-gc was given.
902 if test "${enable_objc_gc+set}" = set; then
903 enableval
="$enable_objc_gc"
904 if test x
$enable_objc_gc = xno
; then
914 # Check whether --with-dwarf2 or --without-dwarf2 was given.
915 if test "${with_dwarf2+set}" = set; then
916 withval
="$with_dwarf2"
917 dwarf2
="$with_dwarf2"
923 # Determine the host, build, and target systems
925 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
926 if test -f $ac_dir/install-sh
; then
928 ac_install_sh
="$ac_aux_dir/install-sh -c"
930 elif test -f $ac_dir/install.sh
; then
932 ac_install_sh
="$ac_aux_dir/install.sh -c"
936 if test -z "$ac_aux_dir"; then
937 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
939 ac_config_guess
=$ac_aux_dir/config.guess
940 ac_config_sub
=$ac_aux_dir/config.sub
941 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
944 # Do some error checking and defaulting for the host and target type.
946 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
949 # 1. You are not allowed to specify --host, --target, and nonopt at the
951 # 2. Host defaults to nonopt.
952 # 3. If nonopt is not specified, then host defaults to the current host,
953 # as determined by config.guess.
954 # 4. Target and build default to nonopt.
955 # 5. If nonopt is not specified, then target and build default to host.
957 # The aliases save the names the user supplied, while $host etc.
958 # will get canonicalized.
959 case $host---$target---$nonopt in
960 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
961 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
965 # Make sure we can run config.sub.
966 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
967 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
970 echo $ac_n "checking host system type""... $ac_c" 1>&6
971 echo "configure:972: checking host system type" >&5
974 case "$host_alias" in
978 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
979 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
981 *) host_alias
=$nonopt ;;
985 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
986 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$host" 1>&6
991 echo $ac_n "checking target system type""... $ac_c" 1>&6
992 echo "configure:993: checking target system type" >&5
995 case "$target_alias" in
998 NONE
) target_alias
=$host_alias ;;
999 *) target_alias
=$nonopt ;;
1003 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1004 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$target" 1>&6
1009 echo $ac_n "checking build system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking build system type" >&5
1013 case "$build_alias" in
1016 NONE
) build_alias
=$host_alias ;;
1017 *) build_alias
=$nonopt ;;
1021 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1022 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$build" 1>&6
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix
=${target_alias}-
1033 # Find the native compiler
1034 # Extract the first word of "gcc", so it can be a program name with args.
1035 set dummy gcc
; ac_word
=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC
="$CC" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1046 for ac_dir
in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1060 echo "$ac_t""no" 1>&6
1063 if test -z "$CC"; then
1064 # Extract the first word of "cc", so it can be a program name with args.
1065 set dummy cc
; ac_word
=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$CC"; then
1072 ac_cv_prog_CC
="$CC" # Let the user override the test.
1074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1080 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1081 ac_prog_rejected
=yes
1089 if test $ac_prog_rejected = yes; then
1090 # We found a bogon in the path, so make sure we never use it.
1091 set dummy
$ac_cv_prog_CC
1093 if test $# -gt 0; then
1094 # We chose a different compiler from the bogus one.
1095 # However, it has the same basename, so the bogon will be chosen
1096 # first if we set CC to just the basename; use the full file name.
1098 set dummy
"$ac_dir/$ac_word" "$@"
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 case "`uname -s`" in
1115 # Extract the first word of "cl", so it can be a program name with args.
1116 set dummy cl
; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$CC"; then
1123 ac_cv_prog_CC
="$CC" # Let the user override the test.
1125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1127 for ac_dir
in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir
=.
1129 if test -f $ac_dir/$ac_word; then
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1146 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1149 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154 ac_cpp
='$CPP $CPPFLAGS'
1155 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157 cross_compiling
=$ac_cv_prog_cc_cross
1159 cat > conftest.
$ac_ext << EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1166 if { (eval echo configure
:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1167 ac_cv_prog_cc_works
=yes
1168 # If we can't run a trivial program, we are probably using a cross compiler.
1169 if (.
/conftest
; exit) 2>/dev
/null
; then
1170 ac_cv_prog_cc_cross
=no
1172 ac_cv_prog_cc_cross
=yes
1175 echo "configure: failed program was:" >&5
1176 cat conftest.
$ac_ext >&5
1177 ac_cv_prog_cc_works
=no
1181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1182 ac_cpp
='$CPP $CPPFLAGS'
1183 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1184 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1185 cross_compiling
=$ac_cv_prog_cc_cross
1187 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1188 if test $ac_cv_prog_cc_works = no
; then
1189 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1191 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1193 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1194 cross_compiling
=$ac_cv_prog_cc_cross
1196 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.c
<<EOF
1206 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1221 ac_test_CFLAGS
="${CFLAGS+set}"
1222 ac_save_CFLAGS
="$CFLAGS"
1224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240 if test "$ac_test_CFLAGS" = set; then
1241 CFLAGS
="$ac_save_CFLAGS"
1242 elif test $ac_cv_prog_cc_g = yes; then
1243 if test "$GCC" = yes; then
1249 if test "$GCC" = yes; then
1256 echo $ac_n "checking for long double""... $ac_c" 1>&6
1257 echo "configure:1258: checking for long double" >&5
1258 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test "$GCC" = yes; then
1262 gcc_cv_c_long_double
=yes
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1269 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1270 long double foo = 0.0;
1271 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1272 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1275 if { (eval echo configure
:1276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277 gcc_cv_c_long_double
=yes
1279 echo "configure: failed program was:" >&5
1280 cat conftest.
$ac_ext >&5
1282 gcc_cv_c_long_double
=no
1288 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1289 if test $gcc_cv_c_long_double = yes; then
1290 cat >> confdefs.h
<<\EOF
1291 #define HAVE_LONG_DOUBLE 1
1297 # If the native compiler is GCC, we can enable warnings even in stage1.
1298 # That's useful for people building cross-compilers, or just running a
1300 if test "x$GCC" = "xyes"; then
1301 stage1_warn_cflags
='$(WARN_CFLAGS)'
1303 stage1_warn_cflags
=""
1307 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ${MAKE-make} sets \${MAKE}" >&5
1309 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftestmake
<<\EOF
1315 @
echo 'ac_maketemp="${MAKE}"'
1317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1318 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1319 if test -n "$ac_maketemp"; then
1320 eval ac_cv_prog_make_
${ac_make}_set
=yes
1322 eval ac_cv_prog_make_
${ac_make}_set
=no
1326 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 SET_MAKE
="MAKE=${MAKE-make}"
1335 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether a default assembler was specified" >&5
1337 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1338 if test x
"$gas_flag" = x
"no"; then
1339 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1341 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether a default linker was specified" >&5
1349 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1350 if test x
"$gnu_ld_flag" = x
"no"; then
1351 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1353 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1356 echo "$ac_t""no" 1>&6
1359 # Find some useful tools
1360 for ac_prog
in gawk mawk nawk
awk
1362 # Extract the first word of "$ac_prog", so it can be a program name with args.
1363 set dummy
$ac_prog; ac_word
=$2
1364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_word" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 if test -n "$AWK"; then
1370 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1374 for ac_dir
in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir
=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_prog_AWK
="$ac_prog"
1384 AWK
="$ac_cv_prog_AWK"
1385 if test -n "$AWK"; then
1386 echo "$ac_t""$AWK" 1>&6
1388 echo "$ac_t""no" 1>&6
1391 test -n "$AWK" && break
1394 # Extract the first word of "flex", so it can be a program name with args.
1395 set dummy flex
; ac_word
=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 if test -n "$LEX"; then
1402 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1404 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1406 for ac_dir
in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir
=.
1408 if test -f $ac_dir/$ac_word; then
1409 ac_cv_prog_LEX
="flex"
1414 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1417 LEX
="$ac_cv_prog_LEX"
1418 if test -n "$LEX"; then
1419 echo "$ac_t""$LEX" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 if test -z "$LEXLIB"
1430 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1431 echo "configure:1432: checking for yywrap in -l$ac_lib" >&5
1432 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 ac_save_LIBS
="$LIBS"
1437 LIBS
="-l$ac_lib $LIBS"
1438 cat > conftest.
$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* Override any gcc2 internal prototype to avoid an error. */
1442 /* We use char because int might match the return type of a gcc2
1443 builtin and then its argument prototype would still apply. */
1450 if { (eval echo configure
:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1452 eval "ac_cv_lib_$ac_lib_var=yes"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.
$ac_ext >&5
1457 eval "ac_cv_lib_$ac_lib_var=no"
1460 LIBS
="$ac_save_LIBS"
1463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1472 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1473 echo "configure:1474: checking whether ln works" >&5
1474 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 rm -f conftestdata_t
1478 echo >conftestdata_f
1479 if ln conftestdata_f conftestdata_t
2>/dev
/null
1483 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1485 gcc_cv_prog_LN
="ln -s"
1490 rm -f conftestdata_f conftestdata_t
1493 LN
="$gcc_cv_prog_LN"
1494 if test "$gcc_cv_prog_LN" = "ln"; then
1495 echo "$ac_t""yes" 1>&6
1497 if test "$gcc_cv_prog_LN" = "ln -s"; then
1498 echo "$ac_t""no, using ln -s" 1>&6
1500 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1504 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether ln -s works" >&5
1506 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 rm -f conftestdata_t
1510 echo >conftestdata_f
1511 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1513 gcc_cv_prog_LN_S
="ln -s"
1515 if ln conftestdata_f conftestdata_t
2>/dev
/null
1522 rm -f conftestdata_f conftestdata_t
1525 LN_S
="$gcc_cv_prog_LN_S"
1526 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1527 echo "$ac_t""yes" 1>&6
1529 if test "$gcc_cv_prog_LN_S" = "ln"; then
1530 echo "$ac_t""no, using ln" 1>&6
1532 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1536 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1537 echo "configure:1538: checking for volatile" >&5
1538 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1549 if { (eval echo configure
:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1551 gcc_cv_c_volatile
=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 gcc_cv_c_volatile
=no
1561 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1562 if test $gcc_cv_c_volatile = yes ; then
1563 cat >> confdefs.h
<<\EOF
1564 #define HAVE_VOLATILE 1
1569 # Extract the first word of "ranlib", so it can be a program name with args.
1570 set dummy ranlib
; ac_word
=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$RANLIB"; then
1577 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1579 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1581 for ac_dir
in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir
=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_prog_RANLIB
="ranlib"
1589 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1592 RANLIB
="$ac_cv_prog_RANLIB"
1593 if test -n "$RANLIB"; then
1594 echo "$ac_t""$RANLIB" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 for ac_prog
in 'bison -y' byacc
1601 # Extract the first word of "$ac_prog", so it can be a program name with args.
1602 set dummy
$ac_prog; ac_word
=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 if test -n "$YACC"; then
1609 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1613 for ac_dir
in $ac_dummy; do
1614 test -z "$ac_dir" && ac_dir
=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_prog_YACC
="$ac_prog"
1623 YACC
="$ac_cv_prog_YACC"
1624 if test -n "$YACC"; then
1625 echo "$ac_t""$YACC" 1>&6
1627 echo "$ac_t""no" 1>&6
1630 test -n "$YACC" && break
1632 test -n "$YACC" || YACC
="yacc"
1634 # Find a good install program. We prefer a C program (faster),
1635 # so one script is as good as another. But avoid the broken or
1636 # incompatible versions:
1637 # SysV /etc/install, /usr/sbin/install
1638 # SunOS /usr/etc/install
1639 # IRIX /sbin/install
1641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1643 # ./install, which can be erroneously created by make from ./install.sh.
1644 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1645 echo "configure:1646: checking for a BSD compatible install" >&5
1646 if test -z "$INSTALL"; then
1647 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1651 for ac_dir
in $PATH; do
1652 # Account for people who put trailing slashes in PATH elements.
1654 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 for ac_prog
in ginstall scoinst
install; do
1658 if test -f $ac_dir/$ac_prog; then
1659 if test $ac_prog = install &&
1660 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1662 # OSF/1 installbsd also uses dspmsg, but is usable.
1665 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1676 if test "${ac_cv_path_install+set}" = set; then
1677 INSTALL
="$ac_cv_path_install"
1679 # As a last resort, use the slow shell script. We don't cache a
1680 # path for INSTALL within a source directory, because that will
1681 # break other packages using the cache if that directory is
1682 # removed, or if the path is relative.
1683 INSTALL
="$ac_install_sh"
1686 echo "$ac_t""$INSTALL" 1>&6
1688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1689 # It thinks the first close brace ends the variable substitution.
1690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1692 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1695 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1696 echo "configure:1697: checking how to run the C preprocessor" >&5
1697 # On Suns, sometimes $CPP names a directory.
1698 if test -n "$CPP" && test -d "$CPP"; then
1701 if test -z "$CPP"; then
1702 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 # This must be in double quotes, not single quotes, because CPP may get
1706 # substituted into the Makefile and "${CC-cc}" will confuse make.
1708 # On the NeXT, cc -E runs the code through the compiler's parser,
1709 # not just through cpp.
1710 cat > conftest.
$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure
:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 CPP
="${CC-cc} -E -traditional-cpp"
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734 { (eval echo configure
:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1736 if test -z "$ac_err"; then
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 CPP
="${CC-cc} -nologo -E"
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1751 { (eval echo configure
:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1753 if test -z "$ac_err"; then
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1767 ac_cv_prog_CPP
="$CPP"
1769 CPP
="$ac_cv_prog_CPP"
1771 ac_cv_prog_CPP
="$CPP"
1773 echo "$ac_t""$CPP" 1>&6
1775 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1776 echo "configure:1777: checking for ANSI C header files" >&5
1777 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789 { (eval echo configure
:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1791 if test -z "$ac_err"; then
1793 ac_cv_header_stdc
=yes
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1799 ac_cv_header_stdc
=no
1803 if test $ac_cv_header_stdc = yes; then
1804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1811 egrep "memchr" >/dev
/null
2>&1; then
1815 ac_cv_header_stdc
=no
1821 if test $ac_cv_header_stdc = yes; then
1822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "free" >/dev
/null
2>&1; then
1833 ac_cv_header_stdc
=no
1839 if test $ac_cv_header_stdc = yes; then
1840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1841 if test "$cross_compiling" = yes; then
1844 cat > conftest.
$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1848 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1849 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1851 int main () { int i; for (i = 0; i < 256; i++)
1852 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1856 if { (eval echo configure
:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 ac_cv_header_stdc
=no
1871 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1872 if test $ac_cv_header_stdc = yes; then
1873 cat >> confdefs.h
<<\EOF
1874 #define STDC_HEADERS 1
1879 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1880 echo "configure:1881: checking whether time.h and sys/time.h may both be included" >&5
1881 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <sys/types.h>
1888 #include <sys/time.h>
1894 if { (eval echo configure
:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1896 ac_cv_header_time
=yes
1898 echo "configure: failed program was:" >&5
1899 cat conftest.
$ac_ext >&5
1901 ac_cv_header_time
=no
1906 echo "$ac_t""$ac_cv_header_time" 1>&6
1907 if test $ac_cv_header_time = yes; then
1908 cat >> confdefs.h
<<\EOF
1909 #define TIME_WITH_SYS_TIME 1
1914 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether string.h and strings.h may both be included" >&5
1916 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 #include <strings.h>
1928 if { (eval echo configure
:1929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1930 gcc_cv_header_string
=yes
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1935 gcc_cv_header_string
=no
1940 echo "$ac_t""$gcc_cv_header_string" 1>&6
1941 if test $gcc_cv_header_string = yes; then
1942 cat >> confdefs.h
<<\EOF
1943 #define STRING_WITH_STRINGS 1
1948 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1949 echo "configure:1950: checking for sys/wait.h that is POSIX.1 compatible" >&5
1950 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.
$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <sys/types.h>
1957 #include <sys/wait.h>
1959 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1962 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1967 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1970 if { (eval echo configure
:1971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1972 ac_cv_header_sys_wait_h
=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 ac_cv_header_sys_wait_h
=no
1982 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1983 if test $ac_cv_header_sys_wait_h = yes; then
1984 cat >> confdefs.h
<<\EOF
1985 #define HAVE_SYS_WAIT_H 1
1990 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1991 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1992 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_hdr" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2011 eval "ac_cv_header_$ac_safe=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 eval "ac_cv_header_$ac_safe=no"
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_hdr 1
2029 echo "$ac_t""no" 1>&6
2034 # Check for thread headers.
2035 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2037 echo "configure:2038: checking for thread.h" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 eval "ac_cv_header_$ac_safe=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "ac_cv_header_$ac_safe=no"
2061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2065 echo "$ac_t""no" 1>&6
2069 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2070 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2071 echo "configure:2072: checking for pthread.h" >&5
2072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #include <pthread.h>
2080 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2081 { (eval echo configure
:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2082 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2083 if test -z "$ac_err"; then
2085 eval "ac_cv_header_$ac_safe=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.
$ac_ext >&5
2091 eval "ac_cv_header_$ac_safe=no"
2095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2099 echo "$ac_t""no" 1>&6
2104 # See if GNAT has been installed
2105 # Extract the first word of "gnatbind", so it can be a program name with args.
2106 set dummy gnatbind
; ac_word
=$2
2107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 if test -n "$gnat"; then
2113 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2115 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2117 for ac_dir
in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir
=.
2119 if test -f $ac_dir/$ac_word; then
2120 ac_cv_prog_gnat
="yes"
2125 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2128 gnat
="$ac_cv_prog_gnat"
2129 if test -n "$gnat"; then
2130 echo "$ac_t""$gnat" 1>&6
2132 echo "$ac_t""no" 1>&6
2136 # See if the stage1 system preprocessor understands the ANSI C
2137 # preprocessor stringification operator.
2140 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2141 echo "configure:2142: checking for preprocessor stringizing operator" >&5
2142 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2151 char *s = x(teststring);
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "#teststring" >/dev
/null
2>&1; then
2157 ac_cv_c_stringize
=no
2160 ac_cv_c_stringize
=yes
2166 if test "${ac_cv_c_stringize}" = yes
2168 cat >> confdefs.h
<<\EOF
2169 #define HAVE_STRINGIZE 1
2173 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2176 # Use <inttypes.h> only if it exists,
2177 # doesn't clash with <sys/types.h>, and declares intmax_t.
2178 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2179 echo "configure:2180: checking for inttypes.h" >&5
2180 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <sys/types.h>
2187 #include <inttypes.h>
2192 if { (eval echo configure
:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2194 gcc_cv_header_inttypes_h
=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 gcc_cv_header_inttypes_h
=no
2204 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2205 if test $gcc_cv_header_inttypes_h = yes; then
2206 cat >> confdefs.h
<<\EOF
2207 #define HAVE_INTTYPES_H 1
2212 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2213 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2214 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2215 fputs_unlocked getrusage valloc
2217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_func" >&5
2219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* System header to define __stub macros and hopefully few prototypes,
2226 which can conflict with char $ac_func(); below. */
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2235 /* The GNU C library defines this for functions which it implements
2236 to always fail with ENOSYS. Some functions are actually named
2237 something starting with __ and the normal name is an alias. */
2238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2246 if { (eval echo configure
:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2248 eval "ac_cv_func_$ac_func=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.
$ac_ext >&5
2253 eval "ac_cv_func_$ac_func=no"
2258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2261 cat >> confdefs.h
<<EOF
2262 #define $ac_tr_func 1
2266 echo "$ac_t""no" 1>&6
2271 # Make sure wchar_t is available
2272 #AC_CHECK_TYPE(wchar_t, unsigned int)
2274 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2275 echo "configure:2276: checking for vprintf" >&5
2276 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 /* System header to define __stub macros and hopefully few prototypes,
2283 which can conflict with char vprintf(); below. */
2285 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2292 /* The GNU C library defines this for functions which it implements
2293 to always fail with ENOSYS. Some functions are actually named
2294 something starting with __ and the normal name is an alias. */
2295 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2305 eval "ac_cv_func_vprintf=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_func_vprintf=no"
2315 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 cat >> confdefs.h
<<\EOF
2318 #define HAVE_VPRINTF 1
2322 echo "$ac_t""no" 1>&6
2325 if test "$ac_cv_func_vprintf" != yes; then
2326 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2327 echo "configure:2328: checking for _doprnt" >&5
2328 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 /* System header to define __stub macros and hopefully few prototypes,
2335 which can conflict with char _doprnt(); below. */
2337 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2355 if { (eval echo configure
:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2357 eval "ac_cv_func__doprnt=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_func__doprnt=no"
2367 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 cat >> confdefs.h
<<\EOF
2370 #define HAVE_DOPRNT 1
2374 echo "$ac_t""no" 1>&6
2381 if test $ac_cv_func_vprintf != yes ; then
2383 if test $ac_cv_func__doprnt != yes ; then
2390 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2391 echo "configure:2392: checking whether the printf functions support %p" >&5
2392 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 if test "$cross_compiling" = yes; then
2396 gcc_cv_func_printf_ptr
=no
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2406 char *p = buf, *q = NULL;
2407 sprintf(buf, "%p", p);
2408 sscanf(buf, "%p", &q);
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2414 gcc_cv_func_printf_ptr
=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 gcc_cv_func_printf_ptr
=no
2424 rm -f core core.
* *.core
2427 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2428 if test $gcc_cv_func_printf_ptr = yes ; then
2429 cat >> confdefs.h
<<\EOF
2430 #define HAVE_PRINTF_PTR 1
2438 # Under some versions of uwin, vfork is notoriously buggy and the test
2439 # can hang configure; on other versions, vfork exists just as a stub.
2440 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2441 ac_cv_func_vfork_works
=no
2444 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2445 echo "configure:2446: checking for pid_t" >&5
2446 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.
$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 #include <sys/types.h>
2458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2459 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2461 ac_cv_type_pid_t
=yes
2469 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2470 if test $ac_cv_type_pid_t = no
; then
2471 cat >> confdefs.h
<<\EOF
2477 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2478 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2479 echo "configure:2480: checking for vfork.h" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2488 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure
:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2493 eval "ac_cv_header_$ac_safe=yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 eval "ac_cv_header_$ac_safe=no"
2503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 cat >> confdefs.h
<<\EOF
2506 #define HAVE_VFORK_H 1
2510 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2514 echo "configure:2515: checking for working vfork" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 if test "$cross_compiling" = yes; then
2519 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2520 echo "configure:2521: checking for vfork" >&5
2521 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 cat > conftest.
$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2527 /* System header to define __stub macros and hopefully few prototypes,
2528 which can conflict with char vfork(); below. */
2530 /* Override any gcc2 internal prototype to avoid an error. */
2531 /* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2537 /* The GNU C library defines this for functions which it implements
2538 to always fail with ENOSYS. Some functions are actually named
2539 something starting with __ and the normal name is an alias. */
2540 #if defined (__stub_vfork) || defined (__stub___vfork)
2548 if { (eval echo configure
:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2550 eval "ac_cv_func_vfork=yes"
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 eval "ac_cv_func_vfork=no"
2560 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2564 echo "$ac_t""no" 1>&6
2567 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2569 cat > conftest.
$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* Thanks to Paul Eggert for this test. */
2574 #include <sys/types.h>
2575 #include <sys/stat.h>
2576 #ifdef HAVE_UNISTD_H
2582 /* On some sparc systems, changes by the child to local and incoming
2583 argument registers are propagated back to the parent.
2584 The compiler is told about this with #include <vfork.h>,
2585 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2586 Test for this by using a static variable whose address
2587 is put into a register that is clobbered by the vfork. */
2590 sparc_address_test (int arg)
2592 sparc_address_test (arg) int arg;
2610 pid_t parent = getpid ();
2613 sparc_address_test ();
2618 /* Here is another test for sparc vfork register problems.
2619 This test uses lots of local variables, at least
2620 as many local variables as main has allocated so far
2621 including compiler temporaries. 4 locals are enough for
2622 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2623 A buggy compiler should reuse the register of parent
2624 for one of the local variables, since it will think that
2625 parent can't possibly be used any more in this routine.
2626 Assigning to the local variable will thus munge parent
2627 in the parent process. */
2629 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2630 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2631 /* Convince the compiler that p..p7 are live; otherwise, it might
2632 use the same hardware register for all 8 local variables. */
2633 if (p != p1 || p != p2 || p != p3 || p != p4
2634 || p != p5 || p != p6 || p != p7)
2637 /* On some systems (e.g. IRIX 3.3),
2638 vfork doesn't separate parent from child file descriptors.
2639 If the child closes a descriptor before it execs or exits,
2640 this munges the parent's descriptor as well.
2641 Test for this by closing stdout in the child. */
2642 _exit(close(fileno(stdout)) != 0);
2647 while (wait(&status) != child)
2650 /* Was there some problem with vforking? */
2653 /* Did the child fail? (This shouldn't happen.) */
2656 /* Did the vfork/compiler bug occur? */
2657 || parent != getpid()
2659 /* Did the file descriptor bug occur? */
2660 || fstat(fileno(stdout), &st) != 0
2665 if { (eval echo configure
:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2667 ac_cv_func_vfork_works
=yes
2669 echo "configure: failed program was:" >&5
2670 cat conftest.
$ac_ext >&5
2672 ac_cv_func_vfork_works
=no
2679 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2680 if test $ac_cv_func_vfork_works = no
; then
2681 cat >> confdefs.h
<<\EOF
2687 for ac_hdr
in unistd.h
2689 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_hdr" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2700 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure
:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 eval "ac_cv_header_$ac_safe=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.
$ac_ext >&5
2711 eval "ac_cv_header_$ac_safe=no"
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2718 cat >> confdefs.h
<<EOF
2719 #define $ac_tr_hdr 1
2723 echo "$ac_t""no" 1>&6
2727 for ac_func
in getpagesize
2729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_func" >&5
2731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.
$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* System header to define __stub macros and hopefully few prototypes,
2738 which can conflict with char $ac_func(); below. */
2740 /* Override any gcc2 internal prototype to avoid an error. */
2741 /* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2747 /* The GNU C library defines this for functions which it implements
2748 to always fail with ENOSYS. Some functions are actually named
2749 something starting with __ and the normal name is an alias. */
2750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2758 if { (eval echo configure
:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2760 eval "ac_cv_func_$ac_func=yes"
2762 echo "configure: failed program was:" >&5
2763 cat conftest.
$ac_ext >&5
2765 eval "ac_cv_func_$ac_func=no"
2770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2773 cat >> confdefs.h
<<EOF
2774 #define $ac_tr_func 1
2778 echo "$ac_t""no" 1>&6
2782 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2783 echo "configure:2784: checking for working mmap from /dev/zero" >&5
2784 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 if test "$cross_compiling" = yes; then
2788 ac_cv_func_mmap_anywhere
=no
2790 cat > conftest.
$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2794 /* Test by Richard Henderson and Alexandre Oliva.
2795 Check whether mmap from /dev/zero works. */
2796 #include <sys/types.h>
2798 #include <sys/mman.h>
2800 /* This mess was copied from the GNU getpagesize.h. */
2801 #ifndef HAVE_GETPAGESIZE
2802 # ifdef HAVE_UNISTD_H
2803 # include <unistd.h>
2806 /* Assume that all systems that can run configure have sys/param.h. */
2807 # ifndef HAVE_SYS_PARAM_H
2808 # define HAVE_SYS_PARAM_H 1
2811 # ifdef _SC_PAGESIZE
2812 # define getpagesize() sysconf(_SC_PAGESIZE)
2813 # else /* no _SC_PAGESIZE */
2814 # ifdef HAVE_SYS_PARAM_H
2815 # include <sys/param.h>
2816 # ifdef EXEC_PAGESIZE
2817 # define getpagesize() EXEC_PAGESIZE
2818 # else /* no EXEC_PAGESIZE */
2820 # define getpagesize() NBPG * CLSIZE
2823 # endif /* no CLSIZE */
2824 # else /* no NBPG */
2826 # define getpagesize() NBPC
2827 # else /* no NBPC */
2829 # define getpagesize() PAGESIZE
2830 # endif /* PAGESIZE */
2831 # endif /* no NBPC */
2832 # endif /* no NBPG */
2833 # endif /* no EXEC_PAGESIZE */
2834 # else /* no HAVE_SYS_PARAM_H */
2835 # define getpagesize() 8192 /* punt totally */
2836 # endif /* no HAVE_SYS_PARAM_H */
2837 # endif /* no _SC_PAGESIZE */
2839 #endif /* no HAVE_GETPAGESIZE */
2846 fd = open("/dev/zero", O_RDWR);
2851 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2852 if (x == (char *) -1)
2857 if (munmap(x, pg) < 0)
2863 if { (eval echo configure
:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2865 ac_cv_func_mmap_anywhere
=yes
2867 echo "configure: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2870 ac_cv_func_mmap_anywhere
=no
2877 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2878 if test $ac_cv_func_mmap_anywhere = yes; then
2879 cat >> confdefs.h
<<\EOF
2880 #define HAVE_MMAP_ANYWHERE 1
2886 for ac_func
in bcopy bzero bcmp \
2887 index rindex getenv atol sbrk abort atof getcwd getwd \
2888 strsignal putc_unlocked fputs_unlocked strstr environ
2890 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2891 echo "configure:2892: checking whether $ac_func must be declared" >&5
2892 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2900 #ifdef STRING_WITH_STRINGS
2901 # include <string.h>
2902 # include <strings.h>
2904 # ifdef HAVE_STRING_H
2905 # include <string.h>
2907 # ifdef HAVE_STRINGS_H
2908 # include <strings.h>
2912 #ifdef HAVE_STDLIB_H
2915 #ifdef HAVE_UNISTD_H
2920 #define rindex strrchr
2925 #define index strchr
2930 char *(*pfn) = (char *(*)) $ac_func
2933 if { (eval echo configure
:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2935 eval "gcc_cv_decl_needed_$ac_func=no"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.
$ac_ext >&5
2940 eval "gcc_cv_decl_needed_$ac_func=yes"
2945 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2946 echo "$ac_t""yes" 1>&6
2947 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2948 cat >> confdefs.h
<<EOF
2949 #define $gcc_tr_decl 1
2953 echo "$ac_t""no" 1>&6
2959 for ac_func
in malloc realloc calloc free
2961 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether $ac_func must be declared" >&5
2963 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 #ifdef STRING_WITH_STRINGS
2972 # include <string.h>
2973 # include <strings.h>
2975 # ifdef HAVE_STRING_H
2976 # include <string.h>
2978 # ifdef HAVE_STRINGS_H
2979 # include <strings.h>
2983 #ifdef HAVE_STDLIB_H
2986 #ifdef HAVE_UNISTD_H
2991 #define rindex strrchr
2996 #define index strchr
2999 #ifdef HAVE_MALLOC_H
3004 char *(*pfn) = (char *(*)) $ac_func
3007 if { (eval echo configure
:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3009 eval "gcc_cv_decl_needed_$ac_func=no"
3011 echo "configure: failed program was:" >&5
3012 cat conftest.
$ac_ext >&5
3014 eval "gcc_cv_decl_needed_$ac_func=yes"
3019 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3020 echo "$ac_t""yes" 1>&6
3021 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3022 cat >> confdefs.h
<<EOF
3023 #define $gcc_tr_decl 1
3027 echo "$ac_t""no" 1>&6
3033 for ac_func
in getrlimit setrlimit getrusage
3035 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3036 echo "configure:3037: checking whether $ac_func must be declared" >&5
3037 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3045 #ifdef STRING_WITH_STRINGS
3046 # include <string.h>
3047 # include <strings.h>
3049 # ifdef HAVE_STRING_H
3050 # include <string.h>
3052 # ifdef HAVE_STRINGS_H
3053 # include <strings.h>
3057 #ifdef HAVE_STDLIB_H
3060 #ifdef HAVE_UNISTD_H
3065 #define rindex strrchr
3070 #define index strchr
3073 #include <sys/types.h>
3074 #ifdef HAVE_SYS_RESOURCE_H
3075 #include <sys/resource.h>
3079 char *(*pfn) = (char *(*)) $ac_func
3082 if { (eval echo configure
:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 eval "gcc_cv_decl_needed_$ac_func=no"
3086 echo "configure: failed program was:" >&5
3087 cat conftest.
$ac_ext >&5
3089 eval "gcc_cv_decl_needed_$ac_func=yes"
3094 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3097 cat >> confdefs.h
<<EOF
3098 #define $gcc_tr_decl 1
3102 echo "$ac_t""no" 1>&6
3108 # mkdir takes a single argument on some systems.
3109 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3110 echo "configure:3111: checking if mkdir takes one argument" >&5
3111 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 cat > conftest.
$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3118 #include <sys/types.h>
3119 #ifdef HAVE_SYS_STAT_H
3120 # include <sys/stat.h>
3122 #ifdef HAVE_UNISTD_H
3123 # include <unistd.h>
3125 #ifdef HAVE_DIRECT_H
3126 # include <direct.h>
3132 if { (eval echo configure
:3133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 gcc_cv_mkdir_takes_one_arg
=no
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3139 gcc_cv_mkdir_takes_one_arg
=yes
3144 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3145 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3146 cat >> confdefs.h
<<\EOF
3147 #define MKDIR_TAKES_ONE_ARG 1
3161 build_install_headers_dir
=install-headers-tar
3166 host_truncate_target
=
3169 # Decode the host machine, then the target machine.
3170 # For the host machine, we save the xm_file variable as host_xm_file;
3171 # then we decode the target machine and forget everything else
3172 # that came from the host machine.
3173 for machine
in $build $host $target; do
3187 # Set this to force installation and use of collect2.
3189 # Set this to override the default target model.
3191 # Set this to control how the header file directory is installed.
3192 install_headers_dir
=install-headers-tar
3193 # Set this to a non-empty list of args to pass to cpp if the target
3194 # wants its .md file passed through cpp.
3196 # Set this if directory names should be truncated to 14 characters.
3198 # Set this if gdb needs a dir command with `dirname $out_file`
3199 gdb_needs_out_file_path
=
3200 # Set this if the build machine requires executables to have a
3203 # Set this to control which thread package will be used.
3205 # Reinitialize these from the flag values every loop pass, since some
3206 # configure entries modify them.
3208 gnu_ld
="$gnu_ld_flag"
3209 enable_threads
=$enable_threads_flag
3211 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3212 # updated in each machine entry.
3214 cpu_type
=`echo $machine | sed 's/-.*$//'`
3251 tm_file
=${cpu_type}/${cpu_type}.h
3252 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3253 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3255 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3257 # On a.out targets, we need to use collect2.
3264 # Common parts for linux-gnu and openbsd systems
3267 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3270 tm_file
=${cpu_type}/openbsd.h
3271 tmake_file
="t-libc-ok t-openbsd"
3272 # avoid surprises, always provide an xm-openbsd file
3273 xm_file
=${cpu_type}/xm-openbsd.h
3274 # don't depend on processor x-fragments as well
3276 if test x
$enable_threads = xyes
; then
3278 tmake_file
="${tmake_file} t-openbsd-thread"
3284 # Support site-specific machine types.
3286 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3287 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3288 xm_file
=${cpu_type}/xm-
$rest.h
3289 tm_file
=${cpu_type}/$rest.h
3290 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3291 then xmake_file
=${cpu_type}/x-
$rest; \
3294 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3295 then tmake_file
=${cpu_type}/t-
$rest; \
3301 a29k-
*-bsd* | a29k-
*-sym1*)
3302 tm_file
="${tm_file} a29k/unix.h"
3304 xmake_file
=a29k
/x-unix
3307 a29k-
*-udi | a29k-
*-coff)
3308 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3309 tmake_file
=a29k
/t-a29kbare
3312 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3313 tmake_file
=a29k
/t-vx29k
3314 extra_parts
="crtbegin.o crtend.o"
3315 thread_file
='vxworks'
3317 a29k-
*-*) # Default a29k environment.
3321 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3323 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3324 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3326 # GAS + IEEE_CONFORMANT
3327 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3329 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3330 xmake_file
="x-interix alpha/t-pe"
3331 tmake_file
="alpha/t-interix alpha/t-ieee"
3332 if test x
$enable_threads = xyes
; then
3335 if test x
$stabs = xyes
; then
3336 tm_file
="${tm_file} dbxcoff.h"
3338 #prefix='$$INTERIX_ROOT'/usr/contrib
3339 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3341 alpha
*-*-linux-gnuecoff*)
3342 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3343 target_cpu_default
="MASK_GAS"
3344 tmake_file
="alpha/t-ieee"
3349 alpha
*-*-linux-gnulibc1*)
3350 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3351 target_cpu_default
="MASK_GAS"
3352 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3353 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3356 if test x
$enable_threads = xyes
; then
3360 alpha
*-*-linux-gnu*)
3361 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3362 target_cpu_default
="MASK_GAS"
3363 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3364 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3367 if test x
$enable_threads = xyes
; then
3372 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3373 target_cpu_default
="MASK_GAS"
3374 tmake_file
="alpha/t-crtbe alpha/t-ieee"
3375 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3381 # default x-alpha is only appropriate for dec-osf.
3382 target_cpu_default
="MASK_GAS"
3383 tmake_file
="alpha/t-ieee"
3387 if test x
$stabs = xyes
3389 tm_file
="${tm_file} dbx.h"
3391 if test x
$gas != xyes
3393 extra_passes
="mips-tfile mips-tdump"
3396 tmake_file
="alpha/t-ieee"
3399 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3402 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3405 tm_file
="${tm_file} alpha/osf.h"
3406 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3407 # a broken tar, so we use cpio instead.
3408 install_headers_dir
=install-headers-cpio
3411 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3415 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3416 target_cpu_default
=MASK_SUPPORT_ARCH
3421 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3422 tmake_file
="alpha/t-ieee"
3425 extra_passes
="mips-tfile mips-tdump"
3428 thread_file
='vxworks'
3431 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3432 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3433 tmake_file
="t-libc-ok alpha/t-ieee"
3434 xmake_file
=winnt
/x-winnt
3435 extra_host_objs
=oldnames.o
3436 extra_gcc_objs
="spawnv.o oldnames.o"
3437 if test x
$gnu_ld != xyes
3439 extra_programs
=ld.exe
3441 if test x
$enable_threads = xyes
; then
3447 xm_file
="${xm_file} alpha/xm-vms.h"
3448 tmake_file
="alpha/t-vms alpha/t-ieee"
3451 extra_parts
="crtinit.o crtfini.o"
3453 arm-
*-coff* | armel-
*-coff*)
3455 tmake_file
=arm
/t-arm-coff
3459 tmake_file
=arm
/t-arm-coff
3460 thread_file
='vxworks'
3462 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3463 tm_file
=arm
/riscix1-1.h
3466 arm-
*-riscix*) # Acorn RISC machine
3467 if test x
$gas = xyes
3469 tm_file
=arm
/rix-gas.h
3471 tm_file
=arm
/riscix.h
3473 xmake_file
=arm
/x-riscix
3474 tmake_file
=arm
/t-riscix
3477 arm-semi-aout | armel-semi-aout
)
3479 tmake_file
=arm
/t-semi
3481 arm-semi-aof | armel-semi-aof
)
3482 tm_file
=arm
/semiaof.h
3483 tmake_file
=arm
/t-semiaof
3486 tm_file
=arm
/netbsd.h
3487 tmake_file
="t-netbsd arm/t-netbsd"
3490 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3493 tm_file
=arm
/linux-aout.h
3494 tmake_file
=arm
/t-linux
3497 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3498 xm_file
=arm
/xm-linux.h
3500 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3503 tm_file
="arm/linux-elf26.h $tm_file"
3506 tmake_file
="t-linux arm/t-linux"
3507 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3509 case x
${enable_threads} in
3510 x | xyes | xpthreads | xposix
)
3515 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3516 xm_file
=arm
/xm-linux.h
3518 tm_file
="arm/linux-elf.h"
3521 tm_file
="arm/linux-elf26.h $tm_file"
3524 tmake_file
="t-linux arm/t-linux"
3525 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3527 case x
${enable_threads} in
3528 x | xyes | xpthreads | xposix
)
3533 arm
*-*-uclinux*) # ARM ucLinux
3534 tm_file
=arm
/uclinux-elf.h
3535 tmake_file
=arm
/t-arm-elf
3539 tmake_file
=arm
/t-arm-aout
3542 tm_file
=arm
/ecos-elf.h
3543 tmake_file
=arm
/t-arm-elf
3546 tm_file
=arm
/unknown-elf.h
3547 tmake_file
=arm
/t-arm-elf
3550 tm_file
=arm
/conix-elf.h
3551 tmake_file
=arm
/t-arm-elf
3554 tm_file
=arm
/unknown-elf-oabi.h
3555 tmake_file
=arm
/t-arm-elf
3564 c1-convex-
*) # Convex C1
3565 target_cpu_default
=1
3568 c2-convex-
*) # Convex C2
3569 target_cpu_default
=2
3573 target_cpu_default
=4
3577 target_cpu_default
=8
3581 target_cpu_default
=16
3586 tmake_file
=c4x
/t-c4x
3588 clipper-intergraph-clix
*)
3589 tm_file
="${tm_file} svr3.h clipper/clix.h"
3590 xm_file
=clipper
/xm-clix.h
3591 xmake_file
=clipper
/x-clix
3592 extra_headers
=va-clipper.h
3593 extra_parts
="crtbegin.o crtend.o"
3594 install_headers_dir
=install-headers-cpio
3602 tm_file
="fr30/fr30.h"
3603 tmake_file
=fr30
/t-fr30
3604 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3606 # This hasn't been upgraded to GCC 2.
3607 # fx80-alliant-*) # Alliant FX/80
3613 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3614 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3615 tmake_file
="t-linux pa/t-linux"
3616 extra_parts
="crtbegin.o crtend.o"
3619 if test x
$enable_threads = xyes
; then
3624 target_cpu_default
="MASK_PA_11"
3625 tmake_file
=pa
/t-openbsd
3628 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3629 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3630 xm_file
=pa
/xm-papro.h
3634 target_cpu_default
="MASK_PA_11"
3635 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3639 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3640 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3641 xm_file
=pa
/xm-papro.h
3645 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3649 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3650 target_cpu_default
="MASK_PA_11"
3654 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3658 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3659 xm_file
=pa
/xm-pahpux.h
3660 xmake_file
=pa
/x-pa-hpux
3661 if test x
$gas = xyes
3663 tm_file
="${tm_file} pa/gas.h"
3665 install_headers_dir
=install-headers-cpio
3668 hppa1.0
-*-hpux8.0
[0-2]*)
3669 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3670 xm_file
=pa
/xm-pahpux.h
3671 xmake_file
=pa
/x-pa-hpux
3672 if test x
$gas = xyes
3674 tm_file
="${tm_file} pa/pa-gas.h"
3676 tm_file
="pa/pa-oldas.h ${tm_file}"
3678 install_headers_dir
=install-headers-cpio
3681 hppa1.1
-*-hpux8.0
[0-2]*)
3682 target_cpu_default
="MASK_PA_11"
3683 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3684 xm_file
=pa
/xm-pahpux.h
3685 xmake_file
=pa
/x-pa-hpux
3686 if test x
$gas = xyes
3688 tm_file
="${tm_file} pa/pa-gas.h"
3690 tm_file
="pa/pa-oldas.h ${tm_file}"
3692 install_headers_dir
=install-headers-cpio
3696 target_cpu_default
="MASK_PA_11"
3697 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3698 xm_file
=pa
/xm-pahpux.h
3699 xmake_file
=pa
/x-pa-hpux
3700 if test x
$gas = xyes
3702 tm_file
="${tm_file} pa/pa-gas.h"
3704 install_headers_dir
=install-headers-cpio
3708 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3709 xm_file
=pa
/xm-pahpux.h
3710 xmake_file
=pa
/x-pa-hpux
3711 if test x
$gas = xyes
3713 tm_file
="${tm_file} pa/pa-gas.h"
3715 install_headers_dir
=install-headers-cpio
3718 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3719 target_cpu_default
="MASK_PA_11"
3720 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3722 xm_file
=pa
/xm-pahpux.h
3723 xmake_file
=pa
/x-pa-hpux
3725 if test x
$gas = xyes
3727 tm_file
="${tm_file} pa/pa-gas.h"
3729 if test x
$enable_threads = x
; then
3730 enable_threads
=$have_pthread_h
3732 if test x
$enable_threads = xyes
; then
3734 tmake_file
="${tmake_file} pa/t-dce-thr"
3736 install_headers_dir
=install-headers-cpio
3740 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3742 xm_file
=pa
/xm-pahpux.h
3743 xmake_file
=pa
/x-pa-hpux
3745 if test x
$gas = xyes
3747 tm_file
="${tm_file} pa/pa-gas.h"
3749 if test x
$enable_threads = x
; then
3750 enable_threads
=$have_pthread_h
3752 if test x
$enable_threads = xyes
; then
3754 tmake_file
="${tmake_file} pa/t-dce-thr"
3756 install_headers_dir
=install-headers-cpio
3759 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3760 target_cpu_default
="MASK_PA_11"
3761 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3763 xm_file
=pa
/xm-pahpux.h
3764 xmake_file
=pa
/x-pa-hpux
3766 if test x
$gas = xyes
3768 tm_file
="${tm_file} pa/pa-gas.h"
3770 # if test x$enable_threads = x; then
3771 # enable_threads=$have_pthread_h
3773 # if test x$enable_threads = xyes; then
3775 # tmake_file="${tmake_file} pa/t-dce-thr"
3777 install_headers_dir
=install-headers-cpio
3781 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3783 xm_file
=pa
/xm-pahpux.h
3784 xmake_file
=pa
/x-pa-hpux
3785 if test x
$gas = xyes
3787 tm_file
="${tm_file} pa/pa-gas.h"
3789 # if test x$enable_threads = x; then
3790 # enable_threads=$have_pthread_h
3792 # if test x$enable_threads = xyes; then
3794 # tmake_file="${tmake_file} pa/t-dce-thr"
3796 install_headers_dir
=install-headers-cpio
3799 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3800 target_cpu_default
="MASK_PA_11"
3801 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3802 xm_file
=pa
/xm-pahpux.h
3803 xmake_file
=pa
/x-pa-hpux
3804 if test x
$gas = xyes
3806 tm_file
="${tm_file} pa/pa-gas.h"
3808 install_headers_dir
=install-headers-cpio
3812 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3813 xm_file
=pa
/xm-pahpux.h
3814 xmake_file
=pa
/x-pa-hpux
3815 if test x
$gas = xyes
3817 tm_file
="${tm_file} pa/pa-gas.h"
3819 install_headers_dir
=install-headers-cpio
3822 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3823 target_cpu_default
="MASK_PA_11"
3824 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.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
3835 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3836 xm_file
=pa
/xm-pahpux.h
3837 xmake_file
=pa
/x-pa-hpux
3838 if test x
$gas = xyes
3840 tm_file
="${tm_file} pa/pa-gas.h"
3842 install_headers_dir
=install-headers-cpio
3846 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
3847 target_cpu_default
="MASK_PA_11"
3851 tm_file
="${tm_file} pa/pa-mpeix.h"
3852 xm_file
=pa
/xm-pampeix.h
3853 xmake_file
=pa
/x-pa-mpeix
3854 echo "You must use gas. Assuming it is already installed."
3855 install_headers_dir
=install-headers-tar
3858 i370-
*-opened*) # IBM 360/370/390 Architecture
3859 xm_file
=i370
/xm-oe.h
3861 xmake_file
=i370
/x-oe
3862 tmake_file
=i370
/t-oe
3865 xm_file
=i370
/xm-mvs.h
3867 tmake_file
=i370
/t-mvs
3870 xm_file
="xm-linux.h i370/xm-linux.h"
3872 tm_file
="i370/linux.h ${tm_file}"
3873 tmake_file
="t-linux i370/t-linux"
3874 # broken_install=yes
3875 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3876 # extra_parts="crtbegin.o crtend.o"
3880 if test x
$enable_threads = xyes
; then
3885 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3886 tm_file
=i386
/i386elf.h
3887 tmake_file
=i386
/t-i386elf
3890 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3891 if test x
$gas = xyes
3893 tm_file
=i386
/aix386.h
3894 extra_parts
="crtbegin.o crtend.o"
3895 tmake_file
=i386
/t-crtstuff
3897 tm_file
=i386
/aix386ng.h
3900 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3902 xmake_file
=i386
/x-aix
3904 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3905 xm_file
="xm-alloca.h ${xm_file}"
3906 xm_defines
="USG POSIX SMALL_ARG_MAX"
3907 xmake_file
=i386
/x-ncr3000
3908 if test x
$stabs = xyes
-a x
$gas = xyes
3910 tm_file
=i386
/sysv4gdb.h
3912 tm_file
=i386
/sysv4.h
3914 extra_parts
="crtbegin.o crtend.o"
3915 tmake_file
=i386
/t-crtpic
3919 xm_file
=i386
/xm-next.h
3920 tmake_file
=i386
/t-next
3921 xmake_file
=i386
/x-next
3922 extra_objs
=nextstep.o
3923 extra_parts
="crtbegin.o crtend.o"
3924 if test x
$enable_threads = xyes
; then
3928 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3930 if test x
$gas = xyes
3932 tm_file
=i386
/seq-gas.h
3934 tm_file
=i386
/sequent.h
3937 i
[34567]86-sequent-ptx1*)
3938 xm_defines
="USG SVR3"
3939 xmake_file
=i386
/x-sysv3
3940 tm_file
=i386
/seq-sysv3.h
3941 tmake_file
=i386
/t-crtstuff
3942 extra_parts
="crtbegin.o crtend.o"
3943 install_headers_dir
=install-headers-cpio
3945 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3946 xm_defines
="USG SVR3"
3947 xmake_file
=i386
/x-sysv3
3948 tm_file
=i386
/seq2-sysv3.h
3949 tmake_file
=i386
/t-crtstuff
3950 extra_parts
="crtbegin.o crtend.o"
3951 install_headers_dir
=install-headers-cpio
3953 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3954 xm_file
="xm-alloca.h ${xm_file}"
3955 xm_defines
="USG POSIX SMALL_ARG_MAX"
3957 tm_file
=i386
/ptx4-i.h
3959 extra_parts
="crtbegin.o crtend.o"
3960 install_headers_dir
=install-headers-cpio
3962 i386-sun-sunos
*) # Sun i386 roadrunner
3967 i
[34567]86-wrs-vxworks*)
3968 tm_file
=i386
/vxi386.h
3969 tmake_file
=i386
/t-i386bare
3970 thread_file
='vxworks'
3973 tm_file
=i386
/i386-aout.h
3974 tmake_file
=i386
/t-i386bare
3976 i
[34567]86-*-beospe*)
3977 xm_file
=i386
/xm-beos.h
3978 xm_defines
="USE_C_ALLOCA"
3979 tmake_file
=i386
/t-beos
3980 tm_file
=i386
/beos-pe.h
3981 xmake_file
=i386
/x-beos
3984 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
3985 xm_file
=i386
/xm-beos.h
3986 tmake_file
='i386/t-beos i386/t-crtpic'
3987 tm_file
=i386
/beos-elf.h
3988 xmake_file
=i386
/x-beos
3990 extra_parts
='crtbegin.o crtend.o'
3992 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
3993 tm_file
=i386
/bsd386.h
3994 # tmake_file=t-libc-ok
3997 tm_file
=i386
/386bsd.h
3998 # tmake_file=t-libc-ok
3999 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4002 i
[34567]86-*-freebsdelf*)
4003 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4004 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4005 tmake_file
=t-freebsd
4009 case x
${enable_threads} in
4010 xyes | xpthreads | xposix
)
4012 tmake_file
="${tmake_file} t-freebsd-thread"
4016 i
[34567]86-*-freebsd*)
4017 tm_file
="i386/freebsd.h i386/perform.h"
4018 tmake_file
=t-freebsd
4020 i
[34567]86-*-netbsd*)
4021 tm_file
=i386
/netbsd.h
4025 i
[34567]86-*-openbsd*)
4026 # we need collect2 until our bug is fixed...
4030 tm_file
=i386
/i386-coff.h
4031 tmake_file
=i386
/t-i386bare
4033 i
[34567]86-*-isc*) # 80386 running ISC system
4034 xm_file
="${xm_file} i386/xm-isc.h"
4035 xm_defines
="USG SVR3"
4037 i
[34567]86-*-isc[34]*)
4038 xmake_file
=i386
/x-isc3
4041 xmake_file
=i386
/x-isc
4044 if test x
$gas = xyes
-a x
$stabs = xyes
4046 tm_file
=i386
/iscdbx.h
4047 tmake_file
=i386
/t-svr3dbx
4048 extra_parts
="svr3.ifile svr3z.ifile"
4050 tm_file
=i386
/isccoff.h
4051 tmake_file
=i386
/t-crtstuff
4052 extra_parts
="crtbegin.o crtend.o"
4054 install_headers_dir
=install-headers-cpio
4056 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4058 xmake_file
=x-linux-aout
4059 tmake_file
="t-linux-aout i386/t-crtstuff"
4060 tm_file
=i386
/linux-oldld.h
4064 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4065 xmake_file
=x-linux-aout
4066 tmake_file
="t-linux-aout i386/t-crtstuff"
4067 tm_file
=i386
/linux-aout.h
4071 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4072 # GNU/Linux C library 5
4074 tm_file
=i386
/linux.h
4075 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4076 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4079 if test x
$enable_threads = xyes
; then
4080 thread_file
='single'
4083 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4084 # aka GNU/Linux C library 6
4086 tm_file
=i386
/linux.h
4087 tmake_file
="t-linux i386/t-crtstuff"
4088 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4091 if test x
$enable_threads = xyes
; then
4098 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4099 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4102 i
[34567]86-pc-msdosdjgpp*)
4103 xm_file
=i386
/xm-djgpp.h
4104 tm_file
=i386
/djgpp.h
4105 tmake_file
=i386
/t-djgpp
4106 xmake_file
=i386
/x-djgpp
4110 case $host in *pc-msdosdjgpp
*)
4115 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4117 tmake_file
=t-libc-ok
4121 i
[34567]86-*-lynxos*)
4122 if test x
$gas = xyes
4126 tm_file
=i386
/lynx-ng.h
4128 xm_file
=i386
/xm-lynx.h
4129 tmake_file
=i386
/t-i386bare
4134 # tmake_file=t-libc-ok
4137 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4138 if test x
$elf = xyes
4140 tm_file
=i386
/osfelf.h
4143 tm_file
=i386
/osfrose.h
4146 xm_file
="i386/xm-osf.h ${xm_file}"
4147 xmake_file
=i386
/x-osfrose
4148 tmake_file
=i386
/t-osf
4149 extra_objs
=halfpic.o
4151 i
[34567]86-go32-rtems*)
4153 xm_file
=i386
/xm-go32.h
4154 tm_file
=i386
/go32-rtems.h
4155 tmake_file
="i386/t-go32 t-rtems"
4157 i
[34567]86-*-rtemscoff*)
4159 tm_file
=i386
/rtems.h
4160 tmake_file
="i386/t-i386bare t-rtems"
4162 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4164 tm_file
=i386
/rtemself.h
4165 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4166 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4168 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4169 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4170 xm_defines
="USG SVR3"
4171 xmake_file
=i386
/x-sco5
4172 install_headers_dir
=install-headers-cpio
4174 if test x
$gas = xyes
4176 tm_file
="i386/sco5gas.h ${tm_file}"
4177 tmake_file
=i386
/t-sco5gas
4179 tmake_file
=i386
/t-sco5
4181 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4183 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4184 xm_file
="${xm_file} i386/xm-sco.h"
4185 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4186 xmake_file
=i386
/x-sco4
4187 install_headers_dir
=install-headers-cpio
4188 if test x
$stabs = xyes
4190 tm_file
=i386
/sco4dbx.h
4191 tmake_file
=i386
/t-svr3dbx
4192 extra_parts
="svr3.ifile svr3z.rfile"
4195 tmake_file
=i386
/t-crtstuff
4196 extra_parts
="crtbegin.o crtend.o"
4198 # The default EAFS filesystem supports long file names.
4199 # Truncating the target makes $host != $target which
4200 # makes gcc think it is doing a cross-compile.
4201 # truncate_target=yes
4203 i
[34567]86-*-sco*) # 80386 running SCO system
4204 xm_file
=i386
/xm-sco.h
4205 xmake_file
=i386
/x-sco
4206 install_headers_dir
=install-headers-cpio
4207 if test x
$stabs = xyes
4209 tm_file
=i386
/scodbx.h
4210 tmake_file
=i386
/t-svr3dbx
4211 extra_parts
="svr3.ifile svr3z.rfile"
4214 extra_parts
="crtbegin.o crtend.o"
4215 tmake_file
=i386
/t-crtstuff
4219 i
[34567]86-*-solaris2*)
4220 xm_file
="xm-alloca.h ${xm_file}"
4221 xm_defines
="USG POSIX SMALL_ARG_MAX"
4223 if test x
$gas = xyes
; then
4224 # Only needed if gas does not support -s
4225 tm_file
="i386/sol2gas.h ${tm_file}"
4227 tmake_file
=i386
/t-sol2
4228 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4230 if test x
${enable_threads} = x
; then
4231 enable_threads
=$have_pthread_h
4232 if test x
${enable_threads} = x
; then
4233 enable_threads
=$have_thread_h
4236 if test x
${enable_threads} = xyes
; then
4237 if test x
${have_pthread_h} = xyes
; then
4240 thread_file
='solaris'
4244 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4245 xm_file
="xm-alloca.h ${xm_file}"
4246 xm_defines
="USG POSIX"
4247 tm_file
=i386
/sysv5.h
4248 if test x
$stabs = xyes
4250 tm_file
="${tm_file} dbx.h"
4252 tmake_file
=i386
/t-crtpic
4254 extra_parts
="crtbegin.o crtend.o"
4255 if test x
$enable_threads = xyes
; then
4259 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4260 xm_file
="xm-alloca.h ${xm_file}"
4261 xm_defines
="USG POSIX SMALL_ARG_MAX"
4262 tm_file
=i386
/sysv4.h
4263 if test x
$stabs = xyes
4265 tm_file
="${tm_file} dbx.h"
4267 tmake_file
=i386
/t-crtpic
4269 extra_parts
="crtbegin.o crtend.o"
4271 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4272 xm_file
="xm-alloca.h ${xm_file}"
4273 xm_defines
="USG POSIX"
4275 tmake_file
="i386/t-crtpic i386/t-udk"
4277 extra_parts
="crtbegin.o crtend.o"
4278 install_headers_dir
=install-headers-cpio
4280 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4282 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4283 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4284 if test x
$stabs = xyes
4286 tm_file
=i386
/osf1elfgdb.h
4288 tm_file
=i386
/osf1elf.h
4290 tmake_file
=i386
/t-osf1elf
4291 xmake_file
=i386
/x-osf1elf
4292 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4294 i
[34567]86-*-sysv*) # Intel 80386's running system V
4295 xm_defines
="USG SVR3"
4296 xmake_file
=i386
/x-sysv3
4297 if test x
$gas = xyes
4299 if test x
$stabs = xyes
4301 tm_file
=i386
/svr3dbx.h
4302 tmake_file
=i386
/t-svr3dbx
4303 extra_parts
="svr3.ifile svr3z.rfile"
4305 tm_file
=i386
/svr3gas.h
4306 extra_parts
="crtbegin.o crtend.o"
4307 tmake_file
=i386
/t-crtstuff
4310 tm_file
=i386
/sysv3.h
4311 extra_parts
="crtbegin.o crtend.o"
4312 tmake_file
=i386
/t-crtstuff
4315 i386-
*-vsta) # Intel 80386's running VSTa kernel
4316 xm_file
="${xm_file} i386/xm-vsta.h"
4318 tmake_file
=i386
/t-vsta
4319 xmake_file
=i386
/x-vsta
4322 xm_file
="${xm_file} i386/xm-cygwin.h"
4323 tmake_file
=i386
/t-cygwin
4324 tm_file
=i386
/win32.h
4325 xmake_file
=i386
/x-cygwin
4327 if test x
$enable_threads = xyes
; then
4332 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4333 xm_file
="${xm_file} i386/xm-cygwin.h"
4334 tmake_file
=i386
/t-cygwin
4335 tm_file
=i386
/cygwin.h
4336 xmake_file
=i386
/x-cygwin
4338 if test x
$enable_threads = xyes
; then
4343 i
[34567]86-*-mingw32*)
4344 tm_file
=i386
/mingw32.h
4345 xm_file
="${xm_file} i386/xm-mingw32.h"
4346 tmake_file
="i386/t-cygwin i386/t-mingw32"
4348 xmake_file
=i386
/x-cygwin
4349 if test x
$enable_threads = xyes
; then
4356 *minwg32crt
* |
*mingw32
*)
4357 tm_file
="${tm_file} i386/crtdll.h"
4363 xm_file
="${xm_file} i386/xm-uwin.h"
4364 xm_defines
="USG NO_STAB_H"
4365 tmake_file
="i386/t-cygwin i386/t-uwin"
4367 xmake_file
=i386
/x-cygwin
4368 if test x
$enable_threads = xyes
; then
4373 i
[34567]86-*-interix*)
4374 tm_file
="i386/i386-interix.h interix.h"
4375 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4377 tmake_file
="i386/t-interix"
4378 extra_objs
=interix.o
4379 xmake_file
=x-interix
4380 if test x
$enable_threads = xyes
; then
4383 if test x
$stabs = xyes
; then
4384 tm_file
="${tm_file} dbxcoff.h"
4387 i
[34567]86-*-winnt3*)
4388 tm_file
=i386
/win-nt.h
4389 out_file
=i386
/i386.c
4390 xm_file
="xm-winnt.h ${xm_file}"
4391 xmake_file
=winnt
/x-winnt
4392 tmake_file
=i386
/t-winnt
4393 extra_host_objs
="winnt.o oldnames.o"
4394 extra_gcc_objs
="spawnv.o oldnames.o"
4395 if test x
$gnu_ld != xyes
4397 extra_programs
=ld.exe
4399 if test x
$enable_threads = xyes
; then
4403 i
[34567]86-dg-dgux*)
4404 xm_file
="xm-alloca.h ${xm_file}"
4405 xm_defines
="USG POSIX"
4406 out_file
=i386
/dgux.c
4408 tmake_file
=i386
/t-dgux
4409 xmake_file
=i386
/x-dgux
4410 install_headers_dir
=install-headers-cpio
4412 i860-alliant-
*) # Alliant FX/2800
4413 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4414 xm_file
="${xm_file}"
4415 xmake_file
=i860
/x-fx2800
4416 tmake_file
=i860
/t-fx2800
4417 extra_parts
="crtbegin.o crtend.o"
4420 tm_file
="${tm_file} i860/bsd.h"
4421 if test x
$gas = xyes
4423 tm_file
="${tm_file} i860/bsd-gas.h"
4428 tm_file
="${tm_file} i860/mach.h"
4429 tmake_file
=t-libc-ok
4431 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4432 tm_file
="${tm_file} svr3.h i860/paragon.h"
4433 xm_defines
="USG SVR3"
4437 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4438 xm_defines
="USG SVR3"
4439 xmake_file
=i860
/x-sysv3
4440 extra_parts
="crtbegin.o crtend.o"
4443 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4444 xm_defines
="USG SVR3"
4445 xmake_file
=i860
/x-sysv4
4447 extra_parts
="crtbegin.o crtend.o"
4449 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4450 tm_file
="${tm_file} i960/vx960.h"
4451 tmake_file
=i960
/t-vxworks960
4453 thread_file
='vxworks'
4455 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4456 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4457 tmake_file
=i960
/t-vxworks960
4459 thread_file
='vxworks'
4462 tm_file
="${tm_file} i960/vx960.h"
4463 tmake_file
=i960
/t-vxworks960
4465 thread_file
='vxworks'
4468 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4469 tmake_file
=i960
/t-960bare
4473 tmake_file
="i960/t-960bare t-rtems"
4474 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4477 i960-
*-*) # Default i960 environment.
4482 tmake_file
="ia64/t-ia64"
4483 target_cpu_default
="0"
4484 if test x
$gas = xyes
4486 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4488 if test x
$gnu_ld = xyes
4490 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4494 tm_file
=ia64
/linux.h
4495 tmake_file
="t-linux ia64/t-ia64"
4496 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4497 if test x
$enable_threads = xyes
; then
4502 extra_parts
="crtinit.o crtfini.o"
4504 m68000-convergent-sysv
*)
4506 xm_file
="m68k/xm-3b1.h ${xm_file}"
4509 extra_headers
=math-68881.h
4511 m68000-hp-bsd
*) # HP 9000/200 running BSD
4512 tm_file
=m68k
/hp2bsd.h
4513 xmake_file
=m68k
/x-hp2bsd
4515 extra_headers
=math-68881.h
4517 m68000-hp-hpux
*) # HP 9000 series 300
4518 xm_file
="xm-alloca.h ${xm_file}"
4520 if test x
$gas = xyes
4522 xmake_file
=m68k
/x-hp320g
4523 tm_file
=m68k
/hp310g.h
4525 xmake_file
=m68k
/x-hp320
4526 tm_file
=m68k
/hp310.h
4528 install_headers_dir
=install-headers-cpio
4530 extra_headers
=math-68881.h
4535 extra_headers
=math-68881.h
4538 tm_file
=m68k
/sun2o4.h
4540 extra_headers
=math-68881.h
4543 xm_file
="m68k/xm-3b1.h ${xm_file}"
4545 if test x
$gas = xyes
4552 extra_headers
=math-68881.h
4554 m68k-apple-aux
*) # Apple Macintosh running A/UX
4555 xm_defines
="USG AUX"
4556 tmake_file
=m68k
/t-aux
4557 install_headers_dir
=install-headers-cpio
4558 extra_headers
=math-68881.h
4559 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4561 if test "$gnu_ld" = yes
4563 tm_file
="${tm_file} m68k/auxgld.h"
4565 tm_file
="${tm_file} m68k/auxld.h"
4567 if test "$gas" = yes
4569 tm_file
="${tm_file} m68k/auxgas.h"
4571 tm_file
="${tm_file} m68k/auxas.h"
4573 tm_file
="${tm_file} m68k/a-ux.h"
4577 tm_file
=m68k
/apollo68.h
4578 xmake_file
=m68k
/x-apollo68
4580 extra_headers
=math-68881.h
4583 m68k-altos-sysv
*) # Altos 3068
4584 if test x
$gas = xyes
4586 tm_file
=m68k
/altos3068.h
4589 echo "The Altos is supported only with the GNU assembler" 1>&2
4592 extra_headers
=math-68881.h
4594 m68k-bull-sysv
*) # Bull DPX/2
4595 if test x
$gas = xyes
4597 if test x
$stabs = xyes
4599 tm_file
=m68k
/dpx2cdbx.h
4601 tm_file
=m68k
/dpx2g.h
4606 xm_file
="xm-alloca.h ${xm_file}"
4608 xmake_file
=m68k
/x-dpx2
4610 extra_headers
=math-68881.h
4612 m68k-atari-sysv4
*) # Atari variant of V.4.
4613 tm_file
=m68k
/atari.h
4614 xm_file
="xm-alloca.h ${xm_file}"
4615 xm_defines
="USG FULL_PROTOTYPES"
4617 extra_parts
="crtbegin.o crtend.o"
4618 extra_headers
=math-68881.h
4621 m68k-motorola-sysv
*)
4622 tm_file
=m68k
/mot3300.h
4623 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4624 if test x
$gas = xyes
4626 xmake_file
=m68k
/x-mot3300-gas
4627 if test x
$gnu_ld = xyes
4629 tmake_file
=m68k
/t-mot3300-gald
4631 tmake_file
=m68k
/t-mot3300-gas
4635 xmake_file
=m68k
/x-mot3300
4636 if test x
$gnu_ld = xyes
4638 tmake_file
=m68k
/t-mot3300-gld
4640 tmake_file
=m68k
/t-mot3300
4644 gdb_needs_out_file_path
=yes
4645 extra_parts
="crt0.o mcrt0.o"
4646 extra_headers
=math-68881.h
4649 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4650 tm_file
=m68k
/tower-as.h
4651 xm_defines
="USG SVR3"
4652 xmake_file
=m68k
/x-tower
4653 extra_parts
="crtbegin.o crtend.o"
4654 extra_headers
=math-68881.h
4657 tm_file
=m68k
/plexus.h
4658 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4661 extra_headers
=math-68881.h
4665 xm_file
="xm-alloca.h ${xm_file}"
4667 extra_headers
=math-68881.h
4670 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4671 xm_defines
="USG unos"
4672 xmake_file
=m68k
/x-crds
4675 extra_headers
=math-68881.h
4677 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4679 xm_file
="xm-alloca.h ${xm_file}"
4680 xm_defines
="USG FULL_PROTOTYPES"
4681 xmake_file
=m68k
/x-amix
4683 extra_parts
="crtbegin.o crtend.o"
4684 extra_headers
=math-68881.h
4688 tm_file
=m68k
/ccur-GAS.h
4689 xmake_file
=m68k
/x-ccur
4690 extra_headers
=math-68881.h
4694 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4695 tm_file
=m68k
/hp3bsd44.h
4696 xmake_file
=m68k
/x-hp3bsd44
4698 extra_headers
=math-68881.h
4701 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4702 tm_file
=m68k
/hp3bsd.h
4704 extra_headers
=math-68881.h
4708 if test x
$with_fp = xno
4710 tm_file
=m68k
/isi-nfp.h
4716 extra_headers
=math-68881.h
4718 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4719 xm_file
="xm-alloca.h ${xm_file}"
4721 if test x
$gas = xyes
4723 xmake_file
=m68k
/x-hp320g
4724 tm_file
=m68k
/hp320g.h
4726 xmake_file
=m68k
/x-hp320
4727 tm_file
=m68k
/hpux7.h
4729 install_headers_dir
=install-headers-cpio
4731 extra_headers
=math-68881.h
4734 m68k-hp-hpux
*) # HP 9000 series 300
4735 xm_file
="xm-alloca.h ${xm_file}"
4737 if test x
$gas = xyes
4739 xmake_file
=m68k
/x-hp320g
4740 tm_file
=m68k
/hp320g.h
4742 xmake_file
=m68k
/x-hp320
4743 tm_file
=m68k
/hp320.h
4745 install_headers_dir
=install-headers-cpio
4747 extra_headers
=math-68881.h
4751 tm_file
=m68k
/sun3mach.h
4753 extra_headers
=math-68881.h
4757 if test x
$gas = xyes
4759 tm_file
=m68k
/news3gas.h
4761 tm_file
=m68k
/news3.h
4764 extra_headers
=math-68881.h
4767 m68k-sony-bsd
* | m68k-sony-newsos
*)
4768 if test x
$gas = xyes
4770 tm_file
=m68k
/newsgas.h
4775 extra_headers
=math-68881.h
4778 m68k-next-nextstep2
*)
4779 tm_file
=m68k
/next21.h
4780 xm_file
="m68k/xm-next.h ${xm_file}"
4781 tmake_file
=m68k
/t-next
4782 xmake_file
=m68k
/x-next
4783 extra_objs
=nextstep.o
4784 extra_headers
=math-68881.h
4788 m68k-next-nextstep
[34]*)
4790 xm_file
="m68k/xm-next.h ${xm_file}"
4791 tmake_file
=m68k
/t-next
4792 xmake_file
=m68k
/x-next
4793 extra_objs
=nextstep.o
4794 extra_parts
="crtbegin.o crtend.o"
4795 extra_headers
=math-68881.h
4797 if test x
$enable_threads = xyes
; then
4802 if test x
$with_fp = xno
4804 tm_file
=m68k
/sun3n3.h
4806 tm_file
=m68k
/sun3o3.h
4810 extra_headers
=math-68881.h
4812 m68k-sun-sunos
*) # For SunOS 4 (the default).
4813 if test x
$with_fp = xno
4815 tm_file
=m68k
/sun3n.h
4821 extra_headers
=math-68881.h
4824 tm_file
=m68k
/vxm68k.h
4825 tmake_file
=m68k
/t-vxworks68
4826 extra_headers
=math-68881.h
4827 thread_file
='vxworks'
4831 tmake_file
=m68k
/t-m68kbare
4832 tm_file
="m68k/m68k-aout.h libgloss.h"
4833 extra_headers
=math-68881.h
4837 tmake_file
=m68k
/t-m68kbare
4838 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4839 extra_headers
=math-68881.h
4842 m68020-
*-elf* | m68k-
*-elf*)
4843 tm_file
="m68k/m68020-elf.h"
4844 xm_file
=m68k
/xm-m68kv.h
4845 tmake_file
=m68k
/t-m68kelf
4846 header_files
=math-68881.h
4849 if test x
$gas = xyes
4853 tm_file
=m68k
/lynx-ng.h
4855 xm_file
=m68k
/xm-lynx.h
4857 tmake_file
=m68k
/t-lynx
4858 extra_headers
=math-68881.h
4862 tm_file
=m68k
/netbsd.h
4869 # we need collect2 until our bug is fixed...
4872 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4873 xm_file
="xm-alloca.h ${xm_file}"
4875 xmake_file
=m68k
/x-m68kv
4876 extra_parts
="crtbegin.o crtend.o"
4877 extra_headers
=math-68881.h
4880 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4881 tm_file
=m68k
/m68kv4.h
4882 xm_file
="xm-alloca.h ${xm_file}"
4885 extra_parts
="crtbegin.o crtend.o"
4886 extra_headers
=math-68881.h
4889 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4892 tm_file
=m68k
/linux-aout.h
4893 tmake_file
="t-linux-aout m68k/t-linux-aout"
4894 extra_headers
=math-68881.h
4898 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4899 # with ELF format using the
4900 # GNU/Linux C library 5
4902 tm_file
=m68k
/linux.h
4903 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4904 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4905 extra_headers
=math-68881.h
4909 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4910 # with ELF format using glibc 2
4911 # aka the GNU/Linux C library 6.
4913 tm_file
=m68k
/linux.h
4914 tmake_file
="t-linux m68k/t-linux"
4915 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4916 extra_headers
=math-68881.h
4919 if test x
$enable_threads = xyes
; then
4924 tmake_file
=m68k
/t-m68kbare
4925 tm_file
=m68k
/m68k-psos.h
4926 extra_headers
=math-68881.h
4930 tmake_file
="m68k/t-m68kbare t-rtems"
4931 tm_file
=m68k
/rtems.h
4932 extra_headers
=math-68881.h
4935 m68k-
*-rtemself*|m68k-
*-rtems*)
4936 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4937 tm_file
=m68k
/rtemself.h
4938 extra_headers
=math-68881.h
4944 tm_file
=m88k
/dguxbcs.h
4945 tmake_file
=m88k
/t-dguxbcs
4949 tmake_file
=m88k
/t-dgux
4952 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4953 xmake_file
=m88k
/x-dgux
4954 if test x
$gas = xyes
4956 tmake_file
=m88k
/t-dgux-gas
4959 m88k-dolphin-sysv3
*)
4960 tm_file
=m88k
/dolph.h
4961 extra_parts
="crtbegin.o crtend.o"
4962 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4963 xmake_file
=m88k
/x-dolph
4964 if test x
$gas = xyes
4966 tmake_file
=m88k
/t-m88k-gas
4969 m88k-tektronix-sysv3
)
4970 tm_file
=m88k
/tekXD88.h
4971 extra_parts
="crtbegin.o crtend.o"
4972 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4973 xmake_file
=m88k
/x-tekXD88
4974 if test x
$gas = xyes
4976 tmake_file
=m88k
/t-m88k-gas
4980 tm_file
=m88k
/m88k-aout.h
4983 tm_file
=m88k
/m88k-coff.h
4984 tmake_file
=m88k
/t-bug
4988 extra_parts
="crtbegin.o crtend.o"
4989 if test x
$gas = xyes
4991 tmake_file
=m88k
/t-luna-gas
4993 tmake_file
=m88k
/t-luna
4997 tmake_file
="${tmake_file} m88k/t-luna-gas"
5000 tm_file
=m88k
/sysv3.h
5001 extra_parts
="crtbegin.o crtend.o"
5002 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5003 xmake_file
=m88k
/x-sysv3
5004 if test x
$gas = xyes
5006 tmake_file
=m88k
/t-m88k-gas
5010 tm_file
=m88k
/sysv4.h
5011 extra_parts
="crtbegin.o crtend.o"
5012 xmake_file
=m88k
/x-sysv4
5013 tmake_file
=m88k
/t-sysv4
5016 tm_file
=mcore
/mcore-elf.h
5017 tmake_file
=mcore
/t-mcore
5020 tm_file
=mcore
/mcore-pe.h
5021 tmake_file
=mcore
/t-mcore-pe
5023 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5024 if test "x$gnu_ld" = xyes
5026 tm_file
="mips/iris6.h mips/iris6gld.h"
5028 tm_file
=mips
/iris6.h
5030 tmake_file
=mips
/t-iris6
5031 xm_file
=mips
/xm-iris6.h
5032 xmake_file
=mips
/x-iris6
5033 # if test x$enable_threads = xyes; then
5034 # thread_file='irix'
5038 tm_file
="mips/elf.h mips/vxworks.h"
5039 tmake_file
=mips
/t-ecoff
5042 extra_parts
="crtbegin.o crtend.o"
5043 thread_file
='vxworks'
5045 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5046 tm_file
="mips/iris6.h mips/cross64.h"
5048 xm_file
="mips/xm-iris5.h"
5049 xmake_file
=mips
/x-iris
5050 tmake_file
=mips
/t-cross64
5051 # See comment in mips/iris[56].h files.
5053 # if test x$enable_threads = xyes; then
5054 # thread_file='irix'
5058 if test x
$gas = xyes
5060 if test x
$stabs = xyes
5062 tm_file
=mips
/iris5gdb.h
5064 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5067 tm_file
=mips
/sni-svr4.h
5070 xmake_file
=mips
/x-sni-svr4
5071 tmake_file
=mips
/t-mips-gas
5072 if test x
$gnu_ld != xyes
5077 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5078 if test x
$gas = xyes
5080 tm_file
="mips/iris5.h mips/iris5gas.h"
5081 if test x
$stabs = xyes
5083 tm_file
="${tm_file} dbx.h"
5086 tm_file
=mips
/iris5.h
5089 xm_file
="mips/xm-iris5.h"
5090 xmake_file
=mips
/x-iris
5091 # mips-tfile doesn't work yet
5092 tmake_file
=mips
/t-mips-gas
5093 # See comment in mips/iris5.h file.
5095 # if test x$enable_threads = xyes; then
5096 # thread_file='irix'
5099 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5100 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5101 if test x
$stabs = xyes
; then
5102 tm_file
="${tm_file} dbx.h"
5105 xmake_file
=mips
/x-iris
5106 if test x
$gas = xyes
5108 tmake_file
=mips
/t-mips-gas
5110 extra_passes
="mips-tfile mips-tdump"
5112 if test x
$gnu_ld != xyes
5116 # if test x$enable_threads = xyes; then
5117 # thread_file='irix'
5120 mips-sgi-irix4
*) # Mostly like a MIPS.
5121 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5122 if test x
$stabs = xyes
; then
5123 tm_file
="${tm_file} dbx.h"
5126 xmake_file
=mips
/x-iris
5127 if test x
$gas = xyes
5129 tmake_file
=mips
/t-mips-gas
5131 extra_passes
="mips-tfile mips-tdump"
5133 if test x
$gnu_ld != xyes
5137 # if test x$enable_threads = xyes; then
5138 # thread_file='irix'
5141 mips-sgi-
*) # Mostly like a MIPS.
5142 tm_file
="mips/iris3.h ${tm_file}"
5143 if test x
$stabs = xyes
; then
5144 tm_file
="${tm_file} dbx.h"
5147 xmake_file
=mips
/x-iris3
5148 if test x
$gas = xyes
5150 tmake_file
=mips
/t-mips-gas
5152 extra_passes
="mips-tfile mips-tdump"
5154 if test x
$gnu_ld != xyes
5159 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5160 tm_file
="mips/osfrose.h ${tm_file}"
5161 xmake_file
=mips
/x-osfrose
5162 tmake_file
=mips
/t-osfrose
5163 extra_objs
=halfpic.o
5166 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5167 tm_file
=mips
/dec-osf1.h
5168 if test x
$stabs = xyes
; then
5169 tm_file
="${tm_file} dbx.h"
5171 xmake_file
=mips
/x-dec-osf1
5172 if test x
$gas = xyes
5174 tmake_file
=mips
/t-mips-gas
5176 tmake_file
=mips
/t-ultrix
5177 extra_passes
="mips-tfile mips-tdump"
5179 if test x
$gnu_ld != xyes
5184 mips-dec-bsd
*) # Decstation running 4.4 BSD
5185 tm_file
=mips
/dec-bsd.h
5186 if test x
$gas = xyes
5188 tmake_file
=mips
/t-mips-gas
5190 tmake_file
=mips
/t-ultrix
5191 extra_passes
="mips-tfile mips-tdump"
5193 if test x
$gnu_ld != xyes
5198 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5199 tm_file
=mips
/netbsd.h
5200 # On NetBSD, the headers are already okay, except for math.h.
5203 mips
*-*-linux*) # Linux MIPS, either endian.
5206 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5207 *) tm_file
="mips/elf.h mips/linux.h" ;;
5209 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5212 if test x
$enable_threads = xyes
; then
5216 mips
*el-
*-openbsd*) # mips little endian
5217 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5219 mips
*-*-openbsd*) # mips big endian
5220 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5221 tm_file
="mips/openbsd-be.h ${tm_file}"
5223 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5224 tm_file
="mips/news4.h ${tm_file}"
5225 if test x
$stabs = xyes
; then
5226 tm_file
="${tm_file} dbx.h"
5228 if test x
$gas = xyes
5230 tmake_file
=mips
/t-mips-gas
5232 extra_passes
="mips-tfile mips-tdump"
5234 if test x
$gnu_ld != xyes
5238 xmake_file
=mips
/x-sony
5240 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5241 # That is based on svr4.
5242 # t-svr4 is not right because this system doesn't use ELF.
5243 tm_file
="mips/news5.h ${tm_file}"
5244 if test x
$stabs = xyes
; then
5245 tm_file
="${tm_file} dbx.h"
5248 if test x
$gas = xyes
5250 tmake_file
=mips
/t-mips-gas
5252 extra_passes
="mips-tfile mips-tdump"
5254 if test x
$gnu_ld != xyes
5259 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5260 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5261 if test x
$stabs = xyes
; then
5262 tm_file
="${tm_file} dbx.h"
5265 xmake_file
=mips
/x-sysv
5266 if test x
$gas = xyes
5268 tmake_file
=mips
/t-mips-gas
5269 extra_parts
="crtbegin.o crtend.o"
5271 tmake_file
=mips
/t-mips
5272 extra_passes
="mips-tfile mips-tdump"
5274 if test x
$gnu_ld != xyes
5279 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5280 tm_file
="mips/ultrix.h ${tm_file}"
5281 if test x
$stabs = xyes
; then
5282 tm_file
="${tm_file} dbx.h"
5284 xmake_file
=mips
/x-ultrix
5285 if test x
$gas = xyes
5287 tmake_file
=mips
/t-mips-gas
5289 tmake_file
=mips
/t-ultrix
5290 extra_passes
="mips-tfile mips-tdump"
5292 if test x
$gnu_ld != xyes
5297 mips-
*-riscos[56789]bsd
*)
5298 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5299 if test x
$stabs = xyes
; then
5300 tm_file
="${tm_file} dbx.h"
5302 if test x
$gas = xyes
5304 tmake_file
=mips
/t-bsd-gas
5306 tmake_file
=mips
/t-bsd
5307 extra_passes
="mips-tfile mips-tdump"
5309 if test x
$gnu_ld != xyes
5314 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5315 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5316 if test x
$stabs = xyes
; then
5317 tm_file
="${tm_file} dbx.h"
5319 if test x
$gas = xyes
5321 tmake_file
=mips
/t-bsd-gas
5323 tmake_file
=mips
/t-bsd
5324 extra_passes
="mips-tfile mips-tdump"
5326 if test x
$gnu_ld != xyes
5331 mips-
*-riscos[56789]sysv4
*)
5332 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5333 if test x
$stabs = xyes
; then
5334 tm_file
="${tm_file} dbx.h"
5336 xmake_file
=mips
/x-sysv
5337 if test x
$gas = xyes
5339 tmake_file
=mips
/t-svr4-gas
5341 tmake_file
=mips
/t-svr4
5342 extra_passes
="mips-tfile mips-tdump"
5344 if test x
$gnu_ld != xyes
5349 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5350 tm_file
="mips/svr4-4.h ${tm_file}"
5351 if test x
$stabs = xyes
; then
5352 tm_file
="${tm_file} dbx.h"
5355 xmake_file
=mips
/x-sysv
5356 if test x
$gas = xyes
5358 tmake_file
=mips
/t-svr4-gas
5360 tmake_file
=mips
/t-svr4
5361 extra_passes
="mips-tfile mips-tdump"
5363 if test x
$gnu_ld != xyes
5368 mips-
*-riscos[56789]sysv
*)
5369 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5370 if test x
$stabs = xyes
; then
5371 tm_file
="${tm_file} dbx.h"
5374 xmake_file
=mips
/x-sysv
5375 if test x
$gas = xyes
5377 tmake_file
=mips
/t-svr3-gas
5379 tmake_file
=mips
/t-svr3
5380 extra_passes
="mips-tfile mips-tdump"
5382 if test x
$gnu_ld != xyes
5387 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5388 tm_file
="mips/svr3-4.h ${tm_file}"
5389 if test x
$stabs = xyes
; then
5390 tm_file
="${tm_file} dbx.h"
5393 xmake_file
=mips
/x-sysv
5394 if test x
$gas = xyes
5396 tmake_file
=mips
/t-svr3-gas
5398 tmake_file
=mips
/t-svr3
5399 extra_passes
="mips-tfile mips-tdump"
5401 if test x
$gnu_ld != xyes
5406 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5407 tm_file
=mips
/mips-5.h
5408 if test x
$stabs = xyes
; then
5409 tm_file
="${tm_file} dbx.h"
5411 if test x
$gas = xyes
5413 tmake_file
=mips
/t-mips-gas
5415 extra_passes
="mips-tfile mips-tdump"
5417 if test x
$gnu_ld != xyes
5425 tm_file
=mips
/ecoffl.h
5426 if test x
$stabs = xyes
; then
5427 tm_file
="${tm_file} dbx.h"
5429 tmake_file
=mips
/t-ecoff
5432 tm_file
="gofast.h mips/ecoff.h"
5433 if test x
$stabs = xyes
; then
5434 tm_file
="${tm_file} dbx.h"
5436 tmake_file
=mips
/t-ecoff
5439 tm_file
="mips/elfl.h"
5440 tmake_file
=mips
/t-elf
5443 tm_file
="mips/elf.h"
5444 tmake_file
=mips
/t-elf
5447 tm_file
="mips/elfl64.h"
5448 tmake_file
=mips
/t-elf
5450 mips64orionel-
*-elf*)
5451 tm_file
="mips/elforion.h mips/elfl64.h"
5452 tmake_file
=mips
/t-elf
5455 tm_file
="mips/elf64.h"
5456 tmake_file
=mips
/t-elf
5459 tm_file
="mips/elforion.h mips/elf64.h"
5460 tmake_file
=mips
/t-elf
5462 mips64orion-
*-rtems*)
5463 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5464 tmake_file
="mips/t-elf t-rtems"
5467 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5468 tmake_file
=mips
/t-r3900
5471 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5472 tmake_file
=mips
/t-r3900
5474 mips-
*-*) # Default MIPS RISC-OS 4.0.
5475 if test x
$stabs = xyes
; then
5476 tm_file
="${tm_file} dbx.h"
5478 if test x
$gas = xyes
5480 tmake_file
=mips
/t-mips-gas
5482 extra_passes
="mips-tfile mips-tdump"
5484 if test x
$gnu_ld != xyes
5492 tm_file
="mn10200/mn10200.h"
5493 if test x
$stabs = xyes
5495 tm_file
="${tm_file} dbx.h"
5501 tm_file
="mn10300/mn10300.h"
5502 if test x
$stabs = xyes
5504 tm_file
="${tm_file} dbx.h"
5509 tm_file
=ns32k
/encore.h
5513 tm_file
=ns32k
/sequent.h
5517 tm_file
=ns32k
/tek6100.h
5521 tm_file
=ns32k
/tek6200.h
5524 # This has not been updated to GCC 2.
5527 # xmake_file=ns32k/x-genix
5528 # tm_file=ns32k/genix.h
5532 tm_file
=ns32k
/merlin.h
5536 tm_file
=ns32k
/pc532-mach.h
5540 tm_file
=ns32k
/pc532-min.h
5541 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5546 tm_file
=ns32k
/netbsd.h
5547 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5548 # On NetBSD, the headers are already okay, except for math.h.
5553 tm_file
="${tm_file} pdp11/2bsd.h"
5562 # This has not been updated to GCC 2.
5565 # xmake_file=pyr/x-pyr
5570 tm_file
="svr4.h pj/linux.h ${tm_file}"
5575 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5582 xmake_file
=romp
/x-mach
5589 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5593 tm_file
=rs6000
/beos.h
5594 xm_file
=rs6000
/xm-beos.h
5595 tmake_file
=rs6000
/t-beos
5596 xmake_file
=rs6000
/x-beos
5599 tm_file
=rs6000
/sysv4.h
5600 xm_file
="rs6000/xm-sysv4.h"
5601 xm_defines
="USG POSIX"
5602 extra_headers
=ppc-asm.h
5603 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5604 xmake_file
=rs6000
/x-sysv4
5607 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5608 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5609 extra_headers
=ppc-asm.h
5612 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5613 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5614 extra_headers
=ppc-asm.h
5617 tm_file
="rs6000/sysv4.h"
5618 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5619 extra_headers
=ppc-asm.h
5622 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5623 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5624 extra_headers
=ppc-asm.h
5627 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5628 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5629 extra_headers
=ppc-asm.h
5631 powerpc-
*-linux-gnulibc1)
5632 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5633 xm_file
=rs6000
/xm-sysv4.h
5634 out_file
=rs6000
/rs6000.c
5635 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5637 extra_headers
=ppc-asm.h
5638 if test x
$enable_threads = xyes
; then
5642 powerpc-
*-linux-gnu*)
5643 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5644 xm_file
="rs6000/xm-sysv4.h"
5645 xm_defines
="USG ${xm_defines}"
5646 out_file
=rs6000
/rs6000.c
5647 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5649 extra_headers
=ppc-asm.h
5650 if test x
$enable_threads = xyes
; then
5654 powerpc-wrs-vxworks
*)
5656 xm_file
="rs6000/xm-sysv4.h"
5657 xm_defines
="USG POSIX"
5658 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5659 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5660 extra_headers
=ppc-asm.h
5661 thread_file
='vxworks'
5663 powerpcle-wrs-vxworks
*)
5665 xm_file
="rs6000/xm-sysv4.h"
5666 xm_defines
="USG POSIX"
5667 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5668 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5669 extra_headers
=ppc-asm.h
5670 thread_file
='vxworks'
5673 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5674 xm_file
="rs6000/xm-sysv4.h"
5675 xm_defines
="USG POSIX"
5676 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5677 xmake_file
=rs6000
/x-sysv4
5678 extra_headers
=ppc-asm.h
5681 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5682 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5683 extra_headers
=ppc-asm.h
5685 powerpcle-
*-eabisim*)
5686 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5687 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5688 extra_headers
=ppc-asm.h
5691 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5692 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5693 extra_headers
=ppc-asm.h
5695 powerpcle-
*-solaris2*)
5696 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5697 xm_file
="rs6000/xm-sysv4.h"
5698 xm_defines
="USG POSIX"
5699 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5700 xmake_file
=rs6000
/x-sysv4
5701 extra_headers
=ppc-asm.h
5703 rs6000-ibm-aix3.
[01]*)
5704 tm_file
=rs6000
/aix31.h
5705 xmake_file
=rs6000
/x-aix31
5709 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5710 tm_file
=rs6000
/aix3newas.h
5711 if test x
$host != x
$target
5713 tmake_file
=rs6000
/t-xnewas
5715 tmake_file
=rs6000
/t-newas
5720 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5721 tm_file
=rs6000
/aix41.h
5722 if test x
$host != x
$target
5724 tmake_file
=rs6000
/t-xnewas
5726 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5728 xmake_file
=rs6000
/x-aix41
5732 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5733 tm_file
=rs6000
/aix43.h
5734 tmake_file
=rs6000
/t-aix43
5735 xmake_file
=rs6000
/x-aix41
5739 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5740 tm_file
=rs6000
/aix43.h
5741 tmake_file
=rs6000
/t-aix43
5742 xmake_file
=rs6000
/x-aix41
5755 tm_file
=rs6000
/mach.h
5756 xm_file
="${xm_file} rs6000/xm-mach.h"
5757 xmake_file
=rs6000
/x-mach
5761 tm_file
=rs6000
/lynx.h
5762 xm_file
=rs6000
/xm-lynx.h
5763 tmake_file
=rs6000
/t-rs6000
5764 xmake_file
=rs6000
/x-lynx
5772 tmake_file
="sh/t-sh t-rtems"
5773 tm_file
=sh
/rtemself.h
5777 tmake_file
="sh/t-sh t-rtems"
5786 xm_file
="xm-alloca.h ${xm_file}"
5789 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5790 tm_file
=sparc
/vxsparc.h
5791 tmake_file
=sparc
/t-vxsparc
5793 thread_file
='vxworks'
5796 tmake_file
=sparc
/t-sparcbare
5797 tm_file
="sparc/aout.h libgloss.h"
5800 tm_file
=sparc
/netbsd.h
5805 # we need collect2 until our bug is fixed...
5813 tmake_file
=sparc
/t-elf
5814 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5818 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5819 xm_file
="${xm_file} sparc/xm-linux.h"
5820 tm_file
=sparc
/linux-aout.h
5824 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5825 xm_file
="${xm_file} sparc/xm-linux.h"
5827 tm_file
=sparc
/linux.h
5828 tmake_file
="t-linux t-linux-gnulibc1"
5829 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5833 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5834 xm_file
="${xm_file} sparc/xm-linux.h"
5836 tm_file
=sparc
/linux.h
5837 tmake_file
="t-linux"
5838 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5840 if test x
$enable_threads = xyes
; then
5846 if test x
$gas = xyes
5848 tm_file
=sparc
/lynx.h
5850 tm_file
=sparc
/lynx-ng.h
5852 xm_file
=sparc
/xm-lynx.h
5853 tmake_file
=sparc
/t-sunos41
5857 tmake_file
="sparc/t-sparcbare t-rtems"
5858 tm_file
=sparc
/rtems.h
5860 sparc-
*-rtems*|sparc-
*-rtemself*)
5861 tm_file
="sparc/rtemself.h"
5862 tmake_file
="sparc/t-elf t-rtems"
5863 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5867 sparcv9-
*-solaris2*)
5868 if test x
$gnu_ld = xyes
5870 tm_file
=sparc
/sol2-64.h
5872 tm_file
=sparc
/sol2-sld-64.h
5874 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5875 xm_defines
="USG POSIX"
5876 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5877 xmake_file
=sparc
/x-sysv4
5878 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5880 if test x
${enable_threads} = x
; then
5881 enable_threads
=$have_pthread_h
5882 if test x
${enable_threads} = x
; then
5883 enable_threads
=$have_thread_h
5886 if test x
${enable_threads} = xyes
; then
5887 if test x
${have_pthread_h} = xyes
; then
5890 thread_file
='solaris'
5894 sparc-hal-solaris2
*)
5895 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5896 xm_defines
="USG POSIX"
5897 tm_file
="sparc/sol2.h sparc/hal.h"
5898 tmake_file
="sparc/t-halos sparc/t-sol2"
5899 xmake_file
=sparc
/x-sysv4
5900 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5909 thread_file
='solaris'
5912 if test x
$gnu_ld = xyes
5914 tm_file
=sparc
/sol2.h
5916 tm_file
=sparc
/sol2-sld.h
5918 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5919 xm_defines
="USG POSIX"
5920 tmake_file
=sparc
/t-sol2
5921 xmake_file
=sparc
/x-sysv4
5922 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5924 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
5926 if test x
$gnu_ld = xyes
5928 tm_file
=sparc
/sol2-64.h
5930 tm_file
=sparc
/sol2-sld-64.h
5932 tmake_file
="$tmake_file sparc/t-sol2-64"
5943 if test x
${enable_threads} = x
; then
5944 enable_threads
=$have_pthread_h
5945 if test x
${enable_threads} = x
; then
5946 enable_threads
=$have_thread_h
5949 if test x
${enable_threads} = xyes
; then
5950 if test x
${have_pthread_h} = xyes
; then
5953 thread_file
='solaris'
5958 tm_file
=sparc
/sunos4.h
5959 tmake_file
=sparc
/t-sunos40
5963 tm_file
=sparc
/sunos4.h
5964 tmake_file
=sparc
/t-sunos41
5966 if test x
$gas = xyes
; then
5967 tm_file
="${tm_file} sparc/sun4gas.h"
5971 tm_file
=sparc
/sun4o3.h
5975 tm_file
=sparc
/sysv4.h
5976 xm_file
="sparc/xm-sysv4.h"
5977 xm_defines
="USG POSIX"
5979 xmake_file
=sparc
/x-sysv4
5980 extra_parts
="crtbegin.o crtend.o"
5983 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5984 xm_defines
="USG POSIX"
5985 tm_file
=sparc
/vxsim.h
5986 tmake_file
=sparc
/t-vxsparc
5987 xmake_file
=sparc
/x-sysv4
5990 tm_file
="sparc/splet.h libgloss.h"
5991 tmake_file
=sparc
/t-splet
5994 tm_file
="sparc/litecoff.h libgloss.h"
5995 tmake_file
=sparc
/t-sparclite
5998 tm_file
="sparc/lite.h aoutos.h libgloss.h"
5999 tmake_file
=sparc
/t-sparclite
6002 tm_file
="sparc/liteelf.h"
6003 tmake_file
=sparc
/t-sparclite
6004 extra_parts
="crtbegin.o crtend.o"
6007 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6008 tmake_file
=sparc
/t-sp86x
6011 tm_file
="sparc/sp86x-elf.h"
6012 tmake_file
=sparc
/t-sp86x
6013 extra_parts
="crtbegin.o crtend.o"
6016 tmake_file
=sparc
/t-sp64
6017 tm_file
=sparc
/sp64-aout.h
6020 tmake_file
=sparc
/t-sp64
6021 tm_file
=sparc
/sp64-elf.h
6022 extra_parts
="crtbegin.o crtend.o"
6024 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6025 tmake_file
="t-linux sparc/t-linux64"
6026 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6027 tm_file
=sparc
/linux64.h
6029 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6031 if test x
$enable_threads = xyes
; then
6036 # This hasn't been upgraded to GCC 2.
6037 # tahoe-harris-*) # Harris tahoe, using COFF.
6038 # tm_file=tahoe/harris.h
6040 # tahoe-*-bsd*) # tahoe running BSD
6043 { echo "configure: error:
6044 *** The Thumb targets have been depreciated. The equivalent
6045 *** ARM based toolchain can now generated Thumb instructions
6046 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6049 # This hasn't been upgraded to GCC 2.
6056 tm_file
="v850/rtems.h"
6057 xm_file
="v850/xm-v850.h"
6058 tmake_file
="v850/t-v850 t-rtems"
6059 if test x
$stabs = xyes
6061 tm_file
="${tm_file} dbx.h"
6066 target_cpu_default
="TARGET_CPU_generic"
6068 tm_file
="v850/v850.h"
6069 xm_file
="v850/xm-v850.h"
6070 tmake_file
=v850
/t-v850
6071 if test x
$stabs = xyes
6073 tm_file
="${tm_file} dbx.h"
6077 vax-
*-bsd*) # vaxen running BSD
6081 vax-
*-sysv*) # vaxen running system V
6082 tm_file
="${tm_file} vax/vaxv.h"
6087 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6093 tmake_file
="${tmake_file} vax/t-openbsd"
6095 vax-
*-ultrix*) # vaxen running ultrix
6096 tm_file
="${tm_file} vax/ultrix.h"
6100 vax-
*-vms*) # vaxen running VMS
6101 xm_file
=vax
/xm-vms.h
6105 vax-
*-*) # vax default entry
6109 xm_file
="${xm_file} xm-svr3"
6113 echo "Configuration $machine not supported" 1>&2
6120 ;; # Existing GNU/Linux systems do not use the GNU setup.
6122 # On the GNU system, the setup is just about the same on
6123 # each different CPU. The specific machines that GNU
6124 # supports are matched above and just set $cpu_type.
6125 xm_file
="xm-gnu.h ${xm_file}"
6126 tm_file
=${cpu_type}/gnu.h
6127 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6128 # GNU always uses ELF.
6130 # GNU tools are the only tools.
6133 xmake_file
=x-linux
# These details are the same as Linux.
6134 tmake_file
=t-gnu
# These are not.
6137 xmake_try_sysv
=x-sysv
6138 install_headers_dir
=install-headers-cpio
6141 install_headers_dir
=install-headers-cpio
6145 # Distinguish i[34567]86
6146 # Also, do not run mips-tfile on MIPS if using gas.
6147 # Process --with-cpu= for PowerPC/rs6000
6148 target_cpu_default2
=
6151 target_cpu_default2
=1
6154 case $target_alias in
6156 target_cpu_default2
=4
6159 target_cpu_default2
=2
6163 i686-
*-* | i786-
*-*)
6164 target_cpu_default2
=3
6169 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6172 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6175 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6178 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6181 target_cpu_default2
="MASK_CPU_EV5"
6185 if test x
$gas = xyes
6187 if test "$target_cpu_default2" = ""
6189 target_cpu_default2
="MASK_GAS"
6191 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6196 case "x$with_cpu" in
6199 target_cpu_default2
="TARGET_CPU_generic"
6202 # Distinguish cores, and major variants
6203 # arm7m doesn't exist, but D & I don't affect code
6204 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6205 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6206 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6207 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6208 target_cpu_default2
="TARGET_CPU_$with_cpu"
6212 echo "--with-cpu must be passed a value" 1>&2
6217 if test x
$pass2done = xyes
6219 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6226 mips
*-*-ecoff* | mips
*-*-elf*)
6227 if test x
$gas = xyes
6229 if test x
$gnu_ld = xyes
6231 target_cpu_default2
=20
6233 target_cpu_default2
=16
6238 if test x
$gas = xyes
6240 target_cpu_default2
=16
6243 powerpc
*-*-* | rs6000-
*-*)
6244 case "x$with_cpu" in
6248 xcommon | xpower | xpower2 | xpowerpc | xrios \
6249 | xrios1 | xrios2 | xrsc | xrsc1 \
6250 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6251 | xec603e | x740 | x750 | x401 \
6252 | x403 | x505 | x801 | x821 | x823 | x860
)
6253 target_cpu_default2
="\"$with_cpu\""
6257 echo "--with-cpu must be passed a value" 1>&2
6262 if test x
$pass2done = xyes
6264 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6271 case ".$with_cpu" in
6273 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6275 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6276 target_cpu_default2
="TARGET_CPU_$with_cpu"
6279 if test x
$pass2done = xyes
6281 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6289 if test "$target_cpu_default2" != ""
6291 if test "$target_cpu_default" != ""
6293 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6295 target_cpu_default
=$target_cpu_default2
6299 # No need for collect2 if we have the GNU linker.
6300 # Actually, there is now; GNU ld doesn't handle the EH info or
6301 # collecting for shared libraries.
6308 # Save data on machine being used to compile GCC in build_xm_file.
6309 # Save data on host machine in vars host_xm_file and host_xmake_file.
6310 if test x
$pass1done = x
6312 if test x
"$xm_file" = x
6313 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6314 else build_xm_file
=$xm_file
6316 build_xm_defines
=$xm_defines
6317 build_install_headers_dir
=$install_headers_dir
6318 build_exeext
=$exeext
6321 if test x
$pass2done = x
6323 if test x
"$xm_file" = x
6324 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6325 else host_xm_file
=$xm_file
6327 host_xm_defines
=$xm_defines
6328 if test x
"$xmake_file" = x
6329 then xmake_file
=$cpu_type/x-
$cpu_type
6331 host_xmake_file
="$xmake_file"
6332 host_truncate_target
=$truncate_target
6333 host_extra_gcc_objs
=$extra_gcc_objs
6334 host_extra_objs
=$extra_host_objs
6341 extra_objs
="${host_extra_objs} ${extra_objs}"
6343 # Default the target-machine variables that were not explicitly set.
6344 if test x
"$tm_file" = x
6345 then tm_file
=$cpu_type/$cpu_type.h
; fi
6347 if test x
$extra_headers = x
6348 then extra_headers
=; fi
6350 if test x
"$xm_file" = x
6351 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6353 if test x
$md_file = x
6354 then md_file
=$cpu_type/$cpu_type.md
; fi
6356 if test x
$out_file = x
6357 then out_file
=$cpu_type/$cpu_type.c
; fi
6359 if test x
"$tmake_file" = x
6360 then tmake_file
=$cpu_type/t-
$cpu_type
6363 if test x
"$dwarf2" = xyes
6364 then tm_file
="$tm_file tm-dwarf2.h"
6367 if test x
$float_format = x
6368 then float_format
=i64
6371 if test $float_format = none
6372 then float_h_file
=Makefile.
in
6373 else float_h_file
=float-
$float_format.h
6376 # Handle cpp installation.
6377 if test x
$enable_cpp != xno
6379 tmake_file
="$tmake_file t-install-cpp"
6382 # Say what files are being used for the output code and MD file.
6383 echo "Using \`$srcdir/config/$out_file' to output insns."
6384 echo "Using \`$srcdir/config/$md_file' as machine description file."
6387 for f
in $tm_file; do
6390 if test $count = ax
; then
6391 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6393 echo "Using the following target machine macro files:"
6394 for f
in $tm_file; do
6395 echo " $srcdir/config/$f"
6400 for f
in $host_xm_file; do
6403 if test $count = ax
; then
6404 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6406 echo "Using the following host machine macro files:"
6407 for f
in $host_xm_file; do
6408 echo " $srcdir/config/$f"
6412 if test "$host_xm_file" != "$build_xm_file"; then
6414 for f
in $build_xm_file; do
6417 if test $count = ax
; then
6418 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6420 echo "Using the following build machine macro files:"
6421 for f
in $build_xm_file; do
6422 echo " $srcdir/config/$f"
6427 if test x
$thread_file = x
; then
6428 if test x
$target_thread_file != x
; then
6429 thread_file
=$target_thread_file
6431 thread_file
='single'
6435 # Set up the header files.
6436 # $links is the list of header files to create.
6437 # $vars is the list of shell variables with file names to include.
6438 # auto-host.h is the file containing items generated by autoconf and is
6439 # the first file included by config.h.
6441 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6443 # If host=build, it is correct to have hconfig include auto-host.h
6444 # as well. If host!=build, we are in error and need to do more
6445 # work to find out the build config parameters.
6446 if test x
$host = x
$build
6448 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6450 # We create a subdir, then run autoconf in the subdir.
6451 # To prevent recursion we set host and build for the new
6452 # invocation of configure to the build for this invocation
6459 /*) realsrcdir
=${srcdir};;
6460 *) realsrcdir
=..
/${srcdir};;
6462 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6463 --target=$target --host=$build --build=$build
6465 # We just finished tests for the build machine, so rename
6466 # the file auto-build.h in the gcc directory.
6467 mv auto-host.h ..
/auto-build.h
6470 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6473 xm_file
="gansidecl.h ${xm_file}"
6474 tm_file
="gansidecl.h ${tm_file}"
6476 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6477 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6478 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6481 if test -f config.status
; then mv -f config.status config.bak
; fi
6484 while test -n "$vars"
6486 set $vars; var
=$1; shift; vars
=$
*
6487 set $links; link
=$1; shift; links
=$
*
6488 set $defines; define
=$1; shift; defines
=$
*
6491 # Make sure the file is created, even if it is empty.
6494 # Define TARGET_CPU_DEFAULT if the system wants one.
6495 # This substitutes for lots of *.h files.
6496 if test "$target_cpu_default" != "" -a $link = tm.h
6498 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6501 for file in `eval echo '$'$var`; do
6506 echo '#ifdef IN_GCC' >>$link
6509 echo "#include \"$file\"" >>$link
6514 echo '#endif' >>$link
6519 for def
in `eval echo '$'$define`; do
6520 echo "#ifndef $def" >>$link
6521 echo "#define $def" >>$link
6522 echo "#endif" >>$link
6526 # Truncate the target if necessary
6527 if test x
$host_truncate_target != x
; then
6528 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6531 # Get the version trigger filename from the toplevel
6532 if test "${with_gcc_version_trigger+set}" = set; then
6533 gcc_version_trigger
=$with_gcc_version_trigger
6535 gcc_version_trigger
=${srcdir}/version.c
6537 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6539 # Internationalization
6541 VERSION
="$gcc_version"
6542 cat >> confdefs.h
<<EOF
6543 #define PACKAGE "$PACKAGE"
6546 cat >> confdefs.h
<<EOF
6547 #define VERSION "$VERSION"
6555 # NLS support is still experimental, so disable it by default for now.
6556 # Check whether --enable-nls or --disable-nls was given.
6557 if test "${enable_nls+set}" = set; then
6558 enableval
="$enable_nls"
6566 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6567 echo "configure:6611: checking for strerror in -lcposix" >&5
6568 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 ac_save_LIBS
="$LIBS"
6573 LIBS
="-lcposix $LIBS"
6574 cat > conftest.
$ac_ext <<EOF
6575 #line 6619 "configure"
6576 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6586 if { (eval echo configure
:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6588 eval "ac_cv_lib_$ac_lib_var=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.
$ac_ext >&5
6593 eval "ac_cv_lib_$ac_lib_var=no"
6596 LIBS
="$ac_save_LIBS"
6599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6600 echo "$ac_t""yes" 1>&6
6601 LIBS
="$LIBS -lcposix"
6603 echo "$ac_t""no" 1>&6
6608 echo $ac_n "checking for working const""... $ac_c" 1>&6
6609 echo "configure:6653: checking for working const" >&5
6610 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 cat > conftest.
$ac_ext <<EOF
6614 #line 6658 "configure"
6615 #include "confdefs.h"
6619 /* Ultrix mips cc rejects this. */
6620 typedef int charset[2]; const charset x;
6621 /* SunOS 4.1.1 cc rejects this. */
6622 char const *const *ccp;
6624 /* NEC SVR4.0.2 mips cc rejects this. */
6625 struct point {int x, y;};
6626 static struct point const zero = {0,0};
6627 /* AIX XL C 1.02.0.0 rejects this.
6628 It does not let you subtract one const X* pointer from another in an arm
6629 of an if-expression whose if-part is not a constant expression */
6630 const char *g = "string";
6631 ccp = &g + (g ? g-g : 0);
6632 /* HPUX 7.0 cc rejects these. */
6635 ccp = (char const *const *) p;
6636 { /* SCO 3.2v4 cc rejects this. */
6638 char const *s = 0 ? (char *) 0 : (char const *) 0;
6642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6644 const int *foo = &x[0];
6647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6648 typedef const int *iptr;
6652 { /* AIX XL C 1.02.0.0 rejects this saying
6653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6654 struct s { int j; const int *ap[3]; };
6655 struct s *b; b->j = 5;
6657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6663 if { (eval echo configure
:6707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6667 echo "configure: failed program was:" >&5
6668 cat conftest.
$ac_ext >&5
6675 echo "$ac_t""$ac_cv_c_const" 1>&6
6676 if test $ac_cv_c_const = no
; then
6677 cat >> confdefs.h
<<\EOF
6683 echo $ac_n "checking for inline""... $ac_c" 1>&6
6684 echo "configure:6728: checking for inline" >&5
6685 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6689 for ac_kw
in inline __inline__ __inline
; do
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6735 "configure"
6692 #include "confdefs.h"
6698 if { (eval echo configure
:6742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6700 ac_cv_c_inline
=$ac_kw; break
6702 echo "configure: failed program was:" >&5
6703 cat conftest.
$ac_ext >&5
6710 echo "$ac_t""$ac_cv_c_inline" 1>&6
6711 case "$ac_cv_c_inline" in
6713 no
) cat >> confdefs.h
<<\EOF
6717 *) cat >> confdefs.h
<<EOF
6718 #define inline $ac_cv_c_inline
6723 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6724 echo "configure:6768: checking for off_t" >&5
6725 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6728 cat > conftest.
$ac_ext <<EOF
6729 #line 6773 "configure"
6730 #include "confdefs.h"
6731 #include <sys/types.h>
6737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6738 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6740 ac_cv_type_off_t
=yes
6748 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6749 if test $ac_cv_type_off_t = no
; then
6750 cat >> confdefs.h
<<\EOF
6756 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6757 echo "configure:6801: checking for size_t" >&5
6758 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6761 cat > conftest.
$ac_ext <<EOF
6762 #line 6806 "configure"
6763 #include "confdefs.h"
6764 #include <sys/types.h>
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6773 ac_cv_type_size_t
=yes
6776 ac_cv_type_size_t
=no
6781 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6782 if test $ac_cv_type_size_t = no
; then
6783 cat >> confdefs.h
<<\EOF
6784 #define size_t unsigned
6789 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6790 # for constant arguments. Useless!
6791 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6792 echo "configure:6836: checking for working alloca.h" >&5
6793 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 cat > conftest.
$ac_ext <<EOF
6797 #line 6841 "configure"
6798 #include "confdefs.h"
6801 char *p = alloca(2 * sizeof(int));
6804 if { (eval echo configure
:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6806 ac_cv_header_alloca_h
=yes
6808 echo "configure: failed program was:" >&5
6809 cat conftest.
$ac_ext >&5
6811 ac_cv_header_alloca_h
=no
6816 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6817 if test $ac_cv_header_alloca_h = yes; then
6818 cat >> confdefs.h
<<\EOF
6819 #define HAVE_ALLOCA_H 1
6824 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6825 echo "configure:6869: checking for alloca" >&5
6826 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.
$ac_ext <<EOF
6830 #line 6874 "configure"
6831 #include "confdefs.h"
6834 # define alloca __builtin_alloca
6837 # include <malloc.h>
6838 # define alloca _alloca
6841 # include <alloca.h>
6846 # ifndef alloca /* predefined by HP cc +Olibcalls */
6855 char *p = (char *) alloca(1);
6858 if { (eval echo configure
:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6860 ac_cv_func_alloca_works
=yes
6862 echo "configure: failed program was:" >&5
6863 cat conftest.
$ac_ext >&5
6865 ac_cv_func_alloca_works
=no
6870 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6871 if test $ac_cv_func_alloca_works = yes; then
6872 cat >> confdefs.h
<<\EOF
6873 #define HAVE_ALLOCA 1
6878 if test $ac_cv_func_alloca_works = no
; then
6879 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6880 # that cause trouble. Some versions do not even contain alloca or
6881 # contain a buggy version. If you still want to use their alloca,
6882 # use ar to extract alloca.o from them instead of compiling alloca.c.
6883 ALLOCA
=alloca.
${ac_objext}
6884 cat >> confdefs.h
<<\EOF
6889 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6890 echo "configure:6934: checking whether alloca needs Cray hooks" >&5
6891 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6892 echo $ac_n "(cached) $ac_c" 1>&6
6894 cat > conftest.
$ac_ext <<EOF
6895 #line 6939 "configure"
6896 #include "confdefs.h"
6897 #if defined(CRAY) && ! defined(CRAY2)
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 egrep "webecray" >/dev
/null
2>&1; then
6916 echo "$ac_t""$ac_cv_os_cray" 1>&6
6917 if test $ac_cv_os_cray = yes; then
6918 for ac_func
in _getb67 GETB67 getb67
; do
6919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6920 echo "configure:6964: checking for $ac_func" >&5
6921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6924 cat > conftest.
$ac_ext <<EOF
6925 #line 6969 "configure"
6926 #include "confdefs.h"
6927 /* System header to define __stub macros and hopefully few prototypes,
6928 which can conflict with char $ac_func(); below. */
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */
6937 /* The GNU C library defines this for functions which it implements
6938 to always fail with ENOSYS. Some functions are actually named
6939 something starting with __ and the normal name is an alias. */
6940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6948 if { (eval echo configure
:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6950 eval "ac_cv_func_$ac_func=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.
$ac_ext >&5
6955 eval "ac_cv_func_$ac_func=no"
6960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6961 echo "$ac_t""yes" 1>&6
6962 cat >> confdefs.h
<<EOF
6963 #define CRAY_STACKSEG_END $ac_func
6968 echo "$ac_t""no" 1>&6
6974 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6975 echo "configure:7019: checking stack direction for C alloca" >&5
6976 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 if test "$cross_compiling" = yes; then
6980 ac_cv_c_stack_direction
=0
6982 cat > conftest.
$ac_ext <<EOF
6983 #line 7027 "configure"
6984 #include "confdefs.h"
6985 find_stack_direction ()
6987 static char *addr = 0;
6992 return find_stack_direction ();
6995 return (&dummy > addr) ? 1 : -1;
6999 exit (find_stack_direction() < 0);
7002 if { (eval echo configure
:7046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7004 ac_cv_c_stack_direction
=1
7006 echo "configure: failed program was:" >&5
7007 cat conftest.
$ac_ext >&5
7009 ac_cv_c_stack_direction
=-1
7016 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7017 cat >> confdefs.h
<<EOF
7018 #define STACK_DIRECTION $ac_cv_c_stack_direction
7023 for ac_hdr
in unistd.h
7025 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7027 echo "configure:7071: checking for $ac_hdr" >&5
7028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7031 cat > conftest.
$ac_ext <<EOF
7032 #line 7076 "configure"
7033 #include "confdefs.h"
7036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7037 { (eval echo configure
:7081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7039 if test -z "$ac_err"; then
7041 eval "ac_cv_header_$ac_safe=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.
$ac_ext >&5
7047 eval "ac_cv_header_$ac_safe=no"
7051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7053 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7054 cat >> confdefs.h
<<EOF
7055 #define $ac_tr_hdr 1
7059 echo "$ac_t""no" 1>&6
7063 for ac_func
in getpagesize
7065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7066 echo "configure:7110: checking for $ac_func" >&5
7067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7070 cat > conftest.
$ac_ext <<EOF
7071 #line 7115 "configure"
7072 #include "confdefs.h"
7073 /* System header to define __stub macros and hopefully few prototypes,
7074 which can conflict with char $ac_func(); below. */
7076 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7083 /* The GNU C library defines this for functions which it implements
7084 to always fail with ENOSYS. Some functions are actually named
7085 something starting with __ and the normal name is an alias. */
7086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7094 if { (eval echo configure
:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7096 eval "ac_cv_func_$ac_func=yes"
7098 echo "configure: failed program was:" >&5
7099 cat conftest.
$ac_ext >&5
7101 eval "ac_cv_func_$ac_func=no"
7106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7109 cat >> confdefs.h
<<EOF
7110 #define $ac_tr_func 1
7114 echo "$ac_t""no" 1>&6
7118 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7119 echo "configure:7163: checking for working mmap" >&5
7120 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7121 echo $ac_n "(cached) $ac_c" 1>&6
7123 if test "$cross_compiling" = yes; then
7124 ac_cv_func_mmap_fixed_mapped
=no
7126 cat > conftest.
$ac_ext <<EOF
7127 #line 7171 "configure"
7128 #include "confdefs.h"
7130 /* Thanks to Mike Haertel and Jim Avera for this test.
7131 Here is a matrix of mmap possibilities:
7132 mmap private not fixed
7133 mmap private fixed at somewhere currently unmapped
7134 mmap private fixed at somewhere already mapped
7135 mmap shared not fixed
7136 mmap shared fixed at somewhere currently unmapped
7137 mmap shared fixed at somewhere already mapped
7138 For private mappings, we should verify that changes cannot be read()
7139 back from the file, nor mmap's back from the file at a different
7140 address. (There have been systems where private was not correctly
7141 implemented like the infamous i386 svr4.0, and systems where the
7142 VM page cache was not coherent with the filesystem buffer cache
7143 like early versions of FreeBSD and possibly contemporary NetBSD.)
7144 For shared mappings, we should conversely verify that changes get
7145 propogated back to all the places they're supposed to be.
7147 Grep wants private fixed already mapped.
7148 The main things grep needs to know about mmap are:
7149 * does it exist and is it safe to write into the mmap'd area
7150 * how to use it (BSD variants) */
7151 #include <sys/types.h>
7153 #include <sys/mman.h>
7155 /* This mess was copied from the GNU getpagesize.h. */
7156 #ifndef HAVE_GETPAGESIZE
7157 # ifdef HAVE_UNISTD_H
7158 # include <unistd.h>
7161 /* Assume that all systems that can run configure have sys/param.h. */
7162 # ifndef HAVE_SYS_PARAM_H
7163 # define HAVE_SYS_PARAM_H 1
7166 # ifdef _SC_PAGESIZE
7167 # define getpagesize() sysconf(_SC_PAGESIZE)
7168 # else /* no _SC_PAGESIZE */
7169 # ifdef HAVE_SYS_PARAM_H
7170 # include <sys/param.h>
7171 # ifdef EXEC_PAGESIZE
7172 # define getpagesize() EXEC_PAGESIZE
7173 # else /* no EXEC_PAGESIZE */
7175 # define getpagesize() NBPG * CLSIZE
7178 # endif /* no CLSIZE */
7179 # else /* no NBPG */
7181 # define getpagesize() NBPC
7182 # else /* no NBPC */
7184 # define getpagesize() PAGESIZE
7185 # endif /* PAGESIZE */
7186 # endif /* no NBPC */
7187 # endif /* no NBPG */
7188 # endif /* no EXEC_PAGESIZE */
7189 # else /* no HAVE_SYS_PARAM_H */
7190 # define getpagesize() 8192 /* punt totally */
7191 # endif /* no HAVE_SYS_PARAM_H */
7192 # endif /* no _SC_PAGESIZE */
7194 #endif /* no HAVE_GETPAGESIZE */
7197 extern "C" { void *malloc(unsigned); }
7205 char *data, *data2, *data3;
7209 pagesize = getpagesize();
7212 * First, make a file with some known garbage in it.
7214 data = malloc(pagesize);
7217 for (i = 0; i < pagesize; ++i)
7218 *(data + i) = rand();
7220 fd = creat("conftestmmap", 0600);
7223 if (write(fd, data, pagesize) != pagesize)
7228 * Next, try to mmap the file at a fixed address which
7229 * already has something else allocated at it. If we can,
7230 * also make sure that we see the same garbage.
7232 fd = open("conftestmmap", O_RDWR);
7235 data2 = malloc(2 * pagesize);
7238 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7239 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7242 for (i = 0; i < pagesize; ++i)
7243 if (*(data + i) != *(data2 + i))
7247 * Finally, make sure that changes to the mapped area
7248 * do not percolate back to the file as seen by read().
7249 * (This is a bug on some variants of i386 svr4.0.)
7251 for (i = 0; i < pagesize; ++i)
7252 *(data2 + i) = *(data2 + i) + 1;
7253 data3 = malloc(pagesize);
7256 if (read(fd, data3, pagesize) != pagesize)
7258 for (i = 0; i < pagesize; ++i)
7259 if (*(data + i) != *(data3 + i))
7262 unlink("conftestmmap");
7267 if { (eval echo configure
:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7269 ac_cv_func_mmap_fixed_mapped
=yes
7271 echo "configure: failed program was:" >&5
7272 cat conftest.
$ac_ext >&5
7274 ac_cv_func_mmap_fixed_mapped
=no
7281 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7282 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7283 cat >> confdefs.h
<<\EOF
7290 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7291 unistd.h sys
/param.h
7293 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7295 echo "configure:7339: checking for $ac_hdr" >&5
7296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 cat > conftest.
$ac_ext <<EOF
7300 #line 7344 "configure"
7301 #include "confdefs.h"
7304 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7305 { (eval echo configure
:7349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7306 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7307 if test -z "$ac_err"; then
7309 eval "ac_cv_header_$ac_safe=yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.
$ac_ext >&5
7315 eval "ac_cv_header_$ac_safe=no"
7319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7322 cat >> confdefs.h
<<EOF
7323 #define $ac_tr_hdr 1
7327 echo "$ac_t""no" 1>&6
7331 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7332 strdup __argz_count __argz_stringify __argz_next
7334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7335 echo "configure:7379: checking for $ac_func" >&5
7336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7339 cat > conftest.
$ac_ext <<EOF
7340 #line 7384 "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func(); below. */
7345 /* Override any gcc2 internal prototype to avoid an error. */
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 if { (eval echo configure
:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7365 eval "ac_cv_func_$ac_func=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.
$ac_ext >&5
7370 eval "ac_cv_func_$ac_func=no"
7375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7378 cat >> confdefs.h
<<EOF
7379 #define $ac_tr_func 1
7383 echo "$ac_t""no" 1>&6
7388 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7389 for ac_func
in stpcpy
7391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7392 echo "configure:7436: checking for $ac_func" >&5
7393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 cat > conftest.
$ac_ext <<EOF
7397 #line 7441 "configure"
7398 #include "confdefs.h"
7399 /* System header to define __stub macros and hopefully few prototypes,
7400 which can conflict with char $ac_func(); below. */
7402 /* Override any gcc2 internal prototype to avoid an error. */
7403 /* We use char because int might match the return type of a gcc2
7404 builtin and then its argument prototype would still apply. */
7409 /* The GNU C library defines this for functions which it implements
7410 to always fail with ENOSYS. Some functions are actually named
7411 something starting with __ and the normal name is an alias. */
7412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7420 if { (eval echo configure
:7464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7422 eval "ac_cv_func_$ac_func=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.
$ac_ext >&5
7427 eval "ac_cv_func_$ac_func=no"
7432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7435 cat >> confdefs.h
<<EOF
7436 #define $ac_tr_func 1
7440 echo "$ac_t""no" 1>&6
7445 if test "${ac_cv_func_stpcpy}" = "yes"; then
7446 cat >> confdefs.h
<<\EOF
7447 #define HAVE_STPCPY 1
7452 if test $ac_cv_header_locale_h = yes; then
7453 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7454 echo "configure:7498: checking for LC_MESSAGES" >&5
7455 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 cat > conftest.
$ac_ext <<EOF
7459 #line 7503 "configure"
7460 #include "confdefs.h"
7466 if { (eval echo configure
:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7468 am_cv_val_LC_MESSAGES
=yes
7470 echo "configure: failed program was:" >&5
7471 cat conftest.
$ac_ext >&5
7473 am_cv_val_LC_MESSAGES
=no
7478 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7479 if test $am_cv_val_LC_MESSAGES = yes; then
7480 cat >> confdefs.h
<<\EOF
7481 #define HAVE_LC_MESSAGES 1
7486 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7487 echo "configure:7531: checking whether NLS is requested" >&5
7488 # Check whether --enable-nls or --disable-nls was given.
7489 if test "${enable_nls+set}" = set; then
7490 enableval
="$enable_nls"
7496 echo "$ac_t""$USE_NLS" 1>&6
7499 USE_INCLUDED_LIBINTL
=no
7501 if test "$USE_NLS" = "yes"; then
7502 cat >> confdefs.h
<<\EOF
7503 #define ENABLE_NLS 1
7506 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7507 echo "configure:7551: checking whether included gettext is requested" >&5
7508 # Check whether --with-included-gettext or --without-included-gettext was given.
7509 if test "${with_included_gettext+set}" = set; then
7510 withval
="$with_included_gettext"
7511 nls_cv_force_use_gnu_gettext
=$withval
7513 nls_cv_force_use_gnu_gettext
=no
7516 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7518 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7519 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7521 nls_cv_header_libgt
=
7524 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7525 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7526 echo "configure:7570: checking for libintl.h" >&5
7527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7530 cat > conftest.
$ac_ext <<EOF
7531 #line 7575 "configure"
7532 #include "confdefs.h"
7533 #include <libintl.h>
7535 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7536 { (eval echo configure
:7580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7537 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7538 if test -z "$ac_err"; then
7540 eval "ac_cv_header_$ac_safe=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.
$ac_ext >&5
7546 eval "ac_cv_header_$ac_safe=no"
7550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7553 echo "configure:7597: checking for gettext in libc" >&5
7554 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7555 echo $ac_n "(cached) $ac_c" 1>&6
7557 cat > conftest.
$ac_ext <<EOF
7558 #line 7602 "configure"
7559 #include "confdefs.h"
7560 #include <libintl.h>
7562 return (int) gettext ("")
7565 if { (eval echo configure
:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7567 gt_cv_func_gettext_libc
=yes
7569 echo "configure: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7572 gt_cv_func_gettext_libc
=no
7577 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7579 if test "$gt_cv_func_gettext_libc" != "yes"; then
7580 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7581 echo "configure:7625: checking for bindtextdomain in -lintl" >&5
7582 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 ac_save_LIBS
="$LIBS"
7588 cat > conftest.
$ac_ext <<EOF
7589 #line 7633 "configure"
7590 #include "confdefs.h"
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7594 char bindtextdomain();
7600 if { (eval echo configure
:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7602 eval "ac_cv_lib_$ac_lib_var=yes"
7604 echo "configure: failed program was:" >&5
7605 cat conftest.
$ac_ext >&5
7607 eval "ac_cv_lib_$ac_lib_var=no"
7610 LIBS
="$ac_save_LIBS"
7613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7615 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7616 echo "configure:7660: checking for gettext in libintl" >&5
7617 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7618 echo $ac_n "(cached) $ac_c" 1>&6
7620 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7621 echo "configure:7665: checking for gettext in -lintl" >&5
7622 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7626 ac_save_LIBS
="$LIBS"
7628 cat > conftest.
$ac_ext <<EOF
7629 #line 7673 "configure"
7630 #include "confdefs.h"
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7640 if { (eval echo configure
:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7642 eval "ac_cv_lib_$ac_lib_var=yes"
7644 echo "configure: failed program was:" >&5
7645 cat conftest.
$ac_ext >&5
7647 eval "ac_cv_lib_$ac_lib_var=no"
7650 LIBS
="$ac_save_LIBS"
7653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7655 gt_cv_func_gettext_libintl
=yes
7657 echo "$ac_t""no" 1>&6
7658 gt_cv_func_gettext_libintl
=no
7663 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7665 echo "$ac_t""no" 1>&6
7670 if test "$gt_cv_func_gettext_libc" = "yes" \
7671 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7672 cat >> confdefs.h
<<\EOF
7673 #define HAVE_GETTEXT 1
7676 # Extract the first word of "msgfmt", so it can be a program name with args.
7677 set dummy msgfmt
; ac_word
=$2
7678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7679 echo "configure:7723: checking for $ac_word" >&5
7680 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7685 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7688 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7689 for ac_dir
in $PATH; do
7690 test -z "$ac_dir" && ac_dir
=.
7691 if test -f $ac_dir/$ac_word; then
7692 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7693 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7699 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7703 MSGFMT
="$ac_cv_path_MSGFMT"
7704 if test -n "$MSGFMT"; then
7705 echo "$ac_t""$MSGFMT" 1>&6
7707 echo "$ac_t""no" 1>&6
7709 if test "$MSGFMT" != "no"; then
7710 for ac_func
in dcgettext
7712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7713 echo "configure:7757: checking for $ac_func" >&5
7714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7715 echo $ac_n "(cached) $ac_c" 1>&6
7717 cat > conftest.
$ac_ext <<EOF
7718 #line 7762 "configure"
7719 #include "confdefs.h"
7720 /* System header to define __stub macros and hopefully few prototypes,
7721 which can conflict with char $ac_func(); below. */
7723 /* Override any gcc2 internal prototype to avoid an error. */
7724 /* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7730 /* The GNU C library defines this for functions which it implements
7731 to always fail with ENOSYS. Some functions are actually named
7732 something starting with __ and the normal name is an alias. */
7733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7741 if { (eval echo configure
:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7743 eval "ac_cv_func_$ac_func=yes"
7745 echo "configure: failed program was:" >&5
7746 cat conftest.
$ac_ext >&5
7748 eval "ac_cv_func_$ac_func=no"
7753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7754 echo "$ac_t""yes" 1>&6
7755 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7756 cat >> confdefs.h
<<EOF
7757 #define $ac_tr_func 1
7761 echo "$ac_t""no" 1>&6
7765 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7766 set dummy gmsgfmt
; ac_word
=$2
7767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7768 echo "configure:7812: checking for $ac_word" >&5
7769 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7774 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7777 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7780 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7782 for ac_dir
in $ac_dummy; do
7783 test -z "$ac_dir" && ac_dir
=.
7784 if test -f $ac_dir/$ac_word; then
7785 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7790 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7794 GMSGFMT
="$ac_cv_path_GMSGFMT"
7795 if test -n "$GMSGFMT"; then
7796 echo "$ac_t""$GMSGFMT" 1>&6
7798 echo "$ac_t""no" 1>&6
7801 # Extract the first word of "xgettext", so it can be a program name with args.
7802 set dummy xgettext
; ac_word
=$2
7803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7804 echo "configure:7848: checking for $ac_word" >&5
7805 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7810 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7813 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7814 for ac_dir
in $PATH; do
7815 test -z "$ac_dir" && ac_dir
=.
7816 if test -f $ac_dir/$ac_word; then
7817 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7818 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7824 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7828 XGETTEXT
="$ac_cv_path_XGETTEXT"
7829 if test -n "$XGETTEXT"; then
7830 echo "$ac_t""$XGETTEXT" 1>&6
7832 echo "$ac_t""no" 1>&6
7835 cat > conftest.
$ac_ext <<EOF
7836 #line 7880 "configure"
7837 #include "confdefs.h"
7840 extern int _nl_msg_cat_cntr;
7841 return _nl_msg_cat_cntr
7844 if { (eval echo configure
:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7849 echo "configure: failed program was:" >&5
7850 cat conftest.
$ac_ext >&5
7861 echo "$ac_t""no" 1>&6
7865 if test "$CATOBJEXT" = "NONE"; then
7866 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7867 echo "configure:7911: checking whether catgets can be used" >&5
7868 # Check whether --with-catgets or --without-catgets was given.
7869 if test "${with_catgets+set}" = set; then
7870 withval
="$with_catgets"
7871 nls_cv_use_catgets
=$withval
7873 nls_cv_use_catgets
=no
7876 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7878 if test "$nls_cv_use_catgets" = "yes"; then
7879 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7880 echo "configure:7924: checking for main in -li" >&5
7881 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7885 ac_save_LIBS
="$LIBS"
7887 cat > conftest.
$ac_ext <<EOF
7888 #line 7932 "configure"
7889 #include "confdefs.h"
7895 if { (eval echo configure
:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7897 eval "ac_cv_lib_$ac_lib_var=yes"
7899 echo "configure: failed program was:" >&5
7900 cat conftest.
$ac_ext >&5
7902 eval "ac_cv_lib_$ac_lib_var=no"
7905 LIBS
="$ac_save_LIBS"
7908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7912 cat >> confdefs.h
<<EOF
7913 #define $ac_tr_lib 1
7919 echo "$ac_t""no" 1>&6
7922 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7923 echo "configure:7967: checking for catgets" >&5
7924 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 cat > conftest.
$ac_ext <<EOF
7928 #line 7972 "configure"
7929 #include "confdefs.h"
7930 /* System header to define __stub macros and hopefully few prototypes,
7931 which can conflict with char catgets(); below. */
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7940 /* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943 #if defined (__stub_catgets) || defined (__stub___catgets)
7951 if { (eval echo configure
:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7953 eval "ac_cv_func_catgets=yes"
7955 echo "configure: failed program was:" >&5
7956 cat conftest.
$ac_ext >&5
7958 eval "ac_cv_func_catgets=no"
7963 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7965 cat >> confdefs.h
<<\EOF
7966 #define HAVE_CATGETS 1
7969 INTLOBJS
="\$(CATOBJS)"
7970 # Extract the first word of "gencat", so it can be a program name with args.
7971 set dummy gencat
; ac_word
=$2
7972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7973 echo "configure:8017: checking for $ac_word" >&5
7974 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7979 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7982 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7987 for ac_dir
in $ac_dummy; do
7988 test -z "$ac_dir" && ac_dir
=.
7989 if test -f $ac_dir/$ac_word; then
7990 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7995 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7999 GENCAT
="$ac_cv_path_GENCAT"
8000 if test -n "$GENCAT"; then
8001 echo "$ac_t""$GENCAT" 1>&6
8003 echo "$ac_t""no" 1>&6
8005 if test "$GENCAT" != "no"; then
8006 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8007 set dummy gmsgfmt
; ac_word
=$2
8008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8009 echo "configure:8053: checking for $ac_word" >&5
8010 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8015 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8018 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8021 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8023 for ac_dir
in $ac_dummy; do
8024 test -z "$ac_dir" && ac_dir
=.
8025 if test -f $ac_dir/$ac_word; then
8026 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8031 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8035 GMSGFMT
="$ac_cv_path_GMSGFMT"
8036 if test -n "$GMSGFMT"; then
8037 echo "$ac_t""$GMSGFMT" 1>&6
8039 echo "$ac_t""no" 1>&6
8042 if test "$GMSGFMT" = "no"; then
8043 # Extract the first word of "msgfmt", so it can be a program name with args.
8044 set dummy msgfmt
; ac_word
=$2
8045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8046 echo "configure:8090: checking for $ac_word" >&5
8047 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8056 for ac_dir
in $PATH; do
8057 test -z "$ac_dir" && ac_dir
=.
8058 if test -f $ac_dir/$ac_word; then
8059 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8060 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8066 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8070 GMSGFMT
="$ac_cv_path_GMSGFMT"
8071 if test -n "$GMSGFMT"; then
8072 echo "$ac_t""$GMSGFMT" 1>&6
8074 echo "$ac_t""no" 1>&6
8078 # Extract the first word of "xgettext", so it can be a program name with args.
8079 set dummy xgettext
; ac_word
=$2
8080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8081 echo "configure:8125: checking for $ac_word" >&5
8082 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8087 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8091 for ac_dir
in $PATH; do
8092 test -z "$ac_dir" && ac_dir
=.
8093 if test -f $ac_dir/$ac_word; then
8094 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8095 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8101 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8105 XGETTEXT
="$ac_cv_path_XGETTEXT"
8106 if test -n "$XGETTEXT"; then
8107 echo "$ac_t""$XGETTEXT" 1>&6
8109 echo "$ac_t""no" 1>&6
8112 USE_INCLUDED_LIBINTL
=yes
8116 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8118 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8119 nls_cv_header_intl
=intl
/libintl.h
8120 nls_cv_header_libgt
=intl
/libgettext.h
8123 echo "$ac_t""no" 1>&6
8129 if test "$CATOBJEXT" = "NONE"; then
8130 nls_cv_use_gnu_gettext
=yes
8134 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8135 INTLOBJS
="\$(GETTOBJS)"
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:8183: checking for $ac_word" >&5
8140 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8145 ac_cv_path_MSGFMT
="$MSGFMT" # 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_MSGFMT
="$ac_dir/$ac_word"
8159 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8163 MSGFMT
="$ac_cv_path_MSGFMT"
8164 if test -n "$MSGFMT"; then
8165 echo "$ac_t""$MSGFMT" 1>&6
8167 echo "$ac_t""no" 1>&6
8170 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8171 set dummy gmsgfmt
; ac_word
=$2
8172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8173 echo "configure:8217: checking for $ac_word" >&5
8174 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8179 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8182 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8187 for ac_dir
in $ac_dummy; do
8188 test -z "$ac_dir" && ac_dir
=.
8189 if test -f $ac_dir/$ac_word; then
8190 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8195 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8199 GMSGFMT
="$ac_cv_path_GMSGFMT"
8200 if test -n "$GMSGFMT"; then
8201 echo "$ac_t""$GMSGFMT" 1>&6
8203 echo "$ac_t""no" 1>&6
8206 # Extract the first word of "xgettext", so it can be a program name with args.
8207 set dummy xgettext
; ac_word
=$2
8208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8209 echo "configure:8253: checking for $ac_word" >&5
8210 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8215 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8218 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8219 for ac_dir
in $PATH; do
8220 test -z "$ac_dir" && ac_dir
=.
8221 if test -f $ac_dir/$ac_word; then
8222 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8223 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8229 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8233 XGETTEXT
="$ac_cv_path_XGETTEXT"
8234 if test -n "$XGETTEXT"; then
8235 echo "$ac_t""$XGETTEXT" 1>&6
8237 echo "$ac_t""no" 1>&6
8241 USE_INCLUDED_LIBINTL
=yes
8245 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8247 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8248 nls_cv_header_intl
=intl
/libintl.h
8249 nls_cv_header_libgt
=intl
/libgettext.h
8252 if test "$XGETTEXT" != ":"; then
8253 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8256 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8261 # We need to process the po/ directory.
8265 nls_cv_header_intl
=intl
/libintl.h
8266 nls_cv_header_libgt
=intl
/libgettext.h
8272 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8273 # because some of the sources are only built for this goal.
8274 if test "$PACKAGE" = gettext; then
8276 USE_INCLUDED_LIBINTL
=yes
8279 for lang
in $ALL_LINGUAS; do
8280 GMOFILES
="$GMOFILES $lang.gmo"
8281 POFILES
="$POFILES $lang.po"
8297 if test "x$CATOBJEXT" != "x"; then
8298 if test "x$ALL_LINGUAS" = "x"; then
8301 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8302 echo "configure:8346: checking for catalogs to be installed" >&5
8304 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8305 case "$ALL_LINGUAS" in
8306 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8309 LINGUAS
=$NEW_LINGUAS
8310 echo "$ac_t""$LINGUAS" 1>&6
8313 if test -n "$LINGUAS"; then
8314 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8318 if test $ac_cv_header_locale_h = yes; then
8319 INCLUDE_LOCALE_H
="#include <locale.h>"
8322 /* The system does not provide the header <locale.h>. Take care yourself. */"
8326 test -d intl || mkdir intl
8327 if test "$CATOBJEXT" = ".cat"; then
8328 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8329 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8330 echo "configure:8374: checking for linux/version.h" >&5
8331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8334 cat > conftest.
$ac_ext <<EOF
8335 #line 8379 "configure"
8336 #include "confdefs.h"
8337 #include <linux/version.h>
8339 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8340 { (eval echo configure
:8384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8341 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8342 if test -z "$ac_err"; then
8344 eval "ac_cv_header_$ac_safe=yes"
8347 echo "configure: failed program was:" >&5
8348 cat conftest.
$ac_ext >&5
8350 eval "ac_cv_header_$ac_safe=no"
8354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8355 echo "$ac_t""yes" 1>&6
8358 echo "$ac_t""no" 1>&6
8363 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8365 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8366 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8368 if test "$PACKAGE" = "gettext"; then
8379 if test -n "$ac_aux_dir"; then
8380 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8382 if test -z "$MKINSTALLDIRS"; then
8383 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8390 test -d po || mkdir po
8391 if test "x$srcdir" != "x."; then
8392 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8393 posrcprefix
="$srcdir/"
8395 posrcprefix
="../$srcdir/"
8401 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8402 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8404 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8406 # Windows32 Registry support for specifying GCC installation paths.
8407 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8408 if test "${enable_win32_registry+set}" = set; then
8409 enableval
="$enable_win32_registry"
8414 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8415 echo "configure:8459: checking whether windows registry support is requested" >&5
8416 if test x
$enable_win32_registry != xno
; then
8417 cat >> confdefs.h
<<\EOF
8418 #define ENABLE_WIN32_REGISTRY 1
8421 echo "$ac_t""yes" 1>&6
8423 echo "$ac_t""no" 1>&6
8426 # Check if user specified a different registry key.
8427 case x
${enable_win32_registry} in
8430 gcc_cv_win32_registry_key
="$VERSION"
8433 # no registry lookup.
8434 gcc_cv_win32_registry_key
=''
8437 # user-specified key.
8438 gcc_cv_win32_registry_key
="$enable_win32_registry"
8442 if test x
$enable_win32_registry != xno
; then
8443 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8444 echo "configure:8488: checking registry key on windows hosts" >&5
8445 cat >> confdefs.h
<<EOF
8446 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8449 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8452 # Get an absolute path to the GCC top-level source directory
8458 # Conditionalize the makefile for this host machine.
8459 # Make-host contains the concatenation of all host makefile fragments
8460 # [there can be more than one]. This file is built by configure.frag.
8461 host_overrides
=Make-host
8462 dep_host_xmake_file
=
8463 for f
in ..
${host_xmake_file}
8465 if test -f ${srcdir}/config
/$f
8467 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8471 # Conditionalize the makefile for this target machine.
8472 # Make-target contains the concatenation of all host makefile fragments
8473 # [there can be more than one]. This file is built by configure.frag.
8474 target_overrides
=Make-target
8476 for f
in ..
${tmake_file}
8478 if test -f ${srcdir}/config
/$f
8480 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8484 # If the host doesn't support symlinks, modify CC in
8485 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8486 # Otherwise, we can use "CC=$(CC)".
8488 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8490 cc_set_by_configure
="\$(CC)"
8491 quoted_cc_set_by_configure
="\$(CC)"
8492 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8495 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8497 symbolic_link
="cp -p"
8501 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8502 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8503 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8507 out_object_file
=`basename $out_file .c`.o
8510 for f
in $tm_file; do
8513 tm_file_list
="${tm_file_list} $f" ;;
8514 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8519 for f
in $host_xm_file; do
8521 auto-host.h | gansidecl.h | hwint.h
)
8522 host_xm_file_list
="${host_xm_file_list} $f" ;;
8523 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8528 for f
in $build_xm_file; do
8530 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8531 build_xm_file_list
="${build_xm_file_list} $f" ;;
8532 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8536 # Define macro CROSS_COMPILE in compilation
8537 # if this is a cross-compiler.
8538 # Also use all.cross instead of all.internal
8539 # and add cross-make to Makefile.
8540 cross_overrides
="/dev/null"
8541 if test x
$host != x
$target
8543 cross_defines
="CROSS=-DCROSS_COMPILE"
8544 cross_overrides
="${topdir}/cross-make"
8547 # When building gcc with a cross-compiler, we need to fix a few things.
8548 # This must come after cross-make as we want all.build to override
8550 build_overrides
="/dev/null"
8551 if test x
$build != x
$host
8553 build_overrides
="${topdir}/build-make"
8556 # Expand extra_headers to include complete path.
8557 # This substitutes for lots of t-* files.
8559 if test "x$extra_headers" = x
8562 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8563 for file in $extra_headers;
8565 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8569 if test x
$use_collect2 = xno
; then
8573 # Add a definition of USE_COLLECT2 if system wants one.
8574 # Also tell toplev.c what to do.
8575 # This substitutes for lots of t-* files.
8576 if test x
$use_collect2 = x
8581 will_use_collect2
="collect2"
8582 maybe_use_collect2
="-DUSE_COLLECT2"
8586 # Set MD_DEPS if the real md file is in md.pre-cpp.
8587 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8588 # for line oriented comments, so we must always use a GNU cpp. If
8589 # building gcc with a cross compiler, use the cross compiler just
8590 # built. Otherwise, we can use the cpp just built.
8592 if test "x$md_cppflags" = x
8594 md_file_sub
=$srcdir/config
/$md_file
8599 # If we have gas in the build tree, make a link to it.
8600 if test -f ..
/gas
/Makefile
; then
8601 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8604 # If we have nm in the build tree, make a link to it.
8605 if test -f ..
/binutils
/Makefile
; then
8606 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8609 # If we have ld in the build tree, make a link to it.
8610 if test -f ..
/ld
/Makefile
; then
8611 # if test x$use_collect2 = x; then
8612 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8614 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8618 # Figure out what assembler alignment features are present.
8619 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8620 echo "configure:8664: checking assembler alignment features" >&5
8622 gcc_cv_as_alignment_features
=
8623 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8624 if test -x "$DEFAULT_ASSEMBLER"; then
8625 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8626 elif test -x "$AS"; then
8628 elif test -x as
$host_exeext; then
8629 # Build using assembler in the current directory.
8630 gcc_cv_as
=.
/as
$host_exeext
8631 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8632 # Single tree build which includes gas.
8633 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8635 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8636 if test x
$gcc_cv_gas_version != x
; then
8640 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8641 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8642 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8643 # Gas version 2.6 and later support for .balign and .p2align.
8644 # bytes to skip when using .p2align.
8645 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
8646 gcc_cv_as_alignment_features
=".balign and .p2align"
8647 cat >> confdefs.h
<<\EOF
8648 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8652 # Gas version 2.8 and later support specifying the maximum
8653 # bytes to skip when using .p2align.
8654 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
8655 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8656 cat >> confdefs.h
<<\EOF
8657 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8662 elif test x
$host = x
$target; then
8664 # Search the same directories that the installed compiler will
8665 # search. Else we may find the wrong assembler and lose. If we
8666 # do not find a suitable assembler binary, then try the user's
8669 # Also note we have to check MD_EXEC_PREFIX before checking the
8670 # user's path. Unfortunately, there is no good way to get at the
8671 # value of MD_EXEC_PREFIX here. So we do a brute force search
8672 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8673 # to be fixed as part of the make/configure rewrite too.
8675 if test "x$exec_prefix" = xNONE
; then
8676 if test "x$prefix" = xNONE
; then
8677 test_prefix
=/usr
/local
8682 test_prefix
=$exec_prefix
8685 # If the loop below does not find an assembler, then use whatever
8686 # one we can find in the users's path.
8690 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8691 $test_prefix/lib/gcc-lib/$target \
8692 /usr/lib/gcc/$target/$gcc_version \
8693 /usr/lib/gcc/$target \
8694 $test_prefix/$target/bin/$target/$gcc_version \
8695 $test_prefix/$target/bin \
8700 /bsd43/usr/lib/cmplrs/cc \
8701 /usr/cross64/usr/bin \
8702 /usr/lib/cmplrs/cc \
8703 /sysv/usr/lib/cmplrs/cc \
8704 /svr4/usr/lib/cmplrs/cc \
8707 for dir
in $test_dirs; do
8708 if test -f $dir/as
$host_exeext; then
8709 gcc_cv_as
=$dir/as
$host_exeext
8714 if test x
$gcc_cv_as != x
; then
8715 # Check if we have .balign and .p2align
8716 echo ".balign 4" > conftest.s
8717 echo ".p2align 2" >> conftest.s
8718 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8719 gcc_cv_as_alignment_features
=".balign and .p2align"
8720 cat >> confdefs.h
<<\EOF
8721 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8725 rm -f conftest.s conftest.o
8726 # Check if specifying the maximum bytes to skip when
8727 # using .p2align is supported.
8728 echo ".p2align 4,,7" > conftest.s
8729 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8730 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8731 cat >> confdefs.h
<<\EOF
8732 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8736 rm -f conftest.s conftest.o
8738 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8740 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8741 echo "configure:8785: checking assembler subsection support" >&5
8742 gcc_cv_as_subsections
=
8743 if test x
$gcc_cv_as != x
; then
8744 # Check if we have .subsection
8745 echo ".subsection 1" > conftest.s
8746 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8747 gcc_cv_as_subsections
=".subsection"
8748 if test -x nm
$host_exeext; then
8749 gcc_cv_nm
=.
/nm
$host_exeext
8750 elif test x
$host = x
$target; then
8752 gcc_cv_nm
=nm
$host_exeext
8754 if test x
$gcc_cv_nm != x
; then
8755 cat > conftest.s
<<EOF
8756 conftest_label1: .word 0
8758 conftest_label2: .word 0
8761 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8762 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8763 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8764 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8767 gcc_cv_as_subsections
="working .subsection -1"
8768 cat >> confdefs.h
<<\EOF
8769 #define HAVE_GAS_SUBSECTION_ORDERING 1
8776 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8778 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8780 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8781 echo "configure:8825: checking assembler weak support" >&5
8783 if test x
$gcc_cv_as != x
; then
8784 # Check if we have .weak
8785 echo " .weak foobar" > conftest.s
8786 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8787 cat >> confdefs.h
<<\EOF
8788 #define HAVE_GAS_WEAK 1
8791 gcc_cv_as_weak
="yes"
8793 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8795 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8797 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8798 echo "configure:8842: checking assembler hidden support" >&5
8800 if test x
$gcc_cv_as != x
; then
8801 # Check if we have .hidden
8802 echo " .hidden foobar" > conftest.s
8803 echo "foobar:" >> conftest.s
8804 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8805 cat >> confdefs.h
<<\EOF
8806 #define HAVE_GAS_HIDDEN 1
8809 gcc_cv_as_hidden
="yes"
8811 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8813 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8817 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8818 echo "configure:8862: checking assembler .register pseudo-op support" >&5
8819 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8820 echo $ac_n "(cached) $ac_c" 1>&6
8823 gcc_cv_as_register_pseudo_op
=unknown
8824 if test x
$gcc_cv_as != x
; then
8825 # Check if we have .register
8826 echo ".register %g2, #scratch" > conftest.s
8827 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8828 gcc_cv_as_register_pseudo_op
=yes
8830 gcc_cv_as_register_pseudo_op
=no
8832 rm -f conftest.s conftest.o
8837 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8838 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8839 cat >> confdefs.h
<<\EOF
8840 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8847 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8848 echo "configure:8892: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8849 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8853 if test -n "$gcc_cv_as"; then
8854 echo ".xword foo" > conftest.s
8855 gcc_cv_as_flags64
=no
8856 for flag
in "-xarch=v9" "-64 -Av9"; do
8857 if $gcc_cv_as $flag -o conftest.o conftest.s \
8858 > /dev
/null
2>&1; then
8859 gcc_cv_as_flags64
=$flag
8863 rm -f conftest.s conftest.o
8865 if test "$gas" = yes; then
8866 gcc_cv_as_flags64
="-64 -Av9"
8868 gcc_cv_as_flags64
="-xarch=v9"
8874 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8875 if test "x$gcc_cv_as_flags64" = xno
; then
8877 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8878 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8881 cat >> confdefs.h
<<EOF
8882 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8887 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8891 if test "x$gcc_cv_as_flags64" != xno
; then
8892 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8893 echo "configure:8937: checking for assembler offsetable %lo() support" >&5
8894 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8895 echo $ac_n "(cached) $ac_c" 1>&6
8898 gcc_cv_as_offsetable_lo10
=unknown
8899 if test "x$gcc_cv_as" != x
; then
8900 # Check if assembler has offsetable %lo()
8901 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8902 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8903 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8905 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8906 > /dev
/null
2>&1; then
8907 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8908 gcc_cv_as_offsetable_lo10
=no
8910 gcc_cv_as_offsetable_lo10
=yes
8913 gcc_cv_as_offsetable_lo10
=no
8915 rm -f conftest.s conftest.o conftest1.s conftest1.o
8920 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8921 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8922 cat >> confdefs.h
<<\EOF
8923 #define HAVE_AS_OFFSETABLE_LO10 1
8931 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8932 echo "configure:8976: checking assembler instructions" >&5
8933 gcc_cv_as_instructions
=
8934 if test x
$gcc_cv_as != x
; then
8935 set "filds fists" "filds mem; fists mem"
8938 echo "$2" > conftest.s
8939 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8940 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8941 cat >> confdefs.h
<<EOF
8942 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8948 rm -f conftest.s conftest.o
8950 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8954 # Figure out what language subdirectories are present.
8955 # Look if the user specified --enable-languages="..."; if not, use
8956 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8958 if test x
"${enable_languages+set}" != xset
; then
8959 if test x
"${LANGUAGES+set}" = xset
; then
8960 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8962 enable_languages
=all
8966 for lang
in ${srcdir}/*/config-lang.
in ..
8970 # The odd quoting in the next line works around
8971 # an apparent bug in bash 1.12 on linux.
8972 ${srcdir}/[*]/config-lang.
in) ;;
8974 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8975 if test "x$lang_alias" = x
8977 echo "$lang doesn't set \$language." 1>&2
8980 if test x
"${enable_languages}" = xall
; then
8983 case "${enable_languages}" in
8984 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8992 if test x"${add_this_lang}" = xyes; then
8994 ${srcdir}/ada/config-lang.in)
8995 if test x$gnat = xyes ; then
8996 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9000 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9008 # Make gthr-default.h if we have a thread file.
9010 if test $thread_file != single; then
9011 rm -f gthr-default.h
9012 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9013 gthread_flags
=-DHAVE_GTHR_DEFAULT
9017 # Find out what GC implementation we want, or may, use.
9018 # Check whether --with-gc or --without-gc was given.
9019 if test "${with_gc+set}" = set; then
9026 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9030 if test $ac_cv_func_mmap_anywhere = yes \
9031 ||
test $ac_cv_func_valloc = yes; then
9039 echo "Using $GGC for garbage collection."
9041 # Build a new-abi (c++) system
9042 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9043 if test "${enable_new_gxx_abi+set}" = set; then
9044 enableval
="$enable_new_gxx_abi"
9045 cat >> confdefs.h
<<\EOF
9046 #define ENABLE_NEW_GXX_ABI 1
9049 GXX_ABI_FLAG
='-fnew-abi'
9050 echo "Building a new-abi g++ compiler."
9056 # Build a new-libstdc++ system (ie libstdc++-v3)
9057 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9058 echo "configure:9102: checking for libstdc++ to install" >&5
9059 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9060 if test "${enable_libstdcxx_v3+set}" = set; then
9061 enableval
="$enable_libstdcxx_v3"
9062 enable_libstdcxx_v3
=yes
9064 enable_libstdcxx_v3
=no
9068 if test x
$enable_libstdcxx_v3 = xyes
; then
9069 echo "$ac_t""v3" 1>&6
9070 cat >> confdefs.h
<<\EOF
9071 #define ENABLE_STD_NAMESPACE 1
9075 echo "$ac_t""v2" 1>&6
9079 # Make empty files to contain the specs and options for each language.
9080 # Then add #include lines to for a compiler that has specs and/or options.
9085 rm -f specs.h options.h gencheck.h
9086 touch specs.h options.h gencheck.h
9087 for subdir
in .
$subdirs
9089 if test -f $srcdir/$subdir/lang-specs.h
; then
9090 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9091 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9093 if test -f $srcdir/$subdir/lang-options.h
; then
9094 echo "#include \"$subdir/lang-options.h\"" >>options.h
9095 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9097 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9098 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9099 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9103 # These (without "all_") are set in each config-lang.in.
9104 # `language' must be a single word so is spelled singularly.
9110 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
9111 # List of language makefile fragments.
9116 # Add the language fragments.
9117 # Languages are added via two mechanisms. Some information must be
9118 # recorded in makefile variables, these are defined in config-lang.in.
9119 # We accumulate them and plug them into the main Makefile.
9120 # The other mechanism is a set of hooks for each of the main targets
9121 # like `clean', `install', etc.
9123 language_fragments
="Make-lang"
9124 language_hooks
="Make-hooks"
9127 for s
in ..
$subdirs
9139 .
${srcdir}/$s/config-lang.
in
9140 if test "x$language" = x
9142 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9145 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9146 all_languages
="$all_languages $language"
9147 if test "x$boot_language" = xyes
9149 all_boot_languages
="$all_boot_languages $language"
9151 all_compilers
="$all_compilers $compilers"
9152 all_stagestuff
="$all_stagestuff $stagestuff"
9153 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9154 all_headers
="$all_headers $headers"
9155 all_outputs
="$all_outputs $outputs"
9156 if test x
$outputs = x
9158 oldstyle_subdirs
="$oldstyle_subdirs $s"
9160 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9164 # Since we can't use `::' targets, we link each language in
9165 # with a set of hooks, reached indirectly via lang.${target}.
9169 target_list
="all.build all.cross start.encap rest.encap \
9171 install-normal install-common install-info install-man \
9173 mostlyclean clean distclean extraclean maintainer-clean \
9174 stage1 stage2 stage3 stage4"
9175 for t
in $target_list
9178 for lang
in ..
$all_languages
9180 if test $lang != ".."; then
9184 echo "lang.$t: $x" >> Make-hooks
9187 # If we're not building in srcdir, create .gdbinit.
9189 if test ! -f Makefile.
in; then
9190 echo "dir ." > .gdbinit
9191 echo "dir ${srcdir}" >> .gdbinit
9192 if test x
$gdb_needs_out_file_path = xyes
9194 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9196 if test "x$subdirs" != x
; then
9199 echo "dir ${srcdir}/$s" >> .gdbinit
9202 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9205 # Define variables host_canonical and build_canonical
9206 # because some Cygnus local changes in the Makefile depend on them.
9207 build_canonical
=${build}
9208 host_canonical
=${host}
9210 if test "${host}" != "${target}" ; then
9211 target_subdir
=${target}/
9217 # If this is using newlib, then define inhibit_libc in
9218 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9219 # libgcc.a, but that's OK because newib should have its own version of
9222 if test x
$with_newlib = xyes
; then
9223 inhibit_libc
=-Dinhibit_libc
9227 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9228 # absolute path for gcc_tooldir based on inserting the number of up-directory
9229 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9230 # $(libsubdir)/@(unlibsubdir) based path.
9231 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9232 # make and thus we'd get different behavior depending on where we built the
9234 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9235 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9237 # An explanation of the sed strings:
9238 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9239 # -e 's|/$||' match a trailing forward slash and eliminates it
9240 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9241 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9243 # (*) Note this pattern overwrites the first character of the string
9244 # with a forward slash if one is not already present. This is not a
9245 # problem because the exact names of the sub-directories concerned is
9246 # unimportant, just the number of them matters.
9248 # The practical upshot of these patterns is like this:
9250 # prefix exec_prefix result
9251 # ------ ----------- ------
9253 # /foo/ /foo/bar ../
9254 # /foo /foo/bar/ ../
9255 # /foo/ /foo/bar/ ../
9256 # /foo /foo/bar/ugg ../../
9259 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9264 # Nothing to do for FLOAT_H, float_format already handled.
9268 # Process the language and host/target makefile fragments.
9269 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9271 # Substitute configuration variables
9331 # Echo that links are built
9332 if test x
$host = x
$target
9340 if test x
$host != x
$build
9342 str3
=" on a $build system"
9345 if test "x$str2" != x ||
test "x$str3" != x
9350 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9352 if test "x$str2" != x ||
test "x$str3" != x
9354 echo " ${str2}${str3}." 1>&2
9357 # Truncate the target if necessary
9358 if test x
$host_truncate_target != x
; then
9359 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9362 # Configure the subdirectories
9363 # AC_CONFIG_SUBDIRS($subdirs)
9365 # Create the Makefile
9366 # and configure language subdirectories
9368 cat > confcache
<<\EOF
9369 # This file is a shell script that caches the results of configure
9370 # tests run on this system so they can be shared between configure
9371 # scripts and configure runs. It is not useful on other systems.
9372 # If it contains results you don't want to keep, you may remove or edit it.
9374 # By default, configure uses ./config.cache as the cache file,
9375 # creating it if it does not exist already. You can give configure
9376 # the --cache-file=FILE option to use a different cache file; that is
9377 # what configure does when it calls configure scripts in
9378 # subdirectories, so they share the cache.
9379 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9380 # config.status only pays attention to the cache file if you give it the
9381 # --recheck option to rerun configure.
9384 # The following way of writing the cache mishandles newlines in values,
9385 # but we know of no workaround that is simple, portable, and efficient.
9386 # So, don't put newlines in cache variables' values.
9387 # Ultrix sh set writes to stderr and can't be redirected directly,
9388 # and sets the high bit in the cache file unless we assign to the vars.
9390 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9392 # `set' does not quote correctly, so add quotes (double-quote substitution
9393 # turns \\\\ into \\, and sed turns \\ into \).
9395 -e "s/'/'\\\\''/g" \
9396 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9399 # `set' quotes correctly as required by POSIX, so do not add quotes.
9400 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9403 if cmp -s $cache_file confcache
; then
9406 if test -w $cache_file; then
9407 echo "updating cache $cache_file"
9408 cat confcache
> $cache_file
9410 echo "not updating unwritable cache $cache_file"
9415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9417 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9418 # Let make expand exec_prefix.
9419 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9421 # Any assignment to VPATH causes Sun make to only execute
9422 # the first set of double-colon rules, so remove it if not needed.
9423 # If there is a colon in the path, we need to keep it.
9424 if test "x$srcdir" = x.
; then
9425 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9428 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9430 DEFS
=-DHAVE_CONFIG_H
9432 # Without the "./", some shells look in PATH for config.status.
9433 : ${CONFIG_STATUS=./config.status}
9435 echo creating
$CONFIG_STATUS
9436 rm -f $CONFIG_STATUS
9437 cat > $CONFIG_STATUS <<EOF
9439 # Generated automatically by configure.
9440 # Run this file to recreate the current configuration.
9441 # This directory was configured as follows,
9442 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9444 # $0 $ac_configure_args
9446 # Compiler output produced by configure, useful for debugging
9447 # configure, is in ./config.log if it exists.
9449 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9452 case "\$ac_option" in
9453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9454 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9455 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9456 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9457 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9459 -help | --help | --hel | --he | --h)
9460 echo "\$ac_cs_usage"; exit 0 ;;
9461 *) echo "\$ac_cs_usage"; exit 1 ;;
9465 ac_given_srcdir=$srcdir
9467 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9469 cat >> $CONFIG_STATUS <<EOF
9471 # Protect against being on the right side of a sed subst in config.status.
9472 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9473 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9477 s%@CFLAGS@%$CFLAGS%g
9478 s%@CPPFLAGS@%$CPPFLAGS%g
9479 s%@CXXFLAGS@%$CXXFLAGS%g
9480 s%@FFLAGS@%$FFLAGS%g
9482 s%@LDFLAGS@%$LDFLAGS%g
9484 s%@exec_prefix@%$exec_prefix%g
9485 s%@prefix@%$prefix%g
9486 s%@program_transform_name@%$program_transform_name%g
9487 s%@bindir@%$bindir%g
9488 s%@sbindir@%$sbindir%g
9489 s%@libexecdir@%$libexecdir%g
9490 s%@datadir@%$datadir%g
9491 s%@sysconfdir@%$sysconfdir%g
9492 s%@sharedstatedir@%$sharedstatedir%g
9493 s%@localstatedir@%$localstatedir%g
9494 s%@libdir@%$libdir%g
9495 s%@includedir@%$includedir%g
9496 s%@oldincludedir@%$oldincludedir%g
9497 s%@infodir@%$infodir%g
9498 s%@mandir@%$mandir%g
9500 s%@host_alias@%$host_alias%g
9501 s%@host_cpu@%$host_cpu%g
9502 s%@host_vendor@%$host_vendor%g
9503 s%@host_os@%$host_os%g
9504 s%@target@%$target%g
9505 s%@target_alias@%$target_alias%g
9506 s%@target_cpu@%$target_cpu%g
9507 s%@target_vendor@%$target_vendor%g
9508 s%@target_os@%$target_os%g
9510 s%@build_alias@%$build_alias%g
9511 s%@build_cpu@%$build_cpu%g
9512 s%@build_vendor@%$build_vendor%g
9513 s%@build_os@%$build_os%g
9515 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9516 s%@SET_MAKE@%$SET_MAKE%g
9519 s%@LEXLIB@%$LEXLIB%g
9522 s%@RANLIB@%$RANLIB%g
9524 s%@INSTALL@%$INSTALL%g
9525 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9526 s%@INSTALL_DATA@%$INSTALL_DATA%g
9529 s%@vfprintf@%$vfprintf%g
9530 s%@doprint@%$doprint%g
9531 s%@manext@%$manext%g
9532 s%@objext@%$objext%g
9533 s%@PACKAGE@%$PACKAGE%g
9534 s%@VERSION@%$VERSION%g
9535 s%@ALLOCA@%$ALLOCA%g
9536 s%@USE_NLS@%$USE_NLS%g
9537 s%@MSGFMT@%$MSGFMT%g
9538 s%@GMSGFMT@%$GMSGFMT%g
9539 s%@XGETTEXT@%$XGETTEXT%g
9540 s%@GENCAT@%$GENCAT%g
9541 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9542 s%@CATALOGS@%$CATALOGS%g
9543 s%@CATOBJEXT@%$CATOBJEXT%g
9544 s%@DATADIRNAME@%$DATADIRNAME%g
9545 s%@GMOFILES@%$GMOFILES%g
9546 s%@INSTOBJEXT@%$INSTOBJEXT%g
9547 s%@INTLDEPS@%$INTLDEPS%g
9548 s%@INTLLIBS@%$INTLLIBS%g
9549 s%@INTLOBJS@%$INTLOBJS%g
9550 s%@POFILES@%$POFILES%g
9552 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9554 s%@GT_YES@%$GT_YES%g
9555 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9557 s%@gthread_flags@%$gthread_flags%g
9559 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9560 s%@build_canonical@%$build_canonical%g
9561 s%@host_canonical@%$host_canonical%g
9562 s%@target_subdir@%$target_subdir%g
9563 s%@inhibit_libc@%$inhibit_libc%g
9564 s%@gcc_tooldir@%$gcc_tooldir%g
9565 s%@dollar@%$dollar%g
9566 s%@objdir@%$objdir%g
9567 s%@subdirs@%$subdirs%g
9568 s%@all_boot_languages@%$all_boot_languages%g
9569 s%@all_compilers@%$all_compilers%g
9570 s%@all_diff_excludes@%$all_diff_excludes%g
9571 s%@all_headers@%$all_headers%g
9572 s%@all_lang_makefiles@%$all_lang_makefiles%g
9573 s%@all_languages@%$all_languages%g
9574 s%@all_lib2funcs@%$all_lib2funcs%g
9575 s%@all_stagestuff@%$all_stagestuff%g
9576 s%@build_exeext@%$build_exeext%g
9577 s%@build_install_headers_dir@%$build_install_headers_dir%g
9578 s%@build_xm_file_list@%$build_xm_file_list%g
9579 s%@cc_set_by_configure@%$cc_set_by_configure%g
9580 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9581 s%@cpp_install_dir@%$cpp_install_dir%g
9582 s%@cpp_main@%$cpp_main%g
9583 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9584 s%@dep_tmake_file@%$dep_tmake_file%g
9585 s%@extra_c_flags@%$extra_c_flags%g
9586 s%@extra_c_objs@%$extra_c_objs%g
9587 s%@extra_cpp_objs@%$extra_cpp_objs%g
9588 s%@extra_cxx_objs@%$extra_cxx_objs%g
9589 s%@extra_headers_list@%$extra_headers_list%g
9590 s%@extra_objs@%$extra_objs%g
9591 s%@extra_parts@%$extra_parts%g
9592 s%@extra_passes@%$extra_passes%g
9593 s%@extra_programs@%$extra_programs%g
9594 s%@float_h_file@%$float_h_file%g
9595 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9596 s%@gcc_version@%$gcc_version%g
9597 s%@gcc_version_trigger@%$gcc_version_trigger%g
9598 s%@host_exeext@%$host_exeext%g
9599 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9600 s%@host_xm_file_list@%$host_xm_file_list%g
9601 s%@install@%$install%g
9602 s%@lang_options_files@%$lang_options_files%g
9603 s%@lang_specs_files@%$lang_specs_files%g
9604 s%@lang_tree_files@%$lang_tree_files%g
9605 s%@local_prefix@%$local_prefix%g
9606 s%@maybe_use_collect2@%$maybe_use_collect2%g
9607 s%@md_file@%$md_file%g
9608 s%@objc_boehm_gc@%$objc_boehm_gc%g
9609 s%@out_file@%$out_file%g
9610 s%@out_object_file@%$out_object_file%g
9611 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9612 s%@symbolic_link@%$symbolic_link%g
9613 s%@thread_file@%$thread_file%g
9614 s%@tm_file_list@%$tm_file_list%g
9615 s%@will_use_collect2@%$will_use_collect2%g
9616 /@target_overrides@/r $target_overrides
9617 s%@target_overrides@%%g
9618 /@host_overrides@/r $host_overrides
9619 s%@host_overrides@%%g
9620 s%@cross_defines@%$cross_defines%g
9621 /@cross_overrides@/r $cross_overrides
9622 s%@cross_overrides@%%g
9623 /@build_overrides@/r $build_overrides
9624 s%@build_overrides@%%g
9625 /@language_fragments@/r $language_fragments
9626 s%@language_fragments@%%g
9627 /@language_hooks@/r $language_hooks
9628 s%@language_hooks@%%g
9633 cat >> $CONFIG_STATUS <<\EOF
9635 # Split the substitutions into bite-sized pieces for seds with
9636 # small command number limits, like on Digital OSF/1 and HP-UX.
9637 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9638 ac_file
=1 # Number of current file.
9639 ac_beg
=1 # First line for current file.
9640 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9643 while $ac_more_lines; do
9644 if test $ac_beg -gt 1; then
9645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9647 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9649 if test ! -s conftest.s
$ac_file; then
9651 rm -f conftest.s
$ac_file
9653 if test -z "$ac_sed_cmds"; then
9654 ac_sed_cmds
="sed -f conftest.s$ac_file"
9656 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9658 ac_file
=`expr $ac_file + 1`
9660 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9663 if test -z "$ac_sed_cmds"; then
9668 cat >> $CONFIG_STATUS <<EOF
9670 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9672 cat >> $CONFIG_STATUS <<\EOF
9673 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9676 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9677 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9678 *) ac_file_in
="${ac_file}.in" ;;
9681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9683 # Remove last slash and all that follows it. Not all systems have dirname.
9684 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9686 # The file is in a subdirectory.
9687 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9688 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9689 # A "../" for each directory in $ac_dir_suffix.
9690 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9692 ac_dir_suffix
= ac_dots
=
9695 case "$ac_given_srcdir" in
9697 if test -z "$ac_dots"; then top_srcdir
=.
9698 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9699 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9701 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9702 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9706 echo creating
"$ac_file"
9708 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9710 *Makefile
*) ac_comsub
="1i\\
9711 # $configure_input" ;;
9715 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9717 s%@configure_input@%$configure_input%g
9718 s%@srcdir@%$srcdir%g
9719 s%@top_srcdir@%$top_srcdir%g
9720 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9724 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9725 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9727 # ac_d sets the value in "#define NAME VALUE" lines.
9728 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9729 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9732 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9733 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9734 ac_uB
='\([ ]\)%\1#\2define\3'
9737 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9738 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9739 ac_eB
='$%\1#\2define\3'
9743 if test "${CONFIG_HEADERS+set}" != set; then
9745 cat >> $CONFIG_STATUS <<EOF
9746 CONFIG_HEADERS="auto-host.h:config.in"
9748 cat >> $CONFIG_STATUS <<\EOF
9750 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9753 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9754 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9755 *) ac_file_in
="${ac_file}.in" ;;
9758 echo creating
$ac_file
9760 rm -f conftest.frag conftest.
in conftest.out
9761 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9762 cat $ac_file_inputs > conftest.
in
9766 # Transform confdefs.h into a sed script conftest.vals that substitutes
9767 # the proper values into config.h.in to produce config.h. And first:
9768 # Protect against being on the right side of a sed subst in config.status.
9769 # Protect against being in an unquoted here document in config.status.
9771 cat > conftest.hdr
<<\EOF
9774 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9778 sed -n -f conftest.hdr confdefs.h > conftest.vals
9781 # This sed command replaces #undef with comments. This is necessary, for
9782 # example, in the case of _POSIX_SOURCE, which is predefined and required
9783 # on some systems where configure will not decide to define it.
9784 cat >> conftest.vals <<\EOF
9785 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9788 # Break up conftest.vals because some shells have a limit on
9789 # the size of here documents, and old seds have small limits too.
9794 ac_lines=`grep -c . conftest.vals
`
9795 # grep -c gives empty output for an empty file on some AIX systems.
9796 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9797 # Write a limited-size here document to conftest.frag.
9798 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9799 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9801 sed -f conftest.frag conftest.in > conftest.out
9803 mv conftest.out conftest.in
9805 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9807 mv conftest.tail conftest.vals
9811 cat >> $CONFIG_STATUS <<\EOF
9812 rm -f conftest.frag conftest.h
9813 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9814 cat conftest.in >> conftest.h
9816 if cmp -s $ac_file conftest.h 2>/dev/null; then
9817 echo "$ac_file is unchanged"
9820 # Remove last slash and all that follows it. Not all systems have dirname.
9821 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9822 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9823 # The file is in a subdirectory.
9824 test ! -d "$ac_dir" && mkdir "$ac_dir"
9827 mv conftest.h $ac_file
9833 cat >> $CONFIG_STATUS <<EOF
9834 ac_sources="$nls_cv_header_libgt"
9835 ac_dests="$nls_cv_header_intl"
9838 cat >> $CONFIG_STATUS <<\EOF
9839 srcdir=$ac_given_srcdir
9840 while test -n "$ac_sources"; do
9841 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9842 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9844 echo "linking $srcdir/$ac_source to $ac_dest"
9846 if test ! -r $srcdir/$ac_source; then
9847 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9851 # Make relative symlinks.
9852 # Remove last slash and all that follows it. Not all systems have dirname.
9853 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9854 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9855 # The dest file is in a subdirectory.
9856 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9857 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9858 # A "../" for each directory in $ac_dest_dir_suffix.
9859 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9861 ac_dest_dir_suffix= ac_dots=
9865 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9866 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9869 # Make a symlink if possible; otherwise try a hard link.
9870 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9871 ln $srcdir/$ac_source $ac_dest; then :
9873 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9877 cat >> $CONFIG_STATUS <<EOF
9883 target_alias='${target_alias}'
9885 subdirs='${subdirs}'
9886 oldstyle_subdirs='${oldstyle_subdirs}'
9887 symbolic_link='${symbolic_link}'
9888 program_transform_set='${program_transform_set}'
9889 program_transform_name='${program_transform_name}'
9890 dep_host_xmake_file='${dep_host_xmake_file}'
9891 host_xmake_file='${host_xmake_file}'
9892 dep_tmake_file='${dep_tmake_file}'
9893 tmake_file='${tmake_file}'
9894 thread_file='${thread_file}'
9895 gcc_version='${gcc_version}'
9896 gcc_version_trigger='${gcc_version_trigger}'
9897 local_prefix='${local_prefix}'
9898 build_install_headers_dir='${build_install_headers_dir}'
9899 build_exeext='${build_exeext}'
9900 host_exeext='${host_exeext}'
9901 out_file='${out_file}'
9902 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9903 SET_MAKE='${SET_MAKE}'
9904 target_list='${target_list}'
9905 target_overrides='${target_overrides}'
9906 host_overrides='${host_overrides}'
9907 cross_defines='${cross_defines}'
9908 cross_overrides='${cross_overrides}'
9909 build_overrides='${build_overrides}'
9910 cpp_install_dir='${cpp_install_dir}'
9913 cat >> $CONFIG_STATUS <<\EOF
9914 case "$CONFIG_FILES" in *po/Makefile.in*)
9915 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9918 . $srcdir/configure.lang
9919 case x$CONFIG_HEADERS in
9920 xauto-host.h:config.in)
9923 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9924 # bootstrapping and the installation procedure can still use
9925 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9926 # FLAGS_TO_PASS has been modified to solve the problem there.
9927 # This is virtually a duplicate of what happens in configure.lang; we do
9928 # an extra check to make sure this only happens if ln -s can be used.
9929 if test "$symbolic_link" = "ln -s"; then
9930 for d in .. ${subdirs} ; do
9931 if test $d != ..; then
9934 for t in stage1 stage2 stage3 stage4 include
9937 $symbolic_link ../$t $t 2>/dev/null
9943 # Avoid having to add intl to our include paths.
9944 if test -f intl/libintl.h; then
9945 echo creating libintl.h
9946 echo '#include "intl/libintl.h"' >libintl.h
9951 chmod +x $CONFIG_STATUS
9952 rm -fr confdefs* $ac_clean_files
9953 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1