|
Packit Service |
a2489d |
AC_DEFUN([lftp_TERMINFO],
|
|
Packit Service |
a2489d |
[
|
|
Packit Service |
a2489d |
AC_CHECK_HEADERS(curses.h term.h ncurses/curses.h ncurses/term.h termcap.h)
|
|
Packit Service |
a2489d |
|
|
Packit Service |
a2489d |
# Get a library with terminal caps if needed; prefer one with tigetstr.
|
|
Packit Service |
a2489d |
AC_SEARCH_LIBS(tigetstr, [tinfo curses ncurses], [
|
|
Packit Service |
a2489d |
AC_DEFINE(HAVE_TIGETSTR, 1, [Define to 1 if you have the `tigetstr' function.])
|
|
Packit Service |
a2489d |
AC_CHECK_FUNCS(tgetstr)
|
|
Packit Service |
a2489d |
], [AC_SEARCH_LIBS(tgetstr, termcap,
|
|
Packit Service |
a2489d |
[AC_DEFINE(HAVE_TGETSTR, 1)],
|
|
Packit Service |
a2489d |
[AC_MSG_ERROR([No terminfo, termcap or curses library found. Install ncurses-devel.])])])
|
|
Packit Service |
a2489d |
|
|
Packit Service |
a2489d |
if test "x$ac_cs_ac_cv_header_curses_h" = xno -a "x$ac_cv_header_ncurses_curses_h" = xno \
|
|
Packit Service |
a2489d |
-a "x$ac_cs_ac_cv_header_term_h" = xno -a "x$ac_cv_header_ncurses_term_h" = xno \
|
|
Packit Service |
a2489d |
-a "x$ac_cs_ac_cv_header_termcap_h" = xno; then
|
|
Packit Service |
a2489d |
AC_MSG_ERROR([No terminfo, termcap or curses headers found. Install ncurses-devel]);
|
|
Packit Service |
a2489d |
fi
|
|
Packit Service |
a2489d |
])
|