Skip to content

Commit

Permalink
configure.ac - add checks for telemetry and appfs libraries
Browse files Browse the repository at this point in the history
- Added AC_CHECK_LIB for 'telemetry' and 'appfs' to verify library availability.
- Ensured 'LIBS' includes '-lappFs -ltelemetry' for proper linking.
- Updated RPM dependencies by appending 'telemetry' to RPM_REQUIRES and RPM_BUILDREQ.
  • Loading branch information
SiskaPavel committed Dec 16, 2024
1 parent 7ee2138 commit 0a0dfc3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,20 @@ AC_ARG_WITH([stem],
[withstem="no"]
)

# Check if the telemetry library is available
AC_CHECK_LIB([telemetry], [main],
[AC_MSG_RESULT([Found telemetry library.])],
[AC_MSG_ERROR([The telemetry library is required but was not found. Try to install telemetry.])])

# Check if the appfs library is available
AC_CHECK_LIB([appFs], [main],
[AC_MSG_RESULT([Found appfs library.])],
[AC_MSG_ERROR([The appfs library is required but was not found. Try to install telemetry])])

LIBS="-lappFs -ltelemetry $LIBS"
RPM_REQUIRES+=" telemetry"
RPM_BUILDREQ+=" telemetry"

AM_CONDITIONAL(WITH_STEM, test x${withstem} = xyes)
if [[ -z "$WITH_STEM_TRUE" ]]; then
AC_DEFINE([WITH_STEM], [1], [Define to 1 to use flexprobe testing interface])
Expand Down

0 comments on commit 0a0dfc3

Please sign in to comment.