wmbattery: use lower-case prefixes for PKG_CHECK_MODULES checks.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
Jeremy Sowden 2019-10-28 22:06:39 +00:00 committed by Carlos R. Mafra
parent d8d0a025e7
commit 2ac2f67351
2 changed files with 6 additions and 6 deletions

View file

@ -40,8 +40,8 @@ OBJS=wmbattery.o acpi.o sonypi.o
ifdef USE_HAL ifdef USE_HAL
CPPFLAGS += -DHAL CPPFLAGS += -DHAL
CFLAGS += @HAL_CFLAGS@ CFLAGS += @hal_CFLAGS@
LIBS += @HAL_LIBS@ LIBS += @hal_LIBS@
OBJS += simplehal.o OBJS += simplehal.o
simplehal.o: simplehal.c simplehal.o: simplehal.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c simplehal.c -o simplehal.o $(CC) $(CPPFLAGS) $(CFLAGS) -c simplehal.c -o simplehal.o
@ -49,8 +49,8 @@ endif
ifdef USE_UPOWER ifdef USE_UPOWER
CPPFLAGS += -DUPOWER CPPFLAGS += -DUPOWER
CFLAGS += @UPOWER_GLIB_CFLAGS@ CFLAGS += @upower_CFLAGS@
LIBS += @UPOWER_GLIB_LIBS@ LIBS += @upower_LIBS@
OBJS += upower.o OBJS += upower.o
upower.o: upower.c upower.o: upower.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c upower.c -o upower.o $(CC) $(CPPFLAGS) $(CFLAGS) -c upower.c -o upower.o

View file

@ -31,13 +31,13 @@ AC_CHECK_LIB(apm, apm_read)
AC_ARG_ENABLE(hal, AS_HELP_STRING([--enable-hal], [enable hal]), AC_ARG_ENABLE(hal, AS_HELP_STRING([--enable-hal], [enable hal]),
[], [enable_hal=no]) [], [enable_hal=no])
AS_IF([test x$enable_hal != xno], [ AS_IF([test x$enable_hal != xno], [
PKG_CHECK_MODULES([HAL], [hal]) PKG_CHECK_MODULES([hal], [hal])
AC_SUBST(USE_HAL, 1) AC_SUBST(USE_HAL, 1)
]) ])
AC_ARG_ENABLE(upower, AS_HELP_STRING([--disable-upower], [disable upower]), AC_ARG_ENABLE(upower, AS_HELP_STRING([--disable-upower], [disable upower]),
[], [enable_upower=yes]) [], [enable_upower=yes])
AS_IF([test x$enable_upower != xno], [ 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) AC_SUBST(USE_UPOWER, 1)
]) ])