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.
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])
],
LIBS = -lm
# Display routines.
-LCURSES = -lcurses -ltermcap
+LCURSES = @LIBCURSES@
#
attacks.o \
book.o \
commondsp.o \
- cursesdsp.o \
+ @CURSESDSP@ \
dspwrappers.o \
eval.o \
genmove.o \