Browse CVS Repository
Diff of /satellite/satellite4/aclocal.m4
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 7017 |
AC_SUBST(PTHREAD_LIBS) |
AC_SUBST(PTHREAD_LIBS) |
| 7018 |
]) |
]) |
| 7019 |
|
|
| 7020 |
|
# Configure paths for termcap lib |
| 7021 |
|
# Yoshihiro OKUMURA |
| 7022 |
|
# |
| 7023 |
|
|
| 7024 |
|
dnl AM_PATH_TERMCAP() |
| 7025 |
|
dnl test for termcap, and define TERMCAP_LIBS |
| 7026 |
|
dnl |
| 7027 |
|
AC_DEFUN(AM_PATH_TERMCAP, |
| 7028 |
|
[dnl |
| 7029 |
|
TERMCAP_LIBS="" |
| 7030 |
|
|
| 7031 |
|
# checking headers |
| 7032 |
|
AC_CHECK_HEADERS([ncurses.h termcap.h curses.h term.h]) |
| 7033 |
|
|
| 7034 |
|
# checking libs |
| 7035 |
|
AC_CHECK_LIB(ncurses, tgetent, have_ncurses=yes, have_ncurses=no) |
| 7036 |
|
AC_CHECK_LIB(curses, tgetent, have_curses=yes, have_curses=no) |
| 7037 |
|
AC_CHECK_LIB(termcap, tgetent, have_termcap=yes, have_termcap=no) |
| 7038 |
|
|
| 7039 |
|
if test x$have_ncurses = xyes; then |
| 7040 |
|
TERMCAP_LIBS="-lncurses" |
| 7041 |
|
elif test x$have_curses = xyes; then |
| 7042 |
|
TERMCAP_LIBS="-lcurses" |
| 7043 |
|
elif test x$have_termcap = xyes; then |
| 7044 |
|
TERMCAP_LIBS="-ltermcap" |
| 7045 |
|
else |
| 7046 |
|
AC_MSG_ERROR([*** curses or termcap lib not installed - please install first ***]) |
| 7047 |
|
fi |
| 7048 |
|
|
| 7049 |
|
AC_SUBST(TERMCAP_LIBS) |
| 7050 |
|
]) |
| 7051 |
|
|
|
|
Legend:
| Removed from v.1.1 |
|
| changed lines |
| |
Added in v.1.2 |
|
|
| |