ffi 1.9.21-x86-mingw32 → 1.9.22-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ffi might be problematic. Click here for more details.

Files changed (551) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +22 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +52 -0
  5. data/.yardopts +5 -0
  6. data/Gemfile +15 -0
  7. data/{spec/ffi/LICENSE.SPECS → LICENSE.SPECS} +1 -1
  8. data/README.md +1 -1
  9. data/Rakefile +28 -3
  10. data/appveyor.yml +22 -0
  11. data/ffi.gemspec +14 -1
  12. data/lib/2.0/ffi_c.so +0 -0
  13. data/lib/2.1/ffi_c.so +0 -0
  14. data/lib/2.2/ffi_c.so +0 -0
  15. data/lib/2.3/ffi_c.so +0 -0
  16. data/lib/2.4/ffi_c.so +0 -0
  17. data/lib/2.5/ffi_c.so +0 -0
  18. data/lib/ffi/library.rb +1 -1
  19. data/lib/ffi/version.rb +1 -1
  20. data/samples/getlogin.rb +8 -0
  21. data/samples/getpid.rb +8 -0
  22. data/samples/gettimeofday.rb +18 -0
  23. data/samples/hello.rb +7 -0
  24. data/samples/inotify.rb +60 -0
  25. data/samples/pty.rb +76 -0
  26. data/samples/qsort.rb +21 -0
  27. data/samples/sample_helper.rb +6 -0
  28. metadata +17 -526
  29. data/ext/ffi_c/AbstractMemory.c +0 -1109
  30. data/ext/ffi_c/AbstractMemory.h +0 -175
  31. data/ext/ffi_c/ArrayType.c +0 -162
  32. data/ext/ffi_c/ArrayType.h +0 -59
  33. data/ext/ffi_c/Buffer.c +0 -365
  34. data/ext/ffi_c/Call.c +0 -517
  35. data/ext/ffi_c/Call.h +0 -110
  36. data/ext/ffi_c/ClosurePool.c +0 -283
  37. data/ext/ffi_c/ClosurePool.h +0 -57
  38. data/ext/ffi_c/DataConverter.c +0 -91
  39. data/ext/ffi_c/DynamicLibrary.c +0 -339
  40. data/ext/ffi_c/DynamicLibrary.h +0 -98
  41. data/ext/ffi_c/Function.c +0 -998
  42. data/ext/ffi_c/Function.h +0 -87
  43. data/ext/ffi_c/FunctionInfo.c +0 -271
  44. data/ext/ffi_c/LastError.c +0 -184
  45. data/ext/ffi_c/LastError.h +0 -47
  46. data/ext/ffi_c/LongDouble.c +0 -63
  47. data/ext/ffi_c/LongDouble.h +0 -51
  48. data/ext/ffi_c/MappedType.c +0 -168
  49. data/ext/ffi_c/MappedType.h +0 -59
  50. data/ext/ffi_c/MemoryPointer.c +0 -197
  51. data/ext/ffi_c/MemoryPointer.h +0 -53
  52. data/ext/ffi_c/MethodHandle.c +0 -358
  53. data/ext/ffi_c/MethodHandle.h +0 -55
  54. data/ext/ffi_c/Platform.c +0 -129
  55. data/ext/ffi_c/Platform.h +0 -45
  56. data/ext/ffi_c/Pointer.c +0 -508
  57. data/ext/ffi_c/Pointer.h +0 -63
  58. data/ext/ffi_c/Struct.c +0 -829
  59. data/ext/ffi_c/Struct.h +0 -106
  60. data/ext/ffi_c/StructByReference.c +0 -190
  61. data/ext/ffi_c/StructByReference.h +0 -50
  62. data/ext/ffi_c/StructByValue.c +0 -150
  63. data/ext/ffi_c/StructByValue.h +0 -55
  64. data/ext/ffi_c/StructLayout.c +0 -698
  65. data/ext/ffi_c/Thread.c +0 -352
  66. data/ext/ffi_c/Thread.h +0 -95
  67. data/ext/ffi_c/Type.c +0 -397
  68. data/ext/ffi_c/Type.h +0 -62
  69. data/ext/ffi_c/Types.c +0 -139
  70. data/ext/ffi_c/Types.h +0 -89
  71. data/ext/ffi_c/Variadic.c +0 -304
  72. data/ext/ffi_c/compat.h +0 -78
  73. data/ext/ffi_c/extconf.rb +0 -71
  74. data/ext/ffi_c/ffi.c +0 -98
  75. data/ext/ffi_c/libffi.bsd.mk +0 -40
  76. data/ext/ffi_c/libffi.darwin.mk +0 -105
  77. data/ext/ffi_c/libffi.gnu.mk +0 -32
  78. data/ext/ffi_c/libffi.mk +0 -18
  79. data/ext/ffi_c/libffi.vc.mk +0 -26
  80. data/ext/ffi_c/libffi.vc64.mk +0 -26
  81. data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
  82. data/ext/ffi_c/libffi/ChangeLog.libffi-3.1 +0 -6000
  83. data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
  84. data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
  85. data/ext/ffi_c/libffi/LICENSE +0 -21
  86. data/ext/ffi_c/libffi/Makefile.am +0 -205
  87. data/ext/ffi_c/libffi/Makefile.in +0 -1805
  88. data/ext/ffi_c/libffi/README +0 -454
  89. data/ext/ffi_c/libffi/acinclude.m4 +0 -473
  90. data/ext/ffi_c/libffi/aclocal.m4 +0 -2134
  91. data/ext/ffi_c/libffi/autogen.sh +0 -2
  92. data/ext/ffi_c/libffi/autom4te.cache/output.0 +0 -21972
  93. data/ext/ffi_c/libffi/autom4te.cache/output.1 +0 -21972
  94. data/ext/ffi_c/libffi/autom4te.cache/output.2 +0 -21972
  95. data/ext/ffi_c/libffi/autom4te.cache/output.3 +0 -21972
  96. data/ext/ffi_c/libffi/autom4te.cache/requests +0 -331
  97. data/ext/ffi_c/libffi/autom4te.cache/traces.0 +0 -4010
  98. data/ext/ffi_c/libffi/autom4te.cache/traces.1 +0 -1005
  99. data/ext/ffi_c/libffi/autom4te.cache/traces.2 +0 -4010
  100. data/ext/ffi_c/libffi/autom4te.cache/traces.3 +0 -4010
  101. data/ext/ffi_c/libffi/compile +0 -347
  102. data/ext/ffi_c/libffi/config.guess +0 -1462
  103. data/ext/ffi_c/libffi/config.sub +0 -1825
  104. data/ext/ffi_c/libffi/configure +0 -21972
  105. data/ext/ffi_c/libffi/configure.ac +0 -388
  106. data/ext/ffi_c/libffi/configure.host +0 -272
  107. data/ext/ffi_c/libffi/depcomp +0 -791
  108. data/ext/ffi_c/libffi/doc/Makefile.am +0 -3
  109. data/ext/ffi_c/libffi/doc/Makefile.in +0 -811
  110. data/ext/ffi_c/libffi/doc/libffi.texi +0 -985
  111. data/ext/ffi_c/libffi/doc/mdate-sh +0 -228
  112. data/ext/ffi_c/libffi/doc/texinfo.tex +0 -10079
  113. data/ext/ffi_c/libffi/doc/version.texi +0 -4
  114. data/ext/ffi_c/libffi/fficonfig.h.in +0 -210
  115. data/ext/ffi_c/libffi/fficonfig.h.in~ +0 -210
  116. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +0 -207
  117. data/ext/ffi_c/libffi/include/Makefile.am +0 -9
  118. data/ext/ffi_c/libffi/include/Makefile.in +0 -604
  119. data/ext/ffi_c/libffi/include/ffi.h.in +0 -484
  120. data/ext/ffi_c/libffi/include/ffi_cfi.h +0 -55
  121. data/ext/ffi_c/libffi/include/ffi_common.h +0 -147
  122. data/ext/ffi_c/libffi/install-sh +0 -508
  123. data/ext/ffi_c/libffi/libffi.map.in +0 -80
  124. data/ext/ffi_c/libffi/libffi.pc.in +0 -11
  125. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +0 -637
  126. data/ext/ffi_c/libffi/libtool-ldflags +0 -106
  127. data/ext/ffi_c/libffi/libtool-version +0 -29
  128. data/ext/ffi_c/libffi/ltmain.sh +0 -11156
  129. data/ext/ffi_c/libffi/m4/asmcfi.m4 +0 -13
  130. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +0 -69
  131. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +0 -181
  132. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +0 -122
  133. data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +0 -72
  134. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +0 -84
  135. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +0 -70
  136. data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +0 -301
  137. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +0 -225
  138. data/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +0 -79
  139. data/ext/ffi_c/libffi/m4/libtool.m4 +0 -8387
  140. data/ext/ffi_c/libffi/m4/ltoptions.m4 +0 -437
  141. data/ext/ffi_c/libffi/m4/ltsugar.m4 +0 -124
  142. data/ext/ffi_c/libffi/m4/ltversion.m4 +0 -23
  143. data/ext/ffi_c/libffi/m4/lt~obsolete.m4 +0 -99
  144. data/ext/ffi_c/libffi/man/Makefile.am +0 -8
  145. data/ext/ffi_c/libffi/man/Makefile.in +0 -558
  146. data/ext/ffi_c/libffi/man/ffi.3 +0 -41
  147. data/ext/ffi_c/libffi/man/ffi_call.3 +0 -103
  148. data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +0 -68
  149. data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +0 -73
  150. data/ext/ffi_c/libffi/missing +0 -215
  151. data/ext/ffi_c/libffi/msvcc.sh +0 -260
  152. data/ext/ffi_c/libffi/src/aarch64/ffi.c +0 -941
  153. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +0 -81
  154. data/ext/ffi_c/libffi/src/aarch64/internal.h +0 -67
  155. data/ext/ffi_c/libffi/src/aarch64/sysv.S +0 -438
  156. data/ext/ffi_c/libffi/src/alpha/ffi.c +0 -521
  157. data/ext/ffi_c/libffi/src/alpha/ffitarget.h +0 -57
  158. data/ext/ffi_c/libffi/src/alpha/internal.h +0 -23
  159. data/ext/ffi_c/libffi/src/alpha/osf.S +0 -282
  160. data/ext/ffi_c/libffi/src/arc/arcompact.S +0 -135
  161. data/ext/ffi_c/libffi/src/arc/ffi.c +0 -266
  162. data/ext/ffi_c/libffi/src/arc/ffitarget.h +0 -53
  163. data/ext/ffi_c/libffi/src/arm/ffi.c +0 -808
  164. data/ext/ffi_c/libffi/src/arm/ffitarget.h +0 -82
  165. data/ext/ffi_c/libffi/src/arm/internal.h +0 -7
  166. data/ext/ffi_c/libffi/src/arm/sysv.S +0 -383
  167. data/ext/ffi_c/libffi/src/avr32/ffi.c +0 -423
  168. data/ext/ffi_c/libffi/src/avr32/ffitarget.h +0 -55
  169. data/ext/ffi_c/libffi/src/avr32/sysv.S +0 -208
  170. data/ext/ffi_c/libffi/src/bfin/ffi.c +0 -196
  171. data/ext/ffi_c/libffi/src/bfin/ffitarget.h +0 -43
  172. data/ext/ffi_c/libffi/src/bfin/sysv.S +0 -179
  173. data/ext/ffi_c/libffi/src/closures.c +0 -890
  174. data/ext/ffi_c/libffi/src/cris/ffi.c +0 -386
  175. data/ext/ffi_c/libffi/src/cris/ffitarget.h +0 -56
  176. data/ext/ffi_c/libffi/src/cris/sysv.S +0 -215
  177. data/ext/ffi_c/libffi/src/debug.c +0 -64
  178. data/ext/ffi_c/libffi/src/dlmalloc.c +0 -5166
  179. data/ext/ffi_c/libffi/src/frv/eabi.S +0 -128
  180. data/ext/ffi_c/libffi/src/frv/ffi.c +0 -292
  181. data/ext/ffi_c/libffi/src/frv/ffitarget.h +0 -62
  182. data/ext/ffi_c/libffi/src/ia64/ffi.c +0 -586
  183. data/ext/ffi_c/libffi/src/ia64/ffitarget.h +0 -55
  184. data/ext/ffi_c/libffi/src/ia64/ia64_flags.h +0 -40
  185. data/ext/ffi_c/libffi/src/ia64/unix.S +0 -560
  186. data/ext/ffi_c/libffi/src/java_raw_api.c +0 -374
  187. data/ext/ffi_c/libffi/src/m32r/ffi.c +0 -232
  188. data/ext/ffi_c/libffi/src/m32r/ffitarget.h +0 -53
  189. data/ext/ffi_c/libffi/src/m32r/sysv.S +0 -121
  190. data/ext/ffi_c/libffi/src/m68k/ffi.c +0 -362
  191. data/ext/ffi_c/libffi/src/m68k/ffitarget.h +0 -54
  192. data/ext/ffi_c/libffi/src/m68k/sysv.S +0 -357
  193. data/ext/ffi_c/libffi/src/m88k/ffi.c +0 -400
  194. data/ext/ffi_c/libffi/src/m88k/ffitarget.h +0 -49
  195. data/ext/ffi_c/libffi/src/m88k/obsd.S +0 -209
  196. data/ext/ffi_c/libffi/src/metag/ffi.c +0 -330
  197. data/ext/ffi_c/libffi/src/metag/ffitarget.h +0 -53
  198. data/ext/ffi_c/libffi/src/metag/sysv.S +0 -311
  199. data/ext/ffi_c/libffi/src/microblaze/ffi.c +0 -321
  200. data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +0 -53
  201. data/ext/ffi_c/libffi/src/microblaze/sysv.S +0 -302
  202. data/ext/ffi_c/libffi/src/mips/ffi.c +0 -1105
  203. data/ext/ffi_c/libffi/src/mips/ffitarget.h +0 -249
  204. data/ext/ffi_c/libffi/src/mips/n32.S +0 -661
  205. data/ext/ffi_c/libffi/src/mips/o32.S +0 -502
  206. data/ext/ffi_c/libffi/src/moxie/eabi.S +0 -101
  207. data/ext/ffi_c/libffi/src/moxie/ffi.c +0 -272
  208. data/ext/ffi_c/libffi/src/moxie/ffitarget.h +0 -52
  209. data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
  210. data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
  211. data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
  212. data/ext/ffi_c/libffi/src/or1k/ffi.c +0 -328
  213. data/ext/ffi_c/libffi/src/or1k/ffitarget.h +0 -58
  214. data/ext/ffi_c/libffi/src/or1k/sysv.S +0 -107
  215. data/ext/ffi_c/libffi/src/pa/ffi.c +0 -719
  216. data/ext/ffi_c/libffi/src/pa/ffitarget.h +0 -85
  217. data/ext/ffi_c/libffi/src/pa/hpux32.S +0 -368
  218. data/ext/ffi_c/libffi/src/pa/linux.S +0 -357
  219. data/ext/ffi_c/libffi/src/powerpc/aix.S +0 -328
  220. data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +0 -447
  221. data/ext/ffi_c/libffi/src/powerpc/asm.h +0 -125
  222. data/ext/ffi_c/libffi/src/powerpc/darwin.S +0 -378
  223. data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +0 -571
  224. data/ext/ffi_c/libffi/src/powerpc/ffi.c +0 -173
  225. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +0 -1359
  226. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +0 -945
  227. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +0 -94
  228. data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +0 -923
  229. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +0 -195
  230. data/ext/ffi_c/libffi/src/powerpc/linux64.S +0 -228
  231. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +0 -488
  232. data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +0 -397
  233. data/ext/ffi_c/libffi/src/powerpc/sysv.S +0 -175
  234. data/ext/ffi_c/libffi/src/prep_cif.c +0 -261
  235. data/ext/ffi_c/libffi/src/raw_api.c +0 -267
  236. data/ext/ffi_c/libffi/src/s390/ffi.c +0 -756
  237. data/ext/ffi_c/libffi/src/s390/ffitarget.h +0 -70
  238. data/ext/ffi_c/libffi/src/s390/internal.h +0 -11
  239. data/ext/ffi_c/libffi/src/s390/sysv.S +0 -325
  240. data/ext/ffi_c/libffi/src/sh/ffi.c +0 -717
  241. data/ext/ffi_c/libffi/src/sh/ffitarget.h +0 -54
  242. data/ext/ffi_c/libffi/src/sh/sysv.S +0 -850
  243. data/ext/ffi_c/libffi/src/sh64/ffi.c +0 -469
  244. data/ext/ffi_c/libffi/src/sh64/ffitarget.h +0 -58
  245. data/ext/ffi_c/libffi/src/sh64/sysv.S +0 -539
  246. data/ext/ffi_c/libffi/src/sparc/ffi.c +0 -468
  247. data/ext/ffi_c/libffi/src/sparc/ffi64.c +0 -608
  248. data/ext/ffi_c/libffi/src/sparc/ffitarget.h +0 -81
  249. data/ext/ffi_c/libffi/src/sparc/internal.h +0 -26
  250. data/ext/ffi_c/libffi/src/sparc/v8.S +0 -443
  251. data/ext/ffi_c/libffi/src/sparc/v9.S +0 -440
  252. data/ext/ffi_c/libffi/src/tile/ffi.c +0 -355
  253. data/ext/ffi_c/libffi/src/tile/ffitarget.h +0 -65
  254. data/ext/ffi_c/libffi/src/tile/tile.S +0 -360
  255. data/ext/ffi_c/libffi/src/types.c +0 -106
  256. data/ext/ffi_c/libffi/src/vax/elfbsd.S +0 -195
  257. data/ext/ffi_c/libffi/src/vax/ffi.c +0 -276
  258. data/ext/ffi_c/libffi/src/vax/ffitarget.h +0 -49
  259. data/ext/ffi_c/libffi/src/x86/asmnames.h +0 -30
  260. data/ext/ffi_c/libffi/src/x86/ffi.c +0 -733
  261. data/ext/ffi_c/libffi/src/x86/ffi64.c +0 -857
  262. data/ext/ffi_c/libffi/src/x86/ffitarget.h +0 -141
  263. data/ext/ffi_c/libffi/src/x86/ffiw64.c +0 -287
  264. data/ext/ffi_c/libffi/src/x86/internal.h +0 -29
  265. data/ext/ffi_c/libffi/src/x86/internal64.h +0 -22
  266. data/ext/ffi_c/libffi/src/x86/sysv.S +0 -1043
  267. data/ext/ffi_c/libffi/src/x86/unix64.S +0 -525
  268. data/ext/ffi_c/libffi/src/x86/win64.S +0 -232
  269. data/ext/ffi_c/libffi/src/x86/win64_intel.S +0 -237
  270. data/ext/ffi_c/libffi/src/xtensa/ffi.c +0 -298
  271. data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +0 -53
  272. data/ext/ffi_c/libffi/src/xtensa/sysv.S +0 -253
  273. data/ext/ffi_c/libffi/stamp-h.in +0 -1
  274. data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -85
  275. data/ext/ffi_c/libffi/testsuite/Makefile.in +0 -607
  276. data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
  277. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -445
  278. data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
  279. data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
  280. data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
  281. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -30
  282. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn0.c +0 -89
  283. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn1.c +0 -81
  284. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn2.c +0 -81
  285. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn3.c +0 -82
  286. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn4.c +0 -89
  287. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn5.c +0 -92
  288. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn6.c +0 -90
  289. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_loc_fn0.c +0 -95
  290. data/ext/ffi_c/libffi/testsuite/libffi.call/closure_simple.c +0 -55
  291. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c +0 -94
  292. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c +0 -95
  293. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c +0 -96
  294. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c +0 -102
  295. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c +0 -89
  296. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c +0 -91
  297. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c +0 -93
  298. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c +0 -113
  299. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c +0 -90
  300. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c +0 -95
  301. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c +0 -90
  302. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c +0 -90
  303. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c +0 -98
  304. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c +0 -90
  305. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c +0 -109
  306. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c +0 -98
  307. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c +0 -124
  308. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c +0 -113
  309. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c +0 -99
  310. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c +0 -117
  311. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c +0 -97
  312. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c +0 -88
  313. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c +0 -90
  314. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c +0 -91
  315. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c +0 -93
  316. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c +0 -91
  317. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c +0 -92
  318. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +0 -132
  319. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +0 -115
  320. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c +0 -95
  321. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c +0 -91
  322. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c +0 -91
  323. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +0 -92
  324. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c +0 -91
  325. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c +0 -91
  326. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +0 -93
  327. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c +0 -66
  328. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double.c +0 -43
  329. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +0 -61
  330. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_float.c +0 -42
  331. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +0 -105
  332. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +0 -61
  333. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_args.c +0 -70
  334. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_float_double.c +0 -55
  335. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_schar.c +0 -74
  336. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshort.c +0 -74
  337. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshortchar.c +0 -86
  338. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_uchar.c +0 -91
  339. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushort.c +0 -74
  340. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushortchar.c +0 -86
  341. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +0 -74
  342. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +0 -142
  343. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_schar.c +0 -44
  344. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_sint.c +0 -42
  345. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_sshort.c +0 -42
  346. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_struct_va1.c +0 -114
  347. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar.c +0 -42
  348. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c +0 -44
  349. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint.c +0 -43
  350. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint_va.c +0 -45
  351. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulong_va.c +0 -45
  352. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +0 -47
  353. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort.c +0 -43
  354. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c +0 -44
  355. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_abi.c +0 -36
  356. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
  357. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -136
  358. data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
  359. data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
  360. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -60
  361. data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
  362. data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
  363. data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -107
  364. data/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +0 -341
  365. data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
  366. data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
  367. data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
  368. data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
  369. data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
  370. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c +0 -152
  371. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c +0 -161
  372. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c +0 -133
  373. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct11.c +0 -121
  374. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c +0 -110
  375. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c +0 -111
  376. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c +0 -111
  377. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c +0 -112
  378. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c +0 -131
  379. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c +0 -111
  380. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c +0 -131
  381. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c +0 -131
  382. data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
  383. data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
  384. data/ext/ffi_c/libffi/testsuite/libffi.call/problem1.c +0 -90
  385. data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
  386. data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +0 -114
  387. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
  388. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
  389. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
  390. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
  391. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
  392. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
  393. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
  394. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
  395. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
  396. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -43
  397. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
  398. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -38
  399. data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
  400. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -38
  401. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c +0 -145
  402. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c +0 -148
  403. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c +0 -124
  404. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +0 -125
  405. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -44
  406. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
  407. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
  408. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
  409. data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
  410. data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
  411. data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
  412. data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
  413. data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
  414. data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
  415. data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
  416. data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
  417. data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
  418. data/ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c +0 -70
  419. data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
  420. data/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest.cc +0 -117
  421. data/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest_ffi_call.cc +0 -54
  422. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -196
  423. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -121
  424. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -123
  425. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -125
  426. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
  427. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
  428. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
  429. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
  430. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
  431. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
  432. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
  433. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
  434. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
  435. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
  436. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
  437. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
  438. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
  439. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
  440. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
  441. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
  442. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
  443. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
  444. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
  445. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
  446. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
  447. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
  448. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
  449. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
  450. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
  451. data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
  452. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
  453. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
  454. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
  455. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
  456. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
  457. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
  458. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
  459. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
  460. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
  461. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
  462. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
  463. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
  464. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
  465. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
  466. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
  467. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
  468. data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
  469. data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
  470. data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
  471. data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
  472. data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
  473. data/ext/ffi_c/rbffi.h +0 -57
  474. data/ext/ffi_c/rbffi_endian.h +0 -59
  475. data/ext/ffi_c/win32/stdbool.h +0 -8
  476. data/ext/ffi_c/win32/stdint.h +0 -201
  477. data/gen/Rakefile +0 -30
  478. data/libtest/Benchmark.c +0 -52
  479. data/libtest/BoolTest.c +0 -34
  480. data/libtest/BufferTest.c +0 -31
  481. data/libtest/ClosureTest.c +0 -205
  482. data/libtest/EnumTest.c +0 -51
  483. data/libtest/FunctionTest.c +0 -70
  484. data/libtest/GNUmakefile +0 -149
  485. data/libtest/GlobalVariable.c +0 -62
  486. data/libtest/LastErrorTest.c +0 -21
  487. data/libtest/NumberTest.c +0 -132
  488. data/libtest/PointerTest.c +0 -63
  489. data/libtest/ReferenceTest.c +0 -23
  490. data/libtest/StringTest.c +0 -34
  491. data/libtest/StructTest.c +0 -243
  492. data/libtest/UnionTest.c +0 -43
  493. data/libtest/VariadicTest.c +0 -99
  494. data/spec/ffi/async_callback_spec.rb +0 -35
  495. data/spec/ffi/bitmask_spec.rb +0 -575
  496. data/spec/ffi/bool_spec.rb +0 -32
  497. data/spec/ffi/buffer_spec.rb +0 -279
  498. data/spec/ffi/callback_spec.rb +0 -773
  499. data/spec/ffi/custom_param_type.rb +0 -37
  500. data/spec/ffi/custom_type_spec.rb +0 -74
  501. data/spec/ffi/dup_spec.rb +0 -52
  502. data/spec/ffi/embed-test/ext/Makefile +0 -242
  503. data/spec/ffi/enum_spec.rb +0 -423
  504. data/spec/ffi/errno_spec.rb +0 -20
  505. data/spec/ffi/ffi_spec.rb +0 -28
  506. data/spec/ffi/fixtures/Benchmark.c +0 -52
  507. data/spec/ffi/fixtures/BitmaskTest.c +0 -51
  508. data/spec/ffi/fixtures/BoolTest.c +0 -34
  509. data/spec/ffi/fixtures/BufferTest.c +0 -31
  510. data/spec/ffi/fixtures/ClosureTest.c +0 -205
  511. data/spec/ffi/fixtures/EnumTest.c +0 -51
  512. data/spec/ffi/fixtures/FunctionTest.c +0 -142
  513. data/spec/ffi/fixtures/GNUmakefile +0 -149
  514. data/spec/ffi/fixtures/GlobalVariable.c +0 -62
  515. data/spec/ffi/fixtures/LastErrorTest.c +0 -21
  516. data/spec/ffi/fixtures/NumberTest.c +0 -132
  517. data/spec/ffi/fixtures/PipeHelper.h +0 -21
  518. data/spec/ffi/fixtures/PipeHelperPosix.c +0 -41
  519. data/spec/ffi/fixtures/PipeHelperWindows.c +0 -72
  520. data/spec/ffi/fixtures/PointerTest.c +0 -63
  521. data/spec/ffi/fixtures/ReferenceTest.c +0 -23
  522. data/spec/ffi/fixtures/StringTest.c +0 -34
  523. data/spec/ffi/fixtures/StructTest.c +0 -243
  524. data/spec/ffi/fixtures/UnionTest.c +0 -43
  525. data/spec/ffi/fixtures/VariadicTest.c +0 -99
  526. data/spec/ffi/fixtures/classes.rb +0 -438
  527. data/spec/ffi/function_spec.rb +0 -97
  528. data/spec/ffi/io_spec.rb +0 -16
  529. data/spec/ffi/library_spec.rb +0 -286
  530. data/spec/ffi/long_double.rb +0 -30
  531. data/spec/ffi/managed_struct_spec.rb +0 -68
  532. data/spec/ffi/memorypointer_spec.rb +0 -78
  533. data/spec/ffi/number_spec.rb +0 -247
  534. data/spec/ffi/platform_spec.rb +0 -114
  535. data/spec/ffi/pointer_spec.rb +0 -285
  536. data/spec/ffi/rbx/attach_function_spec.rb +0 -34
  537. data/spec/ffi/rbx/memory_pointer_spec.rb +0 -198
  538. data/spec/ffi/rbx/spec_helper.rb +0 -6
  539. data/spec/ffi/rbx/struct_spec.rb +0 -18
  540. data/spec/ffi/spec_helper.rb +0 -93
  541. data/spec/ffi/string_spec.rb +0 -118
  542. data/spec/ffi/strptr_spec.rb +0 -50
  543. data/spec/ffi/struct_by_ref_spec.rb +0 -43
  544. data/spec/ffi/struct_callback_spec.rb +0 -69
  545. data/spec/ffi/struct_initialize_spec.rb +0 -35
  546. data/spec/ffi/struct_packed_spec.rb +0 -50
  547. data/spec/ffi/struct_spec.rb +0 -882
  548. data/spec/ffi/typedef_spec.rb +0 -91
  549. data/spec/ffi/union_spec.rb +0 -67
  550. data/spec/ffi/variadic_spec.rb +0 -132
  551. data/spec/spec.opts +0 -4
