diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-04-08 20:31:01 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-04-08 20:31:01 +0200 |
commit | f27bf509315a48b0070294c3993a718df0c2626c (patch) | |
tree | 09fcb800b0a3f995694c30539ed157d5290d5c28 /options.c | |
parent | pkitool lacks expected option "--help" (diff) | |
download | openvpn-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ } |