securid5 stuff needs pthreads. Just adding -lpthread is suboptimal

but I don't see a better way at the moment.
This commit is contained in:
Todd C. Miller
2002-05-17 17:20:09 +00:00
parent 16547b2ef8
commit ef8c99a5f7

View File

@@ -1826,7 +1826,10 @@ if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
OLIBS="${LIBS}"
LIBS="${LIBS} ${SD_LIB}"
SUDO_LIBS="${SUDO_LIBS} ${SD_LIB}"
AC_CHECK_FUNC(SD_Init, [AUTH_OBJS="securid5.o"], [AUTH_OBJS="securid.o"])
AC_CHECK_FUNC(SD_Init,
[AUTH_OBJS="securid5.o"; SUDO_LIBS="${SUDO_LIBS} -lpthread"],
[AUTH_OBJS="securid.o"]
)
LIBS="${OLIBS}"
fi