commit | 33b3ba3fc71ada906bfeb05eee937661c32b2877 | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Thu Apr 09 12:05:16 2020 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Thu Apr 09 12:05:16 2020 -0700 |
tree | cfed2960c7840c9e36e9ea0d814f8d4c4ea00735 | |
parent | 6f0330c78467bb9b5154ffb1859f6b9850235b7a [diff] |
configure.ac: Enhance compiler checks for pthreads There apparently exist some compiler ports (e.g Haiku's GCC) that do not support the ubiquitous '-pthread' compiler option. Add a check for this and only use the option if supported. Also tweak the check for the pthread library to check for the pthread_create() function. Even though libusb does not use this function, it seems to be sufficiently distinct such that the standard C library would not provide this directly if the pthread implementation resided in a separate library. Also explicitly check whether no additional library linkage is required. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)