libusb 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Gemfile +1 -0
  5. data/History.md +10 -0
  6. data/README.md +19 -6
  7. data/Rakefile +1 -1
  8. data/ext/extconf.rb +17 -1
  9. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/AUTHORS +18 -6
  10. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/COPYING +0 -0
  11. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ChangeLog +58 -1
  12. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/INSTALL +0 -0
  13. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.am +6 -1
  14. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.in +248 -174
  15. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/NEWS +2 -2
  16. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/PORTING +0 -0
  17. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/README +2 -1
  18. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/TODO +0 -0
  19. data/ext/libusbx-1.0.17/Xcode/common.xcconfig +40 -0
  20. data/ext/libusbx-1.0.17/Xcode/config.h +28 -0
  21. data/ext/libusbx-1.0.17/Xcode/debug.xcconfig +29 -0
  22. data/ext/libusbx-1.0.17/Xcode/libusbx.xcconfig +21 -0
  23. data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +864 -0
  24. data/ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig +21 -0
  25. data/ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig +21 -0
  26. data/ext/libusbx-1.0.17/Xcode/release.xcconfig +29 -0
  27. data/ext/libusbx-1.0.17/aclocal.m4 +1112 -0
  28. data/ext/libusbx-1.0.17/android/README +114 -0
  29. data/ext/libusbx-1.0.17/android/config.h +90 -0
  30. data/ext/libusbx-1.0.17/android/jni/Android.mk +23 -0
  31. data/ext/libusbx-1.0.17/android/jni/Application.mk +19 -0
  32. data/ext/libusbx-1.0.17/android/jni/examples.mk +134 -0
  33. data/ext/libusbx-1.0.17/android/jni/libusb.mk +54 -0
  34. data/ext/libusbx-1.0.17/android/jni/tests.mk +56 -0
  35. data/ext/libusbx-1.0.17/compile +347 -0
  36. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.guess +164 -130
  37. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.h.in +37 -1
  38. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.sub +174 -89
  39. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure +723 -302
  40. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure.ac +71 -20
  41. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/depcomp +345 -185
  42. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.am +0 -0
  43. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.in +95 -32
  44. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/doxygen.cfg.in +1 -1
  45. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.am +5 -4
  46. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.in +208 -104
  47. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp.c +1 -1
  48. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp_threaded.c +1 -1
  49. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.c +188 -8
  50. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.h +18 -5
  51. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/fxload.c +90 -64
  52. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.c +0 -0
  53. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.h +0 -0
  54. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt1.c +0 -0
  55. data/ext/libusbx-1.0.17/examples/hotplugtest.c +97 -0
  56. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/listdevs.c +12 -4
  57. data/ext/libusbx-1.0.17/examples/sam3u_benchmark.c +193 -0
  58. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/xusb.c +106 -49
  59. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/install-sh +21 -14
  60. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb-1.0.pc.in +1 -1
  61. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/Makefile.am +29 -10
  62. data/ext/libusbx-1.0.17/libusb/Makefile.in +914 -0
  63. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/core.c +378 -87
  64. data/ext/libusbx-1.0.17/libusb/descriptor.c +1199 -0
  65. data/ext/libusbx-1.0.17/libusb/hotplug.c +322 -0
  66. data/ext/libusbx-1.0.17/libusb/hotplug.h +82 -0
  67. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/io.c +182 -62
  68. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.def +32 -0
  69. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.rc +2 -0
  70. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb.h +481 -32
  71. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusbi.h +135 -38
  72. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.c +591 -496
  73. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.h +39 -46
  74. data/ext/libusbx-1.0.17/libusb/os/linux_netlink.c +345 -0
  75. data/ext/libusbx-1.0.17/libusb/os/linux_udev.c +306 -0
  76. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.c +653 -617
  77. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.h +32 -0
  78. data/ext/{libusbx-1.0.14/libusb/os/openbsd_usb.c → libusbx-1.0.17/libusb/os/netbsd_usb.c} +70 -63
  79. data/ext/libusbx-1.0.17/libusb/os/openbsd_usb.c +823 -0
  80. data/ext/libusbx-1.0.17/libusb/os/poll_posix.c +51 -0
  81. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_posix.h +2 -1
  82. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.c +85 -106
  83. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.h +14 -3
  84. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.c +3 -1
  85. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.h +0 -0
  86. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.c +6 -5
  87. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.h +0 -0
  88. data/ext/libusbx-1.0.17/libusb/os/wince_usb.c +1026 -0
  89. data/ext/libusbx-1.0.17/libusb/os/wince_usb.h +131 -0
  90. data/ext/libusbx-1.0.17/libusb/os/windows_common.h +108 -0
  91. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.c +92 -57
  92. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.h +2 -63
  93. data/ext/libusbx-1.0.17/libusb/strerror.c +184 -0
  94. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/sync.c +24 -38
  95. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/version.h +1 -1
  96. data/ext/libusbx-1.0.17/libusb/version_nano.h +1 -0
  97. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ltmain.sh +60 -41
  98. data/ext/{libusbx-1.0.14/aclocal.m4 → libusbx-1.0.17/m4/libtool.m4} +229 -1723
  99. data/ext/libusbx-1.0.17/m4/ltoptions.m4 +384 -0
  100. data/ext/libusbx-1.0.17/m4/ltsugar.m4 +123 -0
  101. data/ext/libusbx-1.0.17/m4/ltversion.m4 +23 -0
  102. data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +98 -0
  103. data/ext/libusbx-1.0.17/missing +215 -0
  104. data/ext/libusbx-1.0.17/tests/Makefile.am +6 -0
  105. data/ext/libusbx-1.0.17/tests/Makefile.in +583 -0
  106. data/ext/libusbx-1.0.17/tests/libusbx_testlib.h +107 -0
  107. data/ext/libusbx-1.0.17/tests/stress.c +160 -0
  108. data/ext/libusbx-1.0.17/tests/testlib.c +276 -0
  109. data/lib/libusb.rb +4 -0
  110. data/lib/libusb/call.rb +43 -1
  111. data/lib/libusb/constants.rb +5 -0
  112. data/lib/libusb/context.rb +100 -0
  113. data/lib/libusb/dev_handle.rb +27 -0
  114. data/lib/libusb/device.rb +10 -4
  115. data/lib/libusb/version_gem.rb +1 -1
  116. data/test/test_libusb_capability.rb +2 -2
  117. data/test/test_libusb_compat.rb +2 -2
  118. data/test/test_libusb_compat_mass_storage.rb +2 -2
  119. data/test/test_libusb_descriptors.rb +4 -2
  120. data/test/test_libusb_event_machine.rb +2 -2
  121. data/test/test_libusb_gc.rb +2 -2
  122. data/test/test_libusb_hotplug.rb +115 -0
  123. data/test/test_libusb_iso_transfer.rb +3 -3
  124. data/test/test_libusb_mass_storage.rb +6 -16
  125. data/test/test_libusb_mass_storage2.rb +26 -3
  126. data/test/test_libusb_structs.rb +2 -2
  127. data/test/test_libusb_threads.rb +2 -2
  128. data/test/test_libusb_version.rb +2 -2
  129. metadata +127 -68
  130. metadata.gz.sig +0 -0
  131. data/ext/libusbx-1.0.14/THANKS +0 -7
  132. data/ext/libusbx-1.0.14/compile +0 -143
  133. data/ext/libusbx-1.0.14/libusb/Makefile.in +0 -721
  134. data/ext/libusbx-1.0.14/libusb/descriptor.c +0 -731
  135. data/ext/libusbx-1.0.14/libusb/version_nano.h +0 -1
  136. data/ext/libusbx-1.0.14/missing +0 -376
@@ -9,6 +9,9 @@
9
9
  /* Message logging */
10
10
  #undef ENABLE_LOGGING
11
11
 
12
+ /* Define to 1 if you have the <asm/types.h> header file. */
13
+ #undef HAVE_ASM_TYPES_H
14
+
12
15
  /* Define to 1 if you have the <dlfcn.h> header file. */
13
16
  #undef HAVE_DLFCN_H
14
17
 
@@ -18,12 +21,27 @@
18
21
  /* Define to 1 if you have the <inttypes.h> header file. */
19
22
  #undef HAVE_INTTYPES_H
20
23
 
24
+ /* Define to 1 if you have the `udev' library (-ludev). */
25
+ #undef HAVE_LIBUDEV
26
+
27
+ /* Define to 1 if you have the <libudev.h> header file. */
28
+ #undef HAVE_LIBUDEV_H
29
+
30
+ /* Define to 1 if you have the <linux/filter.h> header file. */
31
+ #undef HAVE_LINUX_FILTER_H
32
+
33
+ /* Define to 1 if you have the <linux/netlink.h> header file. */
34
+ #undef HAVE_LINUX_NETLINK_H
35
+
21
36
  /* Define to 1 if you have the <memory.h> header file. */
22
37
  #undef HAVE_MEMORY_H
23
38
 
24
39
  /* Define to 1 if you have the <poll.h> header file. */
25
40
  #undef HAVE_POLL_H
26
41
 
42
+ /* Define to 1 if you have the <signal.h> header file. */
43
+ #undef HAVE_SIGNAL_H
44
+
27
45
  /* Define to 1 if you have the <stdint.h> header file. */
28
46
  #undef HAVE_STDINT_H
29
47
 
@@ -39,6 +57,15 @@
39
57
  /* Define to 1 if the system has the type `struct timespec'. */
40
58
  #undef HAVE_STRUCT_TIMESPEC
41
59
 
60
+ /* syslog() function available */
61
+ #undef HAVE_SYSLOG_FUNC
62
+
63
+ /* Define to 1 if you have the <syslog.h> header file. */
64
+ #undef HAVE_SYSLOG_H
65
+
66
+ /* Define to 1 if you have the <sys/socket.h> header file. */
67
+ #undef HAVE_SYS_SOCKET_H
68
+
42
69
  /* Define to 1 if you have the <sys/stat.h> header file. */
43
70
  #undef HAVE_SYS_STAT_H
44
71
 
@@ -64,7 +91,10 @@
64
91
  /* Linux backend */
65
92
  #undef OS_LINUX
66
93
 
67
- /* OpenBSD/NetBSD backend */
94
+ /* NetBSD backend */
95
+ #undef OS_NETBSD
96
+
97
+ /* OpenBSD backend */
68
98
  #undef OS_OPENBSD
69
99
 
70
100
  /* Windows backend */
@@ -103,6 +133,12 @@
103
133
  /* timerfd headers available */
104
134
  #undef USBI_TIMERFD_AVAILABLE
105
135
 
136
+ /* Enable output to system log */
137
+ #undef USE_SYSTEM_LOGGING_FACILITY
138
+
139
+ /* Use udev for device enumeration/hotplug */
140
+ #undef USE_UDEV
141
+
106
142
  /* Version number of package */
107
143
  #undef VERSION
108
144
 
@@ -1,38 +1,33 @@
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, 2006, 2007, 2008, 2009
5
- # Free Software Foundation, Inc.
4
+ # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
+ # 2011, 2012, 2013 Free Software Foundation, Inc.
6
6
 
7
- timestamp='2009-11-20'
7
+ timestamp='2012-12-29'
8
8
 
9
- # This file is (in principle) common to ALL GNU software.
10
- # The presence of a machine in this file suggests that SOME GNU software
11
- # can handle that machine. It does not imply ALL GNU software can.
12
- #
13
- # This file is free software; you can redistribute it and/or modify
14
- # it under the terms of the GNU General Public License as published by
15
- # the Free Software Foundation; either version 2 of the License, or
9
+ # This file is free software; you can redistribute it and/or modify it
10
+ # under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation; either version 3 of the License, or
16
12
  # (at your option) any later version.
