Skip to content

Commit

Permalink
configure: ignore warning about delay accounting on non-Linux platform
Browse files Browse the repository at this point in the history
If pkg-config is not installed the following message gets printed, even
on non Linux platform:

"Linux delay accounting support can not be enabled, cause pkg-config is
required for checking its availability"
  • Loading branch information
cgzones committed May 16, 2021
1 parent d2ee405 commit 69cfaf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,9 @@ case "$enable_delayacct" in
no)
;;
check)
if test "$enable_static" = yes; then
if test "$my_htop_platform" != linux; then
enable_delayacct=no
elif test "$enable_static" = yes; then
enable_delayacct=no
else
m4_ifdef([PKG_PROG_PKG_CONFIG], [
Expand Down

0 comments on commit 69cfaf2

Please sign in to comment.