Skip to content

Commit 6d1006e

Browse files
committed
Move messages for libhidapi
1 parent f8f8f24 commit 6d1006e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ else()
423423
endif()
424424

425425
if(HAVE_LIBHIDAPI)
426-
message(STATUS "DO HAVE libhidapi")
426+
buildinfo_item("libhidapi" "DO HAVE")
427427
else()
428-
message(STATUS "DON'T HAVE libhidapi")
428+
buildinfo_item("libhidapi" "DON'T HAVE")
429429
endif()
430430

431431
if(HAVE_LIBFTDI)

src/configure.ac

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,12 @@ if test "x$have_libhidapi" = xyes; then
321321
fi
322322
AC_SUBST([LIBHIDAPI])
323323

324+
AS_VAR_IF([have_libhidapi], [yes], [dnl
325+
BUILDINFO_ITEM([libhidapi], [DO HAVE])
326+
], [dnl
327+
BUILDINFO_ITEM([libhidapi], [DON'THAVE])
328+
])
329+
324330
AH_TEMPLATE([HAVE_LIBSERIALPORT],
325331
[Define if libserialport is found])
326332
AC_CHECK_LIB([serialport], [sp_open],
@@ -778,12 +784,6 @@ else
778784
echo "DON'T HAVE libhid"
779785
fi
780786

781-
if test "x$have_libhidapi" = xyes; then
782-
echo "DO HAVE libhidapi"
783-
else
784-
echo "DON'T HAVE libhidapi"
785-
fi
786-
787787
if test "x$have_libreadline" = xyes; then
788788
echo "DO HAVE libreadline"
789789
else

0 commit comments

Comments
 (0)