X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.ac;h=4e585bd2165c2c73d0b728a56b2d0ebc38959403;hp=c190784dcaa0deb4ef9b5c576874ebd352ce1492;hb=dcbaec7fda0ba36350bbe80f3390296fdabee4bd;hpb=a503c54a95d139f117650a0e6d80e6edfe81e8bf diff --git a/configure.ac b/configure.ac index c190784d..4e585bd2 100644 --- a/configure.ac +++ b/configure.ac @@ -858,6 +858,17 @@ AC_CHECK_FUNCS([socket], AM_CONDITIONAL([BUILD_WITH_LIBSOCKET], [test "x$socket_needs_socket" = "xyes"]) AM_CONDITIONAL([BUILD_WITH_GNULIB], [test "x$socket_needs_gnulib" = "xyes"]) +AC_CHECK_FUNCS([inet_ntop], + [], + [ + AC_CHECK_LIB([nsl], [inet_ntop], + [inet_ntop_needs_nsl="yes"], + [AC_MSG_ERROR([cannot find inet_ntop() in libnsl])] + ) + ] +) +AM_CONDITIONAL([BUILD_WITH_LIBNSL], [test "x$inet_ntop_needs_nsl" = "xyes"]) + clock_gettime_needs_posix4="no" AC_CHECK_FUNCS([clock_gettime], [have_clock_gettime="yes"],