Blob Blame History Raw
diff -up gnome-panel-2.31.92/configure.ac.libs gnome-panel-2.31.92/configure.ac
--- gnome-panel-2.31.92/configure.ac.libs	2010-09-14 08:48:16.000000000 -0400
+++ gnome-panel-2.31.92/configure.ac	2010-09-22 00:52:56.138997995 -0400
@@ -235,10 +235,15 @@ AC_SUBST(X_LIBS)
 
 dnl X RANDR extension
 
-PKG_CHECK_MODULES(XRANDR, xrandr >= 1.2.0, have_randr=yes, have_randr=no)
-if test "x$have_randr" = "xyes"; then
+PKG_CHECK_MODULES(XRANDR, xrandr >= 1.2.0, [
   AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library])
-fi
+  have_randr=yes
+  X_LIBS="$X_LIBS $XRANDR_LIBS"
+], [
+  have_randr=no
+])
+
+AC_SUBST(X_LIBS)
 
 dnl Modules dir
 AC_SUBST([modulesdir],"\$(libdir)/gnome-panel/modules")
diff -up gnome-panel-2.31.92/gnome-panel/Makefile.am.libs gnome-panel-2.31.92/gnome-panel/Makefile.am
--- gnome-panel-2.31.92/gnome-panel/Makefile.am.libs	2010-09-14 03:55:39.000000000 -0400
+++ gnome-panel-2.31.92/gnome-panel/Makefile.am	2010-09-22 00:53:48.106998001 -0400
@@ -154,6 +154,7 @@ gnome_panel_LDADD =		\
 	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la			\
 	$(PANEL_LIBS)									\
 	$(XRANDR_LIBS)									\
+	-lm \
 	$(X_LIBS)
 
 gnome_panel_LDFLAGS = -export-dynamic
@@ -170,6 +171,7 @@ gnome_desktop_item_edit_LDFLAGS = -expor
 gnome_desktop_item_edit_LDADD = 	\
 	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la \
 	$(PANEL_LIBS)			\
+	-lm	\
 	$(X_LIBS)
 
 uidir = $(datadir)/gnome-panel/ui