From 9c170c940d713535ee4c0e29fbe463df966b19f8 Mon Sep 17 00:00:00 2001 From: Daniel Dugovic Date: Mon, 19 Nov 2012 20:35:05 -0800 Subject: [PATCH 1/1] Fix configure script for --enable-zippy (tiny change) reported and patch by Daniel. edited by Arun Persaud: - also fixed #ifndef ZIPPY -> #if !ZIPPY - didn't change #if -> #ifdef --- configure.ac | 5 +++-- menus.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d226c53..34a68ee 100644 --- a/configure.ac +++ b/configure.ac @@ -448,14 +448,15 @@ AC_DEFINE_UNQUOTED(USE_PTYS, $USE_PTYS) dnl | define not to build zippy as a default, so that autoheader is happy -AC_DEFINE(ZIPPY, 0,[should zippy be enabled]) AC_ARG_ENABLE( [zippy], [AS_HELP_STRING([--enable-zippy],[support interfacing a chess program to ICS (default)])], [], - [enable_zippy="yes"]) + [enable_zippy="no"]) if test x"$enable_zippy" != xno; then AC_DEFINE(ZIPPY, 1,[should zippy be enabled]) +else + AC_DEFINE(ZIPPY, 0,[should zippy be enabled]) fi AM_CONDITIONAL([ZIPPY], [test x$enable_zippy != xno]) diff --git a/menus.c b/menus.c index df0b733..52d91be 100644 --- a/menus.c +++ b/menus.c @@ -848,7 +848,7 @@ Enables icsEnables[] = { { "Mode.AnalyzeFile", False }, { "Mode.TwoMachines", False }, { "Mode.MachineMatch", False }, -#ifndef ZIPPY +#if !ZIPPY { "Engine.Hint", False }, { "Engine.Book", False }, { "Engine.MoveNow", False }, -- 1.7.0.4