From f10edb64056ef0a8770b7792ba9f5d18658fbbfb Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 14 Feb 2012 23:00:32 +0100 Subject: [PATCH] configure enable/disable frontends by list Add a configure --{en,dis}able-frontends=(list) option, to enable or disable all or the specified list of frontends. Signed-off-by: "Yann E. MORIN" --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure.ac b/configure.ac index 30c3908..903487a 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,24 @@ AC_ARG_ENABLE( [qconf, the QT-based frontend (default=auto)])]) AC_SUBST([enable_qconf], [${enable_qconf:-auto}]) +AC_ARG_ENABLE( + [frontends], + [AS_HELP_STRING( + [--enable-frontends=list], + [enables only the set of frontends in comma-separated 'list' + (default: auto selection), takes precedence over all + --enable-*conf, above])], + [for f in conf mconf nconf gconf qconf; do + AS_CASE( + ["$enableval"], + ["$f"], [eval enable_$f=yes], + ["$f",*], [eval enable_$f=yes], + [*,"$f"], [eval enable_$f=yes], + [*,"$f",*], [eval enable_$f=yes], + [eval enable_$f=no]) + done]) +AC_SUBST([enable_frontends]) + #---------------------------------------- # Some program checks AC_PROG_LEX -- 2.39.5