git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/5] autoconf: Fix NEEDS_SSL_WITH_CRYPTO detection

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 4, 2006, 21:28 UTC
Message-ID
<200608042328.58539.jnareb@gmail.com>
In-Reply-To
<200608042333.19011.jnareb@gmail.com>
>From 7829f2f76c429594602d845168841d378d269fba Mon Sep 17 00:00:00 2001
From: Junio C Hamano <junkio@cox.net>
Date: Fri, 4 Aug 2006 13:06:33 -0700
Subject: [PATCH 3/5] autoconf: Fix NEEDS_SSL_WITH_CRYPTO detection

NEEDS_SSL_WITH_CRYPTO means you cannot just say "-lcrypto" to use SHA1 stuff, but need to say "-lcrypto -lssl", so the test should say "if we can get away with -lcrypto, we are happy, otherwise if we need -lssl, then say NEEDS_SSL_WITH_CRYPTO, otherwise we cannot use OpenSSL so say NO_OPENSSL", or something like that.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 61c9fa3..a49bd1f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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)])])
 #
-- 
1.4.1.1
Previous: Jakub NarebskiNext: Jakub Narebski
Message 3 of 6 in “autoconf: Fixes and improvements (was: What's in git.git)”
  1. 0/5 autoconf: Fixes and improvements (was: What's in git.git)Jakub Narebski, Aug 4, 2006
  2. 2/5 autoconf: Set NEEDS_LIBICONV unconditionally if there is no iconv in libcJakub Narebski, Aug 4, 2006
  3. 3/5 autoconf: Fix NEEDS_SSL_WITH_CRYPTO detectionJakub Narebski, Aug 4, 2006
  4. 1/5 autoconf: typofix to detect SHA1_Init in -lcryptoJakub Narebski, Aug 4, 2006
  5. 4/5 autoconf: Double check for IPv6 supportJakub Narebski, Aug 4, 2006
  6. 5/5 autoconf: Unset NO_STH and NEED_STH when it is detected not neededJakub Narebski, Aug 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.