? depcomp
? stamp-h1
? gnome-session/gsm-motd.c
? gnome-session/gsm-motd.h
Index: configure.in
===================================================================
RCS file: /cvs/gnome/gnome-session/configure.in,v
retrieving revision 1.517
diff -u -p -r1.517 configure.in
--- configure.in	6 Sep 2005 09:28:22 -0000	1.517
+++ configure.in	15 Sep 2005 21:49:35 -0000
@@ -59,6 +59,24 @@ PKG_CHECK_MODULES(SOUND_TEST, $ESOUND_MO
 
 PKG_CHECK_MODULES(GNOME_SESSION, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED $ESOUND_MODULE)
 
+dnl Check if libnotify is present
+
+LIBNOTIFY_REQUIRED=0.2.1
+LIBNOTIFY_CFLAGS=
+LIBNOTIFY_LIBS=
+PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED,
+	          HAVE_LIBNOTIFY="yes", HAVE_LIBNOTIFY="no")
+
+if test "x$HAVE_LIBNOTIFY" = "xyes"; then
+        AC_DEFINE(HAVE_LIBNOTIFY, 1, [libnotify available])
+        AC_MSG_RESULT(available)
+else
+        AC_MSG_RESULT(no)
+fi
+
+AC_SUBST(LIBNOTIFY_CFLAGS)
+AC_SUBST(LIBNOTIFY_LIBS)
+
 dnl gconf checks
 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
 
Index: gnome-session/Makefile.am
===================================================================
RCS file: /cvs/gnome/gnome-session/gnome-session/Makefile.am,v
retrieving revision 1.108
diff -u -p -r1.108 Makefile.am
--- gnome-session/Makefile.am	10 Jan 2005 16:36:40 -0000	1.108
+++ gnome-session/Makefile.am	15 Sep 2005 21:49:35 -0000
@@ -4,6 +4,7 @@ defaultdir = $(datadir)/gnome
 
 INCLUDES =						\
 	$(GNOME_SESSION_CFLAGS)				\
+	$(LIBNOTIFY_CFLAGS)				\
 	$(STANDARD_PROPERTIES_CFLAGS)			\
 	$(WARN_CFLAGS)					\
 	$(DISABLE_DEPRECATED_CFLAGS)			\
@@ -26,7 +27,7 @@ STANDARD_PROPERTIES_CFLAGS =            
 	-DDATADIR=\""$(datadir)"\"                              \
 	$(NULL)
 
-gnome_session_LDADD = $(X_LIBS) $(GNOME_SESSION_LIBS) $(LIBWRAP_LIBS)
+gnome_session_LDADD = $(X_LIBS) $(GNOME_SESSION_LIBS) $(LIBWRAP_LIBS) $(LIBNOTIFY_LIBS)
 gnome_session_save_LDADD = $(GNOME_SESSION_LIBS)
 gnome_session_remove_LDADD = $(GNOME_SESSION_LIBS)
 gnome_session_properties_LDADD = $(GNOME_SESSION_LIBS)
@@ -95,6 +96,8 @@ gnome_session_SOURCES =		\
 	gsm-keyring.h		\
 	gsm-gsd.c		\
 	gsm-gsd.h		\
+	gsm-motd.c		\
+	gsm-motd.h		\
 	gsm-protocol.c		\
 	gsm-protocol.h		\
 	gsm-remote-desktop.c	\
Index: gnome-session/main.c
===================================================================
RCS file: /cvs/gnome/gnome-session/gnome-session/main.c,v
retrieving revision 1.67
diff -u -p -r1.67 main.c
--- gnome-session/main.c	25 Jul 2005 07:13:53 -0000	1.67
+++ gnome-session/main.c	15 Sep 2005 21:49:35 -0000
@@ -48,6 +48,7 @@
 #include "gsm-xrandr.h"
 #include "gsm-at-startup.h"
 #include "gsm-remote-desktop.h"
+#include "gsm-motd.h"
 
 /* Flag indicating autosave - user won't be prompted on logout to 
  * save the session */
@@ -461,7 +462,11 @@ main (int argc, char *argv[])
   if (a_t_support) /* the ATs are happier if the session has started */
     gsm_assistive_technologies_start ();
 
+  gsm_motd_start ();
+
   gtk_main ();
+
+  gsm_motd_stop ();
 
   gsm_remote_desktop_cleanup ();
 

