aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-05-21 09:43:47 -0700
committerDan Williams <dcbw@redhat.com>2010-05-21 09:43:47 -0700
commitafebde48683392ccf54f9bd901ab5ac471e94dcb (patch)
treefb005178cd9ed647bfa6cdfbb674cb76dc2e6a07 /src/main.c
parentc311c3419cce6cd6c9ce87fd321b4fbbe6666e6d (diff)
build: print version on startup and add dist-version
Distributions should set dist-version at build time with the package version and revision, so for RPM-based distros you'd --with-dist-version=%{version}-%{release} which will be printed out on MM startup to help debugging.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6b142885..72fa6dc4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -11,9 +11,10 @@
* GNU General Public License for more details:
*
* Copyright (C) 2008 - 2009 Novell, Inc.
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2009 - 2010 Red Hat, Inc.
*/
+#include <config.h>
#include <signal.h>
#include <syslog.h>
#include <string.h>
@@ -23,7 +24,9 @@
#include "mm-manager.h"
#include "mm-options.h"
-#define HAL_DBUS_SERVICE "org.freedesktop.Hal"
+#if !defined(MM_DIST_VERSION)
+# define MM_DIST_VERSION VERSION
+#endif
static GMainLoop *loop = NULL;
@@ -182,6 +185,8 @@ main (int argc, char *argv[])
if (!mm_options_debug ())
logging_setup ();
+ g_message ("ModemManager (version " MM_DIST_VERSION ") starting...");
+
bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, &err);
if (!bus) {
g_warning ("Could not get the system bus. Make sure "