libusb 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.travis.yml +1 -0
  5. data/History.md +8 -0
  6. data/README.md +5 -15
  7. data/Rakefile +8 -1
  8. data/ext/extconf.rb +49 -12
  9. data/ext/{libusb-1.0.19 → libusb-1.0.20}/AUTHORS +12 -1
  10. data/ext/{libusb-1.0.19 → libusb-1.0.20}/COPYING +0 -0
  11. data/ext/{libusb-1.0.19 → libusb-1.0.20}/ChangeLog +18 -2
  12. data/ext/{libusb-1.0.19 → libusb-1.0.20}/INSTALL +0 -0
  13. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Makefile.am +0 -0
  14. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Makefile.in +31 -18
  15. data/ext/{libusb-1.0.19 → libusb-1.0.20}/NEWS +0 -0
  16. data/ext/{libusb-1.0.19 → libusb-1.0.20}/PORTING +0 -0
  17. data/ext/{libusb-1.0.19 → libusb-1.0.20}/README +5 -3
  18. data/ext/{libusb-1.0.19 → libusb-1.0.20}/TODO +0 -0
  19. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/common.xcconfig +0 -0
  20. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/config.h +0 -0
  21. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/debug.xcconfig +0 -0
  22. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/libusb.xcconfig +0 -0
  23. data/ext/libusb-1.0.20/Xcode/libusb.xcodeproj/project.pbxproj +865 -0
  24. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/libusb_debug.xcconfig +0 -0
  25. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/libusb_release.xcconfig +0 -0
  26. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/release.xcconfig +0 -0
  27. data/ext/{libusb-1.0.19 → libusb-1.0.20}/aclocal.m4 +35 -32
  28. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/README +0 -0
  29. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/config.h +0 -0
  30. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/Android.mk +0 -0
  31. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/Application.mk +0 -0
  32. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/examples.mk +0 -0
  33. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/libusb.mk +0 -0
  34. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/tests.mk +0 -0
  35. data/ext/{libusb-1.0.19 → libusb-1.0.20}/compile +1 -1
  36. data/ext/{libusb-1.0.19 → libusb-1.0.20}/config.guess +13 -160
  37. data/ext/{libusb-1.0.19 → libusb-1.0.20}/config.h.in +6 -0
  38. data/ext/{libusb-1.0.19 → libusb-1.0.20}/config.sub +26 -12
  39. data/ext/{libusb-1.0.19 → libusb-1.0.20}/configure +244 -20
  40. data/ext/{libusb-1.0.19 → libusb-1.0.20}/configure.ac +27 -4
  41. data/ext/{libusb-1.0.19 → libusb-1.0.20}/depcomp +1 -1
  42. data/ext/{libusb-1.0.19 → libusb-1.0.20}/doc/Makefile.am +0 -0
  43. data/ext/{libusb-1.0.19 → libusb-1.0.20}/doc/Makefile.in +19 -6
  44. data/ext/libusb-1.0.20/doc/doxygen.cfg.in +2334 -0
  45. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/Makefile.am +0 -0
  46. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/Makefile.in +19 -6
  47. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/dpfp.c +0 -0
  48. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/dpfp_threaded.c +15 -10
  49. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/ezusb.c +0 -0
  50. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/ezusb.h +0 -0
  51. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/fxload.c +28 -7
  52. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/getopt/getopt.c +0 -0
  53. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/getopt/getopt.h +0 -0
  54. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/getopt/getopt1.c +0 -0
  55. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/hotplugtest.c +21 -3
  56. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/listdevs.c +0 -0
  57. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/sam3u_benchmark.c +0 -0
  58. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/xusb.c +2 -1
  59. data/ext/{libusb-1.0.19 → libusb-1.0.20}/install-sh +170 -196
  60. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb-1.0.pc.in +0 -0
  61. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/Makefile.am +15 -0
  62. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/Makefile.in +192 -53
  63. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/core.c +218 -100
  64. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/descriptor.c +3 -1
  65. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/hotplug.c +26 -9
  66. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/hotplug.h +8 -0
  67. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/io.c +432 -290
  68. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusb-1.0.def +2 -0
  69. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusb-1.0.rc +0 -0
  70. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusb.h +11 -10
  71. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusbi.h +106 -29
  72. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/darwin_usb.c +27 -67
  73. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/darwin_usb.h +3 -7
  74. data/ext/libusb-1.0.20/libusb/os/haiku/Makefile.am +5 -0
  75. data/ext/libusb-1.0.20/libusb/os/haiku/Makefile.in +810 -0
  76. data/ext/libusb-1.0.20/libusb/os/haiku/aclocal.m4 +1193 -0
  77. data/ext/libusb-1.0.20/libusb/os/haiku/compile +347 -0
  78. data/ext/libusb-1.0.20/libusb/os/haiku/config.guess +1421 -0
  79. data/ext/libusb-1.0.20/libusb/os/haiku/config.sub +1807 -0
  80. data/ext/libusb-1.0.20/libusb/os/haiku/configure +17579 -0
  81. data/ext/libusb-1.0.20/libusb/os/haiku/configure.ac +8 -0
  82. data/ext/libusb-1.0.20/libusb/os/haiku/depcomp +791 -0
  83. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_pollfs.cpp +378 -0
  84. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb.h +112 -0
  85. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb_backend.cpp +550 -0
  86. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb_raw.cpp +255 -0
  87. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb_raw.h +180 -0
  88. data/ext/libusb-1.0.20/libusb/os/haiku/install-sh +501 -0
  89. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/ltmain.sh +0 -0
  90. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/libtool.m4 +0 -0
  91. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/ltoptions.m4 +0 -0
  92. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/ltsugar.m4 +0 -0
  93. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/ltversion.m4 +0 -0
  94. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/lt~obsolete.m4 +0 -0
  95. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/missing +1 -1
  96. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_netlink.c +4 -4
  97. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_udev.c +1 -2
  98. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_usbfs.c +46 -49
  99. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_usbfs.h +1 -1
  100. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/netbsd_usb.c +9 -73
  101. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/openbsd_usb.c +9 -73
  102. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_posix.c +2 -0
  103. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_posix.h +0 -0
  104. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_windows.c +3 -1
  105. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_windows.h +0 -0
  106. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_posix.c +3 -3
  107. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_posix.h +0 -0
  108. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_windows.c +3 -1
  109. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_windows.h +0 -0
  110. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/wince_usb.c +87 -250
  111. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/wince_usb.h +0 -0
  112. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/windows_common.h +1 -1
  113. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/windows_usb.c +267 -181
  114. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/windows_usb.h +22 -7
  115. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/strerror.c +5 -2
  116. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/sync.c +2 -1
  117. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/version.h +1 -1
  118. data/ext/libusb-1.0.20/libusb/version_nano.h +1 -0
  119. data/ext/libusb-1.0.20/ltmain.sh +9655 -0
  120. data/ext/libusb-1.0.20/m4/libtool.m4 +7992 -0
  121. data/ext/libusb-1.0.20/m4/ltoptions.m4 +384 -0
  122. data/ext/libusb-1.0.20/m4/ltsugar.m4 +123 -0
  123. data/ext/libusb-1.0.20/m4/ltversion.m4 +23 -0
  124. data/ext/libusb-1.0.20/m4/lt~obsolete.m4 +98 -0
  125. data/ext/libusb-1.0.20/missing +215 -0
  126. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/Makefile.am +0 -0
  127. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/Makefile.in +19 -6
  128. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/libusb_testlib.h +0 -0
  129. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/stress.c +0 -0
  130. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/testlib.c +0 -0
  131. data/lib/libusb.rb +1 -0
  132. data/lib/libusb/call.rb +1 -0
  133. data/lib/libusb/context.rb +5 -2
  134. data/lib/libusb/stdio.rb +25 -0
  135. data/lib/libusb/version_gem.rb +1 -1
  136. data/libusb.gemspec +2 -1
  137. metadata +152 -115
  138. metadata.gz.sig +0 -0
  139. data/ext/libusb-1.0.19/Xcode/libusb.xcodeproj/project.pbxproj +0 -1
  140. data/ext/libusb-1.0.19/doc/doxygen.cfg.in +0 -1288
  141. data/ext/libusb-1.0.19/libusb/version_nano.h +0 -1
@@ -85,6 +85,9 @@
85
85
  /* Darwin backend */
86
86
  #undef OS_DARWIN
87
87
 
88
+ /* Haiku backend */
89
+ #undef OS_HAIKU
90
+
88
91
  /* Linux backend */
89
92
  #undef OS_LINUX
90
93
 
@@ -139,6 +142,9 @@
139
142
  /* Version number of package */
140
143
  #undef VERSION
141
144
 
145
+ /* Oldest Windows version supported */
146
+ #undef WINVER
147
+
142
148
  /* Use GNU extensions */
143
149
  #undef _GNU_SOURCE
144
150
 
@@ -1,8 +1,8 @@
1
1
  #! /bin/sh
2
2
  # Configuration validation subroutine script.
3
- # Copyright 1992-2013 Free Software Foundation, Inc.
3
+ # Copyright 1992-2015 Free Software Foundation, Inc.
4
4
 
5
- timestamp='2013-10-01'
5
+ timestamp='2015-01-01'
6
6
 
7
7
  # This file is free software; you can redistribute it and/or modify it
8
8
  # under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ timestamp='2013-10-01'
25
25
  # of the GNU General Public License, version 3 ("GPLv3").
26
26
 
27
27
 
28
- # Please send patches with a ChangeLog entry to config-patches@gnu.org.
28
+ # Please send patches to <config-patches@gnu.org>.
29
29
  #
