diff -u --recursive gnumeric-1.9.0-vanilla/configure.in gnumeric-1.9.0/configure.in
--- gnumeric-1.9.0-vanilla/configure.in	2008-05-22 20:19:26.000000000 -0400
+++ gnumeric-1.9.0/configure.in	2008-05-22 21:54:19.000000000 -0400
@@ -310,6 +310,26 @@
 fi
 
 dnl ==============================================
+dnl Mac OS X menubar integration
+
+AC_ARG_ENABLE(macos-menu,
+	AC_HELP_STRING([--enable-macos-menu],[Build with Mac OS X menubar integration]),
+	enable_macosmenu="$enableval",
+	enable_macosmenu=no)
+
+if test "x$enable_macosmenu" = "xyes"; then
+	PKG_CHECK_MODULES(IGE_MAC_INTEGRATION, ige-mac-integration, HAVE_MACOSMENU=yes, HAVE_MACOSMENU=no)
+fi
+
+if test "x$HAVE_MACOSMENU" = "xyes" ; then
+    AC_DEFINE(GNM_USE_MACOSMENU, 1, [Build with Mac OS X menubar integration])
+fi
+
+AM_CONDITIONAL(USE_IGE_MAC_INTEGRATION, test "x$HAVE_IGE-MAC-INTEGRATION" = "xyes")
+AC_SUBST(IGE_MAC_INTEGRATION_CFLAGS)
+AC_SUBST(IGE_MAC_INTEGRATION_LIBS)
+
+dnl ==============================================
 dnl Maemo/Hildon based User Interface
 
 AC_ARG_ENABLE(hildon,
diff -u --recursive gnumeric-1.9.0-vanilla/src/Makefile.am gnumeric-1.9.0/src/Makefile.am
--- gnumeric-1.9.0-vanilla/src/Makefile.am	2008-05-22 20:19:25.000000000 -0400
+++ gnumeric-1.9.0/src/Makefile.am	2008-05-22 22:22:40.000000000 -0400
@@ -32,7 +32,8 @@
 	-I$(srcdir)/dialogs						\
 	-I$(srcdir)/tools						\
 	$(GNUMERIC_CFLAGS)						\
-	$(HILDON_CFLAGS)
+	$(HILDON_CFLAGS)						\
+	$(IGE_MAC_INTEGRATION_CFLAGS)
 
 # A hint is needed to build these headers first:
 BUILT_SOURCES =					\
@@ -52,7 +53,8 @@
 	$(gnumeric_app_libs)			\
 	$(GNUMERIC_LIBS)			\
 	$(INTLLIBS)				\
-	$(HILDON_LIBS)
+	$(HILDON_LIBS)				\
+	$(IGE_MAC_INTEGRATION_LIBS)
 
 libspreadsheet_la_SOURCES =			\
 	gnm-marshalers.c			\
diff -u --recursive gnumeric-1.9.0-vanilla/src/wbc-gtk.c gnumeric-1.9.0/src/wbc-gtk.c
--- gnumeric-1.9.0-vanilla/src/wbc-gtk.c	2008-05-22 20:19:25.000000000 -0400
+++ gnumeric-1.9.0/src/wbc-gtk.c	2008-05-22 21:58:50.000000000 -0400
@@ -4491,6 +4491,17 @@
 	}
 	g_free (uifile);
 
+	#ifdef GNM_USE_MACOSMENU
+	{
+		GtkWidget *menubar;
+		menubar = gtk_ui_manager_get_widget(wbcg->ui, "/ui/menubar");
+		if (menubar != NULL) {
+			ige_mac_menu_install_key_handler ();
+			ige_mac_menu_set_menu_bar (GTK_MENU_SHELL (menubar));
+		}
+	}
+	#endif /* GNM_USE_MACOSMENU */
+
 	wbcg->custom_uis = g_hash_table_new_full (g_direct_hash, g_direct_equal,
 						 NULL, g_free);
 
