From 8a3081ceb8d6e959585460f26e993fc98ea16eaa Mon Sep 17 00:00:00 2001 From: gonzo Date: Fri, 7 Aug 1998 19:10:57 +0000 Subject: Added envinfo to report versions of ACE, OS and compiler --- bin/envinfo.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bin/envinfo.cpp (limited to 'bin/envinfo.cpp') diff --git a/bin/envinfo.cpp b/bin/envinfo.cpp new file mode 100644 index 00000000000..8d25afd91a7 --- /dev/null +++ b/bin/envinfo.cpp @@ -0,0 +1,29 @@ +// $Id$ + +#include "ace/ACE.h" + +ACE_RCSID(bin, envinfo, "$Id$") + +int +main (int, ASYS_TCHAR *[]) +{ + cerr << "ACE: " + << ACE::major_version() << "." + << ACE::minor_version() << "." + << ACE::beta_version() << "\n"; + + struct utsname uname; + ACE_OS::uname(&uname); + cerr << "OS: " + << uname.sysname << " " + << uname.release << "\n"; + + cerr << "Compiler: " + << ACE::compiler_name() << " " + << ACE::compiler_major_version() << "." + << ACE::compiler_minor_version() << "." + << ACE::compiler_beta_version() << "\n"; + + return 0; +} + -- cgit v1.2.1