File:  [DragonFly] / src / contrib / gcc / Attic / configure
Revision 1.3: download - view: text, annotated - select for diffs
Wed Nov 19 00:51:31 2003 UTC (10 years, 11 months ago) by dillon
Branches: MAIN
CVS tags: HEAD, DragonFly_Stable, DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Change the system name from 'FreeBSD' to 'DragonFly'.  We are now officially
DragonFly 1.0-CURRENT.  The change is fairly straight forward but involves
adding support for the 'DragonFly' OS type in various gnu contributed pieces
(typically configure based), as well as compiler and BFD support for building
GCC and friends (basically just copied the FreeBSD files for DragonFly).

Additionally, hack the ports makefiles with UNAME_xxx environment variables
so ports builds think its still a FreeBSD-4.8 system.  Otherwise most of the
ports will fail.

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