ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/config.guess
(Generate patch)

Comparing BasiliskII/src/Unix/config.guess (file contents):
Revision 1.2 by gbeauche, 2001-06-19T08:29:07Z vs.
Revision 1.3 by cebix, 2001-09-18T17:16:47Z

# Line 3 | Line 3
3   #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4   #   Free Software Foundation, Inc.
5  
6 < timestamp='2001-06-05'
6 > timestamp='2001-04-20'
7  
8   # This file is free software; you can redistribute it and/or modify it
9   # under the terms of the GNU General Public License as published by
# Line 52 | Line 52 | version="\
52   GNU config.guess ($timestamp)
53  
54   Originally written by Per Bothner.
55 < Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
55 > Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
56   Free Software Foundation, Inc.
57  
58   This is free software; see the source for copying conditions.  There is NO
# Line 883 | Line 883 | EOF
883          # The BFD linker knows what the default object file format is, so
884          # first see if it will tell us. cd to the root directory to prevent
885          # problems with other programs or directories called `ld' in the path.
886 <        ld_supported_targets=`cd /; ld --help 2>&1 \
887 <                         | sed -ne '/supported targets:/!d
886 >        ld_supported_emulations=`cd /; ld --help 2>&1 \
887 >                         | sed -ne '/supported emulations:/!d
888                                      s/[         ][      ]*/ /g
889 <                                    s/.*supported targets: *//
889 >                                    s/.*supported emulations: *//
890                                      s/ .*//
891                                      p'`
892 <        case "$ld_supported_targets" in
893 <          elf32-i386)
892 >        case "$ld_supported_emulations" in
893 >          i*86linux)
894 >                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
895 >                exit 0
896 >                ;;
897 >          elf_i*86)
898                  TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
899                  ;;
900 <          a.out-i386-linux)
897 <                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
898 <                exit 0 ;;              
899 <          coff-i386)
900 >          i*86coff)
901                  echo "${UNAME_MACHINE}-pc-linux-gnucoff"
902 <                exit 0 ;;
903 <          "")
904 <                # Either a pre-BFD a.out linker (linux-gnuoldld) or
905 <                # one that does not give us useful --help.
906 <                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
907 <                exit 0 ;;
902 >                exit 0
903 >                ;;
904 >        esac
905 >        # Either a pre-BFD a.out linker (linux-gnuoldld)
906 >        # or one that does not give us useful --help.
907 >        # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
908 >        # If ld does not provide *any* "supported emulations:"
909 >        # that means it is gnuoldld.
910 >        test -z "$ld_supported_emulations" && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
911 >        case "${UNAME_MACHINE}" in
912 >        i*86)
913 >          VENDOR=pc;
914 >          ;;
915 >        *)
916 >          VENDOR=unknown;
917 >          ;;
918          esac
919          # Determine whether the default compiler is a.out or elf
920          cat >$dummy.c <<EOF
# Line 917 | Line 928 | EOF
928   #ifdef __ELF__
929   # ifdef __GLIBC__
930   #  if __GLIBC__ >= 2
931 <    printf ("%s-pc-linux-gnu\n", argv[1]);
931 >    printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
932   #  else
933 <    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
933 >    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
934   #  endif
935   # else
936 <   printf ("%s-pc-linux-gnulibc1\n", argv[1]);
936 >   printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
937   # endif
938   #else
939 <  printf ("%s-pc-linux-gnuaout\n", argv[1]);
939 >  printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
940   #endif
941    return 0;
942   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines