The build system currently hardcodes where HIDAPI is found.
It should look for it in standard system locations for libraries (such as /usr/lib), and allow the user to configure where it is if necessary.
If possible, it should use a standard mechanism for this kind of thing, so it doesn't need to know where to look. Maybe pkg-config works for this?
If necessary, check the standards for the known directories, what order to use them in, etc. (Also consider things like Debian's multi-arch setup.)
The build system currently hardcodes where HIDAPI is found.
It should look for it in standard system locations for libraries (such as /usr/lib), and allow the user to configure where it is if necessary.
If possible, it should use a standard mechanism for this kind of thing, so it doesn't need to know where to look. Maybe pkg-config works for this?
If necessary, check the standards for the known directories, what order to use them in, etc. (Also consider things like Debian's multi-arch setup.)