This was causing the configure script to fail on checking for ncurses
when it was actually failing due to libcrypt being missing. A check
for -lutil should be added to, but I didn't do this since -lutil is
not required since glibc 2.34 and I'm using a newer version and don't
know what function it should check for.
case "$(uname -s)" in
Linux | *BSD)
- LIBS="$LIBS -lutil -lcrypt"
+ LIBS+=" -lutil"
+ AC_CHECK_LIB(crypt, crypt, [LIBS+=" -lcrypt"], [
+ AC_MSG_ERROR([Cannot find libcrypt.])
+ ])
AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])
;;
esac