summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-08-27 18:22:56 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-08-27 18:22:56 +0000
commitd5d752a1db8ad216db2fe018012d757c080a5927 (patch)
treef59097ac097a98a8c4d67f8c6a5f61584692534c /configure.ac
parentf25d6c1f24e7dcb9d881c820fe5d269259890ace (diff)
Fixed HAVE_STRNLEN (sheesh, we don't have strnlen.o)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0e3584e..0477767 100644
--- a/configure.ac
+++ b/configure.ac
@@ -239,7 +239,8 @@ AC_DEFINE(SETUID, 1,[Check for setuid])], AC_MSG_RESULT([not found]))
AC_FUNC_SNPRINTF()
### Check for strnlen
-AC_FUNC_STRNLEN()
+AC_CHECK_LIB(c, strnlen, [
+AC_DEFINE(HAVE_STRNLEN, 1,[Check for strnlen])], AC_MSG_RESULT([not found]))
## Online unit tests
AC_MSG_CHECKING(whether to enable online unit tests)