Add --without-irqbalance-ui option to configure

Not everyone wants to build the irqbalance-ui.  Give them an option to
avoid doing so

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
Neil Horman 2017-08-03 11:49:08 -04:00 committed by Neil Horman
parent 1d2f6a9b6c
commit fd12d968a2
2 changed files with 16 additions and 1 deletions

View file

@ -29,13 +29,21 @@ AM_CFLAGS = $(LIBCAP_NG_CFLAGS) $(GLIB2_CFLAGS)
AM_CPPFLAGS = -I${top_srcdir} -W -Wall -Wshadow -Wformat -Wundef -D_GNU_SOURCE
noinst_HEADERS = bitmap.h constants.h cpumask.h irqbalance.h non-atomic.h \
types.h $(UI_DIR)/helpers.h $(UI_DIR)/irqbalance-ui.h $(UI_DIR)/ui.h
sbin_PROGRAMS = irqbalance irqbalance-ui
sbin_PROGRAMS = irqbalance
if IRQBALANCEUI
sbin_PROGRAMS += irqbalance-ui
endif
irqbalance_SOURCES = activate.c bitmap.c classify.c cputree.c irqbalance.c \
irqlist.c numa.c placement.c procinterrupts.c
irqbalance_LDADD = $(LIBCAP_NG_LIBS) $(GLIB2_LIBS)
if IRQBALANCEUI
irqbalance_ui_SOURCES = $(UI_DIR)/helpers.c $(UI_DIR)/irqbalance-ui.c \
$(UI_DIR)/ui.c
irqbalance_ui_LDADD = $(GLIB2_LIBS) $(CURSES_LIBS)
endif
dist_man_MANS = irqbalance.1
CONFIG_CLEAN_FILES = debug*.list config/*

View file

@ -40,6 +40,13 @@ AC_C_CONST
AC_C_INLINE
AM_PROG_CC_C_O
AC_ARG_WITH([irqbalance-ui],
[AC_HELP_STRING([--without-irqbalance-ui],
[Dont build the irqbalance ui component])],
[with_irqbalanceui=false], [with_irqbalanceui=true])
AM_CONDITIONAL([IRQBALANCEUI], [test x$with_irqbalanceui = xtrue])
AC_ARG_WITH([systemd],
[ AS_HELP_STRING([--with-systemd],[Add systemd-lib support])]
)