[Xfce4-commits] <xfce4-weather-plugin:master> Power saving: Add optional upower support to build system.
Harald Judt
noreply at xfce.org
Tue Feb 5 15:24:01 CET 2013
Updating branch refs/heads/master
to f622c1ad07bbb1f051a59bf798bdc5245d1147e0 (commit)
from 9e341ef38c49f2d70fbb8819fd9a355b23226f6f (commit)
commit f622c1ad07bbb1f051a59bf798bdc5245d1147e0
Author: Harald Judt <h.judt at gmx.at>
Date: Tue Feb 5 00:20:05 2013 +0100
Power saving: Add optional upower support to build system.
configure.ac.in | 2 ++
panel-plugin/Makefile.am | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure.ac.in b/configure.ac.in
index 4096503..d725b70 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -65,6 +65,8 @@ XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.7.0])
XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.7.0])
XDT_CHECK_PACKAGE([LIBXML], [libxml-2.0], [2.4.0])
XDT_CHECK_PACKAGE([SOUP], [libsoup-2.4], [2.26.0])
+XDT_CHECK_OPTIONAL_PACKAGE([UPOWER_GLIB], [upower-glib], [0.9.0], [upower],
+ [upower for adapting update interval to power state])
AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
AC_SUBST(LIBRESOLV)
diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am
index adaaa53..901197e 100644
--- a/panel-plugin/Makefile.am
+++ b/panel-plugin/Makefile.am
@@ -37,6 +37,7 @@ libweather_la_CFLAGS = \
$(LIBXFCE4UTIL_CFLAGS) \
$(GTK_CFLAGS) \
$(SOUP_CFLAGS) \
+ $(UPOWER_GLIB_CFLAGS) \
$(LIBXML_CFLAGS)
libweather_la_LIBADD = \
@@ -53,7 +54,8 @@ libweather_la_LDFLAGS = \
-module \
-no-undefined \
-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
- $(PLATFORM_LDFLAGS)
+ $(PLATFORM_LDFLAGS) \
+ $(UPOWER_GLIB_LIBS)
desktopdir = $(datadir)/xfce4/panel/plugins
desktop_in_files = weather.desktop.in
More information about the Xfce4-commits
mailing list