X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=e8eee8dff31608648d173543ab61838eb9e5ad01;hb=f43dc9256efce4bd53d451115a23c584b5cda2d6;hp=c190784dcaa0deb4ef9b5c576874ebd352ce1492;hpb=0b2796dfa3b763ed10194ccd66b39b1e056da9b9;p=collectd.git diff --git a/configure.ac b/configure.ac index c190784d..e8eee8df 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"], @@ -2081,8 +2092,8 @@ if test "x$with_cuda" = "xyes"; then fi if test "x$with_cuda" = "xyes"; then - BUILD_WITH_CUDA_CPPFLAGS="$CUDA_CPPFLAGS" - BUILD_WITH_CUDA_LDFLAGS="$CUDA_LDFLAGS" + BUILD_WITH_CUDA_CPPFLAGS="$with_cuda_cppflags" + BUILD_WITH_CUDA_LDFLAGS="$with_cuda_ldflags" BUILD_WITH_CUDA_LIBS="-lnvidia-ml" fi