17
13
  #
18
- # This program is distributed in the hope that it will be useful,
19
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- # GNU General Public License for more details.
14
+ # This program is distributed in the hope that it will be useful, but
15
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ # General Public License for more details.
22
18
  #
23
19
  # You should have received a copy of the GNU General Public License
24
- # along with this program; if not, write to the Free Software
25
- # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
- # 02110-1301, USA.
20
+ # along with this program; if not, see <http://www.gnu.org/licenses/>.
27
21
  #
28
22
  # As a special exception to the GNU General Public License, if you
29
23
  # distribute this file as part of a program that contains a
30
24
  # configuration script generated by Autoconf, you may include it under
31
- # the same distribution terms that you use for the rest of that program.
25
+ # the same distribution terms that you use for the rest of that
26
+ # program. This Exception is an additional permission under section 7
27
+ # of the GNU General Public License, version 3 ("GPLv3").
32
28
 
33
29
 
34
- # Please send patches to <config-patches@gnu.org>. Submit a context
35
- # diff and a properly formatted GNU ChangeLog entry.
30
+ # Please send patches with a ChangeLog entry to config-patches@gnu.org.
36
31
  #
37
32
  # Configuration subroutine to validate and canonicalize a configuration type.
38
33
  # Supply the specified configuration type as an argument.
@@ -75,8 +70,9 @@ Report bugs and patches to <config-patches@gnu.org>."
75
70
  version="\
76
71
  GNU config.sub ($timestamp)
77
72
 
78
- Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
79
- 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
73
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
74
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
75
+ 2012, 2013 Free Software Foundation, Inc.
80
76
 
81
77
  This is free software; see the source for copying conditions. There is NO
82
78
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -123,13 +119,18 @@ esac
123
119
  # Here we must recognize all the valid KERNEL-OS combinations.
124
120
  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125
121
  case $maybe_os in
126
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
122
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
123
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
124
+ knetbsd*-gnu* | netbsd*-gnu* | \
128
125
  kopensolaris*-gnu* | \
129
126
  storm-chaos* | os2-emx* | rtmk-nova*)
130
127
  os=-$maybe_os
131
128
  basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
132
129
  ;;
130
+ android-linux)
131
+ os=-linux-android
132
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
133
+ ;;
133
134
  *)
134
135
  basic_machine=`echo $1 | sed 's/-[^-]*$//'`
135
136
  if [ $basic_machine != $1 ]
@@ -152,12 +153,12 @@ case $os in
152
153
  -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153
154
  -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154
155
  -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155
- -apple | -axis | -knuth | -cray | -microblaze)
156
+ -apple | -axis | -knuth | -cray | -microblaze*)
156
157
  os=
157
158
  basic_machine=$1
158
159
  ;;
159
- -bluegene*)
160
- os=-cnk
160
+ -bluegene*)
161
+ os=-cnk
161
162
  ;;
162
163
  -sim | -cisco | -oki | -wec | -winbond)
163
164
  os=
@@ -173,10 +174,10 @@ case $os in
173
174
  os=-chorusos
174
175
  basic_machine=$1
175
176
  ;;
176
- -chorusrdb)
177
- os=-chorusrdb
177
+ -chorusrdb)
178
+ os=-chorusrdb
178
179
  basic_machine=$1
179
- ;;
180
+ ;;
180
181
  -hiux*)
181
182
  os=-hiuxwe2
182
183
  ;;
@@ -221,6 +222,12 @@ case $os in
221
222
  -isc*)
222
223
  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
223
224
  ;;
225
+ -lynx*178)
226
+ os=-lynxos178
227
+ ;;
228
+ -lynx*5)
229
+ os=-lynxos5
230
+ ;;
224
231
  -lynx*)
225
232
  os=-lynxos
226
233
  ;;
@@ -245,20 +252,27 @@ case $basic_machine in
245
252
  # Some are omitted here because they have special meanings below.
246
253
  1750a | 580 \
247
254
  | a29k \
