Lines 1-31
Link Here
|
1 |
--- configure.in.orig 2008-10-31 15:43:21.000000000 +0300 |
|
|
2 |
+++ configure.in 2009-03-07 01:08:46.000000000 +0300 |
3 |
@@ -170,6 +169,28 @@ |
4 |
AC_DEFINE(HAVE_LIBUSB, 1) |
5 |
CFLAGS="$CFLAGS -Imac/libusb/" |
6 |
;; |
7 |
+ *-*-freebsd*) |
8 |
+ GBSER=gbser_posix.o |
9 |
+ AC_MSG_CHECKING(for libusb) |
10 |
+ if test "$with_libusb" = no ; then |
11 |
+ AC_MSG_RESULT(check not done) |
12 |
+ OSJEEPS=jeeps/gpsusbstub.o |
13 |
+ else |
14 |
+ OLDFLAGS=$LDFLAGS |
15 |
+ OCFLAGS=$CFLAGS |
16 |
+ LDFLAGS="$LDFLAGS -lusb" |
17 |
+ CFLAGS="$OCFLAGS" |
18 |
+ |
19 |
+ AC_CHECK_LIB([usb], [usb_interrupt_read], |
20 |
+ AC_DEFINE(HAVE_LIBUSB, 1, [Defined if you have libusb]) |
21 |
+ [USB_CFLAGS=""] |
22 |
+ [USB_LIBS="-lusb"] |
23 |
+# ,[AC_MSG_ERROR([libusb is needed])] |
24 |
+ ) |
25 |
+ OSJEEPS=jeeps/gpslibusb.o |
26 |
+ CFLAGS="$OCFLAGS" |
27 |
+ fi |
28 |
+ ;; |
29 |
*) |
30 |
GBSER=gbser_posix.o |
31 |
AC_MSG_CHECKING(for libusb) |