freebsd-ports/sysutils/nut/files/extra-patch-m4_nut_check_libusb.m4
Stanislav Sedov f5d05ea54d - Chase libusb20 rename in r189585.
- Mark sane-backends broken on current due to changes
  in USB stack.

Reviewed by:	thompsa (old version), miwi
Tested by:	miwi
2009-03-09 17:15:43 +00:00

31 lines
789 B
Text

--- m4/nut_check_libusb.m4.orig 2009-03-07 23:56:24.000000000 +0300
+++ m4/nut_check_libusb.m4 2009-03-07 23:57:04.000000000 +0300
@@ -17,24 +17,12 @@
dnl Check for libusb libs and flags
AC_MSG_CHECKING(for libusb cflags)
- CFLAGS=`libusb-config --cflags 2>/dev/null`
- if (test "$?" != "0")
- then
- AC_MSG_RESULT(not found)
- nut_have_libusb=no
- else
- AC_MSG_RESULT(${CFLAGS})
- fi
+ CFLAGS=""
+ AC_MSG_RESULT(${CFLAGS})
AC_MSG_CHECKING(for libusb libs)
- LDFLAGS=`libusb-config --libs 2>/dev/null`
- if (test "$?" != "0")
- then
- AC_MSG_RESULT(not found)
- nut_have_libusb=no
- else
- AC_MSG_RESULT(${LDFLAGS})
- fi
+ LDFLAGS="-lusb"
+ AC_MSG_RESULT(${LDFLAGS})
if test "${nut_have_libusb}" = "yes"; then
LIBUSB_CFLAGS="${CFLAGS}"