Compare commits

...

1 Commits

Author SHA1 Message Date
Dirk Hohndel
15d092277f find lib hidapi on modern openSUSE
There are now two flavors of hidapi and you need to use a different name
to get one.

Autoconf syntax is... insane.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2021-10-30 20:14:54 -07:00

View File

@ -126,6 +126,12 @@ AS_IF([test "x$with_hidapi" != "xno"], [
AS_IF([test "x$have_hidapi" = "xyes"], [ AS_IF([test "x$have_hidapi" = "xyes"], [
AC_DEFINE([HAVE_HIDAPI], [1], [hidapi library]) AC_DEFINE([HAVE_HIDAPI], [1], [hidapi library])
DEPENDENCIES="$DEPENDENCIES hidapi" DEPENDENCIES="$DEPENDENCIES hidapi"
], [
PKG_CHECK_MODULES([HIDAPI], [hidapi-libusb], [have_hidapi=yes], [have_hidapi=no])
AS_IF([test "x$have_hidapi" = "xyes"], [
AC_DEFINE([HAVE_HIDAPI], [1], [hidapi library])
DEPENDENCIES="$DEPENDENCIES hidapi"
])
]) ])
]) ])