mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 18:15:17 +00:00
Delay checking for want_apcupsd.
The if-clause checking for the host operating system being Linux may change the value of want_apcupsd. Delay checking for its value until after that. Signed-off-by: Brenden Matthews <brenden@rty.ca>
This commit is contained in:
parent
45e403f553
commit
8da700b8c1
@ -222,7 +222,6 @@ AC_ARG_ENABLE([apcupsd],
|
||||
[disable if you do not want apcupsd support @<:@default=yes@:>@]),
|
||||
[want_apcupsd="$enableval"], [want_apcupsd=yes])
|
||||
|
||||
AM_CONDITIONAL(BUILD_APCUPSD, test x$want_apcupsd = xyes)
|
||||
if test x$want_apcupsd = xyes; then
|
||||
if test x"$uname" != xLinux; then
|
||||
AC_MSG_NOTICE([apcupsd not supported on $uname... disabling])
|
||||
@ -231,6 +230,7 @@ if test x$want_apcupsd = xyes; then
|
||||
AC_DEFINE(APCUPSD, 1, [Define if you want apcupsd support])
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(BUILD_APCUPSD, test x$want_apcupsd = xyes)
|
||||
|
||||
AC_ARG_ENABLE([math],
|
||||
AC_HELP_STRING([--disable-math], [disable if you do not want math support @<:@default=yes@:>@]),
|
||||
|
Loading…
Reference in New Issue
Block a user