summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-06-02 17:15:44 -0400
committerJunio C Hamano <gitster@pobox.com>2015-06-03 09:38:19 -0700
commit96658060d7d4317fa5e6f9309d058bdc4fd129db (patch)
treeb5fdef72ebecf04016af9fdf8dce4ddf6edce180 /configure.ac
parent4e3687858e1bcd20865ad28fd6c2d05f421bed51 (diff)
downloadgit-96658060d7d4317fa5e6f9309d058bdc4fd129db.tar.gz
configure: add getdelim() checkes/configure-getdelim
As an optimization, strbuf will take advantage of getdelim() if available, so add a configure check which defines HAVE_GETDELIM if found. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bbdde85c3d..14012fad72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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.
#