30
30
  # Configuration subroutine to validate and canonicalize a configuration type.
31
31
  # Supply the specified configuration type as an argument.
@@ -68,7 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>."
68
68
  version="\
69
69
  GNU config.sub ($timestamp)
70
70
 
71
- Copyright 1992-2013 Free Software Foundation, Inc.
71
+ Copyright 1992-2015 Free Software Foundation, Inc.
72
72
 
73
73
  This is free software; see the source for copying conditions. There is NO
74
74
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -260,7 +260,7 @@ case $basic_machine in
260
260
  | c4x | c8051 | clipper \
261
261
  | d10v | d30v | dlx | dsp16xx \
262
262
  | epiphany \
263
- | fido | fr30 | frv \
263
+ | fido | fr30 | frv | ft32 \
264
264
  | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265
265
  | hexagon \
266
266
  | i370 | i860 | i960 | ia64 \
@@ -283,8 +283,10 @@ case $basic_machine in
283
283
  | mips64vr5900 | mips64vr5900el \
284
284
  | mipsisa32 | mipsisa32el \
285
285
  | mipsisa32r2 | mipsisa32r2el \
286
+ | mipsisa32r6 | mipsisa32r6el \
286
287
  | mipsisa64 | mipsisa64el \
287
288
  | mipsisa64r2 | mipsisa64r2el \
289
+ | mipsisa64r6 | mipsisa64r6el \
288
290
  | mipsisa64sb1 | mipsisa64sb1el \
289
291
  | mipsisa64sr71k | mipsisa64sr71kel \
290
292
  | mipsr5900 | mipsr5900el \
@@ -296,11 +298,11 @@ case $basic_machine in
296
298
  | nds32 | nds32le | nds32be \
297
299
  | nios | nios2 | nios2eb | nios2el \
298
300
  | ns16k | ns32k \
299
- | open8 \
300
- | or1k | or32 \
301
+ | open8 | or1k | or1knd | or32 \
301
302
  | pdp10 | pdp11 | pj | pjl \
302
303
  | powerpc | powerpc64 | powerpc64le | powerpcle \
303
304
  | pyramid \
305
+ | riscv32 | riscv64 \
304
306
  | rl78 | rx \
305
307
  | score \
306
308
  | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
@@ -311,6 +313,7 @@ case $basic_machine in
311
313
  | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
312
314
  | ubicom32 \
313
315
  | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316
+ | visium \
314
317
  | we32k \
315
318
  | x86 | xc16x | xstormy16 | xtensa \
316
319
  | z8k | z80)
@@ -325,6 +328,9 @@ case $basic_machine in
325
328
  c6x)
326
329
  basic_machine=tic6x-unknown
327
330
  ;;
331
+ leon|leon[3-9])
332
+ basic_machine=sparc-$basic_machine
333
+ ;;
328
334
  m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
329
335
  basic_machine=$basic_machine-unknown
330
336
  os=-none
@@ -402,8 +408,10 @@ case $basic_machine in
402
408
  | mips64vr5900-* | mips64vr5900el-* \
403
409
  | mipsisa32-* | mipsisa32el-* \
404
410
  | mipsisa32r2-* | mipsisa32r2el-* \
411
+ | mipsisa32r6-* | mipsisa32r6el-* \
405
412
  | mipsisa64-* | mipsisa64el-* \
406
413
  | mipsisa64r2-* | mipsisa64r2el-* \
414
+ | mipsisa64r6-* | mipsisa64r6el-* \
407
415
  | mipsisa64sb1-* | mipsisa64sb1el-* \
408
416
  | mipsisa64sr71k-* | mipsisa64sr71kel-* \
409
417
  | mipsr5900-* | mipsr5900el-* \
@@ -415,6 +423,7 @@ case $basic_machine in
415
423
  | nios-* | nios2-* | nios2eb-* | nios2el-* \
416
424
  | none-* | np1-* | ns16k-* | ns32k-* \
417
425
  | open8-* \
426
+ | or1k*-* \
418
427
  | orion-* \
419
428
  | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
420
429
  | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
@@ -432,6 +441,7 @@ case $basic_machine in
432
441
  | ubicom32-* \
433
442
  | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
434
443
  | vax-* \
444
+ | visium-* \
435
445
  | we32k-* \
436
446
  | x86-* | x86_64-* | xc16x-* | xps100-* \
437
447
  | xstormy16-* | xtensa*-* \
@@ -769,6 +779,9 @@ case $basic_machine in
769
779
  basic_machine=m68k-isi
770
780
  os=-sysv
771
781
  ;;
782
+ leon-*|leon[3-9]-*)
783
+ basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
784
+ ;;
772
785
  m68knommu)
773
786
  basic_machine=m68k-unknown
774
787
  os=-linux
@@ -824,6 +837,10 @@ case $basic_machine in
824
837
  basic_machine=powerpc-unknown
825
838
  os=-morphos
826
839
  ;;
840
+ moxiebox)
841
+ basic_machine=moxie-unknown
842
+ os=-moxiebox
843
+ ;;
827
844
  msdos)
828
845
  basic_machine=i386-pc
829
846
  os=-msdos
@@ -1369,14 +1386,14 @@ case $os in
1369
1386
  | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1370
1387
  | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1371
1388
  | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1372
- | -uxpv* | -beos* | -mpeix* | -udk* \
1389
+ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1373
1390
  | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1374
1391
  | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1375
1392
  | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1376
1393
  | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1377
1394
  | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1378
1395
  | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1379
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1396
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1380
1397
  # Remember, each alternative MUST END IN *, to match a version number.
1381
1398
  ;;
1382
1399
  -qnx*)
@@ -1594,9 +1611,6 @@ case $basic_machine in
1594
1611
  mips*-*)
1595
1612
  os=-elf
1596
1613
  ;;
1597
- or1k-*)
1598
- os=-elf
1599
- ;;
1600
1614
  or32-*)
1601
1615
  os=-coff
1602
1616
  ;;
@@ -1,6 +1,6 @@
1
1
  #! /bin/sh
2
2
  # Guess values for system-dependent variables and create Makefiles.
3
- # Generated by GNU Autoconf 2.69 for libusb 1.0.19.
3
+ # Generated by GNU Autoconf 2.69 for libusb 1.0.20.
4
4
  #
5
5
  # Report bugs to <libusb-devel@lists.sourceforge.net>.
6
6
  #
@@ -590,8 +590,8 @@ MAKEFLAGS=
590
590
  # Identity of this package.
591
591
  PACKAGE_NAME='libusb'
592
592
  PACKAGE_TARNAME='libusb'
593
- PACKAGE_VERSION='1.0.19'
594
- PACKAGE_STRING='libusb 1.0.19'
593
+ PACKAGE_VERSION='1.0.20'
594
+ PACKAGE_STRING='libusb 1.0.20'
595
595
  PACKAGE_BUGREPORT='libusb-devel@lists.sourceforge.net'
596
596
  PACKAGE_URL='http://libusb.info'
597
597
 
@@ -632,6 +632,7 @@ ac_includes_default="\
632
632
  # include <unistd.h>
633
633
  #endif"
634
634
 
635
+ enable_option_checking=no
635
636
  ac_subst_vars='am__EXEEXT_FALSE
636
637
  am__EXEEXT_TRUE
637
638
  LTLIBOBJS
@@ -650,6 +651,8 @@ CREATE_IMPORT_LIB_FALSE
650
651
  CREATE_IMPORT_LIB_TRUE
651
652
  THREADS_POSIX_FALSE
652
653
  THREADS_POSIX_TRUE
654
+ OS_HAIKU_FALSE
655
+ OS_HAIKU_TRUE
653
656
  OS_WINDOWS_FALSE
654
657
  OS_WINDOWS_TRUE
655
658
  OS_NETBSD_FALSE
@@ -660,12 +663,14 @@ OS_DARWIN_FALSE
660
663
  OS_DARWIN_TRUE
661
664
  OS_LINUX_FALSE
662
665
  OS_LINUX_TRUE
666
+ OS_HAIKU
663
667
  OS_WINDOWS
664
668
  OS_NETBSD
665
669
  OS_OPENBSD
666
670
  OS_DARWIN
667
671
  USE_UDEV
668
672
  OS_LINUX
673
+ subdirs
669
674
  RC
670
675
  CPP
671
676
  OTOOL64
@@ -812,7 +817,7 @@ LDFLAGS
812
817
  LIBS
813
818
  CPPFLAGS
814
819
  CPP'
815
-
820
+ ac_subdirs_all='libusb/os/haiku'
816
821
 
817
822
  # Initialize some variables set by options.
818
823
  ac_init_help=
@@ -1352,7 +1357,7 @@ if test "$ac_init_help" = "long"; then
1352
1357
  # Omit some internal or obsolete options to make the list less imposing.
1353
1358
  # This message is too long to be a string in the A/UX 3.1 sh.
1354
1359
  cat <<_ACEOF
