From 8561ba24f9bd4e0e4787d3311e3ad2b1a30cb59b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Wed, 3 Aug 2016 22:55:55 +0200 Subject: [PATCH] configure.ac: generate lists of frontends and libs before output Currently, none of those lists is AC_SUBST()ed, but a new one will be added soon, that needs to be AC_SUBST()ed. Signed-off-by: "Yann E. MORIN" --- configure.ac | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/configure.ac b/configure.ac index ad923e9..e44b442 100644 --- a/configure.ac +++ b/configure.ac @@ -460,6 +460,23 @@ 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"]) + +[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 +497,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]) -- 2.39.5