aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2005-11-18 17:08:36 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-19 20:17:25 -0800
commit0890098780f295f2a58658d1f6b6627e40426c72 (patch)
tree58111a62fae0969210ab8237755a47f32cb7c5e4 /Makefile
parent11979b98adc301fed84122237d0d5a26a360fede (diff)
downloadgit-0890098780f295f2a58658d1f6b6627e40426c72.tar.gz
git-0890098780f295f2a58658d1f6b6627e40426c72.tar.xz
Decide whether to build http-push in the Makefile
The decision about whether to build http-push or not belongs in the Makefile. This follows Junio's suggestion to determine whether curl is new enough to support http-push. Signed-off-by: Nick Hengeveld <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 285b3ed16..0efb0b656 100644
--- a/Makefile
+++ b/Makefile
@@ -242,9 +242,12 @@ ifndef NO_CURL
CURL_LIBCURL = -lcurl
endif
PROGRAMS += git-http-fetch$X
- ifndef NO_EXPAT
- EXPAT_LIBEXPAT = -lexpat
- PROGRAMS += git-http-push$X
+ curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
+ ifeq "$(curl_check)" "070908"
+ ifndef NO_EXPAT
+ EXPAT_LIBEXPAT = -lexpat
+ PROGRAMS += git-http-push$X
+ endif
endif
endif