From 8b72032924de9040facee8d8923536541a6b9390 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 19 Oct 2013 21:27:11 +0200 Subject: [PATCH] Finish the --without-curses support. Now that all the silly problems refering to Curses-specific functions from unrelated places are all solved, we can spare linking cursesdsp when not required. --- configure.ac | 3 ++- gnushogi/Makefile.in | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6a710a0..5d16f66 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,8 @@ AC_ARG_WITH([curses], LIBCURSES= AS_IF([test "x$with_curses" != xno], [AC_CHECK_LIB([curses], [clrtoeol], - [AC_SUBST([LIBCURSES], ["-lcurses"]) + [AC_SUBST([LIBCURSES], [-lcurses]) + AC_SUBST([CURSESDSP], [cursesdsp.o]) AC_DEFINE([HAVE_LIBCURSES], [1], [Define if you have lib]) ], diff --git a/gnushogi/Makefile.in b/gnushogi/Makefile.in index 09d4245..013beb6 100644 --- a/gnushogi/Makefile.in +++ b/gnushogi/Makefile.in @@ -60,7 +60,7 @@ INFODIR = $(prefix)/info LIBS = -lm # Display routines. -LCURSES = -lcurses -ltermcap +LCURSES = @LIBCURSES@ # @@ -112,7 +112,7 @@ COMMONFILES = \ attacks.o \ book.o \ commondsp.o \ - cursesdsp.o \ + @CURSESDSP@ \ dspwrappers.o \ eval.o \ genmove.o \ -- 1.7.0.4