mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
If OpenSSL provides crypt(3), no need to check -lcrypt
This commit is contained in:
parent
06aa7d8d43
commit
9f4d662f87
2 changed files with 145 additions and 133 deletions
|
|
@ -2297,10 +2297,16 @@ fi
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl FreeBSD (and others) have crypt(3) in -lcrypt
|
dnl FreeBSD (and others) have crypt(3) in -lcrypt
|
||||||
if test $ol_enable_crypt != no ; then
|
if test $ol_enable_crypt != no ; then
|
||||||
|
save_LIBS="$LIBS"
|
||||||
|
LIBS="$TLS_LIBS $LIBS"
|
||||||
|
|
||||||
AC_CHECK_FUNC(crypt, [have_crypt=yes], [
|
AC_CHECK_FUNC(crypt, [have_crypt=yes], [
|
||||||
|
LIBS="$save_LIBS"
|
||||||
AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
|
AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
|
||||||
have_crypt=yes], [have_crypt=no])])
|
have_crypt=yes], [have_crypt=no])])
|
||||||
|
|
||||||
|
LIBS="$save_LIBS"
|
||||||
|
|
||||||
if test $have_crypt = yes ; then
|
if test $have_crypt = yes ; then
|
||||||
AC_DEFINE(HAVE_CRYPT,1, [define if crypt(3) is available])
|
AC_DEFINE(HAVE_CRYPT,1, [define if crypt(3) is available])
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue