Annotation of gcc/configure, revision 1.1.1.7

1.1       root        1: #!/bin/sh
                      2: # Configuration script for GNU CC
1.1.1.7 ! root        3: #   Copyright (C) 1988, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
1.1       root        4: 
                      5: #This file is part of GNU CC.
                      6: 
                      7: #GNU CC is free software; you can redistribute it and/or modify
                      8: #it under the terms of the GNU General Public License as published by
                      9: #the Free Software Foundation; either version 2, or (at your option)
                     10: #any later version.
                     11: 
                     12: #GNU CC is distributed in the hope that it will be useful,
                     13: #but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15: #GNU General Public License for more details.
                     16: 
                     17: #You should have received a copy of the GNU General Public License
                     18: #along with GNU CC; see the file COPYING.  If not, write to
                     19: #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
                     20: 
                     21: #
                     22: # Shell script to create proper links to machine-dependent files in
                     23: # preparation for compiling gcc.
                     24: #
1.1.1.4   root       25: # Options: --srcdir=DIR                specifies directory where sources are.
                     26: #         --host=HOST          specifies host configuration.
                     27: #         --target=TARGET      specifies target configuration.
                     28: #         --build=TARGET       specifies configuration of machine you are
                     29: #                              using to compile GCC.
                     30: #         --prefix=DIR         specifies directory to install in.
1.1.1.5   root       31: #         --local-prefix=DIR   specifies directory to put local ./include in.
1.1.1.7 ! root       32: #         --gxx-include-dir=DIR specifies directory to put g++ header files in.
1.1.1.4   root       33: #         --exec-prefix=DIR    specifies directory to install executables in.
                     34: #         --with-gnu-ld        arrange to work with GNU ld.
                     35: #         --with-gnu-as        arrange to work with GAS.
                     36: #         --with-stabs         arrange to use stabs instead of host debug format.
1.1.1.6   root       37: #         --with-elf           arrange to use elf instead of host debug format.
1.1.1.4   root       38: #         --nfp                assume system has no FPU.
1.1       root       39: #
                     40: # If configure succeeds, it leaves its status in config.status.
                     41: # If configure fails after disturbing the status quo, 
                     42: #      config.status is removed.
                     43: #
                     44: 
                     45: progname=$0
                     46: 
                     47: # Default --srcdir to the directory where the script is found, 
                     48: # if a directory was specified.
1.1.1.3   root       49: # The second sed call is to convert `.//configure' to `./configure'.
                     50: srcdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
1.1       root       51: if [ x$srcdir = x$0 ]
                     52: then
                     53: srcdir=
                     54: fi
                     55: 
1.1.1.3   root       56: host=
                     57: 
1.1.1.4   root       58: # Default prefix to /usr/local.
                     59: prefix=/usr/local
1.1.1.5   root       60: 
                     61: # local_prefix specifies where to find the directory /usr/local/include
                     62: # We don't use $(prefix) for this
                     63: # because we always want GCC to search /usr/local/include
                     64: # even if GCC is installed somewhere other than /usr/local.
                     65: # Think THREE TIMES before specifying any other value for this!
                     66: # DO NOT make this use $prefix!
                     67: local_prefix=/usr/local
1.1.1.4   root       68: # Default is to let the Makefile set exec_prefix from $(prefix)
                     69: exec_prefix='$(prefix)'
1.1.1.7 ! root       70: #
        !            71: # The default g++ include directory is $(libdir)/g++-include.
        !            72: gxx_include_dir='$(libdir)/g++-include'
1.1.1.4   root       73: 
1.1       root       74: remove=rm
                     75: hard_link=ln
                     76: symbolic_link='ln -s'
1.1.1.2   root       77: copy=cp
1.1       root       78: 
                     79: # Record all the arguments, to write them in config.status.
                     80: arguments=$*
                     81: 
                     82: #for Test
                     83: #remove="echo rm"
                     84: #hard_link="echo ln"
                     85: #symbolic_link="echo ln -s"
                     86: 
1.1.1.4   root       87: target=
                     88: host=
                     89: build=
1.1.1.7 ! root       90: name1=
        !            91: name2=
1.1.1.4   root       92: 
1.1       root       93: for arg in $*;
                     94: do
1.1.1.4   root       95:   case $next_arg in
                     96:   --srcdir)
                     97:     srcdir=$arg
                     98:     next_arg=
                     99:     ;;
                    100:   --host)
                    101:     host=$arg
                    102:     next_arg=
                    103:     ;;
                    104:   --target)
                    105:     target=$arg
                    106:     next_arg=
                    107:     ;;
                    108:   --build)
                    109:     build=$arg
                    110:     next_arg=
                    111:     ;;
                    112:   --prefix)
                    113:     prefix=$arg
                    114:     next_arg=
                    115:     ;;
1.1.1.5   root      116:   --local-prefix)
                    117:     local_prefix=$arg
                    118:     next_arg=
                    119:     ;;
1.1.1.7 ! root      120:   --gxx-include-dir)
        !           121:     gxx_include_dir=$arg
        !           122:     next_arg=
        !           123:     ;;
1.1.1.4   root      124:   --exec-prefix)
                    125:     exec_prefix=$arg
                    126:     next_arg=
                    127:     ;;
                    128:   *)
1.1       root      129:     case $arg in
1.1.1.7 ! root      130:       -*)
        !           131:        if [ x$name1 != x ]
        !           132:        then
        !           133:                echo "Positional arguments must be last." 1>&2
        !           134:                exit 1
        !           135:        fi
        !           136:        ;;
        !           137:     esac
        !           138: 
        !           139:     case $arg in
        !           140:      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1.1.1.4   root      141:        next_arg=--srcdir
                    142:        ;;
1.1.1.7 ! root      143:      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.1       root      144:        srcdir=`echo $arg | sed 's/-*s[a-z]*=//'`
                    145:        ;;
1.1.1.7 ! root      146:      -host | --host | --hos | --ho)
1.1.1.4   root      147:        next_arg=--host
1.1       root      148:        ;;
1.1.1.7 ! root      149:      -host=* | --host=* | --hos=* | --ho=*)
1.1       root      150:        host=`echo $arg | sed 's/-*h[a-z]*=//'`
                    151:        ;; 
                    152:      -target | --target | --targe | --targ | --tar | --ta | --t)
1.1.1.4   root      153:        next_arg=--target
1.1       root      154:        ;;
                    155:      -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    156:        target=`echo $arg | sed 's/-*t[a-z]*=//'`
                    157:        ;; 
1.1.1.4   root      158:      -build | --build | --buil | --bui | --bu | --b)
                    159:        next_arg=--build
                    160:        ;;
                    161:      -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
                    162:        build=`echo $arg | sed 's/-*b[a-z]*=//'`
                    163:        ;; 
                    164:      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    165:        next_arg=--prefix
                    166:        ;;
                    167:      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    168:        prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
                    169:        ;;
1.1.1.5   root      170:      -local-prefix | --local-prefix | --local-prefi | --local-pref | --local-pre \
                    171:        | --local-pr | --local-p | --local- | --local | --loc | --lo | --l)
                    172:        next_arg=--local-prefix
                    173:        ;;
                    174:      -local-prefix=* | --local-prefix=* | --local-prefi=* | --local-pref=* \
                    175:        | --local-pre=* | --local-pr=* | --local-p=* | --local-=* | --local=* \
                    176:        | --loc=* | --lo=* | --l=*)
                    177:        local_prefix=`echo $arg | sed 's/-*l[-a-z]*=//'`
                    178:        ;;
1.1.1.7 ! root      179:      -gxx-include-dir | --gxx-include-dir | --gxx-include \
        !           180:        | --gxx-incl | --gxx-inc | --gxx-in | --gxx-i | --gxx- \
        !           181:        | --gxx | --gxx | --gx | --g)
        !           182:        next_arg=--gxx-include-dir
        !           183:        ;;
        !           184:      -gxx-include-dir=* | --gxx-include-dir=* | --gxx-include=* \
        !           185:        | --gxx-incl=* | --gxx-inc=* | --gxx-in=* | --gxx-i=* \
        !           186:        | --gxx-=* | --gxx=* | --gxx=* | --gxx=* | --g=*)
        !           187:        gxx_include_dir=`echo $arg | sed 's/-*g[-a-z]*=//'`
        !           188:        ;;
1.1.1.4   root      189:      -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
                    190:        | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
                    191:        next_arg=--exec-prefix
                    192:        ;;
                    193:      -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* \
                    194:        | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* \
                    195:        | --exe=* | --ex=* | --e=*)
                    196:        exec_prefix=`echo $arg | sed 's/-*e[-a-z]*=//'`
                    197:        ;;
1.1.1.3   root      198:      -with-gnu-ld | --with-gnu-ld | --with-gnu-l)
                    199:        gnu_ld=yes
                    200:        ;;
                    201:      -gas | --gas | --ga | --g | -with-gnu-as | --with-gnu-as | -with-gnu-a)
1.1       root      202:         gas=yes
                    203:        ;;
                    204:      -nfp | --nfp | --nf | --n)
                    205:        nfp=yes
                    206:        ;;
1.1.1.4   root      207:      -with-stabs | -with-stab | -with-sta | -with-st | -with-s \
                    208:        | --with-stabs | --with-stab | --with-sta | --with-st | --with-s \
                    209:        | -stabs | -stab | -sta | -st  \
                    210:        | --stabs | --stab | --sta | --st)
                    211:        stabs=yes
                    212:        ;;
1.1.1.6   root      213:      -with-elf | -with-el | -with-se \
                    214:        | --with-elf | --with-el | --with-e \
                    215:        | -elf | -el | -e \
                    216:        |--elf | --el | --e)
                    217:        elf=yes
                    218:        ;;
1.1.1.3   root      219:      -with-* | --with-*) ;; #ignored
1.1.1.7 ! root      220:      -without-* | --without-*) ;; #ignored
1.1.1.6   root      221:      -enable-* | --enable-*) ;; #ignored
1.1.1.2   root      222:      -x | --x) ;; # ignored
1.1.1.7 ! root      223:      --he*) ;; # ignored for now (--help)
        !           224:      --vers*) ;; # ignored for now (--version)
        !           225:      --verb*) ;; # ignored for now (--verbose)
        !           226:      --program-*) ;; #ignored (--program-prefix, --program-suffix)
        !           227:      --c*) ;; #ignored (--cache-file)
        !           228:      --q*) ;; #ignored (--quiet)
        !           229:      --si*) ;; #ignored (--silent)
1.1.1.3   root      230:      -*)
                    231:        echo "Invalid option \`$arg'" 1>&2
                    232:        exit 1
                    233:        ;;
1.1       root      234:      *)
1.1.1.7 ! root      235: # Allow configure HOST TARGET.  If just one name is given, it is used
        !           236: # as both unless a host was previously given, in which case it is
        !           237: # just the target.
        !           238:        if [ x$name1 != x ]
        !           239:        then
        !           240:                if [ x$name2 != x ]
        !           241:                then
        !           242:                        echo "More than two configuration names." 1>&2
        !           243:                        exit 1
        !           244:                fi
        !           245:                name2=$arg
        !           246:        elif [ x$host != x ]
1.1       root      247:        then
1.1.1.7 ! root      248:                name1=$host
        !           249:                name2=$arg
        !           250:                host=
        !           251:        else
        !           252:                name1=$arg
1.1       root      253:        fi
                    254:        ;;
                    255:     esac
1.1.1.4   root      256:   esac
1.1       root      257: done
                    258: 
1.1.1.7 ! root      259: if [ x$name1 != x ]
        !           260: then
        !           261:        if [ x$name2 = x ]
        !           262:        then
        !           263:                name2=$name1
        !           264:        fi
        !           265: 
        !           266:        if [ x$host != x ]
        !           267:        then
        !           268:                echo "Duplicate specification of host." 1>&2
        !           269:                exit 1
        !           270:        fi
        !           271: 
        !           272:        if [ x$target != x ]
        !           273:        then
        !           274:                echo "Duplicate specification of target." 1>&2
        !           275:                exit 1
        !           276:        fi
        !           277: 
        !           278:        host=$name1
        !           279:        build=$name1
        !           280:        target=$name2
        !           281: fi
        !           282: 
1.1       root      283: # Find the source files, if location was not specified.
                    284: if [ x$srcdir = x ]
                    285: then
                    286:        srcdirdefaulted=1
                    287:        srcdir=.
                    288:        if [ ! -r tree.c ]
                    289:        then
                    290:                srcdir=..
                    291:        fi
                    292: fi
                    293: 
                    294: if [ ! -r ${srcdir}/tree.c ]
                    295: then
                    296:        if [ x$srcdirdefaulted = x ]
                    297:        then
1.1.1.2   root      298:          echo "$progname: Can't find compiler sources in \`${srcdir}'" 1>&2
1.1       root      299:        else
1.1.1.2   root      300:          echo "$progname: Can't find compiler sources in \`.' or \`..'" 1>&2
1.1       root      301:        fi
                    302:        exit 1
                    303: fi
                    304: 
1.1.1.2   root      305: if [ -r ${srcdir}/config.status ] && [ x$srcdir != x. ]
                    306: then
                    307:        echo "$progname: \`configure' has been run in \`${srcdir}'" 1>&2
                    308:        exit 1
1.1       root      309: fi
                    310: 
                    311: # Complain if an arg is missing
1.1.1.7 ! root      312: if [ x$build = x ]
1.1       root      313: then
1.1.1.7 ! root      314:        # If host was specified, always use it for build also to avoid
        !           315:        # confusion.  If someone wants a cross compiler where build != host,
        !           316:        # then they must specify build explicitly.  Since this case is
        !           317:        # extremely rare, it does not matter that it is slightly inconvenient.
        !           318:        if [ x$host != x ]
        !           319:        then
        !           320:                build=$host
        !           321:        
1.1.1.6   root      322:        # This way of testing the result of a command substitution is
                    323:        # defined by Posix.2 (section 3.9.1) as well as traditional shells.
1.1.1.7 ! root      324:        elif build=`${srcdir}/config.guess`
        !           325:        then
        !           326:                echo "This appears to be a ${build} system." 1>&2
        !           327: 
        !           328:        elif [ x$target != x ]
        !           329:        then
        !           330:                echo 'Config.guess failed to determine the host type.  Defaulting to target.'
        !           331:                build=$target
1.1.1.6   root      332:        else
                    333:                echo 'Config.guess failed to determine the host type.  You need to specify one.' 1>&2
                    334:                echo "\
1.1.1.4   root      335: Usage: `basename $progname` [--host=HOST] [--build=BUILD]
1.1.1.7 ! root      336:        [--prefix=DIR] [--gxx-include-dir=DIR] [--local-pref=DIR] [--exec-pref=DIR]
1.1.1.6   root      337:        [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--with-elf] [--nfp] TARGET" 1>&2
1.1.1.4   root      338:        echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
1.1.1.6   root      339:                if [ -r config.status ]
                    340:                then
                    341:                        tail +2 config.status 1>&2
                    342:                fi
                    343:                exit 1
1.1       root      344:        fi
                    345: fi
                    346: 
1.1.1.7 ! root      347: # If $host was not specified, use $build.
1.1       root      348: if [ x$host = x ]
                    349: then
