3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --enable-cpplib use cpplib for the C preprocessor."
36 --enable-c-cpplib link cpplib directly into C and C++ compilers
37 (implies --enable-cpplib)."
39 --enable-c-mbchar enable multibyte characters for C and C++."
41 --enable-haifa use the experimental scheduler.
42 --disable-haifa don't use the experimental scheduler for the
43 targets which normally enable it."
45 --enable-threads enable thread usage for target GCC.
46 --enable-threads=LIB use LIB thread package for target GCC."
48 --enable-objc-gc enable the use of Boehm's garbage collector with
49 the GNU Objective-C runtime."
51 --enable-java-gc=TYPE choose garbage collector [boehm]"
53 --enable-dwarf2 enable DWARF2 debugging as default."
55 --enable-nls use Native Language Support (disabled by default)"
57 --disable-nls do not use Native Language Support"
59 --with-included-gettext use the GNU gettext library included here"
61 --with-catgets use catgets functions if available"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
67 cache_file
=.
/config.cache
76 program_transform_name
=s
,x
,x
,
84 bindir
='${exec_prefix}/bin'
85 sbindir
='${exec_prefix}/sbin'
86 libexecdir
='${exec_prefix}/libexec'
87 datadir
='${prefix}/share'
88 sysconfdir
='${prefix}/etc'
89 sharedstatedir
='${prefix}/com'
90 localstatedir
='${prefix}/var'
91 libdir
='${exec_prefix}/lib'
92 includedir
='${prefix}/include'
93 oldincludedir
='/usr/include'
94 infodir
='${prefix}/info'
95 mandir
='${prefix}/man'
97 # Initialize some other variables.
100 SHELL
=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
126 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
127 bindir
="$ac_optarg" ;;
129 -build |
--build |
--buil |
--bui |
--bu)
131 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
132 build
="$ac_optarg" ;;
134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
136 ac_prev
=cache_file
;;
137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
139 cache_file
="$ac_optarg" ;;
141 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
143 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
145 datadir
="$ac_optarg" ;;
147 -disable-* |
--disable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* |
--enable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
171 |
--exec |
--exe |
--ex)
172 ac_prev
=exec_prefix
;;
173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
175 |
--exec=* |
--exe=* |
--ex=*)
176 exec_prefix
="$ac_optarg" ;;
178 -gas |
--gas |
--ga |
--g)
179 # Obsolete; use --with-gas.
182 -help |
--help |
--hel |
--he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host |
--host |
--hos |
--ho)
239 -host=* |
--host=* |
--hos=* |
--ho=*)
242 -includedir |
--includedir |
--includedi |
--included |
--include \
243 |
--includ |
--inclu |
--incl |
--inc)
244 ac_prev
=includedir
;;
245 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
246 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
247 includedir
="$ac_optarg" ;;
249 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
251 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
252 infodir
="$ac_optarg" ;;
254 -libdir |
--libdir |
--libdi |
--libd)
256 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
257 libdir
="$ac_optarg" ;;
259 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
260 |
--libexe |
--libex |
--libe)
261 ac_prev
=libexecdir
;;
262 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
263 |
--libexe=* |
--libex=* |
--libe=*)
264 libexecdir
="$ac_optarg" ;;
266 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
267 |
--localstate |
--localstat |
--localsta |
--localst \
268 |
--locals |
--local |
--loca |
--loc |
--lo)
269 ac_prev
=localstatedir
;;
270 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
271 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
272 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
273 localstatedir
="$ac_optarg" ;;
275 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
277 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
278 mandir
="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
288 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
289 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
292 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
293 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
294 |
--oldin |
--oldi |
--old |
--ol |
--o)
295 ac_prev
=oldincludedir
;;
296 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
297 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
298 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
299 oldincludedir
="$ac_optarg" ;;
301 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
303 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
304 prefix
="$ac_optarg" ;;
306 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
307 |
--program-pre |
--program-pr |
--program-p)
308 ac_prev
=program_prefix
;;
309 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
310 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
311 program_prefix
="$ac_optarg" ;;
313 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
314 |
--program-suf |
--program-su |
--program-s)
315 ac_prev
=program_suffix
;;
316 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
317 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
318 program_suffix
="$ac_optarg" ;;
320 -program-transform-name |
--program-transform-name \
321 |
--program-transform-nam |
--program-transform-na \
322 |
--program-transform-n |
--program-transform- \
323 |
--program-transform |
--program-transfor \
324 |
--program-transfo |
--program-transf \
325 |
--program-trans |
--program-tran \
326 |
--progr-tra |
--program-tr |
--program-t)
327 ac_prev
=program_transform_name
;;
328 -program-transform-name=* |
--program-transform-name=* \
329 |
--program-transform-nam=* |
--program-transform-na=* \
330 |
--program-transform-n=* |
--program-transform-=* \
331 |
--program-transform=* |
--program-transfor=* \
332 |
--program-transfo=* |
--program-transf=* \
333 |
--program-trans=* |
--program-tran=* \
334 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
335 program_transform_name
="$ac_optarg" ;;
337 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
338 |
-silent |
--silent |
--silen |
--sile |
--sil)
341 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
343 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
345 sbindir
="$ac_optarg" ;;
347 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
348 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
349 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
351 ac_prev
=sharedstatedir
;;
352 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
353 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
354 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
356 sharedstatedir
="$ac_optarg" ;;
358 -site |
--site |
--sit)
360 -site=* |
--site=* |
--sit=*)
363 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
365 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
366 srcdir
="$ac_optarg" ;;
368 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
369 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
370 ac_prev
=sysconfdir
;;
371 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
372 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
373 sysconfdir
="$ac_optarg" ;;
375 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
377 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
378 target
="$ac_optarg" ;;
380 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
383 -version |
--version |
--versio |
--versi |
--vers)
384 echo "configure generated by autoconf version 2.13"
388 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package
=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* |
--without-*)
401 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
414 |
--x-incl |
--x-inc |
--x-in |
--x-i)
415 ac_prev
=x_includes
;;
416 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
417 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
418 x_includes
="$ac_optarg" ;;
420 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
421 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
422 ac_prev
=x_libraries
;;
423 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
424 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
425 x_libraries
="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE
; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
476 |
--no-cr |
--no-c) ;;
477 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
478 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
479 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest
* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file
=tree.c
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted
=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted
=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE
; then
530 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file
in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp
='$CPP $CPPFLAGS'
553 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling
=$ac_cv_prog_cc_cross
559 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
568 ac_n
= ac_c
='\c' ac_t
=
576 symbolic_link
='ln -s'
579 # Check for bogus environment variables.
580 # Test if LIBRARY_PATH contains the notation for the current directory
581 # since this would lead to problems installing/building glibc.
582 # LIBRARY_PATH contains the current directory if one of the following
584 # - one of the terminals (":" and ";") is the first or last sign
585 # - two terminals occur directly after each other
586 # - the path contains an element with a dot in it
587 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
588 echo "configure:589: checking LIBRARY_PATH variable" >&5
589 case ${LIBRARY_PATH} in
590 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
591 library_path_setting
="contains current directory"
594 library_path_setting
="ok"
597 echo "$ac_t""$library_path_setting" 1>&6
598 if test "$library_path_setting" != "ok"; then
599 { echo "configure: error:
600 *** LIBRARY_PATH shouldn't contain the current directory when
601 *** building egcs. Please change the environment variable
602 *** and run configure again." 1>&2; exit 1; }
605 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
606 # since this would lead to problems installing/building glibc.
607 # GCC_EXEC_PREFIX contains the current directory if one of the following
609 # - one of the terminals (":" and ";") is the first or last sign
610 # - two terminals occur directly after each other
611 # - the path contains an element with a dot in it
612 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
613 echo "configure:614: checking GCC_EXEC_PREFIX variable" >&5
614 case ${GCC_EXEC_PREFIX} in
615 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
616 gcc_exec_prefix_setting
="contains current directory"
619 gcc_exec_prefix_setting
="ok"
622 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
623 if test "$gcc_exec_prefix_setting" != "ok"; then
624 { echo "configure: error:
625 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
626 *** building egcs. Please change the environment variable
627 *** and run configure again." 1>&2; exit 1; }
630 # Check for additional parameters
633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
634 if test "${with_gnu_ld+set}" = set; then
635 withval
="$with_gnu_ld"
636 gnu_ld_flag
="$with_gnu_ld"
642 # With pre-defined ld
643 # Check whether --with-ld or --without-ld was given.
644 if test "${with_ld+set}" = set; then
646 DEFAULT_LINKER
="$with_ld"
649 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
650 if test ! -x "$DEFAULT_LINKER"; then
651 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
652 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
655 cat >> confdefs.h
<<EOF
656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
662 # Check whether --with-gnu-as or --without-gnu-as was given.
663 if test "${with_gnu_as+set}" = set; then
664 withval
="$with_gnu_as"
665 gas_flag
="$with_gnu_as"
671 # Check whether --with-as or --without-as was given.
672 if test "${with_as+set}" = set; then
674 DEFAULT_ASSEMBLER
="$with_as"
677 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
678 if test ! -x "$DEFAULT_ASSEMBLER"; then
679 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
680 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
683 cat >> confdefs.h
<<EOF
684 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
690 # Check whether --with-stabs or --without-stabs was given.
691 if test "${with_stabs+set}" = set; then
692 withval
="$with_stabs"
700 # Check whether --with-elf or --without-elf was given.
701 if test "${with_elf+set}" = set; then
709 # Specify the local prefix
711 # Check whether --with-local-prefix or --without-local-prefix was given.
712 if test "${with_local_prefix+set}" = set; then
713 withval
="$with_local_prefix"
715 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
717 *) local_prefix
=$with_local_prefix ;;
722 # Default local prefix if it is empty
723 if test x
$local_prefix = x
; then
724 local_prefix
=/usr
/local
727 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
728 # passed in by the toplevel make and thus we'd get different behavior
729 # depending on where we built the sources.
731 # Specify the g++ header file directory
732 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
733 if test "${with_gxx_include_dir+set}" = set; then
734 withval
="$with_gxx_include_dir"
736 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
738 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
743 if test x
${gcc_gxx_include_dir} = x
; then
744 if test x
${enable_version_specific_runtime_libs} = xyes
; then
745 gcc_gxx_include_dir
='${libsubdir}/include/g++'
747 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
748 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
752 # Enable expensive internal checks
753 # Check whether --enable-checking or --disable-checking was given.
754 if test "${enable_checking+set}" = set; then
755 enableval
="$enable_checking"
756 case "${enableval}" in
757 yes) cat >> confdefs.h
<<\EOF
758 #define ENABLE_CHECKING 1
762 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
767 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
769 # Check whether --enable-cpplib or --disable-cpplib was given.
770 if test "${enable_cpplib+set}" = set; then
771 enableval
="$enable_cpplib"
772 if test x
$enable_cpplib != xno
; then
778 # Link cpplib into the compiler proper, for C/C++/ObjC.
779 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
780 if test "${enable_c_cpplib+set}" = set; then
781 enableval
="$enable_c_cpplib"
782 if test x
$enable_c_cpplib != xno
; then
783 extra_c_objs
="${extra_c_objs} libcpp.a"
784 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
785 extra_c_flags
="${extra_c_flags} -DUSE_CPPLIB=1"
791 # Enable Multibyte Characters for C/C++
792 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
793 if test "${enable_c_mbchar+set}" = set; then
794 enableval
="$enable_c_mbchar"
795 if test x
$enable_c_mbchar != xno
; then
796 extra_c_flags
=-DMULTIBYTE_CHARS=1
801 # Enable Haifa scheduler.
802 # Check whether --enable-haifa or --disable-haifa was given.
803 if test "${enable_haifa+set}" = set; then
804 enableval
="$enable_haifa"
810 # Pass with no value to take the default
811 # Pass with a value to specify a thread package
812 # Check whether --enable-threads or --disable-threads was given.
813 if test "${enable_threads+set}" = set; then
814 enableval
="$enable_threads"
815 if test x
$enable_threads = xno
; then
823 enable_threads_flag
=$enable_threads
824 # Check if a valid thread package
825 case x
${enable_threads_flag} in
828 target_thread_file
='single'
832 target_thread_file
=''
834 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
835 xsolaris | xwin32 | xdce | xvxworks
)
836 target_thread_file
=$enable_threads_flag
839 echo "$enable_threads is an unknown thread package" 1>&2
844 # Check whether --enable-objc-gc or --disable-objc-gc was given.
845 if test "${enable_objc_gc+set}" = set; then
846 enableval
="$enable_objc_gc"
847 if [ x
$enable_objc_gc = xno
]; then
857 # Check whether --enable-java-gc or --disable-java-gc was given.
858 if test "${enable_java_gc+set}" = set; then
859 enableval
="$enable_java_gc"
867 # Check whether --with-dwarf2 or --without-dwarf2 was given.
868 if test "${with_dwarf2+set}" = set; then
869 withval
="$with_dwarf2"
870 dwarf2
="$with_dwarf2"
876 # Determine the host, build, and target systems
878 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
879 if test -f $ac_dir/install-sh
; then
881 ac_install_sh
="$ac_aux_dir/install-sh -c"
883 elif test -f $ac_dir/install.sh
; then
885 ac_install_sh
="$ac_aux_dir/install.sh -c"
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
892 ac_config_guess
=$ac_aux_dir/config.guess
893 ac_config_sub
=$ac_aux_dir/config.sub
894 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
897 # Do some error checking and defaulting for the host and target type.
899 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
902 # 1. You are not allowed to specify --host, --target, and nonopt at the
904 # 2. Host defaults to nonopt.
905 # 3. If nonopt is not specified, then host defaults to the current host,
906 # as determined by config.guess.
907 # 4. Target and build default to nonopt.
908 # 5. If nonopt is not specified, then target and build default to host.
910 # The aliases save the names the user supplied, while $host etc.
911 # will get canonicalized.
912 case $host---$target---$nonopt in
913 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
914 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
918 # Make sure we can run config.sub.
919 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
920 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
923 echo $ac_n "checking host system type""... $ac_c" 1>&6
924 echo "configure:925: checking host system type" >&5
927 case "$host_alias" in
931 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
932 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
934 *) host_alias
=$nonopt ;;
938 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
939 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
942 echo "$ac_t""$host" 1>&6
944 echo $ac_n "checking target system type""... $ac_c" 1>&6
945 echo "configure:946: checking target system type" >&5
948 case "$target_alias" in
951 NONE
) target_alias
=$host_alias ;;
952 *) target_alias
=$nonopt ;;
956 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
957 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960 echo "$ac_t""$target" 1>&6
962 echo $ac_n "checking build system type""... $ac_c" 1>&6
963 echo "configure:964: checking build system type" >&5
966 case "$build_alias" in
969 NONE
) build_alias
=$host_alias ;;
970 *) build_alias
=$nonopt ;;
974 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
975 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978 echo "$ac_t""$build" 1>&6
980 test "$host_alias" != "$target_alias" &&
981 test "$program_prefix$program_suffix$program_transform_name" = \
983 program_prefix
=${target_alias}-
986 # Find the native compiler
987 # Extract the first word of "gcc", so it can be a program name with args.
988 set dummy gcc
; ac_word
=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 if test -n "$CC"; then
995 ac_cv_prog_CC
="$CC" # Let the user override the test.
997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
999 for ac_dir
in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir
=.
1001 if test -f $ac_dir/$ac_word; then
1010 if test -n "$CC"; then
1011 echo "$ac_t""$CC" 1>&6
1013 echo "$ac_t""no" 1>&6
1016 if test -z "$CC"; then
1017 # Extract the first word of "cc", so it can be a program name with args.
1018 set dummy cc
; ac_word
=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC
="$CC" # Let the user override the test.
1027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1030 for ac_dir
in $ac_dummy; do
1031 test -z "$ac_dir" && ac_dir
=.
1032 if test -f $ac_dir/$ac_word; then
1033 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1034 ac_prog_rejected
=yes
1042 if test $ac_prog_rejected = yes; then
1043 # We found a bogon in the path, so make sure we never use it.
1044 set dummy
$ac_cv_prog_CC
1046 if test $# -gt 0; then
1047 # We chose a different compiler from the bogus one.
1048 # However, it has the same basename, so the bogon will be chosen
1049 # first if we set CC to just the basename; use the full file name.
1051 set dummy
"$ac_dir/$ac_word" "$@"
1059 if test -n "$CC"; then
1060 echo "$ac_t""$CC" 1>&6
1062 echo "$ac_t""no" 1>&6
1065 if test -z "$CC"; then
1066 case "`uname -s`" in
1068 # Extract the first word of "cl", so it can be a program name with args.
1069 set dummy cl
; ac_word
=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC
="$CC" # Let the user override the test.
1078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1080 for ac_dir
in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir
=.
1082 if test -f $ac_dir/$ac_word; then
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1094 echo "$ac_t""no" 1>&6
1099 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1102 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1107 ac_cpp
='$CPP $CPPFLAGS'
1108 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1109 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1110 cross_compiling
=$ac_cv_prog_cc_cross
1112 cat > conftest.
$ac_ext << EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1119 if { (eval echo configure
:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1120 ac_cv_prog_cc_works
=yes
1121 # If we can't run a trivial program, we are probably using a cross compiler.
1122 if (.
/conftest
; exit) 2>/dev
/null
; then
1123 ac_cv_prog_cc_cross
=no
1125 ac_cv_prog_cc_cross
=yes
1128 echo "configure: failed program was:" >&5
1129 cat conftest.
$ac_ext >&5
1130 ac_cv_prog_cc_works
=no
1134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1135 ac_cpp
='$CPP $CPPFLAGS'
1136 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1137 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1138 cross_compiling
=$ac_cv_prog_cc_cross
1140 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1141 if test $ac_cv_prog_cc_works = no
; then
1142 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1144 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1146 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1147 cross_compiling
=$ac_cv_prog_cc_cross
1149 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether we are using GNU C" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftest.c
<<EOF
1159 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1166 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1168 if test $ac_cv_prog_gcc = yes; then
1174 ac_test_CFLAGS
="${CFLAGS+set}"
1175 ac_save_CFLAGS
="$CFLAGS"
1177 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1178 echo "configure:1179: checking whether ${CC-cc} accepts -g" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 echo 'void f(){}' > conftest.c
1183 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1192 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1193 if test "$ac_test_CFLAGS" = set; then
1194 CFLAGS
="$ac_save_CFLAGS"
1195 elif test $ac_cv_prog_cc_g = yes; then
1196 if test "$GCC" = yes; then
1202 if test "$GCC" = yes; then
1210 # If the native compiler is GCC, we can enable warnings even in stage1.
1211 # That's useful for people building cross-compilers, or just running a
1213 if test "x$GCC" = "xyes"; then
1214 stage1_warn_cflags
='$(WARN_CFLAGS)'
1216 stage1_warn_cflags
=""
1220 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether ${MAKE-make} sets \${MAKE}" >&5
1222 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1223 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 cat > conftestmake
<<\EOF
1228 @
echo 'ac_maketemp="${MAKE}"'
1230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1231 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1232 if test -n "$ac_maketemp"; then
1233 eval ac_cv_prog_make_
${ac_make}_set
=yes
1235 eval ac_cv_prog_make_
${ac_make}_set
=no
1239 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1243 echo "$ac_t""no" 1>&6
1244 SET_MAKE
="MAKE=${MAKE-make}"
1248 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether a default assembler was specified" >&5
1250 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1251 if test x
"$gas_flag" = x
"no"; then
1252 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1254 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1257 echo "$ac_t""no" 1>&6
1260 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether a default linker was specified" >&5
1262 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1263 if test x
"$gnu_ld_flag" = x
"no"; then
1264 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1266 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1269 echo "$ac_t""no" 1>&6
1272 # Find some useful tools
1273 for ac_prog
in mawk gawk nawk
awk
1275 # Extract the first word of "$ac_prog", so it can be a program name with args.
1276 set dummy
$ac_prog; ac_word
=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$AWK"; then
1283 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1287 for ac_dir
in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir
=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_AWK
="$ac_prog"
1297 AWK
="$ac_cv_prog_AWK"
1298 if test -n "$AWK"; then
1299 echo "$ac_t""$AWK" 1>&6
1301 echo "$ac_t""no" 1>&6
1304 test -n "$AWK" && break
1307 # Extract the first word of "flex", so it can be a program name with args.
1308 set dummy flex
; ac_word
=$2
1309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1310 echo "configure:1311: checking for $ac_word" >&5
1311 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 if test -n "$LEX"; then
1315 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1317 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1319 for ac_dir
in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir
=.
1321 if test -f $ac_dir/$ac_word; then
1322 ac_cv_prog_LEX
="flex"
1327 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1330 LEX
="$ac_cv_prog_LEX"
1331 if test -n "$LEX"; then
1332 echo "$ac_t""$LEX" 1>&6
1334 echo "$ac_t""no" 1>&6
1337 if test -z "$LEXLIB"
1343 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1344 echo "configure:1345: checking for yywrap in -l$ac_lib" >&5
1345 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 ac_save_LIBS
="$LIBS"
1350 LIBS
="-l$ac_lib $LIBS"
1351 cat > conftest.
$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1354 /* Override any gcc2 internal prototype to avoid an error. */
1355 /* We use char because int might match the return type of a gcc2
1356 builtin and then its argument prototype would still apply. */
1363 if { (eval echo configure
:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1365 eval "ac_cv_lib_$ac_lib_var=yes"
1367 echo "configure: failed program was:" >&5
1368 cat conftest.
$ac_ext >&5
1370 eval "ac_cv_lib_$ac_lib_var=no"
1373 LIBS
="$ac_save_LIBS"
1376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1380 echo "$ac_t""no" 1>&6
1385 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether ln works" >&5
1387 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 rm -f conftestdata_t
1391 echo >conftestdata_f
1392 if ln conftestdata_f conftestdata_t
2>/dev
/null
1396 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1398 gcc_cv_prog_LN
="ln -s"
1403 rm -f conftestdata_f conftestdata_t
1406 LN
="$gcc_cv_prog_LN"
1407 if test "$gcc_cv_prog_LN" = "ln"; then
1408 echo "$ac_t""yes" 1>&6
1410 if test "$gcc_cv_prog_LN" = "ln -s"; then
1411 echo "$ac_t""no, using ln -s" 1>&6
1413 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1417 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether ln -s works" >&5
1419 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 rm -f conftestdata_t
1423 echo >conftestdata_f
1424 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1426 gcc_cv_prog_LN_S
="ln -s"
1428 if ln conftestdata_f conftestdata_t
2>/dev
/null
1435 rm -f conftestdata_f conftestdata_t
1438 LN_S
="$gcc_cv_prog_LN_S"
1439 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1440 echo "$ac_t""yes" 1>&6
1442 if test "$gcc_cv_prog_LN_S" = "ln"; then
1443 echo "$ac_t""no, using ln" 1>&6
1445 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1449 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1450 echo "configure:1451: checking for volatile" >&5
1451 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 cat > conftest.
$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1462 if { (eval echo configure
:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1464 gcc_cv_c_volatile
=yes
1466 echo "configure: failed program was:" >&5
1467 cat conftest.
$ac_ext >&5
1469 gcc_cv_c_volatile
=no
1474 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1475 if test $gcc_cv_c_volatile = yes ; then
1476 cat >> confdefs.h
<<\EOF
1477 #define HAVE_VOLATILE 1
1482 # Extract the first word of "ranlib", so it can be a program name with args.
1483 set dummy ranlib
; ac_word
=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1486 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 if test -n "$RANLIB"; then
1490 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1492 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1494 for ac_dir
in $ac_dummy; do
1495 test -z "$ac_dir" && ac_dir
=.
1496 if test -f $ac_dir/$ac_word; then
1497 ac_cv_prog_RANLIB
="ranlib"
1502 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1505 RANLIB
="$ac_cv_prog_RANLIB"
1506 if test -n "$RANLIB"; then
1507 echo "$ac_t""$RANLIB" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 for ac_prog
in 'bison -y' byacc
1514 # Extract the first word of "$ac_prog", so it can be a program name with args.
1515 set dummy
$ac_prog; ac_word
=$2
1516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1517 echo "configure:1518: checking for $ac_word" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 if test -n "$YACC"; then
1522 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1524 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1526 for ac_dir
in $ac_dummy; do
1527 test -z "$ac_dir" && ac_dir
=.
1528 if test -f $ac_dir/$ac_word; then
1529 ac_cv_prog_YACC
="$ac_prog"
1536 YACC
="$ac_cv_prog_YACC"
1537 if test -n "$YACC"; then
1538 echo "$ac_t""$YACC" 1>&6
1540 echo "$ac_t""no" 1>&6
1543 test -n "$YACC" && break
1545 test -n "$YACC" || YACC
="yacc"
1547 # Find a good install program. We prefer a C program (faster),
1548 # so one script is as good as another. But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1558 echo "configure:1559: checking for a BSD compatible install" >&5
1559 if test -z "$INSTALL"; then
1560 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1564 for ac_dir
in $PATH; do
1565 # Account for people who put trailing slashes in PATH elements.
1567 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1569 # OSF1 and SCO ODT 3.0 have their own names for install.
1570 for ac_prog
in ginstall scoinst
install; do
1571 if test -f $ac_dir/$ac_prog; then
1572 if test $ac_prog = install &&
1573 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1574 # AIX install. It has an incompatible calling convention.
1575 # OSF/1 installbsd also uses dspmsg, but is usable.
1578 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1589 if test "${ac_cv_path_install+set}" = set; then
1590 INSTALL
="$ac_cv_path_install"
1592 # As a last resort, use the slow shell script. We don't cache a
1593 # path for INSTALL within a source directory, because that will
1594 # break other packages using the cache if that directory is
1595 # removed, or if the path is relative.
1596 INSTALL
="$ac_install_sh"
1599 echo "$ac_t""$INSTALL" 1>&6
1601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1602 # It thinks the first close brace ends the variable substitution.
1603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1605 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1608 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1609 echo "configure:1610: checking how to run the C preprocessor" >&5
1610 # On Suns, sometimes $CPP names a directory.
1611 if test -n "$CPP" && test -d "$CPP"; then
1614 if test -z "$CPP"; then
1615 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 # This must be in double quotes, not single quotes, because CPP may get
1619 # substituted into the Makefile and "${CC-cc}" will confuse make.
1621 # On the NeXT, cc -E runs the code through the compiler's parser,
1622 # not just through cpp.
1623 cat > conftest.
$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure
:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1632 if test -z "$ac_err"; then
1636 echo "configure: failed program was:" >&5
1637 cat conftest.
$ac_ext >&5
1639 CPP
="${CC-cc} -E -traditional-cpp"
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1646 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1647 { (eval echo configure
:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1648 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1649 if test -z "$ac_err"; then
1653 echo "configure: failed program was:" >&5
1654 cat conftest.
$ac_ext >&5
1656 CPP
="${CC-cc} -nologo -E"
1657 cat > conftest.
$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1663 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1664 { (eval echo configure
:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1665 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1666 if test -z "$ac_err"; then
1670 echo "configure: failed program was:" >&5
1671 cat conftest.
$ac_ext >&5
1680 ac_cv_prog_CPP
="$CPP"
1682 CPP
="$ac_cv_prog_CPP"
1684 ac_cv_prog_CPP
="$CPP"
1686 echo "$ac_t""$CPP" 1>&6
1688 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1689 echo "configure:1690: checking for ANSI C header files" >&5
1690 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 cat > conftest.
$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1701 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1702 { (eval echo configure
:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1703 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1704 if test -z "$ac_err"; then
1706 ac_cv_header_stdc
=yes
1709 echo "configure: failed program was:" >&5
1710 cat conftest.
$ac_ext >&5
1712 ac_cv_header_stdc
=no
1716 if test $ac_cv_header_stdc = yes; then
1717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1718 cat > conftest.
$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1724 egrep "memchr" >/dev
/null
2>&1; then
1728 ac_cv_header_stdc
=no
1734 if test $ac_cv_header_stdc = yes; then
1735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1742 egrep "free" >/dev
/null
2>&1; then
1746 ac_cv_header_stdc
=no
1752 if test $ac_cv_header_stdc = yes; then
1753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1754 if test "$cross_compiling" = yes; then
1757 cat > conftest.
$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1761 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1762 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1764 int main () { int i; for (i = 0; i < 256; i++)
1765 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1769 if { (eval echo configure
:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1773 echo "configure: failed program was:" >&5
1774 cat conftest.
$ac_ext >&5
1776 ac_cv_header_stdc
=no
1784 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1785 if test $ac_cv_header_stdc = yes; then
1786 cat >> confdefs.h
<<\EOF
1787 #define STDC_HEADERS 1
1792 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1793 echo "configure:1794: checking whether time.h and sys/time.h may both be included" >&5
1794 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 cat > conftest.
$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800 #include <sys/types.h>
1801 #include <sys/time.h>
1807 if { (eval echo configure
:1808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1809 ac_cv_header_time
=yes
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1814 ac_cv_header_time
=no
1819 echo "$ac_t""$ac_cv_header_time" 1>&6
1820 if test $ac_cv_header_time = yes; then
1821 cat >> confdefs.h
<<\EOF
1822 #define TIME_WITH_SYS_TIME 1
1827 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether string.h and strings.h may both be included" >&5
1829 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1836 #include <strings.h>
1841 if { (eval echo configure
:1842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1843 gcc_cv_header_string
=yes
1845 echo "configure: failed program was:" >&5
1846 cat conftest.
$ac_ext >&5
1848 gcc_cv_header_string
=no
1853 echo "$ac_t""$gcc_cv_header_string" 1>&6
1854 if test $gcc_cv_header_string = yes; then
1855 cat >> confdefs.h
<<\EOF
1856 #define STRING_WITH_STRINGS 1
1861 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1862 echo "configure:1863: checking for sys/wait.h that is POSIX.1 compatible" >&5
1863 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 cat > conftest.
$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <sys/types.h>
1870 #include <sys/wait.h>
1872 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1875 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1880 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1883 if { (eval echo configure
:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 ac_cv_header_sys_wait_h
=yes
1887 echo "configure: failed program was:" >&5
1888 cat conftest.
$ac_ext >&5
1890 ac_cv_header_sys_wait_h
=no
1895 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1896 if test $ac_cv_header_sys_wait_h = yes; then
1897 cat >> confdefs.h
<<\EOF
1898 #define HAVE_SYS_WAIT_H 1
1903 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h stab.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h
1905 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_hdr" >&5
1908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.
$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1916 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1917 { (eval echo configure
:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1918 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1919 if test -z "$ac_err"; then
1921 eval "ac_cv_header_$ac_safe=yes"
1924 echo "configure: failed program was:" >&5
1925 cat conftest.
$ac_ext >&5
1927 eval "ac_cv_header_$ac_safe=no"
1931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1934 cat >> confdefs.h
<<EOF
1935 #define $ac_tr_hdr 1
1939 echo "$ac_t""no" 1>&6
1944 # Check for thread headers.
1945 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1947 echo "configure:1948: checking for thread.h" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.
$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1956 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure
:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1961 eval "ac_cv_header_$ac_safe=yes"
1964 echo "configure: failed program was:" >&5
1965 cat conftest.
$ac_ext >&5
1967 eval "ac_cv_header_$ac_safe=no"
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1975 echo "$ac_t""no" 1>&6
1979 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1980 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1981 echo "configure:1982: checking for pthread.h" >&5
1982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <pthread.h>
1990 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991 { (eval echo configure
:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993 if test -z "$ac_err"; then
1995 eval "ac_cv_header_$ac_safe=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2001 eval "ac_cv_header_$ac_safe=no"
2005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2009 echo "$ac_t""no" 1>&6
2014 # See if GNAT has been installed
2015 # Extract the first word of "gnatbind", so it can be a program name with args.
2016 set dummy gnatbind
; ac_word
=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 if test -n "$gnat"; then
2023 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2027 for ac_dir
in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir
=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_gnat
="yes"
2035 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2038 gnat
="$ac_cv_prog_gnat"
2039 if test -n "$gnat"; then
2040 echo "$ac_t""$gnat" 1>&6
2042 echo "$ac_t""no" 1>&6
2046 # See if the system preprocessor understands the ANSI C preprocessor
2047 # stringification operator.
2048 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether cpp understands the stringify operator" >&5
2050 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.
$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2059 char *test = S(foo);
2062 if { (eval echo configure
:2063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 gcc_cv_c_have_stringify
=yes
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 gcc_cv_c_have_stringify
=no
2074 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2075 if test $gcc_cv_c_have_stringify = yes; then
2076 cat >> confdefs.h
<<\EOF
2077 #define HAVE_CPP_STRINGIFY 1
2082 # Use <inttypes.h> only if it exists,
2083 # doesn't clash with <sys/types.h>, and declares intmax_t.
2084 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2085 echo "configure:2086: checking for inttypes.h" >&5
2086 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 #include <sys/types.h>
2093 #include <inttypes.h>
2098 if { (eval echo configure
:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 gcc_cv_header_inttypes_h
=yes
2102 echo "configure: failed program was:" >&5
2103 cat conftest.
$ac_ext >&5
2105 gcc_cv_header_inttypes_h
=no
2110 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2111 if test $gcc_cv_header_inttypes_h = yes; then
2112 cat >> confdefs.h
<<\EOF
2113 #define HAVE_INTTYPES_H 1
2118 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2119 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2120 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2124 echo "configure:2125: checking for $ac_func" >&5
2125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 cat > conftest.
$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 /* System header to define __stub macros and hopefully few prototypes,
2132 which can conflict with char $ac_func(); below. */
2134 /* Override any gcc2 internal prototype to avoid an error. */
2135 /* We use char because int might match the return type of a gcc2
2136 builtin and then its argument prototype would still apply. */
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2152 if { (eval echo configure
:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2154 eval "ac_cv_func_$ac_func=yes"
2156 echo "configure: failed program was:" >&5
2157 cat conftest.
$ac_ext >&5
2159 eval "ac_cv_func_$ac_func=no"
2164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2167 cat >> confdefs.h
<<EOF
2168 #define $ac_tr_func 1
2172 echo "$ac_t""no" 1>&6
2177 # Make sure wchar_t is available
2178 #AC_CHECK_TYPE(wchar_t, unsigned int)
2180 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2181 echo "configure:2182: checking for vprintf" >&5
2182 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.
$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char vprintf(); below. */
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2198 /* The GNU C library defines this for functions which it implements
2199 to always fail with ENOSYS. Some functions are actually named
2200 something starting with __ and the normal name is an alias. */
2201 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2209 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2211 eval "ac_cv_func_vprintf=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2216 eval "ac_cv_func_vprintf=no"
2221 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2223 cat >> confdefs.h
<<\EOF
2224 #define HAVE_VPRINTF 1
2228 echo "$ac_t""no" 1>&6
2231 if test "$ac_cv_func_vprintf" != yes; then
2232 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2233 echo "configure:2234: checking for _doprnt" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char _doprnt(); below. */
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2261 if { (eval echo configure
:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2263 eval "ac_cv_func__doprnt=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_func__doprnt=no"
2273 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 cat >> confdefs.h
<<\EOF
2276 #define HAVE_DOPRNT 1
2280 echo "$ac_t""no" 1>&6
2287 if test $ac_cv_func_vprintf != yes ; then
2289 if test $ac_cv_func__doprnt != yes ; then
2296 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2297 echo "configure:2298: checking whether the printf functions support %p" >&5
2298 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 if test "$cross_compiling" = yes; then
2302 gcc_cv_func_printf_ptr
=no
2304 cat > conftest.
$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2312 char *p = buf, *q = NULL;
2313 sprintf(buf, "%p", p);
2314 sscanf(buf, "%p", &q);
2318 if { (eval echo configure
:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2320 gcc_cv_func_printf_ptr
=yes
2322 echo "configure: failed program was:" >&5
2323 cat conftest.
$ac_ext >&5
2325 gcc_cv_func_printf_ptr
=no
2330 rm -f core core.
* *.core
2333 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2334 if test $gcc_cv_func_printf_ptr = yes ; then
2335 cat >> confdefs.h
<<\EOF
2336 #define HAVE_PRINTF_PTR 1
2344 # Under some versions of uwin, vfork is notoriously buggy and the test
2345 # can hang configure; on other versions, vfork exists just as a stub.
2346 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2347 ac_cv_func_vfork_works
=no
2350 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2351 echo "configure:2352: checking for pid_t" >&5
2352 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 cat > conftest.
$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 #include <sys/types.h>
2364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2365 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2367 ac_cv_type_pid_t
=yes
2375 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2376 if test $ac_cv_type_pid_t = no
; then
2377 cat >> confdefs.h
<<\EOF
2383 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2384 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2385 echo "configure:2386: checking for vfork.h" >&5
2386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.
$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2394 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2395 { (eval echo configure
:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2396 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2397 if test -z "$ac_err"; then
2399 eval "ac_cv_header_$ac_safe=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.
$ac_ext >&5
2405 eval "ac_cv_header_$ac_safe=no"
2409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 cat >> confdefs.h
<<\EOF
2412 #define HAVE_VFORK_H 1
2416 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2420 echo "configure:2421: checking for working vfork" >&5
2421 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 if test "$cross_compiling" = yes; then
2425 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2426 echo "configure:2427: checking for vfork" >&5
2427 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 /* System header to define __stub macros and hopefully few prototypes,
2434 which can conflict with char vfork(); below. */
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2443 /* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446 #if defined (__stub_vfork) || defined (__stub___vfork)
2454 if { (eval echo configure
:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2456 eval "ac_cv_func_vfork=yes"
2458 echo "configure: failed program was:" >&5
2459 cat conftest.
$ac_ext >&5
2461 eval "ac_cv_func_vfork=no"
2466 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2470 echo "$ac_t""no" 1>&6
2473 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 /* Thanks to Paul Eggert for this test. */
2480 #include <sys/types.h>
2481 #include <sys/stat.h>
2482 #ifdef HAVE_UNISTD_H
2488 /* On some sparc systems, changes by the child to local and incoming
2489 argument registers are propagated back to the parent.
2490 The compiler is told about this with #include <vfork.h>,
2491 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2492 Test for this by using a static variable whose address
2493 is put into a register that is clobbered by the vfork. */
2496 sparc_address_test (int arg)
2498 sparc_address_test (arg) int arg;
2516 pid_t parent = getpid ();
2519 sparc_address_test ();
2524 /* Here is another test for sparc vfork register problems.
2525 This test uses lots of local variables, at least
2526 as many local variables as main has allocated so far
2527 including compiler temporaries. 4 locals are enough for
2528 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2529 A buggy compiler should reuse the register of parent
2530 for one of the local variables, since it will think that
2531 parent can't possibly be used any more in this routine.
2532 Assigning to the local variable will thus munge parent
2533 in the parent process. */
2535 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2536 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2537 /* Convince the compiler that p..p7 are live; otherwise, it might
2538 use the same hardware register for all 8 local variables. */
2539 if (p != p1 || p != p2 || p != p3 || p != p4
2540 || p != p5 || p != p6 || p != p7)
2543 /* On some systems (e.g. IRIX 3.3),
2544 vfork doesn't separate parent from child file descriptors.
2545 If the child closes a descriptor before it execs or exits,
2546 this munges the parent's descriptor as well.
2547 Test for this by closing stdout in the child. */
2548 _exit(close(fileno(stdout)) != 0);
2553 while (wait(&status) != child)
2556 /* Was there some problem with vforking? */
2559 /* Did the child fail? (This shouldn't happen.) */
2562 /* Did the vfork/compiler bug occur? */
2563 || parent != getpid()
2565 /* Did the file descriptor bug occur? */
2566 || fstat(fileno(stdout), &st) != 0
2571 if { (eval echo configure
:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2573 ac_cv_func_vfork_works
=yes
2575 echo "configure: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2578 ac_cv_func_vfork_works
=no
2585 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2586 if test $ac_cv_func_vfork_works = no
; then
2587 cat >> confdefs.h
<<\EOF
2594 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
2595 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2596 strsignal putc_unlocked fputs_unlocked
2598 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2599 echo "configure:2600: checking whether $ac_func must be declared" >&5
2600 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2608 #ifdef STRING_WITH_STRINGS
2609 # include <string.h>
2610 # include <strings.h>
2612 # ifdef HAVE_STRING_H
2613 # include <string.h>
2615 # ifdef HAVE_STRINGS_H
2616 # include <strings.h>
2620 #ifdef HAVE_STDLIB_H
2623 #ifdef HAVE_UNISTD_H
2627 #define rindex strrchr
2630 #define index strchr
2634 char *(*pfn) = (char *(*)) $ac_func
2637 if { (eval echo configure
:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2639 eval "gcc_cv_decl_needed_$ac_func=no"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 eval "gcc_cv_decl_needed_$ac_func=yes"
2649 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2652 cat >> confdefs.h
<<EOF
2653 #define $gcc_tr_decl 1
2657 echo "$ac_t""no" 1>&6
2663 for ac_func
in getrlimit setrlimit
2665 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2666 echo "configure:2667: checking whether $ac_func must be declared" >&5
2667 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.
$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2675 #ifdef STRING_WITH_STRINGS
2676 # include <string.h>
2677 # include <strings.h>
2679 # ifdef HAVE_STRING_H
2680 # include <string.h>
2682 # ifdef HAVE_STRINGS_H
2683 # include <strings.h>
2687 #ifdef HAVE_STDLIB_H
2690 #ifdef HAVE_UNISTD_H
2694 #define rindex strrchr
2697 #define index strchr
2699 #include <sys/types.h>
2700 #ifdef HAVE_SYS_RESOURCE_H
2701 #include <sys/resource.h>
2705 char *(*pfn) = (char *(*)) $ac_func
2708 if { (eval echo configure
:2709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 eval "gcc_cv_decl_needed_$ac_func=no"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "gcc_cv_decl_needed_$ac_func=yes"
2720 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h
<<EOF
2724 #define $gcc_tr_decl 1
2728 echo "$ac_t""no" 1>&6
2734 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2735 echo "configure:2736: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2736 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.
$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <sys/types.h>
2744 /* NetBSD declares sys_siglist in unistd.h. */
2745 #ifdef HAVE_UNISTD_H
2749 char *msg = *(sys_siglist + 1);
2752 if { (eval echo configure
:2753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2754 ac_cv_decl_sys_siglist
=yes
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 ac_cv_decl_sys_siglist
=no
2764 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2765 if test $ac_cv_decl_sys_siglist = yes; then
2766 cat >> confdefs.h
<<\EOF
2767 #define SYS_SIGLIST_DECLARED 1
2781 build_install_headers_dir
=install-headers-tar
2786 host_truncate_target
=
2789 # It is relative to $prefix.
2792 # Decode the host machine, then the target machine.
2793 # For the host machine, we save the xm_file variable as host_xm_file;
2794 # then we decode the target machine and forget everything else
2795 # that came from the host machine.
2796 for machine
in $build $host $target; do
2810 # Set this to force installation and use of collect2.
2812 # Set this to override the default target model.
2814 # Set this to control how the header file directory is installed.
2815 install_headers_dir
=install-headers-tar
2816 # Set this to a non-empty list of args to pass to cpp if the target
2817 # wants its .md file passed through cpp.
2819 # Set this if directory names should be truncated to 14 characters.
2821 # Set this if gdb needs a dir command with `dirname $out_file`
2822 gdb_needs_out_file_path
=
2823 # Set this if the build machine requires executables to have a
2826 # Set this to control which thread package will be used.
2828 # Reinitialize these from the flag values every loop pass, since some
2829 # configure entries modify them.
2831 gnu_ld
="$gnu_ld_flag"
2832 enable_threads
=$enable_threads_flag
2834 # Set default cpu_type, tm_file and xm_file so it can be updated in
2835 # each machine entry.
2836 cpu_type
=`echo $machine | sed 's/-.*$//'`
2870 tm_file
=${cpu_type}/${cpu_type}.h
2871 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2873 # Common parts for linux-gnu and openbsd systems
2876 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2879 tm_file
=${cpu_type}/openbsd.h
2880 # On OpenBSD systems, the headers are okay
2881 fixincludes
=Makefile.
in
2882 tmake_file
="t-libc-ok t-openbsd"
2883 # avoid surprises, always provide an xm-openbsd file
2884 xm_file
=${cpu_type}/xm-openbsd.h
2885 if test x
$enable_threads = xyes
; then
2887 tmake_file
="${tmake_file} t-openbsd-thread"
2893 # Support site-specific machine types.
2895 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2896 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2897 xm_file
=${cpu_type}/xm-
$rest.h
2898 tm_file
=${cpu_type}/$rest.h
2899 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
2900 then xmake_file
=${cpu_type}/x-
$rest; \
2903 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
2904 then tmake_file
=${cpu_type}/t-
$rest; \
2910 a29k-
*-bsd* | a29k-
*-sym1*)
2911 tm_file
="${tm_file} a29k/unix.h"
2913 xmake_file
=a29k
/x-unix
2916 a29k-
*-udi | a29k-
*-coff)
2917 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2918 tmake_file
=a29k
/t-a29kbare
2921 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2922 tmake_file
=a29k
/t-vx29k
2923 extra_parts
="crtbegin.o crtend.o"
2924 thread_file
='vxworks'
2926 a29k-
*-*) # Default a29k environment.
2929 alpha
*-*-linux-gnuecoff*)
2930 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2931 target_cpu_default
="MASK_GAS"
2936 alpha
*-*-linux-gnulibc1*)
2937 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2938 target_cpu_default
="MASK_GAS"
2939 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2940 extra_parts
="crtbegin.o crtend.o"
2943 if test x
$enable_threads = xyes
; then
2947 alpha
*-*-linux-gnu*)
2948 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2949 target_cpu_default
="MASK_GAS"
2950 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2951 extra_parts
="crtbegin.o crtend.o"
2954 if test x
$enable_threads = xyes
; then
2959 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
2960 target_cpu_default
="MASK_GAS"
2961 tmake_file
="alpha/t-crtbe"
2962 extra_parts
="crtbegin.o crtend.o"
2968 # default x-alpha is only appropriate for dec-osf.
2969 target_cpu_default
="MASK_GAS"
2974 if test x
$stabs = xyes
2976 tm_file
="${tm_file} dbx.h"
2978 if test x
$gas != xyes
2980 extra_passes
="mips-tfile mips-tdump"
2985 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2988 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2991 tm_file
="${tm_file} alpha/osf.h"
2992 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2993 # a broken tar, so we use cpio instead.
2994 install_headers_dir
=install-headers-cpio
2998 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2999 target_cpu_default
=MASK_SUPPORT_ARCH
3004 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3007 extra_passes
="mips-tfile mips-tdump"
3010 thread_file
='vxworks'
3013 tm_file
="${tm_file} alpha/win-nt.h"
3014 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3015 tmake_file
=t-libc-ok
3016 xmake_file
=winnt
/x-winnt
3017 extra_host_objs
=oldnames.o
3018 extra_gcc_objs
="spawnv.o oldnames.o"
3019 if test x
$gnu_ld != xyes
3021 extra_programs
=ld.exe
3023 if test x
$enable_threads = xyes
; then
3029 xm_file
="${xm_file} alpha/xm-vms.h"
3030 tmake_file
=alpha
/t-vms
3033 extra_parts
="crtinit.o crtfini.o"
3035 arm-
*-coff* | armel-
*-coff*)
3037 tmake_file
=arm
/t-bare
3041 tmake_file
=arm
/t-bare
3042 thread_file
='vxworks'
3044 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3045 tm_file
=arm
/riscix1-1.h
3048 arm-
*-riscix*) # Acorn RISC machine
3049 if test x
$gas = xyes
3051 tm_file
=arm
/rix-gas.h
3053 tm_file
=arm
/riscix.h
3055 xmake_file
=arm
/x-riscix
3056 tmake_file
=arm
/t-riscix
3059 arm-semi-aout | armel-semi-aout
)
3061 tmake_file
=arm
/t-semi
3063 arm-semi-aof | armel-semi-aof
)
3064 tm_file
=arm
/semiaof.h
3065 tmake_file
=arm
/t-semiaof
3068 tm_file
=arm
/netbsd.h
3069 xm_file
="arm/xm-netbsd.h ${xm_file}"
3070 tmake_file
="t-netbsd arm/t-netbsd"
3072 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3075 tm_file
=arm
/linux-aout.h
3076 tmake_file
=arm
/t-linux
3079 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3080 xm_file
=arm
/xm-linux.h
3084 tm_file
=arm
/linux-elf26.h
3087 tm_file
=arm
/linux-elf.h
3090 tmake_file
="t-linux arm/t-linux"
3091 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3093 case x
${enable_threads} in
3094 x | xyes | xpthreads | xposix
)
3101 tmake_file
=arm
/t-bare
3104 tm_file
=arm
/ecos-elf.h
3105 tmake_file
=arm
/t-elf
3108 tm_file
=arm
/unknown-elf.h
3109 tmake_file
=arm
/t-arm-elf
3112 tm_file
=arm
/unknown-elf-oabi.h
3113 tmake_file
=arm
/t-arm-elf
3115 c1-convex-
*) # Convex C1
3116 target_cpu_default
=1
3119 c2-convex-
*) # Convex C2
3120 target_cpu_default
=2
3124 target_cpu_default
=4
3128 target_cpu_default
=8
3132 target_cpu_default
=16
3137 tmake_file
=c4x
/t-c4x
3139 clipper-intergraph-clix
*)
3140 tm_file
="${tm_file} svr3.h clipper/clix.h"
3141 xm_file
=clipper
/xm-clix.h
3142 xmake_file
=clipper
/x-clix
3143 extra_headers
=va-clipper.h
3144 extra_parts
="crtbegin.o crtend.o"
3145 install_headers_dir
=install-headers-cpio
3152 # This hasn't been upgraded to GCC 2.
3153 # fx80-alliant-*) # Alliant FX/80
3159 target_cpu_default
="MASK_SNAKE"
3160 tmake_file
=pa
/t-openbsd
3163 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3164 xm_file
=pa
/xm-papro.h
3168 target_cpu_default
="MASK_SNAKE"
3169 tm_file
="${tm_file} pa/pa-osf.h"
3173 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3174 xm_file
=pa
/xm-papro.h
3178 tm_file
="${tm_file} pa/pa-osf.h"
3182 target_cpu_default
="MASK_SNAKE"
3189 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3190 xm_file
=pa
/xm-pahpux.h
3191 xmake_file
=pa
/x-pa-hpux
3192 if test x
$gas = xyes
3194 tm_file
="${tm_file} pa/gas.h"
3196 install_headers_dir
=install-headers-cpio
3199 hppa1.0
-*-hpux8.0
[0-2]*)
3200 tm_file
="${tm_file} pa/pa-hpux.h"
3201 xm_file
=pa
/xm-pahpux.h
3202 xmake_file
=pa
/x-pa-hpux
3203 if test x
$gas = xyes
3205 tm_file
="${tm_file} pa/pa-gas.h"
3207 tm_file
="pa/pa-oldas.h ${tm_file}"
3209 install_headers_dir
=install-headers-cpio
3212 hppa1.1
-*-hpux8.0
[0-2]*)
3213 target_cpu_default
="MASK_SNAKE"
3214 tm_file
="${tm_file} pa/pa-hpux.h"
3215 xm_file
=pa
/xm-pahpux.h
3216 xmake_file
=pa
/x-pa-hpux
3217 if test x
$gas = xyes
3219 tm_file
="${tm_file} pa/pa-gas.h"
3221 tm_file
="pa/pa-oldas.h ${tm_file}"
3223 install_headers_dir
=install-headers-cpio
3227 target_cpu_default
="MASK_SNAKE"
3228 tm_file
="${tm_file} pa/pa-hpux.h"
3229 xm_file
=pa
/xm-pahpux.h
3230 xmake_file
=pa
/x-pa-hpux
3231 if test x
$gas = xyes
3233 tm_file
="${tm_file} pa/pa-gas.h"
3235 install_headers_dir
=install-headers-cpio
3239 tm_file
="${tm_file} pa/pa-hpux.h"
3240 xm_file
=pa
/xm-pahpux.h
3241 xmake_file
=pa
/x-pa-hpux
3242 if test x
$gas = xyes
3244 tm_file
="${tm_file} pa/pa-gas.h"
3246 install_headers_dir
=install-headers-cpio
3249 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3250 target_cpu_default
="MASK_SNAKE"
3251 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3252 xm_file
=pa
/xm-pahpux.h
3253 xmake_file
=pa
/x-pa-hpux
3255 if test x
$gas = xyes
3257 tm_file
="${tm_file} pa/pa-gas.h"
3259 if test x
$enable_threads = x
; then
3260 enable_threads
=$have_pthread_h
3262 if test x
$enable_threads = xyes
; then
3264 tmake_file
="${tmake_file} pa/t-dce-thr"
3266 install_headers_dir
=install-headers-cpio
3270 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3271 xm_file
=pa
/xm-pahpux.h
3272 xmake_file
=pa
/x-pa-hpux
3274 if test x
$gas = xyes
3276 tm_file
="${tm_file} pa/pa-gas.h"
3278 if test x
$enable_threads = x
; then
3279 enable_threads
=$have_pthread_h
3281 if test x
$enable_threads = xyes
; then
3283 tmake_file
="${tmake_file} pa/t-dce-thr"
3285 install_headers_dir
=install-headers-cpio
3288 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3289 target_cpu_default
="MASK_SNAKE"
3290 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3291 xm_file
=pa
/xm-pahpux.h
3292 xmake_file
=pa
/x-pa-hpux
3293 if test x
$gas = xyes
3295 tm_file
="${tm_file} pa/pa-gas.h"
3297 install_headers_dir
=install-headers-cpio
3301 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3302 xm_file
=pa
/xm-pahpux.h
3303 xmake_file
=pa
/x-pa-hpux
3304 if test x
$gas = xyes
3306 tm_file
="${tm_file} pa/pa-gas.h"
3308 install_headers_dir
=install-headers-cpio
3311 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3312 target_cpu_default
="MASK_SNAKE"
3313 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3314 xm_file
=pa
/xm-pahpux.h
3315 xmake_file
=pa
/x-pa-hpux
3316 if test x
$gas = xyes
3318 tm_file
="${tm_file} pa/pa-gas.h"
3320 install_headers_dir
=install-headers-cpio
3324 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3325 xm_file
=pa
/xm-pahpux.h
3326 xmake_file
=pa
/x-pa-hpux
3327 if test x
$gas = xyes
3329 tm_file
="${tm_file} pa/pa-gas.h"
3331 install_headers_dir
=install-headers-cpio
3335 target_cpu_default
="MASK_SNAKE"
3340 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3341 if test x
$gas = xyes
3343 tm_file
=i386
/aix386.h
3344 extra_parts
="crtbegin.o crtend.o"
3345 tmake_file
=i386
/t-crtstuff
3347 tm_file
=i386
/aix386ng.h
3350 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3352 xmake_file
=i386
/x-aix
3354 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3355 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3356 xm_defines
="USG POSIX SMALL_ARG_MAX"
3357 xmake_file
=i386
/x-ncr3000
3358 if test x
$stabs = xyes
-a x
$gas = xyes
3360 tm_file
=i386
/sysv4gdb.h
3362 tm_file
=i386
/sysv4.h
3364 extra_parts
="crtbegin.o crtend.o"
3365 tmake_file
=i386
/t-crtpic
3369 xm_file
=i386
/xm-next.h
3370 tmake_file
=i386
/t-next
3371 xmake_file
=i386
/x-next
3372 extra_objs
=nextstep.o
3373 extra_parts
="crtbegin.o crtend.o"
3374 if test x
$enable_threads = xyes
; then
3378 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3380 if test x
$gas = xyes
3382 tm_file
=i386
/seq-gas.h
3384 tm_file
=i386
/sequent.h
3387 i
[34567]86-sequent-ptx1*)
3388 xm_defines
="USG SVR3"
3389 xmake_file
=i386
/x-sysv3
3390 tm_file
=i386
/seq-sysv3.h
3391 tmake_file
=i386
/t-crtstuff
3392 extra_parts
="crtbegin.o crtend.o"
3393 install_headers_dir
=install-headers-cpio
3395 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3396 xm_defines
="USG SVR3"
3397 xmake_file
=i386
/x-sysv3
3398 tm_file
=i386
/seq2-sysv3.h
3399 tmake_file
=i386
/t-crtstuff
3400 extra_parts
="crtbegin.o crtend.o"
3401 install_headers_dir
=install-headers-cpio
3403 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3404 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3405 xm_defines
="USG POSIX SMALL_ARG_MAX"
3407 tm_file
=i386
/ptx4-i.h
3409 extra_parts
="crtbegin.o crtend.o"
3410 install_headers_dir
=install-headers-cpio
3412 i386-sun-sunos
*) # Sun i386 roadrunner
3417 i
[34567]86-wrs-vxworks*)
3418 tm_file
=i386
/vxi386.h
3419 tmake_file
=i386
/t-i386bare
3420 thread_file
='vxworks'
3423 tm_file
=i386
/i386-aout.h
3424 tmake_file
=i386
/t-i386bare
3426 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
3427 tm_file
=i386
/bsd386.h
3428 # tmake_file=t-libc-ok
3431 tm_file
=i386
/386bsd.h
3432 # tmake_file=t-libc-ok
3433 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3436 i
[34567]86-*-freebsdelf*)
3437 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3438 # On FreeBSD, the headers are already ok, except for math.h.
3439 fixincludes
=fixinc.wrap
3440 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3441 tmake_file
=i386
/t-freebsd
3446 i
[34567]86-*-freebsd*)
3447 tm_file
=i386
/freebsd.h
3448 tmake_file
=i386
/t-freebsd
3450 i
[34567]86-*-netbsd*)
3451 tm_file
=i386
/netbsd.h
3454 i
[34567]86-*-openbsd*)
3455 # Remove when the math emulator is fixed
3456 # we need collect2 until our bug is fixed...
3460 tm_file
=i386
/i386-coff.h
3461 tmake_file
=i386
/t-i386bare
3463 i
[34567]86-*-isc*) # 80386 running ISC system
3464 xm_file
="${xm_file} i386/xm-isc.h"
3465 xm_defines
="USG SVR3"
3467 i
[34567]86-*-isc[34]*)
3468 xmake_file
=i386
/x-isc3
3471 xmake_file
=i386
/x-isc
3474 if test x
$gas = xyes
-a x
$stabs = xyes
3476 tm_file
=i386
/iscdbx.h
3477 tmake_file
=i386
/t-svr3dbx
3478 extra_parts
="svr3.ifile svr3z.ifile"
3480 tm_file
=i386
/isccoff.h
3481 tmake_file
=i386
/t-crtstuff
3482 extra_parts
="crtbegin.o crtend.o"
3484 install_headers_dir
=install-headers-cpio
3486 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3488 xmake_file
=x-linux-aout
3489 tmake_file
="t-linux-aout i386/t-crtstuff"
3490 tm_file
=i386
/linux-oldld.h
3494 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3495 xmake_file
=x-linux-aout
3496 tmake_file
="t-linux-aout i386/t-crtstuff"
3497 tm_file
=i386
/linux-aout.h
3501 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3502 # GNU/Linux C library 5
3504 tm_file
=i386
/linux.h
3505 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3506 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3509 if test x
$enable_threads = xyes
; then
3510 thread_file
='single'
3513 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3514 # aka GNU/Linux C library 6
3516 tm_file
=i386
/linux.h
3517 tmake_file
="t-linux i386/t-crtstuff"
3518 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3521 if test x
$enable_threads = xyes
; then
3528 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
3529 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3532 i
[34567]86-pc-msdosdjgpp*)
3533 xm_file
=i386
/xm-djgpp.h
3534 tm_file
=i386
/djgpp.h
3535 tmake_file
=i386
/t-djgpp
3536 xmake_file
=i386
/x-djgpp
3540 case $host in *pc-msdosdjgpp
*)
3545 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
3547 tmake_file
=t-libc-ok
3551 i
[34567]86-*-lynxos*)
3552 if test x
$gas = xyes
3556 tm_file
=i386
/lynx-ng.h
3558 xm_file
=i386
/xm-lynx.h
3559 tmake_file
=i386
/t-i386bare
3564 # tmake_file=t-libc-ok
3567 i
[34567]86-*-osfrose*) # 386 using OSF/rose
3568 if test x
$elf = xyes
3570 tm_file
=i386
/osfelf.h
3573 tm_file
=i386
/osfrose.h
3576 xm_file
="i386/xm-osf.h ${xm_file}"
3577 xmake_file
=i386
/x-osfrose
3578 tmake_file
=i386
/t-osf
3579 extra_objs
=halfpic.o
3581 i
[34567]86-go32-rtems*)
3583 xm_file
=i386
/xm-go32.h
3584 tm_file
=i386
/go32-rtems.h
3585 tmake_file
="i386/t-go32 t-rtems"
3587 i
[34567]86-*-rtemself*)
3589 tm_file
=i386
/rtemself.h
3590 tmake_file
="i386/t-i386bare t-rtems"
3592 i
[34567]86-*-rtems*)
3594 tm_file
=i386
/rtems.h
3595 tmake_file
="i386/t-i386bare t-rtems"
3597 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
3598 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3599 xm_defines
="USG SVR3"
3600 xmake_file
=i386
/x-sco5
3601 install_headers_dir
=install-headers-cpio
3603 if test x
$gas = xyes
3605 tm_file
="i386/sco5gas.h ${tm_file}"
3606 tmake_file
=i386
/t-sco5gas
3608 tmake_file
=i386
/t-sco5
3610 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3612 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
3613 xm_file
="${xm_file} i386/xm-sco.h"
3614 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3615 xmake_file
=i386
/x-sco4
3616 install_headers_dir
=install-headers-cpio
3617 if test x
$stabs = xyes
3619 tm_file
=i386
/sco4dbx.h
3620 tmake_file
=i386
/t-svr3dbx
3621 extra_parts
="svr3.ifile svr3z.rfile"
3624 tmake_file
=i386
/t-crtstuff
3625 extra_parts
="crtbegin.o crtend.o"
3629 i
[34567]86-*-sco*) # 80386 running SCO system
3630 xm_file
=i386
/xm-sco.h
3631 xmake_file
=i386
/x-sco
3632 install_headers_dir
=install-headers-cpio
3633 if test x
$stabs = xyes
3635 tm_file
=i386
/scodbx.h
3636 tmake_file
=i386
/t-svr3dbx
3637 extra_parts
="svr3.ifile svr3z.rfile"
3640 extra_parts
="crtbegin.o crtend.o"
3641 tmake_file
=i386
/t-crtstuff
3645 i
[34567]86-*-solaris2*)
3646 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3647 xm_defines
="USG POSIX SMALL_ARG_MAX"
3648 if test x
$stabs = xyes
3650 tm_file
=i386
/sol2dbg.h
3654 tmake_file
=i386
/t-sol2
3655 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3657 if test x
$enable_threads = xyes
; then
3658 thread_file
='solaris'
3661 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3662 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3663 xm_defines
="USG POSIX"
3664 tm_file
=i386
/sysv5.h
3665 if test x
$stabs = xyes
3667 tm_file
="${tm_file} dbx.h"
3669 tmake_file
=i386
/t-crtpic
3671 extra_parts
="crtbegin.o crtend.o"
3673 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
3674 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3675 xm_defines
="USG POSIX SMALL_ARG_MAX"
3676 tm_file
=i386
/sysv4.h
3677 if test x
$stabs = xyes
3679 tm_file
="${tm_file} dbx.h"
3681 tmake_file
=i386
/t-crtpic
3683 extra_parts
="crtbegin.o crtend.o"
3685 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3686 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3687 xm_defines
="USG POSIX"
3689 tmake_file
="i386/t-crtpic i386/t-udk"
3691 extra_parts
="crtbegin.o crtend.o"
3693 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3695 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3696 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
3697 if test x
$stabs = xyes
3699 tm_file
=i386
/osf1elfgdb.h
3701 tm_file
=i386
/osf1elf.h
3703 tmake_file
=i386
/t-osf1elf
3704 xmake_file
=i386
/x-osf1elf
3705 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3707 i
[34567]86-*-sysv*) # Intel 80386's running system V
3708 xm_defines
="USG SVR3"
3709 xmake_file
=i386
/x-sysv3
3710 if test x
$gas = xyes
3712 if test x
$stabs = xyes
3714 tm_file
=i386
/svr3dbx.h
3715 tmake_file
=i386
/t-svr3dbx
3716 extra_parts
="svr3.ifile svr3z.rfile"
3718 tm_file
=i386
/svr3gas.h
3719 extra_parts
="crtbegin.o crtend.o"
3720 tmake_file
=i386
/t-crtstuff
3723 tm_file
=i386
/sysv3.h
3724 extra_parts
="crtbegin.o crtend.o"
3725 tmake_file
=i386
/t-crtstuff
3728 i386-
*-vsta) # Intel 80386's running VSTa kernel
3729 xm_file
="${xm_file} i386/xm-vsta.h"
3731 tmake_file
=i386
/t-vsta
3732 xmake_file
=i386
/x-vsta
3735 xm_file
="${xm_file} i386/xm-cygwin.h"
3736 tmake_file
=i386
/t-cygwin
3737 tm_file
=i386
/win32.h
3738 xmake_file
=i386
/x-cygwin
3740 if test x
$enable_threads = xyes
; then
3745 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
3746 xm_file
="${xm_file} i386/xm-cygwin.h"
3747 tmake_file
=i386
/t-cygwin
3748 tm_file
=i386
/cygwin.h
3749 xmake_file
=i386
/x-cygwin
3751 if test x
$enable_threads = xyes
; then
3756 i
[34567]86-*-mingw32*)
3757 tm_file
=i386
/mingw32.h
3758 xm_file
="${xm_file} i386/xm-mingw32.h"
3759 tmake_file
="i386/t-cygwin i386/t-mingw32"
3761 xmake_file
=i386
/x-cygwin
3762 if test x
$enable_threads = xyes
; then
3769 *minwg32crt
* |
*mingw32
*)
3770 tm_file
="${tm_file} i386/crtdll.h"
3776 xm_file
="${xm_file} i386/xm-uwin.h"
3777 xm_defines
="USG NO_STAB_H NO_SYS_SIGLIST"
3778 tmake_file
="i386/t-cygwin i386/t-uwin"
3780 xmake_file
=i386
/x-cygwin
3781 fixincludes
=Makefile.
in
3782 if test x
$enable_threads = xyes
; then
3787 i
[34567]86-*-interix*)
3788 tm_file
=i386
/i386-interix.h
3789 xm_file
="i386/xm-i386-interix.h xm-interix.h"
3790 xm_defines
="USG NO_SYS_SIGLIST"
3791 tmake_file
="i386/t-interix"
3792 extra_objs
=interix.o
3793 xmake_file
=x-interix
3794 fixincludes
=fixinc.interix
3795 if [ x
$enable_threads = xyes
]; then
3798 if [ x
$stabs = xyes
]; then
3799 tm_file
="${tm_file} dbxcoff.h"
3802 i
[34567]86-*-winnt3*)
3803 tm_file
=i386
/win-nt.h
3804 out_file
=i386
/i386.c
3805 xm_file
="xm-winnt.h ${xm_file}"
3806 xmake_file
=winnt
/x-winnt
3807 tmake_file
=i386
/t-winnt
3808 extra_host_objs
="winnt.o oldnames.o"
3809 extra_gcc_objs
="spawnv.o oldnames.o"
3810 if test x
$gnu_ld != xyes
3812 extra_programs
=ld.exe
3814 if test x
$enable_threads = xyes
; then
3818 i
[34567]86-dg-dgux*)
3819 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3820 xm_defines
="USG POSIX"
3821 out_file
=i386
/dgux.c
3823 tmake_file
=i386
/t-dgux
3824 xmake_file
=i386
/x-dgux
3825 install_headers_dir
=install-headers-cpio
3827 i860-alliant-
*) # Alliant FX/2800
3828 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3829 xm_file
="${xm_file}"
3830 xmake_file
=i860
/x-fx2800
3831 tmake_file
=i860
/t-fx2800
3832 extra_parts
="crtbegin.o crtend.o"
3835 tm_file
="${tm_file} i860/bsd.h"
3836 if test x
$gas = xyes
3838 tm_file
="${tm_file} i860/bsd-gas.h"
3843 tm_file
="${tm_file} i860/mach.h"
3844 tmake_file
=t-libc-ok
3846 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3847 tm_file
="${tm_file} svr3.h i860/paragon.h"
3848 xm_defines
="USG SVR3"
3852 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3853 xm_defines
="USG SVR3"
3854 xmake_file
=i860
/x-sysv3
3855 extra_parts
="crtbegin.o crtend.o"
3858 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3859 xm_defines
="USG SVR3"
3860 xmake_file
=i860
/x-sysv4
3862 extra_parts
="crtbegin.o crtend.o"
3864 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3865 tm_file
="${tm_file} i960/vx960.h"
3866 tmake_file
=i960
/t-vxworks960
3868 thread_file
='vxworks'
3870 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3871 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3872 tmake_file
=i960
/t-vxworks960
3874 thread_file
='vxworks'
3877 tm_file
="${tm_file} i960/vx960.h"
3878 tmake_file
=i960
/t-vxworks960
3880 thread_file
='vxworks'
3883 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3884 tmake_file
=i960
/t-960bare
3888 tmake_file
="i960/t-960bare t-rtems"
3889 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3892 i960-
*-*) # Default i960 environment.
3896 extra_parts
="crtinit.o crtfini.o"
3898 m68000-convergent-sysv
*)
3900 xm_file
="m68k/xm-3b1.h ${xm_file}"
3903 extra_headers
=math-68881.h
3905 m68000-hp-bsd
*) # HP 9000/200 running BSD
3906 tm_file
=m68k
/hp2bsd.h
3907 xmake_file
=m68k
/x-hp2bsd
3909 extra_headers
=math-68881.h
3911 m68000-hp-hpux
*) # HP 9000 series 300
3912 xm_file
="xm_alloca.h ${xm_file}"
3913 xm_defines
="USG NO_SYS_SIGLIST"
3914 if test x
$gas = xyes
3916 xmake_file
=m68k
/x-hp320g
3917 tm_file
=m68k
/hp310g.h
3919 xmake_file
=m68k
/x-hp320
3920 tm_file
=m68k
/hp310.h
3922 install_headers_dir
=install-headers-cpio
3924 extra_headers
=math-68881.h
3929 extra_headers
=math-68881.h
3932 tm_file
=m68k
/sun2o4.h
3934 extra_headers
=math-68881.h
3937 xm_file
="m68k/xm-3b1.h ${xm_file}"
3939 if test x
$gas = xyes
3946 extra_headers
=math-68881.h
3948 m68k-apple-aux
*) # Apple Macintosh running A/UX
3949 xm_defines
="USG AUX"
3950 tmake_file
=m68k
/t-aux
3951 install_headers_dir
=install-headers-cpio
3952 extra_headers
=math-68881.h
3953 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3955 if test "$gnu_ld" = yes
3957 tm_file
="${tm_file} m68k/auxgld.h"
3959 tm_file
="${tm_file} m68k/auxld.h"
3961 if test "$gas" = yes
3963 tm_file
="${tm_file} m68k/auxgas.h"
3965 tm_file
="${tm_file} m68k/auxas.h"
3967 tm_file
="${tm_file} m68k/a-ux.h"
3971 tm_file
=m68k
/apollo68.h
3972 xmake_file
=m68k
/x-apollo68
3974 extra_headers
=math-68881.h
3977 m68k-altos-sysv
*) # Altos 3068
3978 if test x
$gas = xyes
3980 tm_file
=m68k
/altos3068.h
3983 echo "The Altos is supported only with the GNU assembler" 1>&2
3986 extra_headers
=math-68881.h
3988 m68k-bull-sysv
*) # Bull DPX/2
3989 if test x
$gas = xyes
3991 if test x
$stabs = xyes
3993 tm_file
=m68k
/dpx2cdbx.h
3995 tm_file
=m68k
/dpx2g.h
4000 xm_file
="xm-alloca.h ${xm_file}"
4002 xmake_file
=m68k
/x-dpx2
4004 extra_headers
=math-68881.h
4006 m68k-atari-sysv4
*) # Atari variant of V.4.
4007 tm_file
=m68k
/atari.h
4008 xm_file
="xm-alloca.h ${xm_file}"
4009 xm_defines
="USG FULL_PROTOTYPES"
4011 extra_parts
="crtbegin.o crtend.o"
4012 extra_headers
=math-68881.h
4015 m68k-motorola-sysv
*)
4016 tm_file
=m68k
/mot3300.h
4017 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4018 xm_defines
=NO_SYS_SIGLIST
4019 if test x
$gas = xyes
4021 xmake_file
=m68k
/x-mot3300-gas
4022 if test x
$gnu_ld = xyes
4024 tmake_file
=m68k
/t-mot3300-gald
4026 tmake_file
=m68k
/t-mot3300-gas
4030 xmake_file
=m68k
/x-mot3300
4031 if test x
$gnu_ld = xyes
4033 tmake_file
=m68k
/t-mot3300-gld
4035 tmake_file
=m68k
/t-mot3300
4039 gdb_needs_out_file_path
=yes
4040 extra_parts
="crt0.o mcrt0.o"
4041 extra_headers
=math-68881.h
4044 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4045 tm_file
=m68k
/tower-as.h
4046 xm_defines
="USG SVR3"
4047 xmake_file
=m68k
/x-tower
4048 extra_parts
="crtbegin.o crtend.o"
4049 extra_headers
=math-68881.h
4052 tm_file
=m68k
/plexus.h
4053 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4056 extra_headers
=math-68881.h
4060 xm_file
="xm-alloca.h ${xm_file}"
4062 extra_headers
=math-68881.h
4065 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4066 xm_defines
="USG unos"
4067 xmake_file
=m68k
/x-crds
4070 extra_headers
=math-68881.h
4072 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4074 xm_file
="xm-alloca.h ${xm_file}"
4075 xm_defines
="USG FULL_PROTOTYPES"
4076 xmake_file
=m68k
/x-amix
4078 extra_parts
="crtbegin.o crtend.o"
4079 extra_headers
=math-68881.h
4083 tm_file
=m68k
/ccur-GAS.h
4084 xmake_file
=m68k
/x-ccur
4085 extra_headers
=math-68881.h
4089 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4090 tm_file
=m68k
/hp3bsd44.h
4091 xmake_file
=m68k
/x-hp3bsd44
4093 extra_headers
=math-68881.h
4096 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4097 tm_file
=m68k
/hp3bsd.h
4099 extra_headers
=math-68881.h
4103 if test x
$with_fp = xno
4105 tm_file
=m68k
/isi-nfp.h
4111 extra_headers
=math-68881.h
4113 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4114 xm_file
="xm_alloca.h ${xm_file}"
4115 xm_defines
="USG NO_SYS_SIGLIST"
4116 if test x
$gas = xyes
4118 xmake_file
=m68k
/x-hp320g
4119 tm_file
=m68k
/hp320g.h
4121 xmake_file
=m68k
/x-hp320
4122 tm_file
=m68k
/hpux7.h
4124 install_headers_dir
=install-headers-cpio
4126 extra_headers
=math-68881.h
4129 m68k-hp-hpux
*) # HP 9000 series 300
4130 xm_file
="xm_alloca.h ${xm_file}"
4131 xm_defines
="USG NO_SYS_SIGLIST"
4132 if test x
$gas = xyes
4134 xmake_file
=m68k
/x-hp320g
4135 tm_file
=m68k
/hp320g.h
4137 xmake_file
=m68k
/x-hp320
4138 tm_file
=m68k
/hp320.h
4140 install_headers_dir
=install-headers-cpio
4142 extra_headers
=math-68881.h
4146 tm_file
=m68k
/sun3mach.h
4148 extra_headers
=math-68881.h
4152 if test x
$gas = xyes
4154 tm_file
=m68k
/news3gas.h
4156 tm_file
=m68k
/news3.h
4159 extra_headers
=math-68881.h
4162 m68k-sony-bsd
* | m68k-sony-newsos
*)
4163 if test x
$gas = xyes
4165 tm_file
=m68k
/newsgas.h
4170 extra_headers
=math-68881.h
4173 m68k-next-nextstep2
*)
4174 tm_file
=m68k
/next21.h
4175 xm_file
="m68k/xm-next.h ${xm_file}"
4176 tmake_file
=m68k
/t-next
4177 xmake_file
=m68k
/x-next
4178 extra_objs
=nextstep.o
4179 extra_headers
=math-68881.h
4183 m68k-next-nextstep3
*)
4185 xm_file
="m68k/xm-next.h ${xm_file}"
4186 tmake_file
=m68k
/t-next
4187 xmake_file
=m68k
/x-next
4188 extra_objs
=nextstep.o
4189 extra_parts
="crtbegin.o crtend.o"
4190 extra_headers
=math-68881.h
4192 if test x
$enable_threads = xyes
; then
4197 if test x
$with_fp = xno
4199 tm_file
=m68k
/sun3n3.h
4201 tm_file
=m68k
/sun3o3.h
4205 extra_headers
=math-68881.h
4207 m68k-sun-sunos
*) # For SunOS 4 (the default).
4208 if test x
$with_fp = xno
4210 tm_file
=m68k
/sun3n.h
4216 extra_headers
=math-68881.h
4219 tm_file
=m68k
/vxm68k.h
4220 tmake_file
=m68k
/t-vxworks68
4221 extra_headers
=math-68881.h
4222 thread_file
='vxworks'
4226 tmake_file
=m68k
/t-m68kbare
4227 tm_file
="m68k/m68k-aout.h libgloss.h"
4228 extra_headers
=math-68881.h
4232 tmake_file
=m68k
/t-m68kbare
4233 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4234 extra_headers
=math-68881.h
4237 m68020-
*-elf* | m68k-
*-elf*)
4238 tm_file
="m68k/m68020-elf.h libgloss.h"
4239 xm_file
=m68k
/xm-m68kv.h
4240 tmake_file
=m68k
/t-m68kelf
4241 header_files
=math-68881.h
4244 if test x
$gas = xyes
4248 tm_file
=m68k
/lynx-ng.h
4250 xm_file
=m68k
/xm-lynx.h
4252 tmake_file
=m68k
/t-lynx
4253 extra_headers
=math-68881.h
4257 tm_file
=m68k
/netbsd.h
4263 # we need collect2 until our bug is fixed...
4266 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4267 xm_file
="xm-alloca.h ${xm_file}"
4269 xmake_file
=m68k
/x-m68kv
4270 extra_parts
="crtbegin.o crtend.o"
4271 extra_headers
=math-68881.h
4274 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4275 tm_file
=m68k
/m68kv4.h
4276 xm_file
="xm-alloca.h ${xm_file}"
4279 extra_parts
="crtbegin.o crtend.o"
4280 extra_headers
=math-68881.h
4283 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4286 tm_file
=m68k
/linux-aout.h
4287 tmake_file
="t-linux-aout m68k/t-linux-aout"
4288 extra_headers
=math-68881.h
4292 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4293 # with ELF format using the
4294 # GNU/Linux C library 5
4296 tm_file
=m68k
/linux.h
4297 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4298 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4299 extra_headers
=math-68881.h
4303 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4304 # with ELF format using glibc 2
4305 # aka the GNU/Linux C library 6.
4307 tm_file
=m68k
/linux.h
4308 tmake_file
="t-linux m68k/t-linux"
4309 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4310 extra_headers
=math-68881.h
4313 if test x
$enable_threads = xyes
; then
4318 tmake_file
=m68k
/t-m68kbare
4319 tm_file
=m68k
/m68k-psos.h
4320 extra_headers
=math-68881.h
4324 tmake_file
="m68k/t-m68kbare t-rtems"
4325 tm_file
=m68k
/rtems.h
4326 extra_headers
=math-68881.h
4333 tm_file
=m88k
/dguxbcs.h
4334 tmake_file
=m88k
/t-dguxbcs
4338 tmake_file
=m88k
/t-dgux
4341 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4342 xmake_file
=m88k
/x-dgux
4343 if test x
$gas = xyes
4345 tmake_file
=m88k
/t-dgux-gas
4348 m88k-dolphin-sysv3
*)
4349 tm_file
=m88k
/dolph.h
4350 extra_parts
="crtbegin.o crtend.o"
4351 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4352 xmake_file
=m88k
/x-dolph
4353 if test x
$gas = xyes
4355 tmake_file
=m88k
/t-m88k-gas
4358 m88k-tektronix-sysv3
)
4359 tm_file
=m88k
/tekXD88.h
4360 extra_parts
="crtbegin.o crtend.o"
4361 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4362 xmake_file
=m88k
/x-tekXD88
4363 if test x
$gas = xyes
4365 tmake_file
=m88k
/t-m88k-gas
4369 tm_file
=m88k
/m88k-aout.h
4372 tm_file
=m88k
/m88k-coff.h
4373 tmake_file
=m88k
/t-bug
4377 extra_parts
="crtbegin.o crtend.o"
4378 if test x
$gas = xyes
4380 tmake_file
=m88k
/t-luna-gas
4382 tmake_file
=m88k
/t-luna
4386 tmake_file
="${tmake_file} m88k/t-luna-gas"
4389 tm_file
=m88k
/sysv3.h
4390 extra_parts
="crtbegin.o crtend.o"
4391 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4392 xmake_file
=m88k
/x-sysv3
4393 if test x
$gas = xyes
4395 tmake_file
=m88k
/t-m88k-gas
4399 tm_file
=m88k
/sysv4.h
4400 extra_parts
="crtbegin.o crtend.o"
4401 xmake_file
=m88k
/x-sysv4
4402 tmake_file
=m88k
/t-sysv4
4404 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
4405 tm_file
=mips
/iris6.h
4406 xm_file
=mips
/xm-iris6.h
4407 xmake_file
=mips
/x-iris6
4408 tmake_file
=mips
/t-iris6
4409 # if test x$enable_threads = xyes; then
4410 # thread_file='irix'
4414 tm_file
="mips/elf.h libgloss.h"
4415 tmake_file
=mips
/t-ecoff
4418 extra_parts
="crtbegin.o crtend.o"
4419 thread_file
='vxworks'
4421 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
4422 tm_file
="mips/iris6.h mips/cross64.h"
4424 xm_file
="mips/xm-iris5.h"
4425 xmake_file
=mips
/x-iris
4426 tmake_file
=mips
/t-cross64
4427 # See comment in mips/iris[56].h files.
4429 # if test x$enable_threads = xyes; then
4430 # thread_file='irix'
4434 if test x
$gas = xyes
4436 if test x
$stabs = xyes
4438 tm_file
=mips
/iris5gdb.h
4440 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
4443 tm_file
=mips
/sni-svr4.h
4446 xmake_file
=mips
/x-sni-svr4
4447 tmake_file
=mips
/t-mips-gas
4448 if test x
$gnu_ld != xyes
4453 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
4454 if test x
$gas = xyes
4456 tm_file
="mips/iris5.h mips/iris5gas.h"
4457 if test x
$stabs = xyes
4459 tm_file
="${tm_file} dbx.h"
4462 tm_file
=mips
/iris5.h
4465 xm_file
="mips/xm-iris5.h"
4466 xmake_file
=mips
/x-iris
4467 # mips-tfile doesn't work yet
4468 tmake_file
=mips
/t-mips-gas
4469 # See comment in mips/iris5.h file.
4471 # if test x$enable_threads = xyes; then
4472 # thread_file='irix'
4475 mips-sgi-irix4loser
*) # Mostly like a MIPS.
4476 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4477 if test x
$stabs = xyes
; then
4478 tm_file
="${tm_file} dbx.h"
4481 xmake_file
=mips
/x-iris
4482 if test x
$gas = xyes
4484 tmake_file
=mips
/t-mips-gas
4486 extra_passes
="mips-tfile mips-tdump"
4488 if test x
$gnu_ld != xyes
4492 # if test x$enable_threads = xyes; then
4493 # thread_file='irix'
4496 mips-sgi-irix4
*) # Mostly like a MIPS.
4497 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
4498 if test x
$stabs = xyes
; then
4499 tm_file
="${tm_file} dbx.h"
4502 xmake_file
=mips
/x-iris
4503 if test x
$gas = xyes
4505 tmake_file
=mips
/t-mips-gas
4507 extra_passes
="mips-tfile mips-tdump"
4509 if test x
$gnu_ld != xyes
4513 # if test x$enable_threads = xyes; then
4514 # thread_file='irix'
4517 mips-sgi-
*) # Mostly like a MIPS.
4518 tm_file
="mips/iris3.h ${tm_file}"
4519 if test x
$stabs = xyes
; then
4520 tm_file
="${tm_file} dbx.h"
4523 xmake_file
=mips
/x-iris3
4524 if test x
$gas = xyes
4526 tmake_file
=mips
/t-mips-gas
4528 extra_passes
="mips-tfile mips-tdump"
4530 if test x
$gnu_ld != xyes
4535 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
4536 tm_file
="mips/osfrose.h ${tm_file}"
4537 xmake_file
=mips
/x-osfrose
4538 tmake_file
=mips
/t-osfrose
4539 extra_objs
=halfpic.o
4542 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
4543 tm_file
=mips
/dec-osf1.h
4544 if test x
$stabs = xyes
; then
4545 tm_file
="${tm_file} dbx.h"
4547 xmake_file
=mips
/x-dec-osf1
4548 if test x
$gas = xyes
4550 tmake_file
=mips
/t-mips-gas
4552 tmake_file
=mips
/t-ultrix
4553 extra_passes
="mips-tfile mips-tdump"
4555 if test x
$gnu_ld != xyes
4560 mips-dec-bsd
*) # Decstation running 4.4 BSD
4561 tm_file
=mips
/dec-bsd.h
4562 if test x
$gas = xyes
4564 tmake_file
=mips
/t-mips-gas
4566 tmake_file
=mips
/t-ultrix
4567 extra_passes
="mips-tfile mips-tdump"
4569 if test x
$gnu_ld != xyes
4574 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
4575 tm_file
=mips
/netbsd.h
4576 # On NetBSD, the headers are already okay, except for math.h.
4579 mips
*-*-linux*) # Linux MIPS, either endian.
4581 xm_file
="xm-siglist.h ${xm_file}"
4583 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
4584 *) tm_file
="mips/elf.h mips/linux.h" ;;
4586 extra_parts
="crtbegin.o crtend.o"
4589 fixincludes
=Makefile.
in
4591 mips
*el-
*-openbsd*) # mips little endian
4592 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
4593 tm_file
=mips
/openbsd.h
4596 mips
*-*-openbsd*) # mips big endian
4597 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
4598 tm_file
=mips
/openbsd-be.h
4601 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
4602 tm_file
="mips/news4.h ${tm_file}"
4603 if test x
$stabs = xyes
; then
4604 tm_file
="${tm_file} dbx.h"
4606 if test x
$gas = xyes
4608 tmake_file
=mips
/t-mips-gas
4610 extra_passes
="mips-tfile mips-tdump"
4612 if test x
$gnu_ld != xyes
4616 xmake_file
=mips
/x-sony
4618 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
4619 # That is based on svr4.
4620 # t-svr4 is not right because this system doesn't use ELF.
4621 tm_file
="mips/news5.h ${tm_file}"
4622 if test x
$stabs = xyes
; then
4623 tm_file
="${tm_file} dbx.h"
4625 xm_file
="xm-siglist.h ${xm_file}"
4627 if test x
$gas = xyes
4629 tmake_file
=mips
/t-mips-gas
4631 extra_passes
="mips-tfile mips-tdump"
4633 if test x
$gnu_ld != xyes
4638 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
4639 tm_file
="mips/svr4-5.h mips/svr4-t.h"
4640 if test x
$stabs = xyes
; then
4641 tm_file
="${tm_file} dbx.h"
4643 xm_file
="xm-siglist.h ${xm_file}"
4645 xmake_file
=mips
/x-sysv
4646 if test x
$gas = xyes
4648 tmake_file
=mips
/t-mips-gas
4649 extra_parts
="crtbegin.o crtend.o"
4651 tmake_file
=mips
/t-mips
4652 extra_passes
="mips-tfile mips-tdump"
4654 if test x
$gnu_ld != xyes
4659 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
4660 tm_file
="mips/ultrix.h ${tm_file}"
4661 if test x
$stabs = xyes
; then
4662 tm_file
="${tm_file} dbx.h"
4664 xmake_file
=mips
/x-ultrix
4665 if test x
$gas = xyes
4667 tmake_file
=mips
/t-mips-gas
4669 tmake_file
=mips
/t-ultrix
4670 extra_passes
="mips-tfile mips-tdump"
4672 if test x
$gnu_ld != xyes
4677 mips-
*-riscos[56789]bsd
*)
4678 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
4679 if test x
$stabs = xyes
; then
4680 tm_file
="${tm_file} dbx.h"
4682 if test x
$gas = xyes
4684 tmake_file
=mips
/t-bsd-gas
4686 tmake_file
=mips
/t-bsd
4687 extra_passes
="mips-tfile mips-tdump"
4689 if test x
$gnu_ld != xyes
4694 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
4695 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4696 if test x
$stabs = xyes
; then
4697 tm_file
="${tm_file} dbx.h"
4699 if test x
$gas = xyes
4701 tmake_file
=mips
/t-bsd-gas
4703 tmake_file
=mips
/t-bsd
4704 extra_passes
="mips-tfile mips-tdump"
4706 if test x
$gnu_ld != xyes
4711 mips-
*-riscos[56789]sysv4
*)
4712 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
4713 if test x
$stabs = xyes
; then
4714 tm_file
="${tm_file} dbx.h"
4716 xm_file
="xm-siglist.h ${xm_file}"
4717 xmake_file
=mips
/x-sysv
4718 if test x
$gas = xyes
4720 tmake_file
=mips
/t-svr4-gas
4722 tmake_file
=mips
/t-svr4
4723 extra_passes
="mips-tfile mips-tdump"
4725 if test x
$gnu_ld != xyes
4730 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
4731 tm_file
="mips/svr4-4.h ${tm_file}"
4732 if test x
$stabs = xyes
; then
4733 tm_file
="${tm_file} dbx.h"
4736 xmake_file
=mips
/x-sysv
4737 if test x
$gas = xyes
4739 tmake_file
=mips
/t-svr4-gas
4741 tmake_file
=mips
/t-svr4
4742 extra_passes
="mips-tfile mips-tdump"
4744 if test x
$gnu_ld != xyes
4749 mips-
*-riscos[56789]sysv
*)
4750 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
4751 if test x
$stabs = xyes
; then
4752 tm_file
="${tm_file} dbx.h"
4755 xmake_file
=mips
/x-sysv
4756 if test x
$gas = xyes
4758 tmake_file
=mips
/t-svr3-gas
4760 tmake_file
=mips
/t-svr3
4761 extra_passes
="mips-tfile mips-tdump"
4763 if test x
$gnu_ld != xyes
4768 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4769 tm_file
="mips/svr3-4.h ${tm_file}"
4770 if test x
$stabs = xyes
; then
4771 tm_file
="${tm_file} dbx.h"
4774 xmake_file
=mips
/x-sysv
4775 if test x
$gas = xyes
4777 tmake_file
=mips
/t-svr3-gas
4779 tmake_file
=mips
/t-svr3
4780 extra_passes
="mips-tfile mips-tdump"
4782 if test x
$gnu_ld != xyes
4787 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4788 tm_file
=mips
/mips-5.h
4789 if test x
$stabs = xyes
; then
4790 tm_file
="${tm_file} dbx.h"
4792 if test x
$gas = xyes
4794 tmake_file
=mips
/t-mips-gas
4796 extra_passes
="mips-tfile mips-tdump"
4798 if test x
$gnu_ld != xyes
4806 tm_file
=mips
/ecoffl.h
4807 if test x
$stabs = xyes
; then
4808 tm_file
="${tm_file} dbx.h"
4810 tmake_file
=mips
/t-ecoff
4813 tm_file
="gofast.h mips/ecoff.h"
4814 if test x
$stabs = xyes
; then
4815 tm_file
="${tm_file} dbx.h"
4817 tmake_file
=mips
/t-ecoff
4820 tm_file
="mips/elfl.h libgloss.h"
4821 tmake_file
=mips
/t-ecoff
4824 tm_file
="mips/elf.h libgloss.h"
4825 tmake_file
=mips
/t-ecoff
4828 tm_file
="mips/elfl64.h libgloss.h"
4829 tmake_file
=mips
/t-ecoff
4831 mips64orionel-
*-elf*)
4832 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4833 tmake_file
=mips
/t-ecoff
4836 tm_file
="mips/elf64.h libgloss.h"
4837 tmake_file
=mips
/t-ecoff
4840 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4841 tmake_file
=mips
/t-ecoff
4843 mips64orion-
*-rtems*)
4844 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
4845 tmake_file
="mips/t-ecoff t-rtems"
4848 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4849 tmake_file
=mips
/t-r3900
4852 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4853 tmake_file
=mips
/t-r3900
4854 # FIXME mips-elf should be fixed to use crtstuff.
4857 mips-
*-*) # Default MIPS RISC-OS 4.0.
4858 if test x
$stabs = xyes
; then
4859 tm_file
="${tm_file} dbx.h"
4861 if test x
$gas = xyes
4863 tmake_file
=mips
/t-mips-gas
4865 extra_passes
="mips-tfile mips-tdump"
4867 if test x
$gnu_ld != xyes
4874 tm_file
="mn10200/mn10200.h"
4875 if test x
$stabs = xyes
4877 tm_file
="${tm_file} dbx.h"
4883 tm_file
="mn10300/mn10300.h"
4884 if test x
$stabs = xyes
4886 tm_file
="${tm_file} dbx.h"
4891 tm_file
=ns32k
/encore.h
4895 tm_file
=ns32k
/sequent.h
4899 tm_file
=ns32k
/tek6100.h
4903 tm_file
=ns32k
/tek6200.h
4906 # This has not been updated to GCC 2.
4909 # xmake_file=ns32k/x-genix
4910 # tm_file=ns32k/genix.h
4914 tm_file
=ns32k
/merlin.h
4918 tm_file
=ns32k
/pc532-mach.h
4922 tm_file
=ns32k
/pc532-min.h
4923 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4928 tm_file
=ns32k
/netbsd.h
4929 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
4930 # On NetBSD, the headers are already okay, except for math.h.
4934 tm_file
="${tm_file} pdp11/2bsd.h"
4943 xmake_file
=pyr
/x-pyr
4950 xmake_file
=romp
/x-mach
4957 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
4962 tm_file
=rs6000
/beos.h
4963 xm_file
=rs6000
/xm-beos.h
4964 tmake_file
=rs6000
/t-beos
4965 xmake_file
=rs6000
/x-beos
4967 powerpc-
*-sysv* | powerpc-
*-elf*)
4968 tm_file
=rs6000
/sysv4.h
4969 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4970 xm_defines
="USG POSIX"
4971 extra_headers
=ppc-asm.h
4972 if test x
$gas = xyes
4974 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4976 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4978 xmake_file
=rs6000
/x-sysv4
4981 tm_file
=rs6000
/eabiaix.h
4982 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4983 extra_headers
=ppc-asm.h
4986 tm_file
=rs6000
/eabisim.h
4987 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4988 extra_headers
=ppc-asm.h
4991 tm_file
=rs6000
/eabi.h
4992 if test x
$gas = xyes
4994 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4996 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4998 extra_headers
=ppc-asm.h
5001 tm_file
=rs6000
/rtems.h
5002 if test x
$gas = xyes
5004 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5006 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5008 extra_headers
=ppc-asm.h
5010 powerpc-
*-linux-gnulibc1)
5011 tm_file
=rs6000
/linux.h
5012 xm_file
=rs6000
/xm-sysv4.h
5013 out_file
=rs6000
/rs6000.c
5014 if test x
$gas = xyes
5016 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5018 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5021 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5022 extra_headers
=ppc-asm.h
5023 if test x
$enable_threads = xyes
; then
5027 powerpc-
*-linux-gnu*)
5028 tm_file
=rs6000
/linux.h
5029 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5030 xm_defines
="USG ${xm_defines}"
5031 out_file
=rs6000
/rs6000.c
5032 if test x
$gas = xyes
5034 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5036 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5039 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5040 extra_headers
=ppc-asm.h
5041 if test x
$enable_threads = xyes
; then
5045 powerpc-wrs-vxworks
*)
5047 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5048 xm_defines
="USG POSIX"
5049 tm_file
=rs6000
/vxppc.h
5050 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5051 extra_headers
=ppc-asm.h
5052 thread_file
='vxworks'
5054 powerpcle-
*-sysv* | powerpcle-
*-elf*)
5055 tm_file
=rs6000
/sysv4le.h
5056 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5057 xm_defines
="USG POSIX"
5058 if test x
$gas = xyes
5060 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5062 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5064 xmake_file
=rs6000
/x-sysv4
5065 extra_headers
=ppc-asm.h
5067 powerpcle-
*-eabisim*)
5068 tm_file
=rs6000
/eabilesim.h
5069 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5070 extra_headers
=ppc-asm.h
5073 tm_file
=rs6000
/eabile.h
5074 if test x
$gas = xyes
5076 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5078 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5080 extra_headers
=ppc-asm.h
5082 powerpcle-
*-winnt* )
5083 tm_file
=rs6000
/win-nt.h
5084 tmake_file
=rs6000
/t-winnt
5086 if test x
$enable_threads = xyes
; then
5089 extra_headers
=ppc-asm.h
5091 powerpcle-
*-pe | powerpcle-
*-cygwin*)
5092 tm_file
=rs6000
/cygwin.h
5093 xm_file
="rs6000/xm-cygwin.h ${xm_file}"
5094 tmake_file
=rs6000
/t-winnt
5095 xmake_file
=rs6000
/x-cygwin
5097 if test x
$enable_threads = xyes
; then
5101 extra_headers
=ppc-asm.h
5103 powerpcle-
*-solaris2*)
5104 tm_file
=rs6000
/sol2.h
5105 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5106 xm_defines
="USG POSIX"
5107 if test x
$gas = xyes
5109 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5111 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5113 xmake_file
=rs6000
/x-sysv4
5114 extra_headers
=ppc-asm.h
5116 rs6000-ibm-aix3.
[01]*)
5117 tm_file
=rs6000
/aix31.h
5118 xmake_file
=rs6000
/x-aix31
5122 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5123 tm_file
=rs6000
/aix3newas.h
5124 if test x
$host != x
$target
5126 tmake_file
=rs6000
/t-xnewas
5128 tmake_file
=rs6000
/t-newas
5133 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5134 if test "$gnu_ld" = yes
5136 tm_file
=rs6000
/aix41-gld.h
5138 tm_file
=rs6000
/aix41.h
5140 if test x
$host != x
$target
5142 tmake_file
=rs6000
/t-xnewas
5144 tmake_file
=rs6000
/t-newas
5146 xmake_file
=rs6000
/x-aix41
5150 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
5151 tm_file
=rs6000
/aix43.h
5152 if test x
$host != x
$target
5154 tmake_file
=rs6000
/t-xaix43
5156 tmake_file
=rs6000
/t-aix43
5158 xmake_file
=rs6000
/x-aix43
5162 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5163 tm_file
=rs6000
/aix43.h
5164 if test x
$host != x
$target
5166 tmake_file
=rs6000
/t-xaix43
5168 tmake_file
=rs6000
/t-aix43
5170 xmake_file
=rs6000
/x-aix43
5183 tm_file
=rs6000
/mach.h
5184 xm_file
="${xm_file} rs6000/xm-mach.h"
5185 xmake_file
=rs6000
/x-mach
5189 tm_file
=rs6000
/lynx.h
5190 xm_file
=rs6000
/xm-lynx.h
5191 tmake_file
=rs6000
/t-rs6000
5192 xmake_file
=rs6000
/x-lynx
5200 tmake_file
="sh/t-sh t-rtems"
5201 tm_file
=sh
/rtemself.h
5205 tmake_file
="sh/t-sh t-rtems"
5214 xm_file
="xm-alloca.h ${xm_file}"
5217 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5218 tm_file
=sparc
/vxsparc.h
5219 tmake_file
=sparc
/t-vxsparc
5221 thread_file
='vxworks'
5224 tmake_file
=sparc
/t-sparcbare
5225 tm_file
="sparc/aout.h libgloss.h"
5228 tm_file
=sparc
/netbsd.h
5232 # we need collect2 until our bug is fixed...
5240 tmake_file
=sparc
/t-elf
5241 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5245 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5246 xm_file
="${xm_file} sparc/xm-linux.h"
5247 tm_file
=sparc
/linux-aout.h
5251 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5252 xm_file
="${xm_file} sparc/xm-linux.h"
5254 tm_file
=sparc
/linux.h
5255 tmake_file
="t-linux t-linux-gnulibc1"
5256 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5259 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5260 xm_file
="${xm_file} sparc/xm-linux.h"
5262 tm_file
=sparc
/linux.h
5263 tmake_file
="t-linux"
5264 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5266 if test x
$enable_threads = xyes
; then
5271 if test x
$gas = xyes
5273 tm_file
=sparc
/lynx.h
5275 tm_file
=sparc
/lynx-ng.h
5277 xm_file
=sparc
/xm-lynx.h
5278 tmake_file
=sparc
/t-sunos41
5282 tmake_file
="sparc/t-sparcbare t-rtems"
5283 tm_file
=sparc
/rtems.h
5285 sparcv9-
*-solaris2*)
5286 tm_file
=sparc
/sol2-sld-64.h
5287 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5288 xm_defines
="USG POSIX"
5289 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5290 xmake_file
=sparc
/x-sysv4
5291 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5293 if test x
${enable_threads} = x
; then
5294 enable_threads
=$have_pthread_h
5295 if test x
${enable_threads} = x
; then
5296 enable_threads
=$have_thread_h
5299 if test x
${enable_threads} = xyes
; then
5300 if test x
${have_pthread_h} = xyes
; then
5303 thread_file
='solaris'
5307 sparc-hal-solaris2
*)
5308 xm_file
=sparc
/xm-sol2.h
5309 tm_file
="sparc/sol2.h sparc/hal.h"
5310 tmake_file
="sparc/t-halos sparc/t-sol2"
5311 xmake_file
=sparc
/x-sysv4
5312 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5313 fixincludes
=fixinc.svr4
5317 if test x
$gnu_ld = xyes
5319 tm_file
=sparc
/sol2.h
5321 tm_file
=sparc
/sol2-sld.h
5323 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5324 xm_defines
="USG POSIX"
5325 tmake_file
=sparc
/t-sol2
5326 xmake_file
=sparc
/x-sysv4
5327 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5336 if test x
${enable_threads} = x
; then
5337 enable_threads
=$have_pthread_h
5338 if test x
${enable_threads} = x
; then
5339 enable_threads
=$have_thread_h
5342 if test x
${enable_threads} = xyes
; then
5343 if test x
${have_pthread_h} = xyes
; then
5346 thread_file
='solaris'
5351 tm_file
=sparc
/sunos4.h
5352 tmake_file
=sparc
/t-sunos40
5356 tm_file
=sparc
/sunos4.h
5357 tmake_file
=sparc
/t-sunos41
5359 if test x
$gas = xyes
; then
5360 tm_file
="${tm_file} sparc/sun4gas.h"
5364 tm_file
=sparc
/sun4o3.h
5368 tm_file
=sparc
/sysv4.h
5369 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
5370 xm_defines
="USG POSIX"
5372 xmake_file
=sparc
/x-sysv4
5373 extra_parts
="crtbegin.o crtend.o"
5376 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5377 xm_defines
="USG POSIX"
5378 tm_file
=sparc
/vxsim.h
5379 tmake_file
=sparc
/t-vxsparc
5380 xmake_file
=sparc
/x-sysv4
5383 tm_file
="sparc/splet.h libgloss.h"
5384 tmake_file
=sparc
/t-splet
5387 tm_file
="sparc/litecoff.h libgloss.h"
5388 tmake_file
=sparc
/t-sparclite
5391 tm_file
="sparc/lite.h aoutos.h libgloss.h"
5392 tmake_file
=sparc
/t-sparclite
5395 tmake_file
=sparc
/t-sp64
5396 tm_file
=sparc
/sp64-aout.h
5399 tmake_file
=sparc
/t-sp64
5400 tm_file
=sparc
/sp64-elf.h
5401 extra_parts
="crtbegin.o crtend.o"
5403 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
5404 tmake_file
="t-linux sparc/t-linux64"
5405 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
5406 tm_file
=sparc
/linux64.h
5408 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5411 # This hasn't been upgraded to GCC 2.
5412 # tahoe-harris-*) # Harris tahoe, using COFF.
5413 # tm_file=tahoe/harris.h
5415 # tahoe-*-bsd*) # tahoe running BSD
5417 thumb-
*-coff* | thumbel-
*-coff*)
5419 out_file
=arm
/thumb.c
5420 xm_file
=arm
/xm-thumb.h
5421 md_file
=arm
/thumb.md
5422 tmake_file
=arm
/t-thumb
5426 out_file
=arm
/thumb.c
5427 xm_file
=arm
/xm-thumb.h
5428 md_file
=arm
/thumb.md
5429 tmake_file
=arm
/t-thumb
5430 thread_file
='vxworks'
5432 # This hasn't been upgraded to GCC 2.
5439 tm_file
="v850/v850.h"
5440 xm_file
="v850/xm-v850.h"
5441 tmake_file
=v850
/t-v850
5442 if test x
$stabs = xyes
5444 tm_file
="${tm_file} dbx.h"
5448 vax-
*-bsd*) # vaxen running BSD
5452 vax-
*-sysv*) # vaxen running system V
5453 tm_file
="${tm_file} vax/vaxv.h"
5458 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
5463 tmake_file
="${tm_file} vax/t-openbsd"
5465 vax-
*-ultrix*) # vaxen running ultrix
5466 tm_file
="${tm_file} vax/ultrix.h"
5470 vax-
*-vms*) # vaxen running VMS
5471 xm_file
=vax
/xm-vms.h
5475 vax-
*-*) # vax default entry
5479 xm_file
="${xm_file} xm-svr3"
5483 echo "Configuration $machine not supported" 1>&2
5490 ;; # Existing GNU/Linux systems do not use the GNU setup.
5492 # On the GNU system, the setup is just about the same on
5493 # each different CPU. The specific machines that GNU
5494 # supports are matched above and just set $cpu_type.
5495 xm_file
="xm-gnu.h ${xm_file}"
5496 tm_file
=${cpu_type}/gnu.h
5497 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5498 # GNU always uses ELF.
5500 # GNU tools are the only tools.
5503 xmake_file
=x-linux
# These details are the same as Linux.
5504 tmake_file
=t-gnu
# These are not.
5507 xmake_try_sysv
=x-sysv
5508 install_headers_dir
=install-headers-cpio
5511 install_headers_dir
=install-headers-cpio
5515 # Distinguish i[34567]86
5516 # Also, do not run mips-tfile on MIPS if using gas.
5517 # Process --with-cpu= for PowerPC/rs6000
5518 target_cpu_default2
=
5521 target_cpu_default2
=1
5524 case $target_alias in
5526 target_cpu_default2
=4
5529 target_cpu_default2
=2
5533 i686-
*-* | i786-
*-*)
5534 target_cpu_default2
=3
5539 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
5542 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5545 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
5548 target_cpu_default2
="MASK_CPU_EV5"
5552 if test x
$gas = xyes
5554 if test "$target_cpu_default2" = ""
5556 target_cpu_default2
="MASK_GAS"
5558 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
5563 case "x$with_cpu" in
5566 target_cpu_default2
="TARGET_CPU_generic"
5569 # Distinguish cores, and major variants
5570 # arm7m doesn't exist, but D & I don't affect code
5571 xarm23678 | xarm250 | xarm67010 \
5572 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5573 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5574 | xstrongarm | xstrongarm110 | xstrongarm1100
)
5575 target_cpu_default2
="TARGET_CPU_$with_cpu"
5579 echo "--with-cpu must be passed a value" 1>&2
5584 if test x
$pass2done = xyes
5586 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5593 mips
*-*-ecoff* | mips
*-*-elf*)
5594 if test x
$gas = xyes
5596 if test x
$gnu_ld = xyes
5598 target_cpu_default2
=20
5600 target_cpu_default2
=16
5605 if test x
$gas = xyes
5607 target_cpu_default2
=16
5610 powerpc
*-*-* | rs6000-
*-*)
5611 case "x$with_cpu" in
5615 xcommon | xpower | xpower2 | xpowerpc | xrios \
5616 | xrios1 | xrios2 | xrsc | xrsc1 \
5617 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5618 | xec603e | x740 | x750 | x401 \
5619 | x403 | x505 | x801 | x821 | x823 | x860
)
5620 target_cpu_default2
="\"$with_cpu\""
5624 echo "--with-cpu must be passed a value" 1>&2
5629 if test x
$pass2done = xyes
5631 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5638 case ".$with_cpu" in
5640 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
5642 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
5643 target_cpu_default2
="TARGET_CPU_$with_cpu"
5646 if test x
$pass2done = xyes
5648 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5656 if test "$target_cpu_default2" != ""
5658 if test "$target_cpu_default" != ""
5660 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
5662 target_cpu_default
=$target_cpu_default2
5666 # No need for collect2 if we have the GNU linker.
5667 # Actually, there is now; GNU ld doesn't handle the EH info or
5668 # collecting for shared libraries.
5675 # Save data on machine being used to compile GCC in build_xm_file.
5676 # Save data on host machine in vars host_xm_file and host_xmake_file.
5677 if test x
$pass1done = x
5679 if test x
"$xm_file" = x
5680 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
5681 else build_xm_file
=$xm_file
5683 build_xm_defines
=$xm_defines
5684 build_install_headers_dir
=$install_headers_dir
5685 build_exeext
=$exeext
5688 if test x
$pass2done = x
5690 if test x
"$xm_file" = x
5691 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
5692 else host_xm_file
=$xm_file
5694 host_xm_defines
=$xm_defines
5695 if test x
"$xmake_file" = x
5696 then xmake_file
=$cpu_type/x-
$cpu_type
5698 host_xmake_file
="$xmake_file"
5699 host_truncate_target
=$truncate_target
5700 host_extra_gcc_objs
=$extra_gcc_objs
5701 host_extra_objs
=$extra_host_objs
5708 extra_objs
="${host_extra_objs} ${extra_objs}"
5710 # Default the target-machine variables that were not explicitly set.
5711 if test x
"$tm_file" = x
5712 then tm_file
=$cpu_type/$cpu_type.h
; fi
5714 if test x
$extra_headers = x
5715 then extra_headers
=; fi
5717 if test x
"$xm_file" = x
5718 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
5720 if test x
$md_file = x
5721 then md_file
=$cpu_type/$cpu_type.md
; fi
5723 if test x
$out_file = x
5724 then out_file
=$cpu_type/$cpu_type.c
; fi
5726 if test x
"$tmake_file" = x
5727 then tmake_file
=$cpu_type/t-
$cpu_type
5730 if test x
"$dwarf2" = xyes
5731 then tm_file
="tm-dwarf2.h $tm_file"
5734 if test x
$float_format = x
5735 then float_format
=i64
5738 if test $float_format = none
5739 then float_h_file
=Makefile.
in
5740 else float_h_file
=float-
$float_format.h
5743 if test x
$enable_haifa = x
5746 alpha
*-* | hppa
*-* | powerpc
*-* | rs6000-
* |
*sparc
*-* | m32r
*-*)
5751 # Handle cpp installation.
5752 if [ x
$enable_cpp != x
]
5754 tmake_file
="$tmake_file t-install-cpp"
5757 # Say what files are being used for the output code and MD file.
5758 echo "Using \`$srcdir/config/$out_file' to output insns."
5759 echo "Using \`$srcdir/config/$md_file' as machine description file."
5762 for f
in $tm_file; do
5765 if test $count = ax
; then
5766 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5768 echo "Using the following target machine macro files:"
5769 for f
in $tm_file; do
5770 echo " $srcdir/config/$f"
5775 for f
in $host_xm_file; do
5778 if test $count = ax
; then
5779 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5781 echo "Using the following host machine macro files:"
5782 for f
in $host_xm_file; do
5783 echo " $srcdir/config/$f"
5787 if test "$host_xm_file" != "$build_xm_file"; then
5789 for f
in $build_xm_file; do
5792 if test $count = ax
; then
5793 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5795 echo "Using the following build machine macro files:"
5796 for f
in $build_xm_file; do
5797 echo " $srcdir/config/$f"
5802 if test x
$thread_file = x
; then
5803 if test x
$target_thread_file != x
; then
5804 thread_file
=$target_thread_file
5806 thread_file
='single'
5810 # Set up the header files.
5811 # $links is the list of header files to create.
5812 # $vars is the list of shell variables with file names to include.
5813 # auto-host.h is the file containing items generated by autoconf and is
5814 # the first file included by config.h.
5816 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5818 # If host=build, it is correct to have hconfig include auto-host.h
5819 # as well. If host!=build, we are in error and need to do more
5820 # work to find out the build config parameters.
5821 if test x
$host = x
$build
5823 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5825 # We create a subdir, then run autoconf in the subdir.
5826 # To prevent recursion we set host and build for the new
5827 # invocation of configure to the build for this invocation
5834 /*) realsrcdir
=${srcdir};;
5835 *) realsrcdir
=..
/${srcdir};;
5837 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5838 --target=$target --host=$build --build=$build
5840 # We just finished tests for the build machine, so rename
5841 # the file auto-build.h in the gcc directory.
5842 mv auto-host.h ..
/auto-build.h
5845 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
5848 xm_file
="gansidecl.h ${xm_file}"
5849 tm_file
="gansidecl.h ${tm_file}"
5851 vars
="host_xm_file tm_file xm_file build_xm_file"
5852 links
="config.h tm.h tconfig.h hconfig.h"
5853 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5856 if test -f config.status
; then mv -f config.status config.bak
; fi
5859 while test -n "$vars"
5861 set $vars; var
=$1; shift; vars
=$
*
5862 set $links; link
=$1; shift; links
=$
*
5863 set $defines; define
=$1; shift; defines
=$
*
5867 # Define TARGET_CPU_DEFAULT if the system wants one.
5868 # This substitutes for lots of *.h files.
5869 if test "$target_cpu_default" != "" -a $link = tm.h
5871 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5874 for file in `eval echo '$'$var`; do
5879 echo '#ifdef IN_GCC' >>$link
5882 echo "#include \"$file\"" >>$link
5887 echo '#endif' >>$link
5892 for def
in `eval echo '$'$define`; do
5893 echo "#ifndef $def" >>$link
5894 echo "#define $def" >>$link
5895 echo "#endif" >>$link
5899 # Truncate the target if necessary
5900 if test x
$host_truncate_target != x
; then
5901 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5904 # Get the version trigger filename from the toplevel
5905 if test "${with_gcc_version_trigger+set}" = set; then
5906 gcc_version_trigger
=$with_gcc_version_trigger
5908 gcc_version_trigger
=${srcdir}/version.c
5910 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5912 # Internationalization
5914 VERSION
="$gcc_version"
5915 cat >> confdefs.h
<<EOF
5916 #define PACKAGE "$PACKAGE"
5919 cat >> confdefs.h
<<EOF
5920 #define VERSION "$VERSION"
5928 # NLS support is still experimental, so disable it by default for now.
5929 # Check whether --enable-nls or --disable-nls was given.
5930 if test "${enable_nls+set}" = set; then
5931 enableval
="$enable_nls"
5939 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
5940 echo "configure:5941: checking for strerror in -lcposix" >&5
5941 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
5942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 ac_save_LIBS
="$LIBS"
5946 LIBS
="-lcposix $LIBS"
5947 cat > conftest.
$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5959 if { (eval echo configure
:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5961 eval "ac_cv_lib_$ac_lib_var=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.
$ac_ext >&5
5966 eval "ac_cv_lib_$ac_lib_var=no"
5969 LIBS
="$ac_save_LIBS"
5972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5973 echo "$ac_t""yes" 1>&6
5974 LIBS
="$LIBS -lcposix"
5976 echo "$ac_t""no" 1>&6
5981 echo $ac_n "checking for working const""... $ac_c" 1>&6
5982 echo "configure:5983: checking for working const" >&5
5983 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.
$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5992 /* Ultrix mips cc rejects this. */
5993 typedef int charset[2]; const charset x;
5994 /* SunOS 4.1.1 cc rejects this. */
5995 char const *const *ccp;
5997 /* NEC SVR4.0.2 mips cc rejects this. */
5998 struct point {int x, y;};
5999 static struct point const zero = {0,0};
6000 /* AIX XL C 1.02.0.0 rejects this.
6001 It does not let you subtract one const X* pointer from another in an arm
6002 of an if-expression whose if-part is not a constant expression */
6003 const char *g = "string";
6004 ccp = &g + (g ? g-g : 0);
6005 /* HPUX 7.0 cc rejects these. */
6008 ccp = (char const *const *) p;
6009 { /* SCO 3.2v4 cc rejects this. */
6011 char const *s = 0 ? (char *) 0 : (char const *) 0;
6015 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6017 const int *foo = &x[0];
6020 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6021 typedef const int *iptr;
6025 { /* AIX XL C 1.02.0.0 rejects this saying
6026 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6027 struct s { int j; const int *ap[3]; };
6028 struct s *b; b->j = 5;
6030 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6036 if { (eval echo configure
:6037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6040 echo "configure: failed program was:" >&5
6041 cat conftest.
$ac_ext >&5
6048 echo "$ac_t""$ac_cv_c_const" 1>&6
6049 if test $ac_cv_c_const = no
; then
6050 cat >> confdefs.h
<<\EOF
6056 echo $ac_n "checking for inline""... $ac_c" 1>&6
6057 echo "configure:6058: checking for inline" >&5
6058 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6062 for ac_kw
in inline __inline__ __inline
; do
6063 cat > conftest.
$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6071 if { (eval echo configure
:6072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6073 ac_cv_c_inline
=$ac_kw; break
6075 echo "configure: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6083 echo "$ac_t""$ac_cv_c_inline" 1>&6
6084 case "$ac_cv_c_inline" in
6086 no
) cat >> confdefs.h
<<\EOF
6090 *) cat >> confdefs.h
<<EOF
6091 #define inline $ac_cv_c_inline
6096 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6097 echo "configure:6098: checking for off_t" >&5
6098 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6101 cat > conftest.
$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6104 #include <sys/types.h>
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6113 ac_cv_type_off_t
=yes
6121 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6122 if test $ac_cv_type_off_t = no
; then
6123 cat >> confdefs.h
<<\EOF
6129 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6130 echo "configure:6131: checking for size_t" >&5
6131 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.
$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 #include <sys/types.h>
6143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6146 ac_cv_type_size_t
=yes
6149 ac_cv_type_size_t
=no
6154 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6155 if test $ac_cv_type_size_t = no
; then
6156 cat >> confdefs.h
<<\EOF
6157 #define size_t unsigned
6162 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6163 # for constant arguments. Useless!
6164 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6165 echo "configure:6166: checking for working alloca.h" >&5
6166 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6169 cat > conftest.
$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6174 char *p = alloca(2 * sizeof(int));
6177 if { (eval echo configure
:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6179 ac_cv_header_alloca_h
=yes
6181 echo "configure: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6184 ac_cv_header_alloca_h
=no
6189 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6190 if test $ac_cv_header_alloca_h = yes; then
6191 cat >> confdefs.h
<<\EOF
6192 #define HAVE_ALLOCA_H 1
6197 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6198 echo "configure:6199: checking for alloca" >&5
6199 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 cat > conftest.
$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6207 # define alloca __builtin_alloca
6210 # include <malloc.h>
6211 # define alloca _alloca
6214 # include <alloca.h>
6219 # ifndef alloca /* predefined by HP cc +Olibcalls */
6228 char *p = (char *) alloca(1);
6231 if { (eval echo configure
:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6233 ac_cv_func_alloca_works
=yes
6235 echo "configure: failed program was:" >&5
6236 cat conftest.
$ac_ext >&5
6238 ac_cv_func_alloca_works
=no
6243 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6244 if test $ac_cv_func_alloca_works = yes; then
6245 cat >> confdefs.h
<<\EOF
6246 #define HAVE_ALLOCA 1
6251 if test $ac_cv_func_alloca_works = no
; then
6252 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6253 # that cause trouble. Some versions do not even contain alloca or
6254 # contain a buggy version. If you still want to use their alloca,
6255 # use ar to extract alloca.o from them instead of compiling alloca.c.
6256 ALLOCA
=alloca.
${ac_objext}
6257 cat >> confdefs.h
<<\EOF
6262 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6263 echo "configure:6264: checking whether alloca needs Cray hooks" >&5
6264 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.
$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 #if defined(CRAY) && ! defined(CRAY2)
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 egrep "webecray" >/dev
/null
2>&1; then
6289 echo "$ac_t""$ac_cv_os_cray" 1>&6
6290 if test $ac_cv_os_cray = yes; then
6291 for ac_func
in _getb67 GETB67 getb67
; do
6292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6293 echo "configure:6294: checking for $ac_func" >&5
6294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6297 cat > conftest.
$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6300 /* System header to define __stub macros and hopefully few prototypes,
6301 which can conflict with char $ac_func(); below. */
6303 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6310 /* The GNU C library defines this for functions which it implements
6311 to always fail with ENOSYS. Some functions are actually named
6312 something starting with __ and the normal name is an alias. */
6313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6321 if { (eval echo configure
:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6323 eval "ac_cv_func_$ac_func=yes"
6325 echo "configure: failed program was:" >&5
6326 cat conftest.
$ac_ext >&5
6328 eval "ac_cv_func_$ac_func=no"
6333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6335 cat >> confdefs.h
<<EOF
6336 #define CRAY_STACKSEG_END $ac_func
6341 echo "$ac_t""no" 1>&6
6347 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6348 echo "configure:6349: checking stack direction for C alloca" >&5
6349 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6352 if test "$cross_compiling" = yes; then
6353 ac_cv_c_stack_direction
=0
6355 cat > conftest.
$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 find_stack_direction ()
6360 static char *addr = 0;
6365 return find_stack_direction ();
6368 return (&dummy > addr) ? 1 : -1;
6372 exit (find_stack_direction() < 0);
6375 if { (eval echo configure
:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6377 ac_cv_c_stack_direction
=1
6379 echo "configure: failed program was:" >&5
6380 cat conftest.
$ac_ext >&5
6382 ac_cv_c_stack_direction
=-1
6389 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6390 cat >> confdefs.h
<<EOF
6391 #define STACK_DIRECTION $ac_cv_c_stack_direction
6396 for ac_hdr
in unistd.h
6398 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_hdr" >&5
6401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 cat > conftest.
$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6409 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6410 { (eval echo configure
:6411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6411 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6412 if test -z "$ac_err"; then
6414 eval "ac_cv_header_$ac_safe=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.
$ac_ext >&5
6420 eval "ac_cv_header_$ac_safe=no"
6424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6427 cat >> confdefs.h
<<EOF
6428 #define $ac_tr_hdr 1
6432 echo "$ac_t""no" 1>&6
6436 for ac_func
in getpagesize
6438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_func" >&5
6440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 cat > conftest.
$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char $ac_func(); below. */
6449 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6456 /* The GNU C library defines this for functions which it implements
6457 to always fail with ENOSYS. Some functions are actually named
6458 something starting with __ and the normal name is an alias. */
6459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6467 if { (eval echo configure
:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6469 eval "ac_cv_func_$ac_func=yes"
6471 echo "configure: failed program was:" >&5
6472 cat conftest.
$ac_ext >&5
6474 eval "ac_cv_func_$ac_func=no"
6479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6480 echo "$ac_t""yes" 1>&6
6481 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6482 cat >> confdefs.h
<<EOF
6483 #define $ac_tr_func 1
6487 echo "$ac_t""no" 1>&6
6491 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6492 echo "configure:6493: checking for working mmap" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 if test "$cross_compiling" = yes; then
6497 ac_cv_func_mmap_fixed_mapped
=no
6499 cat > conftest.
$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6503 /* Thanks to Mike Haertel and Jim Avera for this test.
6504 Here is a matrix of mmap possibilities:
6505 mmap private not fixed
6506 mmap private fixed at somewhere currently unmapped
6507 mmap private fixed at somewhere already mapped
6508 mmap shared not fixed
6509 mmap shared fixed at somewhere currently unmapped
6510 mmap shared fixed at somewhere already mapped
6511 For private mappings, we should verify that changes cannot be read()
6512 back from the file, nor mmap's back from the file at a different
6513 address. (There have been systems where private was not correctly
6514 implemented like the infamous i386 svr4.0, and systems where the
6515 VM page cache was not coherent with the filesystem buffer cache
6516 like early versions of FreeBSD and possibly contemporary NetBSD.)
6517 For shared mappings, we should conversely verify that changes get
6518 propogated back to all the places they're supposed to be.
6520 Grep wants private fixed already mapped.
6521 The main things grep needs to know about mmap are:
6522 * does it exist and is it safe to write into the mmap'd area
6523 * how to use it (BSD variants) */
6524 #include <sys/types.h>
6526 #include <sys/mman.h>
6528 /* This mess was copied from the GNU getpagesize.h. */
6529 #ifndef HAVE_GETPAGESIZE
6530 # ifdef HAVE_UNISTD_H
6531 # include <unistd.h>
6534 /* Assume that all systems that can run configure have sys/param.h. */
6535 # ifndef HAVE_SYS_PARAM_H
6536 # define HAVE_SYS_PARAM_H 1
6539 # ifdef _SC_PAGESIZE
6540 # define getpagesize() sysconf(_SC_PAGESIZE)
6541 # else /* no _SC_PAGESIZE */
6542 # ifdef HAVE_SYS_PARAM_H
6543 # include <sys/param.h>
6544 # ifdef EXEC_PAGESIZE
6545 # define getpagesize() EXEC_PAGESIZE
6546 # else /* no EXEC_PAGESIZE */
6548 # define getpagesize() NBPG * CLSIZE
6551 # endif /* no CLSIZE */
6552 # else /* no NBPG */
6554 # define getpagesize() NBPC
6555 # else /* no NBPC */
6557 # define getpagesize() PAGESIZE
6558 # endif /* PAGESIZE */
6559 # endif /* no NBPC */
6560 # endif /* no NBPG */
6561 # endif /* no EXEC_PAGESIZE */
6562 # else /* no HAVE_SYS_PARAM_H */
6563 # define getpagesize() 8192 /* punt totally */
6564 # endif /* no HAVE_SYS_PARAM_H */
6565 # endif /* no _SC_PAGESIZE */
6567 #endif /* no HAVE_GETPAGESIZE */
6570 extern "C" { void *malloc(unsigned); }
6578 char *data, *data2, *data3;
6582 pagesize = getpagesize();
6585 * First, make a file with some known garbage in it.
6587 data = malloc(pagesize);
6590 for (i = 0; i < pagesize; ++i)
6591 *(data + i) = rand();
6593 fd = creat("conftestmmap", 0600);
6596 if (write(fd, data, pagesize) != pagesize)
6601 * Next, try to mmap the file at a fixed address which
6602 * already has something else allocated at it. If we can,
6603 * also make sure that we see the same garbage.
6605 fd = open("conftestmmap", O_RDWR);
6608 data2 = malloc(2 * pagesize);
6611 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6612 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6613 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6615 for (i = 0; i < pagesize; ++i)
6616 if (*(data + i) != *(data2 + i))
6620 * Finally, make sure that changes to the mapped area
6621 * do not percolate back to the file as seen by read().
6622 * (This is a bug on some variants of i386 svr4.0.)
6624 for (i = 0; i < pagesize; ++i)
6625 *(data2 + i) = *(data2 + i) + 1;
6626 data3 = malloc(pagesize);
6629 if (read(fd, data3, pagesize) != pagesize)
6631 for (i = 0; i < pagesize; ++i)
6632 if (*(data + i) != *(data3 + i))
6635 unlink("conftestmmap");
6640 if { (eval echo configure
:6641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6642 ac_cv_func_mmap_fixed_mapped
=yes
6644 echo "configure: failed program was:" >&5
6645 cat conftest.
$ac_ext >&5
6647 ac_cv_func_mmap_fixed_mapped
=no
6654 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6655 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6656 cat >> confdefs.h
<<\EOF
6663 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6664 unistd.h sys
/param.h
6666 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_hdr" >&5
6669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.
$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6678 { (eval echo configure
:6679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6679 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6680 if test -z "$ac_err"; then
6682 eval "ac_cv_header_$ac_safe=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.
$ac_ext >&5
6688 eval "ac_cv_header_$ac_safe=no"
6692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6695 cat >> confdefs.h
<<EOF
6696 #define $ac_tr_hdr 1
6700 echo "$ac_t""no" 1>&6
6704 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6705 strdup __argz_count __argz_stringify __argz_next
6707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6708 echo "configure:6709: checking for $ac_func" >&5
6709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6712 cat > conftest.
$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 /* System header to define __stub macros and hopefully few prototypes,
6716 which can conflict with char $ac_func(); below. */
6718 /* Override any gcc2 internal prototype to avoid an error. */
6719 /* We use char because int might match the return type of a gcc2
6720 builtin and then its argument prototype would still apply. */
6725 /* The GNU C library defines this for functions which it implements
6726 to always fail with ENOSYS. Some functions are actually named
6727 something starting with __ and the normal name is an alias. */
6728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6736 if { (eval echo configure
:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6738 eval "ac_cv_func_$ac_func=yes"
6740 echo "configure: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6743 eval "ac_cv_func_$ac_func=no"
6748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6749 echo "$ac_t""yes" 1>&6
6750 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6751 cat >> confdefs.h
<<EOF
6752 #define $ac_tr_func 1
6756 echo "$ac_t""no" 1>&6
6761 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6762 for ac_func
in stpcpy
6764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_func" >&5
6766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6769 cat > conftest.
$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 /* System header to define __stub macros and hopefully few prototypes,
6773 which can conflict with char $ac_func(); below. */
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6782 /* The GNU C library defines this for functions which it implements
6783 to always fail with ENOSYS. Some functions are actually named
6784 something starting with __ and the normal name is an alias. */
6785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6793 if { (eval echo configure
:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6795 eval "ac_cv_func_$ac_func=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.
$ac_ext >&5
6800 eval "ac_cv_func_$ac_func=no"
6805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6806 echo "$ac_t""yes" 1>&6
6807 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6808 cat >> confdefs.h
<<EOF
6809 #define $ac_tr_func 1
6813 echo "$ac_t""no" 1>&6
6818 if test "${ac_cv_func_stpcpy}" = "yes"; then
6819 cat >> confdefs.h
<<\EOF
6820 #define HAVE_STPCPY 1
6825 if test $ac_cv_header_locale_h = yes; then
6826 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6827 echo "configure:6828: checking for LC_MESSAGES" >&5
6828 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.
$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6839 if { (eval echo configure
:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6841 am_cv_val_LC_MESSAGES
=yes
6843 echo "configure: failed program was:" >&5
6844 cat conftest.
$ac_ext >&5
6846 am_cv_val_LC_MESSAGES
=no
6851 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6852 if test $am_cv_val_LC_MESSAGES = yes; then
6853 cat >> confdefs.h
<<\EOF
6854 #define HAVE_LC_MESSAGES 1
6859 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
6860 echo "configure:6861: checking whether NLS is requested" >&5
6861 # Check whether --enable-nls or --disable-nls was given.
6862 if test "${enable_nls+set}" = set; then
6863 enableval
="$enable_nls"
6869 echo "$ac_t""$USE_NLS" 1>&6
6872 USE_INCLUDED_LIBINTL
=no
6874 if test "$USE_NLS" = "yes"; then
6875 cat >> confdefs.h
<<\EOF
6876 #define ENABLE_NLS 1
6879 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6880 echo "configure:6881: checking whether included gettext is requested" >&5
6881 # Check whether --with-included-gettext or --without-included-gettext was given.
6882 if test "${with_included_gettext+set}" = set; then
6883 withval
="$with_included_gettext"
6884 nls_cv_force_use_gnu_gettext
=$withval
6886 nls_cv_force_use_gnu_gettext
=no
6889 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6891 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6892 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6894 nls_cv_header_libgt
=
6897 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6898 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6899 echo "configure:6900: checking for libintl.h" >&5
6900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 cat > conftest.
$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 #include <libintl.h>
6908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6909 { (eval echo configure
:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6911 if test -z "$ac_err"; then
6913 eval "ac_cv_header_$ac_safe=yes"
6916 echo "configure: failed program was:" >&5
6917 cat conftest.
$ac_ext >&5
6919 eval "ac_cv_header_$ac_safe=no"
6923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6925 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
6926 echo "configure:6927: checking for gettext in libc" >&5
6927 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 cat > conftest.
$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <libintl.h>
6935 return (int) gettext ("")
6938 if { (eval echo configure
:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6940 gt_cv_func_gettext_libc
=yes
6942 echo "configure: failed program was:" >&5
6943 cat conftest.
$ac_ext >&5
6945 gt_cv_func_gettext_libc
=no
6950 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
6952 if test "$gt_cv_func_gettext_libc" != "yes"; then
6953 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
6954 echo "configure:6955: checking for bindtextdomain in -lintl" >&5
6955 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 ac_save_LIBS
="$LIBS"
6961 cat > conftest.
$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char bindtextdomain();
6973 if { (eval echo configure
:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.
$ac_ext >&5
6980 eval "ac_cv_lib_$ac_lib_var=no"
6983 LIBS
="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
6989 echo "configure:6990: checking for gettext in libintl" >&5
6990 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
6994 echo "configure:6995: checking for gettext in -lintl" >&5
6995 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
6996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 ac_save_LIBS
="$LIBS"
7001 cat > conftest.
$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7013 if { (eval echo configure
:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7015 eval "ac_cv_lib_$ac_lib_var=yes"
7017 echo "configure: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7020 eval "ac_cv_lib_$ac_lib_var=no"
7023 LIBS
="$ac_save_LIBS"
7026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7028 gt_cv_func_gettext_libintl
=yes
7030 echo "$ac_t""no" 1>&6
7031 gt_cv_func_gettext_libintl
=no
7036 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7038 echo "$ac_t""no" 1>&6
7043 if test "$gt_cv_func_gettext_libc" = "yes" \
7044 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7045 cat >> confdefs.h
<<\EOF
7046 #define HAVE_GETTEXT 1
7049 # Extract the first word of "msgfmt", so it can be a program name with args.
7050 set dummy msgfmt
; ac_word
=$2
7051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7052 echo "configure:7053: checking for $ac_word" >&5
7053 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7054 echo $ac_n "(cached) $ac_c" 1>&6
7058 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7062 for ac_dir
in $PATH; do
7063 test -z "$ac_dir" && ac_dir
=.
7064 if test -f $ac_dir/$ac_word; then
7065 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7066 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7072 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7076 MSGFMT
="$ac_cv_path_MSGFMT"
7077 if test -n "$MSGFMT"; then
7078 echo "$ac_t""$MSGFMT" 1>&6
7080 echo "$ac_t""no" 1>&6
7082 if test "$MSGFMT" != "no"; then
7083 for ac_func
in dcgettext
7085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7086 echo "configure:7087: checking for $ac_func" >&5
7087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7088 echo $ac_n "(cached) $ac_c" 1>&6
7090 cat > conftest.
$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7093 /* System header to define __stub macros and hopefully few prototypes,
7094 which can conflict with char $ac_func(); below. */
7096 /* Override any gcc2 internal prototype to avoid an error. */
7097 /* We use char because int might match the return type of a gcc2
7098 builtin and then its argument prototype would still apply. */
7103 /* The GNU C library defines this for functions which it implements
7104 to always fail with ENOSYS. Some functions are actually named
7105 something starting with __ and the normal name is an alias. */
7106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7114 if { (eval echo configure
:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7116 eval "ac_cv_func_$ac_func=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.
$ac_ext >&5
7121 eval "ac_cv_func_$ac_func=no"
7126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7129 cat >> confdefs.h
<<EOF
7130 #define $ac_tr_func 1
7134 echo "$ac_t""no" 1>&6
7138 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7139 set dummy gmsgfmt
; ac_word
=$2
7140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7141 echo "configure:7142: checking for $ac_word" >&5
7142 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7147 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7150 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7155 for ac_dir
in $ac_dummy; do
7156 test -z "$ac_dir" && ac_dir
=.
7157 if test -f $ac_dir/$ac_word; then
7158 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7163 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7167 GMSGFMT
="$ac_cv_path_GMSGFMT"
7168 if test -n "$GMSGFMT"; then
7169 echo "$ac_t""$GMSGFMT" 1>&6
7171 echo "$ac_t""no" 1>&6
7174 # Extract the first word of "xgettext", so it can be a program name with args.
7175 set dummy xgettext
; ac_word
=$2
7176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_word" >&5
7178 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7183 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7187 for ac_dir
in $PATH; do
7188 test -z "$ac_dir" && ac_dir
=.
7189 if test -f $ac_dir/$ac_word; then
7190 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7191 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7197 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7201 XGETTEXT
="$ac_cv_path_XGETTEXT"
7202 if test -n "$XGETTEXT"; then
7203 echo "$ac_t""$XGETTEXT" 1>&6
7205 echo "$ac_t""no" 1>&6
7208 cat > conftest.
$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7213 extern int _nl_msg_cat_cntr;
7214 return _nl_msg_cat_cntr
7217 if { (eval echo configure
:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7222 echo "configure: failed program was:" >&5
7223 cat conftest.
$ac_ext >&5
7234 echo "$ac_t""no" 1>&6
7238 if test "$CATOBJEXT" = "NONE"; then
7239 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7240 echo "configure:7241: checking whether catgets can be used" >&5
7241 # Check whether --with-catgets or --without-catgets was given.
7242 if test "${with_catgets+set}" = set; then
7243 withval
="$with_catgets"
7244 nls_cv_use_catgets
=$withval
7246 nls_cv_use_catgets
=no
7249 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7251 if test "$nls_cv_use_catgets" = "yes"; then
7252 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7253 echo "configure:7254: checking for main in -li" >&5
7254 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7258 ac_save_LIBS
="$LIBS"
7260 cat > conftest.
$ac_ext <<EOF
7261 #line 7262 "configure"
7262 #include "confdefs.h"
7268 if { (eval echo configure
:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7270 eval "ac_cv_lib_$ac_lib_var=yes"
7272 echo "configure: failed program was:" >&5
7273 cat conftest.
$ac_ext >&5
7275 eval "ac_cv_lib_$ac_lib_var=no"
7278 LIBS
="$ac_save_LIBS"
7281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7282 echo "$ac_t""yes" 1>&6
7283 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7285 cat >> confdefs.h
<<EOF
7286 #define $ac_tr_lib 1
7292 echo "$ac_t""no" 1>&6
7295 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7296 echo "configure:7297: checking for catgets" >&5
7297 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.
$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 /* System header to define __stub macros and hopefully few prototypes,
7304 which can conflict with char catgets(); below. */
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7313 /* The GNU C library defines this for functions which it implements
7314 to always fail with ENOSYS. Some functions are actually named
7315 something starting with __ and the normal name is an alias. */
7316 #if defined (__stub_catgets) || defined (__stub___catgets)
7324 if { (eval echo configure
:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7326 eval "ac_cv_func_catgets=yes"
7328 echo "configure: failed program was:" >&5
7329 cat conftest.
$ac_ext >&5
7331 eval "ac_cv_func_catgets=no"
7336 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7337 echo "$ac_t""yes" 1>&6
7338 cat >> confdefs.h
<<\EOF
7339 #define HAVE_CATGETS 1
7342 INTLOBJS
="\$(CATOBJS)"
7343 # Extract the first word of "gencat", so it can be a program name with args.
7344 set dummy gencat
; ac_word
=$2
7345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_word" >&5
7347 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7352 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7355 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7358 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7360 for ac_dir
in $ac_dummy; do
7361 test -z "$ac_dir" && ac_dir
=.
7362 if test -f $ac_dir/$ac_word; then
7363 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7368 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7372 GENCAT
="$ac_cv_path_GENCAT"
7373 if test -n "$GENCAT"; then
7374 echo "$ac_t""$GENCAT" 1>&6
7376 echo "$ac_t""no" 1>&6
7378 if test "$GENCAT" != "no"; then
7379 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7380 set dummy gmsgfmt
; ac_word
=$2
7381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7382 echo "configure:7383: checking for $ac_word" >&5
7383 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7388 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7391 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7394 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7396 for ac_dir
in $ac_dummy; do
7397 test -z "$ac_dir" && ac_dir
=.
7398 if test -f $ac_dir/$ac_word; then
7399 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7404 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7408 GMSGFMT
="$ac_cv_path_GMSGFMT"
7409 if test -n "$GMSGFMT"; then
7410 echo "$ac_t""$GMSGFMT" 1>&6
7412 echo "$ac_t""no" 1>&6
7415 if test "$GMSGFMT" = "no"; then
7416 # Extract the first word of "msgfmt", so it can be a program name with args.
7417 set dummy msgfmt
; ac_word
=$2
7418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7419 echo "configure:7420: checking for $ac_word" >&5
7420 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7425 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7428 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7429 for ac_dir
in $PATH; do
7430 test -z "$ac_dir" && ac_dir
=.
7431 if test -f $ac_dir/$ac_word; then
7432 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7433 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7439 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7443 GMSGFMT
="$ac_cv_path_GMSGFMT"
7444 if test -n "$GMSGFMT"; then
7445 echo "$ac_t""$GMSGFMT" 1>&6
7447 echo "$ac_t""no" 1>&6
7451 # Extract the first word of "xgettext", so it can be a program name with args.
7452 set dummy xgettext
; ac_word
=$2
7453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7454 echo "configure:7455: checking for $ac_word" >&5
7455 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7460 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7463 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7464 for ac_dir
in $PATH; do
7465 test -z "$ac_dir" && ac_dir
=.
7466 if test -f $ac_dir/$ac_word; then
7467 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7468 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7474 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7478 XGETTEXT
="$ac_cv_path_XGETTEXT"
7479 if test -n "$XGETTEXT"; then
7480 echo "$ac_t""$XGETTEXT" 1>&6
7482 echo "$ac_t""no" 1>&6
7485 USE_INCLUDED_LIBINTL
=yes
7489 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7491 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7492 nls_cv_header_intl
=intl
/libintl.h
7493 nls_cv_header_libgt
=intl
/libgettext.h
7496 echo "$ac_t""no" 1>&6
7502 if test "$CATOBJEXT" = "NONE"; then
7503 nls_cv_use_gnu_gettext
=yes
7507 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7508 INTLOBJS
="\$(GETTOBJS)"
7509 # Extract the first word of "msgfmt", so it can be a program name with args.
7510 set dummy msgfmt
; ac_word
=$2
7511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7512 echo "configure:7513: checking for $ac_word" >&5
7513 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7514 echo $ac_n "(cached) $ac_c" 1>&6
7518 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7521 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7522 for ac_dir
in $PATH; do
7523 test -z "$ac_dir" && ac_dir
=.
7524 if test -f $ac_dir/$ac_word; then
7525 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7526 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7532 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7536 MSGFMT
="$ac_cv_path_MSGFMT"
7537 if test -n "$MSGFMT"; then
7538 echo "$ac_t""$MSGFMT" 1>&6
7540 echo "$ac_t""no" 1>&6
7543 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7544 set dummy gmsgfmt
; ac_word
=$2
7545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7546 echo "configure:7547: checking for $ac_word" >&5
7547 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7548 echo $ac_n "(cached) $ac_c" 1>&6
7552 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7555 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7558 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7560 for ac_dir
in $ac_dummy; do
7561 test -z "$ac_dir" && ac_dir
=.
7562 if test -f $ac_dir/$ac_word; then
7563 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7568 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7572 GMSGFMT
="$ac_cv_path_GMSGFMT"
7573 if test -n "$GMSGFMT"; then
7574 echo "$ac_t""$GMSGFMT" 1>&6
7576 echo "$ac_t""no" 1>&6
7579 # Extract the first word of "xgettext", so it can be a program name with args.
7580 set dummy xgettext
; ac_word
=$2
7581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7582 echo "configure:7583: checking for $ac_word" >&5
7583 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7588 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7592 for ac_dir
in $PATH; do
7593 test -z "$ac_dir" && ac_dir
=.
7594 if test -f $ac_dir/$ac_word; then
7595 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7596 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7602 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7606 XGETTEXT
="$ac_cv_path_XGETTEXT"
7607 if test -n "$XGETTEXT"; then
7608 echo "$ac_t""$XGETTEXT" 1>&6
7610 echo "$ac_t""no" 1>&6
7614 USE_INCLUDED_LIBINTL
=yes
7618 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7620 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7621 nls_cv_header_intl
=intl
/libintl.h
7622 nls_cv_header_libgt
=intl
/libgettext.h
7625 if test "$XGETTEXT" != ":"; then
7626 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
7629 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7634 # We need to process the po/ directory.
7638 nls_cv_header_intl
=intl
/libintl.h
7639 nls_cv_header_libgt
=intl
/libgettext.h
7645 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7646 # because some of the sources are only built for this goal.
7647 if test "$PACKAGE" = gettext; then
7649 USE_INCLUDED_LIBINTL
=yes
7652 for lang
in $ALL_LINGUAS; do
7653 GMOFILES
="$GMOFILES $lang.gmo"
7654 POFILES
="$POFILES $lang.po"
7670 if test "x$CATOBJEXT" != "x"; then
7671 if test "x$ALL_LINGUAS" = "x"; then
7674 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7675 echo "configure:7676: checking for catalogs to be installed" >&5
7677 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
7678 case "$ALL_LINGUAS" in
7679 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
7682 LINGUAS
=$NEW_LINGUAS
7683 echo "$ac_t""$LINGUAS" 1>&6
7686 if test -n "$LINGUAS"; then
7687 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
7691 if test $ac_cv_header_locale_h = yes; then
7692 INCLUDE_LOCALE_H
="#include <locale.h>"
7695 /* The system does not provide the header <locale.h>. Take care yourself. */"
7699 test -d intl || mkdir intl
7700 if test "$CATOBJEXT" = ".cat"; then
7701 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7702 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7703 echo "configure:7704: checking for linux/version.h" >&5
7704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7707 cat > conftest.
$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 #include <linux/version.h>
7712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7713 { (eval echo configure
:7714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7715 if test -z "$ac_err"; then
7717 eval "ac_cv_header_$ac_safe=yes"
7720 echo "configure: failed program was:" >&5
7721 cat conftest.
$ac_ext >&5
7723 eval "ac_cv_header_$ac_safe=no"
7727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7731 echo "$ac_t""no" 1>&6
7736 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
7738 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7739 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
7741 if test "$PACKAGE" = "gettext"; then
7752 if test -n "$ac_aux_dir"; then
7753 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
7755 if test -z "$MKINSTALLDIRS"; then
7756 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
7763 test -d po || mkdir po
7764 if test "x$srcdir" != "x."; then
7765 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7766 posrcprefix
="$srcdir/"
7768 posrcprefix
="../$srcdir/"
7774 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7775 < $srcdir/po
/POTFILES.
in > po
/POTFILES
7777 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7779 # Get an absolute path to the GCC top-level source directory
7785 # Conditionalize the makefile for this host machine.
7786 # Make-host contains the concatenation of all host makefile fragments
7787 # [there can be more than one]. This file is built by configure.frag.
7788 host_overrides
=Make-host
7789 dep_host_xmake_file
=
7790 for f
in ..
${host_xmake_file}
7792 if test -f ${srcdir}/config
/$f
7794 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
7798 # Conditionalize the makefile for this target machine.
7799 # Make-target contains the concatenation of all host makefile fragments
7800 # [there can be more than one]. This file is built by configure.frag.
7801 target_overrides
=Make-target
7803 for f
in ..
${tmake_file}
7805 if test -f ${srcdir}/config
/$f
7807 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
7811 # If the host doesn't support symlinks, modify CC in
7812 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7813 # Otherwise, we can use "CC=$(CC)".
7815 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
7817 cc_set_by_configure
="\$(CC)"
7818 quoted_cc_set_by_configure
="\$(CC)"
7819 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
7822 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
7824 symbolic_link
="cp -p"
7828 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7829 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7830 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7834 out_object_file
=`basename $out_file .c`.o
7837 for f
in $tm_file; do
7840 tm_file_list
="${tm_file_list} $f" ;;
7841 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
7846 for f
in $host_xm_file; do
7848 auto-host.h | gansidecl.h | hwint.h
)
7849 host_xm_file_list
="${host_xm_file_list} $f" ;;
7850 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
7855 for f
in $build_xm_file; do
7857 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
7858 build_xm_file_list
="${build_xm_file_list} $f" ;;
7859 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
7863 # Define macro CROSS_COMPILE in compilation
7864 # if this is a cross-compiler.
7865 # Also use all.cross instead of all.internal
7866 # and add cross-make to Makefile.
7867 cross_overrides
="/dev/null"
7868 if test x
$host != x
$target
7870 cross_defines
="CROSS=-DCROSS_COMPILE"
7871 cross_overrides
="${topdir}/cross-make"
7874 # When building gcc with a cross-compiler, we need to fix a few things.
7875 # This must come after cross-make as we want all.build to override
7877 build_overrides
="/dev/null"
7878 if test x
$build != x
$host
7880 build_overrides
="${topdir}/build-make"
7883 # Expand extra_headers to include complete path.
7884 # This substitutes for lots of t-* files.
7886 if test "x$extra_headers" = x
7889 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
7890 for file in $extra_headers;
7892 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
7896 if test x
$use_collect2 = xno
; then
7900 # Add a definition of USE_COLLECT2 if system wants one.
7901 # Also tell toplev.c what to do.
7902 # This substitutes for lots of t-* files.
7903 if test x
$use_collect2 = x
7908 will_use_collect2
="collect2"
7909 maybe_use_collect2
="-DUSE_COLLECT2"
7913 # Set MD_DEPS if the real md file is in md.pre-cpp.
7914 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
7915 # for line oriented comments, so we must always use a GNU cpp. If
7916 # building gcc with a cross compiler, use the cross compiler just
7917 # built. Otherwise, we can use the cpp just built.
7919 if test "x$md_cppflags" = x
7921 md_file_sub
=$srcdir/config
/$md_file
7926 # If we have gas in the build tree, make a link to it.
7927 if test -f ..
/gas
/Makefile
; then
7928 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
7931 # If we have nm in the build tree, make a link to it.
7932 if test -f ..
/binutils
/Makefile
; then
7933 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
7936 # If we have ld in the build tree, make a link to it.
7937 if test -f ..
/ld
/Makefile
; then
7938 # if test x$use_collect2 = x; then
7939 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
7941 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
7945 # Figure out what assembler alignment features are present.
7946 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7947 echo "configure:7948: checking assembler alignment features" >&5
7949 gcc_cv_as_alignment_features
=
7950 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
7951 if test -x "$DEFAULT_ASSEMBLER"; then
7952 gcc_cv_as
="$DEFAULT_ASSEMBLER"
7953 elif test -x "$AS"; then
7955 elif test -x as
$host_exeext; then
7956 # Build using assembler in the current directory.
7957 gcc_cv_as
=.
/as
$host_exeext
7958 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
7959 # Single tree build which includes gas.
7960 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
7962 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7963 if test x
$gcc_cv_gas_version != x
; then
7967 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
7968 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7969 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7970 # Gas version 2.6 and later support for .balign and .p2align.
7971 # bytes to skip when using .p2align.
7972 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
7973 gcc_cv_as_alignment_features
=".balign and .p2align"
7974 cat >> confdefs.h
<<\EOF
7975 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7979 # Gas version 2.8 and later support specifying the maximum
7980 # bytes to skip when using .p2align.
7981 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
7982 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7983 cat >> confdefs.h
<<\EOF
7984 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7989 elif test x
$host = x
$target; then
7991 gcc_cv_as
=as
$host_exeext
7993 if test x
$gcc_cv_as != x
; then
7994 # Check if we have .balign and .p2align
7995 echo ".balign 4" > conftest.s
7996 echo ".p2align 2" >> conftest.s
7997 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7998 gcc_cv_as_alignment_features
=".balign and .p2align"
7999 cat >> confdefs.h
<<\EOF
8000 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8004 rm -f conftest.s conftest.o
8005 # Check if specifying the maximum bytes to skip when
8006 # using .p2align is supported.
8007 echo ".p2align 4,,7" > conftest.s
8008 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8009 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8010 cat >> confdefs.h
<<\EOF
8011 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8015 rm -f conftest.s conftest.o
8017 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8019 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8020 echo "configure:8021: checking assembler subsection support" >&5
8021 gcc_cv_as_subsections
=
8022 if test x
$gcc_cv_as != x
; then
8023 # Check if we have .subsection
8024 echo ".subsection 1" > conftest.s
8025 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8026 gcc_cv_as_subsections
=".subsection"
8027 if test -x nm
$host_exeext; then
8028 gcc_cv_nm
=.
/nm
$host_exeext
8029 elif test x
$host = x
$target; then
8031 gcc_cv_nm
=nm
$host_exeext
8033 if test x
$gcc_cv_nm != x
; then
8034 cat > conftest.s
<<EOF
8035 conftest_label1: .word 0
8037 conftest_label2: .word 0
8040 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8041 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8042 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8043 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8046 gcc_cv_as_subsections
="working .subsection -1"
8047 cat >> confdefs.h
<<\EOF
8048 #define HAVE_GAS_SUBSECTION_ORDERING 1
8055 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8057 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8059 # Figure out what language subdirectories are present.
8060 # Look if the user specified --enable-languages="..."; if not, use
8061 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8063 if test x
"${enable_languages+set}" != xset
; then
8064 if test x
"${LANGUAGES+set}" = xset
; then
8065 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8067 enable_languages
=all
8071 for lang
in ${srcdir}/*/config-lang.
in ..
8075 # The odd quoting in the next line works around
8076 # an apparent bug in bash 1.12 on linux.
8077 ${srcdir}/[*]/config-lang.
in) ;;
8079 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8080 if test "x$lang_alias" = x
8082 echo "$lang doesn't set \$language." 1>&2
8085 if test x
"${enable_languages}" = xall
; then
8088 case "${enable_languages}" in
8089 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8097 if test x"${add_this_lang}" = xyes; then
8099 ${srcdir}/ada/config-lang.in)
8100 if test x$gnat = xyes ; then
8101 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8105 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8113 # Make gthr-default.h if we have a thread file.
8115 if test $thread_file != single; then
8116 rm -f gthr-default.h
8117 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8118 gthread_flags
=-DHAVE_GTHR_DEFAULT
8122 # Make empty files to contain the specs and options for each language.
8123 # Then add #include lines to for a compiler that has specs and/or options.
8128 rm -f specs.h options.h gencheck.h
8129 touch specs.h options.h gencheck.h
8130 for subdir
in .
$subdirs
8132 if test -f $srcdir/$subdir/lang-specs.h
; then
8133 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8134 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8136 if test -f $srcdir/$subdir/lang-options.h
; then
8137 echo "#include \"$subdir/lang-options.h\"" >>options.h
8138 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8140 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8141 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8142 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8146 # These (without "all_") are set in each config-lang.in.
8147 # `language' must be a single word so is spelled singularly.
8153 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8154 # List of language makefile fragments.
8159 # Add the language fragments.
8160 # Languages are added via two mechanisms. Some information must be
8161 # recorded in makefile variables, these are defined in config-lang.in.
8162 # We accumulate them and plug them into the main Makefile.
8163 # The other mechanism is a set of hooks for each of the main targets
8164 # like `clean', `install', etc.
8166 language_fragments
="Make-lang"
8167 language_hooks
="Make-hooks"
8170 for s
in ..
$subdirs
8182 .
${srcdir}/$s/config-lang.
in
8183 if test "x$language" = x
8185 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8188 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8189 all_languages
="$all_languages $language"
8190 if test "x$boot_language" = xyes
8192 all_boot_languages
="$all_boot_languages $language"
8194 all_compilers
="$all_compilers $compilers"
8195 all_stagestuff
="$all_stagestuff $stagestuff"
8196 all_diff_excludes
="$all_diff_excludes $diff_excludes"
8197 all_headers
="$all_headers $headers"
8198 all_outputs
="$all_outputs $outputs"
8199 if test x
$outputs = x
8201 oldstyle_subdirs
="$oldstyle_subdirs $s"
8203 all_lib2funcs
="$all_lib2funcs $lib2funcs"
8207 # Since we can't use `::' targets, we link each language in
8208 # with a set of hooks, reached indirectly via lang.${target}.
8212 target_list
="all.build all.cross start.encap rest.encap \
8214 install-normal install-common install-info install-man \
8216 mostlyclean clean distclean extraclean maintainer-clean \
8217 stage1 stage2 stage3 stage4"
8218 for t
in $target_list
8221 for lang
in ..
$all_languages
8223 if test $lang != ".."; then
8227 echo "lang.$t: $x" >> Make-hooks
8230 # If we're not building in srcdir, create .gdbinit.
8232 if test ! -f Makefile.
in; then
8233 echo "dir ." > .gdbinit
8234 echo "dir ${srcdir}" >> .gdbinit
8235 if test x
$gdb_needs_out_file_path = xyes
8237 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8239 if test "x$subdirs" != x
; then
8242 echo "dir ${srcdir}/$s" >> .gdbinit
8245 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8248 # Define variables host_canonical and build_canonical
8249 # because some Cygnus local changes in the Makefile depend on them.
8250 build_canonical
=${build}
8251 host_canonical
=${host}
8253 if test "${host}" != "${target}" ; then
8254 target_subdir
=${target}/
8260 # If this is using newlib, then define inhibit_libc in
8261 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8262 # libgcc.a, but that's OK because newib should have its own version of
8265 if test x
$with_newlib = xyes
; then
8266 inhibit_libc
=-Dinhibit_libc
8270 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8273 if test x
$enable_haifa = xyes
; then
8274 echo "Using the Haifa scheduler."
8276 sched_cflags
=-DHAIFA
8280 if test x
$enable_haifa != x
; then
8281 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8282 for x
in genattrtab.o toplev.o
*sched.o
; do
8290 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8291 # absolute path for gcc_tooldir based on inserting the number of up-directory
8292 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8293 # $(libsubdir)/@(unlibsubdir) based path.
8294 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8295 # make and thus we'd get different behavior depending on where we built the
8297 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8298 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8300 # An explanation of the sed strings:
8301 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8302 # -e 's|/$||' match a trailing forward slash and eliminates it
8303 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8304 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8306 # (*) Note this pattern overwrites the first character of the string
8307 # with a forward slash if one is not already present. This is not a
8308 # problem because the exact names of the sub-directories concerned is
8309 # unimportant, just the number of them matters.
8311 # The practical upshot of these patterns is like this:
8313 # prefix exec_prefix result
8314 # ------ ----------- ------
8316 # /foo/ /foo/bar ../
8317 # /foo /foo/bar/ ../
8318 # /foo/ /foo/bar/ ../
8319 # /foo /foo/bar/ugg ../../
8322 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8327 # Nothing to do for FLOAT_H, float_format already handled.
8331 # Process the language and host/target makefile fragments.
8332 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8334 # Substitute configuration variables
8396 # Echo that links are built
8397 if test x
$host = x
$target
8405 if test x
$host != x
$build
8407 str3
=" on a $build system"
8410 if test "x$str2" != x ||
test "x$str3" != x
8415 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8417 if test "x$str2" != x ||
test "x$str3" != x
8419 echo " ${str2}${str3}." 1>&2
8422 # Truncate the target if necessary
8423 if test x
$host_truncate_target != x
; then
8424 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8427 # Configure the subdirectories
8428 # AC_CONFIG_SUBDIRS($subdirs)
8430 # Create the Makefile
8431 # and configure language subdirectories
8433 cat > confcache
<<\EOF
8434 # This file is a shell script that caches the results of configure
8435 # tests run on this system so they can be shared between configure
8436 # scripts and configure runs. It is not useful on other systems.
8437 # If it contains results you don't want to keep, you may remove or edit it.
8439 # By default, configure uses ./config.cache as the cache file,
8440 # creating it if it does not exist already. You can give configure
8441 # the --cache-file=FILE option to use a different cache file; that is
8442 # what configure does when it calls configure scripts in
8443 # subdirectories, so they share the cache.
8444 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8445 # config.status only pays attention to the cache file if you give it the
8446 # --recheck option to rerun configure.
8449 # The following way of writing the cache mishandles newlines in values,
8450 # but we know of no workaround that is simple, portable, and efficient.
8451 # So, don't put newlines in cache variables' values.
8452 # Ultrix sh set writes to stderr and can't be redirected directly,
8453 # and sets the high bit in the cache file unless we assign to the vars.
8455 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8457 # `set' does not quote correctly, so add quotes (double-quote substitution
8458 # turns \\\\ into \\, and sed turns \\ into \).
8460 -e "s/'/'\\\\''/g" \
8461 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8464 # `set' quotes correctly as required by POSIX, so do not add quotes.
8465 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8468 if cmp -s $cache_file confcache
; then
8471 if test -w $cache_file; then
8472 echo "updating cache $cache_file"
8473 cat confcache
> $cache_file
8475 echo "not updating unwritable cache $cache_file"
8480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8482 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8483 # Let make expand exec_prefix.
8484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8486 # Any assignment to VPATH causes Sun make to only execute
8487 # the first set of double-colon rules, so remove it if not needed.
8488 # If there is a colon in the path, we need to keep it.
8489 if test "x$srcdir" = x.
; then
8490 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8493 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8495 DEFS
=-DHAVE_CONFIG_H
8497 # Without the "./", some shells look in PATH for config.status.
8498 : ${CONFIG_STATUS=./config.status}
8500 echo creating
$CONFIG_STATUS
8501 rm -f $CONFIG_STATUS
8502 cat > $CONFIG_STATUS <<EOF
8504 # Generated automatically by configure.
8505 # Run this file to recreate the current configuration.
8506 # This directory was configured as follows,
8507 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8509 # $0 $ac_configure_args
8511 # Compiler output produced by configure, useful for debugging
8512 # configure, is in ./config.log if it exists.
8514 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8517 case "\$ac_option" in
8518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8519 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8520 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8521 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8522 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8524 -help | --help | --hel | --he | --h)
8525 echo "\$ac_cs_usage"; exit 0 ;;
8526 *) echo "\$ac_cs_usage"; exit 1 ;;
8530 ac_given_srcdir=$srcdir
8532 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8534 cat >> $CONFIG_STATUS <<EOF
8536 # Protect against being on the right side of a sed subst in config.status.
8537 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8538 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8542 s%@CFLAGS@%$CFLAGS%g
8543 s%@CPPFLAGS@%$CPPFLAGS%g
8544 s%@CXXFLAGS@%$CXXFLAGS%g
8545 s%@FFLAGS@%$FFLAGS%g
8547 s%@LDFLAGS@%$LDFLAGS%g
8549 s%@exec_prefix@%$exec_prefix%g
8550 s%@prefix@%$prefix%g
8551 s%@program_transform_name@%$program_transform_name%g
8552 s%@bindir@%$bindir%g
8553 s%@sbindir@%$sbindir%g
8554 s%@libexecdir@%$libexecdir%g
8555 s%@datadir@%$datadir%g
8556 s%@sysconfdir@%$sysconfdir%g
8557 s%@sharedstatedir@%$sharedstatedir%g
8558 s%@localstatedir@%$localstatedir%g
8559 s%@libdir@%$libdir%g
8560 s%@includedir@%$includedir%g
8561 s%@oldincludedir@%$oldincludedir%g
8562 s%@infodir@%$infodir%g
8563 s%@mandir@%$mandir%g
8565 s%@host_alias@%$host_alias%g
8566 s%@host_cpu@%$host_cpu%g
8567 s%@host_vendor@%$host_vendor%g
8568 s%@host_os@%$host_os%g
8569 s%@target@%$target%g
8570 s%@target_alias@%$target_alias%g
8571 s%@target_cpu@%$target_cpu%g
8572 s%@target_vendor@%$target_vendor%g
8573 s%@target_os@%$target_os%g
8575 s%@build_alias@%$build_alias%g
8576 s%@build_cpu@%$build_cpu%g
8577 s%@build_vendor@%$build_vendor%g
8578 s%@build_os@%$build_os%g
8580 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8581 s%@SET_MAKE@%$SET_MAKE%g
8584 s%@LEXLIB@%$LEXLIB%g
8587 s%@RANLIB@%$RANLIB%g
8589 s%@INSTALL@%$INSTALL%g
8590 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8591 s%@INSTALL_DATA@%$INSTALL_DATA%g
8594 s%@vfprintf@%$vfprintf%g
8595 s%@doprint@%$doprint%g
8596 s%@manext@%$manext%g
8597 s%@objext@%$objext%g
8598 s%@PACKAGE@%$PACKAGE%g
8599 s%@VERSION@%$VERSION%g
8600 s%@ALLOCA@%$ALLOCA%g
8601 s%@USE_NLS@%$USE_NLS%g
8602 s%@MSGFMT@%$MSGFMT%g
8603 s%@GMSGFMT@%$GMSGFMT%g
8604 s%@XGETTEXT@%$XGETTEXT%g
8605 s%@GENCAT@%$GENCAT%g
8606 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8607 s%@CATALOGS@%$CATALOGS%g
8608 s%@CATOBJEXT@%$CATOBJEXT%g
8609 s%@DATADIRNAME@%$DATADIRNAME%g
8610 s%@GMOFILES@%$GMOFILES%g
8611 s%@INSTOBJEXT@%$INSTOBJEXT%g
8612 s%@INTLDEPS@%$INTLDEPS%g
8613 s%@INTLLIBS@%$INTLLIBS%g
8614 s%@INTLOBJS@%$INTLOBJS%g
8615 s%@POFILES@%$POFILES%g
8617 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8619 s%@GT_YES@%$GT_YES%g
8620 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8622 s%@gthread_flags@%$gthread_flags%g
8623 s%@build_canonical@%$build_canonical%g
8624 s%@host_canonical@%$host_canonical%g
8625 s%@target_subdir@%$target_subdir%g
8626 s%@inhibit_libc@%$inhibit_libc%g
8627 s%@sched_prefix@%$sched_prefix%g
8628 s%@sched_cflags@%$sched_cflags%g
8629 s%@gcc_tooldir@%$gcc_tooldir%g
8630 s%@dollar@%$dollar%g
8631 s%@objdir@%$objdir%g
8632 s%@subdirs@%$subdirs%g
8633 s%@all_boot_languages@%$all_boot_languages%g
8634 s%@all_compilers@%$all_compilers%g
8635 s%@all_diff_excludes@%$all_diff_excludes%g
8636 s%@all_headers@%$all_headers%g
8637 s%@all_lang_makefiles@%$all_lang_makefiles%g
8638 s%@all_languages@%$all_languages%g
8639 s%@all_lib2funcs@%$all_lib2funcs%g
8640 s%@all_stagestuff@%$all_stagestuff%g
8641 s%@build_exeext@%$build_exeext%g
8642 s%@build_install_headers_dir@%$build_install_headers_dir%g
8643 s%@build_xm_file_list@%$build_xm_file_list%g
8644 s%@cc_set_by_configure@%$cc_set_by_configure%g
8645 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8646 s%@cpp_install_dir@%$cpp_install_dir%g
8647 s%@cpp_main@%$cpp_main%g
8648 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8649 s%@dep_tmake_file@%$dep_tmake_file%g
8650 s%@extra_c_flags@%$extra_c_flags%g
8651 s%@extra_c_objs@%$extra_c_objs%g
8652 s%@extra_cpp_objs@%$extra_cpp_objs%g
8653 s%@extra_cxx_objs@%$extra_cxx_objs%g
8654 s%@extra_headers_list@%$extra_headers_list%g
8655 s%@extra_objs@%$extra_objs%g
8656 s%@extra_parts@%$extra_parts%g
8657 s%@extra_passes@%$extra_passes%g
8658 s%@extra_programs@%$extra_programs%g
8659 s%@fixinc_defs@%$fixinc_defs%g
8660 s%@float_h_file@%$float_h_file%g
8661 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8662 s%@gcc_version@%$gcc_version%g
8663 s%@gcc_version_trigger@%$gcc_version_trigger%g
8664 s%@host_exeext@%$host_exeext%g
8665 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8666 s%@host_xm_file_list@%$host_xm_file_list%g
8667 s%@install@%$install%g
8668 s%@JAVAGC@%$JAVAGC%g
8669 s%@lang_options_files@%$lang_options_files%g
8670 s%@lang_specs_files@%$lang_specs_files%g
8671 s%@lang_tree_files@%$lang_tree_files%g
8672 s%@local_prefix@%$local_prefix%g
8673 s%@maybe_use_collect2@%$maybe_use_collect2%g
8674 s%@md_file@%$md_file%g
8675 s%@objc_boehm_gc@%$objc_boehm_gc%g
8676 s%@out_file@%$out_file%g
8677 s%@out_object_file@%$out_object_file%g
8678 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8679 s%@symbolic_link@%$symbolic_link%g
8680 s%@thread_file@%$thread_file%g
8681 s%@tm_file_list@%$tm_file_list%g
8682 s%@will_use_collect2@%$will_use_collect2%g
8683 /@target_overrides@/r $target_overrides
8684 s%@target_overrides@%%g
8685 /@host_overrides@/r $host_overrides
8686 s%@host_overrides@%%g
8687 s%@cross_defines@%$cross_defines%g
8688 /@cross_overrides@/r $cross_overrides
8689 s%@cross_overrides@%%g
8690 /@build_overrides@/r $build_overrides
8691 s%@build_overrides@%%g
8692 /@language_fragments@/r $language_fragments
8693 s%@language_fragments@%%g
8694 /@language_hooks@/r $language_hooks
8695 s%@language_hooks@%%g
8700 cat >> $CONFIG_STATUS <<\EOF
8702 # Split the substitutions into bite-sized pieces for seds with
8703 # small command number limits, like on Digital OSF/1 and HP-UX.
8704 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8705 ac_file
=1 # Number of current file.
8706 ac_beg
=1 # First line for current file.
8707 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8710 while $ac_more_lines; do
8711 if test $ac_beg -gt 1; then
8712 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8714 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8716 if test ! -s conftest.s
$ac_file; then
8718 rm -f conftest.s
$ac_file
8720 if test -z "$ac_sed_cmds"; then
8721 ac_sed_cmds
="sed -f conftest.s$ac_file"
8723 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8725 ac_file
=`expr $ac_file + 1`
8727 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8730 if test -z "$ac_sed_cmds"; then
8735 cat >> $CONFIG_STATUS <<EOF
8737 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8739 cat >> $CONFIG_STATUS <<\EOF
8740 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8743 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8744 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8745 *) ac_file_in
="${ac_file}.in" ;;
8748 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8750 # Remove last slash and all that follows it. Not all systems have dirname.
8751 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8752 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8753 # The file is in a subdirectory.
8754 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8755 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8756 # A "../" for each directory in $ac_dir_suffix.
8757 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8759 ac_dir_suffix
= ac_dots
=
8762 case "$ac_given_srcdir" in
8764 if test -z "$ac_dots"; then top_srcdir
=.
8765 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8766 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8768 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8769 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8773 echo creating
"$ac_file"
8775 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8777 *Makefile
*) ac_comsub
="1i\\
8778 # $configure_input" ;;
8782 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8784 s%@configure_input@%$configure_input%g
8785 s%@srcdir@%$srcdir%g
8786 s%@top_srcdir@%$top_srcdir%g
8787 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8794 # ac_d sets the value in "#define NAME VALUE" lines.
8795 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8796 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8799 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8800 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8801 ac_uB
='\([ ]\)%\1#\2define\3'
8804 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8805 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8806 ac_eB
='$%\1#\2define\3'
8810 if test "${CONFIG_HEADERS+set}" != set; then
8812 cat >> $CONFIG_STATUS <<EOF
8813 CONFIG_HEADERS="auto-host.h:config.in"
8815 cat >> $CONFIG_STATUS <<\EOF
8817 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8820 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8821 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8822 *) ac_file_in
="${ac_file}.in" ;;
8825 echo creating
$ac_file
8827 rm -f conftest.frag conftest.
in conftest.out
8828 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8829 cat $ac_file_inputs > conftest.
in
8833 # Transform confdefs.h into a sed script conftest.vals that substitutes
8834 # the proper values into config.h.in to produce config.h. And first:
8835 # Protect against being on the right side of a sed subst in config.status.
8836 # Protect against being in an unquoted here document in config.status.
8838 cat > conftest.hdr
<<\EOF
8841 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8845 sed -n -f conftest.hdr confdefs.h > conftest.vals
8848 # This sed command replaces #undef with comments. This is necessary, for
8849 # example, in the case of _POSIX_SOURCE, which is predefined and required
8850 # on some systems where configure will not decide to define it.
8851 cat >> conftest.vals <<\EOF
8852 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8855 # Break up conftest.vals because some shells have a limit on
8856 # the size of here documents, and old seds have small limits too.
8861 ac_lines=`grep -c . conftest.vals
`
8862 # grep -c gives empty output for an empty file on some AIX systems.
8863 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8864 # Write a limited-size here document to conftest.frag.
8865 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8866 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8868 sed -f conftest.frag conftest.in > conftest.out
8870 mv conftest.out conftest.in
8872 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8874 mv conftest.tail conftest.vals
8878 cat >> $CONFIG_STATUS <<\EOF
8879 rm -f conftest.frag conftest.h
8880 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8881 cat conftest.in >> conftest.h
8883 if cmp -s $ac_file conftest.h 2>/dev/null; then
8884 echo "$ac_file is unchanged"
8887 # Remove last slash and all that follows it. Not all systems have dirname.
8888 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8889 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8890 # The file is in a subdirectory.
8891 test ! -d "$ac_dir" && mkdir "$ac_dir"
8894 mv conftest.h $ac_file
8900 cat >> $CONFIG_STATUS <<EOF
8901 ac_sources="$nls_cv_header_libgt"
8902 ac_dests="$nls_cv_header_intl"
8905 cat >> $CONFIG_STATUS <<\EOF
8906 srcdir=$ac_given_srcdir
8907 while test -n "$ac_sources"; do
8908 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8909 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8911 echo "linking $srcdir/$ac_source to $ac_dest"
8913 if test ! -r $srcdir/$ac_source; then
8914 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8918 # Make relative symlinks.
8919 # Remove last slash and all that follows it. Not all systems have dirname.
8920 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
8921 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8922 # The dest file is in a subdirectory.
8923 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8924 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
8925 # A "../" for each directory in $ac_dest_dir_suffix.
8926 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
8928 ac_dest_dir_suffix= ac_dots=
8932 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8933 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8936 # Make a symlink if possible; otherwise try a hard link.
8937 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8938 ln $srcdir/$ac_source $ac_dest; then :
8940 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8944 cat >> $CONFIG_STATUS <<EOF
8950 target_alias='${target_alias}'
8952 subdirs='${subdirs}'
8953 oldstyle_subdirs='${oldstyle_subdirs}'
8954 symbolic_link='${symbolic_link}'
8955 program_transform_set='${program_transform_set}'
8956 program_transform_name='${program_transform_name}'
8957 dep_host_xmake_file='${dep_host_xmake_file}'
8958 host_xmake_file='${host_xmake_file}'
8959 dep_tmake_file='${dep_tmake_file}'
8960 tmake_file='${tmake_file}'
8961 thread_file='${thread_file}'
8962 gcc_version='${gcc_version}'
8963 gcc_version_trigger='${gcc_version_trigger}'
8964 local_prefix='${local_prefix}'
8965 build_install_headers_dir='${build_install_headers_dir}'
8966 build_exeext='${build_exeext}'
8967 host_exeext='${host_exeext}'
8968 out_file='${out_file}'
8969 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
8970 SET_MAKE='${SET_MAKE}'
8971 target_list='${target_list}'
8972 target_overrides='${target_overrides}'
8973 host_overrides='${host_overrides}'
8974 cross_defines='${cross_defines}'
8975 cross_overrides='${cross_overrides}'
8976 build_overrides='${build_overrides}'
8977 cpp_install_dir='${cpp_install_dir}'
8980 cat >> $CONFIG_STATUS <<\EOF
8981 case "$CONFIG_FILES" in *po/Makefile.in*)
8982 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8985 . $srcdir/configure.lang
8986 case x$CONFIG_HEADERS in
8987 xauto-host.h:config.in)
8990 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8991 # bootstrapping and the installation procedure can still use
8992 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8993 # FLAGS_TO_PASS has been modified to solve the problem there.
8994 # This is virtually a duplicate of what happens in configure.lang; we do
8995 # an extra check to make sure this only happens if ln -s can be used.
8996 if test "$symbolic_link" = "ln -s"; then
8997 for d in .. ${subdirs} ; do
8998 if test $d != ..; then
9001 for t in stage1 stage2 stage3 stage4 include
9004 $symbolic_link ../$t $t 2>/dev/null
9010 # Avoid having to add intl to our include paths.
9011 if test -f intl/libintl.h; then
9012 echo creating libintl.h
9013 echo '#include "intl/libintl.h"' >libintl.h
9018 chmod +x $CONFIG_STATUS
9019 rm -fr confdefs* $ac_clean_files
9020 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1