Commit 555c863a 555c863a85ea16f3b01ea68087192313e812fcf2 by Sergey Poznyakoff

Changed check for CURSES_LIBS

1 parent f9bc2ab5
...@@ -385,8 +385,10 @@ AC_CHECK_FUNC(socket, [true], ...@@ -385,8 +385,10 @@ AC_CHECK_FUNC(socket, [true],
385 AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) 385 AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS"))
386 386
387 dnl Check for Curses libs. 387 dnl Check for Curses libs.
388 AC_CHECK_LIB(ncurses, tputs, CURSES_LIBS="-lncurses", 388 for lib in ncurses curses termcap
389 AC_CHECK_LIB(curses, tputs, CURSES_LIBS="-lcurses")) 389 do
390 AC_CHECK_LIB($lib, tputs, [CURSES_LIBS="-l$lib"; break])
391 done
390 392
391 AC_SUBST(CURSES_LIBS) 393 AC_SUBST(CURSES_LIBS)
392 394
......