1.1.1.7 ! root      350:        host=$build
1.1       root      351: fi
1.1.1.7 ! root      352: 
        !           353: # If $target was not specified, use $host.
        !           354: if [ x$target = x ]
1.1.1.4   root      355: then
1.1.1.7 ! root      356:        target=$host
1.1.1.4   root      357: fi
1.1       root      358: 
1.1.1.4   root      359: build_xm_file=
1.1.1.3   root      360: host_xm_file=
                    361: host_xmake_file=
                    362: host_broken_install=
1.1.1.5   root      363: host_install_headers_dir=install-headers-tar
1.1.1.6   root      364: host_truncate_target=
1.1.1.3   root      365: 
1.1.1.4   root      366: # Validate the specs, and canonicalize them.
1.1.1.5   root      367: canon_build=`/bin/sh $srcdir/config.sub $build` || exit 1
                    368: canon_host=`/bin/sh $srcdir/config.sub $host` || exit 1
                    369: canon_target=`/bin/sh $srcdir/config.sub $target` || exit 1
1.1.1.4   root      370: 
1.1       root      371: # Decode the host machine, then the target machine.
                    372: # For the host machine, we save the xm_file variable as host_xm_file;
                    373: # then we decode the target machine and forget everything else
                    374: # that came from the host machine.
1.1.1.4   root      375: for machine in $canon_build $canon_host $canon_target; do
1.1       root      376: 
                    377:        cpu_type=
                    378:        xm_file=
                    379:        tm_file=
1.1.1.3   root      380:        out_file=
1.1       root      381:        xmake_file=
                    382:        tmake_file=
1.1.1.3   root      383:        header_files=
1.1.1.6   root      384:        extra_passes=
1.1.1.7 ! root      385:        extra_parts=
        !           386:        extra_programs=
        !           387:        extra_objs=
1.1.1.3   root      388:        # Set this to force installation and use of collect2.
                    389:        use_collect2=
1.1.1.4   root      390:        # Set this to override the default target model.
                    391:        target_cpu_default=
1.1.1.3   root      392:        # Set this to force use of install.sh.
                    393:        broken_install=
1.1.1.4   root      394:        # Set this to control which fixincludes program to use.
                    395:        fixincludes=fixincludes
1.1.1.5   root      396:        # Set this to control how the header file directory is installed.
                    397:        install_headers_dir=install-headers-tar
1.1.1.6   root      398:        # Set this to a non-empty list of args to pass to cpp if the target
                    399:        # wants its .md file passed through cpp.
1.1.1.7 ! root      400:        md_cppflags=
1.1.1.6   root      401:        # Set this if directory names should be truncated to 14 characters.
                    402:        truncate_target=
1.1       root      403: 
                    404:        case $machine in
                    405:        # Support site-specific machine types.
                    406:        *local*)
1.1.1.5   root      407:                cpu_type=`echo $machine | sed -e 's/-.*//'`
                    408:                rest=`echo $machine | sed -e "s/$cpu_type-//"`
                    409:                xm_file=${cpu_type}/xm-$rest.h
                    410:                tm_file=${cpu_type}/$rest.h
                    411:                if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
                    412:                then xmake_file=${cpu_type}/x-$rest; \
1.1       root      413:                else true; \
                    414:                fi
1.1.1.5   root      415:                if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
                    416:                then tmake_file=${cpu_type}/t-$rest; \
1.1       root      417:                else true; \
                    418:                fi
                    419:                ;;
1.1.1.7 ! root      420:        1750a-*-*)
1.1       root      421:                ;;
1.1.1.7 ! root      422:        a29k-*-bsd*)
        !           423:                tm_file=a29k/unix.h
        !           424:                xm_file=a29k/xm-unix.h
        !           425:                xmake_file=a29k/x-unix
1.1.1.3   root      426:                use_collect2=yes
1.1       root      427:                ;;
1.1.1.7 ! root      428:        a29k-*-*)                       # Default a29k environment.
        !           429:                use_collect2=yes
1.1       root      430:                ;;
1.1.1.7 ! root      431:        alpha-dec-osf[23456789]*)
        !           432:                tm_file=alpha/osf2.h
        !           433:                if [ x$stabs = xyes ]
        !           434:                then
        !           435:                        tm_file=alpha/gdb-osf2.h
        !           436:                fi
        !           437:                if [ x$gas != xyes ]
        !           438:                then
        !           439:                        extra_passes="mips-tfile mips-tdump"
        !           440:                fi
        !           441:                broken_install=yes
        !           442:                use_collect2=yes
1.1       root      443:                ;;
1.1.1.7 ! root      444:        alpha-dec-osf1.2)
        !           445:                tm_file=alpha/osf12.h
        !           446:                if [ x$stabs = xyes ]
        !           447:                then
        !           448:                        tm_file=alpha/gdb-osf12.h
        !           449:                fi
        !           450:                if [ x$gas != xyes ]
        !           451:                then
        !           452:                        extra_passes="mips-tfile mips-tdump"
        !           453:                fi
        !           454:                broken_install=yes
        !           455:                use_collect2=yes
1.1.1.6   root      456:                ;;
1.1.1.7 ! root      457:        alpha-*-osf*)
        !           458:                if [ x$stabs = xyes ]
1.1.1.6   root      459:                then
1.1.1.7 ! root      460:                        tm_file=alpha/gdb.h
1.1.1.6   root      461:                fi
1.1.1.7 ! root      462:                if [ x$gas != xyes ]
        !           463:                then
        !           464:                        extra_passes="mips-tfile mips-tdump"
        !           465:                fi
        !           466:                broken_install=yes
        !           467:                use_collect2=yes
1.1.1.5   root      468:                ;;
1.1.1.7 ! root      469:        arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
        !           470:                tm_file=arm/riscix1-1.h
1.1.1.3   root      471:                use_collect2=yes
1.1.1.7 ! root      472:                ;;
        !           473:        arm-*-riscix*)                  # Acorn RISC machine
1.1.1.2   root      474:                if [ x$gas = xyes ]
                    475:                then
1.1.1.7 ! root      476:                    tm_file=arm/rix-gas.h
1.1.1.2   root      477:                else
1.1.1.7 ! root      478:                    tm_file=arm/riscix.h
1.1.1.2   root      479:                fi
1.1.1.7 ! root      480:                xmake_file=arm/x-riscix
        !           481:                tmake_file=arm/t-riscix
        !           482:                use_collect2=yes
1.1.1.2   root      483:                ;;
1.1.1.7 ! root      484:        arm-*-*)                        # generic version
1.1.1.5   root      485:                ;;
1.1.1.7 ! root      486:        c1-convex-*)                    # Convex C1
        !           487:                cpu_type=convex
        !           488:                tm_file=convex/convex1.h
        !           489:                use_collect2=yes
        !           490:                fixincludes=Makefile.in
1.1       root      491:                ;;
1.1.1.7 ! root      492:        c2-convex-*)                    # Convex C2
        !           493:                cpu_type=convex
        !           494:                tm_file=convex/convex2.h
1.1.1.3   root      495:                use_collect2=yes
1.1.1.7 ! root      496:                fixincludes=Makefile.in
1.1.1.3   root      497:                ;;
1.1.1.7 ! root      498:        c32-convex-*)
        !           499:                cpu_type=convex
        !           500:                tm_file=convex/convex32.h       # Convex C32xx
        !           501:                use_collect2=yes
        !           502:                fixincludes=Makefile.in
        !           503:                ;;
        !           504:        c34-convex-*)
        !           505:                cpu_type=convex
        !           506:                tm_file=convex/convex34.h       # Convex C34xx
        !           507:                use_collect2=yes
        !           508:                fixincludes=Makefile.in
        !           509:                ;;
        !           510:        c38-convex-*)
        !           511:                cpu_type=convex
        !           512:                tm_file=convex/convex38.h       # Convex C38xx
        !           513:                use_collect2=yes
        !           514:                fixincludes=Makefile.in
        !           515:                ;;
        !           516:        clipper-intergraph-clix*)
1.1.1.4   root      517:                broken_install=yes
1.1.1.7 ! root      518:                cpu_type=clipper
        !           519:                xm_file=clipper/xm-clix.h
        !           520:                tm_file=clipper/clix.h
        !           521:                extra_headers=va-clipper.h
        !           522:                extra_parts="crtbegin.o crtend.o"
        !           523:                xmake_file=clipper/x-clix
1.1.1.5   root      524:                install_headers_dir=install-headers-cpio
1.1.1.7 ! root      525:                ;;
        !           526:        dsp16xx-*)
        !           527:                ;;
        !           528:        elxsi-elxsi-*)
        !           529:                use_collect2=yes
        !           530:                ;;
        !           531: # This hasn't been upgraded to GCC 2.
        !           532: #      fx80-alliant-*)                 # Alliant FX/80
        !           533: #              ;;
        !           534:        h8300-*-*)
        !           535:                cpu_type=h8300
        !           536:                ;;
        !           537:        hppa1.1-*-osf*)
        !           538:                cpu_type=pa
        !           539:                tm_file=pa/pa1-osf.h
        !           540:                use_collect2=yes
        !           541:                ;;
        !           542:        hppa1.0-*-osf*)
        !           543:                cpu_type=pa
        !           544:                tm_file=pa/pa-osf.h
        !           545:                use_collect2=yes
        !           546:                ;;
        !           547:        hppa1.1-*-bsd*)
        !           548:                cpu_type=pa
        !           549:                tm_file=pa/pa1.h
        !           550:                use_collect2=yes
        !           551:                ;;
        !           552:        hppa1.0-*-bsd*)
        !           553:                cpu_type=pa
        !           554:                use_collect2=yes
        !           555:                ;;
        !           556:        hppa1.0-*-hpux7*)
        !           557:                cpu_type=pa
        !           558:                xm_file=pa/xm-pahpux.h
        !           559:                xmake_file=pa/x-pa-hpux
        !           560:                tmake_file=pa/t-pa-hpux
        !           561:                if [ x$gas = xyes ]
1.1.1.5   root      562:                then
1.1.1.7 ! root      563:                        tm_file=pa/pa-gux7.h
1.1.1.5   root      564:                else
1.1.1.7 ! root      565:                        tm_file=pa/pa-hpux7.h
1.1.1.5   root      566:                fi
1.1.1.4   root      567:                broken_install=yes
1.1.1.5   root      568:                install_headers_dir=install-headers-cpio
1.1.1.7 ! root      569:                use_collect2=yes
1.1       root      570:                ;;
1.1.1.7 ! root      571:        hppa1.0-*-hpux8.0[0-2]*)
        !           572:                cpu_type=pa
        !           573:                xm_file=pa/xm-pahpux.h
        !           574:                xmake_file=pa/x-pa-hpux
        !           575:                tmake_file=pa/t-pa-hpux
        !           576:                if [ x$gas = xyes ]
1.1.1.4   root      577:                then
1.1.1.7 ! root      578:                        tm_file=pa/pa-ghpux.h
1.1.1.4   root      579:                else
1.1.1.7 ! root      580:                        tm_file=pa/pa-oldas.h
1.1.1.4   root      581:                fi
                    582:                broken_install=yes
1.1.1.7 ! root      583:                install_headers_dir=install-headers-cpio
        !           584:                use_collect2=yes
1.1       root      585:                ;;
1.1.1.7 ! root      586:        hppa1.1-*-hpux8.0[0-2]*)
        !           587:                cpu_type=pa
        !           588:                xm_file=pa/xm-pahpux.h
        !           589:                xmake_file=pa/x-pa-hpux
        !           590:                tmake_file=pa/t-pa-hpux
        !           591:                if [ x$gas = xyes ]
1.1.1.4   root      592:                then
1.1.1.7 ! root      593:                        tm_file=pa/pa1-ghpux.h
1.1.1.4   root      594:                else
1.1.1.7 ! root      595:                        tm_file=pa/pa1-oldas.h
1.1.1.4   root      596:                fi
1.1.1.3   root      597:                broken_install=yes
1.1.1.7 ! root      598:                install_headers_dir=install-headers-cpio
        !           599:                use_collect2=yes
        !           600:                ;;
        !           601:        hppa1.1-*-hpux*)
        !           602:                cpu_type=pa
        !           603:                xm_file=pa/xm-pahpux.h
        !           604:                xmake_file=pa/x-pa-hpux
        !           605:                tmake_file=pa/t-pa-hpux
        !           606:                if [ x$gas = xyes ]
        !           607:                then
        !           608:                        tm_file=pa/pa1-ghpux.h
        !           609:                else
        !           610:                        tm_file=pa/pa1-hpux.h
        !           611:                fi
        !           612:                broken_install=yes
        !           613:                install_headers_dir=install-headers-cpio
1.1.1.3   root      614:                use_collect2=yes
1.1       root      615:                ;;
1.1.1.7 ! root      616:        hppa1.0-*-hpux*)
        !           617:                cpu_type=pa
        !           618:                xm_file=pa/xm-pahpux.h
        !           619:                xmake_file=pa/x-pa-hpux
        !           620:                tmake_file=pa/t-pa-hpux
        !           621:                if [ x$gas = xyes ]
        !           622:                then
        !           623:                        tm_file=pa/pa-ghpux.h
        !           624:                else
        !           625:                        tm_file=pa/pa-hpux.h
        !           626:                fi
        !           627:                broken_install=yes
        !           628:                install_headers_dir=install-headers-cpio
        !           629:                use_collect2=yes
        !           630:                ;;
        !           631:        hppa1.1-*-hiux*)
        !           632:                cpu_type=pa
        !           633:                xm_file=pa/xm-pahiux.h
        !           634:                xmake_file=pa/x-pa-hiux
        !           635:                tmake_file=pa/t-pa-hpux
        !           636:                if [ x$gas = xyes ]
        !           637:                then
        !           638:                        tm_file=pa/pa1-ghiux.h
        !           639:                else
        !           640:                        tm_file=pa/pa1-hiux.h
        !           641:                fi
        !           642:                broken_install=yes
        !           643:                install_headers_dir=install-headers-cpio
        !           644:                use_collect2=yes
        !           645:                ;;
        !           646:        hppa1.0-*-hiux*)
        !           647:                cpu_type=pa
        !           648:                xm_file=pa/xm-pahiux.h
        !           649:                xmake_file=pa/x-pa-hiux
        !           650:                tmake_file=pa/t-pa-hpux
        !           651:                if [ x$gas = xyes ]
        !           652:                then
        !           653:                        tm_file=pa/pa-ghiux.h
        !           654:                else
        !           655:                        tm_file=pa/pa-hiux.h
        !           656:                fi
        !           657:                broken_install=yes
        !           658:                install_headers_dir=install-headers-cpio
        !           659:                use_collect2=yes
        !           660:                ;;
        !           661:        i370-*-mvs*)
        !           662:                cpu_type=i370
        !           663:                tm_file=i370/mvs.h
        !           664:                xm_file=i370/xm-mvs.h
        !           665:                out_file=i370/mvs370.c
        !           666:                ;;
        !           667:        i[345]86-ibm-aix*)              # IBM PS/2 running AIX
1.1.1.4   root      668:                cpu_type=i386
1.1.1.7 ! root      669:                 if [ x$gas = xyes ]
1.1.1.6   root      670:                then
1.1.1.7 ! root      671:                        tm_file=i386/aix386.h
        !           672:                        extra_parts="crtbegin.o crtend.o"
