rbcdio 0.01 → 0.02

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS CHANGED
@@ -1,5 +1,17 @@
1
+ 0.02
2
+ 2007-10-27
3
+
4
+ - Memory allocation was off by one in the name_translate
5
+ function. This could lead to a buffer overflow when the translated
6
+ name is as long as the original. Patch by Martin Ferrari on the Perl
7
+ code.
8
+
9
+ - Minor fixes
10
+
11
+ - add cdchange example program from pycdio.
12
+
1
13
  0.01
2
14
 
3
15
  - First cut at converting to Ruby
4
16
 
5
- $Id: NEWS,v 1.1.1.1 2006/11/13 05:13:32 rocky Exp $
17
+ $Id: NEWS,v 1.4 2007/10/27 11:18:40 rocky Exp $
data/README CHANGED
@@ -13,11 +13,11 @@ device-dependent properties of a CD-ROM can use this library.
13
13
 
14
14
  == Requirements
15
15
 
16
- I've only tested rcdio on Ruby 1.8.4.
16
+ I've only tested rcdio on Ruby 1.8.4 - 1.8.6
17
17
 
18
18
  You'll need a C compiler so the extension can be compiled when it is
19
- installed. You'll also need libcdio (http://libcdio.sf.net) and it's
20
- header files installed.
19
+ installed. You'll also need libcdio
20
+ (http://www.gnu.org/software/libcdio) and it's header files installed.
21
21
 
22
22
  One weirdness I've seen in running "gem install" is that on some OS's
23
23
  like Solaris, gem assume the GNU "install" program goes by the name
@@ -30,8 +30,7 @@ libcdio is rather large and yet may still grow a bit. (UDF support in
30
30
  libcdio may be on the horizon.)
31
31
 
32
32
  What is in rubycdio is incomplete; over time it may grow to completion
33
- depending on various factors: e.g. interest, whether others help out,
34
- whether I get a longer-term job at some such place that uses Ruby.
33
+ depending on various factors: e.g. interest, whether others help out.
35
34
 
36
35
  Sections of libcdio that are currently missing are the (SCSI) MMC
37
36
  commands, the cdparanoia library, CD-Text handling. Of the audio
@@ -39,8 +38,9 @@ controls, I put in those things that didn't require any thought. The
39
38
  ISO 9660 library is pretty complete, except file "stat" information
40
39
  which is at present is pretty minimal.
41
40
 
42
- That said, what's in there is very usable (It contains probably more
43
- access capabilities than what most media players that don't use
41
+ That said, what's in there is very usable. It contains probably more
42
+ access capabilities than what most media players that don't issue MMC
43
+ directly need.
44
44
 
45
45
  The encapsulation by SWIG is done in two parts. The lower-level Ruby
46
46
  interface is called rubycdio and is generated by SWIG.
@@ -66,10 +66,11 @@ generally not true: usually changes to the C-to-python translation,
66
66
  rubycdio, do result in small, but obvious and straightforward changes
67
67
  to the abstraction layer cdio.)
68
68
 
69
- There is much to be done - you want to help out, please do so!
69
+ There is much to be done - if you see something missing and want to
70
+ help out, please do so!
70
71
 
71
72
  Standalone documentation is missing although many of the methods,
72
73
  classes and functions have some document strings. See also the
73
74
  programs in the example directory.
74
75
 
75
- $Id: README,v 1.5 2006/12/21 11:55:23 rocky Exp $
76
+ $Id: README,v 1.8 2007/10/13 17:11:45 rocky Exp $
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.01
1
+ 0.02
data/config.guess CHANGED
@@ -1,9 +1,10 @@
1
1
  #! /bin/sh
2
2
  # Attempt to guess a canonical system name.
3
3
  # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
- # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4
+ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
+ # Inc.
5
6
 
6
- timestamp='2005-07-08'
7
+ timestamp='2006-07-02'
7
8
 
8
9
  # This file is free software; you can redistribute it and/or modify it
9
10
  # under the terms of the GNU General Public License as published by
@@ -106,7 +107,7 @@ set_cc_for_build='
106
107
  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107
108
  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108
109
  : ${TMPDIR=/tmp} ;
109
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110
111
  { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111
112
  { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112
113
  { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -216,8 +217,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
216
217
  *:ekkoBSD:*:*)
217
218
  echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
218
219
  exit ;;
220
+ *:SolidBSD:*:*)
221
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
222
+ exit ;;
219
223
  macppc:MirBSD:*:*)
220
- echo powerppc-unknown-mirbsd${UNAME_RELEASE}
224
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
221
225
  exit ;;
222
226
  *:MirBSD:*:*)
223
227
  echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -774,7 +778,14 @@ EOF
774
778
  echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
775
779
  exit ;;
776
780
  *:FreeBSD:*:*)
777
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
781
+ case ${UNAME_MACHINE} in
782
+ pc98)
783
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
784
+ amd64)
785
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
786
+ *)
787
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
788
+ esac
778
789
  exit ;;
779
790
  i*:CYGWIN*:*)
780
791
  echo ${UNAME_MACHINE}-pc-cygwin
@@ -789,8 +800,11 @@ EOF
789
800
  i*:PW*:*)
790
801
  echo ${UNAME_MACHINE}-pc-pw32
791
802
  exit ;;
792
- x86:Interix*:[34]*)
793
- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
803
+ x86:Interix*:[3456]*)
804
+ echo i586-pc-interix${UNAME_RELEASE}
805
+ exit ;;
806
+ EM64T:Interix*:[3456]*)
807
+ echo x86_64-unknown-interix${UNAME_RELEASE}
794
808
  exit ;;
795
809
  [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
796
810
  echo i${UNAME_MACHINE}-pc-mks
@@ -804,7 +818,7 @@ EOF
804
818
  i*:UWIN*:*)
805
819
  echo ${UNAME_MACHINE}-pc-uwin
806
820
  exit ;;
807
- amd64:CYGWIN*:*:*)
821
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
808
822
  echo x86_64-unknown-cygwin
809
823
  exit ;;
810
824
  p*:CYGWIN*:*)
@@ -825,25 +839,28 @@ EOF
825
839
  echo ${UNAME_MACHINE}-pc-minix
826
840
  exit ;;
827
841
  arm*:Linux:*:*)
828
- echo ${UNAME_MACHINE}-${VENDOR}-linux
842
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
843
+ exit ;;
844
+ avr32*:Linux:*:*)
845
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
829
846
  exit ;;
830
847
  cris:Linux:*:*)
831
- echo cris-axis-linux
848
+ echo cris-axis-linux-gnu
832
849
  exit ;;
833
850
  crisv32:Linux:*:*)
834
- echo crisv32-axis-linux
851
+ echo crisv32-axis-linux-gnu
835
852
  exit ;;
836
853
  frv:Linux:*:*)
837
- echo frv-${VENDOR}-linux
854
+ echo frv-${VENDOR}-linux-gnu
838
855
  exit ;;
839
856
  ia64:Linux:*:*)
840
- echo ${UNAME_MACHINE}-${VENDOR}-linux
857
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
841
858
  exit ;;
842
859
  m32r*:Linux:*:*)
843
- echo ${UNAME_MACHINE}-${VENDOR}-linux
860
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
844
861
  exit ;;
845
862
  m68*:Linux:*:*)
846
- echo ${UNAME_MACHINE}-${VENDOR}-linux
863
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
847
864
  exit ;;
848
865
  mips:Linux:*:*)
849
866
  eval $set_cc_for_build
@@ -861,8 +878,12 @@ EOF
861
878
  #endif
862
879
  #endif
863
880
  EOF
864
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
865
- test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; }
881
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
882
+ /^CPU/{
883
+ s: ::g
884
+ p
885
+ }'`"
886
+ test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
866
887
  ;;
867
888
  mips64:Linux:*:*)
868
889
  eval $set_cc_for_build
@@ -880,14 +901,21 @@ EOF
880
901
  #endif
881
902
  #endif
882
903
  EOF
883
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
884
- test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; }
904
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
905
+ /^CPU/{
906
+ s: ::g
907
+ p
908
+ }'`"
909
+ test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
885
910
  ;;
911
+ or32:Linux:*:*)
912
+ echo or32-${VENDOR}-linux-gnu
913
+ exit ;;
886
914
  ppc:Linux:*:*)
887
- echo powerpc-${VENDOR}-linux
915
+ echo powerpc-${VENDOR}-linux-gnu
888
916
  exit ;;
889
917
  ppc64:Linux:*:*)
890
- echo powerpc64-${VENDOR}-linux
918
+ echo powerpc64-${VENDOR}-linux-gnu
891
919
  exit ;;
892
920
  alpha:Linux:*:*)
893
921
  case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -901,33 +929,36 @@ EOF
901
929
  esac
902
930
  objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
903
931
  if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904
- echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
932
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
905
933
  exit ;;
906
934
  parisc:Linux:*:* | hppa:Linux:*:*)
907
935
  # Look for CPU level
908
936
  case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
