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."
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file
=.
/config.cache
93 program_transform_name
=s
,x
,x
,
101 bindir
='${exec_prefix}/bin'
102 sbindir
='${exec_prefix}/sbin'
103 libexecdir
='${exec_prefix}/libexec'
104 datadir
='${prefix}/share'
105 sysconfdir
='${prefix}/etc'
106 sharedstatedir
='${prefix}/com'
107 localstatedir
='${prefix}/var'
108 libdir
='${exec_prefix}/lib'
109 includedir
='${prefix}/include'
110 oldincludedir
='/usr/include'
111 infodir
='${prefix}/info'
112 mandir
='${prefix}/man'
114 # Initialize some other variables.
117 SHELL
=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
144 bindir
="$ac_optarg" ;;
146 -build |
--build |
--buil |
--bui |
--bu)
148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
149 build
="$ac_optarg" ;;
151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
153 ac_prev
=cache_file
;;
154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
156 cache_file
="$ac_optarg" ;;
158 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
160 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
162 datadir
="$ac_optarg" ;;
164 -disable-* |
--disable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* |
--enable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
188 |
--exec |
--exe |
--ex)
189 ac_prev
=exec_prefix
;;
190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
192 |
--exec=* |
--exe=* |
--ex=*)
193 exec_prefix
="$ac_optarg" ;;
195 -gas |
--gas |
--ga |
--g)
196 # Obsolete; use --with-gas.
199 -help |
--help |
--hel |
--he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host |
--host |
--hos |
--ho)
256 -host=* |
--host=* |
--hos=* |
--ho=*)
259 -includedir |
--includedir |
--includedi |
--included |
--include \
260 |
--includ |
--inclu |
--incl |
--inc)
261 ac_prev
=includedir
;;
262 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
263 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
264 includedir
="$ac_optarg" ;;
266 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
268 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
269 infodir
="$ac_optarg" ;;
271 -libdir |
--libdir |
--libdi |
--libd)
273 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
274 libdir
="$ac_optarg" ;;
276 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
277 |
--libexe |
--libex |
--libe)
278 ac_prev
=libexecdir
;;
279 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
280 |
--libexe=* |
--libex=* |
--libe=*)
281 libexecdir
="$ac_optarg" ;;
283 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
284 |
--localstate |
--localstat |
--localsta |
--localst \
285 |
--locals |
--local |
--loca |
--loc |
--lo)
286 ac_prev
=localstatedir
;;
287 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
288 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
289 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
290 localstatedir
="$ac_optarg" ;;
292 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
294 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
295 mandir
="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
305 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
306 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
309 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
310 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
311 |
--oldin |
--oldi |
--old |
--ol |
--o)
312 ac_prev
=oldincludedir
;;
313 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
314 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
315 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
316 oldincludedir
="$ac_optarg" ;;
318 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
320 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
321 prefix
="$ac_optarg" ;;
323 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
324 |
--program-pre |
--program-pr |
--program-p)
325 ac_prev
=program_prefix
;;
326 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
327 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
328 program_prefix
="$ac_optarg" ;;
330 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
331 |
--program-suf |
--program-su |
--program-s)
332 ac_prev
=program_suffix
;;
333 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
334 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
335 program_suffix
="$ac_optarg" ;;
337 -program-transform-name |
--program-transform-name \
338 |
--program-transform-nam |
--program-transform-na \
339 |
--program-transform-n |
--program-transform- \
340 |
--program-transform |
--program-transfor \
341 |
--program-transfo |
--program-transf \
342 |
--program-trans |
--program-tran \
343 |
--progr-tra |
--program-tr |
--program-t)
344 ac_prev
=program_transform_name
;;
345 -program-transform-name=* |
--program-transform-name=* \
346 |
--program-transform-nam=* |
--program-transform-na=* \
347 |
--program-transform-n=* |
--program-transform-=* \
348 |
--program-transform=* |
--program-transfor=* \
349 |
--program-transfo=* |
--program-transf=* \
350 |
--program-trans=* |
--program-tran=* \
351 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
352 program_transform_name
="$ac_optarg" ;;
354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
355 |
-silent |
--silent |
--silen |
--sile |
--sil)
358 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
360 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
362 sbindir
="$ac_optarg" ;;
364 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
365 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
366 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
368 ac_prev
=sharedstatedir
;;
369 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
370 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
371 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
373 sharedstatedir
="$ac_optarg" ;;
375 -site |
--site |
--sit)
377 -site=* |
--site=* |
--sit=*)
380 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
382 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
383 srcdir
="$ac_optarg" ;;
385 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
386 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
387 ac_prev
=sysconfdir
;;
388 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
389 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
390 sysconfdir
="$ac_optarg" ;;
392 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
394 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
395 target
="$ac_optarg" ;;
397 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
400 -version |
--version |
--versio |
--versi |
--vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* |
--without-*)
418 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
431 |
--x-incl |
--x-inc |
--x-in |
--x-i)
432 ac_prev
=x_includes
;;
433 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
434 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
435 x_includes
="$ac_optarg" ;;
437 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
438 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
439 ac_prev
=x_libraries
;;
440 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
441 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
442 x_libraries
="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE
; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
493 |
--no-cr |
--no-c) ;;
494 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
495 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
496 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest
* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file
=tree.c
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted
=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted
=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE
; then
547 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
593 symbolic_link
='ln -s'
596 # Check for bogus environment variables.
597 # Test if LIBRARY_PATH contains the notation for the current directory
598 # since this would lead to problems installing/building glibc.
599 # LIBRARY_PATH contains the current directory if one of the following
601 # - one of the terminals (":" and ";") is the first or last sign
602 # - two terminals occur directly after each other
603 # - the path contains an element with a dot in it
604 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
605 echo "configure:606: checking LIBRARY_PATH variable" >&5
606 case ${LIBRARY_PATH} in
607 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
608 library_path_setting
="contains current directory"
611 library_path_setting
="ok"
614 echo "$ac_t""$library_path_setting" 1>&6
615 if test "$library_path_setting" != "ok"; then
616 { echo "configure: error:
617 *** LIBRARY_PATH shouldn't contain the current directory when
618 *** building gcc. Please change the environment variable
619 *** and run configure again." 1>&2; exit 1; }
622 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
623 # since this would lead to problems installing/building glibc.
624 # GCC_EXEC_PREFIX contains the current directory if one of the following
626 # - one of the terminals (":" and ";") is the first or last sign
627 # - two terminals occur directly after each other
628 # - the path contains an element with a dot in it
629 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
630 echo "configure:631: checking GCC_EXEC_PREFIX variable" >&5
631 case ${GCC_EXEC_PREFIX} in
632 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
633 gcc_exec_prefix_setting
="contains current directory"
636 gcc_exec_prefix_setting
="ok"
639 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
640 if test "$gcc_exec_prefix_setting" != "ok"; then
641 { echo "configure: error:
642 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
643 *** building gcc. Please change the environment variable
644 *** and run configure again." 1>&2; exit 1; }
647 # Check for additional parameters
650 # Check whether --with-gnu-ld or --without-gnu-ld was given.
651 if test "${with_gnu_ld+set}" = set; then
652 withval
="$with_gnu_ld"
653 gnu_ld_flag
="$with_gnu_ld"
659 # With pre-defined ld
660 # Check whether --with-ld or --without-ld was given.
661 if test "${with_ld+set}" = set; then
663 DEFAULT_LINKER
="$with_ld"
666 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
667 if test ! -x "$DEFAULT_LINKER"; then
668 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
669 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
672 cat >> confdefs.h
<<EOF
673 #define DEFAULT_LINKER "$DEFAULT_LINKER"
679 # Check whether --with-gnu-as or --without-gnu-as was given.
680 if test "${with_gnu_as+set}" = set; then
681 withval
="$with_gnu_as"
682 gas_flag
="$with_gnu_as"
688 # Check whether --with-as or --without-as was given.
689 if test "${with_as+set}" = set; then
691 DEFAULT_ASSEMBLER
="$with_as"
694 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
695 if test ! -x "$DEFAULT_ASSEMBLER"; then
696 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
697 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
700 cat >> confdefs.h
<<EOF
701 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
707 # Check whether --with-stabs or --without-stabs was given.
708 if test "${with_stabs+set}" = set; then
709 withval
="$with_stabs"
717 # Check whether --with-elf or --without-elf was given.
718 if test "${with_elf+set}" = set; then
726 # Specify the local prefix
728 # Check whether --with-local-prefix or --without-local-prefix was given.
729 if test "${with_local_prefix+set}" = set; then
730 withval
="$with_local_prefix"
732 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
734 *) local_prefix
=$with_local_prefix ;;
739 # Default local prefix if it is empty
740 if test x
$local_prefix = x
; then
741 local_prefix
=/usr
/local
744 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
745 # passed in by the toplevel make and thus we'd get different behavior
746 # depending on where we built the sources.
748 # Specify the g++ header file directory
749 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
750 if test "${with_gxx_include_dir+set}" = set; then
751 withval
="$with_gxx_include_dir"
753 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
755 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
760 if test x
${gcc_gxx_include_dir} = x
; then
761 if test x
${enable_version_specific_runtime_libs} = xyes
; then
762 gcc_gxx_include_dir
='${libsubdir}/include/g++'
764 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
765 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
769 # Enable expensive internal checks
770 # Check whether --enable-checking or --disable-checking was given.
771 if test "${enable_checking+set}" = set; then
772 enableval
="$enable_checking"
773 case "${enableval}" in
774 yes) cat >> confdefs.h
<<\EOF
775 #define ENABLE_CHECKING 1
778 cat >> confdefs.h
<<\EOF
779 #define ENABLE_TREE_CHECKING 1
782 cat >> confdefs.h
<<\EOF
783 #define ENABLE_RTL_CHECKING 1
787 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
788 set fnord
$enableval; shift
793 misc
) cat >> confdefs.h
<<\EOF
794 #define ENABLE_CHECKING 1
797 tree
) cat >> confdefs.h
<<\EOF
798 #define ENABLE_TREE_CHECKING 1
801 rtl
) cat >> confdefs.h
<<\EOF
802 #define ENABLE_RTL_CHECKING 1
805 gc
) cat >> confdefs.h
<<\EOF
806 #define ENABLE_GC_CHECKING 1
809 gcac
) cat >> confdefs.h
<<\EOF
810 #define ENABLE_GC_ALWAYS_COLLECT 1
813 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
821 # Check whether --enable-cpp or --disable-cpp was given.
822 if test "${enable_cpp+set}" = set; then
823 enableval
="$enable_cpp"
830 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
831 if test "${with_cpp_install_dir+set}" = set; then
832 withval
="$with_cpp_install_dir"
833 if test x
$withval = xyes
; then
834 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
835 elif test x
$withval != xno
; then
836 cpp_install_dir
=$withval
841 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
843 # Check whether --enable-cpplib or --disable-cpplib was given.
844 if test "${enable_cpplib+set}" = set; then
845 enableval
="$enable_cpplib"
846 if test x
$enable_cpplib = xno
; then
853 # Enable Multibyte Characters for C/C++
854 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
855 if test "${enable_c_mbchar+set}" = set; then
856 enableval
="$enable_c_mbchar"
857 if test x
$enable_c_mbchar != xno
; then
858 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
864 # Pass with no value to take the default
865 # Pass with a value to specify a thread package
866 # Check whether --enable-threads or --disable-threads was given.
867 if test "${enable_threads+set}" = set; then
868 enableval
="$enable_threads"
869 if test x
$enable_threads = xno
; then
877 enable_threads_flag
=$enable_threads
878 # Check if a valid thread package
879 case x
${enable_threads_flag} in
882 target_thread_file
='single'
886 target_thread_file
=''
888 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
889 xsolaris | xwin32 | xdce | xvxworks
)
890 target_thread_file
=$enable_threads_flag
893 echo "$enable_threads is an unknown thread package" 1>&2
898 # Check whether --enable-objc-gc or --disable-objc-gc was given.
899 if test "${enable_objc_gc+set}" = set; then
900 enableval
="$enable_objc_gc"
901 if test x
$enable_objc_gc = xno
; then
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913 withval
="$with_dwarf2"
914 dwarf2
="$with_dwarf2"
920 # Determine the host, build, and target systems
922 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
923 if test -f $ac_dir/install-sh
; then
925 ac_install_sh
="$ac_aux_dir/install-sh -c"
927 elif test -f $ac_dir/install.sh
; then
929 ac_install_sh
="$ac_aux_dir/install.sh -c"
933 if test -z "$ac_aux_dir"; then
934 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
936 ac_config_guess
=$ac_aux_dir/config.guess
937 ac_config_sub
=$ac_aux_dir/config.sub
938 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
941 # Do some error checking and defaulting for the host and target type.
943 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 # as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:969: checking host system type" >&5
971 case "$host_alias" in
975 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
978 *) host_alias
=$nonopt ;;
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:990: checking target system type" >&5
992 case "$target_alias" in
995 NONE
) target_alias
=$host_alias ;;
996 *) target_alias
=$nonopt ;;
1000 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1008: checking build system type" >&5
1010 case "$build_alias" in
1013 NONE
) build_alias
=$host_alias ;;
1014 *) build_alias
=$nonopt ;;
1018 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix
=${target_alias}-
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1043 for ac_dir
in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir
=.
1045 if test -f $ac_dir/$ac_word; then
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc
; ac_word
=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC
="$CC" # Let the user override the test.
1071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1074 for ac_dir
in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir
=.
1076 if test -f $ac_dir/$ac_word; then
1077 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078 ac_prog_rejected
=yes
1086 if test $ac_prog_rejected = yes; then
1087 # We found a bogon in the path, so make sure we never use it.
1088 set dummy
$ac_cv_prog_CC
1090 if test $# -gt 0; then
1091 # We chose a different compiler from the bogus one.
1092 # However, it has the same basename, so the bogon will be chosen
1093 # first if we set CC to just the basename; use the full file name.
1095 set dummy
"$ac_dir/$ac_word" "$@"
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1109 if test -z "$CC"; then
1110 case "`uname -s`" in
1112 # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl
; ac_word
=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC
="$CC" # Let the user override the test.
1122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1124 for ac_dir
in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir
=.
1126 if test -f $ac_dir/$ac_word; then
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp
='$CPP $CPPFLAGS'
1152 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling
=$ac_cv_prog_cc_cross
1156 cat > conftest.
$ac_ext << EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1163 if { (eval echo configure
:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1164 ac_cv_prog_cc_works
=yes
1165 # If we can't run a trivial program, we are probably using a cross compiler.
1166 if (.
/conftest
; exit) 2>/dev
/null
; then
1167 ac_cv_prog_cc_cross
=no
1169 ac_cv_prog_cc_cross
=yes
1172 echo "configure: failed program was:" >&5
1173 cat conftest.
$ac_ext >&5
1174 ac_cv_prog_cc_works
=no
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp
='$CPP $CPPFLAGS'
1180 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling
=$ac_cv_prog_cc_cross
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no
; then
1186 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling
=$ac_cv_prog_cc_cross
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.c
<<EOF
1203 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1212 if test $ac_cv_prog_gcc = yes; then
1218 ac_test_CFLAGS
="${CFLAGS+set}"
1219 ac_save_CFLAGS
="$CFLAGS"
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS
="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240 if test "$GCC" = yes; then
1246 if test "$GCC" = yes; then
1253 echo $ac_n "checking for long double""... $ac_c" 1>&6
1254 echo "configure:1255: checking for long double" >&5
1255 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test "$GCC" = yes; then
1259 gcc_cv_c_long_double
=yes
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1266 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1267 long double foo = 0.0;
1268 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1269 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1272 if { (eval echo configure
:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 gcc_cv_c_long_double
=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.
$ac_ext >&5
1279 gcc_cv_c_long_double
=no
1285 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1286 if test $gcc_cv_c_long_double = yes; then
1287 cat >> confdefs.h
<<\EOF
1288 #define HAVE_LONG_DOUBLE 1
1294 # If the native compiler is GCC, we can enable warnings even in stage1.
1295 # That's useful for people building cross-compilers, or just running a
1297 if test "x$GCC" = "xyes"; then
1298 stage1_warn_cflags
='$(WARN_CFLAGS)'
1300 stage1_warn_cflags
=""
1304 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether ${MAKE-make} sets \${MAKE}" >&5
1306 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1307 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftestmake
<<\EOF
1312 @
echo 'ac_maketemp="${MAKE}"'
1314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1315 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1316 if test -n "$ac_maketemp"; then
1317 eval ac_cv_prog_make_
${ac_make}_set
=yes
1319 eval ac_cv_prog_make_
${ac_make}_set
=no
1323 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 SET_MAKE
="MAKE=${MAKE-make}"
1332 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1333 echo "configure:1334: checking whether a default assembler was specified" >&5
1334 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1335 if test x
"$gas_flag" = x
"no"; then
1336 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1338 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1341 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether a default linker was specified" >&5
1346 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1347 if test x
"$gnu_ld_flag" = x
"no"; then
1348 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1350 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 # Find some useful tools
1357 for ac_prog
in gawk mawk nawk
awk
1359 # Extract the first word of "$ac_prog", so it can be a program name with args.
1360 set dummy
$ac_prog; ac_word
=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$AWK"; then
1367 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1371 for ac_dir
in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_AWK
="$ac_prog"
1381 AWK
="$ac_cv_prog_AWK"
1382 if test -n "$AWK"; then
1383 echo "$ac_t""$AWK" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 test -n "$AWK" && break
1391 # Extract the first word of "flex", so it can be a program name with args.
1392 set dummy flex
; ac_word
=$2
1393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394 echo "configure:1395: checking for $ac_word" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -n "$LEX"; then
1399 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1403 for ac_dir
in $ac_dummy; do
1404 test -z "$ac_dir" && ac_dir
=.
1405 if test -f $ac_dir/$ac_word; then
1406 ac_cv_prog_LEX
="flex"
1411 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1414 LEX
="$ac_cv_prog_LEX"
1415 if test -n "$LEX"; then
1416 echo "$ac_t""$LEX" 1>&6
1418 echo "$ac_t""no" 1>&6
1421 if test -z "$LEXLIB"
1427 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1428 echo "configure:1429: checking for yywrap in -l$ac_lib" >&5
1429 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_save_LIBS
="$LIBS"
1434 LIBS
="-l$ac_lib $LIBS"
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 /* Override any gcc2 internal prototype to avoid an error. */
1439 /* We use char because int might match the return type of a gcc2
1440 builtin and then its argument prototype would still apply. */
1447 if { (eval echo configure
:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1449 eval "ac_cv_lib_$ac_lib_var=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1454 eval "ac_cv_lib_$ac_lib_var=no"
1457 LIBS
="$ac_save_LIBS"
1460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether ln works" >&5
1471 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 rm -f conftestdata_t
1475 echo >conftestdata_f
1476 if ln conftestdata_f conftestdata_t
2>/dev
/null
1480 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1482 gcc_cv_prog_LN
="ln -s"
1487 rm -f conftestdata_f conftestdata_t
1490 LN
="$gcc_cv_prog_LN"
1491 if test "$gcc_cv_prog_LN" = "ln"; then
1492 echo "$ac_t""yes" 1>&6
1494 if test "$gcc_cv_prog_LN" = "ln -s"; then
1495 echo "$ac_t""no, using ln -s" 1>&6
1497 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1501 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether ln -s works" >&5
1503 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 rm -f conftestdata_t
1507 echo >conftestdata_f
1508 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1510 gcc_cv_prog_LN_S
="ln -s"
1512 if ln conftestdata_f conftestdata_t
2>/dev
/null
1519 rm -f conftestdata_f conftestdata_t
1522 LN_S
="$gcc_cv_prog_LN_S"
1523 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1524 echo "$ac_t""yes" 1>&6
1526 if test "$gcc_cv_prog_LN_S" = "ln"; then
1527 echo "$ac_t""no, using ln" 1>&6
1529 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1533 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1534 echo "configure:1535: checking for volatile" >&5
1535 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 gcc_cv_c_volatile
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 gcc_cv_c_volatile
=no
1558 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1559 if test $gcc_cv_c_volatile = yes ; then
1560 cat >> confdefs.h
<<\EOF
1561 #define HAVE_VOLATILE 1
1566 # Extract the first word of "ranlib", so it can be a program name with args.
1567 set dummy ranlib
; ac_word
=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 if test -n "$RANLIB"; then
1574 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1578 for ac_dir
in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir
=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_RANLIB
="ranlib"
1586 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1589 RANLIB
="$ac_cv_prog_RANLIB"
1590 if test -n "$RANLIB"; then
1591 echo "$ac_t""$RANLIB" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 for ac_prog
in 'bison -y' byacc
1598 # Extract the first word of "$ac_prog", so it can be a program name with args.
1599 set dummy
$ac_prog; ac_word
=$2
1600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1601 echo "configure:1602: checking for $ac_word" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test -n "$YACC"; then
1606 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1610 for ac_dir
in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir
=.
1612 if test -f $ac_dir/$ac_word; then
1613 ac_cv_prog_YACC
="$ac_prog"
1620 YACC
="$ac_cv_prog_YACC"
1621 if test -n "$YACC"; then
1622 echo "$ac_t""$YACC" 1>&6
1624 echo "$ac_t""no" 1>&6
1627 test -n "$YACC" && break
1629 test -n "$YACC" || YACC
="yacc"
1631 # Find a good install program. We prefer a C program (faster),
1632 # so one script is as good as another. But avoid the broken or
1633 # incompatible versions:
1634 # SysV /etc/install, /usr/sbin/install
1635 # SunOS /usr/etc/install
1636 # IRIX /sbin/install
1638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1640 # ./install, which can be erroneously created by make from ./install.sh.
1641 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1642 echo "configure:1643: checking for a BSD compatible install" >&5
1643 if test -z "$INSTALL"; then
1644 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1648 for ac_dir
in $PATH; do
1649 # Account for people who put trailing slashes in PATH elements.
1651 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 for ac_prog
in ginstall scoinst
install; do
1655 if test -f $ac_dir/$ac_prog; then
1656 if test $ac_prog = install &&
1657 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1658 # AIX install. It has an incompatible calling convention.
1659 # OSF/1 installbsd also uses dspmsg, but is usable.
1662 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1673 if test "${ac_cv_path_install+set}" = set; then
1674 INSTALL
="$ac_cv_path_install"
1676 # As a last resort, use the slow shell script. We don't cache a
1677 # path for INSTALL within a source directory, because that will
1678 # break other packages using the cache if that directory is
1679 # removed, or if the path is relative.
1680 INSTALL
="$ac_install_sh"
1683 echo "$ac_t""$INSTALL" 1>&6
1685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1686 # It thinks the first close brace ends the variable substitution.
1687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1689 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1692 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1693 echo "configure:1694: checking how to run the C preprocessor" >&5
1694 # On Suns, sometimes $CPP names a directory.
1695 if test -n "$CPP" && test -d "$CPP"; then
1698 if test -z "$CPP"; then
1699 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 # This must be in double quotes, not single quotes, because CPP may get
1703 # substituted into the Makefile and "${CC-cc}" will confuse make.
1705 # On the NeXT, cc -E runs the code through the compiler's parser,
1706 # not just through cpp.
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure
:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716 if test -z "$ac_err"; then
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 CPP
="${CC-cc} -E -traditional-cpp"
1724 cat > conftest.
$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure
:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1740 CPP
="${CC-cc} -nologo -E"
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748 { (eval echo configure
:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1750 if test -z "$ac_err"; then
1754 echo "configure: failed program was:" >&5
1755 cat conftest.
$ac_ext >&5
1764 ac_cv_prog_CPP
="$CPP"
1766 CPP
="$ac_cv_prog_CPP"
1768 ac_cv_prog_CPP
="$CPP"
1770 echo "$ac_t""$CPP" 1>&6
1772 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ANSI C header files" >&5
1774 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.
$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1786 { (eval echo configure
:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1788 if test -z "$ac_err"; then
1790 ac_cv_header_stdc
=yes
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 ac_cv_header_stdc
=no
1800 if test $ac_cv_header_stdc = yes; then
1801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1808 egrep "memchr" >/dev
/null
2>&1; then
1812 ac_cv_header_stdc
=no
1818 if test $ac_cv_header_stdc = yes; then
1819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826 egrep "free" >/dev
/null
2>&1; then
1830 ac_cv_header_stdc
=no
1836 if test $ac_cv_header_stdc = yes; then
1837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1838 if test "$cross_compiling" = yes; then
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1845 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1846 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1848 int main () { int i; for (i = 0; i < 256; i++)
1849 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1853 if { (eval echo configure
:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1857 echo "configure: failed program was:" >&5
1858 cat conftest.
$ac_ext >&5
1860 ac_cv_header_stdc
=no
1868 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1869 if test $ac_cv_header_stdc = yes; then
1870 cat >> confdefs.h
<<\EOF
1871 #define STDC_HEADERS 1
1876 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether time.h and sys/time.h may both be included" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1885 #include <sys/time.h>
1891 if { (eval echo configure
:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 ac_cv_header_time
=yes
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 ac_cv_header_time
=no
1903 echo "$ac_t""$ac_cv_header_time" 1>&6
1904 if test $ac_cv_header_time = yes; then
1905 cat >> confdefs.h
<<\EOF
1906 #define TIME_WITH_SYS_TIME 1
1911 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether string.h and strings.h may both be included" >&5
1913 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1920 #include <strings.h>
1925 if { (eval echo configure
:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1927 gcc_cv_header_string
=yes
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1932 gcc_cv_header_string
=no
1937 echo "$ac_t""$gcc_cv_header_string" 1>&6
1938 if test $gcc_cv_header_string = yes; then
1939 cat >> confdefs.h
<<\EOF
1940 #define STRING_WITH_STRINGS 1
1945 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1946 echo "configure:1947: checking for sys/wait.h that is POSIX.1 compatible" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <sys/types.h>
1954 #include <sys/wait.h>
1956 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1959 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1964 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1967 if { (eval echo configure
:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1969 ac_cv_header_sys_wait_h
=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.
$ac_ext >&5
1974 ac_cv_header_sys_wait_h
=no
1979 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1980 if test $ac_cv_header_sys_wait_h = yes; then
1981 cat >> confdefs.h
<<\EOF
1982 #define HAVE_SYS_WAIT_H 1
1987 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1988 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1989 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_hdr" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure
:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006 if test -z "$ac_err"; then
2008 eval "ac_cv_header_$ac_safe=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2014 eval "ac_cv_header_$ac_safe=no"
2018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h
<<EOF
2022 #define $ac_tr_hdr 1
2026 echo "$ac_t""no" 1>&6
2031 # Check for thread headers.
2032 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2033 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2034 echo "configure:2035: checking for thread.h" >&5
2035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2043 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2044 { (eval echo configure
:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2045 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2046 if test -z "$ac_err"; then
2048 eval "ac_cv_header_$ac_safe=yes"
2051 echo "configure: failed program was:" >&5
2052 cat conftest.
$ac_ext >&5
2054 eval "ac_cv_header_$ac_safe=no"
2058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2062 echo "$ac_t""no" 1>&6
2066 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2067 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2068 echo "configure:2069: checking for pthread.h" >&5
2069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 #include <pthread.h>
2077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure
:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2082 eval "ac_cv_header_$ac_safe=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.
$ac_ext >&5
2088 eval "ac_cv_header_$ac_safe=no"
2092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2096 echo "$ac_t""no" 1>&6
2101 # See if GNAT has been installed
2102 # Extract the first word of "gnatbind", so it can be a program name with args.
2103 set dummy gnatbind
; ac_word
=$2
2104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_word" >&5
2106 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test -n "$gnat"; then
2110 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2114 for ac_dir
in $ac_dummy; do
2115 test -z "$ac_dir" && ac_dir
=.
2116 if test -f $ac_dir/$ac_word; then
2117 ac_cv_prog_gnat
="yes"
2122 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2125 gnat
="$ac_cv_prog_gnat"
2126 if test -n "$gnat"; then
2127 echo "$ac_t""$gnat" 1>&6
2129 echo "$ac_t""no" 1>&6
2133 # See if the stage1 system preprocessor understands the ANSI C
2134 # preprocessor stringification operator.
2137 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2138 echo "configure:2139: checking for preprocessor stringizing operator" >&5
2139 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2148 char *s = x(teststring);
2151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2152 egrep "#teststring" >/dev
/null
2>&1; then
2154 ac_cv_c_stringize
=no
2157 ac_cv_c_stringize
=yes
2163 if test "${ac_cv_c_stringize}" = yes
2165 cat >> confdefs.h
<<\EOF
2166 #define HAVE_STRINGIZE 1
2170 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2173 # Use <inttypes.h> only if it exists,
2174 # doesn't clash with <sys/types.h>, and declares intmax_t.
2175 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2176 echo "configure:2177: checking for inttypes.h" >&5
2177 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 #include <sys/types.h>
2184 #include <inttypes.h>
2189 if { (eval echo configure
:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2191 gcc_cv_header_inttypes_h
=yes
2193 echo "configure: failed program was:" >&5
2194 cat conftest.
$ac_ext >&5
2196 gcc_cv_header_inttypes_h
=no
2201 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2202 if test $gcc_cv_header_inttypes_h = yes; then
2203 cat >> confdefs.h
<<\EOF
2204 #define HAVE_INTTYPES_H 1
2209 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2210 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2211 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2212 fputs_unlocked getrusage valloc
2214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_func" >&5
2216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 /* System header to define __stub macros and hopefully few prototypes,
2223 which can conflict with char $ac_func(); below. */
2225 /* Override any gcc2 internal prototype to avoid an error. */
2226 /* We use char because int might match the return type of a gcc2
2227 builtin and then its argument prototype would still apply. */
2232 /* The GNU C library defines this for functions which it implements
2233 to always fail with ENOSYS. Some functions are actually named
2234 something starting with __ and the normal name is an alias. */
2235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2243 if { (eval echo configure
:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2245 eval "ac_cv_func_$ac_func=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 eval "ac_cv_func_$ac_func=no"
2255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2257 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2258 cat >> confdefs.h
<<EOF
2259 #define $ac_tr_func 1
2263 echo "$ac_t""no" 1>&6
2268 # Make sure wchar_t is available
2269 #AC_CHECK_TYPE(wchar_t, unsigned int)
2271 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2272 echo "configure:2273: checking for vprintf" >&5
2273 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* System header to define __stub macros and hopefully few prototypes,
2280 which can conflict with char vprintf(); below. */
2282 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2289 /* The GNU C library defines this for functions which it implements
2290 to always fail with ENOSYS. Some functions are actually named
2291 something starting with __ and the normal name is an alias. */
2292 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2300 if { (eval echo configure
:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2302 eval "ac_cv_func_vprintf=yes"
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2307 eval "ac_cv_func_vprintf=no"
2312 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2313 echo "$ac_t""yes" 1>&6
2314 cat >> confdefs.h
<<\EOF
2315 #define HAVE_VPRINTF 1
2319 echo "$ac_t""no" 1>&6
2322 if test "$ac_cv_func_vprintf" != yes; then
2323 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2324 echo "configure:2325: checking for _doprnt" >&5
2325 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char _doprnt(); below. */
2334 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2352 if { (eval echo configure
:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2354 eval "ac_cv_func__doprnt=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 eval "ac_cv_func__doprnt=no"
2364 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 cat >> confdefs.h
<<\EOF
2367 #define HAVE_DOPRNT 1
2371 echo "$ac_t""no" 1>&6
2378 if test $ac_cv_func_vprintf != yes ; then
2380 if test $ac_cv_func__doprnt != yes ; then
2387 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2388 echo "configure:2389: checking whether the printf functions support %p" >&5
2389 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 if test "$cross_compiling" = yes; then
2393 gcc_cv_func_printf_ptr
=no
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2403 char *p = buf, *q = NULL;
2404 sprintf(buf, "%p", p);
2405 sscanf(buf, "%p", &q);
2409 if { (eval echo configure
:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2411 gcc_cv_func_printf_ptr
=yes
2413 echo "configure: failed program was:" >&5
2414 cat conftest.
$ac_ext >&5
2416 gcc_cv_func_printf_ptr
=no
2421 rm -f core core.
* *.core
2424 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2425 if test $gcc_cv_func_printf_ptr = yes ; then
2426 cat >> confdefs.h
<<\EOF
2427 #define HAVE_PRINTF_PTR 1
2435 # Under some versions of uwin, vfork is notoriously buggy and the test
2436 # can hang configure; on other versions, vfork exists just as a stub.
2437 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2438 ac_cv_func_vfork_works
=no
2441 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2442 echo "configure:2443: checking for pid_t" >&5
2443 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.
$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <sys/types.h>
2455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2456 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2458 ac_cv_type_pid_t
=yes
2466 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2467 if test $ac_cv_type_pid_t = no
; then
2468 cat >> confdefs.h
<<\EOF
2474 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2475 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2476 echo "configure:2477: checking for vfork.h" >&5
2477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure
:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2488 if test -z "$ac_err"; then
2490 eval "ac_cv_header_$ac_safe=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 eval "ac_cv_header_$ac_safe=no"
2500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 cat >> confdefs.h
<<\EOF
2503 #define HAVE_VFORK_H 1
2507 echo "$ac_t""no" 1>&6
2510 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2511 echo "configure:2512: checking for working vfork" >&5
2512 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test "$cross_compiling" = yes; then
2516 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2517 echo "configure:2518: checking for vfork" >&5
2518 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.
$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 /* System header to define __stub macros and hopefully few prototypes,
2525 which can conflict with char vfork(); below. */
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2534 /* The GNU C library defines this for functions which it implements
2535 to always fail with ENOSYS. Some functions are actually named
2536 something starting with __ and the normal name is an alias. */
2537 #if defined (__stub_vfork) || defined (__stub___vfork)
2545 if { (eval echo configure
:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2547 eval "ac_cv_func_vfork=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 eval "ac_cv_func_vfork=no"
2557 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2561 echo "$ac_t""no" 1>&6
2564 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2566 cat > conftest.
$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* Thanks to Paul Eggert for this test. */
2571 #include <sys/types.h>
2572 #include <sys/stat.h>
2573 #ifdef HAVE_UNISTD_H
2579 /* On some sparc systems, changes by the child to local and incoming
2580 argument registers are propagated back to the parent.
2581 The compiler is told about this with #include <vfork.h>,
2582 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2583 Test for this by using a static variable whose address
2584 is put into a register that is clobbered by the vfork. */
2587 sparc_address_test (int arg)
2589 sparc_address_test (arg) int arg;
2607 pid_t parent = getpid ();
2610 sparc_address_test ();
2615 /* Here is another test for sparc vfork register problems.
2616 This test uses lots of local variables, at least
2617 as many local variables as main has allocated so far
2618 including compiler temporaries. 4 locals are enough for
2619 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2620 A buggy compiler should reuse the register of parent
2621 for one of the local variables, since it will think that
2622 parent can't possibly be used any more in this routine.
2623 Assigning to the local variable will thus munge parent
2624 in the parent process. */
2626 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2627 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2628 /* Convince the compiler that p..p7 are live; otherwise, it might
2629 use the same hardware register for all 8 local variables. */
2630 if (p != p1 || p != p2 || p != p3 || p != p4
2631 || p != p5 || p != p6 || p != p7)
2634 /* On some systems (e.g. IRIX 3.3),
2635 vfork doesn't separate parent from child file descriptors.
2636 If the child closes a descriptor before it execs or exits,
2637 this munges the parent's descriptor as well.
2638 Test for this by closing stdout in the child. */
2639 _exit(close(fileno(stdout)) != 0);
2644 while (wait(&status) != child)
2647 /* Was there some problem with vforking? */
2650 /* Did the child fail? (This shouldn't happen.) */
2653 /* Did the vfork/compiler bug occur? */
2654 || parent != getpid()
2656 /* Did the file descriptor bug occur? */
2657 || fstat(fileno(stdout), &st) != 0
2662 if { (eval echo configure
:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2664 ac_cv_func_vfork_works
=yes
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2669 ac_cv_func_vfork_works
=no
2676 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2677 if test $ac_cv_func_vfork_works = no
; then
2678 cat >> confdefs.h
<<\EOF
2684 for ac_hdr
in unistd.h
2686 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_hdr" >&5
2689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2697 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure
:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2702 eval "ac_cv_header_$ac_safe=yes"
2705 echo "configure: failed program was:" >&5
2706 cat conftest.
$ac_ext >&5
2708 eval "ac_cv_header_$ac_safe=no"
2712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2713 echo "$ac_t""yes" 1>&6
2714 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2715 cat >> confdefs.h
<<EOF
2716 #define $ac_tr_hdr 1
2720 echo "$ac_t""no" 1>&6
2724 for ac_func
in getpagesize
2726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_func" >&5
2728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.
$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 /* System header to define __stub macros and hopefully few prototypes,
2735 which can conflict with char $ac_func(); below. */
2737 /* Override any gcc2 internal prototype to avoid an error. */
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2744 /* The GNU C library defines this for functions which it implements
2745 to always fail with ENOSYS. Some functions are actually named
2746 something starting with __ and the normal name is an alias. */
2747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2755 if { (eval echo configure
:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2757 eval "ac_cv_func_$ac_func=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 eval "ac_cv_func_$ac_func=no"
2767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2770 cat >> confdefs.h
<<EOF
2771 #define $ac_tr_func 1
2775 echo "$ac_t""no" 1>&6
2779 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2780 echo "configure:2781: checking for working mmap from /dev/zero" >&5
2781 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 if test "$cross_compiling" = yes; then
2785 ac_cv_func_mmap_anywhere
=no
2787 cat > conftest.
$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2791 /* Test by Richard Henderson and Alexandre Oliva.
2792 Check whether mmap from /dev/zero works. */
2793 #include <sys/types.h>
2795 #include <sys/mman.h>
2797 /* This mess was copied from the GNU getpagesize.h. */
2798 #ifndef HAVE_GETPAGESIZE
2799 # ifdef HAVE_UNISTD_H
2800 # include <unistd.h>
2803 /* Assume that all systems that can run configure have sys/param.h. */
2804 # ifndef HAVE_SYS_PARAM_H
2805 # define HAVE_SYS_PARAM_H 1
2808 # ifdef _SC_PAGESIZE
2809 # define getpagesize() sysconf(_SC_PAGESIZE)
2810 # else /* no _SC_PAGESIZE */
2811 # ifdef HAVE_SYS_PARAM_H
2812 # include <sys/param.h>
2813 # ifdef EXEC_PAGESIZE
2814 # define getpagesize() EXEC_PAGESIZE
2815 # else /* no EXEC_PAGESIZE */
2817 # define getpagesize() NBPG * CLSIZE
2820 # endif /* no CLSIZE */
2821 # else /* no NBPG */
2823 # define getpagesize() NBPC
2824 # else /* no NBPC */
2826 # define getpagesize() PAGESIZE
2827 # endif /* PAGESIZE */
2828 # endif /* no NBPC */
2829 # endif /* no NBPG */
2830 # endif /* no EXEC_PAGESIZE */
2831 # else /* no HAVE_SYS_PARAM_H */
2832 # define getpagesize() 8192 /* punt totally */
2833 # endif /* no HAVE_SYS_PARAM_H */
2834 # endif /* no _SC_PAGESIZE */
2836 #endif /* no HAVE_GETPAGESIZE */
2843 fd = open("/dev/zero", O_RDWR);
2848 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2849 if (x == (char *) -1)
2854 if (munmap(x, pg) < 0)
2860 if { (eval echo configure
:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2862 ac_cv_func_mmap_anywhere
=yes
2864 echo "configure: failed program was:" >&5
2865 cat conftest.
$ac_ext >&5
2867 ac_cv_func_mmap_anywhere
=no
2874 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2875 if test $ac_cv_func_mmap_anywhere = yes; then
2876 cat >> confdefs.h
<<\EOF
2877 #define HAVE_MMAP_ANYWHERE 1
2883 for ac_func
in bcopy bzero bcmp \
2884 index rindex getenv atol sbrk abort atof getcwd getwd \
2885 strsignal putc_unlocked fputs_unlocked strstr environ
2887 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2888 echo "configure:2889: checking whether $ac_func must be declared" >&5
2889 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2897 #ifdef STRING_WITH_STRINGS
2898 # include <string.h>
2899 # include <strings.h>
2901 # ifdef HAVE_STRING_H
2902 # include <string.h>
2904 # ifdef HAVE_STRINGS_H
2905 # include <strings.h>
2909 #ifdef HAVE_STDLIB_H
2912 #ifdef HAVE_UNISTD_H
2917 #define rindex strrchr
2922 #define index strchr
2927 char *(*pfn) = (char *(*)) $ac_func
2930 if { (eval echo configure
:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2932 eval "gcc_cv_decl_needed_$ac_func=no"
2934 echo "configure: failed program was:" >&5
2935 cat conftest.
$ac_ext >&5
2937 eval "gcc_cv_decl_needed_$ac_func=yes"
2942 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2945 cat >> confdefs.h
<<EOF
2946 #define $gcc_tr_decl 1
2950 echo "$ac_t""no" 1>&6
2956 for ac_func
in malloc realloc calloc free
2958 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2959 echo "configure:2960: checking whether $ac_func must be declared" >&5
2960 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2968 #ifdef STRING_WITH_STRINGS
2969 # include <string.h>
2970 # include <strings.h>
2972 # ifdef HAVE_STRING_H
2973 # include <string.h>
2975 # ifdef HAVE_STRINGS_H
2976 # include <strings.h>
2980 #ifdef HAVE_STDLIB_H
2983 #ifdef HAVE_UNISTD_H
2988 #define rindex strrchr
2993 #define index strchr
2996 #ifdef HAVE_MALLOC_H
3001 char *(*pfn) = (char *(*)) $ac_func
3004 if { (eval echo configure
:3005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3006 eval "gcc_cv_decl_needed_$ac_func=no"
3008 echo "configure: failed program was:" >&5
3009 cat conftest.
$ac_ext >&5
3011 eval "gcc_cv_decl_needed_$ac_func=yes"
3016 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3019 cat >> confdefs.h
<<EOF
3020 #define $gcc_tr_decl 1
3024 echo "$ac_t""no" 1>&6
3030 for ac_func
in getrlimit setrlimit getrusage
3032 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3033 echo "configure:3034: checking whether $ac_func must be declared" >&5
3034 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.
$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3042 #ifdef STRING_WITH_STRINGS
3043 # include <string.h>
3044 # include <strings.h>
3046 # ifdef HAVE_STRING_H
3047 # include <string.h>
3049 # ifdef HAVE_STRINGS_H
3050 # include <strings.h>
3054 #ifdef HAVE_STDLIB_H
3057 #ifdef HAVE_UNISTD_H
3062 #define rindex strrchr
3067 #define index strchr
3070 #include <sys/types.h>
3071 #ifdef HAVE_SYS_RESOURCE_H
3072 #include <sys/resource.h>
3076 char *(*pfn) = (char *(*)) $ac_func
3079 if { (eval echo configure
:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 eval "gcc_cv_decl_needed_$ac_func=no"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3086 eval "gcc_cv_decl_needed_$ac_func=yes"
3091 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3092 echo "$ac_t""yes" 1>&6
3093 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3094 cat >> confdefs.h
<<EOF
3095 #define $gcc_tr_decl 1
3099 echo "$ac_t""no" 1>&6
3105 # mkdir takes a single argument on some systems.
3106 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3107 echo "configure:3108: checking if mkdir takes one argument" >&5
3108 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3115 #include <sys/types.h>
3116 #ifdef HAVE_SYS_STAT_H
3117 # include <sys/stat.h>
3119 #ifdef HAVE_UNISTD_H
3120 # include <unistd.h>
3122 #ifdef HAVE_DIRECT_H
3123 # include <direct.h>
3129 if { (eval echo configure
:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131 gcc_cv_mkdir_takes_one_arg
=no
3133 echo "configure: failed program was:" >&5
3134 cat conftest.
$ac_ext >&5
3136 gcc_cv_mkdir_takes_one_arg
=yes
3141 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3142 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3143 cat >> confdefs.h
<<\EOF
3144 #define MKDIR_TAKES_ONE_ARG 1
3158 build_install_headers_dir
=install-headers-tar
3163 host_truncate_target
=
3166 # Decode the host machine, then the target machine.
3167 # For the host machine, we save the xm_file variable as host_xm_file;
3168 # then we decode the target machine and forget everything else
3169 # that came from the host machine.
3170 for machine
in $build $host $target; do
3184 # Set this to force installation and use of collect2.
3186 # Set this to override the default target model.
3188 # Set this to control how the header file directory is installed.
3189 install_headers_dir
=install-headers-tar
3190 # Set this to a non-empty list of args to pass to cpp if the target
3191 # wants its .md file passed through cpp.
3193 # Set this if directory names should be truncated to 14 characters.
3195 # Set this if gdb needs a dir command with `dirname $out_file`
3196 gdb_needs_out_file_path
=
3197 # Set this if the build machine requires executables to have a
3200 # Set this to control which thread package will be used.
3202 # Reinitialize these from the flag values every loop pass, since some
3203 # configure entries modify them.
3205 gnu_ld
="$gnu_ld_flag"
3206 enable_threads
=$enable_threads_flag
3208 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3209 # updated in each machine entry.
3211 cpu_type
=`echo $machine | sed 's/-.*$//'`
3248 tm_file
=${cpu_type}/${cpu_type}.h
3249 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3250 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3252 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3254 # On a.out targets, we need to use collect2.
3261 # Common parts for linux-gnu and openbsd systems
3264 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3267 tm_file
=${cpu_type}/openbsd.h
3268 tmake_file
="t-libc-ok t-openbsd"
3269 # avoid surprises, always provide an xm-openbsd file
3270 xm_file
=${cpu_type}/xm-openbsd.h
3271 # don't depend on processor x-fragments as well
3273 if test x
$enable_threads = xyes
; then
3275 tmake_file
="${tmake_file} t-openbsd-thread"
3281 # Support site-specific machine types.
3283 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3284 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3285 xm_file
=${cpu_type}/xm-
$rest.h
3286 tm_file
=${cpu_type}/$rest.h
3287 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3288 then xmake_file
=${cpu_type}/x-
$rest; \
3291 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3292 then tmake_file
=${cpu_type}/t-
$rest; \
3298 a29k-
*-bsd* | a29k-
*-sym1*)
3299 tm_file
="${tm_file} a29k/unix.h"
3301 xmake_file
=a29k
/x-unix
3304 a29k-
*-udi | a29k-
*-coff)
3305 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3306 tmake_file
=a29k
/t-a29kbare
3309 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3310 tmake_file
=a29k
/t-vx29k
3311 extra_parts
="crtbegin.o crtend.o"
3312 thread_file
='vxworks'
3314 a29k-
*-*) # Default a29k environment.
3318 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3320 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3321 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3323 # GAS + IEEE_CONFORMANT
3324 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3326 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3327 xmake_file
="x-interix alpha/t-pe"
3328 tmake_file
="alpha/t-interix alpha/t-ieee"
3329 if test x
$enable_threads = xyes
; then
3332 if test x
$stabs = xyes
; then
3333 tm_file
="${tm_file} dbxcoff.h"
3335 #prefix='$$INTERIX_ROOT'/usr/contrib
3336 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3338 alpha
*-*-linux-gnuecoff*)
3339 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3340 target_cpu_default
="MASK_GAS"
3341 tmake_file
="alpha/t-ieee"
3346 alpha
*-*-linux-gnulibc1*)
3347 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3348 target_cpu_default
="MASK_GAS"
3349 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3350 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3353 if test x
$enable_threads = xyes
; then
3357 alpha
*-*-linux-gnu*)
3358 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3359 target_cpu_default
="MASK_GAS"
3360 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3361 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3364 if test x
$enable_threads = xyes
; then
3369 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3370 target_cpu_default
="MASK_GAS"
3371 tmake_file
="alpha/t-crtbe alpha/t-ieee"
3372 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3378 # default x-alpha is only appropriate for dec-osf.
3379 target_cpu_default
="MASK_GAS"
3380 tmake_file
="alpha/t-ieee"
3384 if test x
$stabs = xyes
3386 tm_file
="${tm_file} dbx.h"
3388 if test x
$gas != xyes
3390 extra_passes
="mips-tfile mips-tdump"
3393 tmake_file
="alpha/t-ieee"
3396 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3399 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3402 tm_file
="${tm_file} alpha/osf.h"
3403 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3404 # a broken tar, so we use cpio instead.
3405 install_headers_dir
=install-headers-cpio
3408 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3412 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3413 target_cpu_default
=MASK_SUPPORT_ARCH
3418 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3419 tmake_file
="alpha/t-ieee"
3422 extra_passes
="mips-tfile mips-tdump"
3425 thread_file
='vxworks'
3428 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3429 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3430 tmake_file
="t-libc-ok alpha/t-ieee"
3431 xmake_file
=winnt
/x-winnt
3432 extra_host_objs
=oldnames.o
3433 extra_gcc_objs
="spawnv.o oldnames.o"
3434 if test x
$gnu_ld != xyes
3436 extra_programs
=ld.exe
3438 if test x
$enable_threads = xyes
; then
3444 xm_file
="${xm_file} alpha/xm-vms.h"
3445 tmake_file
="alpha/t-vms alpha/t-ieee"
3448 extra_parts
="crtinit.o crtfini.o"
3450 arm-
*-coff* | armel-
*-coff*)
3452 tmake_file
=arm
/t-bare
3456 tmake_file
=arm
/t-bare
3457 thread_file
='vxworks'
3459 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3460 tm_file
=arm
/riscix1-1.h
3463 arm-
*-riscix*) # Acorn RISC machine
3464 if test x
$gas = xyes
3466 tm_file
=arm
/rix-gas.h
3468 tm_file
=arm
/riscix.h
3470 xmake_file
=arm
/x-riscix
3471 tmake_file
=arm
/t-riscix
3474 arm-semi-aout | armel-semi-aout
)
3476 tmake_file
=arm
/t-semi
3478 arm-semi-aof | armel-semi-aof
)
3479 tm_file
=arm
/semiaof.h
3480 tmake_file
=arm
/t-semiaof
3483 tm_file
=arm
/netbsd.h
3484 tmake_file
="t-netbsd arm/t-netbsd"
3487 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3490 tm_file
=arm
/linux-aout.h
3491 tmake_file
=arm
/t-linux
3494 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3495 xm_file
=arm
/xm-linux.h
3497 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3500 tm_file
="arm/linux-elf26.h $tm_file"
3503 tmake_file
="t-linux arm/t-linux"
3504 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3506 case x
${enable_threads} in
3507 x | xyes | xpthreads | xposix
)
3512 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3513 xm_file
=arm
/xm-linux.h
3515 tm_file
="arm/linux-elf.h"
3518 tm_file
="arm/linux-elf26.h $tm_file"
3521 tmake_file
="t-linux arm/t-linux"
3522 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3524 case x
${enable_threads} in
3525 x | xyes | xpthreads | xposix
)
3530 arm
*-*-uclinux*) # ARM ucLinux
3531 tm_file
=arm
/uclinux-elf.h
3532 tmake_file
=arm
/t-arm-elf
3536 tmake_file
=arm
/t-bare
3539 tm_file
=arm
/ecos-elf.h
3540 tmake_file
=arm
/t-elf
3543 tm_file
=arm
/unknown-elf.h
3544 tmake_file
=arm
/t-arm-elf
3547 tm_file
=arm
/conix-elf.h
3548 tmake_file
=arm
/t-arm-elf
3551 tm_file
=arm
/unknown-elf-oabi.h
3552 tmake_file
=arm
/t-arm-elf
3561 c1-convex-
*) # Convex C1
3562 target_cpu_default
=1
3565 c2-convex-
*) # Convex C2
3566 target_cpu_default
=2
3570 target_cpu_default
=4
3574 target_cpu_default
=8
3578 target_cpu_default
=16
3583 tmake_file
=c4x
/t-c4x
3585 clipper-intergraph-clix
*)
3586 tm_file
="${tm_file} svr3.h clipper/clix.h"
3587 xm_file
=clipper
/xm-clix.h
3588 xmake_file
=clipper
/x-clix
3589 extra_headers
=va-clipper.h
3590 extra_parts
="crtbegin.o crtend.o"
3591 install_headers_dir
=install-headers-cpio
3599 tm_file
="fr30/fr30.h"
3600 tmake_file
=fr30
/t-fr30
3601 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3603 # This hasn't been upgraded to GCC 2.
3604 # fx80-alliant-*) # Alliant FX/80
3610 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3611 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3612 tmake_file
="t-linux pa/t-linux"
3613 extra_parts
="crtbegin.o crtend.o"
3616 if test x
$enable_threads = xyes
; then
3621 target_cpu_default
="MASK_PA_11"
3622 tmake_file
=pa
/t-openbsd
3625 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3626 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3627 xm_file
=pa
/xm-papro.h
3631 target_cpu_default
="MASK_PA_11"
3632 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3636 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3637 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3638 xm_file
=pa
/xm-papro.h
3642 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3646 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3647 target_cpu_default
="MASK_PA_11"
3651 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3655 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3656 xm_file
=pa
/xm-pahpux.h
3657 xmake_file
=pa
/x-pa-hpux
3658 if test x
$gas = xyes
3660 tm_file
="${tm_file} pa/gas.h"
3662 install_headers_dir
=install-headers-cpio
3665 hppa1.0
-*-hpux8.0
[0-2]*)
3666 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3667 xm_file
=pa
/xm-pahpux.h
3668 xmake_file
=pa
/x-pa-hpux
3669 if test x
$gas = xyes
3671 tm_file
="${tm_file} pa/pa-gas.h"
3673 tm_file
="pa/pa-oldas.h ${tm_file}"
3675 install_headers_dir
=install-headers-cpio
3678 hppa1.1
-*-hpux8.0
[0-2]*)
3679 target_cpu_default
="MASK_PA_11"
3680 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3681 xm_file
=pa
/xm-pahpux.h
3682 xmake_file
=pa
/x-pa-hpux
3683 if test x
$gas = xyes
3685 tm_file
="${tm_file} pa/pa-gas.h"
3687 tm_file
="pa/pa-oldas.h ${tm_file}"
3689 install_headers_dir
=install-headers-cpio
3693 target_cpu_default
="MASK_PA_11"
3694 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3695 xm_file
=pa
/xm-pahpux.h
3696 xmake_file
=pa
/x-pa-hpux
3697 if test x
$gas = xyes
3699 tm_file
="${tm_file} pa/pa-gas.h"
3701 install_headers_dir
=install-headers-cpio
3705 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3706 xm_file
=pa
/xm-pahpux.h
3707 xmake_file
=pa
/x-pa-hpux
3708 if test x
$gas = xyes
3710 tm_file
="${tm_file} pa/pa-gas.h"
3712 install_headers_dir
=install-headers-cpio
3715 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3716 target_cpu_default
="MASK_PA_11"
3717 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3719 xm_file
=pa
/xm-pahpux.h
3720 xmake_file
=pa
/x-pa-hpux
3722 if test x
$gas = xyes
3724 tm_file
="${tm_file} pa/pa-gas.h"
3726 if test x
$enable_threads = x
; then
3727 enable_threads
=$have_pthread_h
3729 if test x
$enable_threads = xyes
; then
3731 tmake_file
="${tmake_file} pa/t-dce-thr"
3733 install_headers_dir
=install-headers-cpio
3737 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3739 xm_file
=pa
/xm-pahpux.h
3740 xmake_file
=pa
/x-pa-hpux
3742 if test x
$gas = xyes
3744 tm_file
="${tm_file} pa/pa-gas.h"
3746 if test x
$enable_threads = x
; then
3747 enable_threads
=$have_pthread_h
3749 if test x
$enable_threads = xyes
; then
3751 tmake_file
="${tmake_file} pa/t-dce-thr"
3753 install_headers_dir
=install-headers-cpio
3756 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3757 target_cpu_default
="MASK_PA_11"
3758 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3760 xm_file
=pa
/xm-pahpux.h
3761 xmake_file
=pa
/x-pa-hpux
3763 if test x
$gas = xyes
3765 tm_file
="${tm_file} pa/pa-gas.h"
3767 # if test x$enable_threads = x; then
3768 # enable_threads=$have_pthread_h
3770 # if test x$enable_threads = xyes; then
3772 # tmake_file="${tmake_file} pa/t-dce-thr"
3774 install_headers_dir
=install-headers-cpio
3778 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3780 xm_file
=pa
/xm-pahpux.h
3781 xmake_file
=pa
/x-pa-hpux
3782 if test x
$gas = xyes
3784 tm_file
="${tm_file} pa/pa-gas.h"
3786 # if test x$enable_threads = x; then
3787 # enable_threads=$have_pthread_h
3789 # if test x$enable_threads = xyes; then
3791 # tmake_file="${tmake_file} pa/t-dce-thr"
3793 install_headers_dir
=install-headers-cpio
3796 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3797 target_cpu_default
="MASK_PA_11"
3798 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3799 xm_file
=pa
/xm-pahpux.h
3800 xmake_file
=pa
/x-pa-hpux
3801 if test x
$gas = xyes
3803 tm_file
="${tm_file} pa/pa-gas.h"
3805 install_headers_dir
=install-headers-cpio
3809 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3810 xm_file
=pa
/xm-pahpux.h
3811 xmake_file
=pa
/x-pa-hpux
3812 if test x
$gas = xyes
3814 tm_file
="${tm_file} pa/pa-gas.h"
3816 install_headers_dir
=install-headers-cpio
3819 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3820 target_cpu_default
="MASK_PA_11"
3821 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3822 xm_file
=pa
/xm-pahpux.h
3823 xmake_file
=pa
/x-pa-hpux
3824 if test x
$gas = xyes
3826 tm_file
="${tm_file} pa/pa-gas.h"
3828 install_headers_dir
=install-headers-cpio
3832 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3833 xm_file
=pa
/xm-pahpux.h
3834 xmake_file
=pa
/x-pa-hpux
3835 if test x
$gas = xyes
3837 tm_file
="${tm_file} pa/pa-gas.h"
3839 install_headers_dir
=install-headers-cpio
3843 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
3844 target_cpu_default
="MASK_PA_11"
3848 tm_file
="${tm_file} pa/pa-mpeix.h"
3849 xm_file
=pa
/xm-pampeix.h
3850 xmake_file
=pa
/x-pa-mpeix
3851 echo "You must use gas. Assuming it is already installed."
3852 install_headers_dir
=install-headers-tar
3855 i370-
*-opened*) # IBM 360/370/390 Architecture
3856 xm_file
=i370
/xm-oe.h
3858 xmake_file
=i370
/x-oe
3859 tmake_file
=i370
/t-oe
3862 xm_file
=i370
/xm-mvs.h
3864 tmake_file
=i370
/t-mvs
3867 xm_file
="xm-linux.h i370/xm-linux.h"
3869 tm_file
="i370/linux.h ${tm_file}"
3870 tmake_file
="t-linux i370/t-linux"
3871 # broken_install=yes
3872 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3873 # extra_parts="crtbegin.o crtend.o"
3877 if test x
$enable_threads = xyes
; then
3882 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3883 tm_file
=i386
/i386elf.h
3884 tmake_file
=i386
/t-i386elf
3887 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3888 if test x
$gas = xyes
3890 tm_file
=i386
/aix386.h
3891 extra_parts
="crtbegin.o crtend.o"
3892 tmake_file
=i386
/t-crtstuff
3894 tm_file
=i386
/aix386ng.h
3897 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3899 xmake_file
=i386
/x-aix
3901 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3902 xm_file
="xm-alloca.h ${xm_file}"
3903 xm_defines
="USG POSIX SMALL_ARG_MAX"
3904 xmake_file
=i386
/x-ncr3000
3905 if test x
$stabs = xyes
-a x
$gas = xyes
3907 tm_file
=i386
/sysv4gdb.h
3909 tm_file
=i386
/sysv4.h
3911 extra_parts
="crtbegin.o crtend.o"
3912 tmake_file
=i386
/t-crtpic
3916 xm_file
=i386
/xm-next.h
3917 tmake_file
=i386
/t-next
3918 xmake_file
=i386
/x-next
3919 extra_objs
=nextstep.o
3920 extra_parts
="crtbegin.o crtend.o"
3921 if test x
$enable_threads = xyes
; then
3925 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3927 if test x
$gas = xyes
3929 tm_file
=i386
/seq-gas.h
3931 tm_file
=i386
/sequent.h
3934 i
[34567]86-sequent-ptx1*)
3935 xm_defines
="USG SVR3"
3936 xmake_file
=i386
/x-sysv3
3937 tm_file
=i386
/seq-sysv3.h
3938 tmake_file
=i386
/t-crtstuff
3939 extra_parts
="crtbegin.o crtend.o"
3940 install_headers_dir
=install-headers-cpio
3942 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3943 xm_defines
="USG SVR3"
3944 xmake_file
=i386
/x-sysv3
3945 tm_file
=i386
/seq2-sysv3.h
3946 tmake_file
=i386
/t-crtstuff
3947 extra_parts
="crtbegin.o crtend.o"
3948 install_headers_dir
=install-headers-cpio
3950 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3951 xm_file
="xm-alloca.h ${xm_file}"
3952 xm_defines
="USG POSIX SMALL_ARG_MAX"
3954 tm_file
=i386
/ptx4-i.h
3956 extra_parts
="crtbegin.o crtend.o"
3957 install_headers_dir
=install-headers-cpio
3959 i386-sun-sunos
*) # Sun i386 roadrunner
3964 i
[34567]86-wrs-vxworks*)
3965 tm_file
=i386
/vxi386.h
3966 tmake_file
=i386
/t-i386bare
3967 thread_file
='vxworks'
3970 tm_file
=i386
/i386-aout.h
3971 tmake_file
=i386
/t-i386bare
3973 i
[34567]86-*-beospe*)
3974 xm_file
=i386
/xm-beos.h
3975 xm_defines
="USE_C_ALLOCA"
3976 tmake_file
=i386
/t-beos
3977 tm_file
=i386
/beos-pe.h
3978 xmake_file
=i386
/x-beos
3981 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
3982 xm_file
=i386
/xm-beos.h
3983 tmake_file
='i386/t-beos i386/t-crtpic'
3984 tm_file
=i386
/beos-elf.h
3985 xmake_file
=i386
/x-beos
3987 extra_parts
='crtbegin.o crtend.o'
3989 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
3990 tm_file
=i386
/bsd386.h
3991 # tmake_file=t-libc-ok
3994 tm_file
=i386
/386bsd.h
3995 # tmake_file=t-libc-ok
3996 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3999 i
[34567]86-*-freebsdelf*)
4000 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4001 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4002 tmake_file
=t-freebsd
4006 case x
${enable_threads} in
4007 xyes | xpthreads | xposix
)
4009 tmake_file
="${tmake_file} t-freebsd-thread"
4013 i
[34567]86-*-freebsd*)
4014 tm_file
="i386/freebsd.h i386/perform.h"
4015 tmake_file
=t-freebsd
4017 i
[34567]86-*-netbsd*)
4018 tm_file
=i386
/netbsd.h
4022 i
[34567]86-*-openbsd*)
4023 # we need collect2 until our bug is fixed...
4027 tm_file
=i386
/i386-coff.h
4028 tmake_file
=i386
/t-i386bare
4030 i
[34567]86-*-isc*) # 80386 running ISC system
4031 xm_file
="${xm_file} i386/xm-isc.h"
4032 xm_defines
="USG SVR3"
4034 i
[34567]86-*-isc[34]*)
4035 xmake_file
=i386
/x-isc3
4038 xmake_file
=i386
/x-isc
4041 if test x
$gas = xyes
-a x
$stabs = xyes
4043 tm_file
=i386
/iscdbx.h
4044 tmake_file
=i386
/t-svr3dbx
4045 extra_parts
="svr3.ifile svr3z.ifile"
4047 tm_file
=i386
/isccoff.h
4048 tmake_file
=i386
/t-crtstuff
4049 extra_parts
="crtbegin.o crtend.o"
4051 install_headers_dir
=install-headers-cpio
4053 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4055 xmake_file
=x-linux-aout
4056 tmake_file
="t-linux-aout i386/t-crtstuff"
4057 tm_file
=i386
/linux-oldld.h
4061 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4062 xmake_file
=x-linux-aout
4063 tmake_file
="t-linux-aout i386/t-crtstuff"
4064 tm_file
=i386
/linux-aout.h
4068 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4069 # GNU/Linux C library 5
4071 tm_file
=i386
/linux.h
4072 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4073 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4076 if test x
$enable_threads = xyes
; then
4077 thread_file
='single'
4080 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4081 # aka GNU/Linux C library 6
4083 tm_file
=i386
/linux.h
4084 tmake_file
="t-linux i386/t-crtstuff"
4085 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4088 if test x
$enable_threads = xyes
; then
4095 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4096 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4099 i
[34567]86-pc-msdosdjgpp*)
4100 xm_file
=i386
/xm-djgpp.h
4101 tm_file
=i386
/djgpp.h
4102 tmake_file
=i386
/t-djgpp
4103 xmake_file
=i386
/x-djgpp
4107 case $host in *pc-msdosdjgpp
*)
4112 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4114 tmake_file
=t-libc-ok
4118 i
[34567]86-*-lynxos*)
4119 if test x
$gas = xyes
4123 tm_file
=i386
/lynx-ng.h
4125 xm_file
=i386
/xm-lynx.h
4126 tmake_file
=i386
/t-i386bare
4131 # tmake_file=t-libc-ok
4134 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4135 if test x
$elf = xyes
4137 tm_file
=i386
/osfelf.h
4140 tm_file
=i386
/osfrose.h
4143 xm_file
="i386/xm-osf.h ${xm_file}"
4144 xmake_file
=i386
/x-osfrose
4145 tmake_file
=i386
/t-osf
4146 extra_objs
=halfpic.o
4148 i
[34567]86-go32-rtems*)
4150 xm_file
=i386
/xm-go32.h
4151 tm_file
=i386
/go32-rtems.h
4152 tmake_file
="i386/t-go32 t-rtems"
4154 i
[34567]86-*-rtemscoff*)
4156 tm_file
=i386
/rtems.h
4157 tmake_file
="i386/t-i386bare t-rtems"
4159 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4161 tm_file
=i386
/rtemself.h
4162 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4163 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4165 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4166 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4167 xm_defines
="USG SVR3"
4168 xmake_file
=i386
/x-sco5
4169 install_headers_dir
=install-headers-cpio
4171 if test x
$gas = xyes
4173 tm_file
="i386/sco5gas.h ${tm_file}"
4174 tmake_file
=i386
/t-sco5gas
4176 tmake_file
=i386
/t-sco5
4178 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4180 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4181 xm_file
="${xm_file} i386/xm-sco.h"
4182 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4183 xmake_file
=i386
/x-sco4
4184 install_headers_dir
=install-headers-cpio
4185 if test x
$stabs = xyes
4187 tm_file
=i386
/sco4dbx.h
4188 tmake_file
=i386
/t-svr3dbx
4189 extra_parts
="svr3.ifile svr3z.rfile"
4192 tmake_file
=i386
/t-crtstuff
4193 extra_parts
="crtbegin.o crtend.o"
4195 # The default EAFS filesystem supports long file names.
4196 # Truncating the target makes $host != $target which
4197 # makes gcc think it is doing a cross-compile.
4198 # truncate_target=yes
4200 i
[34567]86-*-sco*) # 80386 running SCO system
4201 xm_file
=i386
/xm-sco.h
4202 xmake_file
=i386
/x-sco
4203 install_headers_dir
=install-headers-cpio
4204 if test x
$stabs = xyes
4206 tm_file
=i386
/scodbx.h
4207 tmake_file
=i386
/t-svr3dbx
4208 extra_parts
="svr3.ifile svr3z.rfile"
4211 extra_parts
="crtbegin.o crtend.o"
4212 tmake_file
=i386
/t-crtstuff
4216 i
[34567]86-*-solaris2*)
4217 xm_file
="xm-alloca.h ${xm_file}"
4218 xm_defines
="USG POSIX SMALL_ARG_MAX"
4220 if test x
$gas = xyes
; then
4221 # Only needed if gas does not support -s
4222 tm_file
="i386/sol2gas.h ${tm_file}"
4224 tmake_file
=i386
/t-sol2
4225 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4227 if test x
${enable_threads} = x
; then
4228 enable_threads
=$have_pthread_h
4229 if test x
${enable_threads} = x
; then
4230 enable_threads
=$have_thread_h
4233 if test x
${enable_threads} = xyes
; then
4234 if test x
${have_pthread_h} = xyes
; then
4237 thread_file
='solaris'
4241 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4242 xm_file
="xm-alloca.h ${xm_file}"
4243 xm_defines
="USG POSIX"
4244 tm_file
=i386
/sysv5.h
4245 if test x
$stabs = xyes
4247 tm_file
="${tm_file} dbx.h"
4249 tmake_file
=i386
/t-crtpic
4251 extra_parts
="crtbegin.o crtend.o"
4252 if test x
$enable_threads = xyes
; then
4256 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4257 xm_file
="xm-alloca.h ${xm_file}"
4258 xm_defines
="USG POSIX SMALL_ARG_MAX"
4259 tm_file
=i386
/sysv4.h
4260 if test x
$stabs = xyes
4262 tm_file
="${tm_file} dbx.h"
4264 tmake_file
=i386
/t-crtpic
4266 extra_parts
="crtbegin.o crtend.o"
4268 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4269 xm_file
="xm-alloca.h ${xm_file}"
4270 xm_defines
="USG POSIX"
4272 tmake_file
="i386/t-crtpic i386/t-udk"
4274 extra_parts
="crtbegin.o crtend.o"
4275 install_headers_dir
=install-headers-cpio
4277 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4279 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4280 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4281 if test x
$stabs = xyes
4283 tm_file
=i386
/osf1elfgdb.h
4285 tm_file
=i386
/osf1elf.h
4287 tmake_file
=i386
/t-osf1elf
4288 xmake_file
=i386
/x-osf1elf
4289 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4291 i
[34567]86-*-sysv*) # Intel 80386's running system V
4292 xm_defines
="USG SVR3"
4293 xmake_file
=i386
/x-sysv3
4294 if test x
$gas = xyes
4296 if test x
$stabs = xyes
4298 tm_file
=i386
/svr3dbx.h
4299 tmake_file
=i386
/t-svr3dbx
4300 extra_parts
="svr3.ifile svr3z.rfile"
4302 tm_file
=i386
/svr3gas.h
4303 extra_parts
="crtbegin.o crtend.o"
4304 tmake_file
=i386
/t-crtstuff
4307 tm_file
=i386
/sysv3.h
4308 extra_parts
="crtbegin.o crtend.o"
4309 tmake_file
=i386
/t-crtstuff
4312 i386-
*-vsta) # Intel 80386's running VSTa kernel
4313 xm_file
="${xm_file} i386/xm-vsta.h"
4315 tmake_file
=i386
/t-vsta
4316 xmake_file
=i386
/x-vsta
4319 xm_file
="${xm_file} i386/xm-cygwin.h"
4320 tmake_file
=i386
/t-cygwin
4321 tm_file
=i386
/win32.h
4322 xmake_file
=i386
/x-cygwin
4324 if test x
$enable_threads = xyes
; then
4329 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4330 xm_file
="${xm_file} i386/xm-cygwin.h"
4331 tmake_file
=i386
/t-cygwin
4332 tm_file
=i386
/cygwin.h
4333 xmake_file
=i386
/x-cygwin
4335 if test x
$enable_threads = xyes
; then
4340 i
[34567]86-*-mingw32*)
4341 tm_file
=i386
/mingw32.h
4342 xm_file
="${xm_file} i386/xm-mingw32.h"
4343 tmake_file
="i386/t-cygwin i386/t-mingw32"
4345 xmake_file
=i386
/x-cygwin
4346 if test x
$enable_threads = xyes
; then
4353 *minwg32crt
* |
*mingw32
*)
4354 tm_file
="${tm_file} i386/crtdll.h"
4360 xm_file
="${xm_file} i386/xm-uwin.h"
4361 xm_defines
="USG NO_STAB_H"
4362 tmake_file
="i386/t-cygwin i386/t-uwin"
4364 xmake_file
=i386
/x-cygwin
4365 if test x
$enable_threads = xyes
; then
4370 i
[34567]86-*-interix*)
4371 tm_file
="i386/i386-interix.h interix.h"
4372 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4374 tmake_file
="i386/t-interix"
4375 extra_objs
=interix.o
4376 xmake_file
=x-interix
4377 if test x
$enable_threads = xyes
; then
4380 if test x
$stabs = xyes
; then
4381 tm_file
="${tm_file} dbxcoff.h"
4384 i
[34567]86-*-winnt3*)
4385 tm_file
=i386
/win-nt.h
4386 out_file
=i386
/i386.c
4387 xm_file
="xm-winnt.h ${xm_file}"
4388 xmake_file
=winnt
/x-winnt
4389 tmake_file
=i386
/t-winnt
4390 extra_host_objs
="winnt.o oldnames.o"
4391 extra_gcc_objs
="spawnv.o oldnames.o"
4392 if test x
$gnu_ld != xyes
4394 extra_programs
=ld.exe
4396 if test x
$enable_threads = xyes
; then
4400 i
[34567]86-dg-dgux*)
4401 xm_file
="xm-alloca.h ${xm_file}"
4402 xm_defines
="USG POSIX"
4403 out_file
=i386
/dgux.c
4405 tmake_file
=i386
/t-dgux
4406 xmake_file
=i386
/x-dgux
4407 install_headers_dir
=install-headers-cpio
4409 i860-alliant-
*) # Alliant FX/2800
4410 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4411 xm_file
="${xm_file}"
4412 xmake_file
=i860
/x-fx2800
4413 tmake_file
=i860
/t-fx2800
4414 extra_parts
="crtbegin.o crtend.o"
4417 tm_file
="${tm_file} i860/bsd.h"
4418 if test x
$gas = xyes
4420 tm_file
="${tm_file} i860/bsd-gas.h"
4425 tm_file
="${tm_file} i860/mach.h"
4426 tmake_file
=t-libc-ok
4428 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4429 tm_file
="${tm_file} svr3.h i860/paragon.h"
4430 xm_defines
="USG SVR3"
4434 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4435 xm_defines
="USG SVR3"
4436 xmake_file
=i860
/x-sysv3
4437 extra_parts
="crtbegin.o crtend.o"
4440 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4441 xm_defines
="USG SVR3"
4442 xmake_file
=i860
/x-sysv4
4444 extra_parts
="crtbegin.o crtend.o"
4446 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4447 tm_file
="${tm_file} i960/vx960.h"
4448 tmake_file
=i960
/t-vxworks960
4450 thread_file
='vxworks'
4452 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4453 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4454 tmake_file
=i960
/t-vxworks960
4456 thread_file
='vxworks'
4459 tm_file
="${tm_file} i960/vx960.h"
4460 tmake_file
=i960
/t-vxworks960
4462 thread_file
='vxworks'
4465 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4466 tmake_file
=i960
/t-960bare
4470 tmake_file
="i960/t-960bare t-rtems"
4471 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4474 i960-
*-*) # Default i960 environment.
4479 tmake_file
="ia64/t-ia64"
4480 target_cpu_default
="0"
4481 if test x
$gas = xyes
4483 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4485 if test x
$gnu_ld = xyes
4487 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4491 tm_file
=ia64
/linux.h
4492 tmake_file
="t-linux ia64/t-ia64"
4493 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4494 if test x
$enable_threads = xyes
; then
4499 extra_parts
="crtinit.o crtfini.o"
4501 m68000-convergent-sysv
*)
4503 xm_file
="m68k/xm-3b1.h ${xm_file}"
4506 extra_headers
=math-68881.h
4508 m68000-hp-bsd
*) # HP 9000/200 running BSD
4509 tm_file
=m68k
/hp2bsd.h
4510 xmake_file
=m68k
/x-hp2bsd
4512 extra_headers
=math-68881.h
4514 m68000-hp-hpux
*) # HP 9000 series 300
4515 xm_file
="xm-alloca.h ${xm_file}"
4517 if test x
$gas = xyes
4519 xmake_file
=m68k
/x-hp320g
4520 tm_file
=m68k
/hp310g.h
4522 xmake_file
=m68k
/x-hp320
4523 tm_file
=m68k
/hp310.h
4525 install_headers_dir
=install-headers-cpio
4527 extra_headers
=math-68881.h
4532 extra_headers
=math-68881.h
4535 tm_file
=m68k
/sun2o4.h
4537 extra_headers
=math-68881.h
4540 xm_file
="m68k/xm-3b1.h ${xm_file}"
4542 if test x
$gas = xyes
4549 extra_headers
=math-68881.h
4551 m68k-apple-aux
*) # Apple Macintosh running A/UX
4552 xm_defines
="USG AUX"
4553 tmake_file
=m68k
/t-aux
4554 install_headers_dir
=install-headers-cpio
4555 extra_headers
=math-68881.h
4556 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4558 if test "$gnu_ld" = yes
4560 tm_file
="${tm_file} m68k/auxgld.h"
4562 tm_file
="${tm_file} m68k/auxld.h"
4564 if test "$gas" = yes
4566 tm_file
="${tm_file} m68k/auxgas.h"
4568 tm_file
="${tm_file} m68k/auxas.h"
4570 tm_file
="${tm_file} m68k/a-ux.h"
4574 tm_file
=m68k
/apollo68.h
4575 xmake_file
=m68k
/x-apollo68
4577 extra_headers
=math-68881.h
4580 m68k-altos-sysv
*) # Altos 3068
4581 if test x
$gas = xyes
4583 tm_file
=m68k
/altos3068.h
4586 echo "The Altos is supported only with the GNU assembler" 1>&2
4589 extra_headers
=math-68881.h
4591 m68k-bull-sysv
*) # Bull DPX/2
4592 if test x
$gas = xyes
4594 if test x
$stabs = xyes
4596 tm_file
=m68k
/dpx2cdbx.h
4598 tm_file
=m68k
/dpx2g.h
4603 xm_file
="xm-alloca.h ${xm_file}"
4605 xmake_file
=m68k
/x-dpx2
4607 extra_headers
=math-68881.h
4609 m68k-atari-sysv4
*) # Atari variant of V.4.
4610 tm_file
=m68k
/atari.h
4611 xm_file
="xm-alloca.h ${xm_file}"
4612 xm_defines
="USG FULL_PROTOTYPES"
4614 extra_parts
="crtbegin.o crtend.o"
4615 extra_headers
=math-68881.h
4618 m68k-motorola-sysv
*)
4619 tm_file
=m68k
/mot3300.h
4620 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4621 if test x
$gas = xyes
4623 xmake_file
=m68k
/x-mot3300-gas
4624 if test x
$gnu_ld = xyes
4626 tmake_file
=m68k
/t-mot3300-gald
4628 tmake_file
=m68k
/t-mot3300-gas
4632 xmake_file
=m68k
/x-mot3300
4633 if test x
$gnu_ld = xyes
4635 tmake_file
=m68k
/t-mot3300-gld
4637 tmake_file
=m68k
/t-mot3300
4641 gdb_needs_out_file_path
=yes
4642 extra_parts
="crt0.o mcrt0.o"
4643 extra_headers
=math-68881.h
4646 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4647 tm_file
=m68k
/tower-as.h
4648 xm_defines
="USG SVR3"
4649 xmake_file
=m68k
/x-tower
4650 extra_parts
="crtbegin.o crtend.o"
4651 extra_headers
=math-68881.h
4654 tm_file
=m68k
/plexus.h
4655 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4658 extra_headers
=math-68881.h
4662 xm_file
="xm-alloca.h ${xm_file}"
4664 extra_headers
=math-68881.h
4667 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4668 xm_defines
="USG unos"
4669 xmake_file
=m68k
/x-crds
4672 extra_headers
=math-68881.h
4674 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4676 xm_file
="xm-alloca.h ${xm_file}"
4677 xm_defines
="USG FULL_PROTOTYPES"
4678 xmake_file
=m68k
/x-amix
4680 extra_parts
="crtbegin.o crtend.o"
4681 extra_headers
=math-68881.h
4685 tm_file
=m68k
/ccur-GAS.h
4686 xmake_file
=m68k
/x-ccur
4687 extra_headers
=math-68881.h
4691 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4692 tm_file
=m68k
/hp3bsd44.h
4693 xmake_file
=m68k
/x-hp3bsd44
4695 extra_headers
=math-68881.h
4698 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4699 tm_file
=m68k
/hp3bsd.h
4701 extra_headers
=math-68881.h
4705 if test x
$with_fp = xno
4707 tm_file
=m68k
/isi-nfp.h
4713 extra_headers
=math-68881.h
4715 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4716 xm_file
="xm-alloca.h ${xm_file}"
4718 if test x
$gas = xyes
4720 xmake_file
=m68k
/x-hp320g
4721 tm_file
=m68k
/hp320g.h
4723 xmake_file
=m68k
/x-hp320
4724 tm_file
=m68k
/hpux7.h
4726 install_headers_dir
=install-headers-cpio
4728 extra_headers
=math-68881.h
4731 m68k-hp-hpux
*) # HP 9000 series 300
4732 xm_file
="xm-alloca.h ${xm_file}"
4734 if test x
$gas = xyes
4736 xmake_file
=m68k
/x-hp320g
4737 tm_file
=m68k
/hp320g.h
4739 xmake_file
=m68k
/x-hp320
4740 tm_file
=m68k
/hp320.h
4742 install_headers_dir
=install-headers-cpio
4744 extra_headers
=math-68881.h
4748 tm_file
=m68k
/sun3mach.h
4750 extra_headers
=math-68881.h
4754 if test x
$gas = xyes
4756 tm_file
=m68k
/news3gas.h
4758 tm_file
=m68k
/news3.h
4761 extra_headers
=math-68881.h
4764 m68k-sony-bsd
* | m68k-sony-newsos
*)
4765 if test x
$gas = xyes
4767 tm_file
=m68k
/newsgas.h
4772 extra_headers
=math-68881.h
4775 m68k-next-nextstep2
*)
4776 tm_file
=m68k
/next21.h
4777 xm_file
="m68k/xm-next.h ${xm_file}"
4778 tmake_file
=m68k
/t-next
4779 xmake_file
=m68k
/x-next
4780 extra_objs
=nextstep.o
4781 extra_headers
=math-68881.h
4785 m68k-next-nextstep
[34]*)
4787 xm_file
="m68k/xm-next.h ${xm_file}"
4788 tmake_file
=m68k
/t-next
4789 xmake_file
=m68k
/x-next
4790 extra_objs
=nextstep.o
4791 extra_parts
="crtbegin.o crtend.o"
4792 extra_headers
=math-68881.h
4794 if test x
$enable_threads = xyes
; then
4799 if test x
$with_fp = xno
4801 tm_file
=m68k
/sun3n3.h
4803 tm_file
=m68k
/sun3o3.h
4807 extra_headers
=math-68881.h
4809 m68k-sun-sunos
*) # For SunOS 4 (the default).
4810 if test x
$with_fp = xno
4812 tm_file
=m68k
/sun3n.h
4818 extra_headers
=math-68881.h
4821 tm_file
=m68k
/vxm68k.h
4822 tmake_file
=m68k
/t-vxworks68
4823 extra_headers
=math-68881.h
4824 thread_file
='vxworks'
4828 tmake_file
=m68k
/t-m68kbare
4829 tm_file
="m68k/m68k-aout.h libgloss.h"
4830 extra_headers
=math-68881.h
4834 tmake_file
=m68k
/t-m68kbare
4835 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4836 extra_headers
=math-68881.h
4839 m68020-
*-elf* | m68k-
*-elf*)
4840 tm_file
="m68k/m68020-elf.h"
4841 xm_file
=m68k
/xm-m68kv.h
4842 tmake_file
=m68k
/t-m68kelf
4843 header_files
=math-68881.h
4846 if test x
$gas = xyes
4850 tm_file
=m68k
/lynx-ng.h
4852 xm_file
=m68k
/xm-lynx.h
4854 tmake_file
=m68k
/t-lynx
4855 extra_headers
=math-68881.h
4859 tm_file
=m68k
/netbsd.h
4866 # we need collect2 until our bug is fixed...
4869 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4870 xm_file
="xm-alloca.h ${xm_file}"
4872 xmake_file
=m68k
/x-m68kv
4873 extra_parts
="crtbegin.o crtend.o"
4874 extra_headers
=math-68881.h
4877 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4878 tm_file
=m68k
/m68kv4.h
4879 xm_file
="xm-alloca.h ${xm_file}"
4882 extra_parts
="crtbegin.o crtend.o"
4883 extra_headers
=math-68881.h
4886 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4889 tm_file
=m68k
/linux-aout.h
4890 tmake_file
="t-linux-aout m68k/t-linux-aout"
4891 extra_headers
=math-68881.h
4895 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4896 # with ELF format using the
4897 # GNU/Linux C library 5
4899 tm_file
=m68k
/linux.h
4900 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4901 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4902 extra_headers
=math-68881.h
4906 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4907 # with ELF format using glibc 2
4908 # aka the GNU/Linux C library 6.
4910 tm_file
=m68k
/linux.h
4911 tmake_file
="t-linux m68k/t-linux"
4912 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4913 extra_headers
=math-68881.h
4916 if test x
$enable_threads = xyes
; then
4921 tmake_file
=m68k
/t-m68kbare
4922 tm_file
=m68k
/m68k-psos.h
4923 extra_headers
=math-68881.h
4927 tmake_file
="m68k/t-m68kbare t-rtems"
4928 tm_file
=m68k
/rtems.h
4929 extra_headers
=math-68881.h
4932 m68k-
*-rtemself*|m68k-
*-rtems*)
4933 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4934 tm_file
=m68k
/rtemself.h
4935 extra_headers
=math-68881.h
4941 tm_file
=m88k
/dguxbcs.h
4942 tmake_file
=m88k
/t-dguxbcs
4946 tmake_file
=m88k
/t-dgux
4949 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4950 xmake_file
=m88k
/x-dgux
4951 if test x
$gas = xyes
4953 tmake_file
=m88k
/t-dgux-gas
4956 m88k-dolphin-sysv3
*)
4957 tm_file
=m88k
/dolph.h
4958 extra_parts
="crtbegin.o crtend.o"
4959 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4960 xmake_file
=m88k
/x-dolph
4961 if test x
$gas = xyes
4963 tmake_file
=m88k
/t-m88k-gas
4966 m88k-tektronix-sysv3
)
4967 tm_file
=m88k
/tekXD88.h
4968 extra_parts
="crtbegin.o crtend.o"
4969 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4970 xmake_file
=m88k
/x-tekXD88
4971 if test x
$gas = xyes
4973 tmake_file
=m88k
/t-m88k-gas
4977 tm_file
=m88k
/m88k-aout.h
4980 tm_file
=m88k
/m88k-coff.h
4981 tmake_file
=m88k
/t-bug
4985 extra_parts
="crtbegin.o crtend.o"
4986 if test x
$gas = xyes
4988 tmake_file
=m88k
/t-luna-gas
4990 tmake_file
=m88k
/t-luna
4994 tmake_file
="${tmake_file} m88k/t-luna-gas"
4997 tm_file
=m88k
/sysv3.h
4998 extra_parts
="crtbegin.o crtend.o"
4999 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5000 xmake_file
=m88k
/x-sysv3
5001 if test x
$gas = xyes
5003 tmake_file
=m88k
/t-m88k-gas
5007 tm_file
=m88k
/sysv4.h
5008 extra_parts
="crtbegin.o crtend.o"
5009 xmake_file
=m88k
/x-sysv4
5010 tmake_file
=m88k
/t-sysv4
5013 tm_file
=mcore
/mcore-elf.h
5014 tmake_file
=mcore
/t-mcore
5017 tm_file
=mcore
/mcore-pe.h
5018 tmake_file
=mcore
/t-mcore-pe
5020 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5021 if test "x$gnu_ld" = xyes
5023 tm_file
="mips/iris6.h mips/iris6gld.h"
5025 tm_file
=mips
/iris6.h
5027 tmake_file
=mips
/t-iris6
5028 xm_file
=mips
/xm-iris6.h
5029 xmake_file
=mips
/x-iris6
5030 # if test x$enable_threads = xyes; then
5031 # thread_file='irix'
5035 tm_file
="mips/elf.h mips/vxworks.h"
5036 tmake_file
=mips
/t-ecoff
5039 extra_parts
="crtbegin.o crtend.o"
5040 thread_file
='vxworks'
5042 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5043 tm_file
="mips/iris6.h mips/cross64.h"
5045 xm_file
="mips/xm-iris5.h"
5046 xmake_file
=mips
/x-iris
5047 tmake_file
=mips
/t-cross64
5048 # See comment in mips/iris[56].h files.
5050 # if test x$enable_threads = xyes; then
5051 # thread_file='irix'
5055 if test x
$gas = xyes
5057 if test x
$stabs = xyes
5059 tm_file
=mips
/iris5gdb.h
5061 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5064 tm_file
=mips
/sni-svr4.h
5067 xmake_file
=mips
/x-sni-svr4
5068 tmake_file
=mips
/t-mips-gas
5069 if test x
$gnu_ld != xyes
5074 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5075 if test x
$gas = xyes
5077 tm_file
="mips/iris5.h mips/iris5gas.h"
5078 if test x
$stabs = xyes
5080 tm_file
="${tm_file} dbx.h"
5083 tm_file
=mips
/iris5.h
5086 xm_file
="mips/xm-iris5.h"
5087 xmake_file
=mips
/x-iris
5088 # mips-tfile doesn't work yet
5089 tmake_file
=mips
/t-mips-gas
5090 # See comment in mips/iris5.h file.
5092 # if test x$enable_threads = xyes; then
5093 # thread_file='irix'
5096 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5097 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5098 if test x
$stabs = xyes
; then
5099 tm_file
="${tm_file} dbx.h"
5102 xmake_file
=mips
/x-iris
5103 if test x
$gas = xyes
5105 tmake_file
=mips
/t-mips-gas
5107 extra_passes
="mips-tfile mips-tdump"
5109 if test x
$gnu_ld != xyes
5113 # if test x$enable_threads = xyes; then
5114 # thread_file='irix'
5117 mips-sgi-irix4
*) # Mostly like a MIPS.
5118 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5119 if test x
$stabs = xyes
; then
5120 tm_file
="${tm_file} dbx.h"
5123 xmake_file
=mips
/x-iris
5124 if test x
$gas = xyes
5126 tmake_file
=mips
/t-mips-gas
5128 extra_passes
="mips-tfile mips-tdump"
5130 if test x
$gnu_ld != xyes
5134 # if test x$enable_threads = xyes; then
5135 # thread_file='irix'
5138 mips-sgi-
*) # Mostly like a MIPS.
5139 tm_file
="mips/iris3.h ${tm_file}"
5140 if test x
$stabs = xyes
; then
5141 tm_file
="${tm_file} dbx.h"
5144 xmake_file
=mips
/x-iris3
5145 if test x
$gas = xyes
5147 tmake_file
=mips
/t-mips-gas
5149 extra_passes
="mips-tfile mips-tdump"
5151 if test x
$gnu_ld != xyes
5156 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5157 tm_file
="mips/osfrose.h ${tm_file}"
5158 xmake_file
=mips
/x-osfrose
5159 tmake_file
=mips
/t-osfrose
5160 extra_objs
=halfpic.o
5163 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5164 tm_file
=mips
/dec-osf1.h
5165 if test x
$stabs = xyes
; then
5166 tm_file
="${tm_file} dbx.h"
5168 xmake_file
=mips
/x-dec-osf1
5169 if test x
$gas = xyes
5171 tmake_file
=mips
/t-mips-gas
5173 tmake_file
=mips
/t-ultrix
5174 extra_passes
="mips-tfile mips-tdump"
5176 if test x
$gnu_ld != xyes
5181 mips-dec-bsd
*) # Decstation running 4.4 BSD
5182 tm_file
=mips
/dec-bsd.h
5183 if test x
$gas = xyes
5185 tmake_file
=mips
/t-mips-gas
5187 tmake_file
=mips
/t-ultrix
5188 extra_passes
="mips-tfile mips-tdump"
5190 if test x
$gnu_ld != xyes
5195 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5196 tm_file
=mips
/netbsd.h
5197 # On NetBSD, the headers are already okay, except for math.h.
5200 mips
*-*-linux*) # Linux MIPS, either endian.
5203 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5204 *) tm_file
="mips/elf.h mips/linux.h" ;;
5206 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5209 if test x
$enable_threads = xyes
; then
5213 mips
*el-
*-openbsd*) # mips little endian
5214 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5216 mips
*-*-openbsd*) # mips big endian
5217 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5218 tm_file
="mips/openbsd-be.h ${tm_file}"
5220 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5221 tm_file
="mips/news4.h ${tm_file}"
5222 if test x
$stabs = xyes
; then
5223 tm_file
="${tm_file} dbx.h"
5225 if test x
$gas = xyes
5227 tmake_file
=mips
/t-mips-gas
5229 extra_passes
="mips-tfile mips-tdump"
5231 if test x
$gnu_ld != xyes
5235 xmake_file
=mips
/x-sony
5237 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5238 # That is based on svr4.
5239 # t-svr4 is not right because this system doesn't use ELF.
5240 tm_file
="mips/news5.h ${tm_file}"
5241 if test x
$stabs = xyes
; then
5242 tm_file
="${tm_file} dbx.h"
5245 if test x
$gas = xyes
5247 tmake_file
=mips
/t-mips-gas
5249 extra_passes
="mips-tfile mips-tdump"
5251 if test x
$gnu_ld != xyes
5256 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5257 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5258 if test x
$stabs = xyes
; then
5259 tm_file
="${tm_file} dbx.h"
5262 xmake_file
=mips
/x-sysv
5263 if test x
$gas = xyes
5265 tmake_file
=mips
/t-mips-gas
5266 extra_parts
="crtbegin.o crtend.o"
5268 tmake_file
=mips
/t-mips
5269 extra_passes
="mips-tfile mips-tdump"
5271 if test x
$gnu_ld != xyes
5276 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5277 tm_file
="mips/ultrix.h ${tm_file}"
5278 if test x
$stabs = xyes
; then
5279 tm_file
="${tm_file} dbx.h"
5281 xmake_file
=mips
/x-ultrix
5282 if test x
$gas = xyes
5284 tmake_file
=mips
/t-mips-gas
5286 tmake_file
=mips
/t-ultrix
5287 extra_passes
="mips-tfile mips-tdump"
5289 if test x
$gnu_ld != xyes
5294 mips-
*-riscos[56789]bsd
*)
5295 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5296 if test x
$stabs = xyes
; then
5297 tm_file
="${tm_file} dbx.h"
5299 if test x
$gas = xyes
5301 tmake_file
=mips
/t-bsd-gas
5303 tmake_file
=mips
/t-bsd
5304 extra_passes
="mips-tfile mips-tdump"
5306 if test x
$gnu_ld != xyes
5311 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5312 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5313 if test x
$stabs = xyes
; then
5314 tm_file
="${tm_file} dbx.h"
5316 if test x
$gas = xyes
5318 tmake_file
=mips
/t-bsd-gas
5320 tmake_file
=mips
/t-bsd
5321 extra_passes
="mips-tfile mips-tdump"
5323 if test x
$gnu_ld != xyes
5328 mips-
*-riscos[56789]sysv4
*)
5329 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5330 if test x
$stabs = xyes
; then
5331 tm_file
="${tm_file} dbx.h"
5333 xmake_file
=mips
/x-sysv
5334 if test x
$gas = xyes
5336 tmake_file
=mips
/t-svr4-gas
5338 tmake_file
=mips
/t-svr4
5339 extra_passes
="mips-tfile mips-tdump"
5341 if test x
$gnu_ld != xyes
5346 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5347 tm_file
="mips/svr4-4.h ${tm_file}"
5348 if test x
$stabs = xyes
; then
5349 tm_file
="${tm_file} dbx.h"
5352 xmake_file
=mips
/x-sysv
5353 if test x
$gas = xyes
5355 tmake_file
=mips
/t-svr4-gas
5357 tmake_file
=mips
/t-svr4
5358 extra_passes
="mips-tfile mips-tdump"
5360 if test x
$gnu_ld != xyes
5365 mips-
*-riscos[56789]sysv
*)
5366 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5367 if test x
$stabs = xyes
; then
5368 tm_file
="${tm_file} dbx.h"
5371 xmake_file
=mips
/x-sysv
5372 if test x
$gas = xyes
5374 tmake_file
=mips
/t-svr3-gas
5376 tmake_file
=mips
/t-svr3
5377 extra_passes
="mips-tfile mips-tdump"
5379 if test x
$gnu_ld != xyes
5384 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5385 tm_file
="mips/svr3-4.h ${tm_file}"
5386 if test x
$stabs = xyes
; then
5387 tm_file
="${tm_file} dbx.h"
5390 xmake_file
=mips
/x-sysv
5391 if test x
$gas = xyes
5393 tmake_file
=mips
/t-svr3-gas
5395 tmake_file
=mips
/t-svr3
5396 extra_passes
="mips-tfile mips-tdump"
5398 if test x
$gnu_ld != xyes
5403 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5404 tm_file
=mips
/mips-5.h
5405 if test x
$stabs = xyes
; then
5406 tm_file
="${tm_file} dbx.h"
5408 if test x
$gas = xyes
5410 tmake_file
=mips
/t-mips-gas
5412 extra_passes
="mips-tfile mips-tdump"
5414 if test x
$gnu_ld != xyes
5422 tm_file
=mips
/ecoffl.h
5423 if test x
$stabs = xyes
; then
5424 tm_file
="${tm_file} dbx.h"
5426 tmake_file
=mips
/t-ecoff
5429 tm_file
="gofast.h mips/ecoff.h"
5430 if test x
$stabs = xyes
; then
5431 tm_file
="${tm_file} dbx.h"
5433 tmake_file
=mips
/t-ecoff
5436 tm_file
="mips/elfl.h"
5437 tmake_file
=mips
/t-elf
5440 tm_file
="mips/elf.h"
5441 tmake_file
=mips
/t-elf
5444 tm_file
="mips/elfl64.h"
5445 tmake_file
=mips
/t-elf
5447 mips64orionel-
*-elf*)
5448 tm_file
="mips/elforion.h mips/elfl64.h"
5449 tmake_file
=mips
/t-elf
5452 tm_file
="mips/elf64.h"
5453 tmake_file
=mips
/t-elf
5456 tm_file
="mips/elforion.h mips/elf64.h"
5457 tmake_file
=mips
/t-elf
5459 mips64orion-
*-rtems*)
5460 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5461 tmake_file
="mips/t-elf t-rtems"
5464 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5465 tmake_file
=mips
/t-r3900
5468 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5469 tmake_file
=mips
/t-r3900
5471 mips-
*-*) # Default MIPS RISC-OS 4.0.
5472 if test x
$stabs = xyes
; then
5473 tm_file
="${tm_file} dbx.h"
5475 if test x
$gas = xyes
5477 tmake_file
=mips
/t-mips-gas
5479 extra_passes
="mips-tfile mips-tdump"
5481 if test x
$gnu_ld != xyes
5489 tm_file
="mn10200/mn10200.h"
5490 if test x
$stabs = xyes
5492 tm_file
="${tm_file} dbx.h"
5498 tm_file
="mn10300/mn10300.h"
5499 if test x
$stabs = xyes
5501 tm_file
="${tm_file} dbx.h"
5506 tm_file
=ns32k
/encore.h
5510 tm_file
=ns32k
/sequent.h
5514 tm_file
=ns32k
/tek6100.h
5518 tm_file
=ns32k
/tek6200.h
5521 # This has not been updated to GCC 2.
5524 # xmake_file=ns32k/x-genix
5525 # tm_file=ns32k/genix.h
5529 tm_file
=ns32k
/merlin.h
5533 tm_file
=ns32k
/pc532-mach.h
5537 tm_file
=ns32k
/pc532-min.h
5538 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5543 tm_file
=ns32k
/netbsd.h
5544 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5545 # On NetBSD, the headers are already okay, except for math.h.
5550 tm_file
="${tm_file} pdp11/2bsd.h"
5559 # This has not been updated to GCC 2.
5562 # xmake_file=pyr/x-pyr
5567 tm_file
="svr4.h pj/linux.h ${tm_file}"
5572 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5579 xmake_file
=romp
/x-mach
5586 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5590 tm_file
=rs6000
/beos.h
5591 xm_file
=rs6000
/xm-beos.h
5592 tmake_file
=rs6000
/t-beos
5593 xmake_file
=rs6000
/x-beos
5596 tm_file
=rs6000
/sysv4.h
5597 xm_file
="rs6000/xm-sysv4.h"
5598 xm_defines
="USG POSIX"
5599 extra_headers
=ppc-asm.h
5600 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5601 xmake_file
=rs6000
/x-sysv4
5604 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5605 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5606 extra_headers
=ppc-asm.h
5609 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5610 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5611 extra_headers
=ppc-asm.h
5614 tm_file
="rs6000/sysv4.h"
5615 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5616 extra_headers
=ppc-asm.h
5619 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5620 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5621 extra_headers
=ppc-asm.h
5624 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5625 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5626 extra_headers
=ppc-asm.h
5628 powerpc-
*-linux-gnulibc1)
5629 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5630 xm_file
=rs6000
/xm-sysv4.h
5631 out_file
=rs6000
/rs6000.c
5632 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5634 extra_headers
=ppc-asm.h
5635 if test x
$enable_threads = xyes
; then
5639 powerpc-
*-linux-gnu*)
5640 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5641 xm_file
="rs6000/xm-sysv4.h"
5642 xm_defines
="USG ${xm_defines}"
5643 out_file
=rs6000
/rs6000.c
5644 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5646 extra_headers
=ppc-asm.h
5647 if test x
$enable_threads = xyes
; then
5651 powerpc-wrs-vxworks
*)
5653 xm_file
="rs6000/xm-sysv4.h"
5654 xm_defines
="USG POSIX"
5655 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5656 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5657 extra_headers
=ppc-asm.h
5658 thread_file
='vxworks'
5660 powerpcle-wrs-vxworks
*)
5662 xm_file
="rs6000/xm-sysv4.h"
5663 xm_defines
="USG POSIX"
5664 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5665 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5666 extra_headers
=ppc-asm.h
5667 thread_file
='vxworks'
5670 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5671 xm_file
="rs6000/xm-sysv4.h"
5672 xm_defines
="USG POSIX"
5673 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5674 xmake_file
=rs6000
/x-sysv4
5675 extra_headers
=ppc-asm.h
5678 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5679 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5680 extra_headers
=ppc-asm.h
5682 powerpcle-
*-eabisim*)
5683 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5684 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5685 extra_headers
=ppc-asm.h
5688 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5689 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5690 extra_headers
=ppc-asm.h
5692 powerpcle-
*-solaris2*)
5693 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5694 xm_file
="rs6000/xm-sysv4.h"
5695 xm_defines
="USG POSIX"
5696 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5697 xmake_file
=rs6000
/x-sysv4
5698 extra_headers
=ppc-asm.h
5700 rs6000-ibm-aix3.
[01]*)
5701 tm_file
=rs6000
/aix31.h
5702 xmake_file
=rs6000
/x-aix31
5706 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5707 tm_file
=rs6000
/aix3newas.h
5708 if test x
$host != x
$target
5710 tmake_file
=rs6000
/t-xnewas
5712 tmake_file
=rs6000
/t-newas
5717 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5718 tm_file
=rs6000
/aix41.h
5719 if test x
$host != x
$target
5721 tmake_file
=rs6000
/t-xnewas
5723 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5725 xmake_file
=rs6000
/x-aix41
5729 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5730 tm_file
=rs6000
/aix43.h
5731 tmake_file
=rs6000
/t-aix43
5732 xmake_file
=rs6000
/x-aix41
5736 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5737 tm_file
=rs6000
/aix43.h
5738 tmake_file
=rs6000
/t-aix43
5739 xmake_file
=rs6000
/x-aix41
5752 tm_file
=rs6000
/mach.h
5753 xm_file
="${xm_file} rs6000/xm-mach.h"
5754 xmake_file
=rs6000
/x-mach
5758 tm_file
=rs6000
/lynx.h
5759 xm_file
=rs6000
/xm-lynx.h
5760 tmake_file
=rs6000
/t-rs6000
5761 xmake_file
=rs6000
/x-lynx
5769 tmake_file
="sh/t-sh t-rtems"
5770 tm_file
=sh
/rtemself.h
5774 tmake_file
="sh/t-sh t-rtems"
5783 xm_file
="xm-alloca.h ${xm_file}"
5786 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5787 tm_file
=sparc
/vxsparc.h
5788 tmake_file
=sparc
/t-vxsparc
5790 thread_file
='vxworks'
5793 tmake_file
=sparc
/t-sparcbare
5794 tm_file
="sparc/aout.h libgloss.h"
5797 tm_file
=sparc
/netbsd.h
5802 # we need collect2 until our bug is fixed...
5810 tmake_file
=sparc
/t-elf
5811 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5815 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5816 xm_file
="${xm_file} sparc/xm-linux.h"
5817 tm_file
=sparc
/linux-aout.h
5821 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5822 xm_file
="${xm_file} sparc/xm-linux.h"
5824 tm_file
=sparc
/linux.h
5825 tmake_file
="t-linux t-linux-gnulibc1"
5826 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5830 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5831 xm_file
="${xm_file} sparc/xm-linux.h"
5833 tm_file
=sparc
/linux.h
5834 tmake_file
="t-linux"
5835 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5837 if test x
$enable_threads = xyes
; then
5843 if test x
$gas = xyes
5845 tm_file
=sparc
/lynx.h
5847 tm_file
=sparc
/lynx-ng.h
5849 xm_file
=sparc
/xm-lynx.h
5850 tmake_file
=sparc
/t-sunos41
5854 tmake_file
="sparc/t-sparcbare t-rtems"
5855 tm_file
=sparc
/rtems.h
5857 sparc-
*-rtems*|sparc-
*-rtemself*)
5858 tm_file
="sparc/rtemself.h"
5859 tmake_file
="sparc/t-elf t-rtems"
5860 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5864 sparcv9-
*-solaris2*)
5865 if test x
$gnu_ld = xyes
5867 tm_file
=sparc
/sol2-64.h
5869 tm_file
=sparc
/sol2-sld-64.h
5871 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5872 xm_defines
="USG POSIX"
5873 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5874 xmake_file
=sparc
/x-sysv4
5875 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5877 if test x
${enable_threads} = x
; then
5878 enable_threads
=$have_pthread_h
5879 if test x
${enable_threads} = x
; then
5880 enable_threads
=$have_thread_h
5883 if test x
${enable_threads} = xyes
; then
5884 if test x
${have_pthread_h} = xyes
; then
5887 thread_file
='solaris'
5891 sparc-hal-solaris2
*)
5892 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5893 xm_defines
="USG POSIX"
5894 tm_file
="sparc/sol2.h sparc/hal.h"
5895 tmake_file
="sparc/t-halos sparc/t-sol2"
5896 xmake_file
=sparc
/x-sysv4
5897 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5906 thread_file
='solaris'
5909 if test x
$gnu_ld = xyes
5911 tm_file
=sparc
/sol2.h
5913 tm_file
=sparc
/sol2-sld.h
5915 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5916 xm_defines
="USG POSIX"
5917 tmake_file
=sparc
/t-sol2
5918 xmake_file
=sparc
/x-sysv4
5919 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5921 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
5923 if test x
$gnu_ld = xyes
5925 tm_file
=sparc
/sol2-64.h
5927 tm_file
=sparc
/sol2-sld-64.h
5929 tmake_file
="$tmake_file sparc/t-sol2-64"
5940 if test x
${enable_threads} = x
; then
5941 enable_threads
=$have_pthread_h
5942 if test x
${enable_threads} = x
; then
5943 enable_threads
=$have_thread_h
5946 if test x
${enable_threads} = xyes
; then
5947 if test x
${have_pthread_h} = xyes
; then
5950 thread_file
='solaris'
5955 tm_file
=sparc
/sunos4.h
5956 tmake_file
=sparc
/t-sunos40
5960 tm_file
=sparc
/sunos4.h
5961 tmake_file
=sparc
/t-sunos41
5963 if test x
$gas = xyes
; then
5964 tm_file
="${tm_file} sparc/sun4gas.h"
5968 tm_file
=sparc
/sun4o3.h
5972 tm_file
=sparc
/sysv4.h
5973 xm_file
="sparc/xm-sysv4.h"
5974 xm_defines
="USG POSIX"
5976 xmake_file
=sparc
/x-sysv4
5977 extra_parts
="crtbegin.o crtend.o"
5980 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5981 xm_defines
="USG POSIX"
5982 tm_file
=sparc
/vxsim.h
5983 tmake_file
=sparc
/t-vxsparc
5984 xmake_file
=sparc
/x-sysv4
5987 tm_file
="sparc/splet.h libgloss.h"
5988 tmake_file
=sparc
/t-splet
5991 tm_file
="sparc/litecoff.h libgloss.h"
5992 tmake_file
=sparc
/t-sparclite
5995 tm_file
="sparc/lite.h aoutos.h libgloss.h"
5996 tmake_file
=sparc
/t-sparclite
5999 tm_file
="sparc/liteelf.h"
6000 tmake_file
=sparc
/t-sparclite
6001 extra_parts
="crtbegin.o crtend.o"
6004 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6005 tmake_file
=sparc
/t-sp86x
6008 tm_file
="sparc/sp86x-elf.h"
6009 tmake_file
=sparc
/t-sp86x
6010 extra_parts
="crtbegin.o crtend.o"
6013 tmake_file
=sparc
/t-sp64
6014 tm_file
=sparc
/sp64-aout.h
6017 tmake_file
=sparc
/t-sp64
6018 tm_file
=sparc
/sp64-elf.h
6019 extra_parts
="crtbegin.o crtend.o"
6021 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6022 tmake_file
="t-linux sparc/t-linux64"
6023 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6024 tm_file
=sparc
/linux64.h
6026 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6028 if test x
$enable_threads = xyes
; then
6033 # This hasn't been upgraded to GCC 2.
6034 # tahoe-harris-*) # Harris tahoe, using COFF.
6035 # tm_file=tahoe/harris.h
6037 # tahoe-*-bsd*) # tahoe running BSD
6039 thumb-
*-coff* | thumbel-
*-coff*)
6041 out_file
=arm
/thumb.c
6042 xm_file
=arm
/xm-thumb.h
6043 md_file
=arm
/thumb.md
6044 tmake_file
=arm
/t-thumb
6045 tm_p_file
=arm
/thumb-protos.h
6047 thumb-
*-elf* | thumbel-
*-elf*)
6049 out_file
=arm
/thumb.c
6050 xm_file
=arm
/xm-thumb.h
6051 md_file
=arm
/thumb.md
6052 tmake_file
=arm
/t-thumb-elf
6053 tm_p_file
=arm
/thumb-protos.h
6056 tm_file
=arm
/linux-telf.h
6057 out_file
=arm
/thumb.c
6058 xm_file
=arm
/xm-thumb.h
6059 md_file
=arm
/thumb.md
6060 tmake_file
=arm
/t-thumb-linux
6061 tm_p_file
=arm
/thumb-protos.h
6064 tm_file
=arm
/uclinux-telf.h
6065 out_file
=arm
/thumb.c
6066 md_file
=arm
/thumb.md
6067 tmake_file
=arm
/t-thumb-linux
6068 xm_file
=arm
/xm-thumb.h
6069 tm_p_file
=arm
/thumb-protos.h
6073 out_file
=arm
/thumb.c
6074 xm_file
=arm
/xm-thumb.h
6075 md_file
=arm
/thumb.md
6076 tmake_file
=arm
/t-thumb
6077 thread_file
='vxworks'
6078 tm_p_file
=arm
/thumb-protos.h
6082 out_file
=arm
/thumb.c
6083 xm_file
=arm
/xm-thumb.h
6084 md_file
=arm
/thumb.md
6085 tmake_file
=arm
/t-pe-thumb
6087 tm_p_file
=arm
/thumb-protos.h
6089 # This hasn't been upgraded to GCC 2.
6096 tm_file
="v850/rtems.h"
6097 xm_file
="v850/xm-v850.h"
6098 tmake_file
="v850/t-v850 t-rtems"
6099 if test x
$stabs = xyes
6101 tm_file
="${tm_file} dbx.h"
6106 target_cpu_default
="TARGET_CPU_generic"
6108 tm_file
="v850/v850.h"
6109 xm_file
="v850/xm-v850.h"
6110 tmake_file
=v850
/t-v850
6111 if test x
$stabs = xyes
6113 tm_file
="${tm_file} dbx.h"
6117 vax-
*-bsd*) # vaxen running BSD
6121 vax-
*-sysv*) # vaxen running system V
6122 tm_file
="${tm_file} vax/vaxv.h"
6127 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6133 tmake_file
="${tmake_file} vax/t-openbsd"
6135 vax-
*-ultrix*) # vaxen running ultrix
6136 tm_file
="${tm_file} vax/ultrix.h"
6140 vax-
*-vms*) # vaxen running VMS
6141 xm_file
=vax
/xm-vms.h
6145 vax-
*-*) # vax default entry
6149 xm_file
="${xm_file} xm-svr3"
6153 echo "Configuration $machine not supported" 1>&2
6160 ;; # Existing GNU/Linux systems do not use the GNU setup.
6162 # On the GNU system, the setup is just about the same on
6163 # each different CPU. The specific machines that GNU
6164 # supports are matched above and just set $cpu_type.
6165 xm_file
="xm-gnu.h ${xm_file}"
6166 tm_file
=${cpu_type}/gnu.h
6167 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6168 # GNU always uses ELF.
6170 # GNU tools are the only tools.
6173 xmake_file
=x-linux
# These details are the same as Linux.
6174 tmake_file
=t-gnu
# These are not.
6177 xmake_try_sysv
=x-sysv
6178 install_headers_dir
=install-headers-cpio
6181 install_headers_dir
=install-headers-cpio
6185 # Distinguish i[34567]86
6186 # Also, do not run mips-tfile on MIPS if using gas.
6187 # Process --with-cpu= for PowerPC/rs6000
6188 target_cpu_default2
=
6191 target_cpu_default2
=1
6194 case $target_alias in
6196 target_cpu_default2
=4
6199 target_cpu_default2
=2
6203 i686-
*-* | i786-
*-*)
6204 target_cpu_default2
=3
6209 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6212 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6215 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6218 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6221 target_cpu_default2
="MASK_CPU_EV5"
6225 if test x
$gas = xyes
6227 if test "$target_cpu_default2" = ""
6229 target_cpu_default2
="MASK_GAS"
6231 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6236 case "x$with_cpu" in
6239 target_cpu_default2
="TARGET_CPU_generic"
6242 # Distinguish cores, and major variants
6243 # arm7m doesn't exist, but D & I don't affect code
6244 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6245 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6246 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6247 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6248 target_cpu_default2
="TARGET_CPU_$with_cpu"
6252 echo "--with-cpu must be passed a value" 1>&2
6257 if test x
$pass2done = xyes
6259 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6266 mips
*-*-ecoff* | mips
*-*-elf*)
6267 if test x
$gas = xyes
6269 if test x
$gnu_ld = xyes
6271 target_cpu_default2
=20
6273 target_cpu_default2
=16
6278 if test x
$gas = xyes
6280 target_cpu_default2
=16
6283 powerpc
*-*-* | rs6000-
*-*)
6284 case "x$with_cpu" in
6288 xcommon | xpower | xpower2 | xpowerpc | xrios \
6289 | xrios1 | xrios2 | xrsc | xrsc1 \
6290 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6291 | xec603e | x740 | x750 | x401 \
6292 | x403 | x505 | x801 | x821 | x823 | x860
)
6293 target_cpu_default2
="\"$with_cpu\""
6297 echo "--with-cpu must be passed a value" 1>&2
6302 if test x
$pass2done = xyes
6304 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6311 case ".$with_cpu" in
6313 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6315 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6316 target_cpu_default2
="TARGET_CPU_$with_cpu"
6319 if test x
$pass2done = xyes
6321 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6329 if test "$target_cpu_default2" != ""
6331 if test "$target_cpu_default" != ""
6333 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6335 target_cpu_default
=$target_cpu_default2
6339 # No need for collect2 if we have the GNU linker.
6340 # Actually, there is now; GNU ld doesn't handle the EH info or
6341 # collecting for shared libraries.
6348 # Save data on machine being used to compile GCC in build_xm_file.
6349 # Save data on host machine in vars host_xm_file and host_xmake_file.
6350 if test x
$pass1done = x
6352 if test x
"$xm_file" = x
6353 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6354 else build_xm_file
=$xm_file
6356 build_xm_defines
=$xm_defines
6357 build_install_headers_dir
=$install_headers_dir
6358 build_exeext
=$exeext
6361 if test x
$pass2done = x
6363 if test x
"$xm_file" = x
6364 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6365 else host_xm_file
=$xm_file
6367 host_xm_defines
=$xm_defines
6368 if test x
"$xmake_file" = x
6369 then xmake_file
=$cpu_type/x-
$cpu_type
6371 host_xmake_file
="$xmake_file"
6372 host_truncate_target
=$truncate_target
6373 host_extra_gcc_objs
=$extra_gcc_objs
6374 host_extra_objs
=$extra_host_objs
6381 extra_objs
="${host_extra_objs} ${extra_objs}"
6383 # Default the target-machine variables that were not explicitly set.
6384 if test x
"$tm_file" = x
6385 then tm_file
=$cpu_type/$cpu_type.h
; fi
6387 if test x
$extra_headers = x
6388 then extra_headers
=; fi
6390 if test x
"$xm_file" = x
6391 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6393 if test x
$md_file = x
6394 then md_file
=$cpu_type/$cpu_type.md
; fi
6396 if test x
$out_file = x
6397 then out_file
=$cpu_type/$cpu_type.c
; fi
6399 if test x
"$tmake_file" = x
6400 then tmake_file
=$cpu_type/t-
$cpu_type
6403 if test x
"$dwarf2" = xyes
6404 then tm_file
="$tm_file tm-dwarf2.h"
6407 if test x
$float_format = x
6408 then float_format
=i64
6411 if test $float_format = none
6412 then float_h_file
=Makefile.
in
6413 else float_h_file
=float-
$float_format.h
6416 # Handle cpp installation.
6417 if test x
$enable_cpp != xno
6419 tmake_file
="$tmake_file t-install-cpp"
6422 # Say what files are being used for the output code and MD file.
6423 echo "Using \`$srcdir/config/$out_file' to output insns."
6424 echo "Using \`$srcdir/config/$md_file' as machine description file."
6427 for f
in $tm_file; do
6430 if test $count = ax
; then
6431 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6433 echo "Using the following target machine macro files:"
6434 for f
in $tm_file; do
6435 echo " $srcdir/config/$f"
6440 for f
in $host_xm_file; do
6443 if test $count = ax
; then
6444 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6446 echo "Using the following host machine macro files:"
6447 for f
in $host_xm_file; do
6448 echo " $srcdir/config/$f"
6452 if test "$host_xm_file" != "$build_xm_file"; then
6454 for f
in $build_xm_file; do
6457 if test $count = ax
; then
6458 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6460 echo "Using the following build machine macro files:"
6461 for f
in $build_xm_file; do
6462 echo " $srcdir/config/$f"
6467 if test x
$thread_file = x
; then
6468 if test x
$target_thread_file != x
; then
6469 thread_file
=$target_thread_file
6471 thread_file
='single'
6475 # Set up the header files.
6476 # $links is the list of header files to create.
6477 # $vars is the list of shell variables with file names to include.
6478 # auto-host.h is the file containing items generated by autoconf and is
6479 # the first file included by config.h.
6481 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6483 # If host=build, it is correct to have hconfig include auto-host.h
6484 # as well. If host!=build, we are in error and need to do more
6485 # work to find out the build config parameters.
6486 if test x
$host = x
$build
6488 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6490 # We create a subdir, then run autoconf in the subdir.
6491 # To prevent recursion we set host and build for the new
6492 # invocation of configure to the build for this invocation
6499 /*) realsrcdir
=${srcdir};;
6500 *) realsrcdir
=..
/${srcdir};;
6502 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6503 --target=$target --host=$build --build=$build
6505 # We just finished tests for the build machine, so rename
6506 # the file auto-build.h in the gcc directory.
6507 mv auto-host.h ..
/auto-build.h
6510 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6513 xm_file
="gansidecl.h ${xm_file}"
6514 tm_file
="gansidecl.h ${tm_file}"
6516 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6517 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6518 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6521 if test -f config.status
; then mv -f config.status config.bak
; fi
6524 while test -n "$vars"
6526 set $vars; var
=$1; shift; vars
=$
*
6527 set $links; link
=$1; shift; links
=$
*
6528 set $defines; define
=$1; shift; defines
=$
*
6531 # Make sure the file is created, even if it is empty.
6534 # Define TARGET_CPU_DEFAULT if the system wants one.
6535 # This substitutes for lots of *.h files.
6536 if test "$target_cpu_default" != "" -a $link = tm.h
6538 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6541 for file in `eval echo '$'$var`; do
6546 echo '#ifdef IN_GCC' >>$link
6549 echo "#include \"$file\"" >>$link
6554 echo '#endif' >>$link
6559 for def
in `eval echo '$'$define`; do
6560 echo "#ifndef $def" >>$link
6561 echo "#define $def" >>$link
6562 echo "#endif" >>$link
6566 # Truncate the target if necessary
6567 if test x
$host_truncate_target != x
; then
6568 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6571 # Get the version trigger filename from the toplevel
6572 if test "${with_gcc_version_trigger+set}" = set; then
6573 gcc_version_trigger
=$with_gcc_version_trigger
6575 gcc_version_trigger
=${srcdir}/version.c
6577 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6579 # Internationalization
6581 VERSION
="$gcc_version"
6582 cat >> confdefs.h
<<EOF
6583 #define PACKAGE "$PACKAGE"
6586 cat >> confdefs.h
<<EOF
6587 #define VERSION "$VERSION"
6595 # NLS support is still experimental, so disable it by default for now.
6596 # Check whether --enable-nls or --disable-nls was given.
6597 if test "${enable_nls+set}" = set; then
6598 enableval
="$enable_nls"
6606 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6607 echo "configure:6608: checking for strerror in -lcposix" >&5
6608 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 ac_save_LIBS
="$LIBS"
6613 LIBS
="-lcposix $LIBS"
6614 cat > conftest.
$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6626 if { (eval echo configure
:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6628 eval "ac_cv_lib_$ac_lib_var=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.
$ac_ext >&5
6633 eval "ac_cv_lib_$ac_lib_var=no"
6636 LIBS
="$ac_save_LIBS"
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 LIBS
="$LIBS -lcposix"
6643 echo "$ac_t""no" 1>&6
6648 echo $ac_n "checking for working const""... $ac_c" 1>&6
6649 echo "configure:6650: checking for working const" >&5
6650 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 cat > conftest.
$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6659 /* Ultrix mips cc rejects this. */
6660 typedef int charset[2]; const charset x;
6661 /* SunOS 4.1.1 cc rejects this. */
6662 char const *const *ccp;
6664 /* NEC SVR4.0.2 mips cc rejects this. */
6665 struct point {int x, y;};
6666 static struct point const zero = {0,0};
6667 /* AIX XL C 1.02.0.0 rejects this.
6668 It does not let you subtract one const X* pointer from another in an arm
6669 of an if-expression whose if-part is not a constant expression */
6670 const char *g = "string";
6671 ccp = &g + (g ? g-g : 0);
6672 /* HPUX 7.0 cc rejects these. */
6675 ccp = (char const *const *) p;
6676 { /* SCO 3.2v4 cc rejects this. */
6678 char const *s = 0 ? (char *) 0 : (char const *) 0;
6682 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6684 const int *foo = &x[0];
6687 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6688 typedef const int *iptr;
6692 { /* AIX XL C 1.02.0.0 rejects this saying
6693 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6694 struct s { int j; const int *ap[3]; };
6695 struct s *b; b->j = 5;
6697 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6703 if { (eval echo configure
:6704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6707 echo "configure: failed program was:" >&5
6708 cat conftest.
$ac_ext >&5
6715 echo "$ac_t""$ac_cv_c_const" 1>&6
6716 if test $ac_cv_c_const = no
; then
6717 cat >> confdefs.h
<<\EOF
6723 echo $ac_n "checking for inline""... $ac_c" 1>&6
6724 echo "configure:6725: checking for inline" >&5
6725 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6729 for ac_kw
in inline __inline__ __inline
; do
6730 cat > conftest.
$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6738 if { (eval echo configure
:6739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6740 ac_cv_c_inline
=$ac_kw; break
6742 echo "configure: failed program was:" >&5
6743 cat conftest.
$ac_ext >&5
6750 echo "$ac_t""$ac_cv_c_inline" 1>&6
6751 case "$ac_cv_c_inline" in
6753 no
) cat >> confdefs.h
<<\EOF
6757 *) cat >> confdefs.h
<<EOF
6758 #define inline $ac_cv_c_inline
6763 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6764 echo "configure:6765: checking for off_t" >&5
6765 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 cat > conftest.
$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 #include <sys/types.h>
6777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6778 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6780 ac_cv_type_off_t
=yes
6788 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6789 if test $ac_cv_type_off_t = no
; then
6790 cat >> confdefs.h
<<\EOF
6796 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6797 echo "configure:6798: checking for size_t" >&5
6798 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 cat > conftest.
$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 #include <sys/types.h>
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6813 ac_cv_type_size_t
=yes
6816 ac_cv_type_size_t
=no
6821 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6822 if test $ac_cv_type_size_t = no
; then
6823 cat >> confdefs.h
<<\EOF
6824 #define size_t unsigned
6829 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6830 # for constant arguments. Useless!
6831 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6832 echo "configure:6833: checking for working alloca.h" >&5
6833 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6836 cat > conftest.
$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6841 char *p = alloca(2 * sizeof(int));
6844 if { (eval echo configure
:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6846 ac_cv_header_alloca_h
=yes
6848 echo "configure: failed program was:" >&5
6849 cat conftest.
$ac_ext >&5
6851 ac_cv_header_alloca_h
=no
6856 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6857 if test $ac_cv_header_alloca_h = yes; then
6858 cat >> confdefs.h
<<\EOF
6859 #define HAVE_ALLOCA_H 1
6864 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6865 echo "configure:6866: checking for alloca" >&5
6866 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 cat > conftest.
$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6874 # define alloca __builtin_alloca
6877 # include <malloc.h>
6878 # define alloca _alloca
6881 # include <alloca.h>
6886 # ifndef alloca /* predefined by HP cc +Olibcalls */
6895 char *p = (char *) alloca(1);
6898 if { (eval echo configure
:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6900 ac_cv_func_alloca_works
=yes
6902 echo "configure: failed program was:" >&5
6903 cat conftest.
$ac_ext >&5
6905 ac_cv_func_alloca_works
=no
6910 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6911 if test $ac_cv_func_alloca_works = yes; then
6912 cat >> confdefs.h
<<\EOF
6913 #define HAVE_ALLOCA 1
6918 if test $ac_cv_func_alloca_works = no
; then
6919 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6920 # that cause trouble. Some versions do not even contain alloca or
6921 # contain a buggy version. If you still want to use their alloca,
6922 # use ar to extract alloca.o from them instead of compiling alloca.c.
6923 ALLOCA
=alloca.
${ac_objext}
6924 cat >> confdefs.h
<<\EOF
6929 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6930 echo "configure:6931: checking whether alloca needs Cray hooks" >&5
6931 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6934 cat > conftest.
$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6937 #if defined(CRAY) && ! defined(CRAY2)
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 egrep "webecray" >/dev
/null
2>&1; then
6956 echo "$ac_t""$ac_cv_os_cray" 1>&6
6957 if test $ac_cv_os_cray = yes; then
6958 for ac_func
in _getb67 GETB67 getb67
; do
6959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6960 echo "configure:6961: checking for $ac_func" >&5
6961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 cat > conftest.
$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 /* System header to define __stub macros and hopefully few prototypes,
6968 which can conflict with char $ac_func(); below. */
6970 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6977 /* The GNU C library defines this for functions which it implements
6978 to always fail with ENOSYS. Some functions are actually named
6979 something starting with __ and the normal name is an alias. */
6980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6988 if { (eval echo configure
:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6990 eval "ac_cv_func_$ac_func=yes"
6992 echo "configure: failed program was:" >&5
6993 cat conftest.
$ac_ext >&5
6995 eval "ac_cv_func_$ac_func=no"
7000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7001 echo "$ac_t""yes" 1>&6
7002 cat >> confdefs.h
<<EOF
7003 #define CRAY_STACKSEG_END $ac_func
7008 echo "$ac_t""no" 1>&6
7014 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7015 echo "configure:7016: checking stack direction for C alloca" >&5
7016 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7019 if test "$cross_compiling" = yes; then
7020 ac_cv_c_stack_direction
=0
7022 cat > conftest.
$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7025 find_stack_direction ()
7027 static char *addr = 0;
7032 return find_stack_direction ();
7035 return (&dummy > addr) ? 1 : -1;
7039 exit (find_stack_direction() < 0);
7042 if { (eval echo configure
:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7044 ac_cv_c_stack_direction
=1
7046 echo "configure: failed program was:" >&5
7047 cat conftest.
$ac_ext >&5
7049 ac_cv_c_stack_direction
=-1
7056 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7057 cat >> confdefs.h
<<EOF
7058 #define STACK_DIRECTION $ac_cv_c_stack_direction
7063 for ac_hdr
in unistd.h
7065 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7067 echo "configure:7068: checking for $ac_hdr" >&5
7068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 cat > conftest.
$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7076 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7077 { (eval echo configure
:7078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7078 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7079 if test -z "$ac_err"; then
7081 eval "ac_cv_header_$ac_safe=yes"
7084 echo "configure: failed program was:" >&5
7085 cat conftest.
$ac_ext >&5
7087 eval "ac_cv_header_$ac_safe=no"
7091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7092 echo "$ac_t""yes" 1>&6
7093 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7094 cat >> confdefs.h
<<EOF
7095 #define $ac_tr_hdr 1
7099 echo "$ac_t""no" 1>&6
7103 for ac_func
in getpagesize
7105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_func" >&5
7107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7110 cat > conftest.
$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* System header to define __stub macros and hopefully few prototypes,
7114 which can conflict with char $ac_func(); below. */
7116 /* Override any gcc2 internal prototype to avoid an error. */
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7134 if { (eval echo configure
:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7136 eval "ac_cv_func_$ac_func=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.
$ac_ext >&5
7141 eval "ac_cv_func_$ac_func=no"
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h
<<EOF
7150 #define $ac_tr_func 1
7154 echo "$ac_t""no" 1>&6
7158 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7159 echo "configure:7160: checking for working mmap" >&5
7160 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7163 if test "$cross_compiling" = yes; then
7164 ac_cv_func_mmap_fixed_mapped
=no
7166 cat > conftest.
$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7170 /* Thanks to Mike Haertel and Jim Avera for this test.
7171 Here is a matrix of mmap possibilities:
7172 mmap private not fixed
7173 mmap private fixed at somewhere currently unmapped
7174 mmap private fixed at somewhere already mapped
7175 mmap shared not fixed
7176 mmap shared fixed at somewhere currently unmapped
7177 mmap shared fixed at somewhere already mapped
7178 For private mappings, we should verify that changes cannot be read()
7179 back from the file, nor mmap's back from the file at a different
7180 address. (There have been systems where private was not correctly
7181 implemented like the infamous i386 svr4.0, and systems where the
7182 VM page cache was not coherent with the filesystem buffer cache
7183 like early versions of FreeBSD and possibly contemporary NetBSD.)
7184 For shared mappings, we should conversely verify that changes get
7185 propogated back to all the places they're supposed to be.
7187 Grep wants private fixed already mapped.
7188 The main things grep needs to know about mmap are:
7189 * does it exist and is it safe to write into the mmap'd area
7190 * how to use it (BSD variants) */
7191 #include <sys/types.h>
7193 #include <sys/mman.h>
7195 /* This mess was copied from the GNU getpagesize.h. */
7196 #ifndef HAVE_GETPAGESIZE
7197 # ifdef HAVE_UNISTD_H
7198 # include <unistd.h>
7201 /* Assume that all systems that can run configure have sys/param.h. */
7202 # ifndef HAVE_SYS_PARAM_H
7203 # define HAVE_SYS_PARAM_H 1
7206 # ifdef _SC_PAGESIZE
7207 # define getpagesize() sysconf(_SC_PAGESIZE)
7208 # else /* no _SC_PAGESIZE */
7209 # ifdef HAVE_SYS_PARAM_H
7210 # include <sys/param.h>
7211 # ifdef EXEC_PAGESIZE
7212 # define getpagesize() EXEC_PAGESIZE
7213 # else /* no EXEC_PAGESIZE */
7215 # define getpagesize() NBPG * CLSIZE
7218 # endif /* no CLSIZE */
7219 # else /* no NBPG */
7221 # define getpagesize() NBPC
7222 # else /* no NBPC */
7224 # define getpagesize() PAGESIZE
7225 # endif /* PAGESIZE */
7226 # endif /* no NBPC */
7227 # endif /* no NBPG */
7228 # endif /* no EXEC_PAGESIZE */
7229 # else /* no HAVE_SYS_PARAM_H */
7230 # define getpagesize() 8192 /* punt totally */
7231 # endif /* no HAVE_SYS_PARAM_H */
7232 # endif /* no _SC_PAGESIZE */
7234 #endif /* no HAVE_GETPAGESIZE */
7237 extern "C" { void *malloc(unsigned); }
7245 char *data, *data2, *data3;
7249 pagesize = getpagesize();
7252 * First, make a file with some known garbage in it.
7254 data = malloc(pagesize);
7257 for (i = 0; i < pagesize; ++i)
7258 *(data + i) = rand();
7260 fd = creat("conftestmmap", 0600);
7263 if (write(fd, data, pagesize) != pagesize)
7268 * Next, try to mmap the file at a fixed address which
7269 * already has something else allocated at it. If we can,
7270 * also make sure that we see the same garbage.
7272 fd = open("conftestmmap", O_RDWR);
7275 data2 = malloc(2 * pagesize);
7278 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7279 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7280 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7282 for (i = 0; i < pagesize; ++i)
7283 if (*(data + i) != *(data2 + i))
7287 * Finally, make sure that changes to the mapped area
7288 * do not percolate back to the file as seen by read().
7289 * (This is a bug on some variants of i386 svr4.0.)
7291 for (i = 0; i < pagesize; ++i)
7292 *(data2 + i) = *(data2 + i) + 1;
7293 data3 = malloc(pagesize);
7296 if (read(fd, data3, pagesize) != pagesize)
7298 for (i = 0; i < pagesize; ++i)
7299 if (*(data + i) != *(data3 + i))
7302 unlink("conftestmmap");
7307 if { (eval echo configure
:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7309 ac_cv_func_mmap_fixed_mapped
=yes
7311 echo "configure: failed program was:" >&5
7312 cat conftest.
$ac_ext >&5
7314 ac_cv_func_mmap_fixed_mapped
=no
7321 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7322 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7323 cat >> confdefs.h
<<\EOF
7330 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7331 unistd.h sys
/param.h
7333 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7335 echo "configure:7336: checking for $ac_hdr" >&5
7336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7339 cat > conftest.
$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7344 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7345 { (eval echo configure
:7346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7346 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7347 if test -z "$ac_err"; then
7349 eval "ac_cv_header_$ac_safe=yes"
7352 echo "configure: failed program was:" >&5
7353 cat conftest.
$ac_ext >&5
7355 eval "ac_cv_header_$ac_safe=no"
7359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7360 echo "$ac_t""yes" 1>&6
7361 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7362 cat >> confdefs.h
<<EOF
7363 #define $ac_tr_hdr 1
7367 echo "$ac_t""no" 1>&6
7371 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7372 strdup __argz_count __argz_stringify __argz_next
7374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7375 echo "configure:7376: checking for $ac_func" >&5
7376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7379 cat > conftest.
$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7382 /* System header to define __stub macros and hopefully few prototypes,
7383 which can conflict with char $ac_func(); below. */
7385 /* Override any gcc2 internal prototype to avoid an error. */
7386 /* We use char because int might match the return type of a gcc2
7387 builtin and then its argument prototype would still apply. */
7392 /* The GNU C library defines this for functions which it implements
7393 to always fail with ENOSYS. Some functions are actually named
7394 something starting with __ and the normal name is an alias. */
7395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7403 if { (eval echo configure
:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7405 eval "ac_cv_func_$ac_func=yes"
7407 echo "configure: failed program was:" >&5
7408 cat conftest.
$ac_ext >&5
7410 eval "ac_cv_func_$ac_func=no"
7415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7416 echo "$ac_t""yes" 1>&6
7417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7418 cat >> confdefs.h
<<EOF
7419 #define $ac_tr_func 1
7423 echo "$ac_t""no" 1>&6
7428 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7429 for ac_func
in stpcpy
7431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7432 echo "configure:7433: checking for $ac_func" >&5
7433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 cat > conftest.
$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7439 /* System header to define __stub macros and hopefully few prototypes,
7440 which can conflict with char $ac_func(); below. */
7442 /* Override any gcc2 internal prototype to avoid an error. */
7443 /* We use char because int might match the return type of a gcc2
7444 builtin and then its argument prototype would still apply. */
7449 /* The GNU C library defines this for functions which it implements
7450 to always fail with ENOSYS. Some functions are actually named
7451 something starting with __ and the normal name is an alias. */
7452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7460 if { (eval echo configure
:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7462 eval "ac_cv_func_$ac_func=yes"
7464 echo "configure: failed program was:" >&5
7465 cat conftest.
$ac_ext >&5
7467 eval "ac_cv_func_$ac_func=no"
7472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7473 echo "$ac_t""yes" 1>&6
7474 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7475 cat >> confdefs.h
<<EOF
7476 #define $ac_tr_func 1
7480 echo "$ac_t""no" 1>&6
7485 if test "${ac_cv_func_stpcpy}" = "yes"; then
7486 cat >> confdefs.h
<<\EOF
7487 #define HAVE_STPCPY 1
7492 if test $ac_cv_header_locale_h = yes; then
7493 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7494 echo "configure:7495: checking for LC_MESSAGES" >&5
7495 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 cat > conftest.
$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7506 if { (eval echo configure
:7507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7508 am_cv_val_LC_MESSAGES
=yes
7510 echo "configure: failed program was:" >&5
7511 cat conftest.
$ac_ext >&5
7513 am_cv_val_LC_MESSAGES
=no
7518 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7519 if test $am_cv_val_LC_MESSAGES = yes; then
7520 cat >> confdefs.h
<<\EOF
7521 #define HAVE_LC_MESSAGES 1
7526 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7527 echo "configure:7528: checking whether NLS is requested" >&5
7528 # Check whether --enable-nls or --disable-nls was given.
7529 if test "${enable_nls+set}" = set; then
7530 enableval
="$enable_nls"
7536 echo "$ac_t""$USE_NLS" 1>&6
7539 USE_INCLUDED_LIBINTL
=no
7541 if test "$USE_NLS" = "yes"; then
7542 cat >> confdefs.h
<<\EOF
7543 #define ENABLE_NLS 1
7546 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7547 echo "configure:7548: checking whether included gettext is requested" >&5
7548 # Check whether --with-included-gettext or --without-included-gettext was given.
7549 if test "${with_included_gettext+set}" = set; then
7550 withval
="$with_included_gettext"
7551 nls_cv_force_use_gnu_gettext
=$withval
7553 nls_cv_force_use_gnu_gettext
=no
7556 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7558 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7559 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7561 nls_cv_header_libgt
=
7564 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7565 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7566 echo "configure:7567: checking for libintl.h" >&5
7567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 cat > conftest.
$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 #include <libintl.h>
7575 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7576 { (eval echo configure
:7577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7577 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7578 if test -z "$ac_err"; then
7580 eval "ac_cv_header_$ac_safe=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.
$ac_ext >&5
7586 eval "ac_cv_header_$ac_safe=no"
7590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7591 echo "$ac_t""yes" 1>&6
7592 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7593 echo "configure:7594: checking for gettext in libc" >&5
7594 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7597 cat > conftest.
$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 #include <libintl.h>
7602 return (int) gettext ("")
7605 if { (eval echo configure
:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7607 gt_cv_func_gettext_libc
=yes
7609 echo "configure: failed program was:" >&5
7610 cat conftest.
$ac_ext >&5
7612 gt_cv_func_gettext_libc
=no
7617 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7619 if test "$gt_cv_func_gettext_libc" != "yes"; then
7620 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7621 echo "configure:7622: checking for bindtextdomain in -lintl" >&5
7622 ac_lib_var
=`echo intl'_'bindtextdomain | 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 7630 "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. */
7634 char bindtextdomain();
7640 if { (eval echo configure
:7641: \"$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 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7656 echo "configure:7657: checking for gettext in libintl" >&5
7657 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7661 echo "configure:7662: checking for gettext in -lintl" >&5
7662 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7666 ac_save_LIBS
="$LIBS"
7668 cat > conftest.
$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7680 if { (eval echo configure
:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7682 eval "ac_cv_lib_$ac_lib_var=yes"
7684 echo "configure: failed program was:" >&5
7685 cat conftest.
$ac_ext >&5
7687 eval "ac_cv_lib_$ac_lib_var=no"
7690 LIBS
="$ac_save_LIBS"
7693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7694 echo "$ac_t""yes" 1>&6
7695 gt_cv_func_gettext_libintl
=yes
7697 echo "$ac_t""no" 1>&6
7698 gt_cv_func_gettext_libintl
=no
7703 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7705 echo "$ac_t""no" 1>&6
7710 if test "$gt_cv_func_gettext_libc" = "yes" \
7711 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7712 cat >> confdefs.h
<<\EOF
7713 #define HAVE_GETTEXT 1
7716 # Extract the first word of "msgfmt", so it can be a program name with args.
7717 set dummy msgfmt
; ac_word
=$2
7718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_word" >&5
7720 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7725 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7729 for ac_dir
in $PATH; do
7730 test -z "$ac_dir" && ac_dir
=.
7731 if test -f $ac_dir/$ac_word; then
7732 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7733 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7739 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7743 MSGFMT
="$ac_cv_path_MSGFMT"
7744 if test -n "$MSGFMT"; then
7745 echo "$ac_t""$MSGFMT" 1>&6
7747 echo "$ac_t""no" 1>&6
7749 if test "$MSGFMT" != "no"; then
7750 for ac_func
in dcgettext
7752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_func" >&5
7754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7757 cat > conftest.
$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 /* System header to define __stub macros and hopefully few prototypes,
7761 which can conflict with char $ac_func(); below. */
7763 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7781 if { (eval echo configure
:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7783 eval "ac_cv_func_$ac_func=yes"
7785 echo "configure: failed program was:" >&5
7786 cat conftest.
$ac_ext >&5
7788 eval "ac_cv_func_$ac_func=no"
7793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7796 cat >> confdefs.h
<<EOF
7797 #define $ac_tr_func 1
7801 echo "$ac_t""no" 1>&6
7805 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7806 set dummy gmsgfmt
; ac_word
=$2
7807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7808 echo "configure:7809: checking for $ac_word" >&5
7809 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7810 echo $ac_n "(cached) $ac_c" 1>&6
7814 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7817 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7822 for ac_dir
in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir
=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7830 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7834 GMSGFMT
="$ac_cv_path_GMSGFMT"
7835 if test -n "$GMSGFMT"; then
7836 echo "$ac_t""$GMSGFMT" 1>&6
7838 echo "$ac_t""no" 1>&6
7841 # Extract the first word of "xgettext", so it can be a program name with args.
7842 set dummy xgettext
; ac_word
=$2
7843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7844 echo "configure:7845: checking for $ac_word" >&5
7845 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7850 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7853 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7854 for ac_dir
in $PATH; do
7855 test -z "$ac_dir" && ac_dir
=.
7856 if test -f $ac_dir/$ac_word; then
7857 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7858 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7864 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7868 XGETTEXT
="$ac_cv_path_XGETTEXT"
7869 if test -n "$XGETTEXT"; then
7870 echo "$ac_t""$XGETTEXT" 1>&6
7872 echo "$ac_t""no" 1>&6
7875 cat > conftest.
$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7880 extern int _nl_msg_cat_cntr;
7881 return _nl_msg_cat_cntr
7884 if { (eval echo configure
:7885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7889 echo "configure: failed program was:" >&5
7890 cat conftest.
$ac_ext >&5
7901 echo "$ac_t""no" 1>&6
7905 if test "$CATOBJEXT" = "NONE"; then
7906 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7907 echo "configure:7908: checking whether catgets can be used" >&5
7908 # Check whether --with-catgets or --without-catgets was given.
7909 if test "${with_catgets+set}" = set; then
7910 withval
="$with_catgets"
7911 nls_cv_use_catgets
=$withval
7913 nls_cv_use_catgets
=no
7916 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7918 if test "$nls_cv_use_catgets" = "yes"; then
7919 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7920 echo "configure:7921: checking for main in -li" >&5
7921 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7925 ac_save_LIBS
="$LIBS"
7927 cat > conftest.
$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7935 if { (eval echo configure
:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7937 eval "ac_cv_lib_$ac_lib_var=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.
$ac_ext >&5
7942 eval "ac_cv_lib_$ac_lib_var=no"
7945 LIBS
="$ac_save_LIBS"
7948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7951 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7952 cat >> confdefs.h
<<EOF
7953 #define $ac_tr_lib 1
7959 echo "$ac_t""no" 1>&6
7962 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7963 echo "configure:7964: checking for catgets" >&5
7964 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7967 cat > conftest.
$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* System header to define __stub macros and hopefully few prototypes,
7971 which can conflict with char catgets(); below. */
7973 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7980 /* The GNU C library defines this for functions which it implements
7981 to always fail with ENOSYS. Some functions are actually named
7982 something starting with __ and the normal name is an alias. */
7983 #if defined (__stub_catgets) || defined (__stub___catgets)
7991 if { (eval echo configure
:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7993 eval "ac_cv_func_catgets=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.
$ac_ext >&5
7998 eval "ac_cv_func_catgets=no"
8003 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8004 echo "$ac_t""yes" 1>&6
8005 cat >> confdefs.h
<<\EOF
8006 #define HAVE_CATGETS 1
8009 INTLOBJS
="\$(CATOBJS)"
8010 # Extract the first word of "gencat", so it can be a program name with args.
8011 set dummy gencat
; ac_word
=$2
8012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8013 echo "configure:8014: checking for $ac_word" >&5
8014 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8019 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8022 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8027 for ac_dir
in $ac_dummy; do
8028 test -z "$ac_dir" && ac_dir
=.
8029 if test -f $ac_dir/$ac_word; then
8030 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8035 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8039 GENCAT
="$ac_cv_path_GENCAT"
8040 if test -n "$GENCAT"; then
8041 echo "$ac_t""$GENCAT" 1>&6
8043 echo "$ac_t""no" 1>&6
8045 if test "$GENCAT" != "no"; then
8046 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8047 set dummy gmsgfmt
; ac_word
=$2
8048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8049 echo "configure:8050: checking for $ac_word" >&5
8050 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8055 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8058 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8063 for ac_dir
in $ac_dummy; do
8064 test -z "$ac_dir" && ac_dir
=.
8065 if test -f $ac_dir/$ac_word; then
8066 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8071 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8075 GMSGFMT
="$ac_cv_path_GMSGFMT"
8076 if test -n "$GMSGFMT"; then
8077 echo "$ac_t""$GMSGFMT" 1>&6
8079 echo "$ac_t""no" 1>&6
8082 if test "$GMSGFMT" = "no"; then
8083 # Extract the first word of "msgfmt", so it can be a program name with args.
8084 set dummy msgfmt
; ac_word
=$2
8085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8086 echo "configure:8087: checking for $ac_word" >&5
8087 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8092 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8096 for ac_dir
in $PATH; do
8097 test -z "$ac_dir" && ac_dir
=.
8098 if test -f $ac_dir/$ac_word; then
8099 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8100 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8106 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8110 GMSGFMT
="$ac_cv_path_GMSGFMT"
8111 if test -n "$GMSGFMT"; then
8112 echo "$ac_t""$GMSGFMT" 1>&6
8114 echo "$ac_t""no" 1>&6
8118 # Extract the first word of "xgettext", so it can be a program name with args.
8119 set dummy xgettext
; ac_word
=$2
8120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8121 echo "configure:8122: checking for $ac_word" >&5
8122 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8127 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8131 for ac_dir
in $PATH; do
8132 test -z "$ac_dir" && ac_dir
=.
8133 if test -f $ac_dir/$ac_word; then
8134 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8135 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8141 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8145 XGETTEXT
="$ac_cv_path_XGETTEXT"
8146 if test -n "$XGETTEXT"; then
8147 echo "$ac_t""$XGETTEXT" 1>&6
8149 echo "$ac_t""no" 1>&6
8152 USE_INCLUDED_LIBINTL
=yes
8156 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8158 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8159 nls_cv_header_intl
=intl
/libintl.h
8160 nls_cv_header_libgt
=intl
/libgettext.h
8163 echo "$ac_t""no" 1>&6
8169 if test "$CATOBJEXT" = "NONE"; then
8170 nls_cv_use_gnu_gettext
=yes
8174 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8175 INTLOBJS
="\$(GETTOBJS)"
8176 # Extract the first word of "msgfmt", so it can be a program name with args.
8177 set dummy msgfmt
; ac_word
=$2
8178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8179 echo "configure:8180: checking for $ac_word" >&5
8180 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8185 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8188 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8189 for ac_dir
in $PATH; do
8190 test -z "$ac_dir" && ac_dir
=.
8191 if test -f $ac_dir/$ac_word; then
8192 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8193 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8199 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8203 MSGFMT
="$ac_cv_path_MSGFMT"
8204 if test -n "$MSGFMT"; then
8205 echo "$ac_t""$MSGFMT" 1>&6
8207 echo "$ac_t""no" 1>&6
8210 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8211 set dummy gmsgfmt
; ac_word
=$2
8212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8213 echo "configure:8214: checking for $ac_word" >&5
8214 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8219 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8222 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8225 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8227 for ac_dir
in $ac_dummy; do
8228 test -z "$ac_dir" && ac_dir
=.
8229 if test -f $ac_dir/$ac_word; then
8230 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8235 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8239 GMSGFMT
="$ac_cv_path_GMSGFMT"
8240 if test -n "$GMSGFMT"; then
8241 echo "$ac_t""$GMSGFMT" 1>&6
8243 echo "$ac_t""no" 1>&6
8246 # Extract the first word of "xgettext", so it can be a program name with args.
8247 set dummy xgettext
; ac_word
=$2
8248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8249 echo "configure:8250: checking for $ac_word" >&5
8250 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8255 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8258 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8259 for ac_dir
in $PATH; do
8260 test -z "$ac_dir" && ac_dir
=.
8261 if test -f $ac_dir/$ac_word; then
8262 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8263 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8269 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8273 XGETTEXT
="$ac_cv_path_XGETTEXT"
8274 if test -n "$XGETTEXT"; then
8275 echo "$ac_t""$XGETTEXT" 1>&6
8277 echo "$ac_t""no" 1>&6
8281 USE_INCLUDED_LIBINTL
=yes
8285 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8287 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8288 nls_cv_header_intl
=intl
/libintl.h
8289 nls_cv_header_libgt
=intl
/libgettext.h
8292 if test "$XGETTEXT" != ":"; then
8293 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8296 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8301 # We need to process the po/ directory.
8305 nls_cv_header_intl
=intl
/libintl.h
8306 nls_cv_header_libgt
=intl
/libgettext.h
8312 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8313 # because some of the sources are only built for this goal.
8314 if test "$PACKAGE" = gettext; then
8316 USE_INCLUDED_LIBINTL
=yes
8319 for lang
in $ALL_LINGUAS; do
8320 GMOFILES
="$GMOFILES $lang.gmo"
8321 POFILES
="$POFILES $lang.po"
8337 if test "x$CATOBJEXT" != "x"; then
8338 if test "x$ALL_LINGUAS" = "x"; then
8341 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8342 echo "configure:8343: checking for catalogs to be installed" >&5
8344 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8345 case "$ALL_LINGUAS" in
8346 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8349 LINGUAS
=$NEW_LINGUAS
8350 echo "$ac_t""$LINGUAS" 1>&6
8353 if test -n "$LINGUAS"; then
8354 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8358 if test $ac_cv_header_locale_h = yes; then
8359 INCLUDE_LOCALE_H
="#include <locale.h>"
8362 /* The system does not provide the header <locale.h>. Take care yourself. */"
8366 test -d intl || mkdir intl
8367 if test "$CATOBJEXT" = ".cat"; then
8368 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8369 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8370 echo "configure:8371: checking for linux/version.h" >&5
8371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 cat > conftest.
$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 #include <linux/version.h>
8379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8380 { (eval echo configure
:8381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8381 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8382 if test -z "$ac_err"; then
8384 eval "ac_cv_header_$ac_safe=yes"
8387 echo "configure: failed program was:" >&5
8388 cat conftest.
$ac_ext >&5
8390 eval "ac_cv_header_$ac_safe=no"
8394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8398 echo "$ac_t""no" 1>&6
8403 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8405 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8406 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8408 if test "$PACKAGE" = "gettext"; then
8419 if test -n "$ac_aux_dir"; then
8420 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8422 if test -z "$MKINSTALLDIRS"; then
8423 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8430 test -d po || mkdir po
8431 if test "x$srcdir" != "x."; then
8432 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8433 posrcprefix
="$srcdir/"
8435 posrcprefix
="../$srcdir/"
8441 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8442 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8444 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8446 # Windows32 Registry support for specifying GCC installation paths.
8447 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8448 if test "${enable_win32_registry+set}" = set; then
8449 enableval
="$enable_win32_registry"
8454 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8455 echo "configure:8456: checking whether windows registry support is requested" >&5
8456 if test x
$enable_win32_registry != xno
; then
8457 cat >> confdefs.h
<<\EOF
8458 #define ENABLE_WIN32_REGISTRY 1
8461 echo "$ac_t""yes" 1>&6
8463 echo "$ac_t""no" 1>&6
8466 # Check if user specified a different registry key.
8467 case x
${enable_win32_registry} in
8470 gcc_cv_win32_registry_key
="$VERSION"
8473 # no registry lookup.
8474 gcc_cv_win32_registry_key
=''
8477 # user-specified key.
8478 gcc_cv_win32_registry_key
="$enable_win32_registry"
8482 if test x
$enable_win32_registry != xno
; then
8483 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8484 echo "configure:8485: checking registry key on windows hosts" >&5
8485 cat >> confdefs.h
<<EOF
8486 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8489 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8492 # Get an absolute path to the GCC top-level source directory
8498 # Conditionalize the makefile for this host machine.
8499 # Make-host contains the concatenation of all host makefile fragments
8500 # [there can be more than one]. This file is built by configure.frag.
8501 host_overrides
=Make-host
8502 dep_host_xmake_file
=
8503 for f
in ..
${host_xmake_file}
8505 if test -f ${srcdir}/config
/$f
8507 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8511 # Conditionalize the makefile for this target machine.
8512 # Make-target contains the concatenation of all host makefile fragments
8513 # [there can be more than one]. This file is built by configure.frag.
8514 target_overrides
=Make-target
8516 for f
in ..
${tmake_file}
8518 if test -f ${srcdir}/config
/$f
8520 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8524 # If the host doesn't support symlinks, modify CC in
8525 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8526 # Otherwise, we can use "CC=$(CC)".
8528 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8530 cc_set_by_configure
="\$(CC)"
8531 quoted_cc_set_by_configure
="\$(CC)"
8532 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8535 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8537 symbolic_link
="cp -p"
8541 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8542 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8543 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8547 out_object_file
=`basename $out_file .c`.o
8550 for f
in $tm_file; do
8553 tm_file_list
="${tm_file_list} $f" ;;
8554 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8559 for f
in $host_xm_file; do
8561 auto-host.h | gansidecl.h | hwint.h
)
8562 host_xm_file_list
="${host_xm_file_list} $f" ;;
8563 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8568 for f
in $build_xm_file; do
8570 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8571 build_xm_file_list
="${build_xm_file_list} $f" ;;
8572 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8576 # Define macro CROSS_COMPILE in compilation
8577 # if this is a cross-compiler.
8578 # Also use all.cross instead of all.internal
8579 # and add cross-make to Makefile.
8580 cross_overrides
="/dev/null"
8581 if test x
$host != x
$target
8583 cross_defines
="CROSS=-DCROSS_COMPILE"
8584 cross_overrides
="${topdir}/cross-make"
8587 # When building gcc with a cross-compiler, we need to fix a few things.
8588 # This must come after cross-make as we want all.build to override
8590 build_overrides
="/dev/null"
8591 if test x
$build != x
$host
8593 build_overrides
="${topdir}/build-make"
8596 # Expand extra_headers to include complete path.
8597 # This substitutes for lots of t-* files.
8599 if test "x$extra_headers" = x
8602 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8603 for file in $extra_headers;
8605 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8609 if test x
$use_collect2 = xno
; then
8613 # Add a definition of USE_COLLECT2 if system wants one.
8614 # Also tell toplev.c what to do.
8615 # This substitutes for lots of t-* files.
8616 if test x
$use_collect2 = x
8621 will_use_collect2
="collect2"
8622 maybe_use_collect2
="-DUSE_COLLECT2"
8626 # Set MD_DEPS if the real md file is in md.pre-cpp.
8627 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8628 # for line oriented comments, so we must always use a GNU cpp. If
8629 # building gcc with a cross compiler, use the cross compiler just
8630 # built. Otherwise, we can use the cpp just built.
8632 if test "x$md_cppflags" = x
8634 md_file_sub
=$srcdir/config
/$md_file
8639 # If we have gas in the build tree, make a link to it.
8640 if test -f ..
/gas
/Makefile
; then
8641 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8644 # If we have nm in the build tree, make a link to it.
8645 if test -f ..
/binutils
/Makefile
; then
8646 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8649 # If we have ld in the build tree, make a link to it.
8650 if test -f ..
/ld
/Makefile
; then
8651 # if test x$use_collect2 = x; then
8652 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8654 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8658 # Figure out what assembler alignment features are present.
8659 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8660 echo "configure:8661: checking assembler alignment features" >&5
8662 gcc_cv_as_alignment_features
=
8663 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8664 if test -x "$DEFAULT_ASSEMBLER"; then
8665 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8666 elif test -x "$AS"; then
8668 elif test -x as
$host_exeext; then
8669 # Build using assembler in the current directory.
8670 gcc_cv_as
=.
/as
$host_exeext
8671 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8672 # Single tree build which includes gas.
8673 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8675 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8676 if test x
$gcc_cv_gas_version != x
; then
8680 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8681 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8682 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8683 # Gas version 2.6 and later support for .balign and .p2align.
8684 # bytes to skip when using .p2align.
8685 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
8686 gcc_cv_as_alignment_features
=".balign and .p2align"
8687 cat >> confdefs.h
<<\EOF
8688 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8692 # Gas version 2.8 and later support specifying the maximum
8693 # bytes to skip when using .p2align.
8694 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
8695 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8696 cat >> confdefs.h
<<\EOF
8697 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8702 elif test x
$host = x
$target; then
8704 # Search the same directories that the installed compiler will
8705 # search. Else we may find the wrong assembler and lose. If we
8706 # do not find a suitable assembler binary, then try the user's
8709 # Also note we have to check MD_EXEC_PREFIX before checking the
8710 # user's path. Unfortunately, there is no good way to get at the
8711 # value of MD_EXEC_PREFIX here. So we do a brute force search
8712 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8713 # to be fixed as part of the make/configure rewrite too.
8715 if test "x$exec_prefix" = xNONE
; then
8716 if test "x$prefix" = xNONE
; then
8717 test_prefix
=/usr
/local
8722 test_prefix
=$exec_prefix
8725 # If the loop below does not find an assembler, then use whatever
8726 # one we can find in the users's path.
8730 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8731 $test_prefix/lib/gcc-lib/$target \
8732 /usr/lib/gcc/$target/$gcc_version \
8733 /usr/lib/gcc/$target \
8734 $test_prefix/$target/bin/$target/$gcc_version \
8735 $test_prefix/$target/bin \
8740 /bsd43/usr/lib/cmplrs/cc \
8741 /usr/cross64/usr/bin \
8742 /usr/lib/cmplrs/cc \
8743 /sysv/usr/lib/cmplrs/cc \
8744 /svr4/usr/lib/cmplrs/cc \
8747 for dir
in $test_dirs; do
8748 if test -f $dir/as
$host_exeext; then
8749 gcc_cv_as
=$dir/as
$host_exeext
8754 if test x
$gcc_cv_as != x
; then
8755 # Check if we have .balign and .p2align
8756 echo ".balign 4" > conftest.s
8757 echo ".p2align 2" >> conftest.s
8758 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8759 gcc_cv_as_alignment_features
=".balign and .p2align"
8760 cat >> confdefs.h
<<\EOF
8761 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8765 rm -f conftest.s conftest.o
8766 # Check if specifying the maximum bytes to skip when
8767 # using .p2align is supported.
8768 echo ".p2align 4,,7" > conftest.s
8769 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8770 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8771 cat >> confdefs.h
<<\EOF
8772 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8776 rm -f conftest.s conftest.o
8778 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8780 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8781 echo "configure:8782: checking assembler subsection support" >&5
8782 gcc_cv_as_subsections
=
8783 if test x
$gcc_cv_as != x
; then
8784 # Check if we have .subsection
8785 echo ".subsection 1" > conftest.s
8786 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8787 gcc_cv_as_subsections
=".subsection"
8788 if test -x nm
$host_exeext; then
8789 gcc_cv_nm
=.
/nm
$host_exeext
8790 elif test x
$host = x
$target; then
8792 gcc_cv_nm
=nm
$host_exeext
8794 if test x
$gcc_cv_nm != x
; then
8795 cat > conftest.s
<<EOF
8796 conftest_label1: .word 0
8798 conftest_label2: .word 0
8801 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8802 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8803 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8804 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8807 gcc_cv_as_subsections
="working .subsection -1"
8808 cat >> confdefs.h
<<\EOF
8809 #define HAVE_GAS_SUBSECTION_ORDERING 1
8816 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8818 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8820 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8821 echo "configure:8822: checking assembler weak support" >&5
8823 if test x
$gcc_cv_as != x
; then
8824 # Check if we have .weak
8825 echo " .weak foobar" > conftest.s
8826 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8827 cat >> confdefs.h
<<\EOF
8828 #define HAVE_GAS_WEAK 1
8831 gcc_cv_as_weak
="yes"
8833 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8835 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8837 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8838 echo "configure:8839: checking assembler hidden support" >&5
8840 if test x
$gcc_cv_as != x
; then
8841 # Check if we have .hidden
8842 echo " .hidden foobar" > conftest.s
8843 echo "foobar:" >> conftest.s
8844 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8845 cat >> confdefs.h
<<\EOF
8846 #define HAVE_GAS_HIDDEN 1
8849 gcc_cv_as_hidden
="yes"
8851 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8853 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8857 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8858 echo "configure:8859: checking assembler .register pseudo-op support" >&5
8859 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8863 gcc_cv_as_register_pseudo_op
=unknown
8864 if test x
$gcc_cv_as != x
; then
8865 # Check if we have .register
8866 echo ".register %g2, #scratch" > conftest.s
8867 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8868 gcc_cv_as_register_pseudo_op
=yes
8870 gcc_cv_as_register_pseudo_op
=no
8872 rm -f conftest.s conftest.o
8877 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8878 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8879 cat >> confdefs.h
<<\EOF
8880 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8887 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8888 echo "configure:8889: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8889 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8890 echo $ac_n "(cached) $ac_c" 1>&6
8893 if test -n "$gcc_cv_as"; then
8894 echo ".xword foo" > conftest.s
8895 gcc_cv_as_flags64
=no
8896 for flag
in "-xarch=v9" "-64 -Av9"; do
8897 if $gcc_cv_as $flag -o conftest.o conftest.s \
8898 > /dev
/null
2>&1; then
8899 gcc_cv_as_flags64
=$flag
8903 rm -f conftest.s conftest.o
8905 if test "$gas" = yes; then
8906 gcc_cv_as_flags64
="-64 -Av9"
8908 gcc_cv_as_flags64
="-xarch=v9"
8914 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8915 if test "x$gcc_cv_as_flags64" = xno
; then
8917 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8918 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8921 cat >> confdefs.h
<<EOF
8922 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8927 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8931 if test "x$gcc_cv_as_flags64" != xno
; then
8932 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8933 echo "configure:8934: checking for assembler offsetable %lo() support" >&5
8934 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8935 echo $ac_n "(cached) $ac_c" 1>&6
8938 gcc_cv_as_offsetable_lo10
=unknown
8939 if test "x$gcc_cv_as" != x
; then
8940 # Check if assembler has offsetable %lo()
8941 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8942 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8943 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8945 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8946 > /dev
/null
2>&1; then
8947 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8948 gcc_cv_as_offsetable_lo10
=no
8950 gcc_cv_as_offsetable_lo10
=yes
8953 gcc_cv_as_offsetable_lo10
=no
8955 rm -f conftest.s conftest.o conftest1.s conftest1.o
8960 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8961 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8962 cat >> confdefs.h
<<\EOF
8963 #define HAVE_AS_OFFSETABLE_LO10 1
8971 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8972 echo "configure:8973: checking assembler instructions" >&5
8973 gcc_cv_as_instructions
=
8974 if test x
$gcc_cv_as != x
; then
8975 set "filds fists" "filds mem; fists mem"
8978 echo "$2" > conftest.s
8979 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8980 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8981 cat >> confdefs.h
<<EOF
8982 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8988 rm -f conftest.s conftest.o
8990 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8994 # Figure out what language subdirectories are present.
8995 # Look if the user specified --enable-languages="..."; if not, use
8996 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8998 if test x
"${enable_languages+set}" != xset
; then
8999 if test x
"${LANGUAGES+set}" = xset
; then
9000 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9002 enable_languages
=all
9006 for lang
in ${srcdir}/*/config-lang.
in ..
9010 # The odd quoting in the next line works around
9011 # an apparent bug in bash 1.12 on linux.
9012 ${srcdir}/[*]/config-lang.
in) ;;
9014 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9015 if test "x$lang_alias" = x
9017 echo "$lang doesn't set \$language." 1>&2
9020 if test x
"${enable_languages}" = xall
; then
9023 case "${enable_languages}" in
9024 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9032 if test x"${add_this_lang}" = xyes; then
9034 ${srcdir}/ada/config-lang.in)
9035 if test x$gnat = xyes ; then
9036 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9040 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9048 # Make gthr-default.h if we have a thread file.
9050 if test $thread_file != single; then
9051 rm -f gthr-default.h
9052 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9053 gthread_flags
=-DHAVE_GTHR_DEFAULT
9057 # Find out what GC implementation we want, or may, use.
9058 # Check whether --with-gc or --without-gc was given.
9059 if test "${with_gc+set}" = set; then
9066 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9070 if test $ac_cv_func_mmap_anywhere = yes \
9071 ||
test $ac_cv_func_valloc = yes; then
9079 echo "Using $GGC for garbage collection."
9081 # Build a new-abi (c++) system
9082 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9083 if test "${enable_new_gxx_abi+set}" = set; then
9084 enableval
="$enable_new_gxx_abi"
9085 cat >> confdefs.h
<<\EOF
9086 #define ENABLE_NEW_GXX_ABI 1
9089 GXX_ABI_FLAG
='-fnew-abi'
9090 echo "Building a new-abi g++ compiler."
9096 # Make empty files to contain the specs and options for each language.
9097 # Then add #include lines to for a compiler that has specs and/or options.
9102 rm -f specs.h options.h gencheck.h
9103 touch specs.h options.h gencheck.h
9104 for subdir
in .
$subdirs
9106 if test -f $srcdir/$subdir/lang-specs.h
; then
9107 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9108 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9110 if test -f $srcdir/$subdir/lang-options.h
; then
9111 echo "#include \"$subdir/lang-options.h\"" >>options.h
9112 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9114 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9115 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9116 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9120 # These (without "all_") are set in each config-lang.in.
9121 # `language' must be a single word so is spelled singularly.
9127 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
9128 # List of language makefile fragments.
9133 # Add the language fragments.
9134 # Languages are added via two mechanisms. Some information must be
9135 # recorded in makefile variables, these are defined in config-lang.in.
9136 # We accumulate them and plug them into the main Makefile.
9137 # The other mechanism is a set of hooks for each of the main targets
9138 # like `clean', `install', etc.
9140 language_fragments
="Make-lang"
9141 language_hooks
="Make-hooks"
9144 for s
in ..
$subdirs
9156 .
${srcdir}/$s/config-lang.
in
9157 if test "x$language" = x
9159 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9162 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9163 all_languages
="$all_languages $language"
9164 if test "x$boot_language" = xyes
9166 all_boot_languages
="$all_boot_languages $language"
9168 all_compilers
="$all_compilers $compilers"
9169 all_stagestuff
="$all_stagestuff $stagestuff"
9170 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9171 all_headers
="$all_headers $headers"
9172 all_outputs
="$all_outputs $outputs"
9173 if test x
$outputs = x
9175 oldstyle_subdirs
="$oldstyle_subdirs $s"
9177 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9181 # Since we can't use `::' targets, we link each language in
9182 # with a set of hooks, reached indirectly via lang.${target}.
9186 target_list
="all.build all.cross start.encap rest.encap \
9188 install-normal install-common install-info install-man \
9190 mostlyclean clean distclean extraclean maintainer-clean \
9191 stage1 stage2 stage3 stage4"
9192 for t
in $target_list
9195 for lang
in ..
$all_languages
9197 if test $lang != ".."; then
9201 echo "lang.$t: $x" >> Make-hooks
9204 # If we're not building in srcdir, create .gdbinit.
9206 if test ! -f Makefile.
in; then
9207 echo "dir ." > .gdbinit
9208 echo "dir ${srcdir}" >> .gdbinit
9209 if test x
$gdb_needs_out_file_path = xyes
9211 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9213 if test "x$subdirs" != x
; then
9216 echo "dir ${srcdir}/$s" >> .gdbinit
9219 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9222 # Define variables host_canonical and build_canonical
9223 # because some Cygnus local changes in the Makefile depend on them.
9224 build_canonical
=${build}
9225 host_canonical
=${host}
9227 if test "${host}" != "${target}" ; then
9228 target_subdir
=${target}/
9234 # If this is using newlib, then define inhibit_libc in
9235 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9236 # libgcc.a, but that's OK because newib should have its own version of
9239 if test x
$with_newlib = xyes
; then
9240 inhibit_libc
=-Dinhibit_libc
9244 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9245 # absolute path for gcc_tooldir based on inserting the number of up-directory
9246 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9247 # $(libsubdir)/@(unlibsubdir) based path.
9248 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9249 # make and thus we'd get different behavior depending on where we built the
9251 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9252 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9254 # An explanation of the sed strings:
9255 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9256 # -e 's|/$||' match a trailing forward slash and eliminates it
9257 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9258 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9260 # (*) Note this pattern overwrites the first character of the string
9261 # with a forward slash if one is not already present. This is not a
9262 # problem because the exact names of the sub-directories concerned is
9263 # unimportant, just the number of them matters.
9265 # The practical upshot of these patterns is like this:
9267 # prefix exec_prefix result
9268 # ------ ----------- ------
9270 # /foo/ /foo/bar ../
9271 # /foo /foo/bar/ ../
9272 # /foo/ /foo/bar/ ../
9273 # /foo /foo/bar/ugg ../../
9276 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9281 # Nothing to do for FLOAT_H, float_format already handled.
9285 # Process the language and host/target makefile fragments.
9286 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9288 # Substitute configuration variables
9348 # Echo that links are built
9349 if test x
$host = x
$target
9357 if test x
$host != x
$build
9359 str3
=" on a $build system"
9362 if test "x$str2" != x ||
test "x$str3" != x
9367 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9369 if test "x$str2" != x ||
test "x$str3" != x
9371 echo " ${str2}${str3}." 1>&2
9374 # Truncate the target if necessary
9375 if test x
$host_truncate_target != x
; then
9376 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9379 # Configure the subdirectories
9380 # AC_CONFIG_SUBDIRS($subdirs)
9382 # Create the Makefile
9383 # and configure language subdirectories
9385 cat > confcache
<<\EOF
9386 # This file is a shell script that caches the results of configure
9387 # tests run on this system so they can be shared between configure
9388 # scripts and configure runs. It is not useful on other systems.
9389 # If it contains results you don't want to keep, you may remove or edit it.
9391 # By default, configure uses ./config.cache as the cache file,
9392 # creating it if it does not exist already. You can give configure
9393 # the --cache-file=FILE option to use a different cache file; that is
9394 # what configure does when it calls configure scripts in
9395 # subdirectories, so they share the cache.
9396 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9397 # config.status only pays attention to the cache file if you give it the
9398 # --recheck option to rerun configure.
9401 # The following way of writing the cache mishandles newlines in values,
9402 # but we know of no workaround that is simple, portable, and efficient.
9403 # So, don't put newlines in cache variables' values.
9404 # Ultrix sh set writes to stderr and can't be redirected directly,
9405 # and sets the high bit in the cache file unless we assign to the vars.
9407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9409 # `set' does not quote correctly, so add quotes (double-quote substitution
9410 # turns \\\\ into \\, and sed turns \\ into \).
9412 -e "s/'/'\\\\''/g" \
9413 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9416 # `set' quotes correctly as required by POSIX, so do not add quotes.
9417 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9420 if cmp -s $cache_file confcache
; then
9423 if test -w $cache_file; then
9424 echo "updating cache $cache_file"
9425 cat confcache
> $cache_file
9427 echo "not updating unwritable cache $cache_file"
9432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9434 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9435 # Let make expand exec_prefix.
9436 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9438 # Any assignment to VPATH causes Sun make to only execute
9439 # the first set of double-colon rules, so remove it if not needed.
9440 # If there is a colon in the path, we need to keep it.
9441 if test "x$srcdir" = x.
; then
9442 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9445 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9447 DEFS
=-DHAVE_CONFIG_H
9449 # Without the "./", some shells look in PATH for config.status.
9450 : ${CONFIG_STATUS=./config.status}
9452 echo creating
$CONFIG_STATUS
9453 rm -f $CONFIG_STATUS
9454 cat > $CONFIG_STATUS <<EOF
9456 # Generated automatically by configure.
9457 # Run this file to recreate the current configuration.
9458 # This directory was configured as follows,
9459 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9461 # $0 $ac_configure_args
9463 # Compiler output produced by configure, useful for debugging
9464 # configure, is in ./config.log if it exists.
9466 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9469 case "\$ac_option" in
9470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9471 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9472 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9473 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9474 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9476 -help | --help | --hel | --he | --h)
9477 echo "\$ac_cs_usage"; exit 0 ;;
9478 *) echo "\$ac_cs_usage"; exit 1 ;;
9482 ac_given_srcdir=$srcdir
9484 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9486 cat >> $CONFIG_STATUS <<EOF
9488 # Protect against being on the right side of a sed subst in config.status.
9489 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9490 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9494 s%@CFLAGS@%$CFLAGS%g
9495 s%@CPPFLAGS@%$CPPFLAGS%g
9496 s%@CXXFLAGS@%$CXXFLAGS%g
9497 s%@FFLAGS@%$FFLAGS%g
9499 s%@LDFLAGS@%$LDFLAGS%g
9501 s%@exec_prefix@%$exec_prefix%g
9502 s%@prefix@%$prefix%g
9503 s%@program_transform_name@%$program_transform_name%g
9504 s%@bindir@%$bindir%g
9505 s%@sbindir@%$sbindir%g
9506 s%@libexecdir@%$libexecdir%g
9507 s%@datadir@%$datadir%g
9508 s%@sysconfdir@%$sysconfdir%g
9509 s%@sharedstatedir@%$sharedstatedir%g
9510 s%@localstatedir@%$localstatedir%g
9511 s%@libdir@%$libdir%g
9512 s%@includedir@%$includedir%g
9513 s%@oldincludedir@%$oldincludedir%g
9514 s%@infodir@%$infodir%g
9515 s%@mandir@%$mandir%g
9517 s%@host_alias@%$host_alias%g
9518 s%@host_cpu@%$host_cpu%g
9519 s%@host_vendor@%$host_vendor%g
9520 s%@host_os@%$host_os%g
9521 s%@target@%$target%g
9522 s%@target_alias@%$target_alias%g
9523 s%@target_cpu@%$target_cpu%g
9524 s%@target_vendor@%$target_vendor%g
9525 s%@target_os@%$target_os%g
9527 s%@build_alias@%$build_alias%g
9528 s%@build_cpu@%$build_cpu%g
9529 s%@build_vendor@%$build_vendor%g
9530 s%@build_os@%$build_os%g
9532 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9533 s%@SET_MAKE@%$SET_MAKE%g
9536 s%@LEXLIB@%$LEXLIB%g
9539 s%@RANLIB@%$RANLIB%g
9541 s%@INSTALL@%$INSTALL%g
9542 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9543 s%@INSTALL_DATA@%$INSTALL_DATA%g
9546 s%@vfprintf@%$vfprintf%g
9547 s%@doprint@%$doprint%g
9548 s%@manext@%$manext%g
9549 s%@objext@%$objext%g
9550 s%@PACKAGE@%$PACKAGE%g
9551 s%@VERSION@%$VERSION%g
9552 s%@ALLOCA@%$ALLOCA%g
9553 s%@USE_NLS@%$USE_NLS%g
9554 s%@MSGFMT@%$MSGFMT%g
9555 s%@GMSGFMT@%$GMSGFMT%g
9556 s%@XGETTEXT@%$XGETTEXT%g
9557 s%@GENCAT@%$GENCAT%g
9558 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9559 s%@CATALOGS@%$CATALOGS%g
9560 s%@CATOBJEXT@%$CATOBJEXT%g
9561 s%@DATADIRNAME@%$DATADIRNAME%g
9562 s%@GMOFILES@%$GMOFILES%g
9563 s%@INSTOBJEXT@%$INSTOBJEXT%g
9564 s%@INTLDEPS@%$INTLDEPS%g
9565 s%@INTLLIBS@%$INTLLIBS%g
9566 s%@INTLOBJS@%$INTLOBJS%g
9567 s%@POFILES@%$POFILES%g
9569 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9571 s%@GT_YES@%$GT_YES%g
9572 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9574 s%@gthread_flags@%$gthread_flags%g
9576 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9577 s%@build_canonical@%$build_canonical%g
9578 s%@host_canonical@%$host_canonical%g
9579 s%@target_subdir@%$target_subdir%g
9580 s%@inhibit_libc@%$inhibit_libc%g
9581 s%@gcc_tooldir@%$gcc_tooldir%g
9582 s%@dollar@%$dollar%g
9583 s%@objdir@%$objdir%g
9584 s%@subdirs@%$subdirs%g
9585 s%@all_boot_languages@%$all_boot_languages%g
9586 s%@all_compilers@%$all_compilers%g
9587 s%@all_diff_excludes@%$all_diff_excludes%g
9588 s%@all_headers@%$all_headers%g
9589 s%@all_lang_makefiles@%$all_lang_makefiles%g
9590 s%@all_languages@%$all_languages%g
9591 s%@all_lib2funcs@%$all_lib2funcs%g
9592 s%@all_stagestuff@%$all_stagestuff%g
9593 s%@build_exeext@%$build_exeext%g
9594 s%@build_install_headers_dir@%$build_install_headers_dir%g
9595 s%@build_xm_file_list@%$build_xm_file_list%g
9596 s%@cc_set_by_configure@%$cc_set_by_configure%g
9597 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9598 s%@cpp_install_dir@%$cpp_install_dir%g
9599 s%@cpp_main@%$cpp_main%g
9600 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9601 s%@dep_tmake_file@%$dep_tmake_file%g
9602 s%@extra_c_flags@%$extra_c_flags%g
9603 s%@extra_c_objs@%$extra_c_objs%g
9604 s%@extra_cpp_objs@%$extra_cpp_objs%g
9605 s%@extra_cxx_objs@%$extra_cxx_objs%g
9606 s%@extra_headers_list@%$extra_headers_list%g
9607 s%@extra_objs@%$extra_objs%g
9608 s%@extra_parts@%$extra_parts%g
9609 s%@extra_passes@%$extra_passes%g
9610 s%@extra_programs@%$extra_programs%g
9611 s%@float_h_file@%$float_h_file%g
9612 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9613 s%@gcc_version@%$gcc_version%g
9614 s%@gcc_version_trigger@%$gcc_version_trigger%g
9615 s%@host_exeext@%$host_exeext%g
9616 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9617 s%@host_xm_file_list@%$host_xm_file_list%g
9618 s%@install@%$install%g
9619 s%@lang_options_files@%$lang_options_files%g
9620 s%@lang_specs_files@%$lang_specs_files%g
9621 s%@lang_tree_files@%$lang_tree_files%g
9622 s%@local_prefix@%$local_prefix%g
9623 s%@maybe_use_collect2@%$maybe_use_collect2%g
9624 s%@md_file@%$md_file%g
9625 s%@objc_boehm_gc@%$objc_boehm_gc%g
9626 s%@out_file@%$out_file%g
9627 s%@out_object_file@%$out_object_file%g
9628 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9629 s%@symbolic_link@%$symbolic_link%g
9630 s%@thread_file@%$thread_file%g
9631 s%@tm_file_list@%$tm_file_list%g
9632 s%@will_use_collect2@%$will_use_collect2%g
9633 /@target_overrides@/r $target_overrides
9634 s%@target_overrides@%%g
9635 /@host_overrides@/r $host_overrides
9636 s%@host_overrides@%%g
9637 s%@cross_defines@%$cross_defines%g
9638 /@cross_overrides@/r $cross_overrides
9639 s%@cross_overrides@%%g
9640 /@build_overrides@/r $build_overrides
9641 s%@build_overrides@%%g
9642 /@language_fragments@/r $language_fragments
9643 s%@language_fragments@%%g
9644 /@language_hooks@/r $language_hooks
9645 s%@language_hooks@%%g
9650 cat >> $CONFIG_STATUS <<\EOF
9652 # Split the substitutions into bite-sized pieces for seds with
9653 # small command number limits, like on Digital OSF/1 and HP-UX.
9654 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9655 ac_file
=1 # Number of current file.
9656 ac_beg
=1 # First line for current file.
9657 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9660 while $ac_more_lines; do
9661 if test $ac_beg -gt 1; then
9662 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9664 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9666 if test ! -s conftest.s
$ac_file; then
9668 rm -f conftest.s
$ac_file
9670 if test -z "$ac_sed_cmds"; then
9671 ac_sed_cmds
="sed -f conftest.s$ac_file"
9673 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9675 ac_file
=`expr $ac_file + 1`
9677 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9680 if test -z "$ac_sed_cmds"; then
9685 cat >> $CONFIG_STATUS <<EOF
9687 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9689 cat >> $CONFIG_STATUS <<\EOF
9690 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9693 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9694 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9695 *) ac_file_in
="${ac_file}.in" ;;
9698 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9700 # Remove last slash and all that follows it. Not all systems have dirname.
9701 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9702 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9703 # The file is in a subdirectory.
9704 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9705 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9706 # A "../" for each directory in $ac_dir_suffix.
9707 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9709 ac_dir_suffix
= ac_dots
=
9712 case "$ac_given_srcdir" in
9714 if test -z "$ac_dots"; then top_srcdir
=.
9715 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9716 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9718 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9719 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9723 echo creating
"$ac_file"
9725 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9727 *Makefile
*) ac_comsub
="1i\\
9728 # $configure_input" ;;
9732 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9734 s%@configure_input@%$configure_input%g
9735 s%@srcdir@%$srcdir%g
9736 s%@top_srcdir@%$top_srcdir%g
9737 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9741 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9742 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9744 # ac_d sets the value in "#define NAME VALUE" lines.
9745 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9746 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9749 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9750 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9751 ac_uB
='\([ ]\)%\1#\2define\3'
9754 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9755 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9756 ac_eB
='$%\1#\2define\3'
9760 if test "${CONFIG_HEADERS+set}" != set; then
9762 cat >> $CONFIG_STATUS <<EOF
9763 CONFIG_HEADERS="auto-host.h:config.in"
9765 cat >> $CONFIG_STATUS <<\EOF
9767 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9770 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9771 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9772 *) ac_file_in
="${ac_file}.in" ;;
9775 echo creating
$ac_file
9777 rm -f conftest.frag conftest.
in conftest.out
9778 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9779 cat $ac_file_inputs > conftest.
in
9783 # Transform confdefs.h into a sed script conftest.vals that substitutes
9784 # the proper values into config.h.in to produce config.h. And first:
9785 # Protect against being on the right side of a sed subst in config.status.
9786 # Protect against being in an unquoted here document in config.status.
9788 cat > conftest.hdr
<<\EOF
9791 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9795 sed -n -f conftest.hdr confdefs.h > conftest.vals
9798 # This sed command replaces #undef with comments. This is necessary, for
9799 # example, in the case of _POSIX_SOURCE, which is predefined and required
9800 # on some systems where configure will not decide to define it.
9801 cat >> conftest.vals <<\EOF
9802 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9805 # Break up conftest.vals because some shells have a limit on
9806 # the size of here documents, and old seds have small limits too.
9811 ac_lines=`grep -c . conftest.vals
`
9812 # grep -c gives empty output for an empty file on some AIX systems.
9813 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9814 # Write a limited-size here document to conftest.frag.
9815 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9816 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9818 sed -f conftest.frag conftest.in > conftest.out
9820 mv conftest.out conftest.in
9822 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9824 mv conftest.tail conftest.vals
9828 cat >> $CONFIG_STATUS <<\EOF
9829 rm -f conftest.frag conftest.h
9830 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9831 cat conftest.in >> conftest.h
9833 if cmp -s $ac_file conftest.h 2>/dev/null; then
9834 echo "$ac_file is unchanged"
9837 # Remove last slash and all that follows it. Not all systems have dirname.
9838 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9839 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9840 # The file is in a subdirectory.
9841 test ! -d "$ac_dir" && mkdir "$ac_dir"
9844 mv conftest.h $ac_file
9850 cat >> $CONFIG_STATUS <<EOF
9851 ac_sources="$nls_cv_header_libgt"
9852 ac_dests="$nls_cv_header_intl"
9855 cat >> $CONFIG_STATUS <<\EOF
9856 srcdir=$ac_given_srcdir
9857 while test -n "$ac_sources"; do
9858 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9859 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9861 echo "linking $srcdir/$ac_source to $ac_dest"
9863 if test ! -r $srcdir/$ac_source; then
9864 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9868 # Make relative symlinks.
9869 # Remove last slash and all that follows it. Not all systems have dirname.
9870 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9871 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9872 # The dest file is in a subdirectory.
9873 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9874 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9875 # A "../" for each directory in $ac_dest_dir_suffix.
9876 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9878 ac_dest_dir_suffix= ac_dots=
9882 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9883 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9886 # Make a symlink if possible; otherwise try a hard link.
9887 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9888 ln $srcdir/$ac_source $ac_dest; then :
9890 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9894 cat >> $CONFIG_STATUS <<EOF
9900 target_alias='${target_alias}'
9902 subdirs='${subdirs}'
9903 oldstyle_subdirs='${oldstyle_subdirs}'
9904 symbolic_link='${symbolic_link}'
9905 program_transform_set='${program_transform_set}'
9906 program_transform_name='${program_transform_name}'
9907 dep_host_xmake_file='${dep_host_xmake_file}'
9908 host_xmake_file='${host_xmake_file}'
9909 dep_tmake_file='${dep_tmake_file}'
9910 tmake_file='${tmake_file}'
9911 thread_file='${thread_file}'
9912 gcc_version='${gcc_version}'
9913 gcc_version_trigger='${gcc_version_trigger}'
9914 local_prefix='${local_prefix}'
9915 build_install_headers_dir='${build_install_headers_dir}'
9916 build_exeext='${build_exeext}'
9917 host_exeext='${host_exeext}'
9918 out_file='${out_file}'
9919 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9920 SET_MAKE='${SET_MAKE}'
9921 target_list='${target_list}'
9922 target_overrides='${target_overrides}'
9923 host_overrides='${host_overrides}'
9924 cross_defines='${cross_defines}'
9925 cross_overrides='${cross_overrides}'
9926 build_overrides='${build_overrides}'
9927 cpp_install_dir='${cpp_install_dir}'
9930 cat >> $CONFIG_STATUS <<\EOF
9931 case "$CONFIG_FILES" in *po/Makefile.in*)
9932 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9935 . $srcdir/configure.lang
9936 case x$CONFIG_HEADERS in
9937 xauto-host.h:config.in)
9940 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9941 # bootstrapping and the installation procedure can still use
9942 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9943 # FLAGS_TO_PASS has been modified to solve the problem there.
9944 # This is virtually a duplicate of what happens in configure.lang; we do
9945 # an extra check to make sure this only happens if ln -s can be used.
9946 if test "$symbolic_link" = "ln -s"; then
9947 for d in .. ${subdirs} ; do
9948 if test $d != ..; then
9951 for t in stage1 stage2 stage3 stage4 include
9954 $symbolic_link ../$t $t 2>/dev/null
9960 # Avoid having to add intl to our include paths.
9961 if test -f intl/libintl.h; then
9962 echo creating libintl.h
9963 echo '#include "intl/libintl.h"' >libintl.h
9968 chmod +x $CONFIG_STATUS
9969 rm -fr confdefs* $ac_clean_files
9970 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1