summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
...
* Misc: Simplify Haiku build and fix broken parallel buildChris Dickens2015-12-171-1/+1
| | | | | | | | | | | | | | | | | | The Haiku build was previously being done as a nested package due to its C++ requirement, but for some reason setting SUBDIR in an automake conditional breaks parallel builds. To fix this and simplify the Haiku build process, this commit adds an unconditional check for a C++ compiler using AC_PROG_CXX and builds the Haiku sources as part of the main libusb project. Note that AC_PROG_CXX itself does not cause the configure script to fail if a C++ compiler is not found. Therefore on non-Haiku platforms there is no requirement to have a C++ compiler installed in order to build libusb. Closes #121 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Remove -c flag. Erroneous output caused on androidVenkatesh Shukla2015-03-011-3/+0
| | | | | | | | | | | While cross-building for android, the -c flag was causing errors. This -c option ends up in Libs.private of libusb-1.0.pc file. On its usage, it is interpreted as "Compile and assemble, but do not link" option of gcc. Usage of -c in this way might be unintended. Hence, removing this option. Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* haiku: Add Haiku supportAkshay Jaggi2014-09-251-1/+26
|
* Windows: Define WINVER to fix building on MinGWTormod Volden2014-09-031-0/+1
| | | | | * For newer versions of MinGW, VerSetConditionMask() is only defined if building for Windows XP (0x501) or newer.
* Misc: Revert all references to libusb/libusb.infohjelmn@cs.unm.edu2014-01-081-1/+1
|
* Android: Add support for Linux/Android platformsKuangye Guo2013-12-281-0/+22
| | | | * Closes #154
* configure.ac: uclinux is also linuxGustavo Zacarias2013-09-061-1/+1
| | | | | | | | When the tuple contains uclinux rather than just linux (nommu flat targets) configure will fail with an unknown operating system. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* openbsd: Split openbsd backend into separate openbsd and netbsd backendsHans de Goede2013-08-211-6/+15
| | | | | | | | | | | Note the new netbsd_usb.c is an unmodified copy of openbsd_usb.c with s/obsd/netbsd done on it. The reason for this split is that the openbsd developers have been working on various improvements for their userspace usb support, and adding support for those means breaking netbsd support, by giving netbsd its own backend we can add support for the openbsd improvements without breaking netbsd support. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Core: Add compile time option to use native OS logging facilityToby Gray2013-08-091-5/+20
| | | | | | | | | | * This change makes it easier to debug issues in UI applications which don't necessarily have a console connected to stderr. * Outputting to the debugger shouldn't occur in normal situations so this change has to be explicitly enabled by a build-time config flag. * Uses OutputDebugString() on Windows platforms or the syslog facility on other OSes, if available. * Also align the report of configure defaults to autotool's.
* Add checks for headers needed by linux/netlink.hNathan Hjelm2013-07-301-1/+9
| | | | | | | | These headers are required by netlink.h. I am not sure how this worked at all. It certainly doesn't work with older versions of Linux 2.6. References #124.
* configure: Fix --enable-udev help textHans de Goede2013-05-161-1/+1
| | | | | | | We use AC_ARG_ENABLE so the help string should be --enable-udev, so that the user knows to pass --disable-udev to disable udev Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Add hotplug support to the Linux backend.Nathan Hjelm2013-05-151-1/+14
| | | | | | | | | | There are two ways to configure hotplug support for Linux: udev, and netlink. It is strongly recommened that udev support is used on systems that utilize udev. We reenforce this recommendation by defaulting to --with-udev=yes at configure time. To enable netlink support run configure with --with-udev=no. If udev support is enabled all device enumeration is done with udev. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Core: Use HAVE_SYS_TYPES_H and HAVE_SIGNAL_HPete Batard2013-01-231-0/+1
| | | | * These files may not be available on all platforms (eg. WinCE)
* Tests: Add libusbx stress testToby Gray2012-11-251-0/+8
| | | | | See https://github.com/tobygray/libusbx/tree/testing as well as http://libusbx.1081486.n5.nabble.com/Libusbx-devel-Crashes-tt433.html#a438
* Autotools: Carry over 2012.10.23 libusb changesPeter Stuge2012-11-251-10/+7
| | | | | | * Use LIBS instead of PC_LIBS_PRIVATE * Move THREAD_CFLAGS & VISIBILITY_CFLAGS into AM_CFLAGS * Use AC_SEARCH_LIBS(clock_gettime) for pthreads on Linux
* Misc: Update and shorten various libusbx URLsPete Batard2012-08-221-1/+1
|
* Windows: Enable MinGW and MSVC DLL interchangeabilityPete Batard2012-06-081-0/+2
| | | | | | | | | | * Because we use the WINAPI calling convention, the def file MUST have the @n aliases. There is no way around this as MinGW's .o use decoration always for __stdcall, which can't be turned off. * dlltool must therefore be invoked to create a proper import lib from the .def, using the --kill-at option. * To do that, a CREATE_IMPORT_LIB autotools variable is introduced. * Note: the .def file is currently maintained manually.
* Windows: Fix possible crash when using longjmp and gcc 4.6Pete Batard2012-06-071-1/+2
| | | | | | | | * With gcc-4.6 the option -fomit-frame-pointer is turned on per default even for the win32 target. This results in segfaults for any application using setjmp/longjmp and MSVCRT.dll on WinXP. See http://gcc.gnu.org/ml/gcc/2011-10/msg00351.html * Issue reported by Lars Kanis
* Autotools: Fix versioning regression in configure.acPete Batard2012-06-051-1/+1
| | | | | | * Because of missing [], "LIBUSB_MICROLIBUSB_RC" was being displayed in lieu of version number * Regression introduced with c9d41fe5f0324d969f758f42843e1fd05859f438
* Core: Add toggleable debug loggingPete Batard2012-06-041-2/+2
| | | | | * Also fix a missing space in debug log messages introduced with the previous timestamp logging update
* Autotools: Apply autoupdate 2.68 recommendationsLudovic Rousseau2012-06-041-4/+4
| | | | | * Not applied: AC_PREREQ([2.68]) as this doesn't seem necessary and 2.68 was released less than 2 years ago.
* Core: Add a timestamping and thread ID to loggingPeter Stuge2012-05-061-0/+1
|
* BSD: add NetBSD experimental supportPete Batard2012-04-191-26/+43
| | | | | * also improve OS/backend selection in configure.ac * original libusb patches from Peter Stuge and Xiaofan Chen
* Autotools: Fix package name and URLs in configure.acPete Batard2012-03-301-1/+1
|
* autotools: LT_LANG([Windows Resource]) makes windres check redundantPete Batard2012-03-281-1/+0
|
* OpenBSD backendMartin Pieuchot2012-01-301-0/+12
|
* configure.ac: Darwin: Move -lobjc from LIBS to PC_LIBS_PRIVATEXiaofan Chen2012-01-131-2/+1
| | | | | | | | Since commit 40327cd134718475f6cec8935b856d4fdff2099c it is neccessary to explicitly include -lobjc not only when linking libusb itself, but also for programs linking statically against libusb. References #63. See also http://marc.info/?m=132505900202378
* configure.ac: Enable libtool support for Windows Resource languagePeter Stuge2011-10-171-0/+1
|
* Support release candidate versions in configure.ac and libusb-1.0.rcPeter Stuge2011-10-171-1/+5
|
* configure.ac: Fix #97 clang warning about -fgnu89-inlineSean McBride2011-07-241-7/+1
| | | | | | | Remove the test that sets the flag since GNU89 inline semantics are not required by libusb. [stuge: Also remove reference to the test result]
* Darwin: Fix #63 error when apps use Objective-C garbage collectionSean McBride2011-06-131-0/+1
|
* Move library version number from configure.ac to libusb/version.hPeter Stuge2011-06-131-8/+12
| | | | | | | | | | | | | | | | | | | This is neccessary to support native MS builds. The Windows resource file libusb/libusb-1.0.rc must include the release version, which was previously only available after configure had run and had substituted the numbers into a generated libusb/libusb-1.0.rc file. The version atoms are now stored as CPP style #defines in libusb/version.h so that the .rc no longer needs to be generated but can simply include the header file and access the version information directly. The m4 macro LU_DEFINE_VERSION_ATOM() was added to configure.ac to get version atoms from libusb/version.h for use in AC_INIT(). The macro handles C and C++ style comments in version.h, but can easily be made to fail by obscuring the file. Please don't do that. Tested with MinGW using autoconf, and manual compile of libusb-1.0.rc using RC.EXE Version 5.2.3690.0 from Visual C++ 2005 Express Edition.
* Windows: Remove SetupAPI, AdvAPI32 and OLE32 link-time dependenciesPete Batard2011-06-131-1/+1
| | | | | | | * this ensures that libusb dependent applications only need to explicitly link against libusb on Windows The run-time dependency on Cfgmgr32.dll, OLE32.dll and SetupAPI.dll remains.
* configure.ac: Refactor Windows backend settings into one occurencePeter Stuge2011-06-131-12/+8
| | | | | The Windows backend is used both with MinGW and Cygwin, and since most settings are identical they can be set in one place.
* configure.ac: Rename AM_LDFLAGS to LTLDFLAGS and actually use themPeter Stuge2011-06-131-8/+7
| | | | | | | | | | | | The new variable name tries to clarify that libtool is being used. Linker flags must thus always be specified with -Wl. Factor out the libtool flag -no-undefined from host specific cases. The flag is required to build a Windows DLL, but is correct also for the other supported systems. Also, start actually using LTLDFLAGS in libusb/Makefile.am, so that libtool will see the options set by configure.
* configure.ac: Clean up PC_LIBS_PRIVATE and AM_LDFLAGSPeter Stuge2011-06-131-2/+4
| | | | | | | Move linker options for when linking the library itself from PC_LIBS_PRIVATE into AM_LDFLAGS. PC_LIBS_PRIVATE should only contain flags needed to link applications statically against libusb. Fixes #72.
* configure.ac: Call AC_CONFIG_FILES() for each output filePeter Stuge2011-06-131-1/+7
| | | | This avoids a problem with Windows line endings.
* configure.ac: Whitespace changes and trivial reorderingPeter Stuge2011-06-131-7/+4
|
* configure.ac: Quote AC_COMPILE_IFELSE() inputPeter Stuge2011-06-131-3/+3
|
* configure.ac: Define booleans to 1 when set, instead of an empty stringPeter Stuge2011-06-131-6/+6
| | | | This makes the generated config.h look a lot nicer.
* configure.ac: Clean up redundancy and fix LIBS on LinuxPeter Stuge2011-06-131-15/+9
| | | | | | LIBS, AM_LDFLAGS, OS_ conditionals and THREADS_POSIX had a bit of redundancy throughout the file, and on Linux LIBS ended up missing the -pthread flag.
* configure.ac: Touch up Darwin and Cygwin OS messagesPeter Stuge2011-06-131-2/+2
|
* configure.ac: Do not use -pthread on DarwinPeter Stuge2011-06-131-2/+1
| | | | It's not needed because Darwin has POSIX Threads in libc. Fixes #96.
* configure.ac: Check for poll.h, and for nfds_t on DarwinPeter Stuge2011-06-131-0/+9
| | | | | | | | | | | On Linux, assume nfds_t is always available. On Darwin, fall back to unsigned int when poll() exists but there is no nfds_t, such as on Mac OS X before 10.4. On Windows (both MinGW and Cygwin), always use unsigned int instead of nfds_t, and don't check for poll.h because we use our own poll() implementation.
* Remove USBI_OS_HANDLES_TIMEOUT and fix int/isoc timeouts on DarwinNathan Hjelm2010-11-261-1/+0
| | | | | | | | | | | | Backends set USBI_TRANSFER_OS_HANDLES_TIMEOUT for transfers instead. Darwin only handles timeouts for bulk and control transfers, so the backend now sets that flag accordingly, making libusb core handle timeouts for interrupt and isochronous transfers. Fixes #31. Signed-off-by: Nathan Hjelm <hjelmn@me.com> [stuge: rework libusb_get_next_timeout() and enum usbi_transfer_flags] [stuge: fix typo; set USBI_TRANSFER_TIMED_OUT flag correctly]
* Fix libtool version settingDaniel Drake2010-10-041-6/+6
| | | | This was being set too early to take effect.
* Populate the pkg-config Libs.private fieldMike Frysinger2010-10-041-5/+12
|
* Update libtool version infoDaniel Drake2010-10-041-8/+11
| | | | | | | | With input from various people on the mailing list, update the libtool versioning info and start to update this on every release. The next libusb release will not need a change here. All following ones will.
* MinGW: Use --add-stdcall-alias linker optionDaniel Drake2010-09-191-1/+1
| | | | | | | | | Naming of symbols inside the library is inconsistent on Windows: http://wyw.dcweb.cn/stdcall.htm Use this linker option to add aliases which add compatibility with the "MSVC DLL" platform when a DEF file is used. It also better matches the appearance of the Windows API itself.
* Introduced calling convention (for Windows)Pete Batard2010-08-231-2/+2
| | | | | | | | | | | | | | | | | | Under Windows, a variety of compilers and configurations are available, meaning that the manner of parameter passing (e.g. registers vs stack) can vary. Match the Windows API calling convention and document this appropriately. This calling convention will be used regardless of the configuration of the user's development platform. The only user-level complication is that all functions used as libusb callbacks must use the same calling convention as libusb. The LIBUSB_CALL macro is provided to make this easy. Signed-off-by: Michael Plante <michael.plante@gmail.com> Signed-off-by: Pete Batard <pbatard@gmail.com> [dsd: slight change of strategy, add documentation]