909
- PA7*) echo hppa1.1-${VENDOR}-linux ;;
910
- PA8*) echo hppa2.0-${VENDOR}-linux ;;
911
- *) echo hppa-${VENDOR}-linux ;;
937
+ PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
938
+ PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
939
+ *) echo hppa-${VENDOR}-linux-gnu ;;
912
940
  esac
913
941
  exit ;;
914
942
  parisc64:Linux:*:* | hppa64:Linux:*:*)
915
- echo hppa64-${VENDOR}-linux
943
+ echo hppa64-${VENDOR}-linux-gnu
916
944
  exit ;;
917
945
  s390:Linux:*:* | s390x:Linux:*:*)
918
946
  echo ${UNAME_MACHINE}-ibm-linux
919
947
  exit ;;
920
948
  sh64*:Linux:*:*)
921
- echo ${UNAME_MACHINE}-${VENDOR}-linux
949
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
922
950
  exit ;;
923
951
  sh*:Linux:*:*)
924
- echo ${UNAME_MACHINE}-${VENDOR}-linux
952
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
925
953
  exit ;;
926
954
  sparc:Linux:*:* | sparc64:Linux:*:*)
927
- echo ${UNAME_MACHINE}-${VENDOR}-linux
955
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
956
+ exit ;;
957
+ vax:Linux:*:*)
958
+ echo ${UNAME_MACHINE}-dec-linux-gnu
928
959
  exit ;;
929
960
  x86_64:Linux:*:*)
930
- echo x86_64-${VENDOR}-linux
961
+ echo x86_64-${VENDOR}-linux-gnu
931
962
  exit ;;
932
963
  i*86:Linux:*:*)
933
964
  # The BFD linker knows what the default object file format is, so
@@ -942,18 +973,18 @@ EOF
942
973
  p'`
943
974
  case "$ld_supported_targets" in
944
975
  elf32-i386)
945
- TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
976
+ TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
946
977
  ;;
947
978
  a.out-i386-linux)
948
- echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
979
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
949
980
  exit ;;
950
981
  coff-i386)
951
- echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
982
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
952
983
  exit ;;
953
984
  "")
954
- # Either a pre-BFD a.out linker (linuxoldld) or
985
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
955
986
  # one that does not give us useful --help.
956
- echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
987
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
957
988
  exit ;;
958
989
  esac
959
990
  # Determine whether the default compiler is a.out or elf
@@ -971,7 +1002,7 @@ EOF
971
1002
  LIBC=gnulibc1
972
1003
  # endif
973
1004
  #else
974
- #ifdef __INTEL_COMPILER
1005
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
975
1006
  LIBC=gnu
976
1007
  #else
977
1008
  LIBC=gnuaout
@@ -981,9 +1012,13 @@ EOF
981
1012
  LIBC=dietlibc
982
1013
  #endif
983
1014
  EOF
984
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1015
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1016
+ /^LIBC/{
1017
+ s: ::g
1018
+ p
1019
+ }'`"
985
1020
  test x"${LIBC}" != x && {
986
- echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/'
1021
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
987
1022
  exit
988
1023
  }
989
1024
  test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
@@ -1192,7 +1227,6 @@ EOF
1192
1227
  *:Darwin:*:*)
1193
1228
  UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1194
1229
  case $UNAME_PROCESSOR in
1195
- *86) UNAME_PROCESSOR=i686 ;;
1196
1230
  unknown) UNAME_PROCESSOR=powerpc ;;
1197
1231
  esac
1198
1232
  echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
@@ -1271,6 +1305,9 @@ EOF
1271
1305
  i*86:skyos:*:*)
1272
1306
  echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1273
1307
  exit ;;
1308
+ i*86:rdos:*:*)
1309
+ echo ${UNAME_MACHINE}-pc-rdos
1310
+ exit ;;
1274
1311
  esac
1275
1312
 
1276
1313
  #echo '(No uname command or uname output not recognized.)' 1>&2
data/config.sub CHANGED
@@ -1,9 +1,10 @@
1
1
  #! /bin/sh
2
2
  # Configuration validation subroutine script.
3
3
  # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
- # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4
+ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
+ # Inc.
5
6
 
6
- timestamp='2005-07-08'
7
+ timestamp='2006-09-20'
7
8
 
8
9
  # This file is (in principle) common to ALL GNU software.
9
10
  # The presence of a machine in this file suggests that SOME GNU software
@@ -119,8 +120,9 @@ esac
119
120
  # Here we must recognize all the valid KERNEL-OS combinations.
120
121
  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121
122
  case $maybe_os in
122
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
123
- kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
123
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125
+ storm-chaos* | os2-emx* | rtmk-nova*)
124
126
  os=-$maybe_os
