allow compilation of battery module on mac os x

SVN revision: 39935
This commit is contained in:
Vincent Torri 2009-04-10 14:05:50 +00:00
parent ee5f8d6668
commit 992597240a
2 changed files with 10 additions and 0 deletions

View File

@ -313,6 +313,15 @@ define([CHECK_MODULE_BATTERY],
[], [BATTERY=false])
])
BATTERY_LDFLAGS=
case "$host_os" in
darwin*)
BATTERY_LDFLAGS="-framework Foundation -framework IOKit"
;;
esac
AC_SUBST(BATTERY_LDFLAGS)
AM_CONDITIONAL(HAVE_TEMPERATURE, false)
define([CHECK_MODULE_TEMPERATURE],
[

View File

@ -31,6 +31,7 @@ batgetdir = $(pkgdir)
batget_PROGRAMS = batget
batget_SOURCES = batget.c
batget_LDADD = @BATTERY_LIBS@
batget_LDFLAGS = @BATTERY_LDFLAGS@
uninstall: