mirror of
https://github.com/clearml/dropbear
synced 2025-03-15 08:08:30 +00:00
Another attempt at test for crypt()
This commit is contained in:
parent
56b9388702
commit
e038c26963
18
configure.ac
18
configure.ac
@ -82,9 +82,19 @@ AC_CHECK_DECL(__UCLIBC__,
|
|||||||
AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.])
|
AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.])
|
||||||
],,,)
|
],,,)
|
||||||
|
|
||||||
# Checks for libraries.
|
dnl We test for crypt() specially. On Linux (and others?) it resides in libcrypt
|
||||||
AC_CHECK_LIB(crypt, crypt, CRYPTLIB="-lcrypt")
|
dnl but we don't want link all binaries to -lcrypt, just dropbear server.
|
||||||
|
dnl OS X doesn't need -lcrypt
|
||||||
|
AC_CHECK_FUNC(crypt, found_crypt_func=here)
|
||||||
|
AC_CHECK_LIB(crypt, crypt,
|
||||||
|
[
|
||||||
|
CRYPTLIB="-lcrypt"
|
||||||
|
found_crypt_func=here
|
||||||
|
])
|
||||||
AC_SUBST(CRYPTLIB)
|
AC_SUBST(CRYPTLIB)
|
||||||
|
if test "t$found_crypt_func" == there; then
|
||||||
|
AC_DEFINE(HAVE_CRYPT, 1, [crypt() function])
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if zlib is needed
|
# Check if zlib is needed
|
||||||
AC_ARG_WITH(zlib,
|
AC_ARG_WITH(zlib,
|
||||||
@ -632,7 +642,7 @@ fi
|
|||||||
AC_PROG_GCC_TRADITIONAL
|
AC_PROG_GCC_TRADITIONAL
|
||||||
AC_FUNC_MEMCMP
|
AC_FUNC_MEMCMP
|
||||||
AC_FUNC_SELECT_ARGTYPES
|
AC_FUNC_SELECT_ARGTYPES
|
||||||
AC_CHECK_FUNCS([dup2 getpass getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev crypt])
|
AC_CHECK_FUNCS([dup2 getpass getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev])
|
||||||
|
|
||||||
AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
|
AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
|
||||||
|
|
||||||
@ -730,7 +740,7 @@ AC_MSG_NOTICE()
|
|||||||
AC_MSG_NOTICE([getpass() not available, dbclient will only have public-key authentication])
|
AC_MSG_NOTICE([getpass() not available, dbclient will only have public-key authentication])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$ac_cv_func_crypt" != xyes; then
|
if test "t$found_crypt_func" != there; then
|
||||||
AC_MSG_NOTICE()
|
AC_MSG_NOTICE()
|
||||||
AC_MSG_NOTICE([crypt() not available, dropbear server will not have password authentication])
|
AC_MSG_NOTICE([crypt() not available, dropbear server will not have password authentication])
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user