@@ -1,1825 +0,0 @@
1
- #! /bin/sh
2
- # Configuration validation subroutine script.
3
- # Copyright 1992-2016 Free Software Foundation, Inc.
4
-
5
- timestamp='2016-11-04'
6
-
7
- # This file is free software; you can redistribute it and/or modify it
8
- # under the terms of the GNU General Public License as published by
9
- # the Free Software Foundation; either version 3 of the License, or
10
- # (at your option) any later version.
11
- #
12
- # This program is distributed in the hope that it will be useful, but
13
- # WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- # General Public License for more details.
16
- #
17
- # You should have received a copy of the GNU General Public License
18
- # along with this program; if not, see <http://www.gnu.org/licenses/>.
19
- #
20
- # As a special exception to the GNU General Public License, if you
21
- # distribute this file as part of a program that contains a
22
- # configuration script generated by Autoconf, you may include it under
23
- # the same distribution terms that you use for the rest of that
24
- # program. This Exception is an additional permission under section 7
25
- # of the GNU General Public License, version 3 ("GPLv3").
26
-
27
-
28
- # Please send patches to <config-patches@gnu.org>.
29
- #
30
- # Configuration subroutine to validate and canonicalize a configuration type.
31
- # Supply the specified configuration type as an argument.
32
- # If it is invalid, we print an error message on stderr and exit with code 1.
33
- # Otherwise, we print the canonical config type on stdout and succeed.
34
-
35
- # You can get the latest version of this script from:
36
- # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37
-
38
- # This file is supposed to be the same for all GNU packages
39
- # and recognize all the CPU types, system types and aliases
40
- # that are meaningful with *any* GNU software.
41
- # Each package is responsible for reporting which valid configurations
42
- # it does not support. The user should be able to distinguish
43
- # a failure to support a valid configuration from a meaningless
44
- # configuration.
45
-
46
- # The goal of this file is to map all the various variations of a given
47
- # machine specification into a single specification in the form:
48
- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
49
- # or in some cases, the newer four-part form:
50
- # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
51
- # It is wrong to echo any other type of specification.
52
-
53
- me=`echo "$0" | sed -e 's,.*/,,'`
54
-
55
- usage="\
56
- Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
57
-
58
- Canonicalize a configuration name.
59
-
60
- Operation modes:
61
- -h, --help print this help, then exit
62
- -t, --time-stamp print date of last modification, then exit
63
- -v, --version print version number, then exit
64
-
65
- Report bugs and patches to <config-patches@gnu.org>."
66
-
67
- version="\
68
- GNU config.sub ($timestamp)
69
-
70
- Copyright 1992-2016 Free Software Foundation, Inc.
71
-
72
- This is free software; see the source for copying conditions. There is NO
73
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
74
-
75
- help="
76
- Try \`$me --help' for more information."
77
-
78
- # Parse command line
79
- while test $# -gt 0 ; do
80
- case $1 in
81
- --time-stamp | --time* | -t )
82
- echo "$timestamp" ; exit ;;
83
- --version | -v )
84
- echo "$version" ; exit ;;
85
- --help | --h* | -h )
86
- echo "$usage"; exit ;;
87
- -- ) # Stop option processing
88
- shift; break ;;
89
- - ) # Use stdin as input.
90
- break ;;
91
- -* )
92
- echo "$me: invalid option $1$help"
93
- exit 1 ;;
94
-
95
- *local*)
96
- # First pass through any local machine types.
97
- echo $1
98
- exit ;;
99
-
100
- * )
101
- break ;;
102
- esac
103
- done
104
-
105
- case $# in
106
- 0) echo "$me: missing argument$help" >&2
107
- exit 1;;
108
- 1) ;;
109
- *) echo "$me: too many arguments$help" >&2
110
- exit 1;;
111
- esac
112
-
113
- # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114
- # Here we must recognize all the valid KERNEL-OS combinations.
115
- maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116
- case $maybe_os in
117
- nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118
- linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119
- knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120
- kopensolaris*-gnu* | cloudabi*-eabi* | \
121
- storm-chaos* | os2-emx* | rtmk-nova*)
122
- os=-$maybe_os
123
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
- ;;
125
- android-linux)
126
- os=-linux-android
127
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128
- ;;
129
- *)
130
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131
- if [ $basic_machine != $1 ]
132
- then os=`echo $1 | sed 's/.*-/-/'`
133
- else os=; fi
134
- ;;
135
- esac
136
-
137
- ### Let's recognize common machines as not being operating systems so
138
- ### that things like config.sub decstation-3100 work. We also
139
- ### recognize some manufacturers as not being operating systems, so we
140
- ### can provide default operating systems below.
141
- case $os in
142
- -sun*os*)
143
- # Prevent following clause from handling this invalid input.
144
- ;;
145
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146
- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147
- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
- -apple | -axis | -knuth | -cray | -microblaze*)
152
- os=
153
- basic_machine=$1
154
- ;;
155
- -bluegene*)
156
- os=-cnk
157
- ;;
158
- -sim | -cisco | -oki | -wec | -winbond)
159
- os=
160
- basic_machine=$1
161
- ;;
162
- -scout)
163
- ;;
164
- -wrs)
165
- os=-vxworks
166
- basic_machine=$1
167
- ;;
168
- -chorusos*)
169
- os=-chorusos
170
- basic_machine=$1
171
- ;;
172
- -chorusrdb)
173
- os=-chorusrdb
174
- basic_machine=$1
175
- ;;
176
- -hiux*)
177
- os=-hiuxwe2
178
- ;;
179
- -sco6)
180
- os=-sco5v6
181
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182
- ;;
183
- -sco5)
184
- os=-sco3.2v5
185
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186
- ;;
187
- -sco4)
188
- os=-sco3.2v4
189
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190
- ;;
191
- -sco3.2.[4-9]*)
192
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194
- ;;
195
- -sco3.2v[4-9]*)
196
- # Don't forget version if it is 3.2v4 or newer.
197
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198
- ;;
199
- -sco5v6*)
200
- # Don't forget version if it is 3.2v4 or newer.
201
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202
- ;;
203
- -sco*)
204
- os=-sco3.2v2
205
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206
- ;;
207
- -udk*)
208
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209
- ;;
210
- -isc)
211
- os=-isc2.2
212
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213
- ;;
214
- -clix*)
215
- basic_machine=clipper-intergraph
216
- ;;
217
- -isc*)
218
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219
- ;;
220
- -lynx*178)
221
- os=-lynxos178
222
- ;;
223
- -lynx*5)
224
- os=-lynxos5
225
- ;;
226
- -lynx*)
227
- os=-lynxos
228
- ;;
229
- -ptx*)
230
- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231
- ;;
232
- -windowsnt*)
233
- os=`echo $os | sed -e 's/windowsnt/winnt/'`
234
- ;;
235
- -psos*)
236
- os=-psos
237
- ;;
238
- -mint | -mint[0-9]*)
239
- basic_machine=m68k-atari
240
- os=-mint
241
- ;;
242
- esac
243
-
244
- # Decode aliases for certain CPU-COMPANY combinations.
245
- case $basic_machine in
246
- # Recognize the basic CPU types without company name.
247
- # Some are omitted here because they have special meanings below.
248
- 1750a | 580 \
249
- | a29k \
250
- | aarch64 | aarch64_be \
251
- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252
- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253
- | am33_2.0 \
254
- | arc | arceb \
255
- | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256
- | avr | avr32 \
257
- | ba \
258
- | be32 | be64 \
259
- | bfin \
260
- | c4x | c8051 | clipper \
261
- | d10v | d30v | dlx | dsp16xx \
262
- | e2k | epiphany \
263
- | fido | fr30 | frv | ft32 \
264
- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265
- | hexagon \
266
- | i370 | i860 | i960 | ia64 \
267
- | ip2k | iq2000 \
268
- | k1om \
269
- | le32 | le64 \
270
- | lm32 \
271
- | m32c | m32r | m32rle | m68000 | m68k | m88k \
272
- | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
273
- | mips | mipsbe | mipseb | mipsel | mipsle \
274
- | mips16 \
275
- | mips64 | mips64el \
276
- | mips64octeon | mips64octeonel \
277
- | mips64orion | mips64orionel \
278
- | mips64r5900 | mips64r5900el \
279
- | mips64vr | mips64vrel \
280
- | mips64vr4100 | mips64vr4100el \
281
- | mips64vr4300 | mips64vr4300el \
282
- | mips64vr5000 | mips64vr5000el \
283
- | mips64vr5900 | mips64vr5900el \
284
- | mipsisa32 | mipsisa32el \
285
- | mipsisa32r2 | mipsisa32r2el \
286
- | mipsisa32r6 | mipsisa32r6el \
287
- | mipsisa64 | mipsisa64el \
288
- | mipsisa64r2 | mipsisa64r2el \
289
- | mipsisa64r6 | mipsisa64r6el \
290
- | mipsisa64sb1 | mipsisa64sb1el \
291
- | mipsisa64sr71k | mipsisa64sr71kel \
292
- | mipsr5900 | mipsr5900el \
293
- | mipstx39 | mipstx39el \
294
- | mn10200 | mn10300 \
295
- | moxie \
296
- | mt \
297
- | msp430 \
298
- | nds32 | nds32le | nds32be \
299
- | nios | nios2 | nios2eb | nios2el \
300
- | ns16k | ns32k \
301
- | open8 | or1k | or1knd | or32 \
302
- | pdp10 | pdp11 | pj | pjl \
303
- | powerpc | powerpc64 | powerpc64le | powerpcle \
304
- | pru \
305
- | pyramid \
306
- | riscv32 | riscv64 \
307
- | rl78 | rx \
308
- | score \
309
- | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
310
- | sh64 | sh64le \
311
- | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
312
- | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
313
- | spu \
314
- | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
315
- | ubicom32 \
316
- | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317
- | visium \
318
- | we32k \
319
- | x86 | xc16x | xstormy16 | xtensa \
320
- | z8k | z80)
321
- basic_machine=$basic_machine-unknown
322
- ;;
323
- c54x)
324
- basic_machine=tic54x-unknown
325
- ;;
326
- c55x)
327
- basic_machine=tic55x-unknown
328
- ;;
329
- c6x)
330
- basic_machine=tic6x-unknown
331
- ;;
332
- leon|leon[3-9])
333
- basic_machine=sparc-$basic_machine
334
- ;;
335
- m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
336
- basic_machine=$basic_machine-unknown
337
- os=-none
338
- ;;
339
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
340
- ;;
341
- ms1)
342
- basic_machine=mt-unknown
343
- ;;
344
-
345
- strongarm | thumb | xscale)
346
- basic_machine=arm-unknown
347
- ;;
348
- xgate)
349
- basic_machine=$basic_machine-unknown
350
- os=-none
351
- ;;
352
- xscaleeb)
353
- basic_machine=armeb-unknown
354
- ;;
355
-
356
- xscaleel)
357
- basic_machine=armel-unknown
358
- ;;
359
-
360
- # We use `pc' rather than `unknown'
361
- # because (1) that's what they normally are, and
362
- # (2) the word "unknown" tends to confuse beginning users.
363
- i*86 | x86_64)
364
- basic_machine=$basic_machine-pc
365
- ;;
366
- # Object if more than one company name word.
367
- *-*-*)
368
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
369
- exit 1
370
- ;;
371
- # Recognize the basic CPU types with company name.
372
- 580-* \
373
- | a29k-* \
374
- | aarch64-* | aarch64_be-* \
375
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
376
- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
377
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
378
- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
379
- | avr-* | avr32-* \
380
- | ba-* \
381
- | be32-* | be64-* \
382
- | bfin-* | bs2000-* \
383
- | c[123]* | c30-* | [cjt]90-* | c4x-* \
384
- | c8051-* | clipper-* | craynv-* | cydra-* \
385
- | d10v-* | d30v-* | dlx-* \
386
- | e2k-* | elxsi-* \
387
- | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
388
- | h8300-* | h8500-* \
389
- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
390
- | hexagon-* \
391
- | i*86-* | i860-* | i960-* | ia64-* \
392
- | ip2k-* | iq2000-* \
393
- | k1om-* \
394
- | le32-* | le64-* \
395
- | lm32-* \
396
- | m32c-* | m32r-* | m32rle-* \
397
- | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
398
- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
399
- | microblaze-* | microblazeel-* \
400
- | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
401
- | mips16-* \
402
- | mips64-* | mips64el-* \
403
- | mips64octeon-* | mips64octeonel-* \
404
- | mips64orion-* | mips64orionel-* \
405
- | mips64r5900-* | mips64r5900el-* \
406
- | mips64vr-* | mips64vrel-* \
407
- | mips64vr4100-* | mips64vr4100el-* \
408
- | mips64vr4300-* | mips64vr4300el-* \
409
- | mips64vr5000-* | mips64vr5000el-* \
410
- | mips64vr5900-* | mips64vr5900el-* \
411
- | mipsisa32-* | mipsisa32el-* \
412
- | mipsisa32r2-* | mipsisa32r2el-* \
413
- | mipsisa32r6-* | mipsisa32r6el-* \
414
- | mipsisa64-* | mipsisa64el-* \
415
- | mipsisa64r2-* | mipsisa64r2el-* \
416
- | mipsisa64r6-* | mipsisa64r6el-* \
417
- | mipsisa64sb1-* | mipsisa64sb1el-* \
418
- | mipsisa64sr71k-* | mipsisa64sr71kel-* \
419
- | mipsr5900-* | mipsr5900el-* \
420
- | mipstx39-* | mipstx39el-* \
421
- | mmix-* \
422
- | mt-* \
423
- | msp430-* \
424
- | nds32-* | nds32le-* | nds32be-* \
425
- | nios-* | nios2-* | nios2eb-* | nios2el-* \
426
- | none-* | np1-* | ns16k-* | ns32k-* \
427
- | open8-* \
428
- | or1k*-* \
429
- | orion-* \
430
- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
431
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
432
- | pru-* \
433
- | pyramid-* \
434
- | riscv32-* | riscv64-* \
435
- | rl78-* | romp-* | rs6000-* | rx-* \
436
- | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
437
- | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
438
- | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
439
- | sparclite-* \
440
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
441
- | tahoe-* \
442
- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
443
- | tile*-* \
444
- | tron-* \
445
- | ubicom32-* \
446
- | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
447
- | vax-* \
448
- | visium-* \
449
- | we32k-* \
450
- | x86-* | x86_64-* | xc16x-* | xps100-* \
451
- | xstormy16-* | xtensa*-* \
452
- | ymp-* \
453
- | z8k-* | z80-*)
454
- ;;
455
- # Recognize the basic CPU types without company name, with glob match.
456
- xtensa*)
457
- basic_machine=$basic_machine-unknown
458
- ;;
459
- # Recognize the various machine names and aliases which stand
460
- # for a CPU type and a company and sometimes even an OS.
461
- 386bsd)
462
- basic_machine=i386-unknown
463
- os=-bsd
464
- ;;
465
- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
466
- basic_machine=m68000-att
467
- ;;
468
- 3b*)
469
- basic_machine=we32k-att
470
- ;;
471
- a29khif)
472
- basic_machine=a29k-amd
473
- os=-udi
474
- ;;
475
- abacus)
476
- basic_machine=abacus-unknown
477
- ;;
478
- adobe68k)
479
- basic_machine=m68010-adobe
480
- os=-scout
481
- ;;
482
- alliant | fx80)
483
- basic_machine=fx80-alliant
484
- ;;
485
- altos | altos3068)
486
- basic_machine=m68k-altos
487
- ;;
488
- am29k)
489
- basic_machine=a29k-none
490
- os=-bsd
491
- ;;
492
- amd64)
493
- basic_machine=x86_64-pc
494
- ;;
495
- amd64-*)
496
- basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
497
- ;;
498
- amdahl)
499
- basic_machine=580-amdahl
500
- os=-sysv
501
- ;;
502
- amiga | amiga-*)
503
- basic_machine=m68k-unknown
504
- ;;
505
- amigaos | amigados)
506
- basic_machine=m68k-unknown
507
- os=-amigaos
508
- ;;
509
- amigaunix | amix)
510
- basic_machine=m68k-unknown
511
- os=-sysv4
512
- ;;
513
- apollo68)
514
- basic_machine=m68k-apollo
515
- os=-sysv
516
- ;;
517
- apollo68bsd)
518
- basic_machine=m68k-apollo
519
- os=-bsd
520
- ;;
521
- aros)
522
- basic_machine=i386-pc
523
- os=-aros
524
- ;;
525
- asmjs)
526
- basic_machine=asmjs-unknown
527
- ;;
528
- aux)
529
- basic_machine=m68k-apple
530
- os=-aux
531
- ;;
532
- balance)
533
- basic_machine=ns32k-sequent
534
- os=-dynix
535
- ;;
536
- blackfin)
537
- basic_machine=bfin-unknown
538
- os=-linux
539
- ;;
540
- blackfin-*)
541
- basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
542
- os=-linux
543
- ;;
544
- bluegene*)
545
- basic_machine=powerpc-ibm
546
- os=-cnk
547
- ;;
548
- c54x-*)
549
- basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
550
- ;;
551
- c55x-*)
552
- basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
553
- ;;
554
- c6x-*)
555
- basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
556
- ;;
557
- c90)
558
- basic_machine=c90-cray
559
- os=-unicos
560
- ;;
561
- cegcc)
562
- basic_machine=arm-unknown
563
- os=-cegcc
564
- ;;
565
- convex-c1)
566
- basic_machine=c1-convex
567
- os=-bsd
568
- ;;
569
- convex-c2)
570
- basic_machine=c2-convex
571
- os=-bsd
572
- ;;
573
- convex-c32)
574
- basic_machine=c32-convex
575
- os=-bsd
576
- ;;
577
- convex-c34)
578
- basic_machine=c34-convex
579
- os=-bsd
580
- ;;
581
- convex-c38)
582
- basic_machine=c38-convex
583
- os=-bsd
584
- ;;
585
- cray | j90)
586
- basic_machine=j90-cray
587
- os=-unicos
588
- ;;
589
- craynv)
590
- basic_machine=craynv-cray
591
- os=-unicosmp
592
- ;;
593
- cr16 | cr16-*)
594
- basic_machine=cr16-unknown
595
- os=-elf
596
- ;;
597
- crds | unos)
598
- basic_machine=m68k-crds
599
- ;;
600
- crisv32 | crisv32-* | etraxfs*)
601
- basic_machine=crisv32-axis
602
- ;;
603
- cris | cris-* | etrax*)
604
- basic_machine=cris-axis
605
- ;;
606
- crx)
607
- basic_machine=crx-unknown
608
- os=-elf
609
- ;;
610
- da30 | da30-*)
611
- basic_machine=m68k-da30
612
- ;;
613
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
614
- basic_machine=mips-dec
615
- ;;
616
- decsystem10* | dec10*)
617
- basic_machine=pdp10-dec
618
- os=-tops10
619
- ;;
620
- decsystem20* | dec20*)
621
- basic_machine=pdp10-dec
622
- os=-tops20
623
- ;;
624
- delta | 3300 | motorola-3300 | motorola-delta \
625
- | 3300-motorola | delta-motorola)
626
- basic_machine=m68k-motorola
627
- ;;
628
- delta88)
629
- basic_machine=m88k-motorola
630
- os=-sysv3
631
- ;;
632
- dicos)
633
- basic_machine=i686-pc
634
- os=-dicos
635
- ;;
636
- djgpp)
637
- basic_machine=i586-pc
638
- os=-msdosdjgpp
639
- ;;
640
- dpx20 | dpx20-*)
641
- basic_machine=rs6000-bull
642
- os=-bosx
643
- ;;
644
- dpx2* | dpx2*-bull)
645
- basic_machine=m68k-bull
646
- os=-sysv3
647
- ;;
648
- e500v[12])
649
- basic_machine=powerpc-unknown
650
- os=$os"spe"
651
- ;;
652
- e500v[12]-*)
653
- basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
654
- os=$os"spe"
655
- ;;
656
- ebmon29k)
657
- basic_machine=a29k-amd
658
- os=-ebmon
659
- ;;
660
- elxsi)
661
- basic_machine=elxsi-elxsi
662
- os=-bsd
663
- ;;
664
- encore | umax | mmax)
665
- basic_machine=ns32k-encore
666
- ;;
667
- es1800 | OSE68k | ose68k | ose | OSE)
668
- basic_machine=m68k-ericsson
669
- os=-ose
670
- ;;
671
- fx2800)
672
- basic_machine=i860-alliant
673
- ;;
674
- genix)
675
- basic_machine=ns32k-ns
676
- ;;
677
- gmicro)
678
- basic_machine=tron-gmicro
679
- os=-sysv
680
- ;;
681
- go32)
682
- basic_machine=i386-pc
683
- os=-go32
684
- ;;
685
- h3050r* | hiux*)
686
- basic_machine=hppa1.1-hitachi
687
- os=-hiuxwe2
688
- ;;
689
- h8300hms)
690
- basic_machine=h8300-hitachi
691
- os=-hms
692
- ;;
693
- h8300xray)
694
- basic_machine=h8300-hitachi
695
- os=-xray
696
- ;;
697
- h8500hms)
698
- basic_machine=h8500-hitachi
699
- os=-hms
700
- ;;
701
- harris)
702
- basic_machine=m88k-harris
703
- os=-sysv3
704
- ;;
705
- hp300-*)
706
- basic_machine=m68k-hp
707
- ;;
708
- hp300bsd)
709
- basic_machine=m68k-hp
710
- os=-bsd
711
- ;;
712
- hp300hpux)
713
- basic_machine=m68k-hp
714
- os=-hpux
715
- ;;
716
- hp3k9[0-9][0-9] | hp9[0-9][0-9])
717
- basic_machine=hppa1.0-hp
718
- ;;
719
- hp9k2[0-9][0-9] | hp9k31[0-9])
720
- basic_machine=m68000-hp
721
- ;;
722
- hp9k3[2-9][0-9])
723
- basic_machine=m68k-hp
724
- ;;
725
- hp9k6[0-9][0-9] | hp6[0-9][0-9])
726
- basic_machine=hppa1.0-hp
727
- ;;
728
- hp9k7[0-79][0-9] | hp7[0-79][0-9])
729
- basic_machine=hppa1.1-hp
730
- ;;
731
- hp9k78[0-9] | hp78[0-9])
732
- # FIXME: really hppa2.0-hp
733
- basic_machine=hppa1.1-hp
734
- ;;
735
- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
736
- # FIXME: really hppa2.0-hp
737
- basic_machine=hppa1.1-hp
738
- ;;
739
- hp9k8[0-9][13679] | hp8[0-9][13679])
740
- basic_machine=hppa1.1-hp
741
- ;;
742
- hp9k8[0-9][0-9] | hp8[0-9][0-9])
743
- basic_machine=hppa1.0-hp
744
- ;;
745
- hppa-next)
746
- os=-nextstep3
747
- ;;
748
- hppaosf)
749
- basic_machine=hppa1.1-hp
750
- os=-osf
751
- ;;
752
- hppro)
753
- basic_machine=hppa1.1-hp
754
- os=-proelf
755
- ;;
756
- i370-ibm* | ibm*)
757
- basic_machine=i370-ibm
758
- ;;
759
- i*86v32)
760
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
761
- os=-sysv32
762
- ;;
763
- i*86v4*)
764
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
765
- os=-sysv4
766
- ;;
767
- i*86v)
768
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
769
- os=-sysv
770
- ;;
771
- i*86sol2)
772
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
773
- os=-solaris2
774
- ;;
775
- i386mach)
776
- basic_machine=i386-mach
777
- os=-mach
778
- ;;
779
- i386-vsta | vsta)
780
- basic_machine=i386-unknown
781
- os=-vsta
782
- ;;
783
- iris | iris4d)
784
- basic_machine=mips-sgi
785
- case $os in
786
- -irix*)
787
- ;;
788
- *)
789
- os=-irix4
790
- ;;
791
- esac
792
- ;;
793
- isi68 | isi)
794
- basic_machine=m68k-isi
795
- os=-sysv
796
- ;;
797
- leon-*|leon[3-9]-*)
798
- basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
799
- ;;
800
- m68knommu)
801
- basic_machine=m68k-unknown
802
- os=-linux
803
- ;;
804
- m68knommu-*)
805
- basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
806
- os=-linux
807
- ;;
808
- m88k-omron*)
809
- basic_machine=m88k-omron
810
- ;;
811
- magnum | m3230)
812
- basic_machine=mips-mips
813
- os=-sysv
814
- ;;
815
- merlin)
816
- basic_machine=ns32k-utek
817
- os=-sysv
818
- ;;
819
- microblaze*)
820
- basic_machine=microblaze-xilinx
821
- ;;
822
- mingw64)
823
- basic_machine=x86_64-pc
824
- os=-mingw64
825
- ;;
826
- mingw32)
827
- basic_machine=i686-pc
828
- os=-mingw32
829
- ;;
830
- mingw32ce)
831
- basic_machine=arm-unknown
832
- os=-mingw32ce
833
- ;;
834
- miniframe)
835
- basic_machine=m68000-convergent
836
- ;;
837
- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
838
- basic_machine=m68k-atari
839
- os=-mint
840
- ;;
841
- mips3*-*)
842
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
843
- ;;
844
- mips3*)
845
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
846
- ;;
847
- monitor)
848
- basic_machine=m68k-rom68k
849
- os=-coff
850
- ;;
851
- morphos)
852
- basic_machine=powerpc-unknown
853
- os=-morphos
854
- ;;
855
- moxiebox)
856
- basic_machine=moxie-unknown
857
- os=-moxiebox
858
- ;;
859
- msdos)
860
- basic_machine=i386-pc
861
- os=-msdos
862
- ;;
863
- ms1-*)
864
- basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
865
- ;;
866
- msys)
867
- basic_machine=i686-pc
868
- os=-msys
869
- ;;
870
- mvs)
871
- basic_machine=i370-ibm
872
- os=-mvs
873
- ;;
874
- nacl)
875
- basic_machine=le32-unknown
876
- os=-nacl
877
- ;;
878
- ncr3000)
879
- basic_machine=i486-ncr
880
- os=-sysv4
881
- ;;
882
- netbsd386)
883
- basic_machine=i386-unknown
884
- os=-netbsd
885
- ;;
886
- netwinder)
887
- basic_machine=armv4l-rebel
888
- os=-linux
889
- ;;
890
- news | news700 | news800 | news900)
891
- basic_machine=m68k-sony
892
- os=-newsos
893
- ;;
894
- news1000)
895
- basic_machine=m68030-sony
896
- os=-newsos
897
- ;;
898
- news-3600 | risc-news)
899
- basic_machine=mips-sony
900
- os=-newsos
901
- ;;
902
- necv70)
903
- basic_machine=v70-nec
904
- os=-sysv
905
- ;;
906
- next | m*-next )
907
- basic_machine=m68k-next
908
- case $os in
909
- -nextstep* )
910
- ;;
911
- -ns2*)
912
- os=-nextstep2
913
- ;;
914
- *)
915
- os=-nextstep3
916
- ;;
917
- esac
918
- ;;
919
- nh3000)
920
- basic_machine=m68k-harris
921
- os=-cxux
922
- ;;
923
- nh[45]000)
924
- basic_machine=m88k-harris
925
- os=-cxux
926
- ;;
927
- nindy960)
928
- basic_machine=i960-intel
929
- os=-nindy
930
- ;;
931
- mon960)
932
- basic_machine=i960-intel
933
- os=-mon960
934
- ;;
935
- nonstopux)
936
- basic_machine=mips-compaq
937
- os=-nonstopux
938
- ;;
939
- np1)
940
- basic_machine=np1-gould
941
- ;;
942
- neo-tandem)
943
- basic_machine=neo-tandem
944
- ;;
945
- nse-tandem)
946
- basic_machine=nse-tandem
947
- ;;
948
- nsr-tandem)
949
- basic_machine=nsr-tandem
950
- ;;
951
- op50n-* | op60c-*)
952
- basic_machine=hppa1.1-oki
953
- os=-proelf
954
- ;;
955
- openrisc | openrisc-*)
956
- basic_machine=or32-unknown
957
- ;;
958
- os400)
959
- basic_machine=powerpc-ibm
960
- os=-os400
961
- ;;
962
- OSE68000 | ose68000)
963
- basic_machine=m68000-ericsson
964
- os=-ose
965
- ;;
966
- os68k)
967
- basic_machine=m68k-none
968
- os=-os68k
969
- ;;
970
- pa-hitachi)
971
- basic_machine=hppa1.1-hitachi
972
- os=-hiuxwe2
973
- ;;
974
- paragon)
975
- basic_machine=i860-intel
976
- os=-osf
977
- ;;
978
- parisc)
979
- basic_machine=hppa-unknown
980
- os=-linux
981
- ;;
982
- parisc-*)
983
- basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
984
- os=-linux
985
- ;;
986
- pbd)
987
- basic_machine=sparc-tti
988
- ;;
989
- pbb)
990
- basic_machine=m68k-tti
991
- ;;
992
- pc532 | pc532-*)
993
- basic_machine=ns32k-pc532
994
- ;;
995
- pc98)
996
- basic_machine=i386-pc
997
- ;;
998
- pc98-*)
999
- basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
1000
- ;;
1001
- pentium | p5 | k5 | k6 | nexgen | viac3)
1002
- basic_machine=i586-pc
1003
- ;;
1004
- pentiumpro | p6 | 6x86 | athlon | athlon_*)
1005
- basic_machine=i686-pc
1006
- ;;
1007
- pentiumii | pentium2 | pentiumiii | pentium3)
1008
- basic_machine=i686-pc
1009
- ;;
1010
- pentium4)
1011
- basic_machine=i786-pc
1012
- ;;
1013
- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1014
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1015
- ;;
1016
- pentiumpro-* | p6-* | 6x86-* | athlon-*)
1017
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1018
- ;;
1019
- pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1020
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1021
- ;;
1022
- pentium4-*)
1023
- basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1024
- ;;
1025
- pn)
1026
- basic_machine=pn-gould
1027
- ;;
1028
- power) basic_machine=power-ibm
1029
- ;;
1030
- ppc | ppcbe) basic_machine=powerpc-unknown
1031
- ;;
1032
- ppc-* | ppcbe-*)
1033
- basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1034
- ;;
1035
- ppcle | powerpclittle)
1036
- basic_machine=powerpcle-unknown
1037
- ;;
1038
- ppcle-* | powerpclittle-*)
1039
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1040
- ;;
1041
- ppc64) basic_machine=powerpc64-unknown
1042
- ;;
1043
- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1044
- ;;
1045
- ppc64le | powerpc64little)
1046
- basic_machine=powerpc64le-unknown
1047
- ;;
1048
- ppc64le-* | powerpc64little-*)
1049
- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1050
- ;;
1051
- ps2)
1052
- basic_machine=i386-ibm
1053
- ;;
1054
- pw32)
1055
- basic_machine=i586-unknown
1056
- os=-pw32
1057
- ;;
1058
- rdos | rdos64)
1059
- basic_machine=x86_64-pc
1060
- os=-rdos
1061
- ;;
1062
- rdos32)
1063
- basic_machine=i386-pc
1064
- os=-rdos
1065
- ;;
1066
- rom68k)
1067
- basic_machine=m68k-rom68k
1068
- os=-coff
1069
- ;;
1070
- rm[46]00)
1071
- basic_machine=mips-siemens
1072
- ;;
1073
- rtpc | rtpc-*)
1074
- basic_machine=romp-ibm
1075
- ;;
1076
- s390 | s390-*)
1077
- basic_machine=s390-ibm
1078
- ;;
1079
- s390x | s390x-*)
1080
- basic_machine=s390x-ibm
1081
- ;;
1082
- sa29200)
1083
- basic_machine=a29k-amd
1084
- os=-udi
1085
- ;;
1086
- sb1)
1087
- basic_machine=mipsisa64sb1-unknown
1088
- ;;
1089
- sb1el)
1090
- basic_machine=mipsisa64sb1el-unknown
1091
- ;;
1092
- sde)
1093
- basic_machine=mipsisa32-sde
1094
- os=-elf
1095
- ;;
1096
- sei)
1097
- basic_machine=mips-sei
1098
- os=-seiux
1099
- ;;
1100
- sequent)
1101
- basic_machine=i386-sequent
1102
- ;;
1103
- sh)
1104
- basic_machine=sh-hitachi
1105
- os=-hms
1106
- ;;
1107
- sh5el)
1108
- basic_machine=sh5le-unknown
1109
- ;;
1110
- sh64)
1111
- basic_machine=sh64-unknown
1112
- ;;
1113
- sparclite-wrs | simso-wrs)
1114
- basic_machine=sparclite-wrs
1115
- os=-vxworks
1116
- ;;
1117
- sps7)
1118
- basic_machine=m68k-bull
1119
- os=-sysv2
1120
- ;;
1121
- spur)
1122
- basic_machine=spur-unknown
1123
- ;;
1124
- st2000)
1125
- basic_machine=m68k-tandem
1126
- ;;
1127
- stratus)
1128
- basic_machine=i860-stratus
1129
- os=-sysv4
1130
- ;;
1131
- strongarm-* | thumb-*)
1132
- basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1133
- ;;
1134
- sun2)
1135
- basic_machine=m68000-sun
1136
- ;;
1137
- sun2os3)
1138
- basic_machine=m68000-sun
1139
- os=-sunos3
1140
- ;;
1141
- sun2os4)
1142
- basic_machine=m68000-sun
1143
- os=-sunos4
1144
- ;;
1145
- sun3os3)
1146
- basic_machine=m68k-sun
1147
- os=-sunos3
1148
- ;;
1149
- sun3os4)
1150
- basic_machine=m68k-sun
1151
- os=-sunos4
1152
- ;;
1153
- sun4os3)
1154
- basic_machine=sparc-sun
1155
- os=-sunos3
1156
- ;;
1157
- sun4os4)
1158
- basic_machine=sparc-sun
1159
- os=-sunos4
1160
- ;;
1161
- sun4sol2)
1162
- basic_machine=sparc-sun
1163
- os=-solaris2
1164
- ;;
1165
- sun3 | sun3-*)
1166
- basic_machine=m68k-sun
1167
- ;;
1168
- sun4)
1169
- basic_machine=sparc-sun
1170
- ;;
1171
- sun386 | sun386i | roadrunner)
1172
- basic_machine=i386-sun
1173
- ;;
1174
- sv1)
1175
- basic_machine=sv1-cray
1176
- os=-unicos
1177
- ;;
1178
- symmetry)
1179
- basic_machine=i386-sequent
1180
- os=-dynix
1181
- ;;
1182
- t3e)
1183
- basic_machine=alphaev5-cray
1184
- os=-unicos
1185
- ;;
1186
- t90)
1187
- basic_machine=t90-cray
1188
- os=-unicos
1189
- ;;
1190
- tile*)
1191
- basic_machine=$basic_machine-unknown
1192
- os=-linux-gnu
1193
- ;;
1194
- tx39)
1195
- basic_machine=mipstx39-unknown
1196
- ;;
1197
- tx39el)
1198
- basic_machine=mipstx39el-unknown
1199
- ;;
1200
- toad1)
1201
- basic_machine=pdp10-xkl
1202
- os=-tops20
1203
- ;;
1204
- tower | tower-32)
1205
- basic_machine=m68k-ncr
1206
- ;;
1207
- tpf)
1208
- basic_machine=s390x-ibm
1209
- os=-tpf
1210
- ;;
1211
- udi29k)
1212
- basic_machine=a29k-amd
1213
- os=-udi
1214
- ;;
1215
- ultra3)
1216
- basic_machine=a29k-nyu
1217
- os=-sym1
1218
- ;;
1219
- v810 | necv810)
1220
- basic_machine=v810-nec
1221
- os=-none
1222
- ;;
1223
- vaxv)
1224
- basic_machine=vax-dec
1225
- os=-sysv
1226
- ;;
1227
- vms)
1228
- basic_machine=vax-dec
1229
- os=-vms
1230
- ;;
1231
- vpp*|vx|vx-*)
1232
- basic_machine=f301-fujitsu
1233
- ;;
1234
- vxworks960)
1235
- basic_machine=i960-wrs
1236
- os=-vxworks
1237
- ;;
1238
- vxworks68)
1239
- basic_machine=m68k-wrs
1240
- os=-vxworks
1241
- ;;
1242
- vxworks29k)
1243
- basic_machine=a29k-wrs
1244
- os=-vxworks
1245
- ;;
1246
- w65*)
1247
- basic_machine=w65-wdc
1248
- os=-none
1249
- ;;
1250
- w89k-*)
1251
- basic_machine=hppa1.1-winbond
1252
- os=-proelf
1253
- ;;
1254
- xbox)
1255
- basic_machine=i686-pc
1256
- os=-mingw32
1257
- ;;
1258
- xps | xps100)
1259
- basic_machine=xps100-honeywell
1260
- ;;
1261
- xscale-* | xscalee[bl]-*)
1262
- basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1263
- ;;
1264
- ymp)
1265
- basic_machine=ymp-cray
1266
- os=-unicos
1267
- ;;
1268
- z8k-*-coff)
1269
- basic_machine=z8k-unknown
1270
- os=-sim
1271
- ;;
1272
- z80-*-coff)
1273
- basic_machine=z80-unknown
1274
- os=-sim
1275
- ;;
1276
- none)
1277
- basic_machine=none-none
1278
- os=-none
1279
- ;;
1280
-
1281
- # Here we handle the default manufacturer of certain CPU types. It is in
1282
- # some cases the only manufacturer, in others, it is the most popular.
1283
- w89k)
1284
- basic_machine=hppa1.1-winbond
1285
- ;;
1286
- op50n)
1287
- basic_machine=hppa1.1-oki
1288
- ;;
1289
- op60c)
1290
- basic_machine=hppa1.1-oki
1291
- ;;
1292
- romp)
1293
- basic_machine=romp-ibm
1294
- ;;
1295
- mmix)
1296
- basic_machine=mmix-knuth
1297
- ;;
1298
- rs6000)
1299
- basic_machine=rs6000-ibm
1300
- ;;
1301
- vax)
1302
- basic_machine=vax-dec
1303
- ;;
1304
- pdp10)
1305
- # there are many clones, so DEC is not a safe bet
1306
- basic_machine=pdp10-unknown
1307
- ;;
1308
- pdp11)
1309
- basic_machine=pdp11-dec
1310
- ;;
1311
- we32k)
1312
- basic_machine=we32k-att
1313
- ;;
1314
- sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1315
- basic_machine=sh-unknown
1316
- ;;
1317
- sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1318
- basic_machine=sparc-sun
1319
- ;;
1320
- cydra)
1321
- basic_machine=cydra-cydrome
1322
- ;;
1323
- orion)
1324
- basic_machine=orion-highlevel
1325
- ;;
1326
- orion105)
1327
- basic_machine=clipper-highlevel
1328
- ;;
1329
- mac | mpw | mac-mpw)
1330
- basic_machine=m68k-apple
1331
- ;;
1332
- pmac | pmac-mpw)
1333
- basic_machine=powerpc-apple
1334
- ;;
1335
- *-unknown)
1336
- # Make sure to match an already-canonicalized machine name.
1337
- ;;
1338
- *)
1339
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1340
- exit 1
1341
- ;;
1342
- esac
1343
-
1344
- # Here we canonicalize certain aliases for manufacturers.
1345
- case $basic_machine in
1346
- *-digital*)
1347
- basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1348
- ;;
1349
- *-commodore*)
1350
- basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1351
- ;;
1352
- *)
1353
- ;;
1354
- esac
1355
-
1356
- # Decode manufacturer-specific aliases for certain operating systems.
1357
-
1358
- if [ x"$os" != x"" ]
1359
- then
1360
- case $os in
1361
- # First match some system type aliases
1362
- # that might get confused with valid system types.
1363
- # -solaris* is a basic system type, with this one exception.
1364
- -auroraux)
1365
- os=-auroraux
1366
- ;;
1367
- -solaris1 | -solaris1.*)
1368
- os=`echo $os | sed -e 's|solaris1|sunos4|'`
1369
- ;;
1370
- -solaris)
1371
- os=-solaris2
1372
- ;;
1373
- -svr4*)
1374
- os=-sysv4
1375
- ;;
1376
- -unixware*)
1377
- os=-sysv4.2uw
1378
- ;;
1379
- -gnu/linux*)
1380
- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1381
- ;;
1382
- # First accept the basic system types.
1383
- # The portable systems comes first.
1384
- # Each alternative MUST END IN A *, to match a version number.
1385
- # -sysv* is not here because it comes later, after sysvr4.
1386
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1387
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1388
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1389
- | -sym* | -kopensolaris* | -plan9* \
1390
- | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1391
- | -aos* | -aros* | -cloudabi* | -sortix* \
1392
- | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1393
- | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1394
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1395
- | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1396
- | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1397
- | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1398
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1399
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1400
- | -chorusos* | -chorusrdb* | -cegcc* \
1401
- | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1402
- | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1403
- | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1404
- | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1405
- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1406
- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1407
- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1408
- | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1409
- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1410
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1411
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1412
- | -onefs* | -tirtos* | -phoenix* | -fuchsia*)
1413
- # Remember, each alternative MUST END IN *, to match a version number.
1414
- ;;
1415
- -qnx*)
1416
- case $basic_machine in
1417
- x86-* | i*86-*)
1418
- ;;
1419
- *)
1420
- os=-nto$os
1421
- ;;
1422
- esac
1423
- ;;
1424
- -nto-qnx*)
1425
- ;;
1426
- -nto*)
1427
- os=`echo $os | sed -e 's|nto|nto-qnx|'`
1428
- ;;
1429
- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1430
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1431
- | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1432
- ;;
1433
- -mac*)
1434
- os=`echo $os | sed -e 's|mac|macos|'`
1435
- ;;
1436
- -linux-dietlibc)
1437
- os=-linux-dietlibc
1438
- ;;
1439
- -linux*)
1440
- os=`echo $os | sed -e 's|linux|linux-gnu|'`
1441
- ;;
1442
- -sunos5*)
1443
- os=`echo $os | sed -e 's|sunos5|solaris2|'`
1444
- ;;
1445
- -sunos6*)
1446
- os=`echo $os | sed -e 's|sunos6|solaris3|'`
1447
- ;;
1448
- -opened*)
1449
- os=-openedition
1450
- ;;
1451
- -os400*)
1452
- os=-os400
1453
- ;;
1454
- -wince*)
1455
- os=-wince
1456
- ;;
1457
- -osfrose*)
1458
- os=-osfrose
1459
- ;;
1460
- -osf*)
1461
- os=-osf
1462
- ;;
1463
- -utek*)
1464
- os=-bsd
1465
- ;;
1466
- -dynix*)
1467
- os=-bsd
1468
- ;;
1469
- -acis*)
1470
- os=-aos
1471
- ;;
1472
- -atheos*)
1473
- os=-atheos
1474
- ;;
1475
- -syllable*)
1476
- os=-syllable
1477
- ;;
1478
- -386bsd)
1479
- os=-bsd
1480
- ;;
1481
- -ctix* | -uts*)
1482
- os=-sysv
1483
- ;;
1484
- -nova*)
1485
- os=-rtmk-nova
1486
- ;;
1487
- -ns2 )
1488
- os=-nextstep2
1489
- ;;
1490
- -nsk*)
1491
- os=-nsk
1492
- ;;
1493
- # Preserve the version number of sinix5.
1494
- -sinix5.*)
1495
- os=`echo $os | sed -e 's|sinix|sysv|'`
1496
- ;;
1497
- -sinix*)
1498
- os=-sysv4
1499
- ;;
1500
- -tpf*)
1501
- os=-tpf
1502
- ;;
1503
- -triton*)
1504
- os=-sysv3
1505
- ;;
1506
- -oss*)
1507
- os=-sysv3
1508
- ;;
1509
- -svr4)
1510
- os=-sysv4
1511
- ;;
1512
- -svr3)
1513
- os=-sysv3
1514
- ;;
1515
- -sysvr4)
1516
- os=-sysv4
1517
- ;;
1518
- # This must come after -sysvr4.
1519
- -sysv*)
1520
- ;;
1521
- -ose*)
1522
- os=-ose
1523
- ;;
1524
- -es1800*)
1525
- os=-ose
1526
- ;;
1527
- -xenix)
1528
- os=-xenix
1529
- ;;
1530
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1531
- os=-mint
1532
- ;;
1533
- -aros*)
1534
- os=-aros
1535
- ;;
1536
- -zvmoe)
1537
- os=-zvmoe
1538
- ;;
1539
- -dicos*)
1540
- os=-dicos
1541
- ;;
1542
- -nacl*)
1543
- ;;
1544
- -ios)
1545
- ;;
1546
- -none)
1547
- ;;
1548
- *)
1549
- # Get rid of the `-' at the beginning of $os.
1550
- os=`echo $os | sed 's/[^-]*-//'`
1551
- echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1552
- exit 1
1553
- ;;
1554
- esac
1555
- else
1556
-
1557
- # Here we handle the default operating systems that come with various machines.
1558
- # The value should be what the vendor currently ships out the door with their
1559
- # machine or put another way, the most popular os provided with the machine.
1560
-
1561
- # Note that if you're going to try to match "-MANUFACTURER" here (say,
1562
- # "-sun"), then you have to tell the case statement up towards the top
1563
- # that MANUFACTURER isn't an operating system. Otherwise, code above
1564
- # will signal an error saying that MANUFACTURER isn't an operating
1565
- # system, and we'll never get to this point.
1566
-
1567
- case $basic_machine in
1568
- score-*)
1569
- os=-elf
1570
- ;;
1571
- spu-*)
1572
- os=-elf
1573
- ;;
1574
- *-acorn)
1575
- os=-riscix1.2
1576
- ;;
1577
- arm*-rebel)
1578
- os=-linux
1579
- ;;
1580
- arm*-semi)
1581
- os=-aout
1582
- ;;
1583
- c4x-* | tic4x-*)
1584
- os=-coff
1585
- ;;
1586
- c8051-*)
1587
- os=-elf
1588
- ;;
1589
- hexagon-*)
1590
- os=-elf
1591
- ;;
1592
- tic54x-*)
1593
- os=-coff
1594
- ;;
1595
- tic55x-*)
1596
- os=-coff
1597
- ;;
1598
- tic6x-*)
1599
- os=-coff
1600
- ;;
1601
- # This must come before the *-dec entry.
1602
- pdp10-*)
1603
- os=-tops20
1604
- ;;
1605
- pdp11-*)
1606
- os=-none
1607
- ;;
1608
- *-dec | vax-*)
1609
- os=-ultrix4.2
1610
- ;;
1611
- m68*-apollo)
1612
- os=-domain
1613
- ;;
1614
- i386-sun)
1615
- os=-sunos4.0.2
1616
- ;;
1617
- m68000-sun)
1618
- os=-sunos3
1619
- ;;
1620
- m68*-cisco)
1621
- os=-aout
1622
- ;;
1623
- mep-*)
1624
- os=-elf
1625
- ;;
1626
- mips*-cisco)
1627
- os=-elf
1628
- ;;
1629
- mips*-*)
1630
- os=-elf
1631
- ;;
1632
- or32-*)
1633
- os=-coff
1634
- ;;
1635
- *-tti) # must be before sparc entry or we get the wrong os.
1636
- os=-sysv3
1637
- ;;
1638
- sparc-* | *-sun)
1639
- os=-sunos4.1.1
1640
- ;;
1641
- *-be)
1642
- os=-beos
1643
- ;;
1644
- *-haiku)
1645
- os=-haiku
1646
- ;;
1647
- *-ibm)
1648
- os=-aix
1649
- ;;
1650
- *-knuth)
1651
- os=-mmixware
1652
- ;;
1653
- *-wec)
1654
- os=-proelf
1655
- ;;
1656
- *-winbond)
1657
- os=-proelf
1658
- ;;
1659
- *-oki)
1660
- os=-proelf
1661
- ;;
1662
- *-hp)
1663
- os=-hpux
1664
- ;;
1665
- *-hitachi)
1666
- os=-hiux
1667
- ;;
1668
- i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1669
- os=-sysv
1670
- ;;
1671
- *-cbm)
1672
- os=-amigaos
1673
- ;;
1674
- *-dg)
1675
- os=-dgux
1676
- ;;
1677
- *-dolphin)
1678
- os=-sysv3
1679
- ;;
1680
- m68k-ccur)
1681
- os=-rtu
1682
- ;;
1683
- m88k-omron*)
1684
- os=-luna
1685
- ;;
1686
- *-next )
1687
- os=-nextstep
1688
- ;;
1689
- *-sequent)
1690
- os=-ptx
1691
- ;;
1692
- *-crds)
1693
- os=-unos
1694
- ;;
1695
- *-ns)
1696
- os=-genix
1697
- ;;
1698
- i370-*)
1699
- os=-mvs
1700
- ;;
1701
- *-next)
1702
- os=-nextstep3
1703
- ;;
1704
- *-gould)
1705
- os=-sysv
1706
- ;;
1707
- *-highlevel)
1708
- os=-bsd
1709
- ;;
1710
- *-encore)
1711
- os=-bsd
1712
- ;;
1713
- *-sgi)
1714
- os=-irix
1715
- ;;
1716
- *-siemens)
1717
- os=-sysv4
1718
- ;;
1719
- *-masscomp)
1720
- os=-rtu
1721
- ;;
1722
- f30[01]-fujitsu | f700-fujitsu)
1723
- os=-uxpv
1724
- ;;
1725
- *-rom68k)
1726
- os=-coff
1727
- ;;
1728
- *-*bug)
1729
- os=-coff
1730
- ;;
1731
- *-apple)
1732
- os=-macos
1733
- ;;
1734
- *-atari*)
1735
- os=-mint
1736
- ;;
1737
- *)
1738
- os=-none
1739
- ;;
1740
- esac
1741
- fi
1742
-
1743
- # Here we handle the case where we know the os, and the CPU type, but not the
1744
- # manufacturer. We pick the logical manufacturer.
1745
- vendor=unknown
1746
- case $basic_machine in
1747
- *-unknown)
1748
- case $os in
1749
- -riscix*)
1750
- vendor=acorn
1751
- ;;
1752
- -sunos*)
1753
- vendor=sun
1754
- ;;
1755
- -cnk*|-aix*)
1756
- vendor=ibm
1757
- ;;
1758
- -beos*)
1759
- vendor=be
1760
- ;;
1761
- -hpux*)
1762
- vendor=hp
1763
- ;;
1764
- -mpeix*)
1765
- vendor=hp
1766
- ;;
1767
- -hiux*)
1768
- vendor=hitachi
1769
- ;;
1770
- -unos*)
1771
- vendor=crds
1772
- ;;
1773
- -dgux*)
1774
- vendor=dg
1775
- ;;
1776
- -luna*)
1777
- vendor=omron
1778
- ;;
1779
- -genix*)
1780
- vendor=ns
1781
- ;;
1782
- -mvs* | -opened*)
1783
- vendor=ibm
1784
- ;;
1785
- -os400*)
1786
- vendor=ibm
1787
- ;;
1788
- -ptx*)
1789
- vendor=sequent
1790
- ;;
1791
- -tpf*)
1792
- vendor=ibm
1793
- ;;
1794
- -vxsim* | -vxworks* | -windiss*)
1795
- vendor=wrs
1796
- ;;
1797
- -aux*)
1798
- vendor=apple
1799
- ;;
1800
- -hms*)
1801
- vendor=hitachi
1802
- ;;
1803
- -mpw* | -macos*)
1804
- vendor=apple
1805
- ;;
1806
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1807
- vendor=atari
1808
- ;;
1809
- -vos*)
1810
- vendor=stratus
1811
- ;;
1812
- esac
1813
- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1814
- ;;
1815
- esac
1816
-
1817
- echo $basic_machine$os
1818
- exit
1819
-
1820
- # Local variables:
1821
- # eval: (add-hook 'write-file-hooks 'time-stamp)
1822
- # time-stamp-start: "timestamp='"
1823
- # time-stamp-format: "%:y-%02m-%02d"
1824
- # time-stamp-end: "'"
1825
- # End: