libusb 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. data/.travis.yml +2 -2
  2. data/Gemfile +0 -8
  3. data/History.md +5 -0
  4. data/README.md +6 -6
  5. data/Rakefile +9 -9
  6. data/ext/extconf.rb +1 -1
  7. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/AUTHORS +10 -0
  8. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/COPYING +0 -0
  9. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/ChangeLog +17 -9
  10. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/INSTALL +0 -0
  11. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Makefile.am +0 -0
  12. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Makefile.in +153 -178
  13. data/ext/libusb-1.0.18/NEWS +2 -0
  14. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/PORTING +13 -13
  15. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/README +9 -11
  16. data/ext/libusb-1.0.18/TODO +2 -0
  17. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/common.xcconfig +3 -3
  18. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/config.h +0 -0
  19. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/debug.xcconfig +2 -2
  20. data/ext/{libusbx-1.0.17/Xcode/libusbx.xcconfig → libusb-1.0.18/Xcode/libusb.xcconfig} +2 -2
  21. data/ext/libusb-1.0.18/Xcode/libusb.xcodeproj/project.pbxproj +1 -0
  22. data/ext/{libusbx-1.0.17/Xcode/libusbx_debug.xcconfig → libusb-1.0.18/Xcode/libusb_debug.xcconfig} +3 -3
  23. data/ext/{libusbx-1.0.17/Xcode/libusbx_release.xcconfig → libusb-1.0.18/Xcode/libusb_release.xcconfig} +3 -3
  24. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/release.xcconfig +2 -2
  25. data/ext/{libusbx-1.0.17/m4/libtool.m4 → libusb-1.0.18/aclocal.m4} +1731 -27
  26. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/README +0 -0
  27. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/config.h +1 -10
  28. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/Android.mk +0 -0
  29. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/Application.mk +6 -1
  30. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/examples.mk +0 -0
  31. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/libusb.mk +0 -0
  32. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/tests.mk +0 -0
  33. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/compile +3 -7
  34. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.guess +19 -24
  35. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.h.in +0 -0
  36. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.sub +30 -47
  37. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/configure +118 -172
  38. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/configure.ac +24 -2
  39. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/depcomp +186 -268
  40. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/Makefile.am +1 -1
  41. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/Makefile.in +36 -73
  42. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/doxygen.cfg.in +1 -1
  43. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/Makefile.am +0 -0
  44. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/Makefile.in +68 -132
  45. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/dpfp.c +1 -1
  46. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/dpfp_threaded.c +1 -1
  47. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/ezusb.c +57 -26
  48. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/ezusb.h +0 -0
  49. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/fxload.c +3 -3
  50. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt.c +0 -0
  51. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt.h +0 -0
  52. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt1.c +0 -0
  53. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/hotplugtest.c +9 -2
  54. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/listdevs.c +1 -1
  55. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/sam3u_benchmark.c +0 -0
  56. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/xusb.c +20 -4
  57. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/install-sh +7 -7
  58. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb-1.0.pc.in +1 -1
  59. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/Makefile.am +1 -1
  60. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/Makefile.in +94 -134
  61. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/core.c +95 -74
  62. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/descriptor.c +2 -2
  63. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/hotplug.c +3 -3
  64. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/hotplug.h +1 -1
  65. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/io.c +127 -116
  66. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb-1.0.def +0 -0
  67. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb-1.0.rc +1 -1
  68. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb.h +42 -39
  69. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusbi.h +20 -11
  70. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/darwin_usb.c +20 -16
  71. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/darwin_usb.h +1 -1
  72. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_netlink.c +0 -0
  73. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_udev.c +0 -0
  74. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_usbfs.c +15 -12
  75. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_usbfs.h +0 -0
  76. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/netbsd_usb.c +2 -4
  77. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/openbsd_usb.c +5 -2
  78. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_posix.c +0 -0
  79. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_posix.h +0 -0
  80. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_windows.c +2 -2
  81. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_windows.h +0 -0
  82. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_posix.c +1 -1
  83. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_posix.h +1 -1
  84. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_windows.c +1 -1
  85. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_windows.h +1 -1
  86. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/wince_usb.c +1 -2
  87. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/wince_usb.h +2 -2
  88. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_common.h +1 -1
  89. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_usb.c +53 -33
  90. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_usb.h +6 -1
  91. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/strerror.c +2 -2
  92. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/sync.c +6 -6
  93. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/version.h +1 -1
  94. data/ext/libusb-1.0.18/libusb/version_nano.h +1 -0
  95. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/ltmain.sh +3 -3
  96. data/ext/libusb-1.0.18/missing +331 -0
  97. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/Makefile.am +1 -1
  98. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/Makefile.in +69 -127
  99. data/ext/{libusbx-1.0.17/tests/libusbx_testlib.h → libusb-1.0.18/tests/libusb_testlib.h} +15 -15
  100. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/stress.c +16 -16
  101. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/testlib.c +21 -20
  102. data/lib/libusb/version_gem.rb +1 -1
  103. data/libusb.gemspec +1 -6
  104. metadata +117 -135
  105. checksums.yaml +0 -7
  106. checksums.yaml.gz.sig +0 -0
  107. data.tar.gz.sig +0 -0
  108. data/ext/libusbx-1.0.17/NEWS +0 -2
  109. data/ext/libusbx-1.0.17/TODO +0 -2
  110. data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +0 -864
  111. data/ext/libusbx-1.0.17/aclocal.m4 +0 -1112
  112. data/ext/libusbx-1.0.17/libusb/version_nano.h +0 -1
  113. data/ext/libusbx-1.0.17/m4/ltoptions.m4 +0 -384
  114. data/ext/libusbx-1.0.17/m4/ltsugar.m4 +0 -123
  115. data/ext/libusbx-1.0.17/m4/ltversion.m4 +0 -23
  116. data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +0 -98
  117. data/ext/libusbx-1.0.17/missing +0 -215
  118. metadata.gz.sig +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Windows backend for libusbx 1.0
2
+ * Windows backend for libusb 1.0
3
3
  * Copyright © 2009-2012 Pete Batard <pete@akeo.ie>
4
4
  * With contributions from Michael Plante, Orin Eman et al.
5
5
  * Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
@@ -40,6 +40,11 @@
40
40
  #define SPDRP_INSTALL_STATE 34
41
41
  #endif
42
42
 
43
+ // Missing from MinGW
44
+ #if !defined(FACILITY_SETUPAPI)
45
+ #define FACILITY_SETUPAPI 15
46
+ #endif
47
+
43
48
  #if defined(__CYGWIN__ )
44
49
  #define _stricmp stricmp
45
50
  // cygwin produces a warning unless these prototypes are defined
@@ -35,7 +35,7 @@ static size_t usbi_locale = 0;
35
35
  * How to add a new \ref libusb_strerror() translation:
36
36
  * <ol>
37
37
  * <li> Download the latest \c strerror.c from:<br>
38
- * https://raw.github.com/libusbx/libusbx/master/libusb/sterror.c </li>
38
+ * https://raw.github.com/libusb/libusb/master/libusb/sterror.c </li>
39
39
  * <li> Open the file in an UTF-8 capable editor </li>
40
40
  * <li> Add the 2 letter <a href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">ISO 639-1</a>
41
41
  * code for your locale at the end of \c usbi_locale_supported[]<br>
@@ -53,7 +53,7 @@ static size_t usbi_locale = 0;
53
53
  * }
54
54
  * };\endcode </li>
55
55
  * <li> Translate each of the English messages from the section you copied into your language </li>
56
- * <li> Save the file (in UTF-8 format) and send it to \c libusbx-devel\@lists.sourceforge.net </li>
56
+ * <li> Save the file (in UTF-8 format) and send it to \c libusb-devel\@lists.sourceforge.net </li>
57
57
  * </ol>
58
58
  */
59
59
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Synchronous I/O functions for libusbx
2
+ * Synchronous I/O functions for libusb
3
3
  * Copyright © 2007-2008 Daniel Drake <dsd@gentoo.org>
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
@@ -28,7 +28,7 @@
28
28
  /**
29
29
  * @defgroup syncio Synchronous device I/O
30
30
  *
31
- * This page documents libusbx's synchronous (blocking) API for USB device I/O.
31
+ * This page documents libusb's synchronous (blocking) API for USB device I/O.
32
32
  * This interface is easy to use but has some limitations. More advanced users
33
33
  * may wish to consider using the \ref asyncio "asynchronous I/O API" instead.
34
34
  */
@@ -222,9 +222,9 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle,
222
222
  * Not all of the data may have been written.
223
223
  *
224
224
  * Also check <tt>transferred</tt> when dealing with a timeout error code.
225
- * libusbx may have to split your transfer into a number of chunks to satisfy
225
+ * libusb may have to split your transfer into a number of chunks to satisfy
226
226
  * underlying O/S requirements, meaning that the timeout may expire after
227
- * the first few chunks have completed. libusbx is careful not to lose any data
227
+ * the first few chunks have completed. libusb is careful not to lose any data
228
228
  * that may have been transferred; do not assume that timeout conditions
229
229
  * indicate a complete lack of I/O.
230
230
  *
@@ -270,9 +270,9 @@ int API_EXPORTED libusb_bulk_transfer(struct libusb_device_handle *dev_handle,
270
270
  * writes. Not all of the data may have been written.
271
271
  *
272
272
  * Also check <tt>transferred</tt> when dealing with a timeout error code.
273
- * libusbx may have to split your transfer into a number of chunks to satisfy
273
+ * libusb may have to split your transfer into a number of chunks to satisfy
274
274
  * underlying O/S requirements, meaning that the timeout may expire after
275
- * the first few chunks have completed. libusbx is careful not to lose any data
275
+ * the first few chunks have completed. libusb is careful not to lose any data
276
276
  * that may have been transferred; do not assume that timeout conditions
277
277
  * indicate a complete lack of I/O.
278
278
  *
@@ -7,7 +7,7 @@
7
7
  #define LIBUSB_MINOR 0
8
8
  #endif
9
9
  #ifndef LIBUSB_MICRO
10
- #define LIBUSB_MICRO 17
10
+ #define LIBUSB_MICRO 18
11
11
  #endif
12
12
  #ifndef LIBUSB_NANO
13
13
  #define LIBUSB_NANO 0
@@ -0,0 +1 @@
1
+ #define LIBUSB_NANO 10866
@@ -6513,7 +6513,7 @@ func_mode_link ()
6513
6513
  # Find the relevant object directory and library name.
6514
6514
  if test "X$installed" = Xyes; then
6515
6515
  if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6516
- func_warning "library \`$lib' was moved."
6516
+ #func_warning "library \`$lib' was moved."
6517
6517
  dir="$ladir"
6518
6518
  absdir="$abs_ladir"
6519
6519
  libdir="$abs_ladir"
@@ -7080,8 +7080,8 @@ func_mode_link ()
7080
7080
  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7081
7081
  test -z "$libdir" && \
7082
7082
  func_fatal_error "\`$deplib' is not a valid libtool archive"
7083
- test "$absdir" != "$libdir" && \
7084
- func_warning "\`$deplib' seems to be moved"
7083
+ #test "$absdir" != "$libdir" && \
7084
+ # func_warning "\`$deplib' seems to be moved"
7085
7085
 
7086
7086
  path="-L$absdir"
7087
7087
  fi
@@ -0,0 +1,331 @@
1
+ #! /bin/sh
2
+ # Common stub for a few missing GNU programs while installing.
3
+
4
+ scriptversion=2012-01-06.13; # UTC
5
+
6
+ # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
7
+ # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
8
+ # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
+
10
+ # This program is free software; you can redistribute it and/or modify
11
+ # it under the terms of the GNU General Public License as published by
12
+ # the Free Software Foundation; either version 2, or (at your option)
13
+ # any later version.
14
+
15
+ # This program is distributed in the hope that it will be useful,
16
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+ # GNU General Public License for more details.
19
+
20
+ # You should have received a copy of the GNU General Public License
21
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
22
+
23
+ # As a special exception to the GNU General Public License, if you
24
+ # distribute this file as part of a program that contains a
25
+ # configuration script generated by Autoconf, you may include it under
26
+ # the same distribution terms that you use for the rest of that program.
27
+
28
+ if test $# -eq 0; then
29
+ echo 1>&2 "Try \`$0 --help' for more information"
30
+ exit 1
31
+ fi
32
+
33
+ run=:
34
+ sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
35
+ sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
36
+
37
+ # In the cases where this matters, `missing' is being run in the
38
+ # srcdir already.
39
+ if test -f configure.ac; then
40
+ configure_ac=configure.ac
41
+ else
42
+ configure_ac=configure.in
43
+ fi
44
+
45
+ msg="missing on your system"
46
+
47
+ case $1 in
48
+ --run)
49
+ # Try to run requested program, and just exit if it succeeds.
50
+ run=
51
+ shift
52
+ "$@" && exit 0
53
+ # Exit code 63 means version mismatch. This often happens
54
+ # when the user try to use an ancient version of a tool on
55
+ # a file that requires a minimum version. In this case we
56
+ # we should proceed has if the program had been absent, or
57
+ # if --run hadn't been passed.
58
+ if test $? = 63; then
59
+ run=:
60
+ msg="probably too old"
61
+ fi
62
+ ;;
63
+
64
+ -h|--h|--he|--hel|--help)
65
+ echo "\
66
+ $0 [OPTION]... PROGRAM [ARGUMENT]...
67
+
68
+ Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
69
+ error status if there is no known handling for PROGRAM.
70
+
71
+ Options:
72
+ -h, --help display this help and exit
73
+ -v, --version output version information and exit
74
+ --run try to run the given command, and emulate it if it fails
75
+
76
+ Supported PROGRAM values:
77
+ aclocal touch file \`aclocal.m4'
78
+ autoconf touch file \`configure'
79
+ autoheader touch file \`config.h.in'
80
+ autom4te touch the output file, or create a stub one
81
+ automake touch all \`Makefile.in' files
82
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
83
+ flex create \`lex.yy.c', if possible, from existing .c
84
+ help2man touch the output file
85
+ lex create \`lex.yy.c', if possible, from existing .c
86
+ makeinfo touch the output file
87
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
+
89
+ Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90
+ \`g' are ignored when checking the name.
91
+
92
+ Send bug reports to <bug-automake@gnu.org>."
93
+ exit $?
94
+ ;;
95
+
96
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97
+ echo "missing $scriptversion (GNU Automake)"
98
+ exit $?
99
+ ;;
100
+
101
+ -*)
102
+ echo 1>&2 "$0: Unknown \`$1' option"
103
+ echo 1>&2 "Try \`$0 --help' for more information"
104
+ exit 1
105
+ ;;
106
+
107
+ esac
108
+
109
+ # normalize program name to check for.
110
+ program=`echo "$1" | sed '
111
+ s/^gnu-//; t
112
+ s/^gnu//; t
113
+ s/^g//; t'`
114
+
115
+ # Now exit if we have it, but it failed. Also exit now if we
116
+ # don't have it and --version was passed (most likely to detect
117
+ # the program). This is about non-GNU programs, so use $1 not
118
+ # $program.
119
+ case $1 in
120
+ lex*|yacc*)
121
+ # Not GNU programs, they don't have --version.
122
+ ;;
123
+
124
+ *)
125
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
126
+ # We have it, but it failed.
127
+ exit 1
128
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129
+ # Could not run --version or --help. This is probably someone
130
+ # running `$TOOL --version' or `$TOOL --help' to check whether
131
+ # $TOOL exists and not knowing $TOOL uses missing.
132
+ exit 1
133
+ fi
134
+ ;;
135
+ esac
136
+
137
+ # If it does not exist, or fails to run (possibly an outdated version),
138
+ # try to emulate it.
139
+ case $program in
140
+ aclocal*)
141
+ echo 1>&2 "\
142
+ WARNING: \`$1' is $msg. You should only need it if
143
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
144
+ to install the \`Automake' and \`Perl' packages. Grab them from
145
+ any GNU archive site."
146
+ touch aclocal.m4
147
+ ;;
148
+
149
+ autoconf*)
150
+ echo 1>&2 "\
151
+ WARNING: \`$1' is $msg. You should only need it if
152
+ you modified \`${configure_ac}'. You might want to install the
153
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
154
+ archive site."
155
+ touch configure
156
+ ;;
157
+
158
+ autoheader*)
159
+ echo 1>&2 "\
160
+ WARNING: \`$1' is $msg. You should only need it if
161
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
162
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
163
+ from any GNU archive site."
164
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
165
+ test -z "$files" && files="config.h"
166
+ touch_files=
167
+ for f in $files; do
168
+ case $f in
169
+ *:*) touch_files="$touch_files "`echo "$f" |
170
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
171
+ *) touch_files="$touch_files $f.in";;
172
+ esac
173
+ done
174
+ touch $touch_files
175
+ ;;
176
+
177
+ automake*)
178
+ echo 1>&2 "\
179
+ WARNING: \`$1' is $msg. You should only need it if
180
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
181
+ You might want to install the \`Automake' and \`Perl' packages.
182
+ Grab them from any GNU archive site."
183
+ find . -type f -name Makefile.am -print |
184
+ sed 's/\.am$/.in/' |
185
+ while read f; do touch "$f"; done
186
+ ;;
187
+
188
+ autom4te*)
189
+ echo 1>&2 "\
190
+ WARNING: \`$1' is needed, but is $msg.
191
+ You might have modified some files without having the
192
+ proper tools for further handling them.
193
+ You can get \`$1' as part of \`Autoconf' from any GNU
194
+ archive site."
195
+
196
+ file=`echo "$*" | sed -n "$sed_output"`
197
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
198
+ if test -f "$file"; then
199
+ touch $file
200
+ else
201
+ test -z "$file" || exec >$file
202
+ echo "#! /bin/sh"
203
+ echo "# Created by GNU Automake missing as a replacement of"
204
+ echo "# $ $@"
205
+ echo "exit 0"
206
+ chmod +x $file
207
+ exit 1
208
+ fi
209
+ ;;
210
+
211
+ bison*|yacc*)
212
+ echo 1>&2 "\
213
+ WARNING: \`$1' $msg. You should only need it if
214
+ you modified a \`.y' file. You may need the \`Bison' package
215
+ in order for those modifications to take effect. You can get
216
+ \`Bison' from any GNU archive site."
217
+ rm -f y.tab.c y.tab.h
218
+ if test $# -ne 1; then
219
+ eval LASTARG=\${$#}
220
+ case $LASTARG in
221
+ *.y)
222
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
223
+ if test -f "$SRCFILE"; then
224
+ cp "$SRCFILE" y.tab.c
225
+ fi
226
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
227
+ if test -f "$SRCFILE"; then
228
+ cp "$SRCFILE" y.tab.h
229
+ fi
230
+ ;;
231
+ esac
232
+ fi
233
+ if test ! -f y.tab.h; then
234
+ echo >y.tab.h
235
+ fi
236
+ if test ! -f y.tab.c; then
237
+ echo 'main() { return 0; }' >y.tab.c
238
+ fi
239
+ ;;
240
+
241
+ lex*|flex*)
242
+ echo 1>&2 "\
243
+ WARNING: \`$1' is $msg. You should only need it if
244
+ you modified a \`.l' file. You may need the \`Flex' package
245
+ in order for those modifications to take effect. You can get
246
+ \`Flex' from any GNU archive site."
247
+ rm -f lex.yy.c
248
+ if test $# -ne 1; then
249
+ eval LASTARG=\${$#}
250
+ case $LASTARG in
251
+ *.l)
252
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
253
+ if test -f "$SRCFILE"; then
254
+ cp "$SRCFILE" lex.yy.c
255
+ fi
256
+ ;;
257
+ esac
258
+ fi
259
+ if test ! -f lex.yy.c; then
260
+ echo 'main() { return 0; }' >lex.yy.c
261
+ fi
262
+ ;;
263
+
264
+ help2man*)
265
+ echo 1>&2 "\
266
+ WARNING: \`$1' is $msg. You should only need it if
267
+ you modified a dependency of a manual page. You may need the
268
+ \`Help2man' package in order for those modifications to take
269
+ effect. You can get \`Help2man' from any GNU archive site."
270
+
271
+ file=`echo "$*" | sed -n "$sed_output"`
272
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
273
+ if test -f "$file"; then
274
+ touch $file
275
+ else
276
+ test -z "$file" || exec >$file
277
+ echo ".ab help2man is required to generate this page"
278
+ exit $?
279
+ fi
280
+ ;;
281
+
282
+ makeinfo*)
283
+ echo 1>&2 "\
284
+ WARNING: \`$1' is $msg. You should only need it if
285
+ you modified a \`.texi' or \`.texinfo' file, or any other file
286
+ indirectly affecting the aspect of the manual. The spurious
287
+ call might also be the consequence of using a buggy \`make' (AIX,
288
+ DU, IRIX). You might want to install the \`Texinfo' package or
289
+ the \`GNU make' package. Grab either from any GNU archive site."
290
+ # The file to touch is that specified with -o ...
291
+ file=`echo "$*" | sed -n "$sed_output"`
292
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
293
+ if test -z "$file"; then
294
+ # ... or it is the one specified with @setfilename ...
295
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
296
+ file=`sed -n '
297
+ /^@setfilename/{
298
+ s/.* \([^ ]*\) *$/\1/
299
+ p
300
+ q
301
+ }' $infile`
302
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
303
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
304
+ fi
305
+ # If the file does not exist, the user really needs makeinfo;
306
+ # let's fail without touching anything.
307
+ test -f $file || exit 1
308
+ touch $file
309
+ ;;
310
+
311
+ *)
312
+ echo 1>&2 "\
313
+ WARNING: \`$1' is needed, and is $msg.
314
+ You might have modified some files without having the
315
+ proper tools for further handling them. Check the \`README' file,
316
+ it often tells you about the needed prerequisites for installing
317
+ this package. You may also peek at any GNU archive site, in case
318
+ some other package would contain this missing \`$1' program."
319
+ exit 1
320
+ ;;
321
+ esac
322
+
323
+ exit 0
324
+
325
+ # Local variables:
326
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
327
+ # time-stamp-start: "scriptversion="
328
+ # time-stamp-format: "%:y-%02m-%02d.%02H"
329
+ # time-stamp-time-zone: "UTC"
330
+ # time-stamp-end: "; # UTC"
331
+ # End:
@@ -3,4 +3,4 @@ LDADD = ../libusb/libusb-1.0.la
3
3
 
4
4
  noinst_PROGRAMS = stress
5
5
 
6
- stress_SOURCES = stress.c libusbx_testlib.h testlib.c
6
+ stress_SOURCES = stress.c libusb_testlib.h testlib.c
@@ -1,8 +1,9 @@
1
- # Makefile.in generated by automake 1.13.4 from Makefile.am.
1
+ # Makefile.in generated by automake 1.11.5 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
-
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6
+ # Foundation, Inc.
6
7
  # This Makefile.in is free software; the Free Software Foundation
7
8
  # gives unlimited permission to copy and/or distribute it,
8
9
  # with or without modifications, as long as this notice is preserved.
@@ -15,51 +16,23 @@
15
16
  @SET_MAKE@
16
17
 
17
18
  VPATH = @srcdir@
18
- am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19
- am__make_running_with_option = \
20
- case $${target_option-} in \
21
- ?) ;; \
22
- *) echo "am__make_running_with_option: internal error: invalid" \
23
- "target option '$${target_option-}' specified" >&2; \
24
- exit 1;; \
25
- esac; \
26
- has_opt=no; \
27
- sane_makeflags=$$MAKEFLAGS; \
28
- if $(am__is_gnu_make); then \
29
- sane_makeflags=$$MFLAGS; \
30
- else \
19
+ am__make_dryrun = \
20
+ { \
21
+ am__dry=no; \
31
22
  case $$MAKEFLAGS in \
32
23
  *\\[\ \ ]*) \
33
- bs=\\; \
34
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36
- esac; \
37
- fi; \
38
- skip_next=no; \
39
- strip_trailopt () \
40
- { \
41
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42
- }; \
43
- for flg in $$sane_makeflags; do \
44
- test $$skip_next = yes && { skip_next=no; continue; }; \
45
- case $$flg in \
46
- *=*|--*) continue;; \
47
- -*I) strip_trailopt 'I'; skip_next=yes;; \
48
- -*I?*) strip_trailopt 'I';; \
49
- -*O) strip_trailopt 'O'; skip_next=yes;; \
50
- -*O?*) strip_trailopt 'O';; \
51
- -*l) strip_trailopt 'l'; skip_next=yes;; \
52
- -*l?*) strip_trailopt 'l';; \
53
- -[dEDm]) skip_next=yes;; \
54
- -[JT]) skip_next=yes;; \
55
- esac; \
56
- case $$flg in \
57
- *$$target_option*) has_opt=yes; break;; \
24
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26
+ *) \
27
+ for am__flg in $$MAKEFLAGS; do \
28
+ case $$am__flg in \
29
+ *=*|--*) ;; \
30
+ *n*) am__dry=yes; break;; \
31
+ esac; \
32
+ done;; \
58
33
  esac; \
59
- done; \
60
- test $$has_opt = yes
61
- am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62
- am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
34
+ test $$am__dry = yes; \
35
+ }
63
36
  pkgdatadir = $(datadir)/@PACKAGE@
64
37
  pkgincludedir = $(includedir)/@PACKAGE@
65
38
  pkglibdir = $(libdir)/@PACKAGE@
@@ -80,13 +53,10 @@ build_triplet = @build@
80
53
  host_triplet = @host@
81
54
  noinst_PROGRAMS = stress$(EXEEXT)
82
55
  subdir = tests
83
- DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84
- $(top_srcdir)/depcomp
56
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
85
57
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
86
- am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
87
- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
88
- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
89
- $(top_srcdir)/libusb/version.h $(top_srcdir)/configure.ac
58
+ am__aclocal_m4_deps = $(top_srcdir)/libusb/version.h \
59
+ $(top_srcdir)/configure.ac
90
60
  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91
61
  $(ACLOCAL_M4)
92
62
  mkinstalldirs = $(install_sh) -d
@@ -101,19 +71,6 @@ stress_DEPENDENCIES = ../libusb/libusb-1.0.la
101
71
  AM_V_lt = $(am__v_lt_@AM_V@)
102
72
  am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
103
73
  am__v_lt_0 = --silent
104
- am__v_lt_1 =
105
- AM_V_P = $(am__v_P_@AM_V@)
106
- am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
107
- am__v_P_0 = false
108
- am__v_P_1 = :
109
- AM_V_GEN = $(am__v_GEN_@AM_V@)
110
- am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
111
- am__v_GEN_0 = @echo " GEN " $@;
112
- am__v_GEN_1 =
113
- AM_V_at = $(am__v_at_@AM_V@)
114
- am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
115
- am__v_at_0 = @
116
- am__v_at_1 =
117
74
  DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
118
75
  depcomp = $(SHELL) $(top_srcdir)/depcomp
119
76
  am__depfiles_maybe = depfiles
@@ -126,16 +83,20 @@ LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
126
83
  $(AM_CFLAGS) $(CFLAGS)
127
84
  AM_V_CC = $(am__v_CC_@AM_V@)
128
85
  am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
129
- am__v_CC_0 = @echo " CC " $@;
130
- am__v_CC_1 =
86
+ am__v_CC_0 = @echo " CC " $@;
87
+ AM_V_at = $(am__v_at_@AM_V@)
88
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
89
+ am__v_at_0 = @
131
90
  CCLD = $(CC)
132
91
  LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
133
92
  $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
134
93
  $(AM_LDFLAGS) $(LDFLAGS) -o $@
135
94
  AM_V_CCLD = $(am__v_CCLD_@AM_V@)
136
95
  am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
137
- am__v_CCLD_0 = @echo " CCLD " $@;
138
- am__v_CCLD_1 =
96
+ am__v_CCLD_0 = @echo " CCLD " $@;
97
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
98
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
99
+ am__v_GEN_0 = @echo " GEN " $@;
139
100
  SOURCES = $(stress_SOURCES)
140
101
  DIST_SOURCES = $(stress_SOURCES)
141
102
  am__can_run_installinfo = \
@@ -143,23 +104,6 @@ am__can_run_installinfo = \
143
104
  n|no|NO) false;; \
144
105
  *) (install-info --version) >/dev/null 2>&1;; \
145
106
  esac
146
- am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
147
- # Read a list of newline-separated strings from the standard input,
148
- # and print each of them once, without duplicates. Input order is
149
- # *not* preserved.
150
- am__uniquify_input = $(AWK) '\
151
- BEGIN { nonempty = 0; } \
152
- { items[$$0] = 1; nonempty = 1; } \
153
- END { if (nonempty) { for (i in items) print i; }; } \
154
- '
155
- # Make sure the list of sources is unique. This is necessary because,
156
- # e.g., the same source file might be shared among _SOURCES variables
157
- # for different programs/libraries.
158
- am__define_uniq_tagged_files = \
159
- list='$(am__tagged_files)'; \
160
- unique=`for i in $$list; do \
161
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
162
- done | $(am__uniquify_input)`
163
107
  ETAGS = etags
164
108
  CTAGS = ctags
165
109
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -289,7 +233,7 @@ top_builddir = @top_builddir@
289
233
  top_srcdir = @top_srcdir@
290
234
  AM_CPPFLAGS = -I$(top_srcdir)/libusb
291
235
  LDADD = ../libusb/libusb-1.0.la
292
- stress_SOURCES = stress.c libusbx_testlib.h testlib.c
236
+ stress_SOURCES = stress.c libusb_testlib.h testlib.c
293
237
  all: all-am
294
238
 
295
239
  .SUFFIXES:
@@ -333,7 +277,6 @@ clean-noinstPROGRAMS:
333
277
  list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
334
278
  echo " rm -f" $$list; \
335
279
  rm -f $$list
336
-
337
280
  stress$(EXEEXT): $(stress_OBJECTS) $(stress_DEPENDENCIES) $(EXTRA_stress_DEPENDENCIES)
338
281
  @rm -f stress$(EXEEXT)
339
282
  $(AM_V_CCLD)$(LINK) $(stress_OBJECTS) $(stress_LDADD) $(LIBS)
@@ -374,15 +317,26 @@ mostlyclean-libtool:
374
317
  clean-libtool:
375
318
  -rm -rf .libs _libs
376
319
 
377
- ID: $(am__tagged_files)
378
- $(am__define_uniq_tagged_files); mkid -fID $$unique
379
- tags: tags-am
380
- TAGS: tags
381
-
382
- tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
320
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
321
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
322
+ unique=`for i in $$list; do \
323
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
324
+ done | \
325
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
326
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
327
+ mkid -fID $$unique
328
+ tags: TAGS
329
+
330
+ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
331
+ $(TAGS_FILES) $(LISP)
383
332
  set x; \
384
333
  here=`pwd`; \
385
- $(am__define_uniq_tagged_files); \
334
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335
+ unique=`for i in $$list; do \
336
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337
+ done | \
338
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
339
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
386
340
  shift; \
387
341
  if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
388
342
  test -n "$$unique" || unique=$$empty_fix; \
@@ -394,11 +348,15 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
394
348
  $$unique; \
395
349
  fi; \
396
350
  fi
397
- ctags: ctags-am
398
-
399
- CTAGS: ctags
400
- ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
401
- $(am__define_uniq_tagged_files); \
351
+ ctags: CTAGS
352
+ CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353
+ $(TAGS_FILES) $(LISP)
354
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
355
+ unique=`for i in $$list; do \
356
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
357
+ done | \
358
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
359
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
402
360
  test -z "$(CTAGS_ARGS)$$unique" \
403
361
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
404
362
  $$unique
@@ -407,21 +365,6 @@ GTAGS:
407
365
  here=`$(am__cd) $(top_builddir) && pwd` \
408
366
  && $(am__cd) $(top_srcdir) \
409
367
  && gtags -i $(GTAGS_ARGS) "$$here"
410
- cscopelist: cscopelist-am
411
-
412
- cscopelist-am: $(am__tagged_files)
413
- list='$(am__tagged_files)'; \
414
- case "$(srcdir)" in \
415
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
416
- *) sdir=$(subdir)/$(srcdir) ;; \
417
- esac; \
418
- for i in $$list; do \
419
- if test -f "$$i"; then \
420
- echo "$(subdir)/$$i"; \
421
- else \
422
- echo "$$sdir/$$i"; \
423
- fi; \
424
- done >> $(top_builddir)/cscope.files
425
368
 
426
369
  distclean-tags:
427
370
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -563,19 +506,18 @@ uninstall-am:
563
506
 
564
507
  .MAKE: install-am install-strip
565
508
 
566
- .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
567
- clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \
568
- ctags-am distclean distclean-compile distclean-generic \
569
- distclean-libtool distclean-tags distdir dvi dvi-am html \
570
- html-am info info-am install install-am install-data \
571
- install-data-am install-dvi install-dvi-am install-exec \
572
- install-exec-am install-html install-html-am install-info \
573
- install-info-am install-man install-pdf install-pdf-am \
574
- install-ps install-ps-am install-strip installcheck \
575
- installcheck-am installdirs maintainer-clean \
576
- maintainer-clean-generic mostlyclean mostlyclean-compile \
577
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
578
- tags tags-am uninstall uninstall-am
509
+ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
510
+ clean-libtool clean-noinstPROGRAMS ctags distclean \
511
+ distclean-compile distclean-generic distclean-libtool \
512
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
513
+ install install-am install-data install-data-am install-dvi \
514
+ install-dvi-am install-exec install-exec-am install-html \
515
+ install-html-am install-info install-info-am install-man \
516
+ install-pdf install-pdf-am install-ps install-ps-am \
517
+ install-strip installcheck installcheck-am installdirs \
518
+ maintainer-clean maintainer-clean-generic mostlyclean \
519
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
520
+ pdf pdf-am ps ps-am tags uninstall uninstall-am
579
521
 
580
522
 
581
523
  # Tell versions [3.59,3.63) of GNU make to not export all variables.