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 --enable-cpplib use cpplib for the C preprocessor."
46 --enable-c-cpplib link cpplib directly into C and C++ compilers
47 (EXPERIMENTAL) (implies --enable-cpplib)."
49 --disable-fast-fixincludes
50 Disable the new fast fixincludes.
51 Run the old fixincludes script unconditionally"
53 --enable-c-mbchar Enable multibyte characters for C and C++."
55 --enable-threads enable thread usage for target GCC.
56 --enable-threads=LIB use LIB thread package for target GCC."
58 --enable-objc-gc enable the use of Boehm's garbage collector with
59 the GNU Objective-C runtime."
61 --enable-dwarf2 enable DWARF2 debugging as default."
63 --enable-nls use Native Language Support (disabled by default)"
65 --disable-nls do not use Native Language Support"
67 --with-included-gettext use the GNU gettext library included here"
69 --with-catgets use catgets functions if available"
71 --disable-win32-registry
72 Disable lookup of installation paths in the
73 Registry on Windows hosts.
74 --enable-win32-registry Enable registry lookup (default).
75 --enable-win32-registry=KEY
76 Use KEY instead of GCC version as the last portion
79 --with-gc={simple,page} Choose the garbage collection mechanism to use
83 select the new abi for g++. You must select an ABI
84 at configuration time, so that the correct runtime
85 support is built. You cannot mix ABIs."
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=tree.c
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
600 symbolic_link
='ln -s'
603 # Check for bogus environment variables.
604 # Test if LIBRARY_PATH contains the notation for the current directory
605 # since this would lead to problems installing/building glibc.
606 # LIBRARY_PATH contains the current directory if one of the following
608 # - one of the terminals (":" and ";") is the first or last sign
609 # - two terminals occur directly after each other
610 # - the path contains an element with a dot in it
611 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
612 echo "configure:613: checking LIBRARY_PATH variable" >&5
613 case ${LIBRARY_PATH} in
614 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
615 library_path_setting
="contains current directory"
618 library_path_setting
="ok"
621 echo "$ac_t""$library_path_setting" 1>&6
622 if test "$library_path_setting" != "ok"; then
623 { echo "configure: error:
624 *** LIBRARY_PATH shouldn't contain the current directory when
625 *** building gcc. Please change the environment variable
626 *** and run configure again." 1>&2; exit 1; }
629 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
630 # since this would lead to problems installing/building glibc.
631 # GCC_EXEC_PREFIX contains the current directory if one of the following
633 # - one of the terminals (":" and ";") is the first or last sign
634 # - two terminals occur directly after each other
635 # - the path contains an element with a dot in it
636 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
637 echo "configure:638: checking GCC_EXEC_PREFIX variable" >&5
638 case ${GCC_EXEC_PREFIX} in
639 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
640 gcc_exec_prefix_setting
="contains current directory"
643 gcc_exec_prefix_setting
="ok"
646 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
647 if test "$gcc_exec_prefix_setting" != "ok"; then
648 { echo "configure: error:
649 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
650 *** building gcc. Please change the environment variable
651 *** and run configure again." 1>&2; exit 1; }
654 # Check for additional parameters
657 # Check whether --with-gnu-ld or --without-gnu-ld was given.
658 if test "${with_gnu_ld+set}" = set; then
659 withval
="$with_gnu_ld"
660 gnu_ld_flag
="$with_gnu_ld"
666 # With pre-defined ld
667 # Check whether --with-ld or --without-ld was given.
668 if test "${with_ld+set}" = set; then
670 DEFAULT_LINKER
="$with_ld"
673 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
674 if test ! -x "$DEFAULT_LINKER"; then
675 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
676 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
679 cat >> confdefs.h
<<EOF
680 #define DEFAULT_LINKER "$DEFAULT_LINKER"
686 # Check whether --with-gnu-as or --without-gnu-as was given.
687 if test "${with_gnu_as+set}" = set; then
688 withval
="$with_gnu_as"
689 gas_flag
="$with_gnu_as"
695 # Check whether --with-as or --without-as was given.
696 if test "${with_as+set}" = set; then
698 DEFAULT_ASSEMBLER
="$with_as"
701 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
702 if test ! -x "$DEFAULT_ASSEMBLER"; then
703 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
704 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
707 cat >> confdefs.h
<<EOF
708 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
714 # Check whether --with-stabs or --without-stabs was given.
715 if test "${with_stabs+set}" = set; then
716 withval
="$with_stabs"
724 # Check whether --with-elf or --without-elf was given.
725 if test "${with_elf+set}" = set; then
733 # Specify the local prefix
735 # Check whether --with-local-prefix or --without-local-prefix was given.
736 if test "${with_local_prefix+set}" = set; then
737 withval
="$with_local_prefix"
739 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
741 *) local_prefix
=$with_local_prefix ;;
746 # Default local prefix if it is empty
747 if test x
$local_prefix = x
; then
748 local_prefix
=/usr
/local
751 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
752 # passed in by the toplevel make and thus we'd get different behavior
753 # depending on where we built the sources.
755 # Specify the g++ header file directory
756 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
757 if test "${with_gxx_include_dir+set}" = set; then
758 withval
="$with_gxx_include_dir"
760 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
762 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
767 if test x
${gcc_gxx_include_dir} = x
; then
768 if test x
${enable_version_specific_runtime_libs} = xyes
; then
769 gcc_gxx_include_dir
='${libsubdir}/include/g++'
771 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
772 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
776 # Enable expensive internal checks
777 # Check whether --enable-checking or --disable-checking was given.
778 if test "${enable_checking+set}" = set; then
779 enableval
="$enable_checking"
780 case "${enableval}" in
781 yes) cat >> confdefs.h
<<\EOF
782 #define ENABLE_CHECKING 1
785 cat >> confdefs.h
<<\EOF
786 #define ENABLE_TREE_CHECKING 1
789 cat >> confdefs.h
<<\EOF
790 #define ENABLE_RTL_CHECKING 1
794 *) ac_save_IFS
="$IFS" IFS
="$IFS,"
795 set fnord
$enableval; shift
800 misc
) cat >> confdefs.h
<<\EOF
801 #define ENABLE_CHECKING 1
804 tree
) cat >> confdefs.h
<<\EOF
805 #define ENABLE_TREE_CHECKING 1
808 rtl
) cat >> confdefs.h
<<\EOF
809 #define ENABLE_RTL_CHECKING 1
812 gc
) cat >> confdefs.h
<<\EOF
813 #define ENABLE_GC_CHECKING 1
816 gcac
) cat >> confdefs.h
<<\EOF
817 #define ENABLE_GC_ALWAYS_COLLECT 1
820 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
828 # Check whether --enable-cpp or --disable-cpp was given.
829 if test "${enable_cpp+set}" = set; then
830 enableval
="$enable_cpp"
837 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
838 if test "${with_cpp_install_dir+set}" = set; then
839 withval
="$with_cpp_install_dir"
840 if test x
$withval = xyes
; then
841 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
842 elif test x
$withval != xno
; then
843 cpp_install_dir
=$withval
848 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
850 # Check whether --enable-cpplib or --disable-cpplib was given.
851 if test "${enable_cpplib+set}" = set; then
852 enableval
="$enable_cpplib"
853 if test x
$enable_cpplib != xno
; then
859 # Link cpplib into the compiler proper, for C/C++/ObjC.
860 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
861 if test "${enable_c_cpplib+set}" = set; then
862 enableval
="$enable_c_cpplib"
863 if test x
$enable_c_cpplib != xno
; then
864 extra_c_objs
="${extra_c_objs} libcpp.a"
865 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
866 extra_c_flags
="${extra_c_flags} -DUSE_CPPLIB=1"
872 # Disable fast fixincludes
873 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
874 if test "${enable_fast_fixincludes+set}" = set; then
875 enableval
="$enable_fast_fixincludes"
876 if test x
$enable_fast_fixincludes = xno
; then
877 cp $srcdir/fixincludes .
/fixinc.sh
882 # Enable Multibyte Characters for C/C++
883 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
884 if test "${enable_c_mbchar+set}" = set; then
885 enableval
="$enable_c_mbchar"
886 if test x
$enable_c_mbchar != xno
; then
887 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
893 # Pass with no value to take the default
894 # Pass with a value to specify a thread package
895 # Check whether --enable-threads or --disable-threads was given.
896 if test "${enable_threads+set}" = set; then
897 enableval
="$enable_threads"
898 if test x
$enable_threads = xno
; then
906 enable_threads_flag
=$enable_threads
907 # Check if a valid thread package
908 case x
${enable_threads_flag} in
911 target_thread_file
='single'
915 target_thread_file
=''
917 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
918 xsolaris | xwin32 | xdce | xvxworks
)
919 target_thread_file
=$enable_threads_flag
922 echo "$enable_threads is an unknown thread package" 1>&2
927 # Check whether --enable-objc-gc or --disable-objc-gc was given.
928 if test "${enable_objc_gc+set}" = set; then
929 enableval
="$enable_objc_gc"
930 if test x
$enable_objc_gc = xno
; then
940 # Check whether --with-dwarf2 or --without-dwarf2 was given.
941 if test "${with_dwarf2+set}" = set; then
942 withval
="$with_dwarf2"
943 dwarf2
="$with_dwarf2"
949 # Determine the host, build, and target systems
951 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
952 if test -f $ac_dir/install-sh
; then
954 ac_install_sh
="$ac_aux_dir/install-sh -c"
956 elif test -f $ac_dir/install.sh
; then
958 ac_install_sh
="$ac_aux_dir/install.sh -c"
962 if test -z "$ac_aux_dir"; then
963 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
965 ac_config_guess
=$ac_aux_dir/config.guess
966 ac_config_sub
=$ac_aux_dir/config.sub
967 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
970 # Do some error checking and defaulting for the host and target type.
972 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
975 # 1. You are not allowed to specify --host, --target, and nonopt at the
977 # 2. Host defaults to nonopt.
978 # 3. If nonopt is not specified, then host defaults to the current host,
979 # as determined by config.guess.
980 # 4. Target and build default to nonopt.
981 # 5. If nonopt is not specified, then target and build default to host.
983 # The aliases save the names the user supplied, while $host etc.
984 # will get canonicalized.
985 case $host---$target---$nonopt in
986 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
987 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
991 # Make sure we can run config.sub.
992 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
993 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
996 echo $ac_n "checking host system type""... $ac_c" 1>&6
997 echo "configure:998: checking host system type" >&5
1000 case "$host_alias" in
1004 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1005 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1007 *) host_alias
=$nonopt ;;
1011 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1012 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$host" 1>&6
1017 echo $ac_n "checking target system type""... $ac_c" 1>&6
1018 echo "configure:1019: checking target system type" >&5
1020 target_alias
=$target
1021 case "$target_alias" in
1024 NONE
) target_alias
=$host_alias ;;
1025 *) target_alias
=$nonopt ;;
1029 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1030 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033 echo "$ac_t""$target" 1>&6
1035 echo $ac_n "checking build system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking build system type" >&5
1039 case "$build_alias" in
1042 NONE
) build_alias
=$host_alias ;;
1043 *) build_alias
=$nonopt ;;
1047 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1048 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$build" 1>&6
1053 test "$host_alias" != "$target_alias" &&
1054 test "$program_prefix$program_suffix$program_transform_name" = \
1056 program_prefix
=${target_alias}-
1059 # Find the native compiler
1060 # Extract the first word of "gcc", so it can be a program name with args.
1061 set dummy gcc
; ac_word
=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC
="$CC" # Let the user override the test.
1070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1072 for ac_dir
in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir
=.
1074 if test -f $ac_dir/$ac_word; then
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091 set dummy cc
; ac_word
=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC
="$CC" # Let the user override the test.
1100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1103 for ac_dir
in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir
=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected
=yes
1115 if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy
$ac_cv_prog_CC
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1124 set dummy
"$ac_dir/$ac_word" "$@"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 if test -z "$CC"; then
1139 case "`uname -s`" in
1141 # Extract the first word of "cl", so it can be a program name with args.
1142 set dummy cl
; ac_word
=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC
="$CC" # Let the user override the test.
1151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1153 for ac_dir
in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir
=.
1155 if test -f $ac_dir/$ac_word; then
1164 if test -n "$CC"; then
1165 echo "$ac_t""$CC" 1>&6
1167 echo "$ac_t""no" 1>&6
1172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1175 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180 ac_cpp
='$CPP $CPPFLAGS'
1181 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183 cross_compiling
=$ac_cv_prog_cc_cross
1185 cat > conftest.
$ac_ext << EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1192 if { (eval echo configure
:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1193 ac_cv_prog_cc_works
=yes
1194 # If we can't run a trivial program, we are probably using a cross compiler.
1195 if (.
/conftest
; exit) 2>/dev
/null
; then
1196 ac_cv_prog_cc_cross
=no
1198 ac_cv_prog_cc_cross
=yes
1201 echo "configure: failed program was:" >&5
1202 cat conftest.
$ac_ext >&5
1203 ac_cv_prog_cc_works
=no
1207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1208 ac_cpp
='$CPP $CPPFLAGS'
1209 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1210 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1211 cross_compiling
=$ac_cv_prog_cc_cross
1213 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1214 if test $ac_cv_prog_cc_works = no
; then
1215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1217 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1219 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1220 cross_compiling
=$ac_cv_prog_cc_cross
1222 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether we are using GNU C" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 cat > conftest.c
<<EOF
1232 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1239 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1241 if test $ac_cv_prog_gcc = yes; then
1247 ac_test_CFLAGS
="${CFLAGS+set}"
1248 ac_save_CFLAGS
="$CFLAGS"
1250 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 echo 'void f(){}' > conftest.c
1256 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1265 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266 if test "$ac_test_CFLAGS" = set; then
1267 CFLAGS
="$ac_save_CFLAGS"
1268 elif test $ac_cv_prog_cc_g = yes; then
1269 if test "$GCC" = yes; then
1275 if test "$GCC" = yes; then
1282 echo $ac_n "checking for long double""... $ac_c" 1>&6
1283 echo "configure:1284: checking for long double" >&5
1284 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test "$GCC" = yes; then
1288 gcc_cv_c_long_double
=yes
1290 cat > conftest.
$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1295 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1296 long double foo = 0.0;
1297 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1298 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1301 if { (eval echo configure
:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1303 gcc_cv_c_long_double
=yes
1305 echo "configure: failed program was:" >&5
1306 cat conftest.
$ac_ext >&5
1308 gcc_cv_c_long_double
=no
1314 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1315 if test $gcc_cv_c_long_double = yes; then
1316 cat >> confdefs.h
<<\EOF
1317 #define HAVE_LONG_DOUBLE 1
1323 # If the native compiler is GCC, we can enable warnings even in stage1.
1324 # That's useful for people building cross-compilers, or just running a
1326 if test "x$GCC" = "xyes"; then
1327 stage1_warn_cflags
='$(WARN_CFLAGS)'
1329 stage1_warn_cflags
=""
1333 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1334 echo "configure:1335: checking whether ${MAKE-make} sets \${MAKE}" >&5
1335 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1336 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftestmake
<<\EOF
1341 @
echo 'ac_maketemp="${MAKE}"'
1343 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1344 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1345 if test -n "$ac_maketemp"; then
1346 eval ac_cv_prog_make_
${ac_make}_set
=yes
1348 eval ac_cv_prog_make_
${ac_make}_set
=no
1352 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1353 echo "$ac_t""yes" 1>&6
1356 echo "$ac_t""no" 1>&6
1357 SET_MAKE
="MAKE=${MAKE-make}"
1361 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether a default assembler was specified" >&5
1363 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1364 if test x
"$gas_flag" = x
"no"; then
1365 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1367 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1370 echo "$ac_t""no" 1>&6
1373 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether a default linker was specified" >&5
1375 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1376 if test x
"$gnu_ld_flag" = x
"no"; then
1377 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1379 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1382 echo "$ac_t""no" 1>&6
1385 # Find some useful tools
1386 for ac_prog
in mawk gawk nawk
awk
1388 # Extract the first word of "$ac_prog", so it can be a program name with args.
1389 set dummy
$ac_prog; ac_word
=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$AWK"; then
1396 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1398 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1400 for ac_dir
in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir
=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_AWK
="$ac_prog"
1410 AWK
="$ac_cv_prog_AWK"
1411 if test -n "$AWK"; then
1412 echo "$ac_t""$AWK" 1>&6
1414 echo "$ac_t""no" 1>&6
1417 test -n "$AWK" && break
1420 # Extract the first word of "flex", so it can be a program name with args.
1421 set dummy flex
; ac_word
=$2
1422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1423 echo "configure:1424: checking for $ac_word" >&5
1424 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 if test -n "$LEX"; then
1428 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1430 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1432 for ac_dir
in $ac_dummy; do
1433 test -z "$ac_dir" && ac_dir
=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_LEX
="flex"
1440 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1443 LEX
="$ac_cv_prog_LEX"
1444 if test -n "$LEX"; then
1445 echo "$ac_t""$LEX" 1>&6
1447 echo "$ac_t""no" 1>&6
1450 if test -z "$LEXLIB"
1456 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1457 echo "configure:1458: checking for yywrap in -l$ac_lib" >&5
1458 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 ac_save_LIBS
="$LIBS"
1463 LIBS
="-l$ac_lib $LIBS"
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 /* Override any gcc2 internal prototype to avoid an error. */
1468 /* We use char because int might match the return type of a gcc2
1469 builtin and then its argument prototype would still apply. */
1476 if { (eval echo configure
:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1478 eval "ac_cv_lib_$ac_lib_var=yes"
1480 echo "configure: failed program was:" >&5
1481 cat conftest.
$ac_ext >&5
1483 eval "ac_cv_lib_$ac_lib_var=no"
1486 LIBS
="$ac_save_LIBS"
1489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1490 echo "$ac_t""yes" 1>&6
1493 echo "$ac_t""no" 1>&6
1498 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether ln works" >&5
1500 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 rm -f conftestdata_t
1504 echo >conftestdata_f
1505 if ln conftestdata_f conftestdata_t
2>/dev
/null
1509 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1511 gcc_cv_prog_LN
="ln -s"
1516 rm -f conftestdata_f conftestdata_t
1519 LN
="$gcc_cv_prog_LN"
1520 if test "$gcc_cv_prog_LN" = "ln"; then
1521 echo "$ac_t""yes" 1>&6
1523 if test "$gcc_cv_prog_LN" = "ln -s"; then
1524 echo "$ac_t""no, using ln -s" 1>&6
1526 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1530 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1531 echo "configure:1532: checking whether ln -s works" >&5
1532 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 rm -f conftestdata_t
1536 echo >conftestdata_f
1537 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1539 gcc_cv_prog_LN_S
="ln -s"
1541 if ln conftestdata_f conftestdata_t
2>/dev
/null
1548 rm -f conftestdata_f conftestdata_t
1551 LN_S
="$gcc_cv_prog_LN_S"
1552 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1553 echo "$ac_t""yes" 1>&6
1555 if test "$gcc_cv_prog_LN_S" = "ln"; then
1556 echo "$ac_t""no, using ln" 1>&6
1558 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1562 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1563 echo "configure:1564: checking for volatile" >&5
1564 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1575 if { (eval echo configure
:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577 gcc_cv_c_volatile
=yes
1579 echo "configure: failed program was:" >&5
1580 cat conftest.
$ac_ext >&5
1582 gcc_cv_c_volatile
=no
1587 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1588 if test $gcc_cv_c_volatile = yes ; then
1589 cat >> confdefs.h
<<\EOF
1590 #define HAVE_VOLATILE 1
1595 # Extract the first word of "ranlib", so it can be a program name with args.
1596 set dummy ranlib
; ac_word
=$2
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_word" >&5
1599 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 if test -n "$RANLIB"; then
1603 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1605 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1607 for ac_dir
in $ac_dummy; do
1608 test -z "$ac_dir" && ac_dir
=.
1609 if test -f $ac_dir/$ac_word; then
1610 ac_cv_prog_RANLIB
="ranlib"
1615 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1618 RANLIB
="$ac_cv_prog_RANLIB"
1619 if test -n "$RANLIB"; then
1620 echo "$ac_t""$RANLIB" 1>&6
1622 echo "$ac_t""no" 1>&6
1625 for ac_prog
in 'bison -y' byacc
1627 # Extract the first word of "$ac_prog", so it can be a program name with args.
1628 set dummy
$ac_prog; ac_word
=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5
1631 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 if test -n "$YACC"; then
1635 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1639 for ac_dir
in $ac_dummy; do
1640 test -z "$ac_dir" && ac_dir
=.
1641 if test -f $ac_dir/$ac_word; then
1642 ac_cv_prog_YACC
="$ac_prog"
1649 YACC
="$ac_cv_prog_YACC"
1650 if test -n "$YACC"; then
1651 echo "$ac_t""$YACC" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 test -n "$YACC" && break
1658 test -n "$YACC" || YACC
="yacc"
1660 # Find a good install program. We prefer a C program (faster),
1661 # so one script is as good as another. But avoid the broken or
1662 # incompatible versions:
1663 # SysV /etc/install, /usr/sbin/install
1664 # SunOS /usr/etc/install
1665 # IRIX /sbin/install
1667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1669 # ./install, which can be erroneously created by make from ./install.sh.
1670 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1671 echo "configure:1672: checking for a BSD compatible install" >&5
1672 if test -z "$INSTALL"; then
1673 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1677 for ac_dir
in $PATH; do
1678 # Account for people who put trailing slashes in PATH elements.
1680 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 for ac_prog
in ginstall scoinst
install; do
1684 if test -f $ac_dir/$ac_prog; then
1685 if test $ac_prog = install &&
1686 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1687 # AIX install. It has an incompatible calling convention.
1688 # OSF/1 installbsd also uses dspmsg, but is usable.
1691 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1702 if test "${ac_cv_path_install+set}" = set; then
1703 INSTALL
="$ac_cv_path_install"
1705 # As a last resort, use the slow shell script. We don't cache a
1706 # path for INSTALL within a source directory, because that will
1707 # break other packages using the cache if that directory is
1708 # removed, or if the path is relative.
1709 INSTALL
="$ac_install_sh"
1712 echo "$ac_t""$INSTALL" 1>&6
1714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715 # It thinks the first close brace ends the variable substitution.
1716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1718 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1722 echo "configure:1723: checking how to run the C preprocessor" >&5
1723 # On Suns, sometimes $CPP names a directory.
1724 if test -n "$CPP" && test -d "$CPP"; then
1727 if test -z "$CPP"; then
1728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 # This must be in double quotes, not single quotes, because CPP may get
1732 # substituted into the Makefile and "${CC-cc}" will confuse make.
1734 # On the NeXT, cc -E runs the code through the compiler's parser,
1735 # not just through cpp.
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1743 { (eval echo configure
:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1745 if test -z "$ac_err"; then
1749 echo "configure: failed program was:" >&5
1750 cat conftest.
$ac_ext >&5
1752 CPP
="${CC-cc} -E -traditional-cpp"
1753 cat > conftest.
$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1760 { (eval echo configure
:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1762 if test -z "$ac_err"; then
1766 echo "configure: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1769 CPP
="${CC-cc} -nologo -E"
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777 { (eval echo configure
:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1779 if test -z "$ac_err"; then
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1793 ac_cv_prog_CPP
="$CPP"
1795 CPP
="$ac_cv_prog_CPP"
1797 ac_cv_prog_CPP
="$CPP"
1799 echo "$ac_t""$CPP" 1>&6
1801 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1802 echo "configure:1803: checking for ANSI C header files" >&5
1803 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.
$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1815 { (eval echo configure
:1816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1816 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1817 if test -z "$ac_err"; then
1819 ac_cv_header_stdc
=yes
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1825 ac_cv_header_stdc
=no
1829 if test $ac_cv_header_stdc = yes; then
1830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1837 egrep "memchr" >/dev
/null
2>&1; then
1841 ac_cv_header_stdc
=no
1847 if test $ac_cv_header_stdc = yes; then
1848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1855 egrep "free" >/dev
/null
2>&1; then
1859 ac_cv_header_stdc
=no
1865 if test $ac_cv_header_stdc = yes; then
1866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1867 if test "$cross_compiling" = yes; then
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1874 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1875 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1877 int main () { int i; for (i = 0; i < 256; i++)
1878 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1882 if { (eval echo configure
:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1886 echo "configure: failed program was:" >&5
1887 cat conftest.
$ac_ext >&5
1889 ac_cv_header_stdc
=no
1897 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1898 if test $ac_cv_header_stdc = yes; then
1899 cat >> confdefs.h
<<\EOF
1900 #define STDC_HEADERS 1
1905 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether time.h and sys/time.h may both be included" >&5
1907 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <sys/types.h>
1914 #include <sys/time.h>
1920 if { (eval echo configure
:1921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1922 ac_cv_header_time
=yes
1924 echo "configure: failed program was:" >&5
1925 cat conftest.
$ac_ext >&5
1927 ac_cv_header_time
=no
1932 echo "$ac_t""$ac_cv_header_time" 1>&6
1933 if test $ac_cv_header_time = yes; then
1934 cat >> confdefs.h
<<\EOF
1935 #define TIME_WITH_SYS_TIME 1
1940 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1941 echo "configure:1942: checking whether string.h and strings.h may both be included" >&5
1942 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 cat > conftest.
$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1949 #include <strings.h>
1954 if { (eval echo configure
:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1956 gcc_cv_header_string
=yes
1958 echo "configure: failed program was:" >&5
1959 cat conftest.
$ac_ext >&5
1961 gcc_cv_header_string
=no
1966 echo "$ac_t""$gcc_cv_header_string" 1>&6
1967 if test $gcc_cv_header_string = yes; then
1968 cat >> confdefs.h
<<\EOF
1969 #define STRING_WITH_STRINGS 1
1974 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1975 echo "configure:1976: checking for sys/wait.h that is POSIX.1 compatible" >&5
1976 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 #include <sys/types.h>
1983 #include <sys/wait.h>
1985 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1988 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1993 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1996 if { (eval echo configure
:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998 ac_cv_header_sys_wait_h
=yes
2000 echo "configure: failed program was:" >&5
2001 cat conftest.
$ac_ext >&5
2003 ac_cv_header_sys_wait_h
=no
2008 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2009 if test $ac_cv_header_sys_wait_h = yes; then
2010 cat >> confdefs.h
<<\EOF
2011 #define HAVE_SYS_WAIT_H 1
2016 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2017 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2018 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2021 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_hdr" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.
$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033 { (eval echo configure
:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2035 if test -z "$ac_err"; then
2037 eval "ac_cv_header_$ac_safe=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.
$ac_ext >&5
2043 eval "ac_cv_header_$ac_safe=no"
2047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2050 cat >> confdefs.h
<<EOF
2051 #define $ac_tr_hdr 1
2055 echo "$ac_t""no" 1>&6
2060 # Check for thread headers.
2061 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2062 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2063 echo "configure:2064: checking for thread.h" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure
:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2077 eval "ac_cv_header_$ac_safe=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 eval "ac_cv_header_$ac_safe=no"
2087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2091 echo "$ac_t""no" 1>&6
2095 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2096 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2097 echo "configure:2098: checking for pthread.h" >&5
2098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 #include <pthread.h>
2106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure
:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2109 if test -z "$ac_err"; then
2111 eval "ac_cv_header_$ac_safe=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2117 eval "ac_cv_header_$ac_safe=no"
2121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2125 echo "$ac_t""no" 1>&6
2130 # See if GNAT has been installed
2131 # Extract the first word of "gnatbind", so it can be a program name with args.
2132 set dummy gnatbind
; ac_word
=$2
2133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_word" >&5
2135 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 if test -n "$gnat"; then
2139 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2143 for ac_dir
in $ac_dummy; do
2144 test -z "$ac_dir" && ac_dir
=.
2145 if test -f $ac_dir/$ac_word; then
2146 ac_cv_prog_gnat
="yes"
2151 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2154 gnat
="$ac_cv_prog_gnat"
2155 if test -n "$gnat"; then
2156 echo "$ac_t""$gnat" 1>&6
2158 echo "$ac_t""no" 1>&6
2162 # See if the stage1 system preprocessor understands the ANSI C
2163 # preprocessor stringification operator.
2166 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2167 echo "configure:2168: checking for preprocessor stringizing operator" >&5
2168 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2177 char *s = x(teststring);
2180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2181 egrep "#teststring" >/dev
/null
2>&1; then
2183 ac_cv_c_stringize
=no
2186 ac_cv_c_stringize
=yes
2192 if test "${ac_cv_c_stringize}" = yes
2194 cat >> confdefs.h
<<\EOF
2195 #define HAVE_STRINGIZE 1
2199 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2202 # Use <inttypes.h> only if it exists,
2203 # doesn't clash with <sys/types.h>, and declares intmax_t.
2204 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2205 echo "configure:2206: checking for inttypes.h" >&5
2206 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <sys/types.h>
2213 #include <inttypes.h>
2218 if { (eval echo configure
:2219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2220 gcc_cv_header_inttypes_h
=yes
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2225 gcc_cv_header_inttypes_h
=no
2230 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2231 if test $gcc_cv_header_inttypes_h = yes; then
2232 cat >> confdefs.h
<<\EOF
2233 #define HAVE_INTTYPES_H 1
2238 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2239 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2240 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2241 fputs_unlocked getrusage valloc
2243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_func" >&5
2245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.
$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2251 /* System header to define __stub macros and hopefully few prototypes,
2252 which can conflict with char $ac_func(); below. */
2254 /* Override any gcc2 internal prototype to avoid an error. */
2255 /* We use char because int might match the return type of a gcc2
2256 builtin and then its argument prototype would still apply. */
2261 /* The GNU C library defines this for functions which it implements
2262 to always fail with ENOSYS. Some functions are actually named
2263 something starting with __ and the normal name is an alias. */
2264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2272 if { (eval echo configure
:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2274 eval "ac_cv_func_$ac_func=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2279 eval "ac_cv_func_$ac_func=no"
2284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2287 cat >> confdefs.h
<<EOF
2288 #define $ac_tr_func 1
2292 echo "$ac_t""no" 1>&6
2297 # Make sure wchar_t is available
2298 #AC_CHECK_TYPE(wchar_t, unsigned int)
2300 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2301 echo "configure:2302: checking for vprintf" >&5
2302 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char vprintf(); below. */
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2318 /* The GNU C library defines this for functions which it implements
2319 to always fail with ENOSYS. Some functions are actually named
2320 something starting with __ and the normal name is an alias. */
2321 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2329 if { (eval echo configure
:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2331 eval "ac_cv_func_vprintf=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 eval "ac_cv_func_vprintf=no"
2341 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2342 echo "$ac_t""yes" 1>&6
2343 cat >> confdefs.h
<<\EOF
2344 #define HAVE_VPRINTF 1
2348 echo "$ac_t""no" 1>&6
2351 if test "$ac_cv_func_vprintf" != yes; then
2352 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2353 echo "configure:2354: checking for _doprnt" >&5
2354 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.
$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char _doprnt(); below. */
2363 /* Override any gcc2 internal prototype to avoid an error. */
2364 /* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2370 /* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2381 if { (eval echo configure
:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2383 eval "ac_cv_func__doprnt=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2388 eval "ac_cv_func__doprnt=no"
2393 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 cat >> confdefs.h
<<\EOF
2396 #define HAVE_DOPRNT 1
2400 echo "$ac_t""no" 1>&6
2407 if test $ac_cv_func_vprintf != yes ; then
2409 if test $ac_cv_func__doprnt != yes ; then
2416 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2417 echo "configure:2418: checking whether the printf functions support %p" >&5
2418 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 if test "$cross_compiling" = yes; then
2422 gcc_cv_func_printf_ptr
=no
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2432 char *p = buf, *q = NULL;
2433 sprintf(buf, "%p", p);
2434 sscanf(buf, "%p", &q);
2438 if { (eval echo configure
:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2440 gcc_cv_func_printf_ptr
=yes
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2445 gcc_cv_func_printf_ptr
=no
2450 rm -f core core.
* *.core
2453 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2454 if test $gcc_cv_func_printf_ptr = yes ; then
2455 cat >> confdefs.h
<<\EOF
2456 #define HAVE_PRINTF_PTR 1
2464 # Under some versions of uwin, vfork is notoriously buggy and the test
2465 # can hang configure; on other versions, vfork exists just as a stub.
2466 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2467 ac_cv_func_vfork_works
=no
2470 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2471 echo "configure:2472: checking for pid_t" >&5
2472 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2487 ac_cv_type_pid_t
=yes
2495 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2496 if test $ac_cv_type_pid_t = no
; then
2497 cat >> confdefs.h
<<\EOF
2503 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2504 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2505 echo "configure:2506: checking for vfork.h" >&5
2506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2515 { (eval echo configure
:2516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2517 if test -z "$ac_err"; then
2519 eval "ac_cv_header_$ac_safe=yes"
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2525 eval "ac_cv_header_$ac_safe=no"
2529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2530 echo "$ac_t""yes" 1>&6
2531 cat >> confdefs.h
<<\EOF
2532 #define HAVE_VFORK_H 1
2536 echo "$ac_t""no" 1>&6
2539 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2540 echo "configure:2541: checking for working vfork" >&5
2541 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 if test "$cross_compiling" = yes; then
2545 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2546 echo "configure:2547: checking for vfork" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char vfork(); below. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_vfork) || defined (__stub___vfork)
2574 if { (eval echo configure
:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2576 eval "ac_cv_func_vfork=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 eval "ac_cv_func_vfork=no"
2586 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2590 echo "$ac_t""no" 1>&6
2593 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* Thanks to Paul Eggert for this test. */
2600 #include <sys/types.h>
2601 #include <sys/stat.h>
2602 #ifdef HAVE_UNISTD_H
2608 /* On some sparc systems, changes by the child to local and incoming
2609 argument registers are propagated back to the parent.
2610 The compiler is told about this with #include <vfork.h>,
2611 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2612 Test for this by using a static variable whose address
2613 is put into a register that is clobbered by the vfork. */
2616 sparc_address_test (int arg)
2618 sparc_address_test (arg) int arg;
2636 pid_t parent = getpid ();
2639 sparc_address_test ();
2644 /* Here is another test for sparc vfork register problems.
2645 This test uses lots of local variables, at least
2646 as many local variables as main has allocated so far
2647 including compiler temporaries. 4 locals are enough for
2648 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2649 A buggy compiler should reuse the register of parent
2650 for one of the local variables, since it will think that
2651 parent can't possibly be used any more in this routine.
2652 Assigning to the local variable will thus munge parent
2653 in the parent process. */
2655 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2656 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2657 /* Convince the compiler that p..p7 are live; otherwise, it might
2658 use the same hardware register for all 8 local variables. */
2659 if (p != p1 || p != p2 || p != p3 || p != p4
2660 || p != p5 || p != p6 || p != p7)
2663 /* On some systems (e.g. IRIX 3.3),
2664 vfork doesn't separate parent from child file descriptors.
2665 If the child closes a descriptor before it execs or exits,
2666 this munges the parent's descriptor as well.
2667 Test for this by closing stdout in the child. */
2668 _exit(close(fileno(stdout)) != 0);
2673 while (wait(&status) != child)
2676 /* Was there some problem with vforking? */
2679 /* Did the child fail? (This shouldn't happen.) */
2682 /* Did the vfork/compiler bug occur? */
2683 || parent != getpid()
2685 /* Did the file descriptor bug occur? */
2686 || fstat(fileno(stdout), &st) != 0
2691 if { (eval echo configure
:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2693 ac_cv_func_vfork_works
=yes
2695 echo "configure: failed program was:" >&5
2696 cat conftest.
$ac_ext >&5
2698 ac_cv_func_vfork_works
=no
2705 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2706 if test $ac_cv_func_vfork_works = no
; then
2707 cat >> confdefs.h
<<\EOF
2713 for ac_hdr
in unistd.h
2715 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_hdr" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure
:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 eval "ac_cv_header_$ac_safe=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 eval "ac_cv_header_$ac_safe=no"
2741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2743 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2744 cat >> confdefs.h
<<EOF
2745 #define $ac_tr_hdr 1
2749 echo "$ac_t""no" 1>&6
2753 for ac_func
in getpagesize
2755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_func" >&5
2757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.
$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 /* System header to define __stub macros and hopefully few prototypes,
2764 which can conflict with char $ac_func(); below. */
2766 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2773 /* The GNU C library defines this for functions which it implements
2774 to always fail with ENOSYS. Some functions are actually named
2775 something starting with __ and the normal name is an alias. */
2776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2784 if { (eval echo configure
:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2786 eval "ac_cv_func_$ac_func=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2791 eval "ac_cv_func_$ac_func=no"
2796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2799 cat >> confdefs.h
<<EOF
2800 #define $ac_tr_func 1
2804 echo "$ac_t""no" 1>&6
2808 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2809 echo "configure:2810: checking for working mmap from /dev/zero" >&5
2810 if eval "test \"`echo '$''{'ac_cv_func_mmap_zero'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 if test "$cross_compiling" = yes; then
2814 ac_cv_func_mmap_anywhere
=no
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2820 /* Test by Richard Henderson and Alexandre Oliva.
2821 Check whether mmap from /dev/zero works. */
2822 #include <sys/types.h>
2824 #include <sys/mman.h>
2826 /* This mess was copied from the GNU getpagesize.h. */
2827 #ifndef HAVE_GETPAGESIZE
2828 # ifdef HAVE_UNISTD_H
2829 # include <unistd.h>
2832 /* Assume that all systems that can run configure have sys/param.h. */
2833 # ifndef HAVE_SYS_PARAM_H
2834 # define HAVE_SYS_PARAM_H 1
2837 # ifdef _SC_PAGESIZE
2838 # define getpagesize() sysconf(_SC_PAGESIZE)
2839 # else /* no _SC_PAGESIZE */
2840 # ifdef HAVE_SYS_PARAM_H
2841 # include <sys/param.h>
2842 # ifdef EXEC_PAGESIZE
2843 # define getpagesize() EXEC_PAGESIZE
2844 # else /* no EXEC_PAGESIZE */
2846 # define getpagesize() NBPG * CLSIZE
2849 # endif /* no CLSIZE */
2850 # else /* no NBPG */
2852 # define getpagesize() NBPC
2853 # else /* no NBPC */
2855 # define getpagesize() PAGESIZE
2856 # endif /* PAGESIZE */
2857 # endif /* no NBPC */
2858 # endif /* no NBPG */
2859 # endif /* no EXEC_PAGESIZE */
2860 # else /* no HAVE_SYS_PARAM_H */
2861 # define getpagesize() 8192 /* punt totally */
2862 # endif /* no HAVE_SYS_PARAM_H */
2863 # endif /* no _SC_PAGESIZE */
2865 #endif /* no HAVE_GETPAGESIZE */
2872 fd = open("/dev/zero", O_RDWR);
2877 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2878 if (x == (char *) -1)
2883 if (munmap(x, pg) < 0)
2889 if { (eval echo configure
:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2891 ac_cv_func_mmap_anywhere
=yes
2893 echo "configure: failed program was:" >&5
2894 cat conftest.
$ac_ext >&5
2896 ac_cv_func_mmap_anywhere
=no
2903 echo "$ac_t""$ac_cv_func_mmap_zero" 1>&6
2904 if test $ac_cv_func_mmap_anywhere = yes; then
2905 cat >> confdefs.h
<<\EOF
2906 #define HAVE_MMAP_ANYWHERE 1
2912 for ac_func
in bcopy bzero bcmp \
2913 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2914 strsignal putc_unlocked fputs_unlocked strstr environ
2916 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2917 echo "configure:2918: checking whether $ac_func must be declared" >&5
2918 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.
$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2926 #ifdef STRING_WITH_STRINGS
2927 # include <string.h>
2928 # include <strings.h>
2930 # ifdef HAVE_STRING_H
2931 # include <string.h>
2933 # ifdef HAVE_STRINGS_H
2934 # include <strings.h>
2938 #ifdef HAVE_STDLIB_H
2941 #ifdef HAVE_UNISTD_H
2946 #define rindex strrchr
2951 #define index strchr
2956 char *(*pfn) = (char *(*)) $ac_func
2959 if { (eval echo configure
:2960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2961 eval "gcc_cv_decl_needed_$ac_func=no"
2963 echo "configure: failed program was:" >&5
2964 cat conftest.
$ac_ext >&5
2966 eval "gcc_cv_decl_needed_$ac_func=yes"
2971 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2973 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2974 cat >> confdefs.h
<<EOF
2975 #define $gcc_tr_decl 1
2979 echo "$ac_t""no" 1>&6
2985 for ac_func
in malloc realloc calloc free
2987 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2988 echo "configure:2989: checking whether $ac_func must be declared" >&5
2989 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.
$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2997 #ifdef STRING_WITH_STRINGS
2998 # include <string.h>
2999 # include <strings.h>
3001 # ifdef HAVE_STRING_H
3002 # include <string.h>
3004 # ifdef HAVE_STRINGS_H
3005 # include <strings.h>
3009 #ifdef HAVE_STDLIB_H
3012 #ifdef HAVE_UNISTD_H
3017 #define rindex strrchr
3022 #define index strchr
3025 #ifdef HAVE_MALLOC_H
3030 char *(*pfn) = (char *(*)) $ac_func
3033 if { (eval echo configure
:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 eval "gcc_cv_decl_needed_$ac_func=no"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 eval "gcc_cv_decl_needed_$ac_func=yes"
3045 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3048 cat >> confdefs.h
<<EOF
3049 #define $gcc_tr_decl 1
3053 echo "$ac_t""no" 1>&6
3059 for ac_func
in getrlimit setrlimit getrusage
3061 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3062 echo "configure:3063: checking whether $ac_func must be declared" >&5
3063 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3071 #ifdef STRING_WITH_STRINGS
3072 # include <string.h>
3073 # include <strings.h>
3075 # ifdef HAVE_STRING_H
3076 # include <string.h>
3078 # ifdef HAVE_STRINGS_H
3079 # include <strings.h>
3083 #ifdef HAVE_STDLIB_H
3086 #ifdef HAVE_UNISTD_H
3091 #define rindex strrchr
3096 #define index strchr
3099 #include <sys/types.h>
3100 #ifdef HAVE_SYS_RESOURCE_H
3101 #include <sys/resource.h>
3105 char *(*pfn) = (char *(*)) $ac_func
3108 if { (eval echo configure
:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3110 eval "gcc_cv_decl_needed_$ac_func=no"
3112 echo "configure: failed program was:" >&5
3113 cat conftest.
$ac_ext >&5
3115 eval "gcc_cv_decl_needed_$ac_func=yes"
3120 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3122 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3123 cat >> confdefs.h
<<EOF
3124 #define $gcc_tr_decl 1
3128 echo "$ac_t""no" 1>&6
3134 # mkdir takes a single argument on some systems.
3135 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3136 echo "configure:3137: checking if mkdir takes one argument" >&5
3137 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3144 #include <sys/types.h>
3145 #ifdef HAVE_SYS_STAT_H
3146 # include <sys/stat.h>
3148 #ifdef HAVE_UNISTD_H
3149 # include <unistd.h>
3151 #ifdef HAVE_DIRECT_H
3152 # include <direct.h>
3158 if { (eval echo configure
:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160 gcc_cv_mkdir_takes_one_arg
=no
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 gcc_cv_mkdir_takes_one_arg
=yes
3170 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3171 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3172 cat >> confdefs.h
<<\EOF
3173 #define MKDIR_TAKES_ONE_ARG 1
3187 build_install_headers_dir
=install-headers-tar
3192 host_truncate_target
=
3195 # Decode the host machine, then the target machine.
3196 # For the host machine, we save the xm_file variable as host_xm_file;
3197 # then we decode the target machine and forget everything else
3198 # that came from the host machine.
3199 for machine
in $build $host $target; do
3213 # Set this to force installation and use of collect2.
3215 # Set this to override the default target model.
3217 # Set this to control how the header file directory is installed.
3218 install_headers_dir
=install-headers-tar
3219 # Set this to a non-empty list of args to pass to cpp if the target
3220 # wants its .md file passed through cpp.
3222 # Set this if directory names should be truncated to 14 characters.
3224 # Set this if gdb needs a dir command with `dirname $out_file`
3225 gdb_needs_out_file_path
=
3226 # Set this if the build machine requires executables to have a
3229 # Set this to control which thread package will be used.
3231 # Reinitialize these from the flag values every loop pass, since some
3232 # configure entries modify them.
3234 gnu_ld
="$gnu_ld_flag"
3235 enable_threads
=$enable_threads_flag
3237 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3238 # updated in each machine entry.
3240 cpu_type
=`echo $machine | sed 's/-.*$//'`
3277 tm_file
=${cpu_type}/${cpu_type}.h
3278 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3279 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3281 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3283 # On a.out targets, we need to use collect2.
3290 # Common parts for linux-gnu and openbsd systems
3293 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3296 tm_file
=${cpu_type}/openbsd.h
3297 tmake_file
="t-libc-ok t-openbsd"
3298 # avoid surprises, always provide an xm-openbsd file
3299 xm_file
=${cpu_type}/xm-openbsd.h
3300 # don't depend on processor x-fragments as well
3302 if test x
$enable_threads = xyes
; then
3304 tmake_file
="${tmake_file} t-openbsd-thread"
3310 # Support site-specific machine types.
3312 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3313 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3314 xm_file
=${cpu_type}/xm-
$rest.h
3315 tm_file
=${cpu_type}/$rest.h
3316 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3317 then xmake_file
=${cpu_type}/x-
$rest; \
3320 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3321 then tmake_file
=${cpu_type}/t-
$rest; \
3327 a29k-
*-bsd* | a29k-
*-sym1*)
3328 tm_file
="${tm_file} a29k/unix.h"
3330 xmake_file
=a29k
/x-unix
3333 a29k-
*-udi | a29k-
*-coff)
3334 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3335 tmake_file
=a29k
/t-a29kbare
3338 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3339 tmake_file
=a29k
/t-vx29k
3340 extra_parts
="crtbegin.o crtend.o"
3341 thread_file
='vxworks'
3343 a29k-
*-*) # Default a29k environment.
3347 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3349 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3350 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3352 # GAS + IEEE_CONFORMANT
3353 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3355 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3356 xmake_file
="x-interix alpha/t-pe"
3357 tmake_file
="alpha/t-interix alpha/t-ieee"
3358 if test x
$enable_threads = xyes
; then
3361 if test x
$stabs = xyes
; then
3362 tm_file
="${tm_file} dbxcoff.h"
3364 #prefix='$$INTERIX_ROOT'/usr/contrib
3365 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3367 alpha
*-*-linux-gnuecoff*)
3368 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3369 target_cpu_default
="MASK_GAS"
3370 tmake_file
="alpha/t-ieee"
3375 alpha
*-*-linux-gnulibc1*)
3376 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3377 target_cpu_default
="MASK_GAS"
3378 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3379 extra_parts
="crtbegin.o crtend.o"
3382 if test x
$enable_threads = xyes
; then
3386 alpha
*-*-linux-gnu*)
3387 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3388 target_cpu_default
="MASK_GAS"
3389 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3390 extra_parts
="crtbegin.o crtend.o"
3393 if test x
$enable_threads = xyes
; then
3398 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3399 target_cpu_default
="MASK_GAS"
3400 tmake_file
="alpha/t-crtbe alpha/t-ieee"
3401 extra_parts
="crtbegin.o crtend.o"
3407 # default x-alpha is only appropriate for dec-osf.
3408 target_cpu_default
="MASK_GAS"
3409 tmake_file
="alpha/t-ieee"
3413 if test x
$stabs = xyes
3415 tm_file
="${tm_file} dbx.h"
3417 if test x
$gas != xyes
3419 extra_passes
="mips-tfile mips-tdump"
3422 tmake_file
="alpha/t-ieee"
3425 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3428 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3431 tm_file
="${tm_file} alpha/osf.h"
3432 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3433 # a broken tar, so we use cpio instead.
3434 install_headers_dir
=install-headers-cpio
3437 tm_file
="${tm_file} alpha/osf.h"
3441 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
3442 target_cpu_default
=MASK_SUPPORT_ARCH
3447 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3448 tmake_file
="alpha/t-ieee"
3451 extra_passes
="mips-tfile mips-tdump"
3454 thread_file
='vxworks'
3457 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3458 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3459 tmake_file
="t-libc-ok alpha/t-ieee"
3460 xmake_file
=winnt
/x-winnt
3461 extra_host_objs
=oldnames.o
3462 extra_gcc_objs
="spawnv.o oldnames.o"
3463 if test x
$gnu_ld != xyes
3465 extra_programs
=ld.exe
3467 if test x
$enable_threads = xyes
; then
3473 xm_file
="${xm_file} alpha/xm-vms.h"
3474 tmake_file
="alpha/t-vms alpha/t-ieee"
3477 extra_parts
="crtinit.o crtfini.o"
3479 arm-
*-coff* | armel-
*-coff*)
3481 tmake_file
=arm
/t-bare
3485 tmake_file
=arm
/t-bare
3486 thread_file
='vxworks'
3488 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3489 tm_file
=arm
/riscix1-1.h
3492 arm-
*-riscix*) # Acorn RISC machine
3493 if test x
$gas = xyes
3495 tm_file
=arm
/rix-gas.h
3497 tm_file
=arm
/riscix.h
3499 xmake_file
=arm
/x-riscix
3500 tmake_file
=arm
/t-riscix
3503 arm-semi-aout | armel-semi-aout
)
3505 tmake_file
=arm
/t-semi
3507 arm-semi-aof | armel-semi-aof
)
3508 tm_file
=arm
/semiaof.h
3509 tmake_file
=arm
/t-semiaof
3512 tm_file
=arm
/netbsd.h
3513 tmake_file
="t-netbsd arm/t-netbsd"
3516 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3519 tm_file
=arm
/linux-aout.h
3520 tmake_file
=arm
/t-linux
3523 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3524 xm_file
=arm
/xm-linux.h
3526 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3529 tm_file
="arm/linux-elf26.h $tm_file"
3532 tmake_file
="t-linux arm/t-linux"
3533 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3535 case x
${enable_threads} in
3536 x | xyes | xpthreads | xposix
)
3541 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3542 xm_file
=arm
/xm-linux.h
3544 tm_file
="arm/linux-elf.h"
3547 tm_file
="arm/linux-elf26.h $tm_file"
3550 tmake_file
="t-linux arm/t-linux"
3551 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3553 case x
${enable_threads} in
3554 x | xyes | xpthreads | xposix
)
3559 arm
*-*-uclinux*) # ARM ucLinux
3560 tm_file
=arm
/uclinux-elf.h
3561 tmake_file
=arm
/t-arm-elf
3565 tmake_file
=arm
/t-bare
3568 tm_file
=arm
/ecos-elf.h
3569 tmake_file
=arm
/t-elf
3572 tm_file
=arm
/unknown-elf.h
3573 tmake_file
=arm
/t-arm-elf
3576 tm_file
=arm
/unknown-elf-oabi.h
3577 tmake_file
=arm
/t-arm-elf
3584 c1-convex-
*) # Convex C1
3585 target_cpu_default
=1
3588 c2-convex-
*) # Convex C2
3589 target_cpu_default
=2
3593 target_cpu_default
=4
3597 target_cpu_default
=8
3601 target_cpu_default
=16
3606 tmake_file
=c4x
/t-c4x
3608 clipper-intergraph-clix
*)
3609 tm_file
="${tm_file} svr3.h clipper/clix.h"
3610 xm_file
=clipper
/xm-clix.h
3611 xmake_file
=clipper
/x-clix
3612 extra_headers
=va-clipper.h
3613 extra_parts
="crtbegin.o crtend.o"
3614 install_headers_dir
=install-headers-cpio
3622 tm_file
="fr30/fr30.h"
3623 tmake_file
=fr30
/t-fr30
3624 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3626 # This hasn't been upgraded to GCC 2.
3627 # fx80-alliant-*) # Alliant FX/80
3633 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3634 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3635 tmake_file
="t-linux pa/t-linux"
3636 extra_parts
="crtbegin.o crtend.o"
3639 if test x
$enable_threads = xyes
; then
3644 target_cpu_default
="MASK_PA_11"
3645 tmake_file
=pa
/t-openbsd
3648 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3649 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3650 xm_file
=pa
/xm-papro.h
3654 target_cpu_default
="MASK_PA_11"
3655 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3659 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3660 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3661 xm_file
=pa
/xm-papro.h
3665 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3669 tm_file
="${tm_file} pa/som.h"
3670 target_cpu_default
="MASK_PA_11"
3674 tm_file
="${tm_file} pa/som.h"
3678 tm_file
="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3679 xm_file
=pa
/xm-pahpux.h
3680 xmake_file
=pa
/x-pa-hpux
3681 if test x
$gas = xyes
3683 tm_file
="${tm_file} pa/gas.h"
3685 install_headers_dir
=install-headers-cpio
3688 hppa1.0
-*-hpux8.0
[0-2]*)
3689 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3690 xm_file
=pa
/xm-pahpux.h
3691 xmake_file
=pa
/x-pa-hpux
3692 if test x
$gas = xyes
3694 tm_file
="${tm_file} pa/pa-gas.h"
3696 tm_file
="pa/pa-oldas.h ${tm_file}"
3698 install_headers_dir
=install-headers-cpio
3701 hppa1.1
-*-hpux8.0
[0-2]*)
3702 target_cpu_default
="MASK_PA_11"
3703 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3704 xm_file
=pa
/xm-pahpux.h
3705 xmake_file
=pa
/x-pa-hpux
3706 if test x
$gas = xyes
3708 tm_file
="${tm_file} pa/pa-gas.h"
3710 tm_file
="pa/pa-oldas.h ${tm_file}"
3712 install_headers_dir
=install-headers-cpio
3716 target_cpu_default
="MASK_PA_11"
3717 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3718 xm_file
=pa
/xm-pahpux.h
3719 xmake_file
=pa
/x-pa-hpux
3720 if test x
$gas = xyes
3722 tm_file
="${tm_file} pa/pa-gas.h"
3724 install_headers_dir
=install-headers-cpio
3728 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3729 xm_file
=pa
/xm-pahpux.h
3730 xmake_file
=pa
/x-pa-hpux
3731 if test x
$gas = xyes
3733 tm_file
="${tm_file} pa/pa-gas.h"
3735 install_headers_dir
=install-headers-cpio
3738 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3739 target_cpu_default
="MASK_PA_11"
3740 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3741 xm_file
=pa
/xm-pahpux.h
3742 xmake_file
=pa
/x-pa-hpux
3744 if test x
$gas = xyes
3746 tm_file
="${tm_file} pa/pa-gas.h"
3748 if test x
$enable_threads = x
; then
3749 enable_threads
=$have_pthread_h
3751 if test x
$enable_threads = xyes
; then
3753 tmake_file
="${tmake_file} pa/t-dce-thr"
3755 install_headers_dir
=install-headers-cpio
3759 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.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
3777 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3778 target_cpu_default
="MASK_PA_11"
3779 tm_file
="${tm_file} 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
3783 if test x
$gas = xyes
3785 tm_file
="${tm_file} pa/pa-gas.h"
3787 # if test x$enable_threads = x; then
3788 # enable_threads=$have_pthread_h
3790 # if test x$enable_threads = xyes; then
3792 # tmake_file="${tmake_file} pa/t-dce-thr"
3794 install_headers_dir
=install-headers-cpio
3798 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.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 # if test x$enable_threads = x; then
3806 # enable_threads=$have_pthread_h
3808 # if test x$enable_threads = xyes; then
3810 # tmake_file="${tmake_file} pa/t-dce-thr"
3812 install_headers_dir
=install-headers-cpio
3815 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3816 target_cpu_default
="MASK_PA_11"
3817 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3818 xm_file
=pa
/xm-pahpux.h
3819 xmake_file
=pa
/x-pa-hpux
3820 if test x
$gas = xyes
3822 tm_file
="${tm_file} pa/pa-gas.h"
3824 install_headers_dir
=install-headers-cpio
3828 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3829 xm_file
=pa
/xm-pahpux.h
3830 xmake_file
=pa
/x-pa-hpux
3831 if test x
$gas = xyes
3833 tm_file
="${tm_file} pa/pa-gas.h"
3835 install_headers_dir
=install-headers-cpio
3838 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3839 target_cpu_default
="MASK_PA_11"
3840 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3841 xm_file
=pa
/xm-pahpux.h
3842 xmake_file
=pa
/x-pa-hpux
3843 if test x
$gas = xyes
3845 tm_file
="${tm_file} pa/pa-gas.h"
3847 install_headers_dir
=install-headers-cpio
3851 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3852 xm_file
=pa
/xm-pahpux.h
3853 xmake_file
=pa
/x-pa-hpux
3854 if test x
$gas = xyes
3856 tm_file
="${tm_file} pa/pa-gas.h"
3858 install_headers_dir
=install-headers-cpio
3862 tm_file
="${tm_file} elfos.h pa/elf.h"
3863 target_cpu_default
="MASK_PA_11"
3867 tm_file
="${tm_file} pa/pa-mpeix.h"
3868 xm_file
=pa
/xm-pampeix.h
3869 xmake_file
=pa
/x-pa-mpeix
3870 echo "You must use gas. Assuming it is already installed."
3871 install_headers_dir
=install-headers-tar
3872 fixincludes
=Makefile.
in
3875 i370-
*-opened*) # IBM 360/370/390 Architecture
3876 xm_file
=i370
/xm-oe.h
3878 xmake_file
=i370
/x-oe
3879 tmake_file
=i370
/t-oe
3880 fixincludes
=Makefile.
in # Headers are wierd, don't mess with
3883 xm_file
=i370
/xm-mvs.h
3885 tmake_file
=i370
/t-mvs
3886 fixincludes
=Makefile.
in # Headers are wierd, don't mess with
3889 xm_file
="xm-linux.h i370/xm-linux.h"
3891 tm_file
="i370/linux.h ${tm_file}"
3892 tmake_file
="t-linux i370/t-linux"
3893 fixincludes
=Makefile.
in # The headers are ok already.
3894 # broken_install=yes
3895 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3896 # extra_parts="crtbegin.o crtend.o"
3900 if test x
$enable_threads = xyes
; then
3905 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3906 tm_file
=i386
/i386elf.h
3907 tmake_file
=i386
/t-i386elf
3910 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3911 if test x
$gas = xyes
3913 tm_file
=i386
/aix386.h
3914 extra_parts
="crtbegin.o crtend.o"
3915 tmake_file
=i386
/t-crtstuff
3917 tm_file
=i386
/aix386ng.h
3920 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3922 xmake_file
=i386
/x-aix
3924 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3925 xm_file
="xm-alloca.h ${xm_file}"
3926 xm_defines
="USG POSIX SMALL_ARG_MAX"
3927 xmake_file
=i386
/x-ncr3000
3928 if test x
$stabs = xyes
-a x
$gas = xyes
3930 tm_file
=i386
/sysv4gdb.h
3932 tm_file
=i386
/sysv4.h
3934 extra_parts
="crtbegin.o crtend.o"
3935 tmake_file
=i386
/t-crtpic
3939 xm_file
=i386
/xm-next.h
3940 tmake_file
=i386
/t-next
3941 xmake_file
=i386
/x-next
3942 extra_objs
=nextstep.o
3943 extra_parts
="crtbegin.o crtend.o"
3944 if test x
$enable_threads = xyes
; then
3948 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3950 if test x
$gas = xyes
3952 tm_file
=i386
/seq-gas.h
3954 tm_file
=i386
/sequent.h
3957 i
[34567]86-sequent-ptx1*)
3958 xm_defines
="USG SVR3"
3959 xmake_file
=i386
/x-sysv3
3960 tm_file
=i386
/seq-sysv3.h
3961 tmake_file
=i386
/t-crtstuff
3962 extra_parts
="crtbegin.o crtend.o"
3963 install_headers_dir
=install-headers-cpio
3965 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3966 xm_defines
="USG SVR3"
3967 xmake_file
=i386
/x-sysv3
3968 tm_file
=i386
/seq2-sysv3.h
3969 tmake_file
=i386
/t-crtstuff
3970 extra_parts
="crtbegin.o crtend.o"
3971 install_headers_dir
=install-headers-cpio
3973 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3974 xm_file
="xm-alloca.h ${xm_file}"
3975 xm_defines
="USG POSIX SMALL_ARG_MAX"
3977 tm_file
=i386
/ptx4-i.h
3979 extra_parts
="crtbegin.o crtend.o"
3980 install_headers_dir
=install-headers-cpio
3982 i386-sun-sunos
*) # Sun i386 roadrunner
3987 i
[34567]86-wrs-vxworks*)
3988 tm_file
=i386
/vxi386.h
3989 tmake_file
=i386
/t-i386bare
3990 thread_file
='vxworks'
3993 tm_file
=i386
/i386-aout.h
3994 tmake_file
=i386
/t-i386bare
3996 i
[34567]86-*-beospe*)
3997 xm_file
=i386
/xm-beos.h
3998 xm_defines
="USE_C_ALLOCA"
3999 tmake_file
=i386
/t-beos
4000 tm_file
=i386
/beos-pe.h
4001 xmake_file
=i386
/x-beos
4004 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4005 xm_file
=i386
/xm-beos.h
4006 tmake_file
='i386/t-beos i386/t-crtpic'
4007 tm_file
=i386
/beos-elf.h
4008 xmake_file
=i386
/x-beos
4010 extra_parts
='crtbegin.o crtend.o'
4011 fixincludes
=Makefile.
in
4013 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4014 tm_file
=i386
/bsd386.h
4015 # tmake_file=t-libc-ok
4018 tm_file
=i386
/386bsd.h
4019 # tmake_file=t-libc-ok
4020 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4023 i
[34567]86-*-freebsdelf*)
4024 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4025 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4026 tmake_file
=t-freebsd
4030 case x
${enable_threads} in
4031 xyes | xpthreads | xposix
)
4033 tmake_file
="${tmake_file} t-freebsd-thread"
4037 i
[34567]86-*-freebsd*)
4038 tm_file
="i386/freebsd.h i386/perform.h"
4039 tmake_file
=t-freebsd
4041 i
[34567]86-*-netbsd*)
4042 tm_file
=i386
/netbsd.h
4046 i
[34567]86-*-openbsd*)
4047 # we need collect2 until our bug is fixed...
4051 tm_file
=i386
/i386-coff.h
4052 tmake_file
=i386
/t-i386bare
4054 i
[34567]86-*-isc*) # 80386 running ISC system
4055 xm_file
="${xm_file} i386/xm-isc.h"
4056 xm_defines
="USG SVR3"
4058 i
[34567]86-*-isc[34]*)
4059 xmake_file
=i386
/x-isc3
4062 xmake_file
=i386
/x-isc
4065 if test x
$gas = xyes
-a x
$stabs = xyes
4067 tm_file
=i386
/iscdbx.h
4068 tmake_file
=i386
/t-svr3dbx
4069 extra_parts
="svr3.ifile svr3z.ifile"
4071 tm_file
=i386
/isccoff.h
4072 tmake_file
=i386
/t-crtstuff
4073 extra_parts
="crtbegin.o crtend.o"
4075 install_headers_dir
=install-headers-cpio
4077 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4079 xmake_file
=x-linux-aout
4080 tmake_file
="t-linux-aout i386/t-crtstuff"
4081 tm_file
=i386
/linux-oldld.h
4085 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4086 xmake_file
=x-linux-aout
4087 tmake_file
="t-linux-aout i386/t-crtstuff"
4088 tm_file
=i386
/linux-aout.h
4092 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4093 # GNU/Linux C library 5
4095 tm_file
=i386
/linux.h
4096 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4097 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4100 if test x
$enable_threads = xyes
; then
4101 thread_file
='single'
4104 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4105 # aka GNU/Linux C library 6
4107 tm_file
=i386
/linux.h
4108 tmake_file
="t-linux i386/t-crtstuff"
4109 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4112 if test x
$enable_threads = xyes
; then
4119 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4120 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4123 i
[34567]86-pc-msdosdjgpp*)
4124 xm_file
=i386
/xm-djgpp.h
4125 tm_file
=i386
/djgpp.h
4126 tmake_file
=i386
/t-djgpp
4127 xmake_file
=i386
/x-djgpp
4131 case $host in *pc-msdosdjgpp
*)
4136 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4138 tmake_file
=t-libc-ok
4142 i
[34567]86-*-lynxos*)
4143 if test x
$gas = xyes
4147 tm_file
=i386
/lynx-ng.h
4149 xm_file
=i386
/xm-lynx.h
4150 tmake_file
=i386
/t-i386bare
4155 # tmake_file=t-libc-ok
4158 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4159 if test x
$elf = xyes
4161 tm_file
=i386
/osfelf.h
4164 tm_file
=i386
/osfrose.h
4167 xm_file
="i386/xm-osf.h ${xm_file}"
4168 xmake_file
=i386
/x-osfrose
4169 tmake_file
=i386
/t-osf
4170 extra_objs
=halfpic.o
4172 i
[34567]86-go32-rtems*)
4174 xm_file
=i386
/xm-go32.h
4175 tm_file
=i386
/go32-rtems.h
4176 tmake_file
="i386/t-go32 t-rtems"
4178 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4180 tm_file
=i386
/rtemself.h
4181 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4182 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4184 i
[34567]86-*-rtemscoff*)
4186 tm_file
=i386
/rtems.h
4187 tmake_file
="i386/t-i386bare t-rtems"
4189 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4190 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4191 xm_defines
="USG SVR3"
4192 xmake_file
=i386
/x-sco5
4193 install_headers_dir
=install-headers-cpio
4195 if test x
$gas = xyes
4197 tm_file
="i386/sco5gas.h ${tm_file}"
4198 tmake_file
=i386
/t-sco5gas
4200 tmake_file
=i386
/t-sco5
4202 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4204 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4205 xm_file
="${xm_file} i386/xm-sco.h"
4206 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4207 xmake_file
=i386
/x-sco4
4208 install_headers_dir
=install-headers-cpio
4209 if test x
$stabs = xyes
4211 tm_file
=i386
/sco4dbx.h
4212 tmake_file
=i386
/t-svr3dbx
4213 extra_parts
="svr3.ifile svr3z.rfile"
4216 tmake_file
=i386
/t-crtstuff
4217 extra_parts
="crtbegin.o crtend.o"
4219 # The default EAFS filesystem supports long file names.
4220 # Truncating the target makes $host != $target which
4221 # makes gcc think it is doing a cross-compile.
4222 # truncate_target=yes
4224 i
[34567]86-*-sco*) # 80386 running SCO system
4225 xm_file
=i386
/xm-sco.h
4226 xmake_file
=i386
/x-sco
4227 install_headers_dir
=install-headers-cpio
4228 if test x
$stabs = xyes
4230 tm_file
=i386
/scodbx.h
4231 tmake_file
=i386
/t-svr3dbx
4232 extra_parts
="svr3.ifile svr3z.rfile"
4235 extra_parts
="crtbegin.o crtend.o"
4236 tmake_file
=i386
/t-crtstuff
4240 i
[34567]86-*-solaris2*)
4241 xm_file
="xm-alloca.h ${xm_file}"
4242 xm_defines
="USG POSIX SMALL_ARG_MAX"
4244 if test x
$gas = xyes
; then
4245 # Only needed if gas does not support -s
4246 tm_file
="i386/sol2gas.h ${tm_file}"
4248 tmake_file
=i386
/t-sol2
4249 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4251 if test x
${enable_threads} = x
; then
4252 enable_threads
=$have_pthread_h
4253 if test x
${enable_threads} = x
; then
4254 enable_threads
=$have_thread_h
4257 if test x
${enable_threads} = xyes
; then
4258 if test x
${have_pthread_h} = xyes
; then
4261 thread_file
='solaris'
4265 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4266 xm_file
="xm-alloca.h ${xm_file}"
4267 xm_defines
="USG POSIX"
4268 tm_file
=i386
/sysv5.h
4269 if test x
$stabs = xyes
4271 tm_file
="${tm_file} dbx.h"
4273 tmake_file
=i386
/t-crtpic
4275 extra_parts
="crtbegin.o crtend.o"
4276 if test x
$enable_threads = xyes
; then
4280 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4281 xm_file
="xm-alloca.h ${xm_file}"
4282 xm_defines
="USG POSIX SMALL_ARG_MAX"
4283 tm_file
=i386
/sysv4.h
4284 if test x
$stabs = xyes
4286 tm_file
="${tm_file} dbx.h"
4288 tmake_file
=i386
/t-crtpic
4290 extra_parts
="crtbegin.o crtend.o"
4292 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4293 xm_file
="xm-alloca.h ${xm_file}"
4294 xm_defines
="USG POSIX"
4296 tmake_file
="i386/t-crtpic i386/t-udk"
4298 extra_parts
="crtbegin.o crtend.o"
4299 install_headers_dir
=install-headers-cpio
4301 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4303 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4304 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4305 if test x
$stabs = xyes
4307 tm_file
=i386
/osf1elfgdb.h
4309 tm_file
=i386
/osf1elf.h
4311 tmake_file
=i386
/t-osf1elf
4312 xmake_file
=i386
/x-osf1elf
4313 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4315 i
[34567]86-*-sysv*) # Intel 80386's running system V
4316 xm_defines
="USG SVR3"
4317 xmake_file
=i386
/x-sysv3
4318 if test x
$gas = xyes
4320 if test x
$stabs = xyes
4322 tm_file
=i386
/svr3dbx.h
4323 tmake_file
=i386
/t-svr3dbx
4324 extra_parts
="svr3.ifile svr3z.rfile"
4326 tm_file
=i386
/svr3gas.h
4327 extra_parts
="crtbegin.o crtend.o"
4328 tmake_file
=i386
/t-crtstuff
4331 tm_file
=i386
/sysv3.h
4332 extra_parts
="crtbegin.o crtend.o"
4333 tmake_file
=i386
/t-crtstuff
4336 i386-
*-vsta) # Intel 80386's running VSTa kernel
4337 xm_file
="${xm_file} i386/xm-vsta.h"
4339 tmake_file
=i386
/t-vsta
4340 xmake_file
=i386
/x-vsta
4343 xm_file
="${xm_file} i386/xm-cygwin.h"
4344 tmake_file
=i386
/t-cygwin
4345 tm_file
=i386
/win32.h
4346 xmake_file
=i386
/x-cygwin
4348 if test x
$enable_threads = xyes
; then
4353 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4354 xm_file
="${xm_file} i386/xm-cygwin.h"
4355 tmake_file
=i386
/t-cygwin
4356 tm_file
=i386
/cygwin.h
4357 xmake_file
=i386
/x-cygwin
4359 if test x
$enable_threads = xyes
; then
4364 i
[34567]86-*-mingw32*)
4365 tm_file
=i386
/mingw32.h
4366 xm_file
="${xm_file} i386/xm-mingw32.h"
4367 tmake_file
="i386/t-cygwin i386/t-mingw32"
4369 xmake_file
=i386
/x-cygwin
4370 if test x
$enable_threads = xyes
; then
4377 *minwg32crt
* |
*mingw32
*)
4378 tm_file
="${tm_file} i386/crtdll.h"
4384 xm_file
="${xm_file} i386/xm-uwin.h"
4385 xm_defines
="USG NO_STAB_H"
4386 tmake_file
="i386/t-cygwin i386/t-uwin"
4388 xmake_file
=i386
/x-cygwin
4389 if test x
$enable_threads = xyes
; then
4394 i
[34567]86-*-interix*)
4395 tm_file
="i386/i386-interix.h interix.h"
4396 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4398 tmake_file
="i386/t-interix"
4399 extra_objs
=interix.o
4400 xmake_file
=x-interix
4401 if test x
$enable_threads = xyes
; then
4404 if test x
$stabs = xyes
; then
4405 tm_file
="${tm_file} dbxcoff.h"
4408 i
[34567]86-*-winnt3*)
4409 tm_file
=i386
/win-nt.h
4410 out_file
=i386
/i386.c
4411 xm_file
="xm-winnt.h ${xm_file}"
4412 xmake_file
=winnt
/x-winnt
4413 tmake_file
=i386
/t-winnt
4414 extra_host_objs
="winnt.o oldnames.o"
4415 extra_gcc_objs
="spawnv.o oldnames.o"
4416 if test x
$gnu_ld != xyes
4418 extra_programs
=ld.exe
4420 if test x
$enable_threads = xyes
; then
4424 i
[34567]86-dg-dgux*)
4425 xm_file
="xm-alloca.h ${xm_file}"
4426 xm_defines
="USG POSIX"
4427 out_file
=i386
/dgux.c
4429 tmake_file
=i386
/t-dgux
4430 xmake_file
=i386
/x-dgux
4431 install_headers_dir
=install-headers-cpio
4433 i860-alliant-
*) # Alliant FX/2800
4434 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4435 xm_file
="${xm_file}"
4436 xmake_file
=i860
/x-fx2800
4437 tmake_file
=i860
/t-fx2800
4438 extra_parts
="crtbegin.o crtend.o"
4441 tm_file
="${tm_file} i860/bsd.h"
4442 if test x
$gas = xyes
4444 tm_file
="${tm_file} i860/bsd-gas.h"
4449 tm_file
="${tm_file} i860/mach.h"
4450 tmake_file
=t-libc-ok
4452 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4453 tm_file
="${tm_file} svr3.h i860/paragon.h"
4454 xm_defines
="USG SVR3"
4458 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4459 xm_defines
="USG SVR3"
4460 xmake_file
=i860
/x-sysv3
4461 extra_parts
="crtbegin.o crtend.o"
4464 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4465 xm_defines
="USG SVR3"
4466 xmake_file
=i860
/x-sysv4
4468 extra_parts
="crtbegin.o crtend.o"
4470 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4471 tm_file
="${tm_file} i960/vx960.h"
4472 tmake_file
=i960
/t-vxworks960
4474 thread_file
='vxworks'
4476 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4477 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4478 tmake_file
=i960
/t-vxworks960
4480 thread_file
='vxworks'
4483 tm_file
="${tm_file} i960/vx960.h"
4484 tmake_file
=i960
/t-vxworks960
4486 thread_file
='vxworks'
4489 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4490 tmake_file
=i960
/t-960bare
4494 tmake_file
="i960/t-960bare t-rtems"
4495 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4498 i960-
*-*) # Default i960 environment.
4502 extra_parts
="crtinit.o crtfini.o"
4504 m68000-convergent-sysv
*)
4506 xm_file
="m68k/xm-3b1.h ${xm_file}"
4509 extra_headers
=math-68881.h
4511 m68000-hp-bsd
*) # HP 9000/200 running BSD
4512 tm_file
=m68k
/hp2bsd.h
4513 xmake_file
=m68k
/x-hp2bsd
4515 extra_headers
=math-68881.h
4517 m68000-hp-hpux
*) # HP 9000 series 300
4518 xm_file
="xm-alloca.h ${xm_file}"
4520 if test x
$gas = xyes
4522 xmake_file
=m68k
/x-hp320g
4523 tm_file
=m68k
/hp310g.h
4525 xmake_file
=m68k
/x-hp320
4526 tm_file
=m68k
/hp310.h
4528 install_headers_dir
=install-headers-cpio
4530 extra_headers
=math-68881.h
4535 extra_headers
=math-68881.h
4538 tm_file
=m68k
/sun2o4.h
4540 extra_headers
=math-68881.h
4543 xm_file
="m68k/xm-3b1.h ${xm_file}"
4545 if test x
$gas = xyes
4552 extra_headers
=math-68881.h
4554 m68k-apple-aux
*) # Apple Macintosh running A/UX
4555 xm_defines
="USG AUX"
4556 tmake_file
=m68k
/t-aux
4557 install_headers_dir
=install-headers-cpio
4558 extra_headers
=math-68881.h
4559 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4561 if test "$gnu_ld" = yes
4563 tm_file
="${tm_file} m68k/auxgld.h"
4565 tm_file
="${tm_file} m68k/auxld.h"
4567 if test "$gas" = yes
4569 tm_file
="${tm_file} m68k/auxgas.h"
4571 tm_file
="${tm_file} m68k/auxas.h"
4573 tm_file
="${tm_file} m68k/a-ux.h"
4577 tm_file
=m68k
/apollo68.h
4578 xmake_file
=m68k
/x-apollo68
4580 extra_headers
=math-68881.h
4583 m68k-altos-sysv
*) # Altos 3068
4584 if test x
$gas = xyes
4586 tm_file
=m68k
/altos3068.h
4589 echo "The Altos is supported only with the GNU assembler" 1>&2
4592 extra_headers
=math-68881.h
4594 m68k-bull-sysv
*) # Bull DPX/2
4595 if test x
$gas = xyes
4597 if test x
$stabs = xyes
4599 tm_file
=m68k
/dpx2cdbx.h
4601 tm_file
=m68k
/dpx2g.h
4606 xm_file
="xm-alloca.h ${xm_file}"
4608 xmake_file
=m68k
/x-dpx2
4610 extra_headers
=math-68881.h
4612 m68k-atari-sysv4
*) # Atari variant of V.4.
4613 tm_file
=m68k
/atari.h
4614 xm_file
="xm-alloca.h ${xm_file}"
4615 xm_defines
="USG FULL_PROTOTYPES"
4617 extra_parts
="crtbegin.o crtend.o"
4618 extra_headers
=math-68881.h
4621 m68k-motorola-sysv
*)
4622 tm_file
=m68k
/mot3300.h
4623 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4624 if test x
$gas = xyes
4626 xmake_file
=m68k
/x-mot3300-gas
4627 if test x
$gnu_ld = xyes
4629 tmake_file
=m68k
/t-mot3300-gald
4631 tmake_file
=m68k
/t-mot3300-gas
4635 xmake_file
=m68k
/x-mot3300
4636 if test x
$gnu_ld = xyes
4638 tmake_file
=m68k
/t-mot3300-gld
4640 tmake_file
=m68k
/t-mot3300
4644 gdb_needs_out_file_path
=yes
4645 extra_parts
="crt0.o mcrt0.o"
4646 extra_headers
=math-68881.h
4649 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4650 tm_file
=m68k
/tower-as.h
4651 xm_defines
="USG SVR3"
4652 xmake_file
=m68k
/x-tower
4653 extra_parts
="crtbegin.o crtend.o"
4654 extra_headers
=math-68881.h
4657 tm_file
=m68k
/plexus.h
4658 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4661 extra_headers
=math-68881.h
4665 xm_file
="xm-alloca.h ${xm_file}"
4667 extra_headers
=math-68881.h
4670 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4671 xm_defines
="USG unos"
4672 xmake_file
=m68k
/x-crds
4675 extra_headers
=math-68881.h
4677 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4679 xm_file
="xm-alloca.h ${xm_file}"
4680 xm_defines
="USG FULL_PROTOTYPES"
4681 xmake_file
=m68k
/x-amix
4683 extra_parts
="crtbegin.o crtend.o"
4684 extra_headers
=math-68881.h
4688 tm_file
=m68k
/ccur-GAS.h
4689 xmake_file
=m68k
/x-ccur
4690 extra_headers
=math-68881.h
4694 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4695 tm_file
=m68k
/hp3bsd44.h
4696 xmake_file
=m68k
/x-hp3bsd44
4698 extra_headers
=math-68881.h
4701 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4702 tm_file
=m68k
/hp3bsd.h
4704 extra_headers
=math-68881.h
4708 if test x
$with_fp = xno
4710 tm_file
=m68k
/isi-nfp.h
4716 extra_headers
=math-68881.h
4718 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4719 xm_file
="xm-alloca.h ${xm_file}"
4721 if test x
$gas = xyes
4723 xmake_file
=m68k
/x-hp320g
4724 tm_file
=m68k
/hp320g.h
4726 xmake_file
=m68k
/x-hp320
4727 tm_file
=m68k
/hpux7.h
4729 install_headers_dir
=install-headers-cpio
4731 extra_headers
=math-68881.h
4734 m68k-hp-hpux
*) # HP 9000 series 300
4735 xm_file
="xm-alloca.h ${xm_file}"
4737 if test x
$gas = xyes
4739 xmake_file
=m68k
/x-hp320g
4740 tm_file
=m68k
/hp320g.h
4742 xmake_file
=m68k
/x-hp320
4743 tm_file
=m68k
/hp320.h
4745 install_headers_dir
=install-headers-cpio
4747 extra_headers
=math-68881.h
4751 tm_file
=m68k
/sun3mach.h
4753 extra_headers
=math-68881.h
4757 if test x
$gas = xyes
4759 tm_file
=m68k
/news3gas.h
4761 tm_file
=m68k
/news3.h
4764 extra_headers
=math-68881.h
4767 m68k-sony-bsd
* | m68k-sony-newsos
*)
4768 if test x
$gas = xyes
4770 tm_file
=m68k
/newsgas.h
4775 extra_headers
=math-68881.h
4778 m68k-next-nextstep2
*)
4779 tm_file
=m68k
/next21.h
4780 xm_file
="m68k/xm-next.h ${xm_file}"
4781 tmake_file
=m68k
/t-next
4782 xmake_file
=m68k
/x-next
4783 extra_objs
=nextstep.o
4784 extra_headers
=math-68881.h
4788 m68k-next-nextstep
[34]*)
4790 xm_file
="m68k/xm-next.h ${xm_file}"
4791 tmake_file
=m68k
/t-next
4792 xmake_file
=m68k
/x-next
4793 extra_objs
=nextstep.o
4794 extra_parts
="crtbegin.o crtend.o"
4795 extra_headers
=math-68881.h
4797 if test x
$enable_threads = xyes
; then
4802 if test x
$with_fp = xno
4804 tm_file
=m68k
/sun3n3.h
4806 tm_file
=m68k
/sun3o3.h
4810 extra_headers
=math-68881.h
4812 m68k-sun-sunos
*) # For SunOS 4 (the default).
4813 if test x
$with_fp = xno
4815 tm_file
=m68k
/sun3n.h
4821 extra_headers
=math-68881.h
4824 tm_file
=m68k
/vxm68k.h
4825 tmake_file
=m68k
/t-vxworks68
4826 extra_headers
=math-68881.h
4827 thread_file
='vxworks'
4831 tmake_file
=m68k
/t-m68kbare
4832 tm_file
="m68k/m68k-aout.h libgloss.h"
4833 extra_headers
=math-68881.h
4837 tmake_file
=m68k
/t-m68kbare
4838 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4839 extra_headers
=math-68881.h
4842 m68020-
*-elf* | m68k-
*-elf*)
4843 tm_file
="m68k/m68020-elf.h"
4844 xm_file
=m68k
/xm-m68kv.h
4845 tmake_file
=m68k
/t-m68kelf
4846 header_files
=math-68881.h
4849 if test x
$gas = xyes
4853 tm_file
=m68k
/lynx-ng.h
4855 xm_file
=m68k
/xm-lynx.h
4857 tmake_file
=m68k
/t-lynx
4858 extra_headers
=math-68881.h
4862 tm_file
=m68k
/netbsd.h
4869 # we need collect2 until our bug is fixed...
4872 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4873 xm_file
="xm-alloca.h ${xm_file}"
4875 xmake_file
=m68k
/x-m68kv
4876 extra_parts
="crtbegin.o crtend.o"
4877 extra_headers
=math-68881.h
4880 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4881 tm_file
=m68k
/m68kv4.h
4882 xm_file
="xm-alloca.h ${xm_file}"
4885 extra_parts
="crtbegin.o crtend.o"
4886 extra_headers
=math-68881.h
4889 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4892 tm_file
=m68k
/linux-aout.h
4893 tmake_file
="t-linux-aout m68k/t-linux-aout"
4894 extra_headers
=math-68881.h
4898 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4899 # with ELF format using the
4900 # GNU/Linux C library 5
4902 tm_file
=m68k
/linux.h
4903 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4904 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4905 extra_headers
=math-68881.h
4909 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4910 # with ELF format using glibc 2
4911 # aka the GNU/Linux C library 6.
4913 tm_file
=m68k
/linux.h
4914 tmake_file
="t-linux m68k/t-linux"
4915 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4916 extra_headers
=math-68881.h
4919 if test x
$enable_threads = xyes
; then
4924 tmake_file
=m68k
/t-m68kbare
4925 tm_file
=m68k
/m68k-psos.h
4926 extra_headers
=math-68881.h
4930 tmake_file
="m68k/t-m68kbare t-rtems"
4931 tm_file
=m68k
/rtems.h
4932 extra_headers
=math-68881.h
4935 m68k-
*-rtemself*|m68k-
*-rtems*)
4936 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4937 tm_file
=m68k
/rtemself.h
4938 extra_headers
=math-68881.h
4944 tm_file
=m88k
/dguxbcs.h
4945 tmake_file
=m88k
/t-dguxbcs
4949 tmake_file
=m88k
/t-dgux
4952 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4953 xmake_file
=m88k
/x-dgux
4954 if test x
$gas = xyes
4956 tmake_file
=m88k
/t-dgux-gas
4959 m88k-dolphin-sysv3
*)
4960 tm_file
=m88k
/dolph.h
4961 extra_parts
="crtbegin.o crtend.o"
4962 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4963 xmake_file
=m88k
/x-dolph
4964 if test x
$gas = xyes
4966 tmake_file
=m88k
/t-m88k-gas
4969 m88k-tektronix-sysv3
)
4970 tm_file
=m88k
/tekXD88.h
4971 extra_parts
="crtbegin.o crtend.o"
4972 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4973 xmake_file
=m88k
/x-tekXD88
4974 if test x
$gas = xyes
4976 tmake_file
=m88k
/t-m88k-gas
4980 tm_file
=m88k
/m88k-aout.h
4983 tm_file
=m88k
/m88k-coff.h
4984 tmake_file
=m88k
/t-bug
4988 extra_parts
="crtbegin.o crtend.o"
4989 if test x
$gas = xyes
4991 tmake_file
=m88k
/t-luna-gas
4993 tmake_file
=m88k
/t-luna
4997 tmake_file
="${tmake_file} m88k/t-luna-gas"
5000 tm_file
=m88k
/sysv3.h
5001 extra_parts
="crtbegin.o crtend.o"
5002 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5003 xmake_file
=m88k
/x-sysv3
5004 if test x
$gas = xyes
5006 tmake_file
=m88k
/t-m88k-gas
5010 tm_file
=m88k
/sysv4.h
5011 extra_parts
="crtbegin.o crtend.o"
5012 xmake_file
=m88k
/x-sysv4
5013 tmake_file
=m88k
/t-sysv4
5015 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5016 if test "x$gnu_ld" = xyes
5018 tm_file
="mips/iris6.h mips/iris6gld.h"
5020 tm_file
=mips
/iris6.h
5022 tmake_file
=mips
/t-iris6
5023 xm_file
=mips
/xm-iris6.h
5024 xmake_file
=mips
/x-iris6
5025 # if test x$enable_threads = xyes; then
5026 # thread_file='irix'
5030 tm_file
="mips/elf.h mips/vxworks.h"
5031 tmake_file
=mips
/t-ecoff
5034 extra_parts
="crtbegin.o crtend.o"
5035 thread_file
='vxworks'
5037 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5038 tm_file
="mips/iris6.h mips/cross64.h"
5040 xm_file
="mips/xm-iris5.h"
5041 xmake_file
=mips
/x-iris
5042 tmake_file
=mips
/t-cross64
5043 # See comment in mips/iris[56].h files.
5045 # if test x$enable_threads = xyes; then
5046 # thread_file='irix'
5050 if test x
$gas = xyes
5052 if test x
$stabs = xyes
5054 tm_file
=mips
/iris5gdb.h
5056 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5059 tm_file
=mips
/sni-svr4.h
5062 xmake_file
=mips
/x-sni-svr4
5063 tmake_file
=mips
/t-mips-gas
5064 if test x
$gnu_ld != xyes
5069 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5070 if test x
$gas = xyes
5072 tm_file
="mips/iris5.h mips/iris5gas.h"
5073 if test x
$stabs = xyes
5075 tm_file
="${tm_file} dbx.h"
5078 tm_file
=mips
/iris5.h
5081 xm_file
="mips/xm-iris5.h"
5082 xmake_file
=mips
/x-iris
5083 # mips-tfile doesn't work yet
5084 tmake_file
=mips
/t-mips-gas
5085 # See comment in mips/iris5.h file.
5087 # if test x$enable_threads = xyes; then
5088 # thread_file='irix'
5091 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5092 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5093 if test x
$stabs = xyes
; then
5094 tm_file
="${tm_file} dbx.h"
5097 xmake_file
=mips
/x-iris
5098 if test x
$gas = xyes
5100 tmake_file
=mips
/t-mips-gas
5102 extra_passes
="mips-tfile mips-tdump"
5104 if test x
$gnu_ld != xyes
5108 # if test x$enable_threads = xyes; then
5109 # thread_file='irix'
5112 mips-sgi-irix4
*) # Mostly like a MIPS.
5113 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5114 if test x
$stabs = xyes
; then
5115 tm_file
="${tm_file} dbx.h"
5118 xmake_file
=mips
/x-iris
5119 if test x
$gas = xyes
5121 tmake_file
=mips
/t-mips-gas
5123 extra_passes
="mips-tfile mips-tdump"
5125 if test x
$gnu_ld != xyes
5129 # if test x$enable_threads = xyes; then
5130 # thread_file='irix'
5133 mips-sgi-
*) # Mostly like a MIPS.
5134 tm_file
="mips/iris3.h ${tm_file}"
5135 if test x
$stabs = xyes
; then
5136 tm_file
="${tm_file} dbx.h"
5139 xmake_file
=mips
/x-iris3
5140 if test x
$gas = xyes
5142 tmake_file
=mips
/t-mips-gas
5144 extra_passes
="mips-tfile mips-tdump"
5146 if test x
$gnu_ld != xyes
5151 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5152 tm_file
="mips/osfrose.h ${tm_file}"
5153 xmake_file
=mips
/x-osfrose
5154 tmake_file
=mips
/t-osfrose
5155 extra_objs
=halfpic.o
5158 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5159 tm_file
=mips
/dec-osf1.h
5160 if test x
$stabs = xyes
; then
5161 tm_file
="${tm_file} dbx.h"
5163 xmake_file
=mips
/x-dec-osf1
5164 if test x
$gas = xyes
5166 tmake_file
=mips
/t-mips-gas
5168 tmake_file
=mips
/t-ultrix
5169 extra_passes
="mips-tfile mips-tdump"
5171 if test x
$gnu_ld != xyes
5176 mips-dec-bsd
*) # Decstation running 4.4 BSD
5177 tm_file
=mips
/dec-bsd.h
5178 if test x
$gas = xyes
5180 tmake_file
=mips
/t-mips-gas
5182 tmake_file
=mips
/t-ultrix
5183 extra_passes
="mips-tfile mips-tdump"
5185 if test x
$gnu_ld != xyes
5190 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5191 tm_file
=mips
/netbsd.h
5192 # On NetBSD, the headers are already okay, except for math.h.
5195 mips
*-*-linux*) # Linux MIPS, either endian.
5198 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5199 *) tm_file
="mips/elf.h mips/linux.h" ;;
5201 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5204 if test x
$enable_threads = xyes
; then
5208 mips
*el-
*-openbsd*) # mips little endian
5209 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5211 mips
*-*-openbsd*) # mips big endian
5212 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5213 tm_file
="mips/openbsd-be.h ${tm_file}"
5215 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5216 tm_file
="mips/news4.h ${tm_file}"
5217 if test x
$stabs = xyes
; then
5218 tm_file
="${tm_file} dbx.h"
5220 if test x
$gas = xyes
5222 tmake_file
=mips
/t-mips-gas
5224 extra_passes
="mips-tfile mips-tdump"
5226 if test x
$gnu_ld != xyes
5230 xmake_file
=mips
/x-sony
5232 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5233 # That is based on svr4.
5234 # t-svr4 is not right because this system doesn't use ELF.
5235 tm_file
="mips/news5.h ${tm_file}"
5236 if test x
$stabs = xyes
; then
5237 tm_file
="${tm_file} dbx.h"
5240 if test x
$gas = xyes
5242 tmake_file
=mips
/t-mips-gas
5244 extra_passes
="mips-tfile mips-tdump"
5246 if test x
$gnu_ld != xyes
5251 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5252 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5253 if test x
$stabs = xyes
; then
5254 tm_file
="${tm_file} dbx.h"
5257 xmake_file
=mips
/x-sysv
5258 if test x
$gas = xyes
5260 tmake_file
=mips
/t-mips-gas
5261 extra_parts
="crtbegin.o crtend.o"
5263 tmake_file
=mips
/t-mips
5264 extra_passes
="mips-tfile mips-tdump"
5266 if test x
$gnu_ld != xyes
5271 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5272 tm_file
="mips/ultrix.h ${tm_file}"
5273 if test x
$stabs = xyes
; then
5274 tm_file
="${tm_file} dbx.h"
5276 xmake_file
=mips
/x-ultrix
5277 if test x
$gas = xyes
5279 tmake_file
=mips
/t-mips-gas
5281 tmake_file
=mips
/t-ultrix
5282 extra_passes
="mips-tfile mips-tdump"
5284 if test x
$gnu_ld != xyes
5289 mips-
*-riscos[56789]bsd
*)
5290 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5291 if test x
$stabs = xyes
; then
5292 tm_file
="${tm_file} dbx.h"
5294 if test x
$gas = xyes
5296 tmake_file
=mips
/t-bsd-gas
5298 tmake_file
=mips
/t-bsd
5299 extra_passes
="mips-tfile mips-tdump"
5301 if test x
$gnu_ld != xyes
5306 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5307 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5308 if test x
$stabs = xyes
; then
5309 tm_file
="${tm_file} dbx.h"
5311 if test x
$gas = xyes
5313 tmake_file
=mips
/t-bsd-gas
5315 tmake_file
=mips
/t-bsd
5316 extra_passes
="mips-tfile mips-tdump"
5318 if test x
$gnu_ld != xyes
5323 mips-
*-riscos[56789]sysv4
*)
5324 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5325 if test x
$stabs = xyes
; then
5326 tm_file
="${tm_file} dbx.h"
5328 xmake_file
=mips
/x-sysv
5329 if test x
$gas = xyes
5331 tmake_file
=mips
/t-svr4-gas
5333 tmake_file
=mips
/t-svr4
5334 extra_passes
="mips-tfile mips-tdump"
5336 if test x
$gnu_ld != xyes
5341 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5342 tm_file
="mips/svr4-4.h ${tm_file}"
5343 if test x
$stabs = xyes
; then
5344 tm_file
="${tm_file} dbx.h"
5347 xmake_file
=mips
/x-sysv
5348 if test x
$gas = xyes
5350 tmake_file
=mips
/t-svr4-gas
5352 tmake_file
=mips
/t-svr4
5353 extra_passes
="mips-tfile mips-tdump"
5355 if test x
$gnu_ld != xyes
5360 mips-
*-riscos[56789]sysv
*)
5361 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5362 if test x
$stabs = xyes
; then
5363 tm_file
="${tm_file} dbx.h"
5366 xmake_file
=mips
/x-sysv
5367 if test x
$gas = xyes
5369 tmake_file
=mips
/t-svr3-gas
5371 tmake_file
=mips
/t-svr3
5372 extra_passes
="mips-tfile mips-tdump"
5374 if test x
$gnu_ld != xyes
5379 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5380 tm_file
="mips/svr3-4.h ${tm_file}"
5381 if test x
$stabs = xyes
; then
5382 tm_file
="${tm_file} dbx.h"
5385 xmake_file
=mips
/x-sysv
5386 if test x
$gas = xyes
5388 tmake_file
=mips
/t-svr3-gas
5390 tmake_file
=mips
/t-svr3
5391 extra_passes
="mips-tfile mips-tdump"
5393 if test x
$gnu_ld != xyes
5398 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5399 tm_file
=mips
/mips-5.h
5400 if test x
$stabs = xyes
; then
5401 tm_file
="${tm_file} dbx.h"
5403 if test x
$gas = xyes
5405 tmake_file
=mips
/t-mips-gas
5407 extra_passes
="mips-tfile mips-tdump"
5409 if test x
$gnu_ld != xyes
5417 tm_file
=mips
/ecoffl.h
5418 if test x
$stabs = xyes
; then
5419 tm_file
="${tm_file} dbx.h"
5421 tmake_file
=mips
/t-ecoff
5424 tm_file
="gofast.h mips/ecoff.h"
5425 if test x
$stabs = xyes
; then
5426 tm_file
="${tm_file} dbx.h"
5428 tmake_file
=mips
/t-ecoff
5431 tm_file
="mips/elfl.h"
5432 tmake_file
=mips
/t-elf
5435 tm_file
="mips/elf.h"
5436 tmake_file
=mips
/t-elf
5439 tm_file
="mips/elfl64.h"
5440 tmake_file
=mips
/t-elf
5442 mips64orionel-
*-elf*)
5443 tm_file
="mips/elforion.h mips/elfl64.h"
5444 tmake_file
=mips
/t-elf
5447 tm_file
="mips/elf64.h"
5448 tmake_file
=mips
/t-elf
5451 tm_file
="mips/elforion.h mips/elf64.h"
5452 tmake_file
=mips
/t-elf
5454 mips64orion-
*-rtems*)
5455 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5456 tmake_file
="mips/t-elf t-rtems"
5459 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5460 tmake_file
=mips
/t-r3900
5463 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5464 tmake_file
=mips
/t-r3900
5466 mips-
*-*) # Default MIPS RISC-OS 4.0.
5467 if test x
$stabs = xyes
; then
5468 tm_file
="${tm_file} dbx.h"
5470 if test x
$gas = xyes
5472 tmake_file
=mips
/t-mips-gas
5474 extra_passes
="mips-tfile mips-tdump"
5476 if test x
$gnu_ld != xyes
5484 tm_file
="mn10200/mn10200.h"
5485 if test x
$stabs = xyes
5487 tm_file
="${tm_file} dbx.h"
5493 tm_file
="mn10300/mn10300.h"
5494 if test x
$stabs = xyes
5496 tm_file
="${tm_file} dbx.h"
5501 tm_file
=ns32k
/encore.h
5505 tm_file
=ns32k
/sequent.h
5509 tm_file
=ns32k
/tek6100.h
5513 tm_file
=ns32k
/tek6200.h
5516 # This has not been updated to GCC 2.
5519 # xmake_file=ns32k/x-genix
5520 # tm_file=ns32k/genix.h
5524 tm_file
=ns32k
/merlin.h
5528 tm_file
=ns32k
/pc532-mach.h
5532 tm_file
=ns32k
/pc532-min.h
5533 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5538 tm_file
=ns32k
/netbsd.h
5539 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5540 # On NetBSD, the headers are already okay, except for math.h.
5545 tm_file
="${tm_file} pdp11/2bsd.h"
5552 # This has not been updated to GCC 2.
5555 # xmake_file=pyr/x-pyr
5560 tm_file
="svr4.h pj/linux.h ${tm_file}"
5565 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5572 xmake_file
=romp
/x-mach
5579 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5583 tm_file
=rs6000
/beos.h
5584 xm_file
=rs6000
/xm-beos.h
5585 tmake_file
=rs6000
/t-beos
5586 xmake_file
=rs6000
/x-beos
5588 powerpc-
*-sysv* | powerpc-
*-elf*)
5589 tm_file
=rs6000
/sysv4.h
5590 xm_file
="rs6000/xm-sysv4.h"
5591 xm_defines
="USG POSIX"
5592 extra_headers
=ppc-asm.h
5593 if test x
$gas = xyes
5595 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5597 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5599 xmake_file
=rs6000
/x-sysv4
5602 tm_file
=rs6000
/eabiaix.h
5603 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5604 extra_headers
=ppc-asm.h
5607 tm_file
=rs6000
/eabisim.h
5608 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5609 extra_headers
=ppc-asm.h
5612 tm_file
=rs6000
/eabi.h
5613 if test x
$gas = xyes
5615 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5617 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5619 extra_headers
=ppc-asm.h
5622 tm_file
=rs6000
/rtems.h
5623 if test x
$gas = xyes
5625 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5627 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5629 extra_headers
=ppc-asm.h
5631 powerpc-
*-linux-gnulibc1)
5632 tm_file
=rs6000
/linux.h
5633 xm_file
=rs6000
/xm-sysv4.h
5634 out_file
=rs6000
/rs6000.c
5635 if test x
$gas = xyes
5637 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5639 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5642 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5643 extra_headers
=ppc-asm.h
5644 if test x
$enable_threads = xyes
; then
5648 powerpc-
*-linux-gnu*)
5649 tm_file
=rs6000
/linux.h
5650 xm_file
="rs6000/xm-sysv4.h"
5651 xm_defines
="USG ${xm_defines}"
5652 out_file
=rs6000
/rs6000.c
5653 if test x
$gas = xyes
5655 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5657 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5660 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5661 extra_headers
=ppc-asm.h
5662 if test x
$enable_threads = xyes
; then
5666 powerpc-wrs-vxworks
*)
5668 xm_file
="rs6000/xm-sysv4.h"
5669 xm_defines
="USG POSIX"
5670 tm_file
=rs6000
/vxppc.h
5671 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5672 extra_headers
=ppc-asm.h
5673 thread_file
='vxworks'
5675 powerpcle-
*-sysv* | powerpcle-
*-elf*)
5676 tm_file
=rs6000
/sysv4le.h
5677 xm_file
="rs6000/xm-sysv4.h"
5678 xm_defines
="USG POSIX"
5679 if test x
$gas = xyes
5681 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5683 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5685 xmake_file
=rs6000
/x-sysv4
5686 extra_headers
=ppc-asm.h
5688 powerpcle-
*-eabisim*)
5689 tm_file
=rs6000
/eabilesim.h
5690 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5691 extra_headers
=ppc-asm.h
5694 tm_file
=rs6000
/eabile.h
5695 if test x
$gas = xyes
5697 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5699 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5701 extra_headers
=ppc-asm.h
5703 powerpcle-
*-winnt* )
5704 tm_file
=rs6000
/win-nt.h
5705 tmake_file
=rs6000
/t-winnt
5707 if test x
$enable_threads = xyes
; then
5710 extra_headers
=ppc-asm.h
5712 powerpcle-
*-pe | powerpcle-
*-cygwin*)
5713 tm_file
=rs6000
/cygwin.h
5714 xm_file
="rs6000/xm-cygwin.h ${xm_file}"
5715 tmake_file
=rs6000
/t-winnt
5716 xmake_file
=rs6000
/x-cygwin
5718 if test x
$enable_threads = xyes
; then
5722 extra_headers
=ppc-asm.h
5724 powerpcle-
*-solaris2*)
5725 tm_file
=rs6000
/sol2.h
5726 xm_file
="rs6000/xm-sysv4.h"
5727 xm_defines
="USG POSIX"
5728 if test x
$gas = xyes
5730 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5732 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5734 xmake_file
=rs6000
/x-sysv4
5735 extra_headers
=ppc-asm.h
5737 rs6000-ibm-aix3.
[01]*)
5738 tm_file
=rs6000
/aix31.h
5739 xmake_file
=rs6000
/x-aix31
5743 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5744 tm_file
=rs6000
/aix3newas.h
5745 if test x
$host != x
$target
5747 tmake_file
=rs6000
/t-xnewas
5749 tmake_file
=rs6000
/t-newas
5754 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5755 tm_file
=rs6000
/aix41.h
5756 if test x
$host != x
$target
5758 tmake_file
=rs6000
/t-xnewas
5760 tmake_file
=rs6000
/t-newas
5762 if test "$gnu_ld" = yes
5764 xmake_file
=rs6000
/x-aix41-gld
5766 xmake_file
=rs6000
/x-aix41
5771 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5772 tm_file
=rs6000
/aix43.h
5773 if test x
$host != x
$target
5775 tmake_file
=rs6000
/t-xaix43
5777 tmake_file
=rs6000
/t-aix43
5779 xmake_file
=rs6000
/x-aix43
5783 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5784 tm_file
=rs6000
/aix43.h
5785 if test x
$host != x
$target
5787 tmake_file
=rs6000
/t-xaix43
5789 tmake_file
=rs6000
/t-aix43
5791 xmake_file
=rs6000
/x-aix43
5804 tm_file
=rs6000
/mach.h
5805 xm_file
="${xm_file} rs6000/xm-mach.h"
5806 xmake_file
=rs6000
/x-mach
5810 tm_file
=rs6000
/lynx.h
5811 xm_file
=rs6000
/xm-lynx.h
5812 tmake_file
=rs6000
/t-rs6000
5813 xmake_file
=rs6000
/x-lynx
5821 tmake_file
="sh/t-sh t-rtems"
5822 tm_file
=sh
/rtemself.h
5826 tmake_file
="sh/t-sh t-rtems"
5835 xm_file
="xm-alloca.h ${xm_file}"
5838 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5839 tm_file
=sparc
/vxsparc.h
5840 tmake_file
=sparc
/t-vxsparc
5842 thread_file
='vxworks'
5845 tmake_file
=sparc
/t-sparcbare
5846 tm_file
="sparc/aout.h libgloss.h"
5849 tm_file
=sparc
/netbsd.h
5854 # we need collect2 until our bug is fixed...
5862 tmake_file
=sparc
/t-elf
5863 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5867 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5868 xm_file
="${xm_file} sparc/xm-linux.h"
5869 tm_file
=sparc
/linux-aout.h
5873 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5874 xm_file
="${xm_file} sparc/xm-linux.h"
5876 tm_file
=sparc
/linux.h
5877 tmake_file
="t-linux t-linux-gnulibc1"
5878 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5882 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5883 xm_file
="${xm_file} sparc/xm-linux.h"
5885 tm_file
=sparc
/linux.h
5886 tmake_file
="t-linux"
5887 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5889 if test x
$enable_threads = xyes
; then
5895 if test x
$gas = xyes
5897 tm_file
=sparc
/lynx.h
5899 tm_file
=sparc
/lynx-ng.h
5901 xm_file
=sparc
/xm-lynx.h
5902 tmake_file
=sparc
/t-sunos41
5906 tmake_file
="sparc/t-sparcbare t-rtems"
5907 tm_file
=sparc
/rtems.h
5909 sparc-
*-rtems*|sparc-
*-rtemself*)
5910 tm_file
="sparc/rtemself.h"
5911 tmake_file
="sparc/t-elf t-rtems"
5912 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5916 sparcv9-
*-solaris2*)
5917 if test x
$gnu_ld = xyes
5919 tm_file
=sparc
/sol2-64.h
5921 tm_file
=sparc
/sol2-sld-64.h
5923 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5924 xm_defines
="USG POSIX"
5925 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5926 xmake_file
=sparc
/x-sysv4
5927 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5929 if test x
${enable_threads} = x
; then
5930 enable_threads
=$have_pthread_h
5931 if test x
${enable_threads} = x
; then
5932 enable_threads
=$have_thread_h
5935 if test x
${enable_threads} = xyes
; then
5936 if test x
${have_pthread_h} = xyes
; then
5939 thread_file
='solaris'
5943 sparc-hal-solaris2
*)
5944 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5945 xm_defines
="USG POSIX"
5946 tm_file
="sparc/sol2.h sparc/hal.h"
5947 tmake_file
="sparc/t-halos sparc/t-sol2"
5948 xmake_file
=sparc
/x-sysv4
5949 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5958 thread_file
='solaris'
5961 if test x
$gnu_ld = xyes
5963 tm_file
=sparc
/sol2.h
5965 tm_file
=sparc
/sol2-sld.h
5967 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5968 xm_defines
="USG POSIX"
5969 tmake_file
=sparc
/t-sol2
5970 xmake_file
=sparc
/x-sysv4
5971 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5973 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
5975 if test x
$gnu_ld = xyes
5977 tm_file
=sparc
/sol2-64.h
5979 tm_file
=sparc
/sol2-sld-64.h
5981 tmake_file
="$tmake_file sparc/t-sol2-64"
5992 if test x
${enable_threads} = x
; then
5993 enable_threads
=$have_pthread_h
5994 if test x
${enable_threads} = x
; then
5995 enable_threads
=$have_thread_h
5998 if test x
${enable_threads} = xyes
; then
5999 if test x
${have_pthread_h} = xyes
; then
6002 thread_file
='solaris'
6007 tm_file
=sparc
/sunos4.h
6008 tmake_file
=sparc
/t-sunos40
6012 tm_file
=sparc
/sunos4.h
6013 tmake_file
=sparc
/t-sunos41
6015 if test x
$gas = xyes
; then
6016 tm_file
="${tm_file} sparc/sun4gas.h"
6020 tm_file
=sparc
/sun4o3.h
6024 tm_file
=sparc
/sysv4.h
6025 xm_file
="sparc/xm-sysv4.h"
6026 xm_defines
="USG POSIX"
6028 xmake_file
=sparc
/x-sysv4
6029 extra_parts
="crtbegin.o crtend.o"
6032 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6033 xm_defines
="USG POSIX"
6034 tm_file
=sparc
/vxsim.h
6035 tmake_file
=sparc
/t-vxsparc
6036 xmake_file
=sparc
/x-sysv4
6039 tm_file
="sparc/splet.h libgloss.h"
6040 tmake_file
=sparc
/t-splet
6043 tm_file
="sparc/litecoff.h libgloss.h"
6044 tmake_file
=sparc
/t-sparclite
6047 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6048 tmake_file
=sparc
/t-sparclite
6051 tm_file
="sparc/liteelf.h"
6052 tmake_file
=sparc
/t-sparclite
6053 extra_parts
="crtbegin.o crtend.o"
6056 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6057 tmake_file
=sparc
/t-sp86x
6060 tm_file
="sparc/sp86x-elf.h"
6061 tmake_file
=sparc
/t-sp86x
6062 extra_parts
="crtbegin.o crtend.o"
6065 tmake_file
=sparc
/t-sp64
6066 tm_file
=sparc
/sp64-aout.h
6069 tmake_file
=sparc
/t-sp64
6070 tm_file
=sparc
/sp64-elf.h
6071 extra_parts
="crtbegin.o crtend.o"
6073 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6074 tmake_file
="t-linux sparc/t-linux64"
6075 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6076 tm_file
=sparc
/linux64.h
6078 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6080 if test x
$enable_threads = xyes
; then
6085 # This hasn't been upgraded to GCC 2.
6086 # tahoe-harris-*) # Harris tahoe, using COFF.
6087 # tm_file=tahoe/harris.h
6089 # tahoe-*-bsd*) # tahoe running BSD
6091 thumb-
*-coff* | thumbel-
*-coff*)
6093 out_file
=arm
/thumb.c
6094 xm_file
=arm
/xm-thumb.h
6095 md_file
=arm
/thumb.md
6096 tmake_file
=arm
/t-thumb
6098 thumb-
*-elf* | thumbel-
*-elf*)
6100 out_file
=arm
/thumb.c
6101 xm_file
=arm
/xm-thumb.h
6102 md_file
=arm
/thumb.md
6103 tmake_file
=arm
/t-thumb-elf
6106 tm_file
=arm
/linux-telf.h
6107 out_file
=arm
/thumb.c
6108 xm_file
=arm
/xm-thumb.h
6109 md_file
=arm
/thumb.md
6110 tmake_file
=arm
/t-thumb-linux
6113 tm_file
=arm
/uclinux-telf.h
6114 out_file
=arm
/thumb.c
6115 md_file
=arm
/thumb.md
6116 tmake_file
=arm
/t-thumb-linux
6117 xm_file
=arm
/xm-thumb.h
6121 out_file
=arm
/thumb.c
6122 xm_file
=arm
/xm-thumb.h
6123 md_file
=arm
/thumb.md
6124 tmake_file
=arm
/t-thumb
6125 thread_file
='vxworks'
6129 out_file
=arm
/thumb.c
6130 xm_file
=arm
/xm-thumb.h
6131 md_file
=arm
/thumb.md
6132 tmake_file
=arm
/t-pe-thumb
6135 # This hasn't been upgraded to GCC 2.
6142 tm_file
="v850/rtems.h"
6143 xm_file
="v850/xm-v850.h"
6144 tmake_file
="v850/t-v850 t-rtems"
6145 if test x
$stabs = xyes
6147 tm_file
="${tm_file} dbx.h"
6152 target_cpu_default
="TARGET_CPU_generic"
6154 tm_file
="v850/v850.h"
6155 xm_file
="v850/xm-v850.h"
6156 tmake_file
=v850
/t-v850
6157 if test x
$stabs = xyes
6159 tm_file
="${tm_file} dbx.h"
6163 vax-
*-bsd*) # vaxen running BSD
6167 vax-
*-sysv*) # vaxen running system V
6168 tm_file
="${tm_file} vax/vaxv.h"
6173 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6179 tmake_file
="${tmake_file} vax/t-openbsd"
6181 vax-
*-ultrix*) # vaxen running ultrix
6182 tm_file
="${tm_file} vax/ultrix.h"
6186 vax-
*-vms*) # vaxen running VMS
6187 xm_file
=vax
/xm-vms.h
6191 vax-
*-*) # vax default entry
6195 xm_file
="${xm_file} xm-svr3"
6199 echo "Configuration $machine not supported" 1>&2
6206 ;; # Existing GNU/Linux systems do not use the GNU setup.
6208 # On the GNU system, the setup is just about the same on
6209 # each different CPU. The specific machines that GNU
6210 # supports are matched above and just set $cpu_type.
6211 xm_file
="xm-gnu.h ${xm_file}"
6212 tm_file
=${cpu_type}/gnu.h
6213 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6214 # GNU always uses ELF.
6216 # GNU tools are the only tools.
6219 xmake_file
=x-linux
# These details are the same as Linux.
6220 tmake_file
=t-gnu
# These are not.
6223 xmake_try_sysv
=x-sysv
6224 install_headers_dir
=install-headers-cpio
6227 install_headers_dir
=install-headers-cpio
6231 # Distinguish i[34567]86
6232 # Also, do not run mips-tfile on MIPS if using gas.
6233 # Process --with-cpu= for PowerPC/rs6000
6234 target_cpu_default2
=
6237 target_cpu_default2
=1
6240 case $target_alias in
6242 target_cpu_default2
=4
6245 target_cpu_default2
=2
6249 i686-
*-* | i786-
*-*)
6250 target_cpu_default2
=3
6255 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6258 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6261 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6264 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6267 target_cpu_default2
="MASK_CPU_EV5"
6271 if test x
$gas = xyes
6273 if test "$target_cpu_default2" = ""
6275 target_cpu_default2
="MASK_GAS"
6277 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6282 case "x$with_cpu" in
6285 target_cpu_default2
="TARGET_CPU_generic"
6288 # Distinguish cores, and major variants
6289 # arm7m doesn't exist, but D & I don't affect code
6290 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6291 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6292 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6293 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6294 target_cpu_default2
="TARGET_CPU_$with_cpu"
6298 echo "--with-cpu must be passed a value" 1>&2
6303 if test x
$pass2done = xyes
6305 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6312 mips
*-*-ecoff* | mips
*-*-elf*)
6313 if test x
$gas = xyes
6315 if test x
$gnu_ld = xyes
6317 target_cpu_default2
=20
6319 target_cpu_default2
=16
6324 if test x
$gas = xyes
6326 target_cpu_default2
=16
6329 powerpc
*-*-* | rs6000-
*-*)
6330 case "x$with_cpu" in
6334 xcommon | xpower | xpower2 | xpowerpc | xrios \
6335 | xrios1 | xrios2 | xrsc | xrsc1 \
6336 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6337 | xec603e | x740 | x750 | x401 \
6338 | x403 | x505 | x801 | x821 | x823 | x860
)
6339 target_cpu_default2
="\"$with_cpu\""
6343 echo "--with-cpu must be passed a value" 1>&2
6348 if test x
$pass2done = xyes
6350 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6357 case ".$with_cpu" in
6359 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6361 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6362 target_cpu_default2
="TARGET_CPU_$with_cpu"
6365 if test x
$pass2done = xyes
6367 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6375 if test "$target_cpu_default2" != ""
6377 if test "$target_cpu_default" != ""
6379 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6381 target_cpu_default
=$target_cpu_default2
6385 # No need for collect2 if we have the GNU linker.
6386 # Actually, there is now; GNU ld doesn't handle the EH info or
6387 # collecting for shared libraries.
6394 # Save data on machine being used to compile GCC in build_xm_file.
6395 # Save data on host machine in vars host_xm_file and host_xmake_file.
6396 if test x
$pass1done = x
6398 if test x
"$xm_file" = x
6399 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6400 else build_xm_file
=$xm_file
6402 build_xm_defines
=$xm_defines
6403 build_install_headers_dir
=$install_headers_dir
6404 build_exeext
=$exeext
6407 if test x
$pass2done = x
6409 if test x
"$xm_file" = x
6410 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6411 else host_xm_file
=$xm_file
6413 host_xm_defines
=$xm_defines
6414 if test x
"$xmake_file" = x
6415 then xmake_file
=$cpu_type/x-
$cpu_type
6417 host_xmake_file
="$xmake_file"
6418 host_truncate_target
=$truncate_target
6419 host_extra_gcc_objs
=$extra_gcc_objs
6420 host_extra_objs
=$extra_host_objs
6427 extra_objs
="${host_extra_objs} ${extra_objs}"
6429 # Default the target-machine variables that were not explicitly set.
6430 if test x
"$tm_file" = x
6431 then tm_file
=$cpu_type/$cpu_type.h
; fi
6433 if test x
$extra_headers = x
6434 then extra_headers
=; fi
6436 if test x
"$xm_file" = x
6437 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6439 if test x
$md_file = x
6440 then md_file
=$cpu_type/$cpu_type.md
; fi
6442 if test x
$out_file = x
6443 then out_file
=$cpu_type/$cpu_type.c
; fi
6445 if test x
"$tmake_file" = x
6446 then tmake_file
=$cpu_type/t-
$cpu_type
6449 if test x
"$dwarf2" = xyes
6450 then tm_file
="tm-dwarf2.h $tm_file"
6453 if test x
$float_format = x
6454 then float_format
=i64
6457 if test $float_format = none
6458 then float_h_file
=Makefile.
in
6459 else float_h_file
=float-
$float_format.h
6462 # Handle cpp installation.
6463 if test x
$enable_cpp != xno
6465 tmake_file
="$tmake_file t-install-cpp"
6468 # Say what files are being used for the output code and MD file.
6469 echo "Using \`$srcdir/config/$out_file' to output insns."
6470 echo "Using \`$srcdir/config/$md_file' as machine description file."
6473 for f
in $tm_file; do
6476 if test $count = ax
; then
6477 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6479 echo "Using the following target machine macro files:"
6480 for f
in $tm_file; do
6481 echo " $srcdir/config/$f"
6486 for f
in $host_xm_file; do
6489 if test $count = ax
; then
6490 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6492 echo "Using the following host machine macro files:"
6493 for f
in $host_xm_file; do
6494 echo " $srcdir/config/$f"
6498 if test "$host_xm_file" != "$build_xm_file"; then
6500 for f
in $build_xm_file; do
6503 if test $count = ax
; then
6504 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6506 echo "Using the following build machine macro files:"
6507 for f
in $build_xm_file; do
6508 echo " $srcdir/config/$f"
6513 if test x
$thread_file = x
; then
6514 if test x
$target_thread_file != x
; then
6515 thread_file
=$target_thread_file
6517 thread_file
='single'
6521 # Set up the header files.
6522 # $links is the list of header files to create.
6523 # $vars is the list of shell variables with file names to include.
6524 # auto-host.h is the file containing items generated by autoconf and is
6525 # the first file included by config.h.
6527 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6529 # If host=build, it is correct to have hconfig include auto-host.h
6530 # as well. If host!=build, we are in error and need to do more
6531 # work to find out the build config parameters.
6532 if test x
$host = x
$build
6534 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6536 # We create a subdir, then run autoconf in the subdir.
6537 # To prevent recursion we set host and build for the new
6538 # invocation of configure to the build for this invocation
6545 /*) realsrcdir
=${srcdir};;
6546 *) realsrcdir
=..
/${srcdir};;
6548 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6549 --target=$target --host=$build --build=$build
6551 # We just finished tests for the build machine, so rename
6552 # the file auto-build.h in the gcc directory.
6553 mv auto-host.h ..
/auto-build.h
6556 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6559 xm_file
="gansidecl.h ${xm_file}"
6560 tm_file
="gansidecl.h ${tm_file}"
6562 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6563 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6564 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6567 if test -f config.status
; then mv -f config.status config.bak
; fi
6570 while test -n "$vars"
6572 set $vars; var
=$1; shift; vars
=$
*
6573 set $links; link
=$1; shift; links
=$
*
6574 set $defines; define
=$1; shift; defines
=$
*
6577 # Make sure the file is created, even if it is empty.
6580 # Define TARGET_CPU_DEFAULT if the system wants one.
6581 # This substitutes for lots of *.h files.
6582 if test "$target_cpu_default" != "" -a $link = tm.h
6584 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6587 for file in `eval echo '$'$var`; do
6592 echo '#ifdef IN_GCC' >>$link
6595 echo "#include \"$file\"" >>$link
6600 echo '#endif' >>$link
6605 for def
in `eval echo '$'$define`; do
6606 echo "#ifndef $def" >>$link
6607 echo "#define $def" >>$link
6608 echo "#endif" >>$link
6612 # Truncate the target if necessary
6613 if test x
$host_truncate_target != x
; then
6614 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6617 # Get the version trigger filename from the toplevel
6618 if test "${with_gcc_version_trigger+set}" = set; then
6619 gcc_version_trigger
=$with_gcc_version_trigger
6621 gcc_version_trigger
=${srcdir}/version.c
6623 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6625 # Internationalization
6627 VERSION
="$gcc_version"
6628 cat >> confdefs.h
<<EOF
6629 #define PACKAGE "$PACKAGE"
6632 cat >> confdefs.h
<<EOF
6633 #define VERSION "$VERSION"
6641 # NLS support is still experimental, so disable it by default for now.
6642 # Check whether --enable-nls or --disable-nls was given.
6643 if test "${enable_nls+set}" = set; then
6644 enableval
="$enable_nls"
6652 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6653 echo "configure:6654: checking for strerror in -lcposix" >&5
6654 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 ac_save_LIBS
="$LIBS"
6659 LIBS
="-lcposix $LIBS"
6660 cat > conftest.
$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6672 if { (eval echo configure
:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6674 eval "ac_cv_lib_$ac_lib_var=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.
$ac_ext >&5
6679 eval "ac_cv_lib_$ac_lib_var=no"
6682 LIBS
="$ac_save_LIBS"
6685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6686 echo "$ac_t""yes" 1>&6
6687 LIBS
="$LIBS -lcposix"
6689 echo "$ac_t""no" 1>&6
6694 echo $ac_n "checking for working const""... $ac_c" 1>&6
6695 echo "configure:6696: checking for working const" >&5
6696 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 cat > conftest.
$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6705 /* Ultrix mips cc rejects this. */
6706 typedef int charset[2]; const charset x;
6707 /* SunOS 4.1.1 cc rejects this. */
6708 char const *const *ccp;
6710 /* NEC SVR4.0.2 mips cc rejects this. */
6711 struct point {int x, y;};
6712 static struct point const zero = {0,0};
6713 /* AIX XL C 1.02.0.0 rejects this.
6714 It does not let you subtract one const X* pointer from another in an arm
6715 of an if-expression whose if-part is not a constant expression */
6716 const char *g = "string";
6717 ccp = &g + (g ? g-g : 0);
6718 /* HPUX 7.0 cc rejects these. */
6721 ccp = (char const *const *) p;
6722 { /* SCO 3.2v4 cc rejects this. */
6724 char const *s = 0 ? (char *) 0 : (char const *) 0;
6728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6730 const int *foo = &x[0];
6733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6734 typedef const int *iptr;
6738 { /* AIX XL C 1.02.0.0 rejects this saying
6739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6740 struct s { int j; const int *ap[3]; };
6741 struct s *b; b->j = 5;
6743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6749 if { (eval echo configure
:6750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6753 echo "configure: failed program was:" >&5
6754 cat conftest.
$ac_ext >&5
6761 echo "$ac_t""$ac_cv_c_const" 1>&6
6762 if test $ac_cv_c_const = no
; then
6763 cat >> confdefs.h
<<\EOF
6769 echo $ac_n "checking for inline""... $ac_c" 1>&6
6770 echo "configure:6771: checking for inline" >&5
6771 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6775 for ac_kw
in inline __inline__ __inline
; do
6776 cat > conftest.
$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6784 if { (eval echo configure
:6785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6786 ac_cv_c_inline
=$ac_kw; break
6788 echo "configure: failed program was:" >&5
6789 cat conftest.
$ac_ext >&5
6796 echo "$ac_t""$ac_cv_c_inline" 1>&6
6797 case "$ac_cv_c_inline" in
6799 no
) cat >> confdefs.h
<<\EOF
6803 *) cat >> confdefs.h
<<EOF
6804 #define inline $ac_cv_c_inline
6809 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6810 echo "configure:6811: checking for off_t" >&5
6811 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6812 echo $ac_n "(cached) $ac_c" 1>&6
6814 cat > conftest.
$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 #include <sys/types.h>
6823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6826 ac_cv_type_off_t
=yes
6834 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6835 if test $ac_cv_type_off_t = no
; then
6836 cat >> confdefs.h
<<\EOF
6842 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6843 echo "configure:6844: checking for size_t" >&5
6844 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6
6847 cat > conftest.
$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 #include <sys/types.h>
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6859 ac_cv_type_size_t
=yes
6862 ac_cv_type_size_t
=no
6867 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6868 if test $ac_cv_type_size_t = no
; then
6869 cat >> confdefs.h
<<\EOF
6870 #define size_t unsigned
6875 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6876 # for constant arguments. Useless!
6877 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6878 echo "configure:6879: checking for working alloca.h" >&5
6879 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6882 cat > conftest.
$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6887 char *p = alloca(2 * sizeof(int));
6890 if { (eval echo configure
:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6892 ac_cv_header_alloca_h
=yes
6894 echo "configure: failed program was:" >&5
6895 cat conftest.
$ac_ext >&5
6897 ac_cv_header_alloca_h
=no
6902 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6903 if test $ac_cv_header_alloca_h = yes; then
6904 cat >> confdefs.h
<<\EOF
6905 #define HAVE_ALLOCA_H 1
6910 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6911 echo "configure:6912: checking for alloca" >&5
6912 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6915 cat > conftest.
$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6920 # define alloca __builtin_alloca
6923 # include <malloc.h>
6924 # define alloca _alloca
6927 # include <alloca.h>
6932 # ifndef alloca /* predefined by HP cc +Olibcalls */
6941 char *p = (char *) alloca(1);
6944 if { (eval echo configure
:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6946 ac_cv_func_alloca_works
=yes
6948 echo "configure: failed program was:" >&5
6949 cat conftest.
$ac_ext >&5
6951 ac_cv_func_alloca_works
=no
6956 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6957 if test $ac_cv_func_alloca_works = yes; then
6958 cat >> confdefs.h
<<\EOF
6959 #define HAVE_ALLOCA 1
6964 if test $ac_cv_func_alloca_works = no
; then
6965 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6966 # that cause trouble. Some versions do not even contain alloca or
6967 # contain a buggy version. If you still want to use their alloca,
6968 # use ar to extract alloca.o from them instead of compiling alloca.c.
6969 ALLOCA
=alloca.
${ac_objext}
6970 cat >> confdefs.h
<<\EOF
6975 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6976 echo "configure:6977: checking whether alloca needs Cray hooks" >&5
6977 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6980 cat > conftest.
$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6983 #if defined(CRAY) && ! defined(CRAY2)
6990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6991 egrep "webecray" >/dev
/null
2>&1; then
7002 echo "$ac_t""$ac_cv_os_cray" 1>&6
7003 if test $ac_cv_os_cray = yes; then
7004 for ac_func
in _getb67 GETB67 getb67
; do
7005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7006 echo "configure:7007: checking for $ac_func" >&5
7007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7010 cat > conftest.
$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 /* System header to define __stub macros and hopefully few prototypes,
7014 which can conflict with char $ac_func(); below. */
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7023 /* The GNU C library defines this for functions which it implements
7024 to always fail with ENOSYS. Some functions are actually named
7025 something starting with __ and the normal name is an alias. */
7026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7034 if { (eval echo configure
:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7036 eval "ac_cv_func_$ac_func=yes"
7038 echo "configure: failed program was:" >&5
7039 cat conftest.
$ac_ext >&5
7041 eval "ac_cv_func_$ac_func=no"
7046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7047 echo "$ac_t""yes" 1>&6
7048 cat >> confdefs.h
<<EOF
7049 #define CRAY_STACKSEG_END $ac_func
7054 echo "$ac_t""no" 1>&6
7060 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7061 echo "configure:7062: checking stack direction for C alloca" >&5
7062 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7065 if test "$cross_compiling" = yes; then
7066 ac_cv_c_stack_direction
=0
7068 cat > conftest.
$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7071 find_stack_direction ()
7073 static char *addr = 0;
7078 return find_stack_direction ();
7081 return (&dummy > addr) ? 1 : -1;
7085 exit (find_stack_direction() < 0);
7088 if { (eval echo configure
:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7090 ac_cv_c_stack_direction
=1
7092 echo "configure: failed program was:" >&5
7093 cat conftest.
$ac_ext >&5
7095 ac_cv_c_stack_direction
=-1
7102 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7103 cat >> confdefs.h
<<EOF
7104 #define STACK_DIRECTION $ac_cv_c_stack_direction
7109 for ac_hdr
in unistd.h
7111 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7113 echo "configure:7114: checking for $ac_hdr" >&5
7114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6
7117 cat > conftest.
$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7123 { (eval echo configure
:7124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7124 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7125 if test -z "$ac_err"; then
7127 eval "ac_cv_header_$ac_safe=yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7133 eval "ac_cv_header_$ac_safe=no"
7137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7138 echo "$ac_t""yes" 1>&6
7139 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7140 cat >> confdefs.h
<<EOF
7141 #define $ac_tr_hdr 1
7145 echo "$ac_t""no" 1>&6
7149 for ac_func
in getpagesize
7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_func" >&5
7153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.
$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char $ac_func(); below. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7169 /* The GNU C library defines this for functions which it implements
7170 to always fail with ENOSYS. Some functions are actually named
7171 something starting with __ and the normal name is an alias. */
7172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7180 if { (eval echo configure
:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7182 eval "ac_cv_func_$ac_func=yes"
7184 echo "configure: failed program was:" >&5
7185 cat conftest.
$ac_ext >&5
7187 eval "ac_cv_func_$ac_func=no"
7192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7195 cat >> confdefs.h
<<EOF
7196 #define $ac_tr_func 1
7200 echo "$ac_t""no" 1>&6
7204 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7205 echo "configure:7206: checking for working mmap" >&5
7206 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 if test "$cross_compiling" = yes; then
7210 ac_cv_func_mmap_fixed_mapped
=no
7212 cat > conftest.
$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7216 /* Thanks to Mike Haertel and Jim Avera for this test.
7217 Here is a matrix of mmap possibilities:
7218 mmap private not fixed
7219 mmap private fixed at somewhere currently unmapped
7220 mmap private fixed at somewhere already mapped
7221 mmap shared not fixed
7222 mmap shared fixed at somewhere currently unmapped
7223 mmap shared fixed at somewhere already mapped
7224 For private mappings, we should verify that changes cannot be read()
7225 back from the file, nor mmap's back from the file at a different
7226 address. (There have been systems where private was not correctly
7227 implemented like the infamous i386 svr4.0, and systems where the
7228 VM page cache was not coherent with the filesystem buffer cache
7229 like early versions of FreeBSD and possibly contemporary NetBSD.)
7230 For shared mappings, we should conversely verify that changes get
7231 propogated back to all the places they're supposed to be.
7233 Grep wants private fixed already mapped.
7234 The main things grep needs to know about mmap are:
7235 * does it exist and is it safe to write into the mmap'd area
7236 * how to use it (BSD variants) */
7237 #include <sys/types.h>
7239 #include <sys/mman.h>
7241 /* This mess was copied from the GNU getpagesize.h. */
7242 #ifndef HAVE_GETPAGESIZE
7243 # ifdef HAVE_UNISTD_H
7244 # include <unistd.h>
7247 /* Assume that all systems that can run configure have sys/param.h. */
7248 # ifndef HAVE_SYS_PARAM_H
7249 # define HAVE_SYS_PARAM_H 1
7252 # ifdef _SC_PAGESIZE
7253 # define getpagesize() sysconf(_SC_PAGESIZE)
7254 # else /* no _SC_PAGESIZE */
7255 # ifdef HAVE_SYS_PARAM_H
7256 # include <sys/param.h>
7257 # ifdef EXEC_PAGESIZE
7258 # define getpagesize() EXEC_PAGESIZE
7259 # else /* no EXEC_PAGESIZE */
7261 # define getpagesize() NBPG * CLSIZE
7264 # endif /* no CLSIZE */
7265 # else /* no NBPG */
7267 # define getpagesize() NBPC
7268 # else /* no NBPC */
7270 # define getpagesize() PAGESIZE
7271 # endif /* PAGESIZE */
7272 # endif /* no NBPC */
7273 # endif /* no NBPG */
7274 # endif /* no EXEC_PAGESIZE */
7275 # else /* no HAVE_SYS_PARAM_H */
7276 # define getpagesize() 8192 /* punt totally */
7277 # endif /* no HAVE_SYS_PARAM_H */
7278 # endif /* no _SC_PAGESIZE */
7280 #endif /* no HAVE_GETPAGESIZE */
7283 extern "C" { void *malloc(unsigned); }
7291 char *data, *data2, *data3;
7295 pagesize = getpagesize();
7298 * First, make a file with some known garbage in it.
7300 data = malloc(pagesize);
7303 for (i = 0; i < pagesize; ++i)
7304 *(data + i) = rand();
7306 fd = creat("conftestmmap", 0600);
7309 if (write(fd, data, pagesize) != pagesize)
7314 * Next, try to mmap the file at a fixed address which
7315 * already has something else allocated at it. If we can,
7316 * also make sure that we see the same garbage.
7318 fd = open("conftestmmap", O_RDWR);
7321 data2 = malloc(2 * pagesize);
7324 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7325 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7326 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7328 for (i = 0; i < pagesize; ++i)
7329 if (*(data + i) != *(data2 + i))
7333 * Finally, make sure that changes to the mapped area
7334 * do not percolate back to the file as seen by read().
7335 * (This is a bug on some variants of i386 svr4.0.)
7337 for (i = 0; i < pagesize; ++i)
7338 *(data2 + i) = *(data2 + i) + 1;
7339 data3 = malloc(pagesize);
7342 if (read(fd, data3, pagesize) != pagesize)
7344 for (i = 0; i < pagesize; ++i)
7345 if (*(data + i) != *(data3 + i))
7348 unlink("conftestmmap");
7353 if { (eval echo configure
:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7355 ac_cv_func_mmap_fixed_mapped
=yes
7357 echo "configure: failed program was:" >&5
7358 cat conftest.
$ac_ext >&5
7360 ac_cv_func_mmap_fixed_mapped
=no
7367 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7368 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7369 cat >> confdefs.h
<<\EOF
7376 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7377 unistd.h sys
/param.h
7379 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7381 echo "configure:7382: checking for $ac_hdr" >&5
7382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7385 cat > conftest.
$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7390 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7391 { (eval echo configure
:7392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7392 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7393 if test -z "$ac_err"; then
7395 eval "ac_cv_header_$ac_safe=yes"
7398 echo "configure: failed program was:" >&5
7399 cat conftest.
$ac_ext >&5
7401 eval "ac_cv_header_$ac_safe=no"
7405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7406 echo "$ac_t""yes" 1>&6
7407 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7408 cat >> confdefs.h
<<EOF
7409 #define $ac_tr_hdr 1
7413 echo "$ac_t""no" 1>&6
7417 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7418 strdup __argz_count __argz_stringify __argz_next
7420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_func" >&5
7422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.
$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7428 /* System header to define __stub macros and hopefully few prototypes,
7429 which can conflict with char $ac_func(); below. */
7431 /* Override any gcc2 internal prototype to avoid an error. */
7432 /* We use char because int might match the return type of a gcc2
7433 builtin and then its argument prototype would still apply. */
7438 /* The GNU C library defines this for functions which it implements
7439 to always fail with ENOSYS. Some functions are actually named
7440 something starting with __ and the normal name is an alias. */
7441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7449 if { (eval echo configure
:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7451 eval "ac_cv_func_$ac_func=yes"
7453 echo "configure: failed program was:" >&5
7454 cat conftest.
$ac_ext >&5
7456 eval "ac_cv_func_$ac_func=no"
7461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7462 echo "$ac_t""yes" 1>&6
7463 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7464 cat >> confdefs.h
<<EOF
7465 #define $ac_tr_func 1
7469 echo "$ac_t""no" 1>&6
7474 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7475 for ac_func
in stpcpy
7477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7478 echo "configure:7479: checking for $ac_func" >&5
7479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7482 cat > conftest.
$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 /* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char $ac_func(); below. */
7488 /* Override any gcc2 internal prototype to avoid an error. */
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7495 /* The GNU C library defines this for functions which it implements
7496 to always fail with ENOSYS. Some functions are actually named
7497 something starting with __ and the normal name is an alias. */
7498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7506 if { (eval echo configure
:7507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7508 eval "ac_cv_func_$ac_func=yes"
7510 echo "configure: failed program was:" >&5
7511 cat conftest.
$ac_ext >&5
7513 eval "ac_cv_func_$ac_func=no"
7518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7519 echo "$ac_t""yes" 1>&6
7520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7521 cat >> confdefs.h
<<EOF
7522 #define $ac_tr_func 1
7526 echo "$ac_t""no" 1>&6
7531 if test "${ac_cv_func_stpcpy}" = "yes"; then
7532 cat >> confdefs.h
<<\EOF
7533 #define HAVE_STPCPY 1
7538 if test $ac_cv_header_locale_h = yes; then
7539 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7540 echo "configure:7541: checking for LC_MESSAGES" >&5
7541 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7542 echo $ac_n "(cached) $ac_c" 1>&6
7544 cat > conftest.
$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7552 if { (eval echo configure
:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7554 am_cv_val_LC_MESSAGES
=yes
7556 echo "configure: failed program was:" >&5
7557 cat conftest.
$ac_ext >&5
7559 am_cv_val_LC_MESSAGES
=no
7564 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7565 if test $am_cv_val_LC_MESSAGES = yes; then
7566 cat >> confdefs.h
<<\EOF
7567 #define HAVE_LC_MESSAGES 1
7572 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7573 echo "configure:7574: checking whether NLS is requested" >&5
7574 # Check whether --enable-nls or --disable-nls was given.
7575 if test "${enable_nls+set}" = set; then
7576 enableval
="$enable_nls"
7582 echo "$ac_t""$USE_NLS" 1>&6
7585 USE_INCLUDED_LIBINTL
=no
7587 if test "$USE_NLS" = "yes"; then
7588 cat >> confdefs.h
<<\EOF
7589 #define ENABLE_NLS 1
7592 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7593 echo "configure:7594: checking whether included gettext is requested" >&5
7594 # Check whether --with-included-gettext or --without-included-gettext was given.
7595 if test "${with_included_gettext+set}" = set; then
7596 withval
="$with_included_gettext"
7597 nls_cv_force_use_gnu_gettext
=$withval
7599 nls_cv_force_use_gnu_gettext
=no
7602 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7604 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7605 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7607 nls_cv_header_libgt
=
7610 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7611 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7612 echo "configure:7613: checking for libintl.h" >&5
7613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 cat > conftest.
$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 #include <libintl.h>
7621 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 { (eval echo configure
:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 if test -z "$ac_err"; then
7626 eval "ac_cv_header_$ac_safe=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.
$ac_ext >&5
7632 eval "ac_cv_header_$ac_safe=no"
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7639 echo "configure:7640: checking for gettext in libc" >&5
7640 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 cat > conftest.
$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 #include <libintl.h>
7648 return (int) gettext ("")
7651 if { (eval echo configure
:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7653 gt_cv_func_gettext_libc
=yes
7655 echo "configure: failed program was:" >&5
7656 cat conftest.
$ac_ext >&5
7658 gt_cv_func_gettext_libc
=no
7663 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7665 if test "$gt_cv_func_gettext_libc" != "yes"; then
7666 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7667 echo "configure:7668: checking for bindtextdomain in -lintl" >&5
7668 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 ac_save_LIBS
="$LIBS"
7674 cat > conftest.
$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7680 char bindtextdomain();
7686 if { (eval echo configure
:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7688 eval "ac_cv_lib_$ac_lib_var=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.
$ac_ext >&5
7693 eval "ac_cv_lib_$ac_lib_var=no"
7696 LIBS
="$ac_save_LIBS"
7699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7702 echo "configure:7703: checking for gettext in libintl" >&5
7703 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7707 echo "configure:7708: checking for gettext in -lintl" >&5
7708 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7712 ac_save_LIBS
="$LIBS"
7714 cat > conftest.
$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* Override any gcc2 internal prototype to avoid an error. */
7718 /* We use char because int might match the return type of a gcc2
7719 builtin and then its argument prototype would still apply. */
7726 if { (eval echo configure
:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7728 eval "ac_cv_lib_$ac_lib_var=yes"
7730 echo "configure: failed program was:" >&5
7731 cat conftest.
$ac_ext >&5
7733 eval "ac_cv_lib_$ac_lib_var=no"
7736 LIBS
="$ac_save_LIBS"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 gt_cv_func_gettext_libintl
=yes
7743 echo "$ac_t""no" 1>&6
7744 gt_cv_func_gettext_libintl
=no
7749 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7751 echo "$ac_t""no" 1>&6
7756 if test "$gt_cv_func_gettext_libc" = "yes" \
7757 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7758 cat >> confdefs.h
<<\EOF
7759 #define HAVE_GETTEXT 1
7762 # Extract the first word of "msgfmt", so it can be a program name with args.
7763 set dummy msgfmt
; ac_word
=$2
7764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7765 echo "configure:7766: checking for $ac_word" >&5
7766 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7771 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7774 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7775 for ac_dir
in $PATH; do
7776 test -z "$ac_dir" && ac_dir
=.
7777 if test -f $ac_dir/$ac_word; then
7778 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7779 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7789 MSGFMT
="$ac_cv_path_MSGFMT"
7790 if test -n "$MSGFMT"; then
7791 echo "$ac_t""$MSGFMT" 1>&6
7793 echo "$ac_t""no" 1>&6
7795 if test "$MSGFMT" != "no"; then
7796 for ac_func
in dcgettext
7798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7799 echo "configure:7800: checking for $ac_func" >&5
7800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7801 echo $ac_n "(cached) $ac_c" 1>&6
7803 cat > conftest.
$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7806 /* System header to define __stub macros and hopefully few prototypes,
7807 which can conflict with char $ac_func(); below. */
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7816 /* The GNU C library defines this for functions which it implements
7817 to always fail with ENOSYS. Some functions are actually named
7818 something starting with __ and the normal name is an alias. */
7819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7827 if { (eval echo configure
:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7829 eval "ac_cv_func_$ac_func=yes"
7831 echo "configure: failed program was:" >&5
7832 cat conftest.
$ac_ext >&5
7834 eval "ac_cv_func_$ac_func=no"
7839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7840 echo "$ac_t""yes" 1>&6
7841 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7842 cat >> confdefs.h
<<EOF
7843 #define $ac_tr_func 1
7847 echo "$ac_t""no" 1>&6
7851 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7852 set dummy gmsgfmt
; ac_word
=$2
7853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7854 echo "configure:7855: checking for $ac_word" >&5
7855 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7860 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7863 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7866 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7868 for ac_dir
in $ac_dummy; do
7869 test -z "$ac_dir" && ac_dir
=.
7870 if test -f $ac_dir/$ac_word; then
7871 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7876 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7880 GMSGFMT
="$ac_cv_path_GMSGFMT"
7881 if test -n "$GMSGFMT"; then
7882 echo "$ac_t""$GMSGFMT" 1>&6
7884 echo "$ac_t""no" 1>&6
7887 # Extract the first word of "xgettext", so it can be a program name with args.
7888 set dummy xgettext
; ac_word
=$2
7889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7890 echo "configure:7891: checking for $ac_word" >&5
7891 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7896 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7900 for ac_dir
in $PATH; do
7901 test -z "$ac_dir" && ac_dir
=.
7902 if test -f $ac_dir/$ac_word; then
7903 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7904 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7910 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7914 XGETTEXT
="$ac_cv_path_XGETTEXT"
7915 if test -n "$XGETTEXT"; then
7916 echo "$ac_t""$XGETTEXT" 1>&6
7918 echo "$ac_t""no" 1>&6
7921 cat > conftest.
$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7926 extern int _nl_msg_cat_cntr;
7927 return _nl_msg_cat_cntr
7930 if { (eval echo configure
:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7935 echo "configure: failed program was:" >&5
7936 cat conftest.
$ac_ext >&5
7947 echo "$ac_t""no" 1>&6
7951 if test "$CATOBJEXT" = "NONE"; then
7952 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7953 echo "configure:7954: checking whether catgets can be used" >&5
7954 # Check whether --with-catgets or --without-catgets was given.
7955 if test "${with_catgets+set}" = set; then
7956 withval
="$with_catgets"
7957 nls_cv_use_catgets
=$withval
7959 nls_cv_use_catgets
=no
7962 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7964 if test "$nls_cv_use_catgets" = "yes"; then
7965 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7966 echo "configure:7967: checking for main in -li" >&5
7967 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7971 ac_save_LIBS
="$LIBS"
7973 cat > conftest.
$ac_ext <<EOF
7974 #line 7975 "configure"
7975 #include "confdefs.h"
7981 if { (eval echo configure
:7982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7983 eval "ac_cv_lib_$ac_lib_var=yes"
7985 echo "configure: failed program was:" >&5
7986 cat conftest.
$ac_ext >&5
7988 eval "ac_cv_lib_$ac_lib_var=no"
7991 LIBS
="$ac_save_LIBS"
7994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7997 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7998 cat >> confdefs.h
<<EOF
7999 #define $ac_tr_lib 1
8005 echo "$ac_t""no" 1>&6
8008 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8009 echo "configure:8010: checking for catgets" >&5
8010 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 cat > conftest.
$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char catgets(); below. */
8019 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_catgets) || defined (__stub___catgets)
8037 if { (eval echo configure
:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8039 eval "ac_cv_func_catgets=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.
$ac_ext >&5
8044 eval "ac_cv_func_catgets=no"
8049 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 cat >> confdefs.h
<<\EOF
8052 #define HAVE_CATGETS 1
8055 INTLOBJS
="\$(CATOBJS)"
8056 # Extract the first word of "gencat", so it can be a program name with args.
8057 set dummy gencat
; ac_word
=$2
8058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8059 echo "configure:8060: checking for $ac_word" >&5
8060 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8065 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8068 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8073 for ac_dir
in $ac_dummy; do
8074 test -z "$ac_dir" && ac_dir
=.
8075 if test -f $ac_dir/$ac_word; then
8076 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8081 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8085 GENCAT
="$ac_cv_path_GENCAT"
8086 if test -n "$GENCAT"; then
8087 echo "$ac_t""$GENCAT" 1>&6
8089 echo "$ac_t""no" 1>&6
8091 if test "$GENCAT" != "no"; then
8092 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8093 set dummy gmsgfmt
; ac_word
=$2
8094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_word" >&5
8096 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8101 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8104 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8109 for ac_dir
in $ac_dummy; do
8110 test -z "$ac_dir" && ac_dir
=.
8111 if test -f $ac_dir/$ac_word; then
8112 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8117 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8121 GMSGFMT
="$ac_cv_path_GMSGFMT"
8122 if test -n "$GMSGFMT"; then
8123 echo "$ac_t""$GMSGFMT" 1>&6
8125 echo "$ac_t""no" 1>&6
8128 if test "$GMSGFMT" = "no"; then
8129 # Extract the first word of "msgfmt", so it can be a program name with args.
8130 set dummy msgfmt
; ac_word
=$2
8131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8132 echo "configure:8133: checking for $ac_word" >&5
8133 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8138 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8142 for ac_dir
in $PATH; do
8143 test -z "$ac_dir" && ac_dir
=.
8144 if test -f $ac_dir/$ac_word; then
8145 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8146 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8152 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8156 GMSGFMT
="$ac_cv_path_GMSGFMT"
8157 if test -n "$GMSGFMT"; then
8158 echo "$ac_t""$GMSGFMT" 1>&6
8160 echo "$ac_t""no" 1>&6
8164 # Extract the first word of "xgettext", so it can be a program name with args.
8165 set dummy xgettext
; ac_word
=$2
8166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8167 echo "configure:8168: checking for $ac_word" >&5
8168 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8173 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8177 for ac_dir
in $PATH; do
8178 test -z "$ac_dir" && ac_dir
=.
8179 if test -f $ac_dir/$ac_word; then
8180 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8181 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8187 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8191 XGETTEXT
="$ac_cv_path_XGETTEXT"
8192 if test -n "$XGETTEXT"; then
8193 echo "$ac_t""$XGETTEXT" 1>&6
8195 echo "$ac_t""no" 1>&6
8198 USE_INCLUDED_LIBINTL
=yes
8202 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8204 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8205 nls_cv_header_intl
=intl
/libintl.h
8206 nls_cv_header_libgt
=intl
/libgettext.h
8209 echo "$ac_t""no" 1>&6
8215 if test "$CATOBJEXT" = "NONE"; then
8216 nls_cv_use_gnu_gettext
=yes
8220 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8221 INTLOBJS
="\$(GETTOBJS)"
8222 # Extract the first word of "msgfmt", so it can be a program name with args.
8223 set dummy msgfmt
; ac_word
=$2
8224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8225 echo "configure:8226: checking for $ac_word" >&5
8226 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8231 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8234 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8235 for ac_dir
in $PATH; do
8236 test -z "$ac_dir" && ac_dir
=.
8237 if test -f $ac_dir/$ac_word; then
8238 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8239 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8245 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8249 MSGFMT
="$ac_cv_path_MSGFMT"
8250 if test -n "$MSGFMT"; then
8251 echo "$ac_t""$MSGFMT" 1>&6
8253 echo "$ac_t""no" 1>&6
8256 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8257 set dummy gmsgfmt
; ac_word
=$2
8258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8259 echo "configure:8260: checking for $ac_word" >&5
8260 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8265 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8268 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8271 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8273 for ac_dir
in $ac_dummy; do
8274 test -z "$ac_dir" && ac_dir
=.
8275 if test -f $ac_dir/$ac_word; then
8276 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8281 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8285 GMSGFMT
="$ac_cv_path_GMSGFMT"
8286 if test -n "$GMSGFMT"; then
8287 echo "$ac_t""$GMSGFMT" 1>&6
8289 echo "$ac_t""no" 1>&6
8292 # Extract the first word of "xgettext", so it can be a program name with args.
8293 set dummy xgettext
; ac_word
=$2
8294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8295 echo "configure:8296: checking for $ac_word" >&5
8296 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8301 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8304 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8305 for ac_dir
in $PATH; do
8306 test -z "$ac_dir" && ac_dir
=.
8307 if test -f $ac_dir/$ac_word; then
8308 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8309 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8315 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8319 XGETTEXT
="$ac_cv_path_XGETTEXT"
8320 if test -n "$XGETTEXT"; then
8321 echo "$ac_t""$XGETTEXT" 1>&6
8323 echo "$ac_t""no" 1>&6
8327 USE_INCLUDED_LIBINTL
=yes
8331 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8333 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8334 nls_cv_header_intl
=intl
/libintl.h
8335 nls_cv_header_libgt
=intl
/libgettext.h
8338 if test "$XGETTEXT" != ":"; then
8339 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8342 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8347 # We need to process the po/ directory.
8351 nls_cv_header_intl
=intl
/libintl.h
8352 nls_cv_header_libgt
=intl
/libgettext.h
8358 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8359 # because some of the sources are only built for this goal.
8360 if test "$PACKAGE" = gettext; then
8362 USE_INCLUDED_LIBINTL
=yes
8365 for lang
in $ALL_LINGUAS; do
8366 GMOFILES
="$GMOFILES $lang.gmo"
8367 POFILES
="$POFILES $lang.po"
8383 if test "x$CATOBJEXT" != "x"; then
8384 if test "x$ALL_LINGUAS" = "x"; then
8387 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8388 echo "configure:8389: checking for catalogs to be installed" >&5
8390 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8391 case "$ALL_LINGUAS" in
8392 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8395 LINGUAS
=$NEW_LINGUAS
8396 echo "$ac_t""$LINGUAS" 1>&6
8399 if test -n "$LINGUAS"; then
8400 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8404 if test $ac_cv_header_locale_h = yes; then
8405 INCLUDE_LOCALE_H
="#include <locale.h>"
8408 /* The system does not provide the header <locale.h>. Take care yourself. */"
8412 test -d intl || mkdir intl
8413 if test "$CATOBJEXT" = ".cat"; then
8414 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8415 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8416 echo "configure:8417: checking for linux/version.h" >&5
8417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 cat > conftest.
$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8423 #include <linux/version.h>
8425 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8426 { (eval echo configure
:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8427 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8428 if test -z "$ac_err"; then
8430 eval "ac_cv_header_$ac_safe=yes"
8433 echo "configure: failed program was:" >&5
8434 cat conftest.
$ac_ext >&5
8436 eval "ac_cv_header_$ac_safe=no"
8440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8441 echo "$ac_t""yes" 1>&6
8444 echo "$ac_t""no" 1>&6
8449 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8451 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8452 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8454 if test "$PACKAGE" = "gettext"; then
8465 if test -n "$ac_aux_dir"; then
8466 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8468 if test -z "$MKINSTALLDIRS"; then
8469 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8476 test -d po || mkdir po
8477 if test "x$srcdir" != "x."; then
8478 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8479 posrcprefix
="$srcdir/"
8481 posrcprefix
="../$srcdir/"
8487 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8488 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8490 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8492 # Windows32 Registry support for specifying GCC installation paths.
8493 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8494 if test "${enable_win32_registry+set}" = set; then
8495 enableval
="$enable_win32_registry"
8500 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8501 echo "configure:8502: checking whether windows registry support is requested" >&5
8502 if test x
$enable_win32_registry != xno
; then
8503 cat >> confdefs.h
<<\EOF
8504 #define ENABLE_WIN32_REGISTRY 1
8507 echo "$ac_t""yes" 1>&6
8509 echo "$ac_t""no" 1>&6
8512 # Check if user specified a different registry key.
8513 case x
${enable_win32_registry} in
8516 gcc_cv_win32_registry_key
="$VERSION"
8519 # no registry lookup.
8520 gcc_cv_win32_registry_key
=''
8523 # user-specified key.
8524 gcc_cv_win32_registry_key
="$enable_win32_registry"
8528 if test x
$enable_win32_registry != xno
; then
8529 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8530 echo "configure:8531: checking registry key on windows hosts" >&5
8531 cat >> confdefs.h
<<EOF
8532 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8535 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8538 # Get an absolute path to the GCC top-level source directory
8544 # Conditionalize the makefile for this host machine.
8545 # Make-host contains the concatenation of all host makefile fragments
8546 # [there can be more than one]. This file is built by configure.frag.
8547 host_overrides
=Make-host
8548 dep_host_xmake_file
=
8549 for f
in ..
${host_xmake_file}
8551 if test -f ${srcdir}/config
/$f
8553 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8557 # Conditionalize the makefile for this target machine.
8558 # Make-target contains the concatenation of all host makefile fragments
8559 # [there can be more than one]. This file is built by configure.frag.
8560 target_overrides
=Make-target
8562 for f
in ..
${tmake_file}
8564 if test -f ${srcdir}/config
/$f
8566 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8570 # If the host doesn't support symlinks, modify CC in
8571 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8572 # Otherwise, we can use "CC=$(CC)".
8574 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8576 cc_set_by_configure
="\$(CC)"
8577 quoted_cc_set_by_configure
="\$(CC)"
8578 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8581 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8583 symbolic_link
="cp -p"
8587 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8588 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8589 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8593 out_object_file
=`basename $out_file .c`.o
8596 for f
in $tm_file; do
8599 tm_file_list
="${tm_file_list} $f" ;;
8600 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8605 for f
in $host_xm_file; do
8607 auto-host.h | gansidecl.h | hwint.h
)
8608 host_xm_file_list
="${host_xm_file_list} $f" ;;
8609 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8614 for f
in $build_xm_file; do
8616 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8617 build_xm_file_list
="${build_xm_file_list} $f" ;;
8618 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8622 # Define macro CROSS_COMPILE in compilation
8623 # if this is a cross-compiler.
8624 # Also use all.cross instead of all.internal
8625 # and add cross-make to Makefile.
8626 cross_overrides
="/dev/null"
8627 if test x
$host != x
$target
8629 cross_defines
="CROSS=-DCROSS_COMPILE"
8630 cross_overrides
="${topdir}/cross-make"
8633 # When building gcc with a cross-compiler, we need to fix a few things.
8634 # This must come after cross-make as we want all.build to override
8636 build_overrides
="/dev/null"
8637 if test x
$build != x
$host
8639 build_overrides
="${topdir}/build-make"
8642 # Expand extra_headers to include complete path.
8643 # This substitutes for lots of t-* files.
8645 if test "x$extra_headers" = x
8648 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8649 for file in $extra_headers;
8651 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8655 if test x
$use_collect2 = xno
; then
8659 # Add a definition of USE_COLLECT2 if system wants one.
8660 # Also tell toplev.c what to do.
8661 # This substitutes for lots of t-* files.
8662 if test x
$use_collect2 = x
8667 will_use_collect2
="collect2"
8668 maybe_use_collect2
="-DUSE_COLLECT2"
8672 # Set MD_DEPS if the real md file is in md.pre-cpp.
8673 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8674 # for line oriented comments, so we must always use a GNU cpp. If
8675 # building gcc with a cross compiler, use the cross compiler just
8676 # built. Otherwise, we can use the cpp just built.
8678 if test "x$md_cppflags" = x
8680 md_file_sub
=$srcdir/config
/$md_file
8685 # If we have gas in the build tree, make a link to it.
8686 if test -f ..
/gas
/Makefile
; then
8687 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8690 # If we have nm in the build tree, make a link to it.
8691 if test -f ..
/binutils
/Makefile
; then
8692 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8695 # If we have ld in the build tree, make a link to it.
8696 if test -f ..
/ld
/Makefile
; then
8697 # if test x$use_collect2 = x; then
8698 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8700 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8704 # Figure out what assembler alignment features are present.
8705 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8706 echo "configure:8707: checking assembler alignment features" >&5
8708 gcc_cv_as_alignment_features
=
8709 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8710 if test -x "$DEFAULT_ASSEMBLER"; then
8711 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8712 elif test -x "$AS"; then
8714 elif test -x as
$host_exeext; then
8715 # Build using assembler in the current directory.
8716 gcc_cv_as
=.
/as
$host_exeext
8717 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8718 # Single tree build which includes gas.
8719 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8721 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8722 if test x
$gcc_cv_gas_version != x
; then
8726 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8727 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8728 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8729 # Gas version 2.6 and later support for .balign and .p2align.
8730 # bytes to skip when using .p2align.
8731 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
8732 gcc_cv_as_alignment_features
=".balign and .p2align"
8733 cat >> confdefs.h
<<\EOF
8734 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8738 # Gas version 2.8 and later support specifying the maximum
8739 # bytes to skip when using .p2align.
8740 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
8741 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8742 cat >> confdefs.h
<<\EOF
8743 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8748 elif test x
$host = x
$target; then
8750 # Search the same directories that the installed compiler will
8751 # search. Else we may find the wrong assembler and lose. If we
8752 # do not find a suitable assembler binary, then try the user's
8755 # Also note we have to check MD_EXEC_PREFIX before checking the
8756 # user's path. Unfortunately, there is no good way to get at the
8757 # value of MD_EXEC_PREFIX here. So we do a brute force search
8758 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8759 # to be fixed as part of the make/configure rewrite too.
8761 if test "x$exec_prefix" = xNONE
; then
8762 if test "x$prefix" = xNONE
; then
8763 test_prefix
=/usr
/local
8768 test_prefix
=$exec_prefix
8771 # If the loop below does not find an assembler, then use whatever
8772 # one we can find in the users's path.
8776 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8777 $test_prefix/lib/gcc-lib/$target \
8778 /usr/lib/gcc/$target/$gcc_version \
8779 /usr/lib/gcc/$target \
8780 $test_prefix/$target/bin/$target/$gcc_version \
8781 $test_prefix/$target/bin \
8786 /bsd43/usr/lib/cmplrs/cc \
8787 /usr/cross64/usr/bin \
8788 /usr/lib/cmplrs/cc \
8789 /sysv/usr/lib/cmplrs/cc \
8790 /svr4/usr/lib/cmplrs/cc \
8793 for dir
in $test_dirs; do
8794 if test -f $dir/as
$host_exeext; then
8795 gcc_cv_as
=$dir/as
$host_exeext
8800 if test x
$gcc_cv_as != x
; then
8801 # Check if we have .balign and .p2align
8802 echo ".balign 4" > conftest.s
8803 echo ".p2align 2" >> conftest.s
8804 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8805 gcc_cv_as_alignment_features
=".balign and .p2align"
8806 cat >> confdefs.h
<<\EOF
8807 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8811 rm -f conftest.s conftest.o
8812 # Check if specifying the maximum bytes to skip when
8813 # using .p2align is supported.
8814 echo ".p2align 4,,7" > conftest.s
8815 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8816 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8817 cat >> confdefs.h
<<\EOF
8818 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8822 rm -f conftest.s conftest.o
8824 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8826 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8827 echo "configure:8828: checking assembler subsection support" >&5
8828 gcc_cv_as_subsections
=
8829 if test x
$gcc_cv_as != x
; then
8830 # Check if we have .subsection
8831 echo ".subsection 1" > conftest.s
8832 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8833 gcc_cv_as_subsections
=".subsection"
8834 if test -x nm
$host_exeext; then
8835 gcc_cv_nm
=.
/nm
$host_exeext
8836 elif test x
$host = x
$target; then
8838 gcc_cv_nm
=nm
$host_exeext
8840 if test x
$gcc_cv_nm != x
; then
8841 cat > conftest.s
<<EOF
8842 conftest_label1: .word 0
8844 conftest_label2: .word 0
8847 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8848 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8849 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8850 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8853 gcc_cv_as_subsections
="working .subsection -1"
8854 cat >> confdefs.h
<<\EOF
8855 #define HAVE_GAS_SUBSECTION_ORDERING 1
8862 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8864 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8868 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8869 echo "configure:8870: checking assembler .register pseudo-op support" >&5
8870 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8874 gcc_cv_as_register_pseudo_op
=unknown
8875 if test x
$gcc_cv_as != x
; then
8876 # Check if we have .register
8877 echo ".register %g2, #scratch" > conftest.s
8878 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8879 gcc_cv_as_register_pseudo_op
=yes
8881 gcc_cv_as_register_pseudo_op
=no
8883 rm -f conftest.s conftest.o
8888 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8889 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8890 cat >> confdefs.h
<<\EOF
8891 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8898 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8899 echo "configure:8900: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8900 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8901 echo $ac_n "(cached) $ac_c" 1>&6
8904 if test -n "$gcc_cv_as"; then
8905 echo ".xword foo" > conftest.s
8906 gcc_cv_as_flags64
=no
8907 for flag
in "-xarch=v9" "-64 -Av9"; do
8908 if $gcc_cv_as $flag -o conftest.o conftest.s \
8909 > /dev
/null
2>&1; then
8910 gcc_cv_as_flags64
=$flag
8914 rm -f conftest.s conftest.o
8916 if test "$gas" = yes; then
8917 gcc_cv_as_flags64
="-64 -Av9"
8919 gcc_cv_as_flags64
="-xarch=v9"
8925 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8926 if test "x$gcc_cv_as_flags64" = xno
; then
8928 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8929 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8932 cat >> confdefs.h
<<EOF
8933 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8938 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8942 if test "x$gcc_cv_as_flags64" != xno
; then
8943 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8944 echo "configure:8945: checking for assembler offsetable %lo() support" >&5
8945 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8949 gcc_cv_as_offsetable_lo10
=unknown
8950 if test "x$gcc_cv_as" != x
; then
8951 # Check if assembler has offsetable %lo()
8952 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8953 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8954 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8956 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8957 > /dev
/null
2>&1; then
8958 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8959 gcc_cv_as_offsetable_lo10
=no
8961 gcc_cv_as_offsetable_lo10
=yes
8964 gcc_cv_as_offsetable_lo10
=no
8966 rm -f conftest.s conftest.o conftest1.s conftest1.o
8971 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8972 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8973 cat >> confdefs.h
<<\EOF
8974 #define HAVE_AS_OFFSETABLE_LO10 1
8982 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8983 echo "configure:8984: checking assembler instructions" >&5
8984 gcc_cv_as_instructions
=
8985 if test x
$gcc_cv_as != x
; then
8986 set "filds fists" "filds mem; fists mem"
8989 echo "$2" > conftest.s
8990 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8991 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8992 cat >> confdefs.h
<<EOF
8993 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8999 rm -f conftest.s conftest.o
9001 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9005 # Figure out what language subdirectories are present.
9006 # Look if the user specified --enable-languages="..."; if not, use
9007 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9009 if test x
"${enable_languages+set}" != xset
; then
9010 if test x
"${LANGUAGES+set}" = xset
; then
9011 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9013 enable_languages
=all
9017 for lang
in ${srcdir}/*/config-lang.
in ..
9021 # The odd quoting in the next line works around
9022 # an apparent bug in bash 1.12 on linux.
9023 ${srcdir}/[*]/config-lang.
in) ;;
9025 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9026 if test "x$lang_alias" = x
9028 echo "$lang doesn't set \$language." 1>&2
9031 if test x
"${enable_languages}" = xall
; then
9034 case "${enable_languages}" in
9035 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9043 if test x"${add_this_lang}" = xyes; then
9045 ${srcdir}/ada/config-lang.in)
9046 if test x$gnat = xyes ; then
9047 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9051 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9059 # Make gthr-default.h if we have a thread file.
9061 if test $thread_file != single; then
9062 rm -f gthr-default.h
9063 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9064 gthread_flags
=-DHAVE_GTHR_DEFAULT
9068 # Find out what GC implementation we want, or may, use.
9069 # Check whether --with-gc or --without-gc was given.
9070 if test "${with_gc+set}" = set; then
9077 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9081 if test $ac_cv_func_mmap_anywhere = yes \
9082 ||
test $ac_cv_func_valloc = yes; then
9090 echo "Using $GGC for garbage collection."
9092 # Build a new-abi (c++) system
9093 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9094 if test "${enable_new_gxx_abi+set}" = set; then
9095 enableval
="$enable_new_gxx_abi"
9096 cat >> confdefs.h
<<\EOF
9097 #define ENABLE_NEW_GXX_ABI 1
9100 GXX_ABI_FLAG
='-fnew-abi'
9101 echo "Building a new-abi g++ compiler."
9107 # Make empty files to contain the specs and options for each language.
9108 # Then add #include lines to for a compiler that has specs and/or options.
9113 rm -f specs.h options.h gencheck.h
9114 touch specs.h options.h gencheck.h
9115 for subdir
in .
$subdirs
9117 if test -f $srcdir/$subdir/lang-specs.h
; then
9118 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9119 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9121 if test -f $srcdir/$subdir/lang-options.h
; then
9122 echo "#include \"$subdir/lang-options.h\"" >>options.h
9123 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9125 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9126 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9127 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9131 # These (without "all_") are set in each config-lang.in.
9132 # `language' must be a single word so is spelled singularly.
9138 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
9139 # List of language makefile fragments.
9144 # Add the language fragments.
9145 # Languages are added via two mechanisms. Some information must be
9146 # recorded in makefile variables, these are defined in config-lang.in.
9147 # We accumulate them and plug them into the main Makefile.
9148 # The other mechanism is a set of hooks for each of the main targets
9149 # like `clean', `install', etc.
9151 language_fragments
="Make-lang"
9152 language_hooks
="Make-hooks"
9155 for s
in ..
$subdirs
9167 .
${srcdir}/$s/config-lang.
in
9168 if test "x$language" = x
9170 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9173 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9174 all_languages
="$all_languages $language"
9175 if test "x$boot_language" = xyes
9177 all_boot_languages
="$all_boot_languages $language"
9179 all_compilers
="$all_compilers $compilers"
9180 all_stagestuff
="$all_stagestuff $stagestuff"
9181 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9182 all_headers
="$all_headers $headers"
9183 all_outputs
="$all_outputs $outputs"
9184 if test x
$outputs = x
9186 oldstyle_subdirs
="$oldstyle_subdirs $s"
9188 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9192 # Since we can't use `::' targets, we link each language in
9193 # with a set of hooks, reached indirectly via lang.${target}.
9197 target_list
="all.build all.cross start.encap rest.encap \
9199 install-normal install-common install-info install-man \
9201 mostlyclean clean distclean extraclean maintainer-clean \
9202 stage1 stage2 stage3 stage4"
9203 for t
in $target_list
9206 for lang
in ..
$all_languages
9208 if test $lang != ".."; then
9212 echo "lang.$t: $x" >> Make-hooks
9215 # If we're not building in srcdir, create .gdbinit.
9217 if test ! -f Makefile.
in; then
9218 echo "dir ." > .gdbinit
9219 echo "dir ${srcdir}" >> .gdbinit
9220 if test x
$gdb_needs_out_file_path = xyes
9222 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9224 if test "x$subdirs" != x
; then
9227 echo "dir ${srcdir}/$s" >> .gdbinit
9230 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9233 # Define variables host_canonical and build_canonical
9234 # because some Cygnus local changes in the Makefile depend on them.
9235 build_canonical
=${build}
9236 host_canonical
=${host}
9238 if test "${host}" != "${target}" ; then
9239 target_subdir
=${target}/
9245 # If this is using newlib, then define inhibit_libc in
9246 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9247 # libgcc.a, but that's OK because newib should have its own version of
9250 if test x
$with_newlib = xyes
; then
9251 inhibit_libc
=-Dinhibit_libc
9255 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9256 # absolute path for gcc_tooldir based on inserting the number of up-directory
9257 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9258 # $(libsubdir)/@(unlibsubdir) based path.
9259 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9260 # make and thus we'd get different behavior depending on where we built the
9262 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9263 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9265 # An explanation of the sed strings:
9266 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9267 # -e 's|/$||' match a trailing forward slash and eliminates it
9268 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9269 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9271 # (*) Note this pattern overwrites the first character of the string
9272 # with a forward slash if one is not already present. This is not a
9273 # problem because the exact names of the sub-directories concerned is
9274 # unimportant, just the number of them matters.
9276 # The practical upshot of these patterns is like this:
9278 # prefix exec_prefix result
9279 # ------ ----------- ------
9281 # /foo/ /foo/bar ../
9282 # /foo /foo/bar/ ../
9283 # /foo/ /foo/bar/ ../
9284 # /foo /foo/bar/ugg ../../
9287 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9292 # Nothing to do for FLOAT_H, float_format already handled.
9296 # Process the language and host/target makefile fragments.
9297 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9299 # Substitute configuration variables
9360 # Echo that links are built
9361 if test x
$host = x
$target
9369 if test x
$host != x
$build
9371 str3
=" on a $build system"
9374 if test "x$str2" != x ||
test "x$str3" != x
9379 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9381 if test "x$str2" != x ||
test "x$str3" != x
9383 echo " ${str2}${str3}." 1>&2
9386 # Truncate the target if necessary
9387 if test x
$host_truncate_target != x
; then
9388 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9391 # Configure the subdirectories
9392 # AC_CONFIG_SUBDIRS($subdirs)
9394 # Create the Makefile
9395 # and configure language subdirectories
9397 cat > confcache
<<\EOF
9398 # This file is a shell script that caches the results of configure
9399 # tests run on this system so they can be shared between configure
9400 # scripts and configure runs. It is not useful on other systems.
9401 # If it contains results you don't want to keep, you may remove or edit it.
9403 # By default, configure uses ./config.cache as the cache file,
9404 # creating it if it does not exist already. You can give configure
9405 # the --cache-file=FILE option to use a different cache file; that is
9406 # what configure does when it calls configure scripts in
9407 # subdirectories, so they share the cache.
9408 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9409 # config.status only pays attention to the cache file if you give it the
9410 # --recheck option to rerun configure.
9413 # The following way of writing the cache mishandles newlines in values,
9414 # but we know of no workaround that is simple, portable, and efficient.
9415 # So, don't put newlines in cache variables' values.
9416 # Ultrix sh set writes to stderr and can't be redirected directly,
9417 # and sets the high bit in the cache file unless we assign to the vars.
9419 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9421 # `set' does not quote correctly, so add quotes (double-quote substitution
9422 # turns \\\\ into \\, and sed turns \\ into \).
9424 -e "s/'/'\\\\''/g" \
9425 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9428 # `set' quotes correctly as required by POSIX, so do not add quotes.
9429 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9432 if cmp -s $cache_file confcache
; then
9435 if test -w $cache_file; then
9436 echo "updating cache $cache_file"
9437 cat confcache
> $cache_file
9439 echo "not updating unwritable cache $cache_file"
9444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9446 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9447 # Let make expand exec_prefix.
9448 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9450 # Any assignment to VPATH causes Sun make to only execute
9451 # the first set of double-colon rules, so remove it if not needed.
9452 # If there is a colon in the path, we need to keep it.
9453 if test "x$srcdir" = x.
; then
9454 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9457 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9459 DEFS
=-DHAVE_CONFIG_H
9461 # Without the "./", some shells look in PATH for config.status.
9462 : ${CONFIG_STATUS=./config.status}
9464 echo creating
$CONFIG_STATUS
9465 rm -f $CONFIG_STATUS
9466 cat > $CONFIG_STATUS <<EOF
9468 # Generated automatically by configure.
9469 # Run this file to recreate the current configuration.
9470 # This directory was configured as follows,
9471 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9473 # $0 $ac_configure_args
9475 # Compiler output produced by configure, useful for debugging
9476 # configure, is in ./config.log if it exists.
9478 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9481 case "\$ac_option" in
9482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9483 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9484 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9485 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9486 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9488 -help | --help | --hel | --he | --h)
9489 echo "\$ac_cs_usage"; exit 0 ;;
9490 *) echo "\$ac_cs_usage"; exit 1 ;;
9494 ac_given_srcdir=$srcdir
9496 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9498 cat >> $CONFIG_STATUS <<EOF
9500 # Protect against being on the right side of a sed subst in config.status.
9501 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9502 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9506 s%@CFLAGS@%$CFLAGS%g
9507 s%@CPPFLAGS@%$CPPFLAGS%g
9508 s%@CXXFLAGS@%$CXXFLAGS%g
9509 s%@FFLAGS@%$FFLAGS%g
9511 s%@LDFLAGS@%$LDFLAGS%g
9513 s%@exec_prefix@%$exec_prefix%g
9514 s%@prefix@%$prefix%g
9515 s%@program_transform_name@%$program_transform_name%g
9516 s%@bindir@%$bindir%g
9517 s%@sbindir@%$sbindir%g
9518 s%@libexecdir@%$libexecdir%g
9519 s%@datadir@%$datadir%g
9520 s%@sysconfdir@%$sysconfdir%g
9521 s%@sharedstatedir@%$sharedstatedir%g
9522 s%@localstatedir@%$localstatedir%g
9523 s%@libdir@%$libdir%g
9524 s%@includedir@%$includedir%g
9525 s%@oldincludedir@%$oldincludedir%g
9526 s%@infodir@%$infodir%g
9527 s%@mandir@%$mandir%g
9529 s%@host_alias@%$host_alias%g
9530 s%@host_cpu@%$host_cpu%g
9531 s%@host_vendor@%$host_vendor%g
9532 s%@host_os@%$host_os%g
9533 s%@target@%$target%g
9534 s%@target_alias@%$target_alias%g
9535 s%@target_cpu@%$target_cpu%g
9536 s%@target_vendor@%$target_vendor%g
9537 s%@target_os@%$target_os%g
9539 s%@build_alias@%$build_alias%g
9540 s%@build_cpu@%$build_cpu%g
9541 s%@build_vendor@%$build_vendor%g
9542 s%@build_os@%$build_os%g
9544 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9545 s%@SET_MAKE@%$SET_MAKE%g
9548 s%@LEXLIB@%$LEXLIB%g
9551 s%@RANLIB@%$RANLIB%g
9553 s%@INSTALL@%$INSTALL%g
9554 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9555 s%@INSTALL_DATA@%$INSTALL_DATA%g
9558 s%@vfprintf@%$vfprintf%g
9559 s%@doprint@%$doprint%g
9560 s%@manext@%$manext%g
9561 s%@objext@%$objext%g
9562 s%@PACKAGE@%$PACKAGE%g
9563 s%@VERSION@%$VERSION%g
9564 s%@ALLOCA@%$ALLOCA%g
9565 s%@USE_NLS@%$USE_NLS%g
9566 s%@MSGFMT@%$MSGFMT%g
9567 s%@GMSGFMT@%$GMSGFMT%g
9568 s%@XGETTEXT@%$XGETTEXT%g
9569 s%@GENCAT@%$GENCAT%g
9570 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9571 s%@CATALOGS@%$CATALOGS%g
9572 s%@CATOBJEXT@%$CATOBJEXT%g
9573 s%@DATADIRNAME@%$DATADIRNAME%g
9574 s%@GMOFILES@%$GMOFILES%g
9575 s%@INSTOBJEXT@%$INSTOBJEXT%g
9576 s%@INTLDEPS@%$INTLDEPS%g
9577 s%@INTLLIBS@%$INTLLIBS%g
9578 s%@INTLOBJS@%$INTLOBJS%g
9579 s%@POFILES@%$POFILES%g
9581 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9583 s%@GT_YES@%$GT_YES%g
9584 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9586 s%@gthread_flags@%$gthread_flags%g
9588 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9589 s%@build_canonical@%$build_canonical%g
9590 s%@host_canonical@%$host_canonical%g
9591 s%@target_subdir@%$target_subdir%g
9592 s%@inhibit_libc@%$inhibit_libc%g
9593 s%@gcc_tooldir@%$gcc_tooldir%g
9594 s%@dollar@%$dollar%g
9595 s%@objdir@%$objdir%g
9596 s%@subdirs@%$subdirs%g
9597 s%@all_boot_languages@%$all_boot_languages%g
9598 s%@all_compilers@%$all_compilers%g
9599 s%@all_diff_excludes@%$all_diff_excludes%g
9600 s%@all_headers@%$all_headers%g
9601 s%@all_lang_makefiles@%$all_lang_makefiles%g
9602 s%@all_languages@%$all_languages%g
9603 s%@all_lib2funcs@%$all_lib2funcs%g
9604 s%@all_stagestuff@%$all_stagestuff%g
9605 s%@build_exeext@%$build_exeext%g
9606 s%@build_install_headers_dir@%$build_install_headers_dir%g
9607 s%@build_xm_file_list@%$build_xm_file_list%g
9608 s%@cc_set_by_configure@%$cc_set_by_configure%g
9609 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9610 s%@cpp_install_dir@%$cpp_install_dir%g
9611 s%@cpp_main@%$cpp_main%g
9612 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9613 s%@dep_tmake_file@%$dep_tmake_file%g
9614 s%@extra_c_flags@%$extra_c_flags%g
9615 s%@extra_c_objs@%$extra_c_objs%g
9616 s%@extra_cpp_objs@%$extra_cpp_objs%g
9617 s%@extra_cxx_objs@%$extra_cxx_objs%g
9618 s%@extra_headers_list@%$extra_headers_list%g
9619 s%@extra_objs@%$extra_objs%g
9620 s%@extra_parts@%$extra_parts%g
9621 s%@extra_passes@%$extra_passes%g
9622 s%@extra_programs@%$extra_programs%g
9623 s%@fixinc_defs@%$fixinc_defs%g
9624 s%@float_h_file@%$float_h_file%g
9625 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9626 s%@gcc_version@%$gcc_version%g
9627 s%@gcc_version_trigger@%$gcc_version_trigger%g
9628 s%@host_exeext@%$host_exeext%g
9629 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9630 s%@host_xm_file_list@%$host_xm_file_list%g
9631 s%@install@%$install%g
9632 s%@lang_options_files@%$lang_options_files%g
9633 s%@lang_specs_files@%$lang_specs_files%g
9634 s%@lang_tree_files@%$lang_tree_files%g
9635 s%@local_prefix@%$local_prefix%g
9636 s%@maybe_use_collect2@%$maybe_use_collect2%g
9637 s%@md_file@%$md_file%g
9638 s%@objc_boehm_gc@%$objc_boehm_gc%g
9639 s%@out_file@%$out_file%g
9640 s%@out_object_file@%$out_object_file%g
9641 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9642 s%@symbolic_link@%$symbolic_link%g
9643 s%@thread_file@%$thread_file%g
9644 s%@tm_file_list@%$tm_file_list%g
9645 s%@will_use_collect2@%$will_use_collect2%g
9646 /@target_overrides@/r $target_overrides
9647 s%@target_overrides@%%g
9648 /@host_overrides@/r $host_overrides
9649 s%@host_overrides@%%g
9650 s%@cross_defines@%$cross_defines%g
9651 /@cross_overrides@/r $cross_overrides
9652 s%@cross_overrides@%%g
9653 /@build_overrides@/r $build_overrides
9654 s%@build_overrides@%%g
9655 /@language_fragments@/r $language_fragments
9656 s%@language_fragments@%%g
9657 /@language_hooks@/r $language_hooks
9658 s%@language_hooks@%%g
9663 cat >> $CONFIG_STATUS <<\EOF
9665 # Split the substitutions into bite-sized pieces for seds with
9666 # small command number limits, like on Digital OSF/1 and HP-UX.
9667 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9668 ac_file
=1 # Number of current file.
9669 ac_beg
=1 # First line for current file.
9670 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9673 while $ac_more_lines; do
9674 if test $ac_beg -gt 1; then
9675 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9677 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9679 if test ! -s conftest.s
$ac_file; then
9681 rm -f conftest.s
$ac_file
9683 if test -z "$ac_sed_cmds"; then
9684 ac_sed_cmds
="sed -f conftest.s$ac_file"
9686 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9688 ac_file
=`expr $ac_file + 1`
9690 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9693 if test -z "$ac_sed_cmds"; then
9698 cat >> $CONFIG_STATUS <<EOF
9700 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9702 cat >> $CONFIG_STATUS <<\EOF
9703 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9704 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9706 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9707 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9708 *) ac_file_in
="${ac_file}.in" ;;
9711 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9713 # Remove last slash and all that follows it. Not all systems have dirname.
9714 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9715 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9716 # The file is in a subdirectory.
9717 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9718 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9719 # A "../" for each directory in $ac_dir_suffix.
9720 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9722 ac_dir_suffix
= ac_dots
=
9725 case "$ac_given_srcdir" in
9727 if test -z "$ac_dots"; then top_srcdir
=.
9728 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9729 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9731 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9732 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9736 echo creating
"$ac_file"
9738 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9740 *Makefile
*) ac_comsub
="1i\\
9741 # $configure_input" ;;
9745 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9747 s%@configure_input@%$configure_input%g
9748 s%@srcdir@%$srcdir%g
9749 s%@top_srcdir@%$top_srcdir%g
9750 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9757 # ac_d sets the value in "#define NAME VALUE" lines.
9758 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9759 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9762 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9763 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9764 ac_uB
='\([ ]\)%\1#\2define\3'
9767 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9768 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9769 ac_eB
='$%\1#\2define\3'
9773 if test "${CONFIG_HEADERS+set}" != set; then
9775 cat >> $CONFIG_STATUS <<EOF
9776 CONFIG_HEADERS="auto-host.h:config.in"
9778 cat >> $CONFIG_STATUS <<\EOF
9780 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9783 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9784 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9785 *) ac_file_in
="${ac_file}.in" ;;
9788 echo creating
$ac_file
9790 rm -f conftest.frag conftest.
in conftest.out
9791 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9792 cat $ac_file_inputs > conftest.
in
9796 # Transform confdefs.h into a sed script conftest.vals that substitutes
9797 # the proper values into config.h.in to produce config.h. And first:
9798 # Protect against being on the right side of a sed subst in config.status.
9799 # Protect against being in an unquoted here document in config.status.
9801 cat > conftest.hdr
<<\EOF
9804 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9808 sed -n -f conftest.hdr confdefs.h > conftest.vals
9811 # This sed command replaces #undef with comments. This is necessary, for
9812 # example, in the case of _POSIX_SOURCE, which is predefined and required
9813 # on some systems where configure will not decide to define it.
9814 cat >> conftest.vals <<\EOF
9815 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9818 # Break up conftest.vals because some shells have a limit on
9819 # the size of here documents, and old seds have small limits too.
9824 ac_lines=`grep -c . conftest.vals
`
9825 # grep -c gives empty output for an empty file on some AIX systems.
9826 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9827 # Write a limited-size here document to conftest.frag.
9828 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9829 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9831 sed -f conftest.frag conftest.in > conftest.out
9833 mv conftest.out conftest.in
9835 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9837 mv conftest.tail conftest.vals
9841 cat >> $CONFIG_STATUS <<\EOF
9842 rm -f conftest.frag conftest.h
9843 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9844 cat conftest.in >> conftest.h
9846 if cmp -s $ac_file conftest.h 2>/dev/null; then
9847 echo "$ac_file is unchanged"
9850 # Remove last slash and all that follows it. Not all systems have dirname.
9851 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9852 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9853 # The file is in a subdirectory.
9854 test ! -d "$ac_dir" && mkdir "$ac_dir"
9857 mv conftest.h $ac_file
9863 cat >> $CONFIG_STATUS <<EOF
9864 ac_sources="$nls_cv_header_libgt"
9865 ac_dests="$nls_cv_header_intl"
9868 cat >> $CONFIG_STATUS <<\EOF
9869 srcdir=$ac_given_srcdir
9870 while test -n "$ac_sources"; do
9871 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9872 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9874 echo "linking $srcdir/$ac_source to $ac_dest"
9876 if test ! -r $srcdir/$ac_source; then
9877 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9881 # Make relative symlinks.
9882 # Remove last slash and all that follows it. Not all systems have dirname.
9883 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9884 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9885 # The dest file is in a subdirectory.
9886 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9887 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9888 # A "../" for each directory in $ac_dest_dir_suffix.
9889 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9891 ac_dest_dir_suffix= ac_dots=
9895 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9896 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9899 # Make a symlink if possible; otherwise try a hard link.
9900 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9901 ln $srcdir/$ac_source $ac_dest; then :
9903 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9907 cat >> $CONFIG_STATUS <<EOF
9913 target_alias='${target_alias}'
9915 subdirs='${subdirs}'
9916 oldstyle_subdirs='${oldstyle_subdirs}'
9917 symbolic_link='${symbolic_link}'
9918 program_transform_set='${program_transform_set}'
9919 program_transform_name='${program_transform_name}'
9920 dep_host_xmake_file='${dep_host_xmake_file}'
9921 host_xmake_file='${host_xmake_file}'
9922 dep_tmake_file='${dep_tmake_file}'
9923 tmake_file='${tmake_file}'
9924 thread_file='${thread_file}'
9925 gcc_version='${gcc_version}'
9926 gcc_version_trigger='${gcc_version_trigger}'
9927 local_prefix='${local_prefix}'
9928 build_install_headers_dir='${build_install_headers_dir}'
9929 build_exeext='${build_exeext}'
9930 host_exeext='${host_exeext}'
9931 out_file='${out_file}'
9932 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9933 SET_MAKE='${SET_MAKE}'
9934 target_list='${target_list}'
9935 target_overrides='${target_overrides}'
9936 host_overrides='${host_overrides}'
9937 cross_defines='${cross_defines}'
9938 cross_overrides='${cross_overrides}'
9939 build_overrides='${build_overrides}'
9940 cpp_install_dir='${cpp_install_dir}'
9943 cat >> $CONFIG_STATUS <<\EOF
9944 case "$CONFIG_FILES" in *po/Makefile.in*)
9945 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9948 . $srcdir/configure.lang
9949 case x$CONFIG_HEADERS in
9950 xauto-host.h:config.in)
9953 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9954 # bootstrapping and the installation procedure can still use
9955 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9956 # FLAGS_TO_PASS has been modified to solve the problem there.
9957 # This is virtually a duplicate of what happens in configure.lang; we do
9958 # an extra check to make sure this only happens if ln -s can be used.
9959 if test "$symbolic_link" = "ln -s"; then
9960 for d in .. ${subdirs} ; do
9961 if test $d != ..; then
9964 for t in stage1 stage2 stage3 stage4 include
9967 $symbolic_link ../$t $t 2>/dev/null
9973 # Avoid having to add intl to our include paths.
9974 if test -f intl/libintl.h; then
9975 echo creating libintl.h
9976 echo '#include "intl/libintl.h"' >libintl.h
9981 chmod +x $CONFIG_STATUS
9982 rm -fr confdefs* $ac_clean_files
9983 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1