From 425b6df7c4e8c9c862a54ca12cbe2a5310b900fe Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sat, 1 Oct 2011 22:41:04 +0200 Subject: [PATCH] Fix quoting problem in configure.ac since "not supported on foo" is sometimes assigned to want_bar variables, we need to quote them properly when testing them. --- configure.ac.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index 2f2529ca..3b82434b 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -198,7 +198,7 @@ AC_ARG_ENABLE([ibm], [want_ibm="$enableval"], [want_ibm=no]) AM_CONDITIONAL(BUILD_IBM, test x$want_ibm = xyes) -if test x$want_ibm = xyes; then +if test "x$want_ibm" = xyes; then if test x"$uname" != xLinux; then AC_MSG_NOTICE([support for IBM/Lenovo notebooks not supported on $uname... disabling]) want_ibm="not supported on $uname" @@ -218,7 +218,7 @@ AC_ARG_ENABLE([hddtemp], [want_hddtemp="$enableval"], [want_hddtemp=yes]) AM_CONDITIONAL(BUILD_HDDTEMP, test x$want_hddtemp = xyes) -if test x$want_hddtemp = xyes; then +if test "x$want_hddtemp" = xyes; then if test x"$uname" != xLinux; then AC_MSG_NOTICE([hddtemp not supported on $uname... disabling]) want_hddtemp="not supported on $uname" @@ -237,7 +237,7 @@ AC_ARG_ENABLE([apcupsd], [disable if you do not want apcupsd support @<:@default=yes@:>@]), [want_apcupsd="$enableval"], [want_apcupsd=yes]) -if test x$want_apcupsd = xyes; then +if test "x$want_apcupsd" = xyes; then if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then AC_MSG_NOTICE([apcupsd not supported on $uname... disabling]) want_apcupsd="not supported on $uname" @@ -245,7 +245,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) +AM_CONDITIONAL(BUILD_APCUPSD, test "x$want_apcupsd" = xyes) dnl @@ -257,7 +257,7 @@ AC_ARG_ENABLE([iostats], [enable if you want support for per-task I/O statistics @<:@default=yes@:>@]), [want_iostats="$enableval"], [want_iostats=yes]) -if test x$want_iostats = xyes; then +if test "x$want_iostats" = xyes; then if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then AC_MSG_NOTICE([iostats not supported on $uname... disabling]) want_iostats="not supported on $uname"