255
+ | aarch64 | aarch64_be \
248
256
  | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
249
257
  | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250
258
  | am33_2.0 \
251
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
259
+ | arc \
260
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
261
+ | avr | avr32 \
262
+ | be32 | be64 \
252
263
  | bfin \
253
264
  | c4x | clipper \
254
265
  | d10v | d30v | dlx | dsp16xx \
266
+ | epiphany \
255
267
  | fido | fr30 | frv \
256
268
  | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
269
+ | hexagon \
257
270
  | i370 | i860 | i960 | ia64 \
258
271
  | ip2k | iq2000 \
272
+ | le32 | le64 \
259
273
  | lm32 \
260
274
  | m32c | m32r | m32rle | m68000 | m68k | m88k \
261
- | maxq | mb | microblaze | mcore | mep | metag \
275
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
262
276
  | mips | mipsbe | mipseb | mipsel | mipsle \
263
277
  | mips16 \
264
278
  | mips64 | mips64el \
@@ -281,29 +295,39 @@ case $basic_machine in
281
295
  | moxie \
282
296
  | mt \
283
297
  | msp430 \
298
+ | nds32 | nds32le | nds32be \
284
299
  | nios | nios2 \
285
300
  | ns16k | ns32k \
301
+ | open8 \
286
302
  | or32 \
287
303
  | pdp10 | pdp11 | pj | pjl \
288
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
304
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
289
305
  | pyramid \
290
- | rx \
306
+ | rl78 | rx \
291
307
  | score \
292
308
  | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293
309
  | sh64 | sh64le \
294
310
  | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295
311
  | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296
- | spu | strongarm \
297
- | tahoe | thumb | tic4x | tic80 | tron \
312
+ | spu \
313
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298
314
  | ubicom32 \
299
- | v850 | v850e \
315
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
300
316
  | we32k \
301
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
317
+ | x86 | xc16x | xstormy16 | xtensa \
302
318
  | z8k | z80)
303
319
  basic_machine=$basic_machine-unknown
304
320
  ;;
305
- m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306
- # Motorola 68HC11/12.
321
+ c54x)
322
+ basic_machine=tic54x-unknown
323
+ ;;
324
+ c55x)
325
+ basic_machine=tic55x-unknown
326
+ ;;
327
+ c6x)
328
+ basic_machine=tic6x-unknown
329
+ ;;
330
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
307
331
  basic_machine=$basic_machine-unknown
308
332
  os=-none
309
333
  ;;
@@ -313,6 +337,21 @@ case $basic_machine in
313
337
  basic_machine=mt-unknown
314
338
  ;;
315
339
 
340
+ strongarm | thumb | xscale)
341
+ basic_machine=arm-unknown
342
+ ;;
343
+ xgate)
344
+ basic_machine=$basic_machine-unknown
345
+ os=-none
346
+ ;;
347
+ xscaleeb)
348
+ basic_machine=armeb-unknown
349
+ ;;
350
+
351
+ xscaleel)
352
+ basic_machine=armel-unknown
353
+ ;;
354
+
316
355
  # We use `pc' rather than `unknown'
317
356
  # because (1) that's what they normally are, and
318
357
  # (2) the word "unknown" tends to confuse beginning users.
@@ -327,25 +366,30 @@ case $basic_machine in
327
366
  # Recognize the basic CPU types with company name.
328
367
  580-* \
329
368
  | a29k-* \
369
+ | aarch64-* | aarch64_be-* \
330
370
  | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
331
371
  | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
332
372
  | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
333
373
  | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
334
374
  | avr-* | avr32-* \
375
+ | be32-* | be64-* \
335
376
  | bfin-* | bs2000-* \
336
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
377
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
337
378
  | clipper-* | craynv-* | cydra-* \
338
379
  | d10v-* | d30v-* | dlx-* \
339
380
  | elxsi-* \
340
381
  | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
341
382
  | h8300-* | h8500-* \
342
383
  | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
384
+ | hexagon-* \
343
385
  | i*86-* | i860-* | i960-* | ia64-* \
344
386
  | ip2k-* | iq2000-* \
387
+ | le32-* | le64-* \
345
388
  | lm32-* \
346
389
  | m32c-* | m32r-* | m32rle-* \
347
390
  | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
348
- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
391
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
392
+ | microblaze-* | microblazeel-* \
349
393
  | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
350
394
  | mips16-* \
351
395
  | mips64-* | mips64el-* \
@@ -367,25 +411,29 @@ case $basic_machine in
367
411
  | mmix-* \
368
412
  | mt-* \
369
413
  | msp430-* \
414
+ | nds32-* | nds32le-* | nds32be-* \
370
415
  | nios-* | nios2-* \
371
416
  | none-* | np1-* | ns16k-* | ns32k-* \
417
+ | open8-* \
372
418
  | orion-* \
373
419
  | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
420
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375
421
  | pyramid-* \
376
- | romp-* | rs6000-* | rx-* \
422
+ | rl78-* | romp-* | rs6000-* | rx-* \
377
423
  | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378
424
  | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379
425
  | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380
426
  | sparclite-* \
381
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382
- | tahoe-* | thumb-* \
383
- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
427
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
428
+ | tahoe-* \
429
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
430
+ | tile*-* \
384
431
  | tron-* \
385
432
  | ubicom32-* \
386
- | v850-* | v850e-* | vax-* \
433
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
434
+ | vax-* \
387
435
  | we32k-* \
388
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
436
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
389
437
  | xstormy16-* | xtensa*-* \
390
438
  | ymp-* \
391
439
  | z8k-* | z80-*)
@@ -410,7 +458,7 @@ case $basic_machine in
410
458
  basic_machine=a29k-amd
411
459
  os=-udi
412
460
  ;;
413
- abacus)
461
+ abacus)
414
462
  basic_machine=abacus-unknown
415
463
  ;;
416
464
  adobe68k)
@@ -480,11 +528,20 @@ case $basic_machine in
480
528
  basic_machine=powerpc-ibm
481
529
  os=-cnk
482
530
  ;;
531
+ c54x-*)
532
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
533
+ ;;
534
+ c55x-*)
535
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
536
+ ;;
537
+ c6x-*)
538
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
539
+ ;;
483
540
  c90)
484
541
  basic_machine=c90-cray
485
542
  os=-unicos
486
543
  ;;
487
- cegcc)
544
+ cegcc)
488
545
  basic_machine=arm-unknown
489
546
  os=-cegcc
490
547
  ;;
@@ -516,7 +573,7 @@ case $basic_machine in
516
573
  basic_machine=craynv-cray
517
574
  os=-unicosmp
518
575
  ;;
519
- cr16)
576
+ cr16 | cr16-*)
520
577
  basic_machine=cr16-unknown
521
578
  os=-elf
522
579
  ;;
@@ -674,7 +731,6 @@ case $basic_machine in
674
731
  i370-ibm* | ibm*)
675
732
  basic_machine=i370-ibm
676
733
  ;;
677
- # I'm not sure what "Sysv32" means. Should this be sysv3.2?
678
734
  i*86v32)
679
735
  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
680
736
  os=-sysv32
@@ -732,9 +788,13 @@ case $basic_machine in
732
788
  basic_machine=ns32k-utek
733
789
  os=-sysv
734
790
  ;;
735
- microblaze)
791
+ microblaze*)
736
792
  basic_machine=microblaze-xilinx
737
793
  ;;
794
+ mingw64)
795
+ basic_machine=x86_64-pc
796
+ os=-mingw64
797
+ ;;
738
798
  mingw32)
739
799
  basic_machine=i386-pc
740
800
  os=-mingw32
@@ -771,10 +831,18 @@ case $basic_machine in
771
831
  ms1-*)
772
832
  basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
773
833
  ;;
834
+ msys)
835
+ basic_machine=i386-pc
836
+ os=-msys
837
+ ;;
774
838
  mvs)
775
839
  basic_machine=i370-ibm
776
840
  os=-mvs
777
841
  ;;
842
+ nacl)
843
+ basic_machine=le32-unknown
844
+ os=-nacl
845
+ ;;
778
846
  ncr3000)
779
847
  basic_machine=i486-ncr
780
848
  os=-sysv4
@@ -839,6 +907,12 @@ case $basic_machine in
839
907
  np1)
840
908
  basic_machine=np1-gould
841
909
  ;;
910
+ neo-tandem)
911
+ basic_machine=neo-tandem
912
+ ;;
913
+ nse-tandem)
914
+ basic_machine=nse-tandem
915
+ ;;
842
916
  nsr-tandem)
843
917
  basic_machine=nsr-tandem
844
918
  ;;
@@ -921,9 +995,10 @@ case $basic_machine in
921
995
  ;;
922
996
  power) basic_machine=power-ibm
923
997
  ;;
924
- ppc) basic_machine=powerpc-unknown
998
+ ppc | ppcbe) basic_machine=powerpc-unknown
925
999
  ;;
926
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1000
+ ppc-* | ppcbe-*)
1001
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
927
1002
  ;;
928
1003
  ppcle | powerpclittle | ppc-le | powerpc-little)
929
1004
  basic_machine=powerpcle-unknown
@@ -933,7 +1008,7 @@ case $basic_machine in
933
1008
  ;;
934
1009
  ppc64) basic_machine=powerpc64-unknown
935
1010
  ;;
936
- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1011
+ ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
937
1012
  ;;
938
1013
  ppc64le | powerpc64little | ppc64-le | powerpc64-little)
939
1014
  basic_machine=powerpc64le-unknown
@@ -948,7 +1023,11 @@ case $basic_machine in
948
1023
  basic_machine=i586-unknown
949
1024
  os=-pw32
950
1025
  ;;
951
- rdos)
1026
+ rdos | rdos64)
1027
+ basic_machine=x86_64-pc
1028
+ os=-rdos
1029
+ ;;
1030
+ rdos32)
952
1031
  basic_machine=i386-pc
953
1032
  os=-rdos
954
1033
  ;;
@@ -1017,6 +1096,9 @@ case $basic_machine in
1017
1096
  basic_machine=i860-stratus
1018
1097
  os=-sysv4
1019
1098
  ;;
1099
+ strongarm-* | thumb-*)
1100
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1101
+ ;;
1020
1102
  sun2)
1021
1103
  basic_machine=m68000-sun
1022
1104
  ;;
@@ -1073,20 +1155,8 @@ case $basic_machine in
1073
1155
  basic_machine=t90-cray
1074
1156
  os=-unicos
1075
1157
  ;;
1076
- tic54x | c54x*)
1077
- basic_machine=tic54x-unknown
1078
- os=-coff
1079
- ;;
1080
- tic55x | c55x*)
1081
- basic_machine=tic55x-unknown
1082
- os=-coff
1083
- ;;
1084
- tic6x | c6x*)
1085
- basic_machine=tic6x-unknown
1086
- os=-coff
1087
- ;;
1088
1158
  tile*)
1089
- basic_machine=tile-unknown
1159
+ basic_machine=$basic_machine-unknown
1090
1160
  os=-linux-gnu
1091
1161
  ;;
1092
1162
  tx39)
@@ -1156,6 +1226,9 @@ case $basic_machine in
1156
1226
  xps | xps100)
1157
1227
  basic_machine=xps100-honeywell
1158
1228
  ;;
1229
+ xscale-* | xscalee[bl]-*)
1230
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1231
+ ;;
1159
1232
  ymp)
1160
1233
  basic_machine=ymp-cray
1161
1234
  os=-unicos
@@ -1253,11 +1326,11 @@ esac
1253
1326
  if [ x"$os" != x"" ]
1254
1327
  then
1255
1328
  case $os in
