X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Makefile;h=0efb0b65654de91e2e2308343b4c9d4e58711d88;hb=0890098780f295f2a58658d1f6b6627e40426c72;hp=285b3ed16ed41c500890684e8fe4f40741c5a5bf;hpb=11979b98adc301fed84122237d0d5a26a360fede;p=git.git diff --git a/Makefile b/Makefile index 285b3ed1..0efb0b65 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