Post by Dennis PreiserPost by Urs JanÃenI've made snapshots of the upcomming tin 2.0.0 release.
- several configure macros were updated (please test build on non
linux systems and with other compilers than gcc)
With these changes HAVE_NCURSESW_NCURSES_H remains undefined in
autoconf.h here (MacOSX).
I have an older (non-widec) ncurses under /usr and a current ncursesw
..configure --with-screen=ncursesw --with-curses-dir=$HOME/sw ...
$HOME/sw/include/ncursesw/ncurses.h exists.
yes, but the configure script is finding ncursesw/curses.h first (now).
Either would be correct.
Looks like when I added the check for ncurses*-config, then I noticed
that I needed to add a check to keep #defines such as HAVE_NCURSESW_NCURSES_H
intact. I implemented that using CF_CURSES_HEADER, which can derive more
variations than CF_NCURSES_HEADER - noting that all of the symbols in
the former are generated, while the latter provides just a few special
cases.
We can address this in different ways:
a) modify CF_CURSES_HEADER to check for ncurses.h before curses.h
That's less intrusive to tin, of course. Also, arguably the
<ncursesw/ncurses.h> makes it plainly one of the ncurses variations.
I'm attaching a patch for this.
b) just update the symbols and #include's in tin.
In a way this is preferable since "curses.h" is both the standard name
as well as being the actual file (ncurses.h is a symbolic link).
--
Thomas E. Dickey <***@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net