Skip to content

Commit

Permalink
Move messages for libhidapi
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Nov 27, 2024
1 parent f8f8f24 commit 6d1006e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ else()
endif()

if(HAVE_LIBHIDAPI)
message(STATUS "DO HAVE libhidapi")
buildinfo_item("libhidapi" "DO HAVE")
else()
message(STATUS "DON'T HAVE libhidapi")
buildinfo_item("libhidapi" "DON'T HAVE")
endif()

if(HAVE_LIBFTDI)
Expand Down
12 changes: 6 additions & 6 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ if test "x$have_libhidapi" = xyes; then
fi
AC_SUBST([LIBHIDAPI])

AS_VAR_IF([have_libhidapi], [yes], [dnl
BUILDINFO_ITEM([libhidapi], [DO HAVE])
], [dnl
BUILDINFO_ITEM([libhidapi], [DON'THAVE])
])

AH_TEMPLATE([HAVE_LIBSERIALPORT],
[Define if libserialport is found])
AC_CHECK_LIB([serialport], [sp_open],
Expand Down Expand Up @@ -778,12 +784,6 @@ else
echo "DON'T HAVE libhid"
fi

if test "x$have_libhidapi" = xyes; then
echo "DO HAVE libhidapi"
else
echo "DON'T HAVE libhidapi"
fi

if test "x$have_libreadline" = xyes; then
echo "DO HAVE libreadline"
else
Expand Down

0 comments on commit 6d1006e

Please sign in to comment.