Skip to content

Commit 7cb4d70

Browse files
committed
Merge 'refs/rewritten/junio/notyet' into HEAD
2 parents 5adb572 + 812d9ee commit 7cb4d70

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,14 +1035,11 @@ else
10351035
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
10361036
PROGRAM_OBJS += http-fetch.o
10371037
PROGRAMS += $(REMOTE_CURL_NAMES)
1038-
curl_check := $(shell (echo 070908; curl-config --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/null | sort -r | sed -ne 2p)
1039-
ifeq "$(curl_check)" "070908"
1038+
ifndef NO_CURL_MULTI
10401039
ifndef NO_EXPAT
10411040
PROGRAM_OBJS += http-push.o
10421041
endif
1043-
endif
1044-
curl_check := $(shell (echo 072200; curl-config --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/null | sort -r | sed -ne 2p)
1045-
ifeq "$(curl_check)" "072200"
1042+
# Assume that cURL is new enough
10461043
USE_CURL_FOR_IMAP_SEND = YesPlease
10471044
endif
10481045
ifdef USE_CURL_FOR_IMAP_SEND

configure.ac

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,17 @@ AC_CHECK_LIB([curl], [curl_global_init],
521521
[NO_CURL=],
522522
[NO_CURL=YesPlease])
523523

524+
if test -z "$NO_CURL"; then
525+
526+
AC_CHECK_DECLS([curl_multi_init],
527+
[NO_CURL_MULTI=],
528+
[NO_CURL_MULTI=UnfortunatelyYes],
529+
[[#include <curl/curl.h>]])
530+
531+
GIT_CONF_SUBST([NO_CURL_MULTI])
532+
533+
fi
534+
524535
GIT_UNSTASH_FLAGS($CURLDIR)
525536

526537
GIT_CONF_SUBST([NO_CURL])

0 commit comments

Comments
 (0)