Fix configure script for --enable-zippy (tiny change)
authorDaniel Dugovic <dandydand@gmail.com>
Tue, 20 Nov 2012 04:35:05 +0000 (20:35 -0800)
committerArun Persaud <arun@nubati.net>
Tue, 20 Nov 2012 04:35:05 +0000 (20:35 -0800)
reported and patch by Daniel.

edited by Arun Persaud:
- also fixed #ifndef ZIPPY -> #if !ZIPPY
- didn't change #if -> #ifdef

configure.ac
menus.c

index d226c53..34a68ee 100644 (file)
@@ -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 (file)
--- 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 },