FreeBSD (starting with version 8.x) ships a libusb as part of the operating system that itself calls "libusb20", which offers API compatibility to both, the public libusb 0.1 as well as 1.0 API.
However, OpenOCD's configure.ac performs the check as PKG_CHECK_MODULES([LIBUSB1], ... As this library is provided natively by the OS, there is no .pc file for this library though, so configure pretends the library were not found. (In FreeBSD, only 3rd-party software installs .pc files.) I'm willing to provide a patch, but wonder what would be the most acceptable approach to circumvent this. How about, if the PKG_CHECK_MODULES failed, reverting to a "classic" AC_CHECK_LIB? -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-) ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
