summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-05 09:10:56 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-05 09:10:56 +0100
commit48ae3fd97331bea275128d7ac2bdeb1d20b2f760 (patch)
tree1cf914a1366bb9884d74459c3c1812caeaafcfd2 /configure.ac
parent395be9a8fb85d172dcbb06826aed8b5b29ceeac2 (diff)
make memrchr detection more general as some linux libcs such as musl or diet do not have memrchr either
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4295ce0ba..3355812f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,6 +192,8 @@ AC_UNALIGNED_64_ACCESS
# some other checks for standard libs
AC_SEARCH_LIBS([gethostbyname], [nsl ws2_32])
+AC_SEARCH_LIBS([memrchr], [], [],
+ AC_DEFINE(HAVE_MEMRCHR,1,[memrchr supported]))
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(m, log)
AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported]))