Changeset 4020
- Timestamp:
- 04/02/06 23:33:40 (3 years ago)
- Files:
-
- wire/trunk/config.h.in (modified) (1 diff)
- wire/trunk/configure (modified) (1 diff)
- wire/trunk/configure.in (modified) (1 diff)
- wire/trunk/wire/main.c (modified) (1 diff)
- wire/trunk/wire/version.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/config.h.in
r4015 r4020 78 78 #undef WR_BUGREPORT 79 79 80 /* Host CPU */81 #undef WR_CPU82 83 80 /* Protocol version */ 84 81 #undef WR_PROTOCOL_VERSION wire/trunk/configure
r4018 r4020 1379 1379 cat >>confdefs.h <<\_ACEOF 1380 1380 #define WR_BUGREPORT "axel@zankasoftware.com" 1381 _ACEOF1382 1383 1384 cat >>confdefs.h <<_ACEOF1385 #define WR_CPU "$host_cpu"1386 1381 _ACEOF 1387 1382 wire/trunk/configure.in
r4018 r4020 12 12 AC_DEFINE([WR_PROTOCOL_VERSION], ["1.1"], [Protocol version]) 13 13 AC_DEFINE([WR_BUGREPORT], ["AC_PACKAGE_BUGREPORT"], [Maintainer's email address]) 14 AC_DEFINE_UNQUOTED([WR_CPU], ["$host_cpu"], [Host CPU])15 14 16 15 # These are used in the Makefile wire/trunk/wire/main.c
r3940 r4020 160 160 } 161 161 162 wr_printf_prefix(WI_STR("%@"), wr_client_version_string); 163 162 164 wi_release(pool); 163 165 pool = wi_pool_init(wi_pool_alloc()); wire/trunk/wire/version.c
r3741 r4020 29 29 #include "config.h" 30 30 31 #include <sys/utsname.h>32 31 #include <openssl/ssl.h> 33 32 #include <readline/readline.h> … … 42 41 43 42 void wr_init_version(void) { 44 struct utsname name;45 46 uname(&name);47 48 43 wr_version_string = wi_string_init_with_cstring(wi_string_alloc(), WR_VERSION); 49 44 wr_protocol_version_string = wi_string_init_with_cstring(wi_string_alloc(), WR_PROTOCOL_VERSION); 50 wr_client_version_string = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wire/%@ (% s; %s; %s) (%s; readline %s)"),45 wr_client_version_string = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wire/%@ (%@; %@; %@) (%s; readline %s)"), 51 46 wr_version_string, 52 name.sysname,53 name.release,54 WR_CPU,47 wi_process_os_name(wi_process()), 48 wi_process_os_release(wi_process()), 49 wi_process_os_arch(wi_process()), 55 50 SSLeay_version(SSLEAY_VERSION), 56 51 rl_library_version);
