Develop and Download Open Source Software

Browse CVS Repository

Diff of /satellite/satellite4/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by orrisroot, Wed Mar 31 08:15:05 2004 UTC revision 1.2 by orrisroot, Wed Jul 28 13:47:05 2004 UTC
# Line 7017  AC_DEFUN(AM_PATH_PTHREAD, Line 7017  AC_DEFUN(AM_PATH_PTHREAD,
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26