1256
- # First match some system type aliases
1257
- # that might get confused with valid system types.
1329
+ # First match some system type aliases
1330
+ # that might get confused with valid system types.
1258
1331
  # -solaris* is a basic system type, with this one exception.
1259
- -auroraux)
1260
- os=-auroraux
1332
+ -auroraux)
1333
+ os=-auroraux
1261
1334
  ;;
1262
1335
  -solaris1 | -solaris1.*)
1263
1336
  os=`echo $os | sed -e 's|solaris1|sunos4|'`
@@ -1287,14 +1360,15 @@ case $os in
1287
1360
  | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1288
1361
  | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1289
1362
  | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1290
- | -openbsd* | -solidbsd* \
1363
+ | -bitrig* | -openbsd* | -solidbsd* \
1291
1364
  | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1292
1365
  | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1293
1366
  | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1294
1367
  | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1295
1368
  | -chorusos* | -chorusrdb* | -cegcc* \
1296
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1297
- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1369
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1370
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1371
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1298
1372
  | -uxpv* | -beos* | -mpeix* | -udk* \
1299
1373
  | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1300
1374
  | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1341,7 +1415,7 @@ case $os in
1341
1415
  -opened*)
1342
1416
  os=-openedition
1343
1417
  ;;
1344
- -os400*)
1418
+ -os400*)
1345
1419
  os=-os400
1346
1420
  ;;
1347
1421
  -wince*)
@@ -1390,7 +1464,7 @@ case $os in
1390
1464
  -sinix*)
1391
1465
  os=-sysv4
1392
1466
  ;;
1393
- -tpf*)
1467
+ -tpf*)
1394
1468
  os=-tpf
1395
1469
  ;;
1396
1470
  -triton*)
@@ -1435,6 +1509,8 @@ case $os in
1435
1509
  -dicos*)
1436
1510
  os=-dicos
1437
1511
  ;;
1512
+ -nacl*)
1513
+ ;;
1438
1514
  -none)
1439
1515
  ;;
1440
1516
  *)
@@ -1457,10 +1533,10 @@ else
1457
1533
  # system, and we'll never get to this point.
1458
1534
 
1459
1535
  case $basic_machine in
1460
- score-*)
1536
+ score-*)
1461
1537
  os=-elf
1462
1538
  ;;
1463
- spu-*)
1539
+ spu-*)
1464
1540
  os=-elf
1465
1541
  ;;
1466
1542
  *-acorn)
@@ -1472,8 +1548,20 @@ case $basic_machine in
1472
1548
  arm*-semi)
1473
1549
  os=-aout
1474
1550
  ;;
1475
- c4x-* | tic4x-*)
1476
- os=-coff
1551
+ c4x-* | tic4x-*)
1552
+ os=-coff
1553
+ ;;
1554
+ hexagon-*)
1555
+ os=-elf
1556
+ ;;
1557
+ tic54x-*)
1558
+ os=-coff
1559
+ ;;
1560
+ tic55x-*)
1561
+ os=-coff
1562
+ ;;
1563
+ tic6x-*)
1564
+ os=-coff
1477
1565
  ;;
1478
1566
  # This must come before the *-dec entry.
1479
1567
  pdp10-*)
@@ -1493,14 +1581,11 @@ case $basic_machine in
1493
1581
  ;;
1494
1582
  m68000-sun)
1495
1583
  os=-sunos3
1496
- # This also exists in the configure program, but was not the
1497
- # default.
1498
- # os=-sunos4
1499
1584
  ;;
1500
1585
  m68*-cisco)
1501
1586
  os=-aout
1502
1587
  ;;
1503
- mep-*)
1588
+ mep-*)
1504
1589
  os=-elf
1505
1590
  ;;
1506
1591
  mips*-cisco)
@@ -1527,7 +1612,7 @@ case $basic_machine in
1527
1612
  *-ibm)
1528
1613
  os=-aix
1529
1614
  ;;
1530
- *-knuth)
1615
+ *-knuth)
1531
1616
  os=-mmixware
1532
1617
  ;;
1533
1618
  *-wec)