From 2ac2f673515748545c3a9cb22c8e890ae2becd60 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Mon, 28 Oct 2019 22:06:39 +0000 Subject: [PATCH] wmbattery: use lower-case prefixes for PKG_CHECK_MODULES checks. Signed-off-by: Jeremy Sowden --- wmbattery/Makefile.in | 8 ++++---- wmbattery/configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wmbattery/Makefile.in b/wmbattery/Makefile.in index 5c1529b..96ddfad 100644 --- a/wmbattery/Makefile.in +++ b/wmbattery/Makefile.in @@ -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 diff --git a/wmbattery/configure.ac b/wmbattery/configure.ac index 496caff..ff41e9a 100644 --- a/wmbattery/configure.ac +++ b/wmbattery/configure.ac @@ -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) ])