]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure enable/disable frontends by list
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue, 14 Feb 2012 22:00:32 +0000 (23:00 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Tue, 14 Feb 2012 22:00:32 +0000 (23:00 +0100)
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" <yann.morin.1998@anciens.enib.fr>
configure.ac

index 30c390813aa37295615dcd13f4c17db2e0e9a2e9..903487a3dd07b5908acd67a3239582821800ef33 100644 (file)
@@ -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