set ENABLE_GOOGLE to boolean definition
ENABLE_GOOGLE was set as an if defined. Change it to a true boolean so
it can be defined as 0 or 1 and will be have as expected.
Change-Id: I2bf59019ede669679ece6a7fbe7cf4b57c07102b
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index b2fa58d..35bb02c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,12 +25,14 @@
# Do you want to install with the Google OEM Number as well.
AC_ARG_ENABLE([google],
- AS_HELP_STRING([--enable-google], [Enable registering with Google OEN])
+ AS_HELP_STRING(
+ [--enable-google], [Enable registering with Google OEN.]
+ )
)
-AC_ARG_VAR(ENABLE_GOOGLE, [Enable registering with Google OEN])
-AS_IF([test "x$enable_google" == "xyes"],
- [ENABLE_GOOGLE="yes"]
- AC_DEFINE_UNQUOTED([ENABLE_GOOGLE], ["$ENABLE_GOOGLE"], [Enable registering with Google OEN])
+AM_CONDITIONAL(ENABLE_GOOGLE, [test "x$enable_google" = "xyes"])
+AS_IF([test "x$enable_google" = "xyes"],
+ [AC_DEFINE(ENABLE_GOOGLE, [1], [Register with Google OEN.])],
+ [AC_DEFINE(ENABLE_GOOGLE, [0], [Do not register with Google OEN.])]
)
# Create configured output