[Toxine-cvs] CVS: toxine configure.ac,1.4,1.5
Brought to you by:
f1rmb
From: Daniel Caujolle-B. <f1...@us...> - 2003-10-15 17:32:54
|
Update of /cvsroot/toxine/toxine In directory sc8-pr-cvs1:/tmp/cvs-serv5267 Modified Files: configure.ac Log Message: try to fix jcd tputs problem Index: configure.ac =================================================================== RCS file: /cvsroot/toxine/toxine/configure.ac,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- configure.ac 15 Oct 2003 16:48:13 -0000 1.4 +++ configure.ac 15 Oct 2003 17:32:51 -0000 1.5 @@ -164,8 +164,9 @@ opt_shared=no dnl arguments to configure -AC_ARG_WITH(curses, [ --with-curses use the curses library instead of the termcap library], - opt_curses=$withval) +AC_ARG_WITH(curses, + [ --with-curses use the curses library instead of the termcap library], + opt_curses=$withval) if test "$opt_curses" = "yes"; then prefer_curses=yes @@ -181,7 +182,7 @@ AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \ - termcap.h termios.h termio.h sys/file.h locale.h memory.h ) + termcap.h termios.h termio.h sys/file.h locale.h memory.h) dnl BASH_SYS_SIGNAL_VINTAGE dnl pure 2.50 dnl BASH_SYS_REINSTALL_SIGHANDLERS dnl pure 2.50 @@ -207,7 +208,7 @@ esac BASH_CHECK_LIB_TERMCAP([], - AC_MSG_ERROR([*** termcap support is required to build readline library ***])) + AC_MSG_RESULT([*** All of READLINE dependent parts will be disabled ***])) case "$host_cpu" in *cray*) READLINE_LOCAL_CFLAGS=-DCRAY ;; @@ -221,6 +222,19 @@ AC_SUBST(READLINE_LOCAL_CFLAGS) AC_SUBST(TERMCAP_LIB) AC_SUBST(LIBVERSION) +AM_CONDITIONAL(HAVE_TERMCAP, test x"$no_termcap" != "xyes") + +dnl +dnl ncurses +dnl +AC_CHECK_HEADERS(curses.h) +AC_CHECK_LIB(ncurses, cbreak, + AC_DEFINE(HAVE_NCURSES,,[Define this if you have ncurses installed]) + ac_have_ncurses="yes" + NCURSES_LIB="-lncurses") +AC_SUBST(NCURSES_LIB) +AM_CONDITIONAL(HAVE_NCURSES, test x$ac_have_ncurses = "xyes") + dnl dnl Checks for Ascii-Art library |