summaryrefslogtreecommitdiff
path: root/bin/envinfo.cpp
blob: 2ba90817e431d3211b2ecacb02684c1e82f49bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// $Id$

#include "ace/ACE.h"

ACE_RCSID(bin, envinfo, "$Id$")

int
main (int, ACE_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;
}