1.1.1.6   root      673:                else
1.1.1.7 ! root      674:                        tm_file=i386/aix386ng.h
        !           675:                        use_collect2=yes
1.1.1.6   root      676:                fi
1.1.1.7 ! root      677:                xm_file=i386/xm-aix.h
        !           678:                xmake_file=i386/x-aix
1.1.1.4   root      679:                broken_install=yes
                    680:                ;;
                    681:        i486-ncr-sysv4*)                # NCR 3000 - i486 running system V.4
                    682:                cpu_type=i386
1.1.1.5   root      683:                xm_file=i386/xm-sysv4.h
                    684:                xmake_file=i386/x-ncr3000
                    685:                tm_file=i386/sysv4.h
1.1       root      686:                tmake_file=t-svr4
                    687:                ;;
1.1.1.7 ! root      688:        i[345]86-next-*)
1.1.1.4   root      689:                cpu_type=i386
1.1.1.7 ! root      690:                tm_file=i386/next.h
        !           691:                out_file=i386/next.c
        !           692:                xm_file=i386/xm-next.h
        !           693:                tmake_file=i386/t-next
        !           694:                xmake_file=i386/x-next
        !           695:                ;;
        !           696:        i[345]86-sequent-bsd*)          # 80386 from Sequent
        !           697:                cpu_type=i386
        !           698:                use_collect2=yes
        !           699:                if [ x$gas = xyes ]
        !           700:                then
        !           701:                        tm_file=i386/seq-gas.h
        !           702:                else
        !           703:                        tm_file=i386/sequent.h
        !           704:                fi
1.1.1.4   root      705:                ;;
1.1.1.7 ! root      706:        i[345]86-sequent-ptx1*)
1.1.1.6   root      707:                cpu_type=i386
                    708:                xm_file=i386/xm-sysv3.h
                    709:                xmake_file=i386/x-sysv3
                    710:                tm_file=i386/seq-sysv3.h
                    711:                tmake_file=t-svr3
1.1.1.7 ! root      712:                fixincludes=fixinc.ptx
        !           713:                extra_parts="crtbegin.o crtend.o"
        !           714:                install_headers_dir=install-headers-cpio
        !           715:                broken_install=yes
        !           716:                ;;
        !           717:        i[345]86-sequent-ptx2* | i[345]86-sequent-sysv*)
        !           718:                cpu_type=i386
        !           719:                xm_file=i386/xm-sysv3.h
        !           720:                xmake_file=i386/x-sysv3
        !           721:                tm_file=i386/seq2-sysv3.h
        !           722:                tmake_file=t-svr3
        !           723:                extra_parts="crtbegin.o crtend.o"
        !           724:                fixincludes=fixinc.ptx
        !           725:                install_headers_dir=install-headers-cpio
        !           726:                broken_install=yes
        !           727:                ;;
        !           728:        i386-sun-sunos*)                # Sun i386 roadrunner
        !           729:                xm_file=i386/xm-sun.h
        !           730:                tm_file=i386/sun.h
        !           731:                use_collect2=yes
        !           732:                ;;
        !           733:        i[345]86-*-bsdi* | i[345]86-*-bsd386*)
        !           734:                cpu_type=i386
        !           735:                tm_file=i386/bsd386.h
        !           736: #              tmake_file=t-libc-ok
        !           737:                ;;
        !           738:        i[345]86-*-bsd*)
        !           739:                cpu_type=i386
        !           740:                tm_file=i386/386bsd.h
        !           741: #              tmake_file=t-libc-ok
        !           742: # Next line turned off because both 386BSD and BSD/386 use GNU ld.
        !           743: #              use_collect2=yes
        !           744:                ;;
        !           745:        i[345]86-*-freebsd*)
        !           746:                cpu_type=i386
        !           747:                tm_file=i386/freebsd.h
        !           748:                # On FreeBSD, the headers are already ok.
        !           749:                fixincludes=Makefile.in
        !           750:                xmake_file=i386/x-freebsd
        !           751:                ;;
        !           752:        i[345]86-*-netbsd*)
        !           753:                cpu_type=i386
        !           754:                tm_file=i386/netbsd-i386.h
        !           755:                # On NetBSD, the headers are already okay.
        !           756:                fixincludes=Makefile.in
        !           757:                xmake_file=x-netbsd
        !           758:                ;;
        !           759:        i[345]86-*-gnu*)
        !           760:                cpu_type=i386
        !           761:                xm_file=i386/xm-gnu.h
        !           762:                tm_file=i386/gnu.h
        !           763:                tmake_file=t-libc-ok
        !           764:                # GNU tools are the only tools.
        !           765:                gnu_ld=yes
        !           766:                gas=yes
        !           767:                # On GNU, the headers are already okay.
        !           768:                fixincludes=Makefile.in
        !           769:                ;;
        !           770:        i[345]86-*-isc*)                # 80386 running ISC system
        !           771:                cpu_type=i386
        !           772:                xm_file=i386/xm-isc.h
        !           773:                case $machine in
        !           774:                  i[345]86-*-isc[34]*)
        !           775:                    xmake_file=i386/x-isc3
        !           776:                    ;;
        !           777:                  *)
        !           778:                    xmake_file=i386/x-isc
        !           779:                    ;;
        !           780:                esac
        !           781:                echo $xmake_file
        !           782:                 if [ x$gas = xyes -a x$stabs = xyes ]
        !           783:                then
        !           784:                        tm_file=i386/iscdbx.h
        !           785:                        tmake_file=i386/t-svr3dbx
        !           786:                else
        !           787:                        tm_file=i386/isccoff.h
        !           788:                        extra_parts="crtbegin.o crtend.o"
        !           789:                fi
        !           790:                install_headers_dir=install-headers-cpio
        !           791:                broken_install=yes
        !           792:                ;;
        !           793:        i[345]86-*-linux*)              # Intel 80386's running Linux
        !           794:                cpu_type=i386
        !           795:                xm_file=i386/xm-linux.h
        !           796:                xmake_file=i386/x-linux
        !           797:                 if [ x$elf = xyes ]
        !           798:                then
        !           799:                        tm_file=i386/linuxelf.h
        !           800:                else
        !           801:                        tm_file=i386/linux.h
        !           802:                fi
        !           803:                fixincludes=Makefile.in #On Linux, the headers are ok already.
        !           804:                broken_install=yes
        !           805:                ;;
        !           806:        i[345]86-*-lynxos*)
        !           807:                cpu_type=i386
        !           808:                if [ x$gas = xyes ]
        !           809:                then
        !           810:                        tm_file=i386/lynx.h
        !           811:                else
        !           812:                        tm_file=i386/lynx-ng.h
        !           813:                fi
        !           814:                xm_file=xm-lynx.h
        !           815:                xmake_file=x-lynx
        !           816:                ;;
        !           817:        i[345]86-*-mach*)
        !           818:                cpu_type=i386
        !           819:                tm_file=i386/mach.h
        !           820: #              tmake_file=t-libc-ok
        !           821:                use_collect2=yes
        !           822:                ;;
        !           823:        i[345]86-*-osfrose*)            # 386 using OSF/rose
        !           824:                cpu_type=i386
        !           825:                 if [ x$elf = xyes ]
        !           826:                then
        !           827:                        tm_file=i386/osfelf.h
        !           828:                        use_collect2=
        !           829:                else
        !           830:                        tm_file=i386/osfrose.h
        !           831:                        use_collect2=yes
        !           832:                fi
        !           833:                xm_file=i386/xm-osf.h
        !           834:                xmake_file=i386/x-osfrose
        !           835:                extra_objs=halfpic.o
        !           836:                ;;
        !           837:        i[345]86-*-sco3.2v4*)           # 80386 running SCO 3.2v4 system
        !           838:                cpu_type=i386
        !           839:                xm_file=i386/xm-sco.h
        !           840:                xmake_file=i386/x-sco4
        !           841:                fixincludes=fixinc.sco
        !           842:                broken_install=yes
        !           843:                install_headers_dir=install-headers-cpio
        !           844:                 if [ x$stabs = xyes ]
        !           845:                then
        !           846:                        tm_file=i386/sco4dbx.h
        !           847:                        tmake_file=i386/t-svr3dbx
        !           848:                else
        !           849:                        tm_file=i386/sco4.h
        !           850:                        extra_parts="crtbegin.o crtend.o"
        !           851:                fi
        !           852:                ;;
        !           853:        i[345]86-*-sco*)                # 80386 running SCO system
        !           854:                cpu_type=i386
        !           855:                xm_file=i386/xm-sco.h
        !           856:                xmake_file=i386/x-sco
        !           857:                broken_install=yes
        !           858:                install_headers_dir=install-headers-cpio
        !           859:                 if [ x$stabs = xyes ]
        !           860:                then
        !           861:                        tm_file=i386/scodbx.h
        !           862:                        tmake_file=i386/t-svr3dbx
        !           863:                else
        !           864:                        tm_file=i386/sco.h
        !           865:                        extra_parts="crtbegin.o crtend.o"
        !           866:                fi
        !           867:                truncate_target=yes
        !           868:                ;;
        !           869:        i[345]86-*-solaris2* | i[345]86-*-sunos5*)
        !           870:                cpu_type=i386
        !           871:                xm_file=i386/xm-sysv4.h
        !           872:                tm_file=i386/sol2.h
        !           873:                tmake_file=i386/t-sol2
        !           874:                extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
        !           875:                xmake_file=x-svr4
1.1.1.6   root      876:                fixincludes=fixinc.svr4
                    877:                broken_install=yes
                    878:                ;;
1.1.1.7 ! root      879:        i[345]86-*-sysv4*)              # Intel 80386's running system V.4
        !           880:                cpu_type=i386
        !           881:                xm_file=i386/xm-sysv4.h
        !           882:                if [ x$stabs = xyes ]
        !           883:                then
        !           884:                        tm_file=i386/sysv4gdb.h
        !           885:                else
        !           886:                        tm_file=i386/sysv4.h
        !           887:                fi
        !           888:                tmake_file=t-svr4
        !           889:                xmake_file=x-svr4
        !           890:                ;;
        !           891:        i[345]86-*-sysv*)               # Intel 80386's running system V
1.1.1.5   root      892:                cpu_type=i386
                    893:                xm_file=i386/xm-sysv3.h
                    894:                xmake_file=i386/x-sysv3
1.1       root      895:                if [ x$gas = xyes ]
                    896:                then
1.1.1.4   root      897:                        if [ x$stabs = xyes ]
                    898:                        then
1.1.1.5   root      899:                                tm_file=i386/svr3dbx.h
                    900:                                tmake_file=i386/t-svr3dbx
1.1.1.4   root      901:                        else
1.1.1.5   root      902:                                tm_file=i386/svr3gas.h
1.1.1.7 ! root      903:                                extra_parts="crtbegin.o crtend.o"
1.1.1.4   root      904:                        fi
1.1       root      905:                else
1.1.1.5   root      906:                        tm_file=i386/sysv3.h
1.1.1.7 ! root      907:                        extra_parts="crtbegin.o crtend.o"
1.1       root      908:                fi
                    909:                ;;
1.1.1.7 ! root      910:        i[345]86-*-winnt3*)
1.1.1.5   root      911:                cpu_type=i386
1.1.1.7 ! root      912:                tm_file=i386/winnt.h
        !           913:                out_file=i386/i386.c
        !           914:                xm_file=i386/xm-winnt.h
        !           915:                xmake_file=i386/x-winnt
        !           916:                if [ x$gnu_ld != xyes ]
        !           917:                then
        !           918:                        extra_programs=ld
        !           919:                fi
1.1.1.5   root      920:                ;;
1.1.1.7 ! root      921:        i860-alliant-*)         # Alliant FX/2800
        !           922:                xm_file=i860/xm-fx2800.h
        !           923:                xmake_file=i860/x-fx2800
        !           924:                tm_file=i860/fx2800.h
        !           925:                tmake_file=i860/t-fx2800
        !           926:                extra_parts="crtbegin.o crtend.o"
1.1.1.6   root      927:                ;;
1.1.1.7 ! root      928:        i860-*-bsd*)
        !           929:                if [ x$gas = xyes ]
        !           930:                then
        !           931:                        tm_file=i860/bsd-gas.h
        !           932:                else
        !           933:                        tm_file=i860/bsd.h
        !           934:                fi
        !           935:                use_collect2=yes
1.1.1.6   root      936:                ;;
1.1.1.4   root      937:        i860-*-mach*)
1.1.1.5   root      938:                xm_file=i860/xm-i860.h
                    939:                tm_file=i860/mach.h
1.1.1.4   root      940:                tmake_file=t-libc-ok
1.1       root      941:                ;;
1.1.1.7 ! root      942:        i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
        !           943:                xm_file=i860/xm-paragon.h
        !           944:                tm_file=i860/paragon.h
        !           945:                tmake_file=t-osf
        !           946:                broken_install=yes
        !           947:                ;;
1.1       root      948:        i860-*-sysv3*)
1.1.1.5   root      949:                xm_file=i860/xm-sysv3.h
                    950:                xmake_file=i860/x-sysv3
                    951:                tm_file=i860/sysv3.h
1.1.1.7 ! root      952:                extra_parts="crtbegin.o crtend.o"
1.1       root      953:                ;;
                    954:        i860-*-sysv4*)
1.1.1.5   root      955:                xm_file=i860/xm-sysv4.h
                    956:                xmake_file=i860/x-sysv4
                    957:                tm_file=i860/sysv4.h
1.1       root      958:                tmake_file=t-svr4
                    959:                ;;
1.1.1.7 ! root      960:        i960-*-coff*)
        !           961:                tmake_file=i960/t-960bare
        !           962:                tm_file=i960/i960-coff.h
        !           963:                use_collect2=yes
1.1       root      964:                ;;
1.1.1.7 ! root      965:        i960-*-*)                       # Default i960 environment.
        !           966:                use_collect2=yes
        !           967:                ;;
        !           968:        m68000-convergent-sysv*)
        !           969:                cpu_type=m68k
        !           970:                xm_file=m68k/xm-3b1.h
        !           971:                tm_file=m68k/ctix.h
        !           972:                use_collect2=yes
        !           973:                header_files=math-68881.h
        !           974:                ;;
        !           975:        m68000-hp-bsd*)                 # HP 9000/200 running BSD
        !           976:                cpu_type=m68k
        !           977:                tm_file=m68k/hp2bsd.h
        !           978:                xmake_file=m68k/x-hp2bsd
        !           979:                use_collect2=yes
        !           980:                header_files=math-68881.h
        !           981:                ;;
        !           982:        m68000-hp-hpux*)                # HP 9000 series 300
        !           983:                cpu_type=m68k
        !           984:                xm_file=m68k/xm-hp320.h
1.1       root      985:                if [ x$gas = xyes ]
                    986:                then
1.1.1.7 ! root      987:                        xmake_file=m68k/x-hp320g
        !           988:                        tm_file=m68k/hp310g.h
1.1       root      989:                else
1.1.1.7 ! root      990:                        xmake_file=m68k/x-hp320
        !           991:                        tm_file=m68k/hp310.h
1.1       root      992:                fi
1.1.1.7 ! root      993:                broken_install=yes
        !           994:                install_headers_dir=install-headers-cpio
1.1.1.3   root      995:                use_collect2=yes
1.1.1.7 ! root      996:                header_files=math-68881.h
1.1       root      997:                ;;
1.1.1.7 ! root      998:        m68000-sun-sunos3*)
        !           999:                cpu_type=m68k
        !          1000:                tm_file=m68k/sun2.h
1.1.1.4   root     1001:                use_collect2=yes
1.1.1.7 ! root     1002:                header_files=math-68881.h
1.1.1.4   root     1003:                ;;
1.1.1.7 ! root     1004:        m68000-sun-sunos4*)
        !          1005:                cpu_type=m68k
        !          1006:                tm_file=m68k/sun2o4.h
1.1.1.3   root     1007:                use_collect2=yes
1.1.1.7 ! root     1008:                header_files=math-68881.h
1.1       root     1009:                ;;
1.1.1.7 ! root     1010:        m68000-att-sysv*)
        !          1011:                cpu_type=m68k
        !          1012:                xm_file=m68k/xm-3b1.h
        !          1013:                if [ x$gas = xyes ]
        !          1014:                then
        !          1015:                        tm_file=m68k/3b1g.h
        !          1016:                else
        !          1017:                        tm_file=m68k/3b1.h
        !          1018:                fi
1.1.1.3   root     1019:                use_collect2=yes
1.1.1.7 ! root     1020:                header_files=math-68881.h
1.1       root     1021:                ;;
1.1.1.7 ! root     1022:        m68k-apollo-*)
        !          1023:                xmake_file=m68k/x-apollo68
        !          1024:                tm_file=m68k/apollo68.h
1.1.1.5   root     1025:                use_collect2=yes
1.1.1.3   root     1026:                header_files=math-68881.h
1.1       root     1027:                ;;
1.1.1.7 ! root     1028:        m68k-altos-sysv*)                  # Altos 3068
        !          1029:                if [ x$gas = xyes ]
        !          1030:                then
        !          1031:                        xm_file=m68k/xm-altos3068.h
        !          1032:                        tm_file=m68k/altos3068.h
        !          1033:                else
        !          1034:                        echo "The Altos is supported only with the GNU assembler" 1>&2
        !          1035:                        exit 1
        !          1036:                fi
1.1.1.3   root     1037:                header_files=math-68881.h
1.1.1.7 ! root     1038:                ;;
1.1.1.3   root     1039:        m68k-bull-sysv*)                # Bull DPX/2
                   1040:                if [ x$gas = xyes ]
                   1041:                then
1.1.1.6   root     1042:                        if [ x$stabs = xyes ]
                   1043:                        then
                   1044:                                tm_file=m68k/dpx2cdbx.h
                   1045:                        else
                   1046:                                tm_file=m68k/dpx2g.h
                   1047:                        fi
1.1.1.3   root     1048:                else
1.1.1.5   root     1049:                        tm_file=m68k/dpx2.h
1.1.1.3   root     1050:                fi
1.1.1.5   root     1051:                xm_file=m68k/xm-m68kv.h
                   1052:                xmake_file=m68k/x-dpx2
1.1.1.3   root     1053:                use_collect2=yes
                   1054:                header_files=math-68881.h
1.1       root     1055:                ;;
1.1.1.7 ! root     1056:        m68k-atari-sysv4*)              # Atari variant of V.4.
        !          1057:                tm_file=m68k/atari.h
        !          1058:                xm_file=m68k/xm-atari.h
        !          1059:                tmake_file=t-svr4
1.1.1.3   root     1060:                header_files=math-68881.h
1.1       root     1061:                ;;
1.1.1.7 ! root     1062:        m68k-motorola-sysv*)
        !          1063:                xm_file=m68k/xm-mot3300.h
        !          1064:                xmake_file=m68k/x-alloca-c
        !          1065:                if [ x$gas = xyes ]
1.1       root     1066:                then
1.1.1.7 ! root     1067:                        tm_file=m68k/mot3300g.h
1.1       root     1068:                else
1.1.1.7 ! root     1069:                        tm_file=m68k/mot3300.h
1.1       root     1070:                fi
1.1.1.3   root     1071:                use_collect2=yes
                   1072:                header_files=math-68881.h
1.1       root     1073:                ;;
1.1.1.7 ! root     1074:        m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
        !          1075:                tm_file=m68k/tower-as.h
        !          1076:                xm_file=m68k/xm-tower.h
        !          1077:                xmake_file=m68k/x-tower
        !          1078:                extra_parts="crtbegin.o crtend.o"
1.1.1.3   root     1079:                header_files=math-68881.h
1.1       root     1080:                ;;
1.1.1.7 ! root     1081:         m68k-plexus-sysv*)
        !          1082:                tm_file=m68k/plexus.h
        !          1083:                xm_file=m68k/xm-plexus.h
1.1.1.3   root     1084:                use_collect2=yes
                   1085:                header_files=math-68881.h
1.1.1.2   root     1086:                ;;
                   1087:        m68k-tti-*)
1.1.1.5   root     1088:                tm_file=m68k/pbb.h
                   1089:                xm_file=m68k/xm-m68kv.h
1.1.1.3   root     1090:                header_files=math-68881.h
1.1.1.2   root     1091:                ;;
1.1.1.7 ! root     1092:        m68k-crds-unos*)
        !          1093:                xm_file=m68k/xm-crds.h
        !          1094:                xmake_file=m68k/x-crds
        !          1095:                tm_file=m68k/crds.h
        !          1096:                broken_install=yes
        !          1097:                use_collect2=yes
        !          1098:                header_files=math-68881.h
        !          1099:                ;;
        !          1100:        m68k-cbm-sysv4*)                # Commodore variant of V.4.
        !          1101:                tm_file=m68k/amix.h
        !          1102:                xm_file=m68k/xm-amix.h
        !          1103:                xmake_file=m68k/x-amix
        !          1104:                tmake_file=t-svr4
        !          1105:                header_files=math-68881.h
        !          1106:                ;;
        !          1107:        m68k-ccur-rtu)
        !          1108:                tm_file=m68k/ccur-GAS.h
        !          1109:                xmake_file=m68k/x-ccur
        !          1110:                header_files=math-68881.h
        !          1111:                use_collect2=yes
        !          1112:                broken_install=yes
        !          1113:                ;;
        !          1114:        m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
        !          1115:                tm_file=m68k/hp3bsd44.h
        !          1116:                xmake_file=m68k/x-hp3bsd44
        !          1117:                use_collect2=yes
        !          1118:                header_files=math-68881.h
        !          1119:                ;;
        !          1120:        m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
        !          1121:                tm_file=m68k/hp3bsd.h
        !          1122:                use_collect2=yes
        !          1123:                header_files=math-68881.h
        !          1124:                ;;
        !          1125:        m68k-isi-bsd*)
        !          1126:                if [ x$nfp = xyes ]
        !          1127:                then
        !          1128:                        tm_file=m68k/isi-nfp.h
        !          1129:                else
        !          1130:                        tm_file=m68k/isi.h
        !          1131:                fi
        !          1132:                use_collect2=yes
        !          1133:                header_files=math-68881.h
        !          1134:                ;;
1.1.1.6   root     1135:        m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1.1.1.5   root     1136:                xm_file=m68k/xm-hp320.h
1.1       root     1137:                if [ x$gas = xyes ]
                   1138:                then
1.1.1.5   root     1139:                        xmake_file=m68k/x-hp320g
                   1140:                        tm_file=m68k/hp320g.h
1.1       root     1141:                else
1.1.1.5   root     1142:                        xmake_file=m68k/x-hp320
1.1.1.6   root     1143:                        tm_file=m68k/hpux7.h
1.1       root     1144:                fi
1.1.1.3   root     1145:                broken_install=yes
1.1.1.5   root     1146:                install_headers_dir=install-headers-cpio
1.1.1.3   root     1147:                use_collect2=yes
                   1148:                header_files=math-68881.h
1.1       root     1149:                ;;
1.1.1.6   root     1150:        m68k-hp-hpux*)  # HP 9000 series 300
                   1151:                xm_file=m68k/xm-hp320.h
                   1152:                if [ x$gas = xyes ]
                   1153:                then
                   1154:                        xmake_file=m68k/x-hp320g
                   1155:                        tm_file=m68k/hp320g.h
                   1156:                else
                   1157:                        xmake_file=m68k/x-hp320
                   1158:                        tm_file=m68k/hp320.h
                   1159:                fi
                   1160:                broken_install=yes
                   1161:                install_headers_dir=install-headers-cpio
1.1.1.5   root     1162:                use_collect2=yes
                   1163:                header_files=math-68881.h
                   1164:                ;;
1.1.1.7 ! root     1165:        m68k-sun-mach*)
        !          1166:                tm_file=m68k/sun3mach.h
1.1.1.3   root     1167:                use_collect2=yes
                   1168:                header_files=math-68881.h
1.1       root     1169:                ;;
1.1.1.4   root     1170:        m68k-sony-newsos3*)
                   1171:                if [ x$gas = xyes ]
                   1172:                then
1.1.1.5   root     1173:                        tm_file=m68k/news3gas.h
1.1.1.4   root     1174:                else
1.1.1.5   root     1175:                        tm_file=m68k/news3.h
1.1.1.4   root     1176:                fi
                   1177:                use_collect2=yes
                   1178:                header_files=math-68881.h
                   1179:                ;;
                   1180:        m68k-sony-bsd* | m68k-sony-newsos*)
1.1       root     1181:                if [ x$gas = xyes ]
                   1182:                then
1.1.1.5   root     1183:                        tm_file=m68k/newsgas.h
1.1       root     1184:                else
1.1.1.5   root     1185:                        tm_file=m68k/news.h
1.1       root     1186:                fi
1.1.1.3   root     1187:                use_collect2=yes
                   1188:                header_files=math-68881.h
1.1       root     1189:                ;;
1.1.1.7 ! root     1190:        m68k-next-nextstep2*)
        !          1191:                tm_file=m68k/next21.h
        !          1192:                out_file=m68k/next.c
        !          1193:                xm_file=m68k/xm-next.h
        !          1194:                tmake_file=m68k/t-next
        !          1195:                xmake_file=m68k/x-next
1.1.1.3   root     1196:                header_files=math-68881.h
                   1197:                use_collect2=yes
1.1.1.7 ! root     1198:                 ;;
        !          1199:        m68k-next-nextstep3*)
        !          1200:                tm_file=m68k/next.h
        !          1201:                out_file=m68k/next.c
        !          1202:                xm_file=m68k/xm-next.h
        !          1203:                tmake_file=m68k/t-next
        !          1204:                xmake_file=m68k/x-next
1.1.1.3   root     1205:                header_files=math-68881.h
1.1       root     1206:                ;;
1.1.1.7 ! root     1207:        m68k-sun-sunos3*)
        !          1208:                if [ x$nfp = xyes ]
1.1       root     1209:                then
1.1.1.7 ! root     1210:                        tm_file=m68k/sun3n3.h
1.1       root     1211:                else
1.1.1.7 ! root     1212:                        tm_file=m68k/sun3o3.h
1.1       root     1213:                fi
1.1.1.3   root     1214:                use_collect2=yes
                   1215:                header_files=math-68881.h
1.1       root     1216:                ;;
1.1.1.7 ! root     1217:        m68k-sun-sunos* | m68k-wrs-vxworks)     # For SunOS 4 (the default).
        !          1218:                if [ x$nfp = xyes ]
        !          1219:                then
        !          1220:                        tm_file=m68k/sun3n.h
        !          1221:                else
        !          1222:                        tm_file=m68k/sun3.h
        !          1223:                fi
1.1.1.3   root     1224:                use_collect2=yes
                   1225:                header_files=math-68881.h
1.1       root     1226:                ;;
1.1.1.7 ! root     1227:        m68k-*-lynxos*)
1.1       root     1228:                if [ x$gas = xyes ]
                   1229:                then
1.1.1.7 ! root     1230:                        tm_file=m68k/lynx.h
1.1       root     1231:                else
1.1.1.7 ! root     1232:                        tm_file=m68k/lynx-ng.h
1.1       root     1233:                fi
1.1.1.6   root     1234:                xm_file=xm-lynx.h
                   1235:                xmake_file=x-lynx
                   1236:                header_files=math-68881.h
                   1237:                ;;
1.1.1.7 ! root     1238:        m68k-*-netbsd*)
1.1       root     1239:                cpu_type=m68k
1.1.1.7 ! root     1240:                tm_file=m68k/netbsd-m68k.h
        !          1241:                # On NetBSD, the headers are already okay.
        !          1242:                fixincludes=Makefile.in
        !          1243:                xmake_file=x-netbsd
1.1.1.2   root     1244:                ;;
1.1.1.7 ! root     1245:        m68k-*-sysv3*)                  # Motorola m68k's running system V.3
        !          1246:                xm_file=m68k/xm-m68kv.h
        !          1247:                xmake_file=m68k/x-m68kv
        !          1248:                extra_parts="crtbegin.o crtend.o"
        !          1249:                header_files=math-68881.h
1.1.1.2   root     1250:                ;;
1.1.1.7 ! root     1251:        m68k-*-sysv4*)                  # Motorola m68k's running system V.4
        !          1252:                tm_file=m68k/m68kv4.h
        !          1253:                xm_file=m68k/xm-m68kv.h
        !          1254:                tmake_file=t-svr4
        !          1255:                header_files=math-68881.h
1.1       root     1256:                ;;
                   1257:        m88k-dg-dgux*)
1.1.1.7 ! root     1258:                case $machine in
        !          1259:                  m88k-dg-dguxbcs*)
        !          1260:                    tm_file=m88k/dguxbcs.h
        !          1261:                    xmake_file=m88k/x-dguxbcs
        !          1262:                    ;;
        !          1263:                  *)
        !          1264:                    tm_file=m88k/dgux.h
        !          1265:                    xmake_file=m88k/x-dgux
        !          1266:                    ;;
        !          1267:                esac
        !          1268:                extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1.1.1.4   root     1269:                broken_install=yes
1.1.1.5   root     1270:                if [ x$gas = xyes ]
                   1271:                then
1.1.1.7 ! root     1272:                        tmake_file=m88k/t-dgux-gas
1.1.1.5   root     1273:                else
1.1.1.7 ! root     1274:                        tmake_file=m88k/t-dgux
1.1.1.5   root     1275:                fi
1.1.1.6   root     1276:                fixincludes=fixinc.dgux
1.1       root     1277:                ;;
1.1.1.2   root     1278:        m88k-dolphin-sysv3*)
1.1.1.5   root     1279:                tm_file=m88k/dolph.h
1.1.1.7 ! root     1280:                extra_parts="crtbegin.o crtend.o"
1.1.1.5   root     1281:                xm_file=m88k/xm-sysv3.h
                   1282:                xmake_file=m88k/x-dolph
                   1283:                if [ x$gas = xyes ]
                   1284:                then
1.1.1.7 ! root     1285:                        tmake_file=m88k/t-m88k-gas
1.1.1.5   root     1286:                fi
                   1287:                ;;
                   1288:        m88k-tektronix-sysv3)
                   1289:                tm_file=m88k/tekXD88.h
