aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-04-08 20:31:01 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-04-08 20:31:01 +0200
commitf27bf509315a48b0070294c3993a718df0c2626c (patch)
tree09fcb800b0a3f995694c30539ed157d5290d5c28 /options.c
parentpkitool lacks expected option "--help" (diff)
downloadopenvpn-f27bf509315a48b0070294c3993a718df0c2626c.tar.xz
Add comile time information/settings from ./configure to --version
This patch will create ./configure.h which will contain two new #define strings. CONFIGURE_DEFINES will contain all USE, ENABLED, DISABLED and DEPRECATED defines from ./config.h. CONFIGURE_CALL will contain the complete ./configure line which was used when configuring the package for building. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to '')
-rw-r--r--options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.c b/options.c
index e79f742..25936d1 100644
--- a/options.c
+++ b/options.c
@@ -45,6 +45,7 @@
#include "pool.h"
#include "helper.h"
#include "manage.h"
+#include "configure.h"
#include "memdbg.h"
@@ -2751,6 +2752,8 @@ usage_version (void)
msg (M_INFO|M_NOPREFIX, "%s", title_string);
msg (M_INFO|M_NOPREFIX, "Originally developed by James Yonan");
msg (M_INFO|M_NOPREFIX, "Copyright (C) 2002-2009 OpenVPN Technologies, Inc. <sales@openvpn.net>");
+ msg (M_INFO|M_NOPREFIX, "\n%s\n", CONFIGURE_CALL);
+ msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
openvpn_exit (OPENVPN_EXIT_STATUS_USAGE); /* exit point */
}