1355
- \`configure' configures libusb 1.0.19 to adapt to many kinds of systems.
1360
+ \`configure' configures libusb 1.0.20 to adapt to many kinds of systems.
1356
1361
 
1357
1362
  Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1363
 
@@ -1422,7 +1427,7 @@ fi
1422
1427
 
1423
1428
  if test -n "$ac_init_help"; then
1424
1429
  case $ac_init_help in
1425
- short | recursive ) echo "Configuration of libusb 1.0.19:";;
1430
+ short | recursive ) echo "Configuration of libusb 1.0.20:";;
1426
1431
  esac
1427
1432
  cat <<\_ACEOF
1428
1433
 
@@ -1541,7 +1546,7 @@ fi
1541
1546
  test -n "$ac_init_help" && exit $ac_status
1542
1547
  if $ac_init_version; then
1543
1548
  cat <<\_ACEOF
1544
- libusb configure 1.0.19
1549
+ libusb configure 1.0.20
1545
1550
  generated by GNU Autoconf 2.69
1546
1551
 
1547
1552
  Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2010,7 +2015,7 @@ cat >config.log <<_ACEOF
2010
2015
  This file contains any messages produced by compilers while
2011
2016
  running configure, to aid debugging if configure makes a mistake.
2012
2017
 
2013
- It was created by libusb $as_me 1.0.19, which was
2018
+ It was created by libusb $as_me 1.0.20, which was
2014
2019
  generated by GNU Autoconf 2.69. Invocation command line was
2015
2020
 
2016
2021
  $ $0 $@
@@ -2368,7 +2373,7 @@ lt_revision="0"
2368
2373
  lt_age="1"
2369
2374
  LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
2370
2375
 
2371
- am__api_version='1.14'
2376
+ am__api_version='1.15'
2372
2377
 
2373
2378
  ac_aux_dir=
2374
2379
  for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
@@ -2569,8 +2574,8 @@ test "$program_suffix" != NONE &&
2569
2574
  ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2570
2575
  program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2571
2576
 
2572
- # expand $ac_aux_dir to an absolute path
2573
- am_aux_dir=`cd $ac_aux_dir && pwd`
2577
+ # Expand $ac_aux_dir to an absolute path.
2578
+ am_aux_dir=`cd "$ac_aux_dir" && pwd`
2574
2579
 
2575
2580
  if test x"${MISSING+set}" != xset; then
2576
2581
  case $am_aux_dir in
@@ -2589,7 +2594,7 @@ else
2589
2594
  $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2590
2595
  fi
2591
2596
 
2592
- if test x"${install_sh}" != xset; then
2597
+ if test x"${install_sh+set}" != xset; then
2593
2598
  case $am_aux_dir in
2594
2599
  *\ * | *\ *)
2595
2600
  install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
@@ -2883,7 +2888,7 @@ fi
2883
2888
 
2884
2889
  # Define the identity of the package.
2885
2890
  PACKAGE='libusb'
2886
- VERSION='1.0.19'
2891
+ VERSION='1.0.20'
2887
2892
 
2888
2893
 
2889
2894
  cat >>confdefs.h <<_ACEOF
@@ -2917,8 +2922,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2917
2922
  # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2918
2923
  mkdir_p='$(MKDIR_P)'
2919
2924
 
2920
- # We need awk for the "check" target. The system "awk" is bad on
2921
- # some platforms.
2925
+ # We need awk for the "check" target (and possibly the TAP driver). The
2926
+ # system "awk" is bad on some platforms.
2922
2927
  # Always define AMTAR for backward compatibility. Yes, it's still used
2923
2928
  # in the wild :-( We should find a proper way to deprecate it ...
2924
2929
  AMTAR='$${TAR-tar}'
@@ -2976,6 +2981,7 @@ END
2976
2981
  fi
2977
2982
  fi
2978
2983
 
2984
+
2979
2985
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2980
2986
  $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2981
2987
  # Check whether --enable-maintainer-mode was given.
@@ -11953,6 +11959,16 @@ $as_echo "Cygwin (using Windows backend)" >&6; }
11953
11959
  backend="windows"
11954
11960
  threads="posix"
11955
11961
  ;;
11962
+ *-haiku*)
11963
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku" >&5
11964
+ $as_echo "Haiku" >&6; }
11965
+
11966
+
11967
+ subdirs="$subdirs libusb/os/haiku"
11968
+
11969
+ backend="haiku"
11970
+ threads="posix"
11971
+ ;;
11956
11972
  *)
11957
11973
  as_fn_error $? "unsupported operating system" "$LINENO" 5
11958
11974
  esac
@@ -12134,8 +12150,6 @@ done
12134
12150
 
12135
12151
  case $is_backend_android in
12136
12152
  yes)
12137
- THREAD_CFLAGS="-c"
12138
- LIBS="${LIBS} -c"
12139
12153
 
12140
12154
  $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
12141
12155
 
@@ -12249,6 +12263,31 @@ $as_echo "#define OS_WINDOWS 1" >>confdefs.h
12249
12263
 
12250
12264
  $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
12251
12265
 
12266
+
12267
+ $as_echo "#define WINVER 0x0501" >>confdefs.h
12268
+
12269
+ ;;
12270
+ haiku)
12271
+
12272
+ $as_echo "#define OS_HAIKU 1" >>confdefs.h
12273
+
12274
+
12275
+ LIBS="${LIBS} -lbe"
12276
+ for ac_header in poll.h
12277
+ do :
12278
+ ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12279
+ if test "x$ac_cv_header_poll_h" = xyes; then :
12280
+ cat >>confdefs.h <<_ACEOF
12281
+ #define HAVE_POLL_H 1
12282
+ _ACEOF
12283
+
12284
+ fi
12285
+
12286
+ done
12287
+
12288
+
12289
+ $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
12290
+
12252
12291
  ;;
12253
12292
  esac
12254
12293
 
@@ -12294,6 +12333,14 @@ else
12294
12333
  OS_WINDOWS_FALSE=
12295
12334
  fi
12296
12335
 
12336
+ if test "x$backend" = xhaiku; then
12337
+ OS_HAIKU_TRUE=
12338
+ OS_HAIKU_FALSE='#'
12339
+ else
12340
+ OS_HAIKU_TRUE='#'
12341
+ OS_HAIKU_FALSE=
12342
+ fi
12343
+
12297
12344
  if test "x$threads" = xposix; then
12298
12345
  THREADS_POSIX_TRUE=
12299
12346
  THREADS_POSIX_FALSE='#'
@@ -12591,7 +12638,35 @@ fi
12591
12638
  done
12592
12639
 
12593
12640
 
12594
- AM_CFLAGS="${AM_CFLAGS} -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
12641
+ # check for -std=gnu99 compiler support
12642
+ saved_cflags="$CFLAGS"
12643
+ CFLAGS="-std=gnu99"
12644
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -std=gnu99" >&5
12645
+ $as_echo_n "checking whether CC supports -std=gnu99... " >&6; }
12646
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647
+ /* end confdefs.h. */
12648
+
12649
+ int
12650
+ main ()
12651
+ {
12652
+
12653
+ ;
12654
+ return 0;
12655
+ }
12656
+ _ACEOF
12657
+ if ac_fn_c_try_compile "$LINENO"; then :
12658
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659
+ $as_echo "yes" >&6; }
12660
+ AM_CFLAGS="${AM_CFLAGS} -std=gnu99"
12661
+ else
12662
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663
+ $as_echo "no" >&6; }
12664
+
12665
+ fi
12666
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667
+ CFLAGS="$saved_cflags"
12668
+
12669
+ AM_CFLAGS="${AM_CFLAGS} -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
12595
12670
 
12596
12671
 
12597
12672
 
@@ -12767,6 +12842,10 @@ if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
12767
12842
  as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
12768
12843
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
12769
12844
  fi
12845
+ if test -z "${OS_HAIKU_TRUE}" && test -z "${OS_HAIKU_FALSE}"; then
12846
+ as_fn_error $? "conditional \"OS_HAIKU\" was never defined.
12847
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
12848
+ fi
12770
12849
  if test -z "${THREADS_POSIX_TRUE}" && test -z "${THREADS_POSIX_FALSE}"; then
12771
12850
  as_fn_error $? "conditional \"THREADS_POSIX\" was never defined.
12772
12851
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -13188,7 +13267,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188
13267
  # report actual input values of CONFIG_FILES etc. instead of their
13189
13268
  # values after options handling.
13190
13269
  ac_log="
13191
- This file was extended by libusb $as_me 1.0.19, which was
13270
+ This file was extended by libusb $as_me 1.0.20, which was
13192
13271
  generated by GNU Autoconf 2.69. Invocation command line was
13193
13272
 
13194
13273
  CONFIG_FILES = $CONFIG_FILES
@@ -13255,7 +13334,7 @@ _ACEOF
13255
13334
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256
13335
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13257
13336
  ac_cs_version="\\
13258
- libusb config.status 1.0.19
13337
+ libusb config.status 1.0.20
13259
13338
  configured by $0, generated by GNU Autoconf 2.69,
13260
13339
  with options \\"\$ac_cs_config\\"
13261
13340
 
@@ -15235,6 +15314,151 @@ if test "$no_create" != yes; then
15235
15314
  # would make configure fail if this is the last instruction.
15236
15315
  $ac_cs_success || as_fn_exit 1
15237
15316
  fi
15317
+
15318
+ #
15319
+ # CONFIG_SUBDIRS section.
15320
+ #
15321
+ if test "$no_recursion" != yes; then
15322
+
15323
+ # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15324
+ # so they do not pile up.
15325
+ ac_sub_configure_args=
15326
+ ac_prev=
15327
+ eval "set x $ac_configure_args"
15328
+ shift
15329
+ for ac_arg
15330
+ do
15331
+ if test -n "$ac_prev"; then
15332
+ ac_prev=
15333
+ continue
15334
+ fi
15335
+ case $ac_arg in
15336
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
15337
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15338
+ ac_prev=cache_file ;;
15339
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15340
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15341
+ | --c=*)
15342
+ ;;
15343
+ --config-cache | -C)
15344
+ ;;
15345
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15346
+ ac_prev=srcdir ;;
15347
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15348
+ ;;
15349
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15350
+ ac_prev=prefix ;;
15351
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15352
+ ;;
15353
+ --disable-option-checking)
15354
+ ;;
15355
+ *)
15356
+ case $ac_arg in
15357
+ *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15358
+ esac
15359
+ as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15360
+ esac
15361
+ done
15362
+
15363
+ # Always prepend --prefix to ensure using the same prefix
15364
+ # in subdir configurations.
15365
+ ac_arg="--prefix=$prefix"
15366
+ case $ac_arg in
15367
+ *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15368
+ esac
15369
+ ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15370
+
15371
+ # Pass --silent
15372
+ if test "$silent" = yes; then
15373
+ ac_sub_configure_args="--silent $ac_sub_configure_args"
15374
+ fi
15375
+
15376
+ # Always prepend --disable-option-checking to silence warnings, since
15377
+ # different subdirs can have different --enable and --with options.
15378
+ ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15379
+
15380
+ ac_popdir=`pwd`
15381
+ for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15382
+
15383
+ # Do not complain, so a configure script can configure whichever
15384
+ # parts of a large source tree are present.
15385
+ test -d "$srcdir/$ac_dir" || continue
15386
+
15387
+ ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15388
+ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15389
+ $as_echo "$ac_msg" >&6
15390
+ as_dir="$ac_dir"; as_fn_mkdir_p
15391
+ ac_builddir=.
15392
+
15393
+ case "$ac_dir" in
15394
+ .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15395
+ *)
15396
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15397
+ # A ".." for each directory in $ac_dir_suffix.
15398
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15399
+ case $ac_top_builddir_sub in
15400
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15401
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15402
+ esac ;;
15403
+ esac
15404
+ ac_abs_top_builddir=$ac_pwd
15405
+ ac_abs_builddir=$ac_pwd$ac_dir_suffix
15406
+ # for backward compatibility:
15407
+ ac_top_builddir=$ac_top_build_prefix
15408
+
15409
+ case $srcdir in
15410
+ .) # We are building in place.
15411
+ ac_srcdir=.
15412
+ ac_top_srcdir=$ac_top_builddir_sub
15413
+ ac_abs_top_srcdir=$ac_pwd ;;
15414
+ [\\/]* | ?:[\\/]* ) # Absolute name.
15415
+ ac_srcdir=$srcdir$ac_dir_suffix;
15416
+ ac_top_srcdir=$srcdir
15417
+ ac_abs_top_srcdir=$srcdir ;;
15418
+ *) # Relative name.
15419
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15420
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
15421
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15422
+ esac
15423
+ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15424
+
15425
+
15426
+ cd "$ac_dir"
15427
+
15428
+ # Check for guested configure; otherwise get Cygnus style configure.
15429
+ if test -f "$ac_srcdir/configure.gnu"; then
15430
+ ac_sub_configure=$ac_srcdir/configure.gnu
15431
+ elif test -f "$ac_srcdir/configure"; then
15432
+ ac_sub_configure=$ac_srcdir/configure
15433
+ elif test -f "$ac_srcdir/configure.in"; then
15434
+ # This should be Cygnus configure.
15435
+ ac_sub_configure=$ac_aux_dir/configure
15436
+ else
15437
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15438
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15439
+ ac_sub_configure=
15440
+ fi
15441
+
15442
+ # The recursion is here.
15443
+ if test -n "$ac_sub_configure"; then
15444
+ # Make the cache file name correct relative to the subdirectory.
15445
+ case $cache_file in
15446
+ [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15447
+ *) # Relative name.
15448
+ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15449
+ esac
15450
+
15451
+ { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15452
+ $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15453
+ # The eval makes quoting arguments work.
15454
+ eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15455
+ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15456
+ as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15457
+ fi
15458
+
15459
+ cd "$ac_popdir"
15460
+ done
15461
+ fi
15238
15462
  if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15239
15463
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15240
15464
  $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}