The attached patch contains the following changes: Makefile.am : - adds LT
Reported by Dan McMahill
Originally assigned to Sylvestre LEDRU
-- Bug description --
The attached patch contains the following changes:
Makefile.am :
- adds LTLIBINTL to the list of common objects needed for linking the top level binary. This was needed for the internationalization (some systems need -lintl).
configure.ac :
- adds checks for term.h and termcap.h headers.
- adds check for -lpthread
- reworks the checks for curses a little bit to search for curses.h and -lcurses first followed by ncurses.h and -lncurses. I think what's here should work on all reasonably modern systems, but what is still lacking is a good way for the user to force a particular choice of header and library in case there is something weird about their system.
modules/shell/src/c/others/zzledt.c :
- use configure results to protect the inclusion of curses.h, ncurses.h, term.h, and termcap.h.
- add __DragonFly__ to a few conditional lines.
- remove the static declaration of BC to match what was found in a header file.
- adds missing enable_keypad_mode()
modules/shell/src/c/scilines.c
- use configure results to protect the inclusion of curses.h, ncurses.h, term.h, and termcap.h.
I have tested these changes under NetBSD-4 running on a DEC alpha and I think they should be ok for other systems but the curses stuff in particular could probably use some testing on other systems.
-- Scilab error message --
-- How to reproduce the bug --
Created an attachment (id=1138)
-lpthread detection, improved curses detection, minor portability fixes