Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 24bbb38

Browse files
committed
Merge 'refs/rewritten/junio/notyet' into HEAD
2 parents 20ba112 + c5d67b1 commit 24bbb38

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,13 +1148,11 @@ else
11481148
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
11491149
PROGRAM_OBJS += http-fetch.o
11501150
PROGRAMS += $(REMOTE_CURL_NAMES)
1151-
curl_check := $(shell (echo 070908; curl-config --vernum) 2>/dev/null | sort -r | sed -ne 2p)
1152-
ifeq "$(curl_check)" "070908"
1153-
ifndef NO_EXPAT
1151+
ifndef NO_EXPAT
1152+
ifndef NO_CURL_MULTI
11541153
PROGRAM_OBJS += http-push.o
11551154
endif
1156-
endif
1157-
ifndef NO_EXPAT
1155+
11581156
ifdef EXPATDIR
11591157
BASIC_CFLAGS += -I$(EXPATDIR)/include
11601158
EXPAT_LIBEXPAT = -L$(EXPATDIR)/$(lib) $(CC_LD_DYNPATH)$(EXPATDIR)/$(lib) -lexpat

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)