From: David Lamparter Date: Sat, 22 Nov 2014 18:43:29 +0000 (-0800) Subject: build: track config args X-Git-Tag: frr-2.0-rc1~643 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=80db5ac1783458e29effd2eddff2e936302fe923;p=mirror%2Ffrr.git build: track config args Record the ./configure arguments used and make them user-visible. Signed-off-by: David Lamparter Acked-by: Paul Jakma --- diff --git a/configure.ac b/configure.ac index c0bd17d946..265e8f915e 100755 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,9 @@ ## AC_PREREQ(2.60) -AC_INIT(Quagga, 0.99.23.1+cl3u2, [https://bugzilla.quagga.net]) +AC_INIT(Quagga, 0.99.24+cl3u2, [https://bugzilla.quagga.net]) +CONFIG_ARGS="$*" +AC_SUBST(CONFIG_ARGS) AC_CONFIG_SRCDIR(lib/zebra.h) AC_CONFIG_MACRO_DIR([m4]) diff --git a/lib/command.c b/lib/command.c index a71cb5ddd2..85506adefe 100644 --- a/lib/command.c +++ b/lib/command.c @@ -182,6 +182,7 @@ print_version (const char *progname) { printf ("%s version %s\n", progname, QUAGGA_VERSION); printf ("%s\n", QUAGGA_COPYRIGHT); + printf ("configured with:\n\t%s\n", QUAGGA_CONFIG_ARGS); } @@ -3022,6 +3023,8 @@ DEFUN (show_version, vty_out (vty, "Quagga %s (%s).%s", QUAGGA_VERSION, host.name?host.name:"", VTY_NEWLINE); vty_out (vty, "%s%s%s", QUAGGA_COPYRIGHT, GIT_INFO, VTY_NEWLINE); + vty_out (vty, "configured with:%s %s%s", VTY_NEWLINE, + QUAGGA_CONFIG_ARGS, VTY_NEWLINE); return CMD_SUCCESS; } diff --git a/lib/version.h.in b/lib/version.h.in index 7e9985f008..aef1d090b6 100644 --- a/lib/version.h.in +++ b/lib/version.h.in @@ -45,6 +45,8 @@ #define QUAGGA_COPYRIGHT "Copyright 1996-2005 Kunihiro Ishiguro, et al." +#define QUAGGA_CONFIG_ARGS "@CONFIG_ARGS@" + pid_t pid_output (const char *); #ifndef HAVE_DAEMON