Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8013)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8014)
@@ -56,4 +56,9 @@
      - disallow also non finite results
 
+   * Makefile:
+     - added new exectuable mars.config
+
+   * mars-config.cc:
+     - added
 
 
Index: trunk/MagicSoft/Mars/Makefile
===================================================================
--- trunk/MagicSoft/Mars/Makefile	(revision 8013)
+++ trunk/MagicSoft/Mars/Makefile	(revision 8014)
@@ -20,5 +20,5 @@
 #
 #PROGRAMS = readraw merpp mars test mona status
-PROGRAMS = readdaq merpp readraw sinope callisto star ganymed sponde showlog showplot mars
+PROGRAMS = readdaq merpp readraw sinope callisto star ganymed sponde showlog showplot mars mars-config
 SOLIB    = libmars.so
 CINT     = M
Index: trunk/MagicSoft/Mars/mars-config.cc
===================================================================
--- trunk/MagicSoft/Mars/mars-config.cc	(revision 8014)
+++ trunk/MagicSoft/Mars/mars-config.cc	(revision 8014)
@@ -0,0 +1,36 @@
+#include <iostream>
+
+#include <RVersion.h>
+
+using namespace std;
+
+static void Usage()
+{
+    cout << endl;
+    cout << "Sorry the usage is:" << endl;
+    cout << "   mars-config [--root-ver|--mars-ver]" << endl;
+    cout << endl;
+    cout << "Options:" << endl;
+    cout << "  --root-ver  Show root version which were used for compilation." << endl;
+    cout << "              To be compared with the output of \"root-config --version\"" << endl;
+    cout << "  --mars-ver  Show mars version." << endl;
+    cout << endl;
+    cout << "Only one command line option is allowed." << endl;
+    cout << endl;
+}
+
+int main(int argc, char *const argv[])
+{
+    if (argc!=2)
+    {
+        Usage();
+        return 2;
+    }
+
+    if (!strcmp(argv[1], "--root-ver"))
+        cout << ROOT_RELEASE << endl;
+    if (!strcmp(argv[1], "--mars-ver"))
+        cout << MARSVER << endl;
+
+    return 0;
+}
