commit f75abb966d1c385a0c2509c886ded138c23e3ee8
Author: Frédéric Péters <fpeters@0d.be>
Date:   Fri Feb 25 11:11:47 2011 +0100

    [mouse/keyboard] explicitely link against X11 (GNOME bug 643277)

diff --git a/panels/keyboard/Makefile.am b/panels/keyboard/Makefile.am
index 97d5660..9502606 100644
--- a/panels/keyboard/Makefile.am
+++ b/panels/keyboard/Makefile.am
@@ -22,7 +22,7 @@ libkeyboard_la_SOURCES =   \
 	eggaccelerators.h
 
 libkeyboard_la_CFLAGS = $(PANEL_CFLAGS) $(KEYBOARD_PANEL_CFLAGS)
-libkeyboard_la_LIBADD = $(PANEL_LIBS) $(KEYBOARD_PANEL_LIBS)
+libkeyboard_la_LIBADD = $(PANEL_LIBS) $(KEYBOARD_PANEL_LIBS) -lX11
 libkeyboard_la_LDFLAGS = $(PANEL_LDFLAGS)
 
 @INTLTOOL_DESKTOP_RULE@
diff --git a/panels/mouse/Makefile.am b/panels/mouse/Makefile.am
index 3da5643..4847c86 100644
--- a/panels/mouse/Makefile.am
+++ b/panels/mouse/Makefile.am
@@ -23,7 +23,7 @@ libmouse_properties_la_SOURCES =	\
 	gsd-input-helper.c		\
 	gsd-input-helper.h
 
-libmouse_properties_la_LIBADD = $(PANEL_LIBS) $(MOUSE_PANEL_LIBS)
+libmouse_properties_la_LIBADD = $(PANEL_LIBS) $(MOUSE_PANEL_LIBS) -lX11
 libmouse_properties_la_LDFLAGS = $(PANEL_LDFLAGS)
 
 @INTLTOOL_DESKTOP_RULE@
