From: Thibault Payet <contact@thibaultpayet.fr> --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d597bad3750..1b76df54445 100644 --- a/configure.ac +++ b/configure.ac @@ -1579,9 +1579,9 @@ WINE_NOTICE_WITH(sane,[test "$ac_cv_lib_sane_sane_init" != "yes"], dnl **** Check for libusb **** if test "x$with_usb" != "xno" then - WINE_PACKAGE_FLAGS(USB,[libusb-1.0],[-lusb-1.0],,, + WINE_PACKAGE_FLAGS(USB,[libusb-1.0],[-lusb-1.0],[-lusb],, [AC_CHECK_HEADER([libusb.h], - [AC_CHECK_LIB(usb-1.0,libusb_interrupt_event_handler,[:],[USB_LIBS=""],[$USB_LIBS])], + [AC_CHECK_FUNC(libusb_interrupt_event_handler,[ac_cv_lib_usb_1_0_libusb_interrupt_event_handler="yes"],[USB_LIBS=""])], [USB_LIBS=""])]) fi WINE_NOTICE_WITH(usb,[test "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" != "yes"], -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10279