From: Yann Dirson Date: Sat, 19 Oct 2013 19:27:11 +0000 (+0200) Subject: Finish the --without-curses support. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8b72032924de9040facee8d8923536541a6b9390;p=gnushogi.git 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. --- 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 \