(cd modules && ../$(LIBTOOL) --mode=install $(INSTALL) `basename $$i` $(root)$(prefix)/$$i) ; \
fi \
done
- @for i in utilsmenu weekly do \
+ @for i in utilsmenu weekly ; do \
if test -f $(srcdir)/$$i; then \
echo $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/$$i; \
$(INSTALL) $(srcdir)/$$i $(root)$(prefix)/$$i; \
fi
]
)
+AC_ARG_WITH(ncurses, [ --without-ncurses don't use ncurses])
if test "x$with_gdbm" != xno -a "x$with_gdbm" != xyes -a "$with_gdbm"; then
db_dir="$with_gdbm"
test -f /usr/local/lib/libresolv.a && LDFLAGS="$LDFLAGS -L/usr/local/lib"
AC_CHECK_LIB(resolv, res_query, RESOLV="$RESOLV -lresolv")
-AC_SEARCH_LIBS(tgetent, [ncurses curses termcap])
-AC_SEARCH_LIBS(initscr, [ncurses curses])
-AC_CHECK_FUNCS(vw_printw wcolor_set)
+if test "x$with_ncurses" != xno; then
+ AC_SEARCH_LIBS(tgetent, [ncurses curses termcap])
+ AC_SEARCH_LIBS(initscr, [ncurses curses])
+else
+ AC_SEARCH_LIBS(tgetent, [curses termcap])
+ AC_SEARCH_LIBS(initscr, [curses])
+fi
+AC_CHECK_FUNCS(vw_printw wcolor_set resizeterm wresize)
dnl Check for libpthread(s) if we're not using Digital UNIX or FreeBSD. (On
dnl which the -pthread flag takes care of this.)
dnl TODO: for the DB header checks, we should check whether the headers
dnl define db_env_create, somehow
dnl
-AC_CHECK_HEADERS(curses.h ncurses.h dl.h fcntl.h limits.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db3/db.h db4/db.h pthread.h netinet/in.h)
+AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db3/db.h db4/db.h pthread.h netinet/in.h)
+
+dnl
+dnl need to check if this is actually compilable, sometimes there are
+dnl conflicts with the system's headers (eg solaris xpg4 style headers)
+dnl
+if test "x$with_ncurses" != xno; then
+ AC_CHECK_HEADERS(ncurses.h,,,[ ])
+fi
AC_CHECK_HEADER(resolv.h, [SMTP=modules/libsmtp.la; DOMAIN=domain.c],,
[#ifdef HAVE_SYS_TYPES_H
*/
#include "sysdep.h"
+#include "screen.h"
#include <stdio.h>
#include <signal.h>
#include <string.h>
#endif
#include "citadel.h"
#include "commands.h"
-#include "screen.h"
#include "citadel_decls.h"
#ifdef HAVE_CURSES_H
#ifdef HAVE_CURSES_H
if (mainwindow && caught_sigwinch) {
caught_sigwinch = 0;
+#ifdef HAVE_RESIZETERM
resizeterm(screenheight + 1, screenwidth);
+#endif
+#ifdef HAVE_WRESIZE
wresize(mainwindow, screenheight, screenwidth);
wresize(statuswindow, 1, screenwidth);
+#endif
mvwin(statuswindow, screenheight, 0);
status_line(serv_info.serv_humannode, serv_info.serv_bbs_city,
room_name, secure, -1);