@@ -1558,23 +1558,23 @@ ifneq (,$(SOCKLEN_T))
1558
1558
endif
1559
1559
1560
1560
ifeq ($(uname_S ) ,Darwin)
1561
- ifndef NO_FINK
1562
- ifeq ($(shell test -d /sw/lib && echo y),y)
1561
+ ifndef NO_FINK
1562
+ ifeq ($(shell test -d /sw/lib && echo y),y)
1563
1563
BASIC_CFLAGS += -I/sw/include
1564
1564
BASIC_LDFLAGS += -L/sw/lib
1565
- endif
1566
- endif
1567
- ifndef NO_DARWIN_PORTS
1568
- ifeq ($(shell test -d /opt/local/lib && echo y),y)
1565
+ endif
1566
+ endif
1567
+ ifndef NO_DARWIN_PORTS
1568
+ ifeq ($(shell test -d /opt/local/lib && echo y),y)
1569
1569
BASIC_CFLAGS += -I/opt/local/include
1570
1570
BASIC_LDFLAGS += -L/opt/local/lib
1571
- endif
1572
- endif
1573
- ifndef NO_APPLE_COMMON_CRYPTO
1571
+ endif
1572
+ endif
1573
+ ifndef NO_APPLE_COMMON_CRYPTO
1574
1574
NO_OPENSSL = YesPlease
1575
1575
APPLE_COMMON_CRYPTO = YesPlease
1576
1576
COMPAT_CFLAGS += -DAPPLE_COMMON_CRYPTO
1577
- endif
1577
+ endif
1578
1578
PTHREAD_LIBS =
1579
1579
endif
1580
1580
@@ -1613,53 +1613,53 @@ ifdef NO_CURL
1613
1613
REMOTE_CURL_NAMES =
1614
1614
EXCLUDED_PROGRAMS += git-http-fetch git-http-push
1615
1615
else
1616
- ifdef CURLDIR
1616
+ ifdef CURLDIR
1617
1617
# Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
1618
1618
CURL_CFLAGS = -I$(CURLDIR)/include
1619
1619
CURL_LIBCURL = $(call libpath_template,$(CURLDIR)/$(lib))
1620
- else
1620
+ else
1621
1621
CURL_CFLAGS =
1622
1622
CURL_LIBCURL =
1623
- endif
1623
+ endif
1624
1624
1625
- ifndef CURL_LDFLAGS
1625
+ ifndef CURL_LDFLAGS
1626
1626
CURL_LDFLAGS = $(eval CURL_LDFLAGS := $$(shell $$(CURL_CONFIG) --libs))$(CURL_LDFLAGS)
1627
- endif
1627
+ endif
1628
1628
CURL_LIBCURL += $(CURL_LDFLAGS)
1629
1629
1630
- ifndef CURL_CFLAGS
1630
+ ifndef CURL_CFLAGS
1631
1631
CURL_CFLAGS = $(eval CURL_CFLAGS := $$(shell $$(CURL_CONFIG) --cflags))$(CURL_CFLAGS)
1632
- endif
1632
+ endif
1633
1633
BASIC_CFLAGS += $(CURL_CFLAGS)
1634
1634
1635
1635
REMOTE_CURL_PRIMARY = git-remote-http$X
1636
1636
REMOTE_CURL_ALIASES = git-remote-https$X git-remote-ftp$X git-remote-ftps$X
1637
1637
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
1638
1638
PROGRAM_OBJS += http-fetch.o
1639
1639
PROGRAMS += $(REMOTE_CURL_NAMES)
1640
- ifndef NO_EXPAT
1640
+ ifndef NO_EXPAT
1641
1641
PROGRAM_OBJS += http-push.o
1642
- endif
1642
+ endif
1643
1643
curl_check := $(shell (echo 072200; $(CURL_CONFIG) --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/null | sort -r | sed -ne 2p)
1644
- ifeq "$(curl_check)" "072200"
1644
+ ifeq "$(curl_check)" "072200"
1645
1645
USE_CURL_FOR_IMAP_SEND = YesPlease
1646
- endif
1647
- ifdef USE_CURL_FOR_IMAP_SEND
1646
+ endif
1647
+ ifdef USE_CURL_FOR_IMAP_SEND
1648
1648
BASIC_CFLAGS += -DUSE_CURL_FOR_IMAP_SEND
1649
1649
IMAP_SEND_BUILDDEPS = http.o
1650
1650
IMAP_SEND_LDFLAGS += $(CURL_LIBCURL)
1651
- endif
1652
- ifndef NO_EXPAT
1653
- ifdef EXPATDIR
1651
+ endif
1652
+ ifndef NO_EXPAT
1653
+ ifdef EXPATDIR
1654
1654
BASIC_CFLAGS += -I$(EXPATDIR)/include
1655
1655
EXPAT_LIBEXPAT = $(call libpath_template,$(EXPATDIR)/$(lib)) -lexpat
1656
- else
1656
+ else
1657
1657
EXPAT_LIBEXPAT = -lexpat
1658
- endif
1659
- ifdef EXPAT_NEEDS_XMLPARSE_H
1658
+ endif
1659
+ ifdef EXPAT_NEEDS_XMLPARSE_H
1660
1660
BASIC_CFLAGS += -DEXPAT_NEEDS_XMLPARSE_H
1661
- endif
1662
- endif
1661
+ endif
1662
+ endif
1663
1663
endif
1664
1664
IMAP_SEND_LDFLAGS += $(OPENSSL_LINK ) $(OPENSSL_LIBSSL ) $(LIB_4_CRYPTO )
1665
1665
@@ -1671,15 +1671,15 @@ EXTLIBS += -lz
1671
1671
1672
1672
ifndef NO_OPENSSL
1673
1673
OPENSSL_LIBSSL = -lssl
1674
- ifdef OPENSSLDIR
1674
+ ifdef OPENSSLDIR
1675
1675
BASIC_CFLAGS += -I$(OPENSSLDIR)/include
1676
1676
OPENSSL_LINK = $(call libpath_template,$(OPENSSLDIR)/$(lib))
1677
- else
1677
+ else
1678
1678
OPENSSL_LINK =
1679
- endif
1680
- ifdef NEEDS_CRYPTO_WITH_SSL
1679
+ endif
1680
+ ifdef NEEDS_CRYPTO_WITH_SSL
1681
1681
OPENSSL_LIBSSL += -lcrypto
1682
- endif
1682
+ endif
1683
1683
else
1684
1684
BASIC_CFLAGS += -DNO_OPENSSL
1685
1685
OPENSSL_LIBSSL =
@@ -1697,18 +1697,18 @@ ifdef APPLE_COMMON_CRYPTO
1697
1697
endif
1698
1698
endif
1699
1699
ifndef NO_ICONV
1700
- ifdef NEEDS_LIBICONV
1701
- ifdef ICONVDIR
1700
+ ifdef NEEDS_LIBICONV
1701
+ ifdef ICONVDIR
1702
1702
BASIC_CFLAGS += -I$(ICONVDIR)/include
1703
1703
ICONV_LINK = $(call libpath_template,$(ICONVDIR)/$(lib))
1704
- else
1704
+ else
1705
1705
ICONV_LINK =
1706
- endif
1707
- ifdef NEEDS_LIBINTL_BEFORE_LIBICONV
1706
+ endif
1707
+ ifdef NEEDS_LIBINTL_BEFORE_LIBICONV
1708
1708
ICONV_LINK += -lintl
1709
- endif
1709
+ endif
1710
1710
EXTLIBS += $(ICONV_LINK) -liconv
1711
- endif
1711
+ endif
1712
1712
endif
1713
1713
ifdef ICONV_OMITS_BOM
1714
1714
BASIC_CFLAGS += -DICONV_OMITS_BOM
@@ -1829,10 +1829,10 @@ ifdef NO_MMAP
1829
1829
COMPAT_CFLAGS += -DNO_MMAP
1830
1830
COMPAT_OBJS += compat/mmap.o
1831
1831
else
1832
- ifdef USE_WIN32_MMAP
1832
+ ifdef USE_WIN32_MMAP
1833
1833
COMPAT_CFLAGS += -DUSE_WIN32_MMAP
1834
1834
COMPAT_OBJS += compat/win32mmap.o
1835
- endif
1835
+ endif
1836
1836
endif
1837
1837
ifdef MMAP_PREVENTS_DELETE
1838
1838
BASIC_CFLAGS += -DMMAP_PREVENTS_DELETE
@@ -1957,11 +1957,11 @@ else
1957
1957
BASIC_CFLAGS += -DSHA1_DC
1958
1958
LIB_OBJS += sha1dc_git.o
1959
1959
ifdef DC_SHA1_EXTERNAL
1960
- ifdef DC_SHA1_SUBMODULE
1961
- ifneq ($(DC_SHA1_SUBMODULE),auto)
1960
+ ifdef DC_SHA1_SUBMODULE
1961
+ ifneq ($(DC_SHA1_SUBMODULE),auto)
1962
1962
$(error Only set DC_SHA1_EXTERNAL or DC_SHA1_SUBMODULE, not both)
1963
- endif
1964
- endif
1963
+ endif
1964
+ endif
1965
1965
BASIC_CFLAGS += -DDC_SHA1_EXTERNAL
1966
1966
EXTLIBS += -lsha1detectcoll
1967
1967
else
0 commit comments