mirror of
https://github.com/git/git.git
synced 2024-11-27 12:03:55 +08:00
autoconf: fix NEEDS_SSL_WITH_CRYPTO
NEEDS_SSL_WITH_CRYPTO means you cannot just say "-lcrypto" to use SHA1 stuff, but need to say "-lcrypto -lssl". Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
34d4a67f47
commit
3068f6c47d
@ -154,8 +154,8 @@ AC_MSG_NOTICE([CHECKS for libraries])
|
||||
#
|
||||
# Define NO_OPENSSL environment variable if you do not have OpenSSL.
|
||||
# Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
|
||||
AC_CHECK_LIB([ssl], [SHA1_Init],[],
|
||||
[AC_CHECK_LIB([crypto], [SHA1_INIT],
|
||||
AC_CHECK_LIB([crypto], [SHA1_Init],[],
|
||||
[AC_CHECK_LIB([ssl], [SHA1_Init],
|
||||
[GIT_CONF_APPEND_LINE(NEEDS_SSL_WITH_CRYPTO=YesPlease)],
|
||||
[GIT_CONF_APPEND_LINE(NO_OPENSSL=YesPlease)])])
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user