1.1.1.7 ! root     1290:                extra_parts="crtbegin.o crtend.o"
1.1.1.5   root     1291:                xm_file=m88k/xm-sysv3.h
                   1292:                xmake_file=m88k/x-tekXD88
                   1293:                if [ x$gas = xyes ]
                   1294:                then
1.1.1.7 ! root     1295:                        tmake_file=m88k/t-m88k-gas
        !          1296:                fi
        !          1297:                ;;
        !          1298:        m88k-mot*-sysv4*)
        !          1299:                tm_file=m88k/mot-sysv4.h
        !          1300:                extra_parts="crtbegin.o crtend.o"
        !          1301:                xmake_file=m88k/x-sysv4
        !          1302:                tmake_file=m88k/t-sysv4
        !          1303:                ;;
        !          1304:        m88k-*-luna*)
        !          1305:                tm_file=m88k/luna.h
        !          1306:                extra_parts="crtbegin.o crtend.o"
        !          1307:                if [ x$gas = xyes ]
        !          1308:                then
        !          1309:                        tmake_file=m88k/t-luna-gas
        !          1310:                else
        !          1311:                        tmake_file=m88k/t-luna
1.1.1.5   root     1312:                fi
1.1.1.2   root     1313:                ;;
1.1       root     1314:        m88k-*-sysv3*)
1.1.1.5   root     1315:                tm_file=m88k/sysv3.h
1.1.1.7 ! root     1316:                extra_parts="crtbegin.o crtend.o"
1.1.1.5   root     1317:                xm_file=m88k/xm-sysv3.h
1.1.1.6   root     1318:                xmake_file=m88k/x-sysv3
1.1.1.5   root     1319:                if [ x$gas = xyes ]
                   1320:                then
1.1.1.7 ! root     1321:                        tmake_file=m88k/t-m88k-gas
1.1.1.5   root     1322:                fi
1.1       root     1323:                ;;
1.1.1.7 ! root     1324:        m88k-*-sysv4*)
        !          1325:                tm_file=m88k/sysv4.h
        !          1326:                extra_parts="crtbegin.o crtend.o"
        !          1327:                xmake_file=m88k/x-sysv4
        !          1328:                tmake_file=m88k/t-sysv4
1.1.1.6   root     1329:                ;;
1.1.1.7 ! root     1330:        mips-sgi-irix5*)                # SGI System V.4., IRIX 5
1.1.1.6   root     1331:                if [ x$gas = xyes ]
                   1332:                then
1.1.1.7 ! root     1333:                        if [ x$stabs = xyes ]
        !          1334:                        then
        !          1335:                                tm_file=mips/iris5gdb.h
        !          1336:                        else
        !          1337:                                tm_file=mips/iris5gas.h
        !          1338:                        fi
1.1.1.6   root     1339:                else
1.1.1.7 ! root     1340:                        tm_file=mips/iris5.h
1.1.1.6   root     1341:                fi
                   1342:                xm_file=mips/xm-iris5.h
                   1343:                broken_install=yes
                   1344:                fixincludes=Makefile.in
                   1345:                xmake_file=mips/x-iris
                   1346:                # mips-tfile doesn't work yet
                   1347:                tmake_file=mips/t-mips-gas
1.1.1.7 ! root     1348:                # See comment in mips/iris5.h file.
        !          1349:                use_collect2=yes
1.1.1.6   root     1350:                ;;
1.1.1.5   root     1351:        mips-sgi-irix4loser*)           # Mostly like a MIPS.
                   1352:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1353:                        tm_file=mips/iris4gl.h
1.1.1.5   root     1354:                else
1.1.1.6   root     1355:                        tm_file=mips/iris4loser.h
1.1.1.5   root     1356:                fi
                   1357:                xm_file=mips/xm-iris4.h
                   1358:                broken_install=yes
                   1359:                xmake_file=mips/x-iris
                   1360:                if [ x$gas = xyes ]
                   1361:                then
1.1.1.6   root     1362:                        tmake_file=mips/t-mips-gas
                   1363:                else
                   1364:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1365:                fi
                   1366:                if [ x$gnu_ld != xyes ]
                   1367:                then
1.1.1.6   root     1368:                        use_collect2=yes
1.1.1.5   root     1369:                fi
                   1370:                ;;
1.1       root     1371:        mips-sgi-irix4*)                # Mostly like a MIPS.
1.1.1.4   root     1372:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1373:                        tm_file=mips/iris4-gdb.h
1.1.1.4   root     1374:                else
1.1.1.6   root     1375:                        tm_file=mips/iris4.h
1.1.1.4   root     1376:                fi
1.1.1.5   root     1377:                xm_file=mips/xm-iris4.h
1.1.1.3   root     1378:                broken_install=yes
1.1.1.5   root     1379:                xmake_file=mips/x-iris
                   1380:                if [ x$gas = xyes ]
                   1381:                then
1.1.1.6   root     1382:                        tmake_file=mips/t-mips-gas
                   1383:                else
                   1384:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1385:                fi
                   1386:                if [ x$gnu_ld != xyes ]
                   1387:                then
1.1.1.6   root     1388:                        use_collect2=yes
1.1.1.5   root     1389:                fi
1.1       root     1390:                ;;
1.1.1.3   root     1391:        mips-sgi-*)                     # Mostly like a MIPS.
1.1.1.4   root     1392:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1393:                        tm_file=mips/iris3-gdb.h
1.1.1.4   root     1394:                else
1.1.1.6   root     1395:                        tm_file=mips/iris3.h
1.1.1.4   root     1396:                fi
1.1.1.5   root     1397:                xm_file=mips/xm-iris3.h
1.1.1.3   root     1398:                broken_install=yes
1.1.1.6   root     1399:                xmake_file=mips/x-iris3
1.1.1.5   root     1400:                if [ x$gas = xyes ]
                   1401:                then
1.1.1.6   root     1402:                        tmake_file=mips/t-mips-gas
                   1403:                else
                   1404:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1405:                fi
                   1406:                if [ x$gnu_ld != xyes ]
                   1407:                then
1.1.1.6   root     1408:                        use_collect2=yes
1.1.1.5   root     1409:                fi
1.1       root     1410:                ;;
1.1.1.3   root     1411:        mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
1.1.1.5   root     1412:                tm_file=mips/osfrose.h
                   1413:                xmake_file=mips/x-osfrose
                   1414:                tmake_file=mips/t-osfrose
1.1.1.7 ! root     1415:                extra_objs=halfpic.o
1.1.1.3   root     1416:                use_collect2=yes
                   1417:                ;;
                   1418:        mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
1.1.1.4   root     1419:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1420:                        tm_file=mips/dec-gosf1.h
1.1.1.4   root     1421:                else
1.1.1.6   root     1422:                        tm_file=mips/dec-osf1.h
1.1.1.5   root     1423:                fi
                   1424:                xmake_file=mips/x-dec-osf1
                   1425:                if [ x$gas = xyes ]
                   1426:                then
1.1.1.6   root     1427:                        tmake_file=mips/t-mips-gas
1.1.1.5   root     1428:                else
1.1.1.6   root     1429:                        tmake_file=mips/t-ultrix
                   1430:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1431:                fi
                   1432:                if [ x$gnu_ld != xyes ]
                   1433:                then
1.1.1.6   root     1434:                        use_collect2=yes
1.1.1.4   root     1435:                fi
1.1       root     1436:                ;;
1.1.1.7 ! root     1437:        mips-dec-bsd*)                  # Decstation running 4.4 BSD
1.1.1.6   root     1438:               tm_file=mips/dec-bsd.h
                   1439:               xmake_file=
                   1440:               tmake_file=
                   1441:               fixincludes=
                   1442:              if [ x$gas = xyes ]
                   1443:              then
                   1444:                        tmake_file=mips/t-mips-gas
                   1445:              else
                   1446:                        tmake_file=mips/t-ultrix
                   1447:                        extra_passes="mips-tfile mips-tdump"
                   1448:              fi
                   1449:              if [ x$gnu_ld != xyes ]
                   1450:              then
                   1451:                        use_collect2=yes
                   1452:              fi
                   1453:              ;;
1.1.1.4   root     1454:        mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
                   1455:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1456:                        tm_file=mips/news4-gdb.h
1.1.1.4   root     1457:                else
1.1.1.6   root     1458:                        tm_file=mips/news4.h
1.1.1.4   root     1459:                fi
1.1.1.5   root     1460:                if [ x$gas = xyes ]
                   1461:                then
1.1.1.6   root     1462:                        tmake_file=mips/t-mips-gas
                   1463:                else
                   1464:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1465:                fi
                   1466:                if [ x$gnu_ld != xyes ]
                   1467:                then
1.1.1.6   root     1468:                        use_collect2=yes
1.1.1.5   root     1469:                fi
                   1470:                xmake_file=mips/x-sony
1.1       root     1471:                ;;
1.1.1.2   root     1472:        mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
                   1473:                                        # That is based on svr4.
                   1474:                # t-svr4 is not right because this system doesn't use ELF.
1.1.1.4   root     1475:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1476:                        tm_file=mips/news5-gdb.h
1.1.1.4   root     1477:                else
1.1.1.6   root     1478:                        tm_file=mips/news5.h
1.1.1.5   root     1479:                fi
                   1480:                xm_file=mips/xm-news.h
                   1481:                if [ x$gas = xyes ]
                   1482:                then
1.1.1.6   root     1483:                        tmake_file=mips/t-mips-gas
                   1484:                else
                   1485:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1486:                fi
                   1487:                if [ x$gnu_ld != xyes ]
                   1488:                then
1.1.1.6   root     1489:                        use_collect2=yes
1.1.1.4   root     1490:                fi
1.1.1.2   root     1491:                ;;
1.1.1.7 ! root     1492:        mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
        !          1493:                if [ x$stabs = xyes ]; then
        !          1494:                        tm_file=mips/svr4-t-gdb.h
        !          1495:                else
        !          1496:                        tm_file=mips/svr4-t.h
        !          1497:                fi
        !          1498:                xm_file=mips/xm-sysv4.h
        !          1499:                xmake_file=mips/x-sysv
        !          1500:                if [ x$gas = xyes ]
        !          1501:                then
        !          1502:                        tmake_file=mips/t-svr4-gas
        !          1503:                else
        !          1504:                        tmake_file=mips/t-svr4
        !          1505:                        extra_passes="mips-tfile mips-tdump"
        !          1506:                fi
        !          1507:                if [ x$gnu_ld != xyes ]
        !          1508:                then
        !          1509:                        use_collect2=yes
        !          1510:                fi
        !          1511:                broken_install=yes
        !          1512:                ;;
        !          1513:        mips-*-ultrix*)         # Decstation.
        !          1514:                if [ x$stabs = xyes ]; then
        !          1515:                        tm_file=mips/ultrix-gdb.h
        !          1516:                else
        !          1517:                        tm_file=mips/ultrix.h
        !          1518:                fi
        !          1519:                xmake_file=mips/x-ultrix
        !          1520:                if [ x$gas = xyes ]
        !          1521:                then
        !          1522:                        tmake_file=mips/t-mips-gas
        !          1523:                else
        !          1524:                        tmake_file=mips/t-ultrix
        !          1525:                        extra_passes="mips-tfile mips-tdump"
        !          1526:                fi
        !          1527:                if [ x$gnu_ld != xyes ]
        !          1528:                then
        !          1529:                        use_collect2=yes
        !          1530:                fi
        !          1531:                ;;
        !          1532:        mips-*-riscos[56789]bsd*)
1.1.1.4   root     1533:                if [ x$stabs = xyes ]; then     # MIPS BSD 4.3, RISC-OS 5.0
1.1.1.6   root     1534:                        tm_file=mips/bsd-5-gdb.h
1.1.1.4   root     1535:                else
1.1.1.6   root     1536:                        tm_file=mips/bsd-5.h
1.1.1.4   root     1537:                fi
1.1.1.5   root     1538:                if [ x$gas = xyes ]
                   1539:                then
1.1.1.6   root     1540:                        tmake_file=mips/t-bsd-gas
                   1541:                else
                   1542:                        tmake_file=mips/t-bsd
                   1543:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1544:                fi
                   1545:                if [ x$gnu_ld != xyes ]
                   1546:                then
1.1.1.6   root     1547:                        use_collect2=yes
1.1.1.5   root     1548:                fi
1.1.1.6   root     1549:                broken_install=yes
1.1.1.4   root     1550:                ;;
1.1.1.7 ! root     1551:        mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
1.1.1.4   root     1552:                if [ x$stabs = xyes ]; then     # MIPS BSD 4.3, RISC-OS 4.0
1.1.1.6   root     1553:                        tm_file=mips/bsd-4-gdb.h
1.1.1.4   root     1554:                else
1.1.1.6   root     1555:                        tm_file=mips/bsd-4.h
1.1.1.5   root     1556:                fi
                   1557:                if [ x$gas = xyes ]
                   1558:                then
1.1.1.6   root     1559:                        tmake_file=mips/t-bsd-gas
                   1560:                else
                   1561:                        tmake_file=mips/t-bsd
                   1562:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1563:                fi
                   1564:                if [ x$gnu_ld != xyes ]
                   1565:                then
1.1.1.6   root     1566:                        use_collect2=yes
1.1.1.4   root     1567:                fi
1.1.1.6   root     1568:                broken_install=yes
1.1       root     1569:                ;;
1.1.1.7 ! root     1570:        mips-*-riscos[56789]sysv4*)
1.1.1.4   root     1571:                if [ x$stabs = xyes ]; then     # MIPS System V.4., RISC-OS 5.0
1.1.1.6   root     1572:                        tm_file=mips/svr4-5-gdb.h
1.1.1.4   root     1573:                else
1.1.1.6   root     1574:                        tm_file=mips/svr4-5.h
1.1.1.4   root     1575:                fi
1.1.1.6   root     1576:                xm_file=mips/xm-sysv4.h
1.1.1.5   root     1577:                xmake_file=mips/x-sysv
                   1578:                if [ x$gas = xyes ]
                   1579:                then
1.1.1.6   root     1580:                        tmake_file=mips/t-svr4-gas
                   1581:                else
                   1582:                        tmake_file=mips/t-svr4
                   1583:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1584:                fi
                   1585:                if [ x$gnu_ld != xyes ]
                   1586:                then
1.1.1.6   root     1587:                        use_collect2=yes
1.1.1.5   root     1588:                fi
1.1.1.6   root     1589:                broken_install=yes
1.1.1.4   root     1590:                ;;
1.1.1.7 ! root     1591:        mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
1.1.1.4   root     1592:                if [ x$stabs = xyes ]; then     # MIPS System V.4. RISC-OS 4.0
1.1.1.6   root     1593:                        tm_file=mips/svr4-4-gdb.h
1.1.1.4   root     1594:                else
1.1.1.6   root     1595:                        tm_file=mips/svr4-4.h
1.1.1.5   root     1596:                fi
                   1597:                xm_file=mips/xm-sysv.h
                   1598:                xmake_file=mips/x-sysv
                   1599:                if [ x$gas = xyes ]
                   1600:                then
1.1.1.6   root     1601:                        tmake_file=mips/t-svr4-gas
                   1602:                else
                   1603:                        tmake_file=mips/t-svr4
                   1604:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1605:                fi
                   1606:                if [ x$gnu_ld != xyes ]
                   1607:                then
1.1.1.6   root     1608:                        use_collect2=yes
1.1.1.4   root     1609:                fi
1.1.1.6   root     1610:                broken_install=yes
1.1.1.4   root     1611:                ;;
1.1.1.7 ! root     1612:        mips-*-riscos[56789]sysv*)
1.1.1.4   root     1613:                if [ x$stabs = xyes ]; then     # MIPS System V.3, RISC-OS 5.0
1.1.1.6   root     1614:                        tm_file=mips/svr3-5-gdb.h
1.1.1.4   root     1615:                else
1.1.1.6   root     1616:                        tm_file=mips/svr3-5.h
1.1.1.4   root     1617:                fi
1.1.1.5   root     1618:                xm_file=mips/xm-sysv.h
                   1619:                xmake_file=mips/x-sysv
                   1620:                if [ x$gas = xyes ]
                   1621:                then
1.1.1.6   root     1622:                        tmake_file=mips/t-svr3-gas
                   1623:                else
                   1624:                        tmake_file=mips/t-svr3
                   1625:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1626:                fi
                   1627:                if [ x$gnu_ld != xyes ]
                   1628:                then
1.1.1.6   root     1629:                        use_collect2=yes
1.1.1.5   root     1630:                fi
1.1.1.6   root     1631:                broken_install=yes
1.1.1.3   root     1632:                ;;
1.1.1.7 ! root     1633:        mips-*-sysv* | mips-*-riscos*sysv*)
1.1.1.4   root     1634:                if [ x$stabs = xyes ]; then     # MIPS System V.3, RISC-OS 4.0
1.1.1.6   root     1635:                        tm_file=mips/svr3-4-gdb.h
1.1.1.4   root     1636:                else
1.1.1.6   root     1637:                        tm_file=mips/svr3-4.h
1.1.1.5   root     1638:                fi
                   1639:                xm_file=mips/xm-sysv.h
                   1640:                xmake_file=mips/x-sysv
                   1641:                if [ x$gas = xyes ]
                   1642:                then
1.1.1.6   root     1643:                        tmake_file=mips/t-svr3-gas
                   1644:                else
                   1645:                        tmake_file=mips/t-svr3
                   1646:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1647:                fi
                   1648:                if [ x$gnu_ld != xyes ]
                   1649:                then
1.1.1.6   root     1650:                        use_collect2=yes
1.1.1.4   root     1651:                fi
1.1.1.6   root     1652:                broken_install=yes
1.1.1.3   root     1653:                ;;
1.1.1.7 ! root     1654:        mips-*-riscos[56789]*)                  # Default MIPS RISC-OS 5.0.
1.1.1.4   root     1655:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1656:                        tm_file=mips/mips-5-gdb.h
1.1.1.4   root     1657:                else
1.1.1.6   root     1658:                        tm_file=mips/mips-5.h
1.1.1.4   root     1659:                fi
1.1.1.5   root     1660:                if [ x$gas = xyes ]
                   1661:                then
1.1.1.6   root     1662:                        tmake_file=mips/t-mips-gas
                   1663:                else
                   1664:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1665:                fi
                   1666:                if [ x$gnu_ld != xyes ]
                   1667:                then
1.1.1.6   root     1668:                        use_collect2=yes
1.1.1.5   root     1669:                fi
1.1.1.6   root     1670:                broken_install=yes
1.1.1.4   root     1671:                ;;
                   1672:        mips-*-*)                               # Default MIPS RISC-OS 4.0.
                   1673:                if [ x$stabs = xyes ]; then
1.1.1.6   root     1674:                        tm_file=mips/mips-4-gdb.h
1.1.1.4   root     1675:                else
1.1.1.6   root     1676:                        tm_file=mips/mips.h
1.1.1.5   root     1677:                fi
                   1678:                if [ x$gas = xyes ]
                   1679:                then
1.1.1.6   root     1680:                        tmake_file=mips/t-mips-gas
                   1681:                else
                   1682:                        extra_passes="mips-tfile mips-tdump"
1.1.1.5   root     1683:                fi
                   1684:                if [ x$gnu_ld != xyes ]
                   1685:                then
1.1.1.6   root     1686:                        use_collect2=yes
1.1.1.4   root     1687:                fi
1.1.1.3   root     1688:                ;;
1.1.1.7 ! root     1689:        ns32k-encore-bsd*)
        !          1690:                tm_file=ns32k/encore.h
1.1.1.3   root     1691:                use_collect2=yes
1.1       root     1692:                ;;
1.1.1.7 ! root     1693:        ns32k-sequent-bsd*)
        !          1694:                tm_file=ns32k/sequent.h
1.1.1.3   root     1695:                use_collect2=yes
1.1       root     1696:                ;;
1.1.1.7 ! root     1697:        ns32k-tek6100-bsd*)
        !          1698:                tm_file=ns32k/tek6100.h
        !          1699:                broken_install=yes
1.1.1.3   root     1700:                use_collect2=yes
1.1       root     1701:                ;;
1.1.1.7 ! root     1702:        ns32k-tek6200-bsd*)
        !          1703:                tm_file=ns32k/tek6200.h
        !          1704:                broken_install=yes
1.1.1.3   root     1705:                use_collect2=yes
1.1       root     1706:                ;;
1.1.1.7 ! root     1707: # This has not been updated to GCC 2.
        !          1708: #      ns32k-ns-genix*)
        !          1709: #              xm_file=ns32k/xm-genix.h
        !          1710: #              xmake_file=ns32k/x-genix
        !          1711: #              tm_file=ns32k/genix.h
        !          1712: #              broken_install=yes
        !          1713: #              use_collect2=yes
        !          1714: #              ;;
        !          1715:        ns32k-merlin-*)
        !          1716:                tm_file=ns32k/merlin.h
1.1.1.4   root     1717:                use_collect2=yes
                   1718:                ;;
1.1.1.7 ! root     1719:        ns32k-pc532-mach*)
        !          1720:                tm_file=ns32k/pc532-mach.h
1.1.1.6   root     1721:                use_collect2=yes
                   1722:                ;;
1.1.1.7 ! root     1723:        ns32k-pc532-minix*)
        !          1724:                tm_file=ns32k/pc532-min.h
        !          1725:                xm_file=ns32k/xm-pc532-min.h
1.1.1.3   root     1726:                use_collect2=yes
                   1727:                ;;
1.1.1.7 ! root     1728:        ns32k-pc532-netbsd*)
        !          1729:                tm_file=ns32k/netbsd.h
        !          1730:                xm_file=ns32k/xm-netbsd.h
        !          1731:                tmake_file=t-libc-ok
        !          1732:                # On NetBSD, the headers are already okay.
        !          1733:                fixincludes=Makefile.in
        !          1734:                xmake_file=x-netbsd
1.1.1.5   root     1735:                ;;
1.1.1.7 ! root     1736:        pyramid-*-*)
        !          1737:                cpu_type=pyr
        !          1738:                xmake_file=pyr/x-pyr
1.1.1.6   root     1739:                use_collect2=yes
1.1.1.5   root     1740:                ;;
1.1.1.7 ! root     1741:        romp-*-aos*)
1.1.1.3   root     1742:                use_collect2=yes
                   1743:                ;;
1.1.1.7 ! root     1744:        romp-*-mach*)
        !          1745:                xmake_file=romp/x-mach
1.1.1.4   root     1746:                use_collect2=yes
                   1747:                ;;
1.1.1.7 ! root     1748:        powerpc-ibm-aix*)
        !          1749:                cpu_type=rs6000
        !          1750:                tm_file=rs6000/powerpc.h
1.1.1.5   root     1751:                use_collect2=yes
                   1752:                ;;
1.1.1.7 ! root     1753:        rs6000-ibm-aix3.[01]*)
        !          1754:                tm_file=rs6000/aix31.h
        !          1755:                xmake_file=rs6000/x-aix31
1.1.1.6   root     1756:                use_collect2=yes
                   1757:                ;;
1.1.1.7 ! root     1758:        rs6000-ibm-aix4.1*)
        !          1759:                tm_file=rs6000/aix41.h
        !          1760:                xmake_file=rs6000/x-aix31
1.1.1.3   root     1761:                use_collect2=yes
1.1.1.7 ! root     1762:                ;;
        !          1763:        rs6000-ibm-aix*)
1.1.1.3   root     1764:                use_collect2=yes
1.1       root     1765:                ;;
1.1.1.7 ! root     1766:        rs6000-bull-bosx)
1.1.1.3   root     1767:                use_collect2=yes
                   1768:                ;;
1.1.1.7 ! root     1769:        rs6000-*-mach*)
        !          1770:                xm_file=rs6000/xm-mach.h
        !          1771:                tm_file=rs6000/mach.h
        !          1772:                xmake_file=rs6000/x-mach
1.1.1.6   root     1773:                use_collect2=yes
                   1774:                ;;
1.1.1.7 ! root     1775:        sh-*-*)
        !          1776:                cpu_type=sh
        !          1777:                ;;
        !          1778:        sparc-tti-*)
        !          1779:                tm_file=sparc/pbd.h
        !          1780:                xm_file=sparc/xm-pbd.h
        !          1781:                ;;
        !          1782:        sparc-*-netbsd)
        !          1783:                tm_file=sparc/netbsd.h
        !          1784:                # On NetBSD, the headers are already okay.
        !          1785:                fixincludes=Makefile.in
        !          1786:                xmake_file=x-netbsd
        !          1787:                ;;
        !          1788:        sparc-*-bsd*)
        !          1789:                tm_file=sparc/bsd.h
        !          1790:                ;;
        !          1791:        sparc-*-lynxos*)
1.1.1.6   root     1792:                if [ x$gas = xyes ]
                   1793:                then
1.1.1.7 ! root     1794:                        tm_file=sparc/lynx.h
1.1.1.6   root     1795:                else
1.1.1.7 ! root     1796:                        tm_file=sparc/lynx-ng.h
1.1.1.6   root     1797:                fi
1.1.1.7 ! root     1798:                xm_file=xm-lynx.h
        !          1799:                xmake_file=x-lynx
        !          1800:                ;;
        !          1801:        sparc-*-solaris2* | sparc-*-sunos5*)
        !          1802:                xm_file=sparc/xm-sol2.h
        !          1803:                tm_file=sparc/sol2.h
        !          1804:                tmake_file=sparc/t-sol2
        !          1805:                xmake_file=sparc/x-sysv4
        !          1806:                extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
        !          1807:                fixincludes=fixinc.svr4
1.1.1.6   root     1808:                broken_install=yes
1.1.1.7 ! root     1809:                ;;
        !          1810:        sparc-*-sunos4.0*)
        !          1811:                tm_file=sparc/sparc.h
        !          1812:                tmake_file=sparc/t-sunos40
1.1.1.6   root     1813:                use_collect2=yes
                   1814:                ;;
1.1.1.7 ! root     1815:        sparc-*-sunos4*)
        !          1816:                tm_file=sparc/sparc.h
        !          1817:                tmake_file=sparc/t-sunos41
1.1.1.3   root     1818:                use_collect2=yes
                   1819:                ;;
1.1.1.7 ! root     1820:        sparc-*-sunos3*)
        !          1821:                tm_file=sparc/sun4o3.h
        !          1822:                use_collect2=yes
1.1.1.5   root     1823:                ;;
1.1.1.7 ! root     1824:        sparc-*-sysv4*)
        !          1825:                xm_file=sparc/xm-sysv4.h
        !          1826:                tm_file=sparc/sysv4.h
        !          1827:                tmake_file=t-svr4
        !          1828:                xmake_file=sparc/x-sysv4
1.1.1.5   root     1829:                ;;
1.1.1.7 ! root     1830:        sparclite-*-*)
        !          1831:                cpu_type=sparc
        !          1832:                tm_file=sparc/lite.h
1.1.1.6   root     1833:                use_collect2=yes
                   1834:                ;;
1.1.1.7 ! root     1835:        sparc64-*-aout)
        !          1836:                cpu_type=sparc
        !          1837:                tmake_file=sparc/t-sp64
        !          1838:                tm_file=sparc/sp64-aout.h
        !          1839:                ;;
        !          1840:        sparc64-*-elf)
        !          1841:                cpu_type=sparc
        !          1842:                tmake_file=sparc/t-sp64
        !          1843:                tm_file=sparc/sp64-elf.h
        !          1844:                ;;
        !          1845: # This hasn't been upgraded to GCC 2.
        !          1846: #      tahoe-harris-*)                 # Harris tahoe, using COFF.
        !          1847: #              tm_file=tahoe/harris.h
        !          1848: #              ;;
        !          1849: #      tahoe-*-bsd*)                   # tahoe running BSD
        !          1850: #              ;;
        !          1851: # This hasn't been upgraded to GCC 2.
        !          1852: #      tron-*-*)
        !          1853: #              cpu_type=gmicro
        !          1854: #              use_collect2=yes
        !          1855: #              ;;
        !          1856:        vax-*-bsd*)                     # vaxen running BSD
1.1.1.4   root     1857:                use_collect2=yes
                   1858:                ;;
1.1.1.7 ! root     1859:        vax-*-sysv*)                    # vaxen running system V
        !          1860:                xm_file=vax/xm-vaxv.h
        !          1861:                tm_file=vax/vaxv.h
        !          1862:                ;;
        !          1863:        vax-*-ultrix*)                  # vaxen running ultrix
        !          1864:                tm_file=vax/ultrix.h
1.1.1.3   root     1865:                use_collect2=yes
1.1.1.2   root     1866:                ;;
1.1.1.7 ! root     1867:        vax-*-vms*)                     # vaxen running VMS
        !          1868:                xm_file=vax/xm-vms.h
        !          1869:                tm_file=vax/vms.h
        !          1870:                ;;
        !          1871:         pdp11-*-*)
        !          1872:                xm_file=pdp11/xm-pdp11.h
        !          1873:                tm_file=pdp11/pdp11.h
        !          1874:                ;;
        !          1875:        we32k-att-sysv*)
        !          1876:                cpu_type=we32k
        !          1877:                use_collect2=yes
1.1.1.5   root     1878:                ;;
1.1.1.2   root     1879:        *)
1.1.1.4   root     1880:                echo "Configuration $machine not supported" 1>&2
1.1.1.2   root     1881:                exit 1
                   1882:                ;;
1.1       root     1883:        esac
                   1884: 
                   1885:        case $machine in
                   1886:        *-*-sysv4*)
1.1.1.4   root     1887:                fixincludes=fixinc.svr4
1.1       root     1888:                xmake_try_sysv=x-sysv
1.1.1.4   root     1889:                broken_install=yes
1.1.1.5   root     1890:                install_headers_dir=install-headers-cpio
1.1       root     1891:                ;;
                   1892:        *-*-sysv*)
1.1.1.3   root     1893:                broken_install=yes
1.1.1.5   root     1894:                install_headers_dir=install-headers-cpio
1.1.1.3   root     1895:                ;;
                   1896:        esac
                   1897: 
1.1.1.7 ! root     1898:        # Distinguish i386 from i486/i586.
        !          1899:        # ??? For the moment we treat i586 as an i486.
