Makefile: add support for Apple CommonCrypto facility
commit4dcd7732db071c8e1e0466b98eaf9501f7fe1a7e
authorDavid Aguilar <davvid@gmail.com>
Sun, 19 May 2013 10:23:34 +0000 (19 06:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 May 2013 18:15:53 +0000 (20 11:15 -0700)
tree4456e056a37e4ad93bdc32b5055af1568ce1d051
parent29de20504e9790785fe1698300755323f74972aa
Makefile: add support for Apple CommonCrypto facility

As of Mac OS X 10.7, Apple deprecated all OpenSSL functions due to
OpenSSL ABI instability, thus leading to build warnings.  As a
replacement, Apple encourages developers to migrate to its own (stable)
CommonCrypto facility.

Introduce boilerplate which controls whether Apple's CommonCrypto
facility is employed (enabled by default).  Also add a
NO_APPLE_COMMON_CRYPTO build flag with which the user can opt out to
use OpenSSL instead.

[es: extracted CommonCrypto-related Makefile boilerplate into separate
introductory patch]

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile