Commit 4e706162c76a824f92d354918adf8fa64d436510

Peter Stuge 2012-11-16T00:59:21

configure.ac: FreeBSD can't use pkg-config to find libusb-1.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/configure.ac b/configure.ac
index 19cbfcd..4fd93b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -353,6 +353,11 @@ if test "x$ztex" != xno; then
       LIBUSB_CFLAGS="-IC:/MinGW/include/libusb-1.0"
       AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
       ;;
+    *-*-freebsd*)
+      LIBUSB_LIBS="-lusb"
+      LIBUSB_CFLAGS=""
+      AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
+      ;;
     *)
       PKG_CHECK_MODULES(LIBUSB, libusb-1.0, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])], [AC_MSG_ERROR([Could not find usb library - please install libusb-1.0])])
       ;;