configure revision 56392
1#! /bin/sh 2 3# $FreeBSD: head/contrib/gcc/configure 56392 2000-01-22 16:05:33Z obrien $ 4 5# Guess values for system-dependent variables and create Makefiles. 6# Generated automatically using autoconf version 2.13 7# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11 12# Defaults: 13ac_help= 14ac_default_prefix=/usr/local 15# Any additions from configure.in: 16ac_help="$ac_help 17 --with-gnu-ld arrange to work with GNU ld." 18ac_help="$ac_help 19 --with-ld arrange to use the specified ld (full pathname)." 20ac_help="$ac_help 21 --with-gnu-as arrange to work with GNU as." 22ac_help="$ac_help 23 --with-as arrange to use the specified as (full pathname)." 24ac_help="$ac_help 25 --with-stabs arrange to use stabs instead of host debug format." 26ac_help="$ac_help 27 --with-elf arrange to use ELF instead of host debug format." 28ac_help="$ac_help 29 --with-local-prefix=DIR specifies directory to put local include." 30ac_help="$ac_help 31 --with-gxx-include-dir=DIR 32 specifies directory to put g++ header files." 33ac_help="$ac_help 34 --enable-checking enable expensive run-time checks." 35ac_help="$ac_help 36 --disable-cpp don't provide a user-visible C preprocessor." 37ac_help="$ac_help 38 --with-cpp-install-dir=DIR 39 install the user visible C preprocessor in DIR 40 (relative to PREFIX) as well as PREFIX/bin." 41ac_help="$ac_help 42 --enable-cpplib use cpplib for the C preprocessor." 43ac_help="$ac_help 44 --enable-c-cpplib link cpplib directly into C and C++ compilers 45 (EXPERIMENTAL) (implies --enable-cpplib)." 46ac_help="$ac_help 47 --enable-c-mbchar enable multibyte characters for C and C++." 48ac_help="$ac_help 49 --disable-fast-fixincludes 50 Disable the new fast fixincludes. 51 Run the old fixincludes script unconditionally" 52ac_help="$ac_help 53 --enable-haifa use the experimental scheduler. 54 --disable-haifa don't use the experimental scheduler for the 55 targets which normally enable it." 56ac_help="$ac_help 57 --enable-threads enable thread usage for target GCC. 58 --enable-threads=LIB use LIB thread package for target GCC." 59ac_help="$ac_help 60 --enable-objc-gc enable the use of Boehm's garbage collector with 61 the GNU Objective-C runtime." 62ac_help="$ac_help 63 --enable-java-gc=TYPE choose garbage collector [boehm]" 64ac_help="$ac_help 65 --enable-dwarf2 enable DWARF2 debugging as default." 66ac_help="$ac_help 67 --enable-nls use Native Language Support (disabled by default)" 68ac_help="$ac_help 69 --disable-nls do not use Native Language Support" 70ac_help="$ac_help 71 --with-included-gettext use the GNU gettext library included here" 72ac_help="$ac_help 73 --with-catgets use catgets functions if available" 74 75# Initialize some variables set by options. 76# The variables have the same names as the options, with 77# dashes changed to underlines. 78build=NONE 79cache_file=./config.cache 80exec_prefix=NONE 81host=NONE 82no_create= 83nonopt=NONE 84no_recursion= 85prefix=NONE 86program_prefix=NONE 87program_suffix=NONE 88program_transform_name=s,x,x, 89silent= 90site= 91sitefile= 92srcdir= 93target=NONE 94verbose= 95x_includes=NONE 96x_libraries=NONE 97bindir='${exec_prefix}/bin' 98sbindir='${exec_prefix}/sbin' 99libexecdir='${exec_prefix}/libexec' 100datadir='${prefix}/share' 101sysconfdir='${prefix}/etc' 102sharedstatedir='${prefix}/com' 103localstatedir='${prefix}/var' 104libdir='${exec_prefix}/lib' 105includedir='${prefix}/include' 106oldincludedir='/usr/include' 107infodir='${prefix}/info' 108mandir='${prefix}/man' 109 110# Initialize some other variables. 111subdirs= 112MFLAGS= MAKEFLAGS= 113SHELL=${CONFIG_SHELL-/bin/sh} 114# Maximum number of lines to put in a shell here document. 115ac_max_here_lines=12 116 117ac_prev= 118for ac_option 119do 120 121 # If the previous option needs an argument, assign it. 122 if test -n "$ac_prev"; then 123 eval "$ac_prev=\$ac_option" 124 ac_prev= 125 continue 126 fi 127 128 case "$ac_option" in 129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 130 *) ac_optarg= ;; 131 esac 132 133 # Accept the important Cygnus configure options, so we can diagnose typos. 134 135 case "$ac_option" in 136 137 -bindir | --bindir | --bindi | --bind | --bin | --bi) 138 ac_prev=bindir ;; 139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 140 bindir="$ac_optarg" ;; 141 142 -build | --build | --buil | --bui | --bu) 143 ac_prev=build ;; 144 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 145 build="$ac_optarg" ;; 146 147 -cache-file | --cache-file | --cache-fil | --cache-fi \ 148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 149 ac_prev=cache_file ;; 150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 152 cache_file="$ac_optarg" ;; 153 154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 155 ac_prev=datadir ;; 156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 157 | --da=*) 158 datadir="$ac_optarg" ;; 159 160 -disable-* | --disable-*) 161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 162 # Reject names that are not valid shell variable names. 163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 165 fi 166 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 167 eval "enable_${ac_feature}=no" ;; 168 169 -enable-* | --enable-*) 170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 171 # Reject names that are not valid shell variable names. 172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 174 fi 175 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 176 case "$ac_option" in 177 *=*) ;; 178 *) ac_optarg=yes ;; 179 esac 180 eval "enable_${ac_feature}='$ac_optarg'" ;; 181 182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 184 | --exec | --exe | --ex) 185 ac_prev=exec_prefix ;; 186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 188 | --exec=* | --exe=* | --ex=*) 189 exec_prefix="$ac_optarg" ;; 190 191 -gas | --gas | --ga | --g) 192 # Obsolete; use --with-gas. 193 with_gas=yes ;; 194 195 -help | --help | --hel | --he) 196 # Omit some internal or obsolete options to make the list less imposing. 197 # This message is too long to be a string in the A/UX 3.1 sh. 198 cat << EOF 199Usage: configure [options] [host] 200Options: [defaults in brackets after descriptions] 201Configuration: 202 --cache-file=FILE cache test results in FILE 203 --help print this message 204 --no-create do not create output files 205 --quiet, --silent do not print \`checking...' messages 206 --site-file=FILE use FILE as the site file 207 --version print the version of autoconf that created configure 208Directory and file names: 209 --prefix=PREFIX install architecture-independent files in PREFIX 210 [$ac_default_prefix] 211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 212 [same as prefix] 213 --bindir=DIR user executables in DIR [EPREFIX/bin] 214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 216 --datadir=DIR read-only architecture-independent data in DIR 217 [PREFIX/share] 218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 219 --sharedstatedir=DIR modifiable architecture-independent data in DIR 220 [PREFIX/com] 221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 222 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 223 --includedir=DIR C header files in DIR [PREFIX/include] 224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 225 --infodir=DIR info documentation in DIR [PREFIX/info] 226 --mandir=DIR man documentation in DIR [PREFIX/man] 227 --srcdir=DIR find the sources in DIR [configure dir or ..] 228 --program-prefix=PREFIX prepend PREFIX to installed program names 229 --program-suffix=SUFFIX append SUFFIX to installed program names 230 --program-transform-name=PROGRAM 231 run sed PROGRAM on installed program names 232EOF 233 cat << EOF 234Host type: 235 --build=BUILD configure for building on BUILD [BUILD=HOST] 236 --host=HOST configure for HOST [guessed] 237 --target=TARGET configure for TARGET [TARGET=HOST] 238Features and packages: 239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 243 --x-includes=DIR X include files are in DIR 244 --x-libraries=DIR X library files are in DIR 245EOF 246 if test -n "$ac_help"; then 247 echo "--enable and --with options recognized:$ac_help" 248 fi 249 exit 0 ;; 250 251 -host | --host | --hos | --ho) 252 ac_prev=host ;; 253 -host=* | --host=* | --hos=* | --ho=*) 254 host="$ac_optarg" ;; 255 256 -includedir | --includedir | --includedi | --included | --include \ 257 | --includ | --inclu | --incl | --inc) 258 ac_prev=includedir ;; 259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 260 | --includ=* | --inclu=* | --incl=* | --inc=*) 261 includedir="$ac_optarg" ;; 262 263 -infodir | --infodir | --infodi | --infod | --info | --inf) 264 ac_prev=infodir ;; 265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 266 infodir="$ac_optarg" ;; 267 268 -libdir | --libdir | --libdi | --libd) 269 ac_prev=libdir ;; 270 -libdir=* | --libdir=* | --libdi=* | --libd=*) 271 libdir="$ac_optarg" ;; 272 273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 274 | --libexe | --libex | --libe) 275 ac_prev=libexecdir ;; 276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 277 | --libexe=* | --libex=* | --libe=*) 278 libexecdir="$ac_optarg" ;; 279 280 -localstatedir | --localstatedir | --localstatedi | --localstated \ 281 | --localstate | --localstat | --localsta | --localst \ 282 | --locals | --local | --loca | --loc | --lo) 283 ac_prev=localstatedir ;; 284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 287 localstatedir="$ac_optarg" ;; 288 289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 290 ac_prev=mandir ;; 291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 292 mandir="$ac_optarg" ;; 293 294 -nfp | --nfp | --nf) 295 # Obsolete; use --without-fp. 296 with_fp=no ;; 297 298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 299 | --no-cr | --no-c) 300 no_create=yes ;; 301 302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 304 no_recursion=yes ;; 305 306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 308 | --oldin | --oldi | --old | --ol | --o) 309 ac_prev=oldincludedir ;; 310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 313 oldincludedir="$ac_optarg" ;; 314 315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 316 ac_prev=prefix ;; 317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 318 prefix="$ac_optarg" ;; 319 320 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 321 | --program-pre | --program-pr | --program-p) 322 ac_prev=program_prefix ;; 323 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 325 program_prefix="$ac_optarg" ;; 326 327 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 328 | --program-suf | --program-su | --program-s) 329 ac_prev=program_suffix ;; 330 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 332 program_suffix="$ac_optarg" ;; 333 334 -program-transform-name | --program-transform-name \ 335 | --program-transform-nam | --program-transform-na \ 336 | --program-transform-n | --program-transform- \ 337 | --program-transform | --program-transfor \ 338 | --program-transfo | --program-transf \ 339 | --program-trans | --program-tran \ 340 | --progr-tra | --program-tr | --program-t) 341 ac_prev=program_transform_name ;; 342 -program-transform-name=* | --program-transform-name=* \ 343 | --program-transform-nam=* | --program-transform-na=* \ 344 | --program-transform-n=* | --program-transform-=* \ 345 | --program-transform=* | --program-transfor=* \ 346 | --program-transfo=* | --program-transf=* \ 347 | --program-trans=* | --program-tran=* \ 348 | --progr-tra=* | --program-tr=* | --program-t=*) 349 program_transform_name="$ac_optarg" ;; 350 351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 352 | -silent | --silent | --silen | --sile | --sil) 353 silent=yes ;; 354 355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 356 ac_prev=sbindir ;; 357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 358 | --sbi=* | --sb=*) 359 sbindir="$ac_optarg" ;; 360 361 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 363 | --sharedst | --shareds | --shared | --share | --shar \ 364 | --sha | --sh) 365 ac_prev=sharedstatedir ;; 366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 369 | --sha=* | --sh=*) 370 sharedstatedir="$ac_optarg" ;; 371 372 -site | --site | --sit) 373 ac_prev=site ;; 374 -site=* | --site=* | --sit=*) 375 site="$ac_optarg" ;; 376 377 -site-file | --site-file | --site-fil | --site-fi | --site-f) 378 ac_prev=sitefile ;; 379 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 380 sitefile="$ac_optarg" ;; 381 382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 383 ac_prev=srcdir ;; 384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 385 srcdir="$ac_optarg" ;; 386 387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 388 | --syscon | --sysco | --sysc | --sys | --sy) 389 ac_prev=sysconfdir ;; 390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 392 sysconfdir="$ac_optarg" ;; 393 394 -target | --target | --targe | --targ | --tar | --ta | --t) 395 ac_prev=target ;; 396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 397 target="$ac_optarg" ;; 398 399 -v | -verbose | --verbose | --verbos | --verbo | --verb) 400 verbose=yes ;; 401 402 -version | --version | --versio | --versi | --vers) 403 echo "configure generated by autoconf version 2.13" 404 exit 0 ;; 405 406 -with-* | --with-*) 407 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 408 # Reject names that are not valid shell variable names. 409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 411 fi 412 ac_package=`echo $ac_package| sed 's/-/_/g'` 413 case "$ac_option" in 414 *=*) ;; 415 *) ac_optarg=yes ;; 416 esac 417 eval "with_${ac_package}='$ac_optarg'" ;; 418 419 -without-* | --without-*) 420 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 421 # Reject names that are not valid shell variable names. 422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 424 fi 425 ac_package=`echo $ac_package| sed 's/-/_/g'` 426 eval "with_${ac_package}=no" ;; 427 428 --x) 429 # Obsolete; use --with-x. 430 with_x=yes ;; 431 432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 433 | --x-incl | --x-inc | --x-in | --x-i) 434 ac_prev=x_includes ;; 435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 437 x_includes="$ac_optarg" ;; 438 439 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 441 ac_prev=x_libraries ;; 442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 444 x_libraries="$ac_optarg" ;; 445 446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 447 ;; 448 449 *) 450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 451 echo "configure: warning: $ac_option: invalid host type" 1>&2 452 fi 453 if test "x$nonopt" != xNONE; then 454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 455 fi 456 nonopt="$ac_option" 457 ;; 458 459 esac 460done 461 462if test -n "$ac_prev"; then 463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 464fi 465 466trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 467 468# File descriptor usage: 469# 0 standard input 470# 1 file creation 471# 2 errors and warnings 472# 3 some systems may open it to /dev/tty 473# 4 used on the Kubota Titan 474# 6 checking for... messages and results 475# 5 compiler messages saved in config.log 476if test "$silent" = yes; then 477 exec 6>/dev/null 478else 479 exec 6>&1 480fi 481exec 5>./config.log 482 483echo "\ 484This file contains any messages produced by compilers while 485running configure, to aid debugging if configure makes a mistake. 486" 1>&5 487 488# Strip out --no-create and --no-recursion so they do not pile up. 489# Also quote any args containing shell metacharacters. 490ac_configure_args= 491for ac_arg 492do 493 case "$ac_arg" in 494 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 495 | --no-cr | --no-c) ;; 496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 499 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 500 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 501 esac 502done 503 504# NLS nuisances. 505# Only set these to C if already set. These must not be set unconditionally 506# because not all systems understand e.g. LANG=C (notably SCO). 507# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 508# Non-C LC_CTYPE values break the ctype check. 509if test "${LANG+set}" = set; then LANG=C; export LANG; fi 510if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 511if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 512if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 513 514# confdefs.h avoids OS command line length limits that DEFS can exceed. 515rm -rf conftest* confdefs.h 516# AIX cpp loses on an empty file, so make sure it contains at least a newline. 517echo > confdefs.h 518 519# A filename unique to this package, relative to the directory that 520# configure is in, which we can look for to find out if srcdir is correct. 521ac_unique_file=tree.c 522 523# Find the source files, if location was not specified. 524if test -z "$srcdir"; then 525 ac_srcdir_defaulted=yes 526 # Try the directory containing this script, then its parent. 527 ac_prog=$0 528 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 530 srcdir=$ac_confdir 531 if test ! -r $srcdir/$ac_unique_file; then 532 srcdir=.. 533 fi 534else 535 ac_srcdir_defaulted=no 536fi 537if test ! -r $srcdir/$ac_unique_file; then 538 if test "$ac_srcdir_defaulted" = yes; then 539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 540 else 541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 542 fi 543fi 544srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 545 546# Prefer explicitly selected file to automatically selected ones. 547if test -z "$sitefile"; then 548 if test -z "$CONFIG_SITE"; then 549 if test "x$prefix" != xNONE; then 550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 551 else 552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 553 fi 554 fi 555else 556 CONFIG_SITE="$sitefile" 557fi 558for ac_site_file in $CONFIG_SITE; do 559 if test -r "$ac_site_file"; then 560 echo "loading site script $ac_site_file" 561 . "$ac_site_file" 562 fi 563done 564 565if test -r "$cache_file"; then 566 echo "loading cache $cache_file" 567 . $cache_file 568else 569 echo "creating cache $cache_file" 570 > $cache_file 571fi 572 573ac_ext=c 574# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 575ac_cpp='$CPP $CPPFLAGS' 576ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 577ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 578cross_compiling=$ac_cv_prog_cc_cross 579 580ac_exeext= 581ac_objext=o 582if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 585 ac_n= ac_c=' 586' ac_t=' ' 587 else 588 ac_n=-n ac_c= ac_t= 589 fi 590else 591 ac_n= ac_c='\c' ac_t= 592fi 593 594 595 596 597remove=rm 598hard_link=ln 599symbolic_link='ln -s' 600copy=cp 601 602# Check for bogus environment variables. 603# Test if LIBRARY_PATH contains the notation for the current directory 604# since this would lead to problems installing/building glibc. 605# LIBRARY_PATH contains the current directory if one of the following 606# is true: 607# - one of the terminals (":" and ";") is the first or last sign 608# - two terminals occur directly after each other 609# - the path contains an element with a dot in it 610echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 611echo "configure:610: checking LIBRARY_PATH variable" >&5 612case ${LIBRARY_PATH} in 613 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 614 library_path_setting="contains current directory" 615 ;; 616 *) 617 library_path_setting="ok" 618 ;; 619esac 620echo "$ac_t""$library_path_setting" 1>&6 621if test "$library_path_setting" != "ok"; then 622{ echo "configure: error: 623*** LIBRARY_PATH shouldn't contain the current directory when 624*** building gcc. Please change the environment variable 625*** and run configure again." 1>&2; exit 1; } 626fi 627 628# Test if GCC_EXEC_PREFIX contains the notation for the current directory 629# since this would lead to problems installing/building glibc. 630# GCC_EXEC_PREFIX contains the current directory if one of the following 631# is true: 632# - one of the terminals (":" and ";") is the first or last sign 633# - two terminals occur directly after each other 634# - the path contains an element with a dot in it 635echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 636echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5 637case ${GCC_EXEC_PREFIX} in 638 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 639 gcc_exec_prefix_setting="contains current directory" 640 ;; 641 *) 642 gcc_exec_prefix_setting="ok" 643 ;; 644esac 645echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 646if test "$gcc_exec_prefix_setting" != "ok"; then 647{ echo "configure: error: 648*** GCC_EXEC_PREFIX shouldn't contain the current directory when 649*** building gcc. Please change the environment variable 650*** and run configure again." 1>&2; exit 1; } 651fi 652 653# Check for additional parameters 654 655# With GNU ld 656# Check whether --with-gnu-ld or --without-gnu-ld was given. 657if test "${with_gnu_ld+set}" = set; then 658 withval="$with_gnu_ld" 659 gnu_ld_flag="$with_gnu_ld" 660else 661 gnu_ld_flag=no 662fi 663 664 665# With pre-defined ld 666# Check whether --with-ld or --without-ld was given. 667if test "${with_ld+set}" = set; then 668 withval="$with_ld" 669 DEFAULT_LINKER="$with_ld" 670fi 671 672if test x"${DEFAULT_LINKER+set}" = x"set"; then 673 if test ! -x "$DEFAULT_LINKER"; then 674 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 675 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 676 gnu_ld_flag=yes 677 fi 678 cat >> confdefs.h <<EOF 679#define DEFAULT_LINKER "$DEFAULT_LINKER" 680EOF 681 682fi 683 684# With GNU as 685# Check whether --with-gnu-as or --without-gnu-as was given. 686if test "${with_gnu_as+set}" = set; then 687 withval="$with_gnu_as" 688 gas_flag="$with_gnu_as" 689else 690 gas_flag=no 691fi 692 693 694# Check whether --with-as or --without-as was given. 695if test "${with_as+set}" = set; then 696 withval="$with_as" 697 DEFAULT_ASSEMBLER="$with_as" 698fi 699 700if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 701 if test ! -x "$DEFAULT_ASSEMBLER"; then 702 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 703 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 704 gas_flag=yes 705 fi 706 cat >> confdefs.h <<EOF 707#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 708EOF 709 710fi 711 712# With stabs 713# Check whether --with-stabs or --without-stabs was given. 714if test "${with_stabs+set}" = set; then 715 withval="$with_stabs" 716 stabs="$with_stabs" 717else 718 stabs=no 719fi 720 721 722# With ELF 723# Check whether --with-elf or --without-elf was given. 724if test "${with_elf+set}" = set; then 725 withval="$with_elf" 726 elf="$with_elf" 727else 728 elf=no 729fi 730 731 732# Specify the local prefix 733local_prefix= 734# Check whether --with-local-prefix or --without-local-prefix was given. 735if test "${with_local_prefix+set}" = set; then 736 withval="$with_local_prefix" 737 case "${withval}" in 738yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; 739no) ;; 740*) local_prefix=$with_local_prefix ;; 741esac 742fi 743 744 745# Default local prefix if it is empty 746if test x$local_prefix = x; then 747 local_prefix=/usr/local 748fi 749 750# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only 751# passed in by the toplevel make and thus we'd get different behavior 752# depending on where we built the sources. 753gcc_gxx_include_dir= 754# Specify the g++ header file directory 755# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. 756if test "${with_gxx_include_dir+set}" = set; then 757 withval="$with_gxx_include_dir" 758 case "${withval}" in 759yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; 760no) ;; 761*) gcc_gxx_include_dir=$with_gxx_include_dir ;; 762esac 763fi 764 765 766if test x${gcc_gxx_include_dir} = x; then 767 if test x${enable_version_specific_runtime_libs} = xyes; then 768 gcc_gxx_include_dir='${libsubdir}/include/g++' 769 else 770 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if 771 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} 772 fi 773fi 774 775# Enable expensive internal checks 776# Check whether --enable-checking or --disable-checking was given. 777if test "${enable_checking+set}" = set; then 778 enableval="$enable_checking" 779 case "${enableval}" in 780yes) cat >> confdefs.h <<\EOF 781#define ENABLE_CHECKING 1 782EOF 783 ;; 784no) ;; 785*) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; 786esac 787fi 788 789 790# Check whether --enable-cpp or --disable-cpp was given. 791if test "${enable_cpp+set}" = set; then 792 enableval="$enable_cpp" 793 : 794else 795 enable_cpp=yes 796fi 797 798 799# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. 800if test "${with_cpp_install_dir+set}" = set; then 801 withval="$with_cpp_install_dir" 802 if test x$withval = xyes; then 803 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } 804elif test x$withval != xno; then 805 cpp_install_dir=$withval 806fi 807fi 808 809 810# Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. 811cpp_main=cccp 812# Check whether --enable-cpplib or --disable-cpplib was given. 813if test "${enable_cpplib+set}" = set; then 814 enableval="$enable_cpplib" 815 if test x$enable_cpplib != xno; then 816 cpp_main=cppmain 817fi 818fi 819 820 821# Link cpplib into the compiler proper, for C/C++/ObjC. 822# Check whether --enable-c-cpplib or --disable-c-cpplib was given. 823if test "${enable_c_cpplib+set}" = set; then 824 enableval="$enable_c_cpplib" 825 if test x$enable_c_cpplib != xno; then 826 extra_c_objs="${extra_c_objs} libcpp.a" 827 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" 828 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" 829 cpp_main=cppmain 830fi 831fi 832 833 834# Enable Multibyte Characters for C/C++ 835# Check whether --enable-c-mbchar or --disable-c-mbchar was given. 836if test "${enable_c_mbchar+set}" = set; then 837 enableval="$enable_c_mbchar" 838 if test x$enable_c_mbchar != xno; then 839 extra_c_flags=-DMULTIBYTE_CHARS=1 840fi 841fi 842 843 844# Disable fast fixincludes 845# Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given. 846if test "${enable_fast_fixincludes+set}" = set; then 847 enableval="$enable_fast_fixincludes" 848 if test x$enable_fast_fixincludes = xno ; then 849 cp $srcdir/fixincludes ./fixinc.sh 850fi 851fi 852 853 854# Enable Haifa scheduler. 855# Check whether --enable-haifa or --disable-haifa was given. 856if test "${enable_haifa+set}" = set; then 857 enableval="$enable_haifa" 858 : 859fi 860 861 862# Enable threads 863# Pass with no value to take the default 864# Pass with a value to specify a thread package 865# Check whether --enable-threads or --disable-threads was given. 866if test "${enable_threads+set}" = set; then 867 enableval="$enable_threads" 868 if test x$enable_threads = xno; then 869 enable_threads='' 870fi 871else 872 enable_threads='' 873fi 874 875 876enable_threads_flag=$enable_threads 877# Check if a valid thread package 878case x${enable_threads_flag} in 879 x | xno) 880 # No threads 881 target_thread_file='single' 882 ;; 883 xyes) 884 # default 885 target_thread_file='' 886 ;; 887 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ 888 xsolaris | xwin32 | xdce | xvxworks) 889 target_thread_file=$enable_threads_flag 890 ;; 891 *) 892 echo "$enable_threads is an unknown thread package" 1>&2 893 exit 1 894 ;; 895esac 896 897# Check whether --enable-objc-gc or --disable-objc-gc was given. 898if test "${enable_objc_gc+set}" = set; then 899 enableval="$enable_objc_gc" 900 if [ x$enable_objc_gc = xno ]; then 901 objc_boehm_gc='' 902else 903 objc_boehm_gc=1 904fi 905else 906 objc_boehm_gc='' 907fi 908 909 910# Check whether --enable-java-gc or --disable-java-gc was given. 911if test "${enable_java_gc+set}" = set; then 912 enableval="$enable_java_gc" 913 914 JAVAGC=$enableval 915else 916 JAVAGC=boehm 917fi 918 919 920# Check whether --with-dwarf2 or --without-dwarf2 was given. 921if test "${with_dwarf2+set}" = set; then 922 withval="$with_dwarf2" 923 dwarf2="$with_dwarf2" 924else 925 dwarf2=no 926fi 927 928 929# Determine the host, build, and target systems 930ac_aux_dir= 931for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 932 if test -f $ac_dir/install-sh; then 933 ac_aux_dir=$ac_dir 934 ac_install_sh="$ac_aux_dir/install-sh -c" 935 break 936 elif test -f $ac_dir/install.sh; then 937 ac_aux_dir=$ac_dir 938 ac_install_sh="$ac_aux_dir/install.sh -c" 939 break 940 fi 941done 942if test -z "$ac_aux_dir"; then 943 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 944fi 945ac_config_guess=$ac_aux_dir/config.guess 946ac_config_sub=$ac_aux_dir/config.sub 947ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 948 949 950# Do some error checking and defaulting for the host and target type. 951# The inputs are: 952# configure --host=HOST --target=TARGET --build=BUILD NONOPT 953# 954# The rules are: 955# 1. You are not allowed to specify --host, --target, and nonopt at the 956# same time. 957# 2. Host defaults to nonopt. 958# 3. If nonopt is not specified, then host defaults to the current host, 959# as determined by config.guess. 960# 4. Target and build default to nonopt. 961# 5. If nonopt is not specified, then target and build default to host. 962 963# The aliases save the names the user supplied, while $host etc. 964# will get canonicalized. 965case $host---$target---$nonopt in 966NONE---*---* | *---NONE---* | *---*---NONE) ;; 967*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 968esac 969 970 971# Make sure we can run config.sub. 972if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 973else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 974fi 975 976echo $ac_n "checking host system type""... $ac_c" 1>&6 977echo "configure:976: checking host system type" >&5 978 979host_alias=$host 980case "$host_alias" in 981NONE) 982 case $nonopt in 983 NONE) 984 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 985 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 986 fi ;; 987 *) host_alias=$nonopt ;; 988 esac ;; 989esac 990 991host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 992host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 993host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 994host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 995echo "$ac_t""$host" 1>&6 996 997echo $ac_n "checking target system type""... $ac_c" 1>&6 998echo "configure:997: checking target system type" >&5 999 1000target_alias=$target 1001case "$target_alias" in 1002NONE) 1003 case $nonopt in 1004 NONE) target_alias=$host_alias ;; 1005 *) target_alias=$nonopt ;; 1006 esac ;; 1007esac 1008 1009target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 1010target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1011target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1012target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1013echo "$ac_t""$target" 1>&6 1014 1015echo $ac_n "checking build system type""... $ac_c" 1>&6 1016echo "configure:1015: checking build system type" >&5 1017 1018build_alias=$build 1019case "$build_alias" in 1020NONE) 1021 case $nonopt in 1022 NONE) build_alias=$host_alias ;; 1023 *) build_alias=$nonopt ;; 1024 esac ;; 1025esac 1026 1027build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 1028build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1029build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1030build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1031echo "$ac_t""$build" 1>&6 1032 1033test "$host_alias" != "$target_alias" && 1034 test "$program_prefix$program_suffix$program_transform_name" = \ 1035 NONENONEs,x,x, && 1036 program_prefix=${target_alias}- 1037 1038 1039# Find the native compiler 1040# Extract the first word of "gcc", so it can be a program name with args. 1041set dummy gcc; ac_word=$2 1042echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1043echo "configure:1042: checking for $ac_word" >&5 1044if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1045 echo $ac_n "(cached) $ac_c" 1>&6 1046else 1047 if test -n "$CC"; then 1048 ac_cv_prog_CC="$CC" # Let the user override the test. 1049else 1050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1051 ac_dummy="$PATH" 1052 for ac_dir in $ac_dummy; do 1053 test -z "$ac_dir" && ac_dir=. 1054 if test -f $ac_dir/$ac_word; then 1055 ac_cv_prog_CC="gcc" 1056 break 1057 fi 1058 done 1059 IFS="$ac_save_ifs" 1060fi 1061fi 1062CC="$ac_cv_prog_CC" 1063if test -n "$CC"; then 1064 echo "$ac_t""$CC" 1>&6 1065else 1066 echo "$ac_t""no" 1>&6 1067fi 1068 1069if test -z "$CC"; then 1070 # Extract the first word of "cc", so it can be a program name with args. 1071set dummy cc; ac_word=$2 1072echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1073echo "configure:1072: checking for $ac_word" >&5 1074if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1075 echo $ac_n "(cached) $ac_c" 1>&6 1076else 1077 if test -n "$CC"; then 1078 ac_cv_prog_CC="$CC" # Let the user override the test. 1079else 1080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1081 ac_prog_rejected=no 1082 ac_dummy="$PATH" 1083 for ac_dir in $ac_dummy; do 1084 test -z "$ac_dir" && ac_dir=. 1085 if test -f $ac_dir/$ac_word; then 1086 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1087 ac_prog_rejected=yes 1088 continue 1089 fi 1090 ac_cv_prog_CC="cc" 1091 break 1092 fi 1093 done 1094 IFS="$ac_save_ifs" 1095if test $ac_prog_rejected = yes; then 1096 # We found a bogon in the path, so make sure we never use it. 1097 set dummy $ac_cv_prog_CC 1098 shift 1099 if test $# -gt 0; then 1100 # We chose a different compiler from the bogus one. 1101 # However, it has the same basename, so the bogon will be chosen 1102 # first if we set CC to just the basename; use the full file name. 1103 shift 1104 set dummy "$ac_dir/$ac_word" "$@" 1105 shift 1106 ac_cv_prog_CC="$@" 1107 fi 1108fi 1109fi 1110fi 1111CC="$ac_cv_prog_CC" 1112if test -n "$CC"; then 1113 echo "$ac_t""$CC" 1>&6 1114else 1115 echo "$ac_t""no" 1>&6 1116fi 1117 1118 if test -z "$CC"; then 1119 case "`uname -s`" in 1120 *win32* | *WIN32*) 1121 # Extract the first word of "cl", so it can be a program name with args. 1122set dummy cl; ac_word=$2 1123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1124echo "configure:1123: checking for $ac_word" >&5 1125if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1126 echo $ac_n "(cached) $ac_c" 1>&6 1127else 1128 if test -n "$CC"; then 1129 ac_cv_prog_CC="$CC" # Let the user override the test. 1130else 1131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1132 ac_dummy="$PATH" 1133 for ac_dir in $ac_dummy; do 1134 test -z "$ac_dir" && ac_dir=. 1135 if test -f $ac_dir/$ac_word; then 1136 ac_cv_prog_CC="cl" 1137 break 1138 fi 1139 done 1140 IFS="$ac_save_ifs" 1141fi 1142fi 1143CC="$ac_cv_prog_CC" 1144if test -n "$CC"; then 1145 echo "$ac_t""$CC" 1>&6 1146else 1147 echo "$ac_t""no" 1>&6 1148fi 1149 ;; 1150 esac 1151 fi 1152 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1153fi 1154 1155echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1156echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1157 1158ac_ext=c 1159# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1160ac_cpp='$CPP $CPPFLAGS' 1161ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1162ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1163cross_compiling=$ac_cv_prog_cc_cross 1164 1165cat > conftest.$ac_ext << EOF 1166 1167#line 1166 "configure" 1168#include "confdefs.h" 1169 1170main(){return(0);} 1171EOF 1172if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1173 ac_cv_prog_cc_works=yes 1174 # If we can't run a trivial program, we are probably using a cross compiler. 1175 if (./conftest; exit) 2>/dev/null; then 1176 ac_cv_prog_cc_cross=no 1177 else 1178 ac_cv_prog_cc_cross=yes 1179 fi 1180else 1181 echo "configure: failed program was:" >&5 1182 cat conftest.$ac_ext >&5 1183 ac_cv_prog_cc_works=no 1184fi 1185rm -fr conftest* 1186ac_ext=c 1187# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1188ac_cpp='$CPP $CPPFLAGS' 1189ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1190ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1191cross_compiling=$ac_cv_prog_cc_cross 1192 1193echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1194if test $ac_cv_prog_cc_works = no; then 1195 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1196fi 1197echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1198echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1199echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1200cross_compiling=$ac_cv_prog_cc_cross 1201 1202echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1203echo "configure:1202: checking whether we are using GNU C" >&5 1204if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1205 echo $ac_n "(cached) $ac_c" 1>&6 1206else 1207 cat > conftest.c <<EOF 1208#ifdef __GNUC__ 1209 yes; 1210#endif 1211EOF 1212if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1213 ac_cv_prog_gcc=yes 1214else 1215 ac_cv_prog_gcc=no 1216fi 1217fi 1218 1219echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1220 1221if test $ac_cv_prog_gcc = yes; then 1222 GCC=yes 1223else 1224 GCC= 1225fi 1226 1227ac_test_CFLAGS="${CFLAGS+set}" 1228ac_save_CFLAGS="$CFLAGS" 1229CFLAGS= 1230echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1231echo "configure:1230: checking whether ${CC-cc} accepts -g" >&5 1232if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1233 echo $ac_n "(cached) $ac_c" 1>&6 1234else 1235 echo 'void f(){}' > conftest.c 1236if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1237 ac_cv_prog_cc_g=yes 1238else 1239 ac_cv_prog_cc_g=no 1240fi 1241rm -f conftest* 1242 1243fi 1244 1245echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1246if test "$ac_test_CFLAGS" = set; then 1247 CFLAGS="$ac_save_CFLAGS" 1248elif test $ac_cv_prog_cc_g = yes; then 1249 if test "$GCC" = yes; then 1250 CFLAGS="-g -O2" 1251 else 1252 CFLAGS="-g" 1253 fi 1254else 1255 if test "$GCC" = yes; then 1256 CFLAGS="-O2" 1257 else 1258 CFLAGS= 1259 fi 1260fi 1261 1262 1263# If the native compiler is GCC, we can enable warnings even in stage1. 1264# That's useful for people building cross-compilers, or just running a 1265# quick `make'. 1266if test "x$GCC" = "xyes"; then 1267 stage1_warn_cflags='$(WARN_CFLAGS)' 1268else 1269 stage1_warn_cflags="" 1270fi 1271 1272 1273echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1274echo "configure:1273: checking whether ${MAKE-make} sets \${MAKE}" >&5 1275set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1276if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1277 echo $ac_n "(cached) $ac_c" 1>&6 1278else 1279 cat > conftestmake <<\EOF 1280all: 1281 @echo 'ac_maketemp="${MAKE}"' 1282EOF 1283# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1284eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1285if test -n "$ac_maketemp"; then 1286 eval ac_cv_prog_make_${ac_make}_set=yes 1287else 1288 eval ac_cv_prog_make_${ac_make}_set=no 1289fi 1290rm -f conftestmake 1291fi 1292if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1293 echo "$ac_t""yes" 1>&6 1294 SET_MAKE= 1295else 1296 echo "$ac_t""no" 1>&6 1297 SET_MAKE="MAKE=${MAKE-make}" 1298fi 1299 1300 1301echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 1302echo "configure:1301: checking whether a default assembler was specified" >&5 1303if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 1304 if test x"$gas_flag" = x"no"; then 1305 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 1306 else 1307 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 1308 fi 1309else 1310 echo "$ac_t""no" 1>&6 1311fi 1312 1313echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 1314echo "configure:1313: checking whether a default linker was specified" >&5 1315if test x"${DEFAULT_LINKER+set}" = x"set"; then 1316 if test x"$gnu_ld_flag" = x"no"; then 1317 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 1318 else 1319 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 1320 fi 1321else 1322 echo "$ac_t""no" 1>&6 1323fi 1324 1325# Find some useful tools 1326for ac_prog in mawk gawk nawk awk 1327do 1328# Extract the first word of "$ac_prog", so it can be a program name with args. 1329set dummy $ac_prog; ac_word=$2 1330echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1331echo "configure:1330: checking for $ac_word" >&5 1332if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 1333 echo $ac_n "(cached) $ac_c" 1>&6 1334else 1335 if test -n "$AWK"; then 1336 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1337else 1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1339 ac_dummy="$PATH" 1340 for ac_dir in $ac_dummy; do 1341 test -z "$ac_dir" && ac_dir=. 1342 if test -f $ac_dir/$ac_word; then 1343 ac_cv_prog_AWK="$ac_prog" 1344 break 1345 fi 1346 done 1347 IFS="$ac_save_ifs" 1348fi 1349fi 1350AWK="$ac_cv_prog_AWK" 1351if test -n "$AWK"; then 1352 echo "$ac_t""$AWK" 1>&6 1353else 1354 echo "$ac_t""no" 1>&6 1355fi 1356 1357test -n "$AWK" && break 1358done 1359 1360# Extract the first word of "flex", so it can be a program name with args. 1361set dummy flex; ac_word=$2 1362echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1363echo "configure:1362: checking for $ac_word" >&5 1364if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1365 echo $ac_n "(cached) $ac_c" 1>&6 1366else 1367 if test -n "$LEX"; then 1368 ac_cv_prog_LEX="$LEX" # Let the user override the test. 1369else 1370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1371 ac_dummy="$PATH" 1372 for ac_dir in $ac_dummy; do 1373 test -z "$ac_dir" && ac_dir=. 1374 if test -f $ac_dir/$ac_word; then 1375 ac_cv_prog_LEX="flex" 1376 break 1377 fi 1378 done 1379 IFS="$ac_save_ifs" 1380 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 1381fi 1382fi 1383LEX="$ac_cv_prog_LEX" 1384if test -n "$LEX"; then 1385 echo "$ac_t""$LEX" 1>&6 1386else 1387 echo "$ac_t""no" 1>&6 1388fi 1389 1390if test -z "$LEXLIB" 1391then 1392 case "$LEX" in 1393 flex*) ac_lib=fl ;; 1394 *) ac_lib=l ;; 1395 esac 1396 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 1397echo "configure:1396: checking for yywrap in -l$ac_lib" >&5 1398ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 1399if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1400 echo $ac_n "(cached) $ac_c" 1>&6 1401else 1402 ac_save_LIBS="$LIBS" 1403LIBS="-l$ac_lib $LIBS" 1404cat > conftest.$ac_ext <<EOF 1405#line 1404 "configure" 1406#include "confdefs.h" 1407/* Override any gcc2 internal prototype to avoid an error. */ 1408/* We use char because int might match the return type of a gcc2 1409 builtin and then its argument prototype would still apply. */ 1410char yywrap(); 1411 1412int main() { 1413yywrap() 1414; return 0; } 1415EOF 1416if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1417 rm -rf conftest* 1418 eval "ac_cv_lib_$ac_lib_var=yes" 1419else 1420 echo "configure: failed program was:" >&5 1421 cat conftest.$ac_ext >&5 1422 rm -rf conftest* 1423 eval "ac_cv_lib_$ac_lib_var=no" 1424fi 1425rm -f conftest* 1426LIBS="$ac_save_LIBS" 1427 1428fi 1429if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1430 echo "$ac_t""yes" 1>&6 1431 LEXLIB="-l$ac_lib" 1432else 1433 echo "$ac_t""no" 1>&6 1434fi 1435 1436fi 1437 1438echo $ac_n "checking whether ln works""... $ac_c" 1>&6 1439echo "configure:1438: checking whether ln works" >&5 1440if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then 1441 echo $ac_n "(cached) $ac_c" 1>&6 1442else 1443 rm -f conftestdata_t 1444echo >conftestdata_f 1445if ln conftestdata_f conftestdata_t 2>/dev/null 1446then 1447 gcc_cv_prog_LN="ln" 1448else 1449 if ln -s conftestdata_f conftestdata_t 2>/dev/null 1450 then 1451 gcc_cv_prog_LN="ln -s" 1452 else 1453 gcc_cv_prog_LN=cp 1454 fi 1455fi 1456rm -f conftestdata_f conftestdata_t 1457 1458fi 1459LN="$gcc_cv_prog_LN" 1460if test "$gcc_cv_prog_LN" = "ln"; then 1461 echo "$ac_t""yes" 1>&6 1462else 1463 if test "$gcc_cv_prog_LN" = "ln -s"; then 1464 echo "$ac_t""no, using ln -s" 1>&6 1465 else 1466 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 1467 fi 1468fi 1469 1470echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1471echo "configure:1470: checking whether ln -s works" >&5 1472if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then 1473 echo $ac_n "(cached) $ac_c" 1>&6 1474else 1475 rm -f conftestdata_t 1476echo >conftestdata_f 1477if ln -s conftestdata_f conftestdata_t 2>/dev/null 1478then 1479 gcc_cv_prog_LN_S="ln -s" 1480else 1481 if ln conftestdata_f conftestdata_t 2>/dev/null 1482 then 1483 gcc_cv_prog_LN_S=ln 1484 else 1485 gcc_cv_prog_LN_S=cp 1486 fi 1487fi 1488rm -f conftestdata_f conftestdata_t 1489 1490fi 1491LN_S="$gcc_cv_prog_LN_S" 1492if test "$gcc_cv_prog_LN_S" = "ln -s"; then 1493 echo "$ac_t""yes" 1>&6 1494else 1495 if test "$gcc_cv_prog_LN_S" = "ln"; then 1496 echo "$ac_t""no, using ln" 1>&6 1497 else 1498 echo "$ac_t""no, and neither does ln, so using cp" 1>&6 1499 fi 1500fi 1501 1502echo $ac_n "checking for volatile""... $ac_c" 1>&6 1503echo "configure:1502: checking for volatile" >&5 1504if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then 1505 echo $ac_n "(cached) $ac_c" 1>&6 1506else 1507 cat > conftest.$ac_ext <<EOF 1508#line 1507 "configure" 1509#include "confdefs.h" 1510 1511int main() { 1512volatile int foo; 1513; return 0; } 1514EOF 1515if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1516 rm -rf conftest* 1517 gcc_cv_c_volatile=yes 1518else 1519 echo "configure: failed program was:" >&5 1520 cat conftest.$ac_ext >&5 1521 rm -rf conftest* 1522 gcc_cv_c_volatile=no 1523fi 1524rm -f conftest* 1525fi 1526 1527echo "$ac_t""$gcc_cv_c_volatile" 1>&6 1528if test $gcc_cv_c_volatile = yes ; then 1529 cat >> confdefs.h <<\EOF 1530#define HAVE_VOLATILE 1 1531EOF 1532 1533fi 1534 1535# Extract the first word of "ranlib", so it can be a program name with args. 1536set dummy ranlib; ac_word=$2 1537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1538echo "configure:1537: checking for $ac_word" >&5 1539if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1540 echo $ac_n "(cached) $ac_c" 1>&6 1541else 1542 if test -n "$RANLIB"; then 1543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1544else 1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1546 ac_dummy="$PATH" 1547 for ac_dir in $ac_dummy; do 1548 test -z "$ac_dir" && ac_dir=. 1549 if test -f $ac_dir/$ac_word; then 1550 ac_cv_prog_RANLIB="ranlib" 1551 break 1552 fi 1553 done 1554 IFS="$ac_save_ifs" 1555 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1556fi 1557fi 1558RANLIB="$ac_cv_prog_RANLIB" 1559if test -n "$RANLIB"; then 1560 echo "$ac_t""$RANLIB" 1>&6 1561else 1562 echo "$ac_t""no" 1>&6 1563fi 1564 1565for ac_prog in 'bison -y' byacc 1566do 1567# Extract the first word of "$ac_prog", so it can be a program name with args. 1568set dummy $ac_prog; ac_word=$2 1569echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1570echo "configure:1569: checking for $ac_word" >&5 1571if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1572 echo $ac_n "(cached) $ac_c" 1>&6 1573else 1574 if test -n "$YACC"; then 1575 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1576else 1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1578 ac_dummy="$PATH" 1579 for ac_dir in $ac_dummy; do 1580 test -z "$ac_dir" && ac_dir=. 1581 if test -f $ac_dir/$ac_word; then 1582 ac_cv_prog_YACC="$ac_prog" 1583 break 1584 fi 1585 done 1586 IFS="$ac_save_ifs" 1587fi 1588fi 1589YACC="$ac_cv_prog_YACC" 1590if test -n "$YACC"; then 1591 echo "$ac_t""$YACC" 1>&6 1592else 1593 echo "$ac_t""no" 1>&6 1594fi 1595 1596test -n "$YACC" && break 1597done 1598test -n "$YACC" || YACC="yacc" 1599 1600# Find a good install program. We prefer a C program (faster), 1601# so one script is as good as another. But avoid the broken or 1602# incompatible versions: 1603# SysV /etc/install, /usr/sbin/install 1604# SunOS /usr/etc/install 1605# IRIX /sbin/install 1606# AIX /bin/install 1607# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1608# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1609# ./install, which can be erroneously created by make from ./install.sh. 1610echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1611echo "configure:1610: checking for a BSD compatible install" >&5 1612if test -z "$INSTALL"; then 1613if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1614 echo $ac_n "(cached) $ac_c" 1>&6 1615else 1616 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 1617 for ac_dir in $PATH; do 1618 # Account for people who put trailing slashes in PATH elements. 1619 case "$ac_dir/" in 1620 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1621 *) 1622 # OSF1 and SCO ODT 3.0 have their own names for install. 1623 for ac_prog in ginstall scoinst install; do 1624 if test -f $ac_dir/$ac_prog; then 1625 if test $ac_prog = install && 1626 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1627 # AIX install. It has an incompatible calling convention. 1628 # OSF/1 installbsd also uses dspmsg, but is usable. 1629 : 1630 else 1631 ac_cv_path_install="$ac_dir/$ac_prog -c" 1632 break 2 1633 fi 1634 fi 1635 done 1636 ;; 1637 esac 1638 done 1639 IFS="$ac_save_IFS" 1640 1641fi 1642 if test "${ac_cv_path_install+set}" = set; then 1643 INSTALL="$ac_cv_path_install" 1644 else 1645 # As a last resort, use the slow shell script. We don't cache a 1646 # path for INSTALL within a source directory, because that will 1647 # break other packages using the cache if that directory is 1648 # removed, or if the path is relative. 1649 INSTALL="$ac_install_sh" 1650 fi 1651fi 1652echo "$ac_t""$INSTALL" 1>&6 1653 1654# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1655# It thinks the first close brace ends the variable substitution. 1656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1657 1658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1659 1660 1661echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1662echo "configure:1661: checking how to run the C preprocessor" >&5 1663# On Suns, sometimes $CPP names a directory. 1664if test -n "$CPP" && test -d "$CPP"; then 1665 CPP= 1666fi 1667if test -z "$CPP"; then 1668if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1669 echo $ac_n "(cached) $ac_c" 1>&6 1670else 1671 # This must be in double quotes, not single quotes, because CPP may get 1672 # substituted into the Makefile and "${CC-cc}" will confuse make. 1673 CPP="${CC-cc} -E" 1674 # On the NeXT, cc -E runs the code through the compiler's parser, 1675 # not just through cpp. 1676 cat > conftest.$ac_ext <<EOF 1677#line 1676 "configure" 1678#include "confdefs.h" 1679#include <assert.h> 1680Syntax Error 1681EOF 1682ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1683{ (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1684ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1685if test -z "$ac_err"; then 1686 : 1687else 1688 echo "$ac_err" >&5 1689 echo "configure: failed program was:" >&5 1690 cat conftest.$ac_ext >&5 1691 rm -rf conftest* 1692 CPP="${CC-cc} -E -traditional-cpp" 1693 cat > conftest.$ac_ext <<EOF 1694#line 1693 "configure" 1695#include "confdefs.h" 1696#include <assert.h> 1697Syntax Error 1698EOF 1699ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1700{ (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1701ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1702if test -z "$ac_err"; then 1703 : 1704else 1705 echo "$ac_err" >&5 1706 echo "configure: failed program was:" >&5 1707 cat conftest.$ac_ext >&5 1708 rm -rf conftest* 1709 CPP="${CC-cc} -nologo -E" 1710 cat > conftest.$ac_ext <<EOF 1711#line 1710 "configure" 1712#include "confdefs.h" 1713#include <assert.h> 1714Syntax Error 1715EOF 1716ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1717{ (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1718ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1719if test -z "$ac_err"; then 1720 : 1721else 1722 echo "$ac_err" >&5 1723 echo "configure: failed program was:" >&5 1724 cat conftest.$ac_ext >&5 1725 rm -rf conftest* 1726 CPP=/lib/cpp 1727fi 1728rm -f conftest* 1729fi 1730rm -f conftest* 1731fi 1732rm -f conftest* 1733 ac_cv_prog_CPP="$CPP" 1734fi 1735 CPP="$ac_cv_prog_CPP" 1736else 1737 ac_cv_prog_CPP="$CPP" 1738fi 1739echo "$ac_t""$CPP" 1>&6 1740 1741echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1742echo "configure:1741: checking for ANSI C header files" >&5 1743if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1744 echo $ac_n "(cached) $ac_c" 1>&6 1745else 1746 cat > conftest.$ac_ext <<EOF 1747#line 1746 "configure" 1748#include "confdefs.h" 1749#include <stdlib.h> 1750#include <stdarg.h> 1751#include <string.h> 1752#include <float.h> 1753EOF 1754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1755{ (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1757if test -z "$ac_err"; then 1758 rm -rf conftest* 1759 ac_cv_header_stdc=yes 1760else 1761 echo "$ac_err" >&5 1762 echo "configure: failed program was:" >&5 1763 cat conftest.$ac_ext >&5 1764 rm -rf conftest* 1765 ac_cv_header_stdc=no 1766fi 1767rm -f conftest* 1768 1769if test $ac_cv_header_stdc = yes; then 1770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1771cat > conftest.$ac_ext <<EOF 1772#line 1771 "configure" 1773#include "confdefs.h" 1774#include <string.h> 1775EOF 1776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1777 egrep "memchr" >/dev/null 2>&1; then 1778 : 1779else 1780 rm -rf conftest* 1781 ac_cv_header_stdc=no 1782fi 1783rm -f conftest* 1784 1785fi 1786 1787if test $ac_cv_header_stdc = yes; then 1788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1789cat > conftest.$ac_ext <<EOF 1790#line 1789 "configure" 1791#include "confdefs.h" 1792#include <stdlib.h> 1793EOF 1794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1795 egrep "free" >/dev/null 2>&1; then 1796 : 1797else 1798 rm -rf conftest* 1799 ac_cv_header_stdc=no 1800fi 1801rm -f conftest* 1802 1803fi 1804 1805if test $ac_cv_header_stdc = yes; then 1806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1807if test "$cross_compiling" = yes; then 1808 : 1809else 1810 cat > conftest.$ac_ext <<EOF 1811#line 1810 "configure" 1812#include "confdefs.h" 1813#include <ctype.h> 1814#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1815#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1817int main () { int i; for (i = 0; i < 256; i++) 1818if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1819exit (0); } 1820 1821EOF 1822if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1823then 1824 : 1825else 1826 echo "configure: failed program was:" >&5 1827 cat conftest.$ac_ext >&5 1828 rm -fr conftest* 1829 ac_cv_header_stdc=no 1830fi 1831rm -fr conftest* 1832fi 1833 1834fi 1835fi 1836 1837echo "$ac_t""$ac_cv_header_stdc" 1>&6 1838if test $ac_cv_header_stdc = yes; then 1839 cat >> confdefs.h <<\EOF 1840#define STDC_HEADERS 1 1841EOF 1842 1843fi 1844 1845echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1846echo "configure:1845: checking whether time.h and sys/time.h may both be included" >&5 1847if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1848 echo $ac_n "(cached) $ac_c" 1>&6 1849else 1850 cat > conftest.$ac_ext <<EOF 1851#line 1850 "configure" 1852#include "confdefs.h" 1853#include <sys/types.h> 1854#include <sys/time.h> 1855#include <time.h> 1856int main() { 1857struct tm *tp; 1858; return 0; } 1859EOF 1860if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1861 rm -rf conftest* 1862 ac_cv_header_time=yes 1863else 1864 echo "configure: failed program was:" >&5 1865 cat conftest.$ac_ext >&5 1866 rm -rf conftest* 1867 ac_cv_header_time=no 1868fi 1869rm -f conftest* 1870fi 1871 1872echo "$ac_t""$ac_cv_header_time" 1>&6 1873if test $ac_cv_header_time = yes; then 1874 cat >> confdefs.h <<\EOF 1875#define TIME_WITH_SYS_TIME 1 1876EOF 1877 1878fi 1879 1880echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 1881echo "configure:1880: checking whether string.h and strings.h may both be included" >&5 1882if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then 1883 echo $ac_n "(cached) $ac_c" 1>&6 1884else 1885 cat > conftest.$ac_ext <<EOF 1886#line 1885 "configure" 1887#include "confdefs.h" 1888#include <string.h> 1889#include <strings.h> 1890int main() { 1891 1892; return 0; } 1893EOF 1894if { (eval echo configure:1893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1895 rm -rf conftest* 1896 gcc_cv_header_string=yes 1897else 1898 echo "configure: failed program was:" >&5 1899 cat conftest.$ac_ext >&5 1900 rm -rf conftest* 1901 gcc_cv_header_string=no 1902fi 1903rm -f conftest* 1904fi 1905 1906echo "$ac_t""$gcc_cv_header_string" 1>&6 1907if test $gcc_cv_header_string = yes; then 1908 cat >> confdefs.h <<\EOF 1909#define STRING_WITH_STRINGS 1 1910EOF 1911 1912fi 1913 1914echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1915echo "configure:1914: checking for sys/wait.h that is POSIX.1 compatible" >&5 1916if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1917 echo $ac_n "(cached) $ac_c" 1>&6 1918else 1919 cat > conftest.$ac_ext <<EOF 1920#line 1919 "configure" 1921#include "confdefs.h" 1922#include <sys/types.h> 1923#include <sys/wait.h> 1924#ifndef WEXITSTATUS 1925#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 1926#endif 1927#ifndef WIFEXITED 1928#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1929#endif 1930int main() { 1931int s; 1932wait (&s); 1933s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 1934; return 0; } 1935EOF 1936if { (eval echo configure:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1937 rm -rf conftest* 1938 ac_cv_header_sys_wait_h=yes 1939else 1940 echo "configure: failed program was:" >&5 1941 cat conftest.$ac_ext >&5 1942 rm -rf conftest* 1943 ac_cv_header_sys_wait_h=no 1944fi 1945rm -f conftest* 1946fi 1947 1948echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 1949if test $ac_cv_header_sys_wait_h = yes; then 1950 cat >> confdefs.h <<\EOF 1951#define HAVE_SYS_WAIT_H 1 1952EOF 1953 1954fi 1955 1956for 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 direct.h 1957do 1958ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1959echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1960echo "configure:1959: checking for $ac_hdr" >&5 1961if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1962 echo $ac_n "(cached) $ac_c" 1>&6 1963else 1964 cat > conftest.$ac_ext <<EOF 1965#line 1964 "configure" 1966#include "confdefs.h" 1967#include <$ac_hdr> 1968EOF 1969ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1970{ (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1971ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1972if test -z "$ac_err"; then 1973 rm -rf conftest* 1974 eval "ac_cv_header_$ac_safe=yes" 1975else 1976 echo "$ac_err" >&5 1977 echo "configure: failed program was:" >&5 1978 cat conftest.$ac_ext >&5 1979 rm -rf conftest* 1980 eval "ac_cv_header_$ac_safe=no" 1981fi 1982rm -f conftest* 1983fi 1984if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1985 echo "$ac_t""yes" 1>&6 1986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1987 cat >> confdefs.h <<EOF 1988#define $ac_tr_hdr 1 1989EOF 1990 1991else 1992 echo "$ac_t""no" 1>&6 1993fi 1994done 1995 1996 1997# Check for thread headers. 1998ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` 1999echo $ac_n "checking for thread.h""... $ac_c" 1>&6 2000echo "configure:1999: checking for thread.h" >&5 2001if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2002 echo $ac_n "(cached) $ac_c" 1>&6 2003else 2004 cat > conftest.$ac_ext <<EOF 2005#line 2004 "configure" 2006#include "confdefs.h" 2007#include <thread.h> 2008EOF 2009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2010{ (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2012if test -z "$ac_err"; then 2013 rm -rf conftest* 2014 eval "ac_cv_header_$ac_safe=yes" 2015else 2016 echo "$ac_err" >&5 2017 echo "configure: failed program was:" >&5 2018 cat conftest.$ac_ext >&5 2019 rm -rf conftest* 2020 eval "ac_cv_header_$ac_safe=no" 2021fi 2022rm -f conftest* 2023fi 2024if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2025 echo "$ac_t""yes" 1>&6 2026 have_thread_h=yes 2027else 2028 echo "$ac_t""no" 1>&6 2029have_thread_h= 2030fi 2031 2032ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` 2033echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 2034echo "configure:2033: checking for pthread.h" >&5 2035if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2036 echo $ac_n "(cached) $ac_c" 1>&6 2037else 2038 cat > conftest.$ac_ext <<EOF 2039#line 2038 "configure" 2040#include "confdefs.h" 2041#include <pthread.h> 2042EOF 2043ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2044{ (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2045ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2046if test -z "$ac_err"; then 2047 rm -rf conftest* 2048 eval "ac_cv_header_$ac_safe=yes" 2049else 2050 echo "$ac_err" >&5 2051 echo "configure: failed program was:" >&5 2052 cat conftest.$ac_ext >&5 2053 rm -rf conftest* 2054 eval "ac_cv_header_$ac_safe=no" 2055fi 2056rm -f conftest* 2057fi 2058if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2059 echo "$ac_t""yes" 1>&6 2060 have_pthread_h=yes 2061else 2062 echo "$ac_t""no" 1>&6 2063have_pthread_h= 2064fi 2065 2066 2067# See if GNAT has been installed 2068# Extract the first word of "gnatbind", so it can be a program name with args. 2069set dummy gnatbind; ac_word=$2 2070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2071echo "configure:2070: checking for $ac_word" >&5 2072if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then 2073 echo $ac_n "(cached) $ac_c" 1>&6 2074else 2075 if test -n "$gnat"; then 2076 ac_cv_prog_gnat="$gnat" # Let the user override the test. 2077else 2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2079 ac_dummy="$PATH" 2080 for ac_dir in $ac_dummy; do 2081 test -z "$ac_dir" && ac_dir=. 2082 if test -f $ac_dir/$ac_word; then 2083 ac_cv_prog_gnat="yes" 2084 break 2085 fi 2086 done 2087 IFS="$ac_save_ifs" 2088 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" 2089fi 2090fi 2091gnat="$ac_cv_prog_gnat" 2092if test -n "$gnat"; then 2093 echo "$ac_t""$gnat" 1>&6 2094else 2095 echo "$ac_t""no" 1>&6 2096fi 2097 2098 2099# See if the system preprocessor understands the ANSI C preprocessor 2100# stringification operator. 2101echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 2102echo "configure:2101: checking whether cpp understands the stringify operator" >&5 2103if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then 2104 echo $ac_n "(cached) $ac_c" 1>&6 2105else 2106 cat > conftest.$ac_ext <<EOF 2107#line 2106 "configure" 2108#include "confdefs.h" 2109 2110int main() { 2111#define S(x) #x 2112char *test = S(foo); 2113; return 0; } 2114EOF 2115if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2116 rm -rf conftest* 2117 gcc_cv_c_have_stringify=yes 2118else 2119 echo "configure: failed program was:" >&5 2120 cat conftest.$ac_ext >&5 2121 rm -rf conftest* 2122 gcc_cv_c_have_stringify=no 2123fi 2124rm -f conftest* 2125fi 2126 2127echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 2128if test $gcc_cv_c_have_stringify = yes; then 2129 cat >> confdefs.h <<\EOF 2130#define HAVE_CPP_STRINGIFY 1 2131EOF 2132 2133fi 2134 2135# Use <inttypes.h> only if it exists, 2136# doesn't clash with <sys/types.h>, and declares intmax_t. 2137echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 2138echo "configure:2137: checking for inttypes.h" >&5 2139if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then 2140 echo $ac_n "(cached) $ac_c" 1>&6 2141else 2142 cat > conftest.$ac_ext <<EOF 2143#line 2142 "configure" 2144#include "confdefs.h" 2145#include <sys/types.h> 2146#include <inttypes.h> 2147int main() { 2148intmax_t i = -1; 2149; return 0; } 2150EOF 2151if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2152 rm -rf conftest* 2153 gcc_cv_header_inttypes_h=yes 2154else 2155 echo "configure: failed program was:" >&5 2156 cat conftest.$ac_ext >&5 2157 rm -rf conftest* 2158 gcc_cv_header_inttypes_h=no 2159fi 2160rm -f conftest* 2161fi 2162 2163echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 2164if test $gcc_cv_header_inttypes_h = yes; then 2165 cat >> confdefs.h <<\EOF 2166#define HAVE_INTTYPES_H 1 2167EOF 2168 2169fi 2170 2171for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ 2172 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ 2173 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ 2174 fputs_unlocked 2175do 2176echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2177echo "configure:2176: checking for $ac_func" >&5 2178if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2179 echo $ac_n "(cached) $ac_c" 1>&6 2180else 2181 cat > conftest.$ac_ext <<EOF 2182#line 2181 "configure" 2183#include "confdefs.h" 2184/* System header to define __stub macros and hopefully few prototypes, 2185 which can conflict with char $ac_func(); below. */ 2186#include <assert.h> 2187/* Override any gcc2 internal prototype to avoid an error. */ 2188/* We use char because int might match the return type of a gcc2 2189 builtin and then its argument prototype would still apply. */ 2190char $ac_func(); 2191 2192int main() { 2193 2194/* The GNU C library defines this for functions which it implements 2195 to always fail with ENOSYS. Some functions are actually named 2196 something starting with __ and the normal name is an alias. */ 2197#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2198choke me 2199#else 2200$ac_func(); 2201#endif 2202 2203; return 0; } 2204EOF 2205if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2206 rm -rf conftest* 2207 eval "ac_cv_func_$ac_func=yes" 2208else 2209 echo "configure: failed program was:" >&5 2210 cat conftest.$ac_ext >&5 2211 rm -rf conftest* 2212 eval "ac_cv_func_$ac_func=no" 2213fi 2214rm -f conftest* 2215fi 2216 2217if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2218 echo "$ac_t""yes" 1>&6 2219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2220 cat >> confdefs.h <<EOF 2221#define $ac_tr_func 1 2222EOF 2223 2224else 2225 echo "$ac_t""no" 1>&6 2226fi 2227done 2228 2229 2230# Make sure wchar_t is available 2231#AC_CHECK_TYPE(wchar_t, unsigned int) 2232 2233echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2234echo "configure:2233: checking for vprintf" >&5 2235if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2236 echo $ac_n "(cached) $ac_c" 1>&6 2237else 2238 cat > conftest.$ac_ext <<EOF 2239#line 2238 "configure" 2240#include "confdefs.h" 2241/* System header to define __stub macros and hopefully few prototypes, 2242 which can conflict with char vprintf(); below. */ 2243#include <assert.h> 2244/* Override any gcc2 internal prototype to avoid an error. */ 2245/* We use char because int might match the return type of a gcc2 2246 builtin and then its argument prototype would still apply. */ 2247char vprintf(); 2248 2249int main() { 2250 2251/* The GNU C library defines this for functions which it implements 2252 to always fail with ENOSYS. Some functions are actually named 2253 something starting with __ and the normal name is an alias. */ 2254#if defined (__stub_vprintf) || defined (__stub___vprintf) 2255choke me 2256#else 2257vprintf(); 2258#endif 2259 2260; return 0; } 2261EOF 2262if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2263 rm -rf conftest* 2264 eval "ac_cv_func_vprintf=yes" 2265else 2266 echo "configure: failed program was:" >&5 2267 cat conftest.$ac_ext >&5 2268 rm -rf conftest* 2269 eval "ac_cv_func_vprintf=no" 2270fi 2271rm -f conftest* 2272fi 2273 2274if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2275 echo "$ac_t""yes" 1>&6 2276 cat >> confdefs.h <<\EOF 2277#define HAVE_VPRINTF 1 2278EOF 2279 2280else 2281 echo "$ac_t""no" 1>&6 2282fi 2283 2284if test "$ac_cv_func_vprintf" != yes; then 2285echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2286echo "configure:2285: checking for _doprnt" >&5 2287if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2288 echo $ac_n "(cached) $ac_c" 1>&6 2289else 2290 cat > conftest.$ac_ext <<EOF 2291#line 2290 "configure" 2292#include "confdefs.h" 2293/* System header to define __stub macros and hopefully few prototypes, 2294 which can conflict with char _doprnt(); below. */ 2295#include <assert.h> 2296/* Override any gcc2 internal prototype to avoid an error. */ 2297/* We use char because int might match the return type of a gcc2 2298 builtin and then its argument prototype would still apply. */ 2299char _doprnt(); 2300 2301int main() { 2302 2303/* The GNU C library defines this for functions which it implements 2304 to always fail with ENOSYS. Some functions are actually named 2305 something starting with __ and the normal name is an alias. */ 2306#if defined (__stub__doprnt) || defined (__stub____doprnt) 2307choke me 2308#else 2309_doprnt(); 2310#endif 2311 2312; return 0; } 2313EOF 2314if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2315 rm -rf conftest* 2316 eval "ac_cv_func__doprnt=yes" 2317else 2318 echo "configure: failed program was:" >&5 2319 cat conftest.$ac_ext >&5 2320 rm -rf conftest* 2321 eval "ac_cv_func__doprnt=no" 2322fi 2323rm -f conftest* 2324fi 2325 2326if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2327 echo "$ac_t""yes" 1>&6 2328 cat >> confdefs.h <<\EOF 2329#define HAVE_DOPRNT 1 2330EOF 2331 2332else 2333 echo "$ac_t""no" 1>&6 2334fi 2335 2336fi 2337 2338vfprintf= 2339doprint= 2340if test $ac_cv_func_vprintf != yes ; then 2341 vfprintf=vfprintf.o 2342 if test $ac_cv_func__doprnt != yes ; then 2343 doprint=doprint.o 2344 fi 2345fi 2346 2347 2348 2349echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 2350echo "configure:2349: checking whether the printf functions support %p" >&5 2351if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then 2352 echo $ac_n "(cached) $ac_c" 1>&6 2353else 2354 if test "$cross_compiling" = yes; then 2355 gcc_cv_func_printf_ptr=no 2356else 2357 cat > conftest.$ac_ext <<EOF 2358#line 2357 "configure" 2359#include "confdefs.h" 2360#include <stdio.h> 2361 2362main() 2363{ 2364 char buf[64]; 2365 char *p = buf, *q = NULL; 2366 sprintf(buf, "%p", p); 2367 sscanf(buf, "%p", &q); 2368 exit (p != q); 2369} 2370EOF 2371if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2372then 2373 gcc_cv_func_printf_ptr=yes 2374else 2375 echo "configure: failed program was:" >&5 2376 cat conftest.$ac_ext >&5 2377 rm -fr conftest* 2378 gcc_cv_func_printf_ptr=no 2379fi 2380rm -fr conftest* 2381fi 2382 2383rm -f core core.* *.core 2384fi 2385 2386echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 2387if test $gcc_cv_func_printf_ptr = yes ; then 2388 cat >> confdefs.h <<\EOF 2389#define HAVE_PRINTF_PTR 1 2390EOF 2391 2392fi 2393 2394 2395case "${host}" in 2396*-*-uwin*) 2397 # Under some versions of uwin, vfork is notoriously buggy and the test 2398 # can hang configure; on other versions, vfork exists just as a stub. 2399 # FIXME: This should be removed once vfork in uwin's runtime is fixed. 2400 ac_cv_func_vfork_works=no 2401 ;; 2402esac 2403echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2404echo "configure:2403: checking for pid_t" >&5 2405if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 2406 echo $ac_n "(cached) $ac_c" 1>&6 2407else 2408 cat > conftest.$ac_ext <<EOF 2409#line 2408 "configure" 2410#include "confdefs.h" 2411#include <sys/types.h> 2412#if STDC_HEADERS 2413#include <stdlib.h> 2414#include <stddef.h> 2415#endif 2416EOF 2417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2418 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2419 rm -rf conftest* 2420 ac_cv_type_pid_t=yes 2421else 2422 rm -rf conftest* 2423 ac_cv_type_pid_t=no 2424fi 2425rm -f conftest* 2426 2427fi 2428echo "$ac_t""$ac_cv_type_pid_t" 1>&6 2429if test $ac_cv_type_pid_t = no; then 2430 cat >> confdefs.h <<\EOF 2431#define pid_t int 2432EOF 2433 2434fi 2435 2436ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2437echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2438echo "configure:2437: checking for vfork.h" >&5 2439if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2440 echo $ac_n "(cached) $ac_c" 1>&6 2441else 2442 cat > conftest.$ac_ext <<EOF 2443#line 2442 "configure" 2444#include "confdefs.h" 2445#include <vfork.h> 2446EOF 2447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2448{ (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2449ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2450if test -z "$ac_err"; then 2451 rm -rf conftest* 2452 eval "ac_cv_header_$ac_safe=yes" 2453else 2454 echo "$ac_err" >&5 2455 echo "configure: failed program was:" >&5 2456 cat conftest.$ac_ext >&5 2457 rm -rf conftest* 2458 eval "ac_cv_header_$ac_safe=no" 2459fi 2460rm -f conftest* 2461fi 2462if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2463 echo "$ac_t""yes" 1>&6 2464 cat >> confdefs.h <<\EOF 2465#define HAVE_VFORK_H 1 2466EOF 2467 2468else 2469 echo "$ac_t""no" 1>&6 2470fi 2471 2472echo $ac_n "checking for working vfork""... $ac_c" 1>&6 2473echo "configure:2472: checking for working vfork" >&5 2474if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 2475 echo $ac_n "(cached) $ac_c" 1>&6 2476else 2477 if test "$cross_compiling" = yes; then 2478 echo $ac_n "checking for vfork""... $ac_c" 1>&6 2479echo "configure:2478: checking for vfork" >&5 2480if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 2481 echo $ac_n "(cached) $ac_c" 1>&6 2482else 2483 cat > conftest.$ac_ext <<EOF 2484#line 2483 "configure" 2485#include "confdefs.h" 2486/* System header to define __stub macros and hopefully few prototypes, 2487 which can conflict with char vfork(); below. */ 2488#include <assert.h> 2489/* Override any gcc2 internal prototype to avoid an error. */ 2490/* We use char because int might match the return type of a gcc2 2491 builtin and then its argument prototype would still apply. */ 2492char vfork(); 2493 2494int main() { 2495 2496/* The GNU C library defines this for functions which it implements 2497 to always fail with ENOSYS. Some functions are actually named 2498 something starting with __ and the normal name is an alias. */ 2499#if defined (__stub_vfork) || defined (__stub___vfork) 2500choke me 2501#else 2502vfork(); 2503#endif 2504 2505; return 0; } 2506EOF 2507if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2508 rm -rf conftest* 2509 eval "ac_cv_func_vfork=yes" 2510else 2511 echo "configure: failed program was:" >&5 2512 cat conftest.$ac_ext >&5 2513 rm -rf conftest* 2514 eval "ac_cv_func_vfork=no" 2515fi 2516rm -f conftest* 2517fi 2518 2519if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then 2520 echo "$ac_t""yes" 1>&6 2521 : 2522else 2523 echo "$ac_t""no" 1>&6 2524fi 2525 2526ac_cv_func_vfork_works=$ac_cv_func_vfork 2527else 2528 cat > conftest.$ac_ext <<EOF 2529#line 2528 "configure" 2530#include "confdefs.h" 2531/* Thanks to Paul Eggert for this test. */ 2532#include <stdio.h> 2533#include <sys/types.h> 2534#include <sys/stat.h> 2535#ifdef HAVE_UNISTD_H 2536#include <unistd.h> 2537#endif 2538#ifdef HAVE_VFORK_H 2539#include <vfork.h> 2540#endif 2541/* On some sparc systems, changes by the child to local and incoming 2542 argument registers are propagated back to the parent. 2543 The compiler is told about this with #include <vfork.h>, 2544 but some compilers (e.g. gcc -O) don't grok <vfork.h>. 2545 Test for this by using a static variable whose address 2546 is put into a register that is clobbered by the vfork. */ 2547static 2548#ifdef __cplusplus 2549sparc_address_test (int arg) 2550#else 2551sparc_address_test (arg) int arg; 2552#endif 2553{ 2554 static pid_t child; 2555 if (!child) { 2556 child = vfork (); 2557 if (child < 0) { 2558 perror ("vfork"); 2559 _exit(2); 2560 } 2561 if (!child) { 2562 arg = getpid(); 2563 write(-1, "", 0); 2564 _exit (arg); 2565 } 2566 } 2567} 2568main() { 2569 pid_t parent = getpid (); 2570 pid_t child; 2571 2572 sparc_address_test (); 2573 2574 child = vfork (); 2575 2576 if (child == 0) { 2577 /* Here is another test for sparc vfork register problems. 2578 This test uses lots of local variables, at least 2579 as many local variables as main has allocated so far 2580 including compiler temporaries. 4 locals are enough for 2581 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. 2582 A buggy compiler should reuse the register of parent 2583 for one of the local variables, since it will think that 2584 parent can't possibly be used any more in this routine. 2585 Assigning to the local variable will thus munge parent 2586 in the parent process. */ 2587 pid_t 2588 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 2589 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 2590 /* Convince the compiler that p..p7 are live; otherwise, it might 2591 use the same hardware register for all 8 local variables. */ 2592 if (p != p1 || p != p2 || p != p3 || p != p4 2593 || p != p5 || p != p6 || p != p7) 2594 _exit(1); 2595 2596 /* On some systems (e.g. IRIX 3.3), 2597 vfork doesn't separate parent from child file descriptors. 2598 If the child closes a descriptor before it execs or exits, 2599 this munges the parent's descriptor as well. 2600 Test for this by closing stdout in the child. */ 2601 _exit(close(fileno(stdout)) != 0); 2602 } else { 2603 int status; 2604 struct stat st; 2605 2606 while (wait(&status) != child) 2607 ; 2608 exit( 2609 /* Was there some problem with vforking? */ 2610 child < 0 2611 2612 /* Did the child fail? (This shouldn't happen.) */ 2613 || status 2614 2615 /* Did the vfork/compiler bug occur? */ 2616 || parent != getpid() 2617 2618 /* Did the file descriptor bug occur? */ 2619 || fstat(fileno(stdout), &st) != 0 2620 ); 2621 } 2622} 2623EOF 2624if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2625then 2626 ac_cv_func_vfork_works=yes 2627else 2628 echo "configure: failed program was:" >&5 2629 cat conftest.$ac_ext >&5 2630 rm -fr conftest* 2631 ac_cv_func_vfork_works=no 2632fi 2633rm -fr conftest* 2634fi 2635 2636fi 2637 2638echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 2639if test $ac_cv_func_vfork_works = no; then 2640 cat >> confdefs.h <<\EOF 2641#define vfork fork 2642EOF 2643 2644fi 2645 2646 2647for ac_func in malloc realloc calloc free bcopy bzero bcmp \ 2648 index rindex getenv atol sbrk abort atof strerror getcwd getwd \ 2649 strsignal putc_unlocked fputs_unlocked strstr 2650do 2651echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 2652echo "configure:2651: checking whether $ac_func must be declared" >&5 2653if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then 2654 echo $ac_n "(cached) $ac_c" 1>&6 2655else 2656 cat > conftest.$ac_ext <<EOF 2657#line 2656 "configure" 2658#include "confdefs.h" 2659 2660#include <stdio.h> 2661#ifdef STRING_WITH_STRINGS 2662# include <string.h> 2663# include <strings.h> 2664#else 2665# ifdef HAVE_STRING_H 2666# include <string.h> 2667# else 2668# ifdef HAVE_STRINGS_H 2669# include <strings.h> 2670# endif 2671# endif 2672#endif 2673#ifdef HAVE_STDLIB_H 2674#include <stdlib.h> 2675#endif 2676#ifdef HAVE_UNISTD_H 2677#include <unistd.h> 2678#endif 2679#ifndef HAVE_RINDEX 2680#define rindex strrchr 2681#endif 2682#ifndef HAVE_INDEX 2683#define index strchr 2684#endif 2685 2686int main() { 2687char *(*pfn) = (char *(*)) $ac_func 2688; return 0; } 2689EOF 2690if { (eval echo configure:2689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2691 rm -rf conftest* 2692 eval "gcc_cv_decl_needed_$ac_func=no" 2693else 2694 echo "configure: failed program was:" >&5 2695 cat conftest.$ac_ext >&5 2696 rm -rf conftest* 2697 eval "gcc_cv_decl_needed_$ac_func=yes" 2698fi 2699rm -f conftest* 2700fi 2701 2702if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then 2703 echo "$ac_t""yes" 1>&6 2704 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2705 cat >> confdefs.h <<EOF 2706#define $gcc_tr_decl 1 2707EOF 2708 2709else 2710 echo "$ac_t""no" 1>&6 2711fi 2712 2713done 2714 2715 2716for ac_func in getrlimit setrlimit 2717do 2718echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 2719echo "configure:2718: checking whether $ac_func must be declared" >&5 2720if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then 2721 echo $ac_n "(cached) $ac_c" 1>&6 2722else 2723 cat > conftest.$ac_ext <<EOF 2724#line 2723 "configure" 2725#include "confdefs.h" 2726 2727#include <stdio.h> 2728#ifdef STRING_WITH_STRINGS 2729# include <string.h> 2730# include <strings.h> 2731#else 2732# ifdef HAVE_STRING_H 2733# include <string.h> 2734# else 2735# ifdef HAVE_STRINGS_H 2736# include <strings.h> 2737# endif 2738# endif 2739#endif 2740#ifdef HAVE_STDLIB_H 2741#include <stdlib.h> 2742#endif 2743#ifdef HAVE_UNISTD_H 2744#include <unistd.h> 2745#endif 2746#ifndef HAVE_RINDEX 2747#define rindex strrchr 2748#endif 2749#ifndef HAVE_INDEX 2750#define index strchr 2751#endif 2752#include <sys/types.h> 2753#ifdef HAVE_SYS_RESOURCE_H 2754#include <sys/resource.h> 2755#endif 2756 2757int main() { 2758char *(*pfn) = (char *(*)) $ac_func 2759; return 0; } 2760EOF 2761if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2762 rm -rf conftest* 2763 eval "gcc_cv_decl_needed_$ac_func=no" 2764else 2765 echo "configure: failed program was:" >&5 2766 cat conftest.$ac_ext >&5 2767 rm -rf conftest* 2768 eval "gcc_cv_decl_needed_$ac_func=yes" 2769fi 2770rm -f conftest* 2771fi 2772 2773if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then 2774 echo "$ac_t""yes" 1>&6 2775 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2776 cat >> confdefs.h <<EOF 2777#define $gcc_tr_decl 1 2778EOF 2779 2780else 2781 echo "$ac_t""no" 1>&6 2782fi 2783 2784done 2785 2786 2787echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2788echo "configure:2787: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2789if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2790 echo $ac_n "(cached) $ac_c" 1>&6 2791else 2792 cat > conftest.$ac_ext <<EOF 2793#line 2792 "configure" 2794#include "confdefs.h" 2795#include <sys/types.h> 2796#include <signal.h> 2797/* NetBSD declares sys_siglist in unistd.h. */ 2798#ifdef HAVE_UNISTD_H 2799#include <unistd.h> 2800#endif 2801int main() { 2802char *msg = *(sys_siglist + 1); 2803; return 0; } 2804EOF 2805if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2806 rm -rf conftest* 2807 ac_cv_decl_sys_siglist=yes 2808else 2809 echo "configure: failed program was:" >&5 2810 cat conftest.$ac_ext >&5 2811 rm -rf conftest* 2812 ac_cv_decl_sys_siglist=no 2813fi 2814rm -f conftest* 2815fi 2816 2817echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 2818if test $ac_cv_decl_sys_siglist = yes; then 2819 cat >> confdefs.h <<\EOF 2820#define SYS_SIGLIST_DECLARED 1 2821EOF 2822 2823fi 2824 2825 2826# mkdir takes a single argument on some systems. 2827echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 2828echo "configure:2827: checking if mkdir takes one argument" >&5 2829if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then 2830 echo $ac_n "(cached) $ac_c" 1>&6 2831else 2832 cat > conftest.$ac_ext <<EOF 2833#line 2832 "configure" 2834#include "confdefs.h" 2835 2836#include <sys/types.h> 2837#ifdef HAVE_SYS_STAT_H 2838# include <sys/stat.h> 2839#endif 2840#ifdef HAVE_UNISTD_H 2841# include <unistd.h> 2842#endif 2843#ifdef HAVE_DIRECT_H 2844# include <direct.h> 2845#endif 2846int main() { 2847mkdir ("foo", 0); 2848; return 0; } 2849EOF 2850if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2851 rm -rf conftest* 2852 gcc_cv_mkdir_takes_one_arg=no 2853else 2854 echo "configure: failed program was:" >&5 2855 cat conftest.$ac_ext >&5 2856 rm -rf conftest* 2857 gcc_cv_mkdir_takes_one_arg=yes 2858fi 2859rm -f conftest* 2860fi 2861 2862echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 2863if test $gcc_cv_mkdir_takes_one_arg = yes ; then 2864 cat >> confdefs.h <<\EOF 2865#define MKDIR_TAKES_ONE_ARG 1 2866EOF 2867 2868fi 2869 2870 2871# File extensions 2872manext='.1' 2873objext='.o' 2874 2875 2876 2877build_xm_file= 2878build_xm_defines= 2879build_install_headers_dir=install-headers-tar 2880build_exeext= 2881host_xm_file= 2882host_xm_defines= 2883host_xmake_file= 2884host_truncate_target= 2885host_exeext= 2886 2887# Decode the host machine, then the target machine. 2888# For the host machine, we save the xm_file variable as host_xm_file; 2889# then we decode the target machine and forget everything else 2890# that came from the host machine. 2891for machine in $build $host $target; do 2892 2893 out_file= 2894 xmake_file= 2895 tmake_file= 2896 extra_headers= 2897 extra_passes= 2898 extra_parts= 2899 extra_programs= 2900 extra_objs= 2901 extra_host_objs= 2902 extra_gcc_objs= 2903 xm_defines= 2904 float_format= 2905 # Set this to force installation and use of collect2. 2906 use_collect2= 2907 # Set this to override the default target model. 2908 target_cpu_default= 2909 # Set this to control how the header file directory is installed. 2910 install_headers_dir=install-headers-tar 2911 # Set this to a non-empty list of args to pass to cpp if the target 2912 # wants its .md file passed through cpp. 2913 md_cppflags= 2914 # Set this if directory names should be truncated to 14 characters. 2915 truncate_target= 2916 # Set this if gdb needs a dir command with `dirname $out_file` 2917 gdb_needs_out_file_path= 2918 # Set this if the build machine requires executables to have a 2919 # file name suffix. 2920 exeext= 2921 # Set this to control which thread package will be used. 2922 thread_file= 2923 # Reinitialize these from the flag values every loop pass, since some 2924 # configure entries modify them. 2925 gas="$gas_flag" 2926 gnu_ld="$gnu_ld_flag" 2927 enable_threads=$enable_threads_flag 2928 2929 # Set default cpu_type, tm_file and xm_file so it can be updated in 2930 # each machine entry. 2931 cpu_type=`echo $machine | sed 's/-.*$//'` 2932 case $machine in 2933 alpha*-*-*) 2934 cpu_type=alpha 2935 ;; 2936 arm*-*-*) 2937 cpu_type=arm 2938 ;; 2939 c*-convex-*) 2940 cpu_type=convex 2941 ;; 2942 i[34567]86-*-*) 2943 cpu_type=i386 2944 ;; 2945 hppa*-*-*) 2946 cpu_type=pa 2947 ;; 2948 m68000-*-*) 2949 cpu_type=m68k 2950 ;; 2951 mips*-*-*) 2952 cpu_type=mips 2953 ;; 2954 powerpc*-*-*) 2955 cpu_type=rs6000 2956 ;; 2957 pyramid-*-*) 2958 cpu_type=pyr 2959 ;; 2960 sparc*-*-*) 2961 cpu_type=sparc 2962 ;; 2963 esac 2964 2965 tm_file=${cpu_type}/${cpu_type}.h 2966 xm_file=${cpu_type}/xm-${cpu_type}.h 2967 2968 # Common parts for linux-gnu and openbsd systems 2969 case $machine in 2970 *-*-linux-gnu*) 2971 xm_defines="HAVE_ATEXIT POSIX BSTRING" 2972 ;; 2973 *-*-openbsd*) 2974 tm_file=${cpu_type}/openbsd.h 2975 tmake_file="t-libc-ok t-openbsd" 2976 # avoid surprises, always provide an xm-openbsd file 2977 xm_file=${cpu_type}/xm-openbsd.h 2978 # don't depend on processor x-fragments as well 2979 xmake_file=none 2980 if test x$enable_threads = xyes; then 2981 thread_file='posix' 2982 tmake_file="${tmake_file} t-openbsd-thread" 2983 fi 2984 ;; 2985 esac 2986 2987 case $machine in 2988 # Support site-specific machine types. 2989 *local*) 2990 cpu_type=`echo $machine | sed -e 's/-.*//'` 2991 rest=`echo $machine | sed -e "s/$cpu_type-//"` 2992 xm_file=${cpu_type}/xm-$rest.h 2993 tm_file=${cpu_type}/$rest.h 2994 if test -f $srcdir/config/${cpu_type}/x-$rest; \ 2995 then xmake_file=${cpu_type}/x-$rest; \ 2996 else true; \ 2997 fi 2998 if test -f $srcdir/config/${cpu_type}/t-$rest; \ 2999 then tmake_file=${cpu_type}/t-$rest; \ 3000 else true; \ 3001 fi 3002 ;; 3003 1750a-*-*) 3004 ;; 3005 a29k-*-bsd* | a29k-*-sym1*) 3006 tm_file="${tm_file} a29k/unix.h" 3007 xm_defines=USG 3008 xmake_file=a29k/x-unix 3009 use_collect2=yes 3010 ;; 3011 a29k-*-udi | a29k-*-coff) 3012 tm_file="${tm_file} dbxcoff.h a29k/udi.h" 3013 tmake_file=a29k/t-a29kbare 3014 ;; 3015 a29k-wrs-vxworks*) 3016 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" 3017 tmake_file=a29k/t-vx29k 3018 extra_parts="crtbegin.o crtend.o" 3019 thread_file='vxworks' 3020 ;; 3021 a29k-*-*) # Default a29k environment. 3022 use_collect2=yes 3023 ;; 3024 alpha-*-interix) 3025 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" 3026 3027 # GAS + IEEE_CONFORMANT+IEEE (no inexact); 3028 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" 3029 3030 # GAS + IEEE_CONFORMANT 3031 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" 3032 3033 xm_file="alpha/xm-alpha-interix.h xm-interix.h" 3034 xmake_file="x-interix alpha/t-pe" 3035 tmake_file="alpha/t-interix alpha/t-ieee" 3036 if test x$enable_threads = xyes ; then 3037 thread_file='posix' 3038 fi 3039 if test x$stabs = xyes ; then 3040 tm_file="${tm_file} dbxcoff.h" 3041 fi 3042 #prefix='$$INTERIX_ROOT'/usr/contrib 3043 #local_prefix='$$INTERIX_ROOT'/usr/contrib 3044 ;; 3045 alpha*-*-linux-gnuecoff*) 3046 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" 3047 target_cpu_default="MASK_GAS" 3048 tmake_file="alpha/t-ieee" 3049 gas=no 3050 xmake_file=none 3051 gas=yes gnu_ld=yes 3052 ;; 3053 alpha*-*-linux-gnulibc1*) 3054 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" 3055 target_cpu_default="MASK_GAS" 3056 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee" 3057 extra_parts="crtbegin.o crtend.o" 3058 xmake_file=none 3059 gas=yes gnu_ld=yes 3060 if test x$enable_threads = xyes; then 3061 thread_file='posix' 3062 fi 3063 ;; 3064 alpha*-*-linux-gnu*) 3065 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" 3066 target_cpu_default="MASK_GAS" 3067 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee" 3068 extra_parts="crtbegin.o crtend.o" 3069 xmake_file=none 3070 gas=yes gnu_ld=yes 3071 if test x$enable_threads = xyes; then 3072 thread_file='posix' 3073 fi 3074 ;; 3075 alpha*-*-freebsd*) 3076 tm_file="${tm_file} freebsd.h alpha/freebsd.h" 3077 xm_file="${xm_file} xm-freebsd.h" 3078 target_cpu_default="MASK_GAS" 3079 tmake_file="t-freebsd alpha/t-crtbe" 3080 xmake_file=none 3081 fixincludes=fixinc.wrap 3082 gas=yes gnu_ld=yes 3083 ;; 3084 alpha*-*-netbsd*) 3085 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" 3086 target_cpu_default="MASK_GAS" 3087 tmake_file="alpha/t-crtbe alpha/t-ieee" 3088 extra_parts="crtbegin.o crtend.o" 3089 xmake_file=none 3090 gas=yes gnu_ld=yes 3091 ;; 3092 3093 alpha*-*-openbsd*) 3094 # default x-alpha is only appropriate for dec-osf. 3095 target_cpu_default="MASK_GAS" 3096 tmake_file="alpha/t-ieee" 3097 ;; 3098 3099 alpha*-dec-osf*) 3100 if test x$stabs = xyes 3101 then 3102 tm_file="${tm_file} dbx.h" 3103 fi 3104 if test x$gas != xyes 3105 then 3106 extra_passes="mips-tfile mips-tdump" 3107 fi 3108 use_collect2=yes 3109 tmake_file="alpha/t-ieee" 3110 case $machine in 3111 *-*-osf1*) 3112 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" 3113 ;; 3114 *-*-osf[23]*) 3115 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" 3116 ;; 3117 *-*-osf4*) 3118 tm_file="${tm_file} alpha/osf.h" 3119 # Some versions of OSF4 (specifically X4.0-9 296.7) have 3120 # a broken tar, so we use cpio instead. 3121 install_headers_dir=install-headers-cpio 3122 ;; 3123 esac 3124 case $machine in 3125 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) 3126 target_cpu_default=MASK_SUPPORT_ARCH 3127 ;; 3128 esac 3129 ;; 3130 alpha*-*-vxworks*) 3131 tm_file="${tm_file} dbx.h alpha/vxworks.h" 3132 tmake_file="alpha/t-ieee" 3133 if x$gas != xyes 3134 then 3135 extra_passes="mips-tfile mips-tdump" 3136 fi 3137 use_collect2=yes 3138 thread_file='vxworks' 3139 ;; 3140 alpha*-*-winnt*) 3141 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" 3142 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" 3143 tmake_file="t-libc-ok alpha/t-ieee" 3144 xmake_file=winnt/x-winnt 3145 extra_host_objs=oldnames.o 3146 extra_gcc_objs="spawnv.o oldnames.o" 3147 if test x$gnu_ld != xyes 3148 then 3149 extra_programs=ld.exe 3150 fi 3151 if test x$enable_threads = xyes; then 3152 thread_file='win32' 3153 fi 3154 ;; 3155 alpha*-dec-vms*) 3156 tm_file=alpha/vms.h 3157 xm_file="${xm_file} alpha/xm-vms.h" 3158 tmake_file="alpha/t-vms alpha/t-ieee" 3159 ;; 3160 arc-*-elf*) 3161 extra_parts="crtinit.o crtfini.o" 3162 ;; 3163 arm-*-coff* | armel-*-coff*) 3164 tm_file=arm/coff.h 3165 tmake_file=arm/t-bare 3166 ;; 3167 arm-*-vxworks*) 3168 tm_file=arm/vxarm.h 3169 tmake_file=arm/t-bare 3170 thread_file='vxworks' 3171 ;; 3172 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) 3173 tm_file=arm/riscix1-1.h 3174 use_collect2=yes 3175 ;; 3176 arm-*-riscix*) # Acorn RISC machine 3177 if test x$gas = xyes 3178 then 3179 tm_file=arm/rix-gas.h 3180 else 3181 tm_file=arm/riscix.h 3182 fi 3183 xmake_file=arm/x-riscix 3184 tmake_file=arm/t-riscix 3185 use_collect2=yes 3186 ;; 3187 arm-semi-aout | armel-semi-aout) 3188 tm_file=arm/semi.h 3189 tmake_file=arm/t-semi 3190 ;; 3191 arm-semi-aof | armel-semi-aof) 3192 tm_file=arm/semiaof.h 3193 tmake_file=arm/t-semiaof 3194 ;; 3195 arm*-*-netbsd*) 3196 tm_file=arm/netbsd.h 3197 xm_file="arm/xm-netbsd.h ${xm_file}" 3198 tmake_file="t-netbsd arm/t-netbsd" 3199 use_collect2=yes 3200 ;; 3201 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out 3202 cpu_type=arm 3203 xmake_file=x-linux 3204 tm_file=arm/linux-aout.h 3205 tmake_file=arm/t-linux 3206 gnu_ld=yes 3207 ;; 3208 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF 3209 xm_file=arm/xm-linux.h 3210 xmake_file=x-linux 3211 case $machine in 3212 armv2*-*-*) 3213 tm_file=arm/linux-elf26.h 3214 ;; 3215 *) 3216 tm_file=arm/linux-elf.h 3217 ;; 3218 esac 3219 tmake_file="t-linux arm/t-linux" 3220 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 3221 gnu_ld=yes 3222 case x${enable_threads} in 3223 x | xyes | xpthreads | xposix) 3224 thread_file='posix' 3225 ;; 3226 esac 3227 ;; 3228 arm*-*-aout) 3229 tm_file=arm/aout.h 3230 tmake_file=arm/t-bare 3231 ;; 3232 arm*-*-ecos-elf) 3233 tm_file=arm/ecos-elf.h 3234 tmake_file=arm/t-elf 3235 ;; 3236 arm*-*-elf) 3237 tm_file=arm/unknown-elf.h 3238 tmake_file=arm/t-arm-elf 3239 ;; 3240 arm*-*-oabi) 3241 tm_file=arm/unknown-elf-oabi.h 3242 tmake_file=arm/t-arm-elf 3243 ;; 3244 c1-convex-*) # Convex C1 3245 target_cpu_default=1 3246 use_collect2=yes 3247 ;; 3248 c2-convex-*) # Convex C2 3249 target_cpu_default=2 3250 use_collect2=yes 3251 ;; 3252 c32-convex-*) 3253 target_cpu_default=4 3254 use_collect2=yes 3255 ;; 3256 c34-convex-*) 3257 target_cpu_default=8 3258 use_collect2=yes 3259 ;; 3260 c38-convex-*) 3261 target_cpu_default=16 3262 use_collect2=yes 3263 ;; 3264 c4x-*) 3265 cpu_type=c4x 3266 tmake_file=c4x/t-c4x 3267 ;; 3268 clipper-intergraph-clix*) 3269 tm_file="${tm_file} svr3.h clipper/clix.h" 3270 xm_file=clipper/xm-clix.h 3271 xmake_file=clipper/x-clix 3272 extra_headers=va-clipper.h 3273 extra_parts="crtbegin.o crtend.o" 3274 install_headers_dir=install-headers-cpio 3275 ;; 3276 dsp16xx-*) 3277 ;; 3278 elxsi-elxsi-*) 3279 use_collect2=yes 3280 ;; 3281# This hasn't been upgraded to GCC 2. 3282# fx80-alliant-*) # Alliant FX/80 3283# ;; 3284 h8300-*-*) 3285 float_format=i32 3286 ;; 3287 hppa*-*-openbsd*) 3288 target_cpu_default="MASK_PA_11" 3289 tmake_file=pa/t-openbsd 3290 ;; 3291 hppa1.1-*-pro*) 3292 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" 3293 xm_file=pa/xm-papro.h 3294 tmake_file=pa/t-pro 3295 ;; 3296 hppa1.1-*-osf*) 3297 target_cpu_default="MASK_PA_11" 3298 tm_file="${tm_file} pa/pa-osf.h" 3299 use_collect2=yes 3300 ;; 3301 hppa1.1-*-rtems*) 3302 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" 3303 xm_file=pa/xm-papro.h 3304 tmake_file=pa/t-pro 3305 ;; 3306 hppa1.0-*-osf*) 3307 tm_file="${tm_file} pa/pa-osf.h" 3308 use_collect2=yes 3309 ;; 3310 hppa1.1-*-bsd*) 3311 target_cpu_default="MASK_PA_11" 3312 use_collect2=yes 3313 ;; 3314 hppa1.0-*-bsd*) 3315 use_collect2=yes 3316 ;; 3317 hppa1.0-*-hpux7*) 3318 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" 3319 xm_file=pa/xm-pahpux.h 3320 xmake_file=pa/x-pa-hpux 3321 if test x$gas = xyes 3322 then 3323 tm_file="${tm_file} pa/gas.h" 3324 fi 3325 install_headers_dir=install-headers-cpio 3326 use_collect2=yes 3327 ;; 3328 hppa1.0-*-hpux8.0[0-2]*) 3329 tm_file="${tm_file} pa/pa-hpux.h" 3330 xm_file=pa/xm-pahpux.h 3331 xmake_file=pa/x-pa-hpux 3332 if test x$gas = xyes 3333 then 3334 tm_file="${tm_file} pa/pa-gas.h" 3335 else 3336 tm_file="pa/pa-oldas.h ${tm_file}" 3337 fi 3338 install_headers_dir=install-headers-cpio 3339 use_collect2=yes 3340 ;; 3341 hppa1.1-*-hpux8.0[0-2]*) 3342 target_cpu_default="MASK_PA_11" 3343 tm_file="${tm_file} pa/pa-hpux.h" 3344 xm_file=pa/xm-pahpux.h 3345 xmake_file=pa/x-pa-hpux 3346 if test x$gas = xyes 3347 then 3348 tm_file="${tm_file} pa/pa-gas.h" 3349 else 3350 tm_file="pa/pa-oldas.h ${tm_file}" 3351 fi 3352 install_headers_dir=install-headers-cpio 3353 use_collect2=yes 3354 ;; 3355 hppa1.1-*-hpux8*) 3356 target_cpu_default="MASK_PA_11" 3357 tm_file="${tm_file} pa/pa-hpux.h" 3358 xm_file=pa/xm-pahpux.h 3359 xmake_file=pa/x-pa-hpux 3360 if test x$gas = xyes 3361 then 3362 tm_file="${tm_file} pa/pa-gas.h" 3363 fi 3364 install_headers_dir=install-headers-cpio 3365 use_collect2=yes 3366 ;; 3367 hppa1.0-*-hpux8*) 3368 tm_file="${tm_file} pa/pa-hpux.h" 3369 xm_file=pa/xm-pahpux.h 3370 xmake_file=pa/x-pa-hpux 3371 if test x$gas = xyes 3372 then 3373 tm_file="${tm_file} pa/pa-gas.h" 3374 fi 3375 install_headers_dir=install-headers-cpio 3376 use_collect2=yes 3377 ;; 3378 hppa1.1-*-hpux10* | hppa2*-*-hpux10*) 3379 target_cpu_default="MASK_PA_11" 3380 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" 3381 xm_file=pa/xm-pahpux.h 3382 xmake_file=pa/x-pa-hpux 3383 tmake_file=pa/t-pa 3384 if test x$gas = xyes 3385 then 3386 tm_file="${tm_file} pa/pa-gas.h" 3387 fi 3388 if test x$enable_threads = x; then 3389 enable_threads=$have_pthread_h 3390 fi 3391 if test x$enable_threads = xyes; then 3392 thread_file='dce' 3393 tmake_file="${tmake_file} pa/t-dce-thr" 3394 fi 3395 install_headers_dir=install-headers-cpio 3396 use_collect2=yes 3397 ;; 3398 hppa1.0-*-hpux10*) 3399 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" 3400 xm_file=pa/xm-pahpux.h 3401 xmake_file=pa/x-pa-hpux 3402 tmake_file=pa/t-pa 3403 if test x$gas = xyes 3404 then 3405 tm_file="${tm_file} pa/pa-gas.h" 3406 fi 3407 if test x$enable_threads = x; then 3408 enable_threads=$have_pthread_h 3409 fi 3410 if test x$enable_threads = xyes; then 3411 thread_file='dce' 3412 tmake_file="${tmake_file} pa/t-dce-thr" 3413 fi 3414 install_headers_dir=install-headers-cpio 3415 use_collect2=yes 3416 ;; 3417 hppa1.1-*-hpux* | hppa2*-*-hpux*) 3418 target_cpu_default="MASK_PA_11" 3419 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" 3420 xm_file=pa/xm-pahpux.h 3421 xmake_file=pa/x-pa-hpux 3422 if test x$gas = xyes 3423 then 3424 tm_file="${tm_file} pa/pa-gas.h" 3425 fi 3426 install_headers_dir=install-headers-cpio 3427 use_collect2=yes 3428 ;; 3429 hppa1.0-*-hpux*) 3430 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" 3431 xm_file=pa/xm-pahpux.h 3432 xmake_file=pa/x-pa-hpux 3433 if test x$gas = xyes 3434 then 3435 tm_file="${tm_file} pa/pa-gas.h" 3436 fi 3437 install_headers_dir=install-headers-cpio 3438 use_collect2=yes 3439 ;; 3440 hppa1.1-*-hiux* | hppa2*-*-hiux*) 3441 target_cpu_default="MASK_PA_11" 3442 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" 3443 xm_file=pa/xm-pahpux.h 3444 xmake_file=pa/x-pa-hpux 3445 if test x$gas = xyes 3446 then 3447 tm_file="${tm_file} pa/pa-gas.h" 3448 fi 3449 install_headers_dir=install-headers-cpio 3450 use_collect2=yes 3451 ;; 3452 hppa1.0-*-hiux*) 3453 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" 3454 xm_file=pa/xm-pahpux.h 3455 xmake_file=pa/x-pa-hpux 3456 if test x$gas = xyes 3457 then 3458 tm_file="${tm_file} pa/pa-gas.h" 3459 fi 3460 install_headers_dir=install-headers-cpio 3461 use_collect2=yes 3462 ;; 3463 hppa*-*-lites*) 3464 target_cpu_default="MASK_PA_11" 3465 use_collect2=yes 3466 ;; 3467 i370-*-mvs*) 3468 ;; 3469 i[34567]86-ibm-aix*) # IBM PS/2 running AIX 3470 if test x$gas = xyes 3471 then 3472 tm_file=i386/aix386.h 3473 extra_parts="crtbegin.o crtend.o" 3474 tmake_file=i386/t-crtstuff 3475 else 3476 tm_file=i386/aix386ng.h 3477 use_collect2=yes 3478 fi 3479 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" 3480 xm_defines=USG 3481 xmake_file=i386/x-aix 3482 ;; 3483 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 3484 xm_file="xm-siglist.h xm-alloca.h ${xm_file}" 3485 xm_defines="USG POSIX SMALL_ARG_MAX" 3486 xmake_file=i386/x-ncr3000 3487 if test x$stabs = xyes -a x$gas = xyes 3488 then 3489 tm_file=i386/sysv4gdb.h 3490 else 3491 tm_file=i386/sysv4.h 3492 fi 3493 extra_parts="crtbegin.o crtend.o" 3494 tmake_file=i386/t-crtpic 3495 ;; 3496 i[34567]86-next-*) 3497 tm_file=i386/next.h 3498 xm_file=i386/xm-next.h 3499 tmake_file=i386/t-next 3500 xmake_file=i386/x-next 3501 extra_objs=nextstep.o 3502 extra_parts="crtbegin.o crtend.o" 3503 if test x$enable_threads = xyes; then 3504 thread_file='mach' 3505 fi 3506 ;; 3507 i[34567]86-sequent-bsd*) # 80386 from Sequent 3508 use_collect2=yes 3509 if test x$gas = xyes 3510 then 3511 tm_file=i386/seq-gas.h 3512 else 3513 tm_file=i386/sequent.h 3514 fi 3515 ;; 3516 i[34567]86-sequent-ptx1*) 3517 xm_defines="USG SVR3" 3518 xmake_file=i386/x-sysv3 3519 tm_file=i386/seq-sysv3.h 3520 tmake_file=i386/t-crtstuff 3521 extra_parts="crtbegin.o crtend.o" 3522 install_headers_dir=install-headers-cpio 3523 ;; 3524 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) 3525 xm_defines="USG SVR3" 3526 xmake_file=i386/x-sysv3 3527 tm_file=i386/seq2-sysv3.h 3528 tmake_file=i386/t-crtstuff 3529 extra_parts="crtbegin.o crtend.o" 3530 install_headers_dir=install-headers-cpio 3531 ;; 3532 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) 3533 xm_file="xm-siglist.h xm-alloca.h ${xm_file}" 3534 xm_defines="USG POSIX SMALL_ARG_MAX" 3535 xmake_file=x-svr4 3536 tm_file=i386/ptx4-i.h 3537 tmake_file=t-svr4 3538 extra_parts="crtbegin.o crtend.o" 3539 install_headers_dir=install-headers-cpio 3540 ;; 3541 i386-sun-sunos*) # Sun i386 roadrunner 3542 xm_defines=USG 3543 tm_file=i386/sun.h 3544 use_collect2=yes 3545 ;; 3546 i[34567]86-wrs-vxworks*) 3547 tm_file=i386/vxi386.h 3548 tmake_file=i386/t-i386bare 3549 thread_file='vxworks' 3550 ;; 3551 i[34567]86-*-aout*) 3552 tm_file=i386/i386-aout.h 3553 tmake_file=i386/t-i386bare 3554 ;; 3555 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) 3556 tm_file=i386/bsd386.h 3557# tmake_file=t-libc-ok 3558 ;; 3559 i[34567]86-*-bsd*) 3560 tm_file=i386/386bsd.h 3561# tmake_file=t-libc-ok 3562# Next line turned off because both 386BSD and BSD/386 use GNU ld. 3563# use_collect2=yes 3564 ;; 3565 i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*) 3566 tm_file=i386/freebsd-aout.h 3567 # On FreeBSD, the headers are already ok, except for math.h. 3568 fixincludes=fixinc.wrap 3569 tmake_file=t-freebsd 3570 ;; 3571 i[34567]86-*-freebsd* | i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsdelf*) 3572 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd.h i386/perform.h" 3573 # On FreeBSD, the headers are already ok, except for math.h. 3574 fixincludes=fixinc.wrap 3575 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 3576 tmake_file=t-freebsd 3577 gas=yes 3578 gnu_ld=yes 3579 stabs=yes 3580 ;; 3581 i[34567]86-*-netbsd*) 3582 tm_file=i386/netbsd.h 3583 tmake_file=t-netbsd 3584 use_collect2=yes 3585 ;; 3586 i[34567]86-*-openbsd*) 3587 # we need collect2 until our bug is fixed... 3588 use_collect2=yes 3589 ;; 3590 i[34567]86-*-coff*) 3591 tm_file=i386/i386-coff.h 3592 tmake_file=i386/t-i386bare 3593 ;; 3594 i[34567]86-*-isc*) # 80386 running ISC system 3595 xm_file="${xm_file} i386/xm-isc.h" 3596 xm_defines="USG SVR3" 3597 case $machine in 3598 i[34567]86-*-isc[34]*) 3599 xmake_file=i386/x-isc3 3600 ;; 3601 *) 3602 xmake_file=i386/x-isc 3603 ;; 3604 esac 3605 if test x$gas = xyes -a x$stabs = xyes 3606 then 3607 tm_file=i386/iscdbx.h 3608 tmake_file=i386/t-svr3dbx 3609 extra_parts="svr3.ifile svr3z.ifile" 3610 else 3611 tm_file=i386/isccoff.h 3612 tmake_file=i386/t-crtstuff 3613 extra_parts="crtbegin.o crtend.o" 3614 fi 3615 install_headers_dir=install-headers-cpio 3616 ;; 3617 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux 3618 # pre BFD linkers 3619 xmake_file=x-linux-aout 3620 tmake_file="t-linux-aout i386/t-crtstuff" 3621 tm_file=i386/linux-oldld.h 3622 gnu_ld=yes 3623 float_format=i386 3624 ;; 3625 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux 3626 xmake_file=x-linux-aout 3627 tmake_file="t-linux-aout i386/t-crtstuff" 3628 tm_file=i386/linux-aout.h 3629 gnu_ld=yes 3630 float_format=i386 3631 ;; 3632 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux 3633 # GNU/Linux C library 5 3634 xmake_file=x-linux 3635 tm_file=i386/linux.h 3636 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" 3637 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 3638 gnu_ld=yes 3639 float_format=i386 3640 if test x$enable_threads = xyes; then 3641 thread_file='single' 3642 fi 3643 ;; 3644 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux 3645 # aka GNU/Linux C library 6 3646 xmake_file=x-linux 3647 tm_file=i386/linux.h 3648 tmake_file="t-linux i386/t-crtstuff" 3649 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 3650 gnu_ld=yes 3651 float_format=i386 3652 if test x$enable_threads = xyes; then 3653 thread_file='posix' 3654 fi 3655 ;; 3656 i[34567]86-*-gnu*) 3657 float_format=i386 3658 ;; 3659 i[34567]86-go32-msdos | i[34567]86-*-go32*) 3660 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." 3661 exit 1 3662 ;; 3663 i[34567]86-pc-msdosdjgpp*) 3664 xm_file=i386/xm-djgpp.h 3665 tm_file=i386/djgpp.h 3666 tmake_file=i386/t-djgpp 3667 xmake_file=i386/x-djgpp 3668 gnu_ld=yes 3669 gas=yes 3670 exeext=.exe 3671 case $host in *pc-msdosdjgpp*) 3672 target_alias=djgpp 3673 ;; 3674 esac 3675 ;; 3676 i[34567]86-moss-msdos* | i[34567]86-*-moss*) 3677 tm_file=i386/moss.h 3678 tmake_file=t-libc-ok 3679 gnu_ld=yes 3680 gas=yes 3681 ;; 3682 i[34567]86-*-lynxos*) 3683 if test x$gas = xyes 3684 then 3685 tm_file=i386/lynx.h 3686 else 3687 tm_file=i386/lynx-ng.h 3688 fi 3689 xm_file=i386/xm-lynx.h 3690 tmake_file=i386/t-i386bare 3691 xmake_file=x-lynx 3692 ;; 3693 i[34567]86-*-mach*) 3694 tm_file=i386/mach.h 3695# tmake_file=t-libc-ok 3696 use_collect2=yes 3697 ;; 3698 i[34567]86-*-osfrose*) # 386 using OSF/rose 3699 if test x$elf = xyes 3700 then 3701 tm_file=i386/osfelf.h 3702 use_collect2= 3703 else 3704 tm_file=i386/osfrose.h 3705 use_collect2=yes 3706 fi 3707 xm_file="i386/xm-osf.h ${xm_file}" 3708 xmake_file=i386/x-osfrose 3709 tmake_file=i386/t-osf 3710 extra_objs=halfpic.o 3711 ;; 3712 i[34567]86-go32-rtems*) 3713 cpu_type=i386 3714 xm_file=i386/xm-go32.h 3715 tm_file=i386/go32-rtems.h 3716 tmake_file="i386/t-go32 t-rtems" 3717 ;; 3718 i[34567]86-*-rtemself*) 3719 cpu_type=i386 3720 tm_file=i386/rtemself.h 3721 tmake_file="i386/t-i386bare t-rtems" 3722 ;; 3723 i[34567]86-*-rtems*) 3724 cpu_type=i386 3725 tm_file=i386/rtems.h 3726 tmake_file="i386/t-i386bare t-rtems" 3727 ;; 3728 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 3729 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" 3730 xm_defines="USG SVR3" 3731 xmake_file=i386/x-sco5 3732 install_headers_dir=install-headers-cpio 3733 tm_file=i386/sco5.h 3734 if test x$gas = xyes 3735 then 3736 tm_file="i386/sco5gas.h ${tm_file}" 3737 tmake_file=i386/t-sco5gas 3738 else 3739 tmake_file=i386/t-sco5 3740 fi 3741 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" 3742 ;; 3743 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system 3744 xm_file="${xm_file} i386/xm-sco.h" 3745 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" 3746 xmake_file=i386/x-sco4 3747 install_headers_dir=install-headers-cpio 3748 if test x$stabs = xyes 3749 then 3750 tm_file=i386/sco4dbx.h 3751 tmake_file=i386/t-svr3dbx 3752 extra_parts="svr3.ifile svr3z.rfile" 3753 else 3754 tm_file=i386/sco4.h 3755 tmake_file=i386/t-crtstuff 3756 extra_parts="crtbegin.o crtend.o" 3757 fi 3758 truncate_target=yes 3759 ;; 3760 i[34567]86-*-sco*) # 80386 running SCO system 3761 xm_file=i386/xm-sco.h 3762 xmake_file=i386/x-sco 3763 install_headers_dir=install-headers-cpio 3764 if test x$stabs = xyes 3765 then 3766 tm_file=i386/scodbx.h 3767 tmake_file=i386/t-svr3dbx 3768 extra_parts="svr3.ifile svr3z.rfile" 3769 else 3770 tm_file=i386/sco.h 3771 extra_parts="crtbegin.o crtend.o" 3772 tmake_file=i386/t-crtstuff 3773 fi 3774 truncate_target=yes 3775 ;; 3776 i[34567]86-*-solaris2*) 3777 xm_file="xm-siglist.h xm-alloca.h ${xm_file}" 3778 xm_defines="USG POSIX SMALL_ARG_MAX" 3779 tm_file=i386/sol2.h 3780 if test x$gas = xyes; then 3781 # Only needed if gas does not support -s 3782 tm_file="i386/sol2gas.h ${tm_file}" 3783 fi 3784 tmake_file=i386/t-sol2 3785 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" 3786 xmake_file=x-svr4 3787 if test x$enable_threads = xyes; then 3788 thread_file='solaris' 3789 fi 3790 ;; 3791 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 3792 xm_file="xm-alloca.h xm-siglist.h ${xm_file}" 3793 xm_defines="USG POSIX" 3794 tm_file=i386/sysv5.h 3795 if test x$stabs = xyes 3796 then 3797 tm_file="${tm_file} dbx.h" 3798 fi 3799 tmake_file=i386/t-crtpic 3800 xmake_file=x-svr4 3801 extra_parts="crtbegin.o crtend.o" 3802 if test x$enable_threads = xyes; then 3803 thread_file='posix' 3804 fi 3805 ;; 3806 i[34567]86-*-sysv4*) # Intel 80386's running system V.4 3807 xm_file="xm-siglist.h xm-alloca.h ${xm_file}" 3808 xm_defines="USG POSIX SMALL_ARG_MAX" 3809 tm_file=i386/sysv4.h 3810 if test x$stabs = xyes 3811 then 3812 tm_file="${tm_file} dbx.h" 3813 fi 3814 tmake_file=i386/t-crtpic 3815 xmake_file=x-svr4 3816 extra_parts="crtbegin.o crtend.o" 3817 ;; 3818 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit 3819 xm_file="xm-alloca.h xm-siglist.h ${xm_file}" 3820 xm_defines="USG POSIX" 3821 tm_file=i386/udk.h 3822 tmake_file="i386/t-crtpic i386/t-udk" 3823 xmake_file=x-svr4 3824 extra_parts="crtbegin.o crtend.o" 3825 install_headers_dir=install-headers-cpio 3826 ;; 3827 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ 3828 cpu_type=i386 3829 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" 3830 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" 3831 if test x$stabs = xyes 3832 then 3833 tm_file=i386/osf1elfgdb.h 3834 else 3835 tm_file=i386/osf1elf.h 3836 fi 3837 tmake_file=i386/t-osf1elf 3838 xmake_file=i386/x-osf1elf 3839 extra_parts="crti.o crtn.o crtbegin.o crtend.o" 3840 ;; 3841 i[34567]86-*-sysv*) # Intel 80386's running system V 3842 xm_defines="USG SVR3" 3843 xmake_file=i386/x-sysv3 3844 if test x$gas = xyes 3845 then 3846 if test x$stabs = xyes 3847 then 3848 tm_file=i386/svr3dbx.h 3849 tmake_file=i386/t-svr3dbx 3850 extra_parts="svr3.ifile svr3z.rfile" 3851 else 3852 tm_file=i386/svr3gas.h 3853 extra_parts="crtbegin.o crtend.o" 3854 tmake_file=i386/t-crtstuff 3855 fi 3856 else 3857 tm_file=i386/sysv3.h 3858 extra_parts="crtbegin.o crtend.o" 3859 tmake_file=i386/t-crtstuff 3860 fi 3861 ;; 3862 i386-*-vsta) # Intel 80386's running VSTa kernel 3863 xm_file="${xm_file} i386/xm-vsta.h" 3864 tm_file=i386/vsta.h 3865 tmake_file=i386/t-vsta 3866 xmake_file=i386/x-vsta 3867 ;; 3868 i[34567]86-*-win32) 3869 xm_file="${xm_file} i386/xm-cygwin.h" 3870 tmake_file=i386/t-cygwin 3871 tm_file=i386/win32.h 3872 xmake_file=i386/x-cygwin 3873 extra_objs=winnt.o 3874 if test x$enable_threads = xyes; then 3875 thread_file='win32' 3876 fi 3877 exeext=.exe 3878 ;; 3879 i[34567]86-*-pe | i[34567]86-*-cygwin*) 3880 xm_file="${xm_file} i386/xm-cygwin.h" 3881 tmake_file=i386/t-cygwin 3882 tm_file=i386/cygwin.h 3883 xmake_file=i386/x-cygwin 3884 extra_objs=winnt.o 3885 if test x$enable_threads = xyes; then 3886 thread_file='win32' 3887 fi 3888 exeext=.exe 3889 ;; 3890 i[34567]86-*-mingw32*) 3891 tm_file=i386/mingw32.h 3892 xm_file="${xm_file} i386/xm-mingw32.h" 3893 tmake_file="i386/t-cygwin i386/t-mingw32" 3894 extra_objs=winnt.o 3895 xmake_file=i386/x-cygwin 3896 if test x$enable_threads = xyes; then 3897 thread_file='win32' 3898 fi 3899 exeext=.exe 3900 case $machine in 3901 *mingw32msv*) 3902 ;; 3903 *minwg32crt* | *mingw32*) 3904 tm_file="${tm_file} i386/crtdll.h" 3905 ;; 3906 esac 3907 ;; 3908 i[34567]86-*-uwin*) 3909 tm_file=i386/uwin.h 3910 xm_file="${xm_file} i386/xm-uwin.h" 3911 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" 3912 tmake_file="i386/t-cygwin i386/t-uwin" 3913 extra_objs=winnt.o 3914 xmake_file=i386/x-cygwin 3915 if test x$enable_threads = xyes; then 3916 thread_file='win32' 3917 fi 3918 exeext=.exe 3919 ;; 3920 i[34567]86-*-interix*) 3921 tm_file="i386/i386-interix.h interix.h" 3922 xm_file="i386/xm-i386-interix.h xm-interix.h" 3923 xm_defines="USG NO_SYS_SIGLIST" 3924 tmake_file="i386/t-interix" 3925 extra_objs=interix.o 3926 xmake_file=x-interix 3927 if test x$enable_threads = xyes ; then 3928 thread_file='posix' 3929 fi 3930 if test x$stabs = xyes ; then 3931 tm_file="${tm_file} dbxcoff.h" 3932 fi 3933 ;; 3934 i[34567]86-*-winnt3*) 3935 tm_file=i386/win-nt.h 3936 out_file=i386/i386.c 3937 xm_file="xm-winnt.h ${xm_file}" 3938 xmake_file=winnt/x-winnt 3939 tmake_file=i386/t-winnt 3940 extra_host_objs="winnt.o oldnames.o" 3941 extra_gcc_objs="spawnv.o oldnames.o" 3942 if test x$gnu_ld != xyes 3943 then 3944 extra_programs=ld.exe 3945 fi 3946 if test x$enable_threads = xyes; then 3947 thread_file='win32' 3948 fi 3949 ;; 3950 i[34567]86-dg-dgux*) 3951 xm_file="xm-alloca.h xm-siglist.h ${xm_file}" 3952 xm_defines="USG POSIX" 3953 out_file=i386/dgux.c 3954 tm_file=i386/dgux.h 3955 tmake_file=i386/t-dgux 3956 xmake_file=i386/x-dgux 3957 install_headers_dir=install-headers-cpio 3958 ;; 3959 i860-alliant-*) # Alliant FX/2800 3960 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" 3961 xm_file="${xm_file}" 3962 xmake_file=i860/x-fx2800 3963 tmake_file=i860/t-fx2800 3964 extra_parts="crtbegin.o crtend.o" 3965 ;; 3966 i860-*-bsd*) 3967 tm_file="${tm_file} i860/bsd.h" 3968 if test x$gas = xyes 3969 then 3970 tm_file="${tm_file} i860/bsd-gas.h" 3971 fi 3972 use_collect2=yes 3973 ;; 3974 i860-*-mach*) 3975 tm_file="${tm_file} i860/mach.h" 3976 tmake_file=t-libc-ok 3977 ;; 3978 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD 3979 tm_file="${tm_file} svr3.h i860/paragon.h" 3980 xm_defines="USG SVR3" 3981 tmake_file=t-osf 3982 ;; 3983 i860-*-sysv3*) 3984 tm_file="${tm_file} svr3.h i860/sysv3.h" 3985 xm_defines="USG SVR3" 3986 xmake_file=i860/x-sysv3 3987 extra_parts="crtbegin.o crtend.o" 3988 ;; 3989 i860-*-sysv4*) 3990 tm_file="${tm_file} svr4.h i860/sysv4.h" 3991 xm_defines="USG SVR3" 3992 xmake_file=i860/x-sysv4 3993 tmake_file=t-svr4 3994 extra_parts="crtbegin.o crtend.o" 3995 ;; 3996 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) 3997 tm_file="${tm_file} i960/vx960.h" 3998 tmake_file=i960/t-vxworks960 3999 use_collect2=yes 4000 thread_file='vxworks' 4001 ;; 4002 i960-wrs-vxworks5* | i960-wrs-vxworks) 4003 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" 4004 tmake_file=i960/t-vxworks960 4005 use_collect2=yes 4006 thread_file='vxworks' 4007 ;; 4008 i960-wrs-vxworks*) 4009 tm_file="${tm_file} i960/vx960.h" 4010 tmake_file=i960/t-vxworks960 4011 use_collect2=yes 4012 thread_file='vxworks' 4013 ;; 4014 i960-*-coff*) 4015 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" 4016 tmake_file=i960/t-960bare 4017 use_collect2=yes 4018 ;; 4019 i960-*-rtems) 4020 tmake_file="i960/t-960bare t-rtems" 4021 tm_file="${tm_file} dbxcoff.h i960/rtems.h" 4022 use_collect2=yes 4023 ;; 4024 i960-*-*) # Default i960 environment. 4025 use_collect2=yes 4026 ;; 4027 m32r-*-elf*) 4028 extra_parts="crtinit.o crtfini.o" 4029 ;; 4030 m68000-convergent-sysv*) 4031 tm_file=m68k/ctix.h 4032 xm_file="m68k/xm-3b1.h ${xm_file}" 4033 xm_defines=USG 4034 use_collect2=yes 4035 extra_headers=math-68881.h 4036 ;; 4037 m68000-hp-bsd*) # HP 9000/200 running BSD 4038 tm_file=m68k/hp2bsd.h 4039 xmake_file=m68k/x-hp2bsd 4040 use_collect2=yes 4041 extra_headers=math-68881.h 4042 ;; 4043 m68000-hp-hpux*) # HP 9000 series 300 4044 xm_file="xm-alloca.h ${xm_file}" 4045 xm_defines="USG NO_SYS_SIGLIST" 4046 if test x$gas = xyes 4047 then 4048 xmake_file=m68k/x-hp320g 4049 tm_file=m68k/hp310g.h 4050 else 4051 xmake_file=m68k/x-hp320 4052 tm_file=m68k/hp310.h 4053 fi 4054 install_headers_dir=install-headers-cpio 4055 use_collect2=yes 4056 extra_headers=math-68881.h 4057 ;; 4058 m68000-sun-sunos3*) 4059 tm_file=m68k/sun2.h 4060 use_collect2=yes 4061 extra_headers=math-68881.h 4062 ;; 4063 m68000-sun-sunos4*) 4064 tm_file=m68k/sun2o4.h 4065 use_collect2=yes 4066 extra_headers=math-68881.h 4067 ;; 4068 m68000-att-sysv*) 4069 xm_file="m68k/xm-3b1.h ${xm_file}" 4070 xm_defines=USG 4071 if test x$gas = xyes 4072 then 4073 tm_file=m68k/3b1g.h 4074 else 4075 tm_file=m68k/3b1.h 4076 fi 4077 use_collect2=yes 4078 extra_headers=math-68881.h 4079 ;; 4080 m68k-apple-aux*) # Apple Macintosh running A/UX 4081 xm_defines="USG AUX" 4082 tmake_file=m68k/t-aux 4083 install_headers_dir=install-headers-cpio 4084 extra_headers=math-68881.h 4085 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" 4086 tm_file= 4087 if test "$gnu_ld" = yes 4088 then 4089 tm_file="${tm_file} m68k/auxgld.h" 4090 else 4091 tm_file="${tm_file} m68k/auxld.h" 4092 fi 4093 if test "$gas" = yes 4094 then 4095 tm_file="${tm_file} m68k/auxgas.h" 4096 else 4097 tm_file="${tm_file} m68k/auxas.h" 4098 fi 4099 tm_file="${tm_file} m68k/a-ux.h" 4100 float_format=m68k 4101 ;; 4102 m68k-apollo-*) 4103 tm_file=m68k/apollo68.h 4104 xmake_file=m68k/x-apollo68 4105 use_collect2=yes 4106 extra_headers=math-68881.h 4107 float_format=m68k 4108 ;; 4109 m68k-altos-sysv*) # Altos 3068 4110 if test x$gas = xyes 4111 then 4112 tm_file=m68k/altos3068.h 4113 xm_defines=USG 4114 else 4115 echo "The Altos is supported only with the GNU assembler" 1>&2 4116 exit 1 4117 fi 4118 extra_headers=math-68881.h 4119 ;; 4120 m68k-bull-sysv*) # Bull DPX/2 4121 if test x$gas = xyes 4122 then 4123 if test x$stabs = xyes 4124 then 4125 tm_file=m68k/dpx2cdbx.h 4126 else 4127 tm_file=m68k/dpx2g.h 4128 fi 4129 else 4130 tm_file=m68k/dpx2.h 4131 fi 4132 xm_file="xm-alloca.h ${xm_file}" 4133 xm_defines=USG 4134 xmake_file=m68k/x-dpx2 4135 use_collect2=yes 4136 extra_headers=math-68881.h 4137 ;; 4138 m68k-atari-sysv4*) # Atari variant of V.4. 4139 tm_file=m68k/atari.h 4140 xm_file="xm-alloca.h ${xm_file}" 4141 xm_defines="USG FULL_PROTOTYPES" 4142 tmake_file=t-svr4 4143 extra_parts="crtbegin.o crtend.o" 4144 extra_headers=math-68881.h 4145 float_format=m68k 4146 ;; 4147 m68k-motorola-sysv*) 4148 tm_file=m68k/mot3300.h 4149 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" 4150 xm_defines=NO_SYS_SIGLIST 4151 if test x$gas = xyes 4152 then 4153 xmake_file=m68k/x-mot3300-gas 4154 if test x$gnu_ld = xyes 4155 then 4156 tmake_file=m68k/t-mot3300-gald 4157 else 4158 tmake_file=m68k/t-mot3300-gas 4159 use_collect2=yes 4160 fi 4161 else 4162 xmake_file=m68k/x-mot3300 4163 if test x$gnu_ld = xyes 4164 then 4165 tmake_file=m68k/t-mot3300-gld 4166 else 4167 tmake_file=m68k/t-mot3300 4168 use_collect2=yes 4169 fi 4170 fi 4171 gdb_needs_out_file_path=yes 4172 extra_parts="crt0.o mcrt0.o" 4173 extra_headers=math-68881.h 4174 float_format=m68k 4175 ;; 4176 m68k-ncr-sysv*) # NCR Tower 32 SVR3 4177 tm_file=m68k/tower-as.h 4178 xm_defines="USG SVR3" 4179 xmake_file=m68k/x-tower 4180 extra_parts="crtbegin.o crtend.o" 4181 extra_headers=math-68881.h 4182 ;; 4183 m68k-plexus-sysv*) 4184 tm_file=m68k/plexus.h 4185 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" 4186 xm_defines=USG 4187 use_collect2=yes 4188 extra_headers=math-68881.h 4189 ;; 4190 m68k-tti-*) 4191 tm_file=m68k/pbb.h 4192 xm_file="xm-alloca.h ${xm_file}" 4193 xm_defines=USG 4194 extra_headers=math-68881.h 4195 ;; 4196 m68k-crds-unos*) 4197 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" 4198 xm_defines="USG unos" 4199 xmake_file=m68k/x-crds 4200 tm_file=m68k/crds.h 4201 use_collect2=yes 4202 extra_headers=math-68881.h 4203 ;; 4204 m68k-cbm-sysv4*) # Commodore variant of V.4. 4205 tm_file=m68k/amix.h 4206 xm_file="xm-alloca.h ${xm_file}" 4207 xm_defines="USG FULL_PROTOTYPES" 4208 xmake_file=m68k/x-amix 4209 tmake_file=t-svr4 4210 extra_parts="crtbegin.o crtend.o" 4211 extra_headers=math-68881.h 4212 float_format=m68k 4213 ;; 4214 m68k-ccur-rtu) 4215 tm_file=m68k/ccur-GAS.h 4216 xmake_file=m68k/x-ccur 4217 extra_headers=math-68881.h 4218 use_collect2=yes 4219 float_format=m68k 4220 ;; 4221 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd 4222 tm_file=m68k/hp3bsd44.h 4223 use_collect2=yes 4224 extra_headers=math-68881.h 4225 float_format=m68k 4226 ;; 4227 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix 4228 tm_file=m68k/hp3bsd.h 4229 use_collect2=yes 4230 extra_headers=math-68881.h 4231 float_format=m68k 4232 ;; 4233 m68k-isi-bsd*) 4234 if test x$with_fp = xno 4235 then 4236 tm_file=m68k/isi-nfp.h 4237 else 4238 tm_file=m68k/isi.h 4239 float_format=m68k 4240 fi 4241 use_collect2=yes 4242 extra_headers=math-68881.h 4243 ;; 4244 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. 4245 xm_file="xm-alloca.h ${xm_file}" 4246 xm_defines="USG NO_SYS_SIGLIST" 4247 if test x$gas = xyes 4248 then 4249 xmake_file=m68k/x-hp320g 4250 tm_file=m68k/hp320g.h 4251 else 4252 xmake_file=m68k/x-hp320 4253 tm_file=m68k/hpux7.h 4254 fi 4255 install_headers_dir=install-headers-cpio 4256 use_collect2=yes 4257 extra_headers=math-68881.h 4258 float_format=m68k 4259 ;; 4260 m68k-hp-hpux*) # HP 9000 series 300 4261 xm_file="xm-alloca.h ${xm_file}" 4262 xm_defines="USG NO_SYS_SIGLIST" 4263 if test x$gas = xyes 4264 then 4265 xmake_file=m68k/x-hp320g 4266 tm_file=m68k/hp320g.h 4267 else 4268 xmake_file=m68k/x-hp320 4269 tm_file=m68k/hp320.h 4270 fi 4271 install_headers_dir=install-headers-cpio 4272 use_collect2=yes 4273 extra_headers=math-68881.h 4274 float_format=m68k 4275 ;; 4276 m68k-sun-mach*) 4277 tm_file=m68k/sun3mach.h 4278 use_collect2=yes 4279 extra_headers=math-68881.h 4280 float_format=m68k 4281 ;; 4282 m68k-sony-newsos3*) 4283 if test x$gas = xyes 4284 then 4285 tm_file=m68k/news3gas.h 4286 else 4287 tm_file=m68k/news3.h 4288 fi 4289 use_collect2=yes 4290 extra_headers=math-68881.h 4291 float_format=m68k 4292 ;; 4293 m68k-sony-bsd* | m68k-sony-newsos*) 4294 if test x$gas = xyes 4295 then 4296 tm_file=m68k/newsgas.h 4297 else 4298 tm_file=m68k/news.h 4299 fi 4300 use_collect2=yes 4301 extra_headers=math-68881.h 4302 float_format=m68k 4303 ;; 4304 m68k-next-nextstep2*) 4305 tm_file=m68k/next21.h 4306 xm_file="m68k/xm-next.h ${xm_file}" 4307 tmake_file=m68k/t-next 4308 xmake_file=m68k/x-next 4309 extra_objs=nextstep.o 4310 extra_headers=math-68881.h 4311 use_collect2=yes 4312 float_format=m68k 4313 ;; 4314 m68k-next-nextstep3*) 4315 tm_file=m68k/next.h 4316 xm_file="m68k/xm-next.h ${xm_file}" 4317 tmake_file=m68k/t-next 4318 xmake_file=m68k/x-next 4319 extra_objs=nextstep.o 4320 extra_parts="crtbegin.o crtend.o" 4321 extra_headers=math-68881.h 4322 float_format=m68k 4323 if test x$enable_threads = xyes; then 4324 thread_file='mach' 4325 fi 4326 ;; 4327 m68k-sun-sunos3*) 4328 if test x$with_fp = xno 4329 then 4330 tm_file=m68k/sun3n3.h 4331 else 4332 tm_file=m68k/sun3o3.h 4333 float_format=m68k 4334 fi 4335 use_collect2=yes 4336 extra_headers=math-68881.h 4337 ;; 4338 m68k-sun-sunos*) # For SunOS 4 (the default). 4339 if test x$with_fp = xno 4340 then 4341 tm_file=m68k/sun3n.h 4342 else 4343 tm_file=m68k/sun3.h 4344 float_format=m68k 4345 fi 4346 use_collect2=yes 4347 extra_headers=math-68881.h 4348 ;; 4349 m68k-wrs-vxworks*) 4350 tm_file=m68k/vxm68k.h 4351 tmake_file=m68k/t-vxworks68 4352 extra_headers=math-68881.h 4353 thread_file='vxworks' 4354 float_format=m68k 4355 ;; 4356 m68k-*-aout*) 4357 tmake_file=m68k/t-m68kbare 4358 tm_file="m68k/m68k-aout.h libgloss.h" 4359 extra_headers=math-68881.h 4360 float_format=m68k 4361 ;; 4362 m68k-*-coff*) 4363 tmake_file=m68k/t-m68kbare 4364 tm_file="m68k/m68k-coff.h dbx.h libgloss.h" 4365 extra_headers=math-68881.h 4366 float_format=m68k 4367 ;; 4368 m68020-*-elf* | m68k-*-elf*) 4369 tm_file="m68k/m68020-elf.h libgloss.h" 4370 xm_file=m68k/xm-m68kv.h 4371 tmake_file=m68k/t-m68kelf 4372 header_files=math-68881.h 4373 ;; 4374 m68k-*-lynxos*) 4375 if test x$gas = xyes 4376 then 4377 tm_file=m68k/lynx.h 4378 else 4379 tm_file=m68k/lynx-ng.h 4380 fi 4381 xm_file=m68k/xm-lynx.h 4382 xmake_file=x-lynx 4383 tmake_file=m68k/t-lynx 4384 extra_headers=math-68881.h 4385 float_format=m68k 4386 ;; 4387 m68k*-*-netbsd*) 4388 tm_file=m68k/netbsd.h 4389 tmake_file=t-netbsd 4390 float_format=m68k 4391 use_collect2=yes 4392 ;; 4393 m68k*-*-openbsd*) 4394 float_format=m68k 4395 # we need collect2 until our bug is fixed... 4396 use_collect2=yes 4397 ;; 4398 m68k-*-sysv3*) # Motorola m68k's running system V.3 4399 xm_file="xm-alloca.h ${xm_file}" 4400 xm_defines=USG 4401 xmake_file=m68k/x-m68kv 4402 extra_parts="crtbegin.o crtend.o" 4403 extra_headers=math-68881.h 4404 float_format=m68k 4405 ;; 4406 m68k-*-sysv4*) # Motorola m68k's running system V.4 4407 tm_file=m68k/m68kv4.h 4408 xm_file="xm-alloca.h ${xm_file}" 4409 xm_defines=USG 4410 tmake_file=t-svr4 4411 extra_parts="crtbegin.o crtend.o" 4412 extra_headers=math-68881.h 4413 float_format=m68k 4414 ;; 4415 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux 4416 # with a.out format 4417 xmake_file=x-linux 4418 tm_file=m68k/linux-aout.h 4419 tmake_file="t-linux-aout m68k/t-linux-aout" 4420 extra_headers=math-68881.h 4421 float_format=m68k 4422 gnu_ld=yes 4423 ;; 4424 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux 4425 # with ELF format using the 4426 # GNU/Linux C library 5 4427 xmake_file=x-linux 4428 tm_file=m68k/linux.h 4429 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" 4430 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 4431 extra_headers=math-68881.h 4432 float_format=m68k 4433 gnu_ld=yes 4434 ;; 4435 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux 4436 # with ELF format using glibc 2 4437 # aka the GNU/Linux C library 6. 4438 xmake_file=x-linux 4439 tm_file=m68k/linux.h 4440 tmake_file="t-linux m68k/t-linux" 4441 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 4442 extra_headers=math-68881.h 4443 float_format=m68k 4444 gnu_ld=yes 4445 if test x$enable_threads = xyes; then 4446 thread_file='posix' 4447 fi 4448 ;; 4449 m68k-*-psos*) 4450 tmake_file=m68k/t-m68kbare 4451 tm_file=m68k/m68k-psos.h 4452 extra_headers=math-68881.h 4453 float_format=m68k 4454 ;; 4455 m68k-*-rtems*) 4456 tmake_file="m68k/t-m68kbare t-rtems" 4457 tm_file=m68k/rtems.h 4458 extra_headers=math-68881.h 4459 float_format=m68k 4460 ;; 4461 4462 m88k-dg-dgux*) 4463 case $machine in 4464 m88k-dg-dguxbcs*) 4465 tm_file=m88k/dguxbcs.h 4466 tmake_file=m88k/t-dguxbcs 4467 ;; 4468 *) 4469 tm_file=m88k/dgux.h 4470 tmake_file=m88k/t-dgux 4471 ;; 4472 esac 4473 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" 4474 xmake_file=m88k/x-dgux 4475 if test x$gas = xyes 4476 then 4477 tmake_file=m88k/t-dgux-gas 4478 fi 4479 ;; 4480 m88k-dolphin-sysv3*) 4481 tm_file=m88k/dolph.h 4482 extra_parts="crtbegin.o crtend.o" 4483 xm_file="m88k/xm-sysv3.h ${xm_file}" 4484 xmake_file=m88k/x-dolph 4485 if test x$gas = xyes 4486 then 4487 tmake_file=m88k/t-m88k-gas 4488 fi 4489 ;; 4490 m88k-tektronix-sysv3) 4491 tm_file=m88k/tekXD88.h 4492 extra_parts="crtbegin.o crtend.o" 4493 xm_file="m88k/xm-sysv3.h ${xm_file}" 4494 xmake_file=m88k/x-tekXD88 4495 if test x$gas = xyes 4496 then 4497 tmake_file=m88k/t-m88k-gas 4498 fi 4499 ;; 4500 m88k-*-aout*) 4501 tm_file=m88k/m88k-aout.h 4502 ;; 4503 m88k-*-coff*) 4504 tm_file=m88k/m88k-coff.h 4505 tmake_file=m88k/t-bug 4506 ;; 4507 m88k-*-luna*) 4508 tm_file=m88k/luna.h 4509 extra_parts="crtbegin.o crtend.o" 4510 if test x$gas = xyes 4511 then 4512 tmake_file=m88k/t-luna-gas 4513 else 4514 tmake_file=m88k/t-luna 4515 fi 4516 ;; 4517 m88k-*-openbsd*) 4518 tmake_file="${tmake_file} m88k/t-luna-gas" 4519 ;; 4520 m88k-*-sysv3*) 4521 tm_file=m88k/sysv3.h 4522 extra_parts="crtbegin.o crtend.o" 4523 xm_file="m88k/xm-sysv3.h ${xm_file}" 4524 xmake_file=m88k/x-sysv3 4525 if test x$gas = xyes 4526 then 4527 tmake_file=m88k/t-m88k-gas 4528 fi 4529 ;; 4530 m88k-*-sysv4*) 4531 tm_file=m88k/sysv4.h 4532 extra_parts="crtbegin.o crtend.o" 4533 xmake_file=m88k/x-sysv4 4534 tmake_file=m88k/t-sysv4 4535 ;; 4536 mips-sgi-irix6*) # SGI System V.4., IRIX 6 4537 tm_file=mips/iris6.h 4538 xm_file=mips/xm-iris6.h 4539 xmake_file=mips/x-iris6 4540 tmake_file=mips/t-iris6 4541# if test x$enable_threads = xyes; then 4542# thread_file='irix' 4543# fi 4544 ;; 4545 mips-wrs-vxworks) 4546 tm_file="mips/elf.h libgloss.h mips/vxworks.h" 4547 tmake_file=mips/t-ecoff 4548 gas=yes 4549 gnu_ld=yes 4550 extra_parts="crtbegin.o crtend.o" 4551 thread_file='vxworks' 4552 ;; 4553 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 4554 tm_file="mips/iris6.h mips/cross64.h" 4555 xm_defines=USG 4556 xm_file="mips/xm-iris5.h" 4557 xmake_file=mips/x-iris 4558 tmake_file=mips/t-cross64 4559 # See comment in mips/iris[56].h files. 4560 use_collect2=yes 4561# if test x$enable_threads = xyes; then 4562# thread_file='irix' 4563# fi 4564 ;; 4565 mips-sni-sysv4) 4566 if test x$gas = xyes 4567 then 4568 if test x$stabs = xyes 4569 then 4570 tm_file=mips/iris5gdb.h 4571 else 4572 tm_file="mips/sni-svr4.h mips/sni-gas.h" 4573 fi 4574 else 4575 tm_file=mips/sni-svr4.h 4576 fi 4577 xm_defines=USG 4578 xmake_file=mips/x-sni-svr4 4579 tmake_file=mips/t-mips-gas 4580 if test x$gnu_ld != xyes 4581 then 4582 use_collect2=yes 4583 fi 4584 ;; 4585 mips-sgi-irix5*) # SGI System V.4., IRIX 5 4586 if test x$gas = xyes 4587 then 4588 tm_file="mips/iris5.h mips/iris5gas.h" 4589 if test x$stabs = xyes 4590 then 4591 tm_file="${tm_file} dbx.h" 4592 fi 4593 else 4594 tm_file=mips/iris5.h 4595 fi 4596 xm_defines=USG 4597 xm_file="mips/xm-iris5.h" 4598 xmake_file=mips/x-iris 4599 # mips-tfile doesn't work yet 4600 tmake_file=mips/t-mips-gas 4601 # See comment in mips/iris5.h file. 4602 use_collect2=yes 4603# if test x$enable_threads = xyes; then 4604# thread_file='irix' 4605# fi 4606 ;; 4607 mips-sgi-irix4loser*) # Mostly like a MIPS. 4608 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" 4609 if test x$stabs = xyes; then 4610 tm_file="${tm_file} dbx.h" 4611 fi 4612 xm_defines=USG 4613 xmake_file=mips/x-iris 4614 if test x$gas = xyes 4615 then 4616 tmake_file=mips/t-mips-gas 4617 else 4618 extra_passes="mips-tfile mips-tdump" 4619 fi 4620 if test x$gnu_ld != xyes 4621 then 4622 use_collect2=yes 4623 fi 4624# if test x$enable_threads = xyes; then 4625# thread_file='irix' 4626# fi 4627 ;; 4628 mips-sgi-irix4*) # Mostly like a MIPS. 4629 tm_file="mips/iris3.h ${tm_file} mips/iris4.h" 4630 if test x$stabs = xyes; then 4631 tm_file="${tm_file} dbx.h" 4632 fi 4633 xm_defines=USG 4634 xmake_file=mips/x-iris 4635 if test x$gas = xyes 4636 then 4637 tmake_file=mips/t-mips-gas 4638 else 4639 extra_passes="mips-tfile mips-tdump" 4640 fi 4641 if test x$gnu_ld != xyes 4642 then 4643 use_collect2=yes 4644 fi 4645# if test x$enable_threads = xyes; then 4646# thread_file='irix' 4647# fi 4648 ;; 4649 mips-sgi-*) # Mostly like a MIPS. 4650 tm_file="mips/iris3.h ${tm_file}" 4651 if test x$stabs = xyes; then 4652 tm_file="${tm_file} dbx.h" 4653 fi 4654 xm_defines=USG 4655 xmake_file=mips/x-iris3 4656 if test x$gas = xyes 4657 then 4658 tmake_file=mips/t-mips-gas 4659 else 4660 extra_passes="mips-tfile mips-tdump" 4661 fi 4662 if test x$gnu_ld != xyes 4663 then 4664 use_collect2=yes 4665 fi 4666 ;; 4667 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. 4668 tm_file="mips/osfrose.h ${tm_file}" 4669 xmake_file=mips/x-osfrose 4670 tmake_file=mips/t-osfrose 4671 extra_objs=halfpic.o 4672 use_collect2=yes 4673 ;; 4674 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL 4675 tm_file=mips/dec-osf1.h 4676 if test x$stabs = xyes; then 4677 tm_file="${tm_file} dbx.h" 4678 fi 4679 xmake_file=mips/x-dec-osf1 4680 if test x$gas = xyes 4681 then 4682 tmake_file=mips/t-mips-gas 4683 else 4684 tmake_file=mips/t-ultrix 4685 extra_passes="mips-tfile mips-tdump" 4686 fi 4687 if test x$gnu_ld != xyes 4688 then 4689 use_collect2=yes 4690 fi 4691 ;; 4692 mips-dec-bsd*) # Decstation running 4.4 BSD 4693 tm_file=mips/dec-bsd.h 4694 if test x$gas = xyes 4695 then 4696 tmake_file=mips/t-mips-gas 4697 else 4698 tmake_file=mips/t-ultrix 4699 extra_passes="mips-tfile mips-tdump" 4700 fi 4701 if test x$gnu_ld != xyes 4702 then 4703 use_collect2=yes 4704 fi 4705 ;; 4706 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD 4707 tm_file=mips/netbsd.h 4708 # On NetBSD, the headers are already okay, except for math.h. 4709 tmake_file=t-netbsd 4710 ;; 4711 mips*-*-linux*) # Linux MIPS, either endian. 4712 xmake_file=x-linux 4713 xm_file="xm-siglist.h ${xm_file}" 4714 case $machine in 4715 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; 4716 *) tm_file="mips/elf.h mips/linux.h" ;; 4717 esac 4718 extra_parts="crtbegin.o crtend.o" 4719 gnu_ld=yes 4720 gas=yes 4721 ;; 4722 mips*el-*-openbsd*) # mips little endian 4723 target_cpu_default="MASK_GAS|MASK_ABICALLS" 4724 tm_file=mips/openbsd.h 4725 ;; 4726 mips*-*-openbsd*) # mips big endian 4727 target_cpu_default="MASK_GAS|MASK_ABICALLS" 4728 tm_file=mips/openbsd-be.h 4729 ;; 4730 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. 4731 tm_file="mips/news4.h ${tm_file}" 4732 if test x$stabs = xyes; then 4733 tm_file="${tm_file} dbx.h" 4734 fi 4735 if test x$gas = xyes 4736 then 4737 tmake_file=mips/t-mips-gas 4738 else 4739 extra_passes="mips-tfile mips-tdump" 4740 fi 4741 if test x$gnu_ld != xyes 4742 then 4743 use_collect2=yes 4744 fi 4745 xmake_file=mips/x-sony 4746 ;; 4747 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. 4748 # That is based on svr4. 4749 # t-svr4 is not right because this system doesn't use ELF. 4750 tm_file="mips/news5.h ${tm_file}" 4751 if test x$stabs = xyes; then 4752 tm_file="${tm_file} dbx.h" 4753 fi 4754 xm_file="xm-siglist.h ${xm_file}" 4755 xm_defines=USG 4756 if test x$gas = xyes 4757 then 4758 tmake_file=mips/t-mips-gas 4759 else 4760 extra_passes="mips-tfile mips-tdump" 4761 fi 4762 if test x$gnu_ld != xyes 4763 then 4764 use_collect2=yes 4765 fi 4766 ;; 4767 mips-tandem-sysv4*) # Tandem S2 running NonStop UX 4768 tm_file="mips/svr4-5.h mips/svr4-t.h" 4769 if test x$stabs = xyes; then 4770 tm_file="${tm_file} dbx.h" 4771 fi 4772 xm_file="xm-siglist.h ${xm_file}" 4773 xm_defines=USG 4774 xmake_file=mips/x-sysv 4775 if test x$gas = xyes 4776 then 4777 tmake_file=mips/t-mips-gas 4778 extra_parts="crtbegin.o crtend.o" 4779 else 4780 tmake_file=mips/t-mips 4781 extra_passes="mips-tfile mips-tdump" 4782 fi 4783 if test x$gnu_ld != xyes 4784 then 4785 use_collect2=yes 4786 fi 4787 ;; 4788 mips-*-ultrix* | mips-dec-mach3) # Decstation. 4789 tm_file="mips/ultrix.h ${tm_file}" 4790 if test x$stabs = xyes; then 4791 tm_file="${tm_file} dbx.h" 4792 fi 4793 xmake_file=mips/x-ultrix 4794 if test x$gas = xyes 4795 then 4796 tmake_file=mips/t-mips-gas 4797 else 4798 tmake_file=mips/t-ultrix 4799 extra_passes="mips-tfile mips-tdump" 4800 fi 4801 if test x$gnu_ld != xyes 4802 then 4803 use_collect2=yes 4804 fi 4805 ;; 4806 mips-*-riscos[56789]bsd*) 4807 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 4808 if test x$stabs = xyes; then 4809 tm_file="${tm_file} dbx.h" 4810 fi 4811 if test x$gas = xyes 4812 then 4813 tmake_file=mips/t-bsd-gas 4814 else 4815 tmake_file=mips/t-bsd 4816 extra_passes="mips-tfile mips-tdump" 4817 fi 4818 if test x$gnu_ld != xyes 4819 then 4820 use_collect2=yes 4821 fi 4822 ;; 4823 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) 4824 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 4825 if test x$stabs = xyes; then 4826 tm_file="${tm_file} dbx.h" 4827 fi 4828 if test x$gas = xyes 4829 then 4830 tmake_file=mips/t-bsd-gas 4831 else 4832 tmake_file=mips/t-bsd 4833 extra_passes="mips-tfile mips-tdump" 4834 fi 4835 if test x$gnu_ld != xyes 4836 then 4837 use_collect2=yes 4838 fi 4839 ;; 4840 mips-*-riscos[56789]sysv4*) 4841 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 4842 if test x$stabs = xyes; then 4843 tm_file="${tm_file} dbx.h" 4844 fi 4845 xm_file="xm-siglist.h ${xm_file}" 4846 xmake_file=mips/x-sysv 4847 if test x$gas = xyes 4848 then 4849 tmake_file=mips/t-svr4-gas 4850 else 4851 tmake_file=mips/t-svr4 4852 extra_passes="mips-tfile mips-tdump" 4853 fi 4854 if test x$gnu_ld != xyes 4855 then 4856 use_collect2=yes 4857 fi 4858 ;; 4859 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) 4860 tm_file="mips/svr4-4.h ${tm_file}" 4861 if test x$stabs = xyes; then 4862 tm_file="${tm_file} dbx.h" 4863 fi 4864 xm_defines=USG 4865 xmake_file=mips/x-sysv 4866 if test x$gas = xyes 4867 then 4868 tmake_file=mips/t-svr4-gas 4869 else 4870 tmake_file=mips/t-svr4 4871 extra_passes="mips-tfile mips-tdump" 4872 fi 4873 if test x$gnu_ld != xyes 4874 then 4875 use_collect2=yes 4876 fi 4877 ;; 4878 mips-*-riscos[56789]sysv*) 4879 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 4880 if test x$stabs = xyes; then 4881 tm_file="${tm_file} dbx.h" 4882 fi 4883 xm_defines=USG 4884 xmake_file=mips/x-sysv 4885 if test x$gas = xyes 4886 then 4887 tmake_file=mips/t-svr3-gas 4888 else 4889 tmake_file=mips/t-svr3 4890 extra_passes="mips-tfile mips-tdump" 4891 fi 4892 if test x$gnu_ld != xyes 4893 then 4894 use_collect2=yes 4895 fi 4896 ;; 4897 mips-*-sysv* | mips-*-riscos*sysv*) 4898 tm_file="mips/svr3-4.h ${tm_file}" 4899 if test x$stabs = xyes; then 4900 tm_file="${tm_file} dbx.h" 4901 fi 4902 xm_defines=USG 4903 xmake_file=mips/x-sysv 4904 if test x$gas = xyes 4905 then 4906 tmake_file=mips/t-svr3-gas 4907 else 4908 tmake_file=mips/t-svr3 4909 extra_passes="mips-tfile mips-tdump" 4910 fi 4911 if test x$gnu_ld != xyes 4912 then 4913 use_collect2=yes 4914 fi 4915 ;; 4916 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. 4917 tm_file=mips/mips-5.h 4918 if test x$stabs = xyes; then 4919 tm_file="${tm_file} dbx.h" 4920 fi 4921 if test x$gas = xyes 4922 then 4923 tmake_file=mips/t-mips-gas 4924 else 4925 extra_passes="mips-tfile mips-tdump" 4926 fi 4927 if test x$gnu_ld != xyes 4928 then 4929 use_collect2=yes 4930 fi 4931 ;; 4932 mips-*-gnu*) 4933 ;; 4934 mipsel-*-ecoff*) 4935 tm_file=mips/ecoffl.h 4936 if test x$stabs = xyes; then 4937 tm_file="${tm_file} dbx.h" 4938 fi 4939 tmake_file=mips/t-ecoff 4940 ;; 4941 mips-*-ecoff*) 4942 tm_file="gofast.h mips/ecoff.h" 4943 if test x$stabs = xyes; then 4944 tm_file="${tm_file} dbx.h" 4945 fi 4946 tmake_file=mips/t-ecoff 4947 ;; 4948 mipsel-*-elf*) 4949 tm_file="mips/elfl.h libgloss.h" 4950 tmake_file=mips/t-elf 4951 ;; 4952 mips-*-elf*) 4953 tm_file="mips/elf.h" 4954 tmake_file=mips/t-elf 4955 ;; 4956 mips64el-*-elf*) 4957 tm_file="mips/elfl64.h" 4958 tmake_file=mips/t-elf 4959 ;; 4960 mips64orionel-*-elf*) 4961 tm_file="mips/elforion.h mips/elfl64.h libgloss.h" 4962 tmake_file=mips/t-elf 4963 ;; 4964 mips64-*-elf*) 4965 tm_file="mips/elf64.h" 4966 tmake_file=mips/t-elf 4967 ;; 4968 mips64orion-*-elf*) 4969 tm_file="mips/elforion.h mips/elf64.h libgloss.h" 4970 tmake_file=mips/t-elf 4971 ;; 4972 mips64orion-*-rtems*) 4973 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" 4974 tmake_file="mips/t-ecoff t-rtems" 4975 ;; 4976 mipstx39el-*-elf*) 4977 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" 4978 tmake_file=mips/t-r3900 4979 ;; 4980 mipstx39-*-elf*) 4981 tm_file="mips/r3900.h mips/elf.h mips/abi64.h" 4982 tmake_file=mips/t-r3900 4983 ;; 4984 mips-*-*) # Default MIPS RISC-OS 4.0. 4985 if test x$stabs = xyes; then 4986 tm_file="${tm_file} dbx.h" 4987 fi 4988 if test x$gas = xyes 4989 then 4990 tmake_file=mips/t-mips-gas 4991 else 4992 extra_passes="mips-tfile mips-tdump" 4993 fi 4994 if test x$gnu_ld != xyes 4995 then 4996 use_collect2=yes 4997 fi 4998 ;; 4999 mn10200-*-*) 5000 cpu_type=mn10200 5001 tm_file="mn10200/mn10200.h" 5002 if test x$stabs = xyes 5003 then 5004 tm_file="${tm_file} dbx.h" 5005 fi 5006 use_collect2=no 5007 ;; 5008 mn10300-*-*) 5009 cpu_type=mn10300 5010 tm_file="mn10300/mn10300.h" 5011 if test x$stabs = xyes 5012 then 5013 tm_file="${tm_file} dbx.h" 5014 fi 5015 use_collect2=no 5016 ;; 5017 ns32k-encore-bsd*) 5018 tm_file=ns32k/encore.h 5019 use_collect2=yes 5020 ;; 5021 ns32k-sequent-bsd*) 5022 tm_file=ns32k/sequent.h 5023 use_collect2=yes 5024 ;; 5025 ns32k-tek6100-bsd*) 5026 tm_file=ns32k/tek6100.h 5027 use_collect2=yes 5028 ;; 5029 ns32k-tek6200-bsd*) 5030 tm_file=ns32k/tek6200.h 5031 use_collect2=yes 5032 ;; 5033# This has not been updated to GCC 2. 5034# ns32k-ns-genix*) 5035# xm_defines=USG 5036# xmake_file=ns32k/x-genix 5037# tm_file=ns32k/genix.h 5038# use_collect2=yes 5039# ;; 5040 ns32k-merlin-*) 5041 tm_file=ns32k/merlin.h 5042 use_collect2=yes 5043 ;; 5044 ns32k-pc532-mach*) 5045 tm_file=ns32k/pc532-mach.h 5046 use_collect2=yes 5047 ;; 5048 ns32k-pc532-minix*) 5049 tm_file=ns32k/pc532-min.h 5050 xm_file="ns32k/xm-pc532-min.h ${xm-file}" 5051 xm_defines=USG 5052 use_collect2=yes 5053 ;; 5054 ns32k-*-netbsd*) 5055 tm_file=ns32k/netbsd.h 5056 xm_file="ns32k/xm-netbsd.h ${xm_file}" 5057 # On NetBSD, the headers are already okay, except for math.h. 5058 tmake_file=t-netbsd 5059 use_collect2=yes 5060 ;; 5061 pdp11-*-bsd) 5062 tm_file="${tm_file} pdp11/2bsd.h" 5063 ;; 5064 pdp11-*-*) 5065 ;; 5066 ns32k-*-openbsd*) 5067 # Nothing special 5068 ;; 5069 pyramid-*-*) 5070 cpu_type=pyr 5071 xmake_file=pyr/x-pyr 5072 use_collect2=yes 5073 ;; 5074 romp-*-aos*) 5075 use_collect2=yes 5076 ;; 5077 romp-*-mach*) 5078 xmake_file=romp/x-mach 5079 use_collect2=yes 5080 ;; 5081 romp-*-openbsd*) 5082 # Nothing special 5083 ;; 5084 powerpc-*-openbsd*) 5085 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" 5086 ;; 5087 powerpc-*-beos*) 5088 cpu_type=rs6000 5089 tm_file=rs6000/beos.h 5090 xm_file=rs6000/xm-beos.h 5091 tmake_file=rs6000/t-beos 5092 xmake_file=rs6000/x-beos 5093 ;; 5094 powerpc-*-sysv* | powerpc-*-elf*) 5095 tm_file=rs6000/sysv4.h 5096 xm_file="xm-siglist.h rs6000/xm-sysv4.h" 5097 xm_defines="USG POSIX" 5098 extra_headers=ppc-asm.h 5099 if test x$gas = xyes 5100 then 5101 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" 5102 else 5103 tmake_file="rs6000/t-ppc rs6000/t-ppccomm" 5104 fi 5105 xmake_file=rs6000/x-sysv4 5106 ;; 5107 powerpc-*-eabiaix*) 5108 tm_file=rs6000/eabiaix.h 5109 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" 5110 extra_headers=ppc-asm.h 5111 ;; 5112 powerpc-*-eabisim*) 5113 tm_file=rs6000/eabisim.h 5114 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" 5115 extra_headers=ppc-asm.h 5116 ;; 5117 powerpc-*-eabi*) 5118 tm_file=rs6000/eabi.h 5119 if test x$gas = xyes 5120 then 5121 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" 5122 else 5123 tmake_file="rs6000/t-ppc rs6000/t-ppccomm" 5124 fi 5125 extra_headers=ppc-asm.h 5126 ;; 5127 powerpc-*-rtems*) 5128 tm_file=rs6000/rtems.h 5129 if test x$gas = xyes 5130 then 5131 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" 5132 else 5133 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" 5134 fi 5135 extra_headers=ppc-asm.h 5136 ;; 5137 powerpc-*-linux-gnulibc1) 5138 tm_file=rs6000/linux.h 5139 xm_file=rs6000/xm-sysv4.h 5140 out_file=rs6000/rs6000.c 5141 if test x$gas = xyes 5142 then 5143 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" 5144 else 5145 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" 5146 fi 5147 xmake_file=x-linux 5148 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 5149 extra_headers=ppc-asm.h 5150 if test x$enable_threads = xyes; then 5151 thread_file='posix' 5152 fi 5153 ;; 5154 powerpc-*-linux-gnu*) 5155 tm_file=rs6000/linux.h 5156 xm_file="xm-siglist.h rs6000/xm-sysv4.h" 5157 xm_defines="USG ${xm_defines}" 5158 out_file=rs6000/rs6000.c 5159 if test x$gas = xyes 5160 then 5161 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" 5162 else 5163 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" 5164 fi 5165 xmake_file=x-linux 5166 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 5167 extra_headers=ppc-asm.h 5168 if test x$enable_threads = xyes; then 5169 thread_file='posix' 5170 fi 5171 ;; 5172 powerpc-wrs-vxworks*) 5173 cpu_type=rs6000 5174 xm_file="xm-siglist.h rs6000/xm-sysv4.h" 5175 xm_defines="USG POSIX" 5176 tm_file=rs6000/vxppc.h 5177 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" 5178 extra_headers=ppc-asm.h 5179 thread_file='vxworks' 5180 ;; 5181 powerpcle-*-sysv* | powerpcle-*-elf*) 5182 tm_file=rs6000/sysv4le.h 5183 xm_file="xm-siglist.h rs6000/xm-sysv4.h" 5184 xm_defines="USG POSIX" 5185 if test x$gas = xyes 5186 then 5187 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" 5188 else 5189 tmake_file="rs6000/t-ppc rs6000/t-ppccomm" 5190 fi 5191 xmake_file=rs6000/x-sysv4 5192 extra_headers=ppc-asm.h 5193 ;; 5194 powerpcle-*-eabisim*) 5195 tm_file=rs6000/eabilesim.h 5196 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" 5197 extra_headers=ppc-asm.h 5198 ;; 5199 powerpcle-*-eabi*) 5200 tm_file=rs6000/eabile.h 5201 if test x$gas = xyes 5202 then 5203 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" 5204 else 5205 tmake_file="rs6000/t-ppc rs6000/t-ppccomm" 5206 fi 5207 extra_headers=ppc-asm.h 5208 ;; 5209 powerpcle-*-winnt* ) 5210 tm_file=rs6000/win-nt.h 5211 tmake_file=rs6000/t-winnt 5212# extra_objs=pe.o 5213 if test x$enable_threads = xyes; then 5214 thread_file='win32' 5215 fi 5216 extra_headers=ppc-asm.h 5217 ;; 5218 powerpcle-*-pe | powerpcle-*-cygwin*) 5219 tm_file=rs6000/cygwin.h 5220 xm_file="rs6000/xm-cygwin.h ${xm_file}" 5221 tmake_file=rs6000/t-winnt 5222 xmake_file=rs6000/x-cygwin 5223# extra_objs=pe.o 5224 if test x$enable_threads = xyes; then 5225 thread_file='win32' 5226 fi 5227 exeext=.exe 5228 extra_headers=ppc-asm.h 5229 ;; 5230 powerpcle-*-solaris2*) 5231 tm_file=rs6000/sol2.h 5232 xm_file="xm-siglist.h rs6000/xm-sysv4.h" 5233 xm_defines="USG POSIX" 5234 if test x$gas = xyes 5235 then 5236 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" 5237 else 5238 tmake_file="rs6000/t-ppc rs6000/t-ppccomm" 5239 fi 5240 xmake_file=rs6000/x-sysv4 5241 extra_headers=ppc-asm.h 5242 ;; 5243 rs6000-ibm-aix3.[01]*) 5244 tm_file=rs6000/aix31.h 5245 xmake_file=rs6000/x-aix31 5246 float_format=none 5247 use_collect2=yes 5248 ;; 5249 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) 5250 tm_file=rs6000/aix3newas.h 5251 if test x$host != x$target 5252 then 5253 tmake_file=rs6000/t-xnewas 5254 else 5255 tmake_file=rs6000/t-newas 5256 fi 5257 float_format=none 5258 use_collect2=yes 5259 ;; 5260 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) 5261 tm_file=rs6000/aix41.h 5262 if test x$host != x$target 5263 then 5264 tmake_file=rs6000/t-xnewas 5265 else 5266 tmake_file=rs6000/t-newas 5267 fi 5268 if test "$gnu_ld" = yes 5269 then 5270 xmake_file=rs6000/x-aix41-gld 5271 else 5272 xmake_file=rs6000/x-aix41 5273 fi 5274 float_format=none 5275 use_collect2=yes 5276 ;; 5277 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) 5278 tm_file=rs6000/aix43.h 5279 if test x$host != x$target 5280 then 5281 tmake_file=rs6000/t-xaix43 5282 else 5283 tmake_file=rs6000/t-aix43 5284 fi 5285 xmake_file=rs6000/x-aix43 5286 float_format=none 5287 use_collect2=yes 5288 ;; 5289 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) 5290 tm_file=rs6000/aix43.h 5291 if test x$host != x$target 5292 then 5293 tmake_file=rs6000/t-xaix43 5294 else 5295 tmake_file=rs6000/t-aix43 5296 fi 5297 xmake_file=rs6000/x-aix43 5298 float_format=none 5299 use_collect2=yes 5300 ;; 5301 rs6000-ibm-aix*) 5302 float_format=none 5303 use_collect2=yes 5304 ;; 5305 rs6000-bull-bosx) 5306 float_format=none 5307 use_collect2=yes 5308 ;; 5309 rs6000-*-mach*) 5310 tm_file=rs6000/mach.h 5311 xm_file="${xm_file} rs6000/xm-mach.h" 5312 xmake_file=rs6000/x-mach 5313 use_collect2=yes 5314 ;; 5315 rs6000-*-lynxos*) 5316 tm_file=rs6000/lynx.h 5317 xm_file=rs6000/xm-lynx.h 5318 tmake_file=rs6000/t-rs6000 5319 xmake_file=rs6000/x-lynx 5320 use_collect2=yes 5321 ;; 5322 sh-*-elf*) 5323 tm_file=sh/elf.h 5324 float_format=sh 5325 ;; 5326 sh-*-rtemself*) 5327 tmake_file="sh/t-sh t-rtems" 5328 tm_file=sh/rtemself.h 5329 float_format=sh 5330 ;; 5331 sh-*-rtems*) 5332 tmake_file="sh/t-sh t-rtems" 5333 tm_file=sh/rtems.h 5334 float_format=sh 5335 ;; 5336 sh-*-*) 5337 float_format=sh 5338 ;; 5339 sparc-tti-*) 5340 tm_file=sparc/pbd.h 5341 xm_file="xm-alloca.h ${xm_file}" 5342 xm_defines=USG 5343 ;; 5344 sparc-wrs-vxworks* | sparclite-wrs-vxworks*) 5345 tm_file=sparc/vxsparc.h 5346 tmake_file=sparc/t-vxsparc 5347 use_collect2=yes 5348 thread_file='vxworks' 5349 ;; 5350 sparc-*-aout*) 5351 tmake_file=sparc/t-sparcbare 5352 tm_file="sparc/aout.h libgloss.h" 5353 ;; 5354 sparc-*-netbsd*) 5355 tm_file=sparc/netbsd.h 5356 tmake_file=t-netbsd 5357 use_collect2=yes 5358 ;; 5359 sparc-*-openbsd*) 5360 # we need collect2 until our bug is fixed... 5361 use_collect2=yes 5362 ;; 5363 sparc-*-bsd*) 5364 tm_file=sparc/bsd.h 5365 ;; 5366 sparc-*-elf*) 5367 tm_file=sparc/elf.h 5368 tmake_file=sparc/t-elf 5369 extra_parts="crti.o crtn.o crtbegin.o crtend.o" 5370 #float_format=i128 5371 float_format=i64 5372 ;; 5373 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out 5374 xm_file="${xm_file} sparc/xm-linux.h" 5375 tm_file=sparc/linux-aout.h 5376 xmake_file=x-linux 5377 gnu_ld=yes 5378 ;; 5379 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 5380 xm_file="${xm_file} sparc/xm-linux.h" 5381 xmake_file=x-linux 5382 tm_file=sparc/linux.h 5383 tmake_file="t-linux t-linux-gnulibc1" 5384 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 5385 gnu_ld=yes 5386 ;; 5387 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 5388 xm_file="${xm_file} sparc/xm-linux.h" 5389 xmake_file=x-linux 5390 tm_file=sparc/linux.h 5391 tmake_file="t-linux" 5392 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 5393 gnu_ld=yes 5394 if test x$enable_threads = xyes; then 5395 thread_file='posix' 5396 fi 5397 ;; 5398 sparc-*-lynxos*) 5399 if test x$gas = xyes 5400 then 5401 tm_file=sparc/lynx.h 5402 else 5403 tm_file=sparc/lynx-ng.h 5404 fi 5405 xm_file=sparc/xm-lynx.h 5406 tmake_file=sparc/t-sunos41 5407 xmake_file=x-lynx 5408 ;; 5409 sparc-*-rtems*) 5410 tmake_file="sparc/t-sparcbare t-rtems" 5411 tm_file=sparc/rtems.h 5412 ;; 5413 sparcv9-*-solaris2*) 5414 tm_file=sparc/sol2-sld-64.h 5415 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" 5416 xm_defines="USG POSIX" 5417 tmake_file="sparc/t-sol2 sparc/t-sol2-64" 5418 xmake_file=sparc/x-sysv4 5419 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" 5420 float_format=none 5421 if test x${enable_threads} = x ; then 5422 enable_threads=$have_pthread_h 5423 if test x${enable_threads} = x ; then 5424 enable_threads=$have_thread_h 5425 fi 5426 fi 5427 if test x${enable_threads} = xyes ; then 5428 if test x${have_pthread_h} = xyes ; then 5429 thread_file='posix' 5430 else 5431 thread_file='solaris' 5432 fi 5433 fi 5434 ;; 5435 sparc-hal-solaris2*) 5436 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" 5437 xm_defines="USG POSIX" 5438 tm_file="sparc/sol2.h sparc/hal.h" 5439 tmake_file="sparc/t-halos sparc/t-sol2" 5440 xmake_file=sparc/x-sysv4 5441 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" 5442 case $machine in 5443 *-*-solaris2.0-4) 5444 float_format=i128 5445 ;; 5446 *) 5447 float_format=none 5448 ;; 5449 esac 5450 thread_file='solaris' 5451 ;; 5452 sparc-*-solaris2*) 5453 if test x$gnu_ld = xyes 5454 then 5455 tm_file=sparc/sol2.h 5456 else 5457 tm_file=sparc/sol2-sld.h 5458 fi 5459 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" 5460 xm_defines="USG POSIX" 5461 tmake_file=sparc/t-sol2 5462 xmake_file=sparc/x-sysv4 5463 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" 5464 case $machine in 5465 *-*-solaris2.[0-4]) 5466 float_format=i128 5467 ;; 5468 *) 5469 float_format=none 5470 ;; 5471 esac 5472 if test x${enable_threads} = x; then 5473 enable_threads=$have_pthread_h 5474 if test x${enable_threads} = x; then 5475 enable_threads=$have_thread_h 5476 fi 5477 fi 5478 if test x${enable_threads} = xyes; then 5479 if test x${have_pthread_h} = xyes; then 5480 thread_file='posix' 5481 else 5482 thread_file='solaris' 5483 fi 5484 fi 5485 ;; 5486 sparc-*-sunos4.0*) 5487 tm_file=sparc/sunos4.h 5488 tmake_file=sparc/t-sunos40 5489 use_collect2=yes 5490 ;; 5491 sparc-*-sunos4*) 5492 tm_file=sparc/sunos4.h 5493 tmake_file=sparc/t-sunos41 5494 use_collect2=yes 5495 if test x$gas = xyes; then 5496 tm_file="${tm_file} sparc/sun4gas.h" 5497 fi 5498 ;; 5499 sparc-*-sunos3*) 5500 tm_file=sparc/sun4o3.h 5501 use_collect2=yes 5502 ;; 5503 sparc-*-sysv4*) 5504 tm_file=sparc/sysv4.h 5505 xm_file="xm-siglist.h sparc/xm-sysv4.h" 5506 xm_defines="USG POSIX" 5507 tmake_file=t-svr4 5508 xmake_file=sparc/x-sysv4 5509 extra_parts="crtbegin.o crtend.o" 5510 ;; 5511 sparc-*-vxsim*) 5512 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" 5513 xm_defines="USG POSIX" 5514 tm_file=sparc/vxsim.h 5515 tmake_file=sparc/t-vxsparc 5516 xmake_file=sparc/x-sysv4 5517 ;; 5518 sparclet-*-aout*) 5519 tm_file="sparc/splet.h libgloss.h" 5520 tmake_file=sparc/t-splet 5521 ;; 5522 sparclite-*-coff*) 5523 tm_file="sparc/litecoff.h libgloss.h" 5524 tmake_file=sparc/t-sparclite 5525 ;; 5526 sparclite-*-aout*) 5527 tm_file="sparc/lite.h aoutos.h libgloss.h" 5528 tmake_file=sparc/t-sparclite 5529 ;; 5530 sparc64-*-aout*) 5531 tmake_file=sparc/t-sp64 5532 tm_file=sparc/sp64-aout.h 5533 ;; 5534 sparc64-*-elf*) 5535 tmake_file=sparc/t-sp64 5536 tm_file=sparc/sp64-elf.h 5537 extra_parts="crtbegin.o crtend.o" 5538 ;; 5539 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux 5540 tmake_file="t-linux sparc/t-linux64" 5541 xm_file="sparc/xm-sp64.h sparc/xm-linux.h" 5542 tm_file=sparc/linux64.h 5543 xmake_file=x-linux 5544 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 5545 gnu_ld=yes 5546 ;; 5547# This hasn't been upgraded to GCC 2. 5548# tahoe-harris-*) # Harris tahoe, using COFF. 5549# tm_file=tahoe/harris.h 5550# ;; 5551# tahoe-*-bsd*) # tahoe running BSD 5552# ;; 5553 thumb-*-coff* | thumbel-*-coff*) 5554 tm_file=arm/tcoff.h 5555 out_file=arm/thumb.c 5556 xm_file=arm/xm-thumb.h 5557 md_file=arm/thumb.md 5558 tmake_file=arm/t-thumb 5559 ;; 5560 thumb-wrs-vxworks) 5561 tm_file=arm/tcoff.h 5562 out_file=arm/thumb.c 5563 xm_file=arm/xm-thumb.h 5564 md_file=arm/thumb.md 5565 tmake_file=arm/t-thumb 5566 thread_file='vxworks' 5567 ;; 5568# This hasn't been upgraded to GCC 2. 5569# tron-*-*) 5570# cpu_type=gmicro 5571# use_collect2=yes 5572# ;; 5573 v850-*-*) 5574 cpu_type=v850 5575 tm_file="v850/v850.h" 5576 xm_file="v850/xm-v850.h" 5577 tmake_file=v850/t-v850 5578 if test x$stabs = xyes 5579 then 5580 tm_file="${tm_file} dbx.h" 5581 fi 5582 use_collect2=no 5583 ;; 5584 vax-*-bsd*) # vaxen running BSD 5585 use_collect2=yes 5586 float_format=vax 5587 ;; 5588 vax-*-sysv*) # vaxen running system V 5589 tm_file="${tm_file} vax/vaxv.h" 5590 xm_defines=USG 5591 float_format=vax 5592 ;; 5593 vax-*-netbsd*) 5594 tm_file="${tm_file} netbsd.h vax/netbsd.h" 5595 tmake_file=t-netbsd 5596 float_format=vax 5597 use_collect2=yes 5598 ;; 5599 vax-*-openbsd*) 5600 tmake_file="${tmake_file} vax/t-openbsd" 5601 ;; 5602 vax-*-ultrix*) # vaxen running ultrix 5603 tm_file="${tm_file} vax/ultrix.h" 5604 use_collect2=yes 5605 float_format=vax 5606 ;; 5607 vax-*-vms*) # vaxen running VMS 5608 xm_file=vax/xm-vms.h 5609 tm_file=vax/vms.h 5610 float_format=vax 5611 ;; 5612 vax-*-*) # vax default entry 5613 float_format=vax 5614 ;; 5615 we32k-att-sysv*) 5616 xm_file="${xm_file} xm-svr3" 5617 use_collect2=yes 5618 ;; 5619 *) 5620 echo "Configuration $machine not supported" 1>&2 5621 exit 1 5622 ;; 5623 esac 5624 5625 case $machine in 5626 *-*-linux-gnu*) 5627 ;; # Existing GNU/Linux systems do not use the GNU setup. 5628 *-*-gnu*) 5629 # On the GNU system, the setup is just about the same on 5630 # each different CPU. The specific machines that GNU 5631 # supports are matched above and just set $cpu_type. 5632 xm_file="xm-gnu.h ${xm_file}" 5633 tm_file=${cpu_type}/gnu.h 5634 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" 5635 # GNU always uses ELF. 5636 elf=yes 5637 # GNU tools are the only tools. 5638 gnu_ld=yes 5639 gas=yes 5640 xmake_file=x-linux # These details are the same as Linux. 5641 tmake_file=t-gnu # These are not. 5642 ;; 5643 *-*-sysv4*) 5644 xmake_try_sysv=x-sysv 5645 install_headers_dir=install-headers-cpio 5646 ;; 5647 *-*-sysv*) 5648 install_headers_dir=install-headers-cpio 5649 ;; 5650 esac 5651 5652 # Distinguish i[34567]86 5653 # Also, do not run mips-tfile on MIPS if using gas. 5654 # Process --with-cpu= for PowerPC/rs6000 5655 target_cpu_default2= 5656 case $machine in 5657 i486-*-*) 5658 target_cpu_default2=1 5659 ;; 5660 i586-*-*) 5661 case $target_alias in 5662 k6-*) 5663 target_cpu_default2=4 5664 ;; 5665 *) 5666 target_cpu_default2=2 5667 ;; 5668 esac 5669 ;; 5670 i686-*-* | i786-*-*) 5671 target_cpu_default2=3 5672 ;; 5673 alpha*-*-*) 5674 case $machine in 5675 alphaev6*) 5676 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" 5677 ;; 5678 alphapca56*) 5679 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" 5680 ;; 5681 alphaev56*) 5682 target_cpu_default2="MASK_CPU_EV5|MASK_BWX" 5683 ;; 5684 alphaev5*) 5685 target_cpu_default2="MASK_CPU_EV5" 5686 ;; 5687 esac 5688 5689 if test x$gas = xyes 5690 then 5691 if test "$target_cpu_default2" = "" 5692 then 5693 target_cpu_default2="MASK_GAS" 5694 else 5695 target_cpu_default2="${target_cpu_default2}|MASK_GAS" 5696 fi 5697 fi 5698 ;; 5699 arm*-*-*) 5700 case "x$with_cpu" in 5701 x) 5702 # The most generic 5703 target_cpu_default2="TARGET_CPU_generic" 5704 ;; 5705 5706 # Distinguish cores, and major variants 5707 # arm7m doesn't exist, but D & I don't affect code 5708 xarm23678 | xarm250 | xarm67010 \ 5709 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ 5710 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ 5711 | xstrongarm | xstrongarm110 | xstrongarm1100) 5712 target_cpu_default2="TARGET_CPU_$with_cpu" 5713 ;; 5714 5715 xyes | xno) 5716 echo "--with-cpu must be passed a value" 1>&2 5717 exit 1 5718 ;; 5719 5720 *) 5721 if test x$pass2done = xyes 5722 then 5723 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 5724 exit 1 5725 fi 5726 ;; 5727 esac 5728 ;; 5729 5730 mips*-*-ecoff* | mips*-*-elf*) 5731 if test x$gas = xyes 5732 then 5733 if test x$gnu_ld = xyes 5734 then 5735 target_cpu_default2=20 5736 else 5737 target_cpu_default2=16 5738 fi 5739 fi 5740 ;; 5741 mips*-*-*) 5742 if test x$gas = xyes 5743 then 5744 target_cpu_default2=16 5745 fi 5746 ;; 5747 powerpc*-*-* | rs6000-*-*) 5748 case "x$with_cpu" in 5749 x) 5750 ;; 5751 5752 xcommon | xpower | xpower2 | xpowerpc | xrios \ 5753 | xrios1 | xrios2 | xrsc | xrsc1 \ 5754 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ 5755 | xec603e | x740 | x750 | x401 \ 5756 | x403 | x505 | x801 | x821 | x823 | x860) 5757 target_cpu_default2="\"$with_cpu\"" 5758 ;; 5759 5760 xyes | xno) 5761 echo "--with-cpu must be passed a value" 1>&2 5762 exit 1 5763 ;; 5764 5765 *) 5766 if test x$pass2done = xyes 5767 then 5768 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 5769 exit 1 5770 fi 5771 ;; 5772 esac 5773 ;; 5774 sparc*-*-*) 5775 case ".$with_cpu" in 5776 .) 5777 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" 5778 ;; 5779 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) 5780 target_cpu_default2="TARGET_CPU_$with_cpu" 5781 ;; 5782 *) 5783 if test x$pass2done = xyes 5784 then 5785 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 5786 exit 1 5787 fi 5788 ;; 5789 esac 5790 ;; 5791 esac 5792 5793 if test "$target_cpu_default2" != "" 5794 then 5795 if test "$target_cpu_default" != "" 5796 then 5797 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" 5798 else 5799 target_cpu_default=$target_cpu_default2 5800 fi 5801 fi 5802 5803 # No need for collect2 if we have the GNU linker. 5804 # Actually, there is now; GNU ld doesn't handle the EH info or 5805 # collecting for shared libraries. 5806 #case x$gnu_ld in 5807 #xyes) 5808 # use_collect2= 5809 # ;; 5810 #esac 5811 5812# Save data on machine being used to compile GCC in build_xm_file. 5813# Save data on host machine in vars host_xm_file and host_xmake_file. 5814 if test x$pass1done = x 5815 then 5816 if test x"$xm_file" = x 5817 then build_xm_file=$cpu_type/xm-$cpu_type.h 5818 else build_xm_file=$xm_file 5819 fi 5820 build_xm_defines=$xm_defines 5821 build_install_headers_dir=$install_headers_dir 5822 build_exeext=$exeext 5823 pass1done=yes 5824 else 5825 if test x$pass2done = x 5826 then 5827 if test x"$xm_file" = x 5828 then host_xm_file=$cpu_type/xm-$cpu_type.h 5829 else host_xm_file=$xm_file 5830 fi 5831 host_xm_defines=$xm_defines 5832 if test x"$xmake_file" = x 5833 then xmake_file=$cpu_type/x-$cpu_type 5834 fi 5835 host_xmake_file="$xmake_file" 5836 host_truncate_target=$truncate_target 5837 host_extra_gcc_objs=$extra_gcc_objs 5838 host_extra_objs=$extra_host_objs 5839 host_exeext=$exeext 5840 pass2done=yes 5841 fi 5842 fi 5843done 5844 5845extra_objs="${host_extra_objs} ${extra_objs}" 5846 5847# Default the target-machine variables that were not explicitly set. 5848if test x"$tm_file" = x 5849then tm_file=$cpu_type/$cpu_type.h; fi 5850 5851if test x$extra_headers = x 5852then extra_headers=; fi 5853 5854if test x"$xm_file" = x 5855then xm_file=$cpu_type/xm-$cpu_type.h; fi 5856 5857if test x$md_file = x 5858then md_file=$cpu_type/$cpu_type.md; fi 5859 5860if test x$out_file = x 5861then out_file=$cpu_type/$cpu_type.c; fi 5862 5863if test x"$tmake_file" = x 5864then tmake_file=$cpu_type/t-$cpu_type 5865fi 5866 5867if test x"$dwarf2" = xyes 5868then tm_file="tm-dwarf2.h $tm_file" 5869fi 5870 5871if test x$float_format = x 5872then float_format=i64 5873fi 5874 5875if test $float_format = none 5876then float_h_file=Makefile.in 5877else float_h_file=float-$float_format.h 5878fi 5879 5880if test x$enable_haifa = x 5881then 5882 case $target in 5883 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) 5884 enable_haifa=yes;; 5885 esac 5886fi 5887 5888# Handle cpp installation. 5889if test x$enable_cpp != xno 5890then 5891 tmake_file="$tmake_file t-install-cpp" 5892fi 5893 5894# Say what files are being used for the output code and MD file. 5895echo "Using \`$srcdir/config/$out_file' to output insns." 5896echo "Using \`$srcdir/config/$md_file' as machine description file." 5897 5898count=a 5899for f in $tm_file; do 5900 count=${count}x 5901done 5902if test $count = ax; then 5903 echo "Using \`$srcdir/config/$tm_file' as target machine macro file." 5904else 5905 echo "Using the following target machine macro files:" 5906 for f in $tm_file; do 5907 echo " $srcdir/config/$f" 5908 done 5909fi 5910 5911count=a 5912for f in $host_xm_file; do 5913 count=${count}x 5914done 5915if test $count = ax; then 5916 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." 5917else 5918 echo "Using the following host machine macro files:" 5919 for f in $host_xm_file; do 5920 echo " $srcdir/config/$f" 5921 done 5922fi 5923 5924if test "$host_xm_file" != "$build_xm_file"; then 5925 count=a 5926 for f in $build_xm_file; do 5927 count=${count}x 5928 done 5929 if test $count = ax; then 5930 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." 5931 else 5932 echo "Using the following build machine macro files:" 5933 for f in $build_xm_file; do 5934 echo " $srcdir/config/$f" 5935 done 5936 fi 5937fi 5938 5939if test x$thread_file = x; then 5940 if test x$target_thread_file != x; then 5941 thread_file=$target_thread_file 5942 else 5943 thread_file='single' 5944 fi 5945fi 5946 5947# Set up the header files. 5948# $links is the list of header files to create. 5949# $vars is the list of shell variables with file names to include. 5950# auto-host.h is the file containing items generated by autoconf and is 5951# the first file included by config.h. 5952null_defines= 5953host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" 5954 5955# If host=build, it is correct to have hconfig include auto-host.h 5956# as well. If host!=build, we are in error and need to do more 5957# work to find out the build config parameters. 5958if test x$host = x$build 5959then 5960 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" 5961else 5962 # We create a subdir, then run autoconf in the subdir. 5963 # To prevent recursion we set host and build for the new 5964 # invocation of configure to the build for this invocation 5965 # of configure. 5966 tempdir=build.$$ 5967 rm -rf $tempdir 5968 mkdir $tempdir 5969 cd $tempdir 5970 case ${srcdir} in 5971 /*) realsrcdir=${srcdir};; 5972 *) realsrcdir=../${srcdir};; 5973 esac 5974 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ 5975 --target=$target --host=$build --build=$build 5976 5977 # We just finished tests for the build machine, so rename 5978 # the file auto-build.h in the gcc directory. 5979 mv auto-host.h ../auto-build.h 5980 cd .. 5981 rm -rf $tempdir 5982 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" 5983fi 5984 5985xm_file="gansidecl.h ${xm_file}" 5986tm_file="gansidecl.h ${tm_file}" 5987 5988vars="host_xm_file tm_file xm_file build_xm_file" 5989links="config.h tm.h tconfig.h hconfig.h" 5990defines="host_xm_defines null_defines xm_defines build_xm_defines" 5991 5992rm -f config.bak 5993if test -f config.status; then mv -f config.status config.bak; fi 5994 5995# Make the links. 5996while test -n "$vars" 5997do 5998 set $vars; var=$1; shift; vars=$* 5999 set $links; link=$1; shift; links=$* 6000 set $defines; define=$1; shift; defines=$* 6001 6002 rm -f $link 6003 6004 # Define TARGET_CPU_DEFAULT if the system wants one. 6005 # This substitutes for lots of *.h files. 6006 if test "$target_cpu_default" != "" -a $link = tm.h 6007 then 6008 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link 6009 fi 6010 6011 for file in `eval echo '$'$var`; do 6012 case $file in 6013 auto-config.h) 6014 ;; 6015 *) 6016 echo '#ifdef IN_GCC' >>$link 6017 ;; 6018 esac 6019 echo "#include \"$file\"" >>$link 6020 case $file in 6021 auto-config.h) 6022 ;; 6023 *) 6024 echo '#endif' >>$link 6025 ;; 6026 esac 6027 done 6028 6029 for def in `eval echo '$'$define`; do 6030 echo "#ifndef $def" >>$link 6031 echo "#define $def" >>$link 6032 echo "#endif" >>$link 6033 done 6034done 6035 6036# Truncate the target if necessary 6037if test x$host_truncate_target != x; then 6038 target=`echo $target | sed -e 's/\(..............\).*/\1/'` 6039fi 6040 6041# Get the version trigger filename from the toplevel 6042if test "${with_gcc_version_trigger+set}" = set; then 6043 gcc_version_trigger=$with_gcc_version_trigger 6044else 6045 gcc_version_trigger=${srcdir}/version.c 6046fi 6047gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` 6048 6049# Internationalization 6050PACKAGE=gcc 6051VERSION="$gcc_version" 6052cat >> confdefs.h <<EOF 6053#define PACKAGE "$PACKAGE" 6054EOF 6055 6056cat >> confdefs.h <<EOF 6057#define VERSION "$VERSION" 6058EOF 6059 6060 6061 6062 6063ALL_LINGUAS="en_UK" 6064 6065# NLS support is still experimental, so disable it by default for now. 6066# Check whether --enable-nls or --disable-nls was given. 6067if test "${enable_nls+set}" = set; then 6068 enableval="$enable_nls" 6069 : 6070else 6071 enable_nls=no 6072fi 6073 6074 6075 6076 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 6077echo "configure:6063: checking for strerror in -lcposix" >&5 6078ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` 6079if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6080 echo $ac_n "(cached) $ac_c" 1>&6 6081else 6082 ac_save_LIBS="$LIBS" 6083LIBS="-lcposix $LIBS" 6084cat > conftest.$ac_ext <<EOF 6085#line 6071 "configure" 6086#include "confdefs.h" 6087/* Override any gcc2 internal prototype to avoid an error. */ 6088/* We use char because int might match the return type of a gcc2 6089 builtin and then its argument prototype would still apply. */ 6090char strerror(); 6091 6092int main() { 6093strerror() 6094; return 0; } 6095EOF 6096if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6097 rm -rf conftest* 6098 eval "ac_cv_lib_$ac_lib_var=yes" 6099else 6100 echo "configure: failed program was:" >&5 6101 cat conftest.$ac_ext >&5 6102 rm -rf conftest* 6103 eval "ac_cv_lib_$ac_lib_var=no" 6104fi 6105rm -f conftest* 6106LIBS="$ac_save_LIBS" 6107 6108fi 6109if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6110 echo "$ac_t""yes" 1>&6 6111 LIBS="$LIBS -lcposix" 6112else 6113 echo "$ac_t""no" 1>&6 6114fi 6115 6116 6117 6118echo $ac_n "checking for working const""... $ac_c" 1>&6 6119echo "configure:6105: checking for working const" >&5 6120if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 6121 echo $ac_n "(cached) $ac_c" 1>&6 6122else 6123 cat > conftest.$ac_ext <<EOF 6124#line 6110 "configure" 6125#include "confdefs.h" 6126 6127int main() { 6128 6129/* Ultrix mips cc rejects this. */ 6130typedef int charset[2]; const charset x; 6131/* SunOS 4.1.1 cc rejects this. */ 6132char const *const *ccp; 6133char **p; 6134/* NEC SVR4.0.2 mips cc rejects this. */ 6135struct point {int x, y;}; 6136static struct point const zero = {0,0}; 6137/* AIX XL C 1.02.0.0 rejects this. 6138 It does not let you subtract one const X* pointer from another in an arm 6139 of an if-expression whose if-part is not a constant expression */ 6140const char *g = "string"; 6141ccp = &g + (g ? g-g : 0); 6142/* HPUX 7.0 cc rejects these. */ 6143++ccp; 6144p = (char**) ccp; 6145ccp = (char const *const *) p; 6146{ /* SCO 3.2v4 cc rejects this. */ 6147 char *t; 6148 char const *s = 0 ? (char *) 0 : (char const *) 0; 6149 6150 *t++ = 0; 6151} 6152{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6153 int x[] = {25, 17}; 6154 const int *foo = &x[0]; 6155 ++foo; 6156} 6157{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6158 typedef const int *iptr; 6159 iptr p = 0; 6160 ++p; 6161} 6162{ /* AIX XL C 1.02.0.0 rejects this saying 6163 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6164 struct s { int j; const int *ap[3]; }; 6165 struct s *b; b->j = 5; 6166} 6167{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6168 const int foo = 10; 6169} 6170 6171; return 0; } 6172EOF 6173if { (eval echo configure:6159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6174 rm -rf conftest* 6175 ac_cv_c_const=yes 6176else 6177 echo "configure: failed program was:" >&5 6178 cat conftest.$ac_ext >&5 6179 rm -rf conftest* 6180 ac_cv_c_const=no 6181fi 6182rm -f conftest* 6183fi 6184 6185echo "$ac_t""$ac_cv_c_const" 1>&6 6186if test $ac_cv_c_const = no; then 6187 cat >> confdefs.h <<\EOF 6188#define const 6189EOF 6190 6191fi 6192 6193echo $ac_n "checking for inline""... $ac_c" 1>&6 6194echo "configure:6180: checking for inline" >&5 6195if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 6196 echo $ac_n "(cached) $ac_c" 1>&6 6197else 6198 ac_cv_c_inline=no 6199for ac_kw in inline __inline__ __inline; do 6200 cat > conftest.$ac_ext <<EOF 6201#line 6187 "configure" 6202#include "confdefs.h" 6203 6204int main() { 6205} $ac_kw foo() { 6206; return 0; } 6207EOF 6208if { (eval echo configure:6194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6209 rm -rf conftest* 6210 ac_cv_c_inline=$ac_kw; break 6211else 6212 echo "configure: failed program was:" >&5 6213 cat conftest.$ac_ext >&5 6214fi 6215rm -f conftest* 6216done 6217 6218fi 6219 6220echo "$ac_t""$ac_cv_c_inline" 1>&6 6221case "$ac_cv_c_inline" in 6222 inline | yes) ;; 6223 no) cat >> confdefs.h <<\EOF 6224#define inline 6225EOF 6226 ;; 6227 *) cat >> confdefs.h <<EOF 6228#define inline $ac_cv_c_inline 6229EOF 6230 ;; 6231esac 6232 6233echo $ac_n "checking for off_t""... $ac_c" 1>&6 6234echo "configure:6220: checking for off_t" >&5 6235if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 6236 echo $ac_n "(cached) $ac_c" 1>&6 6237else 6238 cat > conftest.$ac_ext <<EOF 6239#line 6225 "configure" 6240#include "confdefs.h" 6241#include <sys/types.h> 6242#if STDC_HEADERS 6243#include <stdlib.h> 6244#include <stddef.h> 6245#endif 6246EOF 6247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6248 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6249 rm -rf conftest* 6250 ac_cv_type_off_t=yes 6251else 6252 rm -rf conftest* 6253 ac_cv_type_off_t=no 6254fi 6255rm -f conftest* 6256 6257fi 6258echo "$ac_t""$ac_cv_type_off_t" 1>&6 6259if test $ac_cv_type_off_t = no; then 6260 cat >> confdefs.h <<\EOF 6261#define off_t long 6262EOF 6263 6264fi 6265 6266echo $ac_n "checking for size_t""... $ac_c" 1>&6 6267echo "configure:6253: checking for size_t" >&5 6268if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 6269 echo $ac_n "(cached) $ac_c" 1>&6 6270else 6271 cat > conftest.$ac_ext <<EOF 6272#line 6258 "configure" 6273#include "confdefs.h" 6274#include <sys/types.h> 6275#if STDC_HEADERS 6276#include <stdlib.h> 6277#include <stddef.h> 6278#endif 6279EOF 6280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6281 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6282 rm -rf conftest* 6283 ac_cv_type_size_t=yes 6284else 6285 rm -rf conftest* 6286 ac_cv_type_size_t=no 6287fi 6288rm -f conftest* 6289 6290fi 6291echo "$ac_t""$ac_cv_type_size_t" 1>&6 6292if test $ac_cv_type_size_t = no; then 6293 cat >> confdefs.h <<\EOF 6294#define size_t unsigned 6295EOF 6296 6297fi 6298 6299# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6300# for constant arguments. Useless! 6301echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 6302echo "configure:6288: checking for working alloca.h" >&5 6303if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 6304 echo $ac_n "(cached) $ac_c" 1>&6 6305else 6306 cat > conftest.$ac_ext <<EOF 6307#line 6293 "configure" 6308#include "confdefs.h" 6309#include <alloca.h> 6310int main() { 6311char *p = alloca(2 * sizeof(int)); 6312; return 0; } 6313EOF 6314if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6315 rm -rf conftest* 6316 ac_cv_header_alloca_h=yes 6317else 6318 echo "configure: failed program was:" >&5 6319 cat conftest.$ac_ext >&5 6320 rm -rf conftest* 6321 ac_cv_header_alloca_h=no 6322fi 6323rm -f conftest* 6324fi 6325 6326echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 6327if test $ac_cv_header_alloca_h = yes; then 6328 cat >> confdefs.h <<\EOF 6329#define HAVE_ALLOCA_H 1 6330EOF 6331 6332fi 6333 6334echo $ac_n "checking for alloca""... $ac_c" 1>&6 6335echo "configure:6321: checking for alloca" >&5 6336if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 6337 echo $ac_n "(cached) $ac_c" 1>&6 6338else 6339 cat > conftest.$ac_ext <<EOF 6340#line 6326 "configure" 6341#include "confdefs.h" 6342 6343#ifdef __GNUC__ 6344# define alloca __builtin_alloca 6345#else 6346# ifdef _MSC_VER 6347# include <malloc.h> 6348# define alloca _alloca 6349# else 6350# if HAVE_ALLOCA_H 6351# include <alloca.h> 6352# else 6353# ifdef _AIX 6354 #pragma alloca 6355# else 6356# ifndef alloca /* predefined by HP cc +Olibcalls */ 6357char *alloca (); 6358# endif 6359# endif 6360# endif 6361# endif 6362#endif 6363 6364int main() { 6365char *p = (char *) alloca(1); 6366; return 0; } 6367EOF 6368if { (eval echo configure:6354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6369 rm -rf conftest* 6370 ac_cv_func_alloca_works=yes 6371else 6372 echo "configure: failed program was:" >&5 6373 cat conftest.$ac_ext >&5 6374 rm -rf conftest* 6375 ac_cv_func_alloca_works=no 6376fi 6377rm -f conftest* 6378fi 6379 6380echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 6381if test $ac_cv_func_alloca_works = yes; then 6382 cat >> confdefs.h <<\EOF 6383#define HAVE_ALLOCA 1 6384EOF 6385 6386fi 6387 6388if test $ac_cv_func_alloca_works = no; then 6389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6390 # that cause trouble. Some versions do not even contain alloca or 6391 # contain a buggy version. If you still want to use their alloca, 6392 # use ar to extract alloca.o from them instead of compiling alloca.c. 6393 ALLOCA=alloca.${ac_objext} 6394 cat >> confdefs.h <<\EOF 6395#define C_ALLOCA 1 6396EOF 6397 6398 6399echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 6400echo "configure:6386: checking whether alloca needs Cray hooks" >&5 6401if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 6402 echo $ac_n "(cached) $ac_c" 1>&6 6403else 6404 cat > conftest.$ac_ext <<EOF 6405#line 6391 "configure" 6406#include "confdefs.h" 6407#if defined(CRAY) && ! defined(CRAY2) 6408webecray 6409#else 6410wenotbecray 6411#endif 6412 6413EOF 6414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6415 egrep "webecray" >/dev/null 2>&1; then 6416 rm -rf conftest* 6417 ac_cv_os_cray=yes 6418else 6419 rm -rf conftest* 6420 ac_cv_os_cray=no 6421fi 6422rm -f conftest* 6423 6424fi 6425 6426echo "$ac_t""$ac_cv_os_cray" 1>&6 6427if test $ac_cv_os_cray = yes; then 6428for ac_func in _getb67 GETB67 getb67; do 6429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6430echo "configure:6416: checking for $ac_func" >&5 6431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6432 echo $ac_n "(cached) $ac_c" 1>&6 6433else 6434 cat > conftest.$ac_ext <<EOF 6435#line 6421 "configure" 6436#include "confdefs.h" 6437/* System header to define __stub macros and hopefully few prototypes, 6438 which can conflict with char $ac_func(); below. */ 6439#include <assert.h> 6440/* Override any gcc2 internal prototype to avoid an error. */ 6441/* We use char because int might match the return type of a gcc2 6442 builtin and then its argument prototype would still apply. */ 6443char $ac_func(); 6444 6445int main() { 6446 6447/* The GNU C library defines this for functions which it implements 6448 to always fail with ENOSYS. Some functions are actually named 6449 something starting with __ and the normal name is an alias. */ 6450#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6451choke me 6452#else 6453$ac_func(); 6454#endif 6455 6456; return 0; } 6457EOF 6458if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6459 rm -rf conftest* 6460 eval "ac_cv_func_$ac_func=yes" 6461else 6462 echo "configure: failed program was:" >&5 6463 cat conftest.$ac_ext >&5 6464 rm -rf conftest* 6465 eval "ac_cv_func_$ac_func=no" 6466fi 6467rm -f conftest* 6468fi 6469 6470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6471 echo "$ac_t""yes" 1>&6 6472 cat >> confdefs.h <<EOF 6473#define CRAY_STACKSEG_END $ac_func 6474EOF 6475 6476 break 6477else 6478 echo "$ac_t""no" 1>&6 6479fi 6480 6481done 6482fi 6483 6484echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 6485echo "configure:6471: checking stack direction for C alloca" >&5 6486if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 6487 echo $ac_n "(cached) $ac_c" 1>&6 6488else 6489 if test "$cross_compiling" = yes; then 6490 ac_cv_c_stack_direction=0 6491else 6492 cat > conftest.$ac_ext <<EOF 6493#line 6479 "configure" 6494#include "confdefs.h" 6495find_stack_direction () 6496{ 6497 static char *addr = 0; 6498 auto char dummy; 6499 if (addr == 0) 6500 { 6501 addr = &dummy; 6502 return find_stack_direction (); 6503 } 6504 else 6505 return (&dummy > addr) ? 1 : -1; 6506} 6507main () 6508{ 6509 exit (find_stack_direction() < 0); 6510} 6511EOF 6512if { (eval echo configure:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6513then 6514 ac_cv_c_stack_direction=1 6515else 6516 echo "configure: failed program was:" >&5 6517 cat conftest.$ac_ext >&5 6518 rm -fr conftest* 6519 ac_cv_c_stack_direction=-1 6520fi 6521rm -fr conftest* 6522fi 6523 6524fi 6525 6526echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 6527cat >> confdefs.h <<EOF 6528#define STACK_DIRECTION $ac_cv_c_stack_direction 6529EOF 6530 6531fi 6532 6533for ac_hdr in unistd.h 6534do 6535ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6536echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6537echo "configure:6523: checking for $ac_hdr" >&5 6538if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6539 echo $ac_n "(cached) $ac_c" 1>&6 6540else 6541 cat > conftest.$ac_ext <<EOF 6542#line 6528 "configure" 6543#include "confdefs.h" 6544#include <$ac_hdr> 6545EOF 6546ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6547{ (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6548ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6549if test -z "$ac_err"; then 6550 rm -rf conftest* 6551 eval "ac_cv_header_$ac_safe=yes" 6552else 6553 echo "$ac_err" >&5 6554 echo "configure: failed program was:" >&5 6555 cat conftest.$ac_ext >&5 6556 rm -rf conftest* 6557 eval "ac_cv_header_$ac_safe=no" 6558fi 6559rm -f conftest* 6560fi 6561if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6562 echo "$ac_t""yes" 1>&6 6563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6564 cat >> confdefs.h <<EOF 6565#define $ac_tr_hdr 1 6566EOF 6567 6568else 6569 echo "$ac_t""no" 1>&6 6570fi 6571done 6572 6573for ac_func in getpagesize 6574do 6575echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6576echo "configure:6562: checking for $ac_func" >&5 6577if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6578 echo $ac_n "(cached) $ac_c" 1>&6 6579else 6580 cat > conftest.$ac_ext <<EOF 6581#line 6567 "configure" 6582#include "confdefs.h" 6583/* System header to define __stub macros and hopefully few prototypes, 6584 which can conflict with char $ac_func(); below. */ 6585#include <assert.h> 6586/* Override any gcc2 internal prototype to avoid an error. */ 6587/* We use char because int might match the return type of a gcc2 6588 builtin and then its argument prototype would still apply. */ 6589char $ac_func(); 6590 6591int main() { 6592 6593/* The GNU C library defines this for functions which it implements 6594 to always fail with ENOSYS. Some functions are actually named 6595 something starting with __ and the normal name is an alias. */ 6596#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6597choke me 6598#else 6599$ac_func(); 6600#endif 6601 6602; return 0; } 6603EOF 6604if { (eval echo configure:6590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6605 rm -rf conftest* 6606 eval "ac_cv_func_$ac_func=yes" 6607else 6608 echo "configure: failed program was:" >&5 6609 cat conftest.$ac_ext >&5 6610 rm -rf conftest* 6611 eval "ac_cv_func_$ac_func=no" 6612fi 6613rm -f conftest* 6614fi 6615 6616if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6617 echo "$ac_t""yes" 1>&6 6618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6619 cat >> confdefs.h <<EOF 6620#define $ac_tr_func 1 6621EOF 6622 6623else 6624 echo "$ac_t""no" 1>&6 6625fi 6626done 6627 6628echo $ac_n "checking for working mmap""... $ac_c" 1>&6 6629echo "configure:6615: checking for working mmap" >&5 6630if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 6631 echo $ac_n "(cached) $ac_c" 1>&6 6632else 6633 if test "$cross_compiling" = yes; then 6634 ac_cv_func_mmap_fixed_mapped=no 6635else 6636 cat > conftest.$ac_ext <<EOF 6637#line 6623 "configure" 6638#include "confdefs.h" 6639 6640/* Thanks to Mike Haertel and Jim Avera for this test. 6641 Here is a matrix of mmap possibilities: 6642 mmap private not fixed 6643 mmap private fixed at somewhere currently unmapped 6644 mmap private fixed at somewhere already mapped 6645 mmap shared not fixed 6646 mmap shared fixed at somewhere currently unmapped 6647 mmap shared fixed at somewhere already mapped 6648 For private mappings, we should verify that changes cannot be read() 6649 back from the file, nor mmap's back from the file at a different 6650 address. (There have been systems where private was not correctly 6651 implemented like the infamous i386 svr4.0, and systems where the 6652 VM page cache was not coherent with the filesystem buffer cache 6653 like early versions of FreeBSD and possibly contemporary NetBSD.) 6654 For shared mappings, we should conversely verify that changes get 6655 propogated back to all the places they're supposed to be. 6656 6657 Grep wants private fixed already mapped. 6658 The main things grep needs to know about mmap are: 6659 * does it exist and is it safe to write into the mmap'd area 6660 * how to use it (BSD variants) */ 6661#include <sys/types.h> 6662#include <fcntl.h> 6663#include <sys/mman.h> 6664 6665/* This mess was copied from the GNU getpagesize.h. */ 6666#ifndef HAVE_GETPAGESIZE 6667# ifdef HAVE_UNISTD_H 6668# include <unistd.h> 6669# endif 6670 6671/* Assume that all systems that can run configure have sys/param.h. */ 6672# ifndef HAVE_SYS_PARAM_H 6673# define HAVE_SYS_PARAM_H 1 6674# endif 6675 6676# ifdef _SC_PAGESIZE 6677# define getpagesize() sysconf(_SC_PAGESIZE) 6678# else /* no _SC_PAGESIZE */ 6679# ifdef HAVE_SYS_PARAM_H 6680# include <sys/param.h> 6681# ifdef EXEC_PAGESIZE 6682# define getpagesize() EXEC_PAGESIZE 6683# else /* no EXEC_PAGESIZE */ 6684# ifdef NBPG 6685# define getpagesize() NBPG * CLSIZE 6686# ifndef CLSIZE 6687# define CLSIZE 1 6688# endif /* no CLSIZE */ 6689# else /* no NBPG */ 6690# ifdef NBPC 6691# define getpagesize() NBPC 6692# else /* no NBPC */ 6693# ifdef PAGESIZE 6694# define getpagesize() PAGESIZE 6695# endif /* PAGESIZE */ 6696# endif /* no NBPC */ 6697# endif /* no NBPG */ 6698# endif /* no EXEC_PAGESIZE */ 6699# else /* no HAVE_SYS_PARAM_H */ 6700# define getpagesize() 8192 /* punt totally */ 6701# endif /* no HAVE_SYS_PARAM_H */ 6702# endif /* no _SC_PAGESIZE */ 6703 6704#endif /* no HAVE_GETPAGESIZE */ 6705 6706#ifdef __cplusplus 6707extern "C" { void *malloc(unsigned); } 6708#else 6709char *malloc(); 6710#endif 6711 6712int 6713main() 6714{ 6715 char *data, *data2, *data3; 6716 int i, pagesize; 6717 int fd; 6718 6719 pagesize = getpagesize(); 6720 6721 /* 6722 * First, make a file with some known garbage in it. 6723 */ 6724 data = malloc(pagesize); 6725 if (!data) 6726 exit(1); 6727 for (i = 0; i < pagesize; ++i) 6728 *(data + i) = rand(); 6729 umask(0); 6730 fd = creat("conftestmmap", 0600); 6731 if (fd < 0) 6732 exit(1); 6733 if (write(fd, data, pagesize) != pagesize) 6734 exit(1); 6735 close(fd); 6736 6737 /* 6738 * Next, try to mmap the file at a fixed address which 6739 * already has something else allocated at it. If we can, 6740 * also make sure that we see the same garbage. 6741 */ 6742 fd = open("conftestmmap", O_RDWR); 6743 if (fd < 0) 6744 exit(1); 6745 data2 = malloc(2 * pagesize); 6746 if (!data2) 6747 exit(1); 6748 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 6749 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 6750 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6751 exit(1); 6752 for (i = 0; i < pagesize; ++i) 6753 if (*(data + i) != *(data2 + i)) 6754 exit(1); 6755 6756 /* 6757 * Finally, make sure that changes to the mapped area 6758 * do not percolate back to the file as seen by read(). 6759 * (This is a bug on some variants of i386 svr4.0.) 6760 */ 6761 for (i = 0; i < pagesize; ++i) 6762 *(data2 + i) = *(data2 + i) + 1; 6763 data3 = malloc(pagesize); 6764 if (!data3) 6765 exit(1); 6766 if (read(fd, data3, pagesize) != pagesize) 6767 exit(1); 6768 for (i = 0; i < pagesize; ++i) 6769 if (*(data + i) != *(data3 + i)) 6770 exit(1); 6771 close(fd); 6772 unlink("conftestmmap"); 6773 exit(0); 6774} 6775 6776EOF 6777if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6778then 6779 ac_cv_func_mmap_fixed_mapped=yes 6780else 6781 echo "configure: failed program was:" >&5 6782 cat conftest.$ac_ext >&5 6783 rm -fr conftest* 6784 ac_cv_func_mmap_fixed_mapped=no 6785fi 6786rm -fr conftest* 6787fi 6788 6789fi 6790 6791echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 6792if test $ac_cv_func_mmap_fixed_mapped = yes; then 6793 cat >> confdefs.h <<\EOF 6794#define HAVE_MMAP 1 6795EOF 6796 6797fi 6798 6799 6800 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 6801unistd.h sys/param.h 6802do 6803ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6804echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6805echo "configure:6791: checking for $ac_hdr" >&5 6806if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6807 echo $ac_n "(cached) $ac_c" 1>&6 6808else 6809 cat > conftest.$ac_ext <<EOF 6810#line 6796 "configure" 6811#include "confdefs.h" 6812#include <$ac_hdr> 6813EOF 6814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6815{ (eval echo configure:6801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6817if test -z "$ac_err"; then 6818 rm -rf conftest* 6819 eval "ac_cv_header_$ac_safe=yes" 6820else 6821 echo "$ac_err" >&5 6822 echo "configure: failed program was:" >&5 6823 cat conftest.$ac_ext >&5 6824 rm -rf conftest* 6825 eval "ac_cv_header_$ac_safe=no" 6826fi 6827rm -f conftest* 6828fi 6829if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6830 echo "$ac_t""yes" 1>&6 6831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6832 cat >> confdefs.h <<EOF 6833#define $ac_tr_hdr 1 6834EOF 6835 6836else 6837 echo "$ac_t""no" 1>&6 6838fi 6839done 6840 6841 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 6842strdup __argz_count __argz_stringify __argz_next 6843do 6844echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6845echo "configure:6831: checking for $ac_func" >&5 6846if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6847 echo $ac_n "(cached) $ac_c" 1>&6 6848else 6849 cat > conftest.$ac_ext <<EOF 6850#line 6836 "configure" 6851#include "confdefs.h" 6852/* System header to define __stub macros and hopefully few prototypes, 6853 which can conflict with char $ac_func(); below. */ 6854#include <assert.h> 6855/* Override any gcc2 internal prototype to avoid an error. */ 6856/* We use char because int might match the return type of a gcc2 6857 builtin and then its argument prototype would still apply. */ 6858char $ac_func(); 6859 6860int main() { 6861 6862/* The GNU C library defines this for functions which it implements 6863 to always fail with ENOSYS. Some functions are actually named 6864 something starting with __ and the normal name is an alias. */ 6865#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6866choke me 6867#else 6868$ac_func(); 6869#endif 6870 6871; return 0; } 6872EOF 6873if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6874 rm -rf conftest* 6875 eval "ac_cv_func_$ac_func=yes" 6876else 6877 echo "configure: failed program was:" >&5 6878 cat conftest.$ac_ext >&5 6879 rm -rf conftest* 6880 eval "ac_cv_func_$ac_func=no" 6881fi 6882rm -f conftest* 6883fi 6884 6885if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6886 echo "$ac_t""yes" 1>&6 6887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6888 cat >> confdefs.h <<EOF 6889#define $ac_tr_func 1 6890EOF 6891 6892else 6893 echo "$ac_t""no" 1>&6 6894fi 6895done 6896 6897 6898 if test "${ac_cv_func_stpcpy+set}" != "set"; then 6899 for ac_func in stpcpy 6900do 6901echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6902echo "configure:6888: checking for $ac_func" >&5 6903if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6904 echo $ac_n "(cached) $ac_c" 1>&6 6905else 6906 cat > conftest.$ac_ext <<EOF 6907#line 6893 "configure" 6908#include "confdefs.h" 6909/* System header to define __stub macros and hopefully few prototypes, 6910 which can conflict with char $ac_func(); below. */ 6911#include <assert.h> 6912/* Override any gcc2 internal prototype to avoid an error. */ 6913/* We use char because int might match the return type of a gcc2 6914 builtin and then its argument prototype would still apply. */ 6915char $ac_func(); 6916 6917int main() { 6918 6919/* The GNU C library defines this for functions which it implements 6920 to always fail with ENOSYS. Some functions are actually named 6921 something starting with __ and the normal name is an alias. */ 6922#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6923choke me 6924#else 6925$ac_func(); 6926#endif 6927 6928; return 0; } 6929EOF 6930if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6931 rm -rf conftest* 6932 eval "ac_cv_func_$ac_func=yes" 6933else 6934 echo "configure: failed program was:" >&5 6935 cat conftest.$ac_ext >&5 6936 rm -rf conftest* 6937 eval "ac_cv_func_$ac_func=no" 6938fi 6939rm -f conftest* 6940fi 6941 6942if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6943 echo "$ac_t""yes" 1>&6 6944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6945 cat >> confdefs.h <<EOF 6946#define $ac_tr_func 1 6947EOF 6948 6949else 6950 echo "$ac_t""no" 1>&6 6951fi 6952done 6953 6954 fi 6955 if test "${ac_cv_func_stpcpy}" = "yes"; then 6956 cat >> confdefs.h <<\EOF 6957#define HAVE_STPCPY 1 6958EOF 6959 6960 fi 6961 6962 if test $ac_cv_header_locale_h = yes; then 6963 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 6964echo "configure:6950: checking for LC_MESSAGES" >&5 6965if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 6966 echo $ac_n "(cached) $ac_c" 1>&6 6967else 6968 cat > conftest.$ac_ext <<EOF 6969#line 6955 "configure" 6970#include "confdefs.h" 6971#include <locale.h> 6972int main() { 6973return LC_MESSAGES 6974; return 0; } 6975EOF 6976if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6977 rm -rf conftest* 6978 am_cv_val_LC_MESSAGES=yes 6979else 6980 echo "configure: failed program was:" >&5 6981 cat conftest.$ac_ext >&5 6982 rm -rf conftest* 6983 am_cv_val_LC_MESSAGES=no 6984fi 6985rm -f conftest* 6986fi 6987 6988echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 6989 if test $am_cv_val_LC_MESSAGES = yes; then 6990 cat >> confdefs.h <<\EOF 6991#define HAVE_LC_MESSAGES 1 6992EOF 6993 6994 fi 6995 fi 6996 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 6997echo "configure:6983: checking whether NLS is requested" >&5 6998 # Check whether --enable-nls or --disable-nls was given. 6999if test "${enable_nls+set}" = set; then 7000 enableval="$enable_nls" 7001 USE_NLS=$enableval 7002else 7003 USE_NLS=yes 7004fi 7005 7006 echo "$ac_t""$USE_NLS" 1>&6 7007 7008 7009 USE_INCLUDED_LIBINTL=no 7010 7011 if test "$USE_NLS" = "yes"; then 7012 cat >> confdefs.h <<\EOF 7013#define ENABLE_NLS 1 7014EOF 7015 7016 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 7017echo "configure:7003: checking whether included gettext is requested" >&5 7018 # Check whether --with-included-gettext or --without-included-gettext was given. 7019if test "${with_included_gettext+set}" = set; then 7020 withval="$with_included_gettext" 7021 nls_cv_force_use_gnu_gettext=$withval 7022else 7023 nls_cv_force_use_gnu_gettext=no 7024fi 7025 7026 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 7027 7028 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 7029 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 7030 nls_cv_header_intl= 7031 nls_cv_header_libgt= 7032 CATOBJEXT=NONE 7033 7034 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 7035echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 7036echo "configure:7022: checking for libintl.h" >&5 7037if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7038 echo $ac_n "(cached) $ac_c" 1>&6 7039else 7040 cat > conftest.$ac_ext <<EOF 7041#line 7027 "configure" 7042#include "confdefs.h" 7043#include <libintl.h> 7044EOF 7045ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7046{ (eval echo configure:7032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7047ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7048if test -z "$ac_err"; then 7049 rm -rf conftest* 7050 eval "ac_cv_header_$ac_safe=yes" 7051else 7052 echo "$ac_err" >&5 7053 echo "configure: failed program was:" >&5 7054 cat conftest.$ac_ext >&5 7055 rm -rf conftest* 7056 eval "ac_cv_header_$ac_safe=no" 7057fi 7058rm -f conftest* 7059fi 7060if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7061 echo "$ac_t""yes" 1>&6 7062 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 7063echo "configure:7049: checking for gettext in libc" >&5 7064if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 7065 echo $ac_n "(cached) $ac_c" 1>&6 7066else 7067 cat > conftest.$ac_ext <<EOF 7068#line 7054 "configure" 7069#include "confdefs.h" 7070#include <libintl.h> 7071int main() { 7072return (int) gettext ("") 7073; return 0; } 7074EOF 7075if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7076 rm -rf conftest* 7077 gt_cv_func_gettext_libc=yes 7078else 7079 echo "configure: failed program was:" >&5 7080 cat conftest.$ac_ext >&5 7081 rm -rf conftest* 7082 gt_cv_func_gettext_libc=no 7083fi 7084rm -f conftest* 7085fi 7086 7087echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 7088 7089 if test "$gt_cv_func_gettext_libc" != "yes"; then 7090 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 7091echo "configure:7077: checking for bindtextdomain in -lintl" >&5 7092ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 7093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7094 echo $ac_n "(cached) $ac_c" 1>&6 7095else 7096 ac_save_LIBS="$LIBS" 7097LIBS="-lintl $LIBS" 7098cat > conftest.$ac_ext <<EOF 7099#line 7085 "configure" 7100#include "confdefs.h" 7101/* Override any gcc2 internal prototype to avoid an error. */ 7102/* We use char because int might match the return type of a gcc2 7103 builtin and then its argument prototype would still apply. */ 7104char bindtextdomain(); 7105 7106int main() { 7107bindtextdomain() 7108; return 0; } 7109EOF 7110if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7111 rm -rf conftest* 7112 eval "ac_cv_lib_$ac_lib_var=yes" 7113else 7114 echo "configure: failed program was:" >&5 7115 cat conftest.$ac_ext >&5 7116 rm -rf conftest* 7117 eval "ac_cv_lib_$ac_lib_var=no" 7118fi 7119rm -f conftest* 7120LIBS="$ac_save_LIBS" 7121 7122fi 7123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7124 echo "$ac_t""yes" 1>&6 7125 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 7126echo "configure:7112: checking for gettext in libintl" >&5 7127if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 7128 echo $ac_n "(cached) $ac_c" 1>&6 7129else 7130 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 7131echo "configure:7117: checking for gettext in -lintl" >&5 7132ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` 7133if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7134 echo $ac_n "(cached) $ac_c" 1>&6 7135else 7136 ac_save_LIBS="$LIBS" 7137LIBS="-lintl $LIBS" 7138cat > conftest.$ac_ext <<EOF 7139#line 7125 "configure" 7140#include "confdefs.h" 7141/* Override any gcc2 internal prototype to avoid an error. */ 7142/* We use char because int might match the return type of a gcc2 7143 builtin and then its argument prototype would still apply. */ 7144char gettext(); 7145 7146int main() { 7147gettext() 7148; return 0; } 7149EOF 7150if { (eval echo configure:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7151 rm -rf conftest* 7152 eval "ac_cv_lib_$ac_lib_var=yes" 7153else 7154 echo "configure: failed program was:" >&5 7155 cat conftest.$ac_ext >&5 7156 rm -rf conftest* 7157 eval "ac_cv_lib_$ac_lib_var=no" 7158fi 7159rm -f conftest* 7160LIBS="$ac_save_LIBS" 7161 7162fi 7163if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7164 echo "$ac_t""yes" 1>&6 7165 gt_cv_func_gettext_libintl=yes 7166else 7167 echo "$ac_t""no" 1>&6 7168gt_cv_func_gettext_libintl=no 7169fi 7170 7171fi 7172 7173echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 7174else 7175 echo "$ac_t""no" 1>&6 7176fi 7177 7178 fi 7179 7180 if test "$gt_cv_func_gettext_libc" = "yes" \ 7181 || test "$gt_cv_func_gettext_libintl" = "yes"; then 7182 cat >> confdefs.h <<\EOF 7183#define HAVE_GETTEXT 1 7184EOF 7185 7186 # Extract the first word of "msgfmt", so it can be a program name with args. 7187set dummy msgfmt; ac_word=$2 7188echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7189echo "configure:7175: checking for $ac_word" >&5 7190if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 7191 echo $ac_n "(cached) $ac_c" 1>&6 7192else 7193 case "$MSGFMT" in 7194 /*) 7195 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7196 ;; 7197 *) 7198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7199 for ac_dir in $PATH; do 7200 test -z "$ac_dir" && ac_dir=. 7201 if test -f $ac_dir/$ac_word; then 7202 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 7203 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7204 break 7205 fi 7206 fi 7207 done 7208 IFS="$ac_save_ifs" 7209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 7210 ;; 7211esac 7212fi 7213MSGFMT="$ac_cv_path_MSGFMT" 7214if test -n "$MSGFMT"; then 7215 echo "$ac_t""$MSGFMT" 1>&6 7216else 7217 echo "$ac_t""no" 1>&6 7218fi 7219 if test "$MSGFMT" != "no"; then 7220 for ac_func in dcgettext 7221do 7222echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7223echo "configure:7209: checking for $ac_func" >&5 7224if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7225 echo $ac_n "(cached) $ac_c" 1>&6 7226else 7227 cat > conftest.$ac_ext <<EOF 7228#line 7214 "configure" 7229#include "confdefs.h" 7230/* System header to define __stub macros and hopefully few prototypes, 7231 which can conflict with char $ac_func(); below. */ 7232#include <assert.h> 7233/* Override any gcc2 internal prototype to avoid an error. */ 7234/* We use char because int might match the return type of a gcc2 7235 builtin and then its argument prototype would still apply. */ 7236char $ac_func(); 7237 7238int main() { 7239 7240/* The GNU C library defines this for functions which it implements 7241 to always fail with ENOSYS. Some functions are actually named 7242 something starting with __ and the normal name is an alias. */ 7243#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7244choke me 7245#else 7246$ac_func(); 7247#endif 7248 7249; return 0; } 7250EOF 7251if { (eval echo configure:7237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7252 rm -rf conftest* 7253 eval "ac_cv_func_$ac_func=yes" 7254else 7255 echo "configure: failed program was:" >&5 7256 cat conftest.$ac_ext >&5 7257 rm -rf conftest* 7258 eval "ac_cv_func_$ac_func=no" 7259fi 7260rm -f conftest* 7261fi 7262 7263if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7264 echo "$ac_t""yes" 1>&6 7265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7266 cat >> confdefs.h <<EOF 7267#define $ac_tr_func 1 7268EOF 7269 7270else 7271 echo "$ac_t""no" 1>&6 7272fi 7273done 7274 7275 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7276set dummy gmsgfmt; ac_word=$2 7277echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7278echo "configure:7264: checking for $ac_word" >&5 7279if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 7280 echo $ac_n "(cached) $ac_c" 1>&6 7281else 7282 case "$GMSGFMT" in 7283 /*) 7284 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7285 ;; 7286 ?:/*) 7287 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 7288 ;; 7289 *) 7290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 7291 ac_dummy="$PATH" 7292 for ac_dir in $ac_dummy; do 7293 test -z "$ac_dir" && ac_dir=. 7294 if test -f $ac_dir/$ac_word; then 7295 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7296 break 7297 fi 7298 done 7299 IFS="$ac_save_ifs" 7300 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7301 ;; 7302esac 7303fi 7304GMSGFMT="$ac_cv_path_GMSGFMT" 7305if test -n "$GMSGFMT"; then 7306 echo "$ac_t""$GMSGFMT" 1>&6 7307else 7308 echo "$ac_t""no" 1>&6 7309fi 7310 7311 # Extract the first word of "xgettext", so it can be a program name with args. 7312set dummy xgettext; ac_word=$2 7313echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7314echo "configure:7300: checking for $ac_word" >&5 7315if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 7316 echo $ac_n "(cached) $ac_c" 1>&6 7317else 7318 case "$XGETTEXT" in 7319 /*) 7320 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7321 ;; 7322 *) 7323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7324 for ac_dir in $PATH; do 7325 test -z "$ac_dir" && ac_dir=. 7326 if test -f $ac_dir/$ac_word; then 7327 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 7328 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7329 break 7330 fi 7331 fi 7332 done 7333 IFS="$ac_save_ifs" 7334 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7335 ;; 7336esac 7337fi 7338XGETTEXT="$ac_cv_path_XGETTEXT" 7339if test -n "$XGETTEXT"; then 7340 echo "$ac_t""$XGETTEXT" 1>&6 7341else 7342 echo "$ac_t""no" 1>&6 7343fi 7344 7345 cat > conftest.$ac_ext <<EOF 7346#line 7332 "configure" 7347#include "confdefs.h" 7348 7349int main() { 7350extern int _nl_msg_cat_cntr; 7351 return _nl_msg_cat_cntr 7352; return 0; } 7353EOF 7354if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7355 rm -rf conftest* 7356 CATOBJEXT=.gmo 7357 DATADIRNAME=share 7358else 7359 echo "configure: failed program was:" >&5 7360 cat conftest.$ac_ext >&5 7361 rm -rf conftest* 7362 CATOBJEXT=.mo 7363 DATADIRNAME=lib 7364fi 7365rm -f conftest* 7366 INSTOBJEXT=.mo 7367 fi 7368 fi 7369 7370else 7371 echo "$ac_t""no" 1>&6 7372fi 7373 7374 7375 if test "$CATOBJEXT" = "NONE"; then 7376 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 7377echo "configure:7363: checking whether catgets can be used" >&5 7378 # Check whether --with-catgets or --without-catgets was given. 7379if test "${with_catgets+set}" = set; then 7380 withval="$with_catgets" 7381 nls_cv_use_catgets=$withval 7382else 7383 nls_cv_use_catgets=no 7384fi 7385 7386 echo "$ac_t""$nls_cv_use_catgets" 1>&6 7387 7388 if test "$nls_cv_use_catgets" = "yes"; then 7389 echo $ac_n "checking for main in -li""... $ac_c" 1>&6 7390echo "configure:7376: checking for main in -li" >&5 7391ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` 7392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7393 echo $ac_n "(cached) $ac_c" 1>&6 7394else 7395 ac_save_LIBS="$LIBS" 7396LIBS="-li $LIBS" 7397cat > conftest.$ac_ext <<EOF 7398#line 7384 "configure" 7399#include "confdefs.h" 7400 7401int main() { 7402main() 7403; return 0; } 7404EOF 7405if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7406 rm -rf conftest* 7407 eval "ac_cv_lib_$ac_lib_var=yes" 7408else 7409 echo "configure: failed program was:" >&5 7410 cat conftest.$ac_ext >&5 7411 rm -rf conftest* 7412 eval "ac_cv_lib_$ac_lib_var=no" 7413fi 7414rm -f conftest* 7415LIBS="$ac_save_LIBS" 7416 7417fi 7418if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7419 echo "$ac_t""yes" 1>&6 7420 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7422 cat >> confdefs.h <<EOF 7423#define $ac_tr_lib 1 7424EOF 7425 7426 LIBS="-li $LIBS" 7427 7428else 7429 echo "$ac_t""no" 1>&6 7430fi 7431 7432 echo $ac_n "checking for catgets""... $ac_c" 1>&6 7433echo "configure:7419: checking for catgets" >&5 7434if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then 7435 echo $ac_n "(cached) $ac_c" 1>&6 7436else 7437 cat > conftest.$ac_ext <<EOF 7438#line 7424 "configure" 7439#include "confdefs.h" 7440/* System header to define __stub macros and hopefully few prototypes, 7441 which can conflict with char catgets(); below. */ 7442#include <assert.h> 7443/* Override any gcc2 internal prototype to avoid an error. */ 7444/* We use char because int might match the return type of a gcc2 7445 builtin and then its argument prototype would still apply. */ 7446char catgets(); 7447 7448int main() { 7449 7450/* The GNU C library defines this for functions which it implements 7451 to always fail with ENOSYS. Some functions are actually named 7452 something starting with __ and the normal name is an alias. */ 7453#if defined (__stub_catgets) || defined (__stub___catgets) 7454choke me 7455#else 7456catgets(); 7457#endif 7458 7459; return 0; } 7460EOF 7461if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7462 rm -rf conftest* 7463 eval "ac_cv_func_catgets=yes" 7464else 7465 echo "configure: failed program was:" >&5 7466 cat conftest.$ac_ext >&5 7467 rm -rf conftest* 7468 eval "ac_cv_func_catgets=no" 7469fi 7470rm -f conftest* 7471fi 7472 7473if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then 7474 echo "$ac_t""yes" 1>&6 7475 cat >> confdefs.h <<\EOF 7476#define HAVE_CATGETS 1 7477EOF 7478 7479 INTLOBJS="\$(CATOBJS)" 7480 # Extract the first word of "gencat", so it can be a program name with args. 7481set dummy gencat; ac_word=$2 7482echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7483echo "configure:7469: checking for $ac_word" >&5 7484if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then 7485 echo $ac_n "(cached) $ac_c" 1>&6 7486else 7487 case "$GENCAT" in 7488 /*) 7489 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. 7490 ;; 7491 ?:/*) 7492 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. 7493 ;; 7494 *) 7495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 7496 ac_dummy="$PATH" 7497 for ac_dir in $ac_dummy; do 7498 test -z "$ac_dir" && ac_dir=. 7499 if test -f $ac_dir/$ac_word; then 7500 ac_cv_path_GENCAT="$ac_dir/$ac_word" 7501 break 7502 fi 7503 done 7504 IFS="$ac_save_ifs" 7505 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" 7506 ;; 7507esac 7508fi 7509GENCAT="$ac_cv_path_GENCAT" 7510if test -n "$GENCAT"; then 7511 echo "$ac_t""$GENCAT" 1>&6 7512else 7513 echo "$ac_t""no" 1>&6 7514fi 7515 if test "$GENCAT" != "no"; then 7516 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7517set dummy gmsgfmt; ac_word=$2 7518echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7519echo "configure:7505: checking for $ac_word" >&5 7520if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 7521 echo $ac_n "(cached) $ac_c" 1>&6 7522else 7523 case "$GMSGFMT" in 7524 /*) 7525 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7526 ;; 7527 ?:/*) 7528 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 7529 ;; 7530 *) 7531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 7532 ac_dummy="$PATH" 7533 for ac_dir in $ac_dummy; do 7534 test -z "$ac_dir" && ac_dir=. 7535 if test -f $ac_dir/$ac_word; then 7536 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7537 break 7538 fi 7539 done 7540 IFS="$ac_save_ifs" 7541 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 7542 ;; 7543esac 7544fi 7545GMSGFMT="$ac_cv_path_GMSGFMT" 7546if test -n "$GMSGFMT"; then 7547 echo "$ac_t""$GMSGFMT" 1>&6 7548else 7549 echo "$ac_t""no" 1>&6 7550fi 7551 7552 if test "$GMSGFMT" = "no"; then 7553 # Extract the first word of "msgfmt", so it can be a program name with args. 7554set dummy msgfmt; ac_word=$2 7555echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7556echo "configure:7542: checking for $ac_word" >&5 7557if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 7558 echo $ac_n "(cached) $ac_c" 1>&6 7559else 7560 case "$GMSGFMT" in 7561 /*) 7562 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7563 ;; 7564 *) 7565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7566 for ac_dir in $PATH; do 7567 test -z "$ac_dir" && ac_dir=. 7568 if test -f $ac_dir/$ac_word; then 7569 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 7570 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7571 break 7572 fi 7573 fi 7574 done 7575 IFS="$ac_save_ifs" 7576 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 7577 ;; 7578esac 7579fi 7580GMSGFMT="$ac_cv_path_GMSGFMT" 7581if test -n "$GMSGFMT"; then 7582 echo "$ac_t""$GMSGFMT" 1>&6 7583else 7584 echo "$ac_t""no" 1>&6 7585fi 7586 7587 fi 7588 # Extract the first word of "xgettext", so it can be a program name with args. 7589set dummy xgettext; ac_word=$2 7590echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7591echo "configure:7577: checking for $ac_word" >&5 7592if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 7593 echo $ac_n "(cached) $ac_c" 1>&6 7594else 7595 case "$XGETTEXT" in 7596 /*) 7597 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7598 ;; 7599 *) 7600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7601 for ac_dir in $PATH; do 7602 test -z "$ac_dir" && ac_dir=. 7603 if test -f $ac_dir/$ac_word; then 7604 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 7605 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7606 break 7607 fi 7608 fi 7609 done 7610 IFS="$ac_save_ifs" 7611 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7612 ;; 7613esac 7614fi 7615XGETTEXT="$ac_cv_path_XGETTEXT" 7616if test -n "$XGETTEXT"; then 7617 echo "$ac_t""$XGETTEXT" 1>&6 7618else 7619 echo "$ac_t""no" 1>&6 7620fi 7621 7622 USE_INCLUDED_LIBINTL=yes 7623 CATOBJEXT=.cat 7624 INSTOBJEXT=.cat 7625 DATADIRNAME=lib 7626 INTLDEPS='$(top_builddir)/intl/libintl.a' 7627 INTLLIBS=$INTLDEPS 7628 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 7629 nls_cv_header_intl=intl/libintl.h 7630 nls_cv_header_libgt=intl/libgettext.h 7631 fi 7632else 7633 echo "$ac_t""no" 1>&6 7634fi 7635 7636 fi 7637 fi 7638 7639 if test "$CATOBJEXT" = "NONE"; then 7640 nls_cv_use_gnu_gettext=yes 7641 fi 7642 fi 7643 7644 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7645 INTLOBJS="\$(GETTOBJS)" 7646 # Extract the first word of "msgfmt", so it can be a program name with args. 7647set dummy msgfmt; ac_word=$2 7648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7649echo "configure:7635: checking for $ac_word" >&5 7650if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 7651 echo $ac_n "(cached) $ac_c" 1>&6 7652else 7653 case "$MSGFMT" in 7654 /*) 7655 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7656 ;; 7657 *) 7658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7659 for ac_dir in $PATH; do 7660 test -z "$ac_dir" && ac_dir=. 7661 if test -f $ac_dir/$ac_word; then 7662 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 7663 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7664 break 7665 fi 7666 fi 7667 done 7668 IFS="$ac_save_ifs" 7669 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 7670 ;; 7671esac 7672fi 7673MSGFMT="$ac_cv_path_MSGFMT" 7674if test -n "$MSGFMT"; then 7675 echo "$ac_t""$MSGFMT" 1>&6 7676else 7677 echo "$ac_t""no" 1>&6 7678fi 7679 7680 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7681set dummy gmsgfmt; ac_word=$2 7682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7683echo "configure:7669: checking for $ac_word" >&5 7684if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 7685 echo $ac_n "(cached) $ac_c" 1>&6 7686else 7687 case "$GMSGFMT" in 7688 /*) 7689 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7690 ;; 7691 ?:/*) 7692 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 7693 ;; 7694 *) 7695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 7696 ac_dummy="$PATH" 7697 for ac_dir in $ac_dummy; do 7698 test -z "$ac_dir" && ac_dir=. 7699 if test -f $ac_dir/$ac_word; then 7700 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7701 break 7702 fi 7703 done 7704 IFS="$ac_save_ifs" 7705 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7706 ;; 7707esac 7708fi 7709GMSGFMT="$ac_cv_path_GMSGFMT" 7710if test -n "$GMSGFMT"; then 7711 echo "$ac_t""$GMSGFMT" 1>&6 7712else 7713 echo "$ac_t""no" 1>&6 7714fi 7715 7716 # Extract the first word of "xgettext", so it can be a program name with args. 7717set dummy xgettext; ac_word=$2 7718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 7719echo "configure:7705: checking for $ac_word" >&5 7720if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 7721 echo $ac_n "(cached) $ac_c" 1>&6 7722else 7723 case "$XGETTEXT" in 7724 /*) 7725 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7726 ;; 7727 *) 7728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7729 for ac_dir in $PATH; do 7730 test -z "$ac_dir" && ac_dir=. 7731 if test -f $ac_dir/$ac_word; then 7732 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 7733 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7734 break 7735 fi 7736 fi 7737 done 7738 IFS="$ac_save_ifs" 7739 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7740 ;; 7741esac 7742fi 7743XGETTEXT="$ac_cv_path_XGETTEXT" 7744if test -n "$XGETTEXT"; then 7745 echo "$ac_t""$XGETTEXT" 1>&6 7746else 7747 echo "$ac_t""no" 1>&6 7748fi 7749 7750 7751 USE_INCLUDED_LIBINTL=yes 7752 CATOBJEXT=.gmo 7753 INSTOBJEXT=.mo 7754 DATADIRNAME=share 7755 INTLDEPS='$(top_builddir)/intl/libintl.a' 7756 INTLLIBS=$INTLDEPS 7757 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 7758 nls_cv_header_intl=intl/libintl.h 7759 nls_cv_header_libgt=intl/libgettext.h 7760 fi 7761 7762 if test "$XGETTEXT" != ":"; then 7763 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 7764 : ; 7765 else 7766 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 7767 XGETTEXT=":" 7768 fi 7769 fi 7770 7771 # We need to process the po/ directory. 7772 POSUB=po 7773 else 7774 DATADIRNAME=share 7775 nls_cv_header_intl=intl/libintl.h 7776 nls_cv_header_libgt=intl/libgettext.h 7777 fi 7778 7779 7780 7781 7782 # If this is used in GNU gettext we have to set USE_NLS to `yes' 7783 # because some of the sources are only built for this goal. 7784 if test "$PACKAGE" = gettext; then 7785 USE_NLS=yes 7786 USE_INCLUDED_LIBINTL=yes 7787 fi 7788 7789 for lang in $ALL_LINGUAS; do 7790 GMOFILES="$GMOFILES $lang.gmo" 7791 POFILES="$POFILES $lang.po" 7792 done 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 if test "x$CATOBJEXT" != "x"; then 7808 if test "x$ALL_LINGUAS" = "x"; then 7809 LINGUAS= 7810 else 7811 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 7812echo "configure:7798: checking for catalogs to be installed" >&5 7813 NEW_LINGUAS= 7814 for lang in ${LINGUAS=$ALL_LINGUAS}; do 7815 case "$ALL_LINGUAS" in 7816 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 7817 esac 7818 done 7819 LINGUAS=$NEW_LINGUAS 7820 echo "$ac_t""$LINGUAS" 1>&6 7821 fi 7822 7823 if test -n "$LINGUAS"; then 7824 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 7825 fi 7826 fi 7827 7828 if test $ac_cv_header_locale_h = yes; then 7829 INCLUDE_LOCALE_H="#include <locale.h>" 7830 else 7831 INCLUDE_LOCALE_H="\ 7832/* The system does not provide the header <locale.h>. Take care yourself. */" 7833 fi 7834 7835 7836 test -d intl || mkdir intl 7837 if test "$CATOBJEXT" = ".cat"; then 7838 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 7839echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 7840echo "configure:7826: checking for linux/version.h" >&5 7841if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7842 echo $ac_n "(cached) $ac_c" 1>&6 7843else 7844 cat > conftest.$ac_ext <<EOF 7845#line 7831 "configure" 7846#include "confdefs.h" 7847#include <linux/version.h> 7848EOF 7849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7850{ (eval echo configure:7836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7852if test -z "$ac_err"; then 7853 rm -rf conftest* 7854 eval "ac_cv_header_$ac_safe=yes" 7855else 7856 echo "$ac_err" >&5 7857 echo "configure: failed program was:" >&5 7858 cat conftest.$ac_ext >&5 7859 rm -rf conftest* 7860 eval "ac_cv_header_$ac_safe=no" 7861fi 7862rm -f conftest* 7863fi 7864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7865 echo "$ac_t""yes" 1>&6 7866 msgformat=linux 7867else 7868 echo "$ac_t""no" 1>&6 7869msgformat=xopen 7870fi 7871 7872 7873 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed 7874 fi 7875 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 7876 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed 7877 7878 if test "$PACKAGE" = "gettext"; then 7879 GT_NO="#NO#" 7880 GT_YES= 7881 else 7882 GT_NO= 7883 GT_YES="#YES#" 7884 fi 7885 7886 7887 7888 MKINSTALLDIRS= 7889 if test -n "$ac_aux_dir"; then 7890 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 7891 fi 7892 if test -z "$MKINSTALLDIRS"; then 7893 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7894 fi 7895 7896 7897 l= 7898 7899 7900 test -d po || mkdir po 7901 if test "x$srcdir" != "x."; then 7902 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 7903 posrcprefix="$srcdir/" 7904 else 7905 posrcprefix="../$srcdir/" 7906 fi 7907 else 7908 posrcprefix="../" 7909 fi 7910 rm -f po/POTFILES 7911 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 7912 < $srcdir/po/POTFILES.in > po/POTFILES 7913 7914XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" 7915 7916# Get an absolute path to the GCC top-level source directory 7917holddir=`pwd` 7918cd $srcdir 7919topdir=`pwd` 7920cd $holddir 7921 7922# Conditionalize the makefile for this host machine. 7923# Make-host contains the concatenation of all host makefile fragments 7924# [there can be more than one]. This file is built by configure.frag. 7925host_overrides=Make-host 7926dep_host_xmake_file= 7927for f in .. ${host_xmake_file} 7928do 7929 if test -f ${srcdir}/config/$f 7930 then 7931 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" 7932 fi 7933done 7934 7935# Conditionalize the makefile for this target machine. 7936# Make-target contains the concatenation of all host makefile fragments 7937# [there can be more than one]. This file is built by configure.frag. 7938target_overrides=Make-target 7939dep_tmake_file= 7940for f in .. ${tmake_file} 7941do 7942 if test -f ${srcdir}/config/$f 7943 then 7944 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" 7945 fi 7946done 7947 7948# If the host doesn't support symlinks, modify CC in 7949# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. 7950# Otherwise, we can use "CC=$(CC)". 7951rm -f symtest.tem 7952if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null 7953then 7954 cc_set_by_configure="\$(CC)" 7955 quoted_cc_set_by_configure="\$(CC)" 7956 stage_prefix_set_by_configure="\$(STAGE_PREFIX)" 7957else 7958 rm -f symtest.tem 7959 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null 7960 then 7961 symbolic_link="cp -p" 7962 else 7963 symbolic_link="cp" 7964 fi 7965 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" 7966 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" 7967 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" 7968fi 7969rm -f symtest.tem 7970 7971out_object_file=`basename $out_file .c`.o 7972 7973tm_file_list= 7974for f in $tm_file; do 7975 case $f in 7976 gansidecl.h ) 7977 tm_file_list="${tm_file_list} $f" ;; 7978 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; 7979 esac 7980done 7981 7982host_xm_file_list= 7983for f in $host_xm_file; do 7984 case $f in 7985 auto-host.h | gansidecl.h | hwint.h ) 7986 host_xm_file_list="${host_xm_file_list} $f" ;; 7987 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; 7988 esac 7989done 7990 7991build_xm_file_list= 7992for f in $build_xm_file; do 7993 case $f in 7994 auto-build.h | auto-host.h | gansidecl.h | hwint.h ) 7995 build_xm_file_list="${build_xm_file_list} $f" ;; 7996 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; 7997 esac 7998done 7999 8000# Define macro CROSS_COMPILE in compilation 8001# if this is a cross-compiler. 8002# Also use all.cross instead of all.internal 8003# and add cross-make to Makefile. 8004cross_overrides="/dev/null" 8005if test x$host != x$target 8006then 8007 cross_defines="CROSS=-DCROSS_COMPILE" 8008 cross_overrides="${topdir}/cross-make" 8009fi 8010 8011# When building gcc with a cross-compiler, we need to fix a few things. 8012# This must come after cross-make as we want all.build to override 8013# all.cross. 8014build_overrides="/dev/null" 8015if test x$build != x$host 8016then 8017 build_overrides="${topdir}/build-make" 8018fi 8019 8020# Expand extra_headers to include complete path. 8021# This substitutes for lots of t-* files. 8022extra_headers_list= 8023if test "x$extra_headers" = x 8024then true 8025else 8026 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. 8027 for file in $extra_headers; 8028 do 8029 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" 8030 done 8031fi 8032 8033if test x$use_collect2 = xno; then 8034 use_collect2= 8035fi 8036 8037# Add a definition of USE_COLLECT2 if system wants one. 8038# Also tell toplev.c what to do. 8039# This substitutes for lots of t-* files. 8040if test x$use_collect2 = x 8041then 8042 will_use_collect2= 8043 maybe_use_collect2= 8044else 8045 will_use_collect2="collect2" 8046 maybe_use_collect2="-DUSE_COLLECT2" 8047fi 8048 8049# NEED TO CONVERT 8050# Set MD_DEPS if the real md file is in md.pre-cpp. 8051# Set MD_CPP to the cpp to pass the md file through. Md files use ';' 8052# for line oriented comments, so we must always use a GNU cpp. If 8053# building gcc with a cross compiler, use the cross compiler just 8054# built. Otherwise, we can use the cpp just built. 8055md_file_sub= 8056if test "x$md_cppflags" = x 8057then 8058 md_file_sub=$srcdir/config/$md_file 8059else 8060 md_file=md 8061fi 8062 8063# If we have gas in the build tree, make a link to it. 8064if test -f ../gas/Makefile; then 8065 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null 8066fi 8067 8068# If we have nm in the build tree, make a link to it. 8069if test -f ../binutils/Makefile; then 8070 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null 8071fi 8072 8073# If we have ld in the build tree, make a link to it. 8074if test -f ../ld/Makefile; then 8075# if test x$use_collect2 = x; then 8076# rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null 8077# else 8078 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null 8079# fi 8080fi 8081 8082# Figure out what assembler alignment features are present. 8083echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 8084echo "configure:8070: checking assembler alignment features" >&5 8085gcc_cv_as= 8086gcc_cv_as_alignment_features= 8087gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas 8088if test -x "$DEFAULT_ASSEMBLER"; then 8089 gcc_cv_as="$DEFAULT_ASSEMBLER" 8090elif test -x "$AS"; then 8091 gcc_cv_as="$AS" 8092elif test -x as$host_exeext; then 8093 # Build using assembler in the current directory. 8094 gcc_cv_as=./as$host_exeext 8095elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then 8096 # Single tree build which includes gas. 8097 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in 8098 do 8099 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` 8100 if test x$gcc_cv_gas_version != x; then 8101 break 8102 fi 8103 done 8104 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` 8105 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 8106 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then 8107 # Gas version 2.6 and later support for .balign and .p2align. 8108 # bytes to skip when using .p2align. 8109 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 8110 gcc_cv_as_alignment_features=".balign and .p2align" 8111 cat >> confdefs.h <<\EOF 8112#define HAVE_GAS_BALIGN_AND_P2ALIGN 1 8113EOF 8114 8115 fi 8116 # Gas version 2.8 and later support specifying the maximum 8117 # bytes to skip when using .p2align. 8118 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 8119 gcc_cv_as_alignment_features=".p2align including maximum skip" 8120 cat >> confdefs.h <<\EOF 8121#define HAVE_GAS_MAX_SKIP_P2ALIGN 1 8122EOF 8123 8124 fi 8125 fi 8126elif test x$host = x$target; then 8127 # Native build. 8128 # Search the same directories that the installed compiler will 8129 # search. Else we may find the wrong assembler and lose. If we 8130 # do not find a suitable assembler binary, then try the user's 8131 # path. 8132 # 8133 # Also note we have to check MD_EXEC_PREFIX before checking the 8134 # user's path. Unfortunately, there is no good way to get at the 8135 # value of MD_EXEC_PREFIX here. So we do a brute force search 8136 # through all the known MD_EXEC_PREFIX values. Ugh. This needs 8137 # to be fixed as part of the make/configure rewrite too. 8138 8139 if test "x$exec_prefix" = xNONE; then 8140 if test "x$prefix" = xNONE; then 8141 test_prefix=/usr/local 8142 else 8143 test_prefix=$prefix 8144 fi 8145 else 8146 test_prefix=$exec_prefix 8147 fi 8148 8149 # If the loop below does not find an assembler, then use whatever 8150 # one we can find in the users's path. 8151 # user's path. 8152 as=as$host_exeext 8153 8154 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ 8155 $test_prefix/lib/gcc-lib/$target \ 8156 /usr/lib/gcc/$target/$gcc_version \ 8157 /usr/lib/gcc/$target \ 8158 $test_prefix/$target/bin/$target/$gcc_version \ 8159 $test_prefix/$target/bin \ 8160 /usr/libexec \ 8161 /usr/ccs/gcc \ 8162 /usr/ccs/bin \ 8163 /udk/usr/ccs/bin \ 8164 /bsd43/usr/lib/cmplrs/cc \ 8165 /usr/cross64/usr/bin \ 8166 /usr/lib/cmplrs/cc \ 8167 /sysv/usr/lib/cmplrs/cc \ 8168 /svr4/usr/lib/cmplrs/cc \ 8169 /usr/bin" 8170 8171 for dir in $test_dirs; do 8172 if test -f $dir/as$host_exeext; then 8173 gcc_cv_as=$dir/as$host_exeext 8174 break; 8175 fi 8176 done 8177fi 8178if test x$gcc_cv_as != x; then 8179 # Check if we have .balign and .p2align 8180 echo ".balign 4" > conftest.s 8181 echo ".p2align 2" >> conftest.s 8182 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8183 gcc_cv_as_alignment_features=".balign and .p2align" 8184 cat >> confdefs.h <<\EOF 8185#define HAVE_GAS_BALIGN_AND_P2ALIGN 1 8186EOF 8187 8188 fi 8189 rm -f conftest.s conftest.o 8190 # Check if specifying the maximum bytes to skip when 8191 # using .p2align is supported. 8192 echo ".p2align 4,,7" > conftest.s 8193 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8194 gcc_cv_as_alignment_features=".p2align including maximum skip" 8195 cat >> confdefs.h <<\EOF 8196#define HAVE_GAS_MAX_SKIP_P2ALIGN 1 8197EOF 8198 8199 fi 8200 rm -f conftest.s conftest.o 8201fi 8202echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 8203 8204echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 8205echo "configure:8191: checking assembler subsection support" >&5 8206gcc_cv_as_subsections= 8207if test x$gcc_cv_as != x; then 8208 # Check if we have .subsection 8209 echo ".subsection 1" > conftest.s 8210 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8211 gcc_cv_as_subsections=".subsection" 8212 if test -x nm$host_exeext; then 8213 gcc_cv_nm=./nm$host_exeext 8214 elif test x$host = x$target; then 8215 # Native build. 8216 gcc_cv_nm=nm$host_exeext 8217 fi 8218 if test x$gcc_cv_nm != x; then 8219 cat > conftest.s <<EOF 8220conftest_label1: .word 0 8221.subsection -1 8222conftest_label2: .word 0 8223.previous 8224EOF 8225 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8226 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 8227 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 8228 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then 8229 : 8230 else 8231 gcc_cv_as_subsections="working .subsection -1" 8232 cat >> confdefs.h <<\EOF 8233#define HAVE_GAS_SUBSECTION_ORDERING 1 8234EOF 8235 8236 fi 8237 fi 8238 fi 8239 fi 8240 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 8241fi 8242echo "$ac_t""$gcc_cv_as_subsections" 1>&6 8243 8244echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 8245echo "configure:8231: checking assembler instructions" >&5 8246gcc_cv_as_instructions= 8247if test x$gcc_cv_as != x; then 8248 set "filds fists" "filds mem; fists mem" 8249 while test $# -gt 0 8250 do 8251 echo "$2" > conftest.s 8252 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8253 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " 8254 cat >> confdefs.h <<EOF 8255#define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 8256EOF 8257 8258 fi 8259 shift 2 8260 done 8261 rm -f conftest.s conftest.o 8262fi 8263echo "$ac_t""$gcc_cv_as_instructions" 1>&6 8264 8265# Figure out what language subdirectories are present. 8266# Look if the user specified --enable-languages="..."; if not, use 8267# the environment variable $LANGUAGES if defined. $LANGUAGES might 8268# go away some day. 8269if test x"${enable_languages+set}" != xset; then 8270 if test x"${LANGUAGES+set}" = xset; then 8271 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" 8272 else 8273 enable_languages=all 8274 fi 8275fi 8276subdirs= 8277for lang in ${srcdir}/*/config-lang.in .. 8278do 8279 case $lang in 8280 ..) ;; 8281 # The odd quoting in the next line works around 8282 # an apparent bug in bash 1.12 on linux. 8283 ${srcdir}/[*]/config-lang.in) ;; 8284 *) 8285 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 8286 if test "x$lang_alias" = x 8287 then 8288 echo "$lang doesn't set \$language." 1>&2 8289 exit 1 8290 fi 8291 if test x"${enable_languages}" = xall; then 8292 add_this_lang=yes 8293 else 8294 case "${enable_languages}" in 8295 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) 8296 add_this_lang=yes 8297 ;; 8298 * ) 8299 add_this_lang=no 8300 ;; 8301 esac 8302 fi 8303 if test x"${add_this_lang}" = xyes; then 8304 case $lang in 8305 ${srcdir}/ada/config-lang.in) 8306 if test x$gnat = xyes ; then 8307 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 8308 fi 8309 ;; 8310 *) 8311 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 8312 ;; 8313 esac 8314 fi 8315 ;; 8316 esac 8317done 8318 8319# Make gthr-default.h if we have a thread file. 8320gthread_flags= 8321if test $thread_file != single; then 8322 rm -f gthr-default.h 8323 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h 8324 gthread_flags=-DHAVE_GTHR_DEFAULT 8325fi 8326 8327 8328# Make empty files to contain the specs and options for each language. 8329# Then add #include lines to for a compiler that has specs and/or options. 8330 8331lang_specs_files= 8332lang_options_files= 8333lang_tree_files= 8334rm -f specs.h options.h gencheck.h 8335touch specs.h options.h gencheck.h 8336for subdir in . $subdirs 8337do 8338 if test -f $srcdir/$subdir/lang-specs.h; then 8339 echo "#include \"$subdir/lang-specs.h\"" >>specs.h 8340 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" 8341 fi 8342 if test -f $srcdir/$subdir/lang-options.h; then 8343 echo "#include \"$subdir/lang-options.h\"" >>options.h 8344 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" 8345 fi 8346 if test -f $srcdir/$subdir/$subdir-tree.def; then 8347 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h 8348 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" 8349 fi 8350done 8351 8352# These (without "all_") are set in each config-lang.in. 8353# `language' must be a single word so is spelled singularly. 8354all_languages= 8355all_boot_languages= 8356all_compilers= 8357all_stagestuff= 8358all_diff_excludes= 8359all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile' 8360# List of language makefile fragments. 8361all_lang_makefiles= 8362all_headers= 8363all_lib2funcs= 8364 8365# Add the language fragments. 8366# Languages are added via two mechanisms. Some information must be 8367# recorded in makefile variables, these are defined in config-lang.in. 8368# We accumulate them and plug them into the main Makefile. 8369# The other mechanism is a set of hooks for each of the main targets 8370# like `clean', `install', etc. 8371 8372language_fragments="Make-lang" 8373language_hooks="Make-hooks" 8374oldstyle_subdirs= 8375 8376for s in .. $subdirs 8377do 8378 if test $s != ".." 8379 then 8380 language= 8381 boot_language= 8382 compilers= 8383 stagestuff= 8384 diff_excludes= 8385 headers= 8386 outputs= 8387 lib2funcs= 8388 . ${srcdir}/$s/config-lang.in 8389 if test "x$language" = x 8390 then 8391 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 8392 exit 1 8393 fi 8394 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" 8395 all_languages="$all_languages $language" 8396 if test "x$boot_language" = xyes 8397 then 8398 all_boot_languages="$all_boot_languages $language" 8399 fi 8400 all_compilers="$all_compilers $compilers" 8401 all_stagestuff="$all_stagestuff $stagestuff" 8402 all_diff_excludes="$all_diff_excludes $diff_excludes" 8403 all_headers="$all_headers $headers" 8404 all_outputs="$all_outputs $outputs" 8405 if test x$outputs = x 8406 then 8407 oldstyle_subdirs="$oldstyle_subdirs $s" 8408 fi 8409 all_lib2funcs="$all_lib2funcs $lib2funcs" 8410 fi 8411done 8412 8413# Since we can't use `::' targets, we link each language in 8414# with a set of hooks, reached indirectly via lang.${target}. 8415 8416rm -f Make-hooks 8417touch Make-hooks 8418target_list="all.build all.cross start.encap rest.encap \ 8419 info dvi \ 8420 install-normal install-common install-info install-man \ 8421 uninstall distdir \ 8422 mostlyclean clean distclean extraclean maintainer-clean \ 8423 stage1 stage2 stage3 stage4" 8424for t in $target_list 8425do 8426 x= 8427 for lang in .. $all_languages 8428 do 8429 if test $lang != ".."; then 8430 x="$x $lang.$t" 8431 fi 8432 done 8433 echo "lang.$t: $x" >> Make-hooks 8434done 8435 8436# If we're not building in srcdir, create .gdbinit. 8437 8438if test ! -f Makefile.in; then 8439 echo "dir ." > .gdbinit 8440 echo "dir ${srcdir}" >> .gdbinit 8441 if test x$gdb_needs_out_file_path = xyes 8442 then 8443 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 8444 fi 8445 if test "x$subdirs" != x; then 8446 for s in $subdirs 8447 do 8448 echo "dir ${srcdir}/$s" >> .gdbinit 8449 done 8450 fi 8451 echo "source ${srcdir}/.gdbinit" >> .gdbinit 8452fi 8453 8454# Define variables host_canonical and build_canonical 8455# because some Cygnus local changes in the Makefile depend on them. 8456build_canonical=${build} 8457host_canonical=${host} 8458target_subdir= 8459if test "${host}" != "${target}" ; then 8460 target_subdir=${target}/ 8461fi 8462 8463 8464 8465 8466# If this is using newlib, then define inhibit_libc in 8467# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of 8468# libgcc.a, but that's OK because newib should have its own version of 8469# assert.h. 8470inhibit_libc= 8471if test x$with_newlib = xyes; then 8472 inhibit_libc=-Dinhibit_libc 8473fi 8474 8475 8476# Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. 8477sched_prefix= 8478sched_cflags= 8479if test x$enable_haifa = xyes; then 8480 echo "Using the Haifa scheduler." 8481 sched_prefix=haifa- 8482 sched_cflags=-DHAIFA 8483fi 8484 8485 8486if test x$enable_haifa != x; then 8487 # Explicitly remove files that need to be recompiled for the Haifa scheduler. 8488 for x in genattrtab.o toplev.o *sched.o; do 8489 if test -f $x; then 8490 echo "Removing $x" 8491 rm -f $x 8492 fi 8493 done 8494fi 8495 8496# If $(exec_prefix) exists and is not the same as $(prefix), then compute an 8497# absolute path for gcc_tooldir based on inserting the number of up-directory 8498# movements required to get from $(exec_prefix) to $(prefix) into the basic 8499# $(libsubdir)/@(unlibsubdir) based path. 8500# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel 8501# make and thus we'd get different behavior depending on where we built the 8502# sources. 8503if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then 8504 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' 8505else 8506# An explanation of the sed strings: 8507# -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' 8508# -e 's|/$||' match a trailing forward slash and eliminates it 8509# -e 's|^[^/]|/|' forces the string to start with a forward slash (*) 8510# -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ 8511# 8512# (*) Note this pattern overwrites the first character of the string 8513# with a forward slash if one is not already present. This is not a 8514# problem because the exact names of the sub-directories concerned is 8515# unimportant, just the number of them matters. 8516# 8517# The practical upshot of these patterns is like this: 8518# 8519# prefix exec_prefix result 8520# ------ ----------- ------ 8521# /foo /foo/bar ../ 8522# /foo/ /foo/bar ../ 8523# /foo /foo/bar/ ../ 8524# /foo/ /foo/bar/ ../ 8525# /foo /foo/bar/ugg ../../ 8526# 8527 dollar='$$' 8528 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" 8529fi 8530 8531 8532 8533# Nothing to do for FLOAT_H, float_format already handled. 8534objdir=`pwd` 8535 8536 8537# Process the language and host/target makefile fragments. 8538${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" 8539 8540# Substitute configuration variables 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602# Echo that links are built 8603if test x$host = x$target 8604then 8605 str1="native " 8606else 8607 str1="cross-" 8608 str2=" from $host" 8609fi 8610 8611if test x$host != x$build 8612then 8613 str3=" on a $build system" 8614fi 8615 8616if test "x$str2" != x || test "x$str3" != x 8617then 8618 str4= 8619fi 8620 8621echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 8622 8623if test "x$str2" != x || test "x$str3" != x 8624then 8625 echo " ${str2}${str3}." 1>&2 8626fi 8627 8628# Truncate the target if necessary 8629if test x$host_truncate_target != x; then 8630 target=`echo $target | sed -e 's/\(..............\).*/\1/'` 8631fi 8632 8633# Configure the subdirectories 8634# AC_CONFIG_SUBDIRS($subdirs) 8635 8636# Create the Makefile 8637# and configure language subdirectories 8638trap '' 1 2 15 8639cat > confcache <<\EOF 8640# This file is a shell script that caches the results of configure 8641# tests run on this system so they can be shared between configure 8642# scripts and configure runs. It is not useful on other systems. 8643# If it contains results you don't want to keep, you may remove or edit it. 8644# 8645# By default, configure uses ./config.cache as the cache file, 8646# creating it if it does not exist already. You can give configure 8647# the --cache-file=FILE option to use a different cache file; that is 8648# what configure does when it calls configure scripts in 8649# subdirectories, so they share the cache. 8650# Giving --cache-file=/dev/null disables caching, for debugging configure. 8651# config.status only pays attention to the cache file if you give it the 8652# --recheck option to rerun configure. 8653# 8654EOF 8655# The following way of writing the cache mishandles newlines in values, 8656# but we know of no workaround that is simple, portable, and efficient. 8657# So, don't put newlines in cache variables' values. 8658# Ultrix sh set writes to stderr and can't be redirected directly, 8659# and sets the high bit in the cache file unless we assign to the vars. 8660(set) 2>&1 | 8661 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8662 *ac_space=\ *) 8663 # `set' does not quote correctly, so add quotes (double-quote substitution 8664 # turns \\\\ into \\, and sed turns \\ into \). 8665 sed -n \ 8666 -e "s/'/'\\\\''/g" \ 8667 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 8668 ;; 8669 *) 8670 # `set' quotes correctly as required by POSIX, so do not add quotes. 8671 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 8672 ;; 8673 esac >> confcache 8674if cmp -s $cache_file confcache; then 8675 : 8676else 8677 if test -w $cache_file; then 8678 echo "updating cache $cache_file" 8679 cat confcache > $cache_file 8680 else 8681 echo "not updating unwritable cache $cache_file" 8682 fi 8683fi 8684rm -f confcache 8685 8686trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 8687 8688test "x$prefix" = xNONE && prefix=$ac_default_prefix 8689# Let make expand exec_prefix. 8690test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8691 8692# Any assignment to VPATH causes Sun make to only execute 8693# the first set of double-colon rules, so remove it if not needed. 8694# If there is a colon in the path, we need to keep it. 8695if test "x$srcdir" = x.; then 8696 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 8697fi 8698 8699trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 8700 8701DEFS=-DHAVE_CONFIG_H 8702 8703# Without the "./", some shells look in PATH for config.status. 8704: ${CONFIG_STATUS=./config.status} 8705 8706echo creating $CONFIG_STATUS 8707rm -f $CONFIG_STATUS 8708cat > $CONFIG_STATUS <<EOF 8709#! /bin/sh 8710# Generated automatically by configure. 8711# Run this file to recreate the current configuration. 8712# This directory was configured as follows, 8713# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8714# 8715# $0 $ac_configure_args 8716# 8717# Compiler output produced by configure, useful for debugging 8718# configure, is in ./config.log if it exists. 8719 8720ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 8721for ac_option 8722do 8723 case "\$ac_option" in 8724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8725 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 8726 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 8727 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 8728 echo "$CONFIG_STATUS generated by autoconf version 2.13" 8729 exit 0 ;; 8730 -help | --help | --hel | --he | --h) 8731 echo "\$ac_cs_usage"; exit 0 ;; 8732 *) echo "\$ac_cs_usage"; exit 1 ;; 8733 esac 8734done 8735 8736ac_given_srcdir=$srcdir 8737 8738trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 8739EOF 8740cat >> $CONFIG_STATUS <<EOF 8741 8742# Protect against being on the right side of a sed subst in config.status. 8743sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 8744 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 8745$ac_vpsub 8746$extrasub 8747s%@SHELL@%$SHELL%g 8748s%@CFLAGS@%$CFLAGS%g 8749s%@CPPFLAGS@%$CPPFLAGS%g 8750s%@CXXFLAGS@%$CXXFLAGS%g 8751s%@FFLAGS@%$FFLAGS%g 8752s%@DEFS@%$DEFS%g 8753s%@LDFLAGS@%$LDFLAGS%g 8754s%@LIBS@%$LIBS%g 8755s%@exec_prefix@%$exec_prefix%g 8756s%@prefix@%$prefix%g 8757s%@program_transform_name@%$program_transform_name%g 8758s%@bindir@%$bindir%g 8759s%@sbindir@%$sbindir%g 8760s%@libexecdir@%$libexecdir%g 8761s%@datadir@%$datadir%g 8762s%@sysconfdir@%$sysconfdir%g 8763s%@sharedstatedir@%$sharedstatedir%g 8764s%@localstatedir@%$localstatedir%g 8765s%@libdir@%$libdir%g 8766s%@includedir@%$includedir%g 8767s%@oldincludedir@%$oldincludedir%g 8768s%@infodir@%$infodir%g 8769s%@mandir@%$mandir%g 8770s%@host@%$host%g 8771s%@host_alias@%$host_alias%g 8772s%@host_cpu@%$host_cpu%g 8773s%@host_vendor@%$host_vendor%g 8774s%@host_os@%$host_os%g 8775s%@target@%$target%g 8776s%@target_alias@%$target_alias%g 8777s%@target_cpu@%$target_cpu%g 8778s%@target_vendor@%$target_vendor%g 8779s%@target_os@%$target_os%g 8780s%@build@%$build%g 8781s%@build_alias@%$build_alias%g 8782s%@build_cpu@%$build_cpu%g 8783s%@build_vendor@%$build_vendor%g 8784s%@build_os@%$build_os%g 8785s%@CC@%$CC%g 8786s%@stage1_warn_cflags@%$stage1_warn_cflags%g 8787s%@SET_MAKE@%$SET_MAKE%g 8788s%@AWK@%$AWK%g 8789s%@LEX@%$LEX%g 8790s%@LEXLIB@%$LEXLIB%g 8791s%@LN@%$LN%g 8792s%@LN_S@%$LN_S%g 8793s%@RANLIB@%$RANLIB%g 8794s%@YACC@%$YACC%g 8795s%@INSTALL@%$INSTALL%g 8796s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 8797s%@INSTALL_DATA@%$INSTALL_DATA%g 8798s%@CPP@%$CPP%g 8799s%@gnat@%$gnat%g 8800s%@vfprintf@%$vfprintf%g 8801s%@doprint@%$doprint%g 8802s%@manext@%$manext%g 8803s%@objext@%$objext%g 8804s%@PACKAGE@%$PACKAGE%g 8805s%@VERSION@%$VERSION%g 8806s%@ALLOCA@%$ALLOCA%g 8807s%@USE_NLS@%$USE_NLS%g 8808s%@MSGFMT@%$MSGFMT%g 8809s%@GMSGFMT@%$GMSGFMT%g 8810s%@XGETTEXT@%$XGETTEXT%g 8811s%@GENCAT@%$GENCAT%g 8812s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 8813s%@CATALOGS@%$CATALOGS%g 8814s%@CATOBJEXT@%$CATOBJEXT%g 8815s%@DATADIRNAME@%$DATADIRNAME%g 8816s%@GMOFILES@%$GMOFILES%g 8817s%@INSTOBJEXT@%$INSTOBJEXT%g 8818s%@INTLDEPS@%$INTLDEPS%g 8819s%@INTLLIBS@%$INTLLIBS%g 8820s%@INTLOBJS@%$INTLOBJS%g 8821s%@POFILES@%$POFILES%g 8822s%@POSUB@%$POSUB%g 8823s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 8824s%@GT_NO@%$GT_NO%g 8825s%@GT_YES@%$GT_YES%g 8826s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 8827s%@l@%$l%g 8828s%@gthread_flags@%$gthread_flags%g 8829s%@build_canonical@%$build_canonical%g 8830s%@host_canonical@%$host_canonical%g 8831s%@target_subdir@%$target_subdir%g 8832s%@inhibit_libc@%$inhibit_libc%g 8833s%@sched_prefix@%$sched_prefix%g 8834s%@sched_cflags@%$sched_cflags%g 8835s%@gcc_tooldir@%$gcc_tooldir%g 8836s%@dollar@%$dollar%g 8837s%@objdir@%$objdir%g 8838s%@subdirs@%$subdirs%g 8839s%@all_boot_languages@%$all_boot_languages%g 8840s%@all_compilers@%$all_compilers%g 8841s%@all_diff_excludes@%$all_diff_excludes%g 8842s%@all_headers@%$all_headers%g 8843s%@all_lang_makefiles@%$all_lang_makefiles%g 8844s%@all_languages@%$all_languages%g 8845s%@all_lib2funcs@%$all_lib2funcs%g 8846s%@all_stagestuff@%$all_stagestuff%g 8847s%@build_exeext@%$build_exeext%g 8848s%@build_install_headers_dir@%$build_install_headers_dir%g 8849s%@build_xm_file_list@%$build_xm_file_list%g 8850s%@cc_set_by_configure@%$cc_set_by_configure%g 8851s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g 8852s%@cpp_install_dir@%$cpp_install_dir%g 8853s%@cpp_main@%$cpp_main%g 8854s%@dep_host_xmake_file@%$dep_host_xmake_file%g 8855s%@dep_tmake_file@%$dep_tmake_file%g 8856s%@extra_c_flags@%$extra_c_flags%g 8857s%@extra_c_objs@%$extra_c_objs%g 8858s%@extra_cpp_objs@%$extra_cpp_objs%g 8859s%@extra_cxx_objs@%$extra_cxx_objs%g 8860s%@extra_headers_list@%$extra_headers_list%g 8861s%@extra_objs@%$extra_objs%g 8862s%@extra_parts@%$extra_parts%g 8863s%@extra_passes@%$extra_passes%g 8864s%@extra_programs@%$extra_programs%g 8865s%@fixinc_defs@%$fixinc_defs%g 8866s%@float_h_file@%$float_h_file%g 8867s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g 8868s%@gcc_version@%$gcc_version%g 8869s%@gcc_version_trigger@%$gcc_version_trigger%g 8870s%@host_exeext@%$host_exeext%g 8871s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g 8872s%@host_xm_file_list@%$host_xm_file_list%g 8873s%@install@%$install%g 8874s%@JAVAGC@%$JAVAGC%g 8875s%@lang_options_files@%$lang_options_files%g 8876s%@lang_specs_files@%$lang_specs_files%g 8877s%@lang_tree_files@%$lang_tree_files%g 8878s%@local_prefix@%$local_prefix%g 8879s%@maybe_use_collect2@%$maybe_use_collect2%g 8880s%@md_file@%$md_file%g 8881s%@objc_boehm_gc@%$objc_boehm_gc%g 8882s%@out_file@%$out_file%g 8883s%@out_object_file@%$out_object_file%g 8884s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g 8885s%@symbolic_link@%$symbolic_link%g 8886s%@thread_file@%$thread_file%g 8887s%@tm_file_list@%$tm_file_list%g 8888s%@will_use_collect2@%$will_use_collect2%g 8889/@target_overrides@/r $target_overrides 8890s%@target_overrides@%%g 8891/@host_overrides@/r $host_overrides 8892s%@host_overrides@%%g 8893s%@cross_defines@%$cross_defines%g 8894/@cross_overrides@/r $cross_overrides 8895s%@cross_overrides@%%g 8896/@build_overrides@/r $build_overrides 8897s%@build_overrides@%%g 8898/@language_fragments@/r $language_fragments 8899s%@language_fragments@%%g 8900/@language_hooks@/r $language_hooks 8901s%@language_hooks@%%g 8902 8903CEOF 8904EOF 8905 8906cat >> $CONFIG_STATUS <<\EOF 8907 8908# Split the substitutions into bite-sized pieces for seds with 8909# small command number limits, like on Digital OSF/1 and HP-UX. 8910ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 8911ac_file=1 # Number of current file. 8912ac_beg=1 # First line for current file. 8913ac_end=$ac_max_sed_cmds # Line after last line for current file. 8914ac_more_lines=: 8915ac_sed_cmds="" 8916while $ac_more_lines; do 8917 if test $ac_beg -gt 1; then 8918 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 8919 else 8920 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 8921 fi 8922 if test ! -s conftest.s$ac_file; then 8923 ac_more_lines=false 8924 rm -f conftest.s$ac_file 8925 else 8926 if test -z "$ac_sed_cmds"; then 8927 ac_sed_cmds="sed -f conftest.s$ac_file" 8928 else 8929 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 8930 fi 8931 ac_file=`expr $ac_file + 1` 8932 ac_beg=$ac_end 8933 ac_end=`expr $ac_end + $ac_max_sed_cmds` 8934 fi 8935done 8936if test -z "$ac_sed_cmds"; then 8937 ac_sed_cmds=cat 8938fi 8939EOF 8940 8941cat >> $CONFIG_STATUS <<EOF 8942 8943CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} 8944EOF 8945cat >> $CONFIG_STATUS <<\EOF 8946for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 8947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8948 case "$ac_file" in 8949 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 8950 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 8951 *) ac_file_in="${ac_file}.in" ;; 8952 esac 8953 8954 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 8955 8956 # Remove last slash and all that follows it. Not all systems have dirname. 8957 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 8958 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 8959 # The file is in a subdirectory. 8960 test ! -d "$ac_dir" && mkdir "$ac_dir" 8961 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 8962 # A "../" for each directory in $ac_dir_suffix. 8963 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 8964 else 8965 ac_dir_suffix= ac_dots= 8966 fi 8967 8968 case "$ac_given_srcdir" in 8969 .) srcdir=. 8970 if test -z "$ac_dots"; then top_srcdir=. 8971 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 8972 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 8973 *) # Relative path. 8974 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 8975 top_srcdir="$ac_dots$ac_given_srcdir" ;; 8976 esac 8977 8978 8979 echo creating "$ac_file" 8980 rm -f "$ac_file" 8981 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 8982 case "$ac_file" in 8983 *Makefile*) ac_comsub="1i\\ 8984# $configure_input" ;; 8985 *) ac_comsub= ;; 8986 esac 8987 8988 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 8989 sed -e "$ac_comsub 8990s%@configure_input@%$configure_input%g 8991s%@srcdir@%$srcdir%g 8992s%@top_srcdir@%$top_srcdir%g 8993" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 8994fi; done 8995rm -f conftest.s* 8996 8997# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8998# NAME is the cpp macro being defined and VALUE is the value it is being given. 8999# 9000# ac_d sets the value in "#define NAME VALUE" lines. 9001ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9002ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 9003ac_dC='\3' 9004ac_dD='%g' 9005# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 9006ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9007ac_uB='\([ ]\)%\1#\2define\3' 9008ac_uC=' ' 9009ac_uD='\4%g' 9010# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9011ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9012ac_eB='$%\1#\2define\3' 9013ac_eC=' ' 9014ac_eD='%g' 9015 9016if test "${CONFIG_HEADERS+set}" != set; then 9017EOF 9018cat >> $CONFIG_STATUS <<EOF 9019 CONFIG_HEADERS="auto-host.h:config.in" 9020EOF 9021cat >> $CONFIG_STATUS <<\EOF 9022fi 9023for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 9024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9025 case "$ac_file" in 9026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 9027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 9028 *) ac_file_in="${ac_file}.in" ;; 9029 esac 9030 9031 echo creating $ac_file 9032 9033 rm -f conftest.frag conftest.in conftest.out 9034 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 9035 cat $ac_file_inputs > conftest.in 9036 9037EOF 9038 9039# Transform confdefs.h into a sed script conftest.vals that substitutes 9040# the proper values into config.h.in to produce config.h. And first: 9041# Protect against being on the right side of a sed subst in config.status. 9042# Protect against being in an unquoted here document in config.status. 9043rm -f conftest.vals 9044cat > conftest.hdr <<\EOF 9045s/[\\&%]/\\&/g 9046s%[\\$`]%\\&%g 9047s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 9048s%ac_d%ac_u%gp 9049s%ac_u%ac_e%gp 9050EOF 9051sed -n -f conftest.hdr confdefs.h > conftest.vals 9052rm -f conftest.hdr 9053 9054# This sed command replaces #undef with comments. This is necessary, for 9055# example, in the case of _POSIX_SOURCE, which is predefined and required 9056# on some systems where configure will not decide to define it. 9057cat >> conftest.vals <<\EOF 9058s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 9059EOF 9060 9061# Break up conftest.vals because some shells have a limit on 9062# the size of here documents, and old seds have small limits too. 9063 9064rm -f conftest.tail 9065while : 9066do 9067 ac_lines=`grep -c . conftest.vals` 9068 # grep -c gives empty output for an empty file on some AIX systems. 9069 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 9070 # Write a limited-size here document to conftest.frag. 9071 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 9072 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 9073 echo 'CEOF 9074 sed -f conftest.frag conftest.in > conftest.out 9075 rm -f conftest.in 9076 mv conftest.out conftest.in 9077' >> $CONFIG_STATUS 9078 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 9079 rm -f conftest.vals 9080 mv conftest.tail conftest.vals 9081done 9082rm -f conftest.vals 9083 9084cat >> $CONFIG_STATUS <<\EOF 9085 rm -f conftest.frag conftest.h 9086 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 9087 cat conftest.in >> conftest.h 9088 rm -f conftest.in 9089 if cmp -s $ac_file conftest.h 2>/dev/null; then 9090 echo "$ac_file is unchanged" 9091 rm -f conftest.h 9092 else 9093 # Remove last slash and all that follows it. Not all systems have dirname. 9094 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 9095 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 9096 # The file is in a subdirectory. 9097 test ! -d "$ac_dir" && mkdir "$ac_dir" 9098 fi 9099 rm -f $ac_file 9100 mv conftest.h $ac_file 9101 fi 9102fi; done 9103 9104EOF 9105 9106cat >> $CONFIG_STATUS <<EOF 9107ac_sources="$nls_cv_header_libgt" 9108ac_dests="$nls_cv_header_intl" 9109EOF 9110 9111cat >> $CONFIG_STATUS <<\EOF 9112srcdir=$ac_given_srcdir 9113while test -n "$ac_sources"; do 9114 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 9115 set $ac_sources; ac_source=$1; shift; ac_sources=$* 9116 9117 echo "linking $srcdir/$ac_source to $ac_dest" 9118 9119 if test ! -r $srcdir/$ac_source; then 9120 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } 9121 fi 9122 rm -f $ac_dest 9123 9124 # Make relative symlinks. 9125 # Remove last slash and all that follows it. Not all systems have dirname. 9126 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` 9127 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then 9128 # The dest file is in a subdirectory. 9129 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" 9130 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" 9131 # A "../" for each directory in $ac_dest_dir_suffix. 9132 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` 9133 else 9134 ac_dest_dir_suffix= ac_dots= 9135 fi 9136 9137 case "$srcdir" in 9138 [/$]*) ac_rel_source="$srcdir/$ac_source" ;; 9139 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; 9140 esac 9141 9142 # Make a symlink if possible; otherwise try a hard link. 9143 if ln -s $ac_rel_source $ac_dest 2>/dev/null || 9144 ln $srcdir/$ac_source $ac_dest; then : 9145 else 9146 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } 9147 fi 9148done 9149EOF 9150cat >> $CONFIG_STATUS <<EOF 9151 9152 9153host='${host}' 9154build='${build}' 9155target='${target}' 9156target_alias='${target_alias}' 9157srcdir='${srcdir}' 9158subdirs='${subdirs}' 9159oldstyle_subdirs='${oldstyle_subdirs}' 9160symbolic_link='${symbolic_link}' 9161program_transform_set='${program_transform_set}' 9162program_transform_name='${program_transform_name}' 9163dep_host_xmake_file='${dep_host_xmake_file}' 9164host_xmake_file='${host_xmake_file}' 9165dep_tmake_file='${dep_tmake_file}' 9166tmake_file='${tmake_file}' 9167thread_file='${thread_file}' 9168gcc_version='${gcc_version}' 9169gcc_version_trigger='${gcc_version_trigger}' 9170local_prefix='${local_prefix}' 9171build_install_headers_dir='${build_install_headers_dir}' 9172build_exeext='${build_exeext}' 9173host_exeext='${host_exeext}' 9174out_file='${out_file}' 9175gdb_needs_out_file_path='${gdb_needs_out_file_path}' 9176SET_MAKE='${SET_MAKE}' 9177target_list='${target_list}' 9178target_overrides='${target_overrides}' 9179host_overrides='${host_overrides}' 9180cross_defines='${cross_defines}' 9181cross_overrides='${cross_overrides}' 9182build_overrides='${build_overrides}' 9183cpp_install_dir='${cpp_install_dir}' 9184 9185EOF 9186cat >> $CONFIG_STATUS <<\EOF 9187case "$CONFIG_FILES" in *po/Makefile.in*) 9188 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 9189 esac 9190 9191. $srcdir/configure.lang 9192case x$CONFIG_HEADERS in 9193xauto-host.h:config.in) 9194echo > cstamp-h ;; 9195esac 9196# If the host supports symlinks, point stage[1234] at ../stage[1234] so 9197# bootstrapping and the installation procedure can still use 9198# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, 9199# FLAGS_TO_PASS has been modified to solve the problem there. 9200# This is virtually a duplicate of what happens in configure.lang; we do 9201# an extra check to make sure this only happens if ln -s can be used. 9202if test "$symbolic_link" = "ln -s"; then 9203 for d in .. ${subdirs} ; do 9204 if test $d != ..; then 9205 STARTDIR=`pwd` 9206 cd $d 9207 for t in stage1 stage2 stage3 stage4 include 9208 do 9209 rm -f $t 9210 $symbolic_link ../$t $t 2>/dev/null 9211 done 9212 cd $STARTDIR 9213 fi 9214 done 9215else true ; fi 9216# Avoid having to add intl to our include paths. 9217if test -f intl/libintl.h; then 9218 echo creating libintl.h 9219 echo '#include "intl/libintl.h"' >libintl.h 9220fi 9221 9222exit 0 9223EOF 9224chmod +x $CONFIG_STATUS 9225rm -fr confdefs* $ac_clean_files 9226test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 9227 9228