wmbattery: use lower-case prefixes for PKG_CHECK_MODULES checks.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
parent
d8d0a025e7
commit
2ac2f67351
|
@ -40,8 +40,8 @@ OBJS=wmbattery.o acpi.o sonypi.o
|
|||
|
||||
ifdef USE_HAL
|
||||
CPPFLAGS += -DHAL
|
||||
CFLAGS += @HAL_CFLAGS@
|
||||
LIBS += @HAL_LIBS@
|
||||
CFLAGS += @hal_CFLAGS@
|
||||
LIBS += @hal_LIBS@
|
||||
OBJS += simplehal.o
|
||||
simplehal.o: simplehal.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c simplehal.c -o simplehal.o
|
||||
|
@ -49,8 +49,8 @@ endif
|
|||
|
||||
ifdef USE_UPOWER
|
||||
CPPFLAGS += -DUPOWER
|
||||
CFLAGS += @UPOWER_GLIB_CFLAGS@
|
||||
LIBS += @UPOWER_GLIB_LIBS@
|
||||
CFLAGS += @upower_CFLAGS@
|
||||
LIBS += @upower_LIBS@
|
||||
OBJS += upower.o
|
||||
upower.o: upower.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c upower.c -o upower.o
|
||||
|
|
|
@ -31,13 +31,13 @@ AC_CHECK_LIB(apm, apm_read)
|
|||
AC_ARG_ENABLE(hal, AS_HELP_STRING([--enable-hal], [enable hal]),
|
||||
[], [enable_hal=no])
|
||||
AS_IF([test x$enable_hal != xno], [
|
||||
PKG_CHECK_MODULES([HAL], [hal])
|
||||
PKG_CHECK_MODULES([hal], [hal])
|
||||
AC_SUBST(USE_HAL, 1)
|
||||
])
|
||||
AC_ARG_ENABLE(upower, AS_HELP_STRING([--disable-upower], [disable upower]),
|
||||
[], [enable_upower=yes])
|
||||
AS_IF([test x$enable_upower != xno], [
|
||||
PKG_CHECK_MODULES([UPOWER_GLIB], [upower-glib])
|
||||
PKG_CHECK_MODULES([upower], [upower-glib])
|
||||
AC_SUBST(USE_UPOWER, 1)
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in a new issue