use AC_CHECK_FUNC to check for strnlen()

This commit is contained in:
Olaf Bergmann committed 2012-05-11 13:46:54 +02:00
1 parent 77e5966c17
commit 3d71f4ee64
2 files changed
+6 -4

No files matched your search

+5 -2
View File
@@ -9,8 +9,8 @@
/* Define to 1 if you have the <assert.h> header file. */
#undef HAVE_ASSERT_H
/* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO
/* Define to 1 if you have the `getaddrinfo,' function. */
#undef HAVE_GETADDRINFO_
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
@@ -58,6 +58,9 @@
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strnlen' function. */
#undef HAVE_STRNLEN
/* Define to 1 if you have the `strrchr' function. */
#undef HAVE_STRRCHR
+1 -2
View File
@@ -69,8 +69,7 @@ AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo])
AC_SEARCH_LIBS(strnlen, c)
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo, strnlen])
AC_CONFIG_HEADERS([config.h])