Skip to content

Commit 2439755

Browse files
jnarebgitster
authored andcommitted
autoconf: Add tests for memmem, strtoumax and mkdtemp functions
Update configure.ac (and config.mak.in) to keep up with git development by adding tests for memmem (NO_MEMMEM), strtoumax (NO_STRTOUMAX) and mkdtemp (NO_MKDTEMP) functions. Signed-off-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9d06674 commit 2439755

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

config.mak.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ NO_SOCKADDR_STORAGE=@NO_SOCKADDR_STORAGE@
3535
NO_IPV6=@NO_IPV6@
3636
NO_C99_FORMAT=@NO_C99_FORMAT@
3737
NO_STRCASESTR=@NO_STRCASESTR@
38+
NO_MEMMEM=@NO_MEMMEM@
3839
NO_STRLCPY=@NO_STRLCPY@
40+
NO_STRTOUMAX=@NO_STRTOUMAX@
3941
NO_SETENV=@NO_SETENV@
42+
NO_MKDTEMP=@NO_MKDTEMP@
4043
NO_ICONV=@NO_ICONV@
4144
NO_DEFLATE_BOUND=@NO_DEFLATE_BOUND@

configure.ac

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,36 @@ AC_CHECK_FUNC(strcasestr,
289289
[NO_STRCASESTR=YesPlease])
290290
AC_SUBST(NO_STRCASESTR)
291291
#
292+
# Define NO_MEMMEM if you don't have memmem.
293+
AC_CHECK_FUNC(memmem,
294+
[NO_MEMMEM=],
295+
[NO_MEMMEM=YesPlease])
296+
AC_SUBST(NO_MEMMEM)
297+
#
292298
# Define NO_STRLCPY if you don't have strlcpy.
293299
AC_CHECK_FUNC(strlcpy,
294300
[NO_STRLCPY=],
295301
[NO_STRLCPY=YesPlease])
296302
AC_SUBST(NO_STRLCPY)
297303
#
304+
# Define NO_STRTOUMAX if you don't have strtoumax in the C library.
305+
AC_CHECK_FUNC(strtoumax,
306+
[NO_STRTOUMAX=],
307+
[NO_STRTOUMAX=YesPlease])
308+
AC_SUBST(NO_STRTOUMAX)
309+
#
298310
# Define NO_SETENV if you don't have setenv in the C library.
299311
AC_CHECK_FUNC(setenv,
300312
[NO_SETENV=],
301313
[NO_SETENV=YesPlease])
302314
AC_SUBST(NO_SETENV)
303315
#
316+
# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
317+
AC_CHECK_FUNC(mkdtemp,
318+
[NO_MKDTEMP=],
319+
[NO_MKDTEMP=YesPlease])
320+
AC_SUBST(NO_MKDTEMP)
321+
#
304322
# Define NO_MMAP if you want to avoid mmap.
305323
#
306324
# Define NO_ICONV if your libc does not properly support iconv.

0 commit comments

Comments
 (0)