1.1.1.5   root     1900:        # Also, do not run mips-tfile on MIPS if using gas.
1.1.1.4   root     1901:        case $machine in
1.1.1.7 ! root     1902:        i[45]86-*-*)
1.1.1.4   root     1903:                target_cpu_default=2
                   1904:                ;;
1.1.1.5   root     1905:        mips-*-*)
                   1906:                if [ x$gas = xyes ]
                   1907:                then
                   1908:                        target_cpu_default=16
                   1909:                fi
                   1910:                ;;
1.1.1.7 ! root     1911:        alpha-*-*)
        !          1912:                if [ x$gas = xyes ]
        !          1913:                then
        !          1914:                        target_cpu_default=4
        !          1915:                fi
        !          1916:                ;;
1.1.1.4   root     1917:        esac
                   1918: 
1.1.1.3   root     1919:        # No need for collect2 if we have the GNU linker.
                   1920:        case x$gnu_ld in 
                   1921:        xyes)
                   1922:                use_collect2=
1.1       root     1923:                ;;
                   1924:        esac
                   1925: 
                   1926: # Default certain vars that apply to both host and target in turn.
                   1927:        if [ x$cpu_type = x ]
                   1928:        then cpu_type=`echo $machine | sed 's/-.*$//'`
                   1929:        fi
                   1930: 
1.1.1.4   root     1931: # Save data on machine being used to compile GCC in build_xm_file.
1.1       root     1932: # Save data on host machine in vars host_xm_file and host_xmake_file.
                   1933:        if [ x$pass1done = x ]
                   1934:        then
1.1.1.5   root     1935:                if [ x$xm_file = x ]
                   1936:                then build_xm_file=$cpu_type/xm-$cpu_type.h
1.1.1.4   root     1937:                else build_xm_file=$xm_file
1.1       root     1938:                fi
                   1939:                pass1done=yes
1.1.1.4   root     1940:        else
                   1941:                if [ x$pass2done = x ]
                   1942:                then
1.1.1.5   root     1943:                        if [ x$xm_file = x ]
                   1944:                        then host_xm_file=$cpu_type/xm-$cpu_type.h
1.1.1.4   root     1945:                        else host_xm_file=$xm_file
                   1946:                        fi
                   1947:                        if [ x$xmake_file = x ]
1.1.1.5   root     1948:                        then xmake_file=$cpu_type/x-$cpu_type
1.1.1.4   root     1949:                        fi
                   1950:                        host_xmake_file=$xmake_file
                   1951:                        host_broken_install=$broken_install
1.1.1.5   root     1952:                        host_install_headers_dir=$install_headers_dir
1.1.1.6   root     1953:                        host_truncate_target=$truncate_target
1.1.1.4   root     1954:                        pass2done=yes
                   1955:                fi
1.1       root     1956:        fi
                   1957: done
                   1958: 
                   1959: # Default the target-machine variables that were not explicitly set.
                   1960: if [ x$tm_file = x ]
1.1.1.5   root     1961: then tm_file=$cpu_type/$cpu_type.h; fi
1.1.1.3   root     1962: 
                   1963: if [ x$header_files = x ]
                   1964: then header_files=; fi
1.1       root     1965: 
                   1966: if [ x$xm_file = x ]
1.1.1.5   root     1967: then xm_file=$cpu_type/xm-$cpu_type.h; fi
1.1       root     1968: 
1.1.1.5   root     1969: md_file=$cpu_type/$cpu_type.md
1.1       root     1970: 
                   1971: if [ x$out_file = x ]
1.1.1.5   root     1972: then out_file=$cpu_type/$cpu_type.c; fi
1.1       root     1973: 
                   1974: if [ x$tmake_file = x ]
1.1.1.5   root     1975: then tmake_file=$cpu_type/t-$cpu_type
1.1       root     1976: fi
                   1977: 
                   1978: # Set up the list of links to be made.
                   1979: # $links is the list of link names, and $files is the list of names to link to.
1.1.1.6   root     1980: files="$host_xm_file $tm_file $out_file $xm_file $build_xm_file $md_file"
                   1981: links="config.h tm.h aux-output.c tconfig.h hconfig.h"
                   1982: 
1.1.1.7 ! root     1983: if [ "x$md_cppflags" = x ]
        !          1984: then links="$links md"
        !          1985: else links="$links md.pre-cpp"
1.1.1.6   root     1986: fi
                   1987: 
                   1988: rm -f config.bak
                   1989: if [ -f config.status ]; then mv -f config.status config.bak; fi
1.1       root     1990: 
                   1991: # Make the links.
                   1992: while [ -n "$files" ]
                   1993: do
                   1994:        # set file to car of files, files to cdr of files
                   1995:        set $files; file=$1; shift; files=$*
                   1996:        set $links; link=$1; shift; links=$*
                   1997: 
                   1998:        if [ ! -r ${srcdir}/config/$file ]
                   1999:        then
                   2000:                echo "$progname: cannot create a link \`$link'," 1>&2
1.1.1.2   root     2001:                echo "since the file \`config/$file' does not exist" 1>&2
1.1       root     2002:                exit 1
                   2003:        fi
                   2004: 
                   2005:        $remove -f $link
                   2006:        # Make a symlink if possible, otherwise try a hard link
1.1.1.2   root     2007:        $symbolic_link ${srcdir}/config/$file $link 2>/dev/null || $hard_link ${srcdir}/config/$file $link || $copy ${srcdir}/config/$file $link
1.1       root     2008: 
                   2009:        if [ ! -r $link ]
                   2010:        then
1.1.1.2   root     2011:                echo "$progname: unable to link \`$link' to \`${srcdir}/config/$file'" 1>&2
1.1       root     2012:                exit 1
                   2013:        fi
1.1.1.2   root     2014:        echo "Linked \`$link' to \`${srcdir}/config/$file'"
1.1       root     2015: done
                   2016: 
1.1.1.6   root     2017: # Truncate the target if necessary
                   2018: if [ x$host_truncate_target != x ]; then
                   2019:        target=`echo $target | sed -e 's/\(..............\).*/\1/'`
                   2020: fi
                   2021: 
1.1.1.7 ! root     2022: # Get the version number from the toplevel
        !          2023: version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
1.1       root     2024: 
1.1.1.7 ! root     2025: # For the current directory and all of the language subdirectories,
        !          2026: # do the rest of the script ...
1.1       root     2027: 
1.1.1.7 ! root     2028: subdirs=
        !          2029: for lang in ${srcdir}/*/config-lang.in ..
        !          2030: do
        !          2031:        case $lang in
        !          2032:        ..) ;;
        !          2033:        # The odd quoting in the next line is an attempt to work around
        !          2034:        # an apparent bug in bash 1.12 on linux.  This is known to not
        !          2035:        # work for bash 1.12.4.  Try using ${srcdir}/[*]/config-lang.in
        !          2036:        # here if this doesn't work for you.
        !          2037:        ${srcdir}'/*/config-lang.in') ;;
        !          2038:        *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
        !          2039:        esac
        !          2040: done
1.1.1.3   root     2041: 
1.1.1.7 ! root     2042: savesrcdir=$srcdir
        !          2043: for subdir in . $subdirs
        !          2044: do
        !          2045:        oldsrcdir=$savesrcdir