125
127
  basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126
128
  ;;
@@ -171,6 +173,10 @@ case $os in
171
173
  -hiux*)
172
174
  os=-hiuxwe2
173
175
  ;;
176
+ -sco6)
177
+ os=-sco5v6
178
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179
+ ;;
174
180
  -sco5)
175
181
  os=-sco3.2v5
176
182
  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -187,6 +193,10 @@ case $os in
187
193
  # Don't forget version if it is 3.2v4 or newer.
188
194
  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189
195
  ;;
196
+ -sco5v6*)
197
+ # Don't forget version if it is 3.2v4 or newer.
198
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199
+ ;;
190
200
  -sco*)
191
201
  os=-sco3.2v2
192
202
  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -231,7 +241,7 @@ case $basic_machine in
231
241
  | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232
242
  | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233
243
  | am33_2.0 \
234
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
244
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235
245
  | bfin \
236
246
  | c4x | clipper \
237
247
  | d10v | d30v | dlx | dsp16xx \
@@ -239,7 +249,8 @@ case $basic_machine in
239
249
  | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240
250
  | i370 | i860 | i960 | ia64 \
241
251
  | ip2k | iq2000 \
242
- | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
252
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
253
+ | maxq | mb | microblaze | mcore \
243
254
  | mips | mipsbe | mipseb | mipsel | mipsle \
244
255
  | mips16 \
245
256
  | mips64 | mips64el \
@@ -257,28 +268,27 @@ case $basic_machine in
257
268
  | mipsisa64sr71k | mipsisa64sr71kel \
258
269
  | mipstx39 | mipstx39el \
259
270
  | mn10200 | mn10300 \
260
- | ms1 \
271
+ | mt \
261
272
  | msp430 \
273
+ | nios | nios2 \
262
274
  | ns16k | ns32k \
263
275
  | or32 \
264
276
  | pdp10 | pdp11 | pj | pjl \
265
277
  | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
266
278
  | pyramid \
267
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
279
+ | score \
280
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
268
281
  | sh64 | sh64le \
269
- | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
270
- | sparcv8 | sparcv9 | sparcv9b \
271
- | strongarm \
282
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
+ | spu | strongarm \
272
285
  | tahoe | thumb | tic4x | tic80 | tron \
273
286
  | v850 | v850e \
274
287
  | we32k \
275
- | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
288
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
276
289
  | z8k)
277
290
  basic_machine=$basic_machine-unknown
278
291
  ;;
279
- m32c)
280
- basic_machine=$basic_machine-unknown
281
- ;;
282
292
  m6811 | m68hc11 | m6812 | m68hc12)
283
293
  # Motorola 68HC11/12.
284
294
  basic_machine=$basic_machine-unknown
@@ -286,6 +296,9 @@ case $basic_machine in
286
296
  ;;
287
297
  m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
288
298
  ;;
299
+ ms1)
300
+ basic_machine=mt-unknown
301
+ ;;
289
302
 
290
303
  # We use `pc' rather than `unknown'
291
304
  # because (1) that's what they normally are, and
@@ -305,7 +318,7 @@ case $basic_machine in
305
318
  | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
306
319
  | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
307
320
  | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
308
- | avr-* \
321
+ | avr-* | avr32-* \
309
322
  | bfin-* | bs2000-* \
310
323
  | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
311
324
  | clipper-* | craynv-* | cydra-* \
@@ -316,7 +329,7 @@ case $basic_machine in
316
329
  | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
317
330
  | i*86-* | i860-* | i960-* | ia64-* \
318
331
  | ip2k-* | iq2000-* \
319
- | m32r-* | m32rle-* \
332
+ | m32c-* | m32r-* | m32rle-* \
320
333
  | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
321
334
  | m88110-* | m88k-* | maxq-* | mcore-* \
322
335
  | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
@@ -336,31 +349,30 @@ case $basic_machine in
336
349
  | mipsisa64sr71k-* | mipsisa64sr71kel-* \
337
350
  | mipstx39-* | mipstx39el-* \
338
351
  | mmix-* \
339
- | ms1-* \
352
+ | mt-* \
340
353
  | msp430-* \
354
+ | nios-* | nios2-* \
341
355
  | none-* | np1-* | ns16k-* | ns32k-* \
342
356
  | orion-* \
343
357
  | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
344
358
  | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
345
359
  | pyramid-* \
346
360
  | romp-* | rs6000-* \
347
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
361
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
348
362
  | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
349
- | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
363
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
350
364
  | sparclite-* \
351
- | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
365
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
352
366
  | tahoe-* | thumb-* \
