summary refs log tree commit diff
path: root/pkgs/tools/security/gnupg/fix-libusb-include-path.patch
blob: 18c4f1107388a2d3045c35fae119b5e65b118e43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/configure
+++ b/configure
@@ -8872,7 +8872,7 @@
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
 $as_echo_n "checking libusb include dir... " >&6; }
    usb_incdir_found="no"
-   for _incdir in "" "/usr/include/libusb-1.0" "/usr/local/include/libusb-1.0"; do
+   for _incdir in "$($PKG_CONFIG --variable=includedir libusb-1.0)/libusb-1.0"; do
      _libusb_save_cppflags=$CPPFLAGS
      if test -n "${_incdir}"; then
        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"