1.1.1.3   root     2046: 
1.1.1.7 ! root     2047:        # Re-adjust the path
        !          2048:        case $oldsrcdir in
        !          2049:        /*)
        !          2050:                srcdir=$oldsrcdir/$subdir
        !          2051:                ;;
        !          2052:        *)
        !          2053:                case $subdir in
        !          2054:                .)
        !          2055:                        ;;
        !          2056:                *)
        !          2057:                        oldsrcdir=../${oldsrcdir}
        !          2058:                        srcdir=$oldsrcdir/$subdir
        !          2059:                        ;;
        !          2060:                esac
        !          2061:                ;;
        !          2062:        esac
        !          2063:        mainsrcdir=$oldsrcdir
        !          2064:        STARTDIR=`pwd`
        !          2065:        test -d $subdir || mkdir $subdir
        !          2066:        cd $subdir
        !          2067: 
        !          2068:        # Create Makefile.tem from Makefile.in.
        !          2069:        # Make it set VPATH if necessary so that the sources are found.
        !          2070:        # Also change its value of srcdir.
        !          2071:        # Also create a .gdbinit file which runs the one in srcdir
        !          2072:        # and tells GDB to look there for source files.
        !          2073:        case $srcdir in
        !          2074:        . | ./$subdir | .././$subdir)
        !          2075:                rm -f Makefile.tem
        !          2076:                cp Makefile.in Makefile.tem
        !          2077:                chmod +w Makefile.tem
        !          2078:                ;;
        !          2079:        *)
        !          2080:                rm -f Makefile.tem
        !          2081:                echo "VPATH = ${srcdir}" \
        !          2082:                  | cat - ${srcdir}/Makefile.in \
        !          2083:                  | sed "s@^srcdir = \.@srcdir = ${srcdir}@" > Makefile.tem
        !          2084:                rm -f .gdbinit
        !          2085:                echo "dir ." > .gdbinit
        !          2086:                echo "dir ${srcdir}" >> .gdbinit
        !          2087:                if [ "x$subdirs" != x ]; then
        !          2088:                        for s in $subdirs
        !          2089:                        do
        !          2090:                                echo "dir ${srcdir}/$s" >> .gdbinit
        !          2091:                        done
        !          2092:                fi
        !          2093:                echo "source ${srcdir}/.gdbinit" >> .gdbinit
        !          2094:                ;;
        !          2095:        esac
        !          2096:        
        !          2097:        # Conditionalize the makefile for this host machine.
        !          2098:        if [ -f ${mainsrcdir}/config/${host_xmake_file} ]
        !          2099:        then
        !          2100:                rm -f Makefile.xx
        !          2101:                sed -e "/####host/  r ${mainsrcdir}/config/${host_xmake_file}" Makefile.tem > Makefile.xx
        !          2102:                echo "Merged ${host_xmake_file}."
        !          2103:                rm -f Makefile.tem
        !          2104:                mv Makefile.xx Makefile.tem
        !          2105:                dep_host_xmake_file=${host_xmake_file}
        !          2106:        else
        !          2107:        # Say in the makefile that there is no host_xmake_file,
        !          2108:        # by using a name which (when interpreted relative to $srcdir/config)
        !          2109:        # will duplicate another dependency: $srcdir/Makefile.in.
        !          2110:                dep_host_xmake_file=../Makefile.in
        !          2111:        fi
1.1.1.6   root     2112: 
1.1.1.7 ! root     2113:        # Add a definition for INSTALL if system wants one.
        !          2114:        # This substitutes for lots of x-* files.
        !          2115:        if [ x$host_broken_install = x ]
        !          2116:        then true
        !          2117:        else
        !          2118:                rm -f Makefile.xx
        !          2119:                abssrcdir=`cd ${srcdir}; pwd`
        !          2120:                sed "s|^INSTALL = .*|INSTALL = ${abssrcdir}/install.sh -c|" Makefile.tem > Makefile.xx
        !          2121:                rm -f Makefile.tem
        !          2122:                mv Makefile.xx Makefile.tem
        !          2123:        fi
1.1       root     2124: 
1.1.1.7 ! root     2125:        # Some of the following don't make sense in the language makefiles,
        !          2126:        # but rather than introduce another level of nesting, we leave them
        !          2127:        # as is.
        !          2128: 
        !          2129:        # Set EXTRA_HEADERS according to header_files.
        !          2130:        # This substitutes for lots of t-* files.
        !          2131:        if [ "x$header_files" = x ]
        !          2132:        then true
        !          2133:        else
        !          2134:                # Prepend ${srcdir}/ginclude/ to every entry in header_files.
        !          2135:                list=
        !          2136:                for file in $header_files;
        !          2137:                do
        !          2138:                        list="${list} ${srcdir}/ginclude/${file}"
        !          2139:                done
        !          2140:                rm -f Makefile.xx
        !          2141:                sed "s|^EXTRA_HEADERS =|EXTRA_HEADERS = ${list}|" Makefile.tem > Makefile.xx
        !          2142:                rm -f Makefile.tem
        !          2143:                mv Makefile.xx Makefile.tem
        !          2144:        fi
        !          2145:        
        !          2146:        # Set EXTRA_PASSES according to extra_passes.
        !          2147:        # This substitutes for lots of t-* files.
        !          2148:        if [ "x$extra_passes" = x ]
        !          2149:        then true
        !          2150:        else
        !          2151:                rm -f Makefile.xx
        !          2152:                sed "s/^EXTRA_PASSES =/EXTRA_PASSES = $extra_passes/" Makefile.tem > Makefile.xx
        !          2153:                rm -f Makefile.tem
        !          2154:                mv Makefile.xx Makefile.tem
        !          2155:        fi
        !          2156:        
        !          2157:        # Set EXTRA_PARTS according to extra_parts.
        !          2158:        # This substitutes for lots of t-* files.
        !          2159:        if [ "x$extra_parts" = x ]
        !          2160:        then true
        !          2161:        else
        !          2162:                rm -f Makefile.xx
        !          2163:                sed "s/^EXTRA_PARTS =/EXTRA_PARTS = $extra_parts/" Makefile.tem > Makefile.xx
        !          2164:                rm -f Makefile.tem
        !          2165:                mv Makefile.xx Makefile.tem
        !          2166:        fi
        !          2167: 
        !          2168:        # Set EXTRA_PROGRAMS according to extra_programs.
        !          2169:        if [ "x$extra_programs" = x ]
        !          2170:        then true
        !          2171:        else
        !          2172:                rm -f Makefile.xx
        !          2173:                sed "s/^EXTRA_PROGRAMS =/EXTRA_PROGRAMS = $extra_programs/" Makefile.tem > Makefile.xx
        !          2174:                rm -f Makefile.tem
        !          2175:                mv Makefile.xx Makefile.tem
        !          2176:        fi
        !          2177: 
        !          2178:        # Set EXTRA_OBJS according to extra_objs.
        !          2179:        # This substitutes for lots of t-* files.
        !          2180:        if [ "x$extra_objs" = x ]
        !          2181:        then true
        !          2182:        else
        !          2183:                rm -f Makefile.xx
        !          2184:                sed "s/^EXTRA_OBJS =/EXTRA_OBJS = $extra_objs/" Makefile.tem > Makefile.xx
        !          2185:                rm -f Makefile.tem
        !          2186:                mv Makefile.xx Makefile.tem
        !          2187:        fi
        !          2188: 
        !          2189:        # Add a definition of USE_COLLECT2 if system wants one.
        !          2190:        # Also tell toplev.c what to do.
        !          2191:        # This substitutes for lots of t-* files.
        !          2192:        if [ x$use_collect2 = x ]
        !          2193:        then true
        !          2194:        else
        !          2195:                rm -f Makefile.xx
        !          2196:                (echo "USE_COLLECT2 = ld"; echo "MAYBE_USE_COLLECT2 = -DUSE_COLLECT2")\
        !          2197:                   | cat - Makefile.tem > Makefile.xx
        !          2198:                rm -f Makefile.tem
        !          2199:                mv Makefile.xx Makefile.tem
        !          2200:        fi
        !          2201:        
        !          2202:        # Add -DTARGET_CPU_DEFAULT for toplev.c if system wants one.
        !          2203:        # This substitutes for lots of *.h files.
        !          2204:        if [ x$target_cpu_default = x ]
        !          2205:        then true
        !          2206:        else
        !          2207:                rm -f Makefile.xx
        !          2208:        # This used cat, but [email protected] said that ran into NFS bugs.
        !          2209:                sed -e "/^# Makefile for GNU C compiler./c\\
1.1.1.6   root     2210: MAYBE_TARGET_DEFAULT = -DTARGET_CPU_DEFAULT=$target_cpu_default\\
                   2211: \# Makefile for GNU C compiler." Makefile.tem > Makefile.xx
1.1.1.7 ! root     2212:                rm -f Makefile.tem
        !          2213:                mv Makefile.xx Makefile.tem
        !          2214:        fi
        !          2215:        
        !          2216:        # Set MD_DEPS if the real md file is in md.pre-cpp.
        !          2217:        # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
        !          2218:        # for line oriented comments, so we must always use a GNU cpp.  If
        !          2219:        # building gcc with a cross compiler, use the cross compiler just
        !          2220:        # built.  Otherwise, we can use the cpp just built.
        !          2221:        if [ "x$md_cppflags" = x ]
        !          2222:        then true
        !          2223:        else
        !          2224:                rm -f Makefile.xx
        !          2225:                (if [ x$host = x$build ] ; then
        !          2226:                        echo "MD_DEPS = md.pre-cpp cpp" ; echo "MD_CPP = ./cpp"
        !          2227:                else
        !          2228:                        echo "MD_DEPS = md.pre-cpp" ; echo "MD_CPP = \$(HOST_CC) -x c -E"
        !          2229:                fi
        !          2230:                echo "MD_CPPFLAGS = $md_cppflags") | \
        !          2231:                  cat - Makefile.tem | sed -e "s|^MD_FILE[      ]*=.*|MD_FILE = md|" > Makefile.xx
        !          2232:                rm -f Makefile.tem
        !          2233:                mv Makefile.xx Makefile.tem
        !          2234:        fi
        !          2235:        
        !          2236:        # Conditionalize the makefile for this target machine.
        !          2237:        if [ -f ${mainsrcdir}/config/${tmake_file} ]
        !          2238:        then
        !          2239:                rm -f Makefile.xx
        !          2240:                sed -e "/####target/  r ${mainsrcdir}/config/${tmake_file}" Makefile.tem > Makefile.xx
        !          2241:                echo "Merged ${tmake_file}."
        !          2242:                rm -f Makefile.tem
        !          2243:                mv Makefile.xx Makefile.tem
        !          2244:                dep_tmake_file=${tmake_file}
        !          2245:        else
        !          2246:        # Say in the makefile that there is no tmake_file,
        !          2247:        # by using a name which (when interpreted relative to $srcdir/config)
        !          2248:        # will duplicate another dependency: $srcdir/Makefile.in.
        !          2249:                dep_tmake_file=../Makefile.in
        !          2250:        fi
        !          2251:        
        !          2252:        # If this is the top level Makefile, add the language fragments.
        !          2253:        # Languages are added via two mechanisms.  Some information must be
        !          2254:        # recorded in makefile variables, these are defined in config-lang.in.
        !          2255:        # We accumulate them and plug them into the main Makefile.
        !          2256:        # The other mechanism is a set of hooks for each of the main targets
        !          2257:        # like `clean', `install', etc.
        !          2258:        if [ $subdir = . ]
        !          2259:        then
        !          2260:                # These (without "all_") are set in each config-lang.in.
        !          2261:                # `language' must be a single word so is spelled singularly.
        !          2262:                all_languages=
        !          2263:                all_compilers=
        !          2264:                all_stagestuff=
        !          2265:                all_diff_excludes=
        !          2266:                # List of language makefile fragments.
        !          2267:                all_lang_makefiles=
        !          2268: 
        !          2269:                rm -f Makefile.xx Makefile.ll
        !          2270:                touch Makefile.ll
        !          2271:                for s in .. $subdirs
        !          2272:                do
        !          2273:                        if [ $s != ".." ]
        !          2274:                        then
        !          2275:                                language=
        !          2276:                                compilers=
        !          2277:                                stagestuff=
        !          2278:                                diff_excludes=
        !          2279:                                . ${mainsrcdir}/$s/config-lang.in
        !          2280:                                if [ "x$language" = x ]
        !          2281:                                then
        !          2282:                                        echo "${mainsrcdir}/$s/config-lang.in doesn't set \$language." 1>&2
        !          2283:                                        exit 1
        !          2284:                                fi
        !          2285:                                all_lang_makefiles="$all_lang_makefiles ${mainsrcdir}/$s/Make-lang.in ${mainsrcdir}/$s/Makefile.in"
        !          2286:                                all_languages="$all_languages $language"
        !          2287:                                all_compilers="$all_compilers $compilers"
        !          2288:                                all_stagestuff="$all_stagestuff $stagestuff"
        !          2289:                                all_diff_excludes="$all_diff_excludes $diff_excludes"
1.1.1.4   root     2290: 
1.1.1.7 ! root     2291:                                cat ${mainsrcdir}/$s/Make-lang.in >> Makefile.ll
        !          2292:                        fi
        !          2293:                done
        !          2294:                sed -e "/####language fragments/ r Makefile.ll" Makefile.tem > Makefile.xx
        !          2295:                rm -f Makefile.tem
        !          2296:                mv Makefile.xx Makefile.tem
        !          2297:                sed -e "s|^SUBDIRS[     ]*=.*$|SUBDIRS = $subdirs|" \
        !          2298:                    -e "s|^LANGUAGES[   ]*=[    ]*\(.*\)$|LANGUAGES = \1 $all_languages|" \
        !          2299:                    -e "s|^COMPILERS[   ]*=[    ]*\(.*\)$|COMPILERS = \1 $all_compilers|" \
        !          2300:                    -e "s|^LANG_MAKEFILES[      ]*=.*$|LANG_MAKEFILES = $all_lang_makefiles|" \
        !          2301:                    -e "s|^LANG_STAGESTUFF[     ]*=.*$|LANG_STAGESTUFF = $all_stagestuff|" \
        !          2302:                    -e "s|^LANG_DIFF_EXCLUDES[  ]*=.*$|LANG_DIFF_EXCLUDES = $all_diff_excludes|" \
        !          2303:                    Makefile.tem > Makefile.xx
        !          2304:                rm -f Makefile.tem
        !          2305:                mv Makefile.xx Makefile.tem
        !          2306: 
        !          2307:                # Since we can't use `::' targets, we link each language in
        !          2308:                # with a set of hooks, reached indirectly via lang.${target}.
        !          2309: 
        !          2310:                target_list="all.build all.cross start.encap rest.encap \
        !          2311:                        info dvi \
        !          2312:                        install-normal install-common install-info install-man \
        !          2313:                        uninstall distdir \
        !          2314:                        mostlyclean clean distclean extraclean realclean \
        !          2315:                        stage1 stage2 stage3 stage4"
        !          2316:                rm -f Makefile.ll
        !          2317:                for t in $target_list
        !          2318:                do
        !          2319:                        x=
        !          2320:                        for l in .. $all_languages
        !          2321:                        do
        !          2322:                                if [ $l != ".." ]; then
        !          2323:                                        x="$x $l.$t"
        !          2324:                                fi
        !          2325:                        done
        !          2326:                        echo "lang.$t: $x" >> Makefile.ll
        !          2327:                done
        !          2328:                sed -e "/####language hooks/ r Makefile.ll" Makefile.tem > Makefile.xx
        !          2329:                rm -f Makefile.tem
        !          2330:                mv Makefile.xx Makefile.tem
        !          2331:                rm -f Makefile.ll
        !          2332: 
        !          2333:                # If the host doesn't support symlinks, modify CC in
        !          2334:                # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
        !          2335:                # Otherwise, we can use "CC=$(CC)".
        !          2336:                rm -f symtest.tem
        !          2337:                if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
        !          2338:                then
        !          2339:                        sed -e 's,CC=set-by-configure,CC=$(CC),' \
        !          2340:                            Makefile.tem > Makefile.xx
        !          2341:                else
        !          2342:                        sed -e "s,CC=set-by-configure,CC=\`case '$(CC)' in stage*) echo '$(CC)' | sed -e 's|stage|../stage|g';; *) echo '$(CC)';; esac\`," \
        !          2343:                            Makefile.tem > Makefile.xx
        !          2344:                fi
        !          2345:                rm -f Makefile.tem
        !          2346:                mv Makefile.xx Makefile.tem
        !          2347:                rm -f symtest.tem
        !          2348: 
        !          2349:                if [ "x$all_languages" != x ]
        !          2350:                then
        !          2351:                        # Missing space after `Merged' is intentional.
        !          2352:                        echo "Merged$all_languages fragment(s)."
        !          2353:                fi
        !          2354: 
        !          2355:        # Otherwise, this is a language subdirectory.  If the host supports
        !          2356:        # symlinks, point stage[123] at ../stage[123] so bootstrapping and the
        !          2357:        # installation procedure can still use CC="stage1/xgcc -Bstage1/".
        !          2358:        # If the host doesn't support symlinks, FLAGS_TO_PASS has been
        !          2359:        # modified to solve the problem there.
        !          2360:        else
        !          2361:                for t in stage1 stage2 stage3 stage4 include
        !          2362:                do
        !          2363:                        rm -f $t
        !          2364:                        $symbolic_link ../$t $t 2>/dev/null
        !          2365:                done
        !          2366:        fi
        !          2367:        
        !          2368:        # Remove all formfeeds, since some Makes get confused by them.
        !          2369:        # Also arrange to give the variables `target', `host_xmake_file',
        !          2370:        # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES'
        !          2371:        # and `INSTALL_HEADERS_DIR' values in the Makefile from the values
        !          2372:        # they have in this script.
1.1       root     2373:        rm -f Makefile.xx
1.1.1.7 ! root     2374:        sed -e "s///" -e "s/^target=.*$/target=${target}/" \
        !          2375:            -e "s|^xmake_file=.*$|xmake_file=${dep_host_xmake_file}|" \
        !          2376:            -e "s|^tmake_file=.*$|tmake_file=${dep_tmake_file}|" \
        !          2377:            -e "s|^version=.*$|version=${version}|" \
        !          2378:            -e "s|^prefix[      ]*=.*|prefix = $prefix|" \
        !          2379:            -e "s|^gxx_include_dir[     ]*=.*|gxx_include_dir = $gxx_include_dir|" \
        !          2380:            -e "s|^local_prefix[        ]*=.*|local_prefix = $local_prefix|" \
        !          2381:            -e "s|^exec_prefix[         ]*=.*|exec_prefix = $exec_prefix|" \
        !          2382:            -e "s|^FIXINCLUDES[         ]*=.*|FIXINCLUDES = $fixincludes|" \
        !          2383:            -e "s|^INSTALL_HEADERS_DIR[         ]*=.*$|INSTALL_HEADERS_DIR = ${host_install_headers_dir}|" \
        !          2384:            Makefile.tem > Makefile.xx
1.1       root     2385:        rm -f Makefile.tem
                   2386:        mv Makefile.xx Makefile.tem
1.1.1.7 ! root     2387:        
        !          2388:        # Install Makefile for real, after making final changes.
        !          2389:        # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
        !          2390:        # Also use all.cross instead of all.internal, and add cross-make to Makefile.
        !          2391:        if [ x$canon_host = x$canon_target ]
1.1.1.4   root     2392:        then
1.1.1.7 ! root     2393:                rm -f Makefile
        !          2394:                if [ x$canon_host = x$canon_build ]
        !          2395:                then
        !          2396:                        mv Makefile.tem Makefile
        !          2397:                else
        !          2398:        #               When building gcc with a cross-compiler, we need to fix a
        !          2399:        #               few things.
        !          2400:                        echo "build= $build" > Makefile
        !          2401:                        sed -e "s|objc-runtime$||" \
        !          2402:                            -e "/####build/  r ${mainsrcdir}/build-make" Makefile.tem >> Makefile
        !          2403:                        rm -f Makefile.tem Makefile.xx
        !          2404:                fi
1.1.1.4   root     2405:        else
1.1.1.7 ! root     2406:                rm -f Makefile
        !          2407:                echo "CROSS=-DCROSS_COMPILE" > Makefile
        !          2408:                sed -e "/####cross/  r ${mainsrcdir}/cross-make" Makefile.tem >> Makefile
1.1.1.4   root     2409:                rm -f Makefile.tem Makefile.xx
                   2410:        fi
1.1.1.7 ! root     2411:        
        !          2412:        echo "Created \`$subdir/Makefile'."
        !          2413:        
        !          2414:        if [ xx${vint} != xx ]
        !          2415:        then
        !          2416:                vintmsg=" (vint)"
        !          2417:        fi
        !          2418:        
        !          2419:        # If a subdirectory has a configure script, run it.
        !          2420:        if [ x$subdir != x. ]
        !          2421:        then
        !          2422:                if [ -f $srcdir/configure ]
        !          2423:                then
        !          2424:                        ${CONFIG_SHELL-sh} $srcdir/configure $arguments --srcdir=$srcdir
        !          2425:                fi
        !          2426:        fi
1.1       root     2427: 
1.1.1.7 ! root     2428:        cd $STARTDIR
        !          2429: done   # end of current-dir SUBDIRS loop
        !          2430:        
        !          2431: srcdir=$savesrcdir
1.1       root     2432: 
                   2433: # Describe the chosen configuration in config.status.
                   2434: # Make that file a shellscript which will reestablish the same configuration.
                   2435: echo "#!/bin/sh
                   2436: # GCC was configured as follows:
1.1.1.6   root     2437: ${srcdir}/configure" $arguments > config.new
                   2438: echo echo host=$canon_host target=$canon_target build=$canon_build >> config.new
                   2439: chmod a+x config.new
                   2440: if [ -f config.bak ] && cmp config.bak config.new >/dev/null 2>/dev/null;
                   2441: then
                   2442:        mv -f config.bak config.status
                   2443:        rm -f config.new
                   2444: else
                   2445:        mv -f config.new config.status
                   2446:        rm -f config.bak
                   2447: fi
1.1       root     2448: 
1.1.1.7 ! root     2449: str2=
        !          2450: str3=
        !          2451: str4=.
        !          2452: 
1.1.1.4   root     2453: if [ x$canon_host = x$canon_target ]
1.1       root     2454: then
1.1.1.7 ! root     2455:        str1="native "
1.1       root     2456: else
1.1.1.7 ! root     2457:        str1="cross-"
        !          2458:        str2=" from $canon_host"
        !          2459: fi
        !          2460: 
        !          2461: if [ x$canon_host != x$canon_build ]
        !          2462: then
        !          2463:        str3=" on a $canon_build system"
        !          2464: fi
        !          2465: 
        !          2466: if [ "x$str2" != x ] || [ "x$str3" != x ]
        !          2467: then
        !          2468:        str4=
        !          2469: fi
        !          2470: 
        !          2471: echo "Links are now set up to build a ${str1}compiler for ${canon_target}$str4" 1>&2
        !          2472: 
        !          2473: if [ "x$str2" != x ] || [ "x$str3" != x ]
        !          2474: then
        !          2475:        echo " ${str2}${str3}." 1>&2
1.1       root     2476: fi
                   2477: 
                   2478: exit 0

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.