353
367
  | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
354
368
  | tron-* \
355
369
  | v850-* | v850e-* | vax-* \
356
370
  | we32k-* \
357
- | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
371
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
358
372
  | xstormy16-* | xtensa-* \
359
373
  | ymp-* \
360
374
  | z8k-*)
361
375
  ;;
362
- m32c-*)
363
- ;;
364
376
  # Recognize the various machine names and aliases which stand
365
377
  # for a CPU type and a company and sometimes even an OS.
366
378
  386bsd)
@@ -696,6 +708,9 @@ case $basic_machine in
696
708
  basic_machine=i386-pc
697
709
  os=-msdos
698
710
  ;;
711
+ ms1-*)
712
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
713
+ ;;
699
714
  mvs)
700
715
  basic_machine=i370-ibm
701
716
  os=-mvs
@@ -803,6 +818,12 @@ case $basic_machine in
803
818
  pc532 | pc532-*)
804
819
  basic_machine=ns32k-pc532
805
820
  ;;
821
+ pc98)
822
+ basic_machine=i386-pc
823
+ ;;
824
+ pc98-*)
825
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
826
+ ;;
806
827
  pentium | p5 | k5 | k6 | nexgen | viac3)
807
828
  basic_machine=i586-pc
808
829
  ;;
@@ -859,6 +880,10 @@ case $basic_machine in
859
880
  basic_machine=i586-unknown
860
881
  os=-pw32
861
882
  ;;
883
+ rdos)
884
+ basic_machine=i386-pc
885
+ os=-rdos
886
+ ;;
862
887
  rom68k)
863
888
  basic_machine=m68k-rom68k
864
889
  os=-coff
@@ -885,6 +910,10 @@ case $basic_machine in
885
910
  sb1el)
886
911
  basic_machine=mipsisa64sb1el-unknown
887
912
  ;;
913
+ sde)
914
+ basic_machine=mipsisa32-sde
915
+ os=-elf
916
+ ;;
888
917
  sei)
889
918
  basic_machine=mips-sei
890
919
  os=-seiux
@@ -1101,7 +1130,7 @@ case $basic_machine in
1101
1130
  sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1102
1131
  basic_machine=sh-unknown
1103
1132
  ;;
1104
- sparc | sparcv8 | sparcv9 | sparcv9b)
1133
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1105
1134
  basic_machine=sparc-sun
1106
1135
  ;;
1107
1136
  cydra)
@@ -1174,21 +1203,23 @@ case $os in
1174
1203
  | -aos* \
1175
1204
  | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1176
1205
  | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1177
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1206
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1207
+ | -openbsd* | -solidbsd* \
1178
1208
  | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1179
1209
  | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1180
1210
  | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1181
1211
  | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1182
1212
  | -chorusos* | -chorusrdb* \
1183
1213
  | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1184
- | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1214
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1215
+ | -uxpv* | -beos* | -mpeix* | -udk* \
1185
1216
  | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1186
1217
  | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1187
1218
  | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1188
1219
  | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1189
1220
  | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1190
1221
  | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1191
- | -skyos* | -haiku*)
1222
+ | -skyos* | -haiku* | -rdos* | -toppers*)
1192
1223
  # Remember, each alternative MUST END IN *, to match a version number.
1193
1224
  ;;
1194
1225
  -qnx*)
@@ -1215,6 +1246,9 @@ case $os in
1215
1246
  -linux-dietlibc)
1216
1247
  os=-linux-dietlibc
1217
1248
  ;;
1249
+ -linux*)
1250
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
1251
+ ;;
1218
1252
  -sunos5*)
1219
1253
  os=`echo $os | sed -e 's|sunos5|solaris2|'`
1220
1254
  ;;
@@ -1337,6 +1371,12 @@ else
1337
1371
  # system, and we'll never get to this point.
1338
1372
 
1339
1373
  case $basic_machine in
1374
+ score-*)
1375
+ os=-elf
1376
+ ;;
1377
+ spu-*)
1378
+ os=-elf
1379
+ ;;
1340
1380
  *-acorn)
1341
1381
  os=-riscix1.2
1342
1382
  ;;
@@ -1346,9 +1386,9 @@ case $basic_machine in
1346
1386
  arm*-semi)
1347
1387
  os=-aout
1348
1388
  ;;
1349
- c4x-* | tic4x-*)
1350
- os=-coff
1351
- ;;
1389
+ c4x-* | tic4x-*)
1390
+ os=-coff
1391
+ ;;
1352
1392
  # This must come before the *-dec entry.
1353
1393
  pdp10-*)
1354
1394
  os=-tops20