diff --git a/CMakeLists.txt b/CMakeLists.txt index fabf73b1b..8be9e1655 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/configure.ac b/src/configure.ac index 32ed39bfb..e45af4005 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -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], @@ -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