From fc2377f0525badb11e0d1e04dd31a53769855229 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Sat, 14 Aug 2021 10:35:11 +0200 Subject: Build pcp-htop.5 only when --enable-pcp --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9d31fd50..8e7774f2 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,7 @@ case "$enable_pcp" in [AC_MSG_ERROR([can not find PCP header file])]) AC_SEARCH_LIBS([pmNewContext], [pcp], [], [AC_MSG_ERROR([can not find PCP library])]) AC_DEFINE([HTOP_PCP], [1], [Define if building pcp-htop binary.]) + AC_CONFIG_FILES([pcp-htop.5]) ;; *) AC_MSG_ERROR([bad value '$enable_pcp' for --enable-pcp option]) @@ -681,7 +682,7 @@ AM_CONDITIONAL([HTOP_PCP], [test "$my_htop_platform" = pcp]) AM_CONDITIONAL([HTOP_UNSUPPORTED], [test "$my_htop_platform" = unsupported]) AC_SUBST(my_htop_platform) -AC_CONFIG_FILES([Makefile htop.1 pcp-htop.5]) +AC_CONFIG_FILES([Makefile htop.1]) AC_OUTPUT if test "$my_htop_platform" = unsupported; then -- cgit v1.2.3