config: fix missing case when reporting version 'configured with'

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
This commit is contained in:
Jafar Al-Gharaibeh 2024-08-22 14:26:01 -05:00
parent 05c17eff06
commit 4b050cb080
2 changed files with 5 additions and 2 deletions

View file

@ -847,7 +847,7 @@ AC_ARG_WITH([crypto],
AC_ARG_WITH([frr-format],
AS_HELP_STRING([--with-frr-format[=<.../frr-format.so>]], [use frr-format GCC plugin]))
AC_ARG_ENABLE([version-build-config],
AC_ARG_ENABLE([version_build_config],
AS_HELP_STRING([--disable-version-build-config], [do not include build configs in show version command]))
#if openssl, else use the internal

View file

@ -1463,7 +1463,10 @@ void _libfrr_version(void)
const char banner[] =
FRR_FULL_NAME " " FRR_VERSION ".\n"
FRR_COPYRIGHT GIT_INFO "\n"
"configured with:\n " FRR_CONFIG_ARGS "\n";
#ifdef ENABLE_VERSION_BUILD_CONFIG
"configured with:\n " FRR_CONFIG_ARGS "\n"
#endif
;
write(1, banner, sizeof(banner) - 1);
_exit(0);
}