X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.ac;h=31eef710bbffadb1fdad36d39b7b34723e48c453;hb=d85ab01c951792e2aeed4496e9d355f23ef3f5cd;hp=ad923e9532b8361c0b382894abc0285886ef8361;hpb=f6cc4445afb527655a0dbb551252547e55f8b3ef;p=kconfig-frontends diff --git a/configure.ac b/configure.ac index ad923e9..31eef71 100644 --- a/configure.ac +++ b/configure.ac @@ -122,6 +122,13 @@ AC_SUBST([enable_L10n], [${enable_L10n:-yes}]) #---------------------------------------- # Options to selectively enable/disable frontends # All are selected by default +AC_ARG_ENABLE( + [kconfig], + [AS_HELP_STRING( + [--disable-kconfig], + [kconfig, the meta-frontend to all kconfig tools (default=yes)])]) +AC_SUBST([enable_kconfig], [${enable_kconfig:-yes}]) + AC_ARG_ENABLE( [conf], [AS_HELP_STRING( @@ -426,6 +433,9 @@ AS_IF( #---------------------------------------- # Setup automake conditional build +AM_CONDITIONAL( + [COND_kconfig], + [test "$enable_kconfig" = "yes"]) AM_CONDITIONAL( [COND_conf], [test "$enable_conf" = "yes"]) @@ -460,6 +470,28 @@ AC_SUBST( [KCONFIGPARSER_LIB_VERSION], [m4_esyscmd_s([./scripts/version.sh --plain])]) +#---------------------------------------- +# Pretty-print the configuration settings +[fe_list=] +AS_IF([test "$enable_conf" = "yes"], [fe_list="$fe_list conf" ]) +AS_IF([test "$enable_gconf" = "yes"], [fe_list="$fe_list gconf"]) +AS_IF([test "$enable_mconf" = "yes"], [fe_list="$fe_list mconf"]) +AS_IF([test "$enable_nconf" = "yes"], [fe_list="$fe_list nconf"]) +AS_IF([test "$enable_qconf" = "yes"], [fe_list="$fe_list qconf"]) + +[kcfg_list="$fe_list"] +AS_IF([test "$enable_utils" = "yes"], [kcfg_list="$kcfg_list diff merge tweak"]) +AS_IF([test "$has_gettext" = "yes"], [kcfg_list="$kcfg_list gettext"]) +AC_SUBST([kcfg_list], [${kcfg_list}]) + +[lib_list=] +AS_IF( + [test "$enable_shared" = "yes"], + [lib_list="$lib_list shared (version: $KCONFIGPARSER_LIB_VERSION)"]) +AS_IF( + [test "$enable_static" = "yes"], + [lib_list="$lib_list${lib_list:+,} static"]) + #---------------------------------------- # Finalise AC_CONFIG_FILES([ @@ -480,23 +512,6 @@ AC_CONFIG_FILES([ ]) AC_OUTPUT -#---------------------------------------- -# Pretty-print the configuration settings -[fe_list=] -AS_IF([test "$enable_conf" = "yes"], [fe_list="$fe_list conf" ]) -AS_IF([test "$enable_gconf" = "yes"], [fe_list="$fe_list gconf"]) -AS_IF([test "$enable_mconf" = "yes"], [fe_list="$fe_list mconf"]) -AS_IF([test "$enable_nconf" = "yes"], [fe_list="$fe_list nconf"]) -AS_IF([test "$enable_qconf" = "yes"], [fe_list="$fe_list qconf"]) - -[lib_list=] -AS_IF( - [test "$enable_shared" = "yes"], - [lib_list="$lib_list shared (version: $KCONFIGPARSER_LIB_VERSION)"]) -AS_IF( - [test "$enable_static" = "yes"], - [lib_list="$lib_list${lib_list:+,} static"]) - AC_MSG_NOTICE() AC_MSG_NOTICE([Configured with:]) AC_MSG_NOTICE([- parser library :$lib_list])