]> andersk Git - moira.git/blobdiff - configure.in
Check to see if -lcurses has the newterm() function.
[moira.git] / configure.in
index fd3ebf91a9fd7d2a26c4f172cf3eb7053d0c0318..f85ab9e7626c377557315031b3cb23a9bc58cebe 100755 (executable)
@@ -373,6 +373,8 @@ if test -n "$CURSES_LIBS"; then
                AC_TRY_COMPILE([#include <curses.h>],[WINDOW *w; w->_maxx;],
                               [CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"],
                               [CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"]))
+    AC_TRY_LINK([#include <curses.h>],[newterm(NULL, NULL, NULL);],
+               [CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"])
     LIBS=$OLDLIBS
     CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
     CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
This page took 0.189992 seconds and 4 git commands to generate.