mirror of
https://github.com/git/git.git
synced 2024-11-05 00:37:55 +01:00
Merge branch 'es/configure-getdelim'
Auto-detect availability of getdelim() that helps optimized version of strbuf_getwholeline(). * es/configure-getdelim: configure: add getdelim() check config.mak.uname: Darwin: define HAVE_GETDELIM for modern OS X releases
This commit is contained in:
commit
3c84c38dac
2 changed files with 9 additions and 0 deletions
|
@ -102,6 +102,9 @@ ifeq ($(uname_S),Darwin)
|
|||
ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
|
||||
NO_STRLCPY = YesPlease
|
||||
endif
|
||||
ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 11 && echo 1),1)
|
||||
HAVE_GETDELIM = YesPlease
|
||||
endif
|
||||
NO_MEMMEM = YesPlease
|
||||
USE_ST_TIMESPEC = YesPlease
|
||||
HAVE_DEV_TTY = YesPlease
|
||||
|
|
|
@ -1041,6 +1041,12 @@ GIT_CHECK_FUNC(initgroups,
|
|||
[NO_INITGROUPS=YesPlease])
|
||||
GIT_CONF_SUBST([NO_INITGROUPS])
|
||||
#
|
||||
# Define HAVE_GETDELIM if you have getdelim in the C library.
|
||||
GIT_CHECK_FUNC(getdelim,
|
||||
[HAVE_GETDELIM=YesPlease],
|
||||
[HAVE_GETDELIM=])
|
||||
GIT_CONF_SUBST([HAVE_GETDELIM])
|
||||
#
|
||||
#
|
||||
# Define NO_MMAP if you want to avoid mmap.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue