From: Yann E. MORIN" Date: Tue, 17 Jan 2012 22:34:33 +0000 (+0100) Subject: configure: add option to select frontends X-Git-Tag: v3.3.0-0~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24e83e3a9979d7e306d633fcbda72f012face1e3;p=kconfig-frontends configure: add option to select frontends Add a ./configure option to select which frontends to install. By default, all are installed. Signed-off-by: "Yann E. MORIN" --- diff --git a/configure.ac b/configure.ac index 3e522ab..6c8eb31 100644 --- a/configure.ac +++ b/configure.ac @@ -39,6 +39,28 @@ AC_CHECK_FUNCS([ gettimeofday mkdir regcomp setlocale uname ]) # End of the autoscan-detected stuff #--------------------------------------------------------------------------- +#---------------------------------------- +# Options to selectively enable/disable frontends +# All are selected by default +AC_ARG_ENABLE( + [conf], + [AS_HELP_STRING( + [--enable-conf], + [conf, the stdin-based frontend (default=yes)])]) +AC_SUBST([enable_conf], [${enable_conf:-yes}]) +AC_ARG_ENABLE( + [mconf], + [AS_HELP_STRING( + [--enable-mconf], + [mconf, the traditional ncurses-based frontend (default=yes)])]) +AC_SUBST([enable_mconf], [${enable_mconf:-yes}]) +AC_ARG_ENABLE( + [nconf], + [AS_HELP_STRING( + [--enable-nconf], + [nconf, the modern ncurses-based frontend (default=yes)])]) +AC_SUBST([enable_nconf], [${enable_nconf:-yes}]) + #---------------------------------------- # Some program checks AC_PROG_RANLIB @@ -89,6 +111,15 @@ AS_IF( # Prepare automake AM_INIT_AUTOMAKE AM_PROG_CC_C_O +AM_CONDITIONAL( + [COND_conf], + [test "$enable_conf" = "yes"]) +AM_CONDITIONAL( + [COND_mconf], + [test "$enable_mconf" = "yes"]) +AM_CONDITIONAL( + [COND_nconf], + [test "$enable_nconf" = "yes"]) #---------------------------------------- # Finalise diff --git a/frontends/Makefile.am b/frontends/Makefile.am index ef66433..a1121fe 100644 --- a/frontends/Makefile.am +++ b/frontends/Makefile.am @@ -1 +1,10 @@ -SUBDIRS = conf mconf nconf +if COND_conf + MAYBE_conf = conf +endif +if COND_mconf + MAYBE_mconf = mconf +endif +if COND_nconf + MAYBE_nconf = nconf +endif +SUBDIRS = $(MAYBE_conf) $(MAYBE_mconf) $(MAYBE_nconf)