View | Details | Raw Unified
Collapse All | Expand All

(-) a/src/linux26.gmk (-5 / +5 lines)
 Lines 59-70   # figure out if termcap is avaiable or i Link Here 
# accomplish this try to compile test.c and see if it can link termcap. For
# accomplish this try to compile test.c and see if it can link termcap. For
# Linux 2.6 then preference would appear to be "ncurses" rather than "termcap". 
# Linux 2.6 then preference would appear to be "ncurses" rather than "termcap". 
#
#
test = $(shell echo "main() { printf(\"HW\n\"); }" > _t.c ; $(LD) $(LDFLAGS) -o /dev/null -lncurses _t.c 2>&1 ; rm _t.c)
#test = $(shell echo "main() { printf(\"HW\n\"); }" > _t.c ; $(LD) $(LDFLAGS) -o /dev/null -lncurses _t.c 2>&1 ; rm _t.c)
ifneq "$(strip $(test))" ""
#ifneq "$(strip $(test))" ""
CONSOLE_LIBS  = -ltermcap
#CONSOLE_LIBS  = -ltermcap
else
#else
CONSOLE_LIBS  = -lncurses
CONSOLE_LIBS  = -lncurses
endif
#endif
#
#
# Rules
# Rules
#
#