Skip to content

Commit

Permalink
fix(m4): Disable lttng when not specified
Browse files Browse the repository at this point in the history
Disable lttng when --with-lttng not specified during configuration.

Signed-off-by: Mozar Huang <[email protected]>
  • Loading branch information
mozarhua committed Jan 9, 2025
1 parent 412e452 commit 92b08c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions m4/check_pkg_lttng.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ AC_DEFUN([CHECK_PKG_LTTNG], [
AC_ARG_WITH([lttng],
[AS_HELP_STRING([--with-lttng=DIR], [Enable tracing capability with LTTNG @<:@default=no@:>@])])
AS_IF([test -z "${with_lttng}" -o "${with_lttng}" = "yes"],
[],
[test "${with_lttng}" = "no"],
AS_IF([test -z "${with_lttng}" -o "${with_lttng}" = "no"],
[check_pkg_found=no],
[test "${with_lttng}" = "yes"],
[],
[AS_IF([test -d ${with_lttng}/lib64], [check_pkg_libdir="lib64"], [check_pkg_libdir="lib"])
CPPFLAGS="-isystem ${with_lttng}/include ${CPPFLAGS}"
LDFLAGS="-L${with_lttng}/${check_pkg_libdir} ${LDFLAGS}"])
Expand Down

0 comments on commit 92b